/* ========= Base ========= */
* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  line-height: 1.45;
  background: var(--bg);
  color: var(--text);

  /* Because header is FIXED, we offset the page so content doesn't slide under it */
  padding-top: 72px; /* matches approx header height (topbar + header). tweak if needed */
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }

.skip{
  position:absolute; left:-9999px; top:8px;
  padding:10px 12px; border-radius:12px;
  background: var(--card); border:1px solid var(--border);
}
.skip:focus{ left:16px; z-index: 99999; }

/* ========= Theme tokens ========= */
:root{
  --bg: #070a0f;
  --bg2:#05070b;
  --text:#eaf0f8;
  --muted: rgba(234,240,248,.70);

  --card: rgba(255,255,255,.04);
  --card2: rgba(255,255,255,.06);
  --border: rgba(255,255,255,.10);

  --accent1:#24d3c7;
  --accent2:#2a7bff;
  --accentGlow: rgba(36,211,199,.25);

  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --ring: rgba(36,211,199,.25);

  --headerBg: rgba(8,10,14,.55);

  /* ===== Final polish controls ===== */
  --fixedHeaderOffset: 92px;                 /* for anchor scrolling under fixed header */
  --sectionMinH: clamp(560px, 60vh, 760px);  /* "Tech height minus ~20%" feel */
  --sectionPadY: clamp(64px, 7vh, 88px);     /* consistent vertical rhythm */
}

/* Light mode */
html[data-theme="light"]{
  --bg: #f7fbff;
  --bg2:#f2f7ff;
  --text:#0b1220;
  --muted: rgba(11,18,32,.66);

  --card: rgba(11,18,32,.04);
  --card2: rgba(11,18,32,.06);
  --border: rgba(11,18,32,.12);

  --shadow: 0 18px 60px rgba(11,18,32,.14);
  --ring: rgba(36,211,199,.25);

  --headerBg: rgba(255,255,255,.60);
}

/* ========= Topbar ========= */
.topbar{
  background: rgba(0,0,0,.75);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
html[data-theme="light"] .topbar{
  background: rgba(11,18,32,.92);
}
.topbar-inner{
  padding: 10px 0;
  display:flex;
  justify-content: center;
}
.topbar-title{
  font-size: 12px;
  letter-spacing: .08em;
  color: rgba(255,255,255,.85);
}

/* ========= Header ========= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  backdrop-filter: blur(14px);
  background: var(--headerBg);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  display:grid;
  grid-template-columns: 1fr auto auto;
  align-items:center;
  gap: 18px;
  padding: 14px 0;
}

.brand{
  display:flex; align-items:center; gap: 12px;
}
.brand-badge{
  width: 34px; height: 34px;
  display:grid; place-items:center;
  border-radius: 10px;
  background: rgba(255,255,255,.92);
  color: #0b1220;
  font-weight: 900;
  letter-spacing: .5px;
}
.brand-badge.sm{ width: 30px; height: 30px; border-radius: 10px; }

.brand-name{ font-weight: 800; }
.brand-sub{
  display:block;
  font-size: 11px;
  letter-spacing: .14em;
  margin-top: 2px;
  color: var(--accent1);
}

.nav{
  display:flex;
  align-items:center;
  gap: 18px;
}
.nav a{
  font-size: 14px;
  color: var(--muted);
  padding: 10px 8px;
  border-radius: 10px;
  position: relative;
}
.nav a:hover{ color: var(--text); }

.nav .nav-home{
  padding: 10px 10px;
  display:flex; align-items:center; justify-content:center;
  border: 1px solid var(--border);
  background: var(--card);
  position: relative;
  border-radius: 12px;
}

/* normal active links */
.nav a.is-active{
  color: var(--accent1);
}
.nav a.is-active::after{
  content:"";
  position:absolute;
  left: 8px;
  right: 8px;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent1);
}

/* ===== Home icon active style ===== */
.nav a.nav-home.is-active{
  color: var(--accent1);
  border-color: rgba(36,211,199,.55);
  background: rgba(36,211,199,.10);
  box-shadow:
    0 0 0 1px rgba(36,211,199,.18),
    0 12px 34px rgba(36,211,199,.18),
    0 0 22px rgba(36,211,199,.20);
}
.nav a.nav-home.is-active::after{
  content:"";
  position:absolute;
  left: 10px;
  right: 10px;
  bottom: -6px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent1);
  box-shadow: 0 0 16px rgba(36,211,199,.45);
}
html[data-theme="light"] .nav a.nav-home.is-active{
  background: rgba(36,211,199,.14);
  box-shadow:
    0 0 0 1px rgba(36,211,199,.18),
    0 12px 34px rgba(36,211,199,.16),
    0 0 18px rgba(36,211,199,.18);
}

.header-actions{
  display:flex;
  align-items:center;
  gap: 10px;
}

/* Theme button (circle) */
.icon-btn{
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor:pointer;
  display:grid; place-items:center;
}
.icon-btn:hover{ background: var(--card2); }
.icon-btn:focus{ outline: 3px solid var(--ring); outline-offset: 2px; }
.icon-btn-inner{
  width: 30px; height: 30px;
  border-radius: 999px;
  background: rgba(0,0,0,.25);
  display:grid; place-items:center;
  font-size: 16px;
}
html[data-theme="light"] .icon-btn-inner{ background: rgba(11,18,32,.10); }

/* ========= Buttons ========= */
.btn{
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  display:inline-flex;
  gap: 10px;
  align-items:center;
  justify-content:center;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease;
}
.btn:hover{ transform: translateY(-1px); background: var(--card2); }
.btn:focus{ outline: 3px solid var(--ring); outline-offset: 2px; }

.btn-primary{
  border: none;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  color: white;
  box-shadow: 0 14px 40px rgba(42,123,255,.22);
}
.btn-primary:hover{ filter: brightness(1.05); }
.btn-lg{ padding: 12px 22px; }
.btn-wide{ width: 100%; padding: 14px 18px; }

.btn-link{
  background: transparent;
  border: none;
  color: var(--text);
  opacity: .9;
  font-weight: 700;
  padding: 12px 8px;
}
.btn-link:hover{ opacity: 1; text-decoration: underline; }
.btn-arrow{ font-size: 18px; line-height: 1; }

/* ========= Sections / Background ========= */
.section{
  position: relative;
  padding: var(--sectionPadY) 0;
  border-top: 1px solid rgba(255,255,255,.04);
  overflow: hidden; /* important for section background layers */

  /* Requested: consistent section “size” */
  min-height: var(--sectionMinH);
}
html[data-theme="light"] .section{
  border-top: 1px solid rgba(11,18,32,.06);
}

/* anchor jumps must account for fixed header */
section[id]{ scroll-margin-top: var(--fixedHeaderOffset); }

.section-center{ text-align:center; }

.eyebrow{
  color: var(--accent1);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .18em;
  margin-bottom: 10px;
}
.eyebrow.left{ text-align:left; }

.h2{
  margin: 0;
  font-size: clamp(28px, 3.2vw, 42px);
  letter-spacing: -0.02em;
}
.h2.left{ text-align:left; }

.lede{
  margin: 12px auto 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 15px;
}
.lede.left{ margin-left:0; }

/* global subtle gradient */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events:none;
  background:
    radial-gradient(900px 600px at 10% 20%, rgba(18,30,60,.65), transparent 55%),
    radial-gradient(900px 600px at 90% 30%, rgba(0,120,110,.25), transparent 60%),
    radial-gradient(900px 700px at 70% 90%, rgba(42,123,255,.18), transparent 60%);
  opacity: .85;
  z-index: 0;
}
html[data-theme="light"] body::before{
  background:
    radial-gradient(900px 600px at 10% 20%, rgba(42,123,255,.10), transparent 55%),
    radial-gradient(900px 600px at 90% 30%, rgba(36,211,199,.10), transparent 60%),
    radial-gradient(900px 700px at 70% 90%, rgba(42,123,255,.08), transparent 60%);
}

/* ========= LAYERED VISUAL HIERARCHY HELPERS ========= */
.section-bg{
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0; /* always behind content */
}
.section .container{
  position: relative;
  z-index: 1; /* ensures text/cards are above backgrounds */
}
.section-bg.cover{
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.section-bg.mask-heavy{
  -webkit-mask-image: radial-gradient(circle at 28% 50%, rgba(0,0,0,1) 0%, rgba(0,0,0,.70) 30%, rgba(0,0,0,0) 70%);
  mask-image: radial-gradient(circle at 28% 50%, rgba(0,0,0,1) 0%, rgba(0,0,0,.70) 30%, rgba(0,0,0,0) 70%);
}

/* ========= Hero ========= */
.hero{
  padding-top: 70px;
  border-top: none;
  position: relative;
  overflow: hidden;

  /* keep hero consistent too, but allow a little breathing room */
  min-height: max(var(--sectionMinH), 640px);
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 34px;
  align-items:center;
}

/* Watermark (Laptop-fade.avif) */
.hero-watermark{
  position: absolute;
  top: -60px;
  left: -80px;
  width: min(560px, 70vw);
  height: auto;
  opacity: 0.12;
  transform: rotate(12deg);
  filter: blur(0.2px) saturate(1.05);
  pointer-events: none;
  user-select: none;
  z-index: 0;

  -webkit-mask-image: radial-gradient(circle at 35% 35%, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 68%);
  mask-image: radial-gradient(circle at 35% 35%, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 68%);
}
html[data-theme="light"] .hero-watermark{ opacity: 0.10; }

.chip{
  display:inline-flex;
  gap: 10px;
  align-items:center;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.25);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--accent1);
  font-weight: 800;
}
html[data-theme="light"] .chip{ background: rgba(255,255,255,.6); }

.dot{
  width: 8px; height: 8px;
  border-radius: 99px;
  background: var(--accent1);
  box-shadow: 0 0 18px var(--accentGlow);
}

.hero-title{
  margin: 16px 0 14px;
  font-size: clamp(44px, 5vw, 66px);
  line-height: .98;
  letter-spacing: -0.03em;
}
.hero-accent{ color: var(--accent1); }
.hero-accent2{ color: color-mix(in oklab, var(--accent2) 70%, var(--accent1)); }

.hero-sub{
  color: var(--muted);
  max-width: 58ch;
  margin: 0 0 18px;
}

.hero-cta{
  display:flex;
  align-items:center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 18px 0 18px;
}

.hero-points{
  display:flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 8px;
  color: rgba(234,240,248,.72);
}
html[data-theme="light"] .hero-points{ color: rgba(11,18,32,.70); }
.point{ font-size: 13px; display:flex; gap: 10px; align-items:center; }
.check{
  width: 18px; height: 18px;
  display:grid; place-items:center;
  border-radius: 99px;
  border: 1px solid rgba(36,211,199,.35);
  color: var(--accent1);
  font-size: 12px;
}

.laptop-card{
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.18);
  box-shadow: var(--shadow);
  overflow:hidden;
  padding: 0;
}
.laptop-card img{
  width: 100%;
  height: auto;
  display:block;
  filter: contrast(1.02) saturate(1.05);
}

.bg-glow{
  position:absolute;
  inset: 0;
  pointer-events:none;
}

/* ========= Services cards ========= */
.cards-3{
  margin-top: 40px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card{
  border: 1px solid var(--border);
  background: rgba(0,0,0,.18);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
  text-align:left;
  position: relative;
  z-index: 1;
}
html[data-theme="light"] .card{ background: rgba(255,255,255,.55); }

/* Center the service icons (requested previously) */
.card-icon{
  width: 52px; height: 52px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  display:grid;
  place-items:center;
  margin: 0 auto 14px; /* centered */
  color: white;
}
.card-icon.teal{ color: var(--accent1); }
.card-icon.blue{ color: #4fa3ff; }
.card-icon.purple{ color: #b58cff; }

.card h3{ margin: 0 0 8px; font-size: 20px; }
.card p{ margin: 0 0 16px; color: var(--muted); }

.tags{ display:flex; gap: 10px; flex-wrap: wrap; }
.tag{
  font-size: 11px;
  letter-spacing: .06em;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: rgba(234,240,248,.82);
}
html[data-theme="light"] .tag{
  background: rgba(11,18,32,.05);
  color: rgba(11,18,32,.78);
}

/* Services: Hybrid Texture layers */
.services-texture{
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  height: 110%;
  object-fit: cover;
  opacity: 0.04; /* 3–5% */
  filter: contrast(1.02) saturate(1.05);
}
html[data-theme="light"] .services-texture{
  opacity: 0.03;
}

.services-accent{
  right: 0;
  bottom: 0;
  width: min(520px, 70vw);
  height: auto;
  transform: translate(33%, 33%) rotate(45deg);
  opacity: 0.14;
  filter: blur(0.2px) saturate(1.05);
  -webkit-mask-image: radial-gradient(circle at 35% 35%, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 68%);
  mask-image: radial-gradient(circle at 35% 35%, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 68%);
}
html[data-theme="light"] .services-accent{
  opacity: 0.10;
}

/* ========= Process ========= */
/* Requested: make Process more prominent + “bigger” (without breaking equal section height) */
#process{
  padding-top: calc(var(--sectionPadY) + 10px);
  padding-bottom: calc(var(--sectionPadY) + 10px);
}

.process-head{
  display:flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 30px;
}
.process-note{
  max-width: 46ch;
  color: var(--muted);
  margin-top: 10px;
  text-align:right;
}

.process-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.process-card{
  border: 1px solid var(--border);
  background: rgba(0,0,0,.18);
  border-radius: 22px;
  padding: 30px;            /* bigger */
  min-height: 260px;        /* bigger */
  position: relative;
  z-index: 1;
  backdrop-filter: blur(6px);
}
html[data-theme="light"] .process-card{ background: rgba(255,255,255,.55); }

/* Requested: Center the numbers 1/2/3 */
.num{
  width: 54px; height: 54px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(79,163,255,.95), rgba(42,123,255,.75));
  display:grid; place-items:center;
  font-weight: 900;
  font-size: 18px;
  color: white;

  margin: 0 auto 16px;      /* centered horizontally */
}
.process-card h3{ margin: 0 0 10px; font-size: 20px; text-align:center; }
.process-card p{ margin: 0; color: var(--muted); text-align:center; }

/* Process: Engineered Blueprint Watermark (retro-computer.jpg) */
.process-blueprint{
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%) scale(1.06);
  width: min(1100px, 120vw);
  height: auto;

  /* prominence per spec */
  opacity: 0.20; /* dark mode */
  filter: grayscale(1) contrast(1.06) brightness(0.95);

  pointer-events: none;
  user-select: none;
  z-index: 0;

  -webkit-mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,1) 0%, rgba(0,0,0,.70) 42%, rgba(0,0,0,0) 72%);
  mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,1) 0%, rgba(0,0,0,.70) 42%, rgba(0,0,0,0) 72%);
}
html[data-theme="light"] .process-blueprint{
  opacity: 0.12;
  filter: grayscale(1) contrast(1.05) brightness(1.05);
}

/* Keep cards above the watermark */
#process .container,
#process .process-card{
  position: relative;
  z-index: 1;
}

/* ========= Tech ========= */
.stackmark{
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  display:grid; place-items:center;
  margin: 0 auto 12px;
  color: var(--accent1);
  background: rgba(0,0,0,.18);
}
html[data-theme="light"] .stackmark{ background: rgba(255,255,255,.55); }

.tech-grid{
  margin-top: 44px;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px 18px;
  align-items:center;
  justify-items:center;
}
.tech-item{
  text-align:center;
  color: rgba(234,240,248,.55);
  transition: transform .12s ease, color .12s ease, filter .12s ease;
}
.tech-item.is-on{ color: rgba(234,240,248,.78); }
html[data-theme="light"] .tech-item{ color: rgba(11,18,32,.55); }
html[data-theme="light"] .tech-item.is-on{ color: rgba(11,18,32,.80); }

.tech-icon{
  width: 80px; height: 80px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.14);
  display:grid; place-items:center;
  margin: 0 auto 10px;
}
html[data-theme="light"] .tech-icon{ background: rgba(255,255,255,.55); }

/* Do NOT change the Tech hub icons HTML — only ensure <img> fits nicely */
.tech-icon img{
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.tech-item:hover{
  transform: translateY(-2px);
  color: var(--accent1);
  filter: drop-shadow(0 12px 30px rgba(36,211,199,.18));
}

.tech-label{
  font-weight: 800;
  font-size: 13px;
}

.tech-note{
  margin: 26px auto 0;
  max-width: 70ch;
  color: var(--muted);
  font-size: 13px;
}

/* Tech background (circuit-board.jpg) — requested: LESS prominent + more consistent */
#tech{
  position: relative;
  overflow: hidden;
}
#tech > .container{
  position: relative;
  z-index: 2;
}

/* If you are using a real <img class="tech-circuit"> in HTML, make it subtle */
.tech-circuit{
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  opacity: 0.12; /* darker but subtle */
  filter: grayscale(1) contrast(1.05) saturate(0.85);
  mix-blend-mode: soft-light;
}
html[data-theme="light"] .tech-circuit{
  opacity: 0.07;
  mix-blend-mode: multiply;
}

/* If you are NOT using an <img>, this ::before creates the same background */
#tech::before{
  content:"";
  position:absolute;
  inset:0;
  z-index: 0;
  pointer-events:none;

  background: url("assets/circuit-board.jpg") center/cover no-repeat;

  filter: grayscale(1) contrast(1.05) saturate(0.85);
  opacity: 0.09;                 /* DARK MODE reduced (was too strong) */
  mix-blend-mode: soft-light;

  -webkit-mask-image: radial-gradient(circle at 50% 45%, rgba(0,0,0,1) 0%, rgba(0,0,0,.78) 44%, rgba(0,0,0,0) 78%);
  mask-image: radial-gradient(circle at 50% 45%, rgba(0,0,0,1) 0%, rgba(0,0,0,.78) 44%, rgba(0,0,0,0) 78%);
}
html[data-theme="light"] #tech::before{
  opacity: 0.05;
  mix-blend-mode: multiply;
}

/* A faint wash to keep text/icons crisp */
#tech::after{
  content:"";
  position:absolute;
  inset:0;
  z-index: 1;
  pointer-events:none;

  background:
    radial-gradient(900px 520px at 50% 45%, rgba(0,0,0,.45), transparent 68%),
    linear-gradient(180deg, rgba(0,0,0,.16), rgba(0,0,0,.18));
  opacity: .32;
}
html[data-theme="light"] #tech::after{
  background:
    radial-gradient(900px 520px at 50% 45%, rgba(255,255,255,.60), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,.20));
  opacity: .22;
}

/* ========= About ========= */
.about-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
  align-items: start;
}
.about-bullets{ margin-top: 18px; display:grid; gap: 10px; }
.about-bullet{ display:flex; gap: 10px; align-items:center; color: var(--muted); }

.about-card{
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.18);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}
html[data-theme="light"] .about-card{ background: rgba(255,255,255,.55); }
.about-card-inner{ padding: 26px; }
.about-card h3{ margin: 0 0 12px; }
.about-card ul{
  margin: 0 0 18px;
  padding-left: 18px;
  color: var(--muted);
}
.about-card li{ margin: 8px 0; }

/* About: governance watermark */
.gov-watermark{
  left: 0;
  top: 50%;
  width: min(720px, 75vw);
  height: auto;
  transform: translate(-10%, -50%) scale(1.10);
  opacity: 0.12;
  filter: blur(0.2px) saturate(1.05);
}
html[data-theme="light"] .gov-watermark{
  opacity: 0.08;
}

/* ========= Contact ========= */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: start;
}
.contact-title{
  margin: 12px 0 10px;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.0;
  letter-spacing: -0.02em;
}

.contact-info{ margin-top: 26px; display:grid; gap: 18px; }
.info-row{ display:flex; gap: 14px; align-items:flex-start; }
.info-ic{
  width: 34px; height: 34px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display:grid; place-items:center;
  background: rgba(0,0,0,.18);
}
html[data-theme="light"] .info-ic{ background: rgba(255,255,255,.55); }

.info-k{
  font-size: 11px;
  letter-spacing: .16em;
  font-weight: 900;
  color: rgba(234,240,248,.55);
}
html[data-theme="light"] .info-k{ color: rgba(11,18,32,.55); }
.info-v{ font-weight: 800; margin-top: 6px; }

.form{
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.18);
  padding: 22px;
  position: relative;
  z-index: 1;
}
html[data-theme="light"] .form{ background: rgba(255,255,255,.55); }

.form-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field{ display:flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
label{
  font-size: 11px;
  letter-spacing: .16em;
  font-weight: 900;
  color: rgba(234,240,248,.55);
}
html[data-theme="light"] label{ color: rgba(11,18,32,.55); }

input, textarea{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: var(--text);
  padding: 12px 12px;
  outline: none;
}
html[data-theme="light"] input, html[data-theme="light"] textarea{
  border: 1px solid rgba(11,18,32,.12);
  background: rgba(255,255,255,.72);
  color: var(--text);
}
input:focus, textarea:focus{ outline: 3px solid var(--ring); outline-offset: 2px; }

.hp{ display:none; }

.form-foot{
  margin-top: 14px;
  text-align:center;
  color: rgba(234,240,248,.45);
  font-size: 11px;
  letter-spacing: .12em;
}
html[data-theme="light"] .form-foot{ color: rgba(11,18,32,.55); }

.form-status{
  margin: 12px 0 0;
  min-height: 20px;
  color: var(--muted);
  text-align:center;
}

.send-ic{ font-size: 16px; }

/* Contact: Architectural backdrop behind form */
.contact-backdrop{
  right: 0;
  bottom: 0;
  width: min(820px, 90vw);
  height: auto;
  transform: translate(10%, 8%) rotate(3deg);
  opacity: 0.12;
  filter: blur(0.2px) saturate(1.05);
  -webkit-mask-image: radial-gradient(circle at 70% 70%, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 70%);
  mask-image: radial-gradient(circle at 70% 70%, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 70%);
}
html[data-theme="light"] .contact-backdrop{
  opacity: 0.08;
}

/* ========= Footer ========= */
.footer{
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,.22);
}
html[data-theme="light"] .footer{ background: rgba(255,255,255,.60); }

.footer-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  flex-wrap: wrap;
}
.footer-brand{
  display:flex; align-items:center; gap: 12px;
}
.footer-name{ font-weight: 900; }
.footer-sub{
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--accent1);
  margin-top: 2px;
}
.footer-links{
  display:flex;
  gap: 20px;
  flex-wrap: wrap;
  color: rgba(234,240,248,.55);
  font-size: 12px;
  letter-spacing: .10em;
  font-weight: 800;
}
html[data-theme="light"] .footer-links{ color: rgba(11,18,32,.55); }
.footer-links a:hover{ color: var(--accent1); }

.footer-right{ color: rgba(234,240,248,.55); font-size: 12px; }
html[data-theme="light"] .footer-right{ color: rgba(11,18,32,.55); }

.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 18px 0;
  text-align:center;
  font-size: 11px;
  letter-spacing: .18em;
  color: rgba(234,240,248,.35);
}
html[data-theme="light"] .footer-bottom{
  border-top: 1px solid rgba(11,18,32,.08);
  color: rgba(11,18,32,.45);
}

/* ========= Responsive ========= */
@media (max-width: 980px){
  body{ padding-top: 88px; } /* header stacks on smaller screens */

  :root{
    --fixedHeaderOffset: 120px;
    --sectionMinH: clamp(520px, 72vh, 820px); /* on mobile, a bit taller helps readability */
    --sectionPadY: clamp(56px, 7vh, 76px);
  }

  .header-inner{ grid-template-columns: 1fr auto; row-gap: 10px; }
  .nav{ grid-column: 1 / -1; justify-content: center; flex-wrap: wrap; }
  .hero-grid{ grid-template-columns: 1fr; }
  .cards-3{ grid-template-columns: 1fr; }
  .process-head{ flex-direction: column; }
  .process-note{ text-align:left; }
  .process-grid{ grid-template-columns: 1fr; }
  .tech-grid{ grid-template-columns: repeat(2, 1fr); }
  .about-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .form-row{ grid-template-columns: 1fr; }

  /* keep hero watermark subtle on mobile */
  .hero-watermark{
    top: -40px;
    left: -60px;
    width: min(520px, 92vw);
    opacity: 0.10;
  }

  /* keep Services accent from dominating on mobile */
  .services-accent{
    width: min(420px, 88vw);
    opacity: 0.10;
  }

  /* Process section bigger, but balanced */
  .process-card{
    padding: 26px;
    min-height: 220px;
  }

  .gov-watermark{
    width: min(560px, 92vw);
    transform: translate(-18%, -50%) scale(1.08);
    opacity: 0.10;
  }

  .contact-backdrop{
    width: min(620px, 92vw);
    opacity: 0.10;
  }

  /* Tech background: even subtler on small screens */
  #tech::before{ opacity: 0.06; }
  html[data-theme="light"] #tech::before{ opacity: 0.04; }
}
