/* NUAQUA — design tokens (Full light theme) */
:root,
body[data-atmo="editorial"],
body[data-atmo="clinical"],
body[data-atmo="after-hours"] {
  --bg: #F8F7F4;
  --bg-2: #FFFFFF;
  --bg-3: #F1EEE8;
  --bg-dark: #0F1A2E;
  --bg-dark-2: #0A1322;
  --line: rgba(15, 26, 46, 0.10);
  --line-strong: rgba(15, 26, 46, 0.20);
  --ink: #0F1A2E;
  --ink-2: #2F3A4F;
  --ink-3: #64748B;
  --ink-4: #94A3B8;
  --accent: #1B4FD8;
  --accent-2: #4F7AE0;
  --aqua: #0B9E94;
  --danger: #E04A4A;
  --ok: #1FAE6A;

  --hero-overlay:
    linear-gradient(180deg, rgba(248,247,244,0.10) 0%, rgba(248,247,244,0) 28%, rgba(248,247,244,0) 55%, rgba(248,247,244,0.88) 90%, rgba(248,247,244,1) 100%);
  --hero-tint: rgba(248, 247, 244, 0.06);
  --display-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --display-weight: 600;
  --display-italic: normal;
  --hero-canvas-filter: brightness(1.04) contrast(0.98) saturate(0.78);

  --font-display: var(--display-family);
  --font-body: "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw: 1320px;
  --pad: clamp(24px, 5vw, 88px);

  --radius: 10px;
  --radius-sm: 8px;

  --shadow-lg: 0 30px 60px -20px rgba(0,0,0,.6), 0 8px 24px -12px rgba(0,0,0,.4);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(27,79,216,0.05), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(27,79,216,0.03), transparent 60%),
    var(--bg);
}

/* Page transition: fade + lift in on load */
@keyframes nq-page-enter {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
body.page-enter main,
body.page-enter .page-hero,
body.page-enter .below-hero,
body.page-enter .hero-text {
  animation: nq-page-enter .7s cubic-bezier(.2,.7,.2,1) both;
  will-change: opacity, transform;
}
body.page-leave main,
body.page-leave .page-hero,
body.page-leave .below-hero,
body.page-leave .hero-text {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .25s ease, transform .25s ease;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: white; }

/* Type */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-style: var(--display-italic);
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(52px, 7.6vw, 112px); letter-spacing: -0.025em; }
h2 { font-size: clamp(40px, 5vw, 76px); letter-spacing: -0.02em; }
h3 { font-size: clamp(22px, 2.2vw, 32px); }
h4 { font-size: 18px; font-family: var(--font-body); font-weight: 600; letter-spacing: 0.01em; }

p { margin: 0; text-wrap: pretty; color: var(--ink-2); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--accent);
  display: inline-block;
}

/* Layout */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  width: 100%;
}

.section {
  padding: clamp(120px, 16vw, 220px) 0;
  position: relative;
}
.section + .section { border-top: 1px solid var(--line); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(24px, 6vw, 80px);
  align-items: end;
  margin-bottom: clamp(56px, 8vw, 110px);
}
@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; align-items: start; }
}
.section-head .lede { color: var(--ink-2); font-size: clamp(16px, 1.4vw, 19px); max-width: 56ch; }

/* Buttons */
.btn {
  --bg-btn: var(--accent);
  --fg-btn: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--bg-btn);
  color: var(--fg-btn);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  padding: 16px 26px;
  min-height: 52px;
  border: 1px solid var(--bg-btn);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .25s ease, border-color .18s ease;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15,26,46,.08);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(27,79,216,.5); }
.btn:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(15,26,46,.14); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn .arrow { display: inline-flex; transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-ghost {
  --bg-btn: transparent;
  --fg-btn: var(--ink);
  border-color: var(--line-strong);
  box-shadow: none;
}
.btn-ghost:hover { background: rgba(15,26,46,0.05); border-color: var(--ink); box-shadow: none; }
.btn-ghost:active { background: rgba(15,26,46,0.09); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 0.01em;
  position: relative;
}
.link-arrow::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1px; background: var(--line-strong);
  transform-origin: left; transform: scaleX(0); transition: transform .3s ease;
}
.link-arrow:hover::after { transform: scaleX(1); }
.link-arrow svg { transition: transform .25s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* Navbar */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(248, 247, 244, 0.88);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  transition: height .3s cubic-bezier(.2,.7,.2,1);
}
.nav.scrolled .nav-inner { height: 64px; }
.nav.scrolled .brand { font-size: 19px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
}
.brand-mark svg { width: 100%; height: 100%; }
.brand small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-left: 4px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.nav-center {
  display: flex; align-items: center; gap: 32px;
}
.nav-center a, .nav-center button {
  background: none; border: 0; color: var(--ink-2);
  font: inherit; cursor: pointer; padding: 6px 0;
  font-size: 14px; letter-spacing: 0.01em;
  position: relative;
  transition: color .2s ease;
}
.nav-center a:hover, .nav-center button:hover { color: var(--ink); }
.nav-center a.active { color: var(--ink); }
.nav-center a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 1px; background: var(--accent);
}

.nav-services {
  position: relative;
}
.nav-services > button { display: inline-flex; align-items: center; gap: 6px; }
.nav-services .chev { width: 10px; height: 10px; transition: transform .2s ease; }
.nav-services.open .chev { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  opacity: 0; pointer-events: none;
  background: #FFFFFF;
  border: 1px solid var(--line);
  backdrop-filter: blur(20px);
  padding: 10px;
  min-width: 280px;
  transition: opacity .2s ease, transform .2s ease;
  border-radius: 2px;
  box-shadow: 0 24px 56px -16px rgba(15,26,46,0.18), 0 4px 12px -6px rgba(15,26,46,0.10);
}
.nav-services.open .nav-dropdown { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-dropdown a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  border-radius: 2px;
  color: var(--ink-2);
  font-size: 14px;
}
.nav-dropdown a:hover { background: var(--bg-3); color: var(--ink); }
.nav-dropdown a svg { opacity: 0; transform: translateX(-4px); transition: all .2s ease; color: var(--accent); }
.nav-dropdown a:hover svg { opacity: 1; transform: translateX(0); }

.nav-right { display: inline-flex; align-items: center; gap: 16px; }
.lang-switch { display: inline-flex; align-items: center; gap: 4px; }
.lang-switch button {
  background: none; border: 0; padding: 6px 8px;
  font: inherit; font-size: 12px; letter-spacing: 0.18em;
  font-family: var(--font-mono); text-transform: uppercase;
  color: var(--ink-3); cursor: pointer;
  border-bottom: 1px solid transparent;
}
.lang-switch button.active { color: var(--ink); border-bottom-color: var(--accent); }
.lang-switch .sep { color: var(--ink-4); font-family: var(--font-mono); font-size: 10px; }

.nav-burger {
  display: none;
  background: none; border: 1px solid var(--line-strong);
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-burger span {
  display: block; width: 18px; height: 1px; background: var(--ink); position: relative;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-burger span::before, .nav-burger span::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--ink);
  transition: transform .25s ease;
}
.nav-burger span::before { top: -6px; }
.nav-burger span::after { top: 6px; }
.nav-burger.open span { background: transparent; }
.nav-burger.open span::before { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 48;
  /* Solid opaque panel — never relies on backdrop-filter for opacity, which
     is fragile on mobile Safari and was causing the menu to look transparent. */
  background: var(--bg);
  display: flex; flex-direction: column;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
/* margin:auto centres the menu when it fits but lets it scroll when the list
   is taller than a short phone viewport (so top items are never clipped). */
.mobile-menu nav {
  margin: auto; width: 100%;
  display: flex; flex-direction: column; gap: 4px;
  text-align: center; padding: 96px 24px 48px;
}
.mobile-menu a {
  font-family: var(--font-display); font-size: 30px; padding: 11px;
  color: var(--ink-2);
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--ink); }
.mobile-menu .mm-langs { margin-top: 24px; }

@media (max-width: 900px) {
  .nav-center, .nav-right .lang-switch, .nav-right .btn { display: none; }
  .nav-burger { display: inline-flex; }
}

/* Hero text (shared by the home placeholder hero) */
.hero-text {
  position: fixed;
  z-index: 2;
  left: 0; right: 0;
  bottom: 12vh;
  padding: 0 var(--pad);
  pointer-events: none;
}
.hero-text-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: end;
}
@media (max-width: 900px) {
  .hero-text-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-text { bottom: 8vh; }
}
.hero-text h1 {
  font-size: clamp(40px, 6.5vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-shadow: 0 1px 2px rgba(255,255,255,0.35);
}
.hero-text .sub {
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--ink-2);
  max-width: 44ch;
  margin-bottom: 24px;
}
.hero-text .actions { display: inline-flex; gap: 12px; pointer-events: auto; }

/* Spacer that lets content sit above the page background */
.below-hero { position: relative; z-index: 4; background: var(--bg); }

/* Services Grid — image cards, portrait 2:3 */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  background: transparent;
  border: 0;
}
@media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services-grid { grid-template-columns: 1fr; gap: 18px; } }

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 3 / 4;
  min-height: 420px;
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg-3);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  isolation: isolate;
  transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s cubic-bezier(.2,.7,.2,1);
  box-shadow: 0 4px 14px -6px rgba(15,26,46,0.10);
}
@media (max-width: 620px) {
  .service-card { aspect-ratio: auto; height: 440px; min-height: 0; }
}
.service-card .card-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
  z-index: 0;
}
.service-card .card-grad {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,26,46,0) 35%, rgba(15,26,46,0.35) 60%, rgba(10,19,34,0.78) 88%, rgba(10,19,34,0.92) 100%);
  z-index: 1;
  pointer-events: none;
}
.service-card .card-body {
  position: relative;
  z-index: 2;
  padding: clamp(26px, 2.6vw, 36px);
  display: flex; flex-direction: column;
  gap: 18px;
  color: #fff;
}
.service-card .card-head {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: clamp(22px, 2.4vw, 30px);
  display: flex; align-items: flex-start; justify-content: flex-end;
  z-index: 2;
  color: #fff;
}
.service-card .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.22em;
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.4vw, 34px);
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.service-card p {
  color: rgba(255,255,255,0.88);
  font-size: 15px;
  max-width: 32ch;
  line-height: 1.45;
  text-align: justify;
}
.service-card .foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.22);
}
.service-card .foot .more {
  font-size: 13px; font-weight: 600; color: #fff;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.service-card .foot svg {
  color: #fff;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -22px rgba(15,26,46,0.30), 0 10px 24px -12px rgba(15,26,46,0.18);
}
.service-card:hover .card-img { transform: scale(1.06); }
.service-card:hover .foot svg { transform: translateX(4px); }

/* Stats bar */
.stats {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: clamp(40px, 5vw, 64px) clamp(16px, 3vw, 32px);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
}
.stat:last-child { border-right: 0; }
@media (max-width: 760px) {
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat .num .suffix { color: var(--accent); }
.stat .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-3);
  text-transform: uppercase;
  transition: color .3s ease;
}

/* Stats — animated count-up reveal */
.stat { position: relative; }
.num-wrap {
  display: block;
  overflow: hidden;
  line-height: 1;
  padding-bottom: 0.08em;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.stat .num {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}
.stats-grid.stats-armed .stat .num {
  transform: translateY(115%);
  transition: transform .85s cubic-bezier(.16,1,.3,1);
}
.stats-grid.stats-armed .stat.live .num { transform: translateY(0); }
.statline {
  width: 0;
  height: 2px;
  margin: 0;
  align-self: flex-start;
  background: var(--accent);
  transition: width .85s cubic-bezier(.16,1,.3,1) .12s;
}
.stat.live .statline { width: 36px; }
.stat:hover .statline { width: 64px; }
.stat:hover .lbl { color: var(--ink); }
.stat:hover .num-wrap { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) {
  .stats-grid.stats-armed .stat .num { transform: none; transition: none; }
  .num-wrap, .statline { transition: none; }
}

/* Testimonials */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1040px;
  margin: 0 auto;
  align-items: stretch;
}
@media (max-width: 720px) {
  .testi-grid { grid-template-columns: 1fr; max-width: 560px; }
}
.testi {
  border: 1px solid var(--line);
  padding: clamp(32px, 4vw, 56px);
  background: var(--bg-2);
  display: flex; flex-direction: column;
  gap: 32px;
  position: relative;
  border-radius: 4px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.testi:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px -20px rgba(15,26,46,0.18);
  border-color: rgba(15,26,46,0.16);
}
.testi .quote-mark {
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 0.6;
  color: var(--accent);
  height: 28px;
}
.testi blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.35;
  color: var(--ink);
  font-style: normal;
}
.testi .who {
  display: flex; align-items: center; gap: 16px;
  padding-top: 24px;
  margin-top: auto;
  border-top: 1px solid var(--line);
}
.testi .who .avatar {
  width: 48px; height: 48px;
  background: var(--bg-3); border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
  color: var(--ink-2);
  border-radius: 50%;
}
.testi .who .meta { display: flex; flex-direction: column; }
.testi .who .name { font-weight: 600; font-size: 15px; color: var(--ink); }
.testi .who .role { font-size: 13px; color: var(--ink-3); }

/* CTA banner — dark by design */
.cta-banner {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, transparent 62%, #0A1322 100%),
    radial-gradient(820px 460px at 50% 44%, rgba(79,122,224,0.22), transparent 62%),
    linear-gradient(180deg, #0F1A2E, #0A1322);
  border-top: 0;
  border-bottom: 0;
  color: #F4F6FB;
}
.cta-banner h2 { color: #F4F6FB; }
.cta-banner p { color: rgba(244, 246, 251, 0.78); }
.cta-inner {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 36px;
  padding: clamp(80px, 10vw, 140px) 0;
}
@media (max-width: 760px) {
  .cta-inner { gap: 28px; }
}
.cta-inner h2 { font-size: clamp(32px, 4vw, 56px); max-width: 22ch; }
.cta-inner > div { display: flex; flex-direction: column; align-items: center; }

/* Footer — dark by design */
.footer {
  background: #0A1322;
  color: #F4F6FB;
  border-top: 0;
  padding: 100px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,0.78); font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-address { color: rgba(255,255,255,0.78); font-size: 14px; font-style: normal; line-height: 1.55; }
.footer .brand { color: #fff; }
.footer .brand small { color: rgba(255,255,255,0.55); border-left-color: rgba(255,255,255,0.18); }
.footer .brand-mark { color: #fff; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.55); max-width: 32ch; margin-top: 16px; }
.footer-socials { display: flex; gap: 8px; margin-top: 20px; }
.footer-socials a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.16);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.72);
  transition: all .2s ease;
  border-radius: 2px;
}
.footer-socials a:hover { border-color: var(--accent-2); color: var(--accent-2); }
.footer-socials svg { width: 18px; height: 18px; stroke-width: 1.5; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 32px;
  gap: 24px;
}
.footer-bottom .legal { display: flex; gap: 24px; }
.footer-bottom a, .footer-bottom span { font-size: 12px; color: rgba(255,255,255,0.40); font-family: var(--font-mono); letter-spacing: 0.1em; }
@media (max-width: 620px) { .footer-bottom { flex-direction: column; align-items: flex-start; } }

/* Service page hero */
.page-hero {
  padding: 220px 0 120px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 400px at 90% 0%, rgba(27,79,216,0.08), transparent 60%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 {
  font-size: clamp(48px, 6.5vw, 84px);
  max-width: 14ch;
  margin-bottom: 28px;
}
.page-hero .sub {
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--ink-2);
  max-width: 52ch;
}
.page-hero .crumbs {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.page-hero .crumbs a { color: var(--ink-3); }
.page-hero .crumbs a:hover { color: var(--ink); }
.page-hero .crumbs svg { width: 10px; height: 10px; opacity: 0.5; }

/* Service page sections */
.what-we-do {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
@media (max-width: 760px) { .what-we-do { grid-template-columns: 1fr; } }
.wwd-item {
  background: var(--bg-2);
  padding: 36px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: background .25s ease;
}
.wwd-item:hover { background: var(--bg-3); }
.wwd-item .ico {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  color: var(--accent);
  border-radius: 2px;
}
.wwd-item .ico svg { width: 22px; height: 22px; stroke-width: 1.25; }
.wwd-item h3 { font-size: 22px; margin-bottom: 8px; }
.wwd-item p { font-size: 15px; color: var(--ink-3); text-align: justify; }

.who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .who-grid { grid-template-columns: 1fr; } }
.who-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 36px;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 240px;
  border-radius: 4px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.who-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -20px rgba(15,26,46,0.18);
  border-color: rgba(15,26,46,0.16);
}
.who-card .ico { width: 48px; height: 48px; color: var(--accent); }
.who-card .ico svg { width: 28px; height: 28px; stroke-width: 1.25; }
.who-card h3 { font-size: 22px; }
.who-card p { font-size: 14px; color: var(--ink-3); text-align: justify; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } }
.why-card {
  padding: 36px 0;
  border-top: 1px solid var(--line-strong);
  display: flex; flex-direction: column; gap: 16px;
}
.why-card .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.why-card h3 { font-size: 24px; font-family: var(--font-display); }
.why-card p { font-size: 15px; color: var(--ink-3); text-align: justify; }

/* Editorial media cards — image-led Scope / Who-it's-for */
.media-grid {
  display: grid;
  gap: 18px;
}
.media-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.media-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1040px) { .media-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px)  { .media-grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  {
  .media-grid.cols-4, .media-grid.cols-3 { grid-template-columns: 1fr; gap: 14px; }
}

.media-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 3 / 4;
  min-height: 360px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg-3);
  color: #fff;
  isolation: isolate;
  box-shadow: 0 4px 14px -6px rgba(15,26,46,0.10);
  transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s cubic-bezier(.2,.7,.2,1);
}
.media-card .m-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
  z-index: 0;
}
.media-card .m-grad {
  display: block;
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,26,46,0) 35%, rgba(15,26,46,0.35) 60%, rgba(10,19,34,0.78) 88%, rgba(10,19,34,0.92) 100%);
  z-index: 1;
  pointer-events: none;
}
.media-card .m-step {
  position: absolute; top: 16px; left: 16px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: #fff;
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.20);
  padding: 6px 11px;
  border-radius: 999px;
}
.media-card .m-body {
  position: relative;
  z-index: 2;
  background: transparent;
  padding: clamp(22px, 2.2vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.media-card h3 {
  font-family: var(--font-display);
  color: #fff;
  font-size: clamp(21px, 1.7vw, 27px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.media-card p {
  color: rgba(255,255,255,0.88);
  font-size: 14.5px;
  text-align: justify;
  line-height: 1.5;
  max-width: 34ch;
}
.media-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -22px rgba(15,26,46,0.30), 0 10px 24px -12px rgba(15,26,46,0.18);
}
.media-card:hover .m-img { transform: scale(1.06); }
.media-card .m-img.m-img-placeholder {
  background-color: var(--bg-3);
  background-image: repeating-linear-gradient(135deg, rgba(15,26,46,0.05) 0 12px, rgba(15,26,46,0.09) 12px 24px);
}
.media-card image-slot.m-img { display: block; }
.media-card:has(image-slot) .m-grad,
.media-card:has(image-slot) .m-step,
.media-card:has(image-slot) .m-body { pointer-events: none; }
.media-card .m-placeholder-label {
  position: absolute; top: 32%; left: 0; right: 0;
  z-index: 1;
  display: flex; justify-content: center;
  padding: 0 20px;
  pointer-events: none;
}

/* Honeypot field — invisible to sighted users, unreachable by keyboard/AT,
   present only to catch bots that auto-fill every input. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 80px);
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin: 32px 0 0;
}
.contact-info dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.contact-info dd {
  margin: 0;
  font-size: 17px;
  color: var(--ink);
  font-family: var(--font-display);
  line-height: 1.35;
}
.contact-info dd a { color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.contact-info dd a:hover { border-color: var(--accent); color: var(--accent-2); }
.contact-socials { display: flex; gap: 8px; margin-top: 28px; }
.contact-socials a {
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2);
}
.contact-socials a:hover { color: var(--accent); border-color: var(--accent); }
.contact-socials svg { width: 20px; height: 20px; stroke-width: 1.5; }

/* Contact — direct action tiles */
.contact-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 32px; }
.caction {
  display: flex; align-items: center; gap: 16px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.caction:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -20px rgba(15,26,46,0.55);
}
.caction .ic {
  width: 44px; height: 44px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 9px;
  background: rgba(27,79,216,0.08);
  color: var(--accent);
}
.caction .ic svg { width: 20px; height: 20px; stroke-width: 1.6; }
.caction .tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.caction .tx .k {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3);
}
.caction .tx .v { font-size: 16px; font-weight: 600; color: var(--ink); }
.caction .go { margin-left: auto; color: var(--ink-4); display: grid; place-items: center; transition: color .18s ease, transform .18s ease; }
.caction:hover .go { color: var(--accent); transform: translateX(3px); }
.caction .go svg { width: 16px; height: 16px; }

/* Contact — compact meta grid */
.contact-meta {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 26px 28px;
  margin: 40px 0 0;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.contact-meta .cmeta dt {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 7px;
}
.contact-meta .cmeta dd { margin: 0; font-size: 15px; color: var(--ink); line-height: 1.4; }
.contact-meta .cmeta dd a { color: var(--ink); border-bottom: 1px solid var(--line); }
.contact-meta .cmeta dd a:hover { border-color: var(--accent); color: var(--accent-2); }
@media (max-width: 420px) { .contact-meta { grid-template-columns: 1fr; gap: 22px; } }

/* Contact — form card header */
.form-head {
  margin-bottom: 28px; padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
.form-note { font-size: 13px; color: var(--ink-3); margin: 0; }

/* Form */
.form-card {
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: clamp(28px, 3.5vw, 44px);
  border-radius: 4px;
  box-shadow: 0 4px 14px -8px rgba(15,26,46,0.08);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 6px; position: relative; }
.field.full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } .field { grid-column: auto !important; } }
.field label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field label .req { color: var(--accent); margin-left: 4px; }
.field input,
.field textarea,
.field select {
  appearance: none;
  background: #FFFFFF;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  border-radius: 2px;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-4); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(27,79,216,0.10);
}
.field.error input,
.field.error textarea,
.field.error select { border-color: var(--danger); }
.field .err {
  font-size: 12px;
  color: var(--danger);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  min-height: 14px;
  margin-top: 2px;
}

.form-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.form-foot .recaptcha {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.18em;
  color: var(--ink-4); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
}
.form-foot .recaptcha .dot { width: 6px; height: 6px; background: var(--ok); border-radius: 50%; box-shadow: 0 0 12px var(--ok); }

.form-success {
  border: 1px solid var(--ok);
  background: rgba(31,174,106,0.06);
  padding: 28px;
  display: none;
  align-items: flex-start;
  gap: 16px;
  border-radius: 4px;
}
.form-success.show { display: flex; }
.form-success .ico { color: var(--ok); flex-shrink: 0; }
.form-success h3 { font-family: var(--font-display); font-size: 22px; color: var(--ok); margin-bottom: 6px; }
.form-success p { color: var(--ink-2); font-size: 14px; }

/* Reveal animation */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transition: none; opacity: 1; transform: none; }
}

/* Utility */
.muted { color: var(--ink-3); }
.accent { color: var(--accent); }
.aqua { color: var(--aqua); }
.kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.placeholder-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  background: rgba(15,26,46,0.04);
  border: 1px dashed var(--line-strong);
  padding: 2px 8px;
  text-transform: uppercase;
  border-radius: 2px;
}

/* ============ HEADLINE VOICE VARIANTS ============ */

/* THREE_BEATS — default, no override needed */

/* STATEMENT — single bold sentence, condensed weight */
body[data-voice="statement"] #heroH {
  font-size: clamp(52px, 8vw, 120px);
  letter-spacing: -0.035em;
  line-height: 0.95;
  font-weight: 600;
}

/* OPERATIONAL — data-led, mono spec layout */
body[data-voice="operational"] #heroH {
  font-family: var(--font-mono);
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 500;
  font-style: normal;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-transform: none;
  text-wrap: pretty;
}
body[data-voice="operational"] #heroH em {
  font-style: normal;
  color: var(--accent);
}
body[data-voice="operational"] #heroH .num-line {
  display: block;
  font-size: clamp(56px, 7.5vw, 108px);
  font-family: var(--font-display);
  font-weight: 500;
  font-style: var(--display-italic);
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 0.95;
}
body[data-voice="operational"] #heroH .num-line .small {
  font-family: var(--font-mono);
  font-size: 0.32em;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  vertical-align: middle;
  margin-left: 12px;
}
body[data-voice="operational"] .hero-text .sub {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* ============ MODERN UI CONSISTENCY ============ */
.field input,
.field textarea,
.field select { border-radius: var(--radius-sm); }
.nav-burger { border-radius: var(--radius-sm); }
.nav-dropdown { border-radius: var(--radius-sm); }
.form-card,
.testi,
.who-card,
.what-we-do { border-radius: var(--radius); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* Larger touch targets for in-text links on touch devices */
.nav-dropdown a,
.footer-col a,
.mobile-menu a { -webkit-tap-highlight-color: transparent; }

/* ============ MOBILE OPTIMISATION ============ */
@media (max-width: 760px) {
  /* Calmer vertical rhythm on phones */
  .section { padding: 76px 0; }
  .section-head { margin-bottom: 40px; }
  .page-hero { padding: 132px 0 64px; }
  .cta-inner { padding: 64px 0; }
  .footer { padding: 64px 0 32px; }

  /* Hero actions wrap and stretch so buttons never overflow */
  .hero-text .actions { flex-wrap: wrap; width: 100%; }
  .hero-text .actions .btn { flex: 1 1 auto; }

  /* CTA buttons full width for comfortable tapping */
  .cta-inner .btn { width: 100%; }

  /* Tighten oversized display type a touch on small screens */
  .page-hero h1 { letter-spacing: -0.02em; }
}

@media (max-width: 460px) {
  .section { padding: 60px 0; }
  .form-foot { flex-direction: column-reverse; align-items: stretch; }
  .form-foot .btn { width: 100%; }
  .form-foot .recaptcha { justify-content: center; }
  .stat { padding: 32px 18px; }
}

/* ============ CONTACT — contained glow (never cut off by the footer) ============ */
body[data-page="contact"] main .section {
  position: relative;
  overflow: hidden;
}
body[data-page="contact"] main .section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(960px 620px at 80% 12%, rgba(27,79,216,0.08), transparent 60%),
    radial-gradient(720px 560px at 6% 88%, rgba(11,158,148,0.05), transparent 62%);
}
body[data-page="contact"] main .section .container { position: relative; z-index: 1; }

/* ============ FRAME-SEQUENCE HERO (sticky scrollytelling) ============ */
.fseq-track {
  position: relative;
  height: 300vh;
  z-index: 1;
}
.fseq-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--bg);
}
.fseq-canvas {
  display: block;
  width: 100%;
  height: 100%;
  filter: var(--hero-canvas-filter);
}

/* Mobile: static poster hero — the heavy 150-frame scroll-scrub is replaced by
   a single cover image (set inline by frames-hero.js). Eliminates the white
   "still loading" screen and the large data download when moving service→service. */
.fseq-track.fseq-static {
  height: auto;
  min-height: 0;
}
.fseq-track.fseq-static .fseq-sticky {
  position: relative;
  top: auto;
  height: 82svh;
  min-height: 460px;
  background-size: cover;
  background-position: center;
}
.fseq-track.fseq-static .fseq-canvas { display: none; }

/* ---- Video-scrub hero (companies & commerce): scroll drives currentTime ---- */
.vseq-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  background: var(--bg);
  filter: var(--hero-canvas-filter);
}
/* Readability scrim — lightens the lower-left where the dark hero text sits so
   the headline never blends into a bright or mid-tone video frame. */
.vseq-scrim {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(248,247,244,0) 36%, rgba(248,247,244,0.40) 68%, rgba(248,247,244,0.90) 100%),
    linear-gradient(74deg, rgba(248,247,244,0.86) 0%, rgba(248,247,244,0.55) 24%, rgba(248,247,244,0.16) 46%, rgba(248,247,244,0) 62%);
}
.vseq-sticky .fseq-text h1 {
  text-shadow: 0 1px 1px rgba(255,255,255,0.9), 0 2px 18px rgba(248,247,244,0.7);
}
.vseq-sticky .fseq-text .sub {
  color: var(--ink);
  text-shadow: 0 1px 2px rgba(255,255,255,0.85);
}
.vseq-hint {
  position: absolute; left: var(--pad); bottom: 4.2vh; z-index: 3;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-3);
  display: flex; align-items: center; gap: 12px; pointer-events: none;
}
.vseq-hint .ln { width: 40px; height: 1px; background: var(--line-strong); position: relative; overflow: hidden; }
.vseq-hint .ln::after {
  content: ""; position: absolute; top: 0; left: 0; height: 100%; width: 45%;
  background: var(--accent); animation: vseqHint 1.9s ease-in-out infinite;
}
@keyframes vseqHint { 0% { transform: translateX(-110%); } 100% { transform: translateX(240%); } }
@media (max-width: 760px) { .vseq-hint { display: none; } }
.fseq-tint {
  position: absolute; inset: 0; z-index: 1;
  background: var(--hero-tint);
  pointer-events: none;
}
.fseq-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: var(--hero-overlay);
  pointer-events: none;
}
.fseq-crumbs {
  position: absolute;
  top: 104px; left: 0; right: 0;
  z-index: 3;
  padding: 0 var(--pad);
}
.fseq-crumbs .crumbs,
.vhero-crumbs .crumbs {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-3);
  background: rgba(248,247,244,0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.fseq-crumbs .crumbs a,
.vhero-crumbs .crumbs a { color: var(--ink-3); }
.fseq-crumbs .crumbs a:hover,
.vhero-crumbs .crumbs a:hover { color: var(--ink); }
.fseq-crumbs .crumbs svg,
.vhero-crumbs .crumbs svg { width: 10px; height: 10px; opacity: 0.5; }

/* ============ VIDEO HERO (single viewport, companies & commerce) ============ */
.vhero {
  position: relative;
  height: 88vh;
  height: 88svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--bg);
}
.vhero-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: var(--hero-canvas-filter);
  z-index: 0;
}
.vhero-tint {
  position: absolute; inset: 0; z-index: 1;
  background: var(--hero-tint);
  pointer-events: none;
}
.vhero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: var(--hero-overlay);
  pointer-events: none;
}
.vhero-crumbs {
  position: absolute;
  top: 104px; left: 0; right: 0;
  z-index: 3;
  padding: 0 var(--pad);
}
.vhero-text {
  position: absolute;
  left: 0; right: 0;
  bottom: 11vh;
  z-index: 3;
  padding: 0 var(--pad);
}
.vhero-text-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.vhero-text .eyebrow { color: var(--ink-2); }
.vhero-text h1 {
  font-size: clamp(48px, 6.5vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-top: 22px;
  max-width: 16ch;
  text-shadow: 0 1px 2px rgba(255,255,255,0.4);
}
.vhero-text .sub {
  font-size: clamp(16px, 1.4vw, 20px);
  color: var(--ink-2);
  max-width: 52ch;
  margin-top: 20px;
}
@media (max-width: 760px) {
  .vhero { height: 78vh; height: 78svh; min-height: 480px; }
  .vhero-crumbs { top: 86px; }
  .vhero-text { bottom: 7vh; }
  .vhero-text h1 { max-width: 100%; }
}
.fseq-text {
  position: absolute;
  left: 0; right: 0;
  bottom: 11vh;
  z-index: 3;
  padding: 0 var(--pad);
  pointer-events: none;
}
.fseq-text-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.fseq-text .eyebrow { color: var(--ink-2); }
.fseq-text h1 {
  font-size: clamp(44px, 6.4vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-top: 22px;
  max-width: 16ch;
  text-shadow: 0 1px 2px rgba(255,255,255,0.4);
}
.fseq-text .sub {
  font-size: clamp(16px, 1.4vw, 20px);
  color: var(--ink-2);
  max-width: 52ch;
  margin-top: 20px;
}
.fseq-counter {
  position: absolute;
  top: 50%; right: var(--pad);
  transform: translateY(-50%);
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.2em;
  color: var(--ink-3);
  writing-mode: vertical-rl;
  display: flex; align-items: center; gap: 12px;
}
.fseq-counter .bar { width: 1px; height: 80px; background: var(--line); position: relative; }
.fseq-counter .bar::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  height: var(--p, 0%); background: var(--accent);
  transition: height .15s ease-out;
}
.fseq-loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 24px;
  transition: opacity .6s ease;
}
.fseq-loader.done { opacity: 0; pointer-events: none; }
.fseq-loader .lbl {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.24em; color: var(--ink-3); text-transform: uppercase;
}
.fseq-loader .pct { font-family: var(--font-display); font-size: 64px; color: var(--ink); }
.fseq-loader .bar { width: 260px; height: 1px; background: var(--line-strong); }
.fseq-loader .bar > div { height: 100%; width: 0%; background: var(--accent); transition: width .2s ease; }

@media (max-width: 900px) {
  .fseq-counter { display: none; }
}
@media (max-width: 760px) {
  .fseq-track { height: 260vh; }
  .fseq-crumbs { top: 86px; }
  .fseq-text { bottom: 8vh; }
  .fseq-text h1 { max-width: 100%; }
}

/* ---- Service hero placeholder (awaiting frame sequence) ---- */
.svc-hero-ph {
  position: relative;
  min-height: 86vh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg-3);
}
.svc-hero-ph .ph-media {
  position: absolute; inset: 0; z-index: 0;
  background-color: #E9E5DD;
  background-image:
    repeating-linear-gradient(135deg, rgba(15,26,46,0.045) 0 2px, transparent 2px 18px);
  display: flex; align-items: center; justify-content: center;
}
.svc-hero-ph .ph-note {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-3);
  border: 1px dashed var(--line-strong);
  padding: 12px 18px;
  border-radius: 4px;
  background: rgba(248,247,244,0.66);
  backdrop-filter: blur(4px);
}
.svc-hero-ph .fseq-text .sub { color: var(--ink-2); }

/* ============ HOME HERO — scroll-scrubbed frame sequence ============ */
.home-hero-track {
  position: relative;
  height: 240vh;
  z-index: 1;
}
.home-hero {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 11vh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg-3);
}
.home-hero-media {
  position: absolute; inset: 0; z-index: 0;
  background-color: #E9E5DD;
  background-image: url('frames-home/frame_001.jpg');
  background-size: cover;
  background-position: center;
}
.home-hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
}
.home-hero-media .ph-note {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-3);
  border: 1px dashed var(--line-strong);
  padding: 12px 18px;
  border-radius: 4px;
  background: rgba(248,247,244,0.66);
  backdrop-filter: blur(4px);
}
.home-hero-grad {
  position: absolute; inset: 0; z-index: 1;
  background: var(--hero-overlay);
  pointer-events: none;
}
.home-hero .hero-text {
  position: static;
  inset: auto;
  bottom: auto;
  width: 100%;
  padding: 0 var(--pad);
  z-index: 2;
}
.home-hero .hero-text .actions { pointer-events: auto; }

/* Composition tweak variants applied to the home placeholder hero */
body[data-compo="anchored"] .home-hero {
  align-items: flex-start;
  padding-top: 148px;
  padding-bottom: 8vh;
}
body[data-compo="anchored"] .home-hero .hero-text-inner {
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}
body[data-compo="split"] .home-hero-media { left: 44%; }
body[data-compo="split"] .home-hero-grad {
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(248,247,244,0) 52%),
    var(--hero-overlay);
}
body[data-compo="split"] .home-hero .hero-text-inner {
  grid-template-columns: 1fr;
  max-width: calc(var(--maxw) * 0.56);
  margin: 0 auto;
}
@media (max-width: 900px) {
  body[data-compo="split"] .home-hero-media { left: 0; }
  body[data-compo="split"] .home-hero .hero-text-inner { max-width: var(--maxw); }
}
@media (max-width: 760px) {
  .home-hero-track { height: 200vh; }
  .home-hero { padding-bottom: 9vh; }
  body[data-compo="anchored"] .home-hero { padding-top: 120px; }
}
/* Mobile static hero (set by home-hero.js): collapse the scroll track to a
   single viewport and rely on the poster background instead of the canvas. */
.home-hero-track.home-hero-static { height: auto; }
.home-hero-track.home-hero-static .home-hero {
  position: relative;
  top: auto;
  height: 86svh;
  min-height: 460px;
}
.home-hero-track.home-hero-static .home-hero-canvas { display: none; }

/* ============ ABOUT — story prose ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}
.about-intro h2 { margin-top: 16px; }
.about-intro .lede {
  margin-top: 22px;
  color: var(--ink-2);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
  max-width: 44ch;
}
.about-story {
  max-width: 60ch;
}
.about-story p {
  color: var(--ink-2);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.78;
}
.about-story p + p { margin-top: 20px; }

/* Four principles — balanced single row */
.values-grid { grid-template-columns: repeat(4, 1fr); gap: 28px; }
@media (max-width: 1040px) { .values-grid { grid-template-columns: repeat(2, 1fr); gap: 8px 28px; } }
@media (max-width: 540px)  { .values-grid { grid-template-columns: 1fr; } }
.values-grid .why-card { padding: 28px 0; }

/* ============ LEGAL — terms document ============ */
.legal-updated {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.legal-doc {
  max-width: 68ch;
}
.legal-doc .clause {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 28px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.legal-doc .clause:first-child { border-top: none; padding-top: 0; }
.legal-doc .clause .n {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding-top: 6px;
}
.legal-doc .clause h3 {
  font-size: 22px;
  font-family: var(--font-display);
  margin-bottom: 16px;
  line-height: 1.3;
}
.legal-doc .clause p {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
}
.legal-doc .clause p + p {
  margin-top: 16px;
}
.legal-doc .clause ul {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.55;
  margin: 16px 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.legal-doc .clause ul + p {
  margin-top: 16px;
}
.legal-doc .clause ul li {
  position: relative;
  padding-left: 22px;
}
.legal-doc .clause ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.legal-contact {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 15px;
}
.legal-contact a { color: var(--accent); }
/* Terms page — justified body text */
body[data-page="terms"] .page-hero .sub,
body[data-page="terms"] .legal-doc .clause p,
body[data-page="terms"] .legal-doc .clause ul li {
  text-align: justify;
}
@media (max-width: 600px) {
  .legal-doc .clause { grid-template-columns: 1fr; gap: 8px; }
}
