@font-face { font-family: "GTS Compressed"; src: url(../assets/fonts/gts-m-compressed-bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Switzer"; src: url(../assets/fonts/switzer-var.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #09090b;
  --ink: #f4f1ec;
  --muted: rgba(244, 241, 236, 0.66);
  --faint: rgba(244, 241, 236, 0.4);
  --line: rgba(244, 241, 236, 0.14);
  --red: #e3261c;
  --red-hi: #ff3b2f;
  --aura: #7fd3ff;
  --deep: #0b2230;
  --display: "GTS Compressed", "Switzer", system-ui, sans-serif;
  --display-track: 0.04em;
  --display-word: 0.16em;
  --sans: "Switzer", system-ui, sans-serif;
  --gutter: clamp(16px, 3vw, 44px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--red); color: #fff; }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 600; }
.skip:focus { top: 12px; }

#stage { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; touch-action: pan-y; }

/* ---------- Painikkeet ---------- */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 26px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.005em; white-space: nowrap;
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out), border-color .35s var(--ease-out), transform .35s var(--ease-out);
}
.btn .ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease-out); }
.btn:hover .ico { transform: translateX(4px); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-hi); }
.btn-ghost { border: 1px solid rgba(244, 241, 236, 0.26); color: var(--ink); }
.btn-ghost:hover { background: rgba(244, 241, 236, 0.08); border-color: rgba(244, 241, 236, 0.5); }
.btn-wide { width: 100%; }

.round {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(244, 241, 236, 0.24);
  transition: background-color .35s var(--ease-out), border-color .35s var(--ease-out), transform .35s var(--ease-out);
}
.round svg, .back svg, .p-nav svg, .qty svg, .cart-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.round:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.round:active { transform: scale(0.94); }

.display {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(64px, 9vw, 9rem);
  line-height: 0.9;
  letter-spacing: var(--display-track);
  word-spacing: var(--display-word);
}
.display .rv { display: inline-block; }
.lead { font-size: clamp(17px, 1.35vw, 20px); color: var(--muted); max-width: 36ch; line-height: 1.45; }
.warning { font-size: 12.5px; color: var(--faint); line-height: 1.45; }

/* ---------- Lataus ja portti ---------- */
.loader {
  --p: 0;
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-items: center; align-content: center; gap: 28px;
  background: #09090b;
  clip-path: inset(0 0 0 0);
}
.loader-mark { position: relative; width: min(520px, 68vw); aspect-ratio: 2252 / 859; }
.loader-mark svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lm-base { color: rgba(244, 241, 236, 0.07); }
.lm-fill { color: var(--red); clip-path: inset(calc((1 - var(--p)) * 100%) 0 0 0); filter: drop-shadow(0 0 28px rgba(227, 38, 28, 0.35)); }
.loader-flavour { height: 22px; overflow: hidden; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; text-align: center; }
.loader-flavour span { display: block; }
.loader-foot { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; display: flex; justify-content: space-between; align-items: end; font-size: 13px; font-weight: 600; color: var(--faint); }
.loader-count { font-family: var(--display); font-weight: 700; font-size: clamp(56px, 8vw, 112px); line-height: 0.8; letter-spacing: var(--display-track); color: var(--ink); font-variant-numeric: tabular-nums; }
.is-loaded .loader { pointer-events: none; }
html:not(.js) .loader { display: none; }
.gate {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 24px;
  background: rgba(9, 9, 11, 0.62);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
}
.age-ok .gate { display: none; }
.gate-card { width: min(480px, 100%); text-align: center; display: grid; justify-items: center; }
.gate-logo { width: 150px; height: 57px; color: var(--red); }
.gate-title { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: var(--display-track); word-spacing: var(--display-word); font-size: clamp(88px, 16vw, 132px); line-height: 0.85; margin-top: 28px; }
.gate-desc { margin-top: 18px; color: var(--muted); font-size: 17px; max-width: 34ch; }
.gate-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; justify-content: center; }
.gate-no { margin-top: 16px; color: var(--ink); font-weight: 500; }
.gate .warning { margin-top: 32px; }

/* ---------- Navigaatio ---------- */
.nav { position: fixed; top: 14px; left: var(--gutter); right: var(--gutter); z-index: 40; }
.nav-bar {
  height: 62px; padding: 0 7px 0 24px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  border-radius: 999px;
  background: rgba(13, 13, 16, 0.42);
  border: 1px solid rgba(244, 241, 236, 0.1);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.7);
  transition: background-color .5s var(--ease-out), border-color .5s var(--ease-out);
}
.is-scrolled .nav-bar { background: rgba(13, 13, 16, 0.72); border-color: rgba(244, 241, 236, 0.13); }
.nav-logo { display: block; width: fit-content; }
.nav-logo svg { width: 80px; height: 31px; color: var(--red); transition: transform .5s var(--ease-out); }
.nav-logo:hover svg { transform: rotate(-3deg) scale(1.04); }
.nav-links { display: flex; gap: 2px; }
.nav-links a { position: relative; padding: 9px 15px; border-radius: 999px; font-size: 14.5px; font-weight: 520; color: var(--muted); transition: color .3s, background-color .3s; }
.nav-links a:hover { color: var(--ink); background: rgba(244, 241, 236, 0.07); }
.nav-links a.is-current { color: var(--ink); }
.nav-links a.is-current::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--red); }
.nav-right { justify-self: end; display: flex; gap: 6px; align-items: center; }
.nav-shop { height: 46px; padding: 0 22px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 14.5px; font-weight: 620; background: var(--ink); color: var(--bg); transition: background-color .3s, transform .3s var(--ease-out); }
.nav-shop:hover { background: #fff; }
.nav-shop:active { transform: scale(0.96); }
.cart-btn { position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; transition: background-color .3s; }
.cart-btn:hover { background: rgba(244, 241, 236, 0.1); }
.cart-count { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; font-variant-numeric: tabular-nums; transform: scale(0); transition: transform .45s var(--ease-out); }
.cart-count.has { transform: scale(1); }
.cart-count.bump { animation: bump .5s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.35); } }

/* ---------- Hero ---------- */
main { position: relative; z-index: 1; pointer-events: none; }
main > section:not(.hero), main > .marquee { pointer-events: auto; }
.hero { position: relative; height: 100svh; min-height: 560px; pointer-events: none; }
.hero > * { pointer-events: auto; }
.hero-copy {
  position: absolute; left: var(--gutter); bottom: clamp(32px, 6vh, 64px);
  width: min(400px, 36vw);
}
.hero-line { font-size: clamp(22px, 1.9vw, 28px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.hero-desc { margin-top: 12px; color: var(--muted); font-size: 15.5px; line-height: 1.5; max-width: 40ch; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.chips li { font-size: 12.5px; font-weight: 600; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.hero-actions { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }

.hero-ctrl { position: absolute; right: var(--gutter); bottom: clamp(32px, 6vh, 64px); display: grid; justify-items: end; gap: 16px; }
.hero-hint { font-size: 13px; color: var(--faint); display: flex; align-items: center; gap: 8px; }
.hero-hint svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ctrl-row { display: flex; align-items: center; gap: 14px; }
.counter { display: flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 14px; min-width: 76px; justify-content: center; }
.counter-sep { width: 18px; height: 1px; background: var(--faint); }
.counter-total { color: var(--faint); }
.scrub { --p: 0; position: relative; width: 220px; height: 28px; cursor: grab; touch-action: none; display: flex; align-items: center; }
.scrub:active, .scrub.is-drag { cursor: grabbing; }
.scrub-track { position: relative; display: block; width: 100%; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.scrub-fill { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--p)); }
.scrub-thumb { position: absolute; top: 50%; left: calc(var(--p) * (100% - 16px)); width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 6px color-mix(in srgb, var(--aura) 28%, transparent); transition: transform .35s var(--ease-out), box-shadow .35s; }
.scrub:not(.is-drag) .scrub-fill, .scrub:not(.is-drag) .scrub-thumb { transition: transform .35s var(--ease-out), left .7s var(--ease-out), box-shadow .35s; }
.scrub:not(.is-drag) .scrub-fill { transition: transform .7s var(--ease-out); }
.scrub:hover .scrub-thumb, .scrub.is-drag .scrub-thumb { transform: scale(1.25); box-shadow: 0 0 0 9px color-mix(in srgb, var(--aura) 32%, transparent); }
.scrub:focus-visible { outline: none; }
.scrub:focus-visible .scrub-thumb { outline: 2px solid var(--ink); outline-offset: 4px; }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 26px; height: 42px; margin-left: -13px; border-radius: 20px; border: 1px solid rgba(244, 241, 236, 0.3); }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 25% { opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* alkutila ennen introa */
.js .nav, .js .hero-copy, .js .hero-ctrl, .js .scroll-cue { opacity: 0; }

/* ---------- Tuotenäkymä ---------- */
.product { position: fixed; inset: 0; z-index: 20; pointer-events: none; visibility: hidden; }
.is-product .product { visibility: visible; }
.is-product .product > * { pointer-events: auto; }
.back {
  position: absolute; top: 96px; left: var(--gutter);
  display: inline-flex; align-items: center; gap: 12px;
  height: 58px; padding: 0 28px 0 22px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-weight: 650; font-size: 16px; letter-spacing: -0.01em;
  box-shadow: 0 14px 40px -12px rgba(0, 0, 0, 0.6);
  transition: transform .45s var(--ease-out), background-color .3s;
}
.back svg { transition: transform .45s var(--ease-out); stroke-width: 2.2; }
.back:hover svg { transform: translateX(-5px); }
.back:hover { background: #fff; }
.back:active { transform: scale(0.97); }
.rotate-hint { position: absolute; left: calc(var(--gutter) + 22vw); bottom: 40px; transform: translateX(-50%); font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.rotate-hint::before, .rotate-hint::after { content: ""; width: 26px; height: 1px; background: var(--faint); }

.p-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(600px, 46vw);
  overflow-y: auto; overscroll-behavior: contain;
  padding: 112px var(--gutter) 48px 0;
  scrollbar-width: thin; scrollbar-color: rgba(244,241,236,.2) transparent;
}
.p-inner { max-width: 500px; }
.p-name { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: var(--display-track); word-spacing: var(--display-word); font-size: clamp(72px, 8.4vw, 8.5rem); line-height: 0.86; overflow: hidden; padding-bottom: 4px; }
.p-name-in { display: block; }
.p-meta { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.p-meta .dot, .callout .pin { width: 5px; height: 5px; border-radius: 50%; background: var(--aura); }
.p-line { margin-top: 28px; font-size: clamp(22px, 1.9vw, 27px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.18; }
.p-desc { margin-top: 12px; color: var(--muted); font-size: 16px; max-width: 46ch; }
.p-h { font-size: 12.5px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.p-notes { margin-top: 30px; }
.p-notes ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.p-notes li { padding: 8px 14px; border-radius: 999px; background: rgba(244, 241, 236, 0.08); font-size: 14px; font-weight: 550; }
.p-specs { display: grid; grid-template-columns: 1fr 1fr; margin-top: 30px; border-top: 1px solid var(--line); }
.p-specs > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.p-specs > div:nth-child(odd) { padding-right: 16px; }
.p-specs dt { font-size: 12.5px; color: var(--faint); font-weight: 600; }
.p-specs dd { margin: 4px 0 0; font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.meter { display: inline-flex; gap: 3px; }
.meter i { width: 6px; height: 14px; border-radius: 2px; background: rgba(244, 241, 236, 0.2); }
.meter i:nth-child(-n+4) { background: var(--red); }

.buy { margin-top: 32px; }
.packs { border: 0; margin: 0; padding: 0; min-width: 0; }
.packs-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.pack { position: relative; display: grid; gap: 2px; padding: 14px 14px 13px; border-radius: 14px; border: 1px solid var(--line); text-align: left; cursor: pointer; transition: border-color .3s, background-color .3s; }
.pack input { position: absolute; opacity: 0; pointer-events: none; }
.pack b { font-size: 15px; font-weight: 650; }
.pack span { font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pack em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--aura); margin-top: 4px; }
.pack:hover { border-color: rgba(244, 241, 236, 0.4); }
.pack:has(input:checked) { border-color: var(--ink); background: rgba(244, 241, 236, 0.07); }
.pack:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.buy-row { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.qty { display: inline-flex; align-items: center; height: 50px; border-radius: 999px; border: 1px solid var(--line); }
.qty button { width: 46px; height: 100%; display: grid; place-items: center; border-radius: 999px; transition: background-color .25s; }
.qty button:hover { background: rgba(244, 241, 236, 0.08); }
.qty button:disabled { opacity: 0.3; cursor: not-allowed; background: none; }
.qty output { min-width: 28px; text-align: center; font-weight: 650; font-variant-numeric: tabular-nums; }
.total { display: grid; justify-items: end; }
.total-label { font-size: 12.5px; color: var(--faint); font-weight: 600; }
.total [data-total], .total [data-cart-total] { font-size: 26px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.buy-actions { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; margin-top: 18px; }
.product .warning { margin-top: 18px; }
.p-nav { display: flex; justify-content: space-between; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); }
.p-nav button { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 550; color: var(--muted); padding: 8px 0; transition: color .3s; }
.p-nav button:hover { color: var(--ink); }
.p-nav b { color: var(--ink); font-weight: 650; }

/* ---------- Inside ---------- */
.inside { position: relative; height: 340vh; }
.inside-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.inside-copy { position: absolute; left: var(--gutter); top: 22vh; max-width: 420px; }
.inside-copy .lead { margin-top: 22px; }
.callouts { position: absolute; inset: 0; pointer-events: none; }
.callout { position: absolute; top: var(--y); width: 240px; opacity: 0; will-change: transform, opacity; }
.callout.c-r { left: var(--x); }
.callout.c-l { left: calc(var(--x) - 240px); text-align: right; }
.callout h3 { font-size: 18px; font-weight: 650; letter-spacing: -0.015em; line-height: 1.2; }
.callout p { font-size: 14px; color: var(--muted); margin-top: 5px; line-height: 1.45; }
.c-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.c-lines path { fill: none; stroke: rgba(244, 241, 236, 0.55); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; }
.c-lines circle { fill: var(--ink); stroke: rgba(244, 241, 236, 0.25); stroke-width: 8; paint-order: stroke; opacity: 0; }
.inside-progress { position: absolute; left: var(--gutter); bottom: 44px; width: 160px; height: 2px; background: var(--line); }
.inside-progress span { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }

/* ---------- Makulista ---------- */
.flavours { position: relative; padding: 18vh var(--gutter) 16vh; }
.fl-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; flex-wrap: wrap; max-width: 62%; }
.tabs { position: relative; display: flex; padding: 5px; border-radius: 999px; border: 1px solid var(--line); background: rgba(15, 15, 18, 0.5); }
.tabs button { position: relative; z-index: 1; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); transition: color .35s; }
.tabs button[aria-selected="true"] { color: var(--bg); }
.tab-pill { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; background: var(--ink); transition: transform .5s var(--ease-out), width .5s var(--ease-out); }
.fl-list { margin-top: 56px; max-width: 62%; border-top: 1px solid var(--line); }
.fl-row { border-bottom: 1px solid var(--line); }
.fl-row[hidden] { display: none; }
.fl-row button {
  width: 100%; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 28px; align-items: center; gap: 18px;
  padding: 16px 0; text-align: left;
}
.fl-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent); }
.fl-name { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: var(--display-track); word-spacing: var(--display-word); font-size: clamp(48px, 6.4vw, 104px); line-height: 0.9; transition: transform .6s var(--ease-out), color .4s; }
.fl-fam { font-size: 13px; font-weight: 600; color: var(--faint); text-align: right; }
.fl-arrow { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: translateX(-10px); transition: opacity .4s, transform .5s var(--ease-out); }
.fl-list:hover .fl-row button { opacity: 0.4; }
.fl-list .fl-row button { transition: opacity .4s; }
.fl-list .fl-row button:hover, .fl-list .fl-row button:focus-visible { opacity: 1; }
.fl-row button:hover .fl-name, .fl-row button:focus-visible .fl-name, .fl-row.is-on .fl-name { transform: translateX(14px); color: var(--c2); }
.fl-row button:hover .fl-arrow, .fl-row button:focus-visible .fl-arrow { opacity: 1; transform: none; }

/* ---------- Tarina ---------- */
.story { padding: 22vh var(--gutter) 20vh; }
.story-text { font-size: clamp(32px, 4.3vw, 68px); font-weight: 560; letter-spacing: -0.03em; line-height: 1.06; max-width: 20ch; text-wrap: balance; }
.story-text .w { opacity: 0.16; transition: none; }

.marquee { position: relative; z-index: 1; overflow: hidden; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee-track { display: flex; width: max-content; gap: 0; }
.marquee-track span { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: var(--display-track); word-spacing: var(--display-word); font-size: clamp(64px, 9vw, 140px); line-height: 0.9; padding: 0 0.32em; display: flex; align-items: center; gap: 0.32em; color: var(--ink); }
.marquee-track span::after { content: ""; width: 0.14em; height: 0.14em; border-radius: 50%; background: var(--red); }

/* ---------- Myymälät ---------- */
.stores { padding: 20vh var(--gutter) 12vh; position: relative; z-index: 1; }
.stores-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: end; }
.stores .lead { margin-top: 22px; }
.store-form label:not(.check) { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.field { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: rgba(20, 20, 24, 0.75); border: 1px solid var(--line); transition: border-color .3s; }
.field:focus-within { border-color: rgba(244, 241, 236, 0.5); }
.field input { flex: 1; min-width: 0; background: none; border: 0; color: var(--ink); font: inherit; font-size: 16px; padding: 0 18px; outline: none; }
.field input::placeholder { color: rgba(244, 241, 236, 0.5); }
.field .btn { --h: 48px; }
.form-msg { min-height: 1.5em; margin-top: 12px; font-size: 14.5px; color: var(--muted); }
.form-msg.err { color: #ff8a80; }
.news { margin-top: 18vh; padding-top: 40px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; }
.news h3 { font-size: clamp(26px, 2.4vw, 36px); font-weight: 620; letter-spacing: -0.025em; line-height: 1.1; }
.news p { color: var(--muted); margin-top: 10px; max-width: 42ch; }
.check { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--red); }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 1; padding: 12vh var(--gutter) 28px; background: linear-gradient(to bottom, transparent, rgba(9, 9, 11, 0.9) 22%); }
.footer-mark { width: 100%; height: auto; aspect-ratio: 2252 / 859; color: var(--red); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.footer-warn { padding: 18px 20px; border: 1px solid rgba(244, 241, 236, 0.3); border-radius: 14px; font-weight: 600; font-size: 14.5px; line-height: 1.45; max-width: 460px; }
.footer-warn p + p { margin-top: 8px; font-weight: 450; color: var(--muted); font-size: 13.5px; }
.footer nav { display: grid; gap: 10px; align-content: start; }
.footer nav a { color: var(--muted); font-size: 15px; transition: color .3s; width: fit-content; }
.footer nav a:hover { color: var(--ink); }
.footer-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; font-size: 13px; color: var(--faint); }

/* ---------- Ostoskori ---------- */
.cart { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.cart.open { visibility: visible; }
.cart-scrim { position: absolute; inset: 0; background: rgba(5, 5, 7, 0.55); opacity: 0; transition: opacity .5s var(--ease-out); }
.cart.open .cart-scrim { opacity: 1; }
.cart-panel { position: absolute; top: 10px; right: 10px; bottom: 10px; width: min(440px, calc(100% - 20px)); border-radius: 20px; background: #121215; border: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr auto; transform: translateX(calc(100% + 20px)); transition: transform .65s var(--ease-out); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7); }
.cart.open .cart-panel { transform: none; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 22px 18px 26px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; }
.cart-head .round { width: 44px; height: 44px; }
.cart-list { overflow-y: auto; padding: 8px 26px; }
.cart-item { display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #e4e2dd); display: grid; place-items: center; box-shadow: inset 0 0 0 3px #fff, 0 6px 16px -6px rgba(0,0,0,.6); }
.cart-thumb svg { width: 34px; height: 13px; color: var(--red); }
.cart-item h3 { font-size: 15.5px; font-weight: 650; }
.cart-item p { font-size: 13.5px; color: var(--muted); }
.cart-item .rm { font-size: 13px; color: var(--faint); text-decoration: underline; text-underline-offset: 3px; margin-top: 2px; }
.cart-item .rm:hover { color: var(--ink); }
.cart-item .price { font-weight: 650; font-variant-numeric: tabular-nums; }
.cart-empty { padding: 26px; color: var(--muted); align-self: start; }
.cart-foot { padding: 20px 26px 24px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.cart-foot .total { display: flex; justify-content: space-between; align-items: baseline; }
.cart-note { font-size: 12.5px; color: var(--faint); text-align: center; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 110; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14.5px; padding: 13px 20px; border-radius: 999px; box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.6); transition: transform .5s var(--ease-out), opacity .5s var(--ease-out); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Pienemmät näytöt ---------- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-bar { grid-template-columns: 1fr auto; }
  .fl-head, .fl-list { max-width: 64%; }
}
@media (max-width: 760px) {
  .nav { top: 10px; }
  .nav-bar { height: 54px; padding: 0 5px 0 18px; }
  .nav-logo svg { width: 70px; height: 27px; }
  .nav-shop { height: 42px; padding: 0 18px; }
  .cart-btn { width: 42px; height: 42px; }
  .hero-copy { left: var(--gutter); right: var(--gutter); width: auto; bottom: 104px; }
  .hero-desc, .chips, .hero-hint { display: none; }
  .hero-line { font-size: 21px; }
  .hero-actions { margin-top: 18px; }
  .hero-actions .btn { --h: 50px; padding: 0 20px; flex: 1; }
  .hero-ctrl { left: var(--gutter); right: var(--gutter); bottom: 28px; justify-items: stretch; }
  .ctrl-row { justify-content: space-between; }
  .scrub { width: 100%; order: 3; }
  .hero-ctrl { gap: 10px; }
  .round { width: 48px; height: 48px; }
  .scroll-cue { display: none; }

  .back { top: 78px; height: 48px; padding: 0 20px 0 16px; font-size: 15px; }
  .rotate-hint { display: none; }
  .p-panel { top: 44svh; width: 100%; padding: 28px var(--gutter) 40px; background: linear-gradient(to bottom, transparent, rgba(9, 9, 11, 0.55) 60px, rgba(9, 9, 11, 0.8)); border-radius: 22px 22px 0 0; }
  .p-name { font-size: clamp(56px, 17vw, 84px); }
  .buy-actions { grid-template-columns: 1fr; }

  .inside { height: 300vh; }
  .inside-copy { top: 13vh; right: var(--gutter); }
  .inside-copy .lead { font-size: 16px; }
  .callout { width: 150px; }
  .callout.c-l { left: calc(var(--x) - 150px); }
  .callout p { display: none; }
  .callout h3 { font-size: 15px; }
  .callout[data-anchor="edge"], .callout[data-anchor="base"], .c-lines [data-line="edge"], .c-lines [data-line="base"], .c-lines [data-pin="edge"], .c-lines [data-pin="base"] { display: none; }

  .fl-head, .fl-list { max-width: none; }
  .fl-head { padding-right: 34vw; }
  .tabs { overflow-x: auto; max-width: 100%; }
  .tabs button { padding: 8px 11px; font-size: 13px; }
  .fl-row button { grid-template-columns: 16px minmax(0, 1fr) 22px; gap: 14px; padding: 14px 0; }
  .fl-fam { display: none; }
  .fl-arrow { opacity: 1; transform: none; }
  .fl-list:hover .fl-row button { opacity: 1; }

  .stores-grid, .news, .footer-grid { grid-template-columns: 1fr; }
  .news { margin-top: 12vh; gap: 22px; }
  .field { flex-direction: column; border-radius: 22px; padding: 6px; }
  .field input { height: 48px; }
  .field .btn { width: 100%; }
  .footer-legal { flex-direction: column; }
}
@media (min-width: 761px) and (max-height: 820px) {
  .hero-desc { display: none; }
  .hero-line { font-size: 24px; }
}
@media (max-width: 760px) and (max-height: 700px) {
  .hero-copy { bottom: 92px; }
  .hero-line { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
