/* ==========================================================================
   Mack Issa portfolio · "Under the ice" layer
   25 Nov 2026, Claude. Loaded last on every page.
   The ice opening stays as it is; each page then descends into its own world:
     Systems  → the abyss (Brain, Room, Sentinel, Meter)
     Workflow → the current (a river that carries a job)
     Work     → four rooms (cinema, paper, glass, gallery)
     About    → the thaw
   ========================================================================== */

@font-face { font-family: EpicPoster; src: url(media/type/barlow-condensed-black.ttf) format("truetype"); font-weight: 900; font-display: swap; }
@font-face { font-family: EpicText; src: url(media/type/archivo-400.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: EpicSerif; src: url(media/type/instrument-serif.woff2) format("woff2"); font-display: swap; }

:root {
  --ink: #102e42;
  --ice: #edf7f4;
  --glacier: #8cc3cc;
  --abyss: #02070b;
  --deep: #071a24;
  --biolume: #8fe3f0;
  --bronze: #c9a46a;
  --bronze-hi: #f0d29a;
  --reactor: #ff3b1f;
  --current: #0a3b4e;
  --foam: #d8f3f2;
  --ember: #ffe2a3;
  --cedar: #1f4d3a;
  --coral: #ff7a5c;
  --paper: #eef1ea;
  --pad: clamp(20px, 5vw, 104px);
}

/* ---------- phone fixes for every page ---------- */
html, body { overflow-x: clip; max-width: 100%; }
@media (max-width: 560px) {
  .ice-mast, .mast { gap: 8px; }
  .ice-mast .ice-identity > span:last-child,
  .mast .identity > span:last-child { display: none; }
  .ice-mast nav, .mast nav { gap: 14px !important; }
  .ice-mast nav a, .mast nav .menu-link { font-size: 13px !important; }
  .ice-copy { max-width: none !important; }
  .ice-copy .ice-title { font-size: clamp(54px, 17.5vw, 96px) !important; text-wrap: wrap !important; }
  .ice-rail { overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap !important; }
  .ice-rail::-webkit-scrollbar { display: none; }
  .ice-rail a { flex: none; }
}
@media (max-width: 740px) and (orientation: portrait) {
  body .poster { font-size: min(17.5vw, 12.5svh) !important; }
  body .poster .line > span { transform: none !important; }
}

/* ---------- shared pieces ---------- */
.epic { font-family: EpicText, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.epic *, .epic *::before, .epic *::after { box-sizing: border-box; }
.epic h2, .epic .epic-poster {
  font-family: EpicPoster, "Arial Black", sans-serif; font-weight: 900; text-transform: uppercase;
  letter-spacing: -.035em; line-height: .82; margin: 0;
}
.epic p { margin: 0; }
.epic a { color: inherit; }
.epic :focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.epic-btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 22px;
  border: 1px solid currentColor; border-radius: 999px; background: transparent; color: inherit;
  font: 600 15px/1 EpicText, Arial, sans-serif; text-decoration: none; cursor: pointer;
  transition: background .25s, color .25s;
}
.epic-btn:hover { background: currentColor; }
.epic-btn:hover > * { color: var(--btn-ink, #000); }
.epic-btn.solid { background: var(--btn-bg, currentColor); border-color: transparent; color: var(--btn-ink, #000); }
.epic-lede { max-width: 46ch; font-size: clamp(16px, 1.35vw, 20px); line-height: 1.55; }
.epic-small { font-size: 13px; line-height: 1.5; opacity: .72; }
.epic-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  font-size: 12.5px; line-height: 1; border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
}
.epic-chip i { width: 7px; height: 7px; border-radius: 50%; background: #6b7c86; }
.epic-chip[data-state="ok"] i { background: #5dff9e; box-shadow: 0 0 10px #5dff9e; }
.epic-chip[data-state="demo"] i { background: var(--bronze); }

/* the descent strip between ice and the deep */
.epic-descent {
  height: clamp(120px, 22svh, 260px);
  background: linear-gradient(#d3eaed, #6aa7b4 30%, #12394a 70%, var(--to, var(--abyss)));
}

/* closing call to action, all pages */
.epic-cta {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(90px, 16svh, 180px) var(--pad);
  background: var(--abyss); color: var(--ice);
  display: grid; gap: 28px; justify-items: start;
}
.epic-cta::before {
  content: ""; position: absolute; inset: -40% -10% auto 30%; height: 140%; z-index: -1;
  background: radial-gradient(closest-side, #1d6f82aa, transparent 70%);
  filter: blur(10px);
}
.epic-cta h2 { font-size: clamp(64px, 11vw, 190px); }
.epic-cta .epic-btn { --btn-ink: var(--abyss); }
.epic-cta nav { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14px; }
.epic-cta nav a { opacity: .75; text-decoration: none; }
.epic-cta nav a:hover { opacity: 1; text-decoration: underline; }

/* reveal: one gentle entrance per block, driven by JS adding .in */
@media (prefers-reduced-motion: no-preference) {
  .epic [data-rise] { opacity: 0; transform: translateY(26px); transition: opacity .8s, transform .8s cubic-bezier(.2,.7,.2,1); }
  .epic [data-rise].in { opacity: 1; transform: none; }
}

/* ==========================================================================
   SYSTEMS · the abyss
   ========================================================================== */
.sys { background: var(--abyss); color: #dbeef2; }

/* Brain */
.sys-brain { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(300px, 32%) 1fr; }
.sys-brain-copy { position: relative; z-index: 2; padding: clamp(80px, 12svh, 140px) 0 60px var(--pad); display: grid; align-content: center; gap: 26px; }
.sys-brain-copy h2 { font-size: clamp(72px, 9vw, 168px); color: #f2fbfc; }
.sys-brain-copy h2 span { display: block; padding-left: .18em; color: transparent; -webkit-text-stroke: 1.5px var(--biolume); }
.sys-stats { display: grid; grid-template-columns: repeat(3, auto); gap: 18px 28px; justify-content: start; margin: 4px 0 0; }
.sys-stats div { display: grid; gap: 4px; }
.sys-stats dt { font-size: 12px; opacity: .6; }
.sys-stats dd { margin: 0; font-family: EpicPoster, sans-serif; font-size: 40px; line-height: 1; color: var(--biolume); }
.sys-brain-stage { position: relative; min-height: 100svh; overflow: hidden; }
.sys-brain-stage iframe, .sys-brain-poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.sys-brain-poster { object-fit: cover; object-position: 50% 45%; filter: saturate(1.1); transition: opacity .6s; }
.sys-brain-stage::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 22%; pointer-events: none; background: linear-gradient(90deg, var(--abyss), transparent); }
.sys-brain-enter {
  position: absolute; z-index: 3; left: 50%; top: 50%; translate: -50% -50%;
  display: grid; place-items: center; gap: 10px; width: 168px; height: 168px; border-radius: 50%;
  border: 1px solid #8fe3f088; background: radial-gradient(#0b2a35dd, #02070bcc); color: var(--biolume);
  font: 600 15px/1.2 EpicText, sans-serif; cursor: pointer; text-align: center;
  box-shadow: 0 0 0 0 #8fe3f055; animation: sysPulse 2.6s infinite;
}
.sys-brain-enter b { font-family: EpicPoster, sans-serif; font-size: 30px; letter-spacing: -.02em; text-transform: uppercase; }
@keyframes sysPulse { 0% { box-shadow: 0 0 0 0 #8fe3f055; } 70% { box-shadow: 0 0 0 40px #8fe3f000; } 100% { box-shadow: 0 0 0 0 #8fe3f000; } }
.sys-brain-stage.live .sys-brain-poster, .sys-brain-stage.live .sys-brain-enter { opacity: 0; pointer-events: none; }
.sys-brain-note { position: absolute; z-index: 3; right: 18px; bottom: 16px; font-size: 12px; opacity: .55; }

/* Room — the only warm place down here */
.sys-room { position: relative; background: linear-gradient(var(--abyss), #0d0905 18%, #120c06 80%, var(--abyss)); color: #f3e6cf; padding: clamp(90px, 14svh, 160px) 0 clamp(70px, 10svh, 120px); }
.sys-room-head { padding: 0 var(--pad); display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 60px; }
.sys-room-head h2 { font-size: clamp(72px, 10vw, 180px); color: var(--bronze-hi); }
.sys-room-head .epic-lede { color: #e6d6bb; }
.sys-office {
  --w: min(1500px, calc(100vw - 2 * var(--pad)));
  position: relative; width: var(--w); aspect-ratio: 3 / 2; margin: clamp(36px, 6svh, 70px) auto 0;
  border-radius: 6px; overflow: hidden; isolation: isolate;
  box-shadow: 0 40px 120px #000c, 0 0 0 1px #c9a46a33;
  container-type: inline-size;
}
.sys-office > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.sys-office::after { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; background: radial-gradient(ellipse at 50% 40%, transparent 55%, #000a 100%); }
.bot { position: absolute; z-index: 2; translate: -50% -100%; pointer-events: none; filter: drop-shadow(0 6px 8px #0009); }
.bot img { display: block; width: 100%; height: auto; }
.bot.desk { width: 6.4cqw; }
.bot.desk.far { width: 4.6cqw; }
.bot.sofa { width: 5.4cqw; }
.bot.coffee { width: 6.8cqw; }
.bot.stand { width: 4.6cqw; }
.bot .screen-glow { position: absolute; inset: -30% -10% 40%; background: radial-gradient(closest-side, #8fe3f044, transparent); mix-blend-mode: screen; animation: flick 3s infinite alternate; }
@keyframes flick { to { opacity: .4; } }
.walker {
  position: absolute; z-index: 3; width: 6.2cqw; aspect-ratio: 288 / 384; translate: -50% -100%;
  background: url(media/room/robot-walk.webp) 0 0 / 400% 200% no-repeat; pointer-events: none;
  filter: drop-shadow(0 8px 8px #000a);
}
.walker.flip { scale: -1 1; }
.walker .ticket {
  position: absolute; left: 50%; top: -18%; translate: -50% 0; scale: var(--unflip, 1) 1;
  padding: 4px 8px; border-radius: 4px; white-space: nowrap;
  background: #f0d29a; color: #1d1305; font: 700 1.05cqw/1 EpicText, sans-serif;
  box-shadow: 0 4px 12px #0008;
}
.walker.flip .ticket { scale: -1 1; }
.hot {
  position: absolute; z-index: 6; translate: -50% -50%; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid #f0d29a; background: #120c06cc; color: #f0d29a; display: grid; place-items: center;
  font: 700 12px/1 EpicText, sans-serif; cursor: pointer; padding: 0;
}
.hot::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid #f0d29a66; animation: sysPulse 2.8s infinite; }
.hot span {
  position: absolute; left: 50%; bottom: calc(100% + 10px); translate: -50% 6px; width: max-content; max-width: 230px;
  padding: 10px 12px; border-radius: 6px; background: #0d0905f2; border: 1px solid #c9a46a55; color: #f3e6cf;
  font: 400 13px/1.45 EpicText, sans-serif; text-align: left; opacity: 0; pointer-events: none; transition: opacity .2s, translate .2s;
}
.hot span strong { display: block; color: var(--bronze-hi); margin-bottom: 2px; }
.hot:is(:hover, :focus-visible, [aria-expanded="true"]) span { opacity: 1; translate: -50% 0; }
.sys-room-status { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; padding: 24px var(--pad) 0; justify-content: center; color: #e6d6bb; }
.sys-room-status .epic-btn { --btn-ink: #120c06; min-height: 42px; font-size: 14px; }

/* Sentinel — the spider's lair */
.sys-sentinel { position: relative; min-height: 100svh; background: radial-gradient(ellipse at 60% 55%, #0a1218, var(--abyss) 70%); overflow: hidden; color: #cfe9f2; }
.sys-sentinel canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.sys-sentinel-copy { position: relative; z-index: 2; padding: clamp(90px, 13svh, 150px) var(--pad) 0; display: grid; gap: 22px; max-width: 760px; pointer-events: none; }
.sys-sentinel-copy h2 { font-size: clamp(72px, 10vw, 180px); color: #fff; text-shadow: 0 0 40px #ff3b1f55; }
.sys-sentinel-copy .epic-lede { color: #b9d6e0; }
.sys-sentinel-log {
  position: absolute; z-index: 2; right: var(--pad); bottom: clamp(30px, 6svh, 60px); width: min(340px, calc(100% - 2 * var(--pad)));
  font: 12.5px/1.6 ui-monospace, Consolas, monospace; color: #8fb3c4; pointer-events: none;
}
.sys-sentinel-log p { margin: 0; opacity: 0; animation: logIn .5s forwards; }
.sys-sentinel-log p b { color: #5dff9e; font-weight: 600; }
.sys-sentinel-log p b.warn { color: #ffb547; }
@keyframes logIn { to { opacity: 1; } }
.sys-sentinel-hint { position: absolute; z-index: 2; left: var(--pad); bottom: clamp(30px, 6svh, 60px); font-size: 12.5px; opacity: .55; }

/* Token Meter */
.sys-meter { position: relative; padding: clamp(90px, 14svh, 160px) var(--pad); display: grid; grid-template-columns: 1fr minmax(280px, 520px); gap: 50px 80px; align-items: center; background: var(--abyss); }
.sys-meter h2 { font-size: clamp(64px, 8.5vw, 150px); color: #f2fbfc; }
.sys-meter .epic-lede { margin-top: 24px; color: #b9d6e0; }
.gauge { position: relative; width: 100%; aspect-ratio: 1; }
.gauge svg { width: 100%; height: 100%; overflow: visible; }
.gauge .track { fill: none; stroke: #12313d; stroke-width: 22; }
.gauge .fill { fill: none; stroke: url(#gaugeGrad); stroke-width: 22; stroke-linecap: round; transition: stroke-dashoffset 2.2s cubic-bezier(.2,.8,.2,1); }
.gauge .tick { stroke: #ff3b1f; stroke-width: 3; }
.gauge .read { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 6px; }
.gauge .read b { font-family: EpicPoster, sans-serif; font-size: clamp(76px, 9vw, 150px); line-height: .85; color: #f2fbfc; }
.gauge .read span { font-size: 13px; opacity: .65; }
.gauge .stop { position: absolute; font-size: 12px; color: #ff8a73; }

@media (max-width: 860px) {
  .sys-brain { grid-template-columns: 1fr; }
  .sys-brain-copy { padding: 80px var(--pad) 30px; }
  .sys-brain-stage { min-height: 72svh; }
  .sys-brain-stage::after { display: none; }
  .sys-stats { grid-template-columns: repeat(3, 1fr); }
  .sys-stats dd { font-size: 32px; }
  .sys-office-scroll { overflow-x: auto; scrollbar-width: none; padding: 0 var(--pad); scroll-snap-type: x proximity; }
  .sys-office-scroll::-webkit-scrollbar { display: none; }
  .sys-office { --w: 175vw; margin-left: 0; scroll-snap-align: center; }
  .sys-office-scroll::after { content: "Swipe to look around"; position: sticky; left: 0; display: block; padding-top: 10px; font-size: 12px; color: #e6d6bb; opacity: .7; }
  .baton i { left: 22px; translate: 0 0; top: -7px; }
  .sys-meter { grid-template-columns: 1fr; }
  .sys-sentinel { min-height: 120svh; }
}

/* ==========================================================================
   WORKFLOW · the current
   ========================================================================== */
.flow { background: var(--current); color: var(--foam); }
.flow-console { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; justify-content: space-between;
  padding: 16px var(--pad); background: #062433e6; backdrop-filter: blur(10px); border-bottom: 1px solid #d8f3f222; }
.flow-console h2 { font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -.02em; }
.flow-console h2 em { font-family: EpicSerif, Georgia, serif; font-style: normal; text-transform: none; font-weight: 400; letter-spacing: 0; margin-left: .3em; color: var(--ember); }
.flow-pick { display: flex; gap: 8px; }
.flow-pick button { min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid #d8f3f255; background: transparent; color: var(--foam); font: 600 14px/1 EpicText, sans-serif; cursor: pointer; }
.flow-pick button[aria-pressed="true"] { background: var(--foam); color: #062433; border-color: var(--foam); }
.flow-river { position: relative; padding: clamp(60px, 10svh, 110px) var(--pad) clamp(80px, 12svh, 140px); }
.flow-river svg.path { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.flow-river .bed { fill: none; stroke: #0f5468; stroke-width: 46; stroke-linecap: round; opacity: .55; }
.flow-river .water { fill: none; stroke: url(#flowGrad); stroke-width: 3; stroke-dasharray: 2 14; stroke-linecap: round; animation: flowDash 1.4s linear infinite; }
.flow-river .lit { fill: none; stroke: var(--ember); stroke-width: 4; stroke-linecap: round; filter: drop-shadow(0 0 8px #ffe2a3); }
@keyframes flowDash { to { stroke-dashoffset: -16; } }
.baton { position: absolute; z-index: 3; left: 0; top: 0; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
  background: radial-gradient(#fff, var(--ember) 45%, #ffb547 70%, transparent 72%); box-shadow: 0 0 30px 10px #ffe2a366, 0 0 80px 20px #ffb54733; pointer-events: none; }
.baton i { position: absolute; left: 50%; top: -34px; translate: -50% 0; white-space: nowrap; font: 700 11px/1 EpicText, sans-serif; color: #062433; background: var(--ember); padding: 5px 8px; border-radius: 4px; }
.stations { position: relative; z-index: 2; display: grid; gap: clamp(90px, 16svh, 170px); }
.station { width: min(470px, 100%); display: grid; gap: 12px; padding: 26px 28px; border-radius: 18px;
  background: linear-gradient(160deg, #0d4a5f, #083241); border: 1px solid #d8f3f222; box-shadow: 0 30px 60px #0005; transition: border-color .4s, box-shadow .4s, transform .4s; }
.station:nth-child(even) { justify-self: end; }
.station header { display: flex; align-items: baseline; gap: 14px; }
.station header b { font-family: EpicPoster, sans-serif; font-size: 54px; line-height: .8; color: #d8f3f233; transition: color .4s; }
.station header strong { font-size: 13px; opacity: .7; font-weight: 600; }
.station h3 { margin: 0; font-family: EpicPoster, sans-serif; text-transform: uppercase; font-size: clamp(30px, 2.6vw, 40px); line-height: .9; letter-spacing: -.02em; }
.station p { line-height: 1.55; color: #cfe6e6; }
.station.on { border-color: #ffe2a3aa; box-shadow: 0 30px 60px #0006, 0 0 0 1px #ffe2a355, 0 0 50px #ffe2a322; transform: translateY(-4px); }
.station.on header b { color: var(--ember); }
.station { position: relative; }
.station::after {
  content: attr(data-role); position: absolute; top: 50%; translate: 0 -50%; left: calc(100% + clamp(120px, 14vw, 260px));
  font-family: EpicPoster, sans-serif; text-transform: uppercase; font-size: clamp(70px, 9vw, 170px); line-height: .8; letter-spacing: -.03em;
  color: transparent; -webkit-text-stroke: 1.5px #d8f3f230; pointer-events: none; white-space: nowrap; transition: -webkit-text-stroke-color .5s, color .5s;
}
.station:nth-child(even)::after { left: auto; right: calc(100% + clamp(120px, 14vw, 260px)); }
.station.on::after { -webkit-text-stroke-color: #ffe2a3; color: #ffe2a314; }
@media (max-width: 860px) { .station::after { display: none; } }
.flow-team { padding: clamp(90px, 14svh, 160px) var(--pad); background: linear-gradient(var(--current), #062433); }
.flow-team h2 { font-size: clamp(64px, 9vw, 160px); max-width: 9ch; }
.flow-team .epic-lede { margin-top: 22px; color: #cfe6e6; }
.lanes { margin-top: clamp(40px, 7svh, 80px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1px; background: #d8f3f222; border: 1px solid #d8f3f222; }
.lane { background: #062433; padding: 26px 24px 30px; display: grid; gap: 12px; align-content: start; transition: background .3s; }
.lane:hover { background: #0a3b4e; }
.lane h3 { margin: 0; font-size: 19px; font-weight: 650; color: #fff; }
.lane p { line-height: 1.55; color: #bcd9da; font-size: 15px; }
.lane .flow-dots { display: flex; gap: 6px; }
.lane .flow-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, #8fe3f0); opacity: .85; }
.flow-memory { padding: clamp(80px, 12svh, 140px) var(--pad); display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px 80px; align-items: center; background: #062433; }
.flow-memory h2 { font-size: clamp(56px, 7vw, 120px); }
.flow-memory .card { padding: 30px; border-radius: 18px; background: #0a3b4e; border: 1px solid #d8f3f222; display: grid; gap: 14px; }
.flow-memory .card h3 { margin: 0; font-size: 20px; color: #fff; }
.flow-memory .card p { line-height: 1.6; color: #cfe6e6; }
.flow-memory .card .epic-btn { --btn-ink: #062433; justify-self: start; margin-top: 6px; }
@media (max-width: 860px) {
  .station, .station:nth-child(even) { justify-self: stretch; width: 100%; }
  .flow-memory { grid-template-columns: 1fr; }
  .flow-console { position: relative; }
}

/* ==========================================================================
   WORK · four rooms
   ========================================================================== */
.work { color: var(--ink); }
.room-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 60px; padding: 0 var(--pad); }
.room-head h2 { font-size: clamp(76px, 11vw, 200px); }

/* cinema */
.cinema { position: relative; background: #040506; color: #f4ead4; padding: clamp(90px, 14svh, 160px) 0 clamp(80px, 12svh, 140px); overflow: hidden; isolation: isolate; }
.cinema::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -10%; width: 140%; height: 90%; translate: -50% 0;
  background: conic-gradient(from 168deg at 50% 0%, transparent 0deg, #f4e2b81a 6deg, #f4e2b833 12deg, #f4e2b81a 18deg, transparent 24deg); filter: blur(6px); }
.cinema .room-head h2 { color: #f4e2b8; }
.cinema-stage { display: grid; grid-template-columns: minmax(260px, 400px) 1fr; gap: clamp(40px, 6vw, 110px); align-items: center; padding: clamp(50px, 8svh, 90px) var(--pad) 0; }
.cinema-screen { position: relative; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px #f4e2b833, 0 0 90px #f4e2b822, 0 50px 90px #000; }
.cinema-screen video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #000; }
.cinema-copy { display: grid; gap: 20px; }
.cinema-copy h3 { margin: 0; font-family: EpicPoster, sans-serif; text-transform: uppercase; font-size: clamp(56px, 6vw, 110px); line-height: .85; color: #fff; }
.cinema-copy p { line-height: 1.6; color: #d9ccb2; max-width: 46ch; }
.cinema-wall { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 60px); padding: clamp(80px, 12svh, 140px) var(--pad) 0; }
.poster-card { display: grid; grid-template-columns: minmax(140px, 42%) 1fr; gap: 26px; align-items: end; }
.poster-card img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; box-shadow: 0 30px 60px #000c; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.poster-card:hover img { transform: translateY(-8px) rotate(-1deg); }
.poster-card h3 { margin: 0 0 10px; font-family: EpicPoster, sans-serif; text-transform: uppercase; font-size: clamp(36px, 3.4vw, 60px); line-height: .85; color: #fff; }
.poster-card p { line-height: 1.55; color: #c9bda6; font-size: 15px; }
.poster-card small { display: block; margin-bottom: 10px; color: #f4e2b8; font-size: 13px; }

/* paper */
.paper { position: relative; background: var(--paper); padding: clamp(90px, 14svh, 160px) 0 clamp(80px, 12svh, 140px); overflow: hidden; isolation: isolate; color: #24382b; }
.paper::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .08; background: url(media/grain.png); mix-blend-mode: multiply; }
.paper .room-head h2 { color: #2f4a3a; }
.shelf { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(40px, 7vw, 120px); padding: clamp(60px, 9svh, 100px) var(--pad) 0; perspective: 1600px; }
.tome { width: min(330px, 80vw); display: grid; gap: 22px; }
.tome-book { position: relative; aspect-ratio: 1020 / 1320; transform-style: preserve-3d; cursor: pointer; border: 0; padding: 0; background: none; }
.tome-book img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 3px 8px 8px 3px; backface-visibility: hidden; }
.tome-book .inside { box-shadow: inset 12px 0 20px -10px #0003; background: #fff; }
.tome-book .cover { transform-origin: 0 50%; transition: transform 1.1s cubic-bezier(.3,.7,.2,1); box-shadow: 0 26px 50px #2f4a3a44, 4px 0 0 #fff8 inset; z-index: 2; }
.tome-book[aria-pressed="true"] .cover { transform: rotateY(-152deg); }
.tome-book::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: -16px; height: 22px; border-radius: 50%; background: #2f4a3a33; filter: blur(10px); z-index: -1; }
.tome h3 { margin: 0; font-family: EpicPoster, sans-serif; text-transform: uppercase; font-size: 40px; line-height: .9; }
.tome p { line-height: 1.55; font-size: 15px; color: #3d5245; }
.tome .hint { font-size: 13px; color: #557060; }

/* glass */
.glass { position: relative; padding: clamp(90px, 14svh, 160px) 0 clamp(80px, 12svh, 140px); background: linear-gradient(170deg, #e7f3f3, #bcdde2 60%, #a3cfd7); overflow: hidden; }
.glass .room-head h2 { color: #0e2a3d; }
.pane-row { display: grid; gap: clamp(60px, 10svh, 120px); padding: clamp(60px, 9svh, 100px) var(--pad) 0; perspective: 1800px; }
.pane { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.pane:nth-child(even) { grid-template-columns: 1fr 1.4fr; }
.pane:nth-child(even) .pane-frame { order: 2; }
.pane-frame { border-radius: 14px; overflow: hidden; background: #ffffff66; backdrop-filter: blur(12px); border: 1px solid #ffffffaa; box-shadow: 0 50px 90px #0e2a3d33;
  transform: rotateY(-8deg) rotateX(3deg); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.pane:nth-child(even) .pane-frame { transform: rotateY(8deg) rotateX(3deg); }
.pane:hover .pane-frame { transform: none; }
.pane-frame .bar { display: flex; gap: 6px; padding: 10px 14px; background: #ffffffaa; }
.pane-frame .bar i { width: 10px; height: 10px; border-radius: 50%; background: #0e2a3d33; }
.pane-frame img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.pane-copy { display: grid; gap: 16px; }
.pane-copy small { font-size: 13px; color: #125f74; }
.pane-copy h3 { margin: 0; font-family: EpicPoster, sans-serif; text-transform: uppercase; font-size: clamp(46px, 4.6vw, 84px); line-height: .85; }
.pane-copy p { line-height: 1.6; color: #24485b; max-width: 42ch; }
.pane-copy .epic-btn { justify-self: start; --btn-ink: #e7f3f3; }

/* gallery */
.gallery { background: #0c1613; color: #eef1ea; padding: clamp(90px, 14svh, 160px) 0 clamp(80px, 12svh, 140px); overflow: hidden; }
.gallery .room-head h2 { color: #eef1ea; }
.plinths { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(30px, 5vw, 80px); padding: clamp(60px, 9svh, 100px) var(--pad) 0; align-items: center; }
.plinth { display: grid; gap: 22px; }
.plinth figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; background: radial-gradient(ellipse at 50% 20%, #2a3a33, #0c1613 70%); }
.plinth figure img { display: block; width: 100%; height: auto; transition: opacity .6s; }
.plinth figure img + img { position: absolute; inset: 0; opacity: 0; }
.plinth figure:hover img + img, .plinth figure:focus-within img + img { opacity: 1; }
.plinth h3 { margin: 0; font-family: EpicPoster, sans-serif; text-transform: uppercase; font-size: clamp(44px, 4vw, 72px); line-height: .85; }
.plinth p { line-height: 1.6; color: #c3cfc6; max-width: 44ch; }
.orbit { position: relative; aspect-ratio: 1; width: 100%; max-width: 520px; justify-self: center; }
.orbit img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 60px #000a); animation: crestFloat 7s ease-in-out infinite alternate; }
@keyframes crestFloat { from { transform: translateY(-8px) rotate(-1.5deg); } to { transform: translateY(8px) rotate(1.5deg); } }
.orbit .sat { position: absolute; inset: 9%; border-radius: 50%; animation: orbit 9s linear infinite; }
.orbit .sat::after { content: ""; position: absolute; left: 50%; top: -6px; width: 14px; height: 14px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 18px var(--coral); }
@keyframes orbit { to { rotate: 1turn; } }
.builds { padding: clamp(70px, 10svh, 110px) var(--pad) 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px; }
.build { padding: 24px; border-radius: 14px; border: 1px solid #eef1ea22; display: grid; gap: 10px; }
.build h3 { margin: 0; font-size: 19px; }
.build small { color: #9fb5a8; font-size: 13px; }
.build p { line-height: 1.55; color: #c3cfc6; font-size: 15px; }

@media (max-width: 860px) {
  .cinema-stage, .cinema-wall, .pane, .pane:nth-child(even), .plinths { grid-template-columns: 1fr; }
  .pane:nth-child(even) .pane-frame { order: 0; }
  .cinema-screen { max-width: 360px; justify-self: center; width: 100%; }
  .poster-card { grid-template-columns: 38% 1fr; }
  .pane-frame, .pane:nth-child(even) .pane-frame { transform: none; }
}

/* ==========================================================================
   ABOUT · the thaw
   ========================================================================== */
.thaw { background: linear-gradient(#d3eaed, #f2ede6 26%, #f6e6d8 60%, #f2d8c4); color: #2a1f1a; }
.thaw-intro { display: grid; grid-template-columns: 1fr minmax(260px, 460px); gap: 40px 90px; align-items: center; padding: clamp(90px, 14svh, 160px) var(--pad) clamp(40px, 6svh, 80px); }
.thaw-intro blockquote { margin: 0; font-family: EpicSerif, Georgia, serif; font-size: clamp(34px, 3.8vw, 64px); line-height: 1.12; color: #3a2518; max-width: 20ch; }
.thaw-intro .orbit { max-width: 420px; }
.thaw-intro .orbit img { filter: drop-shadow(0 30px 50px #3a251844); }
.makes { padding: clamp(60px, 10svh, 110px) var(--pad); display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.make { position: relative; border-radius: 16px; overflow: hidden; min-height: 420px; display: grid; align-content: end; color: #fff; text-decoration: none; isolation: isolate; }
.make img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.make::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 25%, #1a110bcc 58%, #1a110bf7); }
.make h3 { text-shadow: 0 2px 18px #0008; }
.make:hover img { transform: scale(1.06); }
.make div { padding: 22px; display: grid; gap: 8px; }
.make h3 { margin: 0; font-family: EpicPoster, sans-serif; text-transform: uppercase; font-size: 44px; line-height: .85; }
.make p { font-size: 14.5px; line-height: 1.5; color: #f5e9dd; }
.ways { padding: clamp(60px, 10svh, 110px) var(--pad); display: grid; grid-template-columns: minmax(260px, .8fr) 1.2fr; gap: 40px 90px; }
.ways h2 { font-size: clamp(64px, 8vw, 140px); color: #3a2518; }
.ways ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: w; }
.ways li { display: grid; grid-template-columns: 70px 1fr; gap: 6px 20px; counter-increment: w; }
.ways li::before { content: counter(w); grid-row: span 2; font-family: EpicPoster, sans-serif; font-size: 64px; line-height: .8; color: #c98a5e; }
.ways li h3 { margin: 0; font-size: 21px; }
.ways li p { line-height: 1.6; color: #5a4436; }
.learning-notes { margin: 0 var(--pad) clamp(70px, 10svh, 120px); padding: clamp(30px, 5vw, 60px); border-radius: 20px; background: #fffaf4; box-shadow: 0 30px 70px #3a25181f; display: grid; grid-template-columns: minmax(200px, .6fr) 1.4fr; gap: 30px 70px; }
.learning-notes h2 { font-size: clamp(54px, 6vw, 100px); color: #3a2518; }
.learning-notes ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 22px; }
.learning-notes li { padding-left: 26px; position: relative; line-height: 1.6; color: #5a4436; }
.learning-notes li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #c98a5e; }
.learning-notes strong { color: #2a1f1a; }
@media (max-width: 960px) { .makes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) {
  .thaw-intro, .ways, .learning-notes { grid-template-columns: 1fr; }
  .make { min-height: 320px; }
}
@media (max-width: 520px) { .makes { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .sys-brain-enter, .hot::before, .orbit img, .flow-river .water, .bot .screen-glow { animation: none !important; }
}
.sys-brain-stage.live .sys-brain-note { display: none; }

.sys-office.real { --w: min(1100px, calc(100vw - 2 * var(--pad))); aspect-ratio: 1204 / 945; }
.sys-office.real .bot, .sys-office.real .walker, .sys-office.real .hot { display: none; }
@media (max-width: 860px) { .sys-office.real { --w: calc(100vw - 2 * var(--pad)); } .sys-office-scroll::after { display: none; } }

/* Room walkthrough video (GPT recording of the live 3D Workplace) */
.sys-office.real { --w: min(1400px, calc(100vw - 2 * var(--pad))); aspect-ratio: 16 / 9; }
.sys-office.real > img.bg { filter: blur(22px) brightness(.42) saturate(1.1); transform: scale(1.12); }
.sys-office.real video.walk { position: absolute; z-index: 6; top: 4%; bottom: 4%; left: 50%; translate: -50% 0; height: 92%; aspect-ratio: 9 / 16; border-radius: 14px; background: #000; box-shadow: 0 30px 90px #000d, 0 0 0 1px #c9a46a55; }
.sys-office.real .sound-on { position: absolute; z-index: 7; right: 3%; bottom: 6%; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid #f0d29a; background: #120c06cc; color: #f0d29a; font: 600 14px/1 EpicText, sans-serif; cursor: pointer; }
.sys-office.real .sound-on[hidden] { display: none; }
@media (max-width: 860px) {
  .sys-office.real { --w: calc(100vw - 2 * var(--pad)); aspect-ratio: 9 / 16; margin-left: auto; }
  .sys-office.real video.walk { inset: 0; translate: none; height: 100%; width: 100%; border-radius: 6px; }
  .sys-office.real .sound-on { right: 50%; translate: 50% 0; bottom: 64px; }
}

.pane-frame img { height: auto; }

/* Phone: make the travelling light obvious (rules placed last so they win) */
@media (max-width: 860px) {
  .baton { width: 30px; height: 30px; margin: -15px 0 0 -15px; box-shadow: 0 0 34px 14px #ffe2a388, 0 0 90px 30px #ffb54744; }
  .baton i { left: 0; translate: 0 0; top: 36px; font-size: 12px; }
  .flow-river .lit { stroke-width: 6; }
  .flow-river .bed { stroke-width: 30; opacity: .8; }
  .station.on { box-shadow: 0 0 0 2px #ffe2a3, 0 0 40px #ffe2a344; }
}

/* Phone: Sentinel log sits under the web, hint hidden (no pointer on touch) */
@media (max-width: 860px) {
  .sys-sentinel-log { left: var(--pad); right: var(--pad); width: auto; bottom: 24px; }
  .sys-sentinel-hint { display: none; }
}

/* About: the fuller story */
.story { display: grid; grid-template-columns: minmax(240px, .7fr) 1.3fr; gap: 30px 80px; padding: clamp(60px, 10svh, 120px) var(--pad); }
.story h2 { font-size: clamp(56px, 7vw, 120px); color: #3a2518; }
.story-copy { display: grid; gap: 20px; }
.story-copy .epic-lede { color: #4a3426; max-width: 60ch; }
.built { padding: clamp(60px, 10svh, 120px) var(--pad); background: #1a120c; color: #f3e6cf; }
.built h2 { font-size: clamp(64px, 9vw, 160px); color: #f0d29a; }
.built-lede { margin-top: 18px; color: #d9c8ab; }
.built-grid { margin-top: clamp(36px, 6svh, 64px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.built-grid article { padding: 26px 24px; border-radius: 16px; background: #24180f; border: 1px solid #c9a46a33; display: grid; gap: 12px; align-content: start; }
.built-grid h3 { margin: 0; font-family: EpicPoster, sans-serif; text-transform: uppercase; font-size: 34px; line-height: .9; color: #fff3dd; }
.built-grid p { line-height: 1.6; font-size: 15px; color: #d9c8ab; }
.built-grid ul { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.built-grid li { font-size: 12px; padding: 5px 9px; border-radius: 999px; border: 1px solid #c9a46a55; color: #f0d29a; }
.two-rooms { padding: clamp(60px, 10svh, 120px) var(--pad); background: #120c06; color: #f3e6cf; }
.two-rooms h2 { font-size: clamp(56px, 7vw, 120px); color: #f0d29a; }
.two-rooms-grid { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.two-rooms figure { margin: 0; display: grid; gap: 12px; }
.two-rooms img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; box-shadow: 0 30px 60px #000a; }
.two-rooms figcaption { font-size: 15px; line-height: 1.55; color: #d9c8ab; }
.two-rooms figcaption strong { display: block; color: #fff3dd; font-size: 18px; }
.offer { padding: clamp(60px, 10svh, 120px) var(--pad); }
.offer h2 { font-size: clamp(56px, 7vw, 120px); color: #3a2518; }
.offer-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.offer-grid article { padding: 26px 24px; border-radius: 16px; background: #fffaf4; box-shadow: 0 20px 50px #3a25181a; display: grid; gap: 10px; }
.offer-grid h3 { margin: 0; font-size: 20px; color: #2a1f1a; }
.offer-grid p { line-height: 1.6; font-size: 15px; color: #5a4436; }
@media (max-width: 860px) { .story, .two-rooms-grid { grid-template-columns: 1fr; } }

/* Phone overlap fixes (25 Nov scan) */
@media (max-width: 860px) {
  .baton i { display: none; }
}
@media (max-width: 740px) and (orientation: portrait) {
  body .objects { top: 54% !important; bottom: 11% !important; }
}

/* Hover: the big title frosts over, rime texture, white frost edge, cold glow (25 Nov, Mack: "frosted frosty style") */
[data-story="0"] .poster .line > span {
  background: url(media/ice/frost.svg?v=2) 0 0 / 420px 420px, linear-gradient(170deg, #f7feff, #9fd8ee 55%, #3f8db3);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-stroke: 0 transparent;
  transition: -webkit-text-fill-color .55s ease, -webkit-text-stroke-color .55s ease, filter .55s ease, background-position 6s linear;
}
[data-story="0"] .poster.iced .line > span {
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.5px #0d3a56;
  background-position: 60px 40px, 0 0;
  filter: drop-shadow(0 0 1px #ffffff) drop-shadow(0 0 3px #ffffffcc) drop-shadow(0 0 16px #9fe3ff) drop-shadow(0 10px 22px #0b3a5560);
}
@media (prefers-reduced-motion: reduce) { [data-story="0"] .poster .line > span { transition: none; } }

/* ---- Inner page heroes: each page opens with its own centrepiece (25 Nov) ---- */
.hp-host { display: grid; place-items: center; }
.hero-piece { position: relative; width: min(100%, 560px); aspect-ratio: 1; display: grid; place-items: center; }
.hero-piece img { display: block; }
.hp-tag { position: absolute; left: 50%; bottom: 2%; translate: -50% 0; white-space: nowrap; font: 600 13px/1 Archivo, sans-serif; letter-spacing: .01em;
  color: #0f3b52; background: #ffffffc0; padding: 8px 14px; border-radius: 99px; backdrop-filter: blur(6px); box-shadow: 0 6px 20px #0b3a5525; }

/* Systems: the Brain as a glowing orb */
.hp-brain img { width: 78%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 1px #cdf2ff80, 0 30px 80px #0b3a5570, 0 0 60px #7fe0ff55;
  animation: hp-breathe 5s ease-in-out infinite; }
.hp-ring { position: absolute; inset: 7%; border-radius: 50%; border: 1px solid #ffffff90; animation: hp-ripple 4s ease-out infinite; }
.hp-ring.r2 { animation-delay: 2s; }
@keyframes hp-breathe { 50% { box-shadow: 0 0 0 1px #cdf2ffa0, 0 30px 80px #0b3a5570, 0 0 95px #9fe9ffa0; transform: scale(1.015); } }
@keyframes hp-ripple { from { opacity: .9; transform: scale(.82); } to { opacity: 0; transform: scale(1.12); } }

/* Workflow: the baton travelling between the team */
.hp-relay svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hp-relay path { fill: none; stroke: #0f3b52; stroke-opacity: .35; stroke-width: 3; stroke-dasharray: 2 9; stroke-linecap: round; }
.hp-bead { fill: #ffd27a; filter: drop-shadow(0 0 10px #ffc24a) drop-shadow(0 0 22px #ffb02e); }
.hp-relay span { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; font: 800 clamp(20px, 2.2vw, 34px)/1 BarlowPoster, "Arial Black", sans-serif;
  text-transform: uppercase; color: #0f3b52; background: #ffffffb0; padding: 8px 14px 6px; border-radius: 6px; box-shadow: 0 10px 26px #0b3a5525; }
.hp-relay span.me { background: #0f3b52; color: #ffe2a8; }

/* Work: a fanned stack of real pieces */
.hp-stack { pointer-events: auto; }
.hp-stack img { position: absolute; width: 56%; border-radius: 10px; box-shadow: 0 24px 60px #0b3a5560; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.hp-stack .c1 { aspect-ratio: 16/10; object-fit: cover; width: 74%; transform: translate(-6%, -22%) rotate(-7deg); }
.hp-stack .c2 { aspect-ratio: 3/4; object-fit: cover; width: 40%; transform: translate(42%, 8%) rotate(8deg); }
.hp-stack .c3 { aspect-ratio: 4/3; object-fit: cover; transform: translate(-30%, 26%) rotate(-2deg); }
.hp-stack:hover .c1 { transform: translate(-10%, -30%) rotate(-10deg); }
.hp-stack:hover .c2 { transform: translate(52%, 6%) rotate(12deg); }
.hp-stack:hover .c3 { transform: translate(-36%, 32%) rotate(-4deg); }

/* About: the Command Deck with a radar sweep */
.hp-deck { aspect-ratio: 660/555; overflow: hidden; border-radius: 14px; box-shadow: 0 0 0 1px #7fe0ff60, 0 30px 80px #0b3a5580; }
.hp-deck img { width: 100%; height: 100%; object-fit: cover; }
.hp-sweep { position: absolute; left: 30%; top: 55%; width: 120%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: conic-gradient(from 0deg, #7fe0ff00 0deg, #7fe0ff00 300deg, #7fe0ff55 352deg, #bff3ff90 360deg); animation: hp-spin 4.5s linear infinite; mix-blend-mode: screen; }
@keyframes hp-spin { to { rotate: 360deg; } }
.hp-deck .hp-tag { bottom: 4%; }

@media (max-width: 740px) { .hero-piece { width: min(86vw, 380px); } .hp-relay span { font-size: 18px; } }
@media (prefers-reduced-motion: reduce) { .hp-brain img, .hp-ring, .hp-sweep { animation: none; } }

/* Opening: proof line + control room link + contact (25 Nov) */
.hero-more { grid-column: 2; margin-top: clamp(14px, 2.4vh, 26px); width: max-content; max-width: 46ch; }
.hero-proof { list-style: none; margin: 0 0 clamp(12px, 2vh, 20px); padding: 0; display: grid; gap: 5px; font-size: clamp(12px, .95vw, 15px); color: #1f4453; }
.hero-proof b { font-family: BarlowPoster, "Arial Black", sans-serif; font-size: 1.35em; color: #0f3b52; margin-right: 6px; letter-spacing: .01em; }
.hero-acts a { text-decoration: none; white-space: nowrap; }
.hero-acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero-room { display: inline-flex; align-items: center; gap: 10px; padding: 5px 16px 5px 5px; border-radius: 99px; background: #0f3b52; color: #eafaff; font-size: 14px; font-weight: 650; box-shadow: 0 10px 24px #0b3a5535; transition: transform .25s; }
.hero-room img { width: 46px; height: 34px; object-fit: cover; border-radius: 99px; }
.hero-mail { padding: 11px 16px; border-radius: 99px; border: 1px solid #0f3b5288; color: #0f3b52; font-size: 14px; font-weight: 650; background: #ffffff70; transition: transform .25s; }
.hero-room:hover, .hero-mail:hover { transform: translateY(-2px); }
@media (max-width: 740px) { .hero-more { grid-column: 1 / -1; } .hero-proof { display: none; } .hero-acts { gap: 8px; } .hero-room, .hero-mail { font-size: 13px; } }
@media (min-width: 741px) {
  #stage [data-story="0"] { align-content: center; }
  #stage [data-story="0"] .poster { grid-row: 1 / span 2; align-self: center; }
  #stage [data-story="0"] .deck { grid-column: 2; grid-row: 1; align-self: end; }
  #stage [data-story="0"] .hero-more { grid-column: 2; grid-row: 2; align-self: start; }
  #stage [data-story="0"] .deck, #stage [data-story="0"] .hero-more { margin-left: var(--push, 0px); }
}
@media (max-height: 520px) and (min-width: 741px) { .hero-proof { display: none; } }
.built-grid .built-wide { grid-column: 1 / -1; }
.built-wide p { max-width: 75ch; }
.built-wide .built-skills { opacity: .85; font-size: .94em; }
.ent-flow { list-style: none; counter-reset: s; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.ent-flow li { counter-increment: s; display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 10px; background: #f4e2b80f; border: 1px solid #f4e2b826; color: #f1e3c6; font-size: 15px; }
.ent-flow li::before { content: counter(s); font: 900 22px/1 BarlowPoster, "Arial Black", sans-serif; color: #f0c977; min-width: 18px; }
@media (min-width: 900px) {
  .built-wide { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 1fr); column-gap: 40px; align-content: start; }
  .built-wide > :not(.ent-flow) { grid-column: 1; }
  .built-wide .ent-flow { grid-column: 2; grid-row: 1 / span 4; margin: 0; align-self: center; }
}
.chapter-link { text-decoration: none; color: inherit; }
@media (max-width: 740px) { .chapter-link { display: none; } }
@media (min-width: 741px) { #stage [data-story="0"] .deck { max-width: 29ch; } }
#stage [data-story="0"] .deck, #stage [data-story="0"] .hero-proof { text-shadow: 0 0 12px #eaf8fb, 0 0 22px #eaf8fbcc; }
#stage .story.active .hero-acts a { pointer-events: auto; position: relative; z-index: 30; cursor: pointer; }

/* Real 3D hero objects (epic-3d.mjs). The pictures stay only as a fallback when WebGL isn't available. */
.has-3d-box > .epic3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.has-3d-box .hero-piece.has-3d { display: none; }
.hero-piece.has-3d { aspect-ratio: 1; overflow: visible; box-shadow: none; border-radius: 0; pointer-events: none; }
.hero-piece.has-3d > :not(.epic3d) { display: none; }
/* Sentinel (desktop): log sits bottom-left under the copy, clear of the web on the right (26 Nov) */
@media (min-width: 861px) {
  .sys-sentinel-log { right: auto; left: var(--pad); width: min(330px, 28vw); bottom: calc(clamp(30px, 6svh, 60px) + 28px); }
}

/* About: the Command Deck drawn in the page's bronze style (26 Nov) */
.deck-art { width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 12px; box-shadow: 0 30px 60px #000a; display: block; }
.deck-art .dk-ring { fill: none; stroke: #f0c977; stroke-opacity: .12; stroke-width: 1.5; }
.deck-art .dk-ring-b { stroke-opacity: .3; stroke-width: 2; }
.deck-art .dk-spoke { stroke: #f0c977; stroke-opacity: .07; stroke-width: 1.5; }
.deck-art .dk-tick { stroke: #f0c977; stroke-opacity: .45; stroke-width: 2; }
.deck-art text { font-family: EpicText, Arial, sans-serif; }
.deck-art .dk-lab { fill: #efe2c8; font-size: 33px; }
.deck-art .dk-ring-lab { fill: #f0c977; fill-opacity: .6; font-size: 24px; letter-spacing: .08em; }
.deck-art .dk-num { fill: #ffd38a; font: 900 64px EpicPoster, "Arial Black", sans-serif; }
.deck-art .dk-small { fill: #efe2c8; font-size: 19px; opacity: .8; }
.deck-art .dk-h { fill: #f0d29a; font: 900 112px EpicPoster, "Arial Black", sans-serif; text-transform: uppercase; dominant-baseline: hanging; }
.deck-art .dk-k { fill: #c9b48e; font-size: 36px; }
.deck-art .dk-v { fill: #efe2c8; font: 900 50px EpicPoster, "Arial Black", sans-serif; }
.deck-art .dk-hot { fill: #ff9a6a; }
.deck-art .dk-p { fill: #c9b48e; font-size: 30px; }
.deck-art .dk-t { animation: dkIn .6s var(--d) both; }
@keyframes dkIn { from { opacity: 0; } }

/* Still learning: invite (26 Nov) */
.teach-me { margin-top: clamp(26px, 4vw, 40px); padding-top: clamp(22px, 3vw, 30px); border-top: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 18%, transparent); max-width: 62ch; }
.teach-me h3 { margin: 0 0 10px; font-family: EpicPoster, "Arial Black", sans-serif; text-transform: uppercase; font-size: clamp(30px, 3.4vw, 46px); line-height: .95; }
.teach-me p { margin: 0 0 18px; line-height: 1.55; }
.teach-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.tell-me { display: inline-block; margin-top: 16px; font-size: 13.5px; opacity: .8; text-decoration: underline; text-underline-offset: 4px; color: inherit; }
.tell-me:hover { opacity: 1; }
.end-credit .tell-me { position: relative; z-index: 3; }
.learning-notes .teach-me { grid-column: 2; }
@media (max-width: 760px) { .learning-notes .teach-me { grid-column: 1 / -1; } }

/* ---- Opening page: "What runs behind it" (26 Nov). Sits between the three chapters and the end credits. ---- */
.reel { position: relative; z-index: 2; background: radial-gradient(ellipse 120% 70% at 50% 0%, #0f2a33 0%, #071318 45%, #05090c 100%); color: #e8f3f5; padding: clamp(80px, 14svh, 160px) var(--pad, clamp(16px, 5vw, 80px)) clamp(60px, 10svh, 120px); overflow: hidden; }
.reel h2, .reel h3 { font-family: EpicPoster, "Arial Black", sans-serif; font-weight: 900; text-transform: uppercase; margin: 0; }
.reel-head { max-width: 1200px; margin: 0 auto clamp(60px, 10svh, 110px); }
.reel-kicker { margin: 0 0 16px; color: #8fd3e0; font-size: clamp(14px, 1.1vw, 17px); }
.reel-head h2 { font-size: clamp(64px, 11vw, 190px); line-height: .84; letter-spacing: -.01em; background: linear-gradient(175deg, #ffffff 10%, #bfe8f3 55%, #5fa9c3 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.reel-stop { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 90px); align-items: center; padding: clamp(50px, 9svh, 100px) 0; border-top: 1px solid #ffffff14; }
.reel-num { display: block; font: 900 clamp(18px, 1.4vw, 22px)/1 EpicPoster, sans-serif; color: #5fa9c3; margin-bottom: 14px; }
.reel-copy h3 { font-size: clamp(44px, 6.2vw, 104px); line-height: .86; margin-bottom: 20px; }
.reel-copy p { margin: 0 0 26px; max-width: 46ch; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.6; color: #b9d0d6; }
.reel-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.reel-room h3 { color: #f0d29a; }
.reel-brain h3 { color: #bff3ff; }
.reel-ent h3 { color: #f0c977; }

/* 01: room, a phone-shaped walkthrough over the overhead view */
.reel-visual { position: relative; min-width: 0; }
.reel-room .reel-visual { aspect-ratio: 1150 / 760; }
.reel-wide { position: absolute; inset: 0 0 auto auto; width: 92%; height: auto; border-radius: 14px; box-shadow: 0 40px 90px #000c; opacity: .9; }
.reel-phone { position: absolute; left: 0; bottom: 0; z-index: 2; width: 34%; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; border: 3px solid #f0d29a; box-shadow: 0 30px 70px #000d, 0 0 0 8px #120c06; background: #000; }
.reel-video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 02: the brain as a glowing orb you can step into */
.reel-orb { position: relative; display: grid; place-items: center; width: min(100%, 520px); aspect-ratio: 1; margin: auto; color: #e8f3f5; text-decoration: none; }
.reel-orb img { width: 82%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 1px #9fe9ff55, 0 0 90px #3fc7e855, 0 40px 90px #000c; transition: transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .6s; }
.reel-orb:hover img { transform: scale(1.03); box-shadow: 0 0 0 1px #9fe9ffaa, 0 0 130px #3fc7e899, 0 40px 90px #000c; }
.reel-ring { position: absolute; inset: 6%; border-radius: 50%; border: 1px solid #9fe9ff66; animation: reelRipple 4s ease-out infinite; }
.reel-ring.r2 { animation-delay: 2s; }
.reel-orb b { position: absolute; bottom: 9%; padding: 9px 16px; border-radius: 99px; background: #04161dcc; border: 1px solid #9fe9ff66; font-size: 14px; }
@keyframes reelRipple { from { transform: scale(.86); opacity: .9; } to { transform: scale(1.12); opacity: 0; } }

/* 03: the entrepreneur's flow */
.reel-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.reel-flow li { counter-increment: s; display: flex; gap: 16px; align-items: baseline; padding: 16px 20px; border-radius: 14px; background: linear-gradient(100deg, #f0c97714, #f0c97705); border: 1px solid #f0c97733; color: #e8dcc4; font-size: clamp(15px, 1.2vw, 18px); }
.reel-flow li::before { content: counter(s, decimal-leading-zero); font: 900 22px/1 EpicPoster, sans-serif; color: #f0c977; min-width: 30px; }
.reel-flow b { color: #f0d29a; }

@media (max-width: 860px) {
  .reel-stop { grid-template-columns: 1fr; }
  .reel-brain .reel-visual { order: 2; }
  .reel-room .reel-visual { aspect-ratio: 1150 / 900; }
}
@media (prefers-reduced-motion: reduce) { .reel-ring { animation: none; } }


/* ---- Title hovers: each title has its own effect (26 Nov, Mack). Ice stays only on the opening's MACK ISSA. ---- */
[data-hover] > span, [data-hover] .line > span, #credit-signature[data-hover], #credit-signature[data-hover] em { transition: color .45s ease, text-shadow .45s ease, -webkit-text-fill-color .45s ease, -webkit-text-stroke-color .45s ease, filter .45s ease, transform .45s cubic-bezier(.2,.8,.2,1); }

/* Dr Voxel: chunky voxel blocks that hop */
[data-hover="voxel"].hov .line > span { color: #ffd23f; text-shadow: 1px 1px 0 #f39a1e, 2px 2px 0 #f39a1e, 3px 3px 0 #e0801a, 4px 4px 0 #e0801a, 5px 5px 0 #c4661a, 6px 6px 0 #c4661a, 7px 7px 0 #8f4a16, 8px 8px 0 #8f4a16, 12px 14px 18px #0008; animation: voxHop .9s steps(3) infinite; }
[data-hover="voxel"].hov .line + .line > span { animation-delay: .15s; }
@keyframes voxHop { 0%, 100% { transform: translate(-4px, -4px); } 50% { transform: translate(-4px, -12px); } }

/* Tumblefern Post: coloured in with crayon, left to right */
[data-hover="crayon"] .line > span { background: repeating-linear-gradient(115deg, #ffffff22 0 3px, transparent 3px 7px), linear-gradient(90deg, #4fa64f 0 22%, #f29b38 22% 44%, #e9667f 44% 66%, #4f9bd9 66% 84%, #f3c93c 84%); background-size: 0% 100%, 0% 100%; background-repeat: no-repeat; -webkit-background-clip: text; background-clip: text; transition: background-size 1.1s cubic-bezier(.5,0,.2,1), -webkit-text-fill-color .3s; }
[data-hover="crayon"].hov .line > span { background-size: 100% 100%, 100% 100%; -webkit-text-fill-color: transparent; -webkit-text-stroke: 2px #3b2414; }

/* Systems: cyan outline with a scanner beam passing over */
[data-hover="scan"] > span { background: linear-gradient(180deg, transparent 0 42%, #9ff3ff 47%, #ffffff 50%, #9ff3ff 53%, transparent 58% 100%) 0 -120% / 100% 260% no-repeat; -webkit-background-clip: text; background-clip: text; }
[data-hover="scan"].hov > span { -webkit-text-fill-color: transparent; -webkit-text-stroke: 2px #22b8d4; filter: drop-shadow(0 0 10px #22b8d488); animation: scanBeam 1.6s linear infinite; }
@keyframes scanBeam { from { background-position: 0 -120%; } to { background-position: 0 220%; } }

/* Workflow: a gold baton of light runs across the letters */
[data-hover="baton"].hov > span { -webkit-text-fill-color: transparent; background: linear-gradient(100deg, #0f3b52 0 38%, #ffe7a8 46%, #ffb02e 50%, #ffe7a8 54%, #0f3b52 62% 100%) 0 0 / 260% 100% repeat-x; -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 6px #ffc24a55); animation: batonRun 1.5s cubic-bezier(.5,0,.5,1) infinite; }
[data-hover="baton"].hov > span + span { animation-delay: .25s; }
@keyframes batonRun { from { background-position: 0 0; } to { background-position: -260% 0; } }

/* Work: projector flicker with a red / green / blue colour split */
[data-hover="reel"].hov > span { animation: reelFlicker .5s steps(2) infinite; text-shadow: -4px 0 0 #ff3b5c, 4px 0 0 #2ad1ff, 0 3px 0 #7dff9a; }
@keyframes reelFlicker { 0% { opacity: 1; transform: translateX(0); } 50% { opacity: .86; transform: translateX(1px); } 100% { opacity: 1; transform: translateX(-1px); } }

/* About: polished bronze with a slow shine, like the Cedar M */
[data-hover="bronze"] > span { background: linear-gradient(105deg, #6b4220 0%, #c8913f 30%, #fff0c2 46%, #d9a352 54%, #7a4c22 80%, #c8913f 100%) 120% 0 / 220% 100% no-repeat; -webkit-background-clip: text; background-clip: text; }
[data-hover="bronze"].hov > span { -webkit-text-fill-color: transparent; filter: drop-shadow(0 2px 0 #3b2414) drop-shadow(0 10px 18px #6b422055); animation: bronzeShine 2.6s ease-in-out infinite alternate; }
@keyframes bronzeShine { from { background-position: 120% 0; } to { background-position: -20% 0; } }

/* End credits: purple starlight shimmer */
#credit-signature[data-hover="stars"].hov, #credit-signature[data-hover="stars"].hov em { -webkit-text-fill-color: transparent; background: linear-gradient(100deg, #f3ecff 0%, #c9a7ff 30%, #ffffff 45%, #8f6bff 60%, #f3ecff 100%) 0 0 / 220% 100%; -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 14px #b48cff99); animation: starShimmer 2.2s linear infinite; }
@keyframes starShimmer { from { background-position: 0 0; } to { background-position: -220% 0; } }

@media (prefers-reduced-motion: reduce) { [data-hover].hov > span, [data-hover].hov .line > span, #credit-signature.hov { animation: none !important; } }
/* inner page titles sit in a click-through layer; let the title itself take the pointer for its hover effect */
.ice-title[data-hover] { pointer-events: auto; position: relative; z-index: 4; width: max-content; max-width: 100%; }

/* Work page: the Dedica product study, sitting in the dark "Marks and objects" room (26 Nov) */
.dedica { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: clamp(26px, 4vw, 64px); align-items: start; margin: clamp(50px, 8svh, 90px) 0; padding-top: clamp(40px, 6svh, 70px); border-top: 1px solid #ffffff14; }
.dedica-copy small { display: block; color: #8fb3a6; font-size: 13px; margin-bottom: 10px; }
.dedica-copy h3 { font-family: EpicPoster, "Arial Black", sans-serif; text-transform: uppercase; font-size: clamp(40px, 4.6vw, 76px); line-height: .9; color: #f0d29a; margin: 0 0 18px; }
.dedica-copy p { color: #c3cfc6; line-height: 1.6; margin: 0 0 14px; max-width: 46ch; }
.dedica-why { list-style: none; margin: 18px 0 24px; padding: 0; display: grid; gap: 10px; }
.dedica-why li { color: #c3cfc6; line-height: 1.5; padding-left: 16px; border-left: 2px solid #f0d29a66; }
.dedica-why b { color: #f0d29a; }
.dedica-stage iframe { width: 100%; height: 720px; border: 0; display: block; background: transparent; color-scheme: normal; }
@media (max-width: 900px) { .dedica { grid-template-columns: 1fr; } .dedica-stage iframe { height: 900px; } }
.gallery .dedica { margin-left: var(--pad); margin-right: var(--pad); }
.products .dedica-top { margin-top: clamp(40px, 6svh, 70px); border-top: 0; padding-top: 0; }
.dedica-note { font-size: 12.5px !important; color: #8fa69c !important; font-style: italic; }
