/* ============================================================
   POLY — POLYMANCER official site
   Monochrome editorial · Teenage-Engineering hints · Apple calm
   ============================================================ */

@font-face {
  font-family: "Hanson";
  src: url("assets/Hanson-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

:root {
  --black: #0a0a0a;
  --ink: #0a0a0a;
  --paper: #f5f4f1;
  --paper-2: #ebe9e4;
  --line: rgba(10, 10, 10, 0.14);
  --line-2: rgba(10, 10, 10, 0.08);
  --mut: rgba(10, 10, 10, 0.52);
  --mut-2: rgba(10, 10, 10, 0.38);

  /* accent — overridden by tweak */
  --accent: #0a0a0a;
  --accent-ink: #f5f4f1;

  --nav-h: 64px;

  --ff-display: "Hanken Grotesk", -apple-system, system-ui, sans-serif;
  --ff-hanson: "Hanson", Impact, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-2: cubic-bezier(0.65, 0, 0.35, 1);

  --maxw: 1320px;
  --pad: clamp(20px, 5vw, 72px);
}

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

html { -webkit-text-size-adjust: 100%; }

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

/* dark sections invert the tokens */
.on-dark {
  --ink: #f5f4f1;
  --paper: #0a0a0a;
  --line: rgba(245, 244, 241, 0.16);
  --line-2: rgba(245, 244, 241, 0.08);
  --mut: rgba(245, 244, 241, 0.56);
  --mut-2: rgba(245, 244, 241, 0.4);
  background: #0a0a0a;
  color: #f5f4f1;
}

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

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

/* ---------- typography helpers ---------- */
.mono {
  font-family: var(--ff-mono);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mono-xs { font-size: 11px; letter-spacing: 0.16em; }
.mono-sm { font-size: 12.5px; letter-spacing: 0.12em; }

.display {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.92;
  text-wrap: balance;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.hair { height: 1px; background: var(--line); border: 0; width: 100%; }

/* accent dot */
.dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
}
.dot.pulse { animation: dotpulse 2.4s var(--ease) infinite; }
@keyframes dotpulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .35; transform: scale(.8);} }

/* ============================================================
   APP SHELL + NAV
   ============================================================ */
#app { min-height: 100vh; display: flex; flex-direction: column; }

.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 80;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
  mix-blend-mode: normal;
}
.nav__inner {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--pad);
  display: flex; align-items: center; gap: 24px;
  height: 100%;
}
.nav__logo { display: flex; align-items: center; gap: 12px; height: 100%; flex: 0 0 auto; }
/* .nav__logo img kept for compat but .mark replaces it */
.nav__logo img { height: 19px; width: auto; transition: filter .5s var(--ease); }
.nav__est { font-size: 10px; letter-spacing: 0.14em; color: rgba(245,244,241,0.52); }

.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__link {
  position: relative;
  font-family: var(--ff-mono);
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 9px 14px; border-radius: 999px;
  color: var(--nav-ink, var(--ink));
  opacity: .62;
  transition: opacity .3s var(--ease), background .3s var(--ease);
  white-space: nowrap;
}
.nav__link .ix { opacity: .45; margin-right: 7px; font-size: 10px; }
.nav__link:hover { opacity: 1; }
.nav__link.is-active { opacity: 1; }

/* nav styles */
.nav--bar {
  background: color-mix(in srgb, var(--nav-bg, var(--paper)) 74%, transparent);
  backdrop-filter: saturate(180%) blur(28px);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
  border-bottom: 1px solid var(--nav-line, var(--line));
  box-shadow: 0 1px 0 var(--nav-line, var(--line)), 0 4px 24px -4px rgba(0,0,0,.12);
}
.nav--bar .nav__link.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px;
  background: var(--accent);
}

/* pill — compact centered by default, expands to full bar on scroll */
.nav--pill { justify-content: center; pointer-events: none; }
.nav--pill .nav__inner {
  height: 52px; padding-top: 0;
  justify-content: flex-start; gap: 0;
  position: relative;
  pointer-events: auto;
  background: color-mix(in srgb, var(--nav-bg, #111) 68%, transparent);
  backdrop-filter: saturate(200%) blur(32px);
  -webkit-backdrop-filter: saturate(200%) blur(32px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 0 6px;
  box-shadow: 0 8px 32px -8px rgba(0,0,0,.5), 0 2px 8px rgba(0,0,0,.2), 0 0 0 1px rgba(255,255,255,.04) inset;
  /* compact: shrink to fit links only */
  width: fit-content;
  max-width: 860px;
  transition: width 0.55s var(--ease), padding 0.55s var(--ease);
}
/* scrolled: expand to full-width bar */
.nav--pill.nav--scrolled .nav__inner {
  width: calc(100% - var(--pad) * 2);
  padding: 0 6px 0 14px;
}
.nav--pill .nav__logo {
  display: flex;
  position: static;
  pointer-events: none;
  height: auto;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  flex: 0 0 auto;
  align-items: center;
  padding-top: 6px;
  /* hidden until scrolled */
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-8px) scale(0.92);
  transition: max-width 0.55s var(--ease), opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.nav--pill.nav--scrolled .nav__logo {
  max-width: 240px;
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}
.nav--pill .nav__logo .mark { font-size: 13.3px; white-space: nowrap; }
.nav--pill .nav__est { font-size: 9px; white-space: nowrap; margin-top: -4px; }
.nav--pill .nav__links {
  margin: 0 0 0 auto;
  pointer-events: auto;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 999px;
  padding: 4px;
  box-shadow: none;
}
.nav--pill .nav__link { padding: 7px 10px; font-size: 11px; }
.nav--pill .nav__link.is-active {
  background: var(--accent); color: var(--accent-ink);
}
.nav--pill .nav__link .ix { display: none; }

/* rail — left vertical */
.nav--rail { flex-direction: column; height: 100vh; width: 132px; right: auto;
  border-right: 1px solid var(--nav-line, var(--line)); align-items: stretch;
  background: color-mix(in srgb, var(--nav-bg, var(--paper)) 86%, transparent);
  backdrop-filter: blur(14px);
}
.nav--rail .nav__inner { flex-direction: column; height: 100%; padding: 22px 0; align-items: stretch; gap: 0; }
.nav--rail .nav__logo { justify-content: center; padding: 6px 0 26px; flex-direction: column; gap: 8px; }
.nav--rail .nav__logo .mark { font-size: 17px; }
.nav--rail .nav__links { flex-direction: column; margin: 0; gap: 2px; align-items: stretch; }
.nav--rail .nav__link { text-align: left; padding: 12px 22px; border-radius: 0; }
.nav--rail .nav__link.is-active { background: var(--accent); color: var(--accent-ink); }
.nav--rail .nav__foot { margin-top: auto; padding: 0 22px; }

/* page content offset per nav style */
.shell { flex: 1; }
.shell--bar { padding-top: 0; }
.shell--rail { padding-left: 132px; }

/* mobile: rail collapses to bar behaviour */
@media (max-width: 760px) {
  .nav--rail { flex-direction: row; height: var(--nav-h); width: 100%; right: 0;
    border-right: 0; border-bottom: 1px solid var(--nav-line, var(--line)); }
  .nav--rail .nav__inner { flex-direction: row; padding: 0 var(--pad); align-items: center; }
  .nav--rail .nav__logo { padding: 0; flex-direction: row; }
  .nav--rail .nav__links { flex-direction: row; margin-left: auto; }
  .nav--rail .nav__link { padding: 9px 11px; }
  .nav--rail .nav__foot { display: none; }
  .shell--rail { padding-left: 0; }
}
@media (max-width: 600px) {
  .nav__link .ix { display: none; }
  .nav__link { padding: 9px 10px; font-size: 11px; }
  .nav__est { display: none; }
}

/* ============================================================
   PAGE TRANSITION WIPE
   ============================================================ */
.wipe {
  position: fixed; inset: 0; z-index: 200;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  transform: translateY(100%);
  pointer-events: none;
}
.wipe.is-cover { animation: wipeCover .42s var(--ease-2) forwards; }
.wipe.is-reveal { animation: wipeReveal .5s var(--ease-2) forwards; }
.wipe img { height: 22px; opacity: 0; }
.wipe.is-cover img { animation: wipeMark .42s var(--ease) forwards; }
@keyframes wipeCover { from { transform: translateY(100%);} to { transform: translateY(0);} }
@keyframes wipeReveal { from { transform: translateY(0);} to { transform: translateY(-100%);} }
@keyframes wipeMark { 0% { opacity: 0; transform: translateY(8px);} 50% { opacity: .9; } 100% { opacity: 0; transform: translateY(-8px);} }

/* page enter animation (staggered children with data-stagger) */
.page { position: relative; }
.page[data-anim="in"] [data-stagger] {
  opacity: 0; transform: translateY(22px);
  animation: rise .8s var(--ease) forwards;
}
@keyframes rise { to { opacity: 1; transform: translateY(0);} }

@media (prefers-reduced-motion: reduce) {
  .wipe { display: none !important; }
  .page[data-anim] [data-stagger] { opacity: 1 !important; transform: none !important; animation: none !important; }
  * { scroll-behavior: auto !important; }
}

/* ============================================================
   GENERIC SECTION BITS
   ============================================================ */
.sec { padding: clamp(72px, 11vw, 150px) 0; }
.sec-label { display: flex; align-items: center; gap: 12px; color: var(--mut); margin-bottom: 30px; }
.sec-label .dot { background: var(--accent); }

.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--mut); }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--ff-mono); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 15px 26px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  transition: transform .35s var(--ease), opacity .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translate(3px, -3px); }
.btn--ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); 
}
.btn--ghost:hover { border-color: var(--ink); }

.arr-svg { width: 13px; height: 13px; }

/* ============================================================
   HOME
   ============================================================ */
.home { background: var(--paper); }

/* hero — common */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; }
.hero__top { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.hero__meta {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 22px var(--pad) 30px; gap: 20px;
  border-top: 1px solid var(--line); color: var(--mut);
}
.hero__meta .col { display: flex; flex-direction: column; gap: 4px; }
.hero__meta .col b { color: var(--ink); font-weight: 600; letter-spacing: 0; }

/* hero: WORDMARK (EDEN-style, pure black) */
.hero--wordmark { background: var(--black); color: var(--paper);
  --ink: #f5f4f1; --line: rgba(245,244,241,.16); --mut: rgba(245,244,241,.56); overflow: hidden; }
.hero--wordmark .bigmark {
  font-family: var(--ff-hanson);
  font-weight: 700; letter-spacing: 0.06em; line-height: .86;
  font-size: clamp(74px, 22vw, 340px); text-align: center;
  overflow: visible;
}
.hero--wordmark .sub {
  text-align: center; margin-top: 26px; color: var(--mut);
}
.hero--wordmark .hero__top { align-items: center; }

/* hero: PHOTO full-bleed */
.hero--photo { color: var(--paper); --ink: #f5f4f1; --line: rgba(245,244,241,.18); --mut: rgba(245,244,241,.6); overflow: hidden; }
.hero--photo .bg { position: absolute; inset: 0; }
.hero--photo .bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.02); }
.hero--photo .bg::after { content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.1) 30%, rgba(0,0,0,.05) 55%, rgba(0,0,0,.7) 100%); }
.hero--photo .hero__top { position: relative; justify-content: flex-end; padding-bottom: 4vh; }
.hero--photo .h-word { font-family: var(--ff-hanson); font-weight: 700; letter-spacing: 0.06em; line-height: .86;
  font-size: clamp(60px, 15vw, 220px); overflow: visible; }

/* ── Frosted glass POLY — dual layer: blurred diffuse fill + sharp frost outline ── */
.poly-glass-wrap {
  display: grid;
  will-change: transform;
  overflow: visible;
  /* padding prevents line-height:.86 clipping the ascenders + glow room */
  padding: 0.16em 0.05em 0.05em;
  margin: -0.16em -0.05em -0.05em;
}
/* fix: line-height on grid children must cover full cap height so background-clip:text doesn't slice tops */
.poly-glass-wrap > * { grid-area: 1 / 1; line-height: 1.0; }
/* bottom layer — heavily blurred white, bleeds through letter shapes = interior glow */
.poly-glass-blur {
  color: rgba(255,255,255,0.90);
  filter: blur(20px) brightness(1.15);
  pointer-events: none;
  user-select: none;
}
/* top layer — glass-toned gradient; SVG filter creates liquid-glass refraction + specular edge */
.poly-glass-sharp {
  color: transparent;
  background: linear-gradient(145deg,
    rgba(185,225,255,0.88) 0%,
    rgba(255,255,255,1.00) 28%,
    rgba(210,238,255,0.92) 50%,
    rgba(255,255,255,0.95) 72%,
    rgba(195,230,255,0.85) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0.92;
}
/* z-index: eyebrow + buttons paint above the POLY parallax text */
.hero--photo .eyebrow { position: relative; z-index: 2; }
.hero--photo .h-row > div:last-child { position: relative; z-index: 2; }
.h-row__btns { display: flex; gap: 14px; flex-wrap: wrap; padding-bottom: 10px; }
.hero--photo .h-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* hero: RELEASE moment */
.hero--release { background: var(--paper); }
.hero--release .hero__top { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.hero--release .rel-copy .h-word { font-family: var(--ff-display); font-weight: 800; letter-spacing: -0.035em; line-height: .9;
  font-size: clamp(54px, 9vw, 132px); }
.hero--release .rel-art { position: relative; aspect-ratio: 1; border-radius: 4px; overflow: hidden; box-shadow: 0 40px 90px -40px rgba(0,0,0,.5); }
.hero--release .rel-art img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .hero--release .hero__top { grid-template-columns: 1fr; }
  .hero--release .rel-art { max-width: 420px; }
}

/* home feature blocks */
.feat { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0; border-top: 1px solid var(--line); }
.feat__cell { padding: clamp(34px, 5vw, 64px) var(--pad); border-bottom: 1px solid var(--line); }
.feat__cell:not(:last-child) { border-right: 1px solid var(--line); }
.feat-3 .feat__cell { grid-column: span 4; }
@media (max-width: 820px) { .feat-3 .feat__cell { grid-column: span 12; border-right: 0; } }
.feat__n { color: var(--mut); margin-bottom: 28px; }
.feat__h { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.feat__p { color: var(--mut); font-size: 15.5px; line-height: 1.5; max-width: 34ch; }

/* ---- Hanson wordmark class (used everywhere the logo appears) ---- */
.mark {
  font-family: var(--ff-hanson);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  color: inherit;
  user-select: none;
}
/* nav-size mark */
.nav__logo .mark {
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--nav-ink, currentColor);
}
/* wipe mark */
.wipe .mark {
  font-size: 48px;
  letter-spacing: 0.1em;
  color: #f5f4f1;
  opacity: 0;
}
.wipe.is-cover .mark { animation: wipeMark .42s var(--ease) forwards; }
/* foot mark */
.foot .mark { font-size: 15px; letter-spacing: 0.08em; }

/* big ticker / marquee */
.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; }
.ticker__track { display: inline-flex; gap: 48px; white-space: nowrap; animation: marq 26s linear infinite; }
.ticker span { font-weight: 800; letter-spacing: -0.02em; font-size: clamp(28px, 5vw, 60px); opacity: .14; }
.ticker .on { opacity: 1; }
.ticker .on .dot { width: 12px; height: 12px; margin: 0 8px; }
@keyframes marq { to { transform: translateX(-50%);} }

/* home release promo strip */
.promo { display: grid; grid-template-columns: 0.8fr 1.2fr; align-items: center; gap: clamp(30px,5vw,72px);
  padding: clamp(60px,9vw,120px) 0; }
.promo .art { aspect-ratio: 1; border-radius: 4px; overflow: hidden; max-width: 360px; box-shadow: 0 40px 80px -44px rgba(0,0,0,.5); }
.promo .art img { width:100%; height:100%; object-fit: cover; }
@media (max-width: 820px) { .promo { grid-template-columns: 1fr; } }

/* ============================================================
   MUSIC
   ============================================================ */
.music { background: var(--black); color: var(--paper);
  --ink:#f5f4f1; --paper:#0a0a0a; --line: rgba(245,244,241,.16); --line-2: rgba(245,244,241,.07);
  --mut: rgba(245,244,241,.56); --mut-2: rgba(245,244,241,.4); min-height: 100vh; }

.music__head { padding-top: calc(var(--nav-h) + clamp(40px,6vw,80px)); }

/* layout: STACK (art centered, list below) */
.rel-stack { text-align: center; padding-bottom: clamp(40px,6vw,70px); }
.rel-stack .cover { width: min(360px, 70vw); aspect-ratio: 1; margin: 0 auto 34px; border-radius: 5px; overflow: hidden;
  box-shadow: 0 50px 110px -40px rgba(0,0,0,.85); }
.rel-stack .cover img { width:100%; height:100%; object-fit: cover; }
.rel-stack .ttl { font-family: Hanson, Impact, sans-serif; font-size: clamp(48px,9vw,104px); font-weight: 800; letter-spacing: -.04em; line-height: .9; }

/* layout: SPLIT (art left, info right) */
.rel-split { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(30px,6vw,84px); align-items: center;
  padding-bottom: clamp(40px,6vw,70px); }
.rel-split .cover { aspect-ratio: 1; border-radius: 5px; overflow: hidden; box-shadow: 0 50px 110px -50px rgba(0,0,0,.85); }
.rel-split .cover img { width:100%; height:100%; object-fit: cover; }
.rel-split .ttl { font-family: Hanson, Impact, sans-serif; font-size: clamp(44px,7vw,108px); font-weight: 800; letter-spacing: -.04em; line-height: .88; }
@media (max-width: 860px){ .rel-split { grid-template-columns: 1fr; } .rel-split .cover { max-width: 360px; } }

/* layout: COVER (full-bleed art with overlay) */
.rel-cover { position: relative; min-height: 78vh; display: flex; align-items: flex-end;
  border-radius: 6px; overflow: hidden; margin-bottom: clamp(30px,5vw,56px); }
.rel-cover img.bg { position:absolute; inset:0; width:100%; height:100%; object-fit: cover; filter: contrast(1.04); }
.rel-cover::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.85)); }
.rel-cover .inner { position: relative; padding: clamp(28px,5vw,56px); width:100%; }
.rel-cover .ttl { font-family: Hanson, Impact, sans-serif; font-size: clamp(48px,11vw,150px); font-weight:800; letter-spacing:-.04em; line-height:.85; }

.rel-meta { display:flex; gap: 26px; flex-wrap: wrap; color: var(--mut); margin-top: 18px; }
.rel-meta b { color: var(--ink); font-weight: 600; }

/* streaming list — local fanlink */
.stream { border-top: 1px solid var(--line); }
.stream__row {
  display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 20px;
  padding: 20px clamp(4px,2vw,16px); border-bottom: 1px solid var(--line);
  position: relative; transition: padding-left .4s var(--ease);
}
.stream__row::before { content:""; position:absolute; inset:0; background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease); z-index: 0; }
.stream__row > * { position: relative; z-index: 1; transition: color .4s var(--ease); }
.stream__row:hover::before { transform: scaleX(1); }
.stream__row:hover { color: var(--paper); }
.stream__row:hover .glyph { color: var(--paper); }
.stream__row:hover .s-cta { color: var(--paper); opacity: 1; }
.glyph { width: 22px; height: 22px; color: var(--ink); transition: color .4s var(--ease); }
.stream__name { font-size: clamp(20px, 3vw, 30px); font-weight: 700; letter-spacing: -.02em; }
.s-cta { font-family: var(--ff-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); opacity:.8;
  display:flex; align-items:center; gap: 9px; }

/* ============================================================
   SHOP
   ============================================================ */
.shop { background: var(--paper); }
.shop__head { padding-top: calc(var(--nav-h) + clamp(40px,6vw,80px)); }
.shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
@media (max-width: 760px){ .shop-grid { grid-template-columns: 1fr; } }
.prod { background: var(--paper); padding: clamp(22px,3vw,40px); display:flex; flex-direction:column; }
.prod__stage { position: relative; aspect-ratio: 4/4.4; background: var(--paper-2); border-radius: 4px; overflow:hidden;
  display:flex; align-items:center; justify-content:center; }
.prod__stage::after { content:""; position:absolute; inset:0; pointer-events:none;
  background: radial-gradient(120% 90% at 50% 18%, rgba(255,255,255,.5), transparent 60%); }
.prod__tag { position:absolute; top:14px; left:14px; z-index:2; display:flex; align-items:center; gap:8px;
  background: var(--ink); color: var(--paper); padding:7px 11px; border-radius:999px; }
.prod__nav { position:absolute; top:50%; transform:translateY(-50%); z-index:3;
  width:36px; height:36px; border-radius:50%; border:1px solid rgba(0,0,0,.13);
  background:rgba(255,255,255,.72); backdrop-filter:blur(8px);
  display:flex; align-items:center; justify-content:center;
  color:var(--ink); cursor:pointer; transition:background .18s, opacity .18s;
  opacity:0; pointer-events:none; }
.prod__stage:hover .prod__nav { opacity:1; pointer-events:auto; }
.prod__nav:hover { background:rgba(255,255,255,.96); }
.prod__nav--prev { left:12px; }
.prod__nav--next { right:12px; }
.prod__garment { width: 78%; transition: transform .6s var(--ease); }
.prod:hover .prod__garment { transform: scale(1.03) translateY(-4px); }
.prod__foot { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; padding-top: 22px; }
.prod__name { font-size: clamp(20px,2.4vw,27px); font-weight:700; letter-spacing:-.02em; }
.prod__sub { color: var(--mut); font-size: 14px; margin-top: 6px; }
.prod__price { font-size: clamp(20px,2.4vw,27px); font-weight:700; letter-spacing:-.02em; white-space:nowrap; }
.prod__buy { margin-top: 22px; display:flex; gap:12px; align-items:center; }
.size-row { display:flex; gap:7px; margin-top: 20px; flex-wrap:wrap; }
.size { font-family:var(--ff-mono); font-size: 11.5px; letter-spacing:.08em; padding:8px 13px; border:1px solid var(--line); border-radius:999px;
  transition: all .25s var(--ease); }
.size:hover, .size.sel { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* product multi-angle viewer */
.prod__garment-anim {
  width: 100%; display: flex; align-items: center; justify-content: center;
  animation: garmentFade .28s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes garmentFade {
  from { opacity: 0; transform: scale(0.97) translateY(6px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.prod__views {
  display: flex; gap: 8px; justify-content: center;
  padding: 14px 0 4px;
}
.view-dot {
  width: 28px; height: 3px; border-radius: 2px;
  background: var(--line-2); padding: 0;
  transition: background .25s var(--ease), transform .2s var(--ease);
}
.view-dot.is-active { background: var(--ink); transform: scaleX(1.2); }
.view-dot:hover:not(.is-active) { background: var(--mut-2); }

.view-label {
  font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--mut-2);
  text-align: center; margin-bottom: 4px;
}

/* serial number */
.prod__serial {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mut);
  padding: 14px 0 2px; border-top: 1px solid var(--line); margin-top: 14px;
}
.prod__serial .snum {
  font-size: 15px; font-weight: 700; letter-spacing: 0.06em; color: var(--ink);
}
.prod__serial-divider {
  flex: 1; height: 1px; background: var(--line); min-width: 12px;
}

/* ============================================================
   TOUR
   ============================================================ */
.tour { background: var(--black); color: var(--paper); min-height: 100vh;
  --ink:#f5f4f1; --line: rgba(245,244,241,.16); --mut: rgba(245,244,241,.56); }
.tour__head { padding-top: calc(var(--nav-h) + clamp(40px,6vw,80px)); }
.tour__title { font-size: clamp(48px,11vw,160px); font-weight:800; letter-spacing:-.045em; line-height:.86; }
.tour__title .reg { -webkit-text-stroke: 1.4px var(--paper); color: transparent; }
.date-row {
  display:grid; grid-template-columns: auto 1fr auto auto; gap: clamp(16px,4vw,48px); align-items:center;
  padding: clamp(24px,3.4vw,40px) 0; border-top: 1px solid var(--line); position: relative;
}
.date-row:last-child { border-bottom: 1px solid var(--line); }
.date-row .dnum { display:flex; align-items:baseline; gap:10px; }
.date-row .dday { font-size: clamp(36px,5vw,64px); font-weight:800; letter-spacing:-.03em; line-height:1; }
.date-row .dmon { font-family:var(--ff-mono); font-size:13px; letter-spacing:.14em; color:var(--mut); }
.date-row .dven { font-size: clamp(20px,2.6vw,32px); font-weight:700; letter-spacing:-.02em; }
.date-row .dcity { color: var(--mut); font-size: 14.5px; margin-top: 5px; }
.date-row .dstat { font-family:var(--ff-mono); font-size:11px; letter-spacing:.14em; color:var(--mut); text-transform:uppercase; }
.date-row .dbtn { white-space: nowrap; }
.date-row::after { content:""; position:absolute; left:0; right:0; bottom:0; height:0; background: var(--accent);
  opacity:.0; transition: opacity .4s var(--ease); }
@media (max-width: 720px){
  .date-row { grid-template-columns: auto 1fr; row-gap: 14px; }
  .date-row .dstat { grid-column: 1; }
  .date-row .dbtn { grid-column: 2; justify-self: end; }
}

/* Songkick widget container */
.sk-container { width: 100%; min-height: 200px; }
.sk-container iframe,
.sk-container > div { width: 100% !important; max-width: 100% !important; }
/* strip SK's default white background so it sits on our black tour bg */
.sk-container .artist-events-list { background: transparent !important; }
/* give it a subtle top border to anchor it visually */
.sk-wrap { border-top: 1px solid var(--line); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--paper); min-height: 100vh; display:flex; flex-direction:column; justify-content:center; }
.contact__body { padding-top: calc(var(--nav-h) + clamp(60px,10vw,120px));
  padding-bottom: clamp(80px,12vw,140px); }

.contact__big { font-size: clamp(48px,9vw,130px); font-weight:800; letter-spacing:-.045em;
  line-height:.88; margin-top: clamp(20px,3vw,32px); margin-bottom: clamp(36px,5vw,64px); }

.contact__email-block { display:flex; flex-direction:column; gap:10px;
  padding-top: clamp(24px,3vw,36px); border-top: 1px solid var(--line); max-width: 640px; }
.contact__email-link { font-size: clamp(18px,2.4vw,32px); font-weight:700; letter-spacing:-.02em;
  color: var(--ink); transition: color .25s var(--ease); }
.contact__email-link:hover { color: var(--accent); }

/* footer */
.foot { padding: 40px var(--pad); display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap;
  border-top:1px solid var(--line); color: var(--mut); }
.foot img { height: 14px; opacity:.8; }

/* utility */
.fade-link { color: var(--mut); transition: color .3s var(--ease); }
.fade-link:hover { color: var(--ink); }
.u-mut { color: var(--mut); }
.maxw-copy { max-width: 52ch; }

/* ---------- accent modes (tweak) ---------- */
[data-accent="mono"]   { --accent: #0a0a0a; --accent-ink: #f5f4f1; }
[data-accent="orange"] { --accent: oklch(0.66 0.20 40); --accent-ink: #0a0a0a; }
[data-accent="warm"]   { --accent: oklch(0.70 0.035 75); --accent-ink: #0a0a0a; }

/* on dark surfaces, mono accent flips to light so it stays visible */
[data-accent="mono"] .music,
[data-accent="mono"] .tour,
[data-accent="mono"] .hero--wordmark,
[data-accent="mono"] .hero--photo,
[data-accent="mono"] .ticker .on { --accent: #f5f4f1; --accent-ink: #0a0a0a; }

/* ============================================================
   MOBILE-SPECIFIC OVERRIDES
   ============================================================ */

/* 1. Mobile pill — compress links slightly so logo fits when scrolled */
@media (max-width: 760px) {
  .nav--pill .nav__link {
    padding: 7px 6px;
    font-size: 10.5px;
  }
}

/* 3. Hero POLY glass — fade out as user scrolls (JS sets opacity via inline style) */
.hero--photo .poly-scroll-fade {
  transition: opacity 0.15s linear;
  will-change: opacity;
}

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

/* ============================================================
   DEVICE SCALER — mobile / tablet / desktop
   Uses native @media queries (no JS dependency) for instant layout.
   data-device attribute from index.html script is a bonus for JS hooks.
   ============================================================ */

/* --- MOBILE: max 767px --- */
@media (max-width: 767px) {
  :root {
    --nav-h: 56px;
    --pad: 18px;
  }

  /* Stack POLY heading + CTA buttons vertically */
  .hero--photo .h-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 20px !important;
  }
  .hero--photo .h-row > div:last-child,
  .h-row__btns {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    padding-bottom: 0 !important;
  }
  .hero--photo .h-row .btn {
    flex: 1 !important;
    justify-content: center !important;
    padding: 16px 20px !important;
    font-size: 12px !important;
  }

  /* Larger tap targets */
  .btn {
    padding: 14px 22px;
    font-size: 12px;
  }

  /* POLY text size */
  .hero--photo .h-word {
    font-size: clamp(72px, 22vw, 110px);
  }
}

/* --- TABLET: 768px–1099px --- */
@media (min-width: 768px) and (max-width: 1099px) {
  :root {
    --nav-h: 60px;
    --pad: clamp(24px, 4vw, 48px);
  }

  .h-row { gap: 20px; }

  .hero--photo .h-word {
    font-size: clamp(90px, 16vw, 140px);
  }
}

/* --- DESKTOP: 1100px+ --- */
@media (min-width: 1100px) {
  :root {
    --nav-h: 64px;
    --pad: clamp(32px, 5vw, 72px);
  }
}
