:root {
  --paper: oklch(0.966 0.013 85);
  --paper-2: oklch(0.938 0.017 85);
  --ink: oklch(0.21 0.03 272);
  --ink-2: oklch(0.43 0.025 272);
  --rule: oklch(0.21 0.03 272 / 0.16);
  --studio: oklch(0.165 0.035 272);
  --studio-2: oklch(0.215 0.04 272);
  --line-d: oklch(0.95 0.02 272 / 0.14);
  --on-d: oklch(0.95 0.015 85);
  --on-d-2: oklch(0.74 0.03 272);
  --navy: oklch(0.36 0.13 266);
  --navy-l: oklch(0.7 0.12 262);
  --rec: oklch(0.62 0.21 27);
  --rec-l: oklch(0.7 0.19 30);
  --rec-wash: oklch(0.62 0.21 27 / 0.14);
  --kas: oklch(0.56 0.1 190);
  --kas-l: oklch(0.76 0.11 190);

  --serif: "EB Garamond", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --gut: clamp(16px, 4vw, 56px);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; }
p { margin: 0; }
button { font: inherit; color: inherit; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--paper); padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--rec); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }

.lab {
  font: 500 11.5px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2);
}
.lab-rec { color: var(--rec); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.35em; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-rec { background: var(--rec); color: #fff; }
.btn-rec:hover { background: var(--rec-l); }
.btn-ghost { border-color: var(--line-d); color: var(--on-d); background: transparent; }
.btn-ghost:hover { border-color: var(--on-d-2); }
.btn-sm { padding: .6em 1.05em; font-size: 14px; }

/* header */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 28px; padding: 12px var(--gut);
  color: var(--on-d); transition: background-color .3s ease, color .3s ease, box-shadow .3s ease;
}
.top.is-dark { background: oklch(0.165 0.035 272 / 0.88); box-shadow: 0 1px 0 var(--line-d); backdrop-filter: blur(8px); }
.top.is-paper { background: oklch(0.966 0.013 85 / 0.94); color: var(--ink); box-shadow: 0 1px 0 var(--rule); backdrop-filter: blur(8px); }
.top.is-paper .btn-sm { color: #fff; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo { height: 30px; width: auto; }
.logo-b, .top.is-paper .logo-w { display: none; }
.top.is-paper .logo-b { display: block; }
.brand-x { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding-left: 14px; border-left: 1px solid currentColor; opacity: .85; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 14.5px; }
.nav a { text-decoration: none; opacity: .82; }
.nav a:hover { opacity: 1; }

/* HERO */
.hero {
  position: relative; background: var(--studio); color: var(--on-d);
  padding: 118px 0 0; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 70% at 78% 40%, oklch(0.3 0.08 268 / 0.55), transparent 70%),
    radial-gradient(40% 40% at 92% 85%, oklch(0.5 0.2 27 / 0.16), transparent 70%);
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px); align-items: center; padding-bottom: 64px;
}
.eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font: 500 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--on-d-2); }
.eb-d { flex-basis: 100%; padding-left: 19px; color: var(--rec-l); }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 0 4px oklch(0.62 0.21 27 / 0.22); animation: blink 1.6s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.hero h1 {
  margin-top: 22px; font-size: clamp(46px, 6.4vw, 92px); line-height: .98; font-weight: 500;
}
.hero h1 em { font-style: italic; color: var(--rec-l); }
.lede { margin-top: 24px; max-width: 34em; font-size: 18px; line-height: 1.55; color: oklch(0.88 0.02 272); }
.facts { margin: 30px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-d); }
.facts div { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line-d); }
.facts div:nth-child(odd) { border-right: 1px solid var(--line-d); }
.facts div:nth-child(even) { padding-left: 16px; }
.facts dt { font: 500 10.5px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--on-d-2); }
.facts dd { margin: 5px 0 0; font: 500 16px/1.3 var(--sans); }
.hero-cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

/* the twenty */
.twenty { margin-top: 24px; }
.tw-dots { display: flex; flex-wrap: wrap; gap: 7px; }
.tw-dots i { width: 15px; height: 15px; border-radius: 50%; opacity: 0; transform: scale(.4); animation: pop .5s cubic-bezier(.3,1.5,.5,1) forwards; }
.tw-dots i.c { background: var(--rec); }
.tw-dots i.e { background: var(--navy-l); }
.tw-dots i.k { background: var(--kas-l); }
.tw-dots i.c + i.e, .tw-dots i.e + i.k { margin-left: 9px; }
.tw-dots i:nth-child(1) { animation-delay: 0.35s; }
.tw-dots i:nth-child(2) { animation-delay: 0.40s; }
.tw-dots i:nth-child(3) { animation-delay: 0.45s; }
.tw-dots i:nth-child(4) { animation-delay: 0.50s; }
.tw-dots i:nth-child(5) { animation-delay: 0.55s; }
.tw-dots i:nth-child(6) { animation-delay: 0.60s; }
.tw-dots i:nth-child(7) { animation-delay: 0.65s; }
.tw-dots i:nth-child(8) { animation-delay: 0.70s; }
.tw-dots i:nth-child(9) { animation-delay: 0.75s; }
.tw-dots i:nth-child(10) { animation-delay: 0.80s; }
.tw-dots i:nth-child(11) { animation-delay: 0.85s; }
.tw-dots i:nth-child(12) { animation-delay: 0.90s; }
.tw-dots i:nth-child(13) { animation-delay: 0.95s; }
.tw-dots i:nth-child(14) { animation-delay: 1.00s; }
.tw-dots i:nth-child(15) { animation-delay: 1.05s; }
.tw-dots i:nth-child(16) { animation-delay: 1.10s; }
.tw-dots i:nth-child(17) { animation-delay: 1.15s; }
.tw-dots i:nth-child(18) { animation-delay: 1.20s; }
.tw-dots i:nth-child(19) { animation-delay: 1.25s; }
.tw-dots i:nth-child(20) { animation-delay: 1.30s; }
@keyframes pop { to { opacity: 1; transform: none; } }
.tw-key { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; color: var(--on-d-2); }
.tw-key b { color: var(--on-d); font-weight: 600; }

/* the cut */
.cut { margin: 0; }
.cut-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: 26px; align-items: center; }
.doc {
  position: relative; background: var(--paper); color: var(--ink); padding: 22px 24px 20px;
  border-radius: 3px; box-shadow: 0 30px 60px -30px oklch(0 0 0 / .7), 0 0 0 1px oklch(0 0 0 / .2);
  font: 400 15.5px/1.5 var(--serif);
}
.doc-h { display: flex; justify-content: space-between; gap: 12px; font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.doc-t { font-size: 22px; margin: 12px 0 8px; }
.doc p { margin-top: 7px; }
.doc b { font: 500 11px/1 var(--mono); color: var(--ink-2); margin-right: 6px; }
.doc .src, .doc .lost { border-radius: 2px; transition: background-color .5s ease, color .5s ease, box-shadow .5s ease; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.doc .src.on { background: oklch(0.88 0.1 85); box-shadow: 0 0 0 2px oklch(0.88 0.1 85); }
.doc .src.used { background: oklch(0.9 0.05 85); box-shadow: 0 0 0 2px oklch(0.9 0.05 85); }
.doc .lost.on { color: var(--rec); text-decoration: line-through; text-decoration-thickness: 1.5px; background: var(--rec-wash); box-shadow: 0 0 0 2px var(--rec-wash); }

.frame {
  position: relative; aspect-ratio: 9 / 16; border-radius: 22px; padding: 14px 12px 12px;
  background: linear-gradient(170deg, oklch(0.25 0.04 272), oklch(0.13 0.03 272));
  box-shadow: 0 0 0 1px oklch(1 0 0 / .1), 0 0 0 7px oklch(0.1 0.02 272), 0 0 0 8px oklch(1 0 0 / .08), 0 40px 70px -30px oklch(0 0 0 / .8);
  display: flex; flex-direction: column;
}
.frame-top { display: flex; justify-content: space-between; align-items: center; font: 500 10.5px/1 var(--mono); letter-spacing: .06em; color: var(--on-d-2); }
.rec { display: inline-flex; align-items: center; gap: 6px; color: var(--rec-l); }
.rec i { width: 7px; height: 7px; border-radius: 50%; background: var(--rec); }
.frame.live .rec i { animation: blink 1s steps(2, start) infinite; }
.tc { font-variant-numeric: tabular-nums; }
.beats { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.beats li {
  position: relative; padding: 9px 10px 10px; border-radius: 10px; background: oklch(1 0 0 / .06);
  border: 1px solid oklch(1 0 0 / .08);
  opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .45s ease, border-color .4s ease;
}
.beats li.in { opacity: 1; transform: none; }
.bt { display: block; font: 500 9.5px/1 var(--mono); color: var(--on-d-2); letter-spacing: .06em; }
.bx { display: block; margin-top: 5px; font: 700 14px/1.22 var(--sans); color: #fff; }
.flag {
  position: absolute; top: -8px; right: -6px; padding: 3px 7px; border-radius: 3px;
  background: var(--rec); color: #fff; font: 600 9px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  transform: rotate(4deg) scale(.6); opacity: 0; transition: transform .35s cubic-bezier(.3,1.6,.5,1), opacity .25s ease;
}
.beats li.flagged { border-color: oklch(0.62 0.21 27 / .7); }
.beats li.flagged .flag { opacity: 1; transform: rotate(4deg) scale(1); }
.frame-foot { margin-top: 10px; padding-top: 10px; border-top: 1px solid oklch(1 0 0 / .1); display: flex; justify-content: space-between; align-items: baseline; font: 500 10px/1.2 var(--mono); color: var(--on-d-2); letter-spacing: .04em; }
.ff-n b { font: 600 15px/1 var(--mono); color: var(--rec-l); }
.flyer {
  position: absolute; z-index: 5; pointer-events: none; padding: 2px 4px; border-radius: 2px;
  background: oklch(0.88 0.1 85); color: var(--ink); font: 400 15.5px/1.35 var(--serif); white-space: nowrap;
}
.cut-cap { margin-top: 18px; max-width: 46em; font-size: 13.5px; line-height: 1.5; color: var(--on-d-2); }
.cap-k { color: var(--on-d); font-weight: 600; }

.ticker { position: relative; border-top: 1px solid var(--line-d); overflow: hidden; padding: 13px 0; }
.ticker-in { display: flex; gap: 0; width: max-content; animation: tick 60s linear infinite; }
.ticker span { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--on-d-2); padding: 0 22px; white-space: nowrap; }
.ticker span::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--rec); margin-right: 22px; vertical-align: middle; position: relative; top: -1px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* SECTIONS */
.sec { padding: clamp(64px, 8vw, 104px) 0; border-top: 1px solid var(--rule); }
.sec-tint { background: var(--paper-2); }
.sec-studio { background: var(--studio); color: var(--on-d); border-top: 0; }
.sec-studio .lab { color: var(--on-d-2); }
.sec-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 80px); }
.sec-grid-tight { align-items: end; margin-bottom: 36px; }
.sec-h h2 { margin-top: 14px; font-size: clamp(30px, 3.3vw, 44px); line-height: 1.08; }
.sec-h { align-self: start; position: sticky; top: 96px; }
.sec-grid-tight .sec-h { position: static; }
.sec-note { margin-top: 18px; font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 30em; }
.sec-studio .sec-note { color: var(--on-d-2); }
.sec-note-r { margin: 0; justify-self: end; }

.prose p + p { margin-top: 1em; }
.prose > p:not(.question) { font-size: 18px; line-height: 1.6; max-width: 38em; }
.question {
  margin: 36px 0 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--rec);
  font: 500 clamp(22px, 2.2vw, 28px)/1.3 var(--serif); max-width: 32em;
}
.question .lab { display: block; margin-bottom: 10px; font-family: var(--mono); }
.isnot { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.isnot > div { padding: 18px 22px 20px 0; }
.isnot > div + div { padding-left: 22px; border-left: 1px solid var(--rule); }
.isnot p:not(.lab) { margin-top: 8px; font-size: 16px; }
.isnot > div:first-child p:not(.lab) { color: var(--ink-2); }
.mini { margin-top: 36px; font-size: 22px; }
.hair { list-style: none; margin: 12px 0 0; padding: 0; columns: 2; column-gap: 32px; }
.hair li { break-inside: avoid; padding: 11px 0; border-top: 1px solid var(--rule); font-size: 15.5px; line-height: 1.45; }

/* seats */
.seat-wrap { border: 1px solid var(--rule); background: var(--paper); border-radius: 4px; padding: 14px 14px 10px; }
.seat-modes { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 13px; border-radius: 999px; border: 1px solid var(--rule); background: transparent; cursor: pointer;
  font: 500 13px/1 var(--sans); transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--ink-2); }
.chip.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.seats { width: 100%; height: auto; display: block; margin-top: 6px; }
.furn .f { opacity: 0; transition: opacity .6s ease; }
.seats[data-mode="round"] .f-round, .seats[data-mode="teams"] .f-teams, .seats[data-mode="plenary"] .f-plenary { opacity: 1; }
.f-round { fill: var(--paper-2); stroke: var(--rule); }
.f-teams circle { fill: var(--paper-2); stroke: var(--rule); }
.f-teams text, .f-plenary text { font: 500 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; fill: var(--ink-2); text-anchor: middle; }
.f-plenary rect { fill: var(--ink); }
.seat { transition: transform .9s cubic-bezier(.65,0,.25,1); }
.seat circle { stroke-width: 2; }
.seat.c circle { fill: var(--rec); stroke: var(--paper); }
.seat.e circle { fill: var(--navy); stroke: var(--paper); }
.seat.k circle { fill: var(--kas); stroke: var(--paper); }
.seat-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 4px; font-size: 13px; color: var(--ink-2); }
.seat-key span { display: inline-flex; align-items: center; gap: 7px; }
.seat-mid { margin-left: auto; font: 400 11.5px var(--mono); }
.k { display: inline-block; width: 11px; height: 11px; border-radius: 50%; }
.k-c { background: var(--rec); }
.k-e { background: var(--navy); }
.k-k { background: var(--kas); }

.who { width: 100%; margin-top: 28px; border-collapse: collapse; font-size: 15px; }
.who th, .who td { text-align: left; vertical-align: top; padding: 13px 14px 13px 0; border-top: 1px solid var(--rule); }
.who thead th { font: 500 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); padding-top: 0; border-top: 0; }
.who tbody th { font: 600 15px/1.35 var(--sans); width: 30%; }
.who td:last-child { color: var(--ink-2); line-height: 1.5; }
.who .n { font: 500 22px/1.1 var(--serif); width: 72px; white-space: nowrap; }
.n-c { color: var(--rec); }
.n-e { color: var(--navy); }
.n-k { color: var(--kas); }
.aside { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rule); font: italic 400 19px/1.45 var(--serif); max-width: 36em; }

.ways { list-style: none; margin: clamp(48px, 6vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.ways li { padding: 16px 18px 4px 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.ways li + li { padding-left: 18px; border-left: 1px solid var(--rule); }
.ways b { display: block; margin-bottom: 6px; font: 500 19px/1.2 var(--serif); color: var(--ink); }

/* themes ledger */
.ledger { border-top: 1px solid var(--ink); }
.ledger details { border-bottom: 1px solid var(--rule); }
.ledger summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 170px 1fr 24px; align-items: baseline; gap: 18px;
  padding: 20px 0;
}
.ledger summary::-webkit-details-marker { display: none; }
.tg { font: 500 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--rec); }
.tt { font: 500 clamp(22px, 2.2vw, 28px)/1.15 var(--serif); }
.ledger summary:hover .tt { color: var(--navy); }
.pl { position: relative; width: 14px; height: 14px; align-self: center; }
.pl::before, .pl::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 1.5px; background: currentColor; transition: transform .3s ease; }
.pl::after { transform: rotate(90deg); }
details[open] .pl::after { transform: rotate(0); }
.dd { padding: 0 42px 24px 188px; font-size: 16px; color: var(--ink-2); max-width: 54em; }
.qs { margin: 0; padding: 0; list-style: none; }
.qs li { padding: 7px 0 7px 22px; position: relative; font: 400 19px/1.35 var(--serif); color: var(--ink); }
.qs li::before { content: "?"; position: absolute; left: 0; top: 7px; font: 500 14px var(--mono); color: var(--rec); }
.tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { padding: 6px 11px; border: 1px solid var(--rule); border-radius: 999px; font-size: 13.5px; color: var(--ink); background: var(--paper-2); }

/* exercises */
.ex { padding: 30px 0 34px; border-top: 1px solid var(--line-d); }
.ex:first-child { border-top: 1px solid var(--on-d-2); padding-top: 24px; }
.ex-h { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.ex h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; }
.ex > p { margin-top: 12px; max-width: 40em; color: oklch(0.86 0.02 272); font-size: 16.5px; }
.fine { margin-top: 14px; font-size: 13px; color: var(--on-d-2); max-width: 46em; }

.clock { margin-top: 24px; }
.clock-read { display: flex; justify-content: space-between; font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--on-d-2); }
#clockT { font: 500 28px/1 var(--mono); color: var(--on-d); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.track { position: relative; margin-top: 10px; display: grid; grid-template-columns: 56fr 30fr 14fr; height: 54px; border-radius: 4px; overflow: hidden; }
.seg { position: relative; display: flex; align-items: flex-end; padding: 8px 10px; font: 500 11px/1.2 var(--mono); letter-spacing: .04em; color: #fff; }
.seg-k { background: var(--navy); }
.seg-c { background: oklch(0.5 0.17 27); }
.seg-c .range { position: absolute; top: 0; bottom: 0; left: 66.6%; right: 0; background: repeating-linear-gradient(135deg, oklch(1 0 0 / .18) 0 4px, transparent 4px 9px); }
.seg-q { background: oklch(0.32 0.03 272); }
.seg span { position: relative; z-index: 1; }
.head { position: absolute; top: -4px; bottom: -4px; left: 0; width: 2px; background: #fff; box-shadow: 0 0 0 3px oklch(1 0 0 / .15); transform: translateX(0); }
.crit { margin: 16px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-d); }
.crit li { padding: 12px 14px 0 0; font: 400 18px/1.3 var(--serif); opacity: .35; transition: opacity .5s ease, color .5s ease; }
.crit li + li { padding-left: 14px; border-left: 1px solid var(--line-d); }
.crit li.on { opacity: 1; color: #fff; }

.desk { margin-top: 22px; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 0; border: 1px solid var(--line-d); border-radius: 4px; overflow: hidden; }
.scn-list { display: flex; flex-direction: column; border-right: 1px solid var(--line-d); }
.scn { text-align: left; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line-d); background: transparent; cursor: pointer; font: 500 14px/1.3 var(--sans); color: var(--on-d-2); transition: background-color .2s, color .2s; }
.scn:last-child { border-bottom: 0; }
.scn:hover { color: var(--on-d); background: oklch(1 0 0 / .03); }
.scn.is-on { color: #fff; background: var(--studio-2); box-shadow: inset 3px 0 0 var(--rec); }
.scn-card { padding: 20px 22px 22px; background: var(--studio-2); }
.scn-tag { font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--rec-l); }
.scn-text { margin-top: 10px; font: 500 clamp(20px, 1.9vw, 24px)/1.3 var(--serif); color: #fff; min-height: 2.6em; }
.sides { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.side { padding: 14px 14px 6px; border-radius: 4px; background: oklch(1 0 0 / .035); border-top: 3px solid; }
.side-c { border-color: var(--rec); }
.side-k { border-color: var(--navy-l); }
.side-h { display: flex; align-items: center; gap: 8px; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--on-d-2); }
.side ul { margin: 10px 0 0; padding: 0; list-style: none; }
.side li { padding: 8px 0; border-top: 1px solid var(--line-d); font-size: 14.5px; line-height: 1.4; color: oklch(0.9 0.015 272); }
.scn-card.swap .scn-text, .scn-card.swap .side li { animation: fadeUp .45s ease both; }
.scn-card.swap .side li:nth-child(2) { animation-delay: .05s; }
.scn-card.swap .side li:nth-child(3) { animation-delay: .1s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }

.chain { margin-top: 24px; display: grid; grid-template-columns: 29fr 25fr 24fr 22fr; align-items: center; gap: 0; }
.l1 { min-height: 150px; } .l2 { min-height: 134px; } .l3 { min-height: 118px; } .l4 { min-height: 102px; }
.link { position: relative; padding: 16px 18px 18px; border: 1px solid var(--line-d); border-right: 0; display: flex; flex-direction: column; gap: 6px; }
.link:last-child { border-right: 1px solid var(--line-d); }
.link::after { content: ""; position: absolute; right: -7px; top: 50%; width: 12px; height: 12px; border-top: 1px solid var(--on-d-2); border-right: 1px solid var(--on-d-2); background: var(--studio); transform: translateY(-50%) rotate(45deg); z-index: 1; }
.link:last-child::after { display: none; }
.lk { font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--on-d-2); }
.link b { font: 500 21px/1.15 var(--serif); }
.link em { font-style: normal; font-size: 13.5px; color: var(--on-d-2); }
.l1 { background: oklch(1 0 0 / .07); }
.l2 { background: oklch(0.36 0.13 266 / .4); }
.l3 { background: oklch(0.5 0.17 27 / .35); }
.l4 { background: oklch(0.5 0.17 27 / .6); }
.chain-cap { margin-top: 12px; font-size: 13px; color: var(--on-d-2); }

/* programme */
.days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.day { padding: 22px 26px 8px 0; }
.day + .day { padding-left: 26px; border-left: 1px solid var(--rule); }
.day-n { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--rec); }
.day h3 { margin-top: 10px; font-size: clamp(24px, 2.3vw, 30px); line-height: 1.1; min-height: 2.2em; }
.day ul { list-style: none; margin: 16px 0 0; padding: 0; }
.day li { padding: 11px 0; border-top: 1px solid var(--rule); font-size: 15.5px; line-height: 1.4; }
.day li.eve { position: relative; padding-left: 24px; color: var(--navy); font-weight: 500; }
.day li.eve::before { content: ""; position: absolute; left: 2px; top: 15px; width: 11px; height: 11px; border-radius: 50%; box-shadow: inset -3px -2px 0 0 var(--navy); transform: rotate(-20deg); }

/* why */
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.why article { padding: 20px 26px 22px 0; }
.why article + article { padding-left: 26px; border-left: 1px solid var(--rule); }
.why-k { display: flex; align-items: center; gap: 9px; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.why article p:not(.why-k) { margin-top: 12px; font: 400 20px/1.42 var(--serif); }
.covered { margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.covered div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 16px 20px 16px 0; }
.covered div + div { padding-left: 20px; border-left: 1px solid var(--rule); }
.covered dt { font: 500 11px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--rec); }
.covered dd { margin: 0; font-size: 15.5px; }

/* roles */
.roles { margin: 0; border-top: 1px solid var(--ink); }
.roles div { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.roles dt { font: 500 21px/1.2 var(--serif); }
.roles dd { margin: 0; color: var(--ink-2); font-size: 16px; }

/* outputs */
.outs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.outs li { padding: 18px 16px 6px 0; display: flex; flex-direction: column; gap: 6px; }
.outs li + li { padding-left: 16px; border-left: 1px solid var(--rule); }
.outs svg { width: 52px; height: 52px; margin-bottom: 6px; fill: none; stroke: var(--ink); stroke-width: 1.5; }
.outs svg .rd { fill: var(--rec); stroke: none; }
.outs li:nth-child(5) svg circle:last-child { stroke: var(--rec); }
.outs b { font: 500 20px/1.15 var(--serif); }
.outs span { font-size: 14px; line-height: 1.45; color: var(--ink-2); }

/* rules */
.rules { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--on-d-2); counter-reset: r; }
.rules li { counter-increment: r; display: grid; grid-template-columns: 1fr; padding: 16px 0 16px 46px; position: relative; border-bottom: 1px solid var(--line-d); font-size: 16.5px; color: oklch(0.86 0.02 272); }
.rules li::before { content: counter(r, lower-roman) "."; position: absolute; left: 0; top: 17px; font: italic 400 20px/1 var(--serif); color: var(--rec-l); }
.rules b { font: 500 22px/1.2 var(--serif); color: #fff; display: block; margin-bottom: 3px; }

/* venue */
.vfacts { margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); }
.vfacts div { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--rule); }
.vfacts div:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--rule); }
.vfacts dt { font: 500 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.vfacts dd { margin: 4px 0 0; font: 500 19px/1.2 var(--serif); }
.map { position: relative; aspect-ratio: 94 / 68; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
.map canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pin { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: flex; align-items: center; gap: 8px; }
.pin i { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 0 3px var(--paper); }
.pin i::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--rec); animation: ping 2.2s ease-out infinite; }
@keyframes ping { from { transform: scale(1); opacity: .9; } to { transform: scale(4); opacity: 0; } }
.pin span { position: absolute; left: 20px; bottom: 6px; font: 500 22px/1 var(--serif); white-space: nowrap; background: var(--paper); padding: 4px 9px 5px; border: 1px solid var(--ink); border-radius: 2px; }
.map-src { position: absolute; left: 12px; bottom: 10px; font: 400 10.5px var(--mono); color: var(--ink-2); }

/* bali photos */
.sec-bali { border-top: 0; padding-top: 0; }
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px 18px; border-top: 1px solid var(--ink); padding-top: 18px; }
.ph { margin: 0; min-width: 0; }
.ph-big { grid-column: 1 / 9; grid-row: 1 / 3; display: flex; flex-direction: column; }
.ph-big .ph-open { flex: 1; min-height: 320px; }
.ph-side { grid-column: 9 / 13; }
.ph-sm { grid-column: span 3; }
.ph-open { display: block; width: 100%; padding: 0; border: 0; background: var(--paper-2); cursor: zoom-in; overflow: hidden; border-radius: 2px; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter .6s ease; filter: saturate(.92); }
.ph-open:hover img { transform: scale(1.04); filter: saturate(1.05); }
.ph-side .ph-open { aspect-ratio: 16 / 10; }
.ph-sm .ph-open { aspect-ratio: 4 / 5; }
.ph figcaption { margin-top: 10px; display: flex; flex-direction: column; gap: 3px; font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.ph figcaption b { font: 500 19px/1.2 var(--serif); color: var(--ink); }
.ph-big figcaption b { font-size: 24px; }
.cr { margin-top: 3px; font: 400 10.5px/1.3 var(--mono); color: var(--ink-2); text-decoration: none; opacity: .8; }
.cr:hover { text-decoration: underline; opacity: 1; }
.ph.rv-ph .ph-open { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s cubic-bezier(.65,0,.25,1); }
.ph.rv-ph.in .ph-open { clip-path: inset(0 0 0 0); }
.lb { max-width: min(1200px, 94vw); max-height: 94vh; padding: 0; border: 0; background: transparent; color: var(--on-d); overflow: visible; }
.lb::backdrop { background: oklch(0.12 0.03 272 / .92); }
.lb img { display: block; max-width: 100%; max-height: 84vh; margin: 0 auto; border-radius: 2px; }
.lb-c { margin-top: 12px; font-size: 14px; color: var(--on-d-2); text-align: center; }
.lb-c b { font: 500 19px var(--serif); color: var(--on-d); margin-right: 8px; }
.lb-x { position: absolute; top: -44px; right: 0; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-d); background: transparent; color: var(--on-d); font-size: 22px; line-height: 1; cursor: pointer; }

/* interest */
.int-head { max-width: 760px; }
.int-head h2 { margin-top: 14px; font-size: clamp(32px, 4vw, 54px); line-height: 1.05; }
.doors { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--on-d-2); }
.door { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px 26px 0; text-decoration: none; transition: background-color .25s; }
.door + .door { padding-left: 24px; border-left: 1px solid var(--line-d); }
.door:hover { background: oklch(1 0 0 / .03); }
.door-k { display: inline-flex; align-items: center; gap: 8px; font: 500 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--on-d-2); }
.door-k .k-e { background: var(--navy-l); }
.door-k .k-k { background: var(--kas-l); }
.int-sub { margin-top: 16px; max-width: 40em; font-size: 17px; color: oklch(0.86 0.02 272); }
.fine a { color: var(--rec-l); }
.door b { font: 500 22px/1.25 var(--serif); }
.door-a { margin-top: auto; font-weight: 600; font-size: 14.5px; color: var(--rec-l); }
.door-a::after { content: " →"; transition: margin .2s; }
.door:hover .door-a::after { margin-left: 4px; }
.fine-d { margin-top: 28px; }

/* footer */
.foot { background: oklch(0.13 0.03 272); color: var(--on-d); padding: 56px 0 26px; }
.foot .lab { color: var(--on-d-2); margin-bottom: 10px; }
.foot-in { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 40px; font-size: 14.5px; color: oklch(0.85 0.02 272); }
.foot-in p + p { margin-top: 8px; }
.foot img { height: 44px; width: auto; }
.tag { margin-top: 14px; max-width: 22em; }
.foot-b { margin-top: 44px; padding-top: 16px; border-top: 1px solid var(--line-d); display: flex; justify-content: space-between; font: 400 12px var(--mono); color: var(--on-d-2); }

/* reveal */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s ease; }
.rv.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1100px) {
  .nav { display: none; }
  .top .btn-sm { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .cut { max-width: 720px; }
  .ways, .outs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ways li:nth-child(4), .outs li:nth-child(4) { padding-left: 0; border-left: 0; }
}
@media (max-width: 860px) {
  .sec-grid { grid-template-columns: 1fr; }
  .sec-h { position: static; }
  .sec-note-r { justify-self: start; }
  .days, .doors, .why, .covered { grid-template-columns: 1fr; }
  .ph-big { grid-column: 1 / -1; grid-row: auto; }
  .ph-big .ph-open { aspect-ratio: 3 / 2; flex: none; min-height: 0; }
  .ph-side, .ph-sm { grid-column: span 6; }
  .why article + article, .covered div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .day + .day, .door + .door { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .door + .door { border-top-color: var(--line-d); }
  .hair { columns: 1; }
  .dd { padding-left: 0; padding-right: 0; }
  .ledger summary { grid-template-columns: 1fr 20px; gap: 6px 12px; }
  .tg { grid-column: 1 / -1; }
  .roles div { grid-template-columns: 1fr; gap: 4px; }
  .foot-in { grid-template-columns: 1fr; gap: 28px; }
  .chain { grid-template-columns: 1fr 1fr; }
  .link:nth-child(2) { border-right: 1px solid var(--line-d); }
  .link:nth-child(2)::after { display: none; }
  .link:nth-child(n+3) { border-top: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand-x { display: none; }
  .hero { padding-top: 92px; }
  .cut-stage { grid-template-columns: 1fr; gap: 20px; }
  .doc { font-size: 14px; padding: 16px 16px 14px; }
  .flyer { font-size: 14px; }
  .frame { width: min(250px, 72vw); justify-self: center; aspect-ratio: auto; min-height: 400px; }
  .isnot { grid-template-columns: 1fr; }
  .isnot > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .ways, .outs { grid-template-columns: 1fr 1fr; }
  .ways li, .outs li { padding-left: 0 !important; border-left: 0 !important; padding-right: 12px; }
  .ways li:nth-child(n+3), .outs li:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .who thead { display: none; }
  .who tr { display: grid; grid-template-columns: 64px 1fr; border-top: 1px solid var(--rule); padding: 12px 0; }
  .who th, .who td { border: 0; padding: 0; }
  .who tbody th { width: auto; }
  .who td:last-child { grid-column: 2; margin-top: 4px; }
  .who .n { grid-row: span 2; font-size: 20px; }
  .seat-mid { margin-left: 0; }
  .track { grid-template-columns: 50fr 34fr 16fr; height: 64px; }
  .seg { font-size: 9.5px; padding: 6px; }
  .crit { grid-template-columns: 1fr; }
  .crit li + li { padding-left: 0; border-left: 0; }
  .desk { grid-template-columns: 1fr; }
  .scn-list { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line-d); scrollbar-width: none; }
  .scn { flex: none; border-bottom: 0; border-right: 1px solid var(--line-d); }
  .scn.is-on { box-shadow: inset 0 -3px 0 var(--rec); }
  .sides { grid-template-columns: 1fr; }
  .chain { grid-template-columns: 1fr; }
  .link { border-right: 1px solid var(--line-d) !important; border-top: 0; }
  .link:first-child { border-top: 1px solid var(--line-d); }
  .link::after { display: block !important; right: auto; left: 22px; top: auto; bottom: -7px; transform: rotate(135deg); }
  .link:last-child::after { display: none !important; }
  .pin span { font-size: 18px; }
  .mosaic { gap: 22px 12px; }
  .ph figcaption span { display: none; }
  .ph figcaption b { font-size: 17px; }
  .foot-b { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; }
}
