:root {
  --obs: #08090b;
  --slate: #111419;
  --slate-hi: #171b22;
  --cream: #f3ede0;
  --cream-soft: #e6decd;
  --ivory: #f3ede0;
  --stone: #a8a194;
  --ink-dark: #151311;
  --ink-dark-muted: #524a40;
  --brass: #d4a13e;
  --red: #e04428;
  --rule-dark: rgba(243, 237, 224, 0.18);
  --display: 'Fraunces', 'Shippori Mincho', 'Yu Mincho', Georgia, serif;
  --heading: 'Bricolage Grotesque', 'Zen Kaku Gothic New', sans-serif;
  --sans: 'Zen Kaku Gothic New', 'Yu Gothic', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', Consolas, ui-monospace, monospace;
  --spring-snappy: linear(
    0, 0.012 0.8%, 0.05 1.8%, 0.19 3.6%, 0.89 10.5%, 1.09 14.2%,
    1.13 17.5%, 1.07 23%, 0.99 30%, 0.985 37%, 1.005 49%, 0.999 68%, 1
  );
  --spring-soft: linear(
    0, 0.008 1%, 0.036 2.2%, 0.14 4.5%, 0.62 12%, 0.95 21%,
    1.045 29%, 1.028 38%, 0.996 52%, 1.002 72%, 1
  );
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--obs);
  color: var(--ivory);
  font-family: var(--sans);
  line-height: 1.74;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--obs);
  color: var(--ivory);
  overflow-x: clip;
}

html.motion-paused *,
html.motion-paused *::before,
html.motion-paused *::after {
  animation-play-state: paused !important;
  transition-duration: 0.001s !important;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:focus-visible, button:focus-visible, [role="button"]:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

.wrap {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 48px);
}

.skip { position: absolute; left: -9999px; }
.skip:focus {
  position: fixed; left: 16px; top: 12px; z-index: 1000;
  background: var(--brass); color: var(--obs); padding: 8px 14px;
  font-family: var(--mono); font-size: 13px;
}

/* Integrated Studio Header */
.studio-bar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(8, 9, 11, 0.9);
  border-bottom: 1px solid rgba(212, 161, 62, 0.36);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.studio-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding-block: 12px;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}
.brand-mark { width: 28px; height: 28px; flex-shrink: 0; }
.brand-sub {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--brass);
  padding-left: 10px;
  border-left: 1px solid var(--rule-dark);
}
.nav-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.nav-row a {
  text-decoration: none;
  padding-block: 4px;
  color: var(--stone);
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.nav-row a:hover, .nav-row a[aria-current="page"] {
  color: var(--ivory);
  border-bottom-color: var(--red);
}
.motion-btn {
  appearance: none;
  background: transparent;
  color: rgba(243, 237, 224, 0.84);
  border: 1px solid rgba(212, 161, 62, 0.45);
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.motion-btn:hover { background: rgba(212, 161, 62, 0.18); color: #fff; }
.lang-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--rule-dark);
  font-family: var(--mono);
  font-size: 11px;
}
.lang-pill span, .lang-pill a { padding: 3px 9px; text-decoration: none; border-bottom: none; }
.lang-pill .is-active { background: var(--brass); color: var(--obs); font-weight: 700; }

/* Pattern O2 Hero: Fullscreen WebGL2 Chladni Resonance + Interactive 3D Vinyl Sleeve */
.chladni-hero {
  position: relative;
  min-height: min(860px, calc(100svh - 56px));
  display: grid;
  align-items: center;
  padding: clamp(36px, 6vw, 68px) 0 clamp(44px, 6vw, 72px);
  overflow: hidden;
  /* Zero-flash rich studio backdrop while WebGL initializes */
  background:
    radial-gradient(ellipse at 56% 48%, rgba(212, 161, 62, 0.2), transparent 52%),
    radial-gradient(ellipse at 32% 66%, rgba(224, 68, 40, 0.16), transparent 48%),
    var(--obs);
  border-bottom: 1px solid rgba(212, 161, 62, 0.42);
}
#chladniCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4.5vw, 52px);
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 14px;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--brass); }

h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.25vw, 2.95rem);
  line-height: 1.24;
  margin: 0 0 18px;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.58);
}
.hero-lead {
  color: rgba(243, 237, 224, 0.86);
  font-size: clamp(0.94rem, 1.1vw, 1rem);
  line-height: 1.82;
  max-width: 49ch;
  margin: 0 0 22px;
}
.hz-rack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.hz-btn {
  padding: 8px 14px;
  border: 1px solid rgba(212, 161, 62, 0.48);
  background: rgba(8, 9, 11, 0.72);
  color: var(--ivory);
  font-family: var(--mono);
  font-size: 11px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform 0.45s var(--spring-snappy), background-color 0.2s ease, border-color 0.2s ease;
}
.hz-btn:hover { border-color: var(--ivory); }
.hz-btn[aria-pressed="true"] {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  font-weight: 700;
  transform: scale(1.04);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: #fff;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 0.93rem;
  text-decoration: none;
  border: 1px solid var(--red);
  transition: transform 0.45s var(--spring-snappy), background-color 0.2s ease;
}
.btn-accent:hover { background: var(--brass); border-color: var(--brass); color: var(--obs); transform: translateY(-2px); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 11px 18px;
  background: rgba(17, 20, 25, 0.74);
  color: var(--ivory);
  border: 1px solid rgba(243, 237, 224, 0.35);
  font-family: var(--mono);
  font-size: 11.5px;
  text-decoration: none;
}
.btn-ghost:hover { border-color: var(--brass); color: var(--brass); }
.pre-note {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--brass);
  margin: 0;
}

/* Interactive 3D Vinyl Record Jacket */
.vinyl-stage {
  display: grid;
  place-items: center;
  padding: 16px 0;
  overflow: visible;
}
.sleeve-wrap {
  position: relative;
  width: min(320px, 74vw);
  aspect-ratio: 1;
  cursor: pointer;
  perspective: 1100px;
  margin-right: 48px;
}
.lp-disc {
  position: absolute;
  top: 4%;
  left: 6%;
  width: 92%;
  height: 92%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #0a0b0d 0 8px, #d94228 8px 46px, #121316 47px 49px),
    repeating-radial-gradient(circle at 50% 50%, #14161a 0 2px, #090a0c 2px 4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.74);
  transform: translateX(18%) rotate(0deg);
  transition: transform 0.85s var(--spring-snappy);
}
.lp-disc::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 40deg,
    transparent 0 40deg,
    rgba(255, 235, 190, 0.24) 70deg,
    transparent 105deg,
    transparent 220deg,
    rgba(224, 68, 40, 0.2) 250deg,
    transparent 290deg
  );
}
.sleeve-cover {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  background: var(--cream);
  color: var(--ink-dark);
  border: 1px solid rgba(212, 161, 62, 0.78);
  padding: 16px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 8px;
  overflow: hidden;
  box-shadow: -10px 20px 48px rgba(0, 0, 0, 0.65);
  transition: transform 0.7s var(--spring-soft);
}
.sleeve-cover img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border: 1px solid var(--ink-dark);
}
.sleeve-wrap:hover .lp-disc, .sleeve-wrap.is-open .lp-disc {
  transform: translateX(44%) rotate(140deg);
}
.sleeve-wrap:hover .sleeve-cover, .sleeve-wrap.is-open .sleeve-cover {
  transform: rotateY(-10deg) translateX(-12px);
}
.sleeve-hint {
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--brass);
  margin-top: 22px;
  letter-spacing: 0.1em;
}

/* Warm Archival Liner Catalog Section */
.paper-band {
  background: var(--cream);
  color: var(--ink-dark);
  padding-block: clamp(46px, 6.5vw, 82px);
  border-bottom: 2px solid var(--ink-dark);
}
.section-head-light {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px 24px;
  border-bottom: 2px solid var(--ink-dark);
  padding-bottom: 12px;
  margin-bottom: 28px;
}
.section-head-dark {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px 24px;
  border-bottom: 1px solid var(--brass);
  padding-bottom: 12px;
  margin-bottom: 28px;
}
h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.42rem, 2.5vw, 2.05rem);
  line-height: 1.3;
  margin: 0;
}
.section-code {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--red);
  text-transform: uppercase;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.catalog-card {
  background: #faf6ec;
  border: 1px solid var(--ink-dark);
  padding: 24px;
  display: grid;
  gap: 10px;
}
.catalog-card.is-proto {
  border-style: dashed;
  background: var(--cream-soft);
}
.cat-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.cat-id { font-family: var(--mono); font-size: 11px; color: var(--ink-dark-muted); letter-spacing: 0.1em; }
.cat-badge {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  padding: 3px 9px;
  background: var(--ink-dark);
  color: var(--cream);
}
.cat-badge.is-proto {
  background: transparent;
  color: var(--ink-dark-muted);
  border: 1px solid var(--ink-dark-muted);
}
.catalog-card h3 { font-family: var(--display); font-size: 1.38rem; margin: 0; }
.catalog-card p { margin: 0; color: var(--ink-dark-muted); font-size: 0.94rem; }
.cat-specs { margin: 4px 0 0; padding-left: 18px; font-size: 0.88rem; }

/* Horizontal Era Timeline + Lazy Studio Cinema Reel */
.timeline-band {
  background: var(--slate);
  padding-block: clamp(48px, 7vw, 86px);
  border-bottom: 1px solid var(--rule-dark);
}
.decade-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(256px, 1fr);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 14px;
}
.decade-card {
  scroll-snap-align: start;
  background: var(--slate-hi);
  border: 1px solid rgba(243, 237, 224, 0.16);
  border-top: 3px solid var(--red);
  padding: 22px;
  display: grid;
  gap: 8px;
}
.decade-card span { font-family: var(--mono); font-size: 11px; color: var(--brass); letter-spacing: 0.12em; }
.decade-card h3 { font-family: var(--display); font-size: 1.35rem; margin: 0; }
.decade-card p { margin: 0; font-size: 0.91rem; color: var(--stone); line-height: 1.72; }

.video-dock {
  margin: 40px 0 0;
  border: 1px solid rgba(212, 161, 62, 0.45);
  padding: 10px;
  background: #090b0d;
}
.video-dock video { width: 100%; height: auto; display: block; }
.video-cap {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--brass);
  padding-top: 10px;
}

@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes oto-reveal-up {
      from { opacity: 0; transform: translateY(30px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .scroll-reveal {
      animation: oto-reveal-up linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 30%;
    }
  }
}
.scroll-reveal.io-pending {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.7s var(--spring-soft);
}
.scroll-reveal.io-visible { opacity: 1; transform: translateY(0); }

/* FAQ Section (Deferred Off-Screen Rendering) */
.faq-band {
  background: var(--obs);
  padding-block: clamp(44px, 6vw, 76px);
  content-visibility: auto;
  contain-intrinsic-size: auto none auto 380px;
}
.faq { margin: 20px 0 0; border-top: 1px solid var(--rule-dark); }
.faq dt {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.08rem;
  padding-top: 18px;
  margin-bottom: 6px;
}
.faq dd {
  margin: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule-dark);
  color: var(--stone);
  font-size: 0.95rem;
}

/* Subpages (About & Privacy) */
.prose-wrap {
  padding-block: clamp(32px, 5vw, 60px);
  background: var(--obs);
}
.crumb {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--stone);
  margin: 0 0 18px;
}
.prose-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.prose-body h2 {
  font-size: 1.3rem;
  margin: 28px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule-dark);
  color: var(--brass);
}
.prose-body p, .prose-body ul { margin: 0 0 14px; color: var(--stone); }
.prose-body ul { padding-left: 20px; }
.plate-box-dark {
  padding: 12px;
  background: var(--slate);
  border: 1px solid var(--brass);
}
.plate-cap {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--stone);
  padding-top: 10px;
}

/* Studio Colophon Footer */
.colophon {
  background: #050608;
  border-top: 1px solid var(--brass);
  padding-block: 34px;
  font-size: 0.88rem;
  color: var(--stone);
}
.colophon-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px 36px;
  align-items: end;
}
.colophon strong { color: var(--ivory); font-family: var(--heading); }
.colophon-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--brass);
}

@media (max-width: 860px) {
  .hero-inner, .catalog-grid, .prose-grid { grid-template-columns: minmax(0, 1fr); }
  .brand-sub { display: none; }
  .vinyl-stage { overflow: hidden; padding-inline: 8px; }
  .sleeve-wrap { width: min(260px, 68vw); margin-right: 42px; }
  .sleeve-wrap:hover .lp-disc, .sleeve-wrap.is-open .lp-disc { transform: translateX(26%) rotate(110deg); }
  .sleeve-wrap:hover .sleeve-cover, .sleeve-wrap.is-open .sleeve-cover { transform: rotateY(-6deg) translateX(-6px); }
}
