/* =========================================================
   GOCA — Browform product page concept
   ========================================================= */

:root {
  --cream: #f2ece4;
  --paper: #faf7f2;
  --ink: #2a1d19;
  --ink-2: #5b4c45;
  --muted: #8c7f76;
  --maroon: #8a2f2b;
  --line: rgba(42, 29, 25, 0.14);
  --dark: #211613;
  --shade: #8f6553;
  --shade-bg: #eadfd6;
  --gutter: clamp(16px, 3vw, 44px);
  --sans: "Jost", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }

.kicker {
  margin: 0 0 1.4rem;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker--light { color: rgba(242, 236, 228, 0.55); }

.h2 {
  margin: 0;
  font-weight: 300;
  font-size: clamp(44px, 7.4vw, 128px);
  line-height: 0.92;
  letter-spacing: -0.035em;
}
.h2 em { letter-spacing: -0.01em; }

/* split text helpers */
.split .ch, .split-lines .ln { display: inline-block; will-change: transform; }
.split-lines .ln-wrap { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 28px;
  border-radius: 999px;
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  overflow: hidden;
  transition: transform 0.5s var(--ease);
}
.btn span { position: relative; z-index: 1; transition: transform 0.5s var(--ease); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark::before {
  content: ""; position: absolute; inset: 0;
  background: var(--maroon);
  transform: translateY(101%);
  border-radius: 999px;
  transition: transform 0.6s var(--ease);
}
.btn--dark:hover::before { transform: translateY(0); }
.btn--dark.is-added::before { transform: translateY(0); background: var(--shade); }
.btn--wide { flex: 1; }
.btn--sm { height: 42px; padding: 0 20px; font-size: 11px; }
.btn:active { transform: scale(0.97); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.loader__mark { font-weight: 200; font-size: clamp(64px, 12vw, 160px); letter-spacing: 0.18em; margin-right: -0.18em; line-height: 1; }
.loader__sub { margin-top: 10px; font-size: 12px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--muted); }
.loader__count { position: absolute; left: var(--gutter); bottom: 28px; font-size: 13px; letter-spacing: 0.2em; color: var(--muted); font-variant-numeric: tabular-nums; }
.loader__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); }
.loader__bar i { display: block; height: 100%; width: 0; background: var(--ink); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  mix-blend-mode: difference;
  color: #f4eee7;
}
.nav__logo { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.nav__mark { font-weight: 300; font-size: 24px; letter-spacing: 0.22em; margin-right: -0.22em; }
.nav__sub { font-size: 7.5px; letter-spacing: 0.32em; text-transform: uppercase; margin-top: 4px; }
.nav__links { display: flex; gap: 34px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.nav__links a { position: relative; opacity: 0.8; transition: opacity 0.3s; }
.nav__links a:hover, .nav__links a.is-active { opacity: 1; }
.nav__links a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; }
.nav__cart { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.nav__right { display: flex; align-items: center; gap: 18px; }
.nav__burger { display: none; position: relative; width: 28px; height: 28px; }
.nav__burger i { position: absolute; left: 3px; right: 3px; height: 1.5px; background: currentColor; transition: transform 0.5s var(--ease), top 0.5s var(--ease); }
.nav__burger i:first-child { top: 10px; }
.nav__burger i:last-child { top: 17px; }
.menu-open .nav__burger i:first-child { top: 13.5px; transform: rotate(45deg); }
.menu-open .nav__burger i:last-child { top: 13.5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--dark); color: var(--cream);
  padding: 120px var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.9s var(--ease);
  pointer-events: none;
}
.menu-open .menu { clip-path: inset(0 0 0 0); pointer-events: auto; }
.menu__links { display: flex; flex-direction: column; gap: 6px; }
.menu__links a {
  display: flex; align-items: baseline; gap: 14px;
  font-weight: 300; font-size: clamp(44px, 13vw, 72px); line-height: 1.05; letter-spacing: -0.03em;
  transform: translateY(40px); opacity: 0;
  transition: transform 0.9s var(--ease), opacity 0.6s;
}
.menu__links a small { font-size: 11px; letter-spacing: 0.2em; color: rgba(242, 236, 228, 0.45); }
.menu__links a.is-active { font-family: var(--serif); font-style: italic; color: #d9b8a6; }
.menu-open .menu__links a { transform: none; opacity: 1; }
.menu-open .menu__links a:nth-child(2) { transition-delay: 0.05s; }
.menu-open .menu__links a:nth-child(3) { transition-delay: 0.1s; }
.menu-open .menu__links a:nth-child(4) { transition-delay: 0.15s; }
.menu-open .menu__links a:nth-child(5) { transition-delay: 0.2s; }
.menu__foot { display: flex; gap: 24px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(242, 236, 228, 0.6); }
.menu-open .buybar { transform: translateY(140%); }
body.menu-open { overflow: hidden; }
.nav__cart.bump { animation: bump 0.6s var(--ease); }
@keyframes bump { 40% { transform: scale(1.25); } }

/* ---------- WebGL stage ---------- */
#gl {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh; height: 100lvh;
  z-index: 2;
  pointer-events: none;
}

/* callouts */
.callouts { position: fixed; inset: 0; z-index: 4; pointer-events: none; }
.callout { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, opacity; }
.callout__dot {
  position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--ink);
  box-shadow: 0 0 0 6px rgba(42, 29, 25, 0.06);
}
.callout__line { position: absolute; left: 0; bottom: 0; width: 1px; height: var(--len, 90px); background: var(--ink); transform-origin: bottom; transform: scaleY(var(--p, 0)); }
.callout__txt {
  position: absolute; left: 12px; bottom: calc(var(--len, 90px) - 8px);
  white-space: nowrap; font-size: 15px; font-weight: 400;
  clip-path: inset(0 calc(100% - var(--p, 0) * 100%) 0 0);
}
.callout__txt b { font-weight: 400; font-size: 11px; color: var(--muted); letter-spacing: 0.1em; margin-right: 6px; }
.callout__txt span { display: block; font-size: 12px; color: var(--muted); }
.callout--down .callout__line { bottom: auto; top: 0; transform-origin: top; }
.callout--down .callout__txt { bottom: auto; top: calc(var(--len, 90px) - 18px); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 560px;
  padding: 0 var(--gutter);
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 50% 52%, #fbf8f3 0%, rgba(251, 248, 243, 0) 70%),
    var(--cream);
}
.hero__meta {
  position: absolute; top: 96px; left: var(--gutter); right: var(--gutter);
  display: flex; gap: 22px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.hero__title {
  position: absolute; left: 0; right: 0; top: 50%;
  margin: 0; transform: translateY(-58%);
  z-index: 1;
  text-align: center;
  font-weight: 300;
  font-size: 19.4vw;
  line-height: 0.8;
  letter-spacing: -0.055em;
  white-space: nowrap;
  color: var(--ink);
}
.hero__title .ch { padding: 0 0.005em; }
.hero__tag {
  position: absolute; right: var(--gutter); top: calc(50% + 8.6vw);
  z-index: 3;
  font-size: clamp(15px, 1.6vw, 22px);
  letter-spacing: 0.02em; color: var(--ink-2);
  white-space: nowrap;
}
.hero__tag em { font-size: 1.35em; color: var(--maroon); }

.hero__bottom {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 34px;
  z-index: 3;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
}
.hero__lead { margin: 0; max-width: 340px; font-size: 17px; line-height: 1.45; color: var(--ink-2); }
.hero__lead em { color: var(--ink); font-size: 1.12em; }
.hero__buy {
  display: flex; align-items: center; gap: 22px;
  padding: 10px 10px 10px 22px;
  background: rgba(250, 247, 242, 0.7);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.hero__price { font-size: 20px; font-weight: 400; letter-spacing: 0.01em; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 40px; z-index: 3;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted);
}
.hero__scroll i { width: 1px; height: 38px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--ink); animation: drip 2s var(--ease) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* shade dots */
.shade-pick { display: flex; align-items: center; gap: 8px; }
.shade-dot {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 2px var(--paper), 0 0 0 1px transparent;
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.shade-dot:hover { transform: scale(1.1); }
.shade-dot.is-active { box-shadow: inset 0 0 0 3px var(--paper), 0 0 0 1px var(--ink); }
.shade-pick .shade-name { margin-left: 6px; font-size: 13px; color: var(--ink-2); min-width: 104px; }
.shade-pick--lg .shade-dot { width: 36px; height: 36px; }

/* ---------- EXPLODE ---------- */
.explode {
  position: relative;
  height: 100vh; height: 100svh;
  padding: 120px var(--gutter) 40px;
  background: var(--cream);
  overflow: hidden;
}
.explode__head { position: relative; z-index: 3; }
.explode__foot {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 40px; z-index: 3;
  display: flex; justify-content: flex-start; align-items: center; gap: 40px;
  border-top: 1px solid var(--line); padding-top: 22px;
}
.explode__foot p { margin: 0; max-width: 420px; color: var(--ink-2); }
.explode__count { display: flex; align-items: center; gap: 14px; }
.explode__count span { font-family: var(--serif); font-style: italic; font-size: 84px; line-height: 0.8; color: var(--maroon); }
.explode__count small { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); line-height: 1.4; }

/* ---------- STEPS ---------- */
.steps {
  position: relative;
  height: 100vh; height: 100svh;
  background: var(--paper);
  overflow: hidden;
}
.steps__inner { position: absolute; inset: 0; padding: 110px var(--gutter) 40px; }
.steps__progress { position: relative; z-index: 3; display: flex; gap: 8px; max-width: 360px; }
.steps__bar { flex: 1; height: 2px; background: var(--line); overflow: hidden; }
.steps__bar i { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.steps__text { position: absolute; z-index: 3; left: var(--gutter); top: 50%; transform: translateY(-50%); width: min(30vw, 400px); height: 340px; }
.step { position: absolute; inset: 0; pointer-events: none; }
.step__num { font-size: 13px; letter-spacing: 0.2em; color: var(--muted); margin-bottom: 18px; overflow: hidden; }
.step__title { margin: 0 0 22px; font-weight: 300; font-size: clamp(56px, 7.2vw, 120px); line-height: 0.9; letter-spacing: -0.04em; overflow: hidden; }
.step__title span, .step__num span { display: inline-block; transform: translateY(105%); transition: transform 0.9s var(--ease); }
.step__desc { margin: 0; max-width: 330px; color: var(--ink-2); opacity: 0; transform: translateY(14px); transition: opacity 0.6s, transform 0.8s var(--ease); }
.step.is-active .step__title span, .step.is-active .step__num span { transform: translateY(0); }
.step.is-active .step__desc { opacity: 1; transform: none; transition-delay: 0.15s; }
.step.is-out .step__title span, .step.is-out .step__num span { transform: translateY(-105%); }

.steps__canvas {
  position: absolute; z-index: 1;
  left: 33vw; right: 3vw; top: 50%;
  transform: translateY(-50%);
  aspect-ratio: 2.2 / 1;
}
#brow { width: 100%; height: 100%; display: block; }
.steps__hint {
  position: absolute; left: 0; right: 0; bottom: -54px; text-align: center;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted);
}

/* ---------- MARQUEE ---------- */
.marquee {
  position: relative; z-index: 3;
  background: var(--ink); color: var(--paper);
  overflow: hidden; white-space: nowrap;
  padding: 22px 0;
}
.marquee__track { display: inline-flex; align-items: center; gap: 44px; animation: marquee 26s linear infinite; padding-left: 44px; }
.marquee span { font-weight: 300; font-size: clamp(36px, 5vw, 72px); letter-spacing: -0.02em; line-height: 1; text-transform: uppercase; }
.marquee span em { text-transform: none; }
.marquee i { font-style: normal; font-size: 20px; color: var(--shade); filter: brightness(1.8); }
@keyframes marquee { to { transform: translateX(-33.333%); } }

/* ---------- SHADES ---------- */
.shades {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  padding: 120px var(--gutter) 120px;
  background: var(--shade-bg);
  transition: background-color 0.9s var(--ease);
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
}
.shades__head { position: relative; z-index: 3; }
.shades__row {
  position: relative; z-index: 3;
  margin-top: 34vh;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end;
}
.shades__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.shade-card {
  position: relative; text-align: left;
  padding: 18px 18px 20px;
  border-radius: 20px;
  background: rgba(250, 247, 242, 0.55);
  border: 1px solid rgba(42, 29, 25, 0.08);
  display: flex; flex-direction: column; gap: 4px;
  transition: background 0.4s, border-color 0.4s, transform 0.5s var(--ease);
}
.shade-card:hover { transform: translateY(-4px); }
.shade-card i { width: 44px; height: 44px; border-radius: 50%; background: var(--c); margin-bottom: 26px; box-shadow: inset 0 -8px 16px rgba(0, 0, 0, 0.25), inset 0 6px 10px rgba(255, 255, 255, 0.18); }
.shade-card__n { font-size: 11px; letter-spacing: 0.2em; color: var(--muted); }
.shade-card__name { font-size: 18px; }
.shade-card__hint { font-size: 12px; color: var(--muted); }
.shade-card.is-active { background: var(--paper); border-color: var(--ink); }
.shades__preview { position: relative; }
#browPreview { width: 100%; aspect-ratio: 2.2 / 1; display: block; }
.shades__label { margin-top: 6px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); text-align: center; }

/* ---------- STORY ---------- */
.story {
  position: relative; z-index: 3;
  background: var(--dark); color: var(--cream);
  padding: 140px var(--gutter) 120px;
  overflow: hidden;
}
.story__quote {
  margin: 0 0 120px; max-width: 1200px;
  font-weight: 300;
  font-size: clamp(36px, 5.6vw, 92px);
  line-height: 1; letter-spacing: -0.03em;
}
.story__quote em { color: #d9b8a6; }
.story__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  align-items: start;
}
.story__fig { margin: 0; will-change: transform; }
.story__fig .clip { overflow: hidden; border-radius: 6px; clip-path: inset(100% 0 0 0); }
.story__fig img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); }
.story__fig figcaption { margin-top: 14px; font-family: var(--serif); font-style: italic; font-size: 22px; color: rgba(242, 236, 228, 0.75); }
.story__fig--a { grid-column: 1 / span 4; aspect-ratio: 3 / 4; }
.story__fig--a .clip, .story__fig--c .clip { height: 100%; }
.story__fig--b { grid-column: 6 / span 3; margin-top: 180px; }
.story__fig--b .clip { aspect-ratio: 2 / 3; }
.story__fig--c { grid-column: 10 / span 3; margin-top: 40px; aspect-ratio: 3 / 4; }
.story__fig--d { grid-column: 2 / span 4; margin-top: -60px; }
.story__fig--d .clip { aspect-ratio: 4 / 5; }
.story__big {
  margin-top: 80px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 2vw;
  font-weight: 200; font-size: 12.5vw; line-height: 0.85; letter-spacing: -0.05em;
  color: rgba(242, 236, 228, 0.92);
  white-space: nowrap;
}
.story__big em { font-size: 0.7em; color: #d9b8a6; }

/* ---------- DETAILS ---------- */
.details {
  position: relative; z-index: 3;
  background: var(--paper);
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 6vw;
  padding: 130px var(--gutter) 120px;
}
.details__media { position: sticky; top: 100px; align-self: start; }
.details__stack { position: relative; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: #eee; }
.details__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 0.8s var(--ease), transform 1.4s var(--ease); }
.details__img.is-active { opacity: 1; transform: scale(1); }
.details__stack:hover .details__img.is-active { transform: scale(1.04); }
.details__thumbs { display: flex; gap: 10px; margin-top: 12px; }
.details__thumbs button { width: 74px; aspect-ratio: 1; border-radius: 6px; overflow: hidden; opacity: 0.5; outline: 1px solid transparent; outline-offset: 2px; transition: opacity 0.3s, outline-color 0.3s; }
.details__thumbs button.is-active { opacity: 1; outline-color: var(--ink); }
.details__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.details__title { margin: 0; font-weight: 300; font-size: clamp(56px, 6vw, 96px); letter-spacing: -0.04em; line-height: 0.95; }
.details__price { margin: 14px 0 22px; font-size: 26px; }
.details__price small { font-size: 12px; color: var(--muted); letter-spacing: 0.1em; margin-left: 8px; }
.details__lead { margin: 0 0 30px; max-width: 480px; color: var(--ink-2); font-size: 17px; }
.included { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.included li { padding: 18px 0 18px 0; font-size: 18px; display: flex; flex-direction: column; }
.included li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.included span { font-size: 11px; color: var(--muted); letter-spacing: 0.2em; margin-bottom: 6px; }
.included small { font-size: 12px; color: var(--muted); }
.details__label { font-size: 13px; color: var(--ink-2); margin-bottom: 12px; }
.details__shade { margin-bottom: 26px; }
.details__buy { display: flex; gap: 12px; margin-bottom: 34px; }
.qty { display: flex; align-items: center; height: 52px; border: 1px solid var(--line); border-radius: 999px; padding: 0 6px; }
.qty button { width: 40px; height: 40px; border-radius: 50%; font-size: 18px; transition: background 0.3s; }
.qty button:hover { background: var(--cream); }
.qty span { min-width: 26px; text-align: center; font-variant-numeric: tabular-nums; }

.acc details { border-top: 1px solid var(--line); }
.acc details:last-child { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 20px 0; display: flex; justify-content: space-between; font-size: 15px; letter-spacing: 0.04em; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-weight: 300; font-size: 22px; line-height: 1; transition: transform 0.4s var(--ease); }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc__body { padding: 0 0 22px; color: var(--ink-2); font-size: 15px; }
.acc__body p { margin: 0 0 12px; }
.acc__body dl { display: grid; grid-template-columns: 120px 1fr; gap: 8px 16px; margin: 0; }
.acc__body dt { color: var(--muted); }
.acc__body dd { margin: 0; }
.acc__body ol { margin: 0; padding-left: 18px; }
.acc__body li { margin-bottom: 6px; }

/* ---------- RELATED ---------- */
.related { position: relative; z-index: 3; background: var(--cream); padding: 110px var(--gutter) 120px; }
.related__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 34px; }
.related__head h3 { margin: 0; font-weight: 300; font-size: clamp(32px, 3.6vw, 56px); letter-spacing: -0.03em; }
.link { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.related__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card__img { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 8px; background: #eee; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__img img { transform: scale(1.06); }
.card__row { display: flex; justify-content: space-between; padding: 14px 2px; font-size: 15px; }
.card__row b { font-weight: 400; color: var(--ink-2); }

/* ---------- FOOTER ---------- */
.footer { position: relative; z-index: 3; background: var(--dark); color: var(--cream); padding: 90px var(--gutter) 28px; overflow: hidden; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 40px; }
.footer__cols div { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer__cols b { font-weight: 400; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(242, 236, 228, 0.5); margin-bottom: 8px; }
.footer__cols a { opacity: 0.85; }
.footer__cols a:hover { opacity: 1; }
.footer__mark { margin: 70px 0 20px; text-align: center; font-weight: 200; font-size: 25vw; line-height: 0.78; letter-spacing: 0.06em; margin-right: -0.06em; color: rgba(242, 236, 228, 0.95); }
.footer__base { display: flex; justify-content: space-between; font-size: 12px; color: rgba(242, 236, 228, 0.5); border-top: 1px solid rgba(242, 236, 228, 0.14); padding-top: 18px; }

/* ---------- BUY BAR ---------- */
.buybar {
  position: fixed; right: var(--gutter); bottom: 22px; z-index: 40;
  display: flex; align-items: center; gap: 16px;
  padding: 8px 8px 8px 8px;
  background: rgba(250, 247, 242, 0.82);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 20px 50px -20px rgba(42, 29, 25, 0.35);
  transform: translateY(140%);
  transition: transform 0.8s var(--ease);
}
.buybar.is-visible { transform: none; }
.buybar img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.buybar__info { display: flex; flex-direction: column; line-height: 1.25; font-size: 14px; }
.buybar__info b { font-weight: 500; }
.buybar__info > span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.buybar__swatch { width: 9px; height: 9px; border-radius: 50%; background: var(--shade); transition: background 0.5s; }
.buybar__price { font-size: 16px; padding: 0 4px 0 10px; }

/* toast */
.toast {
  position: fixed; left: 50%; top: 84px; z-index: 60;
  transform: translate(-50%, -20px); opacity: 0;
  padding: 12px 22px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-size: 13px; letter-spacing: 0.04em;
  pointer-events: none;
  transition: opacity 0.4s, transform 0.6s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .btn--wide { padding: 0 16px; letter-spacing: 0.1em; font-size: 12px; white-space: nowrap; }
  .related__grid {
    display: flex; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px;
    scrollbar-width: none;
  }
  .related__grid::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 68vw; scroll-snap-align: start; scroll-margin-left: var(--gutter); }
  .hero__bottom { flex-direction: column; align-items: stretch; gap: 16px; bottom: 24px; }
  .hero__lead { font-size: 15px; max-width: none; }
  .hero__buy { justify-content: space-between; gap: 10px; padding-left: 16px; }
  .hero__buy .shade-name { display: none; }
  .hero__price { font-size: 17px; }
  .hero__scroll { display: none; }
  .hero__buy .btn { height: 44px; padding: 0 18px; font-size: 11px; }

  .explode__foot { flex-direction: column; align-items: flex-start; gap: 16px; }
  .explode__foot p { display: none; }
  .callout { --len: 34px; }
  .callout__line { display: none; }
  .callout__txt, .callout--down .callout__txt { left: auto; right: 16px; bottom: -14px; top: auto; text-align: right; clip-path: inset(0 0 0 calc(100% - var(--p, 0) * 100%)); }
  .explode__count span { font-size: 56px; }

  .steps__text { top: 150px; transform: none; width: auto; right: var(--gutter); height: 220px; }
  .step__title { font-size: 56px; margin-bottom: 12px; }
  .step__desc { font-size: 15px; }
  .steps__canvas { left: 4vw; right: 4vw; top: auto; bottom: 18%; transform: none; }

  .shades__row { grid-template-columns: 1fr; margin-top: 30vh; }
  .shades__list { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .shade-card { padding: 12px; border-radius: 14px; }
  .shade-card i { width: 30px; height: 30px; margin-bottom: 14px; }
  .shade-card__name { font-size: 14px; }
  .shade-card__hint { display: none; }

  .story { padding-top: 100px; }
  .story__quote { margin-bottom: 70px; }
  .story__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .story__fig--a, .story__fig--b, .story__fig--c, .story__fig--d { grid-column: auto; margin-top: 0; }
  .story__fig--b, .story__fig--d { margin-top: 60px; }
  .story__fig figcaption { font-size: 17px; }

  .details { grid-template-columns: 1fr; gap: 40px; padding-top: 90px; }
  .details__media { position: relative; top: 0; }
  .included li { font-size: 15px; }
  .related__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }

  .buybar { left: 16px; right: 16px; bottom: 12px; justify-content: space-between; }
  .buybar__price { display: none; }
}
@media (max-width: 560px) {
  .hero__meta { display: none; }
}

/* ---------- Phone / portrait composition (matches the 3D poses in main.js) ---------- */
@media (max-aspect-ratio: 17/20) {
  :root { --bb: 92px; }

  .hero__title {
    top: 44%;
    transform: translateY(-50%);
    font-size: 33.5vw;
    line-height: 0.8;
    letter-spacing: -0.06em;
    white-space: normal;
  }
  .hero .hero__title .br { display: block; height: 0; }
  .hero__tag { top: calc(44% + 29vw); font-size: 15px; }

  .explode { padding-top: 104px; }
  .explode__foot { bottom: var(--bb); padding-top: 14px; }

  .steps__inner { padding-top: 96px; }
  .steps__text { top: 128px; }
  .steps__canvas { left: -2vw; right: 5vw; top: 71%; bottom: auto; transform: translateY(-50%); }
  .steps__hint { display: none; }

  .shades { padding-bottom: var(--bb); }
  .shades__row { margin-top: max(30vh, calc(74svh - 250px)); gap: 26px; }
  .shades__preview { margin-top: 8px; }
}

/* short phones (iPhone SE / mini): give the 3D more room */
@media (max-aspect-ratio: 17/20) and (max-height: 760px) {
  .explode__foot { display: none; }
  .explode { padding-top: 92px; }
  .kicker { margin-bottom: 0.9rem; }
  .shades { padding-top: 96px; }
}

/* ---------- Touch ---------- */
#hero, #shades { touch-action: pan-y; -webkit-user-select: none; user-select: none; }
html { -webkit-tap-highlight-color: transparent; }
.hero__title .br { display: none; }
.spin-hint { display: none; }
@media (hover: none) {
  .spin-hint {
    position: absolute; z-index: 3;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px 8px 10px;
    border-radius: 999px;
    background: rgba(250, 247, 242, 0.7);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-2);
    left: 50%; transform: translateX(-50%);
    top: 92px;
    white-space: nowrap;
    transition: opacity 0.6s, transform 0.6s var(--ease);
  }
  .spin-hint i { font-style: normal; font-size: 14px; display: inline-block; animation: nudge 2.4s var(--ease) infinite; }
  .spin-hint--shades { top: 64svh; }
  .has-spun .spin-hint { opacity: 0; transform: translate(-50%, -8px); pointer-events: none; }
  @keyframes nudge { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-200deg); } }
}
@media (hover: none) and (min-aspect-ratio: 17/20) {
  .spin-hint--shades { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}
