/* ============================================================
   ASHLEE3D — DESIGN SYSTEM
   Tokens → primitives → components → page layouts
   Single-theme by choice: the brand lives in a dark studio.
   ============================================================ */

:root {
  /* Color tokens: brushed silver body, dark display cases (lab, fabrication, lightbox) */
  --carbon: #D4D7DB;        /* page background (silver) */
  --graphite: #C2C7CD;      /* surfaces, image slots */
  --gunmetal: #A6ADB6;      /* lines */
  --steel: #7D858F;         /* muted, disabled */
  --titanium: #474E58;      /* secondary text */
  --frost: #0E1116;         /* primary text (ink) */
  --volt: #C7FF35;          /* accent fill: key CTAs, active states */
  --volt-ink: #0C1200;      /* text on volt */
  --accent-text: #3D5C00;   /* accent as text on silver */
  --line-rgb: 14, 17, 22;   /* hairlines, textures */
  --bg-rgb: 212, 215, 219;  /* translucent page overlays */

  /* Type */
  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;

  /* Scale (minor third on body, display is fluid) */
  --t-xs: 0.6875rem;   /* 11 */
  --t-sm: 0.8125rem;   /* 13 */
  --t-base: 1rem;      /* 16 */
  --t-md: 1.1875rem;   /* 19 */
  --t-lg: 1.5rem;      /* 24 */
  --t-xl: 2rem;        /* 32 */
  --d-sm: clamp(2rem, 4vw, 3.25rem);
  --d-md: clamp(2.75rem, 7vw, 6rem);
  --d-lg: clamp(3.25rem, 9.5vw, 8.5rem);
  --d-xl: clamp(3.75rem, 12vw, 12rem);

  /* Layout: 12-col grid, asymmetric content pushed off a left "spec rail" */
  --gutter: clamp(16px, 4vw, 56px);
  --col: minmax(0, 1fr);
  --rail: clamp(72px, 10vw, 160px);
  --max: 1680px;

  /* Spacing */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 144px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-snap: cubic-bezier(0.2, 0.9, 0.1, 1);
  --d-fast: 160ms; --d-base: 320ms; --d-slow: 640ms; --d-cine: 1100ms;

  /* Shape */
  --r-0: 0; --r-1: 2px; --r-2: 6px; --r-pill: 999px;

  color-scheme: light;
}

/* Dark display cases keep the original studio palette */
.lab, .fab, .lightbox, .zone-dark {
  --carbon: #08090B; --graphite: #15171B; --gunmetal: #22262C; --steel: #3A3F47;
  --titanium: #B7BEC7; --frost: #F4F5F2; --accent-text: #C7FF35;
  --line-rgb: 255, 255, 255; --bg-rgb: 8, 9, 11;
  color: var(--frost); color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100%;
  background-color: var(--carbon); color: var(--frost);
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.10) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #E1E4E7 0%, #CDD1D6 45%, #C3C8CE 100%);
  background-attachment: fixed;
  font-family: var(--font-body); font-size: var(--t-base); line-height: 1.5;
  font-feature-settings: "ss01", "cv05";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--frost); outline-offset: 3px; box-shadow: 0 0 0 5px var(--volt); }
::selection { background: var(--volt); color: var(--volt-ink); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typography primitives ---------- */
.display {
  font-family: var(--font-display); font-weight: 800; line-height: 0.86;
  letter-spacing: -0.012em; text-transform: uppercase; text-wrap: balance;
}
.display--xl { font-size: var(--d-xl); font-weight: 900; letter-spacing: -0.02em; }
.display--lg { font-size: var(--d-lg); }
.display--md { font-size: var(--d-md); }
.display--sm { font-size: var(--d-sm); font-weight: 700; }
.display--outline {
  color: transparent; -webkit-text-stroke: 1px var(--titanium);
}
.display--light { font-weight: 500; }
.mono {
  font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--titanium); font-variant-numeric: tabular-nums;
}
.mono--volt { color: var(--accent-text); }
.mono--frost { color: var(--frost); }
.lede { font-size: var(--t-md); line-height: 1.45; color: var(--titanium); max-width: 34em; text-wrap: pretty; }
.lede--frost { color: var(--frost); }
.body-copy { max-width: 62ch; color: var(--titanium); }
.body-copy p + p { margin-top: 1em; }
.body-copy strong { color: var(--frost); font-weight: 600; }
.measure { max-width: 62ch; }

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, var(--col)); column-gap: clamp(12px, 2vw, 32px); }
.rail-grid { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); column-gap: clamp(16px, 3vw, 48px); }
.section { padding-block: var(--s-9); position: relative; }
.section--tight { padding-block: var(--s-8); }
.section--flush { padding-block: 0; }
.rule { height: 1px; background: var(--gunmetal); border: 0; margin: 0; }
.stack > * + * { margin-top: var(--s-5); }
.stack--sm > * + * { margin-top: var(--s-3); }
.row { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.row--end { justify-content: flex-end; }

/* Spec rail: section index + technical note */
.spec-rail { position: sticky; top: 96px; align-self: start; display: grid; gap: var(--s-3); }
.spec-rail .idx { font-family: var(--font-display); font-weight: 700; font-size: var(--t-xl); line-height: 1; color: var(--frost); }
.spec-rail .note { font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--titanium); line-height: 1.6; }
.spec-rail .tick { width: 24px; height: 1px; background: var(--volt); }

/* Section header pattern */
.sec-head { display: grid; gap: var(--s-5); margin-bottom: var(--s-7); }
.sec-head .display { max-width: 12ch; }
@media (min-width: 900px) {
  .sec-head { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: end; column-gap: var(--s-8); }
  .sec-head .lede { justify-self: end; margin-bottom: 0.5em; }
}

/* Layer-line texture: the brand's physical fingerprint (0.2 mm layers) */
.layers {
  background-image: repeating-linear-gradient(
    0deg, rgba(var(--line-rgb),0.045) 0 1px, transparent 1px 7px
  );
}
.dots {
  background-image: radial-gradient(rgba(var(--line-rgb),0.09) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--frost); --btn-line: var(--steel);
  position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: var(--s-3);
  padding: 0.95em 1.5em; min-height: 48px;
  font-family: var(--font-mono); font-size: var(--t-sm); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--btn-fg); background: var(--btn-bg); border: 1px solid var(--btn-line); border-radius: var(--r-1);
  overflow: hidden; transition: color var(--d-base) var(--ease-out), border-color var(--d-base) var(--ease-out), transform var(--d-base) var(--ease-out);
  white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--frost);
  transform: translateY(101%); transition: transform var(--d-base) var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover, .btn:focus-visible { color: var(--carbon); border-color: var(--frost); }
.btn--volt { --btn-bg: var(--volt); --btn-fg: var(--volt-ink); --btn-line: var(--volt); }
.btn--volt::before { background: var(--frost); }
.btn--volt:hover { border-color: var(--frost); }
.btn--ghost { --btn-line: transparent; padding-inline: 0.75em; }
.btn--ghost::before { display: none; }
.btn--ghost:hover { color: var(--accent-text); border-color: transparent; }
.btn--block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn .arrow { width: 14px; height: 14px; transition: transform var(--d-base) var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--sm { min-height: 38px; padding: 0.6em 1em; font-size: var(--t-xs); }

/* Text link with technical underline */
.tlink { position: relative; font-family: var(--font-mono); font-size: var(--t-sm); letter-spacing: 0.08em; text-transform: uppercase; color: var(--frost); padding-bottom: 2px; }
.tlink::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--volt); transform: scaleX(0.3); transform-origin: left; transition: transform var(--d-base) var(--ease-out); }
.tlink:hover::after, .tlink:focus-visible::after { transform: scaleX(1); }

/* Chips / tags */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--gunmetal); border-radius: var(--r-pill); font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--titanium); transition: border-color var(--d-fast), color var(--d-fast), background var(--d-fast); }
.chip:hover { border-color: var(--titanium); color: var(--frost); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--frost); color: var(--carbon); border-color: var(--frost); }
.chip--volt { color: var(--accent-text); border-color: color-mix(in srgb, var(--volt) 40%, transparent); }

/* ---------- Image slot (placeholder system) ----------
   Every photo in the site is a .slot. Replace by giving it an <img>
   (data.js: image: "path.jpg") — the spec text is for the shoot. */
.slot {
  container-type: inline-size;
  position: relative; overflow: hidden; background: var(--graphite);
  border: 1px solid var(--gunmetal); border-radius: var(--r-1);
  aspect-ratio: var(--ar, 4 / 5); isolation: isolate;
}
.slot::before { /* studio spotlight */
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 55% at 50% 42%, rgba(255,255,255,0.35), transparent 70%),
    radial-gradient(90% 60% at 50% 110%, rgba(199,255,53,0.08), transparent 60%);
}
.slot::after { /* layer lines */
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0.9;
  background-image: repeating-linear-gradient(0deg, rgba(var(--line-rgb),0.035) 0 1px, transparent 1px 6px);
  mask-image: linear-gradient(180deg, transparent 10%, #000 55%, #000 100%);
}
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.slot .slot-tag {
  position: absolute; top: 10px; left: 10px; z-index: 2; display: inline-flex; gap: 8px; align-items: center;
  padding: 5px 8px; background: rgba(var(--bg-rgb),0.7); backdrop-filter: blur(6px); border: 1px solid var(--gunmetal); border-radius: var(--r-1);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--titanium);
}
.slot .slot-tag i { width: 6px; height: 6px; background: var(--volt); border-radius: 50%; display: inline-block; }
.slot .slot-spec {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; line-height: 1.6; color: var(--titanium);
  text-transform: uppercase; opacity: 0.9; max-width: 44ch;
}
.slot .slot-spec b { color: var(--frost); font-weight: 500; }
.slot .crosshair { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.slot .crosshair::before, .slot .crosshair::after { content: ""; position: absolute; background: rgba(var(--line-rgb),0.08); }
.slot .crosshair::before { left: 50%; top: 18%; bottom: 18%; width: 1px; }
.slot .crosshair::after { top: 50%; left: 18%; right: 18%; height: 1px; }
.slot.has-img::before, .slot.has-img::after, .slot.has-img .crosshair, .slot.has-img .slot-spec { display: none; }
.slot.has-img .slot-tag { display: none; }
.slot--flat::before { background: radial-gradient(70% 70% at 50% 50%, rgba(var(--line-rgb),0.05), transparent 70%); }
.slot--flat::after { background-image: linear-gradient(rgba(var(--line-rgb),0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--line-rgb),0.06) 1px, transparent 1px); background-size: 28px 28px; mask-image: none; opacity: 1; }
.slot--square { --ar: 1; }
.slot--wide { --ar: 16 / 9; }
.slot--tall { --ar: 3 / 4; }
.slot--portrait { --ar: 4 / 5; }
.slot--cinema { --ar: 21 / 9; }

@container (max-width: 260px) { .slot-spec { display: none; } }
@container (max-width: 120px) { .slot-tag { display: none; } }

/* ---------- Cards ---------- */
.card { display: grid; gap: var(--s-4); color: inherit; }
.card .slot { transition: transform var(--d-slow) var(--ease-out); }
.card:hover .slot img { transform: scale(1.03); }
.card .slot img { transition: transform var(--d-cine) var(--ease-out); }
.card-meta { display: grid; grid-template-columns: 1fr auto; gap: var(--s-2) var(--s-4); align-items: baseline; }
.card-title { font-family: var(--font-display); font-weight: 700; font-size: var(--t-xl); line-height: 0.95; text-transform: uppercase; letter-spacing: -0.005em; }
.card-price { font-family: var(--font-mono); font-size: var(--t-sm); color: var(--frost); font-variant-numeric: tabular-nums; }
.card-sub { font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--titanium); grid-column: 1 / -1; }
.card:hover .card-title { color: var(--accent-text); }
.card .card-title { transition: color var(--d-base) var(--ease-out); }

/* ---------- Forms ---------- */
.field { display: grid; gap: var(--s-2); }
.field label, .field .label { font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--titanium); }
.field .hint { font-size: var(--t-sm); color: var(--titanium); }
.field .err { font-family: var(--font-mono); font-size: var(--t-xs); color: #FF7A59; letter-spacing: 0.04em; display: none; }
.field.is-invalid .err { display: block; }
.field.is-invalid .input { border-color: #FF7A59; }
.input {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--graphite); border: 1px solid var(--gunmetal); border-radius: var(--r-1);
  transition: border-color var(--d-fast), background var(--d-fast);
}
.input:hover { border-color: var(--steel); }
.input:focus { outline: none; border-color: var(--frost); background: color-mix(in srgb, var(--graphite) 55%, white); }
.input::placeholder { color: var(--steel); }
textarea.input { min-height: 140px; resize: vertical; line-height: 1.5; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--titanium) 50%), linear-gradient(135deg, var(--titanium) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }

/* Choice tiles (radio cards) */
.tiles { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.tile { position: relative; display: grid; gap: var(--s-3); padding: var(--s-4); min-height: 120px; background: var(--graphite); border: 1px solid var(--gunmetal); border-radius: var(--r-1); cursor: pointer; transition: border-color var(--d-fast), transform var(--d-base) var(--ease-out); }
.tile input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tile:hover { border-color: var(--titanium); }
.tile:has(input:checked) { border-color: var(--volt); box-shadow: inset 0 0 0 1px var(--volt); }
.tile:has(input:focus-visible) { outline: 2px solid var(--volt); outline-offset: 3px; }
.tile .tile-name { font-family: var(--font-display); font-weight: 700; font-size: var(--t-lg); text-transform: uppercase; line-height: 1; }
.tile .tile-sub { font-size: var(--t-sm); color: var(--titanium); }
.tile .tile-k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--titanium); }
.tile:has(input:checked) .tile-k { color: var(--accent-text); }

/* Swatches */
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(var(--line-rgb),0.14); cursor: pointer; transition: transform var(--d-fast) var(--ease-out); }
.swatch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.swatch:hover { transform: scale(1.08); }
.swatch:has(input:checked) { box-shadow: 0 0 0 2px var(--carbon), 0 0 0 4px var(--volt); }
.swatch:has(input:focus-visible) { outline: 2px solid var(--volt); outline-offset: 4px; }
.swatch[data-multi]::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(#C7FF35, #F4F5F2, #FF4D6D, #2D9CFF, #C7FF35); }

/* Toggle switch */
.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; }
.toggle .knob { width: 38px; height: 22px; border-radius: 999px; background: var(--gunmetal); position: relative; transition: background var(--d-fast); }
.toggle .knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--titanium); transition: transform var(--d-base) var(--ease-out), background var(--d-fast); }
.toggle input:checked + .knob { background: var(--volt); }
.toggle input:checked + .knob::after { transform: translateX(16px); background: var(--volt-ink); }

/* ---------- Header / Nav ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: 72px;
  display: flex; align-items: center;
  background: linear-gradient(180deg, rgba(var(--bg-rgb),0.85), rgba(var(--bg-rgb),0));
  transition: background var(--d-base), transform var(--d-base) var(--ease-out);
  pointer-events: none;
}
.header > .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; pointer-events: auto; }
.header.is-scrolled { background: rgba(var(--bg-rgb),0.82); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(var(--line-rgb),0.05); }
.header.is-hidden { transform: translateY(-100%); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; letter-spacing: 0.02em; line-height: 1; }
.brand .mark { width: 40px; height: 40px; object-fit: contain; }
.footer-logo { width: 220px; height: auto; }
.brand sup { font-family: var(--font-mono); font-size: 9px; font-weight: 400; letter-spacing: 0.1em; color: var(--titanium); vertical-align: top; margin-left: -4px; }
.nav { display: none; gap: var(--s-6); justify-self: center; }
.nav a { font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--titanium); position: relative; padding: 8px 0; transition: color var(--d-fast); }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 2px; height: 1px; width: 100%; background: var(--volt); transform: scaleX(0); transform-origin: right; transition: transform var(--d-base) var(--ease-out); }
.nav a:hover, .nav a.is-active { color: var(--frost); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.header-tools { display: flex; justify-content: flex-end; align-items: center; gap: var(--s-3); }
.icon-btn { position: relative; width: 44px; height: 44px; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: var(--r-1); color: var(--frost); transition: border-color var(--d-fast), background var(--d-fast); }
.icon-btn:hover { border-color: var(--gunmetal); background: rgba(var(--line-rgb),0.03); }
.icon-btn svg { width: 20px; height: 20px; }
.cart-count { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--volt); color: var(--volt-ink); font-family: var(--font-mono); font-size: 10px; display: grid; place-items: center; transform: scale(0); transition: transform var(--d-base) var(--ease-snap); }
.cart-count.is-on { transform: scale(1); }
.burger { display: inline-grid; }
.burger span { display: block; width: 18px; height: 1.5px; background: var(--frost); margin: 2.5px 0; transition: transform var(--d-base) var(--ease-out), opacity var(--d-fast); }
body.menu-open .burger span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }
@media (min-width: 900px) { .nav { display: flex; } .burger { display: none; } }

/* Full-screen menu (mobile + a nice desktop overflow) */
.menu { position: fixed; inset: 0; z-index: 55; background: var(--carbon); display: grid; grid-template-rows: 1fr auto; padding: 96px var(--gutter) var(--s-6); transform: translateY(-100%); transition: transform var(--d-slow) var(--ease-in-out); visibility: hidden; }
body.menu-open .menu { transform: translateY(0); visibility: visible; }
.menu-links { display: grid; align-content: center; gap: 2px; }
.menu-links a { font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 12vw, 7rem); line-height: 0.9; text-transform: uppercase; display: flex; align-items: baseline; gap: 16px; transition: color var(--d-fast); }
.menu-links a small { font-family: var(--font-mono); font-size: var(--t-xs); font-weight: 400; letter-spacing: 0.1em; color: var(--titanium); }
.menu-links a:hover { color: var(--accent-text); }
.menu-foot { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6); }
.menu-foot a { font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--titanium); }

/* ---------- Page shell / transitions ---------- */
#app { min-height: 100vh; }
.page { opacity: 1; }
.page-enter { animation: pageIn var(--d-slow) var(--ease-out) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.wipe { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: grid; grid-template-columns: repeat(5, 1fr); }
.wipe span { background: var(--graphite); transform: scaleY(0); transform-origin: bottom; }
.wipe.is-in span { animation: wipeIn 0.42s var(--ease-in-out) both; }
.wipe.is-out span { animation: wipeOut 0.42s var(--ease-in-out) both; transform-origin: top; }
.wipe span:nth-child(2) { animation-delay: 40ms !important; }
.wipe span:nth-child(3) { animation-delay: 80ms !important; }
.wipe span:nth-child(4) { animation-delay: 120ms !important; }
.wipe span:nth-child(5) { animation-delay: 160ms !important; }
@keyframes wipeIn { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes wipeOut { from { transform: scaleY(1); } to { transform: scaleY(0); } }

/* Page hero (interior pages) */
.page-hero { padding: 140px 0 var(--s-8); }
.page-hero .kicker { display: flex; gap: var(--s-4); align-items: center; margin-bottom: var(--s-5); }
.page-hero .kicker .line { width: 48px; height: 1px; background: var(--volt); }
.page-hero .display { max-width: 10ch; }
.page-hero .lede { margin-top: var(--s-5); }

/* Breadcrumb */
.crumbs { display: flex; gap: 10px; align-items: center; font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--titanium); }
.crumbs a:hover { color: var(--frost); }
.crumbs i { width: 4px; height: 4px; background: var(--steel); border-radius: 50%; }

/* ---------- Custom cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 100; pointer-events: none; width: 10px; height: 10px; border-radius: 50%; background: var(--volt); box-shadow: 0 0 0 1px #0E1116; transform: translate(-50%, -50%); display: none; }
.cursor-ring { position: fixed; top: 0; left: 0; z-index: 100; pointer-events: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(var(--line-rgb),0.45); transform: translate(-50%, -50%); transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), border-color 0.25s, background 0.25s; display: none; }
.cursor-ring .cursor-label { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--volt-ink); opacity: 0; transition: opacity 0.2s; }
.cursor-ring.is-hover { width: 56px; height: 56px; border-color: var(--volt); }
.cursor-ring.is-label { width: 84px; height: 84px; background: var(--volt); border-color: var(--volt); }
.cursor-ring.is-label .cursor-label { opacity: 1; }
@media (hover: hover) and (pointer: fine) { body.has-cursor { cursor: none; } body.has-cursor a, body.has-cursor button, body.has-cursor label, body.has-cursor input, body.has-cursor select, body.has-cursor textarea { cursor: none; } .cursor, .cursor-ring { display: block; } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 95; transform: translate(-50%, 24px); opacity: 0; padding: 12px 16px; background: var(--frost); color: var(--carbon); border-radius: var(--r-1); font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: 0.08em; text-transform: uppercase; transition: transform var(--d-base) var(--ease-out), opacity var(--d-base); pointer-events: none; display: flex; gap: 10px; align-items: center; max-width: calc(100vw - 32px); }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.toast i { width: 8px; height: 8px; border-radius: 50%; background: var(--volt); border: 1px solid var(--volt-ink); }

/* ---------- Cart drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 80; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(var(--bg-rgb),0.6); backdrop-filter: blur(2px); opacity: 0; transition: opacity var(--d-base); }
.drawer.is-open .scrim { opacity: 1; }
.drawer .panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(480px, 100%); background: var(--carbon); border-left: 1px solid var(--gunmetal); display: grid; grid-template-rows: auto 1fr auto; transform: translateX(100%); transition: transform var(--d-slow) var(--ease-out); }
.drawer.is-open .panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: var(--s-5) var(--s-5) var(--s-4); border-bottom: 1px solid var(--gunmetal); }
.drawer-body { overflow: auto; padding: var(--s-4) var(--s-5); display: grid; gap: var(--s-4); align-content: start; }
.drawer-foot { padding: var(--s-5); border-top: 1px solid var(--gunmetal); display: grid; gap: var(--s-3); }
.line-item { display: grid; grid-template-columns: 72px 1fr auto; gap: var(--s-3); align-items: start; }
.line-item .slot { --ar: 1; }
.line-item .li-title { font-family: var(--font-display); font-weight: 700; font-size: var(--t-lg); text-transform: uppercase; line-height: 1; }
.line-item .li-meta { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--titanium); margin-top: 6px; line-height: 1.6; }
.qty { display: inline-flex; border: 1px solid var(--gunmetal); border-radius: var(--r-1); }
.qty button { width: 32px; height: 32px; display: grid; place-items: center; color: var(--titanium); }
.qty button:hover { color: var(--frost); background: rgba(var(--line-rgb),0.04); }
.qty span { min-width: 28px; display: grid; place-items: center; font-family: var(--font-mono); font-size: var(--t-sm); }
.empty { display: grid; gap: var(--s-3); padding: var(--s-7) 0; text-align: left; }
.empty .display { color: var(--steel); }
.notice { padding: var(--s-4); border: 1px solid var(--gunmetal); border-left: 2px solid var(--volt); background: var(--graphite); border-radius: var(--r-1); font-size: var(--t-sm); color: var(--titanium); line-height: 1.55; }
.notice b { color: var(--frost); font-weight: 600; }
.notice code { font-family: var(--font-mono); font-size: 0.85em; color: var(--accent-text); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--gunmetal); padding: var(--s-9) 0 var(--s-6); position: relative; overflow: hidden; }
.footer-grid { display: grid; gap: var(--s-7); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer h4 { font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--titanium); margin-bottom: var(--s-4); font-weight: 400; }
.footer li + li { margin-top: 10px; }
.footer li a { color: var(--frost); font-size: var(--t-sm); transition: color var(--d-fast); }
.footer li a:hover { color: var(--accent-text); }
.footer-mark { font-family: var(--font-display); font-weight: 900; font-size: clamp(5rem, 22vw, 22rem); line-height: 0.75; letter-spacing: -0.03em; color: transparent; -webkit-text-stroke: 1px var(--gunmetal); margin-top: var(--s-8); user-select: none; white-space: nowrap; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6); justify-content: space-between; margin-top: var(--s-6); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--titanium); }

/* ============================================================
   HOME
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; padding: 96px 0 var(--s-6); overflow: hidden; isolation: isolate; }
.hero-canvas { position: absolute; inset: 0; z-index: 0; opacity: 0.9; }
.hero-light { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(55% 50% at 62% 40%, rgba(255,255,255,0.55), transparent 70%), radial-gradient(40% 30% at 30% 90%, rgba(199,255,53,0.07), transparent 70%); }
.hero-stage { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-stage > [data-depth] { position: absolute; inset: 0; will-change: transform; }
.hero-stage .slot { position: absolute; width: min(36vw, 520px); --ar: 4 / 5; right: 6%; top: 54%; transform: translateY(-52%); border-color: rgba(var(--line-rgb),0.08); box-shadow: 0 40px 90px rgba(14,17,22,0.28); will-change: transform; pointer-events: auto; }
.hero-stage .slot.detail { display: none; }
.hero-stage .floor { position: absolute; left: 0; right: 0; bottom: 0; height: 32%; background: linear-gradient(180deg, transparent, rgba(var(--bg-rgb),0.9)); }
.hero-copy { position: relative; z-index: 2; display: grid; gap: var(--s-5); }
.hero-copy .display { max-width: 7ch; position: relative; }
.hero-copy .display .w { display: inline-block; overflow: hidden; vertical-align: top; }
.hero-copy .display .w > span { display: inline-block; transform: translateY(110%); }
.hero-copy .display .ln { display: block; white-space: nowrap; }
.hero-copy .display .ln:nth-child(2) { margin-left: 0.6em; }
.hero-copy .display .ln:nth-child(3) { margin-left: 0.15em; }
.hero-meta { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .hero-meta { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }
.hero-cta { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.hero-tech { position: absolute; z-index: 2; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--titanium); line-height: 1.7; }
.hero-tech.tl { top: 96px; left: var(--gutter); }
.hero-tech.tr { top: 96px; right: var(--gutter); text-align: right; }
.hero-tech.br { bottom: var(--s-7); right: var(--gutter); text-align: right; display: none; }
@media (min-width: 900px) { .hero-tech.br { display: block; } }
.hero-scroll { position: absolute; left: 50%; bottom: 20px; z-index: 2; transform: translateX(-50%); width: 1px; height: 40px; background: linear-gradient(var(--volt), transparent); opacity: 0.8; }
@media (max-width: 899px) {
  .hero-stage .slot { width: 72vw; right: -8%; top: 36%; transform: translateY(-50%) rotate(-4deg); opacity: 0.6; }
  .hero-stage .slot.detail { display: none; }
  .hero { padding-top: 110px; }
}

/* Marquee */
.marquee { overflow: hidden; border-top: 1px solid var(--gunmetal); border-bottom: 1px solid var(--gunmetal); padding: 14px 0; white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 48px; animation: marquee 40s linear infinite; will-change: transform; }
.marquee-track span { font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--titanium); display: inline-flex; align-items: center; gap: 48px; }
.marquee-track span i { width: 5px; height: 5px; background: var(--volt); display: inline-block; transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Object Lab */
.lab { background: var(--graphite); border-block: 1px solid var(--gunmetal); }
.lab-shell { display: grid; gap: var(--s-6); }
@media (min-width: 1100px) { .lab-shell { grid-template-columns: 260px minmax(0, 1fr) 320px; gap: var(--s-6); } }
.lab-list { display: grid; gap: 2px; align-content: start; }
.lab-item { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: center; text-align: left; padding: 14px 12px; border: 1px solid transparent; border-radius: var(--r-1); transition: background var(--d-fast), border-color var(--d-fast); }
.lab-item:hover { background: rgba(var(--line-rgb),0.03); }
.lab-item[aria-selected="true"] { background: var(--carbon); border-color: var(--gunmetal); }
.lab-item .n { font-family: var(--font-mono); font-size: 10px; color: var(--titanium); }
.lab-item[aria-selected="true"] .n { color: var(--accent-text); }
.lab-item .t, .lab-item .c { display: block; }
.lab-item .t { font-family: var(--font-display); font-weight: 700; font-size: var(--t-lg); text-transform: uppercase; line-height: 1; }
.lab-item .c { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--titanium); margin-top: 4px; }
.lab-stage { position: relative; background: var(--carbon); border: 1px solid var(--gunmetal); border-radius: var(--r-2); min-height: 520px; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; }
.lab-stage[data-bg="carbon"] .lab-view { background: var(--carbon); }
.lab-stage[data-bg="graphite"] .lab-view { background: #1B1E23; }
.lab-stage[data-bg="frost"] .lab-view { background: #E9EBE6; }
.lab-stage[data-bg="volt"] .lab-view { background: var(--volt); }
.lab-stage[data-bg="frost"] .lab-view .slot, .lab-stage[data-bg="volt"] .lab-view .slot { background: rgba(0,0,0,0.08); border-color: rgba(0,0,0,0.1); }
.lab-stage[data-bg="frost"] .slot-spec, .lab-stage[data-bg="volt"] .slot-spec, .lab-stage[data-bg="frost"] .lab-readout, .lab-stage[data-bg="volt"] .lab-readout { color: #2A2E35; }
.lab-stage[data-bg="frost"] .slot-spec b, .lab-stage[data-bg="volt"] .slot-spec b { color: #08090B; }
.lab-stage[data-bg="frost"] .slot .slot-tag, .lab-stage[data-bg="volt"] .slot .slot-tag { background: rgba(var(--line-rgb),0.75); color: #2A2E35; border-color: rgba(0,0,0,0.1); }
.lab-bar { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: 12px 14px; border-bottom: 1px solid var(--gunmetal); flex-wrap: wrap; }
.lab-bar .seg { display: inline-flex; gap: 2px; padding: 2px; background: var(--graphite); border-radius: var(--r-1); border: 1px solid var(--gunmetal); }
.lab-bar .seg button { padding: 6px 10px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--titanium); border-radius: 2px; transition: background var(--d-fast), color var(--d-fast); }
.lab-bar .seg button[aria-pressed="true"] { background: var(--frost); color: var(--carbon); }
.lab-bar .bgs { display: inline-flex; gap: 8px; align-items: center; }
.lab-bar .bgs button { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(var(--line-rgb),0.2); }
.lab-bar .bgs button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--carbon), 0 0 0 3px var(--volt); }
.lab-view { position: relative; display: grid; place-items: center; padding: var(--s-6); transition: background var(--d-slow) var(--ease-out); min-height: 380px; touch-action: none; user-select: none; }
.lab-view .obj { position: relative; width: min(100%, 340px); transition: transform var(--d-slow) var(--ease-out); will-change: transform; }
.lab-view .obj .slot { --ar: 3 / 4; box-shadow: 0 40px 80px rgba(0,0,0,0.5); }
.lab-view.is-zoom .obj { cursor: zoom-out; }
.lab-view .light { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; transition: opacity var(--d-slow); }
.lab-view[data-light="studio"] .light { background: radial-gradient(45% 40% at 50% 35%, rgba(var(--line-rgb),0.16), transparent 70%); }
.lab-view[data-light="rim"] .light { background: linear-gradient(100deg, transparent 40%, rgba(var(--line-rgb),0.12) 50%, transparent 60%), radial-gradient(40% 40% at 80% 20%, rgba(199,255,53,0.14), transparent 70%); }
.lab-view[data-light="soft"] .light { background: radial-gradient(80% 70% at 50% 50%, rgba(var(--line-rgb),0.08), transparent 70%); }
.lab-view[data-light="hard"] .light { background: radial-gradient(25% 22% at 38% 28%, rgba(var(--line-rgb),0.22), transparent 70%); }
.lab-readout { position: absolute; left: 14px; bottom: 12px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--titanium); line-height: 1.7; pointer-events: none; }
.lab-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: 12px 14px; border-top: 1px solid var(--gunmetal); flex-wrap: wrap; }
.lab-foot .frames { display: flex; gap: 6px; }
.lab-foot .frames button { width: 44px; height: 44px; border: 1px solid var(--gunmetal); border-radius: 2px; background: var(--graphite); overflow: hidden; position: relative; }
.lab-foot .frames button[aria-pressed="true"] { border-color: var(--volt); }
.lab-foot .frames button .slot { border: 0; border-radius: 0; --ar: 1; }
.lab-spec { display: grid; gap: var(--s-4); align-content: start; }
.lab-spec h3 { font-family: var(--font-display); font-weight: 800; font-size: var(--d-sm); text-transform: uppercase; line-height: 0.9; }
.spec-table { display: grid; border-top: 1px solid var(--gunmetal); }
.spec-table div { display: grid; grid-template-columns: 110px 1fr; gap: var(--s-3); padding: 10px 0; border-bottom: 1px solid var(--gunmetal); font-size: var(--t-sm); }
.spec-table dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--titanium); padding-top: 3px; }
.spec-table dd { margin: 0; color: var(--frost); }
.lab-colors { display: flex; gap: 8px; flex-wrap: wrap; }
.lab-colors span { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(var(--line-rgb),0.15); }

/* Concept → Object slider */
.morph { position: relative; display: grid; gap: var(--s-6); }
@media (min-width: 1000px) { .morph { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: var(--s-8); } }
.compare { position: relative; --pos: 50%; aspect-ratio: 4 / 3; border: 1px solid var(--gunmetal); border-radius: var(--r-2); overflow: hidden; background: var(--carbon); user-select: none; }
.compare .layer { position: absolute; inset: 0; }
.compare .layer .slot { position: absolute; inset: 0; aspect-ratio: auto; border: 0; border-radius: 0; }
.compare .layer--after { clip-path: inset(0 0 0 var(--pos)); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: var(--volt); transform: translateX(-0.5px); pointer-events: none; }
.compare .handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; border-radius: 50%; background: var(--volt); transform: translate(-50%, -50%); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.compare .handle i { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1; width: 16px; height: 16px; border-left: 2px solid var(--volt-ink); border-right: 2px solid var(--volt-ink); }
.compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: ew-resize; }
.compare .cap { position: absolute; bottom: 12px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 8px; background: rgba(var(--bg-rgb),0.7); border: 1px solid var(--gunmetal); border-radius: 2px; color: var(--titanium); pointer-events: none; }
.compare .cap.l { left: 12px; } .compare .cap.r { right: 12px; }
.morph-steps { display: grid; gap: 0; border-top: 1px solid var(--gunmetal); }
.morph-steps button { display: grid; grid-template-columns: 32px 1fr auto; gap: var(--s-3); align-items: center; padding: 14px 0; border-bottom: 1px solid var(--gunmetal); text-align: left; transition: color var(--d-fast); }
.morph-steps button .k { font-family: var(--font-mono); font-size: 10px; color: var(--titanium); }
.morph-steps button .t { font-family: var(--font-display); font-weight: 700; font-size: var(--t-lg); text-transform: uppercase; line-height: 1; }
.morph-steps button .p { font-family: var(--font-mono); font-size: 10px; color: var(--titanium); }
.morph-steps button[aria-pressed="true"] .k, .morph-steps button[aria-pressed="true"] .p { color: var(--accent-text); }
.morph-steps button:hover .t { color: var(--accent-text); }

/* Collections */
.collection { padding-block: var(--s-8); border-top: 1px solid var(--gunmetal); }
.collection .rail-grid { align-items: start; }
.col-body { display: grid; gap: var(--s-6); }
@media (min-width: 1000px) { .col-body { grid-template-columns: repeat(12, var(--col)); } }
.col-copy { grid-column: 1 / span 5; display: grid; gap: var(--s-5); align-content: start; }
.col-copy .display { max-width: 8ch; }
.col-media { grid-column: 6 / -1; display: grid; gap: var(--s-4); grid-template-columns: repeat(2, 1fr); }
.col-media .slot:first-child { grid-column: 1 / -1; --ar: 16 / 10; }
.collection:nth-of-type(even) .col-copy { grid-column: 8 / -1; order: 2; }
.collection:nth-of-type(even) .col-media { grid-column: 1 / span 7; order: 1; }
.collection--next .col-media { grid-template-columns: repeat(3, 1fr); }
.collection--next .col-media .slot:first-child { grid-column: auto; --ar: 3/4; }
.collection--next .col-media .slot { --ar: 3 / 4; opacity: 0.8; }

/* Fabrication (pinned sequence) */
.fab { background: var(--carbon); position: relative; }
.fab-pin { min-height: 100vh; display: grid; align-items: center; padding-block: var(--s-8); }
.fab-grid { display: grid; gap: var(--s-6); }
@media (min-width: 1000px) { .fab-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); align-items: center; } }
.fab-steps { display: grid; gap: 0; }
.fab-step { display: grid; grid-template-columns: 40px 1fr; gap: var(--s-4); padding: 18px 0; border-top: 1px solid var(--gunmetal); opacity: 0.35; transition: opacity var(--d-base); }
.fab-step.is-active { opacity: 1; }
.fab-step .k { font-family: var(--font-mono); font-size: 10px; color: var(--titanium); padding-top: 6px; }
.fab-step.is-active .k { color: var(--accent-text); }
.fab-step .t { font-family: var(--font-display); font-weight: 800; font-size: var(--d-sm); line-height: 0.9; text-transform: uppercase; }
.fab-step .d { color: var(--titanium); font-size: var(--t-sm); margin-top: 8px; max-width: 42ch; }
.fab-stage { position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--gunmetal); border-radius: var(--r-2); overflow: hidden; background: var(--graphite); }
.fab-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.fab-stage .fab-hud { position: absolute; left: 14px; top: 12px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--titanium); line-height: 1.7; }
.fab-stage .fab-hud b { color: var(--accent-text); font-weight: 500; }
.fab-stage .fab-slot { position: absolute; inset: 0; }
.fab-stage .fab-slot .slot { position: absolute; inset: 0; aspect-ratio: auto; border: 0; border-radius: 0; opacity: 0; transition: opacity var(--d-slow); }
.fab-stage .fab-slot .slot.is-active { opacity: 1; }
.fab-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gunmetal); }
.fab-progress i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 0%); background: var(--volt); transition: width 0.2s linear; }

/* Community gallery (editorial mosaic) */
.mosaic { display: grid; gap: var(--s-3); grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(140px, auto); grid-auto-flow: dense; }
@media (min-width: 900px) { .mosaic { grid-template-columns: repeat(6, 1fr); } }
.mosaic .slot { aspect-ratio: auto; height: 100%; min-height: 160px; }
.mosaic .m-a { grid-column: span 2; grid-row: span 2; }
.mosaic .m-b { grid-column: span 1; grid-row: span 1; }
.mosaic .m-c { grid-column: span 2; grid-row: span 1; }
.mosaic .m-d { grid-column: span 3; grid-row: span 2; }
@media (min-width: 900px) { .mosaic .m-a { grid-column: span 3; grid-row: span 2; } .mosaic .m-d { grid-column: span 2; grid-row: span 2; } }

/* CTA band */
.cta-band { position: relative; padding-block: var(--s-10); overflow: hidden; border-top: 1px solid var(--gunmetal); }
.cta-band .display { max-width: 9ch; }
.cta-band .ghost { position: absolute; right: -2vw; bottom: -3vw; font-family: var(--font-display); font-weight: 900; font-size: clamp(8rem, 30vw, 28rem); line-height: 0.75; color: transparent; -webkit-text-stroke: 1px var(--gunmetal); pointer-events: none; user-select: none; }

/* ============================================================
   SHOP
   ============================================================ */
.shop-tools { position: sticky; top: 72px; z-index: 20; background: rgba(var(--bg-rgb),0.88); backdrop-filter: blur(10px); border-block: 1px solid var(--gunmetal); padding: 12px 0; }
.shop-tools .wrap { display: grid; gap: var(--s-3); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .shop-tools .wrap { grid-template-columns: minmax(0, 1fr) auto auto; } }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.search { position: relative; }
.search .input { min-height: 40px; padding: 8px 12px 8px 36px; background: var(--carbon); width: 100%; }
@media (min-width: 900px) { .search .input { width: 260px; } }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--titanium); }
.sort .input { min-height: 40px; padding: 8px 36px 8px 12px; background: var(--carbon); background-position: calc(100% - 18px) 17px, calc(100% - 12px) 17px; }
.product-grid { display: grid; gap: var(--s-6) var(--s-4); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-8) var(--s-5); } .product-grid:not(.product-grid--plain) .card:nth-child(4n+1) { grid-column: span 2; } .product-grid:not(.product-grid--plain) .card:nth-child(4n+1) .slot { --ar: 16 / 10; } }
.result-count { font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--titanium); }

/* Product page */
.pdp { display: grid; gap: var(--s-7); padding-top: 110px; }
@media (min-width: 1000px) { .pdp { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); align-items: start; } }
.pdp-gallery { display: grid; gap: var(--s-3); }
.pdp-gallery .slot:first-child { --ar: 4 / 5; }
.pdp-gallery .thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.pdp-gallery .thumbs .slot { --ar: 1; }
.pdp-info { position: sticky; top: 96px; display: grid; gap: var(--s-5); }
.pdp-info .display { max-width: 9ch; }
.pdp-price { font-family: var(--font-mono); font-size: var(--t-lg); font-variant-numeric: tabular-nums; }
.pdp-price small { display: block; font-size: var(--t-xs); color: var(--titanium); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px; }
.pdp-facts { display: grid; gap: 0; border-top: 1px solid var(--gunmetal); }
.pdp-facts div { display: grid; grid-template-columns: 120px 1fr; gap: var(--s-3); padding: 10px 0; border-bottom: 1px solid var(--gunmetal); font-size: var(--t-sm); }
.pdp-facts dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--titanium); padding-top: 3px; }
.pdp-facts dd { margin: 0; }
.pdp-story { padding-block: var(--s-9); }
.pdp-story .display { max-width: 10ch; margin-bottom: var(--s-6); }
.pdp-story-grid { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .pdp-story-grid { grid-template-columns: repeat(3, 1fr); } }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(var(--bg-rgb),0.9); backdrop-filter: blur(12px); border-top: 1px solid var(--gunmetal); padding: 10px var(--gutter); display: grid; grid-template-columns: 1fr auto; gap: var(--s-3); align-items: center; transform: translateY(110%); transition: transform var(--d-slow) var(--ease-out); }
.sticky-buy.is-on { transform: none; }
.sticky-buy .sb-title { font-family: var(--font-display); font-weight: 700; font-size: var(--t-lg); text-transform: uppercase; line-height: 1; }
.sticky-buy .sb-price { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--titanium); margin-top: 4px; }
.accordion details { border-top: 1px solid var(--gunmetal); }
.accordion details:last-child { border-bottom: 1px solid var(--gunmetal); }
.accordion summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: 0.1em; text-transform: uppercase; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-family: var(--font-mono); font-size: var(--t-md); color: var(--accent-text); transition: transform var(--d-base) var(--ease-out); }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .acc-body { padding: 0 0 18px; color: var(--titanium); font-size: var(--t-sm); line-height: 1.6; max-width: 62ch; }

/* ============================================================
   PORTFOLIO
   ============================================================ */
.work-grid { display: grid; gap: var(--s-7) var(--s-5); grid-template-columns: repeat(12, var(--col)); }
.work { grid-column: span 12; display: grid; gap: var(--s-4); }
.work .w-head { display: grid; grid-template-columns: 1fr auto; gap: var(--s-3); align-items: end; }
.work .w-title { font-family: var(--font-display); font-weight: 800; font-size: var(--d-sm); line-height: 0.9; text-transform: uppercase; transition: color var(--d-base); }
.work:hover .w-title { color: var(--accent-text); }
.work .w-k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--titanium); text-align: right; line-height: 1.7; }
@media (min-width: 900px) {
  .work:nth-child(6n+1) { grid-column: 1 / span 7; }
  .work:nth-child(6n+2) { grid-column: 9 / span 4; margin-top: var(--s-10); }
  .work:nth-child(6n+3) { grid-column: 2 / span 4; }
  .work:nth-child(6n+4) { grid-column: 7 / span 6; margin-top: calc(-1 * var(--s-8)); }
  .work:nth-child(6n+5) { grid-column: 1 / span 5; }
  .work:nth-child(6n+6) { grid-column: 7 / span 6; margin-top: var(--s-8); }
  .work:nth-child(6n+2) .slot { --ar: 3 / 4; }
  .work:nth-child(6n+1) .slot, .work:nth-child(6n+4) .slot { --ar: 16 / 10; }
}
/* Archive (masonry via columns) */
.arch-grid { columns: 2 160px; column-gap: var(--s-3); }
@media (min-width: 900px) { .arch-grid { columns: 4 220px; column-gap: var(--s-4); } }
.arch-item { display: block; width: 100%; break-inside: avoid; margin: 0 0 var(--s-4); text-align: left; }
.arch-media { position: relative; display: block; overflow: hidden; border: 1px solid var(--gunmetal); border-radius: var(--r-1); background: var(--graphite); }
.arch-media img, .arch-media video { width: 100%; height: auto; display: block; transition: transform var(--d-cine) var(--ease-out), filter var(--d-base); }
.arch-item:hover .arch-media img, .arch-item:hover .arch-media video { transform: scale(1.04); }
.arch-item:hover .arch-cap, .arch-item:focus-visible .arch-cap { color: var(--accent-text); }
.arch-cap { display: block; margin-top: 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--titanium); line-height: 1.5; transition: color var(--d-fast); }
.arch-badge { position: absolute; top: 8px; left: 8px; padding: 4px 7px; background: var(--volt); color: var(--volt-ink); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; border-radius: 2px; }
.arch-note { margin-top: var(--s-7); max-width: 80ch; line-height: 1.7; text-transform: none; letter-spacing: 0.02em; }
.lightbox { position: fixed; inset: 0; z-index: 85; background: rgba(var(--bg-rgb),0.94); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; opacity: 0; visibility: hidden; transition: opacity var(--d-base), visibility var(--d-base); }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lb-frame { width: min(1100px, 100%); max-height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; }
.lb-media { display: grid; place-items: center; min-height: 0; }
.lb-media img, .lb-media video { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: var(--r-1); }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.lb-title { font-family: var(--font-display); font-weight: 800; font-size: var(--t-xl); text-transform: uppercase; line-height: 1; margin-bottom: 4px; }
.lab-view .obj .slot img { object-position: 50% 30%; }
.slot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }

/* Case study */
.case-hero { padding-top: 120px; display: grid; gap: var(--s-6); }
.case-hero .display { max-width: 10ch; }
.case-facts { display: grid; gap: var(--s-4); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .case-facts { grid-template-columns: repeat(4, 1fr); } }
.case-facts div { border-top: 1px solid var(--gunmetal); padding-top: 10px; }
.case-facts dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--titanium); }
.case-facts dd { margin: 6px 0 0; font-size: var(--t-sm); }
.case-section { padding-block: var(--s-8); border-top: 1px solid var(--gunmetal); }
.case-section .rail-grid { align-items: start; }
.case-body { display: grid; gap: var(--s-6); }
@media (min-width: 1000px) { .case-body { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); } }
.case-body .display { max-width: 9ch; }
.case-media { display: grid; gap: var(--s-4); grid-template-columns: repeat(2, 1fr); }
.case-media .slot:only-child, .case-media .slot.full { grid-column: 1 / -1; --ar: 16 / 10; }
.palette { display: flex; gap: 10px; flex-wrap: wrap; }
.palette span { display: grid; gap: 6px; }
.palette span i { display: block; width: 64px; height: 64px; border-radius: var(--r-1); border: 1px solid rgba(var(--line-rgb),0.12); }
.palette span small { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; color: var(--titanium); }
.case-nav { display: grid; gap: var(--s-4); grid-template-columns: 1fr 1fr; padding-block: var(--s-8); border-top: 1px solid var(--gunmetal); }
.case-nav a { display: grid; gap: 8px; }
.case-nav a:last-child { text-align: right; }
.case-nav .display { transition: color var(--d-base); }
.case-nav a:hover .display { color: var(--accent-text); }

/* ============================================================
   STUDIO / ABOUT
   ============================================================ */
.studio-hero { padding-top: 120px; display: grid; gap: var(--s-6); }
@media (min-width: 1000px) { .studio-hero { grid-template-columns: repeat(12, var(--col)); align-items: end; } .studio-hero .sh-copy { grid-column: 1 / span 7; } .studio-hero .sh-portrait { grid-column: 9 / span 4; } }
.studio-hero .display { max-width: 9ch; }
.studio-story { display: grid; gap: var(--s-6); }
@media (min-width: 1000px) { .studio-story { grid-template-columns: repeat(12, var(--col)); } .studio-story .ss-quote { grid-column: 1 / span 5; } .studio-story .ss-copy { grid-column: 7 / span 6; } }
.quote { font-family: var(--font-display); font-weight: 600; font-size: var(--d-sm); line-height: 1; text-transform: uppercase; max-width: 14ch; }
.quote em { font-style: normal; color: var(--accent-text); }
.studio-gallery { display: grid; gap: var(--s-4); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .studio-gallery { grid-template-columns: repeat(4, 1fr); } .studio-gallery .slot:nth-child(1) { grid-column: span 2; grid-row: span 2; --ar: 1; } }
.values { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .values { grid-template-columns: repeat(3, 1fr); } }
.value { border-top: 1px solid var(--gunmetal); padding-top: var(--s-4); display: grid; gap: var(--s-3); }
.value h3 { font-family: var(--font-display); font-weight: 800; font-size: var(--t-xl); text-transform: uppercase; line-height: 0.95; }
.value p { color: var(--titanium); font-size: var(--t-sm); max-width: 36ch; }

/* ============================================================
   CUSTOM ORDER WIZARD
   ============================================================ */
.wizard { display: grid; gap: var(--s-7); padding-top: 120px; }
@media (min-width: 1000px) { .wizard { grid-template-columns: 300px minmax(0, 1fr); gap: var(--s-9); align-items: start; } }
.wiz-rail { position: sticky; top: 96px; display: grid; gap: var(--s-5); }
.wiz-steps { display: grid; gap: 0; border-top: 1px solid var(--gunmetal); }
.wiz-steps li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--gunmetal); font-size: var(--t-sm); color: var(--titanium); }
.wiz-steps li .k { font-family: var(--font-mono); font-size: 10px; }
.wiz-steps li .s { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--steel); }
.wiz-steps li.is-done { color: var(--frost); } .wiz-steps li.is-done .s { background: var(--volt); border-color: var(--volt); }
.wiz-steps li.is-now { color: var(--frost); } .wiz-steps li.is-now .s { border-color: var(--volt); box-shadow: inset 0 0 0 2px var(--carbon), inset 0 0 0 8px var(--volt); }
.wiz-steps li.is-now .k { color: var(--accent-text); }
.wiz-progress { height: 2px; background: var(--gunmetal); position: relative; }
.wiz-progress i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 0%); background: var(--volt); transition: width var(--d-slow) var(--ease-out); }
.wiz-panel { display: grid; gap: var(--s-6); min-height: 60vh; }
.wiz-panel .display { max-width: 10ch; }
.wiz-body { display: grid; gap: var(--s-5); }
.wiz-nav { display: flex; justify-content: space-between; gap: var(--s-3); padding-top: var(--s-5); border-top: 1px solid var(--gunmetal); flex-wrap: wrap; }
.wiz-enter { animation: wizIn var(--d-slow) var(--ease-out) both; }
@keyframes wizIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.dropzone { position: relative; display: grid; place-items: center; gap: var(--s-3); padding: var(--s-7) var(--s-5); border: 1px dashed var(--steel); border-radius: var(--r-2); background: var(--graphite); text-align: center; transition: border-color var(--d-fast), background var(--d-fast); min-height: 200px; }
.dropzone.is-over { border-color: var(--frost); background: color-mix(in srgb, var(--volt) 25%, var(--graphite)); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .dz-title { font-family: var(--font-display); font-weight: 700; font-size: var(--t-xl); text-transform: uppercase; line-height: 1; }
.dropzone .dz-sub { font-size: var(--t-sm); color: var(--titanium); }
.uploads { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.upload { position: relative; aspect-ratio: 1; border: 1px solid var(--gunmetal); border-radius: var(--r-1); overflow: hidden; background: var(--graphite); }
.upload img { width: 100%; height: 100%; object-fit: cover; }
.upload .u-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px; font-family: var(--font-mono); font-size: 9px; background: rgba(var(--bg-rgb),0.75); color: var(--titanium); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload .u-x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; display: grid; place-items: center; background: rgba(var(--bg-rgb),0.8); border-radius: 2px; color: var(--frost); font-family: var(--font-mono); }
.review { display: grid; gap: 0; border-top: 1px solid var(--gunmetal); }
.review div { display: grid; grid-template-columns: 140px 1fr auto; gap: var(--s-3); padding: 14px 0; border-bottom: 1px solid var(--gunmetal); align-items: start; }
.review dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--titanium); padding-top: 3px; }
.review dd { margin: 0; font-size: var(--t-sm); white-space: pre-wrap; }
.review button { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); }
.success { display: grid; gap: var(--s-5); padding: var(--s-7) 0; }
.codebox { position: relative; padding: var(--s-4); background: var(--graphite); border: 1px solid var(--gunmetal); border-radius: var(--r-1); font-family: var(--font-mono); font-size: var(--t-xs); line-height: 1.7; white-space: pre-wrap; color: var(--titanium); max-height: 320px; overflow: auto; }

/* Hammer builder */
.hammer-builder { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .hammer-builder { grid-template-columns: minmax(240px, 5fr) minmax(0, 7fr); align-items: start; } .hb-preview { position: sticky; top: 96px; } }
.hb-preview { display: grid; gap: var(--s-3); padding: var(--s-5); background: radial-gradient(70% 60% at 50% 35%, #2A2E35, #0E1013 80%); border: 1px solid var(--gunmetal); border-radius: var(--r-2); }
.hb-preview svg { width: 100%; max-width: 320px; margin-inline: auto; height: auto; }
.hb-preview svg path, .hb-preview svg rect, .hb-preview svg .hb-wrap, .hb-preview svg .hb-knot { transition: fill var(--d-base) var(--ease-out), stroke var(--d-base) var(--ease-out); }
.hb-head { fill: var(--h-head); }
.hb-handle { fill: var(--h-handle); }
.hb-inlay { fill: var(--h-inlay); }
.hb-wrap { stroke: color-mix(in srgb, var(--h-handle) 62%, #000); }
.hb-knot { stroke: color-mix(in srgb, var(--h-inlay) 55%, #000); }
.hb-edge { stroke: color-mix(in srgb, var(--h-head) 55%, #000); }
.hb-logo-text { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; fill: #fff; fill-opacity: .7; }
.hb-logo-sub { font-size: 9px; fill-opacity: .5; }
.hb-note { color: #B7BEC7; text-transform: none; letter-spacing: .02em; line-height: 1.6; }
.hb-controls { display: grid; gap: var(--s-6); align-content: start; }
.hb-swatches { gap: 8px; }
.hb-swatches .swatch { width: 34px; height: 34px; }
.hb-pick { font-size: var(--t-xs); }

/* ============================================================
   CONTACT / FAQ / POLICIES
   ============================================================ */
.two-col { display: grid; gap: var(--s-7); }
@media (min-width: 1000px) { .two-col { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-9); align-items: start; } }
.contact-list { display: grid; gap: var(--s-4); }
.contact-list div { border-top: 1px solid var(--gunmetal); padding-top: 10px; }
.contact-list dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--titanium); }
.contact-list dd { margin: 6px 0 0; font-size: var(--t-md); }
.policy { display: grid; gap: var(--s-6); max-width: 70ch; }
.policy h2 { font-family: var(--font-display); font-weight: 800; font-size: var(--d-sm); text-transform: uppercase; line-height: 0.9; }
.policy h3 { font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); font-weight: 400; margin-top: var(--s-4); }
.policy p, .policy li { color: var(--titanium); font-size: var(--t-sm); line-height: 1.65; }
.policy ul { display: grid; gap: 6px; padding-left: 1em; list-style: square; }
.policy-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--s-7); }

/* 404 / empty */
.nf { min-height: 70vh; display: grid; align-content: center; gap: var(--s-5); padding-top: 120px; }

/* ---------- Reveal (scroll) ---------- */
.rv { opacity: 1; }
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.js .rv.is-in { opacity: 1; transform: none; }
.js .rv[data-delay="1"] { transition-delay: 80ms; } .js .rv[data-delay="2"] { transition-delay: 160ms; } .js .rv[data-delay="3"] { transition-delay: 240ms; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1; transform: none; }
  .hero-copy .display .w > span { transform: none; }
  .marquee-track { animation: none; }
  .cursor, .cursor-ring { display: none !important; }
  body.has-cursor, body.has-cursor * { cursor: auto !important; }
}

/* ---------- Print ---------- */
@media print { .header, .menu, .cursor, .cursor-ring, .drawer, .sticky-buy, .wipe, .toast { display: none !important; } body { background: #fff; color: #000; } }
