/* HOMINVEST — hero (sTaHuEce Industries). Palette from the logo: slate #2e414a + copper #b15b41. */
@font-face { font-family: "Noto Serif Display"; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/noto-serif-display-greek-300-normal.woff2) format("woff2"); unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family: "Noto Serif Display"; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/noto-serif-display-latin-300-normal.woff2) format("woff2"); 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: "Noto Serif Display"; font-style: italic; font-weight: 300; font-display: swap; src: url(../fonts/noto-serif-display-greek-300-italic.woff2) format("woff2"); unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family: "Noto Serif Display"; font-style: italic; font-weight: 300; font-display: swap; src: url(../fonts/noto-serif-display-latin-300-italic.woff2) format("woff2"); 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: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(../fonts/manrope-greek-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(../fonts/manrope-latin-wght-normal.woff2) format("woff2-variations"); 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: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/jetbrains-mono-greek-400-normal.woff2) format("woff2"); unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); 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; }

:root {
  --slate: #2e414a; --slate-2: #23333b; --slate-3: #172228;
  --copper: #b15b41; --copper-2: #cf7f5d; --copper-3: #eaa889;
  --paper: #f5f0e8; --ink: #1c2930; --line: #a9c6d4;
  --day: 0; --hud: 1; --prog: 0; --end: 0;
  --fg: color-mix(in oklab, var(--ink) calc(var(--day) * 100%), var(--paper));
  --fg-2: color-mix(in oklab, var(--fg) 74%, transparent);
  --fg-3: color-mix(in oklab, var(--fg) 52%, transparent);
  --rule: color-mix(in oklab, var(--fg) 22%, transparent);
  --accent: color-mix(in oklab, var(--copper) calc(var(--day) * 100%), var(--copper-2));
  --serif: "Noto Serif Display", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;
  --pad: clamp(20px, 4.2vw, 64px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--slate); color: var(--fg); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, p, figure, blockquote, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* the listings list is for screen readers and search engines; a keyboard user who tabs into it sees it */
.sr-only:focus-within { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; display: grid; gap: 4px; padding: 12px 14px; border-radius: 10px; background: var(--paper); color: var(--ink); font-size: 14px; }
.sr-only:focus-within a { display: block; min-height: 44px; padding: 10px 4px; }
:focus-visible { outline: 2px solid var(--copper-2); outline-offset: 3px; border-radius: 4px; }

/* ---------- top bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: max(14px, env(safe-area-inset-top)) var(--pad) 14px; color: var(--fg);
  opacity: 0; transform: translateY(-10px); transition: opacity .9s var(--ease) .2s, transform .9s var(--ease) .2s;
}
.is-live .bar, .no-gl .bar { opacity: 1; transform: none; }
.bar__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--copper); min-height: 48px; }
.bar__mark { width: 38px; height: 35px; color: color-mix(in oklab, var(--copper) calc(var(--day) * 100%), var(--copper-2)); }
.bar__name { display: grid; gap: 5px; }
.bar__word { width: 112px; height: 12px; color: color-mix(in oklab, var(--copper) calc(var(--day) * 100%), var(--copper-2)); }
.bar__sub { font: 500 9.5px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--fg-2); }
.bar__nav { display: flex; align-items: center; gap: 8px; }
.bar__link, .bar__call {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 999px;
  font: 600 13.5px/1 var(--sans); letter-spacing: .01em; text-decoration: none; transition: background .3s, color .3s, border-color .3s;
}
.bar__link { color: var(--fg); }
.bar__link svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.bar__link:hover { color: var(--accent); }
.bar__call { border: 1px solid var(--rule); }
.bar__call svg { width: 16px; height: 16px; fill: currentColor; color: var(--accent); }
.bar__call:hover { border-color: var(--accent); }

/* ---------- story: a tall section, the stage sticks while the city plays ---------- */
.story { position: relative; height: 640vh; }
/* stage = the visible viewport (dvh: follows the mobile URL bar, so nothing hides behind it and no band shows
   below); canvas = the largest viewport (lvh), so the bar sliding in/out never stretches or re-allocates it */
.stage { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; overflow: clip; isolation: isolate; background: var(--slate); }
.gl { position: absolute; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; opacity: 0; transition: opacity .6s ease; }
.is-gl .gl { opacity: 1; }

/* legibility veils: slate on the dark phases, paper by day. The text veils follow the chapters (--txt: how much
   chapter text is on screen, --veil: the same incl. the contact card), so between chapters the city is seen whole. */
:root { --txt: 1; --veil: 1; }
.shade { position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: 0; transition: opacity 1.4s ease; }
.is-live .shade { opacity: 1; }
.shade::before, .shade::after { content: ""; position: absolute; inset: 0; transition: opacity .3s; }
.shade::before {
  opacity: calc(1 - var(--day));
  background:
    linear-gradient(90deg, rgb(23 34 40 / calc(.72 * var(--txt))) 0%, rgb(23 34 40 / calc(.38 * var(--txt))) 34%, rgb(23 34 40 / 0) 56%),
    linear-gradient(0deg, rgb(23 34 40 / calc(.78 * var(--end))) 0%, rgb(23 34 40 / 0) 46%),
    linear-gradient(180deg, rgb(23 34 40 / .5) 0%, rgb(23 34 40 / 0) 16%);
}
.shade::after {
  opacity: var(--day);
  background:
    linear-gradient(90deg, rgb(245 240 232 / calc(.9 * var(--txt))) 0%, rgb(245 240 232 / calc(.62 * var(--txt))) 32%, rgb(245 240 232 / 0) 55%),
    linear-gradient(180deg, rgb(245 240 232 / .55) 0%, rgb(245 240 232 / 0) 16%);
}

/* ---------- blueprint HUD ---------- */
.hud { position: absolute; inset: 0; z-index: 2; pointer-events: none; color: color-mix(in oklab, var(--ink) calc(var(--day) * 100%), var(--line)); opacity: 0; transition: opacity 1.2s var(--ease) .4s; }
.is-live .hud { opacity: var(--hud); transition-delay: 0s; transition-duration: .3s; }
.hud__c { position: absolute; width: 18px; height: 18px; border: 0 solid currentColor; opacity: .55; }
.hud__c--tl { top: 12px; left: 12px; border-width: 1px 0 0 1px; }
.hud__c--tr { top: 12px; right: 12px; border-width: 1px 1px 0 0; }
.hud__c--bl { bottom: 12px; left: 12px; border-width: 0 0 1px 1px; }
.hud__c--br { bottom: 12px; right: 12px; border-width: 0 1px 1px 0; }
.hud__meta { position: absolute; right: calc(var(--pad) + 4px); bottom: 26px; display: grid; gap: 4px; text-align: right; font: 400 10.5px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.hud__north { position: absolute; right: calc(var(--pad) + 4px); bottom: 82px; display: grid; justify-items: center; gap: 4px; font: 400 10px/1 var(--mono); opacity: .85; }
.hud__north-arrow { width: 26px; height: 26px; transform: rotate(var(--rot, 0deg)); }
.hud__north-arrow circle { fill: none; stroke: currentColor; stroke-width: 1; opacity: .5; }
.hud__north-arrow path { fill: currentColor; }
.hud__bar { position: absolute; right: calc(var(--pad) + 52px); bottom: 88px; display: grid; justify-items: end; gap: 6px; font: 400 10px/1 var(--mono); letter-spacing: .1em; opacity: .8; }
.hud__bar-line { display: block; width: var(--w, 80px); height: 6px; border: 1px solid currentColor; border-top: 0; transition: width .25s linear; }
.hud__scale { opacity: .7; }

/* ---------- loader: the mark draws itself, then the 3D sculpture takes its place ---------- */
.loader { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; background: var(--slate); transition: opacity .55s ease .05s, visibility 0s linear .6s; }
.is-gl .loader { opacity: 0; visibility: hidden; }
.loader__mark { width: min(calc(34vh * 1.10267), 78vw); width: min(calc(34svh * 1.10267), 78vw); height: auto; aspect-ratio: 637.99 / 578.58; overflow: visible; }
.loader__path { fill: none; stroke: var(--copper); stroke-width: 20.98; stroke-miterlimit: 4; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.45s cubic-bezier(.65, .05, .35, 1) .2s forwards; }
.loader__win { fill: var(--copper); opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; transform: scale(.3); animation: pop .55s cubic-bezier(.2, .9, .3, 1.35) 1.55s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; transform: none; } }

/* ---------- chapters ---------- */
.chap { position: absolute; z-index: 3; --k: 0; opacity: min(1, calc(var(--k) * 3)); pointer-events: none; color: var(--fg); }
.chap.is-on { pointer-events: auto; }
.chap .r { opacity: calc(var(--k) * 2.2 - var(--i, 0) * .22); transform: translateY(calc((1 - var(--k)) * (18px + var(--i, 0) * 12px))); }
[data-i="1"] { --i: 1; } [data-i="2"] { --i: 2; } [data-i="3"] { --i: 3; } [data-i="4"] { --i: 4; } [data-i="5"] { --i: 5; }

.eyebrow, .num { display: flex; align-items: center; gap: 14px; font: 500 11.5px/1.5 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--fg-2); }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--accent); }
.num span { font: 400 11px/1 var(--mono); letter-spacing: .1em; color: var(--accent); padding: 6px 8px; border: 1px solid color-mix(in oklab, var(--accent) 55%, transparent); border-radius: 3px; }
.title, .h2 { font-family: var(--serif); font-weight: 300; letter-spacing: -.018em; color: var(--fg); }
.title em, .h2 em { font-style: italic; color: var(--accent); }

.chap--hero { left: var(--pad); top: 50%; transform: translateY(-46%); width: min(620px, 50vw); display: grid; gap: 26px; }
.title { font-size: clamp(46px, 6.6vw, 112px); line-height: .96; margin: 4px 0 2px; }
.title .ln { display: block; overflow: hidden; padding: 0 .06em .1em 0; margin-bottom: -.1em; }
.title .ln > span { display: inline-block; transform: translateY(108%); transition: transform 1.2s var(--ease); }
.title .ln:nth-child(2) > span { transition-delay: .09s; } .title .ln:nth-child(3) > span { transition-delay: .18s; }
.is-live .title .ln > span, .no-gl .title .ln > span { transform: none; }
.lead { max-width: 30em; font-size: clamp(15px, 1.15vw, 17.5px); line-height: 1.65; color: var(--fg-2); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px;
  font: 650 14.5px/1 var(--sans); letter-spacing: .01em; text-decoration: none; transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.btn svg { fill: currentColor; }
.btn svg[viewBox="0 0 12 12"] { fill: none; stroke: currentColor; stroke-width: 1.4; }
.btn--copper { background: var(--copper); color: #fff7f1; }
.btn--copper:hover { background: #9d4f38; transform: translateY(-1px); }
.btn--ghost { border: 1px solid var(--rule); color: var(--fg); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.trust { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 13px; color: var(--fg-2); }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li + li::before { content: ""; width: 4px; height: 4px; margin-right: 18px; border-radius: 50%; background: var(--accent); }
.trust b, .rating b { color: var(--fg); font-weight: 700; }
.stars { color: var(--copper-2); letter-spacing: .08em; font-size: 12px; }

.scroll-cue {
  position: absolute; z-index: 3; left: var(--pad); bottom: 22px; display: flex; align-items: center; gap: 14px; min-height: 48px;
  font: 500 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--fg-3);
  opacity: 0; transition: opacity 1s ease .9s;
}
.is-live .scroll-cue { opacity: calc(1 - min(1, var(--prog) * 14)); }
.is-ready .scroll-cue { transition: opacity .3s ease; }
.scroll-cue { pointer-events: none; }
.is-live .scroll-cue { pointer-events: auto; }
.is-scrolled .scroll-cue { pointer-events: none; }   /* faded out → must not catch taps meant for the text above it */
.scroll-cue i { position: relative; width: 1px; height: 38px; background: var(--rule); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--accent); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

.chap--side { left: var(--pad); top: 50%; transform: translateY(-50%); width: min(540px, 44vw); display: grid; gap: 22px; }
.h2 { font-size: clamp(36px, 4.4vw, 72px); line-height: 1.02; }
.body { font-size: clamp(15px, 1.1vw, 17px); line-height: 1.7; color: var(--fg-2); max-width: 31em; }
.block { display: grid; border-top: 1px solid var(--rule); font-size: 14px; }
.block > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.block dt { font: 400 11px/1.6 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.block dd { color: var(--fg-2); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { padding: 10px 16px; border: 1px solid var(--rule); border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--fg); background: color-mix(in oklab, var(--paper) calc(var(--day) * 50%), transparent); }
.quote { display: grid; gap: 14px; padding-left: 22px; border-left: 1px solid var(--accent); }
.quote blockquote { font: italic 300 clamp(19px, 1.6vw, 25px)/1.45 var(--serif); color: var(--fg); }
.quote figcaption { font: 400 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.rating { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--fg-2); }
.rating b { font: 300 34px/1 var(--serif); }

/* final frame: the 3D sculpture is the mark, the wordmark hangs under it exactly as in the logo */
.lockup {
  position: absolute; z-index: 3; left: var(--lx, 50%); top: var(--ly, 60%); pointer-events: none;
  width: calc(var(--a, 100px) * 4.8281); height: auto; aspect-ratio: 993 / 199;
  transform: translate(calc(var(--a, 100px) * -.7998), calc(var(--a, 100px) * .2431));
  opacity: var(--end); fill: var(--copper-2);
}
.lockup__word { opacity: calc(var(--end) * 1.6 - .2); }
.lockup__rule { transform-box: fill-box; transform-origin: 50% 50%; transform: scaleX(var(--end)); }
.lockup__sub { opacity: calc(var(--end) * 1.8 - .6); }

.chap--end {
  left: 0; right: 0; bottom: 0; padding: 0 calc(var(--pad) + 4px) max(28px, env(safe-area-inset-bottom));
  display: grid; grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1.25fr); align-items: end; gap: 28px 44px;
}
.chap--end .h2 { font-size: clamp(30px, 2.6vw, 44px); margin: 14px 0 10px; text-wrap: balance; }
.end__who { font-size: 13px; color: var(--fg-3); }
.end__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.end__info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 14px 26px; font-size: 13.5px; line-height: 1.5; }
.end__info dt { font: 400 10.5px/1.6 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.end__info dd { color: var(--fg-2); overflow-wrap: break-word; }
.end__info a { text-decoration: none; display: inline-flex; align-items: center; min-height: 48px; text-decoration-line: underline; text-decoration-color: var(--rule); text-underline-offset: 5px; }
.end__info dd { line-height: 1.35; }
.end__info > div { display: grid; align-content: start; }
.end__info a:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* ---------- listings from the CMS: pins in the 3D city + one card ---------- */
.pins { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: var(--v, 0); }
.pin {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: -44px 0 0 -22px; padding: 0 0 6px;
  display: grid; justify-items: center; align-content: end; pointer-events: none; transition: opacity .25s; will-change: transform;
}
.pins.is-on .pin { pointer-events: auto; cursor: pointer; }
.pins .pin.is-off { opacity: 0; pointer-events: none; }
.pin__dot {
  width: 13px; height: 13px; transform: rotate(45deg); background: var(--copper-2); border: 2px solid #fff7f1;
  box-shadow: 0 0 0 5px rgb(177 91 65 / .3), 0 6px 14px rgb(0 0 0 / .4); transition: transform .3s var(--ease), background .3s;
}
.pin--closed .pin__dot { background: #8d9aa2; box-shadow: 0 0 0 5px rgb(141 154 162 / .3), 0 6px 14px rgb(0 0 0 / .4); }
.pin__tag {
  position: absolute; bottom: 40px; left: 50%; transform: translate(-50%, 4px); opacity: 0; white-space: nowrap; pointer-events: none;
  padding: 6px 10px; border-radius: 999px; background: rgb(23 34 40 / .9); color: #fff7f1; font: 650 12px/1 var(--sans);
  transition: opacity .25s, transform .25s var(--ease);
}
.pin:hover .pin__dot, .pin:focus-visible .pin__dot, .pin.is-active .pin__dot { transform: rotate(45deg) scale(1.3); background: var(--copper); }
.pin:hover .pin__tag, .pin:focus-visible .pin__tag, .pin.is-active .pin__tag { opacity: 1; transform: translate(-50%, 0); }
.pin:empty .pin__tag, .pin__tag:empty { display: none; }

.lcard {
  position: absolute; z-index: 7; right: calc(var(--pad) + 44px); bottom: 118px; width: min(372px, calc(100% - 2 * var(--pad)));
  display: grid; border-radius: 14px; overflow: hidden; background: #f7f3ec; color: var(--ink);
  box-shadow: 0 34px 70px -24px rgb(0 0 0 / .6), 0 0 0 1px rgb(28 41 48 / .06); animation: lcard-in .4s var(--ease);
}
.lcard[hidden] { display: none; }
@keyframes lcard-in { from { opacity: 0; transform: translateY(14px); } }
.lcard__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; display: grid; place-items: center; background: linear-gradient(160deg, #35505c, #23333b); }
.lcard__media img { width: 100%; height: 100%; object-fit: cover; }
.lcard__ph { width: 64px; height: 58px; color: var(--copper-2); }
.lcard__ribbon { position: absolute; top: 18px; left: -40px; transform: rotate(-35deg); padding: 7px 48px; background: var(--copper); color: #fff7f1; font: 700 10.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; box-shadow: 0 6px 16px rgb(0 0 0 / .3); }
.lcard__body { display: grid; gap: 8px; padding: 18px 20px 20px; }
.lcard__label { font: 600 10.5px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--copper); }
.lcard__title { margin: 0; font: 300 25px/1.12 var(--serif); letter-spacing: -.01em; }
.lcard__area { font-size: 13.5px; color: #5d6b72; }
.lcard__facts { display: flex; flex-wrap: wrap; gap: 6px; }
.lcard__facts li { padding: 6px 10px; border: 1px solid rgb(28 41 48 / .14); border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.lcard__price { display: flex; align-items: baseline; gap: 10px; font: 300 28px/1.1 var(--serif); }
.lcard__price s { font-size: 16px; color: #84919a; }
.lcard__price b { font-weight: 400; }
.lcard__cta { margin-top: 4px; }
.lcard__close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgb(23 34 40 / .72); color: #fff; font: 300 26px/1 var(--sans); }
.lcard__close:hover { background: rgb(23 34 40 / .9); }

/* ---------- chapter rail ---------- */
.rail { position: absolute; z-index: 4; right: calc(var(--pad) - 8px); top: 50%; transform: translateY(-50%); display: grid; gap: 2px; opacity: 0; transition: opacity 1s ease .6s; }
.is-live .rail { opacity: 1; }
.rail__item { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-height: 48px; min-width: 48px; padding: 0 8px; color: var(--fg-3); transition: color .4s; }
.rail__item span { font: 400 10.5px/1 var(--mono); letter-spacing: .1em; }
.rail__item b { font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; max-width: 0; overflow: hidden; opacity: 0; transition: max-width .5s var(--ease), opacity .4s; white-space: nowrap; }
.rail__item::after { content: ""; width: 14px; height: 1px; background: currentColor; transition: width .5s var(--ease); }
.rail__item.is-active, .rail__item:hover { color: var(--fg); }
.rail__item.is-active::after { width: 34px; background: var(--accent); }
.rail__item.is-active b, .rail__item:hover b { max-width: 12em; opacity: 1; }

/* ---------- tablet & phone ---------- */
@media (max-width: 1080px) {
  .chap--end { grid-template-columns: 1fr auto; }
  .end__info { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-aspect-ratio: 1/1), (max-width: 760px) {
  .story { height: 560vh; }
  .shade::before {
    background:
      linear-gradient(0deg, rgb(23 34 40 / calc(.9 * max(var(--veil), .6))) 0%, rgb(23 34 40 / calc(.7 * max(var(--veil), .6))) 34%, rgb(23 34 40 / 0) 60%),
      linear-gradient(180deg, rgb(23 34 40 / .55) 0%, rgb(23 34 40 / 0) 14%);
  }
  .shade::after {
    background:
      linear-gradient(0deg, rgb(245 240 232 / calc(.95 * max(var(--veil), .6))) 0%, rgb(245 240 232 / calc(.78 * max(var(--veil), .6))) 36%, rgb(245 240 232 / 0) 60%),
      linear-gradient(180deg, rgb(245 240 232 / .6) 0%, rgb(245 240 232 / 0) 14%);
  }
  .chap--hero, .chap--side { left: var(--pad); right: var(--pad); width: auto; top: auto; bottom: calc(max(22px, env(safe-area-inset-bottom)) + 10px); transform: none; gap: 18px; }
  .chap--hero { bottom: calc(max(22px, env(safe-area-inset-bottom)) + 56px); }
  .title { font-size: clamp(42px, 11.5vw, 72px); }
  .h2 { font-size: clamp(32px, 8.6vw, 52px); }
  .scroll-cue { bottom: max(4px, env(safe-area-inset-bottom)); }
  .rail { top: auto; bottom: auto; right: 0; left: 0; top: calc(max(14px, env(safe-area-inset-top)) + 62px); transform: none; display: block; height: 2px; margin: 0 var(--pad); background: var(--rule); }
  .rail::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--prog)); }
  .rail__item { display: none; }
  .hud__meta, .hud__bar { display: none; }
  .hud__north { top: calc(max(14px, env(safe-area-inset-top)) + 80px); bottom: auto; }
  .chap--end { grid-template-columns: 1fr; gap: 16px; padding-bottom: max(18px, env(safe-area-inset-bottom)); }
  .end__info { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 4px 18px; font-size: 13px; }
  .end__info a { min-height: 44px; }
  .end__ctas .btn { flex: 1 1 0; }
  .lcard { left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: auto; max-height: calc(100% - 96px); overflow: auto; grid-template-columns: 38% 1fr; }
  .lcard__media { aspect-ratio: auto; min-height: 100%; }
  .lcard__body { padding: 14px 16px 16px; gap: 6px; }
  .lcard__title { font-size: 21px; }
  .lcard__price { font-size: 23px; }
  .lcard__cta { min-height: 46px; }
  .lcard__close { left: 6px; right: auto; top: 6px; }
}
@media (max-width: 560px) {
  .bar__link { display: none; }
  .bar__call span { display: none; }
  .bar__call { width: 48px; padding: 0; justify-content: center; }
  .chap--hero { gap: 16px; }
  .eyebrow { font-size: 10.5px; letter-spacing: .2em; gap: 10px; }
  .eyebrow::before { width: 22px; flex: none; }
  .block > div { grid-template-columns: 1fr; gap: 2px; padding: 9px 0; }
  .lead { font-size: 14.5px; line-height: 1.6; }
  .ctas { flex-wrap: nowrap; gap: 10px; }
  .ctas .btn { flex: 1 1 0; min-width: 0; padding: 0 12px; font-size: 14px; }
  .trust { flex-wrap: nowrap; gap: 0 12px; font-size: 12px; white-space: nowrap; }
  .trust li + li::before { margin-right: 8px; }
  .chap--end .h2 { font-size: 30px; margin: 10px 0 4px; }
  .end__who { display: none; }
}
@media (max-width: 370px) {
  .trust li:last-child { display: none; }
}
@media (max-height: 760px) and (min-aspect-ratio: 1/1) {
  .chap--hero { gap: 18px; }
  .title { font-size: clamp(40px, 5.6vw, 84px); }
  .block > div { padding: 8px 0; }
}

/* ---------- browsers without color-mix() (iOS < 16.2, old Android WebViews): fixed light/dark sets ---------- */
@supports not (color: color-mix(in oklab, red 50%, blue)) {
  :root { --fg: #f5f0e8; --fg-2: rgb(245 240 232 / .74); --fg-3: rgb(245 240 232 / .52); --rule: rgb(245 240 232 / .22); --accent: var(--copper-2); }
  :root.is-day { --fg: #1c2930; --fg-2: rgb(28 41 48 / .74); --fg-3: rgb(28 41 48 / .52); --rule: rgb(28 41 48 / .22); --accent: var(--copper); }
  .bar__mark, .bar__word { color: var(--accent); }
  .hud { color: var(--line); }
  .is-day .hud { color: var(--ink); }
  .pills li { background: transparent; }
  .num span { border-color: var(--accent); }
}

/* ---------- reduced motion & no WebGL ---------- */
@media (prefers-reduced-motion: reduce) {
  .loader__path { animation: none; stroke-dashoffset: 0; }
  .loader__win { animation: none; opacity: 1; transform: none; }
  .scroll-cue i::after { animation: none; }
  .title .ln > span { transition: none; }
}
.no-gl .story { height: auto; }
.no-gl .stage { position: relative; height: auto; overflow: visible; display: grid; gap: 72px; padding: 140px var(--pad) 80px; background: linear-gradient(var(--slate), var(--slate-3)); }
.no-gl .gl, .no-gl .loader, .no-gl .hud, .no-gl .rail, .no-gl .scroll-cue, .no-gl .lockup, .no-gl .shade { display: none; }
.no-gl .chap { position: relative; inset: auto; transform: none; width: auto; max-width: 640px; opacity: 1; pointer-events: auto; --k: 1; }
.no-gl .chap--end { max-width: none; padding: 0; }
