:root {
  --bg: #0a0a0d;
  --fg: #f4f1ea;
  --muted: #9a968d;
  --accent: #ff6a3d;
  --gold: #ffc24a;
  --blue: #6aa8ff;
  --card: #15151a;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--bg); color: var(--fg); font-family: var(--body); overflow: hidden; }
body { cursor: pointer; user-select: none; }
body.hide-cursor { cursor: none; }
img, video { display: block; max-width: 100%; }
b { color: var(--fg); font-weight: 600; }
em { font-style: normal; color: var(--accent); }
figure { position: relative; }
figcaption { color: var(--muted); font-size: clamp(13px, 1.2vw, 19px); margin-top: .7em; }

/* ── Slides ───────────────────────────────────────────────────────── */
#deck { position: fixed; inset: 0; }
.slide {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 6vh 5vw 10vh;
  opacity: 0; visibility: hidden; transform: scale(1.03);
  transition: opacity .6s var(--ease), transform .8s var(--ease), visibility 0s .6s;
}
.slide.active { opacity: 1; visibility: visible; transform: none; transition: opacity .6s var(--ease), transform .8s var(--ease); }
.slide.past { transform: scale(.97); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.slide.active .reveal { opacity: 1; transform: none; }
.d1 { transition-delay: .12s !important; } .d2 { transition-delay: .24s !important; }
.d3 { transition-delay: .36s !important; } .d4 { transition-delay: .48s !important; }

h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.04; }
h2 { font-size: clamp(26px, 3.6vw, 62px); }
.label { position: absolute; left: 5vw; bottom: 9vh; font-size: clamp(20px, 2.4vw, 40px); font-weight: 500; text-shadow: 0 2px 24px #000; }
.role { color: var(--muted); font-size: clamp(15px, 1.4vw, 23px); margin-top: .6em; line-height: 1.45; }
.game-title { font-size: clamp(40px, 5vw, 92px); font-weight: 700; }
.date-chip { display: inline-block; align-self: flex-start; background: var(--accent); color: #000; font: 700 clamp(12px, 1vw, 17px) var(--display); padding: .35em .9em; border-radius: 99px; letter-spacing: .08em; text-transform: uppercase; }

.edit { outline: 2px dashed var(--gold); outline-offset: 4px; border-radius: 4px; }
body.present .edit { outline: none; }

/* ── YouTube: chrome cropped off, fades in once actually playing ──── */
.yt { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: #000 center/cover no-repeat; box-shadow: 0 30px 80px #000; }
.yt iframe {
  position: absolute; left: 0; width: 100%;
  top: calc(-1 * max(12%, 70px)); height: calc(100% + 2 * max(12%, 70px));
  border: 0; pointer-events: none; opacity: 0; transition: opacity .5s;
}
.yt.playing iframe { opacity: 1; }
.yt video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }

/* ── Walls of looping clips ───────────────────────────────────────── */
.wall { position: absolute; inset: 0; display: grid; gap: 6px; padding: 6px; }
.tile { position: relative; min-height: 0; border-radius: 6px; overflow: hidden; background: #fff; }
.tile video { width: 100%; height: 100%; object-fit: contain; }
.wall--open { grid-template-columns: repeat(7, 1fr); }
.wall--open .tile, .wall--jams .tile { opacity: 0; transform: scale(.85); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.slide.active .wall--open .tile, .slide.active .wall--jams .tile { opacity: 1; transform: none; }
.wall--bg { grid-template-columns: repeat(8, 1fr); opacity: .16; filter: blur(1px); }
.wall--bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(10,10,13,.5), var(--bg) 75%); }

/* ── Escate / Late Night Comedy ───────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3vw; width: 100%; align-items: center; }
.split--wide { grid-template-columns: 1.55fr 1fr; }
.paper img { border-radius: 10px; box-shadow: 0 30px 80px #000; width: 100%; }
.awards-col { display: flex; flex-direction: column; gap: 3vh; align-items: center; text-align: center; }

/* laurel award graphic */
.laurel { position: relative; width: min(100%, 26vw); color: var(--gold); filter: drop-shadow(0 4px 20px rgba(255,194,74,.18)); }
.laurel svg { width: 100%; display: block; }
.laurel-text { position: absolute; inset: 14% 22%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .25em; }
.l-org { font: 600 clamp(9px, .8vw, 13px) var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--fg); opacity: .8; }
.l-title { font: 700 clamp(13px, 1.35vw, 22px)/1.1 var(--display); color: var(--gold); }
.l-year { font: 500 clamp(9px, .8vw, 13px) var(--body); color: var(--fg); opacity: .7; letter-spacing: .1em; }

/* ── Game jams ────────────────────────────────────────────────────── */
.wall--jams { grid-template-columns: repeat(4, 1fr); }
.wall--jams video { object-fit: cover; }
.wall--jams::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,13,.95) 0%, rgba(10,10,13,.6) 22%, transparent 45%); pointer-events: none; }
.tile--award { outline: 3px solid var(--gold); outline-offset: -3px; z-index: 1; }
.laurel--tile {
  position: absolute; left: 6px; bottom: 6px; width: 46%; z-index: 2;
  background: radial-gradient(ellipse at 50% 50%, rgba(10,10,13,.88) 45%, rgba(10,10,13,0) 72%);
}
.laurel--tile .l-title { font-size: clamp(10px, .85vw, 14px); }
.laurel--tile .l-org, .laurel--tile .l-year { font-size: clamp(7px, .55vw, 10px); letter-spacing: .12em; }
.jams-copy { position: absolute; left: 5vw; bottom: 9vh; z-index: 2; }
.jams-copy h2 { font-size: clamp(26px, 3.4vw, 58px); text-shadow: 0 2px 30px #000; }
.jams-copy i { color: var(--gold); font-style: normal; }

/* ── Guacamelee ───────────────────────────────────────────────────── */
.s-guac { grid-template-columns: 1.4fr 1fr; gap: 3.5vw; }
.s-guac::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 50%, rgba(255,106,61,.18), transparent 60%); }
.guac-left { position: relative; width: 100%; }
.guac-cast {
  position: relative; margin: -7vh 3% 0; z-index: 2;
  display: grid; grid-template-columns: repeat(6, 1fr); height: 21vh;
  background: linear-gradient(160deg, #fff7ea, #ffd9b3); border-radius: 16px; padding: 1vh .8vw;
  box-shadow: 0 24px 60px rgba(0,0,0,.65);
}
.guac-cast video { width: 100%; height: 100%; min-height: 0; object-fit: contain; mix-blend-mode: multiply; transform: scale(1.18); }
.guac-cast .c1 { transform: scale(1.3); }
.guac-right { position: relative; display: flex; flex-direction: column; }
.stamps { display: flex; gap: 1vw; margin-top: 3.5vh; }
.stamp { width: clamp(110px, 11vw, 200px); aspect-ratio: 1; color: var(--accent); flex: none; }
.stamp svg { width: 100%; height: 100%; display: block; }
.stamps .stamp:nth-child(1), .slide.active .stamps .stamp:nth-child(1) { transform: rotate(-9deg); }
.stamps .stamp:nth-child(2), .slide.active .stamps .stamp:nth-child(2) { transform: rotate(5deg) translateY(1.5vh); }
.stamps .stamp:nth-child(3), .slide.active .stamps .stamp:nth-child(3) { transform: rotate(-3deg); }
.stamp--alt { color: var(--gold); }
.stamp--blue { color: var(--blue); }
.featured { margin-top: 3.5vh; color: var(--muted); font-size: clamp(12px, 1vw, 16px); letter-spacing: .06em; }

/* stamp "thunk" on entry */
.slide.active .stamp.reveal { animation: thunk .5s var(--ease) both; }
.slide.active .stamp.d2 { animation-delay: .35s; } .slide.active .stamp.d3 { animation-delay: .5s; } .slide.active .stamp.d4 { animation-delay: .65s; }
@keyframes thunk { 0% { opacity: 0; scale: 1.6; } 70% { opacity: 1; scale: .94; } 100% { opacity: 1; scale: 1; } }

/* ── Tools ────────────────────────────────────────────────────────── */
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5vw; width: 100%; margin-bottom: 6vh; }
.tool { background: var(--card); border-radius: 14px; padding: 1.2vw; }
.tool img, .tool video { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #fff; border-radius: 8px; }
.tool video { background: #fff; }
.tool figcaption { line-height: 1.45; }

/* ── Unim / Canim demo: Animate CC → .unim → Unity, 6s loop ──────── */
.unim-demo {
  --cycle: 6s;
  position: relative; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 4%; padding: 6% 4%;
  background: radial-gradient(ellipse at 50% 40%, #23232c, #121217 75%);
  font-family: var(--body);
}
.ud-win { position: relative; border-radius: 6px; overflow: hidden; background: #2a2a2e; box-shadow: 0 8px 22px rgba(0,0,0,.55); border: 1px solid #3a3a42; }
.ud-bar { display: flex; align-items: center; gap: 3px; padding: 4px 6px; background: #1d1d21; font-size: clamp(7px, .6vw, 10px); font-weight: 600; color: #cfcfd6; letter-spacing: .02em; }
.ud-bar i { width: 5px; height: 5px; border-radius: 50%; background: #55555f; }
.ud-bar span { margin-left: 4px; }
.ud-an .ud-bar span { color: #ff7aa8; }   /* Animate-ish pink */
.ud-un .ud-bar span { color: #e8e8ee; }
.ud-stage, .ud-scene { position: relative; aspect-ratio: 1; }
.ud-stage { background: #fff; margin: 6px 6px 0; border-radius: 2px; }
.ud-stage video, .ud-scene video { width: 100%; height: 100%; object-fit: contain; display: block; aspect-ratio: auto; border-radius: 0; background: transparent; }
/* Unity-style scene: sky + grid floor; multiply drops the clip's white background */
.ud-scene {
  margin: 6px; border-radius: 2px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 1px, transparent 1px 12px) 0 66% / 100% 34% no-repeat,
    linear-gradient(#9bb3d1 0%, #cdd8e6 66%, #8d939b 66%, #6f747b 100%);
}
.ud-scene { display: grid; place-items: center; }
.ud-scene video { width: 72%; height: 72%; border-radius: 3px; box-shadow: 0 10px 14px -6px rgba(0,0,0,.5); }
.ud-timeline { position: relative; height: 14px; margin: 5px 6px 6px; border-radius: 2px; background: #1b1b1f; overflow: hidden; }
.ud-keys { position: absolute; inset: 4px 4px; background: radial-gradient(circle, #ff7aa8 0 2px, transparent 2.5px) 0 50% / 12px 6px repeat-x; opacity: .9; }
.ud-head { position: absolute; top: 0; bottom: 0; width: 2px; background: #ff3b5c; box-shadow: 0 0 6px #ff3b5c; animation: ud-head 1.733s linear infinite; }
@keyframes ud-head { from { left: 0; } to { left: calc(100% - 2px); } }

.ud-pipe { position: relative; width: clamp(34px, 3.2vw, 56px); height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 5px, transparent 5px 9px); background-size: 18px 2px; animation: ud-flow .6s linear infinite; }
@keyframes ud-flow { to { background-position: 18px 0; } }
.ud-file {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: 2px 5px; border-radius: 3px; background: var(--gold); color: #000;
  font: 700 clamp(7px, .6vw, 10px) var(--display); white-space: nowrap; box-shadow: 0 0 12px rgba(255,194,74,.6);
  z-index: 3; animation: ud-send var(--cycle) var(--ease) infinite;
}
@keyframes ud-send {
  0%, 18% { opacity: 0; transform: translate(-190%, -50%) scale(.8); }
  24%     { opacity: 1; transform: translate(-150%, -50%) scale(1); }
  42%     { opacity: 1; transform: translate(50%, -50%) scale(1); }
  48%, 100% { opacity: 0; transform: translate(90%, -50%) scale(.8); }
}
/* Unity window flashes as the file lands */
.ud-un { animation: ud-land var(--cycle) ease-out infinite; }
@keyframes ud-land {
  0%, 44% { box-shadow: 0 8px 22px rgba(0,0,0,.55); border-color: #3a3a42; }
  48%     { box-shadow: 0 0 0 2px var(--gold), 0 0 26px rgba(255,194,74,.55); border-color: var(--gold); }
  70%, 100% { box-shadow: 0 8px 22px rgba(0,0,0,.55); border-color: #3a3a42; }
}
.ud-scene video { animation: ud-appear var(--cycle) ease-out infinite; }
@keyframes ud-appear { 0%, 44% { opacity: 0; transform: scale(.6); } 52%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(.9); } }
/* Unity play bar, same height as Animate's timeline so the windows match */
.ud-playbar { display: flex; align-items: center; justify-content: center; gap: 5px; height: 14px; margin: 0 6px 6px; border-radius: 2px; background: #1b1b1f; }
.ud-playbar b { width: 0; height: 0; border-left: 6px solid #4aa3ff; border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.ud-playbar i { width: 6px; height: 6px; border-radius: 1px; background: #55555f; }
.ud-stats { position: absolute; left: 4px; right: 4px; bottom: 24px; display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; }
.ud-stats span {
  font: 700 clamp(6px, .55vw, 9px) var(--body); color: #000; background: #7ee2a8; padding: 1px 5px; border-radius: 99px;
  opacity: 0; animation: ud-chip var(--cycle) var(--ease) infinite;
}
.ud-stats span:nth-child(2) { animation-delay: .25s; }
.ud-stats span:nth-child(3) { animation-delay: .5s; }
@keyframes ud-chip { 0%, 50% { opacity: 0; transform: translateY(6px); } 56%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* ── Game Hive ────────────────────────────────────────────────────── */
.s-hive { grid-template-columns: 1.45fr 1fr; gap: 3.5vw; }
.hive-media { width: 100%; height: 68vh; display: grid; grid-template-columns: auto 1fr; gap: 1vw; }
/* vertical Short: the iframe is wider and taller than the frame, so YouTube's
   title bar and the Shorts like/share buttons (right of the video) fall outside */
.yt--portrait { aspect-ratio: 9 / 16; height: 100%; width: auto; }
.yt--portrait iframe { left: -40%; width: 180%; }
.hive-loops {
  display: grid; gap: 1vw; min-height: 0; height: 100%;
  grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1.5fr) minmax(0, 0.9fr) minmax(0, 1fr);
  grid-template-areas: "game game" "lineup lineup" "a b";
}
.hive-loops > * { width: 100%; height: 100%; min-height: 0; border-radius: 8px; }
.hive-loops video { object-fit: contain; background: #fff; }
.hive-loops .hl-game { grid-area: game; aspect-ratio: auto; box-shadow: none; }
.hive-loops .hl-lineup { grid-area: lineup; }
.stats { display: grid; gap: 2.6vh; margin-top: 3.5vh; }
.stat { display: flex; align-items: baseline; gap: 1.2vw; }
.stat .num { font-family: var(--display); font-size: clamp(40px, 5vw, 90px); font-weight: 700; color: var(--accent); min-width: 4.4ch; font-variant-numeric: tabular-nums; }
.stat > span:last-child { color: var(--muted); font-size: clamp(14px, 1.3vw, 21px); line-height: 1.3; }
.stat small { font-size: .75em; opacity: .7; }

/* ── Maker collage: related things grouped together ─────────────── */
.collage {
  display: grid; width: 100%; height: 68vh; margin-bottom: 5vh; gap: 1vw;
  grid-template-columns: 2.1fr 0.9fr 1.7fr; grid-template-rows: 1.2fr 1fr;
  grid-template-areas: "head ir paper" "craft craft paper";
}
.group { position: relative; display: grid; gap: 6px; padding: 6px; min-height: 0; border-radius: 14px; background: #121217; border: 1px solid #26262e; }
.g-head  { grid-area: head; }
.g-ir    { grid-area: ir; grid-template-rows: 1fr 1fr; }
.g-paper { grid-area: paper; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.g-craft { grid-area: craft; grid-template-columns: 1fr .75fr 1.15fr 1.15fr; grid-template-rows: 1fr 1fr; }
.g-craft .cg:first-child { grid-column: 1; grid-row: 1 / span 2; }   /* Guacamelee sculpture */
.g-craft .cg:nth-child(2) { grid-column: 2; grid-row: 1; }             /* Super Meat Boy */
.g-craft .cg:nth-child(3) { grid-column: 2; grid-row: 2; }
.g-craft .cg-lbp { grid-column: 4; grid-row: 1 / span 2; }              /* LittleBigPlanet plush: finished */
.g-craft .cg-lbp-wip { grid-column: 3; }                                  /* …and being sewn */
.g-3d    { grid-area: td; grid-template-rows: 1fr 1fr; }
.cg { position: relative; border-radius: 9px; overflow: hidden; background: var(--card); min-height: 0; }
.cg img { width: 100%; height: 100%; object-fit: cover; }
.cg-video .yt { height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.g-label { position: absolute; left: 14px; bottom: 14px; z-index: 6; background: rgba(10,10,13,.85); color: var(--fg); font-size: clamp(10px, .85vw, 14px); padding: .35em .8em; border-radius: 99px; border: 1px solid #33333c; pointer-events: none; }
.s-maker .label { bottom: 7vh; }

/* ── Drawings: organic pinboard ───────────────────────────────────── */
.s-drawings { padding: 0; }
.pinboard { position: absolute; inset: 3vh 3vw 9vh; }
.pin {
  position: absolute; background: #fbfaf6; padding: .45vw; border-radius: 3px;
  box-shadow: 0 10px 30px rgba(0,0,0,.55), 0 2px 6px rgba(0,0,0,.35);
  opacity: 0; transform: translateY(-40px) rotate(calc(var(--r) * 2.2)) scale(1.06);
  transition: opacity .7s var(--ease), transform 1s var(--ease);
}
.pin img { width: 100%; display: block; }
.pin--feature { box-shadow: 0 18px 50px rgba(0,0,0,.7), 0 3px 10px rgba(0,0,0,.45); z-index: 2; }
.slide.active .pin { opacity: 1; transform: rotate(var(--r)); }
/* ── Unity ────────────────────────────────────────────────────────── */
.s-unity::before, .s-avp::before, .s-unity3::before, .s-ring::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 40%, rgba(80,140,255,.14), transparent 60%); }
.unity-hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 4vw; align-items: center; width: 100%; position: relative; }
.facts { display: flex; flex-direction: column; gap: 1.8vh; }
.slot { position: relative; aspect-ratio: 16/9; width: 100%; border-radius: 12px; overflow: hidden; background: var(--card); box-shadow: 0 30px 80px #000; }
.slot video, .slot img { width: 100%; height: 100%; object-fit: cover; }
.s-unity .slot video { object-fit: contain; background: #000; }
.slot.missing video, .slot.missing img { display: none; }
.slot.missing::after {
  content: "Drop media here:\A" attr(data-label);
  white-space: pre-wrap; position: absolute; inset: 10px; display: grid; place-items: center; text-align: center;
  border: 2px dashed var(--gold); border-radius: 8px; color: var(--gold); font: 500 clamp(11px, 1vw, 16px)/1.5 var(--body);
}
body.present .slot.missing::after { content: ""; border: none; }

.vr-grid { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; gap: 3vw; width: 100%; align-items: center; }
.vr-avp, .vr-hw { position: relative; display: flex; flex-direction: column; gap: 1.6vh; }
.vr-cap { color: var(--muted); font-size: clamp(12px, 1.05vw, 17px); line-height: 1.4; }
.vr-cap b { color: var(--fg); }
.vr-card-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.2vw; align-items: center; margin-top: 1vh; }
.vr-card { aspect-ratio: 1352 / 930; }
.vr-card video { object-fit: cover; }
.avp-art { aspect-ratio: 16/9; }
.hw-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8vw; }
/* square tiles cut from the (square-format) Horizon Worlds compilation */
.yt--square { aspect-ratio: 1; border-radius: 8px; box-shadow: 0 12px 30px rgba(0,0,0,.6); }
.yt--square iframe {
  top: -48px; left: 50%; transform-origin: 0 0; transform: scale(.3333) translateX(-50%);
  height: calc((100% + 96px) * 3); width: calc((100% + 96px) * 16 / 9 * 3);
}
.s-avp .stamp, .s-avp.active .stamp { position: relative; align-self: flex-end; margin-top: -1vh; width: clamp(100px, 8.5vw, 160px); transform: rotate(-6deg); filter: drop-shadow(0 4px 14px rgba(0,0,0,.8)); }
.avp-art { aspect-ratio: 16/8; }
.hw-tiles .scrub { left: 3px; right: 3px; bottom: 3px; padding: 3px 5px; gap: 4px; font-size: 9px; }
.hw-tiles .scrub button { display: none; }

.duo { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3vw; width: 100%; position: relative; }
.duo h3 { font-size: clamp(20px, 2.1vw, 36px); margin-top: 2vh; }
.duo p { color: var(--muted); font-size: clamp(14px, 1.2vw, 19px); margin-top: .5em; line-height: 1.4; }

/* ── Ring ─────────────────────────────────────────────────────────── */
.s-ring { grid-template-columns: 1.7fr 1fr; gap: 3vw; }
.ring-board { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 1.2vw; width: 100%; height: 76vh; }
.ring-board img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.ring-board figure { min-height: 0; }
.rb-worn { grid-row: span 2; }
.rb-v figcaption { position: absolute; left: 10px; top: 10px; margin: 0; background: var(--accent); color: #000; font: 700 clamp(11px, .9vw, 15px) var(--display); padding: .25em .7em; border-radius: 99px; }
.ring-copy { display: flex; flex-direction: column; gap: 1.5vh; position: relative; }
.ring-copy h2 { font-size: clamp(34px, 4.2vw, 76px); }

/* ── Close ────────────────────────────────────────────────────────── */
.title-card { position: relative; z-index: 2; text-align: center; }
.close-line { font-size: clamp(32px, 4.8vw, 86px); font-weight: 700; }

/* ── Chrome: progress, notes, help ────────────────────────────────── */
.progress { position: fixed; left: 5vw; right: 5vw; bottom: 3.2vh; z-index: 10; transition: opacity .4s; }
.acts { display: flex; gap: 2.5vw; margin-bottom: 1vh; font: 500 clamp(10px, .85vw, 14px) var(--body); letter-spacing: .14em; text-transform: uppercase; }
.acts span { color: #4a4a52; transition: color .4s; }
.acts span.on { color: var(--fg); }
.acts span.done { color: var(--muted); }
.bar { height: 2px; background: #222228; border-radius: 2px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .6s var(--ease); }

#notes-panel {
  position: fixed; left: 50%; bottom: 8vh; transform: translateX(-50%); z-index: 20; width: min(900px, 86vw);
  background: rgba(20,20,26,.94); border: 1px solid #2a2a33; border-radius: 12px; padding: 16px 20px;
  font-size: 17px; line-height: 1.5; color: #ddd; box-shadow: 0 20px 60px #000;
}
#notes-panel .meta { color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
#help { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 20; background: rgba(20,20,26,.94); padding: 10px 16px; border-radius: 8px; font-size: 13px; color: #ccc; }
aside.notes { display: none; }

/* ── Start/end scrubber (S / clock button) ───────────────────────── */
.scrub-toggle {
  position: fixed; right: 14px; bottom: 12px; z-index: 30; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid #2a2a33; background: rgba(20,20,26,.7); color: #55555f;
  cursor: pointer; opacity: .5; transition: opacity .2s, color .2s;
}
.scrub-toggle:hover { opacity: 1; color: var(--fg); }
body.scrub-mode .scrub-toggle { opacity: 1; color: #000; background: var(--gold); border-color: var(--gold); }
.scrub {
  display: none; position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 7;
  align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px;
  background: rgba(10,10,13,.88); border: 1px solid var(--gold); cursor: default;
  font: 600 12px var(--body); color: var(--gold);
}
body.scrub-mode .scrub { display: flex; }
.scrub-track { position: relative; flex: 1; min-width: 60px; height: 22px; }
.scrub-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; background: #3a3a44; border-radius: 2px; }
.scrub-fill { position: absolute; top: 50%; height: 4px; margin-top: -2px; background: var(--gold); border-radius: 2px; }
.scrub-track input {
  position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none;
  -webkit-appearance: none; appearance: none;
}
.scrub-track input::-webkit-slider-runnable-track { background: none; height: 22px; }
.scrub-track input::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto; cursor: grab; margin-top: 3px;
  width: 12px; height: 16px; border-radius: 3px; border: 2px solid #000; background: var(--gold);
}
.scrub-track input.r-end::-webkit-slider-thumb { background: var(--accent); }
.scrub-track input::-moz-range-track { background: none; }
.scrub-track input::-moz-range-thumb { pointer-events: auto; cursor: grab; width: 10px; height: 14px; border-radius: 3px; border: 2px solid #000; background: var(--gold); }
.scrub-track input.r-end::-moz-range-thumb { background: var(--accent); }
.scrub-label { white-space: nowrap; font-variant-numeric: tabular-nums; }
.scrub-label i { font-style: normal; color: var(--accent); }
.scrub button { background: none; border: 1px solid var(--gold); color: var(--gold); border-radius: 4px; padding: 0 6px; cursor: pointer; font-size: 13px; }
.hive-loops .scrub, .g-head .scrub { left: 3px; right: 3px; bottom: 3px; padding: 3px 5px; gap: 4px; font-size: 10px; }
.hive-loops .scrub button { display: none; }
.g-head .g-label { display: none; }
body:not(.scrub-mode) .g-head .g-label { display: block; }

/* ── 3D work ──────────────────────────────────────────────────────── */
.three-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 2.5vw; width: 100%; align-items: center; position: relative; }
.three-side { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto auto; gap: 1.2vh .8vw; height: 52vh; }
.three-side .cg:first-child { grid-column: 1 / span 2; }
.three-side .cg img { object-fit: cover; }
.three-side .vr-cap { grid-column: 1 / span 2; }
.math-chips { grid-column: 1 / span 2; display: flex; flex-wrap: wrap; gap: .5vw; }
.math-chips span { font: 600 clamp(11px, .9vw, 15px) var(--body); color: var(--gold); border: 1px solid rgba(255,194,74,.45); background: rgba(255,194,74,.08); padding: .3em .8em; border-radius: 99px; }

/* ── Two-up slides: animated shorts / studios ─────────────────────── */
.duo-cols { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 3vw; width: 100%; align-items: start; }
.col { display: flex; flex-direction: column; gap: 1.4vh; min-width: 0; }
.col-head { display: flex; align-items: baseline; gap: .8vw; flex-wrap: wrap; }
.col-head h2 { font-size: clamp(26px, 2.8vw, 50px); font-weight: 700; }
.col-head span { color: var(--muted); font-size: clamp(12px, 1vw, 17px); }
.col-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2vw; align-items: center; margin-top: .6vh; }
.film-paper { width: 100%; border-radius: 8px; box-shadow: 0 16px 40px rgba(0,0,0,.6); }
.col-extra--laurels .laurel { width: 100%; }
.s-films::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 30%, rgba(255,194,74,.07), transparent 60%); }

/* studios: Guacamelee (left) */
.s-studios::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 25% 45%, rgba(255,106,61,.15), transparent 55%), radial-gradient(ellipse at 75% 45%, rgba(80,140,255,.10), transparent 55%); }
.s-studios .guac-cast { height: 14vh; margin-top: -5vh; overflow: hidden; }
.s-studios .guac-cast video, .s-studios .guac-cast .c1 { transform: none; }
.col-extra--stamps { grid-template-columns: 1fr; gap: .4vh; margin-top: 0; }
.col-extra--stamps .stamps { margin-top: .5vh; gap: .8vw; }
.col-extra--stamps .stamp { width: clamp(80px, 6.6vw, 124px); }
.col-extra--stamps .featured { margin-top: 0; }
/* studios: Tap Titans (right) — match the trailer height to the Guacamelee video */
.s-studios .hive-media { height: 25.3vw; max-height: 52vh; }
.s-studios .col-extra { grid-template-columns: 1fr; }
.s-studios .stats { grid-template-columns: repeat(3, 1fr); gap: 1vw; margin-top: 0; }
.s-studios .stat { flex-direction: column; align-items: flex-start; gap: .3vh; }
.s-studios .stat .num { font-size: clamp(30px, 3.2vw, 58px); min-width: 0; }
.s-studios .stat > span:last-child { font-size: clamp(11px, .9vw, 15px); }

/* ── Animation wall + tools: side by side, no overlap ─────────────── */
.open-layout { position: relative; display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: minmax(0, 1fr); gap: 2vw; width: 100%; height: 76vh; }
.s-open .wall--open { position: relative; inset: auto; height: 100%; min-height: 0; padding: 0; gap: 5px; overflow: hidden; }
.s-open .wall--open .tile video { position: absolute; inset: 0; }
.wall-tools { display: flex; flex-direction: column; justify-content: center; gap: 1.2vw; min-width: 0; min-height: 0; }
.wall-tools h2 { font-size: clamp(22px, 2.2vw, 40px); }
.wall-tools .tool { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1vw; align-items: center; padding: 1vw; background: #16161c; border: 1px solid #26262e; }
.wall-tools .tool figcaption { margin: 0; font-size: clamp(12px, 1vw, 17px); }

/* ── Live VibeShift loops (Interactive responding / Spatial prompting) ── */
.vsdemo { position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: 12px; overflow: hidden; background: #141a26; box-shadow: 0 30px 80px #000; }
/* crop the demo app's own 14px page margin so there's one clean edge */
.vsdemo iframe { position: absolute; left: -14px; top: -14px; width: calc(100% + 28px); height: calc(100% + 28px); border: 0; pointer-events: none; }
.vsdemo--tall { aspect-ratio: 0.9; }
.duo--vs { grid-template-columns: 1.97fr 1fr; align-items: start; }

/* closing slide: just the name */
.close-name { font-size: clamp(64px, 11vw, 200px); font-weight: 700; letter-spacing: -.02em; }
