/* ============================================================
   Noiz Lab — retro-minimal design system
   Inspired by stiff.madebybuzzworthy.com: cream + deep navy + vintage red,
   fat retro poster display type, grain, framed layout.
   ============================================================ */

/* Latin faces — self-hosted from the exact Google Fonts families previously
   loaded by the page. Keep them scoped to Latin ranges so CJK text falls
   through to the local system CJK stack / PuHuiTi display face. */
@font-face {
  font-family: "Bowlby One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/google/BowlbyOne-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/google/Inter-latin-ext-var.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/google/Inter-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Yellowtail";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/google/Yellowtail-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Yellowtail";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/google/Yellowtail-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Chinese display face — Alibaba PuHuiTi 3.0 Heavy (105). Free for commercial
   use. Self-hosted as a single woff2 with display:swap, so headings first
   render in the system fallback, then upgrade once it arrives (~1.4MB,
   display-only — never blocks text). Bowlby One has no CJK glyphs, so Chinese
   characters fall through to this; Latin stays on Bowlby One. */
@font-face {
  font-family: "Alibaba PuHuiTi 3";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/AlibabaPuHuiTi-3-105-Heavy.woff2") format("woff2");
  /* only pull this face in for CJK ranges — Latin never triggers a download */
  unicode-range: U+2E80-9FFF, U+3000-303F, U+3040-30FF, U+FF00-FFEF, U+3400-4DBF;
}

:root {
  --navy: #14151b;        /* near-black, deep ink */
  --navy-2: #0d0e13;
  --cream: #f0ecd9;       /* warm parchment, kept */
  --cream-2: #e7e1c9;
  --red: #fc3e57;         /* coral / punch red */
  --red-deep: #d92a44;
  --ink-soft: rgba(240, 236, 217, 0.66);
  --navy-soft: rgba(20, 21, 27, 0.62);

  --line-cream: rgba(240, 236, 217, 0.28);
  --line-navy: rgba(20, 21, 27, 0.22);

  --radius: 10px;
  --radius-lg: 14px;
  --maxw: 1320px;
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);

  /* Bowlby One drives Latin display; CJK chars fall through to PuHuiTi Heavy
     and then the local OS CJK stack. */
  --font-display: "Bowlby One", "Alibaba PuHuiTi 3", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", Impact, sans-serif;
  --font-script: "Yellowtail", cursive;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--red); color: var(--cream); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* grain */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- loader ----------
   Full-screen overlay: a vinyl disc spins up while assets load, then the whole
   panel curtains up to reveal the hero. JS (initLoader) drives spin + progress
   + exit. Without JS, the @keyframes fallback spins it and it stays — so we
   only hard-lock scroll while .loading is on <html> (added by an inline script
   in <head>-equivalent position via main.js). */
.loader {
  position: fixed; inset: 0; z-index: 10001;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 40px; background: var(--navy);
}
.loader__disc {
  width: min(40vw, 220px); height: min(40vw, 220px);
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.45));
}
.loader__svg { display: block; width: 100%; height: 100%; transform-origin: 50% 50%; }
.loader__text { font-family: var(--font-sans); font-weight: 800; text-transform: uppercase; }
/* no-JS / fallback spin (JS overrides with a GSAP spin-up tween) */
.loader__svg { animation: loader-spin 2.2s linear infinite; }
.gsap-ready .loader__svg { animation: none; } /* JS will drive it instead */
@keyframes loader-spin { to { transform: rotate(360deg); } }

.loader__foot {
  display: flex; flex-direction: column; align-items: center; gap: 16px; width: min(70vw, 280px);
}
.loader__word {
  font-family: var(--font-script); font-size: 30px; color: var(--cream); line-height: 1;
}
.loader__bar {
  position: relative; width: 100%; height: 2px;
  background: var(--line-cream); border-radius: 2px; overflow: hidden;
}
.loader__bar i {
  position: absolute; inset: 0 auto 0 0; width: 0%;
  background: var(--red); border-radius: 2px;
}
.loader__pct {
  font-size: 11px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-soft);
}
/* lock scroll under the loader until it's gone */
html.loading, html.loading body { overflow: hidden; }
/* once removed, .loader is gone from the DOM (JS), so no display rule needed */

/* ---------- auth gate loader ----------
   Concrete Labs experiment pages must wait for the same-origin Noiz session
   before rendering. This small overlay mirrors the Labs vinyl loader while the
   /api/v1/self request is pending. */
html.labs-auth-pending,
html.labs-auth-pending body { overflow: hidden; }
html.labs-auth-pending body > :not(.labs-auth-loader) { visibility: hidden; }
.labs-auth-loader {
  position: fixed; inset: 0; z-index: 10001;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 34px; background: var(--navy);
  transition: opacity 0.24s ease;
}
.labs-auth-loader.is-done { opacity: 0; pointer-events: none; }
.labs-auth-loader__disc {
  width: min(38vw, 200px); height: min(38vw, 200px);
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.45));
}
.labs-auth-loader__disc svg {
  display: block; width: 100%; height: 100%;
  animation: loader-spin 2.2s linear infinite;
}
.labs-auth-loader__text { font-family: var(--font-sans); font-weight: 800; text-transform: uppercase; }
.labs-auth-loader__foot { display: flex; flex-direction: column; align-items: center; gap: 14px; width: min(70vw, 260px); }
.labs-auth-loader__word { font-family: var(--font-script); font-size: 30px; color: var(--cream); line-height: 1; }
.labs-auth-loader__bar {
  position: relative; width: 100%; height: 2px;
  background: var(--line-cream); border-radius: 2px; overflow: hidden;
}
.labs-auth-loader__bar i {
  position: absolute; inset: 0 auto 0 0; width: 42%;
  background: var(--red); border-radius: 2px;
  animation: labs-auth-loader-bar 1.1s ease-in-out infinite alternate;
}
@keyframes labs-auth-loader-bar { from { transform: translateX(-20%); } to { transform: translateX(160%); } }

/* ---------- type helpers ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

/* CJK display headings — Bowlby One's tight 0.92 leading is built for Latin
   caps; CJK glyphs fill the full em box, so when a Chinese/Japanese heading
   wraps the lines collide. For zh/ja we loosen the leading, drop the Latin
   letter-spacing, use PuHuiTi's Heavy weight, and balance the wrap so multi-
   line headings read evenly. Applies wherever .display is used as a heading.
   (The hero slogan is always English, so it's unaffected.) */
:lang(zh) .display,
:lang(ja) .display {
  line-height: 1.18;
  letter-spacing: 0;
  font-weight: 900;
  text-wrap: balance;
}
/* numeric stats stay tight — they're Latin digits, not CJK */
:lang(zh) .stat .num,
:lang(ja) .stat .num { line-height: 0.9; font-weight: 400; }
.eyebrow {
  font-size: 12px; letter-spacing: 0.34em; text-transform: uppercase;
  font-weight: 700; color: var(--red);
}
.lead { font-size: 19px; line-height: 1.55; color: var(--ink-soft); }
.tracked { letter-spacing: 0.28em; text-transform: uppercase; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px; gap: 18px;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.nav.scrolled { background: rgba(40, 45, 53, 0.85); backdrop-filter: blur(8px); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 13px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cream); opacity: 0.8; transition: opacity 0.25s, color 0.25s;
}
.nav-links a:hover { opacity: 1; color: var(--red); }
.nav-right { display: flex; align-items: center; gap: 16px; }

/* "Sign in" — text link to noiz.ai, lives between lang toggle and Enter button */
.nav-signin {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.85;
  padding: 8px 4px;
  border-bottom: 1.5px solid transparent;
  transition: opacity 0.2s, color 0.2s, border-color 0.2s;
}
.nav-signin:hover { opacity: 1; color: var(--red); border-bottom-color: var(--red); }
.nav-signin[hidden], .nav-user[hidden] { display: none !important; }

/* logo: pixel "NOIZ" icon + script "lab" wordmark inside a bordered box.
   Border + "lab" are cream by default; flip to navy when nav is over a cream section.
   Icon PNG is pre-cropped tight (140x36, ~3.9:1) so height drives both elements visually. */
.logo {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1.5px solid var(--cream); border-radius: 10px;
  padding: 9px 16px; line-height: 1;
}
.logo .logo-icon { height: 20px; width: auto; display: block; }
.logo .lab {
  font-family: var(--font-script); font-size: 28px; color: var(--cream);
  line-height: 1; transform: translateY(2px);
}
.nav.on-cream .logo { border-color: var(--navy); }
.nav.on-cream .logo .lab { color: var(--navy); }
.nav.on-cream .nav-links a { color: var(--navy); }
.nav.on-cream .nav-links a:hover { color: var(--red); }

/* legacy segmented toggle — still used by the product pages (labs/*) */
.lang-toggle {
  display: inline-flex; border: 1.5px solid var(--line-cream); border-radius: 999px;
  overflow: hidden; font-size: 12px; font-weight: 700;
}
.lang-toggle button { padding: 6px 12px; color: var(--ink-soft); transition: all 0.2s; }
.lang-toggle button.active { background: var(--cream); color: var(--navy); }

/* language dropdown — EN / 中 / 日 / ES */
.lang-select { position: relative; }
.lang-select__btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1.5px solid var(--line-cream); border-radius: 999px;
  padding: 7px 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--cream); transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.lang-select__btn:hover { border-color: var(--cream); }
.lang-select__caret { width: 11px; height: 8px; transition: transform 0.25s var(--ease); opacity: 0.8; }
.lang-select.open .lang-select__caret { transform: rotate(180deg); }

.lang-select__menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 120;
  min-width: 148px; list-style: none; margin: 0; padding: 6px;
  background: var(--navy-2); border: 1.5px solid var(--line-cream); border-radius: var(--radius);
  box-shadow: 0 16px 36px rgba(0,0,0,0.45);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.98); transform-origin: top right;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}
.lang-select.open .lang-select__menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.lang-select__opt {
  padding: 9px 12px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--ink-soft);
  letter-spacing: 0.02em; transition: background 0.18s, color 0.18s;
}
.lang-select__opt:hover { background: rgba(240,236,217,0.08); color: var(--cream); }
.lang-select__opt[aria-selected="true"] { color: var(--cream); }
.lang-select__opt[aria-selected="true"]::after { content: "•"; color: var(--red); margin-left: 8px; }

/* nav reversal over cream sections */
.nav.on-cream .lang-select__btn { color: var(--navy); border-color: var(--line-navy); }
.nav.on-cream .lang-select__btn:hover { border-color: var(--navy); }

/* signed-in: avatar + account menu */
.nav-user { position: relative; display: inline-flex; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; overflow: hidden; padding: 0;
  border: 1.5px solid var(--cream); background: var(--red); color: var(--cream);
  display: grid; place-items: center; transition: transform 0.2s var(--ease), border-color 0.2s;
}
.avatar:hover { transform: translateY(-1px); }
.avatar__img { width: 100%; height: 100%; object-fit: cover; display: none; }
.avatar.has-img .avatar__img { display: block; }
.avatar.has-img .avatar__initials { display: none; }
.avatar__initials { font-size: 13px; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; }
.nav.on-cream .avatar { border-color: var(--navy); }

.user-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 120; min-width: 220px;
  padding: 8px; background: var(--navy-2); border: 1.5px solid var(--line-cream);
  border-radius: var(--radius); box-shadow: 0 16px 36px rgba(0,0,0,0.45);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.98); transform-origin: top right;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}
.nav-user.open .user-menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.user-menu__head { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; border-bottom: 1px solid var(--line-cream); margin-bottom: 6px; }
.user-menu__name { font-size: 14px; font-weight: 700; color: var(--cream); }
.user-menu__email { font-size: 12px; color: var(--ink-soft); }
.user-menu__item {
  display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 7px;
  font-size: 13px; font-weight: 600; color: var(--ink-soft); transition: background 0.18s, color 0.18s;
}
.user-menu__item:hover { background: rgba(240,236,217,0.08); color: var(--cream); }
.user-menu__signout { color: var(--red); }
.user-menu__signout:hover { color: var(--red); background: rgba(252,62,87,0.1); }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1.5px solid var(--cream);
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}
/* CSS hover-lift for non-magnetic buttons. Magnetic buttons (.is-magnetic,
   added by JS) get their lift from GSAP instead, so we don't drive the same
   transform property from two places. */
.btn:not(.is-magnetic):hover { transform: translateY(-2px); }
.btn--solid { background: var(--red); border-color: var(--red); color: var(--cream); }
.btn--solid:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn--ghost:hover { background: var(--cream); color: var(--navy); }
.btn--cream { background: var(--cream); border-color: var(--cream); color: var(--navy); }
.btn--cream:hover { background: var(--red); border-color: var(--red); color: var(--cream); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  justify-content: center; padding: 130px 0 90px; overflow: hidden;
}
.hero .eyebrow { margin-bottom: 28px; }
.hero-title { margin: 0 0 36px; }
.hero-title .ln { display: block; font-size: clamp(40px, 8.5vw, 120px); }
.hero-title .ln--red { color: var(--red); font-size: clamp(66px, 17vw, 260px); margin: 0.02em 0; }
.hero .lead { max-width: 50ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 38px; }

/* a flat retro red sticker shape, decorative */
.vinyl {
  /* fixed so the disc stays pinned to the viewport's top-right as you scroll —
     it's the page's persistent "sound switch". On desktop it sits in the
     open space to the right of the hero title. */
  position: fixed;
  top: clamp(104px, 18.8vh, 150px);
  right: max(18px, calc((100vw - var(--maxw)) / 2 - 60px));
  width: 124px; height: 124px;
  background: none; border: 0; padding: 0; cursor: pointer;
  filter: drop-shadow(0 14px 24px rgba(0,0,0,.34));
  z-index: 90;
}
.vinyl__svg { display: block; width: 100%; height: 100%; border-radius: 50%; }
.vinyl__text { font-family: var(--font-sans); font-weight: 800; text-transform: uppercase; }
.vinyl__btn {
  position: absolute; top: 50%; left: 50%; width: 38px; height: 38px;
  margin: -19px 0 0 -19px; border-radius: 50%; background: #15171c;
  display: grid; place-items: center;
  box-shadow: 0 0 0 1.5px rgba(240,236,217,.18), inset 0 0 0 1px rgba(0,0,0,.4);
  transition: transform 0.25s var(--ease), background 0.25s;
  pointer-events: none;
}
.vinyl:hover .vinyl__btn { transform: scale(1.08); background: #1f232b; }
.vinyl__icon { width: 16px; height: 16px; position: absolute; transition: opacity 0.2s; }
.vinyl__icon--play { opacity: 0; }
.vinyl.is-paused .vinyl__icon--play { opacity: 1; }
.vinyl.is-paused .vinyl__icon--pause { opacity: 0; }
@media (max-width: 720px) { .vinyl { width: 80px; height: 80px; top: 13%; right: 18px; } }

.scroll-hint {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-soft);
}

/* ---------- marquee ---------- */
.marquee {
  background: var(--red); color: var(--cream);
  border-top: 2px solid var(--cream); border-bottom: 2px solid var(--cream);
  padding: 16px 0; overflow: hidden; white-space: nowrap; user-select: none;
}
.marquee-track { display: inline-flex; animation: scroll-x 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display); text-transform: uppercase; font-size: clamp(18px, 2.6vw, 30px);
  padding: 0 0; line-height: 1;
}
.marquee-track span::after { content: "✺"; margin: 0 32px; font-size: 0.7em; vertical-align: middle; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { position: relative; }
.section-pad { padding: 120px 0; }
/* cream panel sandwiched between dark sections — classic 3-color palette */
.on-cream { background: var(--cream); color: var(--navy); }
.on-cream .lead { color: var(--navy-soft); }
.on-cream .eyebrow { color: var(--red); }

.section-head { margin-bottom: 60px; max-width: 1000px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { font-size: clamp(40px, 8vw, 120px); }
.section-head p { max-width: 46ch; margin-top: 22px; }
/* SplitText word wrappers (heading hover fx): keep each word atomic so a line
   never breaks mid-word between two inline-block chars. */
.display .fx-word,
.stat .num .fx-word { white-space: nowrap; }

/* ---------- experiments (split: sticky title left · scrolling cards right) ---------- */
/* align-items:stretch (grid default) makes the left cell as tall as the right
   card column, so the sticky title has room to stay pinned for the whole scroll. */
/* wider left title column · right cards a touch wider than before */
.exp-split { display: grid; grid-template-columns: minmax(340px, 1fr) minmax(0, 580px); gap: 64px; align-items: stretch; }
.exp-aside { position: relative; }
.exp-aside__inner { position: sticky; top: 128px; }
.exp-aside__inner h2 { font-size: clamp(40px, 5vw, 88px); line-height: 1.0; }
/* section sits on the dark navy bg → subtitle needs light ink (not navy-soft) */
.exp-aside__sub { max-width: 40ch; margin-top: 26px; color: var(--ink-soft); font-size: 17px; line-height: 1.55; }

/* right column: one product card per row, stacked vertically */
.exp-grid { display: flex; flex-direction: column; gap: 28px; perspective: 1200px; }
.exp-card {
  position: relative; display: flex; flex-direction: column;
  /* height fits content — identical structure keeps the two cards visually even */
  border: 2px solid var(--navy); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--cream); color: var(--navy);
  transition: box-shadow 0.4s var(--ease);
  transform-style: preserve-3d; will-change: transform;
}
/* subtle lift on hover — no red skew-shadow (kept the demo from wobbling) */
.exp-card { transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease); }
.exp-card:hover { box-shadow: 0 10px 30px rgba(20,21,27,0.14); }
/* order: title header (top) → product image (middle) → description (bottom) */
.exp-head { padding: 28px 34px 22px; display: flex; flex-direction: column; gap: 10px; }
.exp-num { font-family: var(--font-sans); font-size: 15px; font-weight: 700; color: var(--red); letter-spacing: 0.04em; }
.exp-head h3 { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 44px); text-transform: uppercase; line-height: 0.95; }
/* middle image band — slender 16:9, bordered; scales with card width */
.exp-media { position: relative; flex: 0 0 auto; aspect-ratio: 16 / 9; margin: 0 34px; overflow: hidden; border-radius: var(--radius); border: 2px solid var(--navy); background: var(--navy); }
.exp-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
/* cover zoom only — scoped to a direct-child cover <img>, never the demo disc imgs */
.exp-card:hover .exp-media > img { transform: scale(1.05); }
/* themed gradient placeholder when a product has no cover art yet */
.exp-media__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.exp-media__ph::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(240,236,217,0.10) 1px, transparent 1px);
  background-size: 18px 18px; opacity: 0.6;
}
.exp-media__mark { position: relative; z-index: 1; font-family: var(--font-display); font-size: 108px; line-height: 1; color: rgba(240,236,217,0.9); text-transform: uppercase; }
.exp-media--voice { background: linear-gradient(135deg, #3a1c71 0%, #d76d77 100%); }
.exp-media--night { background: radial-gradient(120% 120% at 30% 20%, #2a2f52 0%, #14151b 60%, #0d0e13 100%); }

/* interactive demo — vinyl discs scattered on a solid stage, click to play */
.vdemo { position: absolute; inset: 0; overflow: hidden; }
/* vinyl record: avatar fills the disc, wrapped by a thin grooved black rim (no centre hole).
   NOTE: no hover transform anywhere — avatars stay perfectly still until clicked. */
/* Positioned by JS via left/top on the CENTRE point, so we offset with margins
   (not transform). transform is reserved entirely for the play spin → nothing
   a hover rule does can ever move the avatar. */
.vdisc {
  position: absolute; margin-left: calc(var(--d) / -2); margin-top: calc(var(--d) / -2);
  width: var(--d); height: var(--d);
  display: flex; align-items: center; justify-content: center;
  border: 0; padding: 0; cursor: pointer; z-index: 2; line-height: 0;
  border-radius: 50%; overflow: hidden; background: #0a0b0e;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06) inset;
  transition: box-shadow 0.3s var(--ease);
}
/* avatar centred by flex (NO transform) → a hover scale can't shift it */
.vdisc img {
  width: 84%; height: 84%; border-radius: 50%; object-fit: cover; display: block; z-index: 1;
}
/* groove rings sit in the thin rim around the avatar (never over the face, no hole) */
.vdisc::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; z-index: 2;
  background: repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,0.05) 0 1px, rgba(255,255,255,0) 1px 3px);
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 0 42%, #000 43%);
          mask: radial-gradient(circle at 50% 50%, transparent 0 42%, #000 43%);
}
/* hover: gentle brightening only (no border, no movement) */
.vdisc:hover { box-shadow: 0 10px 24px rgba(0,0,0,0.6), 0 0 0 2px rgba(240,236,217,0.35) inset; }
/* playing: cream ring + the disc spins (spin lives on img; free transform now) */
.vdisc.is-playing { box-shadow: 0 10px 24px rgba(0,0,0,0.6), 0 0 0 2px rgba(240,236,217,0.8) inset; }
.vdisc.is-playing img { animation: vdisc-spin 3.4s linear infinite; }
@keyframes vdisc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .vdisc.is-playing img { animation: none; } }

/* white pointing-hand — a STATIC guide parked on the guide disc. Visible while
   nothing is playing; fades out (.is-hidden) the moment a disc plays. JS sets
   left/top once (parked); it never follows the mouse. */
.vhand {
  position: absolute; left: 0; top: 0; width: 32px; height: 32px; z-index: 8;
  pointer-events: none;
  /* dark halo on all sides → the white arrow reads on white discs AND black stage */
  filter: drop-shadow(0 0 1px rgba(0,0,0,0.9)) drop-shadow(0 2px 4px rgba(0,0,0,0.8));
  animation: vhand-tap 1.3s ease-in-out infinite;
  opacity: 1; transition: opacity 0.25s var(--ease);
}
.vhand svg { width: 100%; height: 100%; display: block; }
.vhand.is-hidden { opacity: 0; animation: none; }
@keyframes vhand-tap {
  0%, 100% { transform: translate(-4px, -2px); }
  50% { transform: translate(-8px, -7px); }
}
@media (prefers-reduced-motion: reduce) { .vhand { animation: none; } }

/* ---------- Midnight Shelter — retro radio demo ---------- */
.vradio { position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer; overflow: hidden; background: #0d0e13; display: block; }
.vradio__art { width: 100%; height: 100%; object-fit: cover; display: block; }
/* CRT scanlines + faint vignette over the pixel art */
.vradio__scan {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    repeating-linear-gradient(rgba(0,0,0,0) 0 2px, rgba(0,0,0,0.16) 2px 3px),
    radial-gradient(120% 120% at 50% 40%, transparent 55%, rgba(0,0,0,0.45) 100%);
  mix-blend-mode: multiply;
}
/* top row: LIVE lamp + FM frequency, mono/retro */
.vradio__top {
  position: absolute; top: 12px; left: 14px; right: 14px; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.vradio__live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em; color: #f0ecd9;
  padding: 4px 9px; border-radius: 4px; background: rgba(10,11,14,0.55); backdrop-filter: blur(2px);
  text-shadow: 0 0 6px rgba(252,62,87,0.6);
}
.vradio__live i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px 1px var(--red);
}
.vradio__freq {
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: #f0ecd9;
  padding: 4px 9px; border-radius: 4px; background: rgba(10,11,14,0.55); backdrop-filter: blur(2px);
}
.vradio__freq b { color: var(--red); font-weight: 700; }

/* bottom description block — tags sit right under the text (no auto-push gap) */
.exp-body { padding: 22px 34px 28px; display: flex; flex-direction: column; gap: 12px; }
.exp-tagline { font-size: 17px; font-weight: 600; }
.exp-desc { color: var(--navy-soft); font-size: 14.5px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.exp-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.exp-tag { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; border: 1.5px solid var(--navy); border-radius: 999px; padding: 5px 11px; }

/* ---------- capabilities (3×2 grid on cream) ---------- */
.cap-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.cap-item {
  display: flex; flex-direction: column; gap: 14px;
  border: 2px solid var(--line-navy); border-radius: var(--radius-lg);
  padding: 28px 26px 30px;
  background: rgba(20, 21, 27, 0.02);
  color: inherit;
  transition: transform 0.35s var(--ease), border-color 0.3s, background 0.3s, box-shadow 0.4s var(--ease);
}
.cap-item:hover {
  transform: translateY(-4px);
  border-color: var(--navy);
  background: rgba(20, 21, 27, 0.05);
  box-shadow: 10px 12px 0 var(--red);
}
.cap-item:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}
.cap-num {
  font-family: var(--font-display); font-size: 14px; color: var(--red);
  letter-spacing: 0.16em;
}
.cap-item h3 {
  font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px);
  text-transform: uppercase; line-height: 1; color: var(--navy);
}
.cap-item p { font-size: 14.5px; line-height: 1.55; color: var(--navy-soft); }

/* capabilities → noiz.ai cross-promo CTA */
.cap-cta {
  margin-top: 56px;
  text-align: center;
}
.cap-cta a {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 26px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
  border-bottom: 3px solid var(--red);
  padding-bottom: 6px;
  transition: color 0.25s, transform 0.25s;
}
.cap-cta a:hover { color: var(--red); transform: translateY(-2px); }

/* ---------- pull-quote / manifesto band ---------- */
.quote-band {
  margin-top: 80px; padding-top: 56px;
  border-top: 2px solid var(--line-cream);
}
.quote {
  font-family: var(--font-display); font-size: clamp(28px, 4.2vw, 56px);
  text-transform: uppercase; line-height: 1.08;
  max-width: 28ch;
  color: var(--cream);
}
.quote::before {
  content: "“"; display: inline-block; color: var(--red);
  font-size: 1.1em; line-height: 0; vertical-align: -0.18em; margin-right: 0.05em;
}

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 30px; }
.stat { border-top: 3px solid var(--red); padding-top: 16px; }
.stat .num { font-family: var(--font-display); font-size: clamp(44px, 6.2vw, 88px); line-height: 0.9; color: var(--cream); }
.stat .label { font-size: 13.5px; font-weight: 600; letter-spacing: 0.04em; line-height: 1.4; margin-top: 14px; color: var(--ink-soft); max-width: 22ch; }
/* stats placed inside a cream section flip to navy */
.on-cream .stat .num { color: var(--navy); }
.on-cream .stat .label { color: var(--navy-soft); }

/* ---------- cta band ---------- */
.cta-band { background: var(--red); color: var(--cream); text-align: center; padding: 130px 0; }
.cta-band .eyebrow { color: var(--cream); }
.cta-band h2 { font-size: clamp(44px, 9vw, 150px); margin: 14px 0 26px; }
.cta-band .lead { color: rgba(240,236,217,0.85); }
.sub-form { display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.sub-form input {
  background: transparent; border: 2px solid var(--cream); color: var(--cream);
  padding: 14px 20px; border-radius: 999px; font-size: 15px; min-width: 300px; font-family: inherit;
}
.sub-form input::placeholder { color: rgba(240,236,217,0.6); }
.sub-form input:focus { outline: none; }
.sub-note { color: rgba(240,236,217,0.75); font-size: 13px; margin-top: 16px; letter-spacing: 0.04em; }

/* ---------- footer ---------- */
noiz-labs-footer { display: block; }
.footer { background: var(--navy); color: var(--cream); padding: 80px 0 46px; border-top: 2px solid var(--line-cream); }

/* noiz.ai cross-promo strip at top of footer */
.footer-promo {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 32px 36px;
  border: 2px solid var(--line-cream);
  border-radius: var(--radius-lg);
  margin-bottom: 70px;
  background: rgba(240, 236, 217, 0.04);
}
.footer-promo__text h3 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1; text-transform: uppercase;
  color: var(--cream);
}
.footer-promo .btn { white-space: nowrap; }
.footer-big { font-family: var(--font-display); font-size: clamp(54px, 13vw, 210px); line-height: 0.86; text-transform: uppercase; margin: 30px 0 56px; }
.footer-big .red { color: var(--red); }
.footer-cols { display: flex; gap: 70px; flex-wrap: wrap; margin-bottom: 50px; }
.footer-col h4 { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--ink-soft); font-size: 15px; margin-bottom: 10px; transition: color 0.25s; }
.footer-col a:hover { color: var(--cream); }
.footer-bot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--ink-soft); border-top: 2px solid var(--line-cream); padding-top: 24px; letter-spacing: 0.04em; }
.footer-social { display: flex; align-items: center; gap: 10px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1.5px solid var(--line-cream); border-radius: 999px;
  color: var(--ink-soft); font-weight: 800; transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.footer-social a:hover { color: var(--cream); border-color: var(--cream); background: rgba(240, 236, 217, 0.08); }
.footer--compact {
  background: #fafafa;
  color: #1b1c22;
  padding: 40px 0 30px;
  border-top: 0;
}
.footer--compact .footer-top {
  display: block;
}
.footer--compact .footer-cols {
  margin-bottom: 78px;
}
.footer--compact .footer-col h4 {
  color: var(--red);
}
.footer--compact .footer-col a,
.footer--compact .footer-bot {
  color: rgba(27, 28, 34, 0.62);
}
.footer--compact .footer-col a:hover {
  color: #1b1c22;
}
.footer--compact .footer-bot {
  border-top-color: rgba(27, 28, 34, 0.16);
}
.footer--compact .footer-social a {
  border-color: rgba(27, 28, 34, 0.16);
  color: rgba(27, 28, 34, 0.62);
}
.footer--compact .footer-social a:hover {
  color: #1b1c22;
  border-color: #1b1c22;
  background: rgba(27, 28, 34, 0.04);
}

/* ---------- custom cursor ---------- */
.has-custom-cursor, .has-custom-cursor * { cursor: none !important; }
.has-custom-cursor input, .has-custom-cursor textarea { cursor: text !important; }
.cursor { position: fixed; top: 0; left: 0; z-index: 10000; pointer-events: none; }
.cursor__ring {
  position: fixed; top: 0; left: 0; width: 34px; height: 34px;
  border: 1.5px solid var(--cream); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: width 0.28s var(--ease), height 0.28s var(--ease), background 0.28s var(--ease), border-color 0.28s var(--ease), opacity 0.18s;
}
.cursor__label {
  font-family: var(--font-sans); font-size: 10px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy);
  opacity: 0; transform: scale(0.6); transition: opacity 0.2s, transform 0.2s; white-space: nowrap;
}
/* mini equalizer that rides the cursor — the "sound" identity */
.cursor__eq {
  position: fixed; top: 0; left: 0; display: flex; gap: 2px;
  align-items: center; height: 15px; transition: opacity 0.2s;
}
.cursor__eq i { display: block; width: 2px; height: 15px; border-radius: 1px; background: var(--red); transform: scaleY(0.35); }
.cursor__pointer {
  position: fixed; top: 0; left: 0; width: 32px; height: 32px;
  opacity: 0; transition: opacity 0.18s;
  filter: drop-shadow(0 0 2px #0a0b0e) drop-shadow(0 1px 1px #0a0b0e);
}
.cursor__pointer svg { width: 100%; height: 100%; display: block; }
.cursor.is-hover .cursor__ring { width: 70px; height: 70px; background: var(--cream); border-color: var(--cream); }
.cursor.is-hover .cursor__label { opacity: 1; transform: scale(1); }
.cursor.is-hover .cursor__eq { opacity: 0; }
.cursor.is-card .cursor__ring, .cursor.is-card .cursor__eq { opacity: 0; }
.cursor.is-card .cursor__pointer { opacity: 1; }
.cursor.is-down .cursor__ring { transform: scale(0.85); }
/* on light surfaces: flip cream → navy so the cursor stays legible */
.cursor.on-light .cursor__ring { border-color: var(--navy); }
.cursor.on-light.is-hover .cursor__ring { background: var(--navy); border-color: var(--navy); }
.cursor.on-light.is-hover .cursor__label { color: var(--cream); }
/* sonar ping on click */
.cursor-ping {
  position: fixed; top: 0; left: 0; width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--red); transform: translate(-50%, -50%);
  pointer-events: none; z-index: 9999;
}
.cursor-ping.on-light { border-color: var(--navy); }

/* ---------- reveal ----------
   GSAP manages initial/animated states at runtime. When JS is enabled we add
   .gsap-ready to <html>; only then do we hide reveal targets to avoid FOUC.
   Without JS/GSAP, content stays fully visible. */
.gsap-ready .anim-hide { visibility: hidden; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  /* split collapses to a single stacked column; title no longer sticky */
  .exp-split { grid-template-columns: 1fr; gap: 40px; }
  .exp-aside__inner { position: static; top: auto; }
  .exp-media__mark { font-size: 76px; }
  .stats { grid-template-columns: 1fr; gap: 24px; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-promo { flex-direction: column; align-items: flex-start; gap: 20px; }
  .section-pad { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .quote-band { margin-top: 50px; padding-top: 40px; }
  .footer-cols { gap: 40px; }
}
@media (max-width: 640px) {
  .cap-grid { grid-template-columns: 1fr; }
  .hero-title .ln { font-size: clamp(32px, 8vw, 60px); }
  .hero-title .ln--red { font-size: clamp(52px, 14vw, 140px); }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; text-align: center; justify-content: center; }
  .cta-band { padding: 80px 0; }
  .cta-band h2 { font-size: clamp(36px, 8vw, 80px); }
  .footer-big { font-size: clamp(42px, 11vw, 120px); }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .sub-form input { min-width: 220px; }
  .exp-body { padding: 20px 22px 24px; }
  .exp-body h3 { font-size: clamp(22px, 5vw, 32px); }
  .exp-tagline { font-size: 15px; }
  .exp-desc { font-size: 13.5px; }
  .footer-promo { padding: 24px 20px; }
}
@media (max-width: 400px) {
  .wrap { padding: 0 14px; }
  .hero .lead { font-size: 14px; }
  .stats { grid-template-columns: 1fr; }
  .stat .num { font-size: clamp(36px, 10vw, 56px); }
  .sub-form { flex-direction: column; align-items: stretch; width: 100%; }
  .sub-form input { min-width: 0; width: 100%; }
  .sub-form .btn { width: 100%; justify-content: center; }
  .footer-cols { gap: 30px; }
  .footer-big { margin: 20px 0 36px; }
}

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