/* SMT Sunmoon Trio theme. Colors sampled from JP's box and logo files (docs/research-notes.md). */

@property --line { syntax: '<color>'; inherits: true; initial-value: #FDCD05; }
@property --line-deep { syntax: '<color>'; inherits: true; initial-value: #F89204; }
@property --line-mid { syntax: '<color>'; inherits: true; initial-value: #F6B705; }
@property --line-light { syntax: '<color>'; inherits: true; initial-value: #FDDB25; }

:root {
  --sun-yellow: #FDCD05;
  --sun-gold: #F6B705;
  --sun-orange: #F89204;
  --heart-red: #F3152E;
  --heart-deep: #8C0414;
  --heart-blush: #FB5360;
  --moon-navy: #022E86;
  --moon-pill: #021949;
  --moon-blue: #0071FD;
  --moon-mid: #1C9AFD;
  --moon-sky: #56B9FC;
  --cream: #F6E1C8;
  --paper: #F5EFE6;
  --ink: #0E1A47;
  --ink-soft: rgba(14, 26, 71, 0.72);
  /* Real factory samples (Nov 2026). The darker star tone is for text on cream (contrast). */
  --gummy-star: #E9C23A;
  --gummy-star-text: #946F00;
  --gummy-round: #1E6DB0;
  --gummy-heart: #EE1C2E;

  --font: 'Outfit', ui-sans-serif, system-ui, sans-serif;
  --mono: 'DM Mono', ui-monospace, 'SFMono-Regular', monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 72px;
  --glass: rgba(245, 239, 230, 0.68);
  --glass-strong: rgba(245, 239, 230, 0.86);
  --glass-line: rgba(14, 26, 71, 0.16);
  --radius: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

:root,
[data-line='wellness'] {
  --line: #FDCD05;
  --line-deep: #F89204;
  --line-mid: #F6B705;
  --line-light: #FDDB25;
  --on-line: #0E1A47;
}
[data-line='beauty'] {
  --line: #F3152E;
  --line-deep: #8C0414;
  --line-mid: #D90E26;
  --line-light: #FB5360;
  --on-line: #FFFFFF;
}
[data-line='grooming'] {
  --line: #0071FD;
  --line-deep: #022E86;
  --line-mid: #1C9AFD;
  --line-light: #56B9FC;
  --on-line: #FFFFFF;
}
[data-line='strip'] {
  --line: #0E1A47;
  --line-deep: #021949;
  --line-mid: #0071FD;
  --line-light: #56B9FC;
  --on-line: #FFFFFF;
}
:root { transition: --line 0.7s var(--ease), --line-deep 0.7s var(--ease), --line-mid 0.7s var(--ease), --line-light 0.7s var(--ease); }

/* Base */
*, *::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(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, canvas { display: block; max-width: 100%; }
/* Panels start slightly off to the side before they slide in; clip (not hidden) keeps sticky stages working. */
main { overflow-x: clip; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--moon-blue); outline-offset: 3px; border-radius: 6px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.smt-skip {
  position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 16px;
  background: var(--moon-pill); color: #fff; border-radius: 999px; transform: translateY(-200%);
}
.smt-skip:focus { transform: none; }

/* Shared type and controls */
.smt-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.smt-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--moon-pill); color: #fff;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
}
.smt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.smt-chips > li {
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid currentColor; font-size: 13.5px; line-height: 1.2;
  opacity: 0.88;
}
.smt-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border: 0; border-radius: 999px;
  background: var(--moon-pill); color: #fff; text-decoration: none;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.smt-button:hover { background: var(--moon-navy); }
.smt-button:active { transform: scale(0.98); }
.smt-button--line { background: var(--line); color: var(--on-line); }
.smt-button--line:hover { background: var(--line-deep); color: #fff; }
.smt-button[disabled] { opacity: 0.5; cursor: not-allowed; }
.smt-link { font-weight: 600; text-underline-offset: 4px; }

/* Gummy icons (same shapes as the 3D strip) */
.smt-gummy { width: 30px; height: 30px; flex: none; }
.smt-gummy--morning { color: var(--gummy-star); }
.smt-gummy--afternoon { color: var(--gummy-round); }
.smt-gummy--night { color: var(--gummy-heart); }

/* Chrome: header, viewfinder corners, progress */
.smt-header {
  position: fixed; inset: 0 0 auto; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px var(--gutter);
  pointer-events: none;
}
.smt-header > * { pointer-events: auto; }
.smt-monogram {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--glass); color: var(--ink);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid var(--glass-line);
}
.smt-monogram .smt-logo { height: 18px; width: auto; }
.smt-nav {
  position: relative; display: flex; align-items: center; gap: 2px;
  height: 44px; padding: 0 8px; border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid var(--glass-line);
}
.smt-nav a {
  position: relative; padding: 8px 12px; border-radius: 999px;
  font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink-soft);
  transition: color 0.25s var(--ease);
}
.smt-nav a:hover, .smt-nav a.is-active { color: var(--ink); }
.smt-nav__underline {
  position: absolute; left: 0; bottom: 6px; height: 3px; width: 0; border-radius: 3px;
  background: var(--line-deep); opacity: 0; pointer-events: none;
}
.smt-nav__cart { margin-left: 6px; font-weight: 600 !important; color: var(--ink) !important; }
.smt-nav-toggle {
  display: none; height: 44px; padding: 0 18px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.smt-corner {
  position: fixed; z-index: 39; width: 22px; height: 22px; pointer-events: none;
  border: 0 solid #fff; mix-blend-mode: difference;
}
.smt-corner--tl { top: 12px; left: 12px; border-top-width: 2px; border-left-width: 2px; }
.smt-corner--tr { top: 12px; right: 12px; border-top-width: 2px; border-right-width: 2px; }
.smt-corner--bl { bottom: 12px; left: 12px; border-bottom-width: 2px; border-left-width: 2px; }
.smt-corner--br { bottom: 12px; right: 12px; border-bottom-width: 2px; border-right-width: 2px; }
.smt-progress {
  position: fixed; inset: 0 0 auto; z-index: 41; height: 3px; pointer-events: none;
  background: linear-gradient(90deg, var(--line-deep), var(--line)) 0 0 / calc(var(--page-progress, 0) * 100%) 100% no-repeat;
}
.smt-filmline {
  position: fixed; z-index: 39; left: 20px; top: 33vh; height: 34vh; width: 2px; pointer-events: none;
  background: rgba(255, 255, 255, 0.28); border-radius: 2px; overflow: hidden;
}
.smt-filmline::after {
  content: ''; position: absolute; inset: 0; background: var(--line);
  transform-origin: top; transform: scaleY(var(--film-line, 0));
}

/* Glass panel */
.smt-panel {
  position: relative;
  width: min(420px, 100%);
  padding: 26px 26px 20px;
  border-radius: var(--radius);
  background: var(--glass);
  color: var(--ink);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  box-shadow: 0 30px 60px -30px rgba(2, 25, 73, 0.35);
}
.smt-panel__eyebrow { margin-bottom: 16px; }
.smt-panel__head { display: flex; align-items: flex-start; gap: 12px; }
.smt-panel__head .smt-gummy { margin-top: 4px; }
.smt-panel__title { font-size: clamp(30px, 3.3vw, 46px); line-height: 1; letter-spacing: -0.03em; font-weight: 700; }
.smt-panel__text { margin-top: 14px; font-size: 17px; color: var(--ink-soft); max-width: 36ch; }
.smt-panel__media { margin: 18px 0 0; border-radius: 14px; overflow: hidden; background: var(--cream); }
.smt-panel__media img { width: 100%; height: auto; }
.smt-panel__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.smt-panel__foot {
  display: flex; align-items: center; gap: 8px;
  margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--glass-line);
  color: var(--ink-soft);
}
.smt-panel__foot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--line-deep); }
.smt-spec { margin: 18px 0 0; border-top: 1px solid var(--glass-line); }
.smt-spec > div {
  display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; align-items: baseline;
  padding: 9px 0; border-bottom: 1px solid var(--glass-line);
}
.smt-spec dt { color: var(--ink-soft); }
.smt-spec dd { margin: 0; font-size: 15px; }
.smt-spec dd:empty::after { content: 'To be confirmed'; color: var(--ink-soft); font-style: italic; }

/* Scroll film */
.smt-film { position: relative; display: block; }
.smt-film__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--line-deep); }
.smt-film__media, .smt-film__media picture { position: absolute; inset: 0; }
.smt-film__media img, .smt-film__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--focus, 50% 50%);
}
.smt-film__video { opacity: 0; transition: opacity 0.3s linear; }
.smt-film__stage[data-painted] .smt-film__video { opacity: 1; }
.smt-film__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(2, 25, 73, 0.28), rgba(2, 25, 73, 0) 22%, rgba(2, 25, 73, 0) 72%, rgba(2, 25, 73, 0.3));
}
.smt-film__chapters { position: relative; z-index: 2; margin-top: -100vh; margin-top: -100svh; }
.smt-chapter {
  display: flex; align-items: center;
  min-height: calc(var(--span, 100) * 1svh);
  padding: 14svh var(--gutter);
}
.smt-chapter[data-side='right'] { justify-content: flex-end; }
.smt-chapter[data-side='center'] { justify-content: center; }
.smt-film.is-static .smt-chapter { min-height: auto; padding-block: 18svh; }

/* Callout tags on the film stage */
.smt-callouts { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.smt-callout { position: absolute; left: var(--x); top: var(--y); }
.smt-callout__dot {
  position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 3px var(--line);
  transform: scale(0); transition: transform 0.4s var(--ease);
}
.smt-callout__dot::after {
  content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid #fff; opacity: 0;
}
.smt-callout__line { position: absolute; top: 0; width: 84px; height: 2px; overflow: visible; }
.smt-callout__line line {
  stroke: #fff; stroke-width: 1.5; stroke-dasharray: 84; stroke-dashoffset: 84;
  transition: stroke-dashoffset 0.5s var(--ease) 0.15s;
}
.smt-callout__tag {
  position: absolute; top: -15px; white-space: nowrap;
  padding: 7px 11px; border-radius: 999px;
  background: var(--glass-strong); color: var(--ink); border: 1px solid var(--glass-line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transform: translateX(var(--nudge, -8px)); transition: opacity 0.35s var(--ease) 0.45s, transform 0.35s var(--ease) 0.45s;
}
.smt-callout[data-side='right'] .smt-callout__line { left: 6px; }
.smt-callout[data-side='right'] .smt-callout__tag { left: 94px; }
.smt-callout[data-side='left'] .smt-callout__line { right: 6px; transform: scaleX(-1); }
.smt-callout[data-side='left'] .smt-callout__tag { right: 94px; --nudge: 8px; }
.is-on .smt-callout__dot { transform: scale(1); }
.is-on .smt-callout__dot::after { animation: smt-pulse 1.2s var(--ease) 0.3s 1; }
.is-on .smt-callout__line line { stroke-dashoffset: 0; }
.is-on .smt-callout__tag { opacity: 1; transform: none; }
@keyframes smt-pulse { 0% { opacity: 0.9; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }

/* Wave art */
.smt-waves { width: 100%; height: 100%; }
.smt-waves--line .w-base, .smt-waves--line .w-main { fill: var(--line); stroke: var(--line); }
.smt-waves--line .w-deep { fill: var(--line-deep); stroke: var(--line-deep); }
.smt-waves--line .w-mid { fill: var(--line-mid); stroke: var(--line-mid); }
.smt-waves--line .w-light { fill: var(--line-light); stroke: var(--line-light); }
.smt-waves path { stroke-width: 4; stroke-linejoin: round; will-change: transform; }

/* Opening */
.smt-intro { position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; color: #fff; background: var(--moon-blue); }
.smt-intro__art { position: absolute; inset: -4% -2% -10%; }
.smt-intro__copy {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  padding: calc(var(--header-h) + 20px) var(--gutter) 90px; text-align: center;
}
.smt-intro__lockup { width: min(68vw, 640px); filter: drop-shadow(0 10px 40px rgba(2, 25, 73, 0.25)); }
.smt-intro__lockup .smt-logo { width: 100%; height: auto; color: #fff; }
.smt-intro__title { font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; letter-spacing: -0.01em; text-shadow: 0 2px 24px rgba(2, 25, 73, 0.35); }
.smt-intro .smt-chips { justify-content: center; margin: 0; }
.smt-intro .smt-chips > li { background: rgba(2, 25, 73, 0.32); border-color: rgba(255, 255, 255, 0.55); opacity: 1; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.smt-intro__foot { position: absolute; left: var(--gutter); bottom: 26px; z-index: 1; padding-left: 26px; }
.smt-intro__hint {
  position: absolute; left: 50%; bottom: 22px; z-index: 1; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; font-weight: 500;
}
.smt-intro__hint::after {
  content: ''; width: 1.5px; height: 34px; background: linear-gradient(#fff, rgba(255, 255, 255, 0));
  transform-origin: top; animation: smt-hint 2.2s var(--ease) infinite;
}
@keyframes smt-hint { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Wave wipe between films */
/* Net layout height is zero: equal negative margins center the wipe on the seam between two films. */
.smt-wipe {
  position: relative; z-index: 5; pointer-events: none; display: none;
  height: calc(100svh + var(--wipe-length, 160svh));
  margin: calc((100svh + var(--wipe-length, 160svh)) / -2) 0;
}
.js .smt-wipe { display: block; }
.smt-wipe__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.smt-wipe__layer { position: absolute; left: 0; right: 0; bottom: 0; height: 118%; }
.smt-wipe__layer svg { width: 100%; height: 100%; }
.smt-wipe__curtain--light { fill: var(--line-light); }
.smt-wipe__curtain--mid { fill: var(--line-mid); }
.smt-wipe__curtain--deep { fill: var(--line-deep); }
.smt-wipe__layer--art { height: 100%; }
.smt-wipe__name {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  font-size: clamp(52px, 10vw, 150px); font-weight: 800; letter-spacing: -0.04em; line-height: 0.9;
  color: var(--on-line); padding: var(--gutter);
}

/* The Strip (3D) */
.smt-strip { position: relative; display: block; height: 420svh; background: var(--paper); }
.smt-strip__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.smt-strip__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.smt-strip__fallback { position: absolute; inset: 12svh 0 8svh; display: none; place-items: center; }
.smt-strip__fallback img { max-height: 100%; width: auto; }
.smt-strip.is-fallback .smt-strip__fallback { display: grid; }
.smt-strip.is-fallback .smt-strip__canvas { display: none; }
.smt-strip__copy {
  position: absolute; z-index: 1; left: var(--gutter); top: 50%; transform: translateY(-50%);
  width: min(420px, 42vw);
}
.smt-strip__intro { font-size: 17px; color: var(--ink-soft); max-width: 32ch; margin-top: 18px; }
.smt-strip__words { position: relative; height: 1.1em; font-size: clamp(56px, 8vw, 120px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.smt-strip__word {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  opacity: 0; transform: translateY(24px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.smt-strip__word:nth-child(1) { color: var(--ink); }
.smt-strip__word:nth-child(2) { color: var(--gummy-star-text); }
.smt-strip__word:nth-child(3) { color: var(--gummy-round); }
.smt-strip__word:nth-child(4) { color: var(--gummy-heart); }
.smt-strip[data-step='0'] .smt-strip__word:nth-child(1),
.smt-strip[data-step='1'] .smt-strip__word:nth-child(2),
.smt-strip[data-step='2'] .smt-strip__word:nth-child(3),
.smt-strip[data-step='3'] .smt-strip__word:nth-child(4) { opacity: 1; transform: none; }
.smt-strip__note { position: absolute; right: var(--gutter); bottom: 34px; z-index: 1; max-width: 300px; text-align: right; color: var(--ink-soft); font-size: 14px; }
.smt-strip.is-fallback, .reduce-motion .smt-strip { height: auto; }
.smt-strip.is-fallback .smt-strip__stage { position: relative; height: auto; min-height: 100svh; display: flex; align-items: center; }
.smt-strip.is-fallback .smt-strip__fallback { inset: 10svh var(--gutter) 8svh 50%; }
.smt-strip.is-fallback .smt-strip__copy { position: relative; top: auto; transform: none; padding: 16svh 0; }
.smt-strip.is-fallback .smt-strip__words { height: auto; }
.smt-strip.is-fallback .smt-strip__word { position: static; display: block; opacity: 1; transform: none; }

/* Boxes */
.smt-boxes { position: relative; padding: calc(var(--header-h) + 8svh) var(--gutter) 12svh; background: var(--paper); }
.smt-boxes__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 36px; }
.smt-boxes__title { font-size: clamp(40px, 6vw, 84px); letter-spacing: -0.04em; }
.smt-boxes__intro { max-width: 38ch; color: var(--ink-soft); }
.smt-boxes__list { margin: 0; padding: 0; list-style: none; border-top: 1.5px solid var(--ink); }
.smt-box {
  display: grid; grid-template-columns: minmax(140px, 260px) 1fr auto; align-items: center; gap: clamp(16px, 3vw, 40px);
  padding: 22px 0; border-bottom: 1px solid rgba(14, 26, 71, 0.2);
}
.smt-box__image { aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--cream); }
.smt-box__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.smt-box:hover .smt-box__image img { transform: scale(1.04); }
.smt-box__name { font-size: clamp(26px, 3vw, 40px); letter-spacing: -0.03em; }
.smt-box__swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 10px; vertical-align: 0.12em; background: var(--line); }
.smt-box__meta { margin-top: 10px; color: var(--ink-soft); }
.smt-box__tagline { margin-top: 6px; font-size: 15px; }

/* Closing */
.smt-closing { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; display: flex; align-items: center; padding: calc(var(--header-h) + 6svh) var(--gutter) 10svh; color: var(--ink); }
.smt-closing__art { position: absolute; inset: 0; overflow: hidden; }
/* Night ending: frame the lower-right moon waves of the art. */
.smt-closing__art .smt-waves { transform: scale(1.9); transform-origin: 100% 100%; }
.smt-closing .smt-panel { width: min(560px, 100%); background: var(--glass-strong); }
.smt-closing__title { font-size: clamp(44px, 6vw, 80px); letter-spacing: -0.045em; line-height: 0.95; }
.smt-closing__contact { margin-top: 18px; font-size: 15px; }
.smt-closing__legal { margin-top: 6px; font-size: 13px; color: var(--ink-soft); }

/* Forms */
.smt-form { display: grid; gap: 14px; margin-top: 22px; }
.smt-field { display: grid; gap: 6px; }
.smt-field label, .smt-fieldset legend { font-size: 14px; font-weight: 600; }
.smt-input {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px;
  border: 1.5px solid rgba(14, 26, 71, 0.28); background: rgba(255, 255, 255, 0.72);
  font-size: 16px;
}
.smt-input:focus { border-color: var(--moon-blue); outline: none; box-shadow: 0 0 0 3px rgba(0, 113, 253, 0.25); }
textarea.smt-input { min-height: 140px; resize: vertical; }
.smt-fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; }
.smt-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.smt-choice { position: relative; }
.smt-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.smt-choice span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px;
  border-radius: 999px; border: 1.5px solid rgba(14, 26, 71, 0.28); font-size: 14.5px; font-weight: 500;
  transition: background-color 0.2s, border-color 0.2s;
}
.smt-choice span::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--swatch, var(--line)); }
.smt-choice input:checked + span { background: var(--moon-pill); border-color: var(--moon-pill); color: #fff; }
.smt-choice input:focus-visible + span { outline: 3px solid var(--moon-blue); outline-offset: 2px; }
.smt-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.smt-consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--moon-pill); }
.smt-form__message { padding: 12px 16px; border-radius: 14px; font-size: 15px; }
.smt-form__message--ok { background: rgba(0, 113, 253, 0.12); }
.smt-form__message--error { background: rgba(243, 21, 46, 0.12); }

/* Product page */
.smt-product { position: relative; padding: calc(var(--header-h) + 6svh) var(--gutter) 12svh; background: var(--paper); }
.smt-product__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; max-width: 1240px; margin: 0 auto; }
.smt-product__media { position: sticky; top: calc(var(--header-h) + 20px); border-radius: 24px; overflow: hidden; background: var(--cream); }
.smt-product__media img { width: 100%; height: auto; }
.smt-product__title { font-size: clamp(38px, 4.6vw, 64px); letter-spacing: -0.04em; margin-top: 16px; }
.smt-product__tagline { margin-top: 12px; font-size: 15px; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-soft); }
.smt-product__price { margin-top: 18px; font-size: 26px; font-weight: 600; }
.smt-product__size { margin-top: 22px; padding: 16px 18px; border-radius: 16px; border: 1.5px solid var(--ink); display: grid; gap: 4px; }
.smt-product__size strong { font-size: 17px; }
.smt-product__size span { color: var(--ink-soft); font-size: 15px; }
.smt-product__buy { margin-top: 22px; }
.smt-product__section { margin-top: 36px; }
.smt-product__section h2 { font-size: 24px; letter-spacing: -0.02em; margin-bottom: 12px; }
.smt-product__note { margin-top: 28px; padding: 16px 18px; border-radius: 16px; background: rgba(14, 26, 71, 0.06); font-size: 14.5px; color: var(--ink-soft); }
.smt-tabs__list { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(14, 26, 71, 0.07); width: fit-content; max-width: 100%; overflow-x: auto; }
.smt-tabs__tab {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  border: 0; border-radius: 999px; background: transparent; font-weight: 600; font-size: 15px; cursor: pointer;
}
.smt-tabs__tab .smt-gummy { width: 18px; height: 18px; }
.smt-tabs__tab[aria-selected='true'] { background: #fff; box-shadow: 0 4px 14px -6px rgba(14, 26, 71, 0.3); }
.smt-tabs__panel { padding-top: 6px; }
.smt-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: step; }
.smt-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: start; }
.smt-steps li .smt-gummy { width: 26px; height: 26px; }

/* Text pages (about, FAQ, contact, policies, cart, search, 404) */
.smt-page { position: relative; min-height: 100svh; padding: calc(var(--header-h) + 8svh) var(--gutter) 12svh; overflow: hidden; }
.smt-page__art { position: absolute; inset: 0 0 auto; height: 56svh; }
.smt-page__art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(245, 239, 230, 0) 40%, var(--paper)); }
.smt-page .smt-panel { position: relative; width: min(780px, 100%); margin: 0 auto; padding: clamp(24px, 4vw, 48px); background: var(--glass-strong); }
.smt-page__title { font-size: clamp(38px, 5vw, 66px); letter-spacing: -0.04em; }
.smt-rte { margin-top: 24px; font-size: 17px; line-height: 1.65; }
.smt-rte > * + * { margin-top: 1em; }
.smt-rte h2 { font-size: 26px; margin-top: 1.6em; }
.smt-rte h3 { font-size: 20px; margin-top: 1.4em; }
.smt-rte a { font-weight: 600; text-underline-offset: 3px; }
.smt-faq { margin-top: 24px; border-top: 1px solid var(--glass-line); }
.smt-faq details { border-bottom: 1px solid var(--glass-line); }
.smt-faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 18px; font-weight: 600; cursor: pointer; list-style: none; }
.smt-faq summary::-webkit-details-marker { display: none; }
.smt-faq summary::after { content: '+'; font-weight: 400; font-size: 24px; line-height: 1; transition: transform 0.3s var(--ease); }
.smt-faq details[open] summary::after { transform: rotate(45deg); }
.smt-faq__answer { padding: 0 0 20px; color: var(--ink-soft); }
.shopify-policy__container { max-width: 780px !important; margin: 0 auto; padding: calc(var(--header-h) + 8svh) var(--gutter) 12svh !important; }
.shopify-policy__title h1 { font-size: clamp(36px, 5vw, 60px); letter-spacing: -0.04em; margin-bottom: 24px; }
.shopify-policy__body { font-size: 17px; line-height: 1.65; }
.smt-cart__line { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--glass-line); }
.smt-cart__line img { border-radius: 12px; }
.smt-cart__totals { display: flex; justify-content: space-between; margin-top: 22px; font-size: 20px; font-weight: 600; }

/* Footer */
.smt-footer { position: relative; z-index: 6; padding: 48px var(--gutter) 36px; background: var(--moon-pill); color: #fff; }
.smt-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.smt-footer .smt-logo { height: 56px; width: auto; }
.smt-footer__links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.smt-footer__links a { text-decoration: none; opacity: 0.85; }
.smt-footer__links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.smt-footer__legal { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.2); font-size: 13px; opacity: 0.75; display: grid; gap: 6px; }

/* Small screens: panels become bottom sheets over the film */
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .smt-nav-toggle { display: inline-flex; align-items: center; }
  .smt-nav {
    position: fixed; top: 72px; right: 12px; left: 12px; height: auto; padding: 10px;
    flex-direction: column; align-items: stretch; border-radius: 22px; background: var(--glass-strong);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav-open .smt-nav { opacity: 1; visibility: visible; transform: none; }
  .smt-nav a { padding: 14px 16px; font-size: 17px; }
  .smt-nav__underline { display: none; }
  .smt-nav a.is-active { background: rgba(14, 26, 71, 0.07); }
  .smt-filmline { left: 10px; }
  .smt-chapter, .smt-chapter[data-side='right'] { justify-content: center; align-items: flex-end; padding: 50svh 12px 5svh; }
  .smt-chapter .smt-panel { width: 100%; padding: 20px 20px 16px; border-radius: 24px; }
  .smt-panel__title { font-size: 30px; }
  .smt-panel__text { font-size: 16px; }
  .smt-callouts { display: none; }
  .smt-strip__copy { left: 0; right: 0; top: auto; bottom: 7svh; transform: none; width: auto; padding: 0 var(--gutter); }
  .smt-strip__note { display: none; }
  .smt-box { grid-template-columns: 112px 1fr; }
  .smt-box__action { grid-column: 1 / -1; }
  .smt-box__action .smt-button { width: 100%; }
  .smt-product__grid { grid-template-columns: 1fr; }
  .smt-product__media { position: relative; top: 0; }
}

/* Reduced motion: no smooth scroll, no film fetches, full story in normal flow */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .smt-wipe, .smt-wipe { display: none; }
  .smt-callouts { display: none; }
}

/* Small additions */
.smt-product__section-title { font-size: 20px; letter-spacing: -0.01em; }
.smt-password__logo { width: min(360px, 70vw); height: auto; color: var(--ink); }
.template-password .smt-closing .smt-panel { margin: 0 auto; }
