/* Insole Studio — site system.
   Layout: full-bleed story sections on a 980px reading column (1280 for media),
   sticky product nav, dark by default with a light theme. Accent = the cover green. */
@font-face { font-family: "Makena"; src: url("../assets/fonts/Makena.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --bg: #000; --bg-2: #0d0d0f; --tile: #161618; --tile-2: #1d1d20;
  --fg: #f5f5f7; --fg-2: #a1a1a6; --fg-3: #6e6e73; --rule: rgba(255,255,255,.12);
  --accent: #9fcc3b; --accent-text: #b5dc5c; --accent-ink: #0b1102;
  --nav: rgba(18,18,20,.72); --glass: rgba(29,29,32,.7); --panel: #0f0f11; --pill-bg: #232326;
  --shadow: 0 30px 60px -30px rgba(0,0,0,.6);
  --font: "Makena", "Inter", -apple-system, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --col: 980px; --wide: 1280px;
  --r-lg: 28px; --r-md: 18px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #fbfbfd; --bg-2: #f5f5f7; --tile: #ffffff; --tile-2: #f0f0f2;
  --fg: #1d1d1f; --fg-2: #515154; --fg-3: #86868b; --rule: rgba(0,0,0,.1);
  --accent: #9fcc3b; --accent-text: #4a7310; --accent-ink: #0b1102;
  --nav: rgba(251,251,253,.75); --glass: rgba(255,255,255,.75); --panel: #f0f0f2; --pill-bg: #ffffff;
  --shadow: 0 30px 60px -30px rgba(0,0,0,.18);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-optical-sizing: auto;
  font-size: 17px; line-height: 1.47; letter-spacing: -.012em; -webkit-font-smoothing: antialiased; }
img, video, canvas { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: calc(var(--col) + 2 * 22px); margin-inline: auto;
  padding-left: max(22px, env(safe-area-inset-left, 0px)); padding-right: max(22px, env(safe-area-inset-right, 0px)); }
.wrap.wide { max-width: calc(var(--wide) + 2 * 22px); }

/* ---------- type scale */
.eyebrow { font-size: 17px; font-weight: 600; color: var(--accent-text); letter-spacing: -.01em; margin: 0 0 10px; }
.display { font-size: clamp(48px, 9vw, 112px); font-weight: 650; letter-spacing: -.045em; line-height: .98; margin: 0; text-wrap: balance; }
.h1 { font-size: clamp(40px, 6.4vw, 80px); font-weight: 650; letter-spacing: -.04em; line-height: 1.02; margin: 0; text-wrap: balance; }
.h2 { font-size: clamp(32px, 4.6vw, 56px); font-weight: 650; letter-spacing: -.035em; line-height: 1.05; margin: 0; text-wrap: balance; }
.h3 { font-size: clamp(24px, 2.8vw, 32px); font-weight: 620; letter-spacing: -.025em; line-height: 1.12; margin: 0; text-wrap: balance; }
.lede { font-size: clamp(19px, 2.1vw, 24px); line-height: 1.38; color: var(--fg-2); font-weight: 450; letter-spacing: -.018em; margin: 0; max-width: 40ch; }
.lede b, .lede strong { color: var(--fg); font-weight: 600; }
.small { font-size: 14px; color: var(--fg-3); }
.tabnum { font-variant-numeric: tabular-nums; }
.grad { background: linear-gradient(100deg, var(--accent-text), #e8f7bf 60%, var(--accent-text));
  -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px;
  border-radius: 999px; border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 17px;
  cursor: pointer; text-decoration: none; transition: filter .2s, transform .2s; -webkit-tap-highlight-color: transparent; }
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn.ghost { background: transparent; color: var(--accent-text); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn.sm { min-height: 32px; padding: 0 14px; font-size: 13px; white-space: nowrap; }
@media (max-width: 420px) { .pnav .btn.sm .long { display: none; } .pnav .wrap { gap: 8px; } }
.link-arrow { font-weight: 500; white-space: nowrap; }
.link-arrow::after { content: " ›"; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }

/* ---------- product nav (sticky) */
.pnav { position: sticky; top: 0; z-index: 50; background: var(--nav); backdrop-filter: saturate(1.8) blur(20px);
  -webkit-backdrop-filter: saturate(1.8) blur(20px); border-bottom: 1px solid var(--rule); }
.pnav .wrap { display: flex; align-items: center; gap: 18px; height: 52px; max-width: calc(var(--wide) + 44px); }
.brand { font-weight: 650; font-size: 21px; letter-spacing: -.03em; color: var(--fg); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand .dot { color: var(--accent); }
.pnav nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.pnav nav a { color: var(--fg-2); font-size: 13px; font-weight: 450; }
.pnav nav a:hover, .pnav nav a[aria-current="page"] { color: var(--fg); text-decoration: none; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--fg-2);
  display: grid; place-items: center; cursor: pointer; position: relative; }
.icon-btn:hover { color: var(--fg); background: var(--tile); }
.icon-btn svg { width: 18px; height: 18px; }
.bag-count { position: absolute; top: 3px; right: 1px; min-width: 16px; height: 16px; border-radius: 8px; padding: 0 4px;
  background: var(--accent); color: var(--accent-ink); font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }
.menu-btn { display: none; }
@media (max-width: 833px) {
  .pnav nav .nl { display: none; }
  .menu-btn { display: grid; }
  .pnav nav.open { position: fixed; inset: 52px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--rule); padding: 8px max(22px, env(safe-area-inset-left, 0px)) 18px; }
  .pnav nav.open .nl { display: block; font-size: 24px; font-weight: 600; color: var(--fg); padding: 12px 0; letter-spacing: -.02em; }
}

/* ---------- sections */
section { position: relative; }
.sec { padding-block: clamp(80px, 12vw, 160px); }
.sec.tight { padding-block: clamp(56px, 8vw, 100px); }
.alt { background: var(--bg-2); }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.stack > * + * { margin-top: 18px; }

/* reveal on scroll: visible at rest, a gentle rise when JS marks it */
.rv { transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.js .rv:not(.in) { opacity: 0; transform: translateY(40px); }
@media (prefers-reduced-motion: reduce) { .rv, .js .rv:not(.in) { opacity: 1; transform: none; transition: none; } }

/* ---------- hero */
.hero { min-height: min(100svh, 1000px); display: grid; grid-template-rows: auto 1fr; overflow: hidden; background: #000; color: #f5f5f7; }
.hero-copy { position: relative; z-index: 2; padding-top: clamp(40px, 7vw, 88px); text-align: center; }
.hero-copy .eyebrow { color: #b5dc5c; }
.hero-copy .lede { color: #c7c7cc; margin: 18px auto 0; }
.hero-copy .lede b { color: #f5f5f7; }
.hero .link-arrow { color: #b5dc5c; }
.hero-copy .ctas { justify-content: center; margin-top: 26px; }
.hero-copy .price { color: #a1a1a6; font-size: 17px; margin-top: 14px; }
.hero-media { position: relative; z-index: 1; margin-top: clamp(-150px, -9vw, -24px); }
.hero-copy { pointer-events: none; } .hero-copy a, .hero-copy button { pointer-events: auto; }
.hero-media video, .hero-media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-media .tall { display: none; }
.hero-media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 18%; background: linear-gradient(transparent, #000); pointer-events: none; }
.film-btn { position: absolute; z-index: 3; right: max(22px, env(safe-area-inset-right, 0px)); bottom: 22px; width: 40px; height: 40px;
  border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; cursor: pointer;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.film-btn svg { width: 16px; height: 16px; }
@media (max-width: 734px) {
  .hero-media .wide { display: none; }
  .hero-media .tall { display: block; aspect-ratio: 3 / 4; }
  .hero-media { margin-top: -30vw; }
}

/* ---------- big statement (words light up with scroll) */
.statement p { font-size: clamp(30px, 4.4vw, 56px); font-weight: 620; letter-spacing: -.035em; line-height: 1.12; margin: 0; max-width: 22ch; }
.statement .w { color: var(--fg-3); transition: color .4s; }
.statement .w.on { color: var(--fg); }
.statement .w.hl.on { color: var(--accent-text); }

/* ---------- highlights gallery */
.hl-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.gallery { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 36px max(22px, calc((100vw - var(--wide)) / 2)) 10px; scroll-padding-inline: max(22px, calc((100vw - var(--wide)) / 2)); }
.gallery::-webkit-scrollbar { display: none; }
.card { flex: none; width: min(84vw, 900px); aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; position: relative;
  background: radial-gradient(90% 70% at 50% 75%, var(--tile-2), var(--tile) 70%); scroll-snap-align: start;
  display: flex; flex-direction: column; }
.card .cap { flex: none; padding: clamp(24px, 3.2vw, 40px) clamp(24px, 3.4vw, 44px) 0; font-size: clamp(19px, 2vw, 26px);
  font-weight: 620; letter-spacing: -.022em; line-height: 1.22; max-width: 34ch; color: var(--fg); text-wrap: balance; margin: 0; }
.card .cap span { color: var(--fg-2); font-weight: 520; }
.card .art { flex: 1; min-height: 0; position: relative; margin-top: 8px; }
.card .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 0 4% 4%; }
.card .art.fill { margin: 18px 0 0; }
.card .art.fill img { object-fit: cover; padding: 0; }
.gal-ctrl { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 24px; }
.dots { display: flex; gap: 10px; padding: 14px 20px; border-radius: 999px; background: var(--tile); }
.dots button { width: 8px; height: 8px; padding: 0; border-radius: 4px; border: 0; background: var(--fg-3); cursor: pointer; transition: width .3s, background .3s; }
.dots button[aria-current="true"] { width: 44px; background: var(--fg); }
.round { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--tile); color: var(--fg); display: grid; place-items: center; cursor: pointer; }
.round svg { width: 18px; height: 18px; }
@media (max-width: 734px) { .card { aspect-ratio: 4 / 5; width: 86vw; } .card .art img { padding: 0 2% 6%; } }

/* ---------- pinned 3D story */
.story { height: 520vh; }
.story-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.story canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.story-steps { position: absolute; inset: 0; pointer-events: none; }
.story-steps::before { content: ""; position: absolute; inset: 0 auto 0 0; width: min(46vw, 640px);
  background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 62%, transparent); pointer-events: none; }
.step { position: absolute; left: max(22px, calc((100vw - var(--wide)) / 2 + 22px)); top: 50%; translate: 0 -50%; width: min(32vw, 420px);
  opacity: 0; transform: translateY(16px); transition: opacity .18s, transform .18s; }
.step.on { opacity: 1; transform: none; transition: opacity .55s .12s, transform .55s .12s; }
.step .h2 { font-size: clamp(30px, 3.4vw, 48px); }
.step p { color: var(--fg-2); font-size: clamp(17px, 1.5vw, 20px); margin: 14px 0 0; }
.step p b { color: var(--fg); font-weight: 600; }
.tags { position: absolute; inset: 0; pointer-events: none; }
.tag { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 9px; border-radius: 999px;
  background: var(--glass); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 0 0 1px var(--rule), var(--shadow); white-space: nowrap; opacity: 0; transition: opacity .4s; font-size: 14px; }
.tag i { width: 18px; height: 18px; border-radius: 50%; background: var(--sw); flex: none; box-shadow: 0 0 0 1px var(--rule); }
.tag b { font-weight: 600; }
.tag span { color: var(--fg-2); }
.tag.on { opacity: 1; }
.leader { position: absolute; left: 0; top: 0; height: 1px; background: var(--fg); opacity: 0; transform-origin: 0 50%; transition: opacity .4s; }
.leader.on { opacity: .45; }
.leader::before { content: ""; position: absolute; left: -4px; top: -3.5px; width: 8px; height: 8px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 1.5px var(--fg); }
.story-progress { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; gap: 8px; }
.story-progress i { width: 6px; height: 6px; border-radius: 3px; background: var(--fg-3); transition: width .3s, background .3s; }
.story-progress i.on { width: 26px; background: var(--fg); }
@media (max-width: 734px) {
  .story { height: 460vh; }
  .story-steps::before { inset: auto 0 0 0; width: auto; height: 46%; background: linear-gradient(0deg, var(--bg) 0%, var(--bg) 70%, transparent); }
  .step { top: auto; bottom: 9svh; translate: none; left: 22px; right: 22px; width: auto; }
  .tag span { display: none; }
}
}

/* ---------- feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.split.rev > :first-child { order: 2; }
.split .media { border-radius: var(--r-lg); overflow: hidden; background: var(--tile); aspect-ratio: 4 / 3; position: relative; }
.split .media img { width: 100%; height: 100%; object-fit: cover; }
.split .media.contain img { object-fit: contain; }
@media (max-width: 834px) { .split { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }

.specline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.specline div { border-top: 1px solid var(--rule); padding-top: 14px; }
.specline b { display: block; font-size: clamp(28px, 3.4vw, 40px); font-weight: 650; letter-spacing: -.035em; line-height: 1.05; }
.specline span { font-size: 14px; color: var(--fg-2); }
@media (max-width: 600px) { .specline { grid-template-columns: 1fr 1fr; } }

.swatches { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.swatch { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--fg-2); }
.swatch i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15), 0 0 0 1px var(--rule); }

/* ---------- tiles */
.tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.tile { grid-column: span 6; background: var(--tile); border-radius: var(--r-lg); padding: clamp(26px, 3.4vw, 44px); overflow: hidden; position: relative; min-height: 420px;
  display: flex; flex-direction: column; isolation: isolate; }
.tile.s4 { grid-column: span 4; } .tile.s8 { grid-column: span 8; } .tile.s12 { grid-column: span 12; }
.tile .h3 { margin-top: 6px; }
.tile p { color: var(--fg-2); margin: 12px 0 0; }
.tile p b { color: var(--fg); }
.tile .art { margin-top: auto; padding-top: 24px; }
.tile .art img { width: 100%; height: auto; }
.tile .bignum { font-size: clamp(56px, 7vw, 96px); font-weight: 650; letter-spacing: -.05em; line-height: 1; margin-top: auto; }
@media (max-width: 834px) { .tile, .tile.s4, .tile.s8 { grid-column: span 12; min-height: 0; } }

/* ---------- materials switcher */
.mat-ui { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; margin-top: 48px; }
.mat-stage { position: relative; aspect-ratio: 16 / 11; min-width: 0; }
.mat-info { min-width: 0; }
.mat-stage figure { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(.97);
  transition: opacity .6s, transform .8s cubic-bezier(.2,.7,.2,1); }
.mat-stage figure.on { opacity: 1; transform: none; }
.mat-stage img { width: 100%; height: 100%; object-fit: contain; }
.mat-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0;
  background: var(--tile); color: var(--fg); font-size: 15px; font-weight: 520; cursor: pointer; white-space: nowrap; }
.chip:hover { background: var(--tile-2); }
.chip[aria-selected="true"], .chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.chip i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px var(--rule); }
.mat-info h3 { margin-top: 26px; }
.mat-info .price { color: var(--fg-2); margin-top: 6px; }
.bars { display: grid; gap: 12px; margin-top: 22px; }
.bar { display: grid; grid-template-columns: 9.5em 1fr; align-items: center; gap: 14px; font-size: 14px; color: var(--fg-2); }
.bar s { text-decoration: none; display: block; height: 6px; border-radius: 3px; background: var(--tile-2); position: relative; overflow: hidden; }
.bar s::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 20%); background: var(--accent); border-radius: 3px;
  transition: width .6s cubic-bezier(.2,.7,.2,1); }
@media (max-width: 834px) {
  .mat-ui { grid-template-columns: minmax(0, 1fr); }
  .mat-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -22px; padding-inline: 22px; }
  .mat-tabs::-webkit-scrollbar { display: none; }
}

/* ---------- use cases */
.uses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.use { border-radius: var(--r-lg); overflow: hidden; background: var(--tile); display: flex; flex-direction: column; }
.use .ph { aspect-ratio: 4 / 5; position: relative; background: radial-gradient(120% 80% at 50% 0%, #26301a, #0d0f0a 70%); overflow: hidden; }
:root[data-theme="light"] .use .ph { background: radial-gradient(120% 80% at 50% 0%, #e8f1d6, #f4f6ef 70%); }
.use .ph img { width: 100%; height: 100%; object-fit: cover; }
.use .ph img.fallback { object-fit: contain; padding: 14% 8%; }
.use .ph .ph-note { position: absolute; inset: auto 16px 16px 16px; font-size: 12px; color: var(--fg-3); }
.use .body { padding: 26px 28px 30px; }
.use .body p { color: var(--fg-2); margin: 10px 0 0; }
.use .rec { margin-top: 16px; font-size: 14px; color: var(--fg-3); }
.use .rec b { color: var(--accent-text); font-weight: 600; }
@media (max-width: 834px) {
  .uses { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82vw; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; margin-inline: -22px; padding-inline: 22px; scroll-padding-inline: 22px; }
  .uses::-webkit-scrollbar { display: none; }
  .use { scroll-snap-align: start; }
}

/* ---------- process */
.steps4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 48px; counter-reset: s; }
.steps4 li { list-style: none; border-top: 2px solid var(--rule); padding-top: 18px; }
.steps4 li::before { counter-increment: s; content: counter(s, decimal-leading-zero); display: block; font-size: 14px; font-weight: 600; color: var(--accent-text); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.steps4 h3 { font-size: 21px; font-weight: 620; letter-spacing: -.02em; margin: 0; }
.steps4 p { color: var(--fg-2); margin: 8px 0 0; font-size: 16px; }
.steps4 { padding: 0; }
@media (max-width: 834px) { .steps4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps4 { grid-template-columns: 1fr; } }

/* ---------- compare */
.compare { overflow-x: auto; margin-top: 48px; scrollbar-width: thin; }
.compare table { border-collapse: collapse; width: 100%; min-width: 900px; font-size: 15px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 16px 14px; border-bottom: 1px solid var(--rule); }
.compare thead th { vertical-align: bottom; border-bottom: 0; }
.compare thead img { width: 100%; max-width: 160px; height: auto; margin-bottom: 12px; }
.compare thead b { display: block; font-size: 21px; letter-spacing: -.02em; }
.compare thead span { display: block; color: var(--fg-2); font-weight: 450; }
.compare tbody th { color: var(--fg-3); font-weight: 500; width: 12em; font-size: 14px; }
.compare .new { display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent-text); margin-bottom: 6px; }
.dotrate { letter-spacing: 3px; color: var(--accent-text); white-space: nowrap; }
.dotrate em { color: var(--fg-3); font-style: normal; }

/* ---------- specs */
.specs { display: grid; grid-template-columns: 14em minmax(0, 1fr); border-top: 1px solid var(--rule); margin-top: 40px; }
.specs dt { font-weight: 600; padding: 20px 20px 20px 0; border-bottom: 1px solid var(--rule); }
.specs dd { margin: 0; padding: 20px 0; border-bottom: 1px solid var(--rule); color: var(--fg-2); }
.specs dd ul { margin: 0; padding-left: 1.1em; }
.specs dd li + li { margin-top: 4px; }
@media (max-width: 640px) { .specs { grid-template-columns: 1fr; } .specs dt { border-bottom: 0; padding-bottom: 4px; } .specs dd { padding-top: 0; } }

/* ---------- final CTA */
.finale { text-align: center; overflow: hidden; }
.finale img { width: min(1100px, 100%); height: auto; margin: 48px auto 0; }

/* ---------- footer */
.foot { background: var(--bg-2); color: var(--fg-3); font-size: 12px; line-height: 1.5; padding-block: 28px 40px; }
.foot .notes { border-bottom: 1px solid var(--rule); padding-bottom: 16px; }
.foot .notes ol { margin: 0; padding-left: 1.4em; }
.foot .notes li + li, .foot .notes p + p { margin-top: 8px; }
.foot a { color: var(--fg-2); }
.foot .cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; padding-block: 24px; border-bottom: 1px solid var(--rule); }
.foot h4 { color: var(--fg); font-size: 12px; font-weight: 600; margin: 0 0 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li + li { margin-top: 8px; }
.foot .base { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 16px; }
.foot .base nav { display: flex; flex-wrap: wrap; gap: 4px 0; }
.foot .base nav a + a::before { content: "|"; color: var(--rule); margin: 0 10px; }
.cookie-link { background: none; border: 0; padding: 0; color: var(--fg-2); font-size: 12px; cursor: pointer; }
@media (max-width: 834px) { .foot .cols { grid-template-columns: 1fr 1fr; } }

/* ---------- cookie banner */
.cookies { position: fixed; z-index: 80; left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: 560px; margin-inline: auto; background: var(--tile); color: var(--fg);
  border-radius: 20px; padding: 20px 22px; box-shadow: 0 0 0 1px var(--rule), 0 24px 60px -20px rgba(0,0,0,.6); font-size: 14px; }
.cookies p { margin: 0 0 14px; color: var(--fg-2); }
.cookies .row { display: flex; flex-wrap: wrap; gap: 10px; }
.cookies .btn { min-height: 40px; font-size: 15px; }
.cookies fieldset { border: 0; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.cookies label { display: flex; gap: 10px; align-items: flex-start; color: var(--fg-2); }
.cookies label b { color: var(--fg); font-weight: 600; }

/* ---------- legal pages */
.legal { padding-block: 56px 100px; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 650; letter-spacing: -.04em; line-height: 1.05; margin: 0 0 8px; }
.legal .meta { color: var(--fg-3); font-size: 14px; margin-bottom: 40px; }
.legal h2 { font-size: 24px; letter-spacing: -.02em; margin: 44px 0 10px; }
.legal h3 { font-size: 18px; margin: 26px 0 6px; }
.legal p, .legal li { color: var(--fg-2); max-width: 72ch; }
.legal table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 16px 0; }
.legal th, .legal td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--fg-2); }
.legal th { color: var(--fg); }
.legal .tablewrap { overflow-x: auto; }
.legal .note { background: var(--tile); border-radius: var(--r-md); padding: 16px 20px; color: var(--fg-2); font-size: 14px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

/* ---------- Insole Studio (build and order) */
.studio { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(360px, 1fr); max-width: calc(var(--wide) + 44px); margin-inline: auto;
  padding-left: max(22px, env(safe-area-inset-left, 0px)); padding-right: max(22px, env(safe-area-inset-right, 0px)); gap: 40px; padding-bottom: 140px; }
.studio-view { position: sticky; top: 52px; height: calc(100svh - 52px - 96px); min-height: 420px; border-radius: var(--r-lg); margin-top: 24px;
  background: radial-gradient(110% 80% at 50% 35%, var(--tile-2), var(--bg) 75%); overflow: hidden; }
.studio-view canvas { width: 100%; height: 100%; touch-action: none; cursor: grab; }
.studio-view canvas:active { cursor: grabbing; }
.sv-load { position: absolute; inset: 0; display: grid; place-items: center; color: var(--fg-3); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.sv-tools { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.sv-hint { position: absolute; top: 16px; left: 0; right: 0; text-align: center; margin: 0; pointer-events: none; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px var(--rule); }
.seg button, .seg-btn { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; color: var(--fg); font-size: 14px; font-weight: 520; cursor: pointer; }
.seg-btn { background: var(--glass); box-shadow: 0 0 0 1px var(--rule); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.seg button[aria-pressed="true"], .seg-btn[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.seg.wide { margin-bottom: 14px; }
.studio-panel { padding-top: 40px; min-width: 0; }
.sp-head { margin-bottom: 8px; }
.opt { border: 0; margin: 0; padding: 40px 0 0; min-width: 0; }
.opt > .link-arrow { display: inline-block; margin-top: 4px; }
.opt legend { font-size: 24px; font-weight: 620; letter-spacing: -.022em; line-height: 1.2; padding: 0; margin-bottom: 16px; }
.opt legend .n { display: block; font-size: 14px; color: var(--accent-text); font-weight: 600; letter-spacing: -.005em; margin-bottom: 4px; }
.cards { display: grid; gap: 10px; margin-bottom: 12px; }
.ocard { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; text-align: left; width: 100%; padding: 16px 18px; border-radius: 16px; border: 0;
  background: transparent; box-shadow: inset 0 0 0 1px var(--rule); cursor: pointer; color: var(--fg); transition: box-shadow .2s, background .2s; }
.ocard:hover { box-shadow: inset 0 0 0 1px var(--fg-3); }
.ocard[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.ocard b { font-size: 17px; font-weight: 620; }
.ocard .p { font-size: 14px; color: var(--fg-2); text-align: right; }
.ocard .d { grid-column: 1 / -1; font-size: 14px; color: var(--fg-2); }
.ocard .t { font-size: 12px; font-weight: 600; color: var(--accent-text); margin-left: 6px; }
.cards.slim .ocard { padding: 13px 16px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--rule); color: var(--fg); font-size: 15px; cursor: pointer; }
.pills button[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--accent); }
.colors { display: flex; gap: 14px; flex-wrap: wrap; }
.colors button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--c); cursor: pointer; padding: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 0 0 1px var(--rule); }
.colors button[aria-checked="true"] { box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 8px; }
.sizes button { min-height: 44px; border-radius: 12px; border: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--rule); color: var(--fg); font-size: 15px; cursor: pointer; font-variant-numeric: tabular-nums; }
.sizes button[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--accent); }
.addons { display: grid; gap: 10px; }
.addons label { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: start; padding: 14px 16px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--rule); cursor: pointer; }
.addons input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.addons b { font-weight: 600; }
.addons .d { grid-column: 2 / -1; font-size: 14px; color: var(--fg-2); }
.addons select { grid-column: 2 / -1; justify-self: start; margin-top: 6px; font: inherit; font-size: 14px; padding: 6px 10px; border-radius: 10px; background: var(--tile); color: var(--fg); border: 1px solid var(--rule); }
.included { margin-top: 40px; padding: 24px; border-radius: var(--r-md); background: var(--tile); }
.included ul { margin: 12px 0 0; padding-left: 1.1em; color: var(--fg-2); }
.included li + li { margin-top: 6px; }
.buybar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; background: var(--nav); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px);
  border-top: 1px solid var(--rule); padding-bottom: env(safe-area-inset-bottom, 0px); }
.buybar .wrap { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.bb-sum { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.bb-sum b { font-size: 17px; }
.bb-sum span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-price { display: flex; flex-direction: column; align-items: flex-end; }
.bb-price b { font-size: 21px; letter-spacing: -.02em; }
.bb-msg { margin: 0; text-align: center; padding: 0 16px 8px; }
.bb-msg:empty { display: none; }
@media (max-width: 900px) {
  .studio { grid-template-columns: 1fr; gap: 0; }
  .studio-view { position: sticky; top: 52px; z-index: 5; height: 40svh; min-height: 260px; margin-top: 0; border-radius: 0; margin-inline: -22px; }
  .sv-hint { display: none; }
  .bb-sum span { display: none; }
  .buybar .wrap { gap: 12px; min-height: 68px; }
  .bb-sum b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bb-price span { display: none; }
  .bb-price b { font-size: 19px; }
  #addBag { white-space: nowrap; padding: 0 18px; }
}

/* ---------- bag + checkout */
.bagpage { padding-block: 48px 100px; }
.bag-items { margin-top: 32px; border-top: 1px solid var(--rule); }
.bag-item { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.bag-item img { width: 140px; height: auto; border-radius: 14px; background: var(--tile); }
.bag-item h3 { font-size: 21px; margin: 0; letter-spacing: -.02em; }
.bag-item ul { list-style: none; padding: 0; margin: 8px 0 0; color: var(--fg-2); font-size: 14px; }
.bag-item .act { display: flex; gap: 14px; margin-top: 12px; align-items: center; }
.bag-item select { font: inherit; padding: 6px 10px; border-radius: 10px; background: var(--tile); color: var(--fg); border: 1px solid var(--rule); }
.bag-item .rm { background: none; border: 0; color: var(--accent-text); cursor: pointer; padding: 0; font-size: 14px; }
.bag-item .pr { font-size: 19px; font-weight: 600; text-align: right; }
.totals { margin: 28px 0 0 auto; max-width: 420px; display: grid; grid-template-columns: 1fr auto; gap: 10px 20px; }
.totals dt { color: var(--fg-2); } .totals dd { margin: 0; text-align: right; }
.totals .grand { font-size: 24px; font-weight: 650; color: var(--fg); padding-top: 12px; border-top: 1px solid var(--rule); }
.checkout { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.form-sec { padding: 28px 0; border-top: 1px solid var(--rule); }
.form-sec h2 { font-size: 24px; margin: 0 0 16px; letter-spacing: -.02em; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fgrid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--fg-2); }
.field input, .field select { font: inherit; font-size: 17px; color: var(--fg); background: var(--tile); border: 1px solid var(--rule); border-radius: 12px; padding: 12px 14px; min-height: 48px; }
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.field .err { color: #ff6961; font-size: 13px; min-height: 0; }
.field.bad input, .field.bad select { border-color: #ff6961; }
.paynote { background: var(--tile); border-radius: var(--r-md); padding: 18px 20px; color: var(--fg-2); font-size: 14px; }
.summary-card { position: sticky; top: 72px; background: var(--tile); border-radius: var(--r-lg); padding: 24px; }
.empty { text-align: center; padding: 60px 0; }
@media (max-width: 834px) {
  .checkout { grid-template-columns: 1fr; } .summary-card { position: static; }
  .bag-item { grid-template-columns: 88px minmax(0, 1fr); } .bag-item img { width: 88px; } .bag-item .pr { grid-column: 2; text-align: left; }
  .fgrid { grid-template-columns: 1fr; }
}

/* ---------- support / faq */
.faq details { border-bottom: 1px solid var(--rule); padding: 18px 0; }
.faq summary { font-size: 19px; font-weight: 600; letter-spacing: -.015em; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-text); font-weight: 400; font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--fg-2); margin: 12px 0 0; max-width: 68ch; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.contact-grid .tile { min-height: 0; }
@media (max-width: 834px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- PA12 textures: scroll to change and zoom */
.texscroll { height: 360vh; }
.tex-pin { position: sticky; top: 52px; height: calc(100svh - 52px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(24px, 4vw, 64px); align-items: center; max-width: calc(var(--wide) + 44px); margin-inline: auto;
  padding-left: max(22px, env(safe-area-inset-left, 0px)); padding-right: max(22px, env(safe-area-inset-right, 0px)); }
.tex-copy .h2 { margin-bottom: 16px; }
.tex-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 4px; }
.tex-list button { width: 100%; text-align: left; background: none; border: 0; padding: 14px 0 14px 18px; cursor: pointer; color: var(--fg-3);
  border-left: 2px solid var(--rule); transition: color .3s, border-color .3s; }
.tex-list button b { display: block; font-size: 21px; font-weight: 620; letter-spacing: -.02em; }
.tex-list button span { display: block; font-size: 15px; margin-top: 4px; }
.tex-list button[aria-current="true"] { color: var(--fg); border-color: var(--accent); }
.tex-list button[aria-current="true"] span { color: var(--fg-2); }
.tex-view { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--tile); }
.tex-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; will-change: transform; }
.tex-view img.on { opacity: 1; }
.tex-view .zoomtag { position: absolute; left: 16px; bottom: 16px; padding: 6px 12px; border-radius: 999px; background: var(--glass);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 13px; color: var(--fg); font-variant-numeric: tabular-nums; }
@media (max-width: 834px) {
  .tex-pin { grid-template-columns: 1fr; align-content: center; gap: 18px; }
  .tex-list { display: flex; gap: 8px; margin-top: 14px; }
  .tex-list button { padding: 8px 14px; border: 0; border-radius: 999px; background: var(--tile); }
  .tex-list button span { display: none; }
  .tex-list button b { font-size: 15px; }
  .tex-list button[aria-current="true"] { background: var(--fg); color: var(--bg); }
  .tex-copy .lede { display: none; }
}

/* ---------- materials: tall plate, tap to zoom */
.mat-ui { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); }
.mat-stage { aspect-ratio: 1400 / 2240; max-height: 78svh; justify-self: center; width: 100%; max-width: 520px; overflow: hidden; border-radius: var(--r-lg);
  background: radial-gradient(80% 60% at 50% 50%, var(--tile-2), transparent 75%); cursor: zoom-in; touch-action: pan-y; }
.mat-stage.zoomed { cursor: zoom-out; touch-action: none; }
.mat-stage figure img { transition: transform .45s cubic-bezier(.2,.7,.2,1); transform-origin: var(--ox, 50%) var(--oy, 50%); }
.mat-stage.zoomed figure img { transform: scale(2.6); transition: transform .25s ease-out; }
.zoom-btn { position: absolute; right: 14px; bottom: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--glass);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--fg); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 0 0 1px var(--rule); }
.zoom-btn svg { width: 18px; height: 18px; }
.zoom-hint { position: absolute; left: 0; right: 0; top: 14px; text-align: center; font-size: 13px; color: var(--fg-3); pointer-events: none; z-index: 2; }
@media (max-width: 834px) { .mat-ui { grid-template-columns: minmax(0, 1fr); } .mat-stage { max-height: 62svh; max-width: 380px; } }

/* ---------- plate gallery: vertical scroll drives a horizontal track */
.hscroll { height: 340vh; }
.hs-pin { position: sticky; top: 52px; height: calc(100svh - 52px); overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(24px, 4vh, 48px); }
.hs-track { display: flex; gap: 24px; padding-inline: max(22px, calc((100vw - var(--wide)) / 2 + 22px)); will-change: transform; }
.hs-card { flex: none; width: min(72vw, 760px); border-radius: var(--r-lg); overflow: hidden; background: radial-gradient(90% 70% at 50% 60%, var(--tile-2), var(--tile) 70%);
  display: flex; flex-direction: column; }
.hs-card .art { aspect-ratio: 10 / 7; position: relative; }
.hs-card .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.hs-card .art.fill img { object-fit: cover; }
.hs-card p { margin: 0; padding: 4px 28px 26px; color: var(--fg-2); font-size: 16px; }
.hs-card p b { color: var(--fg); font-weight: 600; display: block; font-size: 19px; letter-spacing: -.015em; margin-bottom: 4px; }
.hs-bar { height: 2px; background: var(--rule); margin-inline: max(22px, calc((100vw - var(--wide)) / 2 + 22px)); border-radius: 2px; overflow: hidden; }
.hs-bar i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
@media (max-width: 734px) { .hs-card { width: 82vw; } .hs-card p { padding: 2px 20px 20px; font-size: 15px; } }
@media (prefers-reduced-motion: reduce) {
  .hscroll { height: auto; } .hs-pin { position: static; height: auto; padding-block: 40px; }
  .hs-track { overflow-x: auto; scroll-snap-type: x mandatory; } .hs-card { scroll-snap-align: start; }
  .texscroll { height: auto; } .tex-pin { position: static; height: auto; padding-block: 60px; }
}

/* nav CTA: one word space, no flex gap between "Build" and "yours" */
.btn.nav-cta { gap: 0; }

/* ---------- highlights: big readable captions above each image */
.hscroll.hl { height: 420vh; background: var(--bg); }
.hl .hl-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.hl-card { width: min(78vw, 980px); }
.hl-card .cap { margin: 0; padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 40px) 0; font-size: clamp(19px, 2vw, 26px); font-weight: 520;
  letter-spacing: -.02em; line-height: 1.25; color: var(--fg-2); max-width: 36ch; text-wrap: balance; }
.hl-card .cap b { color: var(--fg); font-weight: 650; }
.hl-card .art { aspect-ratio: 16 / 9; }
.hl-card .art img { padding: 2% 5% 5%; }
@media (max-width: 734px) { .hl-card { width: 84vw; } .hl-card .art { aspect-ratio: 4 / 3; } }

/* ---------- design: copy scrolls, 3D stays pinned beside it */
.s2 { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(20px, 4vw, 64px);
  max-width: calc(var(--wide) + 44px); margin-inline: auto; padding-inline: max(22px, env(safe-area-inset-left, 0px)) max(22px, env(safe-area-inset-right, 0px)); }
.s2-view { grid-column: 2; grid-row: 1; position: sticky; top: 52px; height: calc(100svh - 52px); }
.s2-view canvas { width: 100%; height: 100%; display: block; }
.s2-steps { grid-column: 1; grid-row: 1; padding-block: 10vh 30vh; }
.s2-step { min-height: 88svh; display: flex; flex-direction: column; justify-content: center; max-width: 30rem; opacity: .28; transition: opacity .5s; }
.s2-step.on { opacity: 1; }
.s2-step p:not(.eyebrow) { color: var(--fg-2); font-size: clamp(17px, 1.5vw, 20px); margin: 16px 0 0; }
.s2-step p b { color: var(--fg); font-weight: 600; }
.s2-legend { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; gap: 6px; list-style: none; margin: 0; padding: 6px;
  border-radius: 999px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 0 0 1px var(--rule); }
.s2-legend li { display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; font-size: 13px; font-weight: 560;
  color: var(--fg-3); transition: color .3s, background .3s; white-space: nowrap; }
.s2-legend li i { width: 14px; height: 14px; border-radius: 50%; background: var(--sw); box-shadow: 0 0 0 1px var(--rule); }
.s2-legend li.on { color: var(--fg); background: var(--tile-2); }
.s2-load { position: absolute; inset: 0; display: grid; place-items: center; color: var(--fg-3); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; pointer-events: none; transition: opacity .4s; }
.s2.ready .s2-load { opacity: 0; }
@media (max-width: 834px) {
  .s2 { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .s2-view { grid-column: 1; grid-row: 1; z-index: 2; height: 50svh; background: var(--bg); margin-inline: -22px; }
  .s2-view::after { content: ""; position: absolute; left: 0; right: 0; bottom: -40px; height: 40px; background: linear-gradient(var(--bg), transparent); pointer-events: none; }
  .s2-steps { grid-column: 1; grid-row: 2; padding-block: 4vh 20vh; }
  .s2-step { min-height: 62svh; justify-content: flex-start; padding-top: 6vh; }
  .s2-legend { bottom: 12px; }
  .s2-legend li { padding: 6px 10px 6px 7px; font-size: 12px; }
}

/* ---------- top cover gallery */
.cover-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 20px; margin-top: 48px; }
.cover-grid figure { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: radial-gradient(90% 70% at 50% 55%, var(--tile-2), var(--tile) 75%); position: relative; }
.cv-main { grid-row: span 2; display: flex; flex-direction: column; min-height: 0; }
.cv-main img { position: absolute; inset: 0 0 76px 0; width: 100%; height: calc(100% - 76px); object-fit: contain; padding: 6% 8% 2%; opacity: 0; transition: opacity .45s; }
.cv-main img.on { opacity: 1; }
.cv-main figcaption { margin-top: auto; height: 76px; display: flex; align-items: center; justify-content: center; gap: 16px; font-size: 14px; color: var(--fg-2); }
.cv-swatches { display: flex; gap: 10px; }
.cv-swatches button { width: 30px; height: 30px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 0 0 1px var(--rule); }
.cv-swatches button[aria-checked="true"] { box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 0 0 3px var(--tile), 0 0 0 5px var(--accent); }
.cv-main { aspect-ratio: auto; min-height: 640px; }
.cv-tile { display: flex; flex-direction: column; }
.cv-tile img { width: 100%; aspect-ratio: 10 / 7; object-fit: contain; }
.cv-tile.fill img { object-fit: cover; }
.cv-tile figcaption { padding: 14px 22px 20px; font-size: 15px; color: var(--fg-2); }
.cv-tile figcaption b { color: var(--fg); font-weight: 600; }
@media (max-width: 834px) {
  .cover-grid { grid-template-columns: minmax(0, 1fr); }
  .cv-main { grid-row: auto; min-height: 0; height: 74svh; max-height: 640px; }
}
.cover-grid .cv-tile.wide { grid-column: 2 / 4; }
.cover-grid .cv-tile.wide img { aspect-ratio: 21 / 8; }
@media (max-width: 834px) { .cover-grid .cv-tile.wide { grid-column: auto; } .cover-grid .cv-tile.wide img { aspect-ratio: 10 / 7; } }

/* ---------- scroll film: Blender frames scrubbed by scroll */
.seq { height: 360vh; }
.seq-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.seq-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.seq-copy { position: absolute; left: 0; right: 0; top: clamp(70px, 12vh, 140px); text-align: center; padding-inline: 22px; transition: opacity .4s; }
.seq-copy .lede { margin: 16px auto 0; }
.seq-copy.out { opacity: 0; }

/* ---------- take a closer look (Apple-style panel) */
.closer { box-shadow: 0 0 0 1px var(--rule); position: relative; margin-top: 36px; min-height: min(78svh, 760px); border-radius: 32px; background: var(--panel); overflow: hidden;
  display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); align-items: center; padding: clamp(24px, 4vw, 56px) 0 clamp(24px, 4vw, 56px) clamp(72px, 7vw, 104px); }
.cl-arrows { position: absolute; left: clamp(16px, 2vw, 28px); top: 50%; transform: translateY(-50%); display: grid; gap: 14px; z-index: 2; }
.cl-arrow { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--pill-bg); color: var(--fg); display: grid; place-items: center; cursor: pointer; }
.cl-arrow svg { width: 18px; height: 18px; }
.cl-arrow:disabled { opacity: .35; cursor: default; }
.cl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; justify-items: start; position: relative; z-index: 2; }
.cl-pill { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 22px 0 14px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--pill-bg); color: var(--fg); font-size: 17px; font-weight: 600; letter-spacing: -.015em; transition: background .25s; }
.cl-pill:hover { background: color-mix(in srgb, var(--pill-bg) 85%, var(--fg) 15%); }
.cl-pill .plus { width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; position: relative; flex: none; }
.cl-pill .plus::before, .cl-pill .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.6px; background: currentColor; transform: translate(-50%, -50%); }
.cl-pill .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.cl-pill .sw { width: 24px; height: 24px; border-radius: 50%; background: conic-gradient(#9fcc3b 0 25%, #202022 0 50%, #808386 0 75%, #c4ac8a 0); flex: none; }
.cl-item.open .cl-pill { display: none; }
.cl-body { background: var(--pill-bg); border-radius: 28px; padding: 24px 28px; max-width: 420px; animation: clIn .35s ease; }
.cl-body p { margin: 0; color: var(--fg-2); font-size: 17px; line-height: 1.45; }
.cl-body b { color: var(--fg); }
@keyframes clIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.cl-media { position: absolute; inset: 0 0 0 34%; }
.cl-media figure { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.04); transition: opacity .6s, transform .9s cubic-bezier(.2,.7,.2,1); }
.cl-media figure.on { opacity: 1; transform: none; }
.cl-media img { width: 100%; height: 100%; object-fit: contain; padding: 4% 4% 4% 0; }
@media (max-width: 834px) {
  .closer { grid-template-columns: 1fr; padding: 0 0 22px; min-height: 0; border-radius: 26px; }
  .cl-media { position: relative; inset: auto; aspect-ratio: 4 / 3; grid-row: 1; }
  .cl-media img { padding: 4%; }
  .cl-list { grid-row: 2; padding: 0 18px; display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; scrollbar-width: none; }
  .cl-list::-webkit-scrollbar { display: none; }
  .cl-item.open .cl-pill { display: inline-flex; background: var(--fg); color: var(--bg); }
  .cl-pill { min-height: 44px; font-size: 15px; white-space: nowrap; padding: 0 16px 0 10px; }
  .cl-body { display: none !important; }
  .cl-mobile-body { padding: 14px 22px 0; color: var(--fg-2); font-size: 16px; }
  .cl-mobile-body b { color: var(--fg); }
  .cl-arrows { display: none; }
}
@media (min-width: 835px) { .cl-mobile-body { display: none; } }

/* ---------- printed to you: gradient headline + trio */
.printed .display { font-size: clamp(56px, 10vw, 128px); }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); margin-top: clamp(40px, 6vw, 80px); align-items: end; }
.trio figure { margin: 0; text-align: center; }
.trio img { width: 100%; max-width: 380px; margin: 0 auto; }
.trio figcaption { margin-top: 10px; color: var(--fg-2); font-size: 15px; }
.trio figcaption b { display: block; color: var(--fg); font-size: 21px; letter-spacing: -.02em; }
@media (max-width: 734px) { .trio { grid-template-columns: repeat(3, 70vw); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -22px; padding-inline: 22px; }
  .trio figure { scroll-snap-align: center; } }

/* ---------- light theme polish: soft studio tiles, gentler gradients */
:root[data-theme="light"] .card, :root[data-theme="light"] .hs-card, :root[data-theme="light"] .cover-grid figure {
  background: radial-gradient(90% 70% at 50% 60%, #ffffff, #eef0ee 80%); box-shadow: 0 0 0 1px rgba(0,0,0,.05); }
:root[data-theme="light"] .tile, :root[data-theme="light"] .use { box-shadow: 0 0 0 1px rgba(0,0,0,.05); }
:root[data-theme="light"] .mat-stage { background: radial-gradient(80% 60% at 50% 50%, #ffffff, transparent 75%); }
:root[data-theme="light"] .grad { background-image: linear-gradient(100deg, #4a7310, #7fb321 55%, #4a7310); }
