/* ==========================================================================
   TT4D — styles.css
   Apple-grade minimalism. Near-black canvas, one cinematic object, vast
   whitespace, light typography, no HUD. Quiet and confident.

   >>> RE-SKIN HERE: the ":root" block holds every color, font & shape token. <<<
   ========================================================================== */

:root {
  /* ---- COLOR (edit me) — monochrome, Apple-like ----------------------- */
  --bg:        #1d1e20;   /* dark grey base                  */
  --bg-soft:   #25262a;   /* subtle alternate section        */
  --surface:   #2b2c30;   /* card / media wells              */
  --line:      #3a3b40;   /* hairlines                       */
  --text:      #f3f2ef;   /* near-white                      */
  --muted:     #adabb0;   /* secondary text (AA)             */
  --faint:     #908f96;   /* tertiary / labels (AA on bg/soft) */
  --accent:    #e0a23f;   /* amber accent (AA on dark)       */
  --win:       #4cc77e;   /* green — best-match highlight     */
  --on-accent: #15130e;

  /* ---- TYPE ----------------------------------------------------------- */
  --f-sans: "Space Grotesk", "Inter", system-ui, -apple-system, sans-serif;

  /* ---- SHAPE / LAYOUT (rounded) -------------------------------------- */
  --r-pill: 999px;
  --r-media: 10px;
  --maxw:   1080px;       /* text column            */
  --maxw-wide: 1460px;    /* media / wide rows      */
  --gutter: clamp(22px, 6vw, 60px);

  /* ---- MOTION (one system — see impeccable/animate.md) --------------- */
  --ease-out-quart: cubic-bezier(.25, 1, .5, 1);   /* default UI easing  */
  --ease-out-quint: cubic-bezier(.22, 1, .36, 1);  /* signature reveals  */
  --ease-out-expo:  cubic-bezier(.16, 1, .3, 1);   /* entrances          */
  --dur-fast:  150ms;   /* immediate feedback: hover colour, links       */
  --dur-base:  250ms;   /* state transitions: buttons, toggles, hovers   */
  --dur-slow:  400ms;   /* layout / image zoom / drawers                 */
  --dur-enter: 600ms;   /* scroll entrances                              */
}

/* ==========================================================================
   BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--f-sans); font-size: 17px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--text); color: var(--bg); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 1000; background: var(--text); color: var(--bg); padding: 10px 16px; font-size: .85rem; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; top: 0; }

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--wide { max-width: var(--maxw-wide); }
.section { padding-block: clamp(84px, 11vw, 168px); position: relative; }
/* consistent horizontal gutter for every section's content container */
.statement-block, .cards-intro, .cards, .why, .trio, .proof__grid, .matchviz, .team-split, .stack-wrap { padding-inline: var(--gutter); }
.section--soft { background: var(--bg-soft); }
.center { text-align: center; margin-inline: auto; }

/* small label */
.eyebrow { font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 22px; }
.eyebrow--accent { color: var(--accent); }

/* ==========================================================================
   TYPE SCALE
   ========================================================================== */
.display { font-weight: 300; font-size: clamp(2.6rem, 6.8vw, 5.6rem); line-height: 1.0; letter-spacing: -0.04em; }
.h2 { font-weight: 300; font-size: clamp(2rem, 4.6vw, 3.7rem); line-height: 1.06; letter-spacing: -0.035em; }
.lead { color: var(--muted); font-size: clamp(1.12rem, 1.7vw, 1.5rem); line-height: 1.45; font-weight: 400; }
.lead--tight { max-width: 46ch; }

/* widow/orphan control — balance short headlines, prettify body wrapping */
.display, .h2, .hero__title, .statement, .feature__title, .card__title, .warp__title { text-wrap: balance; }
.lead, .hero__sub, .feature__text, .cta__sub, .statement .muted { text-wrap: pretty; }

/* a big editorial statement: white lead-in, muted continuation */
.statement { font-weight: 300; font-size: clamp(1.7rem, 3.9vw, 3.1rem); line-height: 1.16; letter-spacing: -0.03em; max-width: none; }
.statement .muted { color: var(--faint); }
.statement__win { color: var(--accent); }
.statement--center { margin-inline: auto; max-width: 24ch; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn { display: inline-flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 500; padding: 14px 28px; border-radius: var(--r-pill); border: 1px solid transparent; cursor: pointer; transition: transform var(--dur-base) var(--ease-out-quart), background var(--dur-base) var(--ease-out-quart), color var(--dur-base) var(--ease-out-quart), border-color var(--dur-base) var(--ease-out-quart), opacity var(--dur-base) var(--ease-out-quart); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: var(--dur-fast); }
.btn--primary { background: var(--text); color: var(--bg); }
.btn--primary:hover { opacity: .9; }
.btn--text { padding: 14px 6px; color: var(--text); }
.btn--text .arw { transition: transform var(--dur-base) var(--ease-out-quart); }
.btn--text:hover .arw { transform: translateX(5px); }

/* ==========================================================================
   NAV  (slim, translucent, Apple)
   ========================================================================== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: transparent; border-bottom: 1px solid transparent; transition: background var(--dur-base) var(--ease-out-quart), border-color var(--dur-base) var(--ease-out-quart); }
.nav.is-scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav__inner { max-width: var(--maxw-wide); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; gap: 24px; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 9px; }
.brand__mark { width: 30px; height: 30px; color: var(--text); flex: none; }
.brand__word { font-weight: 600; font-size: 1.12rem; letter-spacing: .01em; }
.nav__links { margin-left: auto; display: flex; gap: 30px; font-size: .92rem; }
.nav__links a { color: var(--muted); transition: color var(--dur-fast) var(--ease-out-quart); }
.nav__links a:hover { color: var(--text); }
.nav__cta { font-size: .92rem; color: var(--text); }
.nav__cta:hover { color: var(--accent); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; width: 38px; height: 38px; padding: 8px; }
.nav__toggle span { display: block; height: 2px; background: var(--text); margin: 5px 0; transition: transform var(--dur-base) var(--ease-out-quart), opacity var(--dur-base) var(--ease-out-quart); }

/* ==========================================================================
   HERO  (full-bleed cinematic video, minimal overlay)
   ========================================================================== */
/* Inset, rounded hero panel framed in black (Anduril-style edges) */
.hero { position: relative; height: 100svh; min-height: 560px; margin: 0; border-radius: 0; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; background: var(--bg); }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; filter: contrast(1.04) saturate(1.06) brightness(.86); }
.hero__overlay { position: absolute; inset: 0; z-index: 1; background: radial-gradient(85% 70% at 50% 52%, rgba(0,0,0,.52) 0%, rgba(0,0,0,.2) 55%, transparent 78%), linear-gradient(180deg, rgba(0,0,0,.5) 0%, transparent 30%, transparent 58%, rgba(0,0,0,.9) 100%); }
.hero__inner { position: relative; z-index: 2; max-width: 900px; padding-block: 80px; }
.hero__title { font-weight: 300; font-size: clamp(3rem, 8.5vw, 6.8rem); line-height: 0.95; letter-spacing: -0.04em; }
.hero__sub { margin: 26px auto 0; max-width: 46ch; color: var(--muted); font-size: clamp(1.12rem, 1.7vw, 1.45rem); line-height: 1.45; }
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero__scroll { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 2; color: var(--faint); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; animation: floaty 2.4s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translate(-50%, 0); opacity: .6; } 50% { transform: translate(-50%, 6px); opacity: 1; } }

/* Hero sits over a dark video — keep its text/controls light regardless of page theme */
.hero__title { color: #fff; }
.hero__sub { color: rgba(255,255,255,.86); }
.hero .eyebrow { color: #e8b24a; }
.hero__scroll { color: rgba(255,255,255,.72); }
.hero .btn--primary { background: #fff; color: #15130e; }
.hero .btn--primary:hover { background: #fff; }
.hero .btn--text { color: #fff; }

/* ==========================================================================
   STATEMENT SECTION
   ========================================================================== */
.statement-block { max-width: var(--maxw-wide); margin-inline: auto; }

/* ==========================================================================
   FEATURE (big rounded media + concise text, centered)
   ========================================================================== */
.feature { text-align: center; }
.feature__title { margin-top: 6px; }
.feature__text { color: var(--muted); font-size: clamp(1.1rem, 1.6vw, 1.4rem); line-height: 1.5; max-width: 40ch; margin: 22px auto 0; }
.feature__media { margin: clamp(44px, 6vw, 80px) auto 0; max-width: var(--maxw-wide); border-radius: var(--r-media); overflow: hidden; background: var(--surface); aspect-ratio: 16 / 9; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__media--square { max-width: 760px; aspect-ratio: 4 / 3; }

/* ==========================================================================
   PROOF (quiet numbers row)
   ========================================================================== */
.proof__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: var(--maxw-wide); margin-inline: auto; text-align: center; }
.proof__num { font-weight: 700; font-size: clamp(2.8rem, 6vw, 4.8rem); letter-spacing: -0.045em; line-height: 1; }
.proof__num .u { color: var(--faint); }
.proof__label { margin-top: 14px; color: var(--muted); font-size: .98rem; }

/* ==========================================================================
   PROGRAM CARDS  (Anduril-style grid — big image, title + tag + arrow)
   ========================================================================== */
.cards-intro { max-width: var(--maxw-wide); margin: 0 auto; }
.cards-intro .feature__text { margin: 18px 0 0; text-align: left; max-width: 56ch; }
.cards { max-width: var(--maxw-wide); margin: clamp(48px, 6vw, 88px) auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 0; overflow: hidden; background: #0c0c0e; color: #fff; }
.card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: transform var(--dur-slow) var(--ease-out-quart); }
.card:hover .card__img { transform: scale(1.06); }
.card__grad { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, rgba(0,0,0,.8) 100%); }
.card__body { position: absolute; left: 24px; right: 58px; bottom: 22px; z-index: 2; }
.card__title { font-size: clamp(20px, 1.9vw, 28px); font-weight: 600; letter-spacing: -0.02em; }
.card__tag { margin-top: 4px; color: rgba(255,255,255,.72); font-size: 15px; }
.card__arw { position: absolute; right: 22px; bottom: 22px; z-index: 2; font-size: 22px; line-height: 1; opacity: .72; transition: transform var(--dur-base) var(--ease-out-quart), opacity var(--dur-base) var(--ease-out-quart); }
.card:hover .card__arw { transform: translate(4px, -4px); opacity: 1; }

/* ==========================================================================
   APPROACH TRIO (minimal three steps)
   ========================================================================== */
.trio { max-width: var(--maxw-wide); margin: clamp(56px, 6vw, 96px) auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(44px, 5vw, 88px); }
.trio__n { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .04em; }
.trio__item h3 { margin-top: 10px; font-size: clamp(20px, 2.2vw, 27px); font-weight: 600; letter-spacing: -0.02em; }
.trio__item p { margin-top: 8px; color: var(--muted); font-size: 16px; line-height: 1.5; }

@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } .trio { grid-template-columns: 1fr; gap: 34px; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta { text-align: center; }
.cta__sub { color: var(--muted); font-size: clamp(1.08rem, 1.6vw, 1.35rem); margin: 22px auto 0; max-width: 44ch; }
.cta__actions { margin-top: 38px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { border-top: 1px solid var(--line); padding-block: 60px 40px; background: var(--bg); }
.footer__inner { max-width: var(--maxw-wide); margin-inline: auto; padding-inline: var(--gutter); display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer__links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h5 { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.footer__col a { color: var(--muted); font-size: .94rem; }
.footer__col a:hover { color: var(--text); }
.footer__bottom { max-width: var(--maxw-wide); margin: 48px auto 0; padding-inline: var(--gutter); color: var(--faint); font-size: .82rem; }

/* ==========================================================================
   SCROLL REVEAL  (single block reveal + capped child stagger)
   ========================================================================== */
html.has-js .reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--dur-enter) var(--ease-out-expo), transform var(--dur-enter) var(--ease-out-expo); }
html.has-js .reveal.is-visible { opacity: 1; transform: none; }

/* staggered grids — children rise in sequence, 55ms apart, capped under 500ms */
html.has-js .stagger > * { opacity: 0; transform: translateY(16px); transition: opacity var(--dur-enter) var(--ease-out-expo), transform var(--dur-enter) var(--ease-out-expo); transition-delay: calc(var(--si, 0) * 55ms); }
html.has-js .stagger.is-visible > * { opacity: 1; transform: none; }
.stagger > *:nth-child(1) { --si: 0; } .stagger > *:nth-child(2) { --si: 1; } .stagger > *:nth-child(3) { --si: 2; } .stagger > *:nth-child(4) { --si: 3; } .stagger > *:nth-child(5) { --si: 4; } .stagger > *:nth-child(6) { --si: 5; } .stagger > *:nth-child(7) { --si: 6; } .stagger > *:nth-child(n+8) { --si: 7; }

/* ACCESSIBILITY: honour reduced-motion globally (impeccable/animate.md) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  html.has-js .reveal, html.has-js .stagger > * { opacity: 1; transform: none; }
  .warp .wire * { stroke-dashoffset: 0; }
  .hero__scroll, .hero__video { animation: none; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 760px) {
  .nav__links { position: fixed; inset: 56px 0 auto 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; transform: translateY(-130%); transition: transform var(--dur-slow) var(--ease-out-quart); }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__cta { display: none; }
  .nav__toggle { display: block; margin-left: auto; }
  .nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .proof__grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ==========================================================================
   TRUST BAR (university wordmarks — text, trademark-safe)
   ========================================================================== */
.logos { max-width: var(--maxw-wide); margin-inline: auto; padding: clamp(30px,4vw,52px) var(--gutter); text-align: center; border-bottom: 1px solid var(--line); }
.logos__label { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 22px; }
.logos__row { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(18px, 3.2vw, 46px); padding: 0; }
.logos__row li { font-size: clamp(16px, 1.7vw, 22px); font-weight: 600; letter-spacing: -0.015em; color: var(--text); opacity: .8; transition: opacity var(--dur-base) var(--ease-out-quart), color var(--dur-base) var(--ease-out-quart); }
.logos__row li:hover { opacity: 1; color: var(--text); }
.logos__row img { height: 26px; width: auto; display: block; opacity: .8; filter: grayscale(1); transition: opacity var(--dur-base) var(--ease-out-quart); }
.logos__row li:hover img { opacity: 1; }

/* ==========================================================================
   ENGINE CARD (Palantir-style white line-art panel)
   ========================================================================== */
.warp { position: relative; max-width: var(--maxw-wide); margin: 0 auto; display: grid; grid-template-columns: minmax(280px, 42%) 1fr; gap: clamp(28px, 4vw, 72px); align-items: start; background: #111114; border: 1px solid var(--line); border-radius: 14px; padding: clamp(26px, 3.4vw, 52px); }
.warp__panel { background: #0b0b0d; border: 1px solid var(--line); border-radius: 10px; padding: clamp(22px, 2.4vw, 34px); }
.warp__eyebrow { font-size: .76rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.warp__title { font-weight: 600; font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.12; letter-spacing: -0.02em; }
.warp__arw { color: var(--accent); }
.warp__art { display: flex; flex-direction: column; gap: clamp(16px, 2.4vw, 30px); }
.warp__row { display: grid; grid-template-columns: 84px 1fr; align-items: center; gap: 18px; }
.warp__label { font-size: 14px; color: var(--muted); padding-top: 8px; border-top: 1px solid var(--line); }
.wire { width: 100%; height: auto; color: #fff; }
.warp__meta { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 6px; }
.warp__meta .k { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.warp__meta .v { color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* signature reveal — wireframes draw themselves in (ease-out-quint, staggered) */
.warp .wire * { stroke-dasharray: 540; stroke-dashoffset: 540; }
.warp.is-visible .wire * { animation: wiredraw var(--dur-enter) var(--ease-out-quint) forwards; }
.warp.is-visible .warp__row:nth-child(2) .wire * { animation-delay: .12s; }
.warp.is-visible .warp__row:nth-child(3) .wire * { animation-delay: .24s; }
@keyframes wiredraw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .warp .wire * { stroke-dashoffset: 0; animation: none; } }
@media (max-width: 820px) { .warp { grid-template-columns: 1fr; } .warp__meta { grid-template-columns: 1fr; gap: 18px; } }

/* ==========================================================================
   WHY LABS LOSE (problem grid)
   ========================================================================== */
.why { max-width: var(--maxw-wide); margin: clamp(56px,7vw,96px) auto 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(44px,5vw,80px) clamp(56px,7vw,128px); }
.why__item { border-top: 1px solid var(--line); padding-top: 22px; }
.why__n { font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: .14em; text-transform: uppercase; }
.why__item h3 { margin-top: 12px; font-size: clamp(20px,2.1vw,26px); font-weight: 600; letter-spacing: -0.02em; }
.why__item p { margin-top: 10px; color: var(--muted); font-size: 16.5px; line-height: 1.55; max-width: 46ch; }

/* ==========================================================================
   AI MATCHING VIZ  (deep network — random path each cycle, built in script.js)
   ========================================================================== */
.matchviz { max-width: 940px; margin: clamp(40px, 5vw, 72px) auto 0; }
.matchviz .mvz { width: 100%; height: auto; display: block; overflow: visible; }
.mvz text { font-family: var(--f-sans); }
.mvz-tag   { fill: var(--faint); font-size: 11px; font-weight: 600; letter-spacing: .1em; }
.mvz-label { fill: var(--text); font-size: 12.5px; font-weight: 500; }
.mv-cap    { margin-top: 22px; text-align: center; color: var(--faint); font-size: 13.5px; }

.mvz-edge { stroke: var(--line); stroke-width: 1; opacity: .45; }
.mvz-node { transition: filter var(--dur-base) var(--ease-out-quart); }
.mvz-node rect { fill: var(--surface); stroke: var(--line); stroke-width: 1;
                 transition: fill var(--dur-base) var(--ease-out-quart), stroke var(--dur-base) var(--ease-out-quart); }
/* good match — lights up amber */
.mvz-node.mv-hit rect { stroke: var(--accent); stroke-width: 1.6; fill: color-mix(in srgb, var(--accent) 28%, var(--surface)); }
.mvz-node.mv-hit { filter: drop-shadow(0 0 7px color-mix(in srgb, var(--accent) 45%, transparent)); }
/* highest probability of win — green */
.mvz-node.mv-win rect { stroke: var(--win); stroke-width: 1.9; fill: color-mix(in srgb, var(--win) 30%, var(--surface)); }
.mvz-node.mv-win { filter: drop-shadow(0 0 11px color-mix(in srgb, var(--win) 60%, transparent)); }
.mvz-node.mv-win .mvz-label { fill: #eafff3; font-weight: 600; }
.mvz-path { fill: none; stroke-width: 2.3; stroke-linejoin: round; stroke-linecap: round; }

/* ==========================================================================
   TEAM  (group photo + credits, split left/right on desktop)
   ========================================================================== */
.team-split { max-width: var(--maxw-wide); margin: clamp(40px, 5vw, 72px) auto 0; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 4vw, 64px); align-items: center; }
.team-photo { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-media); overflow: hidden; background: var(--surface); margin: 0; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; display: block; }
.team-photo__cap { position: absolute; inset: 0; display: none; place-items: center; color: var(--faint); font-size: 14px; letter-spacing: .04em; }
.team-photo.is-empty .team-photo__cap { display: grid; }
.team-credits { display: flex; flex-direction: column; }
.team-credit { padding: 16px 0; border-top: 1px solid var(--line); }
.team-credit:last-child { border-bottom: 1px solid var(--line); }
.team-credit__name { font-size: clamp(18px, 1.9vw, 22px); font-weight: 600; letter-spacing: -0.01em; }
.team-credit__role { display: block; margin-top: 3px; color: var(--faint); font-size: 14.5px; }
@media (max-width: 760px) { .team-split { grid-template-columns: 1fr; gap: 28px; } }

/* ==========================================================================
   WHERE WE SIT — system-diagram pipeline (input → steps → outcome)
   ========================================================================== */
.stack-wrap { max-width: var(--maxw-wide); margin: clamp(40px, 5vw, 72px) auto 0; }
.flow { display: flex; align-items: stretch; gap: 6px; }
.flow__node { flex: 1; min-width: 0; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-media); padding: clamp(14px, 1.4vw, 20px) clamp(12px, 1.2vw, 18px); }
.flow__node--ours { background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.flow__node--ours .flow__node h3, .flow__node--ours h3 { color: var(--text); }
.flow__arr--ours { color: var(--accent); }
.flow__node--edge { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent); }
.flow__node--award { background: #0f7a4a; border-color: #0f7a4a; }
.flow__node--award .flow__n { color: rgba(255,255,255,.85); }
.flow__node--award h3 { color: #fff; }
.flow__node--award p { color: #fff; opacity: 1; font-weight: 500; }
/* self-learning feedback loop — ⊔ return path from Awarded back into Match */
.flow__loop { position: relative; height: 56px; margin-top: 2px; }
.flow__loop::before { content: ""; position: absolute; left: 24%; right: 7%; top: 0; height: 36px; border: 1.6px dashed color-mix(in srgb, var(--accent) 55%, transparent); border-top: none; border-radius: 0 0 12px 12px; }
.flow__loop-arrow { position: absolute; left: 24%; top: -6px; transform: translateX(-50%); width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 8px solid var(--accent); }
.flow__loop-label { position: absolute; left: 50%; top: 26px; transform: translate(-50%, -50%); background: var(--bg-soft); padding: 0 14px; color: var(--accent); font-size: 13px; font-weight: 600; white-space: nowrap; }
@media (max-width: 760px) {
  /* vertical flow: loop returns up the left side */
  .flow__loop { height: auto; margin-top: 14px; text-align: center; }
  .flow__loop::before, .flow__loop-arrow { display: none; }
  .flow__loop-label { position: static; transform: none; display: inline-block; white-space: normal; background: none; padding: 0; }
}
.flow__n { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.flow__node h3 { margin-top: 9px; font-size: clamp(15px, 1.5vw, 18px); font-weight: 600; letter-spacing: -0.01em; }
.flow__node p { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.flow__arr { flex: none; align-self: center; color: var(--faint); font-size: 18px; }
.flow__chip { position: absolute; left: 50%; bottom: -11px; transform: translateX(-50%); white-space: nowrap; font-size: 10.5px; font-weight: 600; letter-spacing: .01em; color: var(--accent); background: var(--bg-soft); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: var(--r-pill); padding: 4px 11px; }
.flow__rail { margin: 28px auto 0; text-align: center; color: var(--muted); font-size: 14.5px; }
.flow__rail strong { color: var(--accent); font-weight: 600; }
@media (max-width: 760px) {
  .flow { flex-direction: column; gap: 4px; }
  .flow__node { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: baseline; }
  .flow__node h3 { margin-top: 0; }
  .flow__node p { grid-column: 2; }
  .flow__n { grid-column: 1; grid-row: 1 / span 2; padding-top: 2px; }
  .flow__arr { transform: rotate(90deg); font-size: 15px; margin: 1px 0; }
  .flow__chip { position: static; transform: none; display: inline-block; grid-column: 2; margin-top: 8px; justify-self: start; }
}

/* ==========================================================================
   MOBILE — stack + center
   ========================================================================== */
@media (max-width: 600px) {
  /* hero full-bleed: no side margins, no rounded edges */
  .hero { margin: 0; border-radius: 0; height: 100svh; }
  /* hero CTAs stack on top of each other, centered */
  .hero__actions { flex-direction: column; align-items: center; gap: 12px; }
  .hero__actions .btn { justify-content: center; }
  /* center section intros + the big statement */
  .cards-intro { text-align: center; }
  .cards-intro .feature__text { text-align: center !important; margin-inline: auto !important; }
  .statement { text-align: center; }
  .team-credits { text-align: center; align-items: center; }
}

/* ==========================================================================
   VARIED MOSAIC CARD GRID (one featured wide/tall card)
   ========================================================================== */
.cards--mosaic { grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(148px, 15.5vw, 230px); }
.cards--mosaic .card { grid-column: span 2; grid-row: span 1; aspect-ratio: auto; min-width: 0; }
.cards--mosaic .card--feat { grid-column: span 4; grid-row: span 2; }
.cards--mosaic .card--feat .card__title { font-size: clamp(24px, 2.6vw, 38px); }
.cards--mosaic .card--feat .card__tag { font-size: clamp(15px, 1.3vw, 18px); }
@media (max-width: 900px) {
  .cards--mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(150px,30vw,210px); }
  .cards--mosaic .card { grid-column: span 1; }
  .cards--mosaic .card--feat { grid-column: span 2; grid-row: span 2; }
  .why { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cards--mosaic { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .cards--mosaic .card, .cards--mosaic .card--feat { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 11; min-width: 0; }
}
