/* =================================================================
   i-square digital — site
   Dark/light alternating layout, brand gradient, Manrope + JetBrains Mono.
   Self-contained: tokens, reset, components, sections, motion.
   ================================================================= */

/* ---------- Tokens ---------- */
:root {
  --ink:     #0A1A33;
  --ink-90:  #18253B;
  --ink-70:  #2C3A52;
  --ink-50:  #4A5973;
  --ink-20:  #B7C0CF;
  --ink-10:  #DBE0EA;

  --teal:    #00C2B2;
  --blue:    #0077FF;
  --purple:  #7A3DFF;

  --paper:   #FFFFFF;
  --paper-2: #F6F8FB;
  --paper-3: #EEF2F8;
  --line:    #E3E9F2;

  --grad-brand: linear-gradient(135deg, #00C2B2 0%, #0077FF 55%, #7A3DFF 100%);
  --grad-text:  linear-gradient(90deg,  #00C2B2 0%, #0077FF 50%, #7A3DFF 100%);

  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(10,26,51,.06), 0 1px 1px rgba(10,26,51,.04);
  --sh-2: 0 8px 24px rgba(10,26,51,.10), 0 2px 4px rgba(10,26,51,.04);
  --sh-3: 0 24px 60px rgba(10,26,51,.14), 0 8px 16px rgba(10,26,51,.06);
  --sh-glow: 0 18px 60px -10px rgba(0,119,255,.45);

  --maxw: 1280px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  line-height: 1.5;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: var(--blue); color: white; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

/* ---------- Utilities ---------- */
.grad {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.muted { color: var(--ink-50); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-50); font-weight: 500;
}
.eyebrow-rule {
  width: 32px; height: 1px;
  background: currentColor; opacity: .55;
}
.eyebrow-on-dark { color: rgba(255,255,255,.7); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .25s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-lg { padding: 16px 26px; font-size: 16px; }
.btn-pill { background: var(--ink); color: #fff; }
.btn-pill:hover { transform: translateY(-1px); box-shadow: var(--sh-2); }
.btn-gradient {
  background: var(--grad-brand); color: #fff;
  box-shadow: var(--sh-glow);
}
.btn-gradient:hover { transform: translateY(-1px); box-shadow: 0 24px 80px -10px rgba(0,119,255,.55); }
.btn-ghost-dark {
  background: transparent; color: #fff;
  border-color: rgba(255,255,255,.25);
}
.btn-ghost-dark:hover { border-color: #fff; background: rgba(255,255,255,.06); }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(10, 26, 51, 0.55);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .3s ease, border-color .3s ease;
}
/* Inner constrains the nav contents to the same max-width as the hero/section
   content, so the logo + links share their left edge with the hero. */
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px clamp(20px, 4vw, 48px);
  display: flex; align-items: center;
  gap: clamp(20px, 3vw, 40px);
  position: relative;
}
.nav.is-light {
  background: rgba(255,255,255,.82);
  border-bottom: 1px solid var(--line);
}
.nav.is-light .nav-name,
.nav.is-light .nav-links a { color: var(--ink); }
.nav.is-light .nav-links a:hover { color: var(--ink); opacity: 1; }
.nav.is-light .nav-sub { color: var(--ink-50); }

.nav-mark {
  display: inline-flex; align-items: center; gap: 12px;
  color: #fff;
}
.nav-logo { width: 36px; height: 36px; flex-shrink: 0; }
.nav-word { display: flex; flex-direction: column; line-height: 1; }
.nav-name { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: #fff; transition: color .3s; }
.nav-sub  { font-size: 9px; font-weight: 500; letter-spacing: .42em; color: rgba(255,255,255,.55); margin-top: 4px; transition: color .3s; }

.nav-links {
  display: flex; gap: 28px;
  font-size: 14px; font-weight: 500;
  /* Sits immediately after the logo — left-aligned with the hero content. */
}
.nav-links a {
  color: rgba(255,255,255,.7);
  position: relative;
  padding: 6px 2px;
  transition: color .2s;
}
.nav-links a:hover { color: #fff; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

/* ---------- Submenu (Our services ▾ → Discovery / F.A.R.) ---------- */
.nav-item { position: relative; display: inline-flex; align-items: center; }
.nav-parent {
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-chevron {
  opacity: .7;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-item:hover .nav-chevron,
.nav-item:focus-within .nav-chevron { transform: translateY(1px); opacity: 1; }
.nav-submenu {
  position: absolute;
  top: 100%; left: -12px;
  margin: 0; padding: 8px;
  list-style: none;
  min-width: 180px;
  background: #0A1A33;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(0,0,0,.4);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 5;
}
.nav-item:hover .nav-submenu,
.nav-item:focus-within .nav-submenu {
  opacity: 1; transform: translateY(4px); pointer-events: auto;
}
.nav-submenu li { margin: 0; }
.nav-submenu a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,.9);
  font-size: 14px;
}
.nav-submenu a::after { display: none; }
.nav-submenu a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav.is-light .nav-submenu a { color: rgba(255,255,255,.9); }
.nav.is-light .nav-submenu { background: #0A1A33; border-color: rgba(255,255,255,.12); }

.nav-toggle {
  display: none;
  background: transparent; border: 0; padding: 8px;
  cursor: pointer; flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.nav.is-light .nav-toggle span { background: var(--ink); }

@media (max-width: 880px) {
  .nav-inner {
    justify-content: space-between;
    /* Top-align the logo and the hamburger by their TOP edges (instead of
       vertical-centering them) so the hamburger sits flush with the top of
       the logo glyph. */
    align-items: flex-start;
    padding: 12px clamp(16px, 4vw, 32px);
  }
  .nav-mark { align-items: flex-start; }
  .nav-toggle { margin: 0; padding-top: 0; padding-bottom: 0; height: 32px; align-items: center; }
  .nav-logo { width: 32px; height: 32px; }
  .nav-name { font-size: 16px; }
  .nav-sub  { font-size: 8px; letter-spacing: .36em; }

  /* Mobile menu: small dropdown anchored under the hamburger (right).
     Always-dark surface + light text — decoupled from the .is-light nav
     theme so the dropdown stays legible over any section. */
  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: clamp(12px, 4vw, 24px);
    left: auto;
    flex-direction: column; gap: 2px;
    width: min(240px, calc(100vw - 24px));
    background: #0A1A33;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    box-shadow: 0 18px 42px rgba(0,0,0,.5);
    font-size: 15px;
    opacity: 0; transform: translateY(-6px) scale(.98);
    transform-origin: top right;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  /* Even when the nav slides into .is-light over a light section, the
     dropdown stays dark — so its items remain legible everywhere. */
  .nav.is-light .nav-links { background: #0A1A33; border-color: rgba(255,255,255,.12); }
  .nav-links a,
  .nav.is-light .nav-links a {
    padding: 11px 10px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    color: rgba(255,255,255,.92) !important;
    border-radius: 8px;
  }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a:hover,
  .nav.is-light .nav-links a:hover { background: rgba(255,255,255,.06); color: #fff !important; }
  .nav-links a::after { display: none; }
  .nav.menu-open .nav-links {
    opacity: 1; transform: translateY(0) scale(1); pointer-events: auto;
  }

  /* Submenu becomes inline items in the mobile dropdown — no hover, so
     Discovery + F.A.R. appear indented under "Our services" and are always
     tappable when the menu is open. */
  .nav-item { display: contents; }
  .nav-parent .nav-chevron { display: none; }
  .nav-submenu {
    position: static;
    background: transparent;
    border: 0; box-shadow: none;
    padding: 0 0 4px 12px;
    margin: 0;
    opacity: 1; transform: none; pointer-events: auto;
    min-width: 0;
  }
  .nav-submenu a {
    font-size: 14px;
    color: rgba(255,255,255,.72) !important;
    padding: 9px 10px;
    border-bottom: 1px solid rgba(255,255,255,.04);
  }

  /* Beef up the nav surface on mobile so the hamburger is always visibly
     anchored against whatever section background is behind it. */
  .nav { background: rgba(10, 26, 51, 0.88); }
  .nav.is-light { background: rgba(255, 255, 255, 0.92); }

  .nav-toggle { display: inline-flex; }
}
@media (max-width: 420px) {
  /* Keep the "DIGITAL" subscript visible on mobile too — the full
     wordmark reads as i-square digital across every viewport. */
  .nav-sub { font-size: 7.5px; letter-spacing: .32em; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  /* Padding is height-responsive so the hero shrinks its whitespace on
     short viewports instead of pushing content off-screen. */
  padding: clamp(88px, 11vh, 160px) 0 clamp(36px, 5vh, 96px);
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.hero-bg #constellation {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: .55;
}
.hero-glow {
  position: absolute; border-radius: 50%; filter: blur(80px);
  opacity: .55; pointer-events: none;
}
.hero-glow-a {
  width: 60vw; max-width: 700px; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(0,194,178,.55), transparent 65%);
  top: -10%; left: -8%;
}
.hero-glow-b {
  width: 55vw; max-width: 650px; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(122,61,255,.55), transparent 65%);
  bottom: -12%; right: -6%;
}

.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto; width: 100%;
  padding: 0 clamp(20px, 4vw, 48px);
  display: flex; flex-direction: column;
  /* Gap tracks viewport height so the hero can compact itself into a
     shorter screen without pushing the last block below the fold. */
  gap: clamp(14px, 2.2vh, 28px);
}
.hero-title {
  /* min() so a short viewport clamps the type down as well as a narrow
     one — otherwise a 900-tall screen still shows a 104px headline
     that eats a third of the fold. */
  font-size: min(clamp(48px, 7.2vw, 104px), 11vh);
  line-height: .96;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin: 8px 0 0;
  /* The three words must stay on a single line on desktop. */
  white-space: nowrap;
}
/* Desktop: the three words flow inline on one line.
   Tablet / mobile: each .word stacks as a block. */
.hero-title .word { display: inline; }
.hero-title .muted { color: rgba(255,255,255,.45); display: block; }
.hero-lead {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.6;
  color: rgba(255,255,255,.78);
  max-width: 760px;
  margin: 8px 0 0;
  text-align: justify;
  hyphens: auto;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero-meta {
  display: flex; flex-wrap: wrap;
  gap: clamp(20px, 4vw, 56px);
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .14em;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
}
.hero-meta b {
  display: block; color: #fff; font-weight: 600;
  font-family: var(--font-sans); font-size: 13px;
  letter-spacing: 0; text-transform: none;
  margin-bottom: 4px;
}

/* ============ HERO NARRATIVE + CARDS ============ */
/* Multi-paragraph brand narrative — justifies to the full hero content width
   (same as the headline and the cards row). */
.hero-narrative {
  display: flex; flex-direction: column;
  gap: 14px;
  margin: 8px 0 0;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.65;
  color: rgba(255,255,255,.78);
  text-align: justify;
  hyphens: auto;
}
.hero-narrative p { margin: 0; }
.hero-narrative p:first-child {
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.5;
  color: rgba(255,255,255,.92);
  font-weight: 500;
}

/* Three A/T/L description boxes that live in the hero (no titles, no numerals) */
.hero-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.6vw, 22px);
  /* Margin-top follows viewport height so the cards sit close to the CTA
     on short screens and further down on tall ones. */
  margin-top: clamp(12px, 1.6vh, 32px);
}
.hero-card {
  position: relative;
  /* Vertical padding is height-responsive so cards compact on short screens. */
  padding: clamp(14px, 1.8vh, 24px) clamp(20px, 2.2vw, 28px);
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.hero-card::before {
  content: ""; position: absolute;
  inset: 0 0 auto 0; height: 2px;
  background: var(--grad-brand);
  opacity: .85;
}
.hero-card::after {
  content: ""; position: absolute;
  right: -80px; bottom: -80px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: var(--grad-brand);
  opacity: .06;
  transition: opacity .3s ease;
  pointer-events: none;
}
.hero-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.06);
}
.hero-card:hover::after { opacity: .12; }

/* Cards are clickable (role=button) — cursor + focus ring make that clear. */
.hero-card { cursor: pointer; }
.hero-card:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Inner wrapper holds the swappable content (tag + body). Fading only the
   inner means the outer card — with its border, gradient bar, and blob —
   stays perfectly still while text rotates. */
.hero-card-inner {
  transition: opacity .28s ease, transform .28s ease;
  will-change: opacity, transform;
}
.hero-card.is-swapping .hero-card-inner {
  opacity: 0;
  transform: translateY(-5px);
}

/* ============ HERO "LATEST" POST ============ */
/* Slim panel that sits under the rotating cards. Content comes from
   blog.md at page load. Hidden by default until a post resolves. */
.hero-post {
  margin-top: clamp(12px, 1.6vh, 32px);
  /* Vertical padding tracks viewport height so the strip compacts on
     short screens and stays airy on tall ones. */
  padding: clamp(12px, 1.6vh, 22px) clamp(20px, 2vw, 28px);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.10);
  display: flex; flex-direction: row; align-items: center;
  gap: clamp(14px, 1.6vw, 22px);
  position: relative;
  /* Fade the whole panel when swapping between rotating entries. */
  transition: opacity .28s ease, transform .28s ease;
}
.hero-post-body {
  flex: 1 1 auto; min-width: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.hero-post.is-swapping {
  opacity: 0;
  transform: translateY(-4px);
}
.hero-post[hidden] { display: none; }
/* A slim gradient accent bar down the left edge so this block reads as
   "part of the family" without competing with the cards above. */
.hero-post::before {
  content: ""; position: absolute;
  left: 0; top: 12px; bottom: 12px; width: 3px;
  border-radius: 3px;
  background: var(--grad-brand);
  opacity: .8;
}
.hero-post-eyebrow {
  display: inline-block;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .24em; text-transform: uppercase;
  color: rgba(255,255,255,.65);
}
.hero-post-title {
  margin: 4px 0 0;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.3; letter-spacing: -.005em;
  font-weight: 600;
  color: #fff;
}
.hero-post-title a {
  color: inherit;
  border-bottom: 1px solid rgba(255,255,255,.24);
  transition: border-color .2s ease, color .2s ease;
}
.hero-post-title a:hover {
  color: #fff;
  border-bottom-color: #fff;
}
.hero-post-excerpt {
  margin: 4px 0 0;
  font-size: 14.5px; line-height: 1.55;
  color: rgba(255,255,255,.75);
}
.hero-post-excerpt[hidden] { display: none; }
.hero-post-meta {
  margin-top: 6px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.hero-post-meta[hidden] { display: none; }
/* Fallback entries get a slightly different eyebrow tint so it's clear
   the copy isn't ours — subtle, no shouting. */
.hero-post[data-post-type="fallback"] .hero-post-eyebrow {
  color: rgba(255,255,255,.55);
}
/* Article thumbnail — square tile on the right of the panel. Only
   rendered when the entry has an image URL (see has-image class). The
   article's own hero image is served directly; we don't cache it. */
.hero-post-image {
  display: block;
  flex: 0 0 auto;
  width: clamp(72px, 7vw, 108px);
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  text-decoration: none;
  transition: transform .25s ease, border-color .25s ease;
}
.hero-post-image[hidden] { display: none; }
.hero-post-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-post-image:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.2);
}
@media (max-width: 640px) {
  .hero-post { padding: 16px 18px; gap: 12px; }
  .hero-post-title { font-size: 16px; }
  .hero-post-excerpt { font-size: 14px; }
  .hero-post-image { width: 64px; }
}
/* Same tracked / mono / uppercase treatment as the section numbers
   (e.g. "01 — Principles") — keeps the visual system consistent. */
.hero-card-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-bottom: 14px;
}
.hero-card p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: rgba(255,255,255,.82);
}
@media (max-width: 1024px) {
  .hero-cards { grid-template-columns: 1fr; gap: 14px; }
  .hero-narrative { text-align: left; }
  .hero-narrative p { font-size: 16.5px; line-height: 1.6; }
  .hero-narrative p:first-child { font-size: 18px; }
}
@media (max-width: 640px) {
  .hero-narrative { gap: 12px; }
  .hero-narrative p:first-child { font-size: 17px; }

  /* Mobile hero cards — louder gradient bar, gradient title tag, brighter
     ambient glow. Same visual vocabulary as desktop, just sized for thumb. */
  .hero-card {
    padding: 22px 20px;
    border-radius: 16px;
    background:
      linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.14);
  }
  .hero-card::before { height: 3px; }
  .hero-card::after { width: 240px; height: 240px; opacity: .1; right: -100px; bottom: -100px; }
  .hero-card-tag {
    /* Drop the tiny mono-uppercase treatment in favour of a gradient
       headline label — far more visible on small screens. */
    font-family: var(--font-sans);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.01em;
    text-transform: none;
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    width: max-content; max-width: 100%;
    padding-bottom: .06em;
    margin-bottom: 10px;
  }
  .hero-card p { font-size: 15.5px; line-height: 1.55; color: rgba(255,255,255,.9); }
}

/* ============ PRINCIPLES SECTION (statement-driven) ============ */
/* Hierarchy: a single sec-num at the top, then sequential statement blocks
   (Vision, Mission, Ethos), then the two named Operating Principles. */
.pr-section {
  background: var(--paper);
  position: relative;
  overflow: hidden;
}
.pr-section::before {
  /* Subtle ambient gradient hint to keep the page from feeling flat. */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(700px 500px at 100% 0%, rgba(0,194,178,.06), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(122,61,255,.06), transparent 60%);
  pointer-events: none;
}
.pr-inner {
  position: relative;
  /* Inherit max-width from .section-inner so the section's left edge aligns
     with the rest of the site. Tightened block-level gap so the section
     feels connected rather than spread out. */
  display: flex; flex-direction: column;
  gap: clamp(28px, 3vw, 48px);
}
/* With a single statement block in the ethos section, the section's
   enforced min-height left a tall empty gap. Centre the inner block
   vertically within the full-viewport section so it breathes. */
#ethos.section { align-items: center; }
#ethos .pr-inner { width: 100%; }
#ethos .pr-mast { margin-bottom: 0; }
.pr-mast { margin-bottom: clamp(8px, 1vw, 16px); }
.pr-mast .sec-num {
  display: inline-flex; align-items: center; gap: 14px;
}

/* Statement block — used by Vision, Mission, Ethos */
.pr-statement {
  display: flex; flex-direction: column;
  gap: 8px;
  position: relative;
}
/* Titles — gradient headline.
   line-height: 1 with background-clip:text crops descenders ("Operating
   principles" loses the foot of g and p). Looser line-height plus a touch
   of bottom padding gives the gradient background room past the baseline. */
.pr-eyebrow {
  display: block;
  width: max-content;
  max-width: 100%;
  font-family: var(--font-sans);
  font-size: clamp(20px, 2.4vw, 34px);
  line-height: 1.2;
  padding-bottom: .08em;
  letter-spacing: -.022em;
  text-transform: none;
  font-weight: 700;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  margin: 0 0 6px;
}
.pr-eyebrow-rule { display: none; }

/* Statements — body text, set wide and calm. */
.pr-quote {
  margin: 0;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.65;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--ink-70);
  text-wrap: pretty;
}

/* Ethos block — lede statement plus two supporting paragraphs */
.pr-ethos { gap: clamp(18px, 2vw, 28px); }
.pr-quote-lede {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.15;
  letter-spacing: -.015em;
  font-weight: 700;
  color: var(--ink);
  max-width: 820px;
}
.pr-quote-body {
  margin: 0;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.6;
  font-weight: 400;
  color: var(--ink-70);
  max-width: 720px;
}
.pr-quote-close {
  margin: 0;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.3;
  font-weight: 600;
  color: var(--ink);
}
.pr-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 28px);
  max-width: 920px;
  margin-top: 4px;
}
.pr-body p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-70);
}

/* Operating principles — no divider, just rhythm. */
.pr-operating {
  display: flex; flex-direction: column;
  gap: clamp(16px, 2vw, 24px);
}
.pr-eyebrow-section { margin-bottom: 2px; }
.pr-op {
  display: block;
}
.pr-op h3 {
  margin: 0 0 6px;
  font-size: clamp(16px, 1.55vw, 21px);
  line-height: 1.3; letter-spacing: -.005em;
  padding-bottom: .08em;
  font-weight: 700;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  width: max-content; max-width: 100%;
}
.pr-op p {
  margin: 0;
  font-size: 16px; line-height: 1.65;
  color: var(--ink-70);
}

@media (max-width: 1024px) {
  .pr-inner { gap: clamp(28px, 4vw, 44px); }
  .pr-body { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 640px) {
  /* Bigger, clearly gradient titles + subtitles on mobile so the hierarchy
     reads the same as desktop. These still read from --grad-text, so the
     tweak panel's accent/flat switches keep working on phones. */
  .pr-eyebrow { font-size: 30px; }
  .pr-quote { font-size: 17px; }
  .pr-quote-lede { font-size: 18px; }
  .pr-op h3 { font-size: 22px; }
}

/* ============ SECTIONS (shared) ============ */
/* Every section is at least one viewport tall — content centres vertically.
   Long sections (services, FAR, FAQ, ...) grow past 100svh as usual. */
.section {
  padding: clamp(80px, 11vw, 144px) 0;
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  /* Content starts just below the section's top padding. Centering short
     sections (like Approach) inside 100svh left a big gap above the
     eyebrow; flex-start removes that. Long sections still grow naturally
     beyond one viewport. */
  align-items: flex-start;
}
.section > .section-inner { width: 100%; }
.section-tight { padding-block: clamp(60px, 8vw, 96px); }
.section-light { background: var(--paper); color: var(--ink); }
.section-dark  { background: var(--ink); color: #fff; }
/* Inner shares the same max-width + horizontal padding as .nav-inner and
   .hero-inner so every left edge across the site aligns at every viewport. */
.section-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.sec-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: clamp(48px, 6vw, 80px);
  max-width: 960px;
}
.sec-num {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-50);
}
.sec-num.light { color: rgba(255,255,255,.6); }
.sec-head-dark .sec-num { color: rgba(255,255,255,.6); }
.sec-title {
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1.04; letter-spacing: -.025em;
  font-weight: 700; margin: 0;
  text-wrap: balance;
}
.sec-sub {
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.6;
  color: var(--ink-50);
  max-width: 640px;
  margin: 4px 0 0;
}
.sec-head-dark .sec-sub { color: rgba(255,255,255,.6); }

/* ============ PILLARS ============ */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.pillar {
  position: relative;
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--paper);
  display: flex; flex-direction: column; gap: 16px;
  min-height: 360px;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.pillar::before {
  content: ""; position: absolute;
  right: -120px; bottom: -120px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: var(--grad-brand);
  opacity: .07;
  transition: opacity .3s ease;
  pointer-events: none;
}
.pillar:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: var(--sh-2); }
.pillar:hover::before { opacity: .14; }
.pillar-num {
  font-family: var(--font-mono); font-size: 13px;
  letter-spacing: .14em;
  color: var(--ink-50);
}
.pillar h3 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1; letter-spacing: -.02em;
  margin: 0; font-weight: 700;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.pillar p {
  font-size: 16px; line-height: 1.55;
  color: var(--ink-70);
  margin: 0;
}
.pillar-tags {
  list-style: none; padding: 0;
  margin: auto 0 0;
  display: flex; flex-wrap: wrap; gap: 8px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
}
.pillar-tags li {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .1em;
  color: var(--ink-70);
  padding: 5px 10px; border-radius: var(--r-pill);
  background: var(--paper-2); border: 1px solid var(--line);
}
@media (max-width: 880px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { min-height: 0; }
}

/* ============ TRIAD ============ */
.triad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 32px);
}
.triad-item {
  padding: clamp(28px, 3vw, 40px);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column; gap: 18px;
}
.triad-mark {
  width: 72px; height: 72px; border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.triad-mark svg { width: 40px; height: 40px; }
.triad-item h3 {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1; letter-spacing: -.02em;
  margin: 0; font-weight: 700;
}
.triad-item p {
  margin: 0; font-size: 16px;
  line-height: 1.55;
  color: rgba(255,255,255,.7);
}
.triad-strap {
  margin-top: clamp(56px, 7vw, 88px);
  display: flex; align-items: center; gap: 24px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .26em; text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.triad-strap p { margin: 0; }
.triad-strap .strap-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
}
@media (max-width: 880px) {
  .triad { grid-template-columns: 1fr; }
  .triad-strap { flex-direction: column; gap: 16px; text-align: center; }
}

/* ============ SERVICES ============ */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.service {
  background: var(--paper);
  padding: clamp(24px, 2.5vw, 36px);
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
  min-height: 220px;
  transition: background .25s ease;
}
.service::after {
  content: attr(data-tag);
  position: absolute; top: 18px; right: 18px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-50);
  padding: 4px 9px; border-radius: var(--r-pill);
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.service:hover { background: var(--paper-2); }
.service:hover::after {
  background: linear-gradient(135deg, rgba(0,194,178,.16), rgba(122,61,255,.16));
  border-color: transparent;
  color: var(--ink);
}
.service-num {
  font-family: var(--font-mono); font-size: 13px;
  letter-spacing: .14em;
  color: var(--ink-50);
}
.service h4 {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.2; letter-spacing: -.01em;
  margin: 0; font-weight: 600;
}
.service p {
  margin: 0; font-size: 15px;
  line-height: 1.55;
  color: var(--ink-70);
}
@media (max-width: 880px) { .services { grid-template-columns: 1fr; } }

/* ============ DISCOVERY (feature) ============ */
.section-feature {
  background: linear-gradient(180deg, var(--ink) 0%, #0c1f3f 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section-feature::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(800px 500px at 88% 24%, rgba(0,194,178,.18), transparent 60%),
    radial-gradient(800px 500px at 12% 80%, rgba(122,61,255,.18), transparent 60%);
  pointer-events: none;
}
.discovery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
  position: relative;
}
.discovery-title {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.04; letter-spacing: -.025em;
  margin: 18px 0 24px;
  font-weight: 700;
  text-wrap: balance;
}
.discovery-lead {
  font-size: 18px; line-height: 1.6;
  color: rgba(255,255,255,.78);
  margin: 0 0 32px;
  max-width: 520px;
}
.discovery-list {
  list-style: none; padding: 0; margin: 0 0 36px;
  display: flex; flex-direction: column; gap: 0;
}
.discovery-list li {
  padding: 18px 0;
  border-top: 1px dashed rgba(255,255,255,.14);
  font-size: 16px; line-height: 1.5;
  color: rgba(255,255,255,.78);
}
.discovery-list li:last-child { border-bottom: 1px dashed rgba(255,255,255,.14); }
.discovery-list strong { color: #fff; font-weight: 600; }

.discovery-visual {
  position: relative;
  height: 480px;
}
.dv-card {
  position: absolute;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-xl);
  padding: 28px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.dv-card-1 {
  top: 40px; left: 0; right: 60px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--sh-glow);
}
.dv-card-2 {
  bottom: 30px; right: 0; left: 80px;
  background: linear-gradient(135deg, rgba(0,194,178,.18), rgba(122,61,255,.18));
}
.dv-tag {
  display: inline-flex;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: 8px;
}
.dv-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  font-size: 14px;
  color: rgba(255,255,255,.92);
}
.dv-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.dv-dot-teal   { background: var(--teal); }
.dv-dot-blue   { background: var(--blue); }
.dv-dot-purple { background: var(--purple); }
.dv-dot-grad   { background: var(--grad-brand); }
.dv-bar {
  height: 8px; border-radius: 4px;
  background: rgba(255,255,255,.1);
  overflow: hidden; margin: 8px 0 14px;
}
.dv-bar span {
  display: block; height: 100%;
  background: var(--grad-brand);
  border-radius: 4px;
}
.dv-card-2 small {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
@media (max-width: 880px) {
  .discovery-grid { grid-template-columns: 1fr; }
  .discovery-visual { height: 380px; }
  .dv-card-1 { right: 40px; }
  .dv-card-2 { left: 40px; }
}

/* ============ JOURNEY ============ */
.journey {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.5vw, 36px);
  position: relative;
}
.journey::before {
  content: ""; position: absolute;
  top: 11px; left: 12px; right: 12px;
  height: 2px;
  background: var(--grad-text);
  border-radius: 2px;
  opacity: .8;
}
.j-step {
  position: relative;
  padding-top: 40px;
}
.j-dot {
  position: absolute; top: 4px; left: 0;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--teal);
  box-shadow: 0 0 0 4px var(--ink);
}
.j-step.j-end .j-dot { background: var(--purple); border-color: var(--purple); }
.j-num {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 12px;
}
.j-step h4 {
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.05; letter-spacing: -.02em;
  margin: 0 0 12px; font-weight: 700;
}
.j-step p {
  margin: 0; font-size: 15px;
  line-height: 1.55;
  color: rgba(255,255,255,.72);
  max-width: 240px;
}
@media (max-width: 880px) {
  .journey { grid-template-columns: 1fr; gap: 32px; }
  .journey::before { display: none; }
  .j-step { padding-top: 0; padding-left: 32px; }
  .j-dot { top: 8px; }
}

/* ============ PRINCIPLES ============ */
.principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 40px);
}
.principle {
  position: relative;
  padding: clamp(32px, 3.5vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--paper);
  overflow: hidden;
}
.principle::before {
  content: ""; position: absolute;
  top: 0; left: 0; width: 6px; height: 100%;
  background: var(--grad-brand);
}
.p-num {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-50);
  margin-bottom: 14px;
}
.principle h3 {
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.1; letter-spacing: -.02em;
  font-weight: 700;
  margin: 0 0 20px;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.principle p {
  font-size: 16px; line-height: 1.6;
  color: var(--ink-70);
  margin: 0 0 14px;
}
.p-note {
  margin-top: 16px !important;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  color: var(--ink) !important;
  font-weight: 500;
  font-style: italic;
}
@media (max-width: 880px) {
  .principles { grid-template-columns: 1fr; }
}

/* ============ AUDIENCE ============ */
.audience {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.aud {
  position: relative;
  padding: clamp(28px, 3vw, 40px);
  background: var(--paper-2);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .25s ease, border-color .25s ease;
}
.aud:hover { transform: translateY(-2px); border-color: var(--blue); }
.aud-num {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--grad-brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px;
  letter-spacing: -.01em;
}
.aud h4 {
  margin: 0; font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.3; letter-spacing: -.01em;
  font-weight: 600;
}
.aud p {
  margin: 0; font-size: 15px;
  line-height: 1.55;
  color: var(--ink-70);
}
@media (max-width: 880px) { .audience { grid-template-columns: 1fr; } }

/* ============ FAQ ============ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.faq-title {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05; letter-spacing: -.025em;
  font-weight: 700;
  margin: 12px 0 14px;
}
.faq-title .grad { padding-bottom: .06em; }
.faq-sub {
  color: var(--ink-50); margin: 0;
  font-size: 15px;
}
.faq-link {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
  border-bottom: 1px solid var(--ink-10);
  transition: border-color .2s ease;
  padding-bottom: 1px;
}
.faq-link:hover { border-bottom-color: var(--blue); }
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-top: 1px solid var(--line);
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
  transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue); }
.faq-icn {
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--ink-10);
  position: relative;
  transition: transform .25s ease, border-color .2s;
}
.faq-icn::before, .faq-icn::after {
  content: ""; position: absolute;
  left: 50%; top: 50%;
  background: var(--ink);
  transition: opacity .2s;
}
.faq-icn::before { width: 12px; height: 2px; transform: translate(-50%, -50%); }
.faq-icn::after  { width: 2px; height: 12px; transform: translate(-50%, -50%); }
.faq-item[open] .faq-icn { border-color: var(--blue); }
.faq-item[open] .faq-icn::after { opacity: 0; }
.faq-item[open] summary { color: var(--blue); }
.faq-item p {
  margin: 0; padding: 0 0 24px;
  font-size: 16px; line-height: 1.6;
  color: var(--ink-70);
  max-width: 720px;
}
@media (max-width: 880px) {
  .faq-grid { grid-template-columns: 1fr; }
}

/* ============ CTA ============ */
.section-cta {
  background: var(--ink);
  color: #fff;
  position: relative; overflow: hidden;
}
.section-cta::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 30% 20%, rgba(0,194,178,.22), transparent 60%),
    radial-gradient(900px 500px at 80% 80%, rgba(122,61,255,.22), transparent 60%);
  pointer-events: none;
}
.cta {
  position: relative;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  gap: 28px;
  padding-block: clamp(24px, 4vw, 56px);
}
.cta-eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .26em; text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.cta-eyebrow .eyebrow-rule {
  width: 32px; height: 1px; background: currentColor; opacity: .55;
}
.cta-title {
  font-size: clamp(36px, 5.6vw, 76px);
  line-height: 1.04; letter-spacing: -.03em;
  font-weight: 700;
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
}
.cta-lead {
  margin: 0; font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,.7);
  max-width: 560px;
}
.cta-actions {
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: center;
  margin-top: 8px;
}
.cta-meta {
  margin-top: 32px;
  display: flex; flex-wrap: wrap;
  justify-content: center;
  gap: clamp(20px, 4vw, 56px);
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.12);
  width: 100%; max-width: 760px;
}
.cta-meta div { text-align: center; }
.cta-meta b {
  display: block; font-weight: 600; font-size: 16px;
  margin-bottom: 4px;
}
.cta-meta span {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
}

/* ============ DISCOVER PAGE CTA ============ */
.dr-cta {
  display: inline-flex;
  margin: clamp(28px, 3vw, 40px) auto 0;
}

/* ============ OUR SERVICES (bridge section) ============ */
.os-cards {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2.2vw, 32px);
}
.os-cards-3 { grid-template-columns: repeat(3, 1fr); }
.os-card {
  position: relative;
  padding: clamp(24px, 2.6vw, 34px);
  border-radius: var(--r-xl);
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  gap: 14px;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.os-card::before {
  /* Thin gradient rule anchored to the top edge — visually tags each card
     as part of the same family as the hero cards. */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--grad-brand);
}
.os-card::after {
  content: ""; position: absolute;
  right: -100px; bottom: -100px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: var(--grad-brand);
  opacity: .05;
  pointer-events: none;
  transition: opacity .3s ease;
}
.os-card:hover { transform: translateY(-3px); border-color: var(--ink-20); box-shadow: var(--sh-2); }
.os-card:hover::after { opacity: .1; }
.os-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-50);
}
.os-rule { width: 28px; height: 1px; background: currentColor; opacity: .55; }
.os-title {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1; letter-spacing: -.02em;
  font-weight: 700;
}
.os-title .grad { padding-bottom: .08em; }
.os-desc {
  margin: 0;
  font-size: 16px; line-height: 1.6;
  color: var(--ink-70);
}
.os-link {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
  padding-bottom: 1px;
}
.os-link:hover { border-bottom-color: var(--blue); }
.os-tags {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
  padding-top: 6px;
}
.os-tags li {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .12em;
  color: var(--ink-70);
  padding: 5px 10px; border-radius: var(--r-pill);
  background: var(--paper-2); border: 1px solid var(--line);
}
.os-cta {
  align-self: flex-start;
  margin-top: auto;
}

/* Status badge in the top-right of each overview card. */
.os-badge {
  position: absolute;
  top: 14px; right: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  z-index: 2;
}
.os-badge::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.os-badge-beta {
  color: #0a7a66;
  background: rgba(0, 194, 178, .12);
  border: 1px solid rgba(0, 194, 178, .35);
}
.os-badge-soon {
  color: var(--ink-50);
  background: var(--paper-2);
  border: 1px solid var(--line);
}

/* Muted card (coming soon): dimmer content, no hover lift. */
.os-card-muted {
  opacity: .72;
  cursor: default;
}
.os-card-muted:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: none;
}
.os-card-muted .os-title,
.os-card-muted .os-eyebrow,
.os-card-muted .os-desc {
  filter: grayscale(.3);
}
.os-card-muted .os-title .grad {
  opacity: .7;
}
@media (max-width: 1080px) {
  .os-cards-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .os-cards { grid-template-columns: 1fr; }
  .os-cards-3 { grid-template-columns: 1fr; }
}

/* ============ ORBIT (enterprise section) ============ */
.sec-title-light { color: var(--paper); }
.sec-sub-light { color: rgba(255,255,255,.72); }

/* Decorative orbital-rings motif — mirrors Orbit's own marketing style
   without quoting any specific illustration. Sits far from the content
   so it reads as atmosphere, not decoration. */
#orbit { position: relative; isolation: isolate; overflow: hidden; }
.orbit-glyph {
  position: absolute;
  top: -8%; right: -14%;
  width: clamp(420px, 46vw, 720px);
  height: auto;
  opacity: .32;
  pointer-events: none;
  z-index: 0;
  filter: blur(.4px);
}
#orbit .section-inner { position: relative; z-index: 1; }
@media (max-width: 880px) {
  .orbit-glyph { top: -4%; right: -32%; width: 520px; opacity: .22; }
}

.orbit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(32px, 4vh, 56px);
}
.orbit-card {
  position: relative;
  padding: clamp(22px, 2.4vw, 32px);
  border-radius: var(--r-xl);
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.orbit-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.05);
}
.orbit-eyebrow {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.orbit-title {
  margin: 0;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.2; letter-spacing: -.01em;
  font-weight: 700;
  color: var(--paper);
}
.orbit-desc {
  margin: 0;
  font-size: 15.5px; line-height: 1.6;
  color: rgba(255,255,255,.72);
}

.orbit-flow {
  margin-top: clamp(48px, 6vh, 80px);
}
.orbit-flow-eyebrow {
  display: inline-block;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 20px;
}
.orbit-steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 28px);
  position: relative;
}
/* The orbital trail — a thin gradient line running through all four
   step markers. Pseudo-element sits at the vertical centre of the
   markers (18px / 2 = 9px from the top of the step). */
.orbit-steps::before {
  content: "";
  position: absolute;
  left: 9px; right: 9px;
  top: 9px; height: 1px;
  background: linear-gradient(
    90deg,
    rgba(0,194,178,.55),
    rgba(0,119,255,.5),
    rgba(122,61,255,.55)
  );
  opacity: .7;
}
.orbit-step {
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 28px;
  position: relative;
}
/* Circled step marker sitting on the trail. */
.orbit-step-num {
  position: absolute;
  top: 0; left: 0;
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid rgba(255,255,255,.45);
  box-shadow: 0 0 0 3px var(--ink);
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0;
  color: rgba(255,255,255,.85);
  line-height: 1;
}
/* Last step gets a tiny glow — the "focal point" of the orbit. */
.orbit-step:last-child .orbit-step-num {
  border-color: rgba(0,194,178,.75);
  box-shadow: 0 0 0 3px var(--ink), 0 0 10px rgba(0,194,178,.45);
}
.orbit-step h4 {
  margin: 0;
  font-size: 18px; font-weight: 700;
  color: var(--paper);
}
.orbit-step p {
  margin: 0;
  font-size: 14.5px; line-height: 1.55;
  color: rgba(255,255,255,.68);
}

.orbit-landscape {
  margin-top: clamp(48px, 6vh, 80px);
  padding: clamp(24px, 2.6vw, 36px);
  border-radius: var(--r-xl);
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.025);
  position: relative;
}
.orbit-landscape::before {
  content: ""; position: absolute; inset: 0 auto 0 0;
  width: 3px;
  background: var(--grad-brand);
  border-radius: 3px 0 0 3px;
}
.orbit-landscape .orbit-eyebrow { margin-bottom: 8px; }

@media (max-width: 1080px) {
  .orbit-steps { grid-template-columns: repeat(2, 1fr); }
  /* The trail only reads as orbital on a single row; hide it on the
     wrapped layouts and let each marker stand on its own. */
  .orbit-steps::before { display: none; }
}
@media (max-width: 640px) {
  .orbit-grid { grid-template-columns: 1fr; }
  .orbit-steps { grid-template-columns: 1fr; }
}

/* ============ FOUNDER SECTION ============ */
.founder-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.founder-copy { display: flex; flex-direction: column; gap: 18px; }
.founder-copy .sec-title { margin: 0; }
.founder-lede {
  margin: 0;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.6;
  color: var(--ink);
  font-weight: 500;
}
.founder-body {
  margin: 0;
  font-size: 16px; line-height: 1.65;
  color: var(--ink-70);
}
.founder-link {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
  padding-bottom: 1px;
}
.founder-link:hover { border-bottom-color: var(--blue); }

.founder-card {
  position: relative;
  border-radius: var(--r-xl);
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.founder-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--grad-brand);
  z-index: 1;
}
.founder-card:hover {
  transform: translateY(-3px);
  border-color: var(--ink-20);
  box-shadow: var(--sh-2);
}
/* The whole card is one clickable link to i-square.be. */
.founder-link-card {
  display: flex; flex-direction: column; gap: 20px;
  padding: clamp(28px, 3vw, 40px);
  text-decoration: none;
  color: inherit;
}
.founder-link-card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.founder-card:hover .founder-meta-sub {
  color: var(--blue);
}
.founder-portrait {
  width: 100%; aspect-ratio: 1;
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 30% 30%, rgba(0,194,178,.18), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(122,61,255,.18), transparent 55%),
    var(--paper-2);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
}
.founder-portrait-mark {
  font-family: var(--font-mono);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 700;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  letter-spacing: -.02em;
}
/* Real i-square bv mark sits inside the frame. Clamp to a comfortable
   portrait size and let the surrounding gradient wash do the colour work. */
.founder-portrait-logo {
  width: 60%; height: auto;
  max-width: 220px;
  display: block;
}
.founder-meta {
  display: flex; flex-direction: column; gap: 4px;
}
.founder-meta-label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-50);
}
.founder-meta strong {
  font-size: 18px; color: var(--ink); font-weight: 700;
}
.founder-meta-sub {
  font-size: 13px; color: var(--ink-50);
}

@media (max-width: 880px) {
  .founder-grid { grid-template-columns: 1fr; }
  .founder-card { max-width: 420px; }
}

/* ============ CONTACT PAGE ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
  position: relative;
}
.contact-aside { display: flex; flex-direction: column; gap: clamp(20px, 2vw, 28px); }
.contact-title {
  margin: 6px 0 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -.025em;
  font-weight: 700;
}
.contact-title .grad { padding-bottom: .08em; }
.contact-address {
  font-style: normal;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,.78);
  padding-top: clamp(8px, 1vw, 16px);
  border-top: 1px solid rgba(255,255,255,.14);
}
.contact-line { display: block; }
.contact-line:first-child { color: #fff; font-weight: 500; }
.contact-line-meta {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .1em;
  color: rgba(255,255,255,.55);
  margin-top: 10px;
}

.contact-socials {
  display: flex; gap: 12px;
  margin-top: 4px;
}
.contact-social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.85);
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.contact-social:hover {
  transform: translateY(-2px);
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
}

/* ----- Contact form ----- */
.contact-form {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-xl);
  padding: clamp(28px, 3vw, 40px);
  display: flex; flex-direction: column;
  gap: 18px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.contact-form-title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.005em;
  color: #fff;
}
.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.cf-field { display: flex; flex-direction: column; gap: 6px; }
.cf-lbl {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.78);
}
.cf-opt {
  font-style: normal;
  font-weight: 400;
  font-size: 11.5px;
  color: rgba(255,255,255,.5);
  margin-left: 6px;
}
.cf-field input,
.cf-field textarea {
  font: inherit;
  font-size: 15px;
  color: #fff;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
  width: 100%;
}
.cf-field textarea { resize: vertical; min-height: 120px; }
.cf-field input::placeholder,
.cf-field textarea::placeholder { color: rgba(255,255,255,.4); }
.cf-field input:focus,
.cf-field textarea:focus {
  border-color: var(--blue);
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 0 3px rgba(0,119,255,.18);
}
.cf-field input.is-invalid,
.cf-field textarea.is-invalid {
  border-color: #ff5a7a;
  box-shadow: 0 0 0 3px rgba(255,90,122,.18);
}
.cf-err {
  display: block;
  min-height: 16px;
  font-size: 12.5px;
  line-height: 1.3;
  color: #ff8aa0;
}
.cf-honey {
  position: absolute;
  left: -9999px; width: 1px; height: 1px;
  overflow: hidden;
}
.cf-captcha {
  background: rgba(255,255,255,.03);
  border: 1px dashed rgba(255,255,255,.14);
  border-radius: 10px;
  padding: 12px 14px;
  gap: 8px;
}
.cf-captcha .cf-lbl { color: rgba(255,255,255,.85); }
.cf-captcha input {
  padding: 10px 12px;
}
.cf-submit {
  align-self: flex-start;
  margin-top: 4px;
}
.cf-status {
  margin: 0;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
}
.cf-status[data-state="ok"] {
  color: #c8ffeb;
  background: rgba(0,194,178,.16);
  border-color: rgba(0,194,178,.4);
}
.cf-status[data-state="error"] {
  color: #ffd2dc;
  background: rgba(255,90,122,.14);
  border-color: rgba(255,90,122,.4);
}
@media (max-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .contact-form { padding: 22px; }
  .cf-row { grid-template-columns: 1fr; }
}

/* ============ COOKIE / PRIVACY CONSENT ============ */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 2147483640;
  background: rgba(10,26,51,.94);
  color: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(0,0,0,.4);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease;
}
.cookie-banner.is-visible { opacity: 1; transform: translateY(0); }
.cookie-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex; align-items: center;
  gap: 20px; flex-wrap: wrap;
  justify-content: space-between;
}
.cookie-copy {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  max-width: 720px;
}
.cookie-actions { display: flex; gap: 10px; }
.cookie-btn {
  padding: 10px 18px;
  font-size: 13.5px;
}
.cookie-btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,.28);
  color: rgba(255,255,255,.9);
}
.cookie-btn-ghost:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.5);
}
@media (max-width: 640px) {
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; }
  .cookie-inner { padding: 14px 16px; gap: 14px; }
  .cookie-actions { width: 100%; flex-direction: column-reverse; }
  .cookie-btn { width: 100%; }
}

/* ============ FOOTER ============ */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.65);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: clamp(56px, 6vw, 80px) clamp(20px, 4vw, 48px) 0;
}
.footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(40px, 5vw, 80px);
  padding-bottom: 56px;
}
.footer-brand {
  display: flex; align-items: center; gap: 16px;
}
.footer-logo { width: 48px; height: 48px; flex-shrink: 0; }
.footer-name { font-size: 20px; font-weight: 600; color: #fff; letter-spacing: -.01em; }
.footer-tag {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .26em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-top: 6px;
}
.footer-address {
  font-style: normal;
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,.62);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.footer-cols h5 {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
  font-weight: 500;
  margin: 0 0 14px;
}
.footer-cols a {
  display: block; padding: 6px 0;
  font-size: 14px;
  color: rgba(255,255,255,.78);
  transition: color .2s;
}
.footer-cols a:hover { color: #fff; }
.footer-base {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.45);
  max-width: var(--maxw); margin: 0 auto;
}
@media (max-width: 880px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

/* ============ MOTION ============ */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1; transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* =================================================================
   THEMING — tweak data-attrs flip the same tokens the brand-kit uses
   ================================================================= */

/* Accent (recolours the brand gradient — text and surfaces follow) */
[data-accent="teal"] {
  --grad-brand: linear-gradient(135deg, #00E0CC 0%, #00C2B2 55%, #0077FF 100%);
  --grad-text:  linear-gradient(90deg,  #00E0CC 0%, #00C2B2 50%, #0077FF 100%);
}
[data-accent="purple"] {
  --grad-brand: linear-gradient(135deg, #0077FF 0%, #7A3DFF 55%, #B14BFF 100%);
  --grad-text:  linear-gradient(90deg,  #0077FF 0%, #7A3DFF 50%, #B14BFF 100%);
}
/* blue is the default — listed for completeness */
[data-accent="blue"] {
  --grad-brand: linear-gradient(135deg, #00C2B2 0%, #0077FF 55%, #7A3DFF 100%);
  --grad-text:  linear-gradient(90deg,  #00C2B2 0%, #0077FF 50%, #7A3DFF 100%);
}

/* Flat: replace the gradient with the solid accent (matches tokens.css) */
[data-flat="true"][data-accent="teal"]   { --grad-brand: #00C2B2 !important; --grad-text: #00C2B2 !important; }
[data-flat="true"][data-accent="blue"]   { --grad-brand: #0077FF !important; --grad-text: #0077FF !important; }
[data-flat="true"][data-accent="purple"] { --grad-brand: #7A3DFF !important; --grad-text: #7A3DFF !important; }

/* Font family swap (display + body) */
[data-fonts="manrope"] { --font-sans: "Manrope", ui-sans-serif, system-ui, sans-serif; }
[data-fonts="inter"]   { --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif; }
[data-fonts="grotesk"] { --font-sans: "Space Grotesk", ui-sans-serif, system-ui, sans-serif; }
[data-fonts="serif"]   { --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif; }
[data-fonts="serif"] .hero-title,
[data-fonts="serif"] .sec-title,
[data-fonts="serif"] .discovery-title,
[data-fonts="serif"] .pillar h3,
[data-fonts="serif"] .principle h3,
[data-fonts="serif"] .triad-item h3,
[data-fonts="serif"] .cta-title,
[data-fonts="serif"] .faq-title {
  font-family: "DM Serif Display", "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  letter-spacing: -.015em;
}

/* Dark mode — flips the light sections. The hero / dark sections stay
   dark by design and use explicit deep-ink, not --paper. */
[data-theme="dark"] {
  --paper:   #0A1A33;
  --paper-2: #0F2240;
  --paper-3: #142A4F;
  --line:    #1D335A;
  --ink:     #F4F7FC;
  --ink-90:  #E2E8F4;
  --ink-70:  #C2CDDF;
  --ink-50:  #8FA0BF;
  --ink-20:  #3A4E73;
  --ink-10:  #25395E;
}
[data-theme="dark"] .section-light { color: var(--ink); }
[data-theme="dark"] .pillar,
[data-theme="dark"] .principle,
[data-theme="dark"] .aud,
[data-theme="dark"] .faq-item { background: var(--paper-2); border-color: var(--line); }
[data-theme="dark"] .services { background: var(--line); border-color: var(--line); }
[data-theme="dark"] .service { background: var(--paper); }
[data-theme="dark"] .service:hover { background: var(--paper-2); }
[data-theme="dark"] .pillar p,
[data-theme="dark"] .service p,
[data-theme="dark"] .aud p,
[data-theme="dark"] .principle p,
[data-theme="dark"] .faq-item p { color: var(--ink-70); }
[data-theme="dark"] .pillar-tags li,
[data-theme="dark"] .service::after { background: var(--paper-3); color: var(--ink-70); border-color: var(--line); }
[data-theme="dark"] .faq-item summary { color: var(--ink); }
[data-theme="dark"] .faq-icn { border-color: var(--ink-20); }
[data-theme="dark"] .faq-icn::before,
[data-theme="dark"] .faq-icn::after { background: var(--ink); }
[data-theme="dark"] .nav.is-light {
  background: rgba(15, 34, 64, .82);
  border-bottom-color: var(--line);
}
[data-theme="dark"] .nav.is-light .nav-name,
[data-theme="dark"] .nav.is-light .nav-links a { color: var(--ink); }
[data-theme="dark"] .nav.is-light .nav-toggle span { background: var(--ink); }
[data-theme="dark"] .p-note { color: var(--ink) !important; }

/* =================================================================
   RESPONSIVE — explicit tablet (768–1024) and mobile (<768) breakpoints
   ================================================================= */

/* ----- Tablet (≤1024px) ----- */
@media (max-width: 1024px) {
  .section { padding: clamp(72px, 9vw, 112px) 0; }
  .section-inner,
  .hero-inner,
  .nav-inner { padding-inline: clamp(20px, 4vw, 40px); }
  .sec-head { margin-bottom: clamp(40px, 5vw, 64px); }
  .sec-title { font-size: clamp(30px, 4.6vw, 48px); }

  /* Hero — "Advise. Transform. Lead." stacks; lead loses justify (looks bad short) */
  .hero { padding: clamp(112px, 18vh, 160px) 0 clamp(72px, 10vw, 112px); }
  .hero-title { font-size: clamp(56px, 11vw, 104px); white-space: normal; }
  .hero-title .word { display: block; }
  .hero-lead { text-align: left; font-size: 18px; }

  /* Grids that drop a column at tablet */
  .pillars,
  .triad,
  .audience,
  .services { grid-template-columns: repeat(2, 1fr); }
  .pillar { min-height: 0; }

  /* Two-up grids drop to one column at tablet */
  .principles,
  .discovery-grid,
  .faq-grid { grid-template-columns: 1fr; gap: clamp(32px, 5vw, 48px); }

  .discovery-visual { height: 420px; max-width: 560px; }
  .discovery-list strong { display: block; margin-bottom: 2px; }

  /* Journey: two-up rows */
  .journey { grid-template-columns: repeat(2, 1fr); gap: 40px 28px; }
  .journey::before { display: none; }
  .j-step p { max-width: none; }

  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ----- Mobile (≤640px) ----- */
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .section-inner,
  .hero-inner,
  .nav-inner { padding-inline: 20px; }
  .section-tight { padding-block: 56px; }
  .sec-head { margin-bottom: 32px; gap: 14px; }
  .sec-title { font-size: clamp(28px, 8vw, 36px); line-height: 1.06; }
  .sec-sub  { font-size: 15px; }

  /* Hero — comfortable single-column, still fills viewport */
  .hero {
    padding: 96px 0 56px;
    /* keep min-height: 100svh from the base rule so the hero covers the screen */
  }
  .hero-inner { gap: 20px; }
  .hero-title { font-size: clamp(44px, 13.5vw, 64px); letter-spacing: -.03em; }
  .hero-title .word { display: block; }
  .hero-lead { font-size: 16px; line-height: 1.6; text-align: left; }
  .hero-glow-a, .hero-glow-b { filter: blur(60px); opacity: .45; }

  /* Single-column grids */
  .pillars,
  .triad,
  .audience,
  .services,
  .principles,
  .journey,
  .discovery-grid,
  .faq-grid { grid-template-columns: 1fr; gap: 16px; }
  .principles { gap: 20px; }
  .journey { gap: 28px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; }

  /* Cards/blocks shrink padding */
  .pillar,
  .triad-item,
  .principle,
  .aud { padding: 24px; border-radius: 18px; }
  .principle { padding: 28px 24px 24px; }
  .principle h3 { font-size: 24px; }
  .pillar h3 { font-size: 26px; }
  .triad-item h3 { font-size: 24px; }

  /* Services flat-stacked */
  .services { border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
  .service { min-height: 0; padding: 22px 20px 24px; border-bottom: 1px solid var(--line); }
  .service:last-child { border-bottom: 0; }
  .service::after { position: static; align-self: flex-start; margin-bottom: 4px; }
  .service h4 { font-size: 18px; }

  /* Discovery / FAR visual stays readable but smaller */
  .discovery-title { font-size: clamp(28px, 9vw, 40px); }
  .discovery-lead { font-size: 16px; }
  .discovery-visual { height: auto; display: flex; flex-direction: column; gap: 16px; max-width: none; }
  .dv-card,
  .dv-card-1,
  .dv-card-2 { position: static; padding: 22px; }
  .dv-card-1 { right: auto; left: auto; box-shadow: none; }
  .dv-card-2 { right: auto; left: auto; }

  /* Journey on mobile becomes a left-rail timeline */
  .j-step {
    padding: 0 0 0 32px;
    position: relative;
    border-left: 1px solid rgba(255,255,255,.15);
    padding-bottom: 4px;
  }
  .j-step::before {
    content: ""; position: absolute; left: -7px; top: 6px;
    width: 13px; height: 13px; border-radius: 50%;
    background: var(--paper); border: 2px solid var(--teal); box-shadow: none;
  }
  .j-step.j-end::before { background: var(--purple); border-color: var(--purple); }
  .j-dot { display: none; }
  .j-step h4 { font-size: 22px; }

  /* Triad on mobile keeps the mark, drops the surface decoration */
  .triad-mark { width: 56px; height: 56px; }
  .triad-mark svg { width: 32px; height: 32px; }
  .triad-strap { flex-direction: column; gap: 12px; font-size: 11px; text-align: center; margin-top: 40px; }
  .triad-strap .strap-line { width: 80px; flex: 0 0 80px; }

  /* CTA */
  .cta { gap: 22px; padding-block: 16px; }
  .cta-title { font-size: clamp(28px, 9vw, 40px); letter-spacing: -.025em; max-width: none; }
  .cta-lead { font-size: 16px; }
  .cta-meta { gap: 18px 24px; margin-top: 24px; padding-top: 22px; }
  .cta-meta span { font-size: 10px; letter-spacing: .18em; }
  .cta-meta b { font-size: 14px; }

  /* FAQ */
  .faq-item summary { padding: 18px 0; font-size: 17px; gap: 16px; }
  .faq-item p { font-size: 15px; padding-bottom: 18px; }

  /* Footer */
  .footer { padding-top: 48px; }
  .footer-base { font-size: 10px; letter-spacing: .16em; text-align: left; }

  /* Pillar gradient halo is too loud on small cards */
  .pillar::before { display: none; }
}

/* =================================================================
   TWEAKS PANEL — vanilla port of the brand-kit's React panel.
   ================================================================= */
.twk-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 2147483645;
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 14px 0 12px;
  border-radius: 999px; border: 0;
  background: rgba(10, 26, 51, .82); color: #fff;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 12px 32px rgba(10,26,51,.28),
              0 0 0 1px rgba(255,255,255,.08) inset;
  font: 500 13px/1 var(--font-sans);
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .25s ease;
}
.twk-fab:hover { transform: translateY(-1px); box-shadow: 0 18px 44px rgba(10,26,51,.36),
                                                          0 0 0 1px rgba(255,255,255,.14) inset; }
.twk-fab .dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--grad-brand);
}
.twk-fab[hidden] { display: none; }

.twk-panel {
  position: fixed; right: 16px; bottom: 16px; z-index: 2147483646;
  width: 288px; max-height: calc(100vh - 32px);
  display: none; flex-direction: column;
  background: rgba(250, 250, 252, .82); color: #18253B;
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  border: .5px solid rgba(255,255,255,.6);
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset,
              0 12px 40px rgba(10,26,51,.22);
  font: 11.5px/1.4 var(--font-sans);
  overflow: hidden;
}
.twk-panel[data-open="1"] { display: flex; }
.twk-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 8px 10px 14px; user-select: none;
}
.twk-hd b { font-size: 12px; font-weight: 600; letter-spacing: .01em; }
.twk-x {
  appearance: none; border: 0; background: transparent;
  color: rgba(24, 37, 59, .55);
  width: 22px; height: 22px; border-radius: 6px;
  font-size: 13px; line-height: 1; cursor: pointer;
}
.twk-x:hover { background: rgba(0,0,0,.06); color: #18253B; }
.twk-body {
  padding: 2px 14px 14px; display: flex; flex-direction: column; gap: 10px;
  overflow-y: auto;
}
.twk-row { display: flex; flex-direction: column; gap: 6px; }
.twk-row-h { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
.twk-lbl { display: flex; justify-content: space-between; align-items: baseline; color: rgba(24, 37, 59, .72); }
.twk-lbl > span:first-child { font-weight: 500; }
.twk-val { color: rgba(24, 37, 59, .5); font-variant-numeric: tabular-nums; }
.twk-sect {
  font-size: 10px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(24, 37, 59, .45);
  padding: 8px 0 0;
}
.twk-sect:first-child { padding-top: 0; }

/* Segmented control (font + accent) */
.twk-seg {
  position: relative; display: flex; padding: 2px;
  border-radius: 8px; background: rgba(0,0,0,.06);
  user-select: none;
}
.twk-seg .thumb {
  position: absolute; top: 2px; bottom: 2px;
  border-radius: 6px; background: rgba(255,255,255,.95);
  box-shadow: 0 1px 2px rgba(0,0,0,.12);
  transition: left .18s cubic-bezier(.3,.7,.4,1), width .18s;
}
.twk-seg button {
  appearance: none; position: relative; z-index: 1;
  flex: 1; border: 0; background: transparent;
  color: inherit; font: inherit; font-weight: 500;
  min-height: 24px; border-radius: 6px;
  cursor: pointer; padding: 4px 6px; line-height: 1.2;
}

/* Toggle (flat / dark mode) */
.twk-toggle {
  position: relative; width: 32px; height: 18px;
  border: 0; border-radius: 999px;
  background: rgba(0,0,0,.18);
  transition: background .15s;
  cursor: pointer; padding: 0;
}
.twk-toggle[data-on="1"] { background: var(--blue); }
.twk-toggle i {
  position: absolute; top: 2px; left: 2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25);
  transition: transform .15s;
}
.twk-toggle[data-on="1"] i { transform: translateX(14px); }

/* Accent chip row */
.twk-chips { display: flex; gap: 6px; }
.twk-chip {
  position: relative; appearance: none;
  flex: 1; min-width: 0; height: 44px;
  padding: 0; border: 0; border-radius: 6px;
  overflow: hidden; cursor: pointer;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.12),
              0 1px 2px rgba(0,0,0,.06);
  transition: transform .12s ease, box-shadow .12s ease;
}
.twk-chip:hover { transform: translateY(-1px); }
.twk-chip[data-on="1"] {
  box-shadow: 0 0 0 1.5px rgba(10,26,51,.85),
              0 2px 6px rgba(0,0,0,.18);
}
.twk-chip svg {
  position: absolute; top: 6px; left: 6px;
  width: 13px; height: 13px;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.3));
}
.twk-btn {
  appearance: none; height: 28px; padding: 0 12px;
  border: 0; border-radius: 7px;
  background: rgba(0,0,0,.06); color: inherit;
  font: inherit; font-weight: 500; cursor: pointer;
}
.twk-btn:hover { background: rgba(0,0,0,.1); }

@media (max-width: 640px) {
  .twk-fab { right: 12px; bottom: 12px; height: 36px; padding: 0 12px 0 10px; font-size: 12px; }
  .twk-panel { right: 12px; bottom: 12px; left: 12px; width: auto; }
}

/* =================================================================
   DESKTOP: paragraphs in subsequent sections share the same reading
   width as the hero / brand narrative.
   1. Lift individual max-widths so paragraphs flow to their container.
   2. Restructure 2-col layouts that boxed prose into narrow columns
      (Discovery, FAR, FAQ, operating principles) so the prose itself
      uses the full section width.
   ================================================================= */
@media (min-width: 1024px) {
  .sec-head,
  .sec-sub,
  .discovery-lead,
  .discovery-list,
  .faq-item p,
  .cta-lead,
  .pr-quote,
  .pr-quote-lede,
  .pr-body,
  .pr-op p,
  .pr-statement:nth-of-type(2) .pr-quote,
  .j-step p,
  .principle p,
  .triad-item p,
  .pillar p,
  .aud p,
  .service p {
    max-width: none;
  }

  /* Discovery + FAR: copy block flows full-width above the visual cards. */
  .discovery-grid {
    grid-template-columns: 1fr;
    gap: clamp(40px, 4vw, 64px);
    align-items: stretch;
  }
  .discovery-visual {
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(16px, 1.5vw, 24px);
  }
  .dv-card,
  .dv-card-1,
  .dv-card-2 {
    position: static;
    inset: auto;
    box-shadow: none;
  }
  .dv-card-1 { box-shadow: 0 18px 60px -10px rgba(0,119,255,.25); }

  /* FAQ: single-column layout, header on top, list below at full width. */
  .faq-grid {
    grid-template-columns: 1fr;
    gap: clamp(32px, 4vw, 56px);
  }

}

/* =================================================================
   DISCOVERY RANGE — JS-driven animated accordion. Each pillar opens a
   3-up grid of Discovery services with a staggered fade-up that matches
   the .reveal lazy-load language used elsewhere on the site.
   ================================================================= */
.dr-pillars {
  display: flex; flex-direction: column;
  gap: 14px;
}
.dr-pillar {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--paper);
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease;
}
/* Muted pillar: dimmed title/desc, non-interactive summary, no hover
   affordance. The chevron icon is hidden since it can't open. */
.dr-pillar-muted .dr-pillar-summary {
  cursor: default;
}
.dr-pillar-muted .dr-pillar-title,
.dr-pillar-muted .dr-pillar-desc {
  opacity: .55;
}
.dr-pillar-muted .dr-pillar-icn { opacity: .3; }
.dr-pillar-muted:hover { border-color: var(--line); box-shadow: none; }

/* Inline status badges next to pillar titles / service names. */
.dr-badge {
  display: inline-flex; align-items: center; gap: 5px;
  vertical-align: middle;
  margin-left: 10px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  font-weight: 500;
}
.dr-badge::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor;
}
.dr-badge-beta {
  color: #0a7a66;
  background: rgba(0, 194, 178, .12);
  border: 1px solid rgba(0, 194, 178, .35);
}
.dr-badge-soon {
  color: var(--ink-50);
  background: var(--paper-2);
  border: 1px solid var(--line);
}

/* Muted individual service card. */
.dr-service-muted { opacity: .6; }
.dr-service-muted h4 { color: var(--ink-70); }
.dr-pillar:hover { border-color: var(--ink-20); }
.dr-pillar[data-open="true"] {
  border-color: var(--ink-20);
  box-shadow: var(--sh-2);
}

/* Summary is a div+role=button (avoids native button chrome edge cases
   like Chromium's flex/grid quirks on <button> and any UA gray
   background bleeding through `appearance: none`). */
.dr-pillar-summary {
  width: 100%;
  cursor: pointer;
  font: inherit; color: inherit;
  padding: clamp(20px, 2vw, 28px) clamp(20px, 2.5vw, 32px);
  display: flex; align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 40px);
  user-select: none;
}
.dr-pillar-summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
  border-radius: var(--r-xl);
}
.dr-pillar-head {
  flex: 1 1 0;
  display: flex; flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.dr-pillar-title {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.15;
  letter-spacing: -.015em;
  padding-bottom: .08em;
  font-weight: 700;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  width: max-content; max-width: 100%;
}
.dr-pillar-desc {
  margin: 0;
  font-size: 16px; line-height: 1.55;
  color: var(--ink-70);
}

/* Plus → minus icon. Open state fills the circle with the brand gradient. */
.dr-pillar-icn {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--ink-10);
  position: relative;
  transition: border-color .25s ease, background .25s ease;
}
.dr-pillar-icn::before,
.dr-pillar-icn::after {
  content: ""; position: absolute;
  left: 50%; top: 50%;
  background: var(--ink);
  transition: opacity .25s ease, transform .25s ease, background .25s ease;
}
.dr-pillar-icn::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.dr-pillar-icn::after  { width: 2px; height: 14px; transform: translate(-50%, -50%); }
.dr-pillar[data-open="true"] .dr-pillar-icn {
  border-color: transparent;
  background: var(--grad-brand);
}
.dr-pillar[data-open="true"] .dr-pillar-icn::before,
.dr-pillar[data-open="true"] .dr-pillar-icn::after { background: #fff; }
.dr-pillar[data-open="true"] .dr-pillar-icn::after { opacity: 0; transform: translate(-50%, -50%) scale(.5); }
.dr-pillar:not([data-open="true"]):hover .dr-pillar-icn { border-color: var(--ink-50); }

/* Animated panel — JS sets height to scrollHeight then to auto. */
.dr-services-wrap {
  height: 0;
  overflow: hidden;
  transition: height .4s cubic-bezier(.3,.7,.4,1);
}

.dr-services {
  padding: 4px clamp(20px, 2.5vw, 32px) clamp(24px, 3vw, 36px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
  border-top: 1px solid var(--line);
  padding-top: clamp(20px, 2.5vw, 28px);
}

/* Service cards fade + slide in, staggered. Same idiom as .reveal. */
.dr-service {
  padding: clamp(18px, 2vw, 22px);
  border-radius: var(--r-lg);
  background: var(--paper-2);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .45s ease, transform .45s ease;
}
.dr-pillar[data-open="true"] .dr-service { opacity: 1; transform: translateY(0); }
.dr-pillar[data-open="true"] .dr-service:nth-child(1) { transition-delay: .12s; }
.dr-pillar[data-open="true"] .dr-service:nth-child(2) { transition-delay: .20s; }
.dr-pillar[data-open="true"] .dr-service:nth-child(3) { transition-delay: .28s; }
.dr-service h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.005em;
  color: var(--ink);
}
.dr-service p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-70);
}

@media (prefers-reduced-motion: reduce) {
  .dr-services-wrap { transition: none; }
  .dr-service { transition: none; opacity: 1; transform: none; }
}

@media (max-width: 1024px) {
  .dr-services { grid-template-columns: 1fr 1fr; }
  .dr-pillar-summary { padding: 20px 22px; }
}
@media (max-width: 640px) {
  .dr-services { grid-template-columns: 1fr; padding: 16px 18px 20px; gap: 12px; }
  .dr-pillar-summary { padding: 18px 18px; gap: 14px; }
  .dr-pillar-title { font-size: 22px; }
  .dr-pillar-icn { width: 32px; height: 32px; }
}

/* =================================================================
   FAR section layout (after the triad was moved in)
   ================================================================= */
#far .section-inner {
  display: flex; flex-direction: column;
  gap: clamp(40px, 5vw, 64px);
}
#far .discovery-copy { display: flex; flex-direction: column; }
.far-cta {
  align-self: flex-start;
  margin-top: clamp(8px, 1vw, 16px);
}
