/* Layout glue for the presentation. Every colour, face and easing comes from the Plessi DS variables.
   DS rules kept: zero radius, no box-shadow, --line is the only hairline, uppercase only on 12px labels,
   --cold for orientation, --warm for emphasis. */
/* This presentation only: the warm accent is Venezia orange. */
:root { --warm: #F07A1F; }
.em-accent, h1 .em-accent, .wall-text .em-accent, .hero-sub .accent, .accent { color: var(--warm); }
html { scroll-behavior: auto; overscroll-behavior-y: none; }
body { margin: 0; }
img, video, iframe { display: block; max-width: 100%; }
*, *::before, *::after { border-radius: 0 !important; box-shadow: none !important; box-sizing: border-box; }

/* frame */
.deck-header .proj-back { font-family: var(--util); font-size: 12px; letter-spacing: 0.08em; color: var(--muted); text-decoration: none; transition: color 200ms var(--ease-std); }
.deck-header .proj-back:hover { color: var(--ink); }
.chap-now { position: fixed; right: 150px; top: 36px; z-index: 95; font-family: var(--util); font-size: 12px; letter-spacing: 0.42em; text-transform: uppercase; color: var(--cold); pointer-events: none; }
.prog { position: fixed; left: 0; top: 0; height: 2px; width: 0; background: var(--warm); z-index: 120; }
.toc { position: fixed; inset: 0; z-index: 99; background: var(--bg-c); display: none; overflow: auto; padding: 120px clamp(20px, 8vw, 140px); }
.toc.on { display: block; }
.toc ol { list-style: none; padding: 0; margin: 0; max-width: 820px; }
.toc a { display: flex; gap: 22px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-family: var(--display); font-size: clamp(16px, 2vw, 24px); letter-spacing: 0.05em; transition: color 200ms var(--ease-std); }
.toc a span { font-family: var(--util); font-size: 12px; letter-spacing: 0.2em; color: var(--cold); min-width: 2.6em; }
.toc a:hover { color: var(--muted); }

/* slides */
.slide { position: relative; min-height: 100vh; min-height: 100svh; padding: 104px clamp(20px, 4vw, 64px) 56px; display: flex; flex-direction: column; justify-content: center; gap: 18px; border-top: 1px solid var(--line); }
.w { width: 100%; max-width: 1600px; margin: 0 auto; }
.slide h2 { font-family: var(--display); font-weight: normal; font-style: normal; font-size: clamp(18px, 2.2vw, 34px); line-height: 1.4; letter-spacing: 0.05em; margin: 0; max-width: 32ch; text-wrap: balance; color: var(--ink); }
.head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 28px; }
.head .section-label, .ov .section-label, .etxt .section-label, .credits .section-label { margin-bottom: 0; }
.lede { font-family: var(--util); font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 56ch; margin: 0; text-wrap: pretty; }

/* full-bleed */
.full { padding: 0; justify-content: flex-end; overflow: hidden; }
.full > .bgm { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.full-scrim { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.full .ov { position: relative; z-index: 2; padding: 0 clamp(20px, 5vw, 80px) clamp(64px, 11vh, 120px); display: flex; flex-direction: column; gap: 14px; max-width: 820px; }
.full .ov .lede { color: var(--ink); opacity: 0.82; }

/* chapter opener = DS Banner at full height */
.chapter { padding: 0; overflow: hidden; }
.chapter-banner.ybanner { position: absolute; inset: 0; height: 100%; border-top: 0; }
.chapter-banner .ybanner-label { bottom: auto; top: clamp(96px, 16vh, 160px); }
.chapter-ov { position: relative; z-index: 2; margin-top: auto; padding: 0 clamp(20px, 5vw, 80px) clamp(64px, 12vh, 130px); display: flex; flex-direction: column; gap: 14px; }
.slide .chapter-title { font-size: clamp(24px, 3.4vw, 54px); max-width: 24ch; line-height: 1.35; }
/* portrait chapter: the vertical image stands on the right at full height, the title on the left */
.chapter.portrait .chapter-banner.ybanner { left: auto; right: 0; width: min(56.25svh, 58vw); }
.chapter.portrait .chapter-ov { max-width: calc(100% - min(56.25svh, 58vw)); }
/* title over the open lagoon (top right), so the stadium stays free */
.chapter.top-right .chapter-ov { position: absolute; top: clamp(150px, 21vh, 230px); right: 0; margin: 0; padding-bottom: 0; align-items: flex-end; text-align: right; }
.chapter.top-right .chapter-title { text-shadow: 0 2px 24px rgba(10,15,24,0.55); }
.chapter.top-right::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 62% 48% at 82% 26%, rgba(10,15,24,0.72), rgba(10,15,24,0) 100%); }

/* cover and intro */
.cover { padding: 0; }
.cover .hero { min-height: 100svh; }
.cover .hero-col { max-width: min(1000px, 90vw); }
.full .ov h1 { margin: 0; color: var(--ink); }
.introslide { padding: 0; justify-content: center; background: var(--surface); }

/* figures */
figure { margin: 0; min-width: 0; position: relative; }
.fr { overflow: hidden; background: var(--surface); }
.fr img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform 0.9s var(--ease-enter); }
.fr:hover img { transform: scale(1.03); }
.fr-cap.seq-caption { position: absolute; left: 0; bottom: 0; margin: 0; padding: 7px 10px; color: var(--ink); background: linear-gradient(to top, rgba(10,15,24,0.75), rgba(10,15,24,0)); width: 100%; pointer-events: none; }
.g3, .g4, .g5 { display: grid; gap: 6px; }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.big { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 6px; }
.big .side { display: grid; gap: 6px; grid-auto-rows: 1fr; }
.stack2 { display: grid; gap: 6px; }
.h62 { height: 62vh; } .h70 { height: 70vh; }
.r32 { aspect-ratio: 3 / 2; } .r916 { aspect-ratio: 9 / 16; }
/* method: Unreal orbit frame beside the AI video frame, three moments */
.pairs { display: flex; justify-content: center; gap: 28px; }
.pairs .pair { display: flex; gap: 4px; height: min(64vh, calc((min(100vw, 1600px) - 220px) / 3.4)); }
.pairs .pair > * { height: 100%; width: auto; }
.mosaic { display: grid; grid-template-rows: repeat(2, 38vh); gap: 6px; }
.mosaic figure { height: 100%; }

/* videos */
.vbox video { width: 100%; height: 100%; object-fit: cover; background: var(--bg-c); border: 1px solid var(--line); }
.unmute { position: absolute; right: 10px; top: 10px; z-index: 3; font-family: var(--util); font-size: 11px; letter-spacing: 0.08em; color: var(--ink); background: rgba(10,15,24,0.7); border: 1px solid var(--line); padding: 7px 10px; cursor: pointer; transition: color 200ms var(--ease-std); }
.unmute:hover { color: var(--warm); }
.env2 { display: flex; gap: 8px; align-items: stretch; justify-content: center; height: 80vh; }
.etxt { flex: 0 0 240px; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding-bottom: 4px; }
.reel { height: 100%; aspect-ratio: 9 / 16; flex: 0 0 auto; }
.estills { display: grid; gap: 6px; height: 100%; flex: 0 1 auto; }
.estills.c2 { grid-template-columns: repeat(2, minmax(0, calc(80vh * 9 / 16))); flex: 1 1 auto; min-width: 0; max-width: calc(80vh * 9 / 8 + 6px); }
.estills.c3, .estills.c4 { grid-template-columns: repeat(2, calc((80vh - 6px) / 2 * 9 / 16)); grid-template-rows: 1fr 1fr; }
.estills.c3 figure:first-child { grid-row: 1 / 3; }
.estills figure { height: 100%; }
.reelslide { overflow: hidden; padding-top: 88px; padding-bottom: 32px; }
.rbg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.rwrap { position: relative; z-index: 1; display: flex; gap: 32px; align-items: flex-end; justify-content: center; height: 84vh; }
.rwrap .etxt { flex: 0 0 280px; }
.rwrap h2 { font-size: clamp(20px, 2.6vw, 40px); }
.drones { display: flex; gap: 6px; justify-content: center; height: 56vh; }
.drones .dv { aspect-ratio: 9 / 16; height: 100%; }
.drones .dh { aspect-ratio: 16 / 9; height: 100%; max-width: calc(100% - 56vh * 9 / 16 - 6px); }

/* the floating pitch figure */
.iframe-box { position: relative; background: var(--ink); overflow: hidden; height: min(76vh, calc((100vw - 8vw) * 9 / 16)); aspect-ratio: 16 / 9; width: auto; max-width: 100%; margin: 0 auto; border: 1px solid var(--line); }
.iframe-box iframe { width: 100%; height: 100%; border: 0; }

/* skins viewer */
.viewer { position: relative; overflow: hidden; background: var(--surface); }
.viewer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s var(--ease-std); }
.viewer img.on { opacity: 1; }
.tabs { position: absolute; top: 12px; left: 12px; z-index: 3; display: flex; gap: 4px; }
.tabs button { font-family: var(--util); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); background: rgba(10,15,24,0.7); border: 1px solid var(--line); padding: 8px 12px; cursor: pointer; transition: color 200ms var(--ease-std); }
.tabs button[aria-pressed="true"] { color: var(--ink); border-color: var(--cold); }

/* before / after */
.cmp { position: relative; overflow: hidden; background: var(--surface); user-select: none; touch-action: pan-y; }
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; cursor: ew-resize; }
.cmp .top { clip-path: inset(0 0 0 var(--x, 50%)); }
.cmp .hand { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 1px; background: var(--ink); pointer-events: none; }
.cmp .hand::after { content: ""; position: absolute; top: 50%; left: 50%; width: 26px; height: 26px; transform: translate(-50%, -50%); border: 1px solid var(--ink); background: rgba(10,15,24,0.7); }
.cmp .lb { position: absolute; top: 10px; font-family: var(--util); font-size: 11px; letter-spacing: 0.08em; color: var(--ink); background: rgba(10,15,24,0.7); padding: 4px 8px; pointer-events: none; }
.cmp .lb.l { left: 10px; } .cmp .lb.r { right: 10px; }

/* method */
.pipe { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pipe div { background: var(--surface); padding: 14px; display: flex; flex-direction: column; gap: 6px; transition: background 200ms var(--ease-std); }
.pipe div:hover { background: var(--surface-lift); }
.pipe .n { font-family: var(--util); font-size: 12px; letter-spacing: 0.2em; color: var(--cold); }
.pipe b { font-family: var(--display); font-weight: normal; font-size: 15px; letter-spacing: 0.04em; color: var(--ink); }
.pipe span:last-child { font-family: var(--util); font-size: 12px; color: var(--muted); }

/* numbers */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.facts div { padding: 22px 16px 22px 0; border-bottom: 1px solid var(--line); }
.facts b { display: block; font-family: var(--display); font-weight: normal; font-size: clamp(24px, 3vw, 46px); letter-spacing: 0.04em; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.facts span { font-family: var(--util); font-size: 12px; color: var(--muted); }
.one { display: flex; align-items: baseline; gap: 28px; flex-wrap: wrap; padding-top: 22px; opacity: 0; transform: translateY(26px); transition: opacity 1.3s var(--ease-enter), transform 1.3s var(--ease-enter); }
.one.on { opacity: 1; transform: none; }
.one b { font-family: var(--display); font-weight: normal; font-size: clamp(90px, 13vw, 200px); line-height: 1; color: var(--warm); }
.one span { font-family: var(--display); font-size: clamp(18px, 2.4vw, 34px); letter-spacing: 0.05em; line-height: 1.4; color: var(--ink); max-width: 24ch; }

/* credits */
.credits-slide { min-height: 60vh; }
.credits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px; }
.credits > div { display: flex; flex-direction: column; gap: 12px; }
.credits p { font-family: var(--util); font-size: 13px; line-height: 1.6; color: var(--muted); margin: 0; }

@media (max-width: 900px) {
  .g3, .g4, .g5, .big, .credits, .pipe, .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .big .side { grid-template-columns: 1fr 1fr; }
  .h62, .h70 { height: auto; aspect-ratio: 3 / 2; }
  .env2, .rwrap { flex-direction: column; height: auto; align-items: center; }
  .etxt, .rwrap .etxt { flex: none; width: 100%; }
  .reel { height: 72vh; }
  .estills { height: auto; width: 100%; }
  .estills.c2, .estills.c3, .estills.c4 { grid-template-columns: 1fr 1fr; grid-template-rows: none; max-width: none; }
  .estills.c3 figure:first-child { grid-row: auto; }
  .estills figure { aspect-ratio: 9 / 16; }
  .mosaic { grid-template-columns: 1fr 1fr !important; grid-template-rows: none; }
  .mosaic figure { grid-column: auto !important; grid-row: auto !important; aspect-ratio: 3 / 4; }
  .drones { flex-direction: column; height: auto; }
  .drones .dv, .drones .dh { height: auto; width: 100%; max-width: none; }
  .chap-now { display: none; }
}

/* phone */
@media (max-width: 600px) {
  .slide { padding: 84px 16px 40px; gap: 14px; }
  .full .ov, .chapter-ov { padding: 0 18px 72px; }
  .chapter.portrait .chapter-banner.ybanner { width: 100%; }
  .chapter.portrait .chapter-ov { max-width: none; }
  .chapter.top-right::after { background: linear-gradient(0deg, rgba(10,15,24,0.7), rgba(10,15,24,0) 45%); }
  .chapter.top-right .chapter-ov { position: relative; top: auto; right: auto; margin-top: auto; padding-bottom: 72px; align-items: flex-start; text-align: left; }
  .head { gap: 6px 16px; }
  .big { grid-template-columns: 1fr; }
  .big > .fr, .big > .viewer { height: auto; aspect-ratio: 4 / 3; }
  .big .side { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .big .side .fr { aspect-ratio: 4 / 5; }
  .g4 .h62, .g3 .h62 { aspect-ratio: 4 / 5; }
  .g3 { grid-template-columns: 1fr; }
  .g3 .h62 { aspect-ratio: 3 / 2; }
  .g5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pairs { flex-direction: column; align-items: center; gap: 18px; }
  .pairs .pair { height: auto; width: 100%; }
  .pairs .pair > * { width: 50%; height: auto; }
  .iframe-box { height: auto; width: 100% !important; aspect-ratio: 1 / 1; }
  .reel { height: auto; width: 100%; max-height: 78vh; }
  .rwrap .reel { width: min(100%, calc(78vh * 9 / 16)); }
  .mosaic figure { aspect-ratio: 4 / 5; }
  .fr-cap.seq-caption { font-size: 10px; padding: 5px 7px; }
  .cmp { height: auto !important; aspect-ratio: 3 / 2; }
  .stack2 .cmp { aspect-ratio: 3 / 2; }
  .facts { grid-template-columns: 1fr 1fr; }
  .one { gap: 14px; }
  .credits { grid-template-columns: 1fr; }
  .tabs button { padding: 10px 12px; }
  .unmute { padding: 10px 12px; }
}
@media (max-width: 520px) { .g3, .big, .credits, .pipe { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .fr img, .viewer img { transition: none; } }
.full-scrim::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,15,24,0.82), rgba(10,15,24,0) 55%); }
.cover .hero-overlay { background: linear-gradient(90deg, rgba(10,15,24,0.78), rgba(10,15,24,0.15) 62%); }
