/* ==========================================================
   OilGuard: drawing-sheet design.
   Amber means oil. Use it only for oil and the one main button per view.
   ========================================================== */
:root {
  --charcoal: #1B1B19;
  --graphite: #2C2B28;
  --line: #4A4842;
  --bone: #F2EEE6;
  --muted: #B8B2A7;
  --amber: #D99A2B;
  --amber-hover: #C88B1F;
  --amber-deep: #8A5A0B;
  --ink-muted: #5E5A52;

  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --radius: 4px;
  --frame: 14px;          /* gap between viewport edge and sheet frame */
  --pad: clamp(20px, 4vw, 56px);
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 120ms; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--charcoal);
  color: var(--bone);
  font: 400 18px/1.6 var(--body);
}
img, svg { display: block; max-width: 100%; height: auto; }
img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }   /* images never come loose when dragged */
a { color: var(--bone); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; left: 24px; top: -100px; z-index: 20;
  background: var(--bone); color: var(--charcoal); padding: 8px 14px; border-radius: var(--radius);
  font-weight: 600;
}
.skip-link:focus { top: 24px; }

h1, h2, h3 { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.02; margin: 0; }
h1 { font-size: clamp(40px, 5.2vw, 76px); }
h2 { font-size: clamp(32px, 4vw, 52px); }
h3 { font-weight: 600; font-size: 26px; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }

/* ---------- the sheet ---------- */
.sheet {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--frame) + 1px);
  display: flex;
}
.frame {
  position: relative;
  flex: 1;
  border: 1px solid var(--line);
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: calc(100dvh - 2 * var(--frame) - 2px);
}
/* registration marks just outside each corner */
.reg { position: absolute; width: 14px; height: 14px; pointer-events: none; }
.reg::before, .reg::after { content: ""; position: absolute; background: var(--line); }
.reg::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.reg::after { top: 50%; left: 0; right: 0; height: 1px; }
.reg.tl { left: -7px; top: -7px; }
.reg.tr { right: -7px; top: -7px; }
.reg.bl { left: -7px; bottom: -7px; }
.reg.br { right: -7px; bottom: -7px; }

/* ---------- top bar: logo + view buttons ---------- */
.bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px;
  padding: 18px var(--pad);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--bone); }
.brand img { width: 30px; height: 30px; }
.wordmark { font: 700 24px/1 var(--head); text-transform: uppercase; letter-spacing: 0.04em; }
.views { display: flex; flex-wrap: wrap; gap: 4px 28px; list-style: none; margin: 0; padding: 0; }
.views a {
  display: inline-block; padding: 6px 0;
  font: 500 14px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  border-bottom: 1px solid transparent;
}
.views a:hover { color: var(--bone); }
.views a[aria-current="page"] { color: var(--bone); border-bottom-color: var(--bone); }

/* ---------- title block (bottom right) ---------- */
.titleblock {
  justify-self: end;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
  font: 400 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.titleblock > * { padding: 9px 14px; margin: 0; }
.titleblock a { color: var(--muted); }
.titleblock a:hover { color: var(--bone); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px;
  font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: transparent; color: var(--bone);
  transition: background-color .12s linear, border-color .12s linear;
}
.btn:hover { border-color: var(--muted); }
.btn-main { background: var(--amber); border-color: var(--amber); color: var(--charcoal); }
.btn-main:hover { background: var(--amber-hover); border-color: var(--amber-hover); }

/* ==========================================================
   HOME
   ========================================================== */
.fig { margin: 0; }

/* Home: the device floats dim behind the headline; .is-unlocked brings it forward,
   .is-focus means a part close-up is open. Easing is sine in-out throughout. */
.home {
  --sine: cubic-bezier(.37, 0, .63, 1);
  position: relative; overflow: hidden;
  display: grid; place-items: center;
  padding: clamp(16px, 3vh, 32px) var(--pad);
}
.device-stage {
  position: relative; aspect-ratio: 16 / 10;
  width: min(100%, calc((100dvh - 200px) * 1.6));
  transition: transform 1.1s var(--sine), filter 1.1s var(--sine);
}
.home:not(.is-unlocked) .device-stage { transform: translateX(24%) scale(.86); filter: brightness(.82); }
.device-stage picture, .device-poster, .device-canvas {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
}
.device-poster { transition: opacity .6s linear; }
.device-canvas { opacity: 0; transition: opacity .6s linear; pointer-events: none; }
.is-live .device-canvas { opacity: 1; }
.is-live .device-poster { opacity: 0; }
.is-unlocked:not(.is-focus) .device-stage.is-live { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.device-stage.is-dragging { cursor: grabbing; }

.home-copy {
  position: absolute; z-index: 3; left: var(--pad); top: 50%; max-width: min(42%, 620px);
  transform: translateY(-50%);
  transition: opacity .45s var(--sine), transform .6s var(--sine), visibility 0s linear 0s;
}
.home-copy h1 { max-width: 16ch; font-size: clamp(34px, 3.5vw, 56px); }
.home-copy .lede { margin: 18px 0 0; max-width: 30ch; font-size: clamp(19px, 1.5vw, 23px); line-height: 1.4; color: var(--bone); }
.home-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.is-unlocked .home-copy { opacity: 0; transform: translate(-32px, -50%); visibility: hidden; transition-delay: 0s, 0s, .6s; }

.explore-bar {
  position: absolute; z-index: 3; top: clamp(14px, 2.5vh, 24px); left: var(--pad); right: var(--pad);
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--sine), visibility 0s linear .4s;
}
.is-unlocked .explore-bar { opacity: 1; visibility: visible; transition-delay: .7s, 0s; }
.explore-bar .hint { margin: 0; }
.explore-bar .more { margin: 0 0 0 auto; }
.explore-bar .btn:not(.btn-main), .explore-bar .more > summary { background: var(--charcoal); }
.explore-bar .more > summary { padding: 6px 10px; border-radius: var(--radius); }
.is-focus .explore-bar .hint, .is-focus #tour { visibility: hidden; }
.btn-back::before { content: "\2190"; margin-right: 8px; }

/* hotspots: numbered points pinned to the model by js/device3d.js */
.parts { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.part { position: absolute; left: var(--x, -99px); top: var(--y, -99px); transform: translate(-50%, -50%); pointer-events: auto; transition: opacity .35s var(--sine); }
.part[hidden] { display: none; }
.home:not(.is-unlocked) .parts, .device-stage:not(.is-live) .parts { visibility: hidden; }
.is-unlocked .is-live .part { animation: hs-in .5s var(--sine) calc(.8s + var(--i) * .07s) backwards; }
.is-focus .part:not(.is-active) { opacity: 0; pointer-events: none; }
.hs {
  position: relative; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; cursor: pointer;
  border: 1.5px solid var(--bone); border-radius: 50%; background: rgba(27, 27, 25, .7); color: var(--bone);
}
.hs-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bone); }
.hs::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--bone);
  opacity: 0; animation: hs-ring 2.6s var(--sine) infinite; animation-delay: calc(var(--i) * .3s);
}
.hs[aria-expanded="true"] { background: var(--bone); }
.hs[aria-expanded="true"] .hs-dot { background: var(--charcoal); }
.hs-label {
  position: absolute; left: 44px; top: 50%; transform: translate(-6px, -50%); white-space: nowrap;
  padding: 5px 8px; border: 1px solid var(--line); background: var(--charcoal);
  font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  opacity: 0; pointer-events: none; transition: opacity .2s var(--sine), transform .2s var(--sine);
}
.hs:hover .hs-label, .hs:focus-visible .hs-label { opacity: 1; transform: translate(0, -50%); }
.is-focus .hs-label { display: none; }
@keyframes hs-in { from { opacity: 0; transform: translate(-50%, -50%) scale(.4); } }
@keyframes hs-ring { 0% { opacity: .6; transform: scale(.8); } 70%, 100% { opacity: 0; transform: scale(1.5); } }

/* close-up text */
.part-panel {
  position: absolute; z-index: 4; left: var(--pad); bottom: clamp(16px, 3vh, 32px); width: min(380px, 36%);
  padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(27, 27, 25, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .4s var(--sine), transform .6s var(--sine), visibility 0s linear .4s;
}
.is-focus .part-panel { opacity: 1; visibility: visible; transform: none; transition-delay: .5s, .5s, 0s; }
.part-card .mono { margin: 0 0 6px; }
.part-card h2 { font-size: clamp(28px, 2.6vw, 38px); }
.part-card p:last-child { margin: 10px 0 0; font-size: 17px; line-height: 1.5; }
.part-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.part-nav .btn { min-height: 38px; padding: 0 14px; font-size: 14px; }
.part-nav .btn:disabled { opacity: .4; cursor: default; }
.fig-cap { position: absolute; z-index: 2; right: var(--pad); bottom: 10px; margin: 0; padding: 4px 8px; background: var(--charcoal); }

/* no WebGL or still loading: the parts become a plain row of buttons under the poster */
.is-unlocked .device-stage:not(.is-live) .parts {
  visibility: visible; inset: auto 0 -54px 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.is-unlocked .device-stage:not(.is-live) .part { position: static; transform: none; }
.is-unlocked .device-stage:not(.is-live) .hs { width: auto; height: auto; border-radius: var(--radius); padding: 6px 10px; }
.is-unlocked .device-stage:not(.is-live) .hs-dot, .is-unlocked .device-stage:not(.is-live) .hs::after { display: none; }
.is-unlocked .device-stage:not(.is-live) .hs-label { position: static; opacity: 1; transform: none; border: 0; padding: 0; background: none; }
.fig-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.fig-art { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fig figcaption { margin-top: 10px; }

/* the switch */
.switch {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 44px; padding: 0 4px;
  background: none; border: 0; color: var(--bone); cursor: pointer;
  font: 500 14px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
}
.switch-track {
  position: relative; width: 52px; height: 26px;
  border: 1px solid var(--muted); border-radius: 13px;
}
.switch-knob {
  position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--muted); transition: transform .12s linear, background-color .12s linear;
}
.switch[aria-pressed="true"] .switch-knob { transform: translateX(26px); background: var(--bone); }
.switch-state { min-width: 3ch; text-align: left; color: var(--muted); }
.switch[aria-pressed="true"] .switch-state { color: var(--bone); }

/* drawing strokes */
.dw text { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; fill: var(--muted); }
.dw .t-oil { fill: var(--amber); }
.dw .t-bone { fill: var(--bone); }
.ln { fill: none; stroke: var(--bone); stroke-width: 1.4; stroke-linejoin: round; }
.ln-thin { fill: none; stroke: var(--muted); stroke-width: 0.9; }
.ln-plume { fill: none; stroke: var(--muted); stroke-width: 0.9; stroke-dasharray: 2 5; }
.ln-lead { fill: none; stroke: var(--muted); stroke-width: 0.9; }
.ln-fill { fill: var(--charcoal); stroke: var(--bone); stroke-width: 1.4; }
.oil { fill: none; stroke: var(--amber); stroke-width: 3; stroke-linecap: round; }
.oil-flow { stroke-dasharray: 5 9; animation: oilflow 1.4s linear infinite; }
.dots circle { fill: var(--amber); opacity: 0; animation: drift var(--t, 5s) linear var(--d, 0s) infinite; }
@keyframes oilflow { to { stroke-dashoffset: -28; } }
@keyframes drift {
  0% { opacity: 0; transform: translate(0, 0); }
  15% { opacity: 0.95; }
  80% { opacity: 0.8; }
  100% { opacity: 0; transform: translate(var(--dx, 60px), var(--dy, 0px)); }
}

/* states: .is-on = with OilGuard */
.st-on { opacity: 0; transition: opacity .12s linear; }
.st-off { opacity: 1; transition: opacity .12s linear; }
.is-on .st-on { opacity: 1; }
.is-on .st-off { opacity: 0; }
.is-on .dots circle { animation-play-state: paused; }

/* static pair, used under reduced motion */
.fig-pair { display: none; }
.fig-pair .pair-label { margin: 10px 0 0; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .oil-flow, .dots circle { animation: none; }
  .dots circle { opacity: 0.9; transform: translate(calc(var(--dx, 60px) * 0.5), calc(var(--dy, 0px) * 0.5)); }
  .st-on, .st-off, .switch-knob, .btn { transition: none; }
  .has-pair .fig-single, .has-pair .switch { display: none; }
  .has-pair .fig-pair { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
}

/* ---------- small screens ---------- */
@media (max-width: 899px) {
  :root { --frame: 8px; }
  /* Home on phones: device on top (dim), headline overlapping its lower edge */
  .home { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 14px; }
  .device-stage { width: 100%; }
  .home:not(.is-unlocked) .device-stage { transform: none; }
  .home-copy { position: relative; left: auto; top: auto; max-width: none; transform: none; margin-top: -44px; }
  .is-unlocked .home-copy { display: none; }
  .home-copy h1 { max-width: 16ch; }
  .home-actions { margin-top: 24px; }
  .explore-bar { position: static; order: -1; display: none; }
  .is-unlocked .explore-bar { display: flex; }
  .explore-bar .hint { display: none; }
  .hs { width: 26px; height: 26px; }
  .hs-dot { width: 6px; height: 6px; }
  .fig-cap { padding: 0; background: none; }
  .hs-label { display: none; }
  .part-panel { position: static; width: auto; display: none; }
  .is-focus .part-panel { display: block; }
  .fig-cap { position: static; }
  .bar { gap: 12px 24px; }
  .views { gap: 4px 20px; }
  .dw text { font-size: 22px; }
}
@media (max-width: 899px) and (prefers-reduced-motion: reduce) {
  .has-pair .fig-pair { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .bar nav { flex-basis: 100%; }   /* nav always on its own line, so the bar height never changes when fonts load */
}
@media (max-width: 420px) {
  .views a { font-size: 13px; letter-spacing: 0.06em; }
  .views { gap: 4px 16px; }
  .titleblock { justify-self: stretch; }
}

/* ==========================================================
   INNER VIEWS (Device, Business, Team, Watch, Sources, 404)
   ========================================================== */
.view {
  display: grid; align-content: center; align-items: start;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  column-gap: clamp(32px, 5vw, 80px);
  padding: clamp(20px, 3.5vh, 44px) var(--pad);
}
.view-copy h1 { font-size: clamp(34px, 3.6vw, 52px); max-width: 20ch; }
.view-copy > p { max-width: 42ch; margin: 18px 0 0; }
.view-copy > p.mono { margin-top: 14px; }
.todo { color: var(--bone); font-weight: 600; background: #3A3833; padding: 0 4px; border-radius: 2px; }

/* legend (Device callouts) */
.legend { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line); }
.legend li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.legend h2 { font-size: 21px; font-weight: 600; letter-spacing: 0.02em; }
.legend p { margin: 2px 0 0; font-size: 16px; line-height: 1.45; color: var(--muted); }
.num {
  display: inline-grid; place-items: center; width: 28px; height: 28px; margin-top: 1px;
  border: 1px solid var(--bone); border-radius: 50%; font: 500 13px/1 var(--mono);
}
.target { margin-top: 16px; color: var(--bone); }

/* Details: a single small toggle that opens a side panel */
.more { margin-top: 18px; }
.more > summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none;
  font: 500 14px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone);
  border-bottom: 1px solid var(--muted); padding: 0 2px; min-height: 32px;
}
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after { content: "+"; color: var(--muted); }
.more[open] > summary::after { content: "−"; }
.panel {
  position: fixed; z-index: 10;
  top: calc(var(--frame) + 1px); right: calc(var(--frame) + 1px); bottom: calc(var(--frame) + 1px);
  width: min(600px, calc(100vw - 2 * var(--frame) - 2px));
  overflow-y: auto; background: var(--charcoal); border-left: 1px solid var(--line);
  padding: 64px clamp(20px, 3vw, 40px) 40px;
}
.panel h2 { font-size: 24px; margin: 28px 0 8px; }
.panel h2:first-of-type { margin-top: 0; }
.panel p, .panel li { font-size: 17px; color: var(--bone); }
.panel ul { padding-left: 1.1em; margin: 0; }
.panel li { margin-bottom: 6px; }
.panel-close {
  position: absolute; top: 18px; right: clamp(20px, 3vw, 40px); min-height: 36px; padding: 0 12px;
  background: none; border: 1px solid var(--line); border-radius: var(--radius); color: var(--bone); cursor: pointer;
  font: 500 13px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
}
.panel-close:hover { border-color: var(--muted); }
a.cite { font: 500 0.78em var(--mono); text-decoration: none; color: var(--muted); }
a.cite:hover { color: var(--bone); text-decoration: underline; }

/* Drawing / Model toggle */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); }
.seg-btn {
  min-height: 40px; padding: 0 16px; background: none; border: 0; cursor: pointer; color: var(--muted);
  font: 500 13px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
}
.seg-btn + .seg-btn { border-left: 1px solid var(--line); }
.seg-btn[aria-pressed="true"] { color: var(--charcoal); background: var(--bone); }
.pane[hidden] { display: none !important; }
.shots { display: grid; gap: 12px; grid-template-columns: 2fr 1fr; padding: 12px 0; }
.shots > :first-child { grid-row: span 2; aspect-ratio: auto; }
.ph {
  aspect-ratio: 4 / 3; display: flex; flex-direction: column; justify-content: space-between; padding: 12px;
  border: 1px dashed var(--line);
}
.ph .mono { align-self: flex-start; }
.shots img, model-viewer { width: 100%; height: auto; border: 1px solid var(--line); }

/* drawing parts used by FIG. 02 and 03 */
.stage { stroke: var(--muted); stroke-width: 1.2; }
.pat { fill: none; stroke: #6E6A61; stroke-width: 1.1; }
.pat-dot { fill: #6E6A61; }
.oil-drop { fill: var(--amber); }
.oil-store circle { fill: var(--amber); }
.callout path { fill: none; stroke: var(--muted); stroke-width: 0.9; }
.callout circle { fill: var(--charcoal); stroke: var(--bone); stroke-width: 1.2; }
.dw .callout text { fill: var(--bone); font-size: 14px; }
.dw .node { font: 700 22px var(--head); letter-spacing: 0.04em; fill: var(--bone); }
.flow path { fill: none; stroke: var(--muted); stroke-width: 1.2; }
.arrowhead { fill: var(--muted); }

/* Team: five portraits merged into one lit wall, with an intro on load */
.view-team {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  align-content: stretch; padding: 0;
}
.stage {
  --ease: cubic-bezier(.16, 1, .3, 1);
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 380px; max-height: 50vw;
  align-self: stretch;
  background:
    radial-gradient(120% 90% at 50% 30%, #646B67 0%, #4A504D 38%, #262724 72%, var(--charcoal) 100%);
}
.lineup { position: absolute; inset: 0; }
.lineup:focus-visible { outline-offset: -4px; }
.cast {
  position: relative;
  list-style: none; margin: 0; padding: 0; height: 100%;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  animation: stage-drift 26s ease-in-out 1.8s infinite alternate;
  will-change: transform;
}
.cast li { position: relative; height: 100%; cursor: pointer; }
.cast img {
  position: absolute; top: 0; left: -16%; width: 132%; height: 100%; max-width: none;
  object-fit: cover; object-position: 50% 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 78%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 78%, transparent 100%);
  transform-origin: 50% 100%;
  transition: filter .5s var(--ease), transform .6s var(--ease);
  animation: rise 1.5s var(--ease) calc(.3s + var(--d) * .16s) backwards;
}
/* Hover (or tap the name): that person pops forward above the vignette, the rest dim, and their intro card rises */
.cast:has(li.is-open) img { filter: brightness(.5) saturate(.75); }
.cast li.is-open { z-index: 4; }
.cast li.is-open img { filter: brightness(1.08); transform: scale(1.05); }
@media (hover: hover) {
  .cast:not(.hushed):hover img { filter: brightness(.5) saturate(.75); }
  .cast:not(.hushed) li:hover { z-index: 4; }
  .cast:not(.hushed) li:hover img { filter: brightness(1.08); transform: scale(1.05); }
}
.intro {
  position: absolute; z-index: 5; left: 50%; bottom: clamp(14px, 3vh, 30px);
  width: max(88%, 250px); max-width: 340px;
  padding: 14px 16px; margin: 0;
  background: rgba(27, 27, 25, .86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 15px; line-height: 1.45; text-align: left;
  opacity: 0; visibility: hidden; transform: translate(-50%, 14px);
  transition: opacity .3s ease, transform .55s var(--ease), visibility 0s linear .3s;
}
.cast li:first-child .intro { left: 6%; transform: translate(0, 14px); }
.cast li:last-child .intro { left: auto; right: 6%; transform: translate(0, 14px); }
.intro p { margin: 0; }
.intro p + p { margin-top: 8px; }
.intro .mono { color: var(--bone); }
.cast li.is-open .intro { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.cast li.is-open .tag { opacity: 0; }
.cast li:first-child.is-open .intro, .cast li:last-child.is-open .intro { transform: none; }
@media (hover: hover) {
  .cast:not(.hushed) li:hover .intro { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
  .cast:not(.hushed) li:first-child:hover .intro, .cast:not(.hushed) li:last-child:hover .intro { transform: none; }
  .cast:not(.hushed) li:hover .tag { opacity: 0; }
}
.tag { transition: opacity .25s ease; }
.tag .who { background: none; border: 0; padding: 0; margin: 0; color: var(--bone); cursor: pointer; }
.tag .who:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
/* the vignette lives inside .cast so the name tags (z 4) sit above it */
.cast::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(27,27,25,.35) 0%, transparent 14%, transparent 58%, rgba(27,27,25,.82) 84%, var(--charcoal) 100%),
    radial-gradient(130% 100% at 50% 40%, transparent 55%, rgba(27,27,25,.75) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-blend-mode: normal, normal, overlay;
  opacity: .96;
}
.sweep {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(100deg, transparent 38%, rgba(242,238,230,.14) 50%, transparent 62%);
  transform: translateX(-110%);
  animation: sweep 2.2s cubic-bezier(.45, 0, .2, 1) .95s forwards;
}
.shutter { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.shutter::before, .shutter::after {
  content: ""; position: absolute; left: 0; right: 0; height: 50.5%; background: var(--charcoal);
  animation: open 1s cubic-bezier(.7, 0, .2, 1) .05s forwards;
}
.shutter::before { top: 0; transform-origin: 50% 0; }
.shutter::after { bottom: 0; transform-origin: 50% 100%; }
.tag {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: clamp(14px, 3vh, 30px);
  margin: 0; padding: 0 12%; display: grid; gap: 2px; justify-items: center; text-align: center;
  animation: tag-in .9s var(--ease) calc(1s + var(--d) * .12s) backwards;
}
.tag .who { font: 700 clamp(24px, 2.4vw, 36px)/1 var(--head); text-transform: uppercase; letter-spacing: .06em; text-shadow: 0 2px 18px rgba(0,0,0,.6); }
.tag .role { font: 500 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.team-copy {
  display: grid; grid-template-columns: minmax(0, auto) minmax(0, 46ch) minmax(0, 1fr);
  align-items: start; gap: 12px clamp(24px, 4vw, 64px);
  padding: clamp(16px, 2.6vh, 28px) var(--pad);
  border-top: 1px solid var(--line);
  animation: copy-in .9s var(--ease) 1.3s backwards;
}
.team-copy h1 { font-size: clamp(30px, 2.8vw, 42px); max-width: 16ch; }
.team-copy > p { margin: 0; }
.team-meta { display: grid; gap: 6px; justify-items: start; }
.team-meta p { margin: 0; }
.team-meta .more { margin-top: 4px; }
.fig-note { grid-column: 1 / -1; margin: 0; }

@keyframes open { to { transform: scaleY(0); } }
@keyframes rise {
  from { transform: translateY(7%) scale(1.06); filter: brightness(0); }
  55% { filter: brightness(.7); }
}
@keyframes tag-in { from { opacity: 0; transform: translateY(14px); clip-path: inset(0 0 100% 0); } }
@keyframes copy-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes sweep { to { transform: translateX(110%); } }
@keyframes stage-drift { from { transform: scale(1); } to { transform: scale(1.035) translateY(-.6%); } }

@media (prefers-reduced-motion: reduce) {
  .cast, .cast img, .tag, .team-copy, .sweep { animation: none; }
  .shutter, .sweep { display: none; }
  .cast img, .intro, .tag { transition: none; }
}

/* Watch */
.view-watch { grid-template-columns: minmax(0, 1fr); }
.fig-watch { width: min(100%, calc((100dvh - 260px) * 16 / 9)); }
.video {
  position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden;
  background: var(--graphite) center / cover no-repeat; border: 1px solid var(--line);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; height: 100%; background: rgba(27,27,25,.3); border: 0; cursor: pointer; padding: 0; }
.video-play[hidden] { display: none; }
.play-icon { position: relative; width: 84px; height: 60px; border-radius: var(--radius); background: var(--amber); }
.play-icon::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%); border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent var(--charcoal); }
.video-play:hover .play-icon { background: var(--amber-hover); }
.video-play:focus-visible { outline-offset: -6px; }
.video-empty { margin: 0; }
.fig-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 10px; }
.fig-foot a { font-size: 16px; }

/* Sources */
.view-sources { align-content: start; }
.refs { margin: 0; padding-left: 2.2em; font-size: 15px; line-height: 1.5; max-width: 90ch; }
.refs li { padding: 7px 0 7px 6px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; color: var(--bone); }
.refs li::marker { font: 500 13px var(--mono); color: var(--muted); }
.refs li:target { box-shadow: inset 2px 0 0 var(--bone); }
.refs a { color: var(--bone); }

@media (max-width: 899px) {
  .view { grid-template-columns: minmax(0, 1fr); row-gap: 28px; align-content: start; }
  /* Team on phones: swipe through the lineup */
  .view-team { grid-template-rows: auto auto; row-gap: 0; }
  .stage { height: min(112vw, 68dvh); min-height: 0; max-height: none; }
  .lineup { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
  .lineup::-webkit-scrollbar { display: none; }
  .cast { display: flex; width: max-content; padding: 0 20vw; animation: none; }
  .cast li { flex: 0 0 60vw; margin-right: -14vw; scroll-snap-align: center; }
  .cast li:last-child { margin-right: 0; }
  .cast img { left: 0; width: 100%; }
  .tag { padding: 0 18%; }
  .team-copy { grid-template-columns: minmax(0, 1fr); }
  .fig-watch { width: 100%; }
  .shots { grid-template-columns: 1fr; }
  .shots > :first-child { grid-row: auto; aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  .panel { scroll-behavior: auto; }
}

/* wide vs tall diagrams (Business) */
.dw-tall { display: none; max-width: 420px; }
@media (max-width: 899px) {
  .dw-wide { display: none; }
  .dw-tall { display: block; }
  .dw.dw-tall text { font-size: 14px; }
  .dw.dw-tall .node { font-size: 21px; }
  /* Device on phones: headline, then drawing, then callouts */
  .view-device .view-copy { display: contents; }
  .view-device h1 { order: 0; }
  .view-device .fig { order: 1; }
  .view-device .legend, .view-device .target, .view-device .more { order: 2; margin-top: 0; }
  .view-device { row-gap: 20px; }
  .fig-device .dw text { font-size: 18px; }
}
