/* Slang City LV — black, gold and cream with a Las Vegas marquee twist */

:root {
  color-scheme: dark;

  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.75rem, 1rem + 5.2vw, 5.5rem);
  --text-hero: clamp(4rem, 20.5vw, 7rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Color */
  --color-bg: #0a0908;
  --color-surface: #131110;
  --color-surface-2: #1b1816;
  --color-text: #f2ebdd;
  --color-text-muted: #a69f92;
  --color-text-faint: #8a8377;
  --color-border: rgb(242 235 221 / 0.14);
  --color-divider: rgb(242 235 221 / 0.09);
  --color-gold: #c9973e;
  --color-gold-line: rgb(201 151 62 / 0.45);
  --color-primary: #f4c430;
  --color-primary-hover: #ffd75a;
  --color-primary-active: #dcae1e;
  --color-on-primary: #0a0908;
  --color-red: #e0244f;
  --color-error: #ff9a8f;
  --color-bulb: #ffd98a;

  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'Switzer', 'Helvetica Neue', Arial, sans-serif;

  --content-wide: 1240px;
  --gutter: clamp(var(--space-5), 5vw, var(--space-16));
  --header-h: var(--space-16);
}

@media (min-width: 900px) {
  :root {
    --text-hero: clamp(5.5rem, 11vw, 10rem);
  }
}

body {
  overflow-x: clip;
}

.wrap {
  width: 100%;
  max-width: calc(var(--content-wide) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: var(--space-4);
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}

/* ---------- Shared type ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.section-title {
  margin-top: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.lede {
  margin-top: var(--space-6);
  max-width: 44ch;
  color: var(--color-text-muted);
}

.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.text-link svg {
  flex: none;
  transition: transform var(--transition-interactive);
}
.text-link:hover {
  color: var(--color-primary-hover);
}
.text-link:hover svg {
  transform: translateX(3px);
}
.text-link--btn {
  color: var(--color-text-muted);
}
.text-link--btn:hover {
  color: var(--color-text);
}
.text-link--btn:hover svg {
  transform: translateX(-3px);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 52px;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}
.btn--primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
}
.btn--primary:hover {
  background: var(--color-primary-hover);
}
.btn--primary:active {
  background: var(--color-primary-active);
}
.btn--ghost {
  border-color: var(--color-border);
  color: var(--color-text);
}
.btn--ghost:hover {
  border-color: var(--color-gold);
  color: var(--color-primary);
}
.btn--compact {
  min-height: 44px;
  padding: var(--space-2) var(--space-5);
}
.btn--block {
  width: 100%;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--color-bg) 84%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-divider);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 44px;
  color: var(--color-text);
  text-decoration: none;
}
.brand__mark {
  width: 40px;
  height: 40px;
  flex: none;
}
@media (prefers-reduced-motion: no-preference) {
  .brand__mark {
    transition: rotate 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .brand:hover .brand__mark {
    rotate: 360deg;
  }
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand__lv {
  padding: var(--space-1) var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.14em;
  color: var(--color-gold);
  border: 1px solid var(--color-gold-line);
  border-radius: var(--radius-sm);
}
.site-nav {
  display: none;
  gap: var(--space-8);
}
.site-nav a,
.site-footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
}
.site-nav a:hover,
.site-footer__nav a:hover {
  color: var(--color-text);
}
.only-wide {
  display: none;
}
@media (max-width: 359px) {
  .site-header__inner,
  .brand {
    gap: var(--space-2);
  }
  .brand__mark {
    width: 34px;
    height: 34px;
  }
  .brand__name {
    font-size: 1.375rem;
  }
}
@media (min-width: 860px) {
  .site-nav {
    display: flex;
  }
  .only-wide {
    display: inline;
  }
  .only-narrow {
    display: none;
  }
  .brand__mark {
    width: 46px;
    height: 46px;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-block: var(--space-10) var(--space-16);
  background:
    radial-gradient(60% 50% at 82% 40%, rgb(201 151 62 / 0.12), transparent 70%),
    var(--color-bg);
}
.hero__grid {
  display: grid;
  gap: var(--space-12);
}
.eyebrow--live {
  letter-spacing: 0.14em;
}
.rec {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-red);
  box-shadow: 0 0 0 4px rgb(224 36 79 / 0.18);
  animation: rec 2.4s ease-in-out infinite;
}
@keyframes rec {
  50% {
    opacity: 0.35;
  }
}
.hero__title {
  margin-top: var(--space-5);
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 900;
  line-height: 0.84;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  text-wrap: nowrap;
}
.hero__title span {
  display: block;
}
.hero__title-gold {
  color: var(--color-gold);
}
.hero__sub {
  margin-top: var(--space-8);
  max-width: 46ch;
  font-size: var(--text-base);
  color: var(--color-text-muted);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}
.hero__media {
  justify-self: center;
  width: min(100%, 340px);
}
.hero__caption {
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-text-faint);
}

/* Marquee frame around the video */
.marquee {
  --pad: 20px;
  position: relative;
  padding: var(--pad);
  background: linear-gradient(160deg, #201a12, #0f0d0b 55%);
  border: 1px solid var(--color-gold-line);
  border-radius: var(--radius-md);
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 0.6),
    0 30px 80px -20px rgb(0 0 0 / 0.9),
    0 0 90px -20px rgb(201 151 62 / 0.35);
}
.marquee__bulbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.bulb {
  position: absolute;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--color-bulb);
  box-shadow: 0 0 8px 1px rgb(255 201 94 / 0.75);
  opacity: 0.9;
}
@media (prefers-reduced-motion: no-preference) {
  .bulb {
    animation: chase 1.8s linear infinite;
    animation-delay: calc(var(--i) * -0.6s);
  }
  .marquee[data-paused] .bulb {
    animation-play-state: paused;
  }
}
@keyframes chase {
  0%,
  30% {
    opacity: 1;
    box-shadow: 0 0 10px 2px rgb(255 201 94 / 0.85);
  }
  45%,
  88% {
    opacity: 0.28;
    box-shadow: 0 0 0 0 rgb(255 201 94 / 0);
  }
  100% {
    opacity: 1;
    box-shadow: 0 0 10px 2px rgb(255 201 94 / 0.85);
  }
}
.marquee__screen {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 2px;
  background: #000 url('assets/lv-poster.webp') center / cover no-repeat;
}
.marquee__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.marquee__toggle {
  position: absolute;
  right: var(--space-3);
  bottom: var(--space-3);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--color-text);
  background: rgb(10 9 8 / 0.7);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.marquee__toggle:hover {
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-color: transparent;
}
.marquee__toggle .icon-play,
.marquee[data-paused] .marquee__toggle .icon-pause {
  display: none;
}
.marquee[data-paused] .marquee__toggle .icon-play {
  display: block;
}

@media (min-width: 900px) {
  .hero {
    padding-block: var(--space-12) var(--space-20);
  }
  .hero__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: center;
    gap: var(--space-10);
    min-height: calc(100dvh - var(--header-h) - var(--space-32));
  }
  .hero__media {
    justify-self: end;
    width: min(100%, calc((min(76dvh, 720px) - 40px) * 9 / 16 + 40px));
    min-width: 280px;
  }
}

/* ---------- Ticker ---------- */

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--color-gold-line);
  background: var(--color-surface);
}
.ticker__track {
  display: flex;
  width: max-content;
}
.ticker__group {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-4) var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker__group span:nth-of-type(even) {
  color: var(--color-gold);
}
.ticker__group i {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-bulb);
  box-shadow: 0 0 8px 1px rgb(255 201 94 / 0.6);
}
@media (prefers-reduced-motion: no-preference) {
  .ticker__track {
    animation: ticker 38s linear infinite;
  }
}
@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Room ---------- */

.room__grid {
  display: grid;
  gap: var(--space-10);
}
.room__index {
  display: none;
}
.room__hint {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}
.stops {
  display: flex;
  gap: var(--space-4);
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  padding-bottom: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--color-gold-line) transparent;
}
.stop {
  flex: 0 0 min(76%, 320px);
  scroll-snap-align: start;
  scroll-margin-top: var(--space-24);
}
.stop img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
}
.stop figcaption {
  position: relative;
  margin-top: var(--space-4);
  padding-left: var(--space-10);
}
.stop__num {
  position: absolute;
  left: 0;
  top: 0.15em;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-gold);
}
.stop h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.stop figcaption p {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.stop--note {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
}
.stop__note-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  color: var(--color-gold);
}
.stop--note p:not(.stop__note-title) {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

@media (min-width: 900px) {
  .room__grid {
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
    gap: var(--space-16);
    align-items: start;
  }
  .room__intro {
    position: sticky;
    top: calc(var(--header-h) + var(--space-10));
  }
  .room__hint {
    display: none;
  }
  .room__index {
    display: block;
    margin-top: var(--space-10);
    border-top: 1px solid var(--color-divider);
  }
  .room__index li {
    max-width: none;
    border-bottom: 1px solid var(--color-divider);
  }
  .room__index a {
    display: flex;
    align-items: baseline;
    gap: var(--space-5);
    min-height: 48px;
    padding-block: var(--space-3);
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: none;
  }
  .room__index a span {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--color-gold);
  }
  .room__index a:hover {
    color: var(--color-text);
  }
  .stops {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-12) var(--space-8);
    margin-inline: 0;
    padding: 0;
    overflow: visible;
  }
  .stop:nth-child(even) {
    margin-top: var(--space-24);
  }
  .stop--note {
    align-self: start;
    padding: var(--space-8);
  }
}

/* ---------- Trim line ---------- */

.trim {
  width: 100%;
  height: 36px;
  overflow: visible;
}
.trim path {
  fill: none;
  stroke: var(--color-text);
  stroke-width: 3;
  stroke-linejoin: miter;
  opacity: 0.85;
}

/* ---------- Sessions ---------- */

.sessions__grid {
  display: grid;
  gap: var(--space-12);
}
.sessions__media {
  order: 2;
  width: min(100%, 360px);
}
.sessions__media img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.verbs {
  margin-top: var(--space-10);
  border-top: 1px solid var(--color-border);
}
.verb {
  display: grid;
  grid-template-columns: var(--space-10) 1fr;
  align-items: baseline;
  column-gap: var(--space-2);
  max-width: none;
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--color-border);
}
.verb__num {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-gold);
}
.verb__word {
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 1.5rem + 7vw, 6.5rem);
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
}
.verb__line {
  grid-column: 2;
  margin-top: var(--space-2);
  color: var(--color-text-muted);
}
.sessions__foot {
  margin-top: var(--space-8);
}
.sessions__foot p {
  max-width: 48ch;
  margin-bottom: var(--space-3);
  color: var(--color-text-muted);
}

@media (min-width: 700px) {
  .verb {
    grid-template-columns: var(--space-12) minmax(0, 1fr) auto;
  }
  .verb__line {
    grid-column: 3;
    margin-top: 0;
    text-align: right;
  }
}
@media (min-width: 900px) {
  .sessions__grid {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    gap: var(--space-16);
    align-items: start;
  }
  .sessions__media {
    order: 0;
    position: sticky;
    top: calc(var(--header-h) + var(--space-10));
    width: min(100%, 400px);
  }
}

/* ---------- Skyline quote ---------- */

.skyline {
  position: relative;
  display: grid;
  min-height: clamp(560px, 60vw, 900px);
  overflow: hidden;
  background: #050403;
  isolation: isolate;
}
.skyline__img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
}
.skyline::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--color-bg) 0%, rgb(10 9 8 / 0.25) 30%, rgb(10 9 8 / 0) 60%, var(--color-bg) 100%);
}
.skyline__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-16);
  padding-block: clamp(var(--space-16), 9vw, var(--space-24)) var(--space-8);
}
.skyline__quote p {
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  text-wrap: balance;
}
.skyline__quote footer {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold);
}
.skyline__quote footer::before {
  content: '';
  width: var(--space-8);
  height: 1px;
  background: var(--color-gold);
}
.skyline__credit {
  align-self: flex-end;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ---------- Two cities ---------- */

.cities__grid {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-12);
}
.city {
  display: grid;
  gap: var(--space-6);
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.city--lv {
  border-color: var(--color-gold-line);
}
.city__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}
.city__tag {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}
.city--lv .city__tag {
  color: var(--color-gold);
}
.city__name {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
}
.city__name span {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}
.city--lv .city__name span {
  color: var(--color-gold);
}
.city p:not(.city__tag),
.city address {
  font-style: normal;
  color: var(--color-text-muted);
}
.city .text-link {
  margin-top: auto;
}
.city__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 60%;
  border-radius: 2px;
}

@media (min-width: 900px) {
  .cities__grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: var(--space-8);
  }
  .city {
    padding: var(--space-10);
  }
  .city--lv {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 0.8fr);
    gap: var(--space-10);
  }
  .city__text {
    gap: var(--space-5);
  }
}

/* ---------- Book ---------- */

.book__grid {
  display: grid;
  gap: var(--space-12);
}
.contact {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}
.contact dt {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}
.contact dd a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-color: var(--color-gold-line);
  text-underline-offset: 0.25em;
  overflow-wrap: anywhere;
}
.contact dd a:hover {
  color: var(--color-primary);
  text-decoration-color: currentColor;
}
.book__panel {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.form {
  display: grid;
  gap: var(--space-5);
}
.field {
  display: grid;
  gap: var(--space-2);
  min-width: 0;
}
.field-row {
  display: grid;
  gap: var(--space-5);
}
.field label {
  font-size: var(--text-sm);
  font-weight: 500;
}
.optional {
  margin-left: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-text-faint);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: var(--space-3) var(--space-4);
  font-size: 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: rgb(242 235 221 / 0.3);
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: transparent;
}
.field [aria-invalid='true'] {
  border-color: var(--color-error);
}
.field__error {
  font-size: var(--text-sm);
  color: var(--color-error);
}
.select {
  position: relative;
}
.select select {
  appearance: none;
  padding-right: var(--space-10);
}
.select svg {
  position: absolute;
  right: var(--space-4);
  top: 50%;
  translate: 0 -50%;
  color: var(--color-text-muted);
  pointer-events: none;
}
.form__fine {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.ready {
  display: grid;
  gap: var(--space-4);
  justify-items: start;
}
.ready[hidden],
.form[hidden] {
  display: none;
}
.ready:focus {
  outline: none;
}
.ready__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}
.ready__to {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.ready__addr {
  color: var(--color-text);
  font-weight: 500;
  user-select: all;
  overflow-wrap: anywhere;
}
.ready__msg {
  width: 100%;
  max-height: 320px;
  padding: var(--space-4);
  overflow: auto;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  user-select: text;
}
.ready__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.ready__status {
  min-height: 1.6em;
  font-size: var(--text-sm);
  color: var(--color-gold);
}

@media (min-width: 560px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
  .book__panel {
    padding: var(--space-8);
  }
}
@media (min-width: 900px) {
  .book__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: var(--space-16);
    align-items: start;
  }
  .book__panel {
    padding: var(--space-10);
  }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--color-divider);
}
.outro {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(320px, 48vw, 560px);
  padding-block: var(--space-12);
  overflow: hidden;
  isolation: isolate;
}
.outro__img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.outro::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--color-bg) 0%, rgb(10 9 8 / 0.35) 45%, rgb(10 9 8 / 0.82) 100%);
}
.outro__line {
  max-width: none;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 13vw, 11rem);
  font-weight: 900;
  line-height: 0.84;
  text-transform: uppercase;
  text-shadow: 0 2px 30px rgb(0 0 0 / 0.6);
}
.site-footer__inner {
  display: grid;
  gap: var(--space-8);
  padding-block: var(--space-12);
}
.site-footer__logo {
  width: 180px;
  height: auto;
}
.site-footer__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.site-footer__nav a {
  overflow-wrap: anywhere;
}
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2) var(--space-6);
  padding-block: var(--space-6);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.site-footer__base::before {
  content: '';
  flex: 0 0 100%;
  height: 1px;
  margin-bottom: var(--space-4);
  background: var(--color-divider);
}
@media (min-width: 760px) {
  .site-footer__inner {
    grid-template-columns: 1.4fr 1fr 1fr;
    align-items: start;
  }
  .site-footer__logo {
    width: 220px;
  }
}

/* ---------- Intro: record spin (JS adds .has-intro; hidden otherwise) ---------- */

.intro {
  display: none;
}
.has-intro .intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.intro__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(closest-side at 50% 50%, rgb(201 151 62 / 0.16), transparent 100%),
    var(--color-bg);
}
.intro__stage {
  position: relative;
  width: min(70vmin, 400px);
  aspect-ratio: 1;
  opacity: 0;
  will-change: transform, opacity;
}
.intro__disc,
.intro__blur {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  will-change: transform, opacity;
}
.intro__disc img,
.intro__blur img {
  display: block;
  width: 100%;
  height: 100%;
}
.intro__blur {
  opacity: 0;
}
/* Light stays put while the record turns under it */
.intro__blur::after {
  content: '';
  position: absolute;
  inset: 1.5%;
  border-radius: 50%;
  background: conic-gradient(
    from 290deg,
    transparent 0deg,
    rgb(255 255 255 / 0.5) 22deg,
    transparent 48deg,
    transparent 180deg,
    rgb(255 255 255 / 0.5) 202deg,
    transparent 228deg
  );
  -webkit-mask: radial-gradient(closest-side, transparent 56%, #000 64%, #000 93%, transparent 96%);
  mask: radial-gradient(closest-side, transparent 56%, #000 64%, #000 93%, transparent 96%);
}
.intro__ring {
  position: absolute;
  inset: -7%;
  width: 114%;
  max-width: none;
  height: 114%;
  overflow: visible;
  rotate: -90deg;
}
.intro__ring circle {
  fill: none;
}
.intro__ring-track {
  stroke: var(--color-divider);
  stroke-width: 0.25;
}
.intro__ring-bar {
  stroke: var(--color-gold);
  stroke-width: 0.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

/* ---------- Scroll reveal (progressive enhancement only) ---------- */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
    @keyframes reveal {
      from {
        opacity: 0.15;
        clip-path: inset(8% 0 0 0);
      }
      to {
        opacity: 1;
        clip-path: inset(0 0 0 0);
      }
    }
  }
}

/* Inside the horizontal scroller the block-axis view timeline is meaningless */
@media (max-width: 899px) {
  .stops .reveal {
    animation: none;
  }
}
