/* marave — design tokens
   Lichtkasten  #F6F7F5  backlit chart white (page)
   Fach         #ECEEEB  secondary surface (product stages)
   Tinte        #101417  letters, primary ink
   Grau         #59636A  secondary text
   Linie        #D3D8D5  hairlines
   Prüfrot      #C8283A  duochrome red: the one accent (cart, focus, the chart's red line)
   Prüfgrün     #1F7A55  duochrome green: success only
   Nacht        #0C1013  dark sections */

@font-face { font-family: "Optician Sans"; src: url(/assets/fonts/OpticianSans.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url(/assets/fonts/AtkinsonNext.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url(/assets/fonts/AtkinsonNext-Italic.woff2) format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Mono"; src: url(/assets/fonts/AtkinsonMono.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --paper: #F6F7F5;
  --paper-2: #ECEEEB;
  --paper-3: #E2E5E2;
  --ink: #101417;
  --ink-2: #59636A;
  --line: #D3D8D5;
  --red: #C8283A;
  --green: #1F7A55;
  --night: #0C1013;
  --night-2: #171C20;
  --night-line: #2A3237;

  --f-display: "Optician Sans", "Arial Narrow", sans-serif;
  --f-body: "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --f-mono: "Atkinson Hyperlegible Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 3.2vw, 44px);
  --bar-h: 64px;
  --radius: 6px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--bar-h); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, canvas, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 4px; text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.eyebrow { font: 500 12px/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.display { font: 400 clamp(44px, 6.4vw, 96px)/.92 var(--f-display); letter-spacing: .05em; text-transform: uppercase; margin: 14px 0 18px; }
.section-sub { max-width: 34em; color: var(--ink-2); font-size: 18px; }
.fine { font-size: 13px; color: var(--ink-2); }
.wordmark { font: 400 19px/1 var(--f-display); letter-spacing: .34em; text-decoration: none; }
.mono { font-family: var(--f-mono); }

/* the frame measurement mark: 49 □ 21 145 */
.box { display: inline-block; width: .62em; height: .62em; border: 1.5px solid currentColor; margin: 0 .3em; vertical-align: -.02em; }

/* ---------- buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 16px/1 var(--f-body); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s, transform .2s var(--ease), border-color .2s;
}
.btn:active { transform: scale(.98); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #262e33; }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: #fff; }
.btn-line { border-color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--paper);
  font: 500 14px/1 var(--f-body); transition: border-color .2s, background-color .2s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip-dark { background: transparent; color: var(--paper); border-color: rgba(255,255,255,.3); }
.chip-dark:hover { border-color: var(--paper); }

.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn-light { background: transparent; color: var(--paper); border-color: rgba(255,255,255,.35); }

.dot { width: 14px; height: 14px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }

/* ---------- top bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--bar-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--gutter);
  transition: background-color .3s, box-shadow .3s, color .3s;
}
.bar.is-solid { background: rgba(246,247,245,.88); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.bar.is-dark { color: var(--paper); }
.bar.is-dark.is-solid { background: rgba(12,16,19,.82); box-shadow: 0 1px 0 var(--night-line); }
.bar-nav { display: flex; gap: clamp(18px, 2.6vw, 36px); }
.bar-nav a { text-decoration: none; font-size: 15px; font-weight: 500; position: relative; padding: 6px 0; }
.bar-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.bar-nav a:hover::after { transform: scaleX(1); }
.bar-cart { justify-self: end; display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 8px 0; font-weight: 600; font-size: 15px; }
.bar-cart-count {
  display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px;
  font: 600 13px/1 var(--f-mono); background: var(--line); color: var(--ink); transition: background-color .3s, transform .3s var(--ease);
}
.bar-cart-count.has-items { background: var(--red); color: #fff; }
.bar-cart-count.bump { transform: scale(1.25); }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; background: radial-gradient(ellipse at 50% 42%, #fff 0%, var(--paper) 55%, #E6E9E6 100%); }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.has-gl .hero-canvas { cursor: none; }
.hero-chart {
  position: absolute; inset: var(--bar-h) 0 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6vh;
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase; text-align: center; line-height: 1; color: var(--ink);
}
.hero-chart .r { display: block; letter-spacing: .3em; padding-left: .3em; }
.hero-chart .r1 { font-size: min(17vh, 22vw); } .hero-chart .r2 { font-size: min(10vh, 13vw); } .hero-chart .r3 { font-size: min(7vh, 9vw); }
.hero-chart .r4 { font-size: min(5vh, 7vw); } .hero-chart .r5 { font-size: min(3.4vh, 5vw); } .hero-chart .r6 { font-size: min(2.6vh, 4vw); }
.hero-chart .r7, .hero-chart .r8, .hero-chart .r9 { font-size: min(1.7vh, 3vw); letter-spacing: .18em; }
.has-gl .hero-chart { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); inset: auto; }
.hero-hint {
  position: absolute; left: 50%; top: calc(var(--bar-h) + 12px); transform: translateX(-50%);
  font: 500 13px/1.3 var(--f-mono); letter-spacing: .04em; color: var(--ink-2); text-align: center; padding: 0 16px;
  opacity: 0; transition: opacity .8s; pointer-events: none; width: max-content; max-width: 100%;
}
.hero-hint.is-on { opacity: 1; }
.hero-foot {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 0 var(--gutter) clamp(20px, 4vh, 40px);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; pointer-events: none;
}
.hero-foot > * { pointer-events: auto; }
.hero-intro { max-width: 380px; display: grid; gap: 12px; justify-items: start; }
.hero-lede { font-size: 17px; }
.tint-pick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; max-width: 720px; }
.tint-pick legend { float: left; margin-right: 6px; line-height: 38px; }
.tint-pick .chip { background: rgba(246,247,245,.8); backdrop-filter: blur(6px); }
.tint-pick .chip[aria-checked="true"] { background: var(--ink); }
.is-loading .hero-foot, .is-loading .hero-hint { opacity: 0; }
.hero-foot { transition: opacity 1s .6s; }

/* ---------- sections ---------- */
.collection { padding: clamp(80px, 12vh, 140px) var(--gutter) clamp(60px, 10vh, 120px); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(28px, 5vh, 52px); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: 15px; font-weight: 500; }
.filters button span { font: 500 12px/1 var(--f-mono); color: var(--ink-2); margin-left: 4px; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters button[aria-pressed="true"] span { color: rgba(255,255,255,.6); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: var(--paper-2); overflow: hidden; transition: background-color .3s; }
.card:hover { background: var(--paper-3); }
.card.is-hidden { display: none; }
.card-stage { position: relative; aspect-ratio: 4 / 3; }
.card-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.card-tag { position: absolute; left: 16px; top: 14px; font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.card-body { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 4px 18px 18px; align-items: baseline; }
.card-name { font: 400 26px/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; }
.card-price { font: 700 18px/1 var(--f-body); font-variant-numeric: tabular-nums; }
.card-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 500 13px/1.3 var(--f-mono); color: var(--ink-2); margin-top: 6px; }
.card-swatches { display: flex; gap: 6px; }
.card-swatches .dot { width: 12px; height: 12px; }
.card-link { position: absolute; inset: 0; z-index: 2; border-radius: var(--radius); }
.card-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- lens lab ---------- */
.lab { background: var(--night); color: var(--paper); display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr); min-height: 92vh; }
.lab .eyebrow, .lab .section-sub, .lab .fine { color: #9AA5AC; }
.lab-stage { position: relative; overflow: hidden; min-height: 420px; touch-action: pan-y; user-select: none; }
.lab-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.lab-split { position: absolute; inset: 0; pointer-events: none; --x: 50%; }
.lab-split::before { content: ""; position: absolute; top: 0; bottom: 0; left: var(--x); width: 1.5px; margin-left: -.75px; background: rgba(255,255,255,.85); box-shadow: 0 0 0 .5px rgba(0,0,0,.2); }
.lab-handle {
  position: absolute; top: 50%; left: var(--x); width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
  background: var(--paper); color: var(--ink); border: 0; display: grid; place-items: center; pointer-events: auto; cursor: ew-resize; touch-action: none;
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
}
.lab-handle svg { width: 22px; height: 22px; }
.lab-tag { position: absolute; top: 18px; font: 500 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; background: rgba(12,16,19,.55); backdrop-filter: blur(6px); padding: 8px 12px; border-radius: 999px; }
.lab-tag-l { left: 18px; } .lab-tag-r { right: 18px; }
.lab-panel { padding: clamp(48px, 8vh, 96px) var(--gutter); display: flex; flex-direction: column; justify-content: center; gap: 0; }
.lab-list { display: grid; gap: 2px; margin: 28px 0 22px; }
.lab-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 4px 14px; align-items: center; text-align: left;
  width: 100%; padding: 14px 16px; border-radius: var(--radius); background: transparent; border: 1px solid transparent; color: inherit;
  transition: background-color .2s, border-color .2s;
}
.lab-item:hover { background: var(--night-2); }
.lab-item[aria-checked="true"] { background: var(--night-2); border-color: var(--night-line); }
.lab-item .dot { width: 18px; height: 18px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.lab-item b { font-weight: 600; font-size: 17px; }
.lab-item small { font: 500 12px/1 var(--f-mono); color: #9AA5AC; letter-spacing: .06em; }
.lab-item p { grid-column: 2 / -1; font-size: 15px; color: #B9C2C7; display: none; }
.lab-item[aria-checked="true"] p { display: block; }

/* ---------- anatomy ---------- */
.anatomy { position: relative; height: 340vh; background: var(--paper); }
.anatomy-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.anatomy-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.anatomy-copy { position: absolute; left: var(--gutter); top: calc(var(--bar-h) + 4vh); max-width: 420px; z-index: 2; }
.callouts { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.callouts li {
  position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 0;
  font-size: 15px; line-height: 1.3; opacity: 0; transition: opacity .5s; will-change: transform;
}
.callouts li.is-on { opacity: 1; }
.callouts li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(200,40,58,.18); flex: none; margin-left: -4.5px; }
.callouts li::after { content: ""; order: 1; width: 44px; height: 1px; background: var(--ink); flex: none; }
.callouts li b { display: block; font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 4px; }
.callouts li > :is(b) { }
.callouts li { --w: 220px; }
.callouts li span.t { order: 2; }
.callouts li.left { flex-direction: row-reverse; }
.callouts li.left::before { margin-left: 0; margin-right: -4.5px; }
.callouts li .t { width: var(--w); background: rgba(246,247,245,.92); padding: 10px 12px; border-radius: 4px; box-shadow: 0 0 0 1px var(--line); }
.anatomy-copy .section-sub { transition: opacity .4s; }
.anatomy.is-exploded .anatomy-copy .section-sub { opacity: 0; }
.anatomy-progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; height: 2px; background: var(--line); }
.anatomy-progress span { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }

/* ---------- try-on teaser ---------- */
.tryon-teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(80px, 14vh, 160px) var(--gutter); }
.tryon-mirror {
  position: relative; aspect-ratio: 4 / 5; max-height: 76vh; justify-self: center; width: min(100%, 520px);
  border-radius: 999px 999px 10px 10px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, #fff, var(--paper-2) 60%, var(--paper-3));
  box-shadow: inset 0 0 0 10px var(--paper), inset 0 0 0 11px var(--line);
}
.tryon-mirror canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tryon-copy { display: grid; gap: 0; justify-items: start; max-width: 520px; }
.tryon-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 26px; }

/* ---------- service ---------- */
.service { padding: 0 var(--gutter) clamp(60px, 10vh, 110px); }
.service ul { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.service li { padding: 22px 20px 0 0; display: grid; gap: 4px; }
.service b { font: 400 16px/1.1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; }
.service span { font-size: 15px; color: var(--ink-2); }

/* ---------- footer ---------- */
.foot { background: var(--night); color: var(--paper); padding: 56px var(--gutter) 40px; }
.foot-cols { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 32px; align-items: start; }
.foot-brand { color: #9AA5AC; font-size: 15px; }
.foot-brand .wordmark { color: var(--paper); display: inline-block; margin-bottom: 10px; }
.foot nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.foot nav a { text-decoration: none; font-size: 15px; color: #C8D0D4; }
.foot nav a:hover { color: #fff; text-decoration: underline; }
.foot .fine { color: #7E8A91; }

/* ---------- product sheet ---------- */
.sheet, .drawer { position: fixed; inset: 0; z-index: 60; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(12,16,19,.42); opacity: 0; transition: opacity .35s; }
.is-open .sheet-scrim { opacity: 1; }
.sheet-panel {
  position: absolute; inset: 18px; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(340px, 1fr);
  background: var(--paper); border-radius: 10px; overflow: hidden; outline: none;
  transform: translateY(24px); opacity: 0; transition: transform .45s var(--ease), opacity .35s;
}
.is-open .sheet-panel { transform: none; opacity: 1; }
.sheet-x { position: absolute; right: 16px; top: 16px; z-index: 3; }
.sheet-view { position: relative; background: radial-gradient(ellipse at 50% 45%, #fff, var(--paper-2) 70%); min-height: 0; }
.sheet-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.sheet-view canvas:active { cursor: grabbing; }
.sheet-tools { position: absolute; left: 18px; bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.sheet-drag { position: absolute; right: 18px; bottom: 26px; font: 500 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.sheet-info { overflow-y: auto; padding: 56px clamp(22px, 3vw, 44px) 36px; display: flex; flex-direction: column; gap: 18px; overscroll-behavior: contain; }
.sheet-info .display { margin: 0; font-size: clamp(44px, 5vw, 76px); }
.sheet-price { font: 700 24px/1 var(--f-body); font-variant-numeric: tabular-nums; }
.sheet-price small { font: 400 13px/1 var(--f-body); color: var(--ink-2); margin-left: 6px; }
.sheet-blurb { color: var(--ink-2); }
.measure { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.measure div { display: grid; gap: 4px; }
.measure b { font: 600 22px/1 var(--f-mono); display: flex; align-items: center; gap: 8px; }
.measure span { font-size: 13px; color: var(--ink-2); }
.opt { display: grid; gap: 10px; }
.opt legend { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.opt legend span { font-weight: 400; color: var(--ink-2); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0; position: relative; background: var(--c, #ccc);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); transition: transform .2s var(--ease);
}
.swatch::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid transparent; transition: border-color .2s; }
.swatch:hover { transform: scale(1.06); }
.swatch[aria-checked="true"]::after { border-color: var(--ink); }
.swatch.is-tortoise { background: radial-gradient(circle at 30% 35%, #c98430 0 18%, transparent 19%), radial-gradient(circle at 68% 60%, #2a1206 0 22%, transparent 23%), radial-gradient(circle at 40% 75%, #3a1a08 0 14%, transparent 15%), #8a4a17; }
.swatch.is-metal { background: linear-gradient(135deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c) 45%, color-mix(in srgb, var(--c) 60%, #000)); }
.swatch.is-translucent { background: linear-gradient(135deg, color-mix(in srgb, var(--c) 55%, #fff), var(--c)); }
.swatch.is-mirror { background: linear-gradient(135deg, #8fb6ef, #3b5c8c 55%, #1d2b3d); }
.opt-desc { font-size: 15px; color: var(--ink-2); min-height: 2.4em; }
.specs { display: grid; gap: 6px; font: 500 13px/1.4 var(--f-mono); color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 16px; }
.specs li::before { content: "— "; }

/* ---------- drawer ---------- */
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--paper); display: flex; flex-direction: column; outline: none;
  transform: translateX(100%); transition: transform .45s var(--ease); box-shadow: -20px 0 60px rgba(0,0,0,.12);
}
.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px var(--gutter) 16px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font: 400 22px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; overscroll-behavior: contain; }
.drawer-foot { border-top: 1px solid var(--line); padding: 18px 24px calc(18px + env(safe-area-inset-bottom)); display: grid; gap: 12px; }
.line { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line-img { width: 96px; aspect-ratio: 4 / 3; border-radius: 4px; background: var(--paper-2); object-fit: cover; }
.line-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.line-name { font: 400 18px/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; }
.line-price { font: 700 16px/1 var(--f-body); font-variant-numeric: tabular-nums; }
.line-var { font-size: 14px; color: var(--ink-2); margin: 6px 0 10px; }
.line-ctl { display: flex; align-items: center; justify-content: space-between; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 36px; height: 34px; border: 0; background: none; font-size: 18px; line-height: 1; }
.qty output { min-width: 22px; text-align: center; font: 600 14px/1 var(--f-mono); }
.link-btn { background: none; border: 0; padding: 6px 0; font-size: 14px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--ink); }
.sum { display: grid; gap: 6px; font-size: 15px; }
.sum div { display: flex; justify-content: space-between; }
.sum .total { font-weight: 700; font-size: 18px; padding-top: 6px; }
.sum .mono { font-family: var(--f-body); font-weight: 700; font-variant-numeric: tabular-nums; }
.empty { padding: 48px 0; text-align: center; display: grid; gap: 16px; justify-items: center; color: var(--ink-2); }
.empty-chart { font: 400 46px/1.1 var(--f-display); letter-spacing: .3em; color: var(--line); }

/* ---------- try-on overlay ---------- */
.tryon { position: fixed; inset: 0; z-index: 80; background: #000; color: var(--paper); display: flex; flex-direction: column; }
.tryon-stage { position: relative; flex: 1; overflow: hidden; }
.tryon-stage video, .tryon-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.tryon-status { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: 90%; text-align: center; font-size: 16px; background: rgba(0,0,0,.55); padding: 12px 18px; border-radius: 999px; }
.tryon-status:empty { display: none; }
.tryon-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom)); background: #0b0d0f; }
.tryon-models { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.tryon-models .chip { background: transparent; color: var(--paper); border-color: rgba(255,255,255,.25); flex: none; }
.tryon-models .chip[aria-checked="true"] { background: var(--paper); color: var(--ink); }
.tryon-actions { display: flex; gap: 8px; align-items: center; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 90; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--paper); padding: 12px 20px; border-radius: 999px; font-size: 15px; opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease); max-width: calc(100% - 32px);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { background: none; border: 0; color: #fff; text-decoration: underline; margin-left: 10px; font-weight: 600; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lab { grid-template-columns: 1fr; }
  .lab-stage { aspect-ratio: 16 / 11; min-height: 0; }
  .service ul { grid-template-columns: repeat(2, 1fr); }
  .sheet-panel { grid-template-columns: 1fr; grid-template-rows: minmax(300px, 46vh) auto; overflow-y: auto; }
  .sheet-info { overflow: visible; padding-top: 28px; }
}
@media (max-width: 760px) {
  :root { --bar-h: 58px; }
  body { font-size: 16px; }
  .bar { grid-template-columns: 1fr auto; }
  .bar-nav { display: none; }
  .bar-cart > span:first-child { font-size: 14px; }
  .hero { min-height: 560px; }
  .hero-foot { flex-direction: column; align-items: stretch; gap: 16px; }
  .hero-intro { max-width: none; grid-template-columns: 1fr auto; align-items: end; }
  .hero-intro .eyebrow, .hero-lede { grid-column: 1 / -1; }
  .hero-lede { font-size: 15px; }
  .tint-pick { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); max-width: none; }
  .tint-pick .chip { flex: none; }
  .tint-pick legend { display: none; }
  .grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .tryon-teaser { grid-template-columns: 1fr; }
  .tryon-mirror { max-height: 60vh; }
  .service ul { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr; }
  .sheet-panel { inset: 8px 0 0 0; border-radius: 14px 14px 0 0; }
  .callouts { inset: auto 0 52px 0; display: grid; gap: 6px; padding: 0 var(--gutter); }
  .callouts li { position: static; transform: none !important; display: none; }
  .callouts li.is-current { display: flex; opacity: 1; }
  .callouts li::before, .callouts li::after { display: none; }
  .callouts li .t { width: 100%; }
  .anatomy-copy { right: var(--gutter); }
  .anatomy-copy .section-sub { font-size: 15px; }
  .tryon-actions { width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
