@font-face { font-family: "GTM Display"; font-style: normal; font-weight: 400; font-display: block; size-adjust: 74%; src: url(fonts/young-serif-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "GTM Display"; font-style: italic; font-weight: 400; font-display: block; size-adjust: 92%; src: url(fonts/source-serif-4-latin-300-italic.woff2) format("woff2"); }
@font-face { font-family: "Young Serif"; font-style: normal; font-weight: 400; font-display: block; src: url(fonts/young-serif-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 300; font-display: block; src: url(fonts/source-serif-4-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 300; font-display: block; src: url(fonts/source-serif-4-latin-300-italic.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: block; src: url(fonts/source-serif-4-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: block; src: url(fonts/source-serif-4-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 400; font-display: block; src: url(fonts/space-grotesk-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: block; src: url(fonts/space-grotesk-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 600; font-display: block; src: url(fonts/space-grotesk-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400; font-display: block; src: url(fonts/geist-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 500; font-display: block; src: url(fonts/geist-mono-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Architects Daughter"; font-style: normal; font-weight: 400; font-display: block; src: url(fonts/architects-daughter-latin-400-normal.woff2) format("woff2"); }

:root {
  --desk: #EFE8DC;
  --page: #FBF8F2;
  --panel: #F4EFE6;
  --panel-2: #ECE5D6;
  --cube-side: #E4DCCB;
  --grey-fill: #EDE7DA;
  --line: #CFC6B6;
  --ink: #141210;
  --ink-2: #4A453D;
  --ink-3: #5E584F;
  --dark: #16140F;
  --dark-2: #E8E1D3;
  --dark-3: #D8D0C0;
  --dark-title: #F7F2E9;
  --acc: #F0287F;
  --acc-text: #B8125E;
  --acc-light: #FF5FA6;
  --acc-dark: #B8125E;
  --acc-tint: #FBEAF1;
  --pen: #1F2A5C;

  --serif: "Source Serif 4", Georgia, serif;
  --display: "GTM Display", Georgia, serif;
  --heavy: "Young Serif", Georgia, serif;
  --grot: "Space Grotesk", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --hand: "Architects Daughter", cursive;

  --fs-numeral: 360px;
  --fs-title: 112px;
  --fs-h2: 80px;
  --fs-h3: 56px;
  --fs-stance: 48px;
  --fs-body: 38px;
  --fs-sub: 34px;
  --fs-caption: 32px;
  --fs-chip: 30px;
  --fs-kicker: 28px;
  --fs-folio: 28px;

  --mx: 128px;
  --mt: 112px;
  --stroke: 2px;
  --stroke-strong: 3px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --t-step: 420ms;
  --t-slide: 360ms;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--desk); color: var(--ink); }
body { font-family: var(--serif); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

#stage {
  position: absolute; left: 50%; top: 50%;
  width: 1920px; height: 1080px;
  transform: translate(-50%, -50%) scale(var(--scale, 1));
  transform-origin: 50% 50%;
  background: var(--page);
  overflow: hidden;
}

.slide {
  position: absolute; inset: 0;
  padding: var(--mt) var(--mx) 160px;
  background: var(--page);
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-slide) var(--ease-out), visibility 0s linear var(--t-slide);
}
.slide.is-active { opacity: 1; visibility: visible; transition: opacity var(--t-slide) var(--ease-out), visibility 0s; z-index: 10; }
.slide > aside.notes { display: none; }

.step { opacity: 0; transform: translateY(16px); transition: opacity var(--t-step) var(--ease-out), transform var(--t-step) var(--ease-out); }
.step.is-shown { opacity: 1; transform: none; }
.step.is-current { }

body.no-motion .slide, body.no-motion .step, body.no-motion .bolt, body.no-motion .meter-num { transition: none !important; animation: none !important; }
body.no-motion .step { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .slide, .step, .bolt, .meter-num { transition: none !important; animation: none !important; }
  .step { transform: none; }
}

.kicker { font: 400 var(--fs-kicker)/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--acc-text); margin: 0 0 24px; }
.kicker.ink { color: var(--ink-3); }
.title { font: 400 var(--fs-title)/1.04 var(--display); letter-spacing: -.01em; margin: 0; }
.h2 { font: 400 var(--fs-h2)/1.08 var(--display); letter-spacing: -.005em; margin: 0; }
.h3 { font: 400 var(--fs-h3)/1.1 var(--display); margin: 0; }
.stance { font: italic 400 var(--fs-stance)/1.25 var(--display); margin: 0; }
.body { font: 300 var(--fs-body)/1.45 var(--serif); font-variation-settings: "opsz" 8; margin: 0 0 24px; max-width: 30ch; }
.body.wide { max-width: 44ch; }
.sub { font: 600 var(--fs-sub)/1.3 var(--grot); margin: 0; }
.label { font: 500 var(--fs-chip)/1.3 var(--grot); color: var(--ink-2); margin: 0; }
.mono { font-family: var(--mono); letter-spacing: .08em; }
.hand { font: 400 48px/1.3 var(--hand); color: var(--pen); }
.pink { color: var(--acc-text); }
em, .it { font-style: italic; }
b, strong { font-weight: 600; }

.fig-head { display: grid; grid-template-columns: 560px 1fr; gap: 48px; align-items: start; margin-bottom: 56px; }
.fig-head .kicker { margin: 8px 0 0; }
.caption { font: 300 var(--fs-caption)/1.45 var(--serif); color: var(--ink-2); margin: 0; max-width: 46ch; }
.caption b, .caption strong { font-weight: 600; color: var(--ink); }
.fig-body { position: relative; }
.credit { position: absolute; right: var(--mx); bottom: 72px; font: 400 var(--fs-kicker)/1 var(--mono); letter-spacing: .04em; color: var(--ink-3); }
.credit span + span { margin-left: 32px; }

.part-tab { position: absolute; left: 0; top: 160px; width: 64px; padding: 24px 0; background: var(--acc); color: var(--ink); font: 400 var(--fs-kicker)/1 var(--mono); letter-spacing: .06em; writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; }

.cards { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 48px; }
.card { border: var(--stroke) solid var(--line); padding: 32px 40px; background: var(--page); }
.card.hot { background: var(--acc-tint); border-color: var(--acc); }
.card .n { font: 400 var(--fs-kicker)/1 var(--mono); color: var(--acc-text); margin-bottom: 16px; }
.card .h3 { margin-bottom: 8px; }
.card .label { margin-bottom: 24px; }
.card hr { border: 0; border-top: var(--stroke) solid var(--line); margin: 24px 0; }
.card .kicker { color: var(--ink-3); margin-bottom: 8px; }
.card .answer { font: 600 var(--fs-sub)/1.25 var(--serif); margin: 0; }
.box { border: var(--stroke) solid var(--ink); padding: 16px 24px; font: 400 var(--fs-chip)/1.3 var(--grot); }
.box.dashed { border-style: dashed; }
.box.soft { background: var(--panel); }

.callout { background: var(--panel); padding: 32px 40px; max-width: 880px; }
.callout .clabel { font: 600 var(--fs-chip)/1.3 var(--grot); color: var(--acc-text); margin: 0 0 8px; }
.callout p { font: 300 var(--fs-caption)/1.45 var(--serif); margin: 0; }
.callout.hot { background: var(--acc-tint); }

.chips { display: flex; flex-wrap: wrap; gap: 16px; }
.chip { display: inline-flex; align-items: center; gap: 12px; font: 500 var(--fs-chip)/1 var(--grot); background: var(--panel); color: var(--ink); padding: 16px 24px; }
.chip.ink { background: var(--ink); color: var(--page); }
.chip.pink { background: var(--acc); color: var(--ink); }
.chip.line { background: transparent; border: var(--stroke) solid var(--ink); padding: 14px 22px; }

.bullets { list-style: none; margin: 0; padding: 0; }
.bullets li { position: relative; padding-left: 40px; margin: 0 0 16px; font: 300 var(--fs-body)/1.4 var(--serif); }
.bullets li::before { content: ""; position: absolute; left: 0; top: .6em; width: 12px; height: 12px; background: var(--acc); }

.chev { width: 32px; height: 56px; fill: none; stroke: var(--acc); stroke-width: 3; }

svg.iso { overflow: visible; display: block; }
svg .q-t  { fill: var(--page); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
svg .q-l  { fill: var(--panel); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
svg .q-r  { fill: var(--cube-side); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
svg .q-pt { fill: var(--acc-light); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
svg .q-pl { fill: var(--acc); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
svg .q-pr { fill: var(--acc-dark); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
svg .bx   { fill: none; stroke: var(--ink); stroke-width: 2; }
svg .bxd  { fill: var(--page); stroke: var(--ink); stroke-width: 2; stroke-dasharray: 12 10; }
svg .kl   { fill: none; stroke: var(--acc); stroke-width: 3; }
svg .dash { fill: none; stroke: var(--acc); stroke-width: 3; stroke-dasharray: 14 12; }
svg .hair { fill: none; stroke: var(--line); stroke-width: 2; }

.slide.opener { background: var(--dark); color: var(--dark-2); display: grid; grid-template-columns: 560px 1fr; gap: 64px; align-content: center; }
.opener .numeral { font: italic 400 var(--fs-numeral)/.85 var(--display); color: var(--dark-title); margin: 0; }
.opener .kicker { color: var(--acc); }
.opener .title { color: var(--dark-title); margin-bottom: 40px; }
.opener .lede { font: italic 400 var(--fs-stance)/1.3 var(--display); color: var(--dark-3); margin: 0; max-width: 26ch; }
.opener .credit { color: var(--dark-3); }

#folio { position: absolute; left: var(--mx); bottom: 64px; z-index: 50; display: flex; gap: 32px; font: 400 var(--fs-folio)/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); transition: color 300ms var(--ease-out); font-variant-numeric: tabular-nums; }
#folio.over { color: var(--acc-text); }
#folio.over .f-clock::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 12px; background: var(--acc); vertical-align: 2px; }
body.on-dark #folio { color: var(--dark-3); }
body.on-dark #folio.over { color: var(--acc); }
body.folio-off #folio { opacity: 0; }
#folio { display: none !important; }

.meter { display: inline-flex; align-items: baseline; gap: 16px; background: var(--panel); padding: 16px 32px; }
.meter-num { font: 400 96px/1 var(--display); color: var(--acc-text); font-variant-numeric: tabular-nums; display: inline-block; }
.meter-num.bump { animation: bump 360ms var(--ease-out); }
@keyframes bump { from { transform: scale(1.18); } to { transform: none; } }
.meter .label { font-size: var(--fs-chip); }

.lane { transition: opacity 300ms var(--ease-out), background-color 300ms var(--ease-out); }
body[data-lane] .lane { opacity: .35; }
body[data-lane="B"] .lane[data-for~="B"],
body[data-lane="I"] .lane[data-for~="I"],
body[data-lane="A"] .lane[data-for~="A"] { opacity: 1; background-color: var(--acc-tint); }
#lane-badge { position: absolute; right: var(--mx); top: 48px; z-index: 50; font: 500 var(--fs-kicker)/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); background: var(--acc); padding: 12px 20px; display: none; }
body[data-lane] #lane-badge { display: block; }

.logo-row { display: flex; gap: 16px; align-items: center; opacity: 0; transform: translateY(16px); transition: opacity var(--t-step) var(--ease-out), transform var(--t-step) var(--ease-out); }
.logo-row.is-shown { opacity: 1; transform: none; }
.logo-row img { height: 64px; width: auto; }

#pen { position: absolute; inset: 0; z-index: 60; pointer-events: none; }
body.pen-on #pen { pointer-events: auto; cursor: crosshair; }
#pen-badge { position: absolute; left: 50%; top: 32px; transform: translateX(-50%); z-index: 61; font: 400 var(--fs-kicker)/1 var(--hand); color: var(--pen); background: var(--page); border: var(--stroke) solid var(--pen); padding: 8px 20px; display: none; }
body.pen-on #pen-badge { display: block; }

.bolt { position: absolute; left: 50%; top: 50%; width: 360px; height: 520px; margin: -260px 0 0 -180px; z-index: 70; pointer-events: none; opacity: 0; transform: scale(.7); transition: opacity 240ms var(--ease-out), transform 360ms var(--ease-out); }
.bolt.is-shown { opacity: 1; transform: none; }
.bolt path { fill: var(--acc); stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; }

#overview { position: fixed; inset: 0; z-index: 100; background: var(--desk); overflow-y: auto; padding: 48px; display: none; }
body.overview #overview { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px; align-content: start; }
.ov-item { position: relative; aspect-ratio: 16 / 9; background: var(--page); border: 2px solid var(--line); cursor: pointer; overflow: hidden; padding: 0; text-align: left; }
.ov-item:focus-visible, .ov-item.is-sel { outline: 4px solid var(--acc); outline-offset: 4px; }
.ov-item.is-hidden-slide { border-style: dashed; }
.ov-thumb { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; pointer-events: none; }
.ov-thumb .slide { opacity: 1; visibility: visible; transition: none; }
.ov-thumb .step, .ov-thumb .logo-row { opacity: 1; transform: none; transition: none; }
.ov-cap { position: absolute; left: 0; right: 0; bottom: 0; background: var(--ink); color: var(--page); font: 400 16px/1.2 var(--mono); letter-spacing: .06em; padding: 8px 12px; }

.row { display: flex; gap: 48px; align-items: flex-start; }
.col { display: flex; flex-direction: column; gap: 24px; }
.grow { flex: 1; }
.spacer-s { height: 24px; } .spacer-m { height: 48px; } .spacer-l { height: 96px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: start; }
.rule { border: 0; border-top: var(--stroke-strong) solid var(--ink); margin: 40px 0; width: 640px; }
.center { display: grid; place-items: center; text-align: center; }
