/* ==========================================================
   CODEX LABS (PVT) LTD — codexlk.com
   ========================================================== */
:root {
  /* Brand — sampled from the CODEX logo */
  --navy: #000456;
  --deep: #0267ad;
  --sky: #009de7;
  --grad: linear-gradient(120deg, var(--deep), var(--sky));

  --bg: #ffffff;
  --bg-2: #f3f7fc;
  --surface: #ffffff;
  --surface-2: #eef4fb;
  --line: rgba(0, 4, 86, .09);
  --line-2: rgba(0, 4, 86, .16);
  --text: #0f1440;
  --muted: #586087;
  --accent: #0272bd;
  --accent-ink: #ffffff;
  --accent-soft: rgba(2, 114, 189, .08);
  --shadow: 0 1px 2px rgba(0, 4, 86, .04), 0 12px 32px -12px rgba(0, 4, 86, .12);
  --violet: var(--deep);
  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1200px;
  --f-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { color: var(--navy); font-family: var(--f-display); font-weight: 700; letter-spacing: -.025em; line-height: 1.05; margin: 0 0 .5em; }
h1 { font-size: clamp(2.7rem, 7.2vw, 5.6rem); font-weight: 800; letter-spacing: -.04em; line-height: .98; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3, .h3 { font-size: 1.3rem; letter-spacing: -.01em; line-height: 1.2; }
.h3 { font-size: 1.8rem; }
address { font-style: normal; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.mono { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .02em; }
.hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  font-family: var(--f-mono); font-size: .78rem; text-transform: uppercase;
  letter-spacing: .14em; color: var(--accent); margin-bottom: 1.1rem;
}
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 50px; padding: 0 1.5rem; border-radius: 999px;
  font: 600 .95rem/1 var(--f-body); border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, border-color .25s, color .25s;
}
.btn .ico { transition: transform .25s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn-accent { background: var(--grad); color: #fff; box-shadow: 0 8px 20px -8px rgba(2, 103, 173, .55); }
.btn-accent:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(2, 103, 173, .6); }
.btn-ghost { border-color: var(--line-2); color: var(--navy); background: #fff; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { min-height: 42px; padding: 0 1.1rem; font-size: .88rem; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; color: var(--accent); font-weight: 600; margin-top: .5rem; }
.link-arrow:hover .ico { transform: translateX(3px); }
.link-arrow .ico { transition: transform .25s var(--ease); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0, 4, 86, .35); }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 44px; width: auto; }
.site-footer .brand img { height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--f-display); font-size: 1.25rem; letter-spacing: .02em; font-weight: 800; }
.brand-text small { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .16em; color: var(--muted); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav ul { display: flex; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nav ul a {
  display: block; padding: .55rem .95rem; border-radius: 999px; font-size: .93rem; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav ul a:hover { color: var(--text); }
.nav ul a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); color: var(--text); width: 46px; height: 46px; border-radius: 12px; cursor: pointer; place-items: center; }
.nav-toggle .i-close { display: none; }
.nav-open .nav-toggle .i-open { display: none; }
.nav-open .nav-toggle .i-close { display: block; }

/* ---------- Hero ---------- */
.hero, .page-hero { position: relative; padding: clamp(56px, 9vw, 110px) 0 clamp(24px, 3vw, 40px); overflow: hidden; }
.page-hero.slim { padding-bottom: 20px; }
.page-hero.tall { min-height: 70vh; display: grid; align-items: center; }
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000 20%, transparent 75%);
}
.hero-grid-bg::after {
  content: ""; position: absolute; width: 620px; height: 620px; right: -120px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,157,231,.18), transparent 62%);
  filter: blur(10px);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 40em; margin-top: 1.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.reseller { color: var(--muted); margin-top: 2rem; text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; }

.hero-visual { position: relative; }
.term {
  background: linear-gradient(160deg, #0a1170, var(--navy) 60%);
  border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius);
  box-shadow: 0 40px 80px -30px rgba(0, 4, 86, .55);
  overflow: hidden; transform: rotate(-1.2deg);
}
.term-bar { display: flex; align-items: center; gap: 7px; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2b2f3a; }
.term-bar i:first-child { background: #ff5f57; } .term-bar i:nth-child(2) { background: #febc2e; } .term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: auto; font: .72rem var(--f-mono); color: #8f97c9; }
.term-body { margin: 0; padding: 20px 22px 24px; font: .82rem/1.85 var(--f-mono); color: #e9ecff; white-space: pre; overflow-x: auto; }
.c-m { color: var(--sky); } .c-s { color: #8fc9ff; } .c-d { color: #8f97c9; } .c-a { color: #4cc3ff; }
.caret { display: inline-block; width: 8px; height: 1.05em; background: var(--sky); margin-left: 4px; vertical-align: -3px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.latency {
  position: absolute; right: -24px; bottom: -44px; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); box-shadow: var(--shadow);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; min-width: 200px;
}
.latency .label { color: var(--muted); margin: 0 0 8px; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; }
.latency ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.latency li { display: flex; align-items: center; gap: 9px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 0 rgba(0,157,231,.6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(0,157,231,.5); } 80%, 100% { box-shadow: 0 0 0 9px rgba(0,157,231,0); } }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(56px, 7vw, 96px) 0 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat { padding: 28px 24px; display: flex; flex-direction: column-reverse; gap: 4px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat dd { color: var(--navy); margin: 0; font: 800 clamp(2.2rem, 4.4vw, 3.4rem)/1 var(--f-display); letter-spacing: -.03em; }
.stat dt { color: var(--muted); font-size: .9rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 130px) 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head.split { max-width: none; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; }
.sec-head.split h2 { margin: 0; }
.two-col { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.prose p { color: var(--muted); font-size: 1.07rem; }
.prose strong { color: var(--text); font-weight: 600; }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Service cards */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.svc-card {
  position: relative; background: var(--bg); padding: 34px 30px 30px; display: flex; flex-direction: column; min-height: 300px;
  transition: background .35s var(--ease);
}
.svc-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(0,157,231,.09), transparent 60%);
}
.svc-card:hover { background: var(--bg-2); }
.svc-card:hover::before { opacity: 1; }
.svc-num { color: var(--muted); position: absolute; top: 30px; right: 28px; }
.svc-ico {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--deep); margin-bottom: 26px;
  border: 1px solid rgba(2,114,189,.16);
}
.svc-card p { color: var(--muted); flex: 1; }
.svc-more { color: var(--accent); display: inline-flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; }
.svc-card:hover .svc-more .ico { transform: translateX(4px); }
.svc-more .ico { transition: transform .25s var(--ease); }

/* Partners */
.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 36px; }
.partner { background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: border-color .3s, transform .3s var(--ease); }
.partner:hover { border-color: rgba(0,157,231,.45); transform: translateY(-4px); }
.partner h3 { margin-bottom: .3rem; }
.partner p { font-size: .9rem; }
.chips { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 7px; }
.chips li { font: .75rem var(--f-mono); padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--navy); background: var(--bg-2); }

/* Ethos / bars */
.ethos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 7vw, 100px); align-items: center; }
.bars { display: grid; gap: 28px; }
.bar-top { display: flex; justify-content: space-between; margin-bottom: 10px; font-weight: 500; }
.bar-top .mono { color: var(--accent); font-size: .9rem; }
.bar-track { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bar-track span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width 1.4s var(--ease); }
.in .bar-track span { width: var(--v); }

/* Process */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.process li { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.process li::after { content: ""; position: absolute; top: 40px; right: -17px; width: 18px; height: 1px; background: var(--line-2); }
.process li:last-child::after { display: none; }
.step { display: inline-block; color: var(--accent); margin-bottom: 18px; padding: 4px 10px; border: 1px solid rgba(2,114,189,.25); border-radius: 99px; background: var(--accent-soft); }
.process p { font-size: .93rem; margin: 0; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quote { margin: 0; background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; display: flex; flex-direction: column; }
.quote > .ico { color: var(--sky); margin-bottom: 14px; }
.quote blockquote { margin: 0 0 24px; flex: 1; font-size: 1.08rem; line-height: 1.6; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote figcaption small { display: block; color: var(--muted); font-size: .82rem; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font: 800 1rem var(--f-display); }

/* Offices */
.offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.office { padding: 32px 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); position: relative; overflow: hidden; }
.office h3 { font-size: 2rem; margin-bottom: .2rem; }
.office-phone { display: inline-flex; align-items: center; gap: 8px; margin-top: .4rem; color: var(--accent); font-weight: 500; }

/* Principles / perks */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.principle { background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; }
.principle p { margin: 0; }
.section-alt .principle { background: var(--bg); }

/* HQ */
.hq { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.hq address { color: var(--muted); font-size: 1.1rem; margin: 0 0 1.8rem; line-height: 1.7; }
.hq-coords { display: grid; gap: 8px; text-align: right; font-size: clamp(1.4rem, 3vw, 2.4rem); color: var(--navy); }
.hq-coords .muted { font-size: .8rem; letter-spacing: .2em; }

/* Services page */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2rem; }
.jump a { font-size: .85rem; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); transition: .2s; }
.jump a:hover { color: var(--accent); border-color: var(--accent); }
.svc-list { display: grid; gap: 0; }
.svc-row { display: grid; grid-template-columns: 180px 1fr; gap: 40px; padding: 56px 0; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.svc-row:first-child { border-top: 0; padding-top: 0; }
.svc-row-head { display: flex; flex-direction: column; gap: 18px; }
.svc-row-head .svc-num { position: static; font-size: 1rem; }
.svc-row h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.svc-lead { font-size: 1.2rem; font-weight: 500; }
.svc-row .muted { max-width: 60ch; font-size: 1.04rem; }

/* Careers */
.jobs { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.job { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 24px; padding: 22px 26px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); transition: border-color .3s; }
.job:hover { border-color: rgba(0,157,231,.45); box-shadow: var(--shadow); }
.job h3 { margin: 0 0 4px; font-size: 1.15rem; }
.job p { margin: 0; }
.job-loc { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; }

/* Forms */
.card { background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 40px); }
.form { display: grid; gap: 18px; }
.form .eyebrow { margin-bottom: 0; }
.form .h3 { margin-bottom: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field > span { font: .72rem var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); padding: 13px 15px; transition: border-color .2s, box-shadow .2s; min-height: 50px;
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23586087' stroke-width='1.6'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
textarea { resize: vertical; min-height: 130px; }
input::placeholder, textarea::placeholder { color: #8a91b0; }
input:focus, select:focus, textarea:focus { outline: none; background: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.file-drop { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; padding: 28px 18px; border: 1.5px dashed var(--line-2); border-radius: var(--radius-sm); cursor: pointer; color: var(--accent); transition: border-color .2s, background .2s; }
.file-drop:hover, .file-drop.has-file { border-color: var(--accent); background: var(--accent-soft); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; min-height: 0; }
.file-label { color: var(--text); font-weight: 500; }
.alert { padding: 14px 16px; border-radius: var(--radius-sm); font-size: .95rem; display: flex; gap: 10px; align-items: flex-start; }
.alert ul { margin: 0; padding-left: 18px; }
.alert.ok { background: #e8f7ee; color: #146c3a; border: 1px solid #b6e2c5; }
.alert.err { background: #fdeeee; color: #a32525; border: 1px solid rgba(255,90,90,.3); }

.contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; align-items: start; }
.contact-side { display: grid; gap: 14px; }
.hq-addr { color: var(--muted); margin-bottom: 1.2rem; }
.office-mini { padding: 22px 24px; }
.office-mini h3 { font-size: 1rem; margin-bottom: 4px; }
.office-mini p { font-size: .9rem; margin-bottom: 8px; }
.office-mini a { display: inline-flex; gap: 8px; align-items: center; color: var(--accent); font-size: .92rem; }
.map-wrap { height: 380px; border-top: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.25); }

/* ---------- CTA band & footer ---------- */
.cta-band { position: relative; overflow: hidden; padding: clamp(56px, 7vw, 90px) 0; background: radial-gradient(600px circle at 90% 0%, rgba(0,157,231,.35), transparent 60%), var(--navy); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band .eyebrow { color: var(--sky); }
.cta-band h2 { color: #fff; }
.cta-band h2 { margin: 0; }
.cta-band .muted { color: #9fb0e8; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,.3); color: #fff; background: transparent; }
.cta-band .btn-ghost:hover { border-color: var(--sky); color: var(--sky); }

.site-footer { padding: 80px 0 30px; background: #00033f; color: #dfe4ff; --muted: #9aa5d6; --line: rgba(255,255,255,.1); --line-2: rgba(255,255,255,.18); --accent: var(--sky); }
.site-footer input { background: rgba(255,255,255,.06); color: #fff; }
.site-footer input::placeholder { color: #8a95c8; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1.1fr 1.2fr; gap: 40px; }
.footer-brand p { color: var(--muted); margin: 1.2rem 0; max-width: 32ch; font-size: .95rem; }
.social { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; }
.social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-2); color: var(--muted); transition: .2s; }
.social a:hover { color: var(--accent); border-color: var(--accent); }
.f-title { font: 500 .72rem var(--f-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 0 0 1.1rem; display: block; }
.f-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; font-size: .94rem; }
.f-links a:hover { color: var(--accent); }
.f-contact { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .9rem; font-size: .94rem; }
.f-contact li { display: flex; gap: 12px; align-items: flex-start; }
.f-contact .ico { color: var(--accent); flex: none; margin-top: 3px; }
.f-contact a:hover { color: var(--accent); }
.nl-row { display: flex; gap: 8px; }
.nl-row input { min-height: 46px; padding: 10px 14px; border-radius: 999px; }
.nl-row .btn { width: 46px; padding: 0; flex: none; }
.nl-msg { margin: 10px 0 0; font-size: .88rem; color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 60px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.footer-bottom p { margin: 0; }
.footer-bottom .mono { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .caret, .dot { animation: none; }
  .bar-track span { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-grid, .principles, .process { grid-template-columns: repeat(2, 1fr); }
  .process li::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; height: calc(100dvh - 76px);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 24px;
    padding: 28px 20px 40px; background: var(--bg);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .3s var(--ease);
    overflow-y: auto;
  }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { font: 700 1.9rem/1 var(--f-display); padding: 18px 4px; border-radius: 0; border-bottom: 1px solid var(--line); color: var(--text); }
  .nav ul a[aria-current="page"] { background: none; color: var(--accent); }
  .nav-cta { min-height: 54px; }
  body.nav-open { overflow: hidden; }

  .hero-inner, .two-col, .ethos, .contact-grid, .sec-head.split, .hq { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin-bottom: 30px; }
  .quotes, .offices { grid-template-columns: 1fr; }
  .hq-coords { text-align: left; }
  .svc-row { grid-template-columns: 1fr; gap: 18px; padding: 44px 0; }
  .svc-row-head { flex-direction: row; align-items: center; justify-content: space-between; }
  .svc-row-head .svc-ico { margin: 0; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .wrap { width: calc(100% - 32px); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 16px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .svc-grid, .partner-grid, .principles, .process, .perks { grid-template-columns: 1fr; }
  .svc-card { min-height: 0; padding: 28px 22px; }
  .field-row { grid-template-columns: 1fr; }
  .job { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
  .job .btn { justify-self: start; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .term { transform: none; }
  .term-body { font-size: .72rem; padding: 16px; }
  .latency { position: relative; right: auto; bottom: auto; margin-top: 14px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 auto; }
  .map-wrap { height: 300px; }
}
