/* Build for the Browser: the event site. The film's world, carried through the page. */
@font-face { font-family: "EB Garamond"; src: url("../assets/site/fonts/eb-garamond.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../assets/site/fonts/eb-garamond-italic.woff2") format("woff2"); font-weight: 400 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("../assets/site/fonts/libre-franklin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --ink: #0e0b22; --ink2: #171233; --ink3: #221b49; --violet: #3a2f78;
  --cream: #f5eee0; --text: #dcd6e6; --muted: #b2aac5;
  --g1: #f7e3b0; --g2: #d9a85a; --g3: #9b6a2c;
  --line: rgba(247, 227, 176, .17); --line2: rgba(247, 227, 176, .34);
  --ruby: #e0566a; --topaz: #f2cf68; --emerald: #4fc593;
  --gut: clamp(20px, 5vw, 64px); --sec: clamp(96px, 13vw, 190px);
  --serif: "EB Garamond", Garamond, Georgia, "Times New Roman", serif; --sans: "Libre Franklin", "Helvetica Neue", Helvetica, Arial, sans-serif; --gold: #ecd3a0;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; color: var(--text); font: 400 clamp(20px, .28vw + 18.5px, 23px)/1.42 var(--serif); font-kerning: normal; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--g1); text-decoration-color: rgba(247, 227, 176, .4); text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
a:hover { color: #fff6df; text-decoration-color: currentColor; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--g1); outline-offset: 3px; border-radius: 3px; }
::selection { background: rgba(217, 168, 90, .4); color: #fff; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--g1); color: var(--ink); font-weight: 600; border-radius: 4px; transition: top .2s; }
.skip:focus { top: 12px; }
.wrap { width: min(1240px, 100% - 2 * var(--gut)); margin-inline: auto; }

.gilt { color: var(--gold); }
.eyebrow { font: italic 400 clamp(19px, 1.5vw, 24px)/1.3 var(--serif); color: var(--g1); }

/* ------------------------------------------------------------ sky */
.sky, .sky i, #stars, #twinkle { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sky { z-index: -4; } .sky i { display: block; }
.s-night { background: radial-gradient(120% 90% at 50% 0%, #2a2260 0%, #17123a 42%, var(--ink) 100%); }
.s-dusk { opacity: 0; background: radial-gradient(130% 90% at 50% 100%, #4a2f6d 0%, #2a1f55 40%, #120e2c 100%); will-change: opacity; }
.s-dawn { opacity: 0; background: radial-gradient(130% 80% at 50% 108%, #a8664f 0%, #6a3d62 30%, #33245a 62%, #151033 100%); will-change: opacity; }
#stars { z-index: -3; height: 120%; will-change: transform; }
#twinkle { z-index: -3; animation: tw 5s ease-in-out infinite alternate; }
@keyframes tw { from { opacity: .15; } to { opacity: 1; } }

/* ------------------------------------------------------------ buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 52px; padding: 0 30px; overflow: hidden; border-radius: 3px; font: 600 15px/1 var(--sans); text-decoration: none; white-space: nowrap; transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s, color .25s; }
.btn svg { width: 14px; height: 14px; fill: currentColor; }
svg.arw, .btn svg.arw { display: inline-block; flex: none; width: .72em; height: .72em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.02em; }
.btn-gold { color: #1b1433; background: linear-gradient(180deg, #fbeec9 0%, var(--g1) 30%, var(--g2) 100%); box-shadow: 0 1px 0 rgba(255, 255, 255, .55) inset, 0 8px 30px rgba(217, 168, 90, .24); }
.btn-gold::after { content: ""; position: absolute; inset: 0 auto 0 -60%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), transparent); transform: skewX(-18deg); transition: left .7s var(--ease); }
.btn-gold:hover { color: #1b1433; transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 14px 40px rgba(217, 168, 90, .38); }
.btn-gold:hover::after { left: 120%; }
.btn-line { color: var(--g1); border: 1px solid var(--line2); background: rgba(20, 15, 44, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-line:hover { color: #fff6df; border-color: var(--g1); background: rgba(247, 227, 176, .09); transform: translateY(-2px); }
.btn-sm { min-height: 38px; padding: 0 18px; font-size: 14px; }
.btn-lg { min-height: 60px; padding: 0 40px; font-size: 17px; }
.btn-quiet { display: inline-flex; align-items: center; gap: 8px; padding: 8px 4px; font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s; }
.btn-quiet:hover { color: var(--g1); }
.btn-quiet svg { width: 16px; height: 16px; fill: currentColor; }

/* ------------------------------------------------------------ intro */
#intro { display: none; position: fixed; inset: 0; z-index: 60; background: #0a0818; }
html.has-intro, html.has-intro body { overflow: hidden; }
html.has-intro #intro { display: block; }
#intro.leaving { opacity: 0; transition: opacity 1.1s ease; pointer-events: none; }
#film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; visibility: hidden; background: #0a0818; }
#film.fill { object-fit: cover; }
#intro.playing #film { visibility: visible; }
.gate { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; background: radial-gradient(110% 85% at 50% 42%, #2c2360 0%, #15102f 55%, #0a0818 100%); transition: opacity .8s ease, visibility .8s; }
#intro.playing .gate { opacity: 0; visibility: hidden; }
.gate-title { margin: .2em 0 .22em; font: 500 clamp(48px, 8vw, 128px)/1 var(--serif); letter-spacing: -.022em; }
.gate-sub { font-size: clamp(20px, 1.6vw, 24px); font-style: italic; color: var(--muted); }
.gate-line { width: min(320px, 70vw); height: 1px; margin: 34px 0 30px; overflow: hidden; background: rgba(247, 227, 176, .18); }
.gate-line i { display: block; height: 100%; background: linear-gradient(90deg, var(--g3), var(--g1)); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.gate .btn-quiet { margin-top: 14px; }
.film-ui { position: absolute; inset: auto 0 0; padding: 0 clamp(16px, 3vw, 36px) max(18px, env(safe-area-inset-bottom)); background: linear-gradient(0deg, rgba(10, 8, 24, .72), transparent); opacity: 0; pointer-events: none; transition: opacity .5s; }
#intro.playing .film-ui { pointer-events: auto; opacity: .92; }
#intro.playing.idle .film-ui { opacity: .3; }
#intro.playing.idle { cursor: none; }
.film-progress { height: 2px; margin-bottom: 12px; background: rgba(247, 227, 176, .2); }
.film-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--g3), var(--g1)); transform: scaleX(0); transform-origin: left; }
.film-btns { display: flex; align-items: center; gap: 6px; }
.film-btns button { display: inline-grid; place-items: center; min-width: 44px; height: 44px; color: var(--g1); border-radius: 4px; transition: background .2s; }
.film-btns button:hover { background: rgba(247, 227, 176, .12); }
.film-btns svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i-play, .i-x { display: none; }
.paused .i-play { display: inline; fill: currentColor; } .paused .i-pause { display: none; }
.muted .i-x { display: inline; } .muted .i-wave { display: none; }
.i-spk { fill: currentColor; }
.film-btns .skip-film { display: inline-flex; gap: 8px; align-items: center; margin-left: auto; padding: 0 16px; border: 1px solid var(--line2); font: 500 14px/1 var(--sans); }

/* ------------------------------------------------------------ masthead */
.masthead { position: fixed; z-index: 40; inset: 0 0 auto; display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); height: calc(78px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) var(--gut) 0; border-bottom: 1px solid transparent; transition: transform .35s var(--ease), background-color .3s, border-color .3s, height .3s var(--ease), opacity .6s; }
.masthead.solid, .masthead.menu-open { height: calc(62px + env(safe-area-inset-top)); background: var(--ink); border-bottom-color: rgba(245, 238, 224, .14); }
.masthead.away { transform: translateY(-105%); }
.masthead:has(:focus-visible) { transform: none; }
.has-intro .masthead { opacity: 0; pointer-events: none; }
.mh-mark { margin-right: auto; color: var(--cream); font: 500 clamp(22px, 1.65vw, 26px)/1 var(--serif); letter-spacing: -.012em; text-decoration: none; white-space: nowrap; }
.mh-mark:hover { color: var(--gold); }
.mh-mark i { font-weight: 400; }
.tabs { display: flex; gap: clamp(16px, 2.1vw, 32px); }
.tab { position: relative; padding: 7px 0; color: rgba(245, 238, 224, .8); font: 500 14px/1 var(--sans); text-decoration: none; white-space: nowrap; transition: color .2s; }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.tab:hover, .tab.on { color: var(--cream); }
.tab:hover::after, .tab.on::after { transform: scaleX(1); }
.mh-reg { flex: none; display: inline-flex; align-items: center; height: 36px; padding: 0 17px; color: #17122e; background: var(--gold); font: 600 14px/1 var(--sans); text-decoration: none; transition: background-color .2s; }
.mh-reg:hover { color: #17122e; background: #f8ebcd; }
.menu-btn { display: none; flex: none; padding: 10px 0; color: var(--cream); font: 500 14px/1 var(--sans); }

/* ------------------------------------------------------------ hero + the touch */
.scene { position: relative; height: 320vh; height: 320svh; }
.pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hands { position: absolute; inset: 0; pointer-events: none; }
.hand { position: absolute; left: 50%; top: 0; max-width: none; height: auto; will-change: transform; }
.hand-l { width: clamp(520px, 61vw, 1600px); transform: translate3d(calc(-98.5% - 31.5vw), calc(-46.4% + 67vh), 0); }
.hand-r { width: calc(clamp(520px, 61vw, 1600px) * .9429); transform: translate3d(calc(-.61% + 31.5vw), calc(-64.66% + 67vh), 0); }
.spark { position: absolute; left: 50%; top: 50%; width: 0; height: 0; opacity: 0; will-change: opacity, transform; }
.spark i { position: absolute; display: block; left: 0; top: 0; transform: translate(-50%, -50%); }
.spark .glow { width: 56vmin; height: 56vmin; border-radius: 50%; background: radial-gradient(circle, rgba(255, 244, 214, .95) 0%, rgba(247, 210, 140, .45) 12%, rgba(217, 168, 90, .14) 34%, transparent 66%); mix-blend-mode: screen; }
.spark .ray { width: 26vmin; height: 1.5px; background: linear-gradient(90deg, transparent, rgba(255, 243, 208, .85) 50%, transparent); }
.spark .r2 { width: 1.5px; height: 40vmin; background: linear-gradient(180deg, transparent, #fff3d0 50%, transparent); }
.spark .ring { width: 16vmin; height: 16vmin; border: 1.5px solid rgba(247, 227, 176, .9); border-radius: 50%; opacity: 0; }
.spark.lit .ring { animation: ring 1.5s var(--ease) both; }
@keyframes ring { from { opacity: .95; transform: translate(-50%, -50%) scale(.2); } to { opacity: 0; transform: translate(-50%, -50%) scale(6); } }
#embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-copy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 88px var(--gut) 56px; text-align: center; will-change: opacity, transform; }
.hero-copy h1 { margin: .14em 0 .2em; font: 500 clamp(58px, min(9vw, 16.5vh), 156px)/.94 var(--serif); letter-spacing: -.024em; filter: drop-shadow(0 2px 26px rgba(10, 6, 30, .6)); }
.hero-copy h1 span { display: block; font-style: italic; font-weight: 400; white-space: nowrap; }
.hero-sub { color: var(--cream); font-size: clamp(21px, 1.75vw, 27px); text-shadow: 0 1px 16px rgba(10, 6, 30, .8); }
.facts { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 16px; color: var(--g1); font-family: var(--sans); font-size: clamp(13.5px, 1vw, 15px); font-weight: 500; text-shadow: 0 1px 12px rgba(10, 6, 30, .8); }
.facts li { padding: 0 14px; } .facts li + li { border-left: 1px solid var(--line2); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: clamp(22px, 3.2vh, 36px); }
.count { display: flex; gap: clamp(18px, 2.6vw, 38px); margin-top: clamp(22px, 3.6vh, 40px); }
.count div { min-width: 54px; }
.count b { display: block; color: var(--cream); font: 400 clamp(33px, 3.1vw, 46px)/1 var(--serif); font-variant-numeric: tabular-nums; }
.count span { display: block; margin-top: 3px; color: var(--muted); font: italic 400 17px/1.2 var(--serif); }
.count-done { margin-top: 26px; color: var(--g1); font: italic 400 clamp(24px, 2vw, 30px)/1.2 var(--serif); }
html.js.arrive-wait .hero-copy > * { opacity: 0; }
.arrive .hero-copy > * { animation: rise 1.15s var(--ease) both; }
.arrive .hero-copy > :nth-child(2) { animation-delay: .09s; } .arrive .hero-copy > :nth-child(3) { animation-delay: .2s; } .arrive .hero-copy > :nth-child(4) { animation-delay: .28s; } .arrive .hero-copy > :nth-child(5) { animation-delay: .38s; } .arrive .hero-copy > :nth-child(6), .arrive .hero-copy > :nth-child(7) { animation-delay: .48s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.touch-copy { pointer-events: none; position: absolute; left: 0; right: 0; bottom: clamp(52px, 13vh, 130px); padding: 0 var(--gut); text-align: center; opacity: 0; will-change: opacity, transform; }
.touch-copy p { color: var(--cream); font-size: clamp(23px, 2vw, 31px); font-style: italic; }
.touch-copy h2 { text-wrap: balance; margin-top: .06em; font: 500 clamp(50px, 7.4vw, 124px)/1 var(--serif); letter-spacing: -.024em; }
.cue { position: absolute; left: 50%; bottom: 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; transform: translateX(-50%); color: var(--muted); font: italic 400 17px/1 var(--serif); text-decoration: none; }
.cue i { display: block; width: 1px; height: 26px; background: linear-gradient(180deg, var(--g1), transparent); transform-origin: top; animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ------------------------------------------------------------ sections */
.sec { position: relative; padding-block: var(--sec); }
.sec h2 { color: var(--cream); font: 500 clamp(42px, 5.5vw, 86px)/1.01 var(--serif); letter-spacing: -.022em; text-wrap: balance; }
.sec h2.wide { max-width: 25ch; }
.num { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; color: var(--g1); font: italic 400 clamp(21px, 1.6vw, 24px)/1 var(--serif); }
.num span { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 6px; color: var(--g1); font: 500 17px/1 var(--serif); border: 1px solid var(--line2); border-radius: 19px 19px 2px 2px; }
.lead { max-width: 58ch; margin-top: 22px; color: var(--text); font-size: clamp(22px, 1.75vw, 27px); line-height: 1.34; }
.note { margin-top: 28px; color: var(--muted); font-family: var(--sans); font-size: 14px; line-height: 1.5; }
.rn { display: block; margin-bottom: 14px; color: var(--g2); font: italic 400 21px/1 var(--serif); }
html.js .r { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
html.js .r.in { opacity: 1; transform: none; }

/* idea */
.idea-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: clamp(40px, 7vw, 110px); }
.stat { display: flex; align-items: center; gap: 24px; margin-top: 38px; padding-top: 28px; border-top: 1px solid var(--line); }
.stat b { flex: none; font: 500 clamp(58px, 6.2vw, 94px)/.95 var(--serif); letter-spacing: -.025em; }
.stat p { max-width: 34ch; font-size: 21px; line-height: 1.28; }
.stat small { display: block; margin-top: 7px; color: var(--muted); font-family: var(--sans); font-size: 12.5px; line-height: 1.4; }
.arch { position: relative; aspect-ratio: 4 / 5.3; padding: 0; border-radius: 999px 999px 4px 4px; }
.arch::after { content: ""; position: absolute; inset: -11px; border: 1px solid var(--line2); border-radius: 999px 999px 6px 6px; pointer-events: none; }
.arch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; box-shadow: 0 40px 90px rgba(5, 3, 20, .55); }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(64px, 8vw, 110px); border-top: 1px solid var(--line); }
.pillars article { padding: 32px clamp(20px, 3vw, 44px) 0 0; }
.pillars article + article { padding-left: clamp(20px, 3vw, 44px); border-left: 1px solid var(--line); }
.pillars h3, .moves h3 { margin-bottom: 8px; color: var(--cream); font: 500 clamp(30px, 2.5vw, 38px)/1.08 var(--serif); letter-spacing: -.012em; }
.pillars p, .moves p { font-size: 21px; line-height: 1.32; }

/* challenge */
.sec-pano { padding-top: 0; }
.pano { position: relative; height: clamp(280px, 52vw, 640px); margin-bottom: clamp(-150px, -9vw, -50px); overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 26%, #000 58%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 26%, #000 58%, transparent 100%); }
.pano img { position: absolute; inset: -6% 0; width: 100%; height: 112%; max-width: none; object-fit: cover; opacity: .82; }
.sec-pano .wrap { position: relative; }
.ch-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(18px, 2vw, 28px); margin-top: clamp(38px, 5vw, 60px); }
.plaque { display: flex; flex-direction: column; padding: clamp(28px, 3.6vw, 52px); border: 1px solid transparent; border-radius: 5px; background: linear-gradient(160deg, rgba(50, 39, 104, .82), rgba(23, 18, 54, .9)) padding-box, linear-gradient(150deg, var(--g1), var(--g3) 45%, var(--g2) 75%, var(--g1)) border-box; box-shadow: 0 30px 70px rgba(5, 3, 20, .4); }
.plaque-k, .ideas-k { color: var(--g1); font: italic 400 22px/1.2 var(--serif); }
.plaque h3 { margin: 10px 0 14px; font: 500 clamp(35px, 3.8vw, 58px)/1.02 var(--serif); letter-spacing: -.018em; }
.plaque > p:not(.plaque-k) { max-width: 46ch; }
.plaque-links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: auto; padding-top: 28px; font-family: var(--sans); font-size: 14px; font-weight: 500; }
.ideas { display: flex; flex-direction: column; padding: clamp(28px, 3.6vw, 52px); background: rgba(23, 18, 54, .6); border: 1px solid var(--line); border-radius: 5px; }
.ideas-text { flex: 1; min-height: 5.2em; margin: 16px 0 18px; color: var(--cream); font-size: clamp(28px, 2.4vw, 36px); line-height: 1.14; letter-spacing: -.01em; transition: opacity .25s, transform .25s; }
.ideas-text.swap { opacity: 0; transform: translateY(6px); }
.ideas .btn-quiet { align-self: flex-start; color: var(--g1); }

/* playground */
.browser { --bg: #fbf7ee; --fg: #2b2438; --soft: #6b6275; --rule: #e6dcc9; margin-top: clamp(38px, 5vw, 60px); overflow: hidden; background: #1b1638; border: 1px solid var(--line2); border-radius: 12px; box-shadow: 0 50px 110px rgba(5, 3, 20, .6); }
.b-bar { display: flex; align-items: center; gap: 14px; height: 48px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.b-dots { display: inline-flex; gap: 6px; flex: none; } .b-dots i { width: 10px; height: 10px; box-shadow: none; }
.b-url { flex: 1; min-width: 0; height: 28px; padding: 0 13px; overflow: hidden; color: var(--muted); font: 12px/28px var(--mono); white-space: nowrap; text-overflow: ellipsis; background: rgba(8, 6, 22, .55); border-radius: 14px; }
.b-exts { display: inline-flex; gap: 7px; flex: none; }
.b-exts i { display: block; width: 18px; height: 18px; background: rgba(247, 227, 176, .14); border-radius: 4px; transition: background .3s, box-shadow .3s; }
.b-exts i.on { background: var(--g1); box-shadow: 0 0 12px rgba(247, 227, 176, .7); }
.b-body { position: relative; height: clamp(440px, 34vw, 500px); overflow: hidden; color: var(--fg); background: var(--bg); font-family: var(--sans); font-size: 16px; line-height: 1.55; transition: background .5s, color .5s; }
.browser[data-night="1"] { --bg: #16132a; --fg: #e9e3f2; --soft: #a9a1bb; --rule: #332c52; }
.b-cookie { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 18px; color: #fff; font-size: 13px; line-height: 1.35; background: #7a3347; transition: margin-top .5s var(--ease), opacity .4s; }
.b-cookie span { flex: none; padding: 3px 11px; color: #7a3347; font-weight: 600; background: #fff; border-radius: 3px; }
.browser[data-focus="1"] .b-cookie { margin-top: -60px; opacity: 0; }
.b-layout { display: flex; height: 100%; }
.b-article { flex: 1; min-width: 0; padding: clamp(22px, 3.2vw, 44px) clamp(20px, 4vw, 58px); transition: padding .5s var(--ease); }
.browser[data-focus="1"] .b-article { padding-inline: clamp(20px, 11vw, 150px); }
.b-kicker { color: #9b6a2c; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.browser[data-night="1"] .b-kicker { color: var(--g2); }
.b-article h3 { margin: 7px 0 15px; color: var(--fg); font: 500 clamp(30px, 3.1vw, 44px)/1.05 var(--serif); letter-spacing: -.015em; transition: color .5s; }
.b-article > p:not(.b-kicker) { max-width: 66ch; margin-bottom: 12px; font-size: clamp(14.500px, 1.15vw, 16.500px); line-height: 1.62; transition: opacity .22s; }
.b-article.fading > p, .b-article.fading h3 { opacity: 0; }
.b-promo { margin-bottom: 14px; padding: 9px 13px; overflow: hidden; color: #7c5a12; font-size: 13px; background: #fbe9a9; border: 1px dashed #c9a02d; transition: max-height .45s var(--ease), padding .45s, margin .45s, opacity .3s; max-height: 80px; }
.browser[data-focus="1"] .b-promo { max-height: 0; margin: 0; padding-block: 0; border-width: 0; opacity: 0; }
.b-side { flex: none; display: flex; flex-direction: column; gap: 10px; width: 210px; padding: 18px 16px 18px 0; transition: width .5s var(--ease), padding .5s, opacity .3s; overflow: hidden; }
.b-side div { flex: 1; display: grid; place-items: center; padding: 8px; color: #8d6272; font-size: 12px; text-align: center; background: #f5dfe2; border: 1px dashed #d8a9b3; border-radius: 3px; min-width: 190px; }
.browser[data-night="1"] .b-side div { color: #d9b4c0; background: #33223a; border-color: #5a3c55; }
.browser[data-focus="1"] .b-side { width: 0; padding-inline: 0; opacity: 0; }
.b-sum { position: absolute; top: 0; right: 0; bottom: 0; width: min(330px, 86%); padding: 26px 24px; overflow: auto; color: var(--cream); background: linear-gradient(170deg, #2b2360, #17123a); border-left: 1px solid var(--line2); box-shadow: -18px 0 50px rgba(10, 6, 30, .35); transform: translateX(105%); visibility: hidden; transition: transform .55s var(--ease), visibility .55s; }
.browser[data-sum="1"] .b-sum { transform: none; visibility: visible; }
.b-sum-k { margin-bottom: 14px; color: var(--g1); font: italic 400 22px/1 var(--serif); }
.b-sum li { position: relative; margin-bottom: 13px; padding-left: 17px; font-size: 14.500px; line-height: 1.5; }
.b-sum li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; background: var(--g2); transform: rotate(45deg); }
.exts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); margin-top: 18px; }
.ext { position: relative; display: block; padding: 17px 62px 17px 19px; text-align: left; background: rgba(23, 18, 54, .68); border: 1px solid var(--line); border-radius: 6px; transition: border-color .25s, background .25s, transform .25s; }
.ext:hover { border-color: var(--line2); transform: translateY(-2px); }
.ext b { display: block; color: var(--cream); font-family: var(--sans); font-size: 15px; font-weight: 600; line-height: 1.35; }
.ext span { display: block; margin-top: 2px; color: var(--muted); font-family: var(--sans); font-size: 13px; line-height: 1.35; }
.ext i { position: absolute; right: 16px; top: 50%; width: 34px; height: 20px; background: rgba(247, 227, 176, .14); border-radius: 10px; transform: translateY(-50%); transition: background .25s; }
.ext i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; background: var(--muted); border-radius: 50%; transition: transform .25s var(--ease), background .25s; }
.ext[aria-pressed="true"] { background: rgba(58, 47, 120, .72); border-color: var(--g2); }
.ext[aria-pressed="true"] i { background: var(--g2); }
.ext[aria-pressed="true"] i::after { background: #fff8e6; transform: translateX(14px); }

/* first build */
.build-grid { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); align-items: start; gap: clamp(32px, 5vw, 76px); margin-top: clamp(38px, 5vw, 60px); }
.code { overflow: hidden; background: #120e2a; border: 1px solid var(--line2); border-radius: 10px; box-shadow: 0 34px 80px rgba(5, 3, 20, .5); }
.code-tabs { display: flex; align-items: stretch; overflow-x: auto; background: #1b1638; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.code-tabs::-webkit-scrollbar { display: none; }
.code-tabs [role="tab"] { flex: none; padding: 13px 17px; color: var(--muted); font: 13px/1 var(--mono); border-bottom: 2px solid transparent; transition: color .2s, background .2s; }
.code-tabs [role="tab"]:hover { color: var(--cream); }
.code-tabs [role="tab"][aria-selected="true"] { color: var(--g1); background: #120e2a; border-bottom-color: var(--g2); }
.copy { flex: none; align-self: center; margin: 0 9px 0 auto; padding: 6px 13px; color: var(--g1); font-family: var(--sans); font-size: 12.5px; font-weight: 500; border: 1px solid var(--line2); border-radius: 4px; transition: background .2s; }
.copy:hover { background: rgba(247, 227, 176, .1); }
.code pre { height: 466px; margin: 0; padding: 22px 24px; overflow: auto; color: #ddd6ea; font: 13.500px/1.72 var(--mono); tab-size: 2; scrollbar-color: var(--violet) transparent; }
.code pre[hidden] { display: none; }
.t-k { color: #c9a7ff; } .t-s { color: #f2d492; } .t-n { color: #ffb58a; } .t-c { color: #8a819f; font-style: italic; } .t-f { color: #8fd8c4; } .t-t { color: #f09aae; } .t-a { color: #b8c9ff; }
.steps ol { counter-reset: s; }
.steps li { position: relative; counter-increment: s; padding: 0 0 30px 62px; }
.steps li::before { content: counter(s, upper-roman); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 42px; height: 42px; color: var(--g1); font: 500 18px/1 var(--serif); border: 1px solid var(--line2); border-radius: 21px 21px 2px 2px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 20.500px; top: 50px; bottom: 8px; width: 1px; background: var(--line); }
.steps b { display: block; color: var(--cream); font-size: clamp(25px, 2vw, 30px); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; }
.steps span { display: block; margin-top: 5px; font-size: 20px; line-height: 1.3; }
.steps em { color: var(--g1); font-style: italic; }
.steps-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

/* the day */
.constellation { position: relative; height: clamp(120px, 16vw, 210px); margin-top: clamp(26px, 3vw, 40px); }
.constellation svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.c-line { fill: none; stroke: var(--g1); stroke-width: 1.2; vector-effect: non-scaling-stroke; opacity: .75; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s ease .2s; }
.constellation.in .c-line { stroke-dashoffset: 0; }
html:not(.js) .c-line { stroke-dashoffset: 0; }
.constellation i { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; background: #fff7e2; border-radius: 50%; box-shadow: 0 0 10px 3px rgba(255, 233, 180, .85), 0 0 34px 9px rgba(217, 168, 90, .4); }
.moves { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.6vw, 36px); margin-top: 18px; text-align: center; }
.moves .rn { margin-bottom: 10px; }
.day-note { text-align: center; }
#day > .wrap > .note { text-align: center; }
.ready { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(24px, 4vw, 64px); margin-top: clamp(56px, 7vw, 92px); padding: clamp(26px, 3.6vw, 50px); background: rgba(23, 18, 54, .62); border: 1px solid var(--line); border-radius: 8px; }
.ready h3 { color: var(--cream); font: 500 clamp(33px, 3vw, 46px)/1.04 var(--serif); letter-spacing: -.016em; }
.ready-h p { margin-top: 14px; color: var(--g1); font-family: var(--sans); font-size: 14px; font-weight: 500; }
.ready-bar { height: 3px; margin-top: 8px; overflow: hidden; background: rgba(247, 227, 176, .15); }
.ready-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--g3), var(--g1)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 28px; }
.checks label { display: flex; align-items: center; gap: 13px; min-height: 46px; cursor: pointer; font-size: 20px; line-height: 1.22; }
.checks input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.checks i { position: relative; flex: none; width: 22px; height: 22px; border: 1px solid var(--line2); border-radius: 3px; transition: background .2s, border-color .2s; }
.checks i::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #1b1433; border-width: 0 2px 2px 0; opacity: 0; transform: rotate(45deg) scale(.6); transition: opacity .15s, transform .2s var(--ease); }
.checks input:checked + i { background: var(--g1); border-color: var(--g1); }
.checks input:checked + i::after { opacity: 1; transform: rotate(45deg) scale(1); }
.checks input:focus-visible + i { outline: 2px solid var(--g1); outline-offset: 3px; }
.checks input:checked ~ span { color: var(--muted); }

/* faq */
.faq-grid { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); align-items: start; gap: clamp(28px, 6vw, 96px); }
.faq-head { position: sticky; top: 112px; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { position: relative; display: block; padding: 22px 46px 22px 0; color: var(--cream); font-size: clamp(24px, 2vw, 30px); font-weight: 500; line-height: 1.14; letter-spacing: -.008em; list-style: none; cursor: pointer; transition: color .2s; }
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--g1); }
summary::before, summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 15px; height: 1.5px; background: var(--g1); transition: transform .3s var(--ease); }
summary::after { transform: rotate(90deg); }
details[open] summary::after { transform: rotate(0); }
details p { max-width: 62ch; padding: 0 46px 24px 0; }

/* the gate */
.final { position: relative; display: grid; place-items: end center; min-height: min(112vh, 1040px); padding: clamp(88px, 10vw, 130px) var(--gut) clamp(72px, 14vh, 170px); overflow: hidden; text-align: center; }
.portal { position: absolute; left: 50%; bottom: -1px; width: min(780px, 88vw); height: 88%; overflow: hidden; border-radius: 999px 999px 0 0; box-shadow: 0 0 0 1px var(--line2), 0 0 0 12px rgba(20, 15, 44, .24), 0 0 0 13px var(--line), 0 0 130px rgba(242, 190, 130, .34); transform: translateX(-50%); }
html.js .portal.r { transform: translate(-50%, 26px); } html.js .portal.r.in { transform: translateX(-50%); }
.portal img { width: 100%; height: 100%; object-fit: cover; }
.portal::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 14, 44, .3), rgba(20, 14, 44, .62)); }
.final-copy { position: relative; display: flex; flex-direction: column; align-items: center; }
.final h2 { text-wrap: balance; margin: 8px 0 30px; font: 500 clamp(56px, 8.6vw, 136px)/.96 var(--serif); letter-spacing: -.026em; filter: drop-shadow(0 2px 22px rgba(10, 6, 30, .75)); }
.final .eyebrow { text-shadow: 0 1px 12px rgba(10, 6, 30, .8); }

/* footer */
.foot { position: relative; padding: 44px 0 max(30px, env(safe-area-inset-bottom)); background: #0b0919; border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.foot-brand { display: flex; align-items: center; gap: 18px; }
.foot-brand img { flex: none; width: 72px; height: 72px; }
.foot-brand p { font-family: var(--sans); font-size: 14px; line-height: 1.5; }
.foot-brand b { display: block; color: var(--cream); font: 500 25px/1.15 var(--serif); letter-spacing: -.012em; margin-bottom: 3px; }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px; font-family: var(--sans); font-size: 14px; }
.foot-links a, .foot-links button { color: var(--text); text-decoration: none; }
.foot-links a:hover, .foot-links button:hover { color: var(--g1); }
.foot-credit { margin-top: 24px; padding-top: 18px; color: #958dab; font-family: var(--sans); font-size: 12.5px; border-top: 1px solid rgba(247, 227, 176, .08); }

/* ------------------------------------------------------------ responsive */
@media (min-width: 1800px) { :root { --sec: 210px; } body { font-size: 19px; } .wrap { width: min(1560px, 100% - 2 * var(--gut)); } .sec h2 { font-size: clamp(92px, 4.8vw, 108px); } .pillars p, .moves p, .steps span, .checks label, details p { font-size: 23px; } .code pre { height: 520px; font-size: 15px; } .b-body { height: 620px; } .b-article > p:not(.b-kicker) { font-size: 18px; } }
@media (max-width: 960px) {
  .tabs { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 6px var(--gut) 22px; background: var(--ink); border-bottom: 1px solid rgba(245, 238, 224, .14); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s; }
  .tabs.open { opacity: 1; visibility: visible; transform: none; }
  .tab { padding: 14px 0; color: var(--cream); font: 400 30px/1.1 var(--serif); letter-spacing: -.012em; border-bottom: 1px solid rgba(245, 238, 224, .1); }
  .tab::after { display: none; }
  .tab.on { color: var(--gold); }
  .menu-btn { display: block; }
  .idea-grid, .ch-grid, .build-grid, .faq-grid, .ready { grid-template-columns: minmax(0, 1fr); }
  .arch { width: min(420px, 82%); margin-inline: auto; margin-top: 16px; }
  .faq-head { position: static; }
  .exts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-side { display: none; }
  .code pre { height: 400px; }
}
@media (max-width: 720px) {
  .hand-l { width: 112vw; } .hand-r { width: calc(112vw * .9429); }
  .pillars { grid-template-columns: minmax(0, 1fr); border-top: 0; }
  .pillars article, .pillars article + article { padding: 24px 0; border-left: 0; border-top: 1px solid var(--line); }
  .constellation { display: none; }
  .moves { position: relative; grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 30px; text-align: left; }
  .moves::before { content: ""; position: absolute; left: 7px; top: 12px; bottom: 44px; width: 1px; background: var(--line2); }
  .moves li { position: relative; padding: 0 0 26px 40px; }
  .moves li::before { content: ""; position: absolute; left: 1px; top: 4px; width: 13px; height: 13px; background: #fff7e2; border-radius: 50%; box-shadow: 0 0 9px 3px rgba(255, 233, 180, .75); }
  #day > .wrap > .note { text-align: left; }
  .checks { grid-template-columns: minmax(0, 1fr); }
  .stat { align-items: flex-start; flex-direction: column; gap: 10px; }
  .b-body { height: 560px; }
  .b-url { font-size: 11px; }
  .facts { flex-direction: column; gap: 2px; margin-top: 10px; }
  .facts li, .facts li + li { padding: 0; border: 0; }
  .cta { flex-direction: column; align-items: stretch; width: min(320px, 100%); gap: 10px; }
  .btn { min-height: 48px; }
  .btn-sm { min-height: 36px; padding: 0 13px; }
  .count { gap: 12px; } .count div { min-width: 56px; }
  .hero-copy { justify-content: flex-start; padding-top: clamp(92px, 15vh, 130px); }
  .touch-copy { bottom: clamp(72px, 16vh, 150px); }
  .code pre { padding: 18px 16px; font-size: 12.500px; }
  .copy { margin-left: 8px; }
}
@media (max-width: 400px) {
  .masthead { gap: 13px; } .mh-mark { font-size: 20px; } .mh-reg { height: 34px; padding: 0 12px; font-size: 13px; } .menu-btn { font-size: 13px; }
  .ext { padding: 14px 52px 14px 13px; } .ext i { right: 10px; }
  .ext span { font-size: 12px; }
}
@media (max-height: 700px) and (min-width: 721px) {
  .hero-copy h1 { font-size: clamp(50px, min(7.2vw, 15vh), 100px); margin: .08em 0 .14em; }
  .count { margin-top: 14px; } .cta { margin-top: 16px; } .cue { display: none; }
}
@media (max-height: 640px) and (max-width: 720px) {
  .hero-copy { padding-top: 84px; } .hero-sub { font-size: 19px; } .count { margin-top: 14px; } .cue { display: none; }
  .count b { font-size: 27px; } .hero-copy h1 { font-size: 50px; }
}

@media (max-height: 700px) { .final { padding-bottom: 36px; } .final h2 { margin: 10px 0 18px; } .foot { padding-top: 26px; } .foot-in { gap: 14px 30px; } .foot-credit { margin-top: 14px; padding-top: 12px; } .foot-brand img { width: 56px; height: 56px; } }
/* ------------------------------------------------------------ calm + no script */
html.calm { scroll-behavior: auto; }
html.calm *, html.calm *::before, html.calm *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
html.calm .r { opacity: 1; transform: none; }
html.calm .portal.r { transform: translateX(-50%); }
html.calm #twinkle { opacity: .6; }
html.calm .scene, html:not(.js) .scene { height: auto; }
html.calm .pin, html:not(.js) .pin { position: relative; height: auto; min-height: 100vh; min-height: 100svh; display: grid; }
html.calm .hero-copy, html:not(.js) .hero-copy { position: relative; }
html.calm .touch-copy, html:not(.js) .touch-copy, html.calm .cue, html:not(.js) .cue, html:not(.js) .count, html:not(.js) #watchFilm, html:not(.js) #footFilm, html:not(.js) .ext, html:not(.js) #ideaBtn, html:not(.js) .ready-h p, html:not(.js) .ready-bar, html:not(.js) .copy { display: none; }
html:not(.js) .menu-btn { display: none; }
@media (max-width: 960px) { html:not(.js) .tabs { display: none; } }
