/* ==========================================================================
   PAGES — hero deck, platform stack, programme panels, company, careers
   ========================================================================== */

/* ---------------- HOME HERO: full-bleed live 3D deck ---------------- */
.hero { position: relative; height: 100svh; min-height: 280px; overflow: hidden;
  /* behind the line-art scene: a quiet, deep instrument background */
  background: radial-gradient(120% 90% at 70% 45%, color-mix(in srgb, var(--surface) 90%, transparent), var(--deep) 70%); }
.hero__scenes { position: absolute; inset: 0; }
.hero__scenes .stage { position: absolute; inset: 0; background: transparent; }
.hero__veil { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
  linear-gradient(to bottom,
    color-mix(in srgb, var(--deep) 78%, transparent) 0%,
    color-mix(in srgb, var(--deep) 30%, transparent) 14%,
    transparent 26%),
  linear-gradient(to top,
    color-mix(in srgb, var(--deep) 96%, transparent) 0%,
    color-mix(in srgb, var(--deep) 40%, transparent) 25%,
    transparent 65%),
  linear-gradient(to right,
    color-mix(in srgb, var(--deep) 92%, transparent) 0%,
    color-mix(in srgb, var(--deep) 55%, transparent) 28%,
    transparent 65%);}
.hero__copy { position: absolute; z-index: 4; left: var(--gut); top: calc(var(--nav-h) + clamp(34px, 8vh, 96px)); width: min(900px, 60vw); }
.hero .display { font-size: clamp(44px, 7.2vh, 72px); }   /* scales with screen height; 72px max */

.hero__copy .display .hl-1 {
  font-size: 1.45em;          /* size: 1.25 × the headline size (1.1em = smaller · 1.4em = bigger) */
  font-weight: 400;           /* boldness: 200 thin · 300 light (current) · 400 regular · 500 medium */
  color: var(--bone);         /* colour: var(--bone) = off-white · var(--accent) = orange · or any hex, e.g. #ffffff */
  letter-spacing: .01em;      /* space between letters: 0 = tight · .04em = wider · .08em = very wide */
  white-space: nowrap;        /* keeps "ZERO BLIND SPOTS." on one line */
}


.hero__copy .display > .split__line:first-child {
  position: relative;
  top: -8px;
}
.hero__copy .display { margin-bottom: 32px; }
.hero__copy .display em { font-style: normal; color: var(--bone-3); }
.hero__copy .lede { max-width: 46ch; font-size: clamp(18px, 1.05vw, 20px); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 62px; }
.hero__deck { position: absolute; z-index: 4; left: var(--gut); right: var(--gut); bottom: 72px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); box-shadow: 0 0 0 1px var(--line); }
.deck__btn { position: relative; display: flex; align-items: center; gap: 13px; text-align: left; padding: 14px 16px; background: color-mix(in srgb, var(--void) 84%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); overflow: hidden; transition: background var(--d-mid), color var(--d-mid); }
.deck__l { font: var(--w-display) 30px/.8 var(--f-display); color: transparent; -webkit-text-stroke: 1.2px var(--bone-4); flex: none; width: 24px; transition: -webkit-text-stroke-color var(--d-mid); }
.deck__t .mono { display: block; color: var(--bone-3); font-size: 9px; margin-bottom: 4px; }
.deck__t b { font: var(--w-heading) 10px/1 var(--f-display); text-transform: uppercase; letter-spacing: .01em; }
.deck__bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--ember); transform: scaleX(var(--p, 0)); transform-origin: left; }
.deck__btn:hover { background: color-mix(in srgb, var(--surface-2) 90%, transparent); }
.deck__btn[aria-pressed="true"] { background: var(--bone); color: var(--deep); }
.deck__btn[aria-pressed="true"] .deck__l { -webkit-text-stroke-color: var(--ember); }
.deck__btn[aria-pressed="true"] .deck__t .mono { color: var(--bone-3); }
.deck__btn:not([aria-pressed="true"]) .deck__bar { transform: scaleX(0); }
.hero__scroll { position: absolute; z-index: 4; right: var(--gut); top: calc(var(--nav-h) + clamp(34px, 8vh, 96px)); writing-mode: vertical-rl; display: flex; align-items: center; gap: 14px; color: var(--bone-3); }
.hero__scroll i { display: block; width: 1px; height: 54px; background: linear-gradient(to bottom, var(--bone-3), transparent); }
.hero .chapters { bottom: 128px; left: auto; right: var(--gut); width: min(700px, 46vw); gap: 6px; }
.hero .chapters .chapter { padding: 11px 13px 14px; }
.hero .chapters .chapter b { font-size: 15px; }
.hero .chapters .chapter p { font-size: 11.5px; line-height: 1.38; }
/* the deck already names the programme, so the hero HUD stays minimal */
.hero .stage__hud { top: calc(var(--nav-h) + 18px); justify-content: flex-end; gap: 22px; }
.hero .stage__hud span:first-child { display: none; }
/* ---------- HERO ANIMATION LAYER ---------- */
/* instrument frame: corner marks that draw in, then hold */
.hero__frame { position: absolute; z-index: 3; inset: calc(var(--nav-h) + 6px) 20px 18px; pointer-events: none; }
.hero__frame i { position: absolute; width: 22px; height: 22px; border: 0 solid color-mix(in srgb, var(--bone) 42%, transparent); opacity: 0; animation: frameIn 1.1s var(--e-out) forwards; }
.hero__frame i:nth-child(1) { left: 0; top: 0; border-width: 1px 0 0 1px; --fx: -14px; --fy: -14px; }
.hero__frame i:nth-child(2) { right: 0; top: 0; border-width: 1px 1px 0 0; --fx: 14px; --fy: -14px; animation-delay: .08s; }
.hero__frame i:nth-child(3) { right: 0; bottom: 0; border-width: 0 1px 1px 0; --fx: 14px; --fy: 14px; animation-delay: .16s; }
.hero__frame i:nth-child(4) { left: 0; bottom: 0; border-width: 0 0 1px 1px; --fx: -14px; --fy: 14px; animation-delay: .24s; }
@keyframes frameIn { from { opacity: 0; transform: translate(var(--fx), var(--fy)); } to { opacity: 1; transform: none; } }
/* live telemetry line, bottom-right above the programme switch */
.hero__tele { position: absolute; z-index: 4; right: 33px; top: calc(var(--nav-h) + 50px); display: flex; gap: 22px; align-items: center; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-3); opacity: 0; animation: teleIn .9s var(--e-out) 1.4s forwards; }
.hero__tele span { white-space: nowrap; }
.hero__tele [data-t="sector"] { display: none; }   /* hides "LEH SECTOR" */
.hero__tele [data-t="utc"] { color: var(--bone-2); font-variant-numeric: tabular-nums; }
.hero__tele b { display: inline-flex; gap: 2px; margin-left: 6px; vertical-align: -1px; }
.hero__tele b i { width: 3px; height: 9px; background: var(--bone-4); transition: background .3s; }
.hero__tele b i.on { background: var(--accent); }
@keyframes teleIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* programme switch: a hairline sweeps across the top on hover, letters tick when chosen */
.deck__btn::before { content: ""; position: absolute; left: 0; top: 0; height: 1px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--e-out); }
.deck__btn:hover::before { transform: scaleX(1); }
.deck__btn[aria-pressed="true"] .deck__l { animation: deckTick .5s var(--e-out); }
@keyframes deckTick { 0% { transform: translateY(6px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.hero__deck { animation: teleIn .9s var(--e-out) 1.1s both; }
/* a soft flash across the scene when the programme changes */
.hero__scenes .stage:not([hidden]) { animation: stageIn .9s var(--e-out); }
@keyframes stageIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero__frame i, .hero__tele, .hero__deck, .hero__scenes .stage { animation: none !important; opacity: 1; } }

@media (max-width: 1100px) {
  .hero { height: auto; min-height: 0; display: flex; flex-direction: column; padding-top: calc(var(--nav-h) + 24px); }
  .hero__veil { background: linear-gradient(to top, color-mix(in srgb, var(--deep) 90%, transparent), transparent 55%); }
  .hero__copy { position: relative; left: auto; top: auto; bottom: auto; width: auto; padding-inline: var(--gut); order: 1; }
  .hero__deck { position: relative; left: auto; right: auto; bottom: auto; order: 2; margin: 28px var(--gut) 0; grid-template-columns: repeat(4, minmax(150px, 1fr)); overflow-x: auto; scrollbar-width: none; }
  .hero__deck::-webkit-scrollbar { display: none; }
  .deck__t .mono { display: none; }
  .hero__scenes { position: relative; order: 3; height: 58svh; min-height: 380px; margin-top: 22px; }
  .hero .chapters { left: 10px; right: 10px; bottom: 10px; width: auto; grid-template-columns: 1fr 1fr; gap: 6px; }
  .hero .chapters p { display: none; }
  .hero .chapters .chapter[aria-pressed="true"] p { display: block; }
  .hero__scroll { display: none; }
  .hero .stage__hud { top: 12px; }
  .hero__copy .display .hl-1 { white-space: normal; }
  .hero__frame, .hero__tele { display: none; }
}

/* ---------------- statement / manifesto ---------------- */
.statement { font: var(--w-heading) clamp(30px, 3.4vw, 56px)/1.06 var(--f-display); text-transform: uppercase; letter-spacing: var(--track-display); max-width: 15ch; margin: 0; }
.statement .w { color: var(--bone-4); transition: color .3s var(--e-soft); }
.statement .w.on { color: var(--bone); }
.statement .w.hl.on { color: var(--ember); }
.statement-grid { display: grid; grid-template-columns: 240px 1fr; gap: 48px; }
@media (max-width: 900px) { .statement-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------------- horizontal capability rail (pinned) ---------------- */
.rail-sec { position: relative; }
.rail-pin { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(22px, 3vh, 44px); overflow: hidden; padding-top: var(--nav-h); }
.rail-track { display: flex; gap: 1px; padding-inline: var(--gut); will-change: transform; }
.rail-card { flex: 0 0 min(430px, 78vw); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); padding: clamp(22px, 2.2vw, 34px); min-height: min(420px, 52vh); display: flex; flex-direction: column; }
.rail-card .mono { color: var(--ember); }
.rail-card h3 { margin: 26px 0 14px; }
.rail-card p { color: var(--bone-2); }
.rail-card ul { list-style: none; margin: auto 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 9px; }
.rail-card li { display: flex; gap: 11px; color: var(--bone-2); font-size: 14.5px; }
.rail-card li::before { content: "—"; color: var(--bone-4); }
.rail-head { flex: none; }
@media (max-width: 900px) {
  .rail-pin { position: static; height: auto; display: block; padding-top: 0; }
  .rail-track { flex-direction: column; transform: none !important; padding-top: 24px; }
  .rail-card { flex: none; min-height: 0; }
  .rail-head { position: static; }
}

/* ---------------- PLATFORM: broken chain → fixed chain ---------------- */
.chain { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; }
.chain__n { position: relative; padding: 24px 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.chain__n b { display: block; font: var(--w-heading) 22px/1 var(--f-display); text-transform: uppercase; }
.chain__n span { display: block; margin-top: 9px; color: var(--bone-3); font-size: 13px; }
.chain__n:not(:last-child)::after { content: ""; position: absolute; right: -29px; top: 50%; width: 28px; border-top: 1px dashed var(--bone-4); }
.chain__n.warn { box-shadow: inset 0 0 0 1px var(--ember); }
.chain__n.warn b { color: var(--ember); }
.chain__x { position: absolute; right: -21px; top: calc(50% - 8px); width: 16px; text-align: center; font: 500 14px/16px var(--f-mono); color: var(--ember); background: var(--void); z-index: 2; animation: blink 1.6s steps(2) infinite; }
@media (max-width: 900px) { .chain { grid-template-columns: 1fr; gap: 12px; } .chain__n::after, .chain__x { display: none; } }

/* ---------------- PLATFORM: 3D exploded stack ---------------- */
.stackx { display: grid; grid-template-columns: 1fr 1.2fr; gap: 54px; align-items: start; }
.stackx__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--bone-4); }
.stackx__list li button { width: 100%; text-align: left; display: grid; grid-template-columns: 86px 1fr 22px; gap: 16px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); transition: padding-left var(--d-mid) var(--e-out); }
.stackx__list .mono { color: var(--bone-3); padding-top: 5px; }
.stackx__list b { display: block; font: var(--w-heading) clamp(21px, 2vw, 30px)/1 var(--f-display); text-transform: uppercase; color: var(--bone-2); transition: color var(--d-mid); }
.stackx__list p { margin-top: 9px; color: var(--bone-2); font-size: 14.5px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height var(--d-mid) var(--e-out), opacity var(--d-fast); }
.stackx__list i { font-style: normal; color: var(--bone-4); padding-top: 3px; transition: transform var(--d-mid) var(--e-out), color var(--d-mid); }
.stackx__list button[aria-pressed="true"] { padding-left: 14px; }
.stackx__list button[aria-pressed="true"] b { color: var(--bone); }
.stackx__list button[aria-pressed="true"] p { max-height: 120px; opacity: 1; }
.stackx__list button[aria-pressed="true"] .mono, .stackx__list button[aria-pressed="true"] i { color: var(--ember); }
.stackx__list button[aria-pressed="true"] i { transform: rotate(90deg); }
.stackx__gl { position: sticky; top: calc(var(--nav-h) + 24px); height: min(76vh, 740px); background: radial-gradient(70% 60% at 50% 45%, var(--surface), var(--deep)); box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 1000px) { .stackx { grid-template-columns: 1fr; gap: 32px; } .stackx__gl { position: relative; top: 0; height: 60vh; } }

/* ---------------- PROGRAMMES page panels ---------------- */
.prog { padding-top: clamp(40px, 5vw, 74px); scroll-margin-top: calc(var(--nav-h) + 90px); animation: progIn .65s var(--e-out); }
@keyframes progIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.prog__head { display: grid; grid-template-columns: 1fr 1.05fr; gap: 28px 64px; align-items: end; margin-bottom: clamp(26px, 3vw, 44px); }
.prog__scene { height: min(78vh, 760px); min-height: 500px; border-block: 1px solid var(--line); }
.prog__detail { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px 78px; padding-block: clamp(44px, 5vw, 80px); }
.prog__detail h3 { margin-bottom: 16px; }
.prog__detail > div > p { color: var(--bone-2); }
.flow { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 34px; }
.flow span { position: relative; flex: 1 1 0; min-width: 104px; padding: 15px 14px 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); margin-right: 13px;
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; counter-increment: f; }
.flow { counter-reset: f; }
.flow span::before { content: "0" counter(f); display: block; color: var(--ember); margin-bottom: 16px; font-size: 9.5px; }
.flow span:not(:last-child)::after { content: ""; position: absolute; right: -13px; top: 50%; width: 13px; border-top: 1px solid var(--line-2); }
.flow span:last-child { margin-right: 0; background: var(--bone); color: var(--deep); box-shadow: none; }
.flow span:last-child::before { color: var(--ember); }
.flow small { display: block; margin-top: 6px; font: 400 12px/1.35 var(--f-body); letter-spacing: 0; text-transform: none; color: var(--bone-3); }
.flow span:last-child small { color: var(--bone-4); }
.meta { margin: 0; border-top: 1px solid var(--bone-4); }
.meta > div { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.meta dt { font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--bone-3); padding-top: 3px; }
.meta dd { margin: 0; color: var(--bone-2); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 34px; }
.trio > div { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); padding: 20px; }
.trio b { font: var(--w-heading) 17px/1.1 var(--f-display); text-transform: uppercase; }
.trio p { margin-top: 9px; font-size: 13.5px; color: var(--bone-2); }
.stages { list-style: none; margin: 0 0 34px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stages li { padding: 16px 14px 16px 0; border-top: 2px solid var(--line-2); }
.stages li.done { border-top-color: var(--bone-2); } .stages li.hot { border-top-color: var(--ember); }
.stages .mono { color: var(--bone-3); } .stages b { display: block; margin-top: 8px; font: var(--w-heading) 17px/1.05 var(--f-display); text-transform: uppercase; }
.prog__next { display: flex; justify-content: flex-end; padding-bottom: clamp(40px, 5vw, 70px); }
@media (max-width: 950px) { .prog__head, .prog__detail { grid-template-columns: 1fr; } .meta > div { grid-template-columns: 1fr; gap: 6px; } .trio, .stages { grid-template-columns: 1fr 1fr; } .flow span { flex-basis: 42%; margin-bottom: 13px; } .prog__scene { height: auto; min-height: 0; display: flex; flex-direction: column; } .prog__scene canvas, .prog__scene .stage__labels { position: relative; height: 56svh; min-height: 360px; } .prog__scene .stage__labels { position: absolute; top: 0; left: 0; right: 0; } .prog__scene .chapters { position: relative; left: auto; right: auto; bottom: auto; grid-template-columns: 1fr 1fr; padding: 12px var(--gut) 18px; } .prog__scene .chapters p { display: none; } .prog__scene .chapter[aria-pressed="true"] p { display: block; } }

/* ---------------- COMPANY ---------------- */
.quote { font: var(--w-heading) clamp(24px, 3vw, 48px)/1.12 var(--f-display); text-transform: uppercase; letter-spacing: var(--track-display); max-width: 24ch; margin: 0; }
.quote em { font-style: normal; color: var(--bone-3); } .quote strong { color: var(--ember); font-weight: 400; }
.member { display: grid; grid-template-columns: 360px 1fr; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.member__photo { position: relative; aspect-ratio: 301/384; overflow: hidden; background: var(--surface-2); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(.9); transition: filter var(--d-slow); }
.member:hover .member__photo img { filter: grayscale(.2) contrast(1.02); }
.member__photo::after { content: ""; position: absolute; left: 0; right: 0; height: 32%; top: -32%; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 14%, transparent), transparent); animation: memscan 5s linear infinite; }
@keyframes memscan { to { top: 100%; } }
.member__body { padding: clamp(24px, 3vw, 46px); display: flex; flex-direction: column; }
.member__id { display: flex; justify-content: space-between; color: var(--bone-3); }
.member h3 { margin: auto 0 10px; font-size: clamp(30px, 3.4vw, 52px); }
.member__role { color: var(--ember); margin-bottom: 22px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 12px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--bone-2); }
@media (max-width: 800px) { .member { grid-template-columns: 1fr; } .member__photo { aspect-ratio: auto; height: 400px; } }

/* ---------------- CAREERS ---------------- */
.roles { border-top: 1px solid var(--bone-4); }
.role { display: grid; grid-template-columns: 1fr auto auto; gap: 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); transition: padding-left var(--d-mid) var(--e-out), background var(--d-mid); }
.role:hover { padding-left: 16px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 5%, transparent), transparent 45%); }
.role h4 { margin-bottom: 7px; }
.role .mono { color: var(--bone-3); }
.role__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.role__tags span { padding: 6px 10px; box-shadow: inset 0 0 0 1px var(--line-2); font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--bone-2); }
.role__go { font-size: 18px; color: var(--bone-4); transition: color var(--d-fast), transform var(--d-mid) var(--e-out); }
.role:hover .role__go { color: var(--ember); transform: translateX(5px); }
@media (max-width: 760px) { .role { grid-template-columns: 1fr auto; } .role__tags { grid-column: 1 / -1; } }

/* ---------------- two-column split ---------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 78px; align-items: start; }
.split--wide { grid-template-columns: 1.3fr 1fr; }
@media (max-width: 900px) { .split, .split--wide { grid-template-columns: 1fr; gap: 30px; } }
.note { color: var(--bone-3); font-size: 12px; margin-top: 26px; }

/* ---------------- CTA band ---------------- */
.cta { position: relative; overflow: hidden; background: var(--deep); border-block: 1px solid var(--line); }
.cta__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; position: relative; z-index: 2; }
.cta__radar { position: absolute; right: -12vw; top: 50%; width: min(70vw, 860px); aspect-ratio: 1; translate: 0 -50%; border-radius: 50%; opacity: .55; pointer-events: none;
  background: repeating-radial-gradient(circle, transparent 0 59px, var(--line) 60px 61px); }
.cta__radar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, color-mix(in srgb, var(--accent) 30%, transparent), transparent 62deg); animation: spin 7s linear infinite; }
@media (max-width: 900px) { .cta__inner { grid-template-columns: 1fr; } }

/* ---------------- contact radar canvas ---------------- */
.coord { position: relative; margin-top: 38px; aspect-ratio: 16/9; background: var(--deep); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; color: var(--bone-3); }
.coord canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.coord__a { position: absolute; left: 14px; bottom: 12px; z-index: 2; }
.coord__b { position: absolute; right: 14px; top: 12px; z-index: 2; color: var(--ember); }

/* ---------------- full-bleed 3D moment ---------------- */
.bleed { position: relative; min-height: 86svh; display: grid; align-items: end; border-block: 1px solid var(--line); overflow: hidden; }
.bleed__stage { position: absolute; inset: 0; }
.bleed__copy { position: relative; z-index: 3; padding-block: clamp(44px, 6vw, 86px); width: 100%;
  background: linear-gradient(to top, color-mix(in srgb, var(--deep) 94%, transparent) 6%, color-mix(in srgb, var(--deep) 50%, transparent) 42%, transparent 72%); }
.bleed__copy .lede { max-width: 46ch; }
.bleed__copy .h2 { margin: 0 0 20px; }
@media (max-width: 900px) { .bleed { min-height: 0; } .bleed__stage { position: relative; inset: auto; height: 54svh; min-height: 340px; } .bleed__copy { background: none; } }

/* ==========================================================================
   TEAM (team.html) — compact dossier rows + advisory side column
   Photo treatment: monochrome, colour on hover. No photo file → initials.
   ========================================================================== */
.phead--compact { padding-bottom: clamp(18px, 2vw, 30px); }
.phead--compact .phead__grid { margin-top: 18px; align-items: end; }
.phead--compact .lede { font-size: clamp(15px, 1vw, 17px); max-width: 56ch; }
.tgrid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(280px, 24vw, 360px); gap: clamp(28px, 3vw, 52px); align-items: start; }
.tgrid .divider { margin-bottom: 18px; }
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); box-shadow: 0 0 0 1px var(--line); }
.tm { background: color-mix(in srgb, var(--void) 92%, transparent); display: grid; grid-template-columns: 112px 1fr; gap: 18px; padding: 18px; position: relative; transition: background var(--d-mid); }
.tm:hover { background: var(--surface); }
.tm::before { content: ""; position: absolute; z-index: 3; left: 0; top: 0; height: 1px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--e-out); }
.tm:hover::before { transform: scaleX(1); }
.tm__photo { position: relative; aspect-ratio: 1; overflow: hidden; align-self: start; background: radial-gradient(90% 70% at 50% 35%, var(--surface-2), var(--deep)); }
.tm__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; filter: grayscale(1) contrast(1.08) brightness(.9); transition: filter var(--d-slow), transform 1.2s var(--e-out); }
.tm:hover .tm__photo img, .adv__card:hover .tm__photo img { filter: grayscale(.15) contrast(1.02); transform: scale(1.04); }
.tm__photo::after { content: ""; position: absolute; left: 0; right: 0; height: 30%; top: -30%; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 12%, transparent), transparent); animation: memscan 6s linear infinite; pointer-events: none; }
.tm:nth-child(2) .tm__photo::after { animation-delay: -1.5s; } .tm:nth-child(3) .tm__photo::after { animation-delay: -3s; } .tm:nth-child(4) .tm__photo::after { animation-delay: -4.5s; }
.tm__ini { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; font: 200 34px/1 var(--f-display); letter-spacing: .08em; color: var(--bone-3); }
.tm__photo.is-empty img { display: none; }
.tm__photo.is-empty .tm__ini { display: flex; }
.tm__photo.is-empty { background: repeating-radial-gradient(circle at 50% 50%, transparent 0 11px, color-mix(in srgb, var(--bone) 6%, transparent) 11px 12px), radial-gradient(90% 70% at 50% 35%, var(--surface-2), var(--deep)); }
.tm__c { position: absolute; z-index: 2; width: 10px; height: 10px; border: 0 solid color-mix(in srgb, var(--bone) 50%, transparent); transition: border-color var(--d-mid); }
.tm__c--tl { left: 6px; top: 6px; border-width: 1px 0 0 1px; }
.tm__c--br { right: 6px; bottom: 6px; border-width: 0 1px 1px 0; }
.tm:hover .tm__c, .adv__card:hover .tm__c { border-color: var(--accent); }
.tm__body { display: flex; flex-direction: column; min-width: 0; }
.tm__id { display: flex; justify-content: space-between; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-4); }
.tm__name { margin: 10px 0 4px; font: var(--w-heading) clamp(19px, 1.35vw, 23px)/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.tm__role { color: var(--accent); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; line-height: 1.5; }
.tm__bio { margin-top: 12px; font-size: 13.5px; line-height: 1.55; color: var(--bone-2); }
.tm__chips { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.tm__chips li { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); padding: 5px 8px;   /* credential tags follow the accent colour */
  background: color-mix(in srgb, var(--accent) 7%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
.team > .tm:last-child:nth-child(odd) { grid-column: 1 / -1; }   /* odd number of people: last card spans the row */
@media (max-width: 1200px) { .team { grid-template-columns: 1fr; } }
@media (max-width: 960px) { .tgrid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .tm { grid-template-columns: 84px 1fr; gap: 14px; padding: 14px; } }

/* advisory board — narrow side column, sticky on desktop */
.adv { position: sticky; top: calc(var(--nav-h) + 24px); }
.adv__card { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); position: relative; }
.adv__photo { aspect-ratio: 1; width: 132px; margin: 20px 20px 0; }   /* advisor portrait size */
.adv__body { padding: 18px 20px 20px; }
.adv__name { margin: 12px 0 6px; font: var(--w-display) clamp(24px, 1.9vw, 30px)/1.05 var(--f-display); text-transform: uppercase; letter-spacing: var(--track-display); }
.adv__name .dim { color: var(--bone-3); font-size: .7em; }
.adv__hon { color: var(--accent); font-size: 10px; letter-spacing: .16em; }
.adv__hon span { color: var(--bone-3); }
.adv__rec { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--line-2); }
.adv__rec li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.adv__rec li > span { color: var(--bone-4); font-size: 9.5px; letter-spacing: .14em; }
.adv__rec b { font: var(--w-heading) 14px/1.3 var(--f-display); text-transform: uppercase; letter-spacing: .03em; }
.adv__rec em { display: block; margin-top: 3px; font-style: normal; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--bone-3); }
.js .is-in .adv__rec li { animation: recIn .7s var(--e-out) both; }
.js .is-in .adv__rec li:nth-child(2) { animation-delay: .12s; } .js .is-in .adv__rec li:nth-child(3) { animation-delay: .24s; }
@keyframes recIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@media (max-width: 960px) { .adv { position: static; } }

/* ==========================================================================
   HERO MARK — the ZERO NINE logo in the bottom-right corner of the home hero
   Size: --mark-h · position: right / bottom · colours follow the scheme.
   ========================================================================== */
.hero__mark { --mark-h: clamp(96px, 17vh, 176px); position: absolute; z-index: 4; right: calc(var(--gut) + 48px); bottom: 196px; height: var(--mark-h); width: calc(var(--mark-h) * .79); pointer-events: none; }
.hero__mark svg { width: 100%; height: 100%; overflow: visible; }
.hero__mark path { vector-effect: non-scaling-stroke; fill: none; }
/* outline draws itself on load */
.mk__l { stroke: var(--bone); stroke-width: 1.1; stroke-dasharray: 1; stroke-dashoffset: 1; animation: mkDraw 2.4s var(--e-out) .8s forwards; }
/* faint solid fill arrives after the outline */
.mk__f { fill: var(--bone) !important; fill-opacity: 0; animation: mkFill 1.6s var(--e-soft) 2.6s forwards; }
/* accent tracer running round the outline, continuously */
.mk__t { stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: .07 .93; stroke-linecap: round; opacity: 0; animation: mkTrace 5s linear 3s infinite, mkShow .6s ease 3s forwards; }
/* topographic echo: scaled copies breathing outward like contour lines */
.mk__echo { transform-origin: 500px 677px; }
.mk__e { stroke: var(--bone); stroke-width: .8; opacity: .0; }
.mk__echo--1 .mk__e { animation: mkEcho 4.8s var(--e-soft) 3.2s infinite; }
.mk__echo--2 .mk__e { animation: mkEcho 4.8s var(--e-soft) 5.6s infinite; }
.mk__echo--1 { animation: mkGrow 4.8s var(--e-soft) 3.2s infinite; }
.mk__echo--2 { animation: mkGrow 4.8s var(--e-soft) 5.6s infinite; }
.mk__cap { position: absolute; right: 0; top: calc(100% + 14px); white-space: nowrap; font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--bone-3); opacity: 0; animation: teleIn .8s var(--e-out) 2.8s forwards; }
@keyframes mkDraw { to { stroke-dashoffset: 0; } }
@keyframes mkFill { to { fill-opacity: .06; } }
@keyframes mkTrace { to { stroke-dashoffset: -1; } }
@keyframes mkShow { to { opacity: 1; } }
@keyframes mkGrow { from { transform: scale(1); } to { transform: scale(1.32); } }
@keyframes mkEcho { 0% { opacity: .45; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mk__l { stroke-dashoffset: 0; } .mk__f { fill-opacity: .06; } .hero__mark *, .mk__cap { animation: none !important; opacity: 1; } .mk__e { opacity: 0; } }
@media (max-width: 1100px) { .hero__mark { display: none; } }

/* short screens (laptops with the browser toolbar / VS Code preview):
   keep the headline clear of the navigation bar */
@media (min-width: 1101px) and (max-height: 860px) {
  .hero .display { font-size: clamp(36px, 6.4vh, 60px); }
  .hero__copy .display { margin-bottom: 20px; }
  .hero__copy .lede { font-size: 16px; }
  .hero__ctas { margin-top: 30px; }
  .hero--clean .hero__copy { bottom: auto; top: calc(var(--nav-h) + 3vh); }
  .hero__mark { --mark-h: clamp(76px, 14vh, 120px); bottom: 214px; }
}

/* ==========================================================================
   MOBILE POLISH — tablets (≤1100px) and phones (≤600px)
   ========================================================================== */
/* 3-column tile rows (platform principles, careers "what you get") */
.tiles--3 { grid-template-columns: repeat(3, 1fr); }
/* desktop satellite underlay: lighter WebP where supported, JPG otherwise */
.sat-bg__img { background-image: image-set(url("../img/photos/leh-ladakh-satellite.webp") type("image/webp"), url("../img/photos/leh-ladakh-satellite.jpg") type("image/jpeg")); }
@media (max-width: 900px) { .tiles--3 { grid-template-columns: 1fr; } .tiles--3 .tile { min-height: 230px; } }

@media (max-width: 1100px) {
  /* HOME HERO: the live scene comes first, under the top bar; the headline rises into its fade */
  .hero { padding-top: 0; background: var(--deep); }
  .sat-bg__tag { display: none; }
  .sat-bg__img { background-image: url("../img/photos/leh-ladakh-satellite-m.webp"); }   /* 240 KB phone version instead of the 2 MB original */   /* the fixed satellite caption would sit over the text on small screens */
  .hero__scenes { order: 0; height: 56svh; min-height: 340px; max-height: 560px; margin-top: 0; }
  .hero__veil { inset: 0 0 auto; height: 56svh; min-height: 340px; max-height: 560px;
    background: linear-gradient(to bottom, var(--deep) 0%, transparent 24%, transparent 58%, var(--deep) 100%); }
  .hero__copy { order: 1; margin-top: -56px; z-index: 4; }
  .hero .stage__hud { top: calc(var(--nav-h) + 4px); left: var(--gut); right: var(--gut); justify-content: space-between; font-size: 9px; }
  .hero__ctas { margin-top: 30px; }
  /* programme switch: 2 × 2, all four visible (no hidden side-scroll) */
  .hero__deck { order: 2; grid-template-columns: 1fr 1fr; overflow: visible; margin: 26px var(--gut) 10px; }
  .deck__btn { padding: 12px; gap: 10px; min-height: 66px; }
  .deck__l { font-size: 24px; width: 18px; }
  .hero--clean .deck__t b { font-size: 13px; line-height: 1.15; }
  /* PROGRAMMES page tabs: one compact row, all four visible */
  .ptabs { grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; }
  .ptab { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 10px 12px; }
  .ptab__l { font-size: 22px; }
  .ptab__t { min-width: 0; max-width: 100%; }
  .ptab__t b { display: block; font-size: 10.5px; line-height: 1.15; letter-spacing: 0; overflow-wrap: anywhere; hyphens: auto; }
}

@media (max-width: 600px) {
  /* headline sized for the phone, "ZERO BLIND SPOTS." still on one line */
  .hero .display { font-size: clamp(34px, 11vw, 50px); }
  .hero__copy .display .hl-1 { font-size: min(.86em, 9vw); white-space: nowrap; }
  .hero__copy .display > .split__line:first-child { top: 0; }
  .hero__copy .lede { font-size: 16px; }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: center; }
  /* 3D labels crowd a phone screen; the chapter cards explain each step instead */
  .prog__scene .stage__labels { display: none; }
  .prog__scene { min-height: 460px; height: 64svh; }
  /* comfortable tap targets */
  .alink { padding-block: 12px 10px; }
  .contact-list a, .clist a { display: inline-block; padding-block: 8px; }
  .phead { padding-top: calc(var(--nav-h) + 32px); }
}

/* ==========================================================================
   VISION MODES — home hero, Programme A: EO · NV (night vision) · THERMAL
   Switch markup: index.html → .vmode · logic: assets/js/vision.js
   The mode is set on the hero as data-vision="std | nv | ir".
   ========================================================================== */
/* ---- the switch ---- */
.vmode { position: absolute; z-index: 5; right: 33px; top: calc(var(--nav-h) + 84px); display: grid; justify-items: end; gap: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .45s var(--e-out), transform .45s var(--e-out), visibility 0s .45s; }
.vmode.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 1.6s, 1.6s, 0s; }
.vmode__k { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-3); display: inline-flex; align-items: center; gap: 8px; }
.vmode__k::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 1.3s steps(2) infinite; }
.vmode__track { --w: 74px; position: relative; display: grid; grid-template-columns: repeat(3, var(--w)); padding: 3px; border-radius: 999px;
  background: color-mix(in srgb, var(--deep) 72%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
 }
.vmode__thumb { position: absolute; left: 3px; top: 3px; bottom: 3px; width: var(--w); border-radius: 999px; background: var(--accent);
  transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .45s cubic-bezier(.7,-0.25,.25,1.3), background .4s; }
.vmode button { position: relative; z-index: 1; height: 30px; border-radius: 999px; color: var(--bone-2); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; transition: color .3s; }
.vmode button:hover { color: var(--bone); }
.vmode button[aria-checked="true"] { color: #071006; font-weight: 500; }
.vmode button:focus-visible { outline: 1px solid var(--bone); outline-offset: 2px; }
.vmode .fx__tag { min-height: 1.4em; margin: 0; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

/* ---- the hero re-tints with the mode ---- */
.hero { transition: background .6s; }
.hero[data-vision="nv"] { --accent: #8cff4f; --ember: #8cff4f; --bone: #e2ffd6; --bone-2: #b9e8a8; --bone-3: #86b778; }
.hero[data-vision="ir"] { --accent: #ff8a1e; --ember: #ff8a1e; --bone-3: #c49a86; }
.hero[data-vision="ir"] .vmode button[aria-checked="true"] { color: #1a0703; }

/* ---- the picture: colour filters on the live scene ---- */
.hero__scenes { transition: background .5s; }
.hero[data-vision="nv"] .hero__scenes { background: radial-gradient(120% 90% at 70% 45%, #0d110d, #050605 70%); filter: url(#z9-nv); }
.hero[data-vision="ir"] .hero__scenes { background: #040306; filter: url(#z9-ir); }
@media (max-width: 1100px) {   /* phones and tablets: same colours, no bloom (saves battery) */
  .hero[data-vision="nv"] .hero__scenes { filter: url(#z9-nv-lite); }
  .hero[data-vision="ir"] .hero__scenes { filter: url(#z9-ir-lite); }
}

/* Safari / iOS: same look built from CSS filters (SVG filters are skipped there) */
.vf-css .hero[data-vision="nv"] .hero__scenes { filter: grayscale(1) brightness(1.55) contrast(1.15) sepia(1) hue-rotate(62deg) saturate(4.5); }
.vf-css .hero[data-vision="ir"] { background: radial-gradient(110% 85% at 66% 40%, #2b0b4d, #10061f 60%, #070708 100%); }
.vf-css .hero[data-vision="ir"] .hero__scenes { background: transparent; filter: grayscale(1) brightness(1.4) contrast(1.5) sepia(1) hue-rotate(-18deg) saturate(6); }

/* ---- overlays (inside the scene, so they take the mode's colours) ---- */
.hero__fx { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.hero__fx > * { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; }
/* image-intensifier tube: soft round falloff */
.fx__tube { background: radial-gradient(ellipse 72% 92% at 62% 50%, transparent 55%, rgba(0,0,0,.55) 85%, rgba(0,0,0,.85) 100%); }
/* scan lines */
.fx__lines { background: repeating-linear-gradient(to bottom, rgba(255,255,255,.07) 0 1px, transparent 1px 3px); mix-blend-mode: overlay; }
/* live sensor noise */
.fx__grain { inset: -50%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: screen; animation: fxGrain .5s steps(5) infinite; }
@keyframes fxGrain { 0% { transform: translate(0,0); } 20% { transform: translate(-6%,4%); } 40% { transform: translate(5%,-7%); } 60% { transform: translate(-3%,8%); } 80% { transform: translate(7%,2%); } 100% { transform: translate(0,0); } }
/* refresh bar that rolls down the picture */
.fx__scan { inset: auto 0 auto 0; top: 0; height: 18%; background: linear-gradient(to bottom, transparent, rgba(255,255,255,.06) 70%, rgba(255,255,255,.14) 100%); animation: fxRoll 6.5s linear infinite; }
@keyframes fxRoll { from { transform: translateY(-100%); } to { transform: translateY(560%); } }
/* tracking reticle on the right-hand side of the scene */
.fx__ret { inset: auto; left: 64%; top: 47%; width: 92px; height: 92px; translate: -50% -50%; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; }
.fx__ret i { position: absolute; background: rgba(255,255,255,.7); }
.fx__ret i:first-child { left: 50%; top: -18px; bottom: -18px; width: 1px; }
.fx__ret i:nth-child(2) { top: 50%; left: -18px; right: -18px; height: 1px; }
.fx__ret b { position: absolute; inset: 34px; border: 1px solid rgba(255,255,255,.9); }
/* switching flash */
.fx__flash { background: radial-gradient(ellipse at 62% 50%, rgba(255,255,255,.9), rgba(255,255,255,.35) 60%, transparent 100%); }

/* mode → which overlays show */
.hero[data-vision="nv"] .fx__tube { opacity: 1; }
.hero[data-vision="nv"] .fx__lines { opacity: 1; }
.hero[data-vision="nv"] .fx__grain { opacity: .2; }
.hero[data-vision="nv"] .fx__scan { opacity: 1; }
.hero[data-vision="ir"] .fx__lines { opacity: .45; }
.hero[data-vision="ir"] .fx__grain { opacity: .07; }
.hero[data-vision="nv"] .fx__ret, .hero[data-vision="ir"] .fx__ret { opacity: .85; animation: fxLock 7s var(--e-out) infinite; }
@keyframes fxLock { 0%, 100% { transform: translate(0,0) scale(1); } 30% { transform: translate(-26px,14px) scale(1.15); } 38% { transform: translate(-26px,14px) scale(.9); } 70% { transform: translate(18px,-10px) scale(1); } }

/* the switch itself: tube power-up — flash, then the picture settles */
.hero.is-switching .fx__flash { animation: fxFlash .85s var(--e-out) forwards; }
@keyframes fxFlash { 0% { opacity: 0; } 12% { opacity: .85; } 100% { opacity: 0; } }
.hero.is-switching .hero__scenes { animation: fxSettle .85s var(--e-out); }
@keyframes fxSettle { 0% { opacity: .2; transform: scale(1.025); } 30% { opacity: .9; } 100% { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
  .vmode { right: var(--gut); top: calc(var(--nav-h) + 30px); }
  .vmode__track { --w: 64px; }
  .vmode__k { display: none; }
  .vmode .fx__tag { max-width: 60vw; text-align: right; font-size: 9px; }
  .fx__ret { left: 66%; top: 44%; width: 70px; height: 70px; }
  .fx__ret b { inset: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .fx__grain, .fx__scan, .fx__ret, .vmode__k::before { animation: none !important; }
  .hero.is-switching .fx__flash, .hero.is-switching .hero__scenes { animation: none !important; }
}
