:root {
  --bg: #0b0b0c; --panel: #151517; --ink: #f4f0e9; --soft: #d0cabf; --dim: #9c968b; --line: rgb(244 240 233 / .16);
  --heat: #ff7a3d; --cta: #f4f0e9; --cta-ink: #141210;
  --gut: clamp(20px, 4.2vw, 64px);
  --display: "Big Shoulders Display", Impact, "Arial Narrow", sans-serif;
  --text: "Instrument Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.23, 1, .32, 1);
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.snap { scroll-snap-type: y mandatory; }
html.intro, html.intro body { overflow: hidden; height: 100%; overscroll-behavior: none; }
body { margin: 0; background: var(--bg); font: 400 17px/1.5 var(--text); overflow-x: clip; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
img, canvas, video { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--heat); color: #17100b; }
:focus-visible { outline: 2px solid var(--heat); outline-offset: 3px; border-radius: 6px; }
h1, h2 { margin: 0; font-family: var(--display); font-weight: 900; line-height: .92; letter-spacing: -.005em; text-transform: uppercase; text-wrap: balance; }
h1 { font-size: clamp(4.2rem, 10.5vw, 9.5rem); }
h2 { font-size: clamp(3.1rem, 6.6vw, 6.4rem); }
p { margin: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: var(--cta); color: var(--cta-ink); font-weight: 600; }
.skip:focus { top: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border-radius: 999px; background: var(--cta); color: var(--cta-ink); font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap; transition: background-color .2s, box-shadow .25s, transform .15s var(--ease); }
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .92rem; background: rgb(20 20 22 / .72); color: var(--ink); box-shadow: inset 0 0 0 1px rgb(244 240 233 / .42); }
.link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--heat); text-decoration-thickness: 2px; text-underline-offset: 5px; transition: color .2s; }
@media (hover: hover) {
  .btn:hover { background: #fffaf2; box-shadow: 0 12px 34px -14px rgb(255 122 61 / .9); }
  .btn--sm:hover { background: rgb(255 122 61 / .14); box-shadow: inset 0 0 0 1px var(--heat); }
  .link:hover, .nav nav a:hover, .foot a:hover { color: var(--heat); }
}

.nav { position: fixed; inset: 0 0 auto; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: calc(14px + env(safe-area-inset-top)) var(--gut) 12px; transition: opacity .5s, background-color .3s; }
.nav.is-solid { background: rgb(11 11 12 / .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
html.intro .nav { opacity: 0; pointer-events: none; }
.brand { display: inline-flex; align-items: center; gap: 9px; min-height: 42px; font: 900 1.45rem/1 var(--display); text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.brand span { color: var(--soft); font-weight: 700; }
.nav nav { display: flex; align-items: center; gap: 26px; margin-left: auto; font-weight: 600; font-size: .95rem; }
.nav nav a { text-decoration: none; transition: color .2s; text-shadow: 0 1px 10px rgb(0 0 0 / .5); }

/* intro */
#curtain { position: fixed; inset: 0; z-index: 60; display: none; place-content: center; justify-items: center; gap: 16px; background: var(--bg); transition: opacity .5s; }
html.intro #curtain { display: grid; }
#curtain.is-off { opacity: 0; pointer-events: none; }
#curtain p { font: 900 clamp(1.6rem, 4vw, 2.3rem)/1 var(--display); text-transform: uppercase; }
#curtain i { display: block; width: 180px; height: 2px; background: var(--line); overflow: hidden; }
#curtain b { display: block; height: 100%; width: 100%; background: var(--heat); transform: scaleX(0); transform-origin: 0 50%; transition: transform .2s linear; }
#intro { position: fixed; inset: 0; z-index: 50; width: 100vw; height: 100lvh; max-width: none; object-fit: cover; opacity: 0; pointer-events: none; transition: opacity .45s; background: var(--bg); }
html.intro #intro { opacity: 1; }
#skipIntro { display: none; position: fixed; z-index: 61; right: var(--gut); bottom: calc(22px + env(safe-area-inset-bottom)); min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: rgb(20 20 22 / .6); color: var(--ink); font: 600 .92rem var(--text); box-shadow: inset 0 0 0 1px rgb(244 240 233 / .4); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); cursor: pointer; }
html.intro #skipIntro.is-on { display: block; }
#veil { position: fixed; inset: 0; z-index: 45; background: var(--bg); opacity: 0; pointer-events: none; transition: opacity .2s; }
#veil.is-on { opacity: 1; }
#probe { position: fixed; top: 0; left: -9px; width: 1px; height: 100vh; height: 100lvh; visibility: hidden; pointer-events: none; }

/* the film */
.film { display: none; position: relative; }
html.film-on .film { display: block; height: calc(570 * var(--u, 1vh) + 100vh); height: calc(570 * var(--u, 1lvh) + 100lvh); }
html.film-on .stills { display: none; }
.stage { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; background: #111 url(a/stage/exterior-d.webp) center / cover no-repeat; }
@media (max-aspect-ratio: 9/10) { .stage { background-image: url(a/stage/exterior-m.webp); } }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#gl { opacity: 0; pointer-events: none; }
#fallback { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0; pointer-events: none; }
#fallback:not([src]) { display: none; }
.scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgb(8 8 9 / .84), rgb(8 8 9 / .6) 24%, rgb(8 8 9 / .12) 44%, rgb(8 8 9 / 0) 56%, rgb(8 8 9 / 0) 84%, rgb(8 8 9 / .34)); }
.ui { position: absolute; inset: 0 0 auto; height: 100vh; height: 100svh; pointer-events: none; }
.beat { position: absolute; left: var(--gut); right: var(--gut); top: calc(84px + env(safe-area-inset-top)); max-width: 680px; opacity: 0; visibility: hidden; text-shadow: 0 2px 22px rgb(0 0 0 / .45); }
.beat p { margin-top: 12px; max-width: 34ch; font-size: clamp(1.05rem, 1rem + .35vw, 1.3rem); line-height: 1.35; font-weight: 500; }
.beat .btn { margin-top: 20px; text-shadow: none; }
.beat.is-live a, .beat.is-live button { pointer-events: auto; }
.b6 ul { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 14px 0 0; padding: 0; list-style: none; font-weight: 600; font-size: clamp(1rem, .96rem + .3vw, 1.2rem); }
.b6 li { display: inline-flex; align-items: center; gap: 8px; }
.b6 li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--heat); }

/* build your tint */
.b4 { top: calc(78px + env(safe-area-inset-top)); bottom: calc(14px + env(safe-area-inset-bottom)); max-width: none; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tintdock { display: grid; gap: 8px; width: min(100%, 540px); padding: 10px; border-radius: 20px; background: rgb(14 14 16 / .93); box-shadow: inset 0 0 0 1px rgb(244 240 233 / .14), 0 24px 50px -28px #000; text-shadow: none; }
.zones { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 3px; border-radius: 13px; background: rgb(244 240 233 / .08); }
.zones__pill { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 3); border-radius: 10px; background: var(--cta); transition: transform 240ms var(--ease); }
.zones button { position: relative; z-index: 1; min-height: 44px; padding: 0 4px; border: 0; border-radius: 10px; background: none; color: var(--soft); font: 600 .9rem/1.1 var(--text); cursor: pointer; transition: color 160ms ease, transform 120ms var(--ease); }
.zones button[aria-selected="true"] { color: var(--cta-ink); }
.zones button:active { transform: scale(.97); }
.shades { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 6px; }
.shades button { min-height: 50px; padding: 0; border: 0; border-radius: 11px; background: rgb(244 240 233 / .07); color: var(--ink); font: 900 1.6rem/1 var(--display); box-shadow: inset 0 0 0 1px rgb(244 240 233 / .2); cursor: pointer; transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 120ms var(--ease); }
.shades button.is-word { font-size: 1.2rem; letter-spacing: .01em; text-transform: uppercase; }
.shades small { font-size: .62em; margin-left: 1px; }
.shades button:active { transform: scale(.96); }
.shades button[aria-checked="true"] { background: var(--heat); color: #1a0f08; box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  .shades button[aria-checked="false"]:hover { box-shadow: inset 0 0 0 1px var(--heat); color: var(--heat); }
  .zones button[aria-selected="false"]:hover { color: var(--ink); }
}
.info { min-height: 62px; padding: 2px 3px; }
.beat .info p { margin: 0; max-width: none; }
#shadeLine { font-size: .98rem; font-weight: 600; line-height: 1.25; }
.beat .law { display: flex; gap: 7px; margin-top: 3px; color: var(--soft); font-size: .8rem; font-weight: 400; line-height: 1.3; }
.law[hidden] { display: none; }
.law i { flex: none; width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: var(--heat); }
.law.is-ok i { background: #86d3a8; }
.send { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 2px 0 3px; border-top: 1px solid var(--line); }
#setup { min-width: 0; color: var(--soft); font-size: .8rem; font-weight: 500; line-height: 1.25; }
.beat .btn--send { flex: none; min-height: 44px; margin: 0; padding: 0 18px; font-size: .92rem; }
#toast { position: fixed; z-index: 70; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); max-width: calc(100vw - 32px); padding: 11px 16px; border-radius: 12px; background: var(--cta); color: var(--cta-ink); font-size: .9rem; font-weight: 600; line-height: 1.25; text-align: center; box-shadow: 0 16px 36px -14px #000; opacity: 0; transform: translate(-50%, 10px) scale(.98); pointer-events: none; transition: opacity 200ms ease, transform 240ms var(--ease); }
#toast.is-on { opacity: 1; transform: translate(-50%, 0); }
#bar { position: fixed; top: 0; left: 0; z-index: 42; width: 100%; height: 2px; background: var(--heat); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
html.intro #bar { opacity: 0; }
.cue { position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); display: grid; justify-items: center; gap: 1px; margin: 0; color: var(--ink); font-size: .78rem; font-weight: 600; transform: translateX(-50%); transition: opacity 240ms ease; text-shadow: 0 1px 10px rgb(0 0 0 / .6); }
.cue svg { animation: cue 1.7s var(--ease) infinite; }
.cue.is-off { opacity: 0; }
html.intro .cue { opacity: 0; }
@keyframes cue { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
.cps { position: absolute; inset: 0; pointer-events: none; }
.cps i { position: absolute; left: 0; width: 1px; height: 1px; scroll-snap-align: start; scroll-snap-stop: always; }

/* no motion or no script */
.stills figure { position: relative; margin: 0; min-height: 100svh; display: grid; align-items: start; overflow: hidden; }
.stills img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stills figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(8 8 9 / .84), rgb(8 8 9 / .1) 56%); }
.stills figcaption { position: relative; z-index: 1; padding: 96px var(--gut) 40px; max-width: 760px; }
.stills p { margin-top: 12px; font-size: 1.15rem; }
.stills .btn { margin-top: 20px; }

/* after the film */
.after { position: relative; z-index: 2; background: var(--bg); }
html.snap .after > section, html.snap .foot { scroll-snap-align: start; }
.upclose { padding: clamp(72px, 10vw, 128px) 0 0; }
.upclose .head { align-items: center; padding: 0 var(--gut); }
.rail-nav { display: flex; gap: 8px; }
.rail-nav button { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: rgb(244 240 233 / .08); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: background-color 160ms ease, color 160ms ease, opacity 160ms ease, transform 120ms var(--ease); }
.rail-nav button:active { transform: scale(.95); }
.rail-nav button:disabled { opacity: .32; cursor: default; }
@media (hover: hover) and (pointer: fine) { .rail-nav button:not(:disabled):hover { color: var(--heat); background: rgb(255 122 61 / .12); } }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(62vw, 1040px); column-gap: clamp(10px, 1.2vw, 18px); margin: 0; padding: 0 var(--gut) 6px; overflow-x: auto; list-style: none; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gut); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rail::-webkit-scrollbar { display: none; }
.rail li { min-width: 0; scroll-snap-align: start; }
.rail img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; background: var(--panel); }
.rail b { display: block; margin-top: 10px; font-size: 1rem; }
.work { padding: clamp(72px, 10vw, 128px) var(--gut) clamp(56px, 7vw, 96px); }
.head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 40px; margin-bottom: clamp(26px, 4vw, 48px); }
.head p { color: var(--soft); font-size: 1.1rem; }
.jobs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(22px, 2.4vw, 34px) clamp(10px, 1.3vw, 18px); margin: 0; padding: 0; list-style: none; }
.jobs li { min-width: 0; }
.jobs img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; background: var(--panel); }
.jobs b { display: block; margin-top: 11px; font-size: 1rem; line-height: 1.25; }
.jobs span { display: block; margin-top: 2px; color: var(--dim); font-size: .92rem; line-height: 1.3; }

.book { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: min(100svh, 860px); overflow: hidden; background: var(--panel); }
.book > picture { position: relative; order: 2; display: block; min-height: 420px; }
.book > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 66% 62%; }
.book__in { align-self: center; padding: clamp(84px, 11vh, 120px) clamp(24px, 3.4vw, 56px) 56px var(--gut); }
.book ol { display: grid; gap: 6px; margin: 18px 0 0; padding: 0 0 0 1.25em; font-size: clamp(1.02rem, 1rem + .3vw, 1.22rem); font-weight: 500; }
.book ol ::marker { color: var(--heat); font-weight: 700; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 24px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 22px var(--gut) calc(22px + env(safe-area-inset-bottom)); color: var(--dim); font-size: .9rem; }
.foot span:last-child { display: inline-flex; gap: 18px; }
.foot a { display: inline-flex; align-items: center; min-height: 32px; text-decoration: none; transition: color .2s; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .brand { font-size: 1.28rem; gap: 7px; }
  .brand img { width: 22px; height: 22px; }
  .nav nav { display: none; }
  h1 { font-size: clamp(3.9rem, 19vw, 5.4rem); }
  h2 { font-size: clamp(2.9rem, 14vw, 4rem); }
  .btn--sm { min-height: 40px; padding: 0 15px; font-size: .86rem; }
  .rail { grid-auto-columns: 86%; }
  .rail-nav { display: none; }
  .jobs { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 74%; gap: 10px; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut) 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gut); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .jobs::-webkit-scrollbar { display: none; }
  .jobs li { scroll-snap-align: start; }
  .book { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .book > picture { order: 0; height: 58svh; min-height: 320px; }
  .book > picture img { object-position: 50% 82%; }
  .book__in { padding: 30px var(--gut) 40px; }
  .book .btn { width: 100%; }
}
@media (min-width: 761px) and (max-width: 1100px) { .jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-height: 520px) and (min-aspect-ratio: 9/10) {
  .beat { top: calc(66px + env(safe-area-inset-top)); max-width: 60vw; }
  h1 { font-size: 3.6rem; }
  h2 { font-size: 2.7rem; }
  .beat p { margin-top: 6px; font-size: .95rem; }
  .beat .btn { margin-top: 10px; min-height: 44px; }
  .cue { display: none; }
  .b4 { top: auto; left: max(10px, env(safe-area-inset-left)); right: max(10px, env(safe-area-inset-right)); bottom: calc(6px + env(safe-area-inset-bottom)); max-width: none; }
  .b4 h2 { display: none; }
  .tintdock { width: 100%; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5px 8px; padding: 6px; border-radius: 14px; }
  .zones button { min-height: 38px; font-size: .78rem; }
  .shades button { min-height: 44px; font-size: 1.25rem; }
  .shades button.is-word { font-size: .95rem; }
  .info { min-height: 0; padding: 0 2px; }
  #shadeLine { font-size: .76rem; }
  .beat .law { margin-top: 1px; font-size: .66rem; line-height: 1.15; }
  .law i { width: 5px; height: 5px; margin-top: 3px; }
  .send { padding: 0; border: 0; }
  #setup { font-size: .68rem; }
  .beat .btn--send { min-height: 38px; padding: 0 13px; font-size: .8rem; }
}
@media (max-height: 700px) and (max-aspect-ratio: 9/10) {
  .beat { top: calc(70px + env(safe-area-inset-top)); }
  h1 { font-size: 3.7rem; } h2 { font-size: 2.7rem; }
  .beat p { font-size: .98rem; margin-top: 8px; }
  .beat .btn { margin-top: 12px; min-height: 48px; }
  .b4 { top: calc(66px + env(safe-area-inset-top)); bottom: calc(8px + env(safe-area-inset-bottom)); }
  .b4 h2 { font-size: 2.2rem; }
  .tintdock { gap: 6px; padding: 8px; }
  .zones button { min-height: 40px; font-size: .82rem; }
  .shades button { min-height: 44px; font-size: 1.35rem; }
  .info { min-height: 52px; }
  #shadeLine { font-size: .9rem; }
  .beat .law { font-size: .74rem; }
  .send { padding-top: 6px; }
  .beat .btn--send { min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
