:root {
  --bg: #E7E3DC;
  --ink: #111112;
  --ink-soft: #5A5650;
  --line: rgba(17,17,18,.14);
  --accent: #F0507A;
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --text: "Inter Tight", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(20px, 4vw, 64px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: light; } }
:root[data-theme="dark"] { color-scheme: light; }

body[data-ink="light"] { --ink: #F1EEE8; --ink-soft: #A39F98; --line: rgba(241,238,232,.16); }

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-family: var(--text); -webkit-font-smoothing: antialiased; overflow-x: clip; transition: color .5s ease; }
::selection { background: var(--accent); color: #111; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.mono { font: 500 11px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin: 0; }
.kicker { font: 600 12px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; }

/* ---------- fixed layers: ghost word, canvas, hotspot ---------- */
.backdrop { position: fixed; inset: 0; z-index: 0; display: grid; place-items: center; pointer-events: none; overflow: hidden; }
.ghost {
  margin: 0; font-family: var(--display); font-weight: 900; font-stretch: 62%; text-transform: uppercase;
  font-size: clamp(9rem, 34vw, 40rem); line-height: .8; letter-spacing: -0.01em;
  color: var(--ink); opacity: .07; white-space: nowrap; will-change: transform, opacity;
  transition: opacity .6s ease;
}
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 1; pointer-events: none; display: block; }

.hotspot { position: fixed; left: 0; top: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .35s ease; will-change: transform; }
.hotspot__dot { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(240,80,122,.22); }
.hotspot__dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(240,80,122,.6); animation: ping 1.8s cubic-bezier(.2,.7,.2,1) infinite; }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
.hotspot__line { position: absolute; left: 0; top: 0; width: 90px; height: 1px; background: var(--ink); opacity: .55; transform-origin: 0 0; transform: rotate(-32deg); }
.hotspot__label { position: absolute; left: 78px; top: -62px; white-space: nowrap; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); background: rgba(14,14,15,.6); border: 1px solid var(--line); padding: 8px 10px; border-radius: 3px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

.loader { position: fixed; left: 50%; bottom: 40px; translate: -50% 0; z-index: 10; display: grid; gap: 10px; justify-items: center; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); transition: opacity .5s ease; }
.loader i { display: block; width: 140px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.loader i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--load, 0)); transition: transform .2s; }
.loader.is-done { opacity: 0; pointer-events: none; }

/* ---------- nav ---------- */
.nav.is-solid { background: color-mix(in srgb, var(--ground, #E7E3DC) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav { transition: background .4s ease, color .5s ease; position: fixed; top: 0; left: 0; right: 0; z-index: 8; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px var(--gutter); color: var(--ink); transition: color .5s ease; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 15px/1 var(--display); font-stretch: 112%; letter-spacing: .14em; }
.brand svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 3; }
.nav nav { display: flex; gap: 28px; }
.nav nav a { font: 500 14px/1 var(--text); text-decoration: none; padding: 10px 0; opacity: .8; transition: opacity .2s; }
.nav nav a:hover { opacity: 1; }
.pill { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }

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

/* ---------- hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; position: relative; display: grid; grid-template-columns: 1fr auto; align-items: end; padding: 0 var(--gutter) clamp(32px, 7vh, 72px); gap: 32px; }
.hero h1 { font-family: var(--display); font-weight: 800; font-stretch: 75%; text-transform: uppercase; font-size: clamp(2.6rem, 5.6vw, 6rem); line-height: .9; letter-spacing: -0.005em; margin: 0 0 18px; }
.lede { font-size: clamp(15px, 1.2vw, 17px); line-height: 1.55; color: var(--ink-soft); max-width: 40ch; margin: 0; }
.hero__aside { display: grid; gap: 8px; justify-items: end; text-align: right; }

/* ---------- pinned sections ---------- */
.pin { height: var(--span, 200vh); position: relative; }
.pin__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
[data-show] { opacity: 0; transition: none; will-change: opacity, transform; }

.spin__lines p {
  position: absolute; left: var(--gutter); bottom: clamp(48px, 12vh, 120px); margin: 0; max-width: 11ch;
  font-family: var(--display); font-weight: 800; font-stretch: 70%; text-transform: uppercase;
  font-size: clamp(3rem, 7.4vw, 8rem); line-height: .86; letter-spacing: -0.005em;
}

.anatomy__kicker { position: absolute; top: 96px; left: var(--gutter); }
.parts { list-style: none; margin: 0; padding: 0; }
.parts li { position: absolute; left: var(--gutter); bottom: clamp(48px, 12vh, 120px); max-width: 30rem; }
.parts h2 { font-family: var(--display); font-weight: 800; font-stretch: 75%; text-transform: uppercase; font-size: clamp(2.2rem, 4.2vw, 4.4rem); line-height: .9; margin: 0 0 16px; }
.parts p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink-soft); max-width: 34ch; }
.ticks { position: absolute; right: var(--gutter); top: 50%; translate: 0 -50%; display: grid; gap: 10px; }
.ticks i { display: block; width: 26px; height: 2px; background: var(--line); transition: background .3s, width .3s; }
.ticks i.on { background: var(--accent); width: 40px; }

/* ---------- colour ---------- */
.colour { height: 190vh; position: relative; }
.colour__stage { position: sticky; top: 0; height: 100vh; height: 100svh; cursor: grab; touch-action: pan-y; outline: none; }
.colour__stage:active { cursor: grabbing; }
.colour__stage:focus-visible { outline: 2px solid var(--accent); outline-offset: -8px; }
.colour__copy { position: absolute; left: var(--gutter); top: clamp(96px, 16vh, 160px); }
.colour h2 { font-family: var(--display); font-weight: 800; font-stretch: 72%; text-transform: uppercase; font-size: clamp(2.6rem, 5vw, 5.4rem); line-height: .88; margin: 0 0 16px; }
.colour__copy p { margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.55; max-width: 30ch; }
.swatches { position: absolute; left: 50%; bottom: clamp(36px, 8vh, 80px); translate: -50% 0; display: flex; gap: 10px; padding: 8px; border-radius: 999px; background: rgba(255,255,255,.5); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.swatches button { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px 0 8px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--ink); font: 500 14px/1 var(--text); cursor: pointer; transition: background .3s, border-color .3s; }
.swatches button i { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--sw) 0 58%, var(--sw2) 58% 100%); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.swatches button[aria-checked="true"] { background: #fff; border-color: var(--line); }
.swatches button:hover { border-color: var(--line); }
.colour__name { position: absolute; right: var(--gutter); top: clamp(104px, 17vh, 168px); }

/* ---------- about ---------- */
.about { position: relative; padding: clamp(120px, 20vh, 220px) var(--gutter) clamp(100px, 16vh, 180px); }
.about__inner { max-width: 1180px; }
.about h2 { font-family: var(--display); font-weight: 800; font-stretch: 75%; text-transform: uppercase; font-size: clamp(2.4rem, 5vw, 5.4rem); line-height: .9; margin: 0 0 28px; max-width: 14ch; }
.about__lede { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--ink-soft); max-width: 52ch; margin: 0 0 64px; }
.about__grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; max-width: 60%; }
.about__grid li { border-top: 1px solid var(--line); padding-top: 18px; }
.about__grid h3 { font: 600 17px/1.3 var(--text); margin: 14px 0 8px; }
.about__grid p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }

/* ---------- finale ---------- */
.finale { min-height: 100vh; min-height: 100svh; position: relative; display: grid; grid-template-rows: 1fr auto; padding: 96px var(--gutter) 28px; }
.finale__word { margin: 0; align-self: center; font-family: var(--display); font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(5rem, 17vw, 19rem); line-height: .8; letter-spacing: -0.005em; }
.finale__end { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: end; }
.cta { height: 54px; padding: 0 26px; border-radius: 999px; border: 0; background: var(--ink); color: var(--bg); font: 600 15px/1 var(--text); cursor: pointer; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.cta:hover { transform: translateY(-2px); }
.legal { margin: 0; justify-self: end; max-width: 68ch; text-align: right; font: 400 11px/1.65 var(--mono); color: var(--ink-soft); }

.noscript { position: fixed; inset: auto 0 0 0; z-index: 20; padding: 16px; background: #111; color: #fff; text-align: center; }

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .nav { padding: 14px 20px; }
  .nav nav { display: none; }
  .pill { padding: 8px 10px; font-size: 10px; }
  .hero { grid-template-columns: 1fr; padding: 0 20px 32px; }
  .hero h1 { font-size: 2.6rem; }
  .hero__aside { display: none; }
  .spin__lines p { left: 20px; font-size: 3.2rem; bottom: 56px; }
  .anatomy__kicker { top: 76px; left: 20px; }
  .parts li { left: 20px; right: 20px; bottom: 40px; }
  .parts h2 { font-size: 2.2rem; }
  .parts p { font-size: 15px; }
  .ticks { right: 20px; top: 84px; translate: 0 0; grid-auto-flow: column; }
  .ticks i { width: 18px; } .ticks i.on { width: 28px; }
  .hotspot__line { width: 54px; } .hotspot__label { left: 46px; top: -42px; font-size: 10px; }
  .colour__copy { left: 20px; top: 76px; }
  .colour h2 { font-size: 2.6rem; }
  .colour__name { display: none; }
  .swatches { bottom: max(24px, env(safe-area-inset-bottom)); gap: 4px; padding: 6px; }
  .swatches button { padding: 0 12px 0 6px; font-size: 13px; height: 42px; }
  .about__grid { grid-template-columns: 1fr; max-width: none; gap: 24px; }
  .finale { padding: 88px 20px 24px; }
  .finale__word { font-size: 30vw; align-self: start; margin-top: 8vh; }
  .finale__end { grid-template-columns: 1fr; gap: 20px; }
  .legal { justify-self: start; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .hotspot__dot::after { animation: none; }
}
