:root {
  --paper: #ece6db;
  --ink: #161412;
  --ink-soft: #4a4540;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }

.home { position: fixed; z-index: 3; top: 22px; right: 26px; font: 500 13px/1 var(--sans); letter-spacing: .04em;
        text-decoration: none; color: var(--ink-soft); }
.home:hover { color: var(--ink); }

.track { position: relative; height: 820vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #d9d3c8; }
.gl { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .8s ease; }
.is-live .gl { opacity: 1; }

.label { position: absolute; z-index: 2; top: 18px; left: 26px; margin: 0; font: 500 clamp(17px, 2vw, 24px)/1 var(--serif);
         letter-spacing: .1em; text-transform: uppercase; color: #2a2724; font-variant-numeric: lining-nums; }
.who { position: absolute; z-index: 2; left: 50%; bottom: 7vh; margin: 0; transform: translate(-50%, 8px);
       font: 500 clamp(15px, 1.6vw, 20px)/1 var(--serif); letter-spacing: .14em; text-transform: uppercase;
       color: #2a2724; opacity: 0; transition: opacity .6s ease, transform .6s ease; white-space: nowrap; }
.who.is-on { opacity: .85; transform: translate(-50%, 0); }
.hint { position: absolute; z-index: 2; right: 26px; bottom: 22px; margin: 0; font: 400 12px/1 var(--sans);
        letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); transition: opacity .5s ease; }
.hint.is-off { opacity: 0; }
[data-mode="minimal"] .stage { background: var(--paper); }

.modes { position: absolute; z-index: 2; left: 50%; top: 16px; transform: translateX(-50%); display: flex; gap: 2px;
         padding: 3px; border-radius: 999px; background: rgba(236, 230, 219, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modes button { appearance: none; border: 0; border-radius: 999px; padding: 7px 13px; background: transparent; cursor: pointer;
                font: 500 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.modes button:hover { color: var(--ink); }
.modes button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.modes button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.is-static .label, .is-static .who, .is-static .hint, .is-static .gl, .is-static .modes { display: none; }

/* Fallback: the two portraits, flat. */
.static { display: none; position: absolute; inset: 0; padding: 70px 24px 24px; gap: 24px; align-items: center; justify-content: center; }
.is-static .static { display: flex; }
.is-static .track { height: auto; }
.is-static .stage { position: relative; height: auto; min-height: 80vh; background: var(--paper); }
.static figure { margin: 0; flex: 1 1 0; max-width: 520px; }
.fig { display: block; aspect-ratio: 1; background: var(--ink);
       -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; -webkit-mask-mode: luminance; mask-mode: luminance; }
.fig-dylan { -webkit-mask-image: url(dylan.png); mask-image: url(dylan.png); }
.fig-cohen { -webkit-mask-image: url(cohen.png); mask-image: url(cohen.png); transform: scaleX(-1); }
.static figcaption { margin-top: 10px; text-align: center; font: 500 15px/1.3 var(--serif); letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 700px) { .is-static .static { flex-direction: column; position: relative; } }

.about { max-width: 640px; margin: 0 auto; padding: 96px 24px 120px; }
.about h1 { margin: 0 0 28px; font: 500 clamp(34px, 5vw, 52px)/1 var(--serif); letter-spacing: .06em; text-transform: uppercase; }
.about p { margin: 0 0 18px; font: 400 17px/1.65 var(--sans); color: #2c2926; }
.about .back { margin-top: 40px; font-size: 14px; }

@media (max-width: 700px) {
  .label { top: 16px; left: 16px; }
  .home { top: 18px; right: 16px; }
  .hint { right: 16px; bottom: 16px; }
  .modes { top: auto; bottom: 14px; left: 16px; transform: none; }
  .hint { display: none; }
  .track { height: 900vh; }
}
