@font-face { font-family: "Orbitron"; src: url("fonts/orbitron.woff2") format("woff2"); font-weight: 500 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --paper: #F1F5F9; --ink: #060B14; --night: #0C1626; --night-2: #12213A; --steel: #64748B; --steel-light: #94A3B8;
  --blue: #38BDF8; --orange: #2DD4BF; --amber: #34D399;
  --signal: linear-gradient(90deg, var(--blue) 0%, var(--orange) 62%, var(--amber) 100%);
  --display: "Orbitron", "Arial Black", sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 3.4vw, 56px);
  --bar: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --glass: rgba(10, 20, 36, .62);
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: var(--ink); color: #fff; font-family: var(--body); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--orange); color: var(--ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.02; margin: 0; }
p { margin: 0; }
.muted { color: var(--steel-light); }

/* ---------- film stage ---------- */
.ambient { position: fixed; inset: -60px; background-size: cover; background-position: center; filter: blur(50px) saturate(1.3); opacity: .35; transition: background-image 1s; }
.film { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: contain; background: transparent; transition: filter .8s var(--ease), transform .8s var(--ease), opacity .6s; }
body.layer-open .film { filter: blur(14px) brightness(.38) saturate(1.2); transform: scale(1.04); }
body.on-start .film { filter: blur(22px) brightness(.32) saturate(1.3); transform: scale(1.08); }
body.view-film .brand { opacity: 0; transition: opacity .4s; }
body.view-film .topbar:hover .brand { opacity: 1; }
.field { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 1s; }
body.on-start .field, body.layer-open .field { opacity: .7; }

/* ---------- top bar ---------- */
.topbar { position: fixed; inset: 0 0 auto 0; height: var(--bar); z-index: 40; display: flex; align-items: center; gap: 22px; padding: 0 var(--gutter);
  background: linear-gradient(180deg, rgba(6, 11, 20, .8), transparent); }
.brand { width: 92px; flex: none; }
.trail { display: flex; align-items: center; gap: 8px; font-size: 14px; min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; }
.trail a { text-decoration: none; opacity: .6; transition: opacity .2s; }
.trail a:hover { opacity: 1; }
.trail .sep { opacity: .3; }
.trail .here { font-weight: 600; }
.tools { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
.mode { position: relative; display: flex; padding: 3px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.mode::before { content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 99px; background: #fff; transition: transform .45s var(--ease); }
body[data-mode="tech"] .mode::before { transform: translateX(100%); }
.mode button { position: relative; z-index: 1; border: 0; background: none; width: 104px; padding: 6px 0; border-radius: 99px; font-size: 13px; font-weight: 500; transition: color .4s; }
.mode button[aria-pressed="true"] { color: var(--ink); }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); display: grid; place-items: center; font-weight: 600; transition: background-color .3s; }
.icon-btn:hover { background: rgba(255, 255, 255, .2); }
body[data-mode="plain"] [data-show="tech"], body[data-mode="tech"] [data-show="plain"] { display: none !important; }

/* ---------- player controls ---------- */
.controls { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 40px var(--gutter) 22px; display: flex; align-items: center; gap: 16px;
  background: linear-gradient(0deg, rgba(6, 11, 20, .85), transparent); transition: opacity .5s, transform .5s var(--ease); }
body.idle .controls, body.layer-open .controls, body.on-start .controls { opacity: 0; transform: translateY(20px); pointer-events: none; }
.ctl { border: 0; background: rgba(255, 255, 255, .1); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; transition: background-color .3s; }
.ctl:hover { background: rgba(255, 255, 255, .22); }
.ctl svg { width: 18px; height: 18px; fill: currentColor; }
.time { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--steel-light); flex: none; min-width: 84px; }
.track { position: relative; flex: 1; height: 34px; cursor: pointer; }
.track .rail { position: absolute; left: 0; right: 0; top: 15px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.track .fill { position: absolute; inset: 0; background: var(--signal); transform-origin: 0 50%; transform: scaleX(0); }
.track .tick { position: absolute; top: 11px; width: 2px; height: 12px; background: rgba(255, 255, 255, .5); border-radius: 2px; }
.track .chap { position: absolute; bottom: 30px; transform: translateX(-50%); font-size: 12px; white-space: nowrap; padding: 4px 9px; border-radius: 99px; background: rgba(6, 11, 20, .8); opacity: 0; transition: opacity .2s; pointer-events: none; }
.track:hover .chap { opacity: 1; }
.skip { border: 0; background: rgba(255, 255, 255, .12); border-radius: 99px; padding: 10px 18px; font-size: 14px; font-weight: 600; flex: none; transition: background-color .3s; }
.skip:hover { background: var(--orange); color: var(--ink); }

/* hotspot: "Explain simply" */
.hotspot {
  position: fixed; right: var(--gutter); bottom: 104px; z-index: 31; display: flex; align-items: center; gap: 14px; text-align: left;
  border: 0; border-radius: 20px; padding: 14px 20px 14px 14px; color: #fff; max-width: min(440px, calc(100vw - 32px));
  background: var(--glass); backdrop-filter: blur(16px) saturate(1.4); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 20px 60px -20px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateY(16px) scale(.96); pointer-events: none; transition: opacity .5s, transform .6s var(--ease), box-shadow .3s;
}
.hotspot.show { opacity: 1; transform: none; pointer-events: auto; }
.hotspot:hover { box-shadow: inset 0 0 0 1.5px var(--amber), 0 20px 60px -20px rgba(45, 212, 191, .5); }
.hotspot i { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--signal); display: grid; place-items: center; color: var(--ink); font-style: normal; font-weight: 800; font-size: 20px; }
.hotspot i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(45, 212, 191, .6); animation: ring 2s var(--ease) infinite; }
@keyframes ring { to { box-shadow: 0 0 0 16px rgba(45, 212, 191, 0); } }
.hotspot small { display: block; font-size: 12px; color: var(--amber); font-weight: 600; }
.hotspot b { display: block; font-size: 15px; line-height: 1.3; }
body.idle .hotspot.show { opacity: .85; }
body.layer-open .hotspot, body.on-start .hotspot { opacity: 0 !important; pointer-events: none !important; }

/* ---------- layers (everything that opens over the film) ---------- */
.layer { position: fixed; inset: 0; z-index: 20; overflow-y: auto; overscroll-behavior: contain; padding: calc(var(--bar) + 2vh) var(--gutter) 40px; display: flex; flex-direction: column; }
.layer[hidden] { display: none; }
.layer { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 calc(var(--bar) + 6px)); mask-image: linear-gradient(to bottom, transparent 0, #000 calc(var(--bar) + 6px)); }
.layer-inner { margin: auto 0; width: 100%; }
.kicker { font-size: 15px; font-weight: 600; color: var(--amber); margin-bottom: 14px; }
.layer h1 { font-size: clamp(30px, 4.6vw, 76px); max-width: 18ch; }
.layer h2 { font-size: clamp(24px, 3vw, 46px); max-width: 20ch; }
.layer .lead { margin-top: 16px; font-size: clamp(16px, 1.3vw, 20px); color: var(--steel-light); max-width: 58ch; }
.row-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(20px, 4vh, 40px); }
.back { border: 0; background: rgba(255, 255, 255, .1); border-radius: 99px; padding: 10px 18px; font-size: 14px; font-weight: 600; transition: background-color .3s; }
.back:hover { background: rgba(255, 255, 255, .22); }

.btn { position: relative; display: inline-flex; align-items: center; gap: 12px; overflow: hidden; isolation: isolate; border: 0; border-radius: 99px; padding: 16px 28px; font-weight: 600; font-size: 16px; text-decoration: none; background: #fff; color: var(--ink); transition: transform .3s var(--ease), color .3s; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--signal); transform: translateY(101%); transition: transform .45s var(--ease); }
.btn:hover::before { transform: none; }
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4); }
.btn.ghost:hover { color: var(--ink); box-shadow: none; }
.btn .pi { width: 26px; height: 26px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; }
.btn .pi svg { width: 10px; height: 10px; fill: var(--ink); margin-left: 2px; }
.btn.big { padding: 20px 34px; font-size: 18px; }
.chip { display: inline-block; padding: 5px 12px; border-radius: 99px; font-size: 13px; background: rgba(255, 255, 255, .1); }
kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; font-family: var(--body); font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .14); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25); color: #fff; }

/* start screen */
.start .layer-inner { max-width: 1400px; }
.start h1 { font-size: clamp(32px, min(5vw, 8.4vh), 88px); max-width: 15ch; }
.start .actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 34px; }
.jump { margin-top: clamp(30px, 6vh, 60px); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.jump span { font-size: 14px; color: var(--steel-light); margin-right: 6px; }
.jump button, .jump a { border: 0; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); border-radius: 99px; padding: 10px 16px; font-size: 14px; font-weight: 500; text-decoration: none; transition: background-color .3s, color .3s; }
.jump button:hover, .jump a:hover { background: #fff; color: var(--ink); }

/* choice cards */
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.choice {
  --mx: 50%; --my: 50%;
  position: relative; text-align: left; border: 0; padding: 0; border-radius: 24px; overflow: hidden; isolation: isolate; min-height: 300px;
  display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background: var(--night);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transition: transform .5s var(--ease), box-shadow .4s;
}
.choice img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.choice::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 11, 20, .05) 20%, rgba(6, 11, 20, .95)); }
.choice::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; padding: 2px; opacity: 0; transition: opacity .4s;
  background: radial-gradient(240px circle at var(--mx) var(--my), var(--amber), var(--orange) 30%, var(--blue) 60%, transparent 80%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.choice:hover, .choice:focus-visible { transform: translateY(-8px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); }
.choice:hover::before, .choice:focus-visible::before { opacity: 1; }
.choice:hover img { transform: scale(1.07); }
.choice .body { padding: 24px; display: grid; gap: 8px; }
.choice .num { position: absolute; top: 18px; left: 18px; z-index: 1; }
.choice h3 { font-size: clamp(20px, 1.8vw, 28px); }
.choice p { font-size: 15px; color: rgba(255, 255, 255, .78); }
.choice .meta { display: flex; gap: 8px; align-items: center; margin-top: 6px; font-size: 13px; font-weight: 600; }
.choice .meta .chip { background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); }
.choice .go { margin-left: auto; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: var(--ink); font-size: 18px; transition: transform .5s var(--ease); }
.choice:hover .go { transform: rotate(-45deg); }
.choice.action { background: linear-gradient(160deg, var(--night-2), var(--night)); min-height: 260px; }
.choice.action .glyph { position: absolute; top: 24px; right: 24px; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--signal); color: var(--ink); }
.choice.action .glyph svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; }
.mini-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 22px; }
.mini-row span { font-size: 14px; color: var(--steel-light); margin-right: 4px; }
.mini { display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 99px; padding: 6px 16px 6px 6px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); font-size: 14px; font-weight: 600; transition: background-color .3s, color .3s; }
.mini img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.mini:hover { background: #fff; color: var(--ink); }
.hint { margin-top: 20px; font-size: 13px; color: var(--steel-light); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* idea grid */
.ideas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.idea {
  --mx: 50%; --my: 50%;
  position: relative; text-align: left; border: 0; border-radius: 24px; padding: 26px; min-height: 240px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; isolation: isolate;
  background: var(--glass); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); transition: transform .5s var(--ease), box-shadow .4s;
}
.idea::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(320px circle at var(--mx) var(--my), rgba(45, 212, 191, .22), transparent 60%); opacity: 0; transition: opacity .4s; }
.idea:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1.5px rgba(255, 173, 65, .7); }
.idea:hover::after { opacity: 1; }
.idea .term { font-size: 14px; font-weight: 600; color: var(--steel-light); }
.idea .is { font-size: 14px; color: var(--amber); font-weight: 600; margin-top: auto; }
.idea h3 { font-size: clamp(20px, 1.8vw, 28px); }
.idea .count { font-size: 13px; color: var(--steel-light); }

/* analogy explainer */
.explainer .layer-inner { max-width: 1280px; margin-left: auto; margin-right: auto; }
.ex-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; }
.ex-title .term { font-family: var(--display); text-transform: uppercase; font-weight: 800; font-size: clamp(24px, 3.2vw, 52px); line-height: 1.05; }
.ex-title .islike { font-size: clamp(18px, 1.6vw, 24px); color: var(--steel-light); }
.ex-title .like { font-family: var(--display); text-transform: uppercase; font-weight: 800; font-size: clamp(24px, 3.2vw, 52px); line-height: 1.05; background: var(--signal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.map { margin-top: clamp(22px, 4vh, 40px); display: grid; grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr); gap: 10px 0; }
.map .col-h { font-size: 13px; font-weight: 600; padding: 0 20px 6px; }
.map .col-h.a { color: var(--blue); }
.map .col-h.b { color: var(--amber); }
.cell { border: 0; text-align: left; padding: 16px 20px; border-radius: 16px; font-size: clamp(15px, 1.25vw, 19px); font-weight: 600; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); opacity: .28; transition: opacity .5s, background-color .5s, box-shadow .5s, transform .5s var(--ease), color .5s; }
.cell.seen { opacity: .75; }
.cell.on { opacity: 1; transform: scale(1.02); }
.cell.a.on { background: rgba(56, 189, 248, .22); box-shadow: inset 0 0 0 1.5px var(--blue); }
.cell.b.on { background: rgba(255, 173, 65, .18); box-shadow: inset 0 0 0 1.5px var(--amber); }
.link { position: relative; display: grid; place-items: center; }
.link::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--signal); transform: scaleX(var(--draw, 0)); transform-origin: 0 50%; transition: transform .6s var(--ease); }
.link span { position: relative; z-index: 1; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 99px; background: var(--ink); color: var(--steel-light); opacity: 0; transition: opacity .4s .2s; white-space: nowrap; }
.link.seen { --draw: 1; }
.link.seen span { opacity: .6; }
.link.on span { opacity: 1; color: #fff; background: var(--orange); color: var(--ink); }
.link i { position: absolute; left: 0; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px 3px rgba(255, 173, 65, .8); opacity: 0; }
.link.on i { animation: travel 1.4s var(--ease) infinite; }
@keyframes travel { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.ex-foot { margin-top: clamp(22px, 4vh, 38px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: end; }
.summary { padding: 20px 24px; border-radius: 18px; background: rgba(56, 189, 248, .14); box-shadow: inset 3px 0 0 var(--blue); font-size: clamp(15px, 1.2vw, 18px); max-width: 74ch; }
.summary b { display: block; font-size: 13px; color: var(--blue); margin-bottom: 4px; }
.summary.tech { background: rgba(255, 255, 255, .06); box-shadow: inset 3px 0 0 var(--orange); }
.summary.tech b { color: var(--orange); }
.steps-nav { display: flex; gap: 8px; align-items: center; }
.steps-nav .dots { display: flex; gap: 6px; margin-right: 8px; }
.steps-nav .dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .25); transition: all .4s var(--ease); }
.steps-nav .dots i.on { width: 26px; border-radius: 6px; background: var(--signal); }
.ex-actions { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }

/* explainer with its own short film */
.ex-body { margin-top: clamp(18px, 3vh, 30px); display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(16px, 2vw, 28px); align-items: start; }
.ex-video { position: relative; border-radius: 22px; overflow: hidden; background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 40px 100px -30px rgba(56, 189, 248, .45); }
.ex-video video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.ex-end { position: absolute; inset: 0 0 56px 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px; text-align: center; padding: 20px;
  background: rgba(6, 11, 20, .78); backdrop-filter: blur(10px); }
.ex-end[hidden] { display: none; }
.ex-end p { font-family: var(--display); text-transform: uppercase; font-weight: 800; font-size: clamp(20px, 2.2vw, 34px); }
.ex-end-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.ex-side { display: grid; gap: 14px; }
.ex-map { display: grid; grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr); gap: 8px 0; align-items: stretch; }
.ex-map .col-h { font-size: 12px; font-weight: 600; padding: 0 12px 2px; }
.ex-map .col-h.a { color: var(--blue); }
.ex-map .col-h.b { color: var(--amber); }
.ex-map .cell { padding: 11px 13px; border-radius: 12px; font-size: 14px; }
.ex-map .link span { display: none; }
.ex-side .summary { font-size: 14px; padding: 14px 16px; }
.idea-thumb { position: relative; display: block; margin: -26px -26px 6px; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.idea-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); opacity: .9; }
.idea:hover .idea-thumb img { transform: scale(1.06); }
.idea-play { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); transition: transform .4s var(--ease); }
.idea-play svg { width: 18px; height: 18px; fill: var(--ink); margin-left: 3px; }
.idea:hover .idea-play { transform: scale(1.12); }
.idea-dur { position: absolute; right: 10px; bottom: 10px; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: rgba(6, 11, 20, .8); }

/* cases */
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.case { --mx: 50%; --my: 50%; position: relative; text-align: left; border: 0; border-radius: 24px; padding: 24px; min-height: 230px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; isolation: isolate;
  background: var(--glass); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); transition: transform .5s var(--ease), box-shadow .4s; }
.case::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(320px circle at var(--mx) var(--my), rgba(56, 189, 248, .25), transparent 60%); opacity: 0; transition: opacity .4s; }
.case:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1.5px rgba(56, 189, 248, .8); }
.case:hover::after { opacity: 1; }
.case .client { font-size: 14px; font-weight: 600; color: var(--amber); }
.case h3 { font-size: 17px; }
.case p { font-size: 15px; color: var(--steel-light); }
.case footer { margin-top: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.br { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: #55d68a; }
.br::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2fbf6b; box-shadow: 0 0 0 3px rgba(47, 191, 107, .25); }

.case-view .layer-inner { max-width: 1240px; margin-left: auto; margin-right: auto; }
.cv-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: start; }
.cv-head .client { font-weight: 600; color: var(--amber); }
.cv-head h2 { margin-top: 10px; font-size: clamp(24px, 3vw, 46px); max-width: 22ch; }
.cv-head .outcome { margin-top: 14px; font-size: clamp(16px, 1.3vw, 20px); color: rgba(255, 255, 255, .85); max-width: 60ch; }
.cv-grid { margin-top: clamp(20px, 4vh, 36px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.panel { padding: 22px 24px; border-radius: 20px; background: var(--glass); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.panel h3 { font-size: 14px; margin-bottom: 10px; color: var(--steel-light); }
.panel ul { margin: 0; padding-left: 18px; display: grid; gap: 7px; font-size: 15px; }
.panel.analogy { grid-column: 1 / -1; background: rgba(56, 189, 248, .16); box-shadow: inset 3px 0 0 var(--blue); display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.panel.analogy p { font-size: clamp(16px, 1.3vw, 19px); max-width: 70ch; }
.panel.analogy b { display: block; font-size: 13px; color: var(--blue); margin-bottom: 4px; }
.tech-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin: 0; }
.facts dt { font-size: 13px; color: var(--steel-light); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.pager { display: flex; gap: 8px; }

/* datasheet download card */
.dl-card { grid-column: 1 / -1; position: relative; display: flex; align-items: center; gap: 20px; padding: 20px 24px; border-radius: 20px; text-decoration: none; overflow: hidden; isolation: isolate;
  background: linear-gradient(120deg, rgba(56, 189, 248, .22), rgba(45, 212, 191, .2) 60%, rgba(255, 173, 65, .2)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); transition: transform .5s var(--ease), box-shadow .4s; }
.dl-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--signal); opacity: 0; transition: opacity .5s; }
.dl-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(45, 212, 191, .6); }
.dl-card:hover::before { opacity: 1; }
.dl-card:hover, .dl-card:hover .dl-meta { color: var(--ink); }
.dl-icon { flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: #fff; color: var(--ink); }
.dl-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.dl-text { display: grid; }
.dl-text b { font-family: var(--display); text-transform: uppercase; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.1; }
.dl-text span { font-size: 16px; font-weight: 500; }
.dl-meta { margin-left: auto; font-size: 13px; color: var(--steel-light); }
.dl-card .go { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: var(--ink); font-size: 20px; flex: none; transition: background-color .3s, color .3s; }
.dl-card:hover .go { background: var(--ink); color: #fff; }

/* credit line */
.credit { position: fixed; right: 12px; bottom: 5px; z-index: 90; margin: 0; font-size: 11px; line-height: 1.2; color: rgba(255, 255, 255, .42); pointer-events: none; text-align: right; }

/* film switch wipe */
.wipe { position: fixed; inset: 0; z-index: 50; pointer-events: none; background: var(--signal); transform: scaleX(0); transform-origin: 0 50%; }

/* help */
.help { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(6, 11, 20, .7); backdrop-filter: blur(8px); padding: 16px; }
.help[hidden] { display: none; }
.help-card { background: var(--night); border-radius: 24px; padding: 30px; width: min(560px, 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.help-card h2 { font-size: 22px; margin-bottom: 18px; }
.help-card dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 0 0 24px; }
.help-card dd { margin: 0; color: var(--steel-light); }

@media (max-width: 760px) {
  .trail { display: none; }
  .mode button { width: 80px; font-size: 12px; }
  #help-btn { display: none; }
  .brand { width: 76px; }
  .time { display: none; }
  .skip { padding: 10px 14px; font-size: 13px; }
  .hotspot { bottom: 96px; left: 16px; right: 16px; }
  .map { grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr); }
  .link span { display: none; }
  .cell { padding: 12px 12px; }
  .ex-foot, .cv-head, .cv-grid, .ex-body { grid-template-columns: 1fr; }
  .choice { min-height: 220px; }
  .credit { font-size: 8.5px; right: 8px; bottom: 4px; white-space: nowrap; }
  .controls { padding-bottom: 26px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 1080px) { .ex-body { grid-template-columns: 1fr; } }

/* ===== Speak with an Expert ===== */
.expert-btn { display: inline-flex; align-items: center; gap: 9px; border: 0; border-radius: 99px; padding: 9px 16px; font-size: 13px; font-weight: 700; color: var(--ink);
  background: var(--signal); box-shadow: 0 10px 30px -12px rgba(45, 212, 191, .7); transition: transform .3s var(--ease), filter .3s; }
.expert-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.expert-btn .short { display: none; }
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #2fbf6b; flex: none; }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #2fbf6b; animation: ping2 2s var(--ease) infinite; }
@keyframes ping2 { from { transform: scale(1); opacity: .7; } to { transform: scale(2.8); opacity: 0; } }
.mini.expert { padding: 10px 18px; gap: 10px; background: rgba(45, 212, 191, .16); box-shadow: inset 0 0 0 1px rgba(45, 212, 191, .5); }
.mini.expert:hover { background: var(--orange); color: var(--ink); }
.expert-cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 18px; padding: 0 22px; font-weight: 700; font-size: 15px;
  background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); transition: background-color .3s, color .3s, box-shadow .3s; }
.expert-cta:hover { background: #fff; color: var(--ink); box-shadow: none; }

/* ===== one-fold layouts ===== */
.start h1 { font-size: clamp(30px, min(5vw, 7.2vh), 88px); }
.start .lead { margin-top: clamp(10px, 2vh, 16px); }
.start .actions { margin-top: clamp(18px, 3.4vh, 34px); }
.jump { margin-top: clamp(18px, 4vh, 60px); }
.layer h1 { font-size: clamp(28px, min(4.6vw, 7vh), 76px); }
.choice { min-height: clamp(220px, 34vh, 300px); }

/* carousel: one row that slides sideways */
.carousel { position: relative; }
.carousel .car-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 10px; }
.carousel .car-track::-webkit-scrollbar { display: none; }
.carousel .car-track > * { flex: 0 0 clamp(250px, 23vw, 330px); scroll-snap-align: start; }
.carousel .case { min-height: clamp(210px, 32vh, 270px); }
.car-nav { position: absolute; top: 50%; z-index: 2; width: 46px; height: 46px; margin-top: -23px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); font-size: 18px; font-weight: 700;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); transition: opacity .3s, transform .3s var(--ease); }
.car-nav.prev { left: -14px; } .car-nav.next { right: -14px; }
.car-nav:hover { transform: scale(1.08); }
.car-nav:disabled { opacity: 0; pointer-events: none; }
.carousel.fits .car-nav { display: none; }

/* case view: everything on one screen, details in tabs */
.case-view .layer-inner, .case-view { max-width: 1320px; margin-left: auto; margin-right: auto; }
.cv-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.cv-left { display: flex; flex-direction: column; gap: clamp(8px, 1.4vh, 14px); }
.cv-left .client { font-weight: 600; color: var(--amber); }
.cv-left h2 { font-size: clamp(22px, min(2.6vw, 4.6vh), 42px); max-width: 22ch; }
.cv-left .outcome { font-size: clamp(15px, 1.2vw, 19px); color: rgba(255, 255, 255, .85); }
.cv-left .panel.analogy { display: grid; gap: 12px; justify-items: start; }
.cv-left .panel.analogy p { font-size: clamp(14px, 1.1vw, 17px); }
.cv-cta { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; }
.cv-cta .dl-card { padding: 14px 16px; gap: 14px; }
.cv-cta .dl-icon { width: 46px; height: 46px; border-radius: 14px; }
.cv-cta .dl-text b { font-size: 17px; }
.cv-cta .dl-text span { font-size: 14px; }
.cv-cta .dl-meta { display: none; }
.cv-cta .dl-card .go { width: 38px; height: 38px; margin-left: auto; }
.btn.small { padding: 9px 16px 9px 10px; font-size: 14px; gap: 10px; }
.btn.small .pi { width: 22px; height: 22px; }
.cv-right { display: grid; gap: 12px; }
.cv-bar { display: flex; gap: 10px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 99px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.tabs button { border: 0; background: none; border-radius: 99px; padding: 9px 15px; font-size: 14px; font-weight: 600; color: var(--steel-light); transition: background-color .3s, color .3s; }
.tabs button:hover { color: #fff; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); }
.tab-panel { min-height: clamp(220px, 40vh, 380px); }
.tab-panel[hidden] { display: none; }
.tab-panel ul { gap: 12px; font-size: clamp(14px, 1.15vw, 17px); }
.tab-panel .chip { font-size: 14px; padding: 7px 14px; }
.tab-panel .tech-chips { gap: 10px; }
.tab-panel .facts dd { font-size: 17px; }

@media (max-width: 1080px) { .cv-main { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .expert-btn .full { display: none; } .expert-btn .short { display: inline; }
  .cv-cta { grid-template-columns: 1fr; } .expert-cta { padding: 14px; }
  .car-nav { display: none; }
}
.cv-cta .dl-card { grid-column: auto; margin: 0; }
.expert-cta { min-height: 64px; }

/* opening card: full screen suggestion */
.fs-prompt { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 16px; background: rgba(6, 11, 20, .55); backdrop-filter: blur(6px); }
.fs-card { width: min(520px, 100%); text-align: center; padding: 34px clamp(20px, 4vw, 40px) 30px; border-radius: 26px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--night-2), var(--night)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 40px 120px -30px rgba(56, 189, 248, .5); }
.fs-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--signal); }
.fs-keys { display: flex; justify-content: center; margin-bottom: 18px; }
.fs-key { display: inline-grid; place-items: center; min-width: 96px; height: 70px; padding: 0 18px; border-radius: 16px; font-family: var(--display); font-weight: 800; font-size: 26px;
  background: #fff; color: var(--ink); box-shadow: inset 0 -6px 0 rgba(6, 11, 20, .18), 0 18px 40px -16px rgba(45, 212, 191, .7); animation: press 2.4s var(--ease) infinite; }
@keyframes press { 0%, 70%, 100% { transform: translateY(0); box-shadow: inset 0 -6px 0 rgba(6, 11, 20, .18), 0 18px 40px -16px rgba(45, 212, 191, .7); }
  80% { transform: translateY(4px); box-shadow: inset 0 -2px 0 rgba(6, 11, 20, .18), 0 8px 20px -12px rgba(45, 212, 191, .7); } }
.fs-card h2 { font-size: clamp(22px, 2.6vw, 32px); }
.fs-card p { margin: 12px auto 24px; max-width: 36ch; color: var(--steel-light); }
.fs-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.fs-actions .pi { background: transparent; }
.fs-timer { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .08); }
.fs-timer i { display: block; height: 100%; background: var(--signal); transform-origin: 0 50%; }

/* ===== phones: every view fits one screen (rows slide sideways, details live in tabs) ===== */
@media (max-width: 760px) {
  .layer { padding: calc(var(--bar) + 4px) 16px 14px; }
  .layer-inner { margin: 0; display: flex; flex-direction: column; min-height: 100%; }
  .layer .lead { display: none; }
  .hint { display: none; }
  .kicker { margin-bottom: 6px; font-size: 13px; }
  .layer h1 { font-size: clamp(24px, 7.2vw, 30px); }
  .layer h2 { font-size: clamp(22px, 6.6vw, 28px); }
  .row-head { margin-bottom: 14px; gap: 10px; }
  /* choices and ideas: one sliding row */
  .choices, .ideas { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 4px 16px 8px; }
  .choices::-webkit-scrollbar, .ideas::-webkit-scrollbar { display: none; }
  .choices > *, .ideas > * { flex: 0 0 78%; scroll-snap-align: center; }
  .choice { min-height: min(46vh, 340px); }
  .choice.action { min-height: min(34vh, 240px); }
  .idea { min-height: 0; padding: 18px; }
  .idea-thumb { margin: -18px -18px 6px; }
  .idea h3 { font-size: 20px; }
  .mini-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 14px -16px 0; padding: 0 16px 4px; }
  .mini-row::-webkit-scrollbar { display: none; }
  .mini-row > * { flex: none; }
  .mini-row span { white-space: nowrap; }
  /* project list */
  .carousel .case { min-height: min(40vh, 260px); }
  /* project detail: title, tabs, one panel, then the two calls to action */
  .case-view.is-phone .cv-main { display: flex; flex-direction: column; gap: 10px; height: calc(100svh - var(--bar) - 22px); }
  .case-view.is-phone .cv-left { display: contents; }
  .case-view.is-phone .cv-left > .client { order: 1; font-size: 13px; }
  .case-view.is-phone .cv-left > h2 { order: 2; font-size: clamp(18px, 5.6vw, 24px); margin: 0; }
  .case-view.is-phone .cv-left > .outcome, .case-view.is-phone .cv-left > .br, .case-view.is-phone .cv-left > .panel.analogy { display: none; }
  .case-view.is-phone .cv-right { order: 3; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
  .case-view.is-phone .cv-cta { order: 4; grid-template-columns: 1fr 1fr; gap: 8px; }
  .case-view.is-phone .cv-bar { flex-wrap: nowrap; gap: 6px; }
  .case-view.is-phone .tabs { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .case-view.is-phone .tabs::-webkit-scrollbar { display: none; }
  .case-view.is-phone .tabs button { flex: none; padding: 8px 12px; font-size: 13px; }
  .case-view.is-phone .pager .back:first-child { display: none; }
  .case-view.is-phone .pager .back { padding: 8px 12px; }
  .case-view.is-phone .tab-panels { flex: 1; min-height: 0; display: flex; }
  .case-view.is-phone .tab-panel { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; }
  .case-view.is-phone .tab-panel ul { font-size: 14px; gap: 8px; }
  .tab-panel .outcome { font-size: 15px; color: rgba(255, 255, 255, .88); }
  .tab-panel .br { margin-top: 8px; }
  .tab-panel .analogy-s { margin: 12px 0; padding: 12px 14px; border-radius: 12px; background: rgba(56, 189, 248, .16); box-shadow: inset 3px 0 0 var(--blue); font-size: 14px; }
  .tab-panel .analogy-s b { display: block; font-size: 12px; color: var(--blue); margin-bottom: 2px; }
  .case-view.is-phone .cv-cta .dl-card { padding: 10px 12px; gap: 10px; border-radius: 14px; }
  .case-view.is-phone .cv-cta .dl-icon { width: 34px; height: 34px; border-radius: 10px; }
  .case-view.is-phone .cv-cta .dl-icon svg { width: 18px; height: 18px; }
  .case-view.is-phone .cv-cta .dl-text b { font-size: 13px; }
  .case-view.is-phone .cv-cta .dl-text span { font-size: 11.5px; }
  .case-view.is-phone .cv-cta .dl-card .go { display: none; }
  .case-view.is-phone .expert-cta { min-height: 0; padding: 10px; font-size: 13px; border-radius: 14px; }
  /* explainer: title, film, compact parallels */
  .explainer .ex-title { gap: 2px 10px; }
  .explainer .ex-title .term, .explainer .ex-title .like { font-size: clamp(17px, 5.2vw, 22px); }
  .explainer .ex-title .islike { font-size: 14px; }
  .explainer .row-head > .back { display: none; }
  .ex-body { margin-top: 10px; gap: 10px; }
  .ex-side .summary { display: none; }
  .ex-map { gap: 4px 0; grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr); }
  .ex-map .col-h { font-size: 11px; padding: 0 8px; }
  .ex-map .cell { padding: 7px 9px; font-size: 12.5px; border-radius: 10px; }
  .ex-end { inset: 0 0 40px 0; gap: 10px; }
  .ex-end p { font-size: 16px; }
  .ex-end .btn { padding: 9px 14px; font-size: 13px; }
}
/* phones and tablets: no keyboard shortcuts help, no full-screen card */
@media (pointer: coarse) { #help-btn { display: none; } }
@media (max-width: 760px) {
  .case-view.is-phone, .case-view.is-phone .cv-main { max-width: 100%; min-width: 0; }
  .case-view.is-phone .cv-right, .case-view.is-phone .cv-bar, .case-view.is-phone .tab-panels, .case-view.is-phone .tab-panel { min-width: 0; max-width: 100%; }
  .case-view.is-phone .cv-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .case-view.is-phone .tabs { width: 100%; }
  .case-view.is-phone .cv-cta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .case-view.is-phone .cv-cta > * { min-width: 0; }
  .case-view.is-phone .dl-text { min-width: 0; }
  .case-view.is-phone .dl-text b, .case-view.is-phone .dl-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .case-view.is-phone .expert-cta { white-space: nowrap; }
}
@media (max-width: 760px) { .case-view.is-phone .tab-panel { min-height: 0; } }
@media (max-width: 760px) { .case-view.is-phone .cv-cta .dl-icon { display: none; } .case-view.is-phone .cv-cta .dl-card { padding: 10px 14px; } }
@media (max-width: 370px) { .case-view.is-phone .cv-cta .dl-text span { font-size: 10.5px; } .case-view.is-phone .expert-cta { font-size: 12px; } }
