/* ============================================================
   PLAKAT — concept poster shop
   Radical restraint: near-white paper, one accent (IKB #002FA7),
   tiny letter-spaced meta type against a few huge serif headlines.
   Motion: transform/opacity only, expo-out easing, all non-essential
   movement gated behind prefers-reduced-motion: no-preference.
   ============================================================ */

:root {
  /* colour */
  --paper: #FAFAF7;
  --ink: #131313;
  --ink-2: #55554F;
  --line: #E4E4DC;
  --line-dark: #C9C9BF;
  --blue: #002FA7;          /* International Klein Blue */
  --blue-deep: #00227B;
  --mat: #FFFFFF;
  --frame: #22221E;
  --room: #0B0B10;          /* the dark room — launch screen, 3D gallery, ink-wipe */

  /* type — Fraunces (display) / Archivo (functional), stock fallbacks */
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* fluid scale (ratio-based, rem bounds so user zoom is honoured) */
  --t-hero: clamp(4rem, 18.5vw, 16rem);
  --t-xl:   clamp(2.25rem, 1.55rem + 3.4vw, 4.5rem);
  --t-lg:   clamp(1.6rem, 1.25rem + 1.7vw, 2.6rem);
  --t-md:   clamp(1.2rem, 1.05rem + 0.7vw, 1.6rem);
  --t-body: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);

  /* motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-micro: 180ms;
  --dur-in: 0.8s;

  /* layout */
  --gutter: clamp(16px, 5vw, 72px);
  --block: clamp(96px, 14vw, 200px);
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, dl, dd, dt, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { padding: 0; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  background: var(--blue); color: #fff; padding: 12px 18px;
  font-size: 13px; text-decoration: none;
  transform: translateY(-64px); opacity: 0; pointer-events: none;
}
.skip:focus-visible { transform: none; opacity: 1; pointer-events: auto; }

/* tiny letter-spaced meta type — the connective tissue of the page */
.meta {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  line-height: 1.5;
}

/* the display voice: optical sizing on, letterpress weight */
body { font-weight: 400; }
.hero__letters { font-weight: 340; font-optical-sizing: auto; }
h1, h2, h3, .stage__title, .phead__title, .sec__title { font-optical-sizing: auto; }

.badge {
  display: inline-block;
  border: 1px solid var(--blue);
  color: var(--blue);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 8px 1px;
  margin-left: 10px;
  vertical-align: 1px;
}

/* ---------- reveal system (JS-fail visible) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .rv {
    opacity: 0;
    transform: translateY(22px);
    transition:
      opacity var(--dur-in) var(--ease),
      transform var(--dur-in) var(--ease);
    transition-delay: var(--d, 0s);
  }
  .js .rv.in { opacity: 1; transform: none; }

  /* meta labels tagged .tk: letter-tracking expands as they enter.
     The hidden-tab guard also forces letter-spacing to its final
     value with !important, so nothing can strand mid-track. */
  .js .rv.tk {
    letter-spacing: 0.03em;
    transition:
      opacity var(--dur-in) var(--ease),
      transform var(--dur-in) var(--ease),
      letter-spacing 1.1s var(--ease);
    transition-delay: var(--d, 0s);
  }
  .js .rv.tk.in { letter-spacing: 0.14em; }
}

/* ============================================================
   BRANDED LOADER — decoration only, JS-gated
   Without html.js the loader is display:none and the page renders
   normally. JS removes the node when done; an unconditional 2600ms
   backstop in app.js guarantees removal no matter what.
   ============================================================ */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  background: var(--room);
  opacity: 1;
  transition: opacity 0.42s ease;
}
.js .loader.loader--fast { transition-duration: 0.22s; }
.js .loader.loader--out { opacity: 0; pointer-events: none; }
html.is-loading body { overflow: hidden; }

.loader__inner { display: grid; justify-items: center; gap: clamp(18px, 3vw, 30px); }

/* the wordmark: ghost letters at 4% paper, inked to full paper-white
   as the IKB scan bar crosses them — a print head laying ink */
.loader__word {
  position: relative;
  display: block;
  font-family: var(--serif);
  font-weight: 340;
  font-optical-sizing: auto;
  font-size: clamp(3rem, 14vw, 11rem);
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0.04em;
  margin-right: -0.04em; /* optical centre: cancel trailing tracking */
}
.loader__ch { position: relative; display: inline-block; }
.loader__ghost { color: #FAFAF7; opacity: 0.04; }
/* counter-translate mask pair: the glyph stays put, the edge sweeps */
.loader__inkw {
  position: absolute; inset: 0;
  overflow: hidden;
  transform: translateX(-101%);
}
.loader__ink {
  display: block;
  color: #FAFAF7;
  transform: translateX(101%);
}
/* the 2px IKB scan bar — a full-width sleeve whose right edge is the
   bar, so translateX(-100% → 0) sweeps it across (transform-only) */
.loader__scan {
  position: absolute;
  top: -8%; bottom: -8%; left: 0;
  width: 100%;
  background: linear-gradient(90deg, transparent calc(100% - 2px), var(--blue) calc(100% - 2px));
  transform: translateX(-100%);
  pointer-events: none;
}
.loader__sub {
  color: rgba(250, 250, 247, 0.62);
  opacity: 0;
}
/* 1px hairline tracking REAL preload progress (scaled by app.js) */
.loader__rule {
  display: block;
  width: min(320px, 58vw);
  height: 1px;
  background: rgba(250, 250, 247, 0.55);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

@media (prefers-reduced-motion: no-preference) {
  /* scan: 1400ms linear sweep, starting 200ms after loader--in */
  .js .loader--in .loader__scan {
    transition: transform 1.4s linear 0.2s;
    transform: translateX(0);
  }
  /* each letter inks over its 233ms slice of the sweep, in step with
     the bar: delay = 200ms + i * (1400/6)ms */
  .js .loader__inkw, .js .loader__ink {
    transition: transform 0.233s linear calc(0.2s + var(--i, 0) * 0.233s);
  }
  .js .loader--in .loader__inkw, .js .loader--in .loader__ink { transform: translateX(0); }
  /* studio line fades in at ~60% of the sweep */
  .js .loader__sub { transition: opacity 0.5s var(--ease) 1.04s; }
  .js .loader--in .loader__sub { opacity: 1; }
}

/* reduced motion / repeat visit: already inked, quick fade only */
.js .loader--plain .loader__inkw,
.js .loader--plain .loader__ink { transform: none; transition: none; }
.js .loader--plain .loader__scan { display: none; }
.js .loader--plain .loader__sub { opacity: 1; transition: none; }
.js .loader--plain .loader__rule { transform: scaleX(1); }

/* ============================================================
   ARRIVING-PAGE INK-WIPE COVER — painted synchronously from the
   inline <head> flag script when the previous page left through
   the wipe. fx.js wipes it with the shader; app.js keeps a plain
   fade backstop. Never depends on WebGL being ready before paint.
   ============================================================ */
html.wipe-arrive::after {
  content: "";
  position: fixed; inset: 0;
  z-index: 290;
  background: var(--room);
  opacity: 1;
  pointer-events: none;
}
html.wipe-arrive.wipe-arrive-out::after {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* ============================================================
   READING PROGRESS — Klein-blue hairline, scroll-linked.
   CSS scroll timeline where supported; JS rAF fallback otherwise.
   ============================================================ */
.progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 120;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
  display: none;
}
.js .progress { display: block; }
@supports (animation-timeline: scroll()) {
  .js .progress {
    animation: prog-grow auto linear both;
    animation-timeline: scroll(root block);
  }
  @keyframes prog-grow {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
  }
}

/* ============================================================
   HEADER
   ============================================================ */
.site {
  position: sticky; top: 0; z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 64px;
  padding: 0 var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site__logo {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.06em;
  text-decoration: none;
}
.site__tag { justify-self: center; }
.site__cart {
  justify-self: end;
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 4px;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  transition: color var(--dur-micro) ease;
  touch-action: manipulation;
}
.site__cart:hover { color: var(--blue); }
.count {
  display: inline-grid; place-items: center;
  min-width: 22px; height: 22px; padding: 0 4px;
  margin-left: 8px;
  background: var(--blue); color: #fff;
  font-size: 11px; letter-spacing: 0;
}

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: clamp(40px, 7vw, 96px) var(--gutter) 0; }

.hero__mark { font-weight: 400; }
.hero__letters {
  display: flex;
  justify-content: space-between;
  font-family: var(--serif);
  font-size: var(--t-hero);
  line-height: 0.84;
  letter-spacing: -0.01em;
  padding-top: 0.06em;
}
.hero__lw { display: block; overflow: hidden; }
.hero__l { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero__l {
    transform: translateY(112%);
    transition: transform 1.05s var(--ease);
  }
  .js .hero--in .hero__l { transform: none; }
  .js .hero__lw:nth-child(1) .hero__l { transition-delay: 0.05s; }
  .js .hero__lw:nth-child(2) .hero__l { transition-delay: 0.12s; }
  .js .hero__lw:nth-child(3) .hero__l { transition-delay: 0.19s; }
  .js .hero__lw:nth-child(4) .hero__l { transition-delay: 0.26s; }
  .js .hero__lw:nth-child(5) .hero__l { transition-delay: 0.33s; }
  .js .hero__lw:nth-child(6) .hero__l { transition-delay: 0.40s; }
}

/* signature: the giant wordmark scrubs left as it exits the viewport.
   CSS view() timeline where supported; JS rAF scrub fallback in app.js. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .js .hero__letters {
      animation: mark-slide auto linear both;
      animation-timeline: view(block);
      animation-range: exit 0% exit 100%;
    }
    @keyframes mark-slide {
      from { transform: translateX(0); }
      to   { transform: translateX(clamp(-260px, -14vw, -120px)); }
    }
  }
}

.hero__row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
  margin-top: clamp(3rem, 7vw, 6.5rem);
}
.hero__line {
  font-size: var(--t-md);
  line-height: 1.45;
  max-width: 34ch;
}
.hero__index { margin-top: clamp(2rem, 4vw, 3.5rem); max-width: 480px; }
.idx {
  display: grid;
  grid-template-columns: 3ch 1fr auto 20px;
  align-items: center;
  gap: 16px;
  min-height: 52px;
  border-top: 1px solid var(--line);
  text-decoration: none;
  transition: color var(--dur-micro) ease;
}
.idx:last-child { border-bottom: 1px solid var(--line); }
.idx__t { font-family: var(--serif); font-size: 18px; }
.idx__a { justify-self: end; transition: transform 0.3s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .idx:hover { color: var(--blue); }
  .idx:hover .idx__n, .idx:hover .idx__c { color: var(--blue); }
  .idx:hover .idx__a { transform: translateX(5px); }
}

.hero__media { justify-self: end; width: clamp(240px, 32vw, 440px); }
.hero__media figcaption { margin-top: 10px; }
.pwrap { overflow: hidden; }

/* scroll-driven parallax — progressive enhancement only */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .pwrap img {
      scale: 1.14;
      animation: plx linear both;
      animation-timeline: view();
    }
    @keyframes plx {
      from { transform: translateY(-4.5%); }
      to   { transform: translateY(4.5%); }
    }
  }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  margin-top: var(--block);
  border-block: 1px solid var(--line);
  overflow: hidden;
}
.marquee__track { display: flex; width: max-content; }
.marquee__part {
  white-space: nowrap;
  padding: 14px 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
@media (prefers-reduced-motion: no-preference) {
  .marquee__track { animation: marq 30s linear infinite; }
  @keyframes marq { to { transform: translateX(-50%); } }
}

/* ============================================================
   THE FLOOR
   ============================================================ */
.floor { padding: var(--block) var(--gutter) 0; }
.floor__head { max-width: 720px; }
.floor__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--t-xl);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin-top: 14px;
}
.floor__hint { margin-top: 18px; }

.floor__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(2rem, 5vw, 5.5rem);
  row-gap: clamp(4.5rem, 8vw, 8rem);
  align-items: start;
  margin-top: clamp(4rem, 7vw, 7rem);
}
.poster:nth-child(even) { margin-top: clamp(1.5rem, 4vw, 4.5rem); }

.poster__btn {
  display: block;
  width: 100%;
  text-align: left;
  perspective: 900px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.poster__idx { display: block; margin-bottom: 12px; }
.poster__tilt, .poster__float { display: block; transform-style: preserve-3d; }

/* perpetual idle drift — phase-staggered per poster via --dd/--dl */
@media (prefers-reduced-motion: no-preference) {
  .js .poster__float {
    animation: p-drift var(--dd, 8s) ease-in-out var(--dl, 0s) infinite alternate;
    will-change: transform;
  }
  .js .floor[data-off] .poster__float { animation-play-state: paused; }
  @keyframes p-drift {
    from { transform: translateY(2px)  rotateX(0.5deg)  rotateY(-0.7deg); }
    to   { transform: translateY(-5px) rotateX(-0.7deg) rotateY(0.9deg); }
  }
}

/* alternating micro-parallax depths while rows cross the viewport.
   Animates the standalone `translate` property so it composes with
   (never fights) the .rv reveal transition on `transform`. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .js .poster {
      animation: par-deep auto linear both;
      animation-timeline: view(block);
      animation-range: cover 0% cover 100%;
    }
    .js .poster:nth-child(even) { animation-name: par-shallow; }
    @keyframes par-deep {
      from { translate: 0 18px; }
      to   { translate: 0 -18px; }
    }
    @keyframes par-shallow {
      from { translate: 0 8px; }
      to   { translate: 0 -8px; }
    }
  }
}

.poster__frame {
  display: block;
  border: 2px solid var(--frame);
  background: var(--mat);
  box-shadow:
    0 18px 30px -18px rgba(22, 22, 16, 0.38),
    0 2px 6px rgba(22, 22, 16, 0.08);
  transition:
    transform 0.38s var(--ease),
    box-shadow 0.38s var(--ease);
}
.poster__mat { display: block; padding: clamp(6px, 1.1vw, 13px); background: var(--mat); }
.poster__mat img { width: 100%; }

.poster__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 16px;
}
.poster__title { font-family: var(--serif); font-size: 16px; letter-spacing: 0.01em; }
.poster__price { white-space: nowrap; }

/* hover: frame lifts, shadow softens outward, meta fades in */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .js .poster__meta {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }
  .js .poster__btn:hover .poster__meta,
  .js .poster__btn:focus-visible .poster__meta { opacity: 1; transform: none; }
  .poster__btn:hover .poster__frame,
  .poster__btn:focus-visible .poster__frame {
    transform: translateY(-10px);
    box-shadow:
      0 46px 80px -32px rgba(22, 22, 16, 0.28),
      0 6px 14px rgba(22, 22, 16, 0.05);
  }
}
.poster__btn:active .poster__frame { transform: translateY(-4px) scale(0.995); transition-duration: 70ms; }

/* keep the clicked poster's slot but hide it while the stage is open */
.poster.is-away .poster__btn { visibility: hidden; }

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
  padding: var(--block) var(--gutter) 0;
}
.about__media figcaption { margin-top: 10px; }
.about__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--t-lg);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-top: 14px;
  max-width: 22ch;
}
.about__copy { margin-top: 22px; max-width: 52ch; color: var(--ink-2); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.stat { border-top: 1px solid var(--line-dark); padding-top: 14px; }
.stat dd { margin-top: 6px; }
.stat__num {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.nl { padding: var(--block) var(--gutter) 0; max-width: 900px; }
.nl__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--t-xl);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.nl__sub { margin-top: 16px; }
.nl__form { margin-top: clamp(2rem, 4vw, 3rem); max-width: 560px; }
.nl__label { display: block; margin-bottom: 6px; }
.nl__row { display: flex; align-items: stretch; border-bottom: 1px solid var(--ink); }
.nl__row input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  height: 54px;
  padding: 0 4px;
}
.nl__row input::placeholder { color: #73736C; opacity: 1; }
.nl__row input:focus { outline: none; }
.nl__row:focus-within { border-color: var(--blue); box-shadow: 0 1px 0 var(--blue); }
.nl__go {
  width: 54px; min-height: 54px;
  display: grid; place-items: center;
  transition: color var(--dur-micro) ease, transform 0.3s var(--ease);
  touch-action: manipulation;
}
@media (hover: hover) and (pointer: fine) {
  .nl__go:hover { color: var(--blue); transform: translateX(4px); }
}
.nl__go:active { transform: scale(0.94); transition-duration: 70ms; }
.nl__err { margin-top: 10px; font-size: 13px; color: #A3241B; }
.nl__ok { margin-top: 14px; font-family: var(--serif); font-size: var(--t-md); line-height: 1.4; }

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  margin-top: var(--block);
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 6vw, 5rem) var(--gutter) clamp(2.5rem, 5vw, 4rem);
}
.foot__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
}
.foot__mark { font-family: var(--serif); font-size: 26px; letter-spacing: 0.06em; }
.foot__line { margin-top: 10px; color: var(--ink-2); max-width: 30ch; }
.foot__col p + p { margin-top: 8px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.foot__demo {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}
.foot__demo .meta { text-transform: none; letter-spacing: 0.04em; font-size: 12px; }
.foot__demo .badge { margin-left: 0; margin-right: 8px; }
.foot__handoff { max-width: 88ch; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--dur-micro) ease, transform var(--dur-micro) var(--ease);
  touch-action: manipulation;
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--blue-deep); }
}
.btn-primary:active { transform: translateY(1px) scale(0.985); transition-duration: 60ms; }
.btn-primary[disabled] { opacity: 0.55; cursor: default; }

/* quantity stepper */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-dark); }
.qty__btn {
  position: relative;
  width: 44px; height: 46px;
  display: grid; place-items: center;
  transition: color var(--dur-micro) ease, background var(--dur-micro) ease;
  touch-action: manipulation;
}
@media (hover: hover) and (pointer: fine) {
  .qty__btn:hover { color: var(--blue); background: rgba(0, 47, 167, 0.06); }
}
.qty__btn:active { transform: scale(0.92); }
.qty__val {
  min-width: 34px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: 15px;
}
.qty--s .qty__btn { width: 38px; height: 40px; }
.qty--s .qty__btn::before { content: ""; position: absolute; inset: -3px; }

/* ============================================================
   DETAIL STAGE (FLIP target)
   ============================================================ */
.stage { position: fixed; inset: 0; z-index: 70; }
.stage[hidden] { display: none; }
.stage__backdrop {
  position: absolute; inset: 0;
  background: rgba(250, 250, 247, 0.96);
  opacity: 0;
  transition: opacity 0.45s ease;
}
.stage.open .stage__backdrop { opacity: 1; }
.stage.closing .stage__backdrop { opacity: 0; transition-duration: 0.32s; }

.stage__panel {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
  padding: clamp(20px, 5vw, 80px);
  overflow: hidden;
}
.stage__close {
  position: absolute;
  top: clamp(14px, 3vw, 32px);
  right: clamp(14px, 3vw, 32px);
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--line-dark);
  background: var(--paper);
  z-index: 3;
  transition: color var(--dur-micro) ease, border-color var(--dur-micro) ease;
  touch-action: manipulation;
}
.stage__close svg { transition: transform 0.35s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .stage__close:hover { color: var(--blue); border-color: var(--blue); }
  .stage__close:hover svg { transform: rotate(90deg); }
}

.stage__fig { display: grid; place-items: center; perspective: 1100px; min-width: 0; }
.stage__flip { transform-origin: 0 0; will-change: transform; }
.stage__sway { transform-style: preserve-3d; }
@media (prefers-reduced-motion: no-preference) {
  .stage.open .stage__sway {
    animation: sway 8.5s ease-in-out infinite alternate;
  }
  @keyframes sway {
    from { transform: rotateY(-1.6deg) rotateX(0.5deg); }
    to   { transform: rotateY(1.6deg)  rotateX(-0.5deg); }
  }
}
/* frame try-on state — three frame tones & mat widths, default = 0 */
.stage {
  --ft-frame: var(--frame);
  --ft-bw: 2px;
  --ft-mat: clamp(10px, 1.4vw, 18px);
}
.stage[data-frame="1"] { --ft-frame: #A0763D; --ft-bw: 5px; --ft-mat: clamp(14px, 1.9vw, 24px); }
.stage[data-frame="2"] { --ft-frame: #E7E7DF; --ft-bw: 6px; --ft-mat: clamp(17px, 2.3vw, 30px); }

.stage__frame {
  border: var(--ft-bw, 2px) solid var(--ft-frame, var(--frame));
  background: var(--mat);
  box-shadow: 0 60px 110px -48px rgba(22, 22, 16, 0.4), 0 6px 18px rgba(22, 22, 16, 0.07);
  width: min(36vw, calc((100dvh - 260px) * 0.74), 460px);
  transition: border-color 0.35s ease, border-width 0.35s var(--ease);
}
.stage--land .stage__frame { width: min(50vw, calc((100dvh - 280px) * 1.42), 700px); }
.stage__mat {
  display: block;
  padding: var(--ft-mat, clamp(10px, 1.4vw, 18px));
  transition: padding 0.35s var(--ease);
}
.stage__mat img { width: 100%; }

.stage__info { min-width: 0; }
.stage__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-top: 10px;
}
.stage__price {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  margin-top: 14px;
  font-variant-numeric: tabular-nums;
}
.stage__sizes { margin-top: 26px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.pill { position: relative; display: block; }
.pill input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pill__face {
  display: flex; flex-direction: column; gap: 2px;
  min-height: 56px; min-width: 108px;
  padding: 9px 14px 8px;
  border: 1px solid var(--line-dark);
  transition: border-color var(--dur-micro) ease, background var(--dur-micro) ease, color var(--dur-micro) ease;
}
.pill__size { font-size: 14px; letter-spacing: 0.04em; }
.pill__dim { font-size: 11px; letter-spacing: 0.08em; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) {
  .pill:hover .pill__face { border-color: var(--blue); }
}
.pill input:checked + .pill__face { background: var(--blue); border-color: var(--blue); color: #fff; }
.pill input:checked + .pill__face .pill__dim { color: rgba(255, 255, 255, 0.82); }
.pill input:focus-visible + .pill__face { outline: 2px solid var(--blue); outline-offset: 3px; }

.stage__notes { margin-top: 24px; display: grid; gap: 12px; }
.stage__notes > div { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: baseline; }
.stage__notes dd { font-size: 15px; color: var(--ink-2); }

/* ---------- frame try-on: drag the handle, tap a stop, or arrow keys ---------- */
.ftry { margin-top: 28px; }
.ftry__track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 22px;
  border-top: 1px solid var(--line-dark);
}
.ftry__stop {
  min-height: 46px;
  padding-top: 14px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-align: center;
  transition: color var(--dur-micro) ease;
  touch-action: manipulation;
}
@media (hover: hover) and (pointer: fine) {
  .ftry__stop:hover { color: var(--blue); }
}
.ftry__stop.is-on { color: var(--blue); }
.ftry__handle {
  position: absolute;
  top: -22px;
  left: 16.667%;
  width: 44px; height: 44px;
  margin-left: -22px;
  display: grid; place-items: center;
  cursor: grab;
  touch-action: none;
  z-index: 1;
}
.ftry__handle::before {
  content: "";
  width: 12px; height: 12px;
  background: var(--blue);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1px var(--blue);
  transition: transform var(--dur-micro) var(--ease);
}
.ftry__handle:active { cursor: grabbing; }
.ftry__handle:active::before { transform: scale(1.25); }
.js .ftry__handle { transition: left 0.35s var(--ease); }
.ftry__track.is-drag .ftry__handle { transition: none; }

.stage__buyrow { display: flex; gap: 12px; margin-top: 28px; }
.stage__buyrow .btn-primary { flex: 1; }
.stage__ship { margin-top: 16px; }

/* staggered rise of the info column while the poster FLIPs */
@media (prefers-reduced-motion: no-preference) {
  .js .stage__info > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }
  .js .stage.open .stage__info > * { opacity: 1; transform: none; }
  .js .stage.open .stage__info > *:nth-child(1) { transition-delay: 0.16s; }
  .js .stage.open .stage__info > *:nth-child(2) { transition-delay: 0.22s; }
  .js .stage.open .stage__info > *:nth-child(3) { transition-delay: 0.28s; }
  .js .stage.open .stage__info > *:nth-child(4) { transition-delay: 0.34s; }
  .js .stage.open .stage__info > *:nth-child(5) { transition-delay: 0.40s; }
  .js .stage.open .stage__info > *:nth-child(6) { transition-delay: 0.46s; }
  .js .stage.open .stage__info > *:nth-child(7) { transition-delay: 0.52s; }
  .js .stage.open .stage__info > *:nth-child(8) { transition-delay: 0.58s; }
  .js .stage.closing .stage__info > * {
    opacity: 0; transform: translateY(10px);
    transition-duration: 0.3s; transition-delay: 0s;
  }
}

/* ============================================================
   CART DRAWER
   ============================================================ */
.scrim {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(19, 19, 18, 0.32);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.scrim.show { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; z-index: 60;
  height: 100dvh;
  width: min(420px, 94vw);
  background: var(--paper);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  visibility: hidden;
  transform: translateX(103%);
  transition: transform 0.55s var(--ease), visibility 0s linear 0.55s;
}
.drawer.open {
  visibility: visible;
  transform: none;
  transition: transform 0.55s var(--ease);
}
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.drawer__title { font-family: var(--serif); font-weight: 400; font-size: 22px; }
.drawer__close {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  transition: color var(--dur-micro) ease;
  touch-action: manipulation;
}
.drawer__close:hover { color: var(--blue); }

.drawer__empty { padding: 48px 22px; color: var(--ink-2); font-family: var(--serif); font-size: 18px; line-height: 1.5; }
.drawer__items { flex: 1; overflow-y: auto; padding: 0 22px; }

.citem {
  display: grid;
  grid-template-columns: 56px 1fr 44px;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.citem__img { width: 56px; height: 74px; object-fit: cover; border: 1px solid var(--line-dark); background: var(--mat); }
.citem__title { font-family: var(--serif); font-size: 16px; }
.citem__meta { margin-top: 2px; }
.citem__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.citem__price { font-variant-numeric: tabular-nums; font-size: 15px; }
.citem__rm {
  position: relative;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  color: var(--ink-2);
  transition: color var(--dur-micro) ease;
  touch-action: manipulation;
}
.citem__rm::before { content: ""; position: absolute; inset: -3px; }
.citem__rm:hover { color: #A3241B; }

.drawer__foot { border-top: 1px solid var(--line); padding: 18px 22px 22px; }
.drawer__sub { display: flex; justify-content: space-between; align-items: baseline; }
.drawer__sub strong { font-family: var(--serif); font-weight: 400; font-size: 24px; font-variant-numeric: tabular-nums; }
.drawer__note { margin-top: 6px; }
.drawer__checkout { width: 100%; margin-top: 16px; }

/* cart items entrance stagger */
@media (prefers-reduced-motion: no-preference) {
  .js .drawer.open .citem { animation: c-in 0.5s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms); }
  @keyframes c-in {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
  }
}

/* ============================================================
   SCROLL LOCK
   ============================================================ */
body.locked { overflow: hidden; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .floor__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .hero__row { grid-template-columns: 1fr; }
  .hero__media { justify-self: start; width: min(72vw, 420px); }

  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 560px; }

  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2rem; }

  /* detail becomes a full sheet */
  .stage__panel {
    grid-template-columns: 1fr;
    align-items: start;
    align-content: start;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    overflow-y: auto;
    padding: 76px 20px 40px;
  }
  .stage__frame { width: min(62vw, calc((100dvh - 420px) * 0.74), 340px); }
  .stage--land .stage__frame { width: min(86vw, 520px); }
  .stage__info { padding-bottom: 24px; }
}

@media (max-width: 700px) {
  .site {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    height: auto;
    padding-top: 4px;
  }
  .site__logo { grid-row: 1; min-height: 48px; display: inline-flex; align-items: center; }
  .site__cart { grid-row: 1; }
  .site__nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    justify-content: space-between;
    gap: 0;
    border-top: 1px solid var(--line);
  }
  .site__tag { display: none; }
  html { scroll-padding-top: 118px; }

  .floor__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(1.25rem, 5vw, 2rem);
    row-gap: 3.5rem;
  }
  .poster:nth-child(even) { margin-top: 1.75rem; }

  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
  .stage__buyrow { flex-wrap: wrap; }
  .stage__buyrow .btn-primary { flex: 1 1 100%; }
}

/* ============================================================
   MULTI-PAGE SHELL — nav, page-enter, content scaffolding.
   Shared across index / process / journal / faq. Every selector
   here is inert on pages that don't use it.
   ============================================================ */

/* ---- header: brand lead + centred nav + cart ---- */
.site__lead { display: inline-flex; align-items: center; gap: 12px; justify-self: start; min-width: 0; }
.site__badge { margin-left: 0; }
.site__nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.2vw, 34px);
}
.site__nav a {
  position: relative;
  display: inline-flex; align-items: center;
  min-height: 44px;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  transition: color var(--dur-micro) ease;
}
.site__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 12px;
  height: 1px; background: var(--blue);
  transform: scaleX(0); transform-origin: 0 50%;
}
.js .site__nav a::after { transition: transform 0.32s var(--ease); }
.site__nav a[aria-current="page"] { color: var(--ink); }
.site__nav a[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .site__nav a:hover { color: var(--ink); }
  .site__nav a:hover::after { transform: scaleX(1); }
}

/* ---- page-enter: quiet fade/rise once per navigation ---- */
@media (prefers-reduced-motion: no-preference) {
  .js .penter { opacity: 0; transform: translateY(10px); }
  .js .penter.is-in {
    opacity: 1; transform: none;
    transition: opacity 0.34s var(--ease), transform 0.34s var(--ease);
  }
}

/* ============================================================
   CONTENT PAGES — shared reading system (process / journal / faq)
   One serif reading voice, one sans functional voice, one accent.
   ============================================================ */
:root {
  --measure: 64ch;
  --t-read: clamp(1.0625rem, 1rem + 0.34vw, 1.24rem);
}

/* page header (the quiet title block that opens each page) */
.phead { padding: clamp(46px, 8vw, 104px) var(--gutter) 0; max-width: 1160px; }
.phead__eyebrow { margin-bottom: 20px; }
.phead__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--t-xl);
  line-height: 1.03;
  letter-spacing: -0.015em;
  max-width: 18ch;
  text-wrap: balance;
}
.phead__lead {
  margin-top: clamp(20px, 3vw, 30px);
  font-family: var(--serif);
  font-size: var(--t-md);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 46ch;
}
.phead__meta {
  margin-top: clamp(22px, 3vw, 34px);
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.phead__meta span { white-space: nowrap; }

/* generic content section + head */
.sec { padding: var(--block) var(--gutter) 0; }
.sec__head { max-width: 760px; }
.sec__n { display: inline-block; margin-bottom: 14px; }
.sec__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--t-lg);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.sec__intro {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: var(--t-read);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: var(--measure);
}

/* serif reading block */
.rich { font-family: var(--serif); font-size: var(--t-read); line-height: 1.72; max-width: var(--measure); }
.rich p { margin: 0; }
.rich p + p { margin-top: 1.15em; }
.rich a { color: var(--blue); text-decoration: none; box-shadow: 0 1px 0 rgba(0,47,167,0.35); transition: box-shadow var(--dur-micro) ease; }
@media (hover: hover) and (pointer: fine) { .rich a:hover { box-shadow: 0 2px 0 var(--blue); } }

/* drop cap (initial-letter with a Firefox float fallback) */
.rich--cap > p:first-of-type::first-letter {
  -webkit-initial-letter: 3;
  initial-letter: 3;
  font-weight: 400;
  margin-inline-end: 0.14em;
  color: var(--blue);
}
.no-initial-letter .rich--cap > p:first-of-type::first-letter {
  float: left; font-size: 3.1em; line-height: 0.76;
  padding-inline-end: 0.12em; margin-top: 0.04em; font-weight: 400; color: var(--blue);
}

/* an inline "keep going" link used to cross-link pages */
.jump {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue); text-decoration: none;
}
.jump svg { transition: transform 0.3s var(--ease); }
@media (hover: hover) and (pointer: fine) { .jump:hover svg { transform: translateX(5px); } }

/* pair: a serif figure + a reading column (used on process/journal) */
.pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.pair--wide { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.pair__media figcaption { margin-top: 10px; }
.pair__body > * + * { margin-top: 22px; }

/* ============================================================
   PROCESS — paper swatches, giclée, frame studio, edition, care
   ============================================================ */
.paper-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.5vw, 3rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.swatch { border-top: 1px solid var(--line-dark); padding-top: 20px; }
.swatch__tex {
  aspect-ratio: 5 / 3;
  border: 1px solid var(--line);
  background-color: #F6F5EE;
  background-image:
    repeating-linear-gradient(90deg, rgba(19,19,18,0.028) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg,  rgba(19,19,18,0.022) 0 1px, transparent 1px 4px),
    radial-gradient(120% 90% at 26% 18%, rgba(19,19,18,0.05), transparent 62%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6), inset 0 14px 34px -22px rgba(19,19,18,0.4);
}
.swatch--rag .swatch__tex {
  background-color: #F4F2EA;
  background-image:
    repeating-linear-gradient(90deg, rgba(19,19,18,0.04) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(0deg,  rgba(19,19,18,0.035) 0 1px, transparent 1px 6px),
    radial-gradient(130% 100% at 70% 80%, rgba(19,19,18,0.06), transparent 60%);
}
.swatch--matte .swatch__tex {
  background-color: #F8F7F2;
  background-image:
    repeating-linear-gradient(90deg, rgba(19,19,18,0.02) 0 1px, transparent 1px 2px),
    radial-gradient(120% 90% at 30% 25%, rgba(19,19,18,0.03), transparent 60%);
}
.swatch__name { font-family: var(--serif); font-size: var(--t-md); margin-top: 18px; }
.swatch__spec { margin-top: 12px; display: grid; gap: 8px; }
.swatch__spec div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: baseline; }
.swatch__spec dd { font-size: 14px; color: var(--ink-2); }
.swatch__note { margin-top: 16px; font-family: var(--serif); font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }

/* frame studio — the tactile frame try-on, featured large */
.fstudio {
  --ft-frame: var(--frame); --ft-bw: 3px; --ft-mat: clamp(14px, 2vw, 26px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.fstudio[data-frame="1"] { --ft-frame: #A0763D; --ft-bw: 7px; --ft-mat: clamp(20px, 2.8vw, 36px); }
.fstudio[data-frame="2"] { --ft-frame: #E7E7DF; --ft-bw: 9px; --ft-mat: clamp(24px, 3.4vw, 44px); }
.fstudio__stage { display: grid; place-items: center; padding: clamp(10px, 3vw, 40px) 0; }
.fstudio__frame {
  border: var(--ft-bw) solid var(--ft-frame);
  background: var(--mat);
  box-shadow: 0 50px 90px -46px rgba(19,19,18,0.4), 0 6px 16px rgba(19,19,18,0.07);
  width: min(78%, 420px);
  transition: border-color 0.4s ease, border-width 0.4s var(--ease);
}
.fstudio__mat { display: block; padding: var(--ft-mat); transition: padding 0.4s var(--ease); }
.fstudio__mat img { width: 100%; }
.fstudio__label { margin-bottom: 6px; }
.fstudio__track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 26px;
  border-top: 1px solid var(--line-dark);
}
.fstudio__stop {
  min-height: 48px; padding-top: 15px;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-2); text-align: center;
  transition: color var(--dur-micro) ease;
  touch-action: manipulation;
}
@media (hover: hover) and (pointer: fine) { .fstudio__stop:hover { color: var(--blue); } }
.fstudio__stop.is-on { color: var(--blue); }
.fstudio__handle {
  position: absolute; top: -22px; left: 16.667%;
  width: 44px; height: 44px; margin-left: -22px;
  display: grid; place-items: center;
  cursor: grab; touch-action: none; z-index: 1;
}
.fstudio__handle::before {
  content: ""; width: 13px; height: 13px;
  background: var(--blue); border: 3px solid var(--paper);
  box-shadow: 0 0 0 1px var(--blue);
  transition: transform var(--dur-micro) var(--ease);
}
.fstudio__handle:active { cursor: grabbing; }
.fstudio__handle:active::before { transform: scale(1.25); }
.js .fstudio__handle { transition: left 0.38s var(--ease); }
.fstudio__track.is-drag .fstudio__handle { transition: none; }
.fstudio__read {
  margin-top: 26px;
  font-family: var(--serif); font-size: var(--t-md);
  font-variant-numeric: tabular-nums;
}
.fstudio__read .sub { display: block; margin-top: 6px; font-family: var(--sans); font-size: 13px; letter-spacing: 0.04em; color: var(--ink-2); }

/* small two-up policy blocks (edition / care) */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(1.4rem, 3vw, 2.6rem);
  margin-top: clamp(2.2rem, 4vw, 3.4rem);
}
.note-card { border-top: 1px solid var(--line-dark); padding-top: 18px; }
.note-card h3 { font-family: var(--serif); font-weight: 400; font-size: var(--t-md); }
.note-card p { margin-top: 12px; font-size: 15.5px; line-height: 1.65; color: var(--ink-2); }
.care-list { margin-top: clamp(2rem, 4vw, 3rem); display: grid; gap: 0; max-width: 720px; }
.care-list li {
  display: grid; grid-template-columns: 2.4ch 1fr; gap: 16px;
  padding: 18px 0; border-top: 1px solid var(--line);
  align-items: baseline;
}
.care-list li:last-child { border-bottom: 1px solid var(--line); }
.care-list .n { font-variant-numeric: tabular-nums; color: var(--blue); font-size: 14px; }
.care-list .t { font-family: var(--serif); font-size: var(--t-read); line-height: 1.5; }

/* ============================================================
   JOURNAL — expandable entries typeset like a minimal index
   ============================================================ */
.jindex { margin-top: clamp(3rem, 6vw, 5rem); }
.jentry { border-top: 1px solid var(--line); }
.jentry:last-of-type { border-bottom: 1px solid var(--line); }
.jentry__h { margin: 0; }
.jentry__head {
  width: 100%; text-align: left;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 24px;
  align-items: center;
  padding: clamp(26px, 4vw, 40px) 0;
  touch-action: manipulation;
}
.jentry__main { min-width: 0; }
.jentry__meta { display: flex; gap: 8px 18px; flex-wrap: wrap; margin-bottom: 14px; }
.jentry__title {
  display: block;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.35rem);
  line-height: 1.06; letter-spacing: -0.01em;
  transition: color var(--dur-micro) ease;
}
.jentry__teaser { display: block; margin-top: 12px; font-family: var(--serif); font-size: var(--t-read); line-height: 1.55; color: var(--ink-2); max-width: 54ch; }
.jentry__toggle {
  justify-self: end; align-self: center;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2);
  white-space: nowrap;
}
.jentry__toggle .lbl-open { display: inline; }
.jentry__toggle .lbl-close { display: none; }
.jentry__head[aria-expanded="true"] .lbl-open { display: none; }
.jentry__head[aria-expanded="true"] .lbl-close { display: inline; }
.jentry__sign {
  width: 26px; height: 26px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line-dark); border-radius: 50%;
  color: var(--ink); transition: transform 0.4s var(--ease), border-color var(--dur-micro) ease, color var(--dur-micro) ease;
}
.jentry__sign .v { transform-origin: center; transition: transform 0.4s var(--ease), opacity 0.3s ease; }
.jentry__head[aria-expanded="true"] .jentry__sign { transform: rotate(90deg); color: var(--blue); border-color: var(--blue); }
.jentry__head[aria-expanded="true"] .jentry__sign .v { opacity: 0; }
@media (hover: hover) and (pointer: fine) {
  .jentry__head:hover .jentry__title { color: var(--blue); }
  .jentry__head:hover .jentry__sign { border-color: var(--blue); color: var(--blue); }
}
.jentry__panel { overflow: hidden; }
.jentry__panel[hidden] { display: none; }
.jentry__inner { padding-bottom: clamp(32px, 5vw, 52px); }
.jentry__fig { margin: 0 0 clamp(1.6rem, 3vw, 2.4rem); max-width: 640px; }
.jentry__fig .pwrap { overflow: hidden; }
.jentry__fig figcaption { margin-top: 10px; }

/* ============================================================
   FAQ — shipping table, accordion, contact, locate + map
   ============================================================ */
.tablewrap { margin-top: clamp(2.2rem, 4vw, 3.4rem); overflow-x: auto; }
.ship-table { width: 100%; border-collapse: collapse; min-width: 460px; }
.ship-table caption { text-align: left; margin-bottom: 14px; }
.ship-table th, .ship-table td {
  text-align: left; padding: 15px 20px 15px 0; border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.ship-table thead th {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2);
  font-weight: 400; border-bottom-color: var(--line-dark);
}
.ship-table tbody th { font-family: var(--serif); font-weight: 400; font-size: var(--t-read); }
.ship-table td { color: var(--ink-2); font-size: 15px; }
.ship-table tbody tr:last-child th, .ship-table tbody tr:last-child td { border-bottom: none; }

/* accordion (progressive: open + readable without JS, collapses with JS) */
.acc { margin-top: clamp(2rem, 4vw, 3.2rem); }
.acc__group + .acc__group { margin-top: clamp(2.4rem, 4vw, 3.6rem); }
.acc__grouptitle { font-family: var(--serif); font-weight: 400; font-size: var(--t-md); margin-bottom: 6px; }
.acc__item { border-top: 1px solid var(--line); }
.acc__item:last-child { border-bottom: 1px solid var(--line); }
.acc__head {
  width: 100%; text-align: left;
  display: grid; grid-template-columns: 1fr 30px; align-items: center; gap: 18px;
  min-height: 40px; padding: 22px 0;
  touch-action: manipulation;
}
.acc__q { font-family: var(--serif); font-size: var(--t-read); line-height: 1.4; transition: color var(--dur-micro) ease; }
.acc__icon {
  position: relative; width: 30px; height: 30px; justify-self: end;
  display: grid; place-items: center; color: var(--ink);
  transition: color var(--dur-micro) ease;
}
.acc__icon::before, .acc__icon::after {
  content: ""; position: absolute; background: currentColor;
}
.acc__icon::before { width: 13px; height: 1.5px; }
.acc__icon::after { width: 1.5px; height: 13px; transition: transform 0.36s var(--ease); }
.js .acc__head[aria-expanded="true"] .acc__icon::after { transform: scaleY(0); }
.acc__head[aria-expanded="true"] .acc__q { color: var(--blue); }
@media (hover: hover) and (pointer: fine) {
  .acc__head:hover .acc__q { color: var(--blue); }
  .acc__head:hover .acc__icon { color: var(--blue); }
}
.acc__panel { overflow: hidden; }
.acc__panel[hidden] { display: none; }
.acc__inner { padding: 0 60px 26px 0; }
.acc__inner p { font-family: var(--serif); font-size: var(--t-read); line-height: 1.66; color: var(--ink-2); margin: 0; }
.acc__inner p + p { margin-top: 0.9em; }
.acc__inner a { color: var(--blue); text-decoration: none; box-shadow: 0 1px 0 rgba(0,47,167,0.35); }

/* contact form */
.contact { margin-top: clamp(2rem, 4vw, 3rem); max-width: 620px; }
.field { display: grid; gap: 8px; margin-bottom: 22px; }
.field label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field textarea {
  border: 0; border-bottom: 1px solid var(--line-dark);
  background: transparent; font: inherit; font-size: 16px; color: var(--ink);
  padding: 12px 2px; border-radius: 0;
}
.field textarea { resize: vertical; min-height: 108px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: #85857D; opacity: 1; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--blue); box-shadow: 0 1px 0 var(--blue); }
.field__err { font-size: 13px; color: #A3241B; min-height: 0; }
.field__err[hidden] { display: none; }
.contact__row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.contact__note { font-size: 13px; letter-spacing: 0.02em; color: var(--ink-2); max-width: 40ch; line-height: 1.5; }
.contact__ok { font-family: var(--serif); font-size: var(--t-md); line-height: 1.45; }

/* locate + map */
.locate {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-top: clamp(2.4rem, 4vw, 3.6rem);
}
.locate__col h3 { font-family: var(--serif); font-weight: 400; font-size: var(--t-md); }
.locate__addr { margin-top: 14px; font-family: var(--serif); font-size: var(--t-read); line-height: 1.6; }
.locate__hours { margin-top: 22px; display: grid; gap: 6px; }
.locate__hours .row { display: grid; grid-template-columns: 1fr auto; gap: 16px; font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.locate__open { margin-top: 22px; display: inline-flex; align-items: center; gap: 9px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.locate__dot { width: 8px; height: 8px; border-radius: 50%; background: #2E7D46; box-shadow: 0 0 0 3px rgba(46,125,70,0.16); }

/* the hand-built map */
.map {
  position: relative;
  border: 1px solid var(--line-dark);
  overflow: hidden;
  background: #f1f3f4;
}
.map__svg { display: block; width: 100%; height: auto; }
.map__road-case { fill: none; stroke: #e2e4e5; stroke-linecap: round; stroke-linejoin: round; }
.map__road { fill: none; stroke: #ffffff; stroke-linecap: round; stroke-linejoin: round; }
.map__road--major { }
.map__water { fill: #aad3df; }
.map__park { fill: #c9e7c9; }
.map__block { fill: #e9eaec; }
.map__label { fill: #7b7f83; font-family: var(--sans); font-size: 11px; letter-spacing: 0.02em; }
.map__label--water { fill: #5a94a6; }
.map__poi-dot { fill: #ffffff; stroke: #9aa0a6; stroke-width: 2; }
.map__poi-label { fill: #5f6368; font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: 0.01em; }
.map__pin-stem { fill: var(--blue); }
.map__pin-dot { fill: #ffffff; }
.map__ring { fill: var(--blue); transform-box: fill-box; transform-origin: center; opacity: 0.5; }
@media (prefers-reduced-motion: no-preference) {
  .map__ring { animation: map-pulse 2.8s var(--ease) infinite; }
  @keyframes map-pulse {
    0%   { transform: scale(0.6); opacity: 0.5; }
    70%  { transform: scale(2.6); opacity: 0; }
    100% { transform: scale(2.6); opacity: 0; }
  }
}

/* map info card (over the pin) */
.map__card {
  position: absolute;
  top: 14%; left: 51%;
  max-width: 232px;
  background: var(--paper);
  border: 1px solid var(--line-dark);
  box-shadow: 0 24px 50px -30px rgba(19,19,18,0.5);
  padding: 14px 16px;
}
@media (max-width: 560px) {
  .map__card { top: auto; bottom: 10px; left: 10px; right: 10px; max-width: none; }
  .map__zoom { display: none; }
}
.map__card-name { font-family: var(--serif); font-size: 16px; }
.map__card-addr { margin-top: 4px; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.map__card-open { margin-top: 8px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #2E7D46; display: inline-flex; align-items: center; gap: 7px; }
.map__card-open::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2E7D46; }

/* map chrome: zoom, directions, caption */
.map__zoom {
  position: absolute; top: 14px; right: 14px;
  display: grid; gap: 0;
  border: 1px solid var(--line-dark); background: var(--paper);
}
.map__zoom button {
  width: 38px; height: 38px; display: grid; place-items: center; color: var(--ink);
  position: relative;
}
.map__zoom button + button { border-top: 1px solid var(--line); }
.map__zoom span { position: relative; width: 13px; height: 13px; }
.map__zoom span::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1.5px; margin-top: -0.75px; background: currentColor; }
.map__zoom .z-in span::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1.5px; margin-left: -0.75px; background: currentColor; }
.map__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.map__dir {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line-dark); background: var(--paper);
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink);
  transition: border-color var(--dur-micro) ease, color var(--dur-micro) ease;
  touch-action: manipulation;
}
@media (hover: hover) and (pointer: fine) { .map__dir:hover { border-color: var(--blue); color: var(--blue); } }
.map__caption { font-size: 12px; letter-spacing: 0.02em; color: var(--ink-2); }
.map__dirnote { margin-top: 14px; font-size: 14px; line-height: 1.55; color: var(--ink-2); max-width: 52ch; }
.map__dirnote[hidden] { display: none; }

/* footer secondary nav */
.foot__nav { display: grid; gap: 10px; margin-top: 4px; }
.foot__nav a { font-size: 15px; color: var(--ink-2); text-decoration: none; min-height: 30px; display: inline-flex; align-items: center; transition: color var(--dur-micro) ease; width: fit-content; }
@media (hover: hover) and (pointer: fine) { .foot__nav a:hover { color: var(--blue); } }

/* ============================================================
   CONTENT PAGES — responsive
   ============================================================ */
@media (max-width: 900px) {
  .fstudio { grid-template-columns: 1fr; gap: clamp(1.5rem, 5vw, 2.5rem); }
  .fstudio__frame { width: min(70%, 360px); }
  .locate { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .pair { grid-template-columns: 1fr; }
  .pair--rev .pair__media { order: -1; }
}
@media (max-width: 640px) {
  .paper-grid { grid-template-columns: 1fr; }
  .jentry__head { grid-template-columns: 1fr; }
  .jentry__toggle { justify-self: start; margin-top: 6px; }
  .acc__inner { padding-right: 0; }
  .foot__grid { }
}

/* ============================================================
   V2 — HEADER: shared lead|nav|cart shell, hamburger, dark-room
   chrome inversion (.in-room is toggled by fx while the Room pin
   owns the viewport — color/background-color transitions only).
   ============================================================ */
.site { transition: background-color 0.5s ease, border-color 0.5s ease; }
.site__logo, .site__cart, .site__nav a, .site__menu { transition: color 0.5s ease; }
html.in-room .site { background-color: var(--room); border-bottom-color: rgba(250, 250, 247, 0.12); }
html.in-room .site__logo,
html.in-room .site__cart,
html.in-room .site__menu { color: #FAFAF7; }
html.in-room .site__nav a { color: rgba(250, 250, 247, 0.66); }
html.in-room .site__nav a[aria-current="page"],
html.in-room .site__nav a:hover { color: #FAFAF7; }
html.in-room .site__badge { border-color: rgba(250, 250, 247, 0.5); color: rgba(250, 250, 247, 0.8); }

.site__menu {
  display: none;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  touch-action: manipulation;
}
.site__menu:hover { color: var(--blue); }

/* full-height paper panel (mobile nav) */
.mnav {
  position: fixed; inset: 0; z-index: 250;
  background: var(--paper);
  padding: 20px var(--gutter) 32px;
  display: flex; flex-direction: column;
  opacity: 0;
  transform: translateY(-2%);
}
.mnav[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .mnav { transition: opacity 0.42s var(--ease), transform 0.42s var(--ease); }
}
.mnav.is-open { opacity: 1; transform: none; }
.mnav__top { display: flex; align-items: center; justify-content: space-between; }
.mnav__brand { font-family: var(--serif); font-size: 20px; letter-spacing: 0.06em; }
.mnav__close {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--line-dark);
  touch-action: manipulation;
}
.mnav__close:hover { color: var(--blue); border-color: var(--blue); }
.mnav__links { margin-top: 10vh; display: grid; }
.mnav__links a {
  display: grid;
  grid-template-columns: 3ch 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 60px;
  border-top: 1px solid var(--line);
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.mnav__links a:last-child { border-bottom: 1px solid var(--line); }
.mnav__links a[aria-current="page"] { color: var(--blue); }
.mnav__links .idx__a { justify-self: end; }
.mnav__foot { margin-top: auto; padding-top: 24px; display: grid; gap: 8px; }

@media (max-width: 700px) {
  .site {
    grid-template-columns: auto 1fr auto auto;
    grid-template-rows: none;
    height: 64px;
    padding-top: 0;
    gap: 10px;
  }
  .site__lead { grid-column: 1; }
  .site__nav { display: none; }
  .site__cart { grid-column: 3; }
  .site__menu { display: inline-flex; grid-column: 4; }
  html { scroll-padding-top: 80px; }
}

/* ============================================================
   V2 — HERO: standfirst, IKB underline wipe on the catalogue
   index, per-letter exit drift, video inset.
   ============================================================ */
.hero__stand {
  margin-top: 18px;
  max-width: 44ch;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.65;
}
.idx { position: relative; }
.idx::before {
  content: "";
  position: absolute; left: 0; right: 0; top: -1px;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.js .idx::before { transition: transform 0.5s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .idx:hover::before, .idx:focus-visible::before { transform: scaleX(1); }
}

/* per-letter drift while the wordmark scrubs out — letter 1 leaves first */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .js .hero__lw {
      animation: lw-drift auto linear both;
      animation-timeline: view(block);
      animation-range: exit 0% exit 100%;
    }
    .js .hero__letters .hero__lw:nth-child(1) { --lwy: -46px; }
    .js .hero__letters .hero__lw:nth-child(2) { --lwy: -36px; }
    .js .hero__letters .hero__lw:nth-child(3) { --lwy: -27px; }
    .js .hero__letters .hero__lw:nth-child(4) { --lwy: -19px; }
    .js .hero__letters .hero__lw:nth-child(5) { --lwy: -12px; }
    .js .hero__letters .hero__lw:nth-child(6) { --lwy: -6px; }
    @keyframes lw-drift {
      from { transform: translateY(0); }
      to   { transform: translateY(var(--lwy, -20px)); }
    }
  }
}

/* ============================================================
   V2 — VIDEO SLOTS (fleet contract). The mp4s may not exist yet:
   .video-pending styles the poster as a deliberate film still
   with a caption chip. When the file lands, it simply plays.
   ============================================================ */
.vslot .vwrap { position: relative; overflow: hidden; background: var(--room); }
.vslot video { display: block; width: 100%; height: 100%; object-fit: cover; }
.vslot .vwrap--ratio { aspect-ratio: 3 / 2; }
.vslot .vwrap--wide { aspect-ratio: 16 / 10; }
.vslot .vwrap--ratio video, .vslot .vwrap--wide video { position: absolute; inset: 0; }
.vslot .vposter {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
}
.vslot .vchip {
  position: absolute; left: 12px; bottom: 12px;
  padding: 7px 12px 6px;
  background: rgba(11, 11, 16, 0.78);
  color: #FAFAF7;
  opacity: 0;
  pointer-events: none;
}
.js .vslot .vposter, .js .vslot .vchip { transition: opacity 0.4s ease; }
.vslot.video-pending video { visibility: hidden; }
.vslot.video-pending .vposter { opacity: 1; }
.vslot.video-pending .vchip { opacity: 1; }

/* hero / press insets ride the shared parallax where supported */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .js .vslot--plx .vwrap video, .js .vslot--plx .vwrap .vposter {
      scale: 1.1;
      animation: plx linear both;
      animation-timeline: view();
    }
  }
}

/* ============================================================
   V2 — THE ROOM (index signature section). Hidden until fx.js
   proves WebGL (html.webgl-on); the CSS floor grid is the
   fallback AND the no-JS path. Both share data-id buttons.
   ============================================================ */
.room { display: none; background: var(--room); color: #FAFAF7; }
html.webgl-on .room { display: block; }
html.webgl-on .floor { display: none; }

.room__head { padding: var(--block) var(--gutter) clamp(2rem, 4vw, 3.5rem); max-width: 820px; }
.room__head .meta { color: rgba(250, 250, 247, 0.58); }
.room__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--t-xl);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin-top: 14px;
  color: #FAFAF7;
}
.room__intro {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: var(--t-read);
  line-height: 1.6;
  color: rgba(250, 250, 247, 0.72);
  max-width: 46ch;
}

.room__pin { position: relative; height: 300vh; }
.room__stage {
  position: sticky; top: 0;
  height: 100vh; height: 100dvh;
  overflow: hidden;
}
.room__canvas, .room__stage canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}

/* DOM captions — positioned/focused by fx, styled here */
.room__cap {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(72px, 12vh, 130px);
  max-width: 320px;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
}
.js .room__cap { transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.room__cap.is-focus { opacity: 1; transform: none; }
.room__cap .meta { color: rgba(250, 250, 247, 0.55); }
.room__cap-title {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem);
  line-height: 1.08;
  color: #FAFAF7;
  margin-top: 8px;
}
.room__cap-series { display: block; margin-top: 8px; }
.room__cap-price { display: block; margin-top: 4px; color: rgba(250, 250, 247, 0.8) !important; }

/* progress rail — 8 ticks, active in IKB */
.room__rail {
  position: absolute;
  right: clamp(14px, 2vw, 26px);
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 12px;
}
.room__tick {
  width: 2px; height: 22px;
  background: rgba(250, 250, 247, 0.22);
}
.js .room__tick { transition: background-color 0.3s ease, box-shadow 0.3s ease; }
.room__tick.is-on { background: var(--blue); box-shadow: 0 0 12px rgba(0, 47, 167, 0.9); }

.room__hint {
  position: absolute;
  left: 50%; bottom: clamp(18px, 4vh, 34px);
  transform: translateX(-50%);
  padding: 10px 16px;
  border: 1px solid rgba(250, 250, 247, 0.2);
  color: rgba(250, 250, 247, 0.66);
  white-space: nowrap;
}
.js .room__hint { transition: opacity 0.5s ease; }
.room__hint.is-hidden { opacity: 0; }

.room__exit {
  padding: clamp(3rem, 6vw, 5rem) var(--gutter) var(--block);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 340;
  font-size: var(--t-md);
  color: rgba(250, 250, 247, 0.78);
  max-width: 40ch;
}

/* ============================================================
   V2 — OVERFLOW-MASK FIGURE REVEAL (about / journal figures):
   inner image settles from scale(1.12) translateY(4%).
   ============================================================ */
.maskrv .pwrap { overflow: hidden; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .js .maskrv .pwrap img {
      scale: 1.12;
      translate: 0 4%;
      animation: mask-settle linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 42%;
    }
    @keyframes mask-settle {
      to { scale: 1; translate: 0 0; }
    }
  }
}

/* ============================================================
   V2 — PROCESS: sticky step rail (desktop) + raking-light
   paper-swatch sheen + frame-studio WebGL mount gates.
   ============================================================ */
.prail { display: none; }
@media (min-width: 1100px) {
  .prail {
    position: fixed;
    left: clamp(12px, 1.4vw, 22px);
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    gap: 20px;
    z-index: 30;
  }
  .prail a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding-left: 20px;
    text-decoration: none;
    font-family: var(--sans);
    font-weight: 500;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    color: var(--ink-2);
    font-variant-numeric: tabular-nums;
    transition: color 0.3s ease;
  }
  .prail a::before {
    content: "";
    position: absolute; left: 0; top: 50%;
    width: 12px; height: 1.5px;
    margin-top: -0.75px;
    background: var(--blue);
    transform: scaleX(0.35);
    transform-origin: 0 50%;
    transition: transform 0.4s var(--ease);
    opacity: 0.35;
  }
  .prail a:hover { color: var(--blue); }
  .prail a.is-active { color: var(--blue); }
  .prail a.is-active::before { transform: scaleX(1); opacity: 1; }
}

/* raking light: a pre-painted diagonal sheen translated across on
   hover — like tilting paper under a window (transform-only) */
.swatch__tex { position: relative; overflow: hidden; }
.swatch__tex::after {
  content: "";
  position: absolute;
  top: -60%; bottom: -60%; left: 0;
  width: 46%;
  background: linear-gradient(105deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.32) 42%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0.32) 58%,
    rgba(255, 255, 255, 0) 100%);
  transform: translateX(-130%);
  pointer-events: none;
}
.js .swatch__tex::after { transition: transform 0.9s var(--ease); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .swatch:hover .swatch__tex::after { transform: translateX(350%); }
}

/* frame studio v2 — fx swaps the flat preview for a 3D scene */
.fstudio__gl { display: none; position: relative; min-height: 320px; }
.fstudio--gl .fstudio__gl { display: block; }
.fstudio--gl .fstudio__stage { display: none; }
.fstudio__glline { display: none; margin-top: 14px; font-family: var(--serif); font-style: italic; color: var(--ink-2); }
.fstudio--gl .fstudio__glline { display: block; }

/* ============================================================
   V2 — JOURNAL: quiet IKB underline wipe on entry titles.
   ============================================================ */
.jentry__title::after {
  content: "";
  display: block;
  width: min(220px, 60%);
  height: 1px;
  margin-top: 8px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.js .jentry__title::after { transition: transform 0.5s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .jentry__head:hover .jentry__title::after,
  .jentry__head:focus-visible .jentry__title::after { transform: scaleX(1); }
}

/* ============================================================
   V2 — FOOTER: credit line (fleet) — the columns reveal via the
   shared .rv system (classes in markup).
   ============================================================ */
.foot__credit a {
  color: var(--blue);
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(0, 47, 167, 0.35);
  transition: box-shadow var(--dur-micro) ease;
}
@media (hover: hover) and (pointer: fine) { .foot__credit a:hover { box-shadow: 0 2px 0 var(--blue); } }

/* ============================================================
   V2 — CHECKOUT: packing-room backdrop, paper card, demo-payment
   choreography, printed receipt. No backdrop-filter anywhere.
   ============================================================ */
.co { position: relative; min-height: 100vh; min-height: 100dvh; background: var(--room); }
.co__bg { position: fixed; inset: 0; overflow: hidden; }
.co__bg video, .co__bg .vposter {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.co__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(11, 11, 16, 0.65); /* backdrop dimmed to ~35% */
}
.co__bg .vchip { z-index: 1; }

.co__head {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
}
.co__head .site__logo { color: #FAFAF7; }
.co__head .badge { border-color: rgba(250, 250, 247, 0.5); color: rgba(250, 250, 247, 0.8); }
.co__back {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  color: rgba(250, 250, 247, 0.8);
  text-decoration: none;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  transition: color var(--dur-micro) ease;
}
.co__back:hover { color: #FAFAF7; }

.co__wrap {
  position: relative; z-index: 1;
  display: grid; justify-items: center;
  padding: clamp(24px, 6vh, 64px) var(--gutter) clamp(48px, 8vh, 96px);
}
.co__card {
  width: min(600px, 100%);
  background: var(--paper);
  padding: clamp(24px, 5vw, 48px);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.75);
}
.co__brand { letter-spacing: 0.22em; }
.co__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  line-height: 1.08;
  margin-top: 12px;
}
.co__empty { margin-top: 20px; font-family: var(--serif); font-size: var(--t-md); line-height: 1.5; color: var(--ink-2); }
.co__empty[hidden] { display: none; }
.co__empty a { color: var(--blue); }

.co-items { margin-top: clamp(18px, 3vw, 28px); }
.co-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.co-item__img { width: 44px; height: 58px; object-fit: cover; border: 1px solid var(--line-dark); background: var(--mat); }
.co-item__title { font-family: var(--serif); font-size: 16px; }
.co-item__meta { margin-top: 2px; }
.co-item__price { font-variant-numeric: tabular-nums; font-size: 15px; }
@media (prefers-reduced-motion: no-preference) {
  .js .co-item { animation: c-in 0.5s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
}
.co__totals { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; }
.co__totals strong { font-family: var(--serif); font-weight: 400; font-size: 24px; font-variant-numeric: tabular-nums; }
.co__shipnote { margin-top: 6px; }
#coSummary[hidden] { display: none; }

.co__pay { margin-top: clamp(24px, 4vw, 36px); border-top: 1px solid var(--line-dark); padding-top: clamp(20px, 3vw, 28px); }
.co__pay[hidden] { display: none; }
.co__paytitle { font-family: var(--serif); font-weight: 400; font-size: var(--t-md); }
.co__paybody { margin-top: 10px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); max-width: 52ch; }
.co__paybtn { margin-top: 18px; width: 100%; }
.co__paybtn.is-running { opacity: 0.55; }

.pay-lines { margin-top: 18px; display: grid; gap: 4px; }
.pay-line {
  position: relative;
  overflow: hidden;
  padding: 8px 2px;
  font-family: var(--serif);
  font-size: 16.5px;
  opacity: 0;
  transform: translateY(8px);
}
.js .pay-line { transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.pay-line.is-in { opacity: 1; transform: none; }
/* each line is swept in by the 2px IKB scan bar — the launch motif */
.pay-line::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent calc(100% - 2px), var(--blue) calc(100% - 2px));
  transform: translateX(-100%);
  opacity: 1;
  pointer-events: none;
}
.js .pay-line.is-in::after {
  transform: translateX(0);
  opacity: 0;
  transition: transform 0.45s linear, opacity 0.25s ease 0.45s;
}

.receipt { margin-top: 22px; overflow: hidden; }
.receipt[hidden] { display: none; }
.receipt__paper {
  position: relative;
  border: 1px solid var(--line-dark);
  padding: 20px 18px;
  background:
    repeating-linear-gradient(0deg, rgba(19, 19, 18, 0.014) 0 1px, transparent 1px 4px),
    #FCFCF9;
  transform: translateY(-102%);
}
.js .receipt.is-in .receipt__paper { transform: none; transition: transform 0.7s var(--ease); }
.receipt__stamp {
  position: absolute; top: 14px; right: 14px;
  padding: 5px 10px 4px;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: rotate(-6deg);
}
.receipt__no { margin-bottom: 12px; }
.receipt__row {
  display: flex; justify-content: space-between; gap: 18px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14.5px;
  font-variant-numeric: tabular-nums;
}
.receipt__row--total { border-bottom: 0; padding-top: 12px; font-family: var(--serif); font-size: 18px; }

.co__done { margin-top: 20px; opacity: 0; transform: translateY(8px); }
.co__done[hidden] { display: none; }
.js .co__done { transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.co__done.is-in { opacity: 1; transform: none; }
.co__done .btn-primary { width: 100%; }

/* honest-disclosure line stays readable at all times; the demo run
   only re-emphasises it (color deepens) as its closing beat */
.co__honesty { margin-top: 22px; opacity: 0.72; }
.js .co__honesty { transition: opacity 0.7s ease 0.25s; }
.co__honesty.is-in { opacity: 1; }

/* checkout card rides the shared reveal system */
.co__card.rv { --d: 0.1s; }

/* ============================================================
   V2 — 404
   ============================================================ */
.nf { min-height: 62vh; display: grid; align-content: center; padding: clamp(46px, 9vw, 120px) var(--gutter); }
.nf__code { color: var(--blue); }
.nf__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--t-xl);
  line-height: 1.03;
  letter-spacing: -0.015em;
  margin-top: 16px;
  max-width: 16ch;
}
.nf__lead { margin-top: 20px; font-family: var(--serif); font-size: var(--t-md); color: var(--ink-2); max-width: 42ch; line-height: 1.5; }
.nf__row { margin-top: clamp(24px, 4vw, 40px); display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }

/* ============================================================
   REDUCED MOTION — hard stops for anything not already gated
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    transition-delay: 0s !important;
  }
  .marquee__track { animation: none !important; transform: none !important; }
  .map__ring { animation: none !important; opacity: 0 !important; }
  .loader__scan { display: none !important; }
  .swatch__tex::after { display: none !important; }
}
