/* AKEL v2 — one stage, editorial type on top. */
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin.woff2") format("woff2"); font-weight: 200 600; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin-ext.woff2") format("woff2"); font-weight: 200 600; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: italic; src: url("fonts/newsreader-italic-latin.woff2") format("woff2"); font-weight: 200 600; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC; }
@font-face { font-family: "Newsreader"; font-style: italic; src: url("fonts/newsreader-italic-latin-ext.woff2") format("woff2"); font-weight: 200 600; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+1E00-1E9F; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-latin.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JB Mono"; src: url("fonts/jbmono-latin.woff2") format("woff2"); font-weight: 400 500; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC; }
@font-face { font-family: "JB Mono"; src: url("fonts/jbmono-latin-ext.woff2") format("woff2"); font-weight: 400 500; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+1E00-1E9F; }

:root {
  --spruce: #10251F;
  --spruce-2: #0B1A16;
  --cream: #EFE8DA;
  --cream-dim: rgba(239, 232, 218, .74);
  --paper: #E9E1D0;
  --ink: #1C211D;
  --ink-dim: rgba(28, 33, 29, .72);
  --red: #C8321E;
  --red-lt: #E0553B;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JB Mono", ui-monospace, Menlo, monospace;
  --pad: clamp(20px, 3.4vw, 56px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--spruce); color: var(--cream); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 15.5px/1.38 var(--sans); font-stretch: 100%; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--red); color: var(--cream); }

.skip { position: fixed; left: 12px; top: -60px; z-index: 50; background: var(--cream); color: var(--ink); padding: 10px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }

#stage, #flat { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; display: block; z-index: 0; }
#flat { display: none; }
html.no-gl #stage { display: none; }
html.no-gl #flat { display: block; }
.track { position: relative; z-index: -1; pointer-events: none; }

/* ---------- header ---------- */
.top { position: fixed; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--pad) * .55) var(--pad); color: var(--cream); transition: color .5s var(--ease); pointer-events: none; }
.top > * { pointer-events: auto; }
.top::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 170%; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 16, 13, .5) 0%, rgba(8, 16, 13, .22) 55%, rgba(8, 16, 13, 0) 100%); transition: opacity .5s var(--ease); }
html.on-paper .top::before, html.at-foot .top::before { opacity: 0; }
.mark, .lang { text-shadow: 0 1px 10px rgba(6, 12, 10, .35); }
html.on-paper .mark, html.on-paper .lang { text-shadow: none; }
.mark { font: 760 21px/1 var(--sans); font-stretch: 125%; letter-spacing: .06em; text-decoration: none; }
.top-r { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; gap: 2px; font: 500 11px/1 var(--mono); letter-spacing: .14em; }
.lang button { background: none; border: 0; padding: 9px 7px; cursor: pointer; opacity: .55; transition: opacity .3s; }
.lang button[aria-pressed="true"] { opacity: 1; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.lang button:hover { opacity: 1; }
.pill { display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 500 14px/1 var(--sans); padding: 13px 20px 13px 18px; border-radius: 999px; background: var(--ink); color: var(--cream);
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red-lt); transition: transform .35s var(--ease); }
.pill:hover { transform: translateY(-1px); text-shadow: none; }
.pill { text-shadow: none; }
.pill:hover::before { transform: scale(1.5); }
.pill-lt { background: var(--cream); color: var(--ink); }
.pill-lt::before { background: var(--red); }
.top .pill { background: rgba(14, 22, 19, .55); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgba(239, 232, 218, .16); }
html.on-paper .top { color: var(--ink); }
html.on-paper .top .pill { background: var(--ink); box-shadow: none; }
:focus-visible { outline: 2px solid var(--red-lt); outline-offset: 3px; border-radius: 4px; }

/* ---------- rail ---------- */
.rail { position: fixed; z-index: 15; left: var(--pad); bottom: calc(var(--pad) * .9); color: var(--cream); transition: color .5s var(--ease), opacity .6s; }
html.on-paper .rail { color: var(--ink); }
html.at-foot .rail { opacity: 0; pointer-events: none; }
.rail ol { list-style: none; margin: 0; padding: 0 0 0 18px; display: grid; gap: 2px; }
.rail a { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 400 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 0; opacity: .5; transition: opacity .4s var(--ease); }
.rail a i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; transform: scale(.6); transition: transform .4s var(--ease), background .4s; margin-left: -18px; margin-right: 6px; }
.rail a:hover { opacity: .85; }
.rail a.on { opacity: 1; }
.rail a.on i { transform: scale(1.3); background: var(--red-lt); }
.rail-line { position: absolute; left: 2px; top: 5px; bottom: 5px; width: 1px; background: currentColor; opacity: .25; }
.rail-line b { position: absolute; inset: 0; background: currentColor; transform-origin: top; transform: scaleY(var(--rp, 0)); opacity: 1; }

/* ---------- beats ---------- */
.beat { position: fixed; z-index: 10; left: calc(var(--pad) + clamp(0px, 9vw, 150px)); top: 50%; transform: translateY(-46%);
  width: min(560px, 44vw); visibility: hidden; pointer-events: none; }
.beat.on { visibility: visible; }
.beat { text-shadow: 0 1px 2px rgba(6, 12, 10, .35), 0 2px 26px rgba(6, 12, 10, .45); }
.beat .body, .beat .specs dd { color: rgba(239, 232, 218, .86); }
.beat.on a, .beat.on button { pointer-events: auto; }
.beat-top { top: calc(var(--pad) * 2.6); transform: none; }
.beat-r { left: auto; right: calc(var(--pad) + 2vw); }
.hero { width: min(640px, 50vw); }

.lbl { margin: 0 0 18px; font: 400 11px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cream-dim); display: flex; align-items: center; gap: 10px; }
.lbl::before { content: ""; width: 18px; height: 1px; background: var(--red-lt); }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 300; font-variation-settings: "opsz" 72; letter-spacing: -.022em; line-height: .98; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 5.1vw, 5rem); }
h2 { font-size: clamp(2.2rem, 4.1vw, 4.2rem); }
.ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.ln > span { display: block; will-change: transform, opacity; }
.ln:nth-child(2) > span { font-style: italic; }
.body { margin: 22px 0 0; max-width: 40ch; color: var(--cream-dim); font-size: 15.5px; }
.acts { margin: 30px 0 0; }
.fade { will-change: opacity, transform; }

.specs { margin: 26px 0 0; display: grid; gap: 0; max-width: 46ch; }
.specs div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(239, 232, 218, .18); }
.specs div:last-child { border-bottom: 1px solid rgba(239, 232, 218, .18); }
.specs dt { font: 400 11px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cream-dim); }
.specs dd { margin: 0; font-size: 14.5px; }

.yarns { list-style: none; margin: 26px 0 0; padding: 0; columns: 2; column-gap: 34px; max-width: 30em; }
.yarns li { font: 300 clamp(1.25rem, 1.9vw, 1.7rem)/1.18 var(--serif); font-variation-settings: "opsz" 48; padding: 7px 0 9px; border-top: 1px solid rgba(239, 232, 218, .18); break-inside: avoid; display: flex; gap: 12px; align-items: baseline; }
.yarns li::before { content: counter(y, decimal-leading-zero); counter-increment: y; font: 400 10px/1 var(--mono); letter-spacing: .1em; color: var(--red-lt); }
.yarns { counter-reset: y; }
.note { margin: 16px 0 0; font: 400 11px/1.5 var(--mono); letter-spacing: .08em; color: var(--cream-dim); }

/* ---------- quote sheet ---------- */
.sheet { position: fixed; z-index: 10; inset: 0; display: flex; align-items: center; visibility: hidden; color: var(--ink); pointer-events: none; }
.sheet.on { visibility: visible; pointer-events: auto; }
.sheet-in { margin-left: calc(var(--pad) + clamp(0px, 9vw, 150px)); width: min(560px, 46vw); padding-top: 40px; }
.sheet .lbl { color: var(--ink-dim); }
.sheet .lbl::before { background: var(--red); }
.sheet .body { color: var(--ink-dim); margin-top: 16px; }
#qform { margin-top: 26px; display: grid; gap: 12px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fld { display: grid; gap: 6px; }
.fld > span { font: 400 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); }
.fld input, .fld textarea { width: 100%; border: 0; border-bottom: 1px solid rgba(28, 33, 29, .32); background: rgba(255, 252, 244, .38);
  padding: 11px 12px; border-radius: 4px 4px 0 0; font-size: 15px; color: var(--ink); transition: border-color .3s, background .3s; resize: vertical; }
.fld input:focus, .fld textarea:focus { outline: none; border-bottom-color: var(--red); background: rgba(255, 252, 244, .7); }
.fld textarea::placeholder { color: rgba(28, 33, 29, .45); }
.fld.bad input, .fld.bad textarea { border-bottom-color: var(--red); background: rgba(200, 50, 30, .07); }
.send { display: flex; align-items: center; gap: 18px; margin-top: 8px; flex-wrap: wrap; }
.hint { margin: 0; font-size: 12.5px; color: var(--ink-dim); max-width: 28ch; }
.status { margin: 0; min-height: 1.3em; font-size: 13.5px; color: #8F2414; }
.status.ok { color: var(--ink); }
.direct { margin: 18px 0 0; font-size: 13.5px; color: var(--ink-dim); }
.direct a { color: var(--ink); text-underline-offset: 3px; }

/* ---------- footer ---------- */
.foot { position: fixed; z-index: 10; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: var(--pad); visibility: hidden; color: var(--cream); }
.foot.on { visibility: visible; }
.foot-mark { position: relative; width: 100%; aspect-ratio: 1000 / 260; max-height: 42vh; display: grid; place-items: center; }
.foot-mark svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.foot-mark rect { fill: none; stroke: var(--cream); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--draw, 0)); opacity: .55; }
.foot-mark span { font: 760 clamp(4rem, 17vw, 17rem)/1 var(--sans); font-stretch: 125%; letter-spacing: .04em; transform: translateY(calc((1 - var(--draw, 0)) * 30px)); opacity: var(--draw, 0); }
.foot-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; margin-top: calc(var(--pad) * .8); align-items: start; }
.foot-cols p { margin: 0 0 6px; }
.foot-cols .lbl { margin-bottom: 12px; }
.foot-cols a { text-underline-offset: 3px; }
.foot-line { font: 300 clamp(1.4rem, 2.2vw, 2rem)/1.08 var(--serif); font-variation-settings: "opsz" 60; letter-spacing: -.015em; }
.legal { margin: calc(var(--pad) * .8) 0 0; font: 400 11px/1 var(--mono); letter-spacing: .14em; color: var(--cream-dim); }
.foot .fade { opacity: var(--draw, 0); }

/* ---------- scroll cue ---------- */
.cue { position: fixed; z-index: 12; right: var(--pad); bottom: calc(var(--pad) * .9); display: flex; align-items: center; gap: 10px;
  font: 400 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cream-dim); transition: opacity .6s; }
.cue i { width: 1px; height: 34px; background: linear-gradient(var(--cream), transparent); transform-origin: top; animation: cue 2.4s var(--ease) infinite; }
html.moved .cue { opacity: 0; }
@keyframes cue { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- phone ---------- */
@media (max-width: 760px) {
  body { font-size: 15px; }
  .top { padding: 14px 18px; }
  .mark { font-size: 18px; }
  .top .pill { display: none; }
  .rail { display: none; }
  .beat, .beat-top, .beat-r, .hero { left: 20px; right: 20px; width: auto; top: auto; bottom: calc(26px + env(safe-area-inset-bottom)); transform: none; }
  h1 { font-size: clamp(2.3rem, 10.6vw, 3.2rem); }
  h2 { font-size: clamp(2rem, 9vw, 2.7rem); }
  .body { font-size: 14.5px; margin-top: 14px; }
  .lbl { margin-bottom: 12px; }
  .specs { margin-top: 16px; }
  .specs div { grid-template-columns: 7.6em 1fr; padding: 8px 0; }
  .specs dd { font-size: 13.5px; }
  .yarns { margin-top: 16px; column-gap: 18px; }
  .yarns li { font-size: 1.12rem; padding: 5px 0 6px; }
  .acts { margin-top: 20px; }
  .sheet { align-items: flex-start; overflow-y: auto; }
  .sheet-in { margin: 0; width: 100%; padding: 68px 20px 28px; }
  .sheet h2 { font-size: 2.1rem; }
  .row2 { grid-template-columns: 1fr; gap: 10px; }
  #qform { gap: 10px; margin-top: 18px; }
  .fld input, .fld textarea { padding: 9px 10px; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 20px; }
  .foot-line { grid-column: 1 / -1; }
  .cue { right: 20px; bottom: auto; top: 50%; writing-mode: vertical-rl; }
  .cue i { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .cue i { animation: none; }
  .pill, .pill::before { transition: none; }
}
