/* Bothy & Burn: "After dark". Night-first, day-capable.
   Tokens first, then base, layout, components, pages. */

@view-transition { navigation: auto; }

:root {
  color-scheme: light;
  /* Day moor (light) */
  --bg: #EEF0EA;
  --bg-2: #E3E8E0;
  --bg-3: #D6DDD3;
  --surface: #F8F9F5;
  --ink: #1A2233;
  --ink-2: #435063;
  --ink-3: #5B6676;
  --line: rgba(26, 34, 51, .16);
  --line-strong: rgba(26, 34, 51, .34);
  --heather: #8D6E9C;
  --heather-ink: #664776;
  --bracken: #C07A3B;
  --bracken-ink: #874C14;
  --on-bracken: #0D1424;
  --focus: #664776;
  --glass: rgba(248, 249, 245, .78);
  --haze: rgba(200, 190, 255, .12);
  --star-o: 0;
  --win-o: .0;
  /* scene */
  --sky-top: #C3D0DB;
  --sky-mid: #D9E2E5;
  --sky-bot: #EDEFE8;
  --hill-1: #B3BFB8;
  --hill-2: #92A59A;
  --hill-3: #6F847A;
  --hill-4: #4B5F55;
  --mist: rgba(255, 255, 255, .55);
  --sun: rgba(255, 236, 200, .85);
  --win: #E9D6AE;
  --scene-ink: #1A2233;
  --scene-ink-2: #2E3A4D;
  /* type */
  --f-display: "DM Serif Display", "Iowan Old Style", Georgia, serif;
  --f-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --fs-h1: clamp(2.9rem, 1.5rem + 6.2vw, 6.6rem);
  --fs-h2: clamp(2.05rem, 1.25rem + 3vw, 3.9rem);
  --fs-h3: clamp(1.5rem, 1.25rem + 1vw, 2.1rem);
  --fs-lede: clamp(1.1rem, 1rem + .5vw, 1.4rem);
  --fs-mono: .78rem;
  /* space (8px rhythm) */
  --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2rem; --s5: 3rem; --s6: 4.5rem;
  --sec: clamp(4.5rem, 3rem + 7vw, 9.5rem);
  --gut: clamp(1rem, .4rem + 3vw, 3rem);
  --max: 1240px;
  --r: 18px;
  --r-sm: 10px;
  --hdr: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0D1424;
    --bg-2: #111A2E;
    --bg-3: #19243D;
    --surface: #131D33;
    --ink: #E6EDF3;
    --ink-2: #B0BDCE;
    --ink-3: #8C99B0;
    --line: rgba(230, 237, 243, .15);
    --line-strong: rgba(230, 237, 243, .34);
    --heather-ink: #C7ACD4;
    --bracken-ink: #E59B58;
    --focus: #D9C4E4;
    --glass: rgba(13, 20, 36, .66);
    --star-o: 1;
    --win-o: 1;
    --sky-top: #050912;
    --sky-mid: #0B1222;
    --sky-bot: #1D2748;
    --hill-1: #101A33;
    --hill-2: #0B1326;
    --hill-3: #070D1B;
    --hill-4: #04070F;
    --mist: rgba(141, 110, 156, .10);
    --sun: rgba(0, 0, 0, 0);
    --win: #FFC47A;
    --scene-ink: #E6EDF3;
    --scene-ink-2: #C3CFDE;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0D1424;
  --bg-2: #111A2E;
  --bg-3: #19243D;
  --surface: #131D33;
  --ink: #E6EDF3;
  --ink-2: #B0BDCE;
  --ink-3: #8C99B0;
  --line: rgba(230, 237, 243, .15);
  --line-strong: rgba(230, 237, 243, .34);
  --heather-ink: #C7ACD4;
  --bracken-ink: #E59B58;
  --focus: #D9C4E4;
  --glass: rgba(13, 20, 36, .66);
  --star-o: 1;
  --win-o: 1;
  --sky-top: #050912;
  --sky-mid: #0B1222;
  --sky-bot: #1D2748;
  --hill-1: #101A33;
  --hill-2: #0B1326;
  --hill-3: #070D1B;
  --hill-4: #04070F;
  --mist: rgba(141, 110, 156, .10);
  --sun: rgba(0, 0, 0, 0);
  --win: #FFC47A;
  --scene-ink: #E6EDF3;
  --scene-ink-2: #C3CFDE;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: clamp(1rem, .96rem + .18vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-family: var(--f-display); font-weight: 400; line-height: 1.04; letter-spacing: -.012em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.12; }
h4 { font-family: var(--f-body); font-weight: 800; font-size: 1.05rem; letter-spacing: 0; line-height: 1.3; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--heather-ink); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
em { font-style: italic; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--bracken); color: var(--on-bracken); }
.container { width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; }
.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: 12px; top: -80px; z-index: 200; background: var(--bracken); color: var(--on-bracken); padding: 12px 18px; border-radius: 10px; font-weight: 800; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }
.mono, .eyebrow { font-family: var(--f-mono); font-size: var(--fs-mono); letter-spacing: .08em; text-transform: uppercase; }
.eyebrow { color: var(--heather-ink); margin: 0 0 var(--s2); display: flex; gap: .7em; align-items: center; flex-wrap: wrap; line-height: 1.5; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
.lede { font-size: var(--fs-lede); line-height: 1.5; color: var(--ink-2); max-width: 36em; }
.section { padding-block: var(--sec); position: relative; }
.section--alt { background: var(--bg-2); }
.section__head { display: grid; gap: var(--s2); margin-bottom: clamp(2rem, 4vw, 4rem); max-width: 46rem; }
.section__head p { margin: 0; }
.price, .num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

/* ---------- buttons ---------- */
.btn {
  --_bg: var(--bracken);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: .8rem 1.5rem;
  background: var(--_bg); color: var(--on-bracken);
  border: 2px solid var(--_bg); border-radius: 999px;
  font-weight: 800; font-size: 1rem; line-height: 1.2; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s;
  will-change: transform;
}
.btn:hover { box-shadow: 0 10px 30px -10px rgba(192, 122, 59, .75); transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline-offset: 4px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); box-shadow: none; }
.btn--sm { min-height: 44px; padding: .55rem 1.2rem; font-size: .95rem; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 800; color: var(--ink); text-decoration: none; min-height: 44px; border-bottom: 0; }
.link-arrow span { border-bottom: 2px solid var(--bracken); padding-bottom: 1px; transition: border-color .2s; }
.link-arrow svg { width: 1em; height: 1em; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--hdr);
  display: flex; align-items: center;
  transition: background-color .35s, backdrop-filter .35s, box-shadow .35s, transform .4s var(--ease);
  view-transition-name: site-header;
}
.site-header.is-solid { background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--scene-ink); min-height: 44px; }
.is-solid .brand, body:not(.has-scene) .brand { color: var(--ink); }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__name { font-family: var(--f-display); font-size: 1.55rem; line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.brand__name i { color: var(--bracken-ink); font-style: italic; }
.nav ul { display: flex; gap: clamp(.5rem, 2vw, 2rem); list-style: none; align-items: center; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: .3rem; color: var(--scene-ink); text-decoration: none; font-weight: 700; font-size: .97rem; position: relative; }
.is-solid .nav a, body:not(.has-scene) .nav a { color: var(--ink); }
.nav a::after { content: ""; position: absolute; left: .3rem; right: .3rem; bottom: 8px; height: 2px; background: var(--bracken); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-header__actions { display: flex; align-items: center; gap: .6rem; }
.theme-toggle, .nav-toggle {
  width: 48px; height: 48px; display: inline-grid; place-items: center; border-radius: 50%;
  background: color-mix(in srgb, var(--bg) 35%, transparent); border: 1px solid var(--line-strong); color: var(--scene-ink); cursor: pointer;
  transition: background-color .25s, transform .3s var(--ease);
}
.is-solid .theme-toggle, .is-solid .nav-toggle, body:not(.has-scene) .theme-toggle, body:not(.has-scene) .nav-toggle { color: var(--ink); }
.theme-toggle:hover, .nav-toggle:hover { background: color-mix(in srgb, var(--bg) 70%, transparent); transform: rotate(-12deg); }
.theme-toggle svg { width: 24px; height: 24px; overflow: visible; }
.theme-toggle .sun-core { transition: transform .6s var(--ease); transform-origin: 12px 12px; }
.theme-toggle .sun-rays { transition: transform .6s var(--ease), opacity .4s; transform-origin: 12px 12px; }
.theme-toggle .moon-mask { transition: transform .6s var(--ease); transform: translate(4.6px, -4.2px); }
.theme-toggle[aria-pressed="false"] .moon-mask { transform: translate(15px, -15px); }
.theme-toggle[aria-pressed="true"] .sun-rays { opacity: 0; transform: rotate(60deg) scale(.4); }
.theme-toggle[aria-pressed="true"] .sun-core { transform: rotate(-20deg) scale(1.15); }
.nav-toggle { display: none; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), background-color .2s; position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .js .nav-toggle { display: inline-grid; }
  .header-cta { display: none; }
  .js .nav { position: fixed; inset: 0; top: 0; padding: calc(var(--hdr) + 24px) var(--gut) 40px; background: var(--bg); z-index: -1; opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .3s, transform .4s var(--ease), visibility .3s; overflow-y: auto; }
  .js .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .js .nav ul { flex-direction: column; align-items: flex-start; gap: 0; }
  .js .nav li { width: 100%; border-bottom: 1px solid var(--line); }
  .js .nav a { color: var(--ink) !important; font-family: var(--f-display); font-weight: 400; font-size: 2.3rem; min-height: 72px; width: 100%; }
  .js .nav a::after { display: none; }
  .js .site-header.menu-open { background: var(--bg); }
  .js .site-header.menu-open .brand, .js .site-header.menu-open .theme-toggle, .js .site-header.menu-open .nav-toggle { color: var(--ink); }
  html:not(.js) .site-header { position: absolute; height: auto; padding-block: 10px; }
  html:not(.js) .site-header__in { flex-wrap: wrap; }
  html:not(.js) .nav ul { flex-wrap: wrap; }
  html:not(.js) .nav a, html:not(.js) .brand { color: var(--ink); }
}
@media (max-width: 400px) { .brand__name { font-size: 1.3rem; } .brand__mark { width: 32px; height: 32px; } }

/* ---------- scene (sky + hills) ---------- */
.scene { position: relative; isolation: isolate; overflow: hidden; color: var(--scene-ink); background: var(--sky-bot); }
.scene__sky { position: absolute; inset: 0; z-index: -5; background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 52%, var(--sky-bot) 100%); transition: background .8s; }
.scene__sun { position: absolute; z-index: -4; width: min(70vw, 720px); aspect-ratio: 1; right: -8%; top: -12%; border-radius: 50%; background: radial-gradient(circle, var(--sun) 0%, transparent 62%); pointer-events: none; }
.scene .sky { -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 90%); mask-image: linear-gradient(180deg, #000 55%, transparent 90%); }
.sky { position: absolute; inset: 0; z-index: -3; opacity: var(--star-o); transition: opacity 1s; pointer-events: none; overflow: hidden; }
.sky__mw, .sky__stars { position: absolute; }
.sky__stars { inset: 0; width: 100%; height: 100%; }
.sky__mw { transform-origin: 50% 50%; will-change: transform; }
.scene__mist { position: absolute; inset: auto 0 0 0; height: 60%; z-index: -2; pointer-events: none; overflow: hidden; }
.scene__mist i { position: absolute; left: -30%; width: 160%; height: 55%; border-radius: 50%; background: radial-gradient(closest-side, var(--mist), transparent); filter: blur(10px); animation: drift 38s linear infinite alternate; }
.scene__mist i:nth-child(1) { bottom: 8%; }
.scene__mist i:nth-child(2) { bottom: 22%; animation-duration: 52s; animation-direction: alternate-reverse; opacity: .8; }
.scene__mist i:nth-child(3) { bottom: -6%; animation-duration: 64s; opacity: .9; }
@keyframes drift { from { transform: translate3d(-6%, 0, 0); } to { transform: translate3d(6%, 0, 0); } }
.scene__hills { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(190px, 38vh, 380px); z-index: -1; pointer-events: none; }
.hill-1 { fill: var(--hill-1); transition: fill .8s; } .hill-2 { fill: var(--hill-2); transition: fill .8s; }
.hill-3 { fill: var(--hill-3); transition: fill .8s; } .hill-4 { fill: var(--hill-4); transition: fill .8s; }
.hill-edge { fill: none; stroke: var(--heather); stroke-opacity: .35; stroke-width: 1.2; }
.win-glow { opacity: var(--win-o); transition: opacity 1.2s; }
.win-pane { fill: var(--win); opacity: var(--pane-o, 1); }
.js .win-glow { animation: windowOn 2.2s 1.8s both var(--ease); }
@keyframes windowOn { 0%, 20% { opacity: 0; } 100% { opacity: var(--win-o); } }
.ember { animation: flicker 2.4s infinite alternate ease-in-out; transform-origin: center; }
@keyframes flicker { 0% { opacity: .55; } 40% { opacity: 1; } 70% { opacity: .7; } 100% { opacity: .95; } }

/* hero */
.hero { min-height: max(100dvh, 720px); display: flex; align-items: flex-start; padding-top: calc(var(--hdr) + clamp(1.5rem, 7vh, 5rem)); padding-bottom: 2rem; }
.hero__in { position: relative; z-index: 3; width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; display: grid; gap: clamp(1rem, 2.2vh, 1.6rem); justify-items: start; }
.hero .eyebrow { color: var(--scene-ink-2); margin: 0; }
.hero__title { font-size: clamp(2.9rem, 1.4rem + 6vw, 6.2rem); color: var(--scene-ink); max-width: 11.5em; line-height: .98; letter-spacing: -.02em; }
.hero__title em { color: var(--heather-ink); }
:root[data-theme="dark"] .hero__title em { color: #D4B9E0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero__title em { color: #D4B9E0; } }
.hero__lede { font-size: var(--fs-lede); line-height: 1.5; color: var(--scene-ink-2); max-width: 34em; margin: 0; }
.hero__scroll { display: none; }
.split-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.split-w > span { display: inline-block; transform: translateY(105%); animation: wordUp 1.1s var(--ease) forwards; animation-delay: calc(.55s + var(--i) * 70ms); }
@keyframes wordUp { to { transform: none; } }
.js .fade-in { opacity: 0; transform: translateY(18px); animation: fadeUp 1s var(--ease) forwards; animation-delay: var(--d, 1.4s); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
.js .sky { animation: skyOn 2.4s .1s both ease-out; }
@keyframes skyOn { from { opacity: 0; } to { opacity: var(--star-o); } }
.js .scene__hills { animation: hillsUp 1.6s .2s both var(--ease); }
@media (max-width: 760px) { .scene__hills.hero-hills { width: 1000px; max-width: none; left: auto; right: -97px; height: auto; aspect-ratio: 1440 / 420; } }
@keyframes hillsUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* mini search */
.mini { display: grid; grid-template-columns: 1.35fr 1fr 1fr auto; align-items: stretch; width: min(100%, 880px); background: var(--glass); border: 1px solid var(--line-strong); border-radius: 22px; padding: 8px; -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); gap: 0; }
.mini__f { display: grid; gap: 2px; padding: 8px 18px; border-right: 1px solid var(--line); min-width: 0; align-content: center; }
.mini__f label { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.mini select, .mini input { appearance: none; -webkit-appearance: none; background: transparent; border: 0; padding: 4px 0; min-height: 32px; font-weight: 700; color: var(--ink); width: 100%; min-width: 0; border-radius: 4px; }
.mini select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23999' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; padding-right: 18px; }
.mini input[type="date"], .mini input[type="text"] { font-family: var(--f-body); }
.mini input::placeholder { color: var(--ink-2); font-weight: 600; opacity: 1; }
.mini__f--date { position: relative; }
.mini__f--date input[type="text"] { padding-right: 40px; text-overflow: ellipsis; }
.mini__native { position: absolute !important; left: 18px; bottom: 6px; width: 1px !important; min-height: 0 !important; height: 1px; opacity: 0; pointer-events: none; padding: 0 !important; }
.mini__cal { position: absolute; right: 8px; bottom: 6px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); border-radius: 12px; cursor: pointer; }
.mini__cal:hover { background: var(--line); }
.mini input[aria-invalid="true"] { outline: 2px solid var(--bracken, #C07A3B); outline-offset: 2px; }
.mini .btn { margin: 0 0 0 8px; border-radius: 16px; align-self: stretch; }
.mini__note { grid-column: 1 / -1; margin: 6px 12px 2px; color: var(--ink-2); font-size: .68rem; }
.mini .btn:focus-visible, .mini select:focus-visible, .mini input:focus-visible { outline-offset: 2px; }
@media (max-width: 760px) {
  .mini { grid-template-columns: 1fr 1fr; border-radius: 20px; }
  .mini__f:first-child { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); }
  .mini__f:nth-child(3) { border-right: 0; }
  .mini .btn { grid-column: 1 / -1; margin: 8px 0 0; min-height: 52px; }
}

/* ---------- trust strip ---------- */
.trust { background: var(--bg-2); border-block: 1px solid var(--line); }
.trust ul { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.trust li { padding: 1.5rem clamp(.8rem, 1.6vw, 1.6rem); display: flex; gap: .9rem; align-items: center; border-right: 1px solid var(--line); min-width: 0; }
.trust li:last-child { border-right: 0; }
.trust svg { width: 30px; height: 30px; flex: none; color: var(--bracken-ink); }
.trust strong { display: block; font-size: .95rem; line-height: 1.25; color: var(--ink); }
.trust span { display: block; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-top: 3px; line-height: 1.4; }
@media (max-width: 900px) { .trust ul { grid-template-columns: 1fr 1fr; } .trust li:nth-child(2) { border-right: 0; } .trust li:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 520px) { .trust ul { grid-template-columns: 1fr; } .trust li { border-right: 0; border-bottom: 1px solid var(--line); } .trust li:last-child { border-bottom: 0; } }

/* ---------- huts: cards with scene art ---------- */
.hut-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem) clamp(1rem, 2vw, 2rem); align-items: start; }
.hcard { grid-column: span 6; display: grid; gap: var(--s3); text-decoration: none; color: inherit; min-width: 0; }
.hcard:nth-child(1) { grid-column: 1 / span 7; }
.hcard:nth-child(2) { grid-column: 8 / span 5; margin-top: clamp(0px, 6vw, 5rem); }
.hcard:nth-child(3) { grid-column: 1 / span 5; margin-top: clamp(0px, -1vw, 0px); }
.hcard:nth-child(4) { grid-column: 6 / span 7; margin-top: clamp(0px, 5vw, 4.5rem); }
.hcard__art { border-radius: var(--r); overflow: hidden; position: relative; aspect-ratio: 3 / 2; border: 1px solid var(--line); isolation: isolate; }
.hcard:nth-child(2) .hcard__art, .hcard:nth-child(3) .hcard__art { aspect-ratio: 4 / 3.4; }
.hcard__art svg { width: 100%; height: 100%; transition: transform 1.1s var(--ease); }
.hcard:hover .hcard__art svg { transform: scale(1.045); }
.hcard__meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: baseline; justify-content: space-between; }
.hcard h3 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.7rem); }
.hcard__price { color: var(--bracken-ink); font-size: .85rem; }
.hcard p { color: var(--ink-2); margin: 0; max-width: 34em; }
.hcard__go { font-weight: 800; display: inline-flex; gap: .5em; align-items: center; color: var(--ink); min-height: 44px; }
.hcard__go span { border-bottom: 2px solid var(--bracken); }
.hcard__go svg { width: 1em; height: 1em; transition: transform .3s var(--ease); }
.hcard:hover .hcard__go svg { transform: translateX(6px); }
@media (max-width: 860px) { .hcard, .hcard:nth-child(n) { grid-column: 1 / -1; margin-top: 0; } .hcard:nth-child(n) .hcard__art { aspect-ratio: 3 / 2; } }

/* scene art internals (svg classes) */
.art-sky-a { stop-color: var(--art-a); } .art-sky-b { stop-color: var(--art-b); }
.art { --art-a: #C9D6DF; --art-b: #EDEFE8; --art-hill: #8FA298; --art-hill2: #6F8479; --art-ground: #5A6E64; --art-ink: #1A2233; }
:root[data-theme="dark"] .art { --art-a: #050912; --art-b: #25305A; --art-hill: #101A33; --art-hill2: #0A1224; --art-ground: #070D1B; --art-ink: #E6EDF3; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .art { --art-a: #050912; --art-b: #25305A; --art-hill: #101A33; --art-hill2: #0A1224; --art-ground: #070D1B; --art-ink: #E6EDF3; } }
.art .stars circle { fill: #fff; opacity: var(--star-o); transition: opacity 1s; }
.art .hill-a { fill: var(--art-hill); } .art .hill-b { fill: var(--art-hill2); } .art .ground { fill: var(--art-ground); }
.art .line { stroke: var(--art-ink); opacity: .55; fill: none; stroke-linecap: round; }
.art .win { fill: var(--win); }
.art .glow { opacity: var(--win-o); }
.art .steam path { fill: none; stroke: var(--art-ink); stroke-opacity: .35; stroke-width: 2; stroke-linecap: round; animation: steam 5s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.art .steam path:nth-child(2) { animation-delay: -1.6s; } .art .steam path:nth-child(3) { animation-delay: -3.1s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(6px) scaleY(.8); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px) scaleY(1.15); } }
.hut { --hb: #55707E; --hr: #26343E; --hd: #C07A3B; --ht: #E6EDF3; }
.hut--curlew { --hb: #4F6C7C; --hr: #232F39; --hd: #D08A47; }
.hut--merlin { --hb: #6D5280; --hr: #2A2033; --hd: #E4C48F; }
.hut--whaup { --hb: #5F7B63; --hr: #25312A; --hd: #D9A25E; }
.hut--bothy { --hb: #8A8576; --hr: #2C323A; --hd: #A9743C; }
.hb { fill: var(--hb); } .hr { fill: var(--hr); } .hd { fill: var(--hd); } .ht { stroke: var(--ht); stroke-opacity: .22; fill: none; stroke-width: 1; }
.hw { fill: none; stroke: var(--hr); stroke-width: 3.2; }
.hl { stroke: #000; stroke-opacity: .16; stroke-width: 1; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 1.1rem; background: var(--bg); user-select: none; }
.marquee__track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-family: var(--f-display); font-size: clamp(1.7rem, 1.2rem + 2vw, 3rem); white-space: nowrap; padding-inline: 1.2rem; color: var(--ink); display: inline-flex; align-items: center; gap: 2.4rem; }
.marquee__track span::after { content: "\2726"; font-size: .45em; color: var(--bracken-ink); }
.marquee__track span:nth-child(even) { font-style: italic; color: var(--heather-ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- night story (always a night scene) ---------- */
.story { --night: 0; --st-win: 0; --steam: 0; position: relative; height: 420vh; background: #0D1424; color: #E6EDF3; }
.story__pin { position: sticky; top: 0; height: 100dvh; overflow: hidden; isolation: isolate; display: grid; }
.story__bg { position: absolute; inset: 0; z-index: -5; background: linear-gradient(180deg, #060A15 0%, #0B1222 50%, #1D2748 100%); }
.story__dusk { position: absolute; inset: 0; z-index: -4; background: linear-gradient(180deg, #38406B 0%, #8D6E9C 46%, #E0904F 82%, #F3C27E 100%); opacity: calc(1 - var(--night)); }
.story .sky { opacity: var(--night); animation: none; z-index: -3; }
.story__land { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(240px, 50vh, 520px); z-index: -1; }
.story__land .f1 { fill: #101A33; } .story__land .f2 { fill: #0A1224; } .story__land .f3 { fill: #050A14; }
.story__in { position: relative; z-index: 3; align-self: start; padding-top: calc(var(--hdr) + 3vh); width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
.story h2, .story h3 { color: #F3F6FA; }
.story .eyebrow { color: #D4B9E0; }
.story__head { grid-column: 1; max-width: 26rem; }
.story__head h2 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.6rem); }
.story__clock { grid-column: 2; justify-self: end; font-family: var(--f-mono); font-size: clamp(2.6rem, 1.4rem + 5vw, 6rem); line-height: 1; color: #F3F6FA; letter-spacing: -.04em; text-align: right; font-variant-numeric: tabular-nums; }
.story__clock small { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: #C5B3D1; margin-top: .6rem; letter-spacing: .12em; }
.story__steps { grid-column: 1 / -1; list-style: none; position: relative; margin-top: 1rem; }
.story__step { max-width: 27rem; }
.story__step h3 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem); margin-bottom: .6rem; }
.story__step p { color: #D3DCE8; margin: 0; }
.story__step .mono { color: #F0B77D; display: block; margin-bottom: .6rem; }
.js .story__steps { min-height: 17rem; }
.js .story__step { position: absolute; inset: 0 auto auto 0; opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .8s var(--ease); pointer-events: none; }
.js .story__step.is-on { opacity: 1; transform: none; pointer-events: auto; }
.story__dots { position: absolute; z-index: 4; right: var(--gut); top: 50%; transform: translateY(-50%); display: grid; gap: 10px; list-style: none; }
.story__dots li { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .28); transition: transform .3s, background-color .3s; }
.story__dots li.is-on { background: #F0B77D; transform: scale(1.5); }
.story .win-glow2 { opacity: var(--st-win); }
.story .hut { --win: #FFC47A; --pane-o: calc(.28 + .72 * var(--st-win)); } .story .steam-on { opacity: var(--steam); }
.story .smoke path { fill: none; stroke: #C8D1E0; stroke-opacity: .5; stroke-width: 3; stroke-linecap: round; animation: steam 6s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.story .smoke path:nth-child(2) { animation-delay: -2s; } .story .smoke path:nth-child(3) { animation-delay: -4s; }
.story .tubsteam path { fill: none; stroke: #DCE4F0; stroke-opacity: .6; stroke-width: 3; stroke-linecap: round; animation: steam 4.2s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.story .tubsteam path:nth-child(2) { animation-delay: -1.3s; } .story .tubsteam path:nth-child(3) { animation-delay: -2.6s; } .story .tubsteam path:nth-child(4) { animation-delay: -3.4s; }
/* static fallback: no JS or reduced motion */
html:not(.js) .story, html.rm .story { height: auto; --night: 1; --st-win: 1; --steam: 1; }
html:not(.js) .story__pin, html.rm .story__pin { position: relative; height: auto; padding-bottom: calc(clamp(240px, 50vh, 520px) * .8); }
html:not(.js) .story__steps, html.rm .story__steps { display: grid; gap: 2.2rem; }
html:not(.js) .story__step, html.rm .story__step { position: static; opacity: 1; transform: none; }
html.rm .story__step { position: static; opacity: 1; transform: none; pointer-events: auto; }
html.rm .story__steps { min-height: 0; }
html:not(.js) .story__clock, html.rm .story__clock, html:not(.js) .story__dots, html.rm .story__dots { display: none; }
@media (max-width: 760px) {
  .story__in { grid-template-columns: 1fr; gap: 1rem; }
  .story__head, .story__clock { grid-column: 1; }
  .story__clock { justify-self: start; text-align: left; position: absolute; top: calc(var(--hdr) + 4.4rem); right: 0; font-size: 2.4rem; }
  .story__clock small { display: none; }
  .story__head { max-width: 18rem; }
  .story__dots { display: none; }
  .js .story__steps { min-height: 18rem; }
  .story__step p { font-size: .98rem; }
}

/* ---------- compare ---------- */
.compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 6rem); align-items: center; }
.compare__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .5); }
.compare__card h3 { font-size: 1.5rem; margin-bottom: .4rem; }
.ledger { list-style: none; margin: 1.2rem 0 0; display: grid; }
.ledger li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--line-strong); align-items: baseline; }
.ledger li span:first-child { color: var(--ink-2); }
.ledger li span:last-child { font-family: var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ink); text-align: right; white-space: nowrap; }
.ledger li.total { border-bottom: 0; padding-top: 1.1rem; font-size: 1.15rem; }
.ledger li.total span:first-child { color: var(--ink); font-weight: 800; }
.ledger li.total span:last-child { font-size: 1.7rem; }
.saving { margin-top: 1rem; padding: 1rem 1.2rem; border-radius: var(--r-sm); background: color-mix(in srgb, var(--bracken) 18%, transparent); border: 1px solid color-mix(in srgb, var(--bracken) 55%, transparent); color: var(--ink); font-size: .98rem; margin-bottom: 0; }
.saving strong { font-family: var(--f-mono); }
.checklist { list-style: none; display: grid; gap: .6rem; margin: 1.4rem 0 1.6rem; }
.checklist li { padding-left: 1.9rem; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 2px solid var(--bracken-ink); border-bottom: 2px solid var(--bracken-ink); transform: rotate(-45deg); }
@media (max-width: 860px) { .compare { grid-template-columns: 1fr; } }

/* ---------- reviews ---------- */
.rev-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.score { display: flex; align-items: baseline; gap: .8rem; }
.score b { font-family: var(--f-display); font-size: clamp(3.6rem, 3rem + 3vw, 6rem); font-weight: 400; line-height: .9; color: var(--ink); }
.score span { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); max-width: 15em; line-height: 1.5; }
.rev-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }
.rev { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem; display: grid; gap: .9rem; align-content: start; margin: 0; }
.rev blockquote { margin: 0; font-size: 1.02rem; line-height: 1.6; color: var(--ink); }
.rev figcaption { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); line-height: 1.5; }
.stars-row { display: flex; gap: 3px; color: var(--bracken-ink); }
.stars-row svg { width: 16px; height: 16px; }
.stars-row .off { color: var(--line-strong); }
.rev--four { border-color: color-mix(in srgb, var(--heather) 60%, transparent); }
.rev-more { margin-top: 1.4rem; }
.rev-more > summary { cursor: pointer; min-height: 48px; display: inline-flex; align-items: center; font-weight: 800; gap: .6rem; list-style: none; padding: .4rem 0; color: var(--ink); border-bottom: 2px solid var(--bracken); }
.rev-more > summary::-webkit-details-marker { display: none; }
.rev-more[open] > summary { margin-bottom: 1.4rem; }
@media (max-width: 960px) { .rev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .rev-grid { grid-template-columns: 1fr; } }

/* ---------- about / farm ---------- */
.farm { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 2rem); align-items: center; }
.farm__text { grid-column: 1 / span 5; }
.farm__imgs { grid-column: 7 / span 6; display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(.8rem, 1.5vw, 1.4rem); align-items: end; }
.farm__imgs figure { margin: 0; }
.farm__imgs img { width: 100%; border-radius: var(--r); object-fit: cover; border: 1px solid var(--line); }
.farm__imgs figure:first-child img { aspect-ratio: 4 / 5; }
.farm__imgs figure:last-child { margin-bottom: 18%; }
.farm__imgs figure:last-child img { aspect-ratio: 1; }
.farm__imgs figcaption, .cap { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-top: .7rem; line-height: 1.5; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line-strong); }
.facts b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 2.1rem; line-height: 1; color: var(--ink); }
.facts span { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); line-height: 1.4; display: block; margin-top: .4rem; }
@media (max-width: 900px) { .farm__text, .farm__imgs { grid-column: 1 / -1; } .farm__imgs { margin-top: 1.5rem; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; text-align: center; background: #0D1424; color: #E6EDF3; padding-block: clamp(5rem, 4rem + 8vw, 10rem); }
.cta-band .sky { opacity: 1; animation: none; }
.cta-band h2 { color: #F3F6FA; max-width: 14em; margin-inline: auto; }
.cta-band p { color: #D3DCE8; max-width: 32em; margin: 1.2rem auto 2rem; font-size: var(--fs-lede); line-height: 1.5; }
.cta-band .mono { color: #D4B9E0; margin: 0 0 1.2rem; }
.cta-band .btn--ghost { color: #E6EDF3; border-color: rgba(230, 237, 243, .5); }
.cta-band .btn--ghost:hover { background: #E6EDF3; color: #0D1424; }
.cta-band__act { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; z-index: 2; }
.cta-band .container { position: relative; z-index: 2; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding-top: calc(var(--hdr) + clamp(3rem, 8vh, 6rem)); padding-bottom: calc(clamp(120px, 26vh, 220px) + 1.6rem); min-height: clamp(380px, 56vh, 560px); display: flex; align-items: flex-end; }
.page-hero .scene__hills { height: clamp(120px, 26vh, 220px); }
.page-hero h1 { font-size: clamp(2.7rem, 1.4rem + 5.4vw, 5.8rem); max-width: 12em; color: var(--scene-ink); letter-spacing: -.02em; line-height: 1; }
.page-hero .eyebrow { color: var(--scene-ink-2); }
.page-hero p.lede { color: var(--scene-ink-2); margin: 1.2rem 0 0; }
.page-hero .container { position: relative; z-index: 3; }
.page-hero h1 em { color: var(--heather-ink); }
.page-book .page-hero { min-height: 0; padding-top: calc(var(--hdr) + 1.5rem); padding-bottom: calc(100px + 1.6rem); }
.page-book .page-hero .scene__hills { height: 100px; }
:root[data-theme="dark"] .page-hero h1 em { color: #D4B9E0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .page-hero h1 em { color: #D4B9E0; } }

/* ---------- huts page ---------- */
.jump { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin-bottom: 2rem; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem 1.1rem; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .95rem; transition: background-color .2s, color .2s; }
.jump a:hover { background: var(--ink); color: var(--bg); }
.hut-detail { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3.5rem); padding-block: clamp(3rem, 6vw, 6rem); border-top: 1px solid var(--line); align-items: start; }
.hut-detail:first-of-type { border-top: 0; padding-top: 0; }
.hut-detail__art { grid-column: 1 / span 7; position: sticky; top: calc(var(--hdr) + 20px); min-width: 0; }
.hut-detail:nth-of-type(even) .hut-detail__art { grid-column: 6 / span 7; grid-row: 1; }
.hut-detail:nth-of-type(even) .hut-detail__body { grid-column: 1 / span 5; grid-row: 1; }
.hut-detail__art .hcard__art { aspect-ratio: 4 / 3.2; }
.hut-detail__body { grid-column: 8 / span 5; min-width: 0; }
.hut-detail__body h2 { font-size: clamp(2.3rem, 1.5rem + 3vw, 4rem); margin-bottom: .6rem; }
.hut-detail__tag { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1.2rem 0; }
.hut-detail__tag li { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; padding: .45rem .8rem; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink); }
.spec { margin: 1.4rem 0; display: grid; border-top: 1px solid var(--line-strong); }
.spec div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.spec dt { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); padding-top: .25em; }
.spec dd { margin: 0; }
.pricebox { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: 1.4rem 0; }
.pricebox div { background: var(--bg-2); border-radius: var(--r-sm); padding: .9rem 1rem; border: 1px solid var(--line); }
.pricebox dt { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); line-height: 1.4; }
.pricebox dd { margin: .2rem 0 0; font-family: var(--f-mono); font-size: 1.35rem; color: var(--ink); }
.pricebox dd small { font-size: .65rem; color: var(--ink-2); }
.hut-detail__cta { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
@media (max-width: 960px) {
  .hut-detail, .hut-detail:nth-of-type(n) { display: grid; grid-template-columns: minmax(0, 1fr); }
  .hut-detail__art, .hut-detail:nth-of-type(n) .hut-detail__art { position: static; grid-column: 1; grid-row: auto; }
  .hut-detail__body, .hut-detail:nth-of-type(n) .hut-detail__body { grid-column: 1; grid-row: auto; }
}
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.cmp { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .97rem; }
.cmp caption { text-align: left; padding: 1.2rem 1.2rem .4rem; font-family: var(--f-display); font-size: 1.5rem; color: var(--ink); }
.cmp th, .cmp td { padding: .9rem 1.2rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); font-weight: 400; }
.cmp tbody th { font-weight: 800; color: var(--ink); }
.cmp tr:last-child > * { border-bottom: 0; }
.incl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 2rem); }
.incl > div { border-top: 2px solid var(--bracken); padding-top: 1rem; }
.incl h3 { font-size: 1.5rem; margin-bottom: .6rem; }
.incl ul { list-style: none; display: grid; gap: .4rem; color: var(--ink-2); }
@media (max-width: 860px) { .incl { grid-template-columns: 1fr; } }
.notice { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.2rem; padding: 1.4rem 1.6rem; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); }
.notice svg { width: 34px; height: 34px; color: var(--bracken-ink); }
.notice h3 { font-size: 1.4rem; margin-bottom: .3rem; }
.notice p { margin: 0; color: var(--ink-2); }

/* ---------- booking ---------- */
.book { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: clamp(1.5rem, 3.5vw, 4rem); align-items: start; }
.book__main { display: grid; gap: clamp(2rem, 4vw, 3.5rem); min-width: 0; }
.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.step > legend, .step__h { font-family: var(--f-display); font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); line-height: 1.1; color: var(--ink); padding: 0; margin-bottom: 1.2rem; display: flex; align-items: baseline; gap: .8rem; float: none; }
.step__n { font-family: var(--f-mono); font-size: .75rem; color: var(--bracken-ink); letter-spacing: .08em; }
.pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.pick label { cursor: pointer; display: block; position: relative; min-width: 0; }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick__c { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 1rem; align-items: center; padding: .9rem 1rem; border: 1.5px solid var(--line-strong); border-radius: var(--r); background: var(--surface); transition: border-color .2s, background-color .2s, transform .3s var(--ease); height: 100%; }
.pick__c svg { width: 74px; height: 56px; border-radius: 8px; }
.pick__c b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; line-height: 1.1; color: var(--ink); }
.pick__c span { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); line-height: 1.5; display: block; }
.pick input:checked + .pick__c { border-color: var(--bracken); background: color-mix(in srgb, var(--bracken) 14%, var(--surface)); box-shadow: 0 0 0 1px var(--bracken) inset; }
.pick input:focus-visible + .pick__c { outline: 3px solid var(--focus); outline-offset: 3px; }
.pick label:hover .pick__c { transform: translateY(-2px); }
@media (max-width: 560px) { .pick { grid-template-columns: 1fr; } }
.cal-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(.6rem, 2vw, 1.6rem); }
.cal-bar { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .8rem; flex-wrap: wrap; padding-inline: .4rem; }
.cal-nav { display: flex; gap: .5rem; }
.cal-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: background-color .2s; }
.cal-nav button:hover:not(:disabled) { background: var(--bg-3); }
.cal-nav button:disabled { opacity: .35; cursor: not-allowed; }
.cal-nav svg { width: 18px; height: 18px; }
.cal-hint { margin: 0; font-size: .95rem; color: var(--ink-2); flex: 1 1 14rem; }
.cal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2.4rem); }
@media (max-width: 820px) { .cal { grid-template-columns: 1fr; } .cal__m:nth-child(2) { display: none; } .cal.show2 .cal__m:nth-child(2) { display: block; } }
.cal__m h3, .cal__cap { font-family: var(--f-display); font-size: 1.5rem; text-align: center; margin: 0 0 .6rem; color: var(--ink); font-weight: 400; line-height: 1.2; }
.cal table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal th { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); font-weight: 400; padding: .4rem 0; text-align: center; }
.cal td { padding: 0; height: 52px; text-align: center; position: relative; }
.cal td.is-range, .cal td.is-hover { background: color-mix(in srgb, var(--bracken) 24%, transparent); }
.cal td.is-start { border-radius: 26px 0 0 26px; background: color-mix(in srgb, var(--bracken) 24%, transparent); }
.cal td.is-end { border-radius: 0 26px 26px 0; background: color-mix(in srgb, var(--bracken) 24%, transparent); }
.cal td.is-start.is-end, .cal td.is-start:not(.has-range) { background: transparent; }
.cal button.d { width: 100%; height: 100%; min-height: 44px; min-width: 44px; margin: 0; padding: 2px 0; background: transparent; border: 0; border-radius: 12px; cursor: pointer; display: grid; align-content: center; justify-items: center; gap: 0; color: var(--ink); line-height: 1.1; transition: background-color .15s; }
.cal button.d .n { font-weight: 800; font-size: 1rem; }
.cal button.d .p { font-family: var(--f-mono); font-size: .62rem; color: var(--ink-2); display: none; letter-spacing: -.02em; }
@media (min-width: 640px) { .cal button.d .p { display: block; } }
.cal button.d:hover:not([aria-disabled="true"]) { background: color-mix(in srgb, var(--bracken) 30%, transparent); }
.cal button.d[aria-disabled="true"] { cursor: not-allowed; color: var(--ink-3); }
.cal button.d.is-booked .n { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.cal button.d.is-booked { background-image: repeating-linear-gradient(135deg, transparent 0 5px, color-mix(in srgb, var(--ink) 9%, transparent) 5px 6px); }
.cal button.d.is-past { opacity: .4; }
.cal button.d.is-off:not(.is-booked):not(.is-past) { opacity: .5; }
.cal button.d.is-sel { background: var(--bracken); color: var(--on-bracken); }
.cal button.d.is-sel .p { color: var(--on-bracken); }
.cal button.d.is-today .n { box-shadow: 0 2px 0 var(--heather); }
.cal button.d:focus-visible { outline: 3px solid var(--focus); outline-offset: -2px; z-index: 2; }
.cal td.is-blank { height: 52px; }
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: 1.1rem .4rem .2rem; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: .5rem; }
.legend i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line-strong); display: inline-block; }
.legend .l-sel { background: var(--bracken); border-color: var(--bracken); }
.legend .l-bk { background-image: repeating-linear-gradient(135deg, transparent 0 3px, color-mix(in srgb, var(--ink) 30%, transparent) 3px 4px); }
.legend .l-rg { background: color-mix(in srgb, var(--bracken) 30%, transparent); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.2rem; }
.field { display: grid; gap: .4rem; min-width: 0; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label, .field .lab { font-weight: 800; font-size: .95rem; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: .7rem .9rem; border-radius: var(--r-sm); border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 110px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23999' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--heather-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--heather) 35%, transparent); outline: none; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.field small { color: var(--ink-2); font-size: .85rem; }
.field .err { color: var(--err); font-size: .9rem; font-weight: 700; display: none; }
.field.is-bad input, .field.is-bad textarea, .field.is-bad select { border-color: var(--err); }
.field.is-bad .err { display: block; }
:root { --err: #A02A2A; }
:root[data-theme="dark"] { --err: #FF9A9A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --err: #FF9A9A; } }
.check { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: .8rem; align-items: start; padding: .5rem 0; }
.check input { width: 24px; height: 24px; margin: 8px 2px 0; accent-color: var(--bracken); }
.check label { font-weight: 600; min-height: 44px; display: flex; align-items: center; color: var(--ink); }
.check.is-off input, .check.is-off label { opacity: .6; }
.check .note { grid-column: 2; margin: -.4rem 0 0; font-size: .88rem; color: var(--ink-2); }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }
.sum { position: sticky; top: calc(var(--hdr) + 16px); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r); overflow: hidden; min-width: 0; box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .55); }
.sum__art { aspect-ratio: 16 / 7; border-bottom: 1px solid var(--line); }
.sum__art svg { width: 100%; height: 100%; }
.sum__body { padding: 1.3rem 1.4rem 1.5rem; }
.sum__body h2 { font-size: 1.7rem; margin-bottom: .2rem; }
.sum__dates { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .02em; color: var(--ink-2); margin: 0 0 1rem; min-height: 2.4em; line-height: 1.6; }
.sum .ledger { margin-top: 0; font-size: .95rem; }
.sum .ledger li { padding: .5rem 0; }
.sum__total { display: flex; justify-content: space-between; align-items: baseline; padding: 1rem 0 .3rem; border-top: 2px solid var(--ink); margin-top: .4rem; }
.sum__total span:first-child { font-weight: 800; }
.sum__total .price { font-size: 2.2rem; color: var(--ink); line-height: 1; }
.sum__vat { font-size: .82rem; color: var(--ink-2); margin: 0 0 1rem; }
.sum .saving { font-size: .9rem; }
.sum__pay { display: grid; gap: .3rem; margin: 1rem 0; font-size: .9rem; color: var(--ink-2); }
.sum__pay div { display: flex; justify-content: space-between; gap: 1rem; }
.sum__pay .price { color: var(--ink); }
.sum .btn { width: 100%; }
.sum__empty { color: var(--ink-2); font-size: .97rem; margin: 0 0 1rem; }
.sum details { margin-top: 1rem; font-size: .9rem; color: var(--ink-2); }
.sum details summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 800; color: var(--ink); }
.sum details ul { margin: .4rem 0 0 1.1rem; display: grid; gap: .4rem; }
@media (max-width: 960px) { .book { grid-template-columns: minmax(0, 1fr); } .sum { position: static; } }
.msg { padding: .9rem 1.1rem; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--bg-2); font-size: .95rem; margin: 1rem 0 0; color: var(--ink); }
.msg--warn { border-color: var(--err); }
.msg[hidden] { display: none; }
.success { display: grid; gap: 1rem; padding: clamp(1.5rem, 4vw, 2.6rem); border-radius: var(--r); border: 1.5px solid var(--bracken); background: color-mix(in srgb, var(--bracken) 10%, var(--surface)); }
.success[hidden] { display: none; }
.success h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); }
.success .ref { font-family: var(--f-mono); font-size: clamp(1.6rem, 1.2rem + 2vw, 2.6rem); color: var(--ink); letter-spacing: .04em; padding: .5rem 1rem; border: 1px dashed var(--line-strong); border-radius: var(--r-sm); justify-self: start; }
.success dl { display: grid; gap: .3rem; margin: 0; }
.success dl div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--line-strong); padding: .5rem 0; }
.success dt { color: var(--ink-2); } .success dd { margin: 0; font-family: var(--f-mono); text-align: right; color: var(--ink); }
.pay-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 2rem); list-style: none; counter-reset: ps; }
.pay-steps li { counter-increment: ps; border-top: 2px solid var(--bracken); padding-top: 1rem; }
.pay-steps li::before { content: counter(ps, decimal-leading-zero); font-family: var(--f-mono); font-size: .8rem; color: var(--bracken-ink); display: block; margin-bottom: .5rem; }
.pay-steps h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.pay-steps p { margin: 0; color: var(--ink-2); }
@media (max-width: 760px) { .pay-steps { grid-template-columns: 1fr; } }

/* ---------- stars: finder ---------- */
.finder { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3.5rem); align-items: start; }
.finder__chart { position: relative; min-width: 0; }
.chart-card { background: radial-gradient(120% 120% at 50% 40%, #121C36 0%, #0A101F 70%); border: 1px solid var(--line-strong); border-radius: 50%; padding: clamp(.4rem, 1.5vw, 1rem); aspect-ratio: 1; width: 100%; max-width: 680px; margin-inline: auto; position: relative; box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .7), 0 0 0 6px color-mix(in srgb, var(--heather) 14%, transparent); }
.chart-card svg { width: 100%; height: 100%; overflow: visible; }
.chart-card .horizon { fill: none; stroke: #8D6E9C; stroke-opacity: .6; stroke-width: 1.2; }
.chart-card .ring { fill: none; stroke: #E6EDF3; stroke-opacity: .09; stroke-dasharray: 2 5; }
.chart-card .cmp-l { fill: #C7ACD4; font-family: var(--f-mono); font-size: 15px; letter-spacing: .08em; }
.chart-card .cn { cursor: pointer; outline: none; }
.chart-card .cn line { stroke: #E6EDF3; stroke-opacity: .5; stroke-width: 1.3; stroke-linecap: round; transition: stroke-opacity .3s, stroke .3s, stroke-width .3s; }
.chart-card .cn circle.s { fill: #fff; transition: fill .3s; }
.chart-card .cn text { fill: #C3CFDE; font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; paint-order: stroke; stroke: #0A101F; stroke-width: 4px; opacity: .0; transition: opacity .3s; pointer-events: none; }
.chart-card .cn:hover text, .chart-card .cn:focus text, .chart-card .cn.is-on text, .chart-card.show-labels .cn text { opacity: 1; }
.chart-card .cn:hover line, .chart-card .cn:focus line, .chart-card .cn.is-on line { stroke: #F0B77D; stroke-opacity: 1; stroke-width: 2; }
.chart-card .cn.is-on circle.s, .chart-card .cn:focus circle.s { fill: #FFD9A8; }
.chart-card .cn .hit { stroke: transparent; stroke-width: 22; fill: none; }
.chart-card .cn:focus-visible .hit { stroke: rgba(217, 196, 228, .35); }
.chart-card .cn.is-low { opacity: .38; }
.chart-card .mw-core { fill: none; stroke: #C8BEFF; stroke-opacity: .14; stroke-width: 54; stroke-linecap: round; stroke-linejoin: round; filter: url(#blur-mw); }
.chart-card .mw-edge { fill: none; stroke: #C8BEFF; stroke-opacity: .12; stroke-width: 18; stroke-linecap: round; stroke-linejoin: round; filter: url(#blur-mw2); }
.finder__ctl { display: grid; gap: 1.4rem; min-width: 0; }
.finder__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: .4rem 1rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; font-weight: 700; color: var(--ink); transition: background-color .2s, color .2s, border-color .2s; font-size: .95rem; }
.chip small { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .04em; color: var(--ink-2); text-transform: uppercase; }
.chip:hover { border-color: var(--bracken); }
.chip[aria-pressed="true"] { background: var(--bracken); color: var(--on-bracken); border-color: var(--bracken); }
.chip[aria-pressed="true"] small { color: var(--on-bracken); }
.chip.is-low { opacity: .8; }
.note-card { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r); padding: 1.4rem 1.5rem; min-height: 11.5rem; }
.note-card h3 { font-size: 1.9rem; margin-bottom: .3rem; }
.note-card .mono { color: var(--bracken-ink); margin: 0 0 .8rem; display: block; }
.note-card p { margin: 0 0 .6rem; color: var(--ink-2); }
.finder__sum { font-size: .98rem; color: var(--ink); margin: 0; }
.finder__nojs { font-size: .95rem; }
.month-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.month-table th, .month-table td { padding: .65rem .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.month-table th { font-weight: 800; color: var(--ink); white-space: nowrap; }
.month-table td { color: var(--ink-2); }
details.fold { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
details.fold > summary { cursor: pointer; padding: 0 1.3rem; min-height: 56px; display: flex; align-items: center; font-weight: 800; color: var(--ink); list-style: none; justify-content: space-between; gap: 1rem; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: "+"; font-family: var(--f-mono); font-size: 1.4rem; transition: transform .3s var(--ease); color: var(--bracken-ink); }
details.fold[open] > summary::after { transform: rotate(45deg); }
details.fold .fold__b { padding: 0 1.3rem 1.3rem; }
@media (max-width: 960px) { .finder { grid-template-columns: 1fr; } }
.when { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); list-style: none; }
.when li { padding: 1.3rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); display: grid; gap: .5rem; align-content: start; }
.when .mono { color: var(--bracken-ink); }
.when h3 { font-size: 1.5rem; }
.when p { margin: 0; color: var(--ink-2); font-size: .97rem; }
@media (max-width: 1000px) { .when { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .when { grid-template-columns: 1fr; } }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 3rem; list-style: none; counter-reset: r; }
.rules li { counter-increment: r; padding-left: 3rem; position: relative; }
.rules li::before { content: counter(r, decimal-leading-zero); position: absolute; left: 0; top: .15em; font-family: var(--f-mono); font-size: .85rem; color: var(--bracken-ink); }
.rules b { color: var(--ink); }
@media (max-width: 760px) { .rules { grid-template-columns: 1fr; } }
.walks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.8rem); }
.walk { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: grid; align-content: start; min-width: 0; }
.walk img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-bottom: 1px solid var(--line); }
.walk__b { padding: 1.3rem; display: grid; gap: .6rem; }
.walk h3 { font-size: 1.6rem; }
.walk p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.walk .meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; color: var(--bracken-ink); }
@media (max-width: 900px) { .walks { grid-template-columns: 1fr; } }
.split-img { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 5rem); align-items: center; }
.split-img img { border-radius: var(--r); width: 100%; object-fit: cover; border: 1px solid var(--line); }
@media (max-width: 860px) { .split-img { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.faq-search { display: grid; gap: .5rem; margin-bottom: 2rem; }
.faq-search input { min-height: 52px; padding: .8rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); width: 100%; }
.faq-search input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.faq-group { margin-bottom: 2.6rem; }
.faq-group h2 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); margin-bottom: .8rem; }
.qa { border-bottom: 1px solid var(--line-strong); }
.qa:first-of-type { border-top: 1px solid var(--line-strong); }
.qa summary { cursor: pointer; padding: 1rem 0; min-height: 56px; font-weight: 800; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; list-style: none; color: var(--ink); line-height: 1.35; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-family: var(--f-mono); font-size: 1.5rem; line-height: 1; flex: none; color: var(--bracken-ink); transition: transform .3s var(--ease); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa__a { padding: 0 0 1.3rem; color: var(--ink-2); max-width: 40em; }
.qa__a p:last-child { margin-bottom: 0; }
.qa.is-hidden { display: none; }
.aside-card { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r); padding: clamp(1.3rem, 3vw, 2rem); position: sticky; top: calc(var(--hdr) + 16px); }
.aside-card h2 { font-size: 2rem; margin-bottom: .6rem; }
.aside-card dl { margin: 1rem 0 1.4rem; display: grid; gap: .8rem; }
.aside-card dt { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.aside-card dd { margin: 0; color: var(--ink); font-weight: 700; }
.aside-card dd a { color: var(--ink); }
@media (max-width: 960px) { .faq-layout { grid-template-columns: 1fr; } .aside-card { position: static; } }
.house { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); list-style: none; }
.house li { padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); display: grid; gap: .4rem; align-content: start; }
.house h3 { font-size: 1.45rem; }
.house p { margin: 0; color: var(--ink-2); font-size: .97rem; }
@media (max-width: 900px) { .house { grid-template-columns: 1fr; } }
.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); margin: 3rem 0 1rem; }
.prose h3 { font-size: 1.5rem; margin: 2rem 0 .6rem; }
.prose ul { margin: 0 0 1em 1.2rem; display: grid; gap: .4rem; }
.prose li { color: var(--ink-2); }
.prose p { color: var(--ink-2); }
.prose strong { color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { background: #090E1A; color: #C3CFDE; padding-top: clamp(3.5rem, 6vw, 6rem); padding-bottom: 5.5rem; position: relative; }
:root:not([data-theme="dark"]) .site-footer { background: #151D2E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-footer { background: #090E1A; } }
.site-footer h2, .site-footer h3 { color: #F3F6FA; }
.site-footer a { color: #E6EDF3; }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 4rem); }
.foot .brand { color: #F3F6FA !important; }
.foot .brand__name i { color: #E59B58; }
.foot p { font-size: .95rem; color: #AEBBCB; max-width: 24rem; }
.foot h2 { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #C7ACD4; margin-bottom: 1rem; }
.foot ul { list-style: none; display: grid; gap: .1rem; }
.foot li a { display: inline-flex; min-height: 40px; align-items: center; text-decoration: none; font-size: .97rem; }
.foot li a:hover { text-decoration: underline; }
.badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: clamp(2rem, 4vw, 3.5rem); padding-top: 2rem; border-top: 1px solid rgba(230, 237, 243, .15); list-style: none; }
.badges li { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; border: 1px solid rgba(230, 237, 243, .3); border-radius: 999px; padding: .5rem .9rem; display: inline-flex; gap: .5rem; align-items: center; color: #E6EDF3; line-height: 1.3; }
.badges svg { width: 14px; height: 14px; color: #E59B58; flex: none; }
.legal { margin-top: 1.6rem; font-size: .82rem; color: #9FAEC2; max-width: 62rem; line-height: 1.7; }
.legal p { margin: 0 0 .4rem; }
.credit { margin-top: 1.2rem; font-size: .88rem; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; color: #AEBBCB; }
@media (max-width: 900px) { .foot { grid-template-columns: 1fr 1fr; } .foot > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot { grid-template-columns: 1fr; } }

/* ---------- fixed bits ---------- */
/* Edge tab: tucked into the left margin, so it never sits on text or buttons (gutters are 18px or wider). */
.demo-pill { position: fixed; left: 0; bottom: 110px; z-index: 90; writing-mode: vertical-rl; transform: rotate(180deg); background: #0D1424; color: #E6EDF3; font-family: var(--f-mono); font-size: .56rem; letter-spacing: .08em; text-transform: uppercase; line-height: 1; padding: .7rem 0; width: 17px; display: flex; align-items: center; justify-content: center; border-radius: 0 8px 8px 0; border: 1px solid rgba(230, 237, 243, .3); border-left: 0; text-decoration: none; white-space: nowrap; opacity: .94; }
.demo-pill::after { content: ""; position: absolute; inset: 0 0 0 -14px; }
.demo-pill:hover, .demo-pill:focus-visible { background: #0D1424; opacity: 1; }
.to-top { position: fixed; right: 14px; bottom: 14px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); display: grid; place-items: center; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s var(--ease), visibility .3s, background-color .2s; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5); }
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--bracken); color: var(--on-bracken); border-color: var(--bracken); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--rd, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-img { clip-path: inset(0 0 12% 0 round 18px); transform: scale(1.04); transition: clip-path 1.3s var(--ease), transform 1.6s var(--ease); }
.js .reveal-img.is-in { clip-path: inset(0 round 18px); transform: none; }

/* ---------- view transitions ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .4s; }
html.theme-vt::view-transition-old(root), html.theme-vt::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.theme-vt::view-transition-old(root) { z-index: 1; }
html.theme-vt::view-transition-new(root) { z-index: 2; }

/* ---------- reduced motion / print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .reveal-img, .js .fade-in, .split-w > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .marquee__track { animation: none; }
  .story { height: auto; --night: 1; --st-win: 1; --steam: 1; }
  .story__pin { position: relative; height: auto; padding-bottom: 300px; }
  .story__steps { display: grid; gap: 2.2rem; min-height: 0 !important; }
  .story__step { position: static !important; opacity: 1 !important; transform: none !important; }
  .story__clock, .story__dots { display: none; }
  .btn:hover, .theme-toggle:hover, .nav-toggle:hover { transform: none; }
}
@media print {
  .site-header, .to-top, .demo-pill, .sky, .scene__mist, .marquee, .mini { display: none !important; }
  body { background: #fff; color: #000; }
  .scene { background: #fff; color: #000; }
  .story { height: auto; }
  .story__pin { position: static; height: auto; }
}
@media (max-width: 640px) { .demo-pill { width: 15px; font-size: .52rem; padding: .6rem 0; } }
