/* Tessera: site UI over a fixed WebGL field of tiles.
   Tokens, type, HUD vocabulary and layout from direction.md (Oryzo design language, our content). */

:root {
  --soil: #100B08; --loam: #1B1614; --bark: #2A211B; --ember: #5A3220;
  --meadow: #4B5C3D; --meadow-deep: #2E3A26; --meadow-line: #5E6F4E; --bisque: #CDBB9C;
  --ink: #FFEDD7; --ink-2: rgba(255, 237, 215, 0.62); --ink-3: #8C7B69; --ink-4: #6C5F51;
  --line: rgba(255, 237, 215, 0.18); --signal: #DC5000; --walnut: #3A2A1F; --mat: #F3E6D0; --travertine: #E9DCC6;
  --c0: #C8402C; --c1: #E3A92B; --c2: #2D5BA6; --c3: #2F9474; --c4: #E08BA0;
  --c5: #6A3E78; --c6: #7FB4D6; --c7: #F1E8D8; --c8: #2B2522; --c9: #A8B43A;
  --m: 46px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --sans: "Albert Sans", ui-sans-serif, system-ui, sans-serif;
  --serif: "Literata", Georgia, serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
  --glow: 0 0 24px rgba(255, 237, 215, 0.35), 0 0 2px rgba(255, 237, 215, 0.5);
  --legible: 0 1px 14px rgba(16, 11, 8, 0.55), 0 0 2px rgba(16, 11, 8, 0.3);
  --tab-w: 40px;
  --card-h: min(300px, 31vh);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  background: var(--loam);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--loam);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.33;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

::selection { background: var(--signal); color: var(--ink); }

a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ol, ul, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: inherit; font-size: inherit; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  left: var(--m);
  top: var(--m);
  z-index: 200;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--soil);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transform: translateY(-300%);
}
.skip:focus { transform: none; }

/* ------------------------------------------------------------------ stage */

#gl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100lvh;
  display: block;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
}
body.has-scene #gl { opacity: 1; }

.poster {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    url("./assets/poster.jpg") 50% 0 / cover no-repeat,
    radial-gradient(70% 60% at 0% 100%, rgba(90, 50, 32, 0.6), transparent 70%),
    var(--meadow-deep);
  transform-origin: 50% 0;
  transition: opacity 1.2s var(--ease-out);
}
.poster__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27, 22, 20, 0.55), transparent 45%);
}
body.has-scene .poster { opacity: 0; pointer-events: none; }
body.no-webgl #gl { display: none; }
/* without the scene, the dark beats darken the poster so cream copy stays legible */
body.no-webgl .poster__shade { transition: background 0.6s var(--ease-out); }
body.no-webgl:not([data-beat="0"]) .poster__shade { background: linear-gradient(to top, rgba(27, 22, 20, 0.7), rgba(16, 11, 8, 0.45) 45%); }

.veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(60% 55% at 12% 14%, rgba(16, 11, 8, 0.3), transparent 70%),
    linear-gradient(180deg, rgba(16, 11, 8, 0.42) 0%, transparent 15%, transparent 72%, rgba(16, 11, 8, 0.42) 100%);
  transition: opacity 0.6s var(--ease-out);
}

/* the hype flare: four blurred edge gradients, screen-blended (beat 2 only) */
.edge {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  overflow: hidden;
}
.edge i { position: absolute; filter: blur(28px); }
.edge__t { left: 0; right: 0; top: -20px; height: 40px; background: linear-gradient(90deg, #C9FF3D, #FFE14D); }
.edge__r { top: 0; bottom: 0; right: -20px; width: 40px; background: #FF3DA5; }
.edge__b { left: 0; right: 0; bottom: -20px; height: 40px; background: linear-gradient(90deg, #FFE14D, #FF3DA5); }
.edge__l { top: 0; bottom: 0; left: -20px; width: 40px; background: linear-gradient(180deg, #3DE0FF, #C9FF3D); }

/* ------------------------------------------------------------------ type */

.eyebrow,
.hero__eyebrow {
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: var(--legible);
}
.caps {
  font-size: clamp(22px, 1.9vw, 28px);
  font-weight: 600;
  line-height: 1.02;
  text-transform: uppercase;
  color: var(--ink);
  max-width: 16ch;
  text-shadow: var(--legible);
}
.sentence {
  font-size: clamp(40px, 4.4vw, 64px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-shadow: var(--legible);
}
.giant {
  font-size: clamp(64px, 9.5vw, 140px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--ink);
  white-space: nowrap;
  text-shadow: var(--glow);
}
.side-para,
.hero__para {
  font-size: clamp(20px, 1.9vw, 28px);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-shadow: var(--legible);
}
.copy {
  font-size: 18px;
  line-height: 1.33;
  max-width: 36ch;
}
.small-caps,
.note,
.sublabel {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------ blur-in (per word / per letter) and scroll fill */

.w { display: inline-block; white-space: pre; }
.wd { display: inline-block; white-space: nowrap; }
html.js [data-blur] .w,
html.js [data-blur-block] {
  opacity: 0;
  filter: blur(6px);
  transform: translate3d(0, 8px, 0);
  transition: opacity 0.32s var(--ease-in), filter 0.32s var(--ease-in), transform 0s linear 0.32s;
}
html.js .is-on [data-blur] .w,
html.js .is-on [data-blur-block] {
  opacity: 1;
  filter: blur(0);
  transform: none;
  transition: opacity 0.75s var(--ease-out), filter 0.75s var(--ease-out), transform 0.75s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
html.js .is-on [data-blur] .w { will-change: auto; }
/* blur starts stronger on the way in */
html.js .beat__frame:not(.is-on) [data-blur] .w { filter: blur(14px); }

.fw { color: var(--ink-4); transition: color 0.18s linear; }
.fw.is-lit { color: var(--ink); }

/* ------------------------------------------------------------------ buttons: two pills on the whole page */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--soil);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn__arrow { font-size: 16px; transition: transform 0.2s var(--ease-out); }
.btn:hover { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--ghost { background: rgba(16, 11, 8, 0.28); border-color: rgba(255, 237, 215, 0.45); color: var(--ink); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgba(16, 11, 8, 0.4); border-color: var(--ink); color: var(--ink); }

/* ------------------------------------------------------------------ loader: construction drawing on moss green */

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background:
    linear-gradient(rgba(94, 111, 78, 0.35) 1px, transparent 1px) center / 48px 48px,
    linear-gradient(90deg, rgba(94, 111, 78, 0.35) 1px, transparent 1px) center / 48px 48px,
    var(--meadow);
  transition: opacity 0.9s var(--ease-out), visibility 0s linear 0.9s;
}
.loader__tile {
  width: min(320px, 70vw);
  height: min(240px, 52.5vw);
  overflow: visible;
  transition: transform 0.9s var(--ease-out), opacity 0.6s var(--ease-out);
}
.loader__tile .cl path { fill: none; stroke: var(--signal); stroke-width: 1; stroke-dasharray: 1 3; stroke-linecap: round; }
.loader__tile .cl .cl__bevel { stroke: var(--ink); opacity: 0.5; }
.loader__tile .cl-h path { stroke: var(--signal); stroke-width: 1; }
.loader__tile .cl-h circle { fill: var(--signal); }
.loader__tile .cl-a rect { fill: var(--signal); }
.loader__tile #loader-cells polygon { opacity: 0; transition: opacity 0.25s var(--ease-out); }
.loader__tile #loader-cells polygon.on { opacity: 1; }
.loader__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.loader__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
}
.loader__count {
  font-family: var(--mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.loader.is-exit .loader__tile { transform: scale(1.12); opacity: 0; }
.loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ------------------------------------------------------------------ fixed chrome */

.bar {
  position: fixed;
  z-index: 30;
  left: var(--m);
  right: calc(var(--tab-w) + 24px);
  top: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  text-shadow: var(--legible);
}
.brand { position: relative; display: block; flex: none; height: 22px; min-width: 22px; }
.brand__dot {
  position: absolute;
  left: 0;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
  transition: opacity 0.5s var(--ease-out);
}
.brand__img {
  display: block;
  height: 22px;
  width: auto;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}
body.show-logo .brand__img { opacity: 1; }
body.show-logo .brand__dot { opacity: 0; }
.concept {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
  padding-left: 2px;
}
body:not(.show-logo) .concept { margin-left: -2px; }
.nav { margin-left: auto; position: relative; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav__links a {
  position: relative;
  padding: 4px 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  border-bottom: 1px dotted var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s var(--ease-out);
}
.nav__links a:hover::after,
.nav__links a[aria-current="true"]::after { transform: scaleX(1); }
.menu {
  display: none;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border: 1px dashed var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(16, 11, 8, 0.18);
}
.menu::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }

/* right-edge tab and scroll thumb */
.tab {
  position: fixed;
  z-index: 31;
  right: 0;
  top: 0;
  width: var(--tab-w);
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 26px;
  background: var(--ink);
  color: var(--soil);
  transition: transform 0.2s var(--ease-out);
}
.tab:hover { transform: translateX(-6px); }
.tab__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--soil); flex: none; }
.tab__t {
  writing-mode: vertical-rl;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}
.thumb {
  position: fixed;
  z-index: 30;
  right: 0;
  top: 230px;
  bottom: 60px;
  width: 6px;
  pointer-events: none;
  transition: opacity 0.3s;
}
.thumb i {
  position: absolute;
  right: 0;
  top: 0;
  width: 6px;
  height: 120px;
  background: var(--ink);
  will-change: transform;
}

.scroll-hint {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: var(--m);
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: var(--legible);
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}
.scroll-hint__c {
  position: relative;
  width: 22px;
  height: 22px;
  border: 1px dashed var(--ink-2);
  border-radius: 50%;
}
.scroll-hint__c::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 5px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg);
  animation: bob 1.6s var(--ease-in-out) infinite;
}
@keyframes bob { 50% { transform: translateY(3px) rotate(45deg); } }
.scroll-hint.is-gone { opacity: 0; }

/* the one glass card */
.card {
  position: fixed;
  z-index: 30;
  left: var(--m);
  bottom: var(--m);
  width: 268px;
  height: var(--card-h);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 237, 215, 0.08);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  overflow: hidden;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
body[data-beat="5"] .card,
body.at-foot .card { opacity: 0; transform: translateY(12px); }
.card__slot {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 18px;
  opacity: 0;
  filter: blur(6px);
  transition: opacity 0.32s var(--ease-out), filter 0.32s var(--ease-out);
}
.card__slot.is-on { opacity: 1; filter: none; }
.card__label {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.08;
  text-transform: uppercase;
  color: var(--ink);
}
.card__big {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.card__big--dead { color: var(--ink-4); }
.card__foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dotted var(--ink-2);
}
.card__s {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  text-align: right;
  color: var(--ink);
}
.cd {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.cd__v {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.ring { flex: none; transform: rotate(-90deg); overflow: visible; }
.ring__bg { fill: none; stroke: var(--ink-4); stroke-width: 2; }
.ring__fg {
  fill: none;
  stroke: var(--signal);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 94.25;
  stroke-dashoffset: 0;
  transition: stroke 0.16s;
}
body.cd-flash .ring__fg { stroke: var(--ink); }
body.cd-flash .cd__v { color: var(--signal); }
.card__clocks { display: none; }

/* bottom-right: minimap + territory + season clock */
.live {
  position: fixed;
  z-index: 30;
  right: calc(var(--m) + 10px);
  bottom: var(--m);
  width: 156px;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}
body.at-foot .live { opacity: 0; }
.mini {
  position: relative;
  width: 156px;
  height: 104px;
  border: 1.5px solid var(--signal);
  border-radius: 10px;
  box-shadow: 0 0 18px rgba(220, 80, 0, 0.45);
  overflow: hidden;
  background: var(--meadow-deep);
}
.mini canvas { display: block; width: 100%; height: 100%; }
.mini__l {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 3px 7px 2px;
  border-radius: 999px;
  background: rgba(16, 11, 8, 0.62);
  white-space: nowrap;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 1px 6px rgba(16, 11, 8, 0.8);
}
.terr {
  margin-top: 14px;
  transform-origin: right bottom;
  transition: transform 0.5s var(--ease-out);
}
body[data-beat="3"] .terr { transform: scale(1.3); margin-top: 40px; }
.terr { transition: transform 0.5s var(--ease-out), margin 0.5s var(--ease-out); }
.terr__k,
.clk b {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-shadow: var(--legible);
}
.terr__bar {
  display: flex;
  height: 6px;
  margin: 7px 0 6px;
  background: var(--ink-4);
}
.terr__bar i { display: block; height: 100%; transition: width 0.4s var(--ease-out); }
.terr__row {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.terr__sw { width: 8px; height: 8px; }
.terr__rk {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink-2);
  text-shadow: var(--legible);
}
.terr__v {
  font-family: var(--mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-shadow: var(--legible);
}
.clk { margin-top: 14px; }
.clk__v {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-shadow: var(--legible);
}
body.is-frozen .clk__v { color: var(--signal); }

/* ------------------------------------------------------------------ labels + construction outlines pinned to scene anchors */

.pins {
  position: fixed;
  inset: 0;
  z-index: 14;
  pointer-events: none;
  overflow: hidden;
}
.pin {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  will-change: transform, opacity;
}
.pin__a {
  position: absolute;
  left: -2.5px;
  top: -2.5px;
  width: 5px;
  height: 5px;
  background: var(--signal);
}
.pin__l {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 1px;
  border-top: 1px dotted var(--signal);
  transform-origin: left center;
  transform: rotate(-35deg);
}
.pin__txt {
  position: absolute;
  left: 25px;
  top: -40px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  white-space: nowrap;
  text-shadow: var(--legible);
}
.pin__txt b {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
}
.pin__txt span {
  font-family: var(--mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}
.pin__sw {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  vertical-align: 0;
  background: var(--c, var(--ink));
}
.pin--burst .pin__a { background: var(--ink); border-radius: 50%; }
.pin--burst .pin__l { border-top-color: var(--ink-2); }
.pin--burst .pin__txt span { color: var(--ink-4); text-decoration: line-through; }

.outline {
  position: fixed;
  inset: 0;
  z-index: 13;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.outline__frame { fill: none; stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 1 3; stroke-linecap: round; }
.outline__dot { fill: var(--ink); }
.outline__cons { fill: none; stroke: var(--signal); stroke-width: 1; stroke-dasharray: 1 3; stroke-linecap: round; }
.outline__anchors rect { fill: var(--signal); }
.outline__anchors path { stroke: var(--signal); stroke-width: 1; fill: none; }
.outline__anchors circle { fill: var(--signal); }
.outline > * { transition: opacity 0.3s var(--ease-out); }

/* ------------------------------------------------------------------ story beats
   Desktop: each section is an in-flow scroll range; its frame is fixed and shown only while the
   camera holds on that beat (JS toggles .is-on from the smoothed progress). */

main { position: relative; z-index: 5; }

.beat {
  position: relative;
  height: 112vh;
}
.beat__frame {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
/* exit: one 320 ms fade for the whole frame; entry: the words blur in individually */
html.js .beat__frame { opacity: 0; transition: opacity 0.32s var(--ease-in); }
html.js .beat__frame.is-on,
html.js .beat__frame:focus-within { opacity: 1; transition: opacity 0.2s linear; }
.beat__frame.is-on > *,
.beat__frame:focus-within > * { pointer-events: auto; }

/* 01 the field: Oryzo's hero layout */
.hero {
  position: absolute;
  left: var(--m);
  top: 66px;
  display: inline-flex;
  flex-direction: column;
}
.hero__eyebrow { align-self: flex-end; margin-bottom: 10px; }
.hero__title {
  font-size: clamp(64px, 10.4vw, 156px);
  font-weight: 600;
  line-height: 0.86;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: var(--legible);
}
.hero__title .wd { display: block; }
.hero__para {
  position: absolute;
  left: 64vw;
  top: 44vh;
  max-width: 30ch;
}

/* 02 attention fades */
.fades__left {
  position: absolute;
  left: var(--m);
  top: 33vh;
}
.bigfig { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.bigfig__v {
  font-family: var(--mono);
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  text-shadow: var(--glow);
}
.bigfig__k {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink-2);
}
.side-para {
  position: absolute;
  left: 66vw;
  top: 40vh;
  max-width: 24ch;
  text-shadow: none;
}

/* 03 paint */
.paint__head {
  position: absolute;
  left: 50%;
  top: 9vh;
  display: flex;
  flex-direction: column;
  transform: translateX(-50%);
  white-space: nowrap;
}
.sublabel {
  align-self: flex-end;
  margin-top: 12px;
  color: var(--signal);
  font-weight: 700;
  text-shadow: 0 1px 10px rgba(16, 11, 8, 0.75), 0 0 2px rgba(16, 11, 8, 0.6);
}
.note {
  position: absolute;
  left: 62vw;
  top: 70vh;
  max-width: 24ch;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  text-shadow: var(--legible);
}

/* 04 crowd beats wallet: the giant glow line */
.crowd__glow {
  position: absolute;
  left: var(--m);
  right: 0;
  top: 30vh;
}
.crowd__glow .eyebrow { margin-bottom: 18px; color: var(--ink); }
.crowd__body {
  position: absolute;
  left: var(--m);
  bottom: calc(var(--m) + var(--card-h) + 26px);
  max-width: 40ch;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.33;
  text-shadow: var(--legible);
}

/* 05 the season freezes: the museum placard */
.placard {
  position: absolute;
  left: 64vw;
  top: 26vh;
  width: 300px;
  padding: 22px;
  background: var(--mat);
  color: var(--soil);
}
.placard__k,
.placard__f {
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(16, 11, 8, 0.66);
}
.placard__t {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
  line-height: 1.12;
  color: var(--soil);
}
.placard__b {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(16, 11, 8, 0.85);
}
.placard__f {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dotted rgba(16, 11, 8, 0.4);
  letter-spacing: 0.08em;
  line-height: 1.4;
}

/* 06 monuments: Oryzo's closing layout */
.close {
  position: absolute;
  left: 50%;
  top: 34vh;
  width: min(92vw, 1100px);
  transform: translateX(-50%);
  text-align: center;
}
.close__title {
  margin-top: 14px;
  font-size: clamp(56px, 9vw, 136px);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: var(--glow);
}
.close__body {
  margin: 22px auto 0;
  max-width: 40ch;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.33;
  text-shadow: var(--legible);
}
.close__cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.close__note {
  position: absolute;
  left: 50%;
  bottom: var(--m);
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-2);
  text-shadow: var(--legible);
  transition: color 0.2s;
}
.close__note.is-flash { color: var(--ink); }

/* soft pools of dark behind copy over the busy field (never a box) */
.hero__para::before,
.side-para::before,
.crowd__body::before,
.close::before,
.fades__left::before,
.note::before {
  content: "";
  position: absolute;
  inset: -44px -60px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(16, 11, 8, 0.5), rgba(16, 11, 8, 0.26) 55%, rgba(16, 11, 8, 0));
}
.close::before { inset: -40px 10%; }
.hero::before,
.crowd__glow::before,
.paint__head::before {
  content: "";
  position: absolute;
  inset: -40px -80px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(16, 11, 8, 0.34), rgba(16, 11, 8, 0.14) 60%, rgba(16, 11, 8, 0));
}
.crowd__glow::before { inset: -30px 4% -30px -60px; }

/* ------------------------------------------------------------------ footer: warm black, the idea in full */

.foot {
  position: relative;
  z-index: 6;
  margin-top: 8vh;
  padding: 16vh calc(var(--m) + var(--tab-w)) var(--m) var(--m);
  background: linear-gradient(180deg, rgba(16, 11, 8, 0) 0, var(--soil) 14vh);
  color: var(--ink);
}
.foot:focus { outline: none; }
.foot__inner { max-width: 1340px; }
.foot__eyebrow {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--ink-3);
}
.foot__h {
  margin-top: 14px;
  font-size: clamp(40px, 4.4vw, 64px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}
.foot__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px dotted var(--ink-2);
}
.foot__t {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
}
.foot__t:not(:first-child) { margin-top: 28px; }
.foot .copy,
.foot .list li {
  max-width: 36ch;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink-2);
}
.foot .copy + .copy { margin-top: 10px; }
.list { display: flex; flex-direction: column; gap: 10px; }
.list li { position: relative; padding-left: 15px; }
.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  background: var(--signal);
}
.facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 56px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts > div { padding: 14px 16px 16px 0; }
.facts > div + div { padding-left: 16px; border-left: 1px dotted var(--line); }
.facts dt {
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink-3);
}
.facts dd { font-size: 16px; font-weight: 500; line-height: 1.25; }
.foot__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 36px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink-3);
}
.foot__concept { color: var(--ink); }
.foot__base a:hover { color: var(--ink); }

/* ------------------------------------------------------------------ shorter desktop windows */

@media (max-height: 760px) and (min-width: 701px) {
  :root { --card-h: 220px; }
  .card__label { font-size: 19px; }
}

/* ------------------------------------------------------------------ narrower desktop */

@media (max-width: 1100px) and (min-width: 701px) {
  .concept { display: none; }
  .hero__para { left: auto; right: calc(var(--m) + var(--tab-w)); top: 50vh; max-width: 24ch; }
  .side-para { left: auto; right: calc(var(--m) + var(--tab-w)); }
  .placard { left: auto; right: calc(var(--m) + var(--tab-w)); }
  .note { left: auto; right: calc(var(--m) + 190px); }
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts > div:nth-child(4) { padding-left: 0; border-left: 0; }
}

/* ------------------------------------------------------------------ mobile: copy in a bottom zone above the card */

@media (max-width: 700px) {
  :root { --m: 20px; --tab-w: 0px; }

  body { font-size: 16px; }
  .tab, .thumb, .live, .scroll-hint, .outline { display: none !important; }
  .hero__para::before, .side-para::before, .crowd__body::before, .close::before, .fades__left::before, .note::before,
  .hero::before, .crowd__glow::before, .paint__head::before { display: none; }

  .bar { top: 16px; right: var(--m); flex-wrap: wrap; row-gap: 6px; }
  .brand { height: 18px; }
  .brand__img { height: 18px; }
  .brand__dot { top: 4px; }
  .concept { order: 3; flex-basis: 100%; font-size: 10px; padding-left: 0; }
  body:not(.show-logo) .concept { margin-left: 0; }
  .menu { display: inline-flex; }
  .nav__links {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    min-width: 160px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: rgba(27, 22, 20, 0.86);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s, transform 0.2s var(--ease-out), visibility 0s linear 0.2s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s, transform 0.2s var(--ease-out); }
  .nav__links a { font-size: 13px; }

  /* the card: full width at the bottom, clocks inside */
  .card {
    left: var(--m);
    right: var(--m);
    bottom: var(--m);
    width: auto;
    height: auto;
    max-height: 210px;
    padding: 14px 16px;
  }
  .card__slot { display: none; }
  .card__clocks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: center;
  }
  .card__clocks .cd { margin: 0; gap: 10px; }
  .card__clocks .cd__txt { display: flex; flex-direction: column; gap: 4px; }
  .card__clocks b {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--ink-2);
    text-shadow: none;
  }
  .card__clocks .cd__v { font-size: 15px; }
  .card__clocks .clk { margin: 0; padding-left: 14px; border-left: 1px dotted var(--ink-2); }
  .card__clocks .clk__v { font-size: 13px; text-shadow: none; }
  body[data-beat="5"] .card { opacity: 1; transform: none; }
  body.at-foot .card { opacity: 0; }

  .pin__txt b { font-size: 10px; }
  .pin__txt span { font-size: 11px; }

  .beat { height: auto; }
  .beat__frame {
    position: relative;
    inset: auto;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 18px;
    padding: 120px var(--m) 128px;
    pointer-events: auto;
  }
  html.js .beat__frame { opacity: 1; transition: none; }
  .beat__frame::before {
    content: "";
    position: absolute;
    inset: 40% 0 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(16, 11, 8, 0) 0%, rgba(16, 11, 8, 0.55) 45%, rgba(16, 11, 8, 0.7) 100%);
    pointer-events: none;
  }
  .beat--field .beat__frame { justify-content: flex-start; padding-top: 78px; }
  .beat--field .beat__frame::before { inset: 0 0 auto; height: 52%; background: linear-gradient(180deg, rgba(16, 11, 8, 0.45), rgba(16, 11, 8, 0)); }
  .hero, .hero__para, .fades__left, .side-para, .paint__head, .note, .crowd__glow, .crowd__body, .placard, .close, .close__note {
    position: relative;
    inset: auto;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: auto;
    max-width: 100%;
    transform: none;
  }
  .hero { display: flex; }
  .hero__eyebrow { font-size: 14px; }
  .hero__title { font-size: clamp(64px, 20vw, 120px); }
  .hero__para { align-self: flex-end; max-width: 22ch; font-size: 20px; text-align: right; margin-top: 4px; }
  .fades__left { order: 0; }
  .bigfig { margin-bottom: 14px; }
  .side-para { max-width: 30ch; font-size: 20px; }
  .paint__head { white-space: normal; }
  .sentence { font-size: clamp(36px, 10vw, 44px); }
  .giant { white-space: normal; font-size: clamp(56px, 17vw, 72px); }
  .crowd__glow .eyebrow { font-size: 14px; margin-bottom: 10px; }
  .crowd__body { max-width: 34ch; font-size: 16px; }
  .eyebrow { font-size: 14px; }
  .placard { width: 100%; }
  .close { text-align: left; }
  .close__title { font-size: clamp(52px, 16vw, 72px); }
  .close__body { margin-left: 0; font-size: 16px; }
  .close__cta { justify-content: flex-start; }
  .close__note { white-space: normal; margin-top: 4px; }

  .foot { padding: 12vh var(--m) calc(var(--m) + 10px); }
  .foot__grid { grid-template-columns: 1fr; gap: 0; }
  .foot__grid > div + div { margin-top: 30px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div { padding: 12px 12px 12px 0 !important; border-left: 0 !important; border-bottom: 1px dotted var(--line); }
}

/* ------------------------------------------------------------------ reduced motion: 200 ms opacity fades, no blur, no flare */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  html.js [data-blur] .w,
  html.js [data-blur-block],
  html.js .is-on [data-blur] .w,
  html.js .is-on [data-blur-block],
  html.js .beat__frame:not(.is-on) [data-blur] .w {
    filter: none !important;
    transform: none !important;
    transition: opacity 0.2s linear !important;
    transition-delay: 0s !important;
  }
  .card__slot { filter: none !important; }
  .edge { display: none; }
  .loader, .loader__tile, #gl, .poster { transition-duration: 0.2s; }
  .loader.is-exit .loader__tile { transform: none; }
}
html.rm [data-blur] .w,
html.rm [data-blur-block],
html.rm .is-on [data-blur] .w,
html.rm .is-on [data-blur-block],
html.rm .beat__frame:not(.is-on) [data-blur] .w {
  filter: none !important;
  transform: none !important;
  transition: opacity 0.2s linear !important;
  transition-delay: 0s !important;
}
html.rm .edge { display: none; }
