/* ============================================================
   56 MOMENTS — product site
   ============================================================ */

:root {
  --paper: #f3efe7;
  --paper-2: #eae4d8;
  --ink: #141310;
  --ink-soft: #4d493f;
  --accent: #e4572e;
  --accent-2: #f2a541;
  --dark: #12110f;
  --dark-2: #1c1a16;
  --cream-line: rgba(20, 19, 16, 0.14);
  --font-display: "Space Grotesk", sans-serif;
  --font-serif: "Instrument Serif", serif;
  --font-mono: "IBM Plex Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: initial; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--paper); }

/* ---------- custom scrollbar ---------- */
html { scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  border-radius: 99px;
  border: 3px solid var(--paper-2);
}
::-webkit-scrollbar-thumb:hover { border-width: 2px; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* ---------- grain overlay ----------
   screen-sized and still: it used to be a 200%×200% layer jittering over
   the whole page every frame, which cost more than it showed */
.grain {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(-1%, 2%); }
  100% { transform: translate(2%, -1%); }
}

/* ============================================================
   LOADER
   ============================================================ */
.loader {
  position: fixed; inset: 0;
  z-index: 1000;
  background: var(--ink);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
}
.loader-inner { text-align: center; width: min(420px, 80vw); }
.loader-logo {
  font-weight: 700; font-size: 1.1rem; letter-spacing: 0.14em;
}
.loader-logo span { color: var(--accent-2); }
.loader-count {
  font-family: var(--font-serif);
  font-size: clamp(5rem, 16vw, 9rem);
  line-height: 1;
  margin: 1.5rem 0 1rem;
  font-variant-numeric: tabular-nums;
}
.loader-bar {
  height: 1px; background: rgba(243, 239, 231, 0.2);
  overflow: hidden;
}
.loader-bar-fill {
  height: 100%; width: 0%;
  background: var(--accent-2);
}
.loader-hint {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  opacity: 0.5;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem clamp(1.2rem, 4vw, 3rem);
  mix-blend-mode: normal;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav-logo {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  display: flex; align-items: center;
}
.nav-logo em { font-style: normal; font-family: var(--font-display); color: var(--accent); }
.nav-logo-img {
  height: 44px; width: auto; display: block;
  filter: brightness(0); /* force the artwork to pure black */
}
.nav-links {
  display: flex; gap: 2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav-links a { position: relative; padding: 0.2rem 0; opacity: 0.75; transition: opacity 0.25s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-right { display: flex; align-items: center; gap: 0.7rem; }
.lang-switch {
  display: flex;
  border: 1px solid var(--cream-line);
  border-radius: 99px;
  padding: 3px;
  background: rgba(243, 239, 231, 0.65);
  backdrop-filter: blur(6px);
}
.lang-switch button {
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em;
  color: var(--ink-soft);
  padding: 0.4rem 0.7rem;
  border-radius: 99px;
  transition: all 0.2s;
}
.lang-switch button.is-active { background: var(--ink); color: var(--paper); }
.lang-switch button:not(.is-active):hover { color: var(--ink); }
.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  border-radius: 99px;
  padding: 0.55rem 1.2rem;
  transition: background 0.25s, color 0.25s;
}
.nav-cta:hover { background: var(--ink); color: var(--paper); }
.nav-cart {
  position: relative;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid; place-items: center;
  transition: background 0.25s, transform 0.25s;
}
.nav-cart:hover { background: var(--accent); transform: translateY(-2px); }
.nav-cart svg { width: 19px; height: 19px; }
.nav-cart-count {
  position: absolute; top: -5px; right: -6px;
  min-width: 18px; height: 18px;
  border-radius: 99px;
  background: var(--accent);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  display: grid; place-items: center;
  padding: 0 4px;
}

.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 100%;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 101;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  display: flex; flex-direction: column;
  justify-content: flex-start; /* copy sits up near the nav */
  overflow: hidden;
}
/* the hero canvas is FIXED — the vinyl rides down the page with you
   until the SoundFrame section takes over.
   z-index 4: above backgrounds/marquee, BELOW hero copy (z 5) so the
   model never blocks text */
.hero-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100vh; height: 100lvh; /* not resized by the phone's sliding address bar */
  z-index: 4;
  pointer-events: none;
}

/* soft glowing blobs behind everything. They used to be shapes with
   animated corners under a 70px blur filter — repainted and re-blurred
   every frame. Now the softness is in the gradient itself and they only
   move (GPU-only transforms). */
.hero-blobs {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  width: 62vw; max-width: 980px;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.4;
  will-change: transform;
}
.blob--a {
  top: -22%; left: 42%;
  background: radial-gradient(closest-side, #f2a541 0%, rgba(234, 118, 54, 0.95) 42%, rgba(228, 87, 46, 0.5) 70%, rgba(228, 87, 46, 0) 100%);
  opacity: 0.5;
  animation: blob-a 17s ease-in-out infinite alternate;
}
.blob--b {
  bottom: -30%; left: -22%;
  background: radial-gradient(closest-side, #7fb7be 0%, rgba(84, 140, 145, 0.8) 40%, rgba(60, 110, 113, 0.3) 68%, rgba(60, 110, 113, 0) 100%);
  opacity: 0.3;
  animation: blob-b 23s ease-in-out infinite alternate;
}
@keyframes blob-a {
  from { transform: translate(0, 0) scale(1, 0.92); }
  to   { transform: translate(-9%, 12%) scale(1.14, 1.04); }
}
@keyframes blob-b {
  from { transform: translate(0, 0) scale(0.94, 1); }
  to   { transform: translate(14%, -10%) scale(1.08, 0.98); }
}

/* electronic waveform strip */
.wave-canvas {
  position: absolute;
  left: 0; right: 0; bottom: 8%;
  width: 100%; height: 30%;
  z-index: 1;
  pointer-events: none;
}
.hero-bigword {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 1; overflow: hidden;
  pointer-events: none;
}
.hero-bigword span {
  font-weight: 700;
  font-size: clamp(6rem, 22vw, 22rem);
  line-height: 0.78;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(20, 19, 16, 0.13);
  transform: translateY(15%);
  user-select: none;
}
.hero-content {
  position: relative; z-index: 5; /* above the travelling 3D model */
  padding: 0 clamp(1.2rem, 5vw, 4rem);
  margin-top: clamp(88px, 13vh, 132px); /* just below the nav */
  pointer-events: none;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  margin-bottom: 1.6rem;
  color: var(--ink-soft);
}
.hero-title {
  font-size: clamp(2.8rem, 7.2vw, 6.8rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.hero-title em { text-transform: none; font-size: 1.04em; color: var(--accent); }
.hero-sub {
  margin-top: 2rem;
  max-width: 34ch;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  line-height: 1.55;
  color: var(--ink-soft);
}
.hero-footer {
  position: absolute; bottom: 0; left: 0; right: 0;
  z-index: 5; /* text always in front of the 3D model */
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.4rem clamp(1.2rem, 5vw, 4rem);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}
.hero-scroll-cue { display: flex; align-items: center; gap: 0.6rem; }
.cue-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  animation: cue-pulse 1.6s ease-in-out infinite;
}
@keyframes cue-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.7); opacity: 0.4; }
}

/* split-line reveal helpers */
.line { display: block; overflow: hidden; }
.line-inner { display: inline-block; transform: translateY(115%); }
.reveal-line { overflow: hidden; }
.reveal-line > span { display: inline-block; transform: translateY(115%); }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  position: relative;
  z-index: 5; /* strip text rides in front of the travelling model */
  border-top: 1px solid var(--cream-line);
  border-bottom: 1px solid var(--cream-line);
  padding: 1.1rem 0;
  overflow: hidden;
  background: transparent;
}
.marquee-track {
  display: flex; white-space: nowrap;
  width: max-content;
}
.marquee-track span {
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.22em;
}

/* ============================================================
   STATEMENT
   ============================================================ */
.statement {
  position: relative;
  z-index: 5; /* text always in front of the travelling model */
  padding: clamp(7rem, 16vh, 12rem) clamp(1.2rem, 6vw, 5rem);
  display: flex; justify-content: center;
}
.statement-text {
  max-width: 21ch;
  text-align: center;
  font-size: clamp(1.7rem, 4vw, 3.4rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.statement-text b { color: var(--accent); font-weight: 700; }
.statement-text .word { display: inline-block; opacity: 0.12; }

/* ============================================================
   PRODUCT SECTIONS
   ============================================================ */
.product { position: relative; height: 400vh; }
.product-pin {
  position: sticky; top: 0;
  z-index: 5; /* copy renders in front of the shared 3D canvas (z 4) */
  height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  overflow: hidden;
}
.product--vinyl .product-pin { grid-template-columns: 1fr 1.15fr; }
.product--vinyl { background: var(--paper-2); }

.product-stage { position: relative; }
.product-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.product-index {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 700;
  font-size: clamp(14rem, 30vw, 30rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(20, 19, 16, 0.08);
  pointer-events: none;
  user-select: none;
}

.product-copy {
  position: relative;
  display: flex; align-items: center;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
}
.product-step {
  position: absolute;
  left: clamp(1.5rem, 5vw, 5rem);
  right: clamp(1.5rem, 5vw, 5rem);
  opacity: 0;
  transform: translateY(40px);
  pointer-events: none;
}
.product-step.is-active { pointer-events: auto; }

.product-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1.4rem;
}
.product-eyebrow.light { color: var(--accent-2); }
.product-title {
  font-size: clamp(2.6rem, 5.4vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}
.product-title em { text-transform: none; color: var(--accent); }
.product-title .unit {
  font-size: 0.4em; vertical-align: super;
  letter-spacing: 0; margin-left: 0.2em;
  color: var(--ink-soft);
}
.product-desc {
  max-width: 40ch;
  font-size: clamp(0.95rem, 1.25vw, 1.1rem);
  line-height: 1.6;
  color: var(--ink-soft);
}
.spec-list {
  list-style: none;
  margin-top: 2rem;
  max-width: 24rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}
.spec-list li {
  display: flex; justify-content: space-between;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--cream-line);
}
.spec-list span { color: var(--ink-soft); }

.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-top: 2.2rem;
  padding: 0.9rem 1.7rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.25s, transform 0.25s;
}
.btn:hover { background: var(--accent); transform: translateY(-2px); }
.btn-arrow { transition: transform 0.25s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ============================================================
   WEBCARD (dark)
   ============================================================ */
.webcard {
  background: var(--dark);
  color: var(--paper);
  padding: clamp(6rem, 14vh, 10rem) clamp(1.2rem, 5vw, 4rem) clamp(7rem, 16vh, 11rem);
  border-radius: 2.5rem 2.5rem 0 0;
}
.webcard-head { max-width: 60rem; margin-bottom: clamp(3rem, 8vh, 5.5rem); }
.webcard-title {
  font-size: clamp(2.8rem, 7vw, 6.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.webcard-title em { text-transform: none; color: var(--accent-2); }
.webcard-sub {
  margin-top: 1.8rem;
  max-width: 46ch;
  line-height: 1.6;
  color: rgba(243, 239, 231, 0.6);
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
}

body.no-scroll { overflow: hidden; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery { position: relative; height: 350vh; background: var(--paper); }
.gallery-pin {
  position: sticky; top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.gallery-head { text-align: center; margin-bottom: 3rem; z-index: 2; }
.gallery-title {
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}
.gallery-title em { text-transform: none; color: var(--accent); }
/* horizontal slider: center slide = color, rest = grey, track slides right */
.gallery-slider {
  position: relative;
  width: 100%;
  overflow: visible;
  display: flex;
  justify-content: center;
}
.gallery-track {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.2rem);
  will-change: transform;
}
.slide {
  position: relative;
  flex: 0 0 auto;
  width: min(480px, 82vw);
  aspect-ratio: 3.4 / 4;
  border-radius: 8px;
  overflow: hidden;
  background: #d8d2c4;
  box-shadow: 0 18px 40px rgba(20, 19, 16, 0.18);
}
.slide img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) brightness(0.82);
  transform: scale(1.04);
  transition: filter 0.35s ease, transform 0.35s ease;
}
.slide.is-active img { filter: grayscale(0) brightness(1); transform: scale(1); }
.slide.is-active { box-shadow: 0 22px 50px rgba(20, 19, 16, 0.3); }
.slide figcaption {
  position: absolute; bottom: 0.7rem; left: 0; right: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: rgba(243, 239, 231, 0.9);
  opacity: 0; transition: opacity 0.35s ease;
}
.slide.is-active figcaption { opacity: 1; }
.slide.is-placeholder { background: linear-gradient(160deg, #f2d0a4, #e4a67a); }
.slide.is-placeholder[data-i="1"] { background: linear-gradient(160deg, #a4c3b2, #6b9080); }
.slide.is-placeholder[data-i="2"] { background: linear-gradient(160deg, #cbc0d3, #8e7dbe); }
.slide.is-placeholder[data-i="3"] { background: linear-gradient(160deg, #f4acb7, #d1495b); }
.slide.is-placeholder[data-i="4"] { background: linear-gradient(160deg, #9ad1d4, #4f86a8); }
.slide.is-placeholder[data-i="5"] { background: linear-gradient(160deg, #f2e3bc, #c9a227); }
.slide.is-placeholder::before {
  content: "your photo here";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: rgba(20, 19, 16, 0.45);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  background: var(--dark);
  color: var(--paper);
  border-radius: 2.5rem 2.5rem 0 0;
  padding: clamp(6rem, 14vh, 10rem) clamp(1.2rem, 5vw, 4rem) 2rem;
  overflow: hidden;
  min-height: 100vh; min-height: 100svh; /* room for the landscape */
  display: flex; flex-direction: column;
}
.footer-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.footer-inner { position: relative; z-index: 2; flex: 1; width: 100%; max-width: 90rem; margin: 0 auto; display: flex; flex-direction: column; pointer-events: none; }
.footer-inner a, .footer-inner button { pointer-events: auto; } /* the rest of the footer is for playing the landscape */
.footer-title {
  font-size: clamp(4rem, 13vw, 12rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: clamp(3rem, 8vh, 6rem);
}
.footer-title em { text-transform: none; color: var(--accent-2); }
.footer-contact h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(243, 239, 231, 0.45);
  margin-bottom: 1.2rem;
}
/* contact buttons — each only as big as itself, never a full-width row */
.footer-socials { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.7rem; }
.social-btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  width: max-content; max-width: 100%;
  padding: 0.72rem 1.15rem 0.72rem 0.9rem;
  border: 1px solid rgba(243, 239, 231, 0.24); border-radius: 99px;
  background: rgba(18, 17, 15, 0.72); color: var(--paper);
  font-size: 0.95rem; font-weight: 500;
  transition: transform 0.25s, background-color 0.25s, color 0.25s, border-color 0.25s;
}
.social-btn svg { flex: none; width: 20px; height: 20px; }
.social-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-btn:hover, .social-btn:focus-visible { background: var(--accent-2); border-color: var(--accent-2); color: var(--dark); transform: translateY(-3px); }
.social-btn:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.footer-hint { margin-top: 1.4rem; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; color: rgba(243, 239, 231, 0.55); text-shadow: 0 0 6px var(--dark), 0 0 14px var(--dark); }
.footer-bottom {
  margin-top: auto;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  padding-top: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: rgba(243, 239, 231, 0.5);
  text-shadow: 0 0 6px var(--dark), 0 0 14px var(--dark); /* readable over the landscape */
}
.footer-bottom a { color: var(--accent-2); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--accent); }

/* ============================================================
   FOOTER — how it works: an NFC room (js/nfc-room.js)
   ============================================================ */
.footer.room { padding: 0; display: block; cursor: none; min-height: 100vh; min-height: 100lvh; } /* fills the screen with the address bar hidden too */
.footer.room.is-locked, .footer.room a, .footer.room button { cursor: pointer; }
.footer.room.is-locked { cursor: default; }
.room-ui { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
/* the room is built in the background; it fades in once it can be drawn */
.room .footer-canvas { opacity: 0; transition: opacity 0.8s ease; }
.room.is-ready .footer-canvas { opacity: 1; }
.room:not(.is-ready) .nfc-phone { visibility: hidden; }
.room-head {
  position: absolute; left: clamp(1.2rem, 5vw, 4rem); top: clamp(2.4rem, 8vh, 5rem); max-width: 30rem;
  transition: opacity 0.5s, transform 0.5s;
}
.room-head.is-dim { opacity: 0.18; transform: translateY(-8px); }
.room-title {
  margin: 0.7rem 0 0.9rem; font-size: clamp(2.6rem, 6vw, 5.4rem); font-weight: 700; line-height: 0.95;
  letter-spacing: -0.03em; text-transform: uppercase; color: var(--paper);
}
.room-title em { text-transform: none; color: var(--accent-2); }
.room-hint {
  max-width: 21rem; font-family: var(--font-mono); font-size: 0.7rem; line-height: 1.6; letter-spacing: 0.05em;
  color: rgba(243, 239, 231, 0.72); text-shadow: 0 0 8px var(--dark), 0 0 16px var(--dark);
}
.room .footer-bottom {
  position: absolute; left: clamp(1.2rem, 5vw, 4rem); right: clamp(1.2rem, 5vw, 4rem); bottom: max(1.1rem, env(safe-area-inset-bottom));
  margin: 0; padding: 0; pointer-events: auto;
}

/* the phone */
.nfc-phone {
  position: absolute; left: 0; top: 0; z-index: 3; width: 132px; height: 272px; border-radius: 26px;
  background: #0b0b0d; border: 2px solid #4a4a54;
  box-shadow: inset 0 0 0 4px #0b0b0d, 0 0 0 1px rgba(255, 255, 255, 0.05), 0 34px 50px -14px rgba(0, 0, 0, 0.75);
  pointer-events: none; will-change: transform; transform-origin: 50% 20%;
}
.nfc-phone::before { content: ""; position: absolute; right: -4px; top: 72px; width: 3px; height: 40px; border-radius: 2px; background: #3a3a44; }
.nfc-phone.is-touch { pointer-events: auto; touch-action: none; }
.nfc-phone.is-buzz { animation: phoneBuzz 0.42s; }
@keyframes phoneBuzz { 20% { margin-left: -3px; } 40% { margin-left: 3px; } 60% { margin-left: -2px; } 80% { margin-left: 2px; } }
.nfc-phone-screen {
  position: absolute; inset: 5px; overflow: hidden; border-radius: 21px; color: #fff; font-family: var(--font-display);
  background: radial-gradient(130% 80% at 50% 0%, #3a2a24, #12110f 70%);
}
.ps-status { position: absolute; top: 6px; left: 0; right: 0; z-index: 3; height: 14px; padding: 0 13px; display: flex; align-items: center; justify-content: space-between; font-size: 8px; }
.ps-island { position: absolute; left: 50%; top: 0; width: 38px; height: 12px; margin-left: -19px; border-radius: 10px; background: #000; }
.ps-batt { width: 13px; height: 6px; border-radius: 2px; border: 1px solid #fff; background: linear-gradient(90deg, #fff 70%, transparent 70%); }
.ps-view {
  position: absolute; inset: 0; padding: 26px 9px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; text-align: center; opacity: 0; transition: opacity 0.3s;
}
.nfc-phone[data-view="idle"] .ps-idle, .nfc-phone[data-view="near"] .ps-near, .nfc-phone[data-view="scan"] .ps-scan,
.nfc-phone[data-view="music"] .ps-music, .nfc-phone[data-view="web"] .ps-web { opacity: 1; }
.ps-view b { font-size: 10px; font-weight: 700; }
.ps-view > span { font-size: 7.5px; color: rgba(255, 255, 255, 0.65); }
.ps-nfc { width: 40px; height: 40px; fill: none; stroke: var(--accent-2); stroke-width: 2.4; stroke-linecap: round; margin-bottom: 4px; }
.ps-rings { position: relative; width: 52px; height: 52px; margin-bottom: 6px; }
.ps-rings i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent-2); opacity: 0; animation: psRing 1.6s infinite; }
.ps-rings i:nth-child(2) { animation-delay: 0.5s; }
.ps-rings i:nth-child(3) { animation-delay: 1s; }
.ps-rings.is-fast i { animation-duration: 0.7s; border-color: #7fd4de; }
@keyframes psRing { from { transform: scale(0.3); opacity: 0.9; } to { transform: scale(1.1); opacity: 0; } }
.ps-music { justify-content: flex-start; }
.ps-art { width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 9px; background: #222; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5); }
.ps-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ps-title { margin-top: 6px; font-size: 10px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-artist { font-size: 7.5px; color: rgba(255, 255, 255, 0.6); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-bar { width: 100%; height: 2px; margin-top: 5px; border-radius: 2px; background: rgba(255, 255, 255, 0.2); overflow: hidden; }
.ps-bar i { display: block; height: 100%; width: 0; background: #fff; }
.nfc-phone[data-view="music"] .ps-bar i { animation: psProg 30s linear forwards; }
@keyframes psProg { to { width: 100%; } }
.ps-ctrl { display: flex; align-items: center; gap: 14px; margin-top: 4px; font-size: 11px; }
.ps-play { font-size: 9px; letter-spacing: -1px; }
.ps-open {
  margin-top: auto; padding: 6px 12px; border: 0; border-radius: 99px; background: var(--accent-2); color: var(--dark);
  font: 700 9px/1 var(--font-display); pointer-events: none; cursor: pointer;
}
.ps-open i { font-style: normal; }
.room.is-locked .ps-open, .nfc-phone.is-touch .ps-open { pointer-events: auto; }
.ps-open:hover { background: var(--paper); }
.ps-web { justify-content: flex-start; padding-left: 5px; padding-right: 5px; }
.ps-url { display: flex; align-items: center; gap: 3px; width: 100%; padding: 3px 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); font-size: 7px; }
.ps-url svg { width: 8px; height: 8px; fill: none; stroke: currentColor; stroke-width: 2.4; flex: none; }
.ps-host { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-site { position: relative; flex: 1; width: 100%; overflow: hidden; border-radius: 9px; background: #0b0a1c; }
/* the WebCard's real phone screen (from the showcase), shrunk to this phone */
.ps-site .pscreen[data-s] { width: 262px; height: 562px; inset: auto; left: 50%; top: 0; transform-origin: 0 0; transform: scale(0.45) translateX(-50%); transition: none; }
.ps-load { width: 100%; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.ps-load i { display: block; height: 100%; width: 0; background: var(--accent-2); }
.nfc-phone[data-view="web"] .ps-load i { animation: psProg 1.1s ease-out forwards; }
.ps-web .ps-open { margin-top: 5px; }

/* zoomed in: the way back out */
.room-exit {
  position: absolute; z-index: 5; right: clamp(1rem, 4vw, 3rem); top: calc(max(1.2rem, env(safe-area-inset-top, 0px)) + 4.6rem);
  display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px 0 13px;
  border-radius: 99px; border: 1px solid rgba(243, 239, 231, 0.28); background: rgba(18, 17, 15, 0.82); color: var(--paper);
  font: 600 0.8rem/1 var(--font-display); letter-spacing: 0.02em;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity 0.3s, transform 0.3s, background 0.2s;
}
.room-exit.is-on { opacity: 1; transform: none; pointer-events: auto; }
.room-exit:focus-visible { background: var(--accent-2); color: var(--dark); }
@media (hover: hover) { .room-exit:hover { background: var(--accent-2); color: var(--dark); } }
.room-exit svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

/* phones: "drag the phone" while it rests */
.nfc-coach {
  position: absolute; left: 0; top: 0; z-index: 3; display: flex; align-items: center; gap: 9px;
  padding: 8px 14px 8px 10px; border-radius: 99px; background: rgba(18, 17, 15, 0.88); border: 1px solid rgba(243, 239, 231, 0.2);
  color: var(--paper); font: 600 0.74rem/1 var(--font-display); white-space: nowrap;
  opacity: 0; transition: opacity 0.35s; pointer-events: none;
}
.nfc-coach.is-on { opacity: 1; }
.nfc-coach::after { /* points down at the phone */
  content: ""; position: absolute; left: 50%; bottom: -5px; width: 9px; height: 9px; margin-left: -5px;
  background: inherit; border: inherit; border-width: 0 1px 1px 0; transform: rotate(45deg);
}
.nfc-coach-track { position: relative; width: 12px; height: 20px; border-radius: 6px; border: 1.5px solid rgba(242, 165, 65, 0.55); }
.nfc-coach-track i { position: absolute; left: 50%; bottom: 2px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--accent-2); animation: coachDrag 1.6s ease-in-out infinite; }
@keyframes coachDrag { 0%, 15% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 75% { transform: translateY(-9px); opacity: 1; } 100% { transform: translateY(-9px); opacity: 0; } }
.nfc-phone.is-hint { animation: phoneHint 2.6s ease-in-out infinite; }
@keyframes phoneHint { 0%, 55%, 100% { translate: 0 0; } 70% { translate: 0 -16px; } 82% { translate: 0 -9px; } }
@media (prefers-reduced-motion: reduce) { .nfc-phone.is-hint, .nfc-coach-track i { animation: none; } }

/* contacts, out of the business card */
.nfc-contact {
  position: absolute; left: 0; top: 0; z-index: 4; display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem;
  padding: 0.9rem 0.9rem 1rem; border-radius: 1rem; background: rgba(18, 17, 15, 0.94); border: 1px solid rgba(243, 239, 231, 0.18);
  box-shadow: 0 24px 44px -14px rgba(0, 0, 0, 0.7);
  opacity: 0; pointer-events: none; transition: opacity 0.3s; cursor: default;
}
.nfc-contact.is-on { opacity: 1; pointer-events: auto; }
.nfc-contact:focus-within { opacity: 1; pointer-events: auto; }
.nfc-contact h4 { margin: 0 0 0.2rem; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(243, 239, 231, 0.5); }
.nfc-contact .social-btn { font-size: 0.85rem; padding: 0.6rem 1rem 0.6rem 0.8rem; }
/* no 3D here: the contacts just sit in the footer */
.room--static { cursor: auto; }
.room--static .nfc-phone { display: none; }
.room--static .nfc-contact { opacity: 1; pointer-events: auto; position: absolute; left: clamp(1.2rem, 5vw, 4rem); top: auto; bottom: 5rem; transform: none !important; }

@media (max-width: 640px) {
  .nfc-phone { width: 118px; height: 244px; border-radius: 23px; }
  .nfc-phone-screen { border-radius: 18px; }
  .room-title { font-size: clamp(2.2rem, 11vw, 3rem); }
  .room .footer-bottom { flex-direction: column; gap: 0.35rem; font-size: 0.58rem; }
}

/* phone-tilt button / hint (js/tilt.js) */
.tilt-pill {
  position: fixed; z-index: 950; right: 14px; top: calc(max(1.2rem, env(safe-area-inset-top, 0px)) + 68px);
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 15px;
  border-radius: 99px; border: 1px solid rgba(243, 239, 231, 0.26); background: rgba(18, 17, 15, 0.9); color: var(--paper);
  font: 600 0.78rem/1 var(--font-display);
  opacity: 0; transform: translateY(8px); transition: opacity 0.4s, transform 0.4s;
  -webkit-tap-highlight-color: transparent; pointer-events: none;
}
.tilt-pill.is-on { opacity: 1; transform: none; }
button.tilt-pill { cursor: pointer; pointer-events: auto; }
.tilt-pill svg { flex: none; color: var(--accent-2); }
.tilt-pill.is-min { width: 40px; padding: 0; justify-content: center; }
.tilt-pill.is-min span { display: none; }
.tilt-pill.is-away { opacity: 0; transform: translateY(10px); pointer-events: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* notched phones — keep the fixed nav and overlay bar out of the
   sensor housing / rounded corners */
.nav {
  padding-left: max(clamp(1.2rem, 4vw, 3rem), env(safe-area-inset-left));
  padding-right: max(clamp(1.2rem, 4vw, 3rem), env(safe-area-inset-right));
  padding-top: max(1.2rem, env(safe-area-inset-top));
}
.footer { padding-bottom: max(2rem, env(safe-area-inset-bottom)); }

/* ---------- tablets / small laptops ---------- */
@media (max-width: 1200px) {
  .product-desc { max-width: 34ch; }
}

/* ---------- tablets portrait / big phones ---------- */
@media (max-width: 1024px) {
}

/* ---------- phones ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-logo-img { height: 36px; }
  .nav-cta { padding: 0.6rem 1rem; }

  .product { height: 340vh; }
  .product-pin,
  .product--vinyl .product-pin {
    grid-template-columns: 1fr;
    grid-template-rows: 48vh 1fr;
  }
  .product--vinyl .product-copy { order: 2; }
  .product--vinyl .product-stage { order: 1; }
  .product-step { transform: translateY(30px); }
  .product-index { font-size: 40vw; }
  .product-copy { align-items: flex-start; padding-top: 1.5rem; }
  .product-step { top: 1.5rem; }
  .spec-list { margin-top: 1.4rem; }

  .footer-socials { flex-direction: column; }

  .hero-coords { display: none; }
  .hero-content { padding-top: 14vh; }

  .statement { padding-left: 1.4rem; padding-right: 1.4rem; }
  .slide { width: min(480px, 76vw); }
}

/* ---------- small phones ---------- */
@media (max-width: 480px) {
  .hero-title { font-size: clamp(2.4rem, 11.5vw, 3.4rem); }
  .hero-sub { font-size: 0.92rem; }
  .product-title { font-size: clamp(2rem, 9vw, 2.9rem); }
  .product-desc { font-size: 0.92rem; max-width: none; }
  .webcard-title { font-size: clamp(2.1rem, 9.5vw, 3rem); }
  .footer-title { font-size: clamp(3rem, 15vw, 4.6rem); }
  .gallery-title { font-size: clamp(2rem, 9vw, 3rem); }
  .webcard { border-radius: 1.4rem 1.4rem 0 0; }
  .footer { border-radius: 1.4rem 1.4rem 0 0; }
}

/* ---------- tiny / flip-phone cover screens ---------- */
@media (max-width: 360px) {
  .hero-title { font-size: 2rem; }
  .loader-count { font-size: 4rem; }
  .hero-eyebrow { font-size: 0.6rem; letter-spacing: 0.12em; }
  .product-title { font-size: 1.8rem; }
  .statement-text { font-size: 1.35rem; }
  .nav-cta { padding: 0.5rem 0.8rem; font-size: 0.7rem; }
  .lang-switch button { padding: 0.35rem 0.5rem; }
}

/* ---------- touch devices: real tap targets, no hover-only UI ---------- */
@media (pointer: coarse) {
  .nav-cta, .btn { min-height: 44px; }
}

/* ---------- short landscape phones: unclamp 100vh sections ---------- */
@media (max-height: 480px) and (orientation: landscape) {
  .hero-content { padding-top: 8vh; }
  .product-pin, .product--vinyl .product-pin {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
  }
  .product--vinyl .product-copy { order: 0; }
}
