/* HALCYON theme. Type: Archivo (SIL Open Font License 1.1, Omnibus-Type), self-hosted. Icons: Phosphor (MIT). */

/* @font-face lives inline in layout/theme.liquid (absolute CDN URLs, font-display: block). */

:root {
  color-scheme: dark;
  --bg: #0b1013;
  --bg-2: #10171b;
  --bg-3: #172026;
  --bg-4: #1f2a31;
  --line: rgb(196 214 222 / 0.12);
  --line-strong: rgb(196 214 222 / 0.24);
  --text: #e8eef0;
  --text-2: #a3b3ba;
  --text-3: #7e9098;
  --accent: #ee5546;
  --accent-press: #d94a3c;
  --on-accent: #0b1013;
  --focus: #e8eef0;
  --radius: 2px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --header-h: 68px;
  --player-h: 0px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --step--1: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-0: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  --step-1: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --step-3: clamp(2rem, 1.6rem + 1.8vw, 3rem);
  --step-4: clamp(2.5rem, 1.7rem + 3.6vw, 4.75rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-stretch: 100%;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--player-h);
  transition: padding-bottom 0.4s var(--ease);
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { color: var(--text); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: var(--radius); }
html { scrollbar-color: var(--bg-4) var(--bg); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-4); border: 2px solid var(--bg); border-radius: 10px; }
input, textarea { caret-color: var(--accent); }

.visually-hidden {
  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-link {
  position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px;
  background: var(--text); color: var(--bg); text-decoration: none; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }
.skip-link:hover, .toast a:hover { color: var(--bg); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.15em; height: 1.15em; flex: none; }

/* Type */
.display {
  font-weight: 200;
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  line-height: 1;
  margin: 0;
}
.h1, .h2, .h3 { margin: 0; font-weight: 300; font-stretch: 112%; line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; }
.h1 { font-size: var(--step-4); }
.h2 { font-size: var(--step-3); }
.h3 { font-size: var(--step-1); font-weight: 500; font-stretch: 100%; letter-spacing: 0; }
.lede { font-size: var(--step-1); color: var(--text-2); line-height: 1.5; max-width: 36ch; margin: 0; text-wrap: pretty; }
.muted { color: var(--text-2); }
.prose { max-width: 66ch; color: var(--text-2); }
.prose p { margin: 0 0 1em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--text); }
.quote-line { font-style: italic; font-weight: 300; color: var(--text); }

/* Buttons */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 24px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-size: 0.9375rem; font-weight: 600; font-stretch: 110%; letter-spacing: 0.04em;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.12s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: #f26a5c; color: var(--on-accent); }
.btn--primary:active { background: var(--accent-press); }
.btn--ghost { background: rgb(11 16 19 / 0.35); border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--text-2); background: rgb(11 16 19 / 0.6); }
.btn--quiet { background: transparent; color: var(--text-2); padding-inline: 12px; }
.btn--quiet:hover { color: var(--text); }
.btn--sm { --h: 40px; padding: 0 16px; font-size: 0.875rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn__label { opacity: 0.6; }
.btn.is-done { background: var(--bg-4); color: var(--text); border-color: var(--line-strong); }
.btn .price-inline { font-weight: 400; opacity: 0.85; }

/* Play control (round) */
.play {
  --s: 44px;
  width: var(--s); height: var(--s); flex: none;
  display: inline-grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line-strong);
  background: transparent; color: var(--text); cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.12s var(--ease);
}
.play:hover { border-color: var(--text); }
.play:active { transform: scale(0.96); }
.play .icon { width: 16px; height: 16px; }
.play .icon--pause { display: none; }
.is-playing .play .icon--play, .play.is-playing .icon--play { display: none; }
.is-playing .play .icon--pause, .play.is-playing .icon--pause { display: block; }
.play.is-playing, .is-playing .play { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.play[disabled] { opacity: 0.35; cursor: not-allowed; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--header-h);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid, .site-header--solid {
  background: rgb(11 16 19 / 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
@media (prefers-reduced-transparency: reduce) {
  .site-header.is-solid, .site-header--solid { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.wordmark {
  font-weight: 300; font-stretch: 125%; letter-spacing: 0.28em; text-transform: uppercase;
  font-size: 0.9375rem; text-decoration: none; white-space: nowrap; margin-right: auto;
}
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  font-size: 0.875rem; font-weight: 500; letter-spacing: 0.02em; color: var(--text-2);
  text-decoration: none; white-space: nowrap; transition: color 0.2s var(--ease);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 0; background: none; color: var(--text); cursor: pointer; border-radius: var(--radius); text-decoration: none;
}
.icon-btn .icon { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 9px;
  background: var(--accent); color: var(--on-accent); font-size: 0.6875rem; font-weight: 700; line-height: 1;
  transition: transform 0.3s var(--ease);
}
.cart-count[hidden] { display: none; }
.cart-count.is-bumped { animation: bump 0.5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* Recorder indicator: on only while audio plays */
.rec {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; color: var(--text-3);
  transition: color 0.3s var(--ease);
  pointer-events: none; white-space: nowrap;
}
.rec__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); box-shadow: inset 0 0 0 1px rgb(232 238 240 / 0.15); transition: background-color 0.3s var(--ease); }
.rec__time { min-width: 2.6em; }
.rec.is-live { color: var(--text-2); }
.rec.is-live .rec__dot { background: var(--accent); }
.rec.is-live .rec__dot { animation: rec 1.6s ease-in-out infinite; }
@keyframes rec { 50% { opacity: 0.25; } }

.menu-toggle { display: none; }
.mobile-nav { display: none; }

@media (max-width: 860px) {
  .site-nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .rec__time { display: none; }
  .mobile-nav {
    display: block; position: fixed; inset: var(--header-h) 0 0 0; z-index: 39;
    background: var(--bg); padding: 24px var(--gutter);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .mobile-nav a {
    display: block; padding: 16px 0; border-bottom: 1px solid var(--line);
    font-size: var(--step-2); font-weight: 300; font-stretch: 112%; text-decoration: none;
  }
}

/* Hero */
.hero {
  position: relative; min-height: min(100dvh, 960px); display: flex; align-items: flex-end;
  isolation: isolate; overflow: hidden; background: var(--bg-2);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focal, 60% 50%); }
.hero__media--empty {
  background:
    radial-gradient(ellipse 60% 40% at 72% 58%, rgb(126 160 170 / 0.16), transparent 70%),
    linear-gradient(180deg, var(--bg-3), var(--bg));
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgb(11 16 19 / 0.92) 0%, rgb(11 16 19 / 0.7) 34%, rgb(11 16 19 / 0.1) 68%),
    linear-gradient(0deg, var(--bg) 0%, rgb(11 16 19 / 0) 36%),
    linear-gradient(180deg, rgb(11 16 19 / 0.65) 0%, rgb(11 16 19 / 0) 22%);
}
.hero__content { padding-top: calc(var(--header-h) + 48px); padding-bottom: clamp(48px, 9vh, 112px); }
.hero__title { font-size: clamp(2.75rem, 1.2rem + 7.2vw, 6rem); margin-bottom: 20px; margin-left: -0.04em; }
.hero__sub {
  font-size: clamp(0.8125rem, 0.75rem + 0.3vw, 1rem); font-weight: 400; font-stretch: 125%;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-2); margin: 0 0 32px;
}
.hero__lede { margin-bottom: 36px; max-width: 30ch; color: var(--text); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__actions .btn--primary { padding-left: 18px; }
.hero__note { margin: 18px 0 0; font-size: var(--step--1); color: var(--text-3); }
.hero__content > * { animation: rise 1.1s var(--ease) both; }
.hero__content > *:nth-child(2) { animation-delay: 0.08s; }
.hero__content > *:nth-child(3) { animation-delay: 0.16s; }
.hero__content > *:nth-child(4) { animation-delay: 0.24s; }
.hero__media img { animation: settle 2.4s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes settle { from { opacity: 0; transform: scale(1.04); } }

/* Hero play control: the button becomes the player */
.hero-play { display: inline-flex; align-items: center; gap: 14px; }
.hero-play .btn__glyph {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--on-accent); color: var(--accent);
}
.hero-play .btn__glyph .icon { width: 12px; height: 12px; }
.hero-play .icon--pause { display: none; }
.hero-play.is-playing .icon--play { display: none; }
.hero-play.is-playing .icon--pause { display: block; }
.hero-play__time { font-weight: 500; font-stretch: 100%; letter-spacing: 0; display: none; }
.hero-play.is-playing .hero-play__time, .hero-play.is-paused .hero-play__time { display: inline; }

/* Sections */
.section { padding-block: clamp(56px, 7vw, 104px); }
.section--tight { padding-block: clamp(48px, 5vw, 72px); }
.section + .section--rule { border-top: 1px solid var(--line); }
.section__head { margin-bottom: clamp(32px, 5vw, 56px); display: grid; gap: 14px; }
.section__head .prose { margin: 0; }

/* Manifesto quote */
.manifesto { text-align: center; }
.manifesto blockquote { margin: 0 auto; }
.manifesto p {
  margin: 0 auto; max-width: 17ch; font-size: clamp(1.875rem, 1.1rem + 3.3vw, 4rem); line-height: 1.12;
  font-weight: 200; font-stretch: 112%; letter-spacing: -0.015em; text-wrap: balance;
}
.manifesto p { color: var(--text-2); }
.manifesto p em { font-style: normal; color: var(--text); font-weight: 400; }
.manifesto cite {
  display: block; margin-top: 28px; font-style: normal; font-size: var(--step--1);
  color: var(--text-3); letter-spacing: 0.06em;
}

/* Tracklist */
.tracklist-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.tracklist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: none; }
.track {
  position: relative;
  display: grid; grid-template-columns: 44px 64px minmax(0, 1fr) auto auto; align-items: center;
  column-gap: clamp(12px, 2vw, 24px); padding: 18px 12px 18px 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s var(--ease);
}
.track:hover { background: linear-gradient(90deg, rgb(31 42 49 / 0.0), rgb(31 42 49 / 0.55) 30%, rgb(31 42 49 / 0.0)); }
.track.is-current { background: linear-gradient(90deg, rgb(31 42 49 / 0.0), rgb(31 42 49 / 0.8) 30%, rgb(31 42 49 / 0.0)); }
.track__art {
  position: relative; display: block; width: 64px; aspect-ratio: 1; overflow: hidden;
  border-radius: 4px; background: var(--bg-4); box-shadow: inset 0 0 0 1px var(--line);
}
.track__art img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity 0.25s var(--ease); }
.track:hover .track__art img, .track.is-current .track__art img { opacity: 1; }
.track__no {
  position: absolute; left: 5px; bottom: 3px; font-size: 0.6875rem; line-height: 1; color: var(--text-2);
  font-weight: 600; letter-spacing: 0.04em; text-shadow: 0 1px 3px rgb(0 0 0 / 0.9);
}
.track__main { min-width: 0; }
.track__title { display: block; font-size: var(--step-1); font-weight: 400; font-stretch: 108%; text-decoration: none; line-height: 1.3; }
.track__title::after { content: ""; position: absolute; inset: 0; }
.track__hook {
  display: block; margin-top: 4px; color: var(--text-2); font-style: italic; font-weight: 300;
  font-size: 0.9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.track__price { font-size: 0.9375rem; color: var(--text-2); white-space: nowrap; }
.track__price.is-free { color: var(--text); font-weight: 600; letter-spacing: 0.04em; }
.track .play, .track__buy { position: relative; z-index: 1; }
.track__buy .btn { --h: 40px; }
.track.is-current .track__no { color: var(--text); }
.track.is-playing .track__title { color: var(--accent); }
@media (max-width: 720px) {
  .track { grid-template-columns: 40px 48px minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; padding-right: 0; }
  .track .play { --s: 40px; grid-row: 1 / span 2; }
  .track__art { width: 48px; grid-column: 2; grid-row: 1 / span 2; }
  .track__no { display: none; }
  .track__main { grid-column: 3; grid-row: 1 / span 2; }
  .track__price { grid-column: 4; grid-row: 1; text-align: right; font-size: 0.875rem; }
  .track__buy { grid-column: 4; grid-row: 2; justify-self: end; }
  .track__buy .btn { --h: 36px; padding: 0 12px; }
  .track__hook { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}

/* Bundle */
.bundle { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.bundle__art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-3); border-radius: var(--radius); }
.bundle__art img { width: 100%; height: 100%; object-fit: cover; }
.bundle__body { display: grid; gap: 22px; }
.price-block { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.price-block__now { font-size: var(--step-3); font-weight: 300; font-stretch: 108%; line-height: 1; }
.price-block__was { color: var(--text-3); text-decoration: line-through; text-decoration-thickness: 1px; }
.price-block__save { color: var(--text-2); font-size: var(--step--1); font-weight: 600; letter-spacing: 0.04em; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin: 4px 0 0; }
.facts div { border-top: 1px solid var(--line); padding-top: 12px; }
.facts dt { font-size: var(--step--1); color: var(--text-3); }
.facts dd { margin: 2px 0 0; font-size: var(--step-0); }
@media (max-width: 860px) { .bundle { grid-template-columns: 1fr; } }

/* Cast: hairline-ruled columns */
.cast { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 56px); row-gap: clamp(32px, 4vw, 56px); }
.cast__item { display: grid; align-content: start; gap: 18px; padding-top: 18px; border-top: 1px solid var(--line-strong); }
@media (max-width: 860px) { .cast { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cast { grid-template-columns: 1fr; } }
.cast__name { font-size: var(--step-2); font-weight: 300; font-stretch: 112%; line-height: 1.1; margin: 0 0 6px; }
.cast__role { color: var(--text-3); font-size: var(--step--1); margin: 0; }
.cast__line { margin: 0; color: var(--text-2); font-style: italic; font-weight: 300; line-height: 1.5; }
/* Production note */
.note { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 760px; gap: 24px; }
.note__sig { display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--text-3); font-size: var(--step--1); padding-top: 16px; border-top: 1px solid var(--line); }
.note__sig strong { color: var(--text); font-weight: 500; }

/* FAQ, optionally paired with the production note */
.faq-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.faq-split .note { position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 860px) { .faq-split { grid-template-columns: 1fr; } .faq-split .note { position: static; } }
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; font-size: var(--step-1); font-weight: 400; font-stretch: 104%;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform 0.3s var(--ease); color: var(--text-2); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .prose { padding: 0 0 24px; }

/* Product (chapter) */
.chapter { padding-top: calc(var(--header-h) + clamp(24px, 4vw, 56px)); padding-bottom: clamp(56px, 8vw, 112px); }
.chapter__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.chapter__art { position: sticky; top: calc(var(--header-h) + 24px); }
.chapter__body { display: grid; gap: 24px; }
.crumbs { font-size: var(--step--1); color: var(--text-3); display: flex; gap: 10px; flex-wrap: wrap; }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.chapter__title { font-size: var(--step-4); }
.chapter__meta { color: var(--text-2); margin: 14px 0 0; }
.chapter__hook { margin: 0; font-size: var(--step-1); line-height: 1.45; color: var(--text); font-style: italic; font-weight: 300; max-width: 30ch; }
.buy-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.buy-row .price { font-size: var(--step-2); font-weight: 300; font-stretch: 108%; margin-right: 8px; }
.form-error { color: var(--accent); font-size: var(--step--1); margin: 0; }
.form-error:empty { display: none; }
.upsell {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2);
  text-decoration: none;
}
.upsell:hover { border-color: var(--line-strong); }
.upsell__t { display: block; font-weight: 500; }
.upsell__s { display: block; color: var(--text-2); font-size: var(--step--1); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid var(--line); padding-top: 20px; }
.pager a { text-decoration: none; display: grid; gap: 2px; }
.pager a:last-child { text-align: right; justify-items: end; }
.pager small { color: var(--text-3); font-size: var(--step--1); }
.pager span { font-weight: 500; }
@media (max-width: 860px) {
  .chapter__grid { grid-template-columns: 1fr; }
  .chapter__art { position: static; }
}

/* Chapter art plate (fallback when a chapter has no image) */
.plate {
  position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); isolation: isolate;
  background: var(--bg-2); border: 1px solid var(--line);
}
.plate > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.plate--type > img { filter: saturate(0.6) brightness(0.55); }
.plate--type::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(11 16 19 / 0.1), rgb(11 16 19 / 0.85)); }
.plate__no {
  position: absolute; left: 7%; bottom: 18%; font-weight: 100; font-stretch: 125%; line-height: 0.8;
  font-size: clamp(5rem, 22vw, 15rem); letter-spacing: -0.02em; color: var(--text);
}
.plate__label {
  position: absolute; left: 7%; right: 7%; bottom: 7%; display: flex; justify-content: space-between; gap: 16px;
  font-size: var(--step--1); font-stretch: 125%; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-2);
}
.plate__label span:last-child { text-align: right; }
.plate--sm .plate__no { font-size: clamp(3.5rem, 9vw, 6rem); }

/* Collection */
.collection-hero { padding-top: calc(var(--header-h) + clamp(40px, 7vw, 96px)); padding-bottom: clamp(32px, 4vw, 56px); display: grid; gap: 18px; }
.collection-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Cart */
.cart { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 80px)); padding-bottom: clamp(72px, 9vw, 120px); }
.cart__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 72px); align-items: start; margin-top: 40px; }
.cart-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto auto; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line .plate { width: 72px; }
.cart-line__title { text-decoration: none; font-weight: 500; }
.cart-line__sub { display: block; color: var(--text-3); font-size: var(--step--1); }
.cart-summary { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; padding: 24px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); }
.cart-summary__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.cart-summary__total { font-size: var(--step-2); font-weight: 300; font-stretch: 108%; }
.cart-summary .btn { width: 100%; }
.empty-state { display: grid; gap: 16px; justify-items: start; padding: 48px 0; max-width: 46ch; }
@media (max-width: 860px) { .cart__grid { grid-template-columns: 1fr; } .cart-line { grid-template-columns: 56px minmax(0, 1fr) auto; } .cart-line .plate { width: 56px; } .cart-line__price { grid-column: 3; } .cart-line__remove { grid-column: 2; justify-self: start; } }

/* Forms */
.field { display: grid; gap: 8px; }
.field label { font-size: var(--step--1); color: var(--text-2); }
.input {
  min-height: 52px; padding: 0 16px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius);
  color: var(--text); width: 100%;
}
.input::placeholder { color: var(--text-3); }
.input:focus { outline: none; border-color: var(--text); }
.inline-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; max-width: 520px; }
.form-msg { font-size: var(--step--1); color: var(--text-2); margin: 0; }
.form-msg--ok { color: var(--text); }
.form-msg--err { color: var(--accent); }
.page-pad { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 80px)); padding-bottom: clamp(72px, 9vw, 120px); }
.auth { max-width: 460px; display: grid; gap: 20px; }

/* Footer */
.site-footer { position: relative; isolation: isolate; overflow: hidden; border-top: 1px solid var(--line); padding-block: clamp(96px, 12vw, 180px) 32px; background: var(--bg); }
.site-footer__floor { position: absolute; inset: 0 0 auto 0; height: min(70%, 520px); z-index: -1; pointer-events: none; }
.site-footer__floor img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 100%; transform: scaleY(-1); opacity: 0.55; }
.site-footer__floor::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(11 16 19 / 0.15) 0%, rgb(11 16 19 / 0.7) 55%, var(--bg) 100%), linear-gradient(90deg, var(--bg) 0%, rgb(11 16 19 / 0.4) 40%, rgb(11 16 19 / 0) 100%); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 40px; }
.footer__mark { font-size: clamp(2rem, 1rem + 4vw, 4rem); margin-bottom: 18px; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__links a { color: var(--text-2); text-decoration: none; }
.footer__links a:hover { color: var(--text); }
.footer__base { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; color: var(--text-3); font-size: var(--step--1); }
.footer__title { font-size: var(--step--1); color: var(--text-3); margin: 0 0 14px; font-weight: 500; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr; } }

/* Persistent player */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  background: rgb(16 23 27 / 0.94); border-top: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  transform: translateY(110%); transition: transform 0.45s var(--ease);
}
.player.is-open { transform: none; }
@media (prefers-reduced-transparency: reduce) { .player { background: var(--bg-2); backdrop-filter: none; -webkit-backdrop-filter: none; } }
.player__inner { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 2fr) auto; gap: 20px; align-items: center; min-height: 76px; padding-block: 10px; }
.player__now { min-width: 0; }
.player__label { display: block; font-size: 0.75rem; color: var(--text-3); letter-spacing: 0.06em; }
.player__title { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__track { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: var(--step--1); color: var(--text-2); }
.player__msg { font-size: var(--step--1); color: var(--accent); }
.player__msg:empty { display: none; }
.scrub { -webkit-appearance: none; appearance: none; width: 100%; height: 20px; background: transparent; cursor: pointer; --p: 0%; }
.scrub::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) var(--p), var(--bg-4) var(--p)); }
.scrub::-moz-range-track { height: 3px; border-radius: 3px; background: var(--bg-4); }
.scrub::-moz-range-progress { height: 3px; border-radius: 3px; background: var(--accent); }
.scrub::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4.5px; border-radius: 50%; background: var(--text); border: 0; }
.scrub::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--text); border: 0; }
.player .play { --s: 48px; }
@media (max-width: 720px) {
  .player__inner { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; }
  .player__bar { grid-column: 1 / -1; grid-row: 2; }
  .player__inner { padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
}

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--player-h) + 20px); z-index: 50; transform: translate(-50%, 16px);
  display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 18px; max-width: calc(100vw - 32px);
  background: var(--text); color: var(--bg); border-radius: var(--radius); font-weight: 500;
  box-shadow: 0 12px 40px rgb(0 0 0 / 0.45);
  opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
}
.toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.toast a { color: var(--bg); font-weight: 700; }

/* Scroll reveal */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
