/* Julian Hernandez — tattoo portfolio and print shop.
   Design system: UI UX Pro Max (design-system/julian-hernandez-tattoo/),
   "Exaggerated Minimalism": oversized Archivo 900, Space Grotesk, a neutral
   gallery palette inverted for a dark room, one minimal accent. Deviations
   from the generated master are listed in design-system/…/pages/home.md. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-variable.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;

  /* Colour: the master palette, inverted. Ratios are against --bg. */
  --bg: #09090b;          /* master "Text" */
  --surface: #18181b;     /* master "Primary" */
  --surface-2: #27272a;   /* master "Secondary" */
  --text: #fafafa;        /* master "Background" — 19.1:1 */
  --text-dim: #a1a1aa;    /* 7.8:1 */
  --text-faint: #8b8b94;  /* 5.9:1 */
  --cta: #f8fafc;         /* master "CTA"; --bg text on it is 19:1 */
  --accent: #e25c43;      /* minimal accent: marks and errors only — 5.5:1 */
  --accent-text: #f06a50; /* the accent as text: 6.5:1 on --bg, 5.1:1 on the smoke's brightest wisp */
  --rule: rgb(250 250 250 / 0.12);
  --rule-strong: rgb(250 250 250 / 0.28);

  /* Type */
  --font-display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.9375rem;
  --text-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --text-xl: clamp(1.375rem, 1.1rem + 1.1vw, 2.125rem);
  --text-2xl: clamp(2.5rem, 1.4rem + 4.6vw, 5.5rem);
  --text-hero: clamp(2.75rem, 16.5vw, 9.5rem); /* "HERNANDEZ" is 4.89em wide at 75% stretch */
  --display-stretch: 75%; /* Archivo's condensed cut for the big type */

  /* Space (master scale: 4 8 16 24 32 48 64) */
  --gutter: clamp(1.25rem, 0.75rem + 2.2vw, 2.75rem);
  --wrap: 75rem; /* 1200px */
  --section: clamp(5rem, 3rem + 7vw, 10rem);
  --header-h: 4rem;
  --float: clamp(0.5rem, 0.35rem + 0.5vw, 0.875rem);
  --tap: 2.75rem;

  /* Layers */
  --z-content: 10;
  --z-controls: 20;
  --z-header: 30;
  --z-skip: 50;

  /* Motion: 150–300ms for interaction */
  --ease-out: cubic-bezier(0.22, 0.8, 0.24, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1); /* expo.out: fast start, long settle, for the header type */
  --fast: 200ms;
  --medium: 300ms;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--float) + var(--header-h) + 1rem);
}
html.is-locked { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  font: 400 var(--text-base)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
dl, dd { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; transition: color var(--fast) ease, text-decoration-color var(--fast) ease; }
a:hover { text-decoration-color: var(--accent); }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; margin: 0; padding: 0; } /* zero specificity: classes win */
::selection { background: var(--text); color: var(--bg); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
[hidden] { display: none !important; }

.sprite { display: none; }
.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* Read by screen readers, not drawn. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.label,
.eyebrow,
.section__num {
  font: 500 var(--text-xs)/1.2 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.skip-link {
  position: absolute;
  top: 0;
  left: var(--gutter);
  z-index: var(--z-skip);
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--cta);
  text-decoration: none;
  transform: translateY(-120%);
}
.skip-link:focus { transform: translateY(0.75rem); }

/* ---------- Buttons & links ---------- */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-border: var(--rule-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 3rem;
  padding: 0 1.4rem;
  font: 600 0.8125rem/1 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  border-radius: 0;
  cursor: pointer;
  transition: background-color var(--fast) ease, color var(--fast) ease, border-color var(--fast) ease;
}
.btn .icon { transition: transform var(--fast) var(--ease-out); }
.btn:hover .icon { transform: translateX(3px); }
.btn:hover .icon:has(use[href="#i-arrow-up-right"]) { transform: translate(2px, -2px); }
.btn--primary { --btn-bg: var(--cta); --btn-fg: var(--bg); --btn-border: var(--cta); }
.btn--primary:hover { --btn-bg: transparent; --btn-fg: var(--text); --btn-border: var(--text); }
.btn--ghost:hover { --btn-border: var(--text); --btn-bg: rgb(250 250 250 / 0.06); }
.btn--sm { min-height: var(--tap); padding: 0 1rem; font-size: var(--text-xs); }
.btn--block { width: 100%; }
.btn:disabled,
.btn[aria-busy="true"] { cursor: progress; opacity: 0.8; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--rule-strong);
  cursor: pointer;
  transition: border-color var(--fast) ease, background-color var(--fast) ease;
}
.icon-btn:hover { border-color: var(--text); background: rgb(250 250 250 / 0.06); }
.icon-btn .icon { width: 1.25rem; height: 1.25rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  min-height: var(--tap);
  font: 600 var(--text-xs)/1.2 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
}
.link-arrow .icon { transition: transform var(--fast) var(--ease-out); }
.link-arrow:hover { color: var(--accent-text); }
.link-arrow:hover .icon { transform: translate(2px, -2px); }

.spinner {
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

/* ---------- Header: floats inside the viewport edges ---------- */

.site-header {
  position: fixed;
  top: var(--float);
  left: var(--float);
  right: var(--float);
  z-index: var(--z-header);
}
/* The bar's fill lives on a pseudo-element: backdrop-filter on the header
   itself would trap the fixed-position mobile menu inside it. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(9 9 11 / 0.88);
  border: 1px solid var(--rule);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 0.6rem 1.75rem;
  width: min(100% + 2 * var(--float) - 2 * var(--gutter), var(--wrap));
  min-height: var(--header-h);
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  margin-right: auto;
  font: 800 1.0625rem/1 var(--font-display);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav ul { display: flex; gap: 1.75rem; }
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font: 500 var(--text-xs)/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
}
.site-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 0.6rem;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--fast) var(--ease-out);
}
.site-nav a:hover::after,
.site-nav a[aria-current]::after { transform: scaleX(1); }

.cart-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: var(--tap);
  padding: 0 0.8rem;
  font: 600 var(--text-xs)/1 var(--font-body);
  color: var(--text);
  background: transparent;
  border: 1px solid var(--rule-strong);
  cursor: pointer;
  transition: border-color var(--fast) ease, background-color var(--fast) ease;
}
.cart-toggle:hover { border-color: var(--text); background: rgb(250 250 250 / 0.06); }
.cart-toggle__count {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.3rem;
  color: var(--bg);
  background: var(--cta);
}

.nav-toggle { display: none; }

@media (max-width: 859px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
    width: var(--tap);
    height: var(--tap);
    padding: 0;
    color: var(--text);
    background: none;
    border: 1px solid var(--rule-strong);
    cursor: pointer;
  }
  .site-nav {
    position: fixed;
    top: calc(var(--float) + var(--header-h) + 0.5rem);
    left: var(--float);
    right: var(--float);
    display: none;
    max-height: calc(100dvh - var(--header-h) - 3 * var(--float) - 0.5rem);
    padding: 0.5rem 1.25rem 1rem;
    overflow-y: auto;
    background: var(--bg);
    border: 1px solid var(--rule);
  }
  .site-nav[data-open] { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li + li { border-top: 1px solid var(--rule); }
  .site-nav a {
    display: flex;
    min-height: 4.25rem;
    font: 900 2.25rem/1 var(--font-display);
    font-stretch: var(--display-stretch);
    letter-spacing: -0.04em;
  }
  .site-nav a::after { display: none; }
}
/* Six links plus the CTA only just fit between the menu breakpoint and ~1100px. */
@media (min-width: 860px) and (max-width: 1099px) {
  .site-header__inner { column-gap: 1.1rem; }
  .site-nav ul { gap: 1.1rem; }
  .header-cta .hide-sm { display: none; }
}
@media (max-width: 479px) {
  .hide-sm { display: none; }
  .site-header__inner:has(.cart-toggle:not([hidden])) .header-cta { display: none; }
}

/* ---------- Smoke ---------- */

/* The WebGL smoke from app.js, behind everything. It is sized to the large
   viewport, so a phone's collapsing toolbar doesn't resize it. */
.smoke {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100lvh;
  pointer-events: none;
}

/* ---------- Video header ---------- */

/* Julian's reel, the first thing on the page. It is decoration (muted, no
   controls, hidden from assistive tech): the hero below carries the words. It
   plays only when motion is welcome, stops off screen, and has a Pause control
   (WCAG 2.2.2); otherwise the poster stands still. On phones it fills the
   screen; on wide screens it takes the left half and dissolves into the smoke
   on the right, with the type over the smoke. */
.reel {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  height: 100svh;
  min-height: 30rem;
  overflow: hidden;
}
/* The clip and its shading fade out at the bottom, so the header dissolves
   into the smoke that carries on down the page. */
.reel__media,
.reel::after {
  position: absolute;
  inset: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 97%);
  mask-image: linear-gradient(to bottom, #000 62%, transparent 97%);
}
.reel__media { z-index: -2; }
.reel__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}
/* A darker top under the floating header, a pool of shadow bottom-left for
   the type, and a vignette. */
.reel::after {
  content: "";
  z-index: -1;
  background:
    radial-gradient(80% 70% at 0% 100%, rgb(9 9 11 / 0.82), transparent 72%),
    linear-gradient(to bottom, rgb(9 9 11 / 0.55), transparent 22%, transparent 55%, rgb(9 9 11 / 0.6)),
    radial-gradient(130% 100% at 50% 35%, transparent 55%, rgb(9 9 11 / 0.55));
  pointer-events: none;
}

/* Kinetic type, bottom-left, clear of Julian's face: what he does, one word
   at a time (Tattoos · Airbrush · Murals · Fine art, from his bio). */
.reel__content { padding-bottom: clamp(1rem, 0.5rem + 2vw, 2.25rem); }
.reel__eyebrow { color: var(--text); }
.reel__title {
  margin-top: clamp(0.75rem, 0.5rem + 0.8vw, 1.25rem);
  font: 900 clamp(3.25rem, 2rem + 11vw, 10.5rem)/0.86 var(--font-display);
  font-stretch: var(--display-stretch);
  letter-spacing: -0.05em;
  word-spacing: 0.12em; /* the tight tracking all but closes the gap in "Fine art" */
  text-transform: uppercase;
}
/* Every word shares one grid cell, so the box is always as wide as the
   widest word and nothing below it moves when the word changes. */
.reel__words { display: grid; overflow: hidden; padding-block: 0.04em; }
.reel__word {
  grid-area: 1 / 1;
  transform: translateY(110%);
  transition: transform 800ms var(--ease-expo);
}
.reel__word.is-current { transform: none; }
.reel__word.is-leaving { transform: translateY(-110%); }
.reel__word:not(.is-current, .is-leaving) { transition: none; } /* reset below without a visible pass */

.reel__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(1.25rem, 0.75rem + 1.5vw, 2.25rem);
}
.reel__scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-height: var(--tap);
  font: 600 var(--text-xs)/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}
/* An ink drip down a hairline: the "scroll" gesture, drawn. */
.reel__drip {
  position: relative;
  width: 1px;
  height: 2.75rem;
  overflow: hidden;
  background: var(--rule-strong);
}
.reel__drip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--text);
  transform: translateY(-100%);
}
.reel.is-paused .reel__drip::after { animation-play-state: paused; }

/* Wide screens: the clip takes the left half and fades into the smoke on the
   right, like the wall beside the hero but mirrored; the type sits over the
   smoke, level with the middle of the clip. */
@media (min-width: 960px) {
  .reel { align-items: stretch; }
  .reel__media,
  .reel::after {
    right: auto;
    width: 56%;
    -webkit-mask-image: linear-gradient(to right, #000 46%, transparent), linear-gradient(to bottom, #000 62%, transparent 97%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, #000 46%, transparent), linear-gradient(to bottom, #000 62%, transparent 97%);
    mask-composite: intersect;
  }
  .reel__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    column-gap: clamp(2rem, 4vw, 4rem);
    padding-top: calc(var(--float) + var(--header-h) + 1rem);
  }
  .reel__text { grid-column: 2; align-self: center; }
  .reel__bar { grid-column: 1 / -1; }
  .reel__title { font-size: min(10.5rem, 8.6vw); } /* "AIRBRUSH" fits the right column */
}

/* ---------- Hero ---------- */

.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero__inner {
  position: relative;
  z-index: var(--z-content);
  display: grid;
  gap: 2.75rem;
  padding-block: clamp(3rem, 1.75rem + 5vw, 6.5rem) clamp(2.5rem, 1.5rem + 3vw, 4rem);
  pointer-events: none; /* the box spans the wall on wide screens; only its content catches the pointer */
}
.hero__inner > * { pointer-events: auto; }

.eyebrow { display: inline-flex; align-items: center; gap: 0.7rem; }
.dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); }

.hero__title {
  margin-top: 1.25rem;
  font: 900 var(--text-hero)/0.86 var(--font-display);
  font-stretch: var(--display-stretch);
  letter-spacing: -0.05em;
  text-transform: uppercase;
}
.hero__title .line { display: block; }

.hero__lede {
  max-width: 32rem;
  margin-top: 2rem;
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--text-dim);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.hero__actions .btn { flex: 1 1 auto; }

.hero__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}
.hero__facts dt { font: 500 var(--text-xs)/1.2 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); }
.hero__facts dd { margin-top: 0.4rem; font-size: var(--text-sm); }

@media (min-width: 600px) {
  .hero__actions .btn { flex: none; }
  .hero__facts { grid-template-columns: repeat(3, auto); justify-content: start; column-gap: 3rem; }
}

/* The 45° wall: columns of work, tilted, drifting in alternate directions.
   The tilted plane is twice the wall's size so no corner ever shows, and
   each track holds its set twice so translateY(-50%) loops seamlessly. */
.wall {
  --wall-tilt: 45deg;
  --tile: clamp(7.25rem, 4.5rem + 8.5vw, 13rem);
  --gap: clamp(0.5rem, 0.3rem + 0.6vw, 1rem);
  position: relative;
  height: clamp(21rem, 96vw, 36rem);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
}
.wall__tilt {
  position: absolute;
  inset: -50%;
  display: flex;
  justify-content: center;
  gap: var(--gap);
  transform: rotate(var(--wall-tilt));
}
.wall__col { flex: none; width: var(--tile); }
.wall__col:nth-child(3n + 1) { --drift: 96s; }
.wall__col:nth-child(3n + 2) { --drift: 78s; }
.wall__col:nth-child(3n) { --drift: 86s; }
.wall__track {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  padding-bottom: var(--gap);
  animation: wall-drift var(--drift) linear infinite;
  will-change: transform;
}
.wall__col:nth-child(even) .wall__track { animation-direction: reverse; }
.wall__col:hover .wall__track,
.wall.is-paused .wall__track,
.wall.is-offscreen .wall__track { animation-play-state: paused; }

.wall__tile { aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.wall__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--medium) var(--ease-out); }
.wall__tile[data-open] { cursor: zoom-in; }
.wall__tile[data-open]:hover img { transform: scale(1.05); }
.wall__tile.is-empty {
  border: 1px solid var(--rule);
  background:
    repeating-linear-gradient(135deg, transparent 0 13px, rgb(250 250 250 / 0.04) 13px 14px),
    var(--surface);
}

/* Pause/play for the page's two moving things: the header video and the wall. */
.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: var(--tap);
  padding: 0 0.95rem;
  font: 600 var(--text-xs)/1 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  background: rgb(9 9 11 / 0.8);
  border: 1px solid var(--rule-strong);
  cursor: pointer;
  transition: border-color var(--fast) ease;
}
.motion-toggle:hover { border-color: var(--text); }
.hero > .motion-toggle {
  position: absolute;
  right: var(--gutter);
  bottom: 1.25rem;
  z-index: var(--z-controls);
}

@media (min-width: 960px) {
  .hero { display: grid; align-items: center; min-height: min(100svh, 62rem); }
  .hero__text,
  .hero__facts { max-width: min(46vw, 36rem); }
  .hero__title { font-size: min(9.4vw, 7.3rem); } /* the column ÷ 4.89em */
  .wall {
    position: absolute;
    inset: 0 0 0 42%;
    height: auto;
    -webkit-mask-image: linear-gradient(to right, transparent, rgb(0 0 0 / 0.35) 16%, #000 38%);
    mask-image: linear-gradient(to right, transparent, rgb(0 0 0 / 0.35) 16%, #000 38%);
  }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section); border-top: 1px solid var(--rule); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.25rem;
  margin-bottom: clamp(2rem, 1.5rem + 2.5vw, 4rem);
}
.section__num { color: var(--accent-text); }
.section__title {
  font: 900 var(--text-2xl)/0.9 var(--font-display);
  font-stretch: var(--display-stretch);
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.section__aside {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.75rem;
  margin-left: auto;
  font-size: var(--text-sm);
  color: var(--text-dim);
}

/* Heading column + two content columns, used by About and Studio. */
.split { display: grid; gap: 2.5rem; }
@media (min-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.45fr) minmax(0, 0.95fr);
    column-gap: clamp(2rem, 4vw, 4.5rem);
    align-items: start;
  }
  .split > .section__head { flex-direction: column; gap: 0.9rem; margin: 0; }
}

/* ---------- Work ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.5rem, 0.3rem + 0.9vw, 1.125rem);
}
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gallery[data-collapsed] > .tile:nth-child(n + 13) { display: none; }

.tile__link {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface);
  cursor: zoom-in;
}
.tile__link img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--medium) var(--ease-out); }
.tile__link:hover img { transform: scale(1.04); }

.tile__meta {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 3rem 0.9rem 0.85rem;
  background: linear-gradient(to top, rgb(9 9 11 / 0.9), rgb(9 9 11 / 0));
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity var(--fast) ease, transform var(--fast) var(--ease-out);
}
.tile__link:hover .tile__meta,
.tile__link:focus-visible .tile__meta { opacity: 1; transform: none; }
.tile__no { font: 600 var(--text-xs)/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); }
.tile__cap {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: var(--text-sm);
  line-height: 1.35;
}

/* Touch screens have no hover: keep the number, drop the caption. */
@media (hover: none) {
  .tile__meta { opacity: 1; transform: none; padding: 0.55rem; background: none; }
  .tile__no { padding: 0.35rem 0.45rem; background: rgb(9 9 11 / 0.72); }
  .tile__cap { display: none; }
}

.tile.is-empty {
  display: grid;
  align-items: end;
  aspect-ratio: 4 / 5;
  padding: 0.9rem;
  border: 1px solid var(--rule);
  background:
    repeating-linear-gradient(135deg, transparent 0 13px, rgb(250 250 250 / 0.035) 13px 14px),
    var(--surface);
}
.gallery__note { max-width: 40rem; margin-top: 1.75rem; color: var(--text-dim); }

.work__more { display: flex; justify-content: center; margin-top: 2.5rem; }
.work__more:not(:has(.btn:not([hidden]))) { display: none; }

/* ---------- Prints & art ---------- */

.shop-intro { max-width: 36rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); color: var(--text-dim); }

.shop {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 1rem + 1.6vw, 2.5rem) clamp(0.75rem, 0.4rem + 1vw, 1.5rem);
}
@media (min-width: 720px) { .shop { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .shop { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.product__link { display: grid; gap: 0.9rem; text-decoration: none; cursor: pointer; }
.product__mat {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  aspect-ratio: 4 / 5;
  padding: 12%;
  background: var(--surface);
  transition: background-color var(--medium) ease;
}
.product__mat img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  box-shadow: 0 12px 28px rgb(0 0 0 / 0.5);
  transition: transform var(--medium) var(--ease-out);
}
.product__link:hover .product__mat { background: var(--surface-2); }
.product__link:hover .product__mat img { transform: translateY(-4px); }
.product__info { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 0.75rem; }
.product__title { font: 800 var(--text-base)/1.2 var(--font-display); letter-spacing: -0.01em; text-transform: uppercase; }
.product__price { font-size: var(--text-sm); color: var(--text-dim); white-space: nowrap; }

.shop-empty { max-width: 44rem; padding: clamp(1.5rem, 1rem + 3vw, 3rem); border: 1px solid var(--rule); }
.shop-empty p + p { margin-top: 0.9rem; color: var(--text-dim); }
.shop-empty__lead { font: 900 var(--text-xl)/1 var(--font-display); font-stretch: var(--display-stretch); letter-spacing: -0.03em; text-transform: uppercase; }
.shop-note { margin-top: 1.5rem; color: var(--text-dim); }

/* ---------- About ---------- */

.prose > * + * { margin-top: 1.25rem; }
.prose p { color: var(--text-dim); }
.prose .prose__lead { font: 700 var(--text-xl)/1.15 var(--font-display); letter-spacing: -0.02em; color: var(--text); }

.about__bio { margin: 2rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.about__bio blockquote { margin: 0; font: 500 var(--text-lg)/1.45 var(--font-body); color: var(--text); }
.about__bio blockquote p { color: inherit; }
.about__bio figcaption {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  font: 500 var(--text-xs)/1.2 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.about__avatar { border-radius: 50%; }

.facts { border-top: 1px solid var(--rule); }
.facts > div { display: grid; gap: 0.35rem; padding-block: 1rem; border-bottom: 1px solid var(--rule); }
.facts dt { font: 500 var(--text-xs)/1.2 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); }

/* ---------- Booking ---------- */

.booking { display: grid; gap: 3rem; }
@media (min-width: 960px) {
  .booking { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(3rem, 6vw, 6.5rem); align-items: start; }
}
.booking__lead { max-width: 18ch; font: 900 var(--text-xl)/1.05 var(--font-display); font-stretch: var(--display-stretch); letter-spacing: -0.03em; text-transform: uppercase; }

.steps { margin-top: 2.25rem; border-top: 1px solid var(--rule); }
.steps li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  column-gap: 1rem;
  row-gap: 0.3rem;
  padding-block: 1.3rem;
  border-bottom: 1px solid var(--rule);
}
.steps__no { grid-row: span 2; padding-top: 0.25rem; font: 600 var(--text-xs)/1.2 var(--font-body); letter-spacing: 0.12em; color: var(--accent-text); }
.steps h3,
.steps__title { display: block; font: 700 var(--text-base)/1.35 var(--font-body); }
.steps p { font-size: var(--text-sm); color: var(--text-dim); }

/* ---------- Aftercare ---------- */

/* One tab per dressing, a guide column capped for reading, and the numbers
   that matter beside it. Without app.js both guides show in full. */
.care-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  border: 1px solid var(--rule-strong);
}
.care-tab {
  display: grid;
  align-content: center;
  gap: 0.4rem;
  min-height: 4.75rem;
  padding: 0.9rem clamp(1rem, 0.5rem + 2vw, 1.75rem);
  text-align: left;
  color: var(--text-dim);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color var(--fast) ease, background-color var(--fast) ease;
}
.care-tab + .care-tab { border-left: 1px solid var(--rule-strong); }
.care-tab:hover { color: var(--text); background: rgb(250 250 250 / 0.05); }
.care-tab:focus-visible { outline-offset: -5px; }
.care-tab[aria-selected="true"] { color: var(--bg); background: var(--cta); }
.care-tab__name {
  font: 900 var(--text-lg)/1 var(--font-display);
  font-stretch: var(--display-stretch);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.care-tab__eg { font-size: var(--text-xs); line-height: 1.3; color: var(--text-faint); }
.care-tab[aria-selected="true"] .care-tab__eg { color: rgb(9 9 11 / 0.72); } /* 8.6:1 on --cta */

.care { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.care + .care { margin-top: var(--section); } /* both guides stacked, when there are no tabs */
.js .care + .care { margin-top: 0; }
@media (min-width: 960px) {
  .care { grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.45fr); column-gap: clamp(3rem, 6vw, 6.5rem); align-items: start; }
  .care__glance { position: sticky; top: calc(var(--float) + var(--header-h) + 1.5rem); }
}

.care__body { display: grid; gap: 1.1rem; max-width: 68ch; }
.care__body > p { color: var(--text-dim); }
.care__body strong { font-weight: 600; color: var(--text); }
.care__method {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font: 900 var(--text-xl)/1 var(--font-display);
  font-stretch: var(--display-stretch);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.care__method span { font: 500 var(--text-sm)/1.3 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--text-faint); }
/* The tab names the method once tabs exist; the heading stays for screen readers. */
.js .care__method {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.care__body > .care__lede { font-size: var(--text-lg); line-height: 1.5; color: var(--text); }
.care__body h4 {
  margin-top: 1.75rem;
  font: 900 var(--text-lg)/1.05 var(--font-display);
  font-stretch: var(--display-stretch);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.care__body > h4:first-of-type { margin-top: 0.5rem; }
.care .steps { margin-top: 0; }

/* Things to act on now: on the solid surface, so the smoke never sits behind them. */
.care__alert {
  display: grid;
  gap: 0.4rem;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border-left: 2px solid var(--accent);
}
.care__alert p { font-size: var(--text-sm); color: var(--text-dim); }
.care__alert .care__alert-title { font: 600 var(--text-xs)/1.2 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); }

.care__rules { border-top: 1px solid var(--rule); }
.care__rules li { padding-block: 0.95rem; border-bottom: 1px solid var(--rule); color: var(--text-dim); }
.care__close { font-size: var(--text-sm); }

.care__glance dl { margin-top: 0.9rem; border-top: 1px solid var(--rule); }
.care__glance dl > div { display: grid; gap: 0.35rem; padding-block: 1rem; border-bottom: 1px solid var(--rule); }
.care__glance dt {
  font: 900 var(--text-xl)/1 var(--font-display);
  font-stretch: var(--display-stretch);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.care__glance dd { font-size: var(--text-sm); color: var(--text-dim); }

.request {
  display: grid;
  gap: 1.35rem;
  padding: clamp(1.25rem, 0.75rem + 2.2vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--rule);
}
.request__title { font: 900 var(--text-xl)/1 var(--font-display); font-stretch: var(--display-stretch); letter-spacing: -0.03em; text-transform: uppercase; }
.request__hint { margin-top: -0.6rem; font-size: var(--text-sm); color: var(--text-dim); }

.field { display: grid; gap: 0.5rem; align-content: start; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label,
.field legend {
  padding: 0;
  font: 500 var(--text-xs)/1.2 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.field legend { margin-bottom: 0.5rem; }
.optional { letter-spacing: 0; text-transform: none; color: var(--text-faint); }
.field__hint { font-size: var(--text-sm); color: var(--text-faint); }
.field__error { font-size: var(--text-sm); color: var(--accent-text); }
.field-row { display: grid; gap: 1.35rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.request input[type="text"],
.request input[type="email"],
.request input[type="tel"],
.request select,
.request textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.9rem;
  font: 400 1rem/1.4 var(--font-body); /* 16px keeps iOS from zooming on focus */
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  transition: border-color var(--fast) ease;
}
.request textarea { min-height: 7.5rem; line-height: 1.5; resize: vertical; }
.request select {
  appearance: none;
  padding-right: 2.75rem;
  cursor: pointer;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.85rem center / 1.1rem;
}
.request ::placeholder { color: var(--text-faint); opacity: 1; }
.request input[type="text"]:hover,
.request input[type="email"]:hover,
.request input[type="tel"]:hover,
.request select:hover,
.request textarea:hover { border-color: rgb(250 250 250 / 0.5); }
.request input[type="text"]:focus-visible,
.request input[type="email"]:focus-visible,
.request input[type="tel"]:focus-visible,
.request select:focus-visible,
.request textarea:focus-visible { outline: 2px solid var(--text); outline-offset: 0; border-color: var(--text); }
.request [aria-invalid="true"] { border-color: var(--accent); }

.choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.choice span {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: var(--tap);
  padding: 0 1.05rem;
  font-size: var(--text-sm);
  border: 1px solid var(--rule-strong);
  transition: background-color var(--fast) ease, color var(--fast) ease, border-color var(--fast) ease;
}
.choice:hover span { border-color: var(--text); }
.choice input:checked + span { color: var(--bg); background: var(--cta); border-color: var(--cta); }
.choice input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }
.choice input:disabled + span { color: var(--text-faint); border-style: dashed; cursor: not-allowed; }
.choice input:disabled { cursor: not-allowed; }

.check { display: flex; align-items: center; gap: 0.75rem; min-height: var(--tap); font-size: var(--text-sm); cursor: pointer; }
.check input { width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--cta); cursor: pointer; }

.request__actions .btn { width: 100%; }
@media (min-width: 560px) { .request__actions .btn { width: auto; } }
.request__status:empty { display: none; }
.request__status { font-size: var(--text-sm); }
.request__fallback { font-size: var(--text-sm); color: var(--text-dim); }
/* The bot trap: off-screen for people, skipped by keyboards and screen readers. */
.request__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Studio ---------- */

.studio__name { font: 900 var(--text-xl)/1 var(--font-display); font-stretch: var(--display-stretch); letter-spacing: -0.03em; text-transform: uppercase; }
.studio__address { margin-top: 0.9rem; font-style: normal; font-size: var(--text-lg); line-height: 1.5; color: var(--text-dim); }
.studio__links { display: flex; flex-wrap: wrap; gap: 0 2rem; margin-top: 1.25rem; }
.hours { margin-top: 0.9rem; border-top: 1px solid var(--rule); }
.hours > div { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.95rem; border-bottom: 1px solid var(--rule); }
.hours dd { color: var(--text-dim); }
.studio__note { margin-top: 1rem; font-size: var(--text-sm); color: var(--text-faint); }

/* ---------- Footer ---------- */

.site-footer { padding-block: var(--section) 1.5rem; border-top: 1px solid var(--rule); overflow: hidden; }
.footer__kicker { font: 600 var(--text-xs)/1.2 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); }
.footer__handle {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 1rem;
  padding-block: 0.1em; /* keeps the tap target tall at phone sizes */
  font: 900 clamp(2.75rem, 0.2rem + 15vw, 13rem)/0.9 var(--font-display);
  font-stretch: var(--display-stretch);
  letter-spacing: -0.055em;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.footer__handle:hover { color: var(--text-dim); }
.footer__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: clamp(3rem, 2rem + 4vw, 6rem);
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: var(--text-sm);
  color: var(--text-dim);
}
.footer__links { display: flex; flex-wrap: wrap; gap: 0 1.75rem; }
.footer__links a { display: inline-flex; align-items: center; min-height: var(--tap); text-decoration: none; }
.footer__links a:hover { color: var(--text); }

/* ---------- Dialogs: viewer, product, cart ---------- */

.panel { padding: 0; color: var(--text); background: var(--bg); border: 1px solid var(--rule); }
.panel::backdrop,
.lightbox::backdrop { background: rgb(0 0 0 / 0.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }

.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  color: var(--text);
  background: rgb(9 9 11 / 0.97);
  border: 0;
}
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem var(--gutter); }
.lightbox__bar--bottom { flex-wrap: wrap; align-items: flex-end; padding-bottom: max(1rem, env(safe-area-inset-bottom)); }
.lightbox__stage { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; min-height: 0; padding: 0 var(--gutter); }
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  touch-action: pan-y pinch-zoom;
  user-select: none;
}
.lightbox__meta { display: grid; gap: 0.2rem; min-width: 0; max-width: 40rem; margin-right: auto; }
.lightbox__text { font-size: var(--text-sm); overflow-wrap: anywhere; }
.lightbox__text:empty { display: none; }
.lightbox__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.25rem; font-size: var(--text-sm); color: var(--text-faint); }
.lightbox__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }

.product-view {
  width: min(100% - 2 * var(--float), 68rem);
  max-width: none;
  max-height: calc(100dvh - 2 * var(--float));
  overflow: auto;
}
.product-view__inner { position: relative; display: grid; }
.product-view__close { position: absolute; top: 0.75rem; right: 0.75rem; z-index: 1; background: rgb(9 9 11 / 0.72); }
.product-view__media {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  min-height: 18rem;
  padding: clamp(2.5rem, 1.5rem + 4vw, 4rem) clamp(1.5rem, 1rem + 3vw, 3.5rem);
  background: var(--surface);
}
.product-view__img { width: auto; height: auto; max-width: 100%; max-height: min(64dvh, 42rem); box-shadow: 0 16px 36px rgb(0 0 0 / 0.55); }
.product-view__body { display: grid; align-content: start; gap: 1rem; padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); }
.product-view__title { font: 900 var(--text-xl)/1 var(--font-display); font-stretch: var(--display-stretch); letter-spacing: -0.035em; text-transform: uppercase; }
.product-view__desc,
.product-view__edition { color: var(--text-dim); }
.product-view__edition { font-size: var(--text-sm); }
.product-view__form { display: grid; gap: 1.1rem; margin-top: 0.5rem; }
.product-view__price { font: 900 2rem/1 var(--font-display); letter-spacing: -0.03em; }
.product-view__status { font-size: var(--text-sm); }
.product-view__status:empty { display: none; }
.product-view__alt { padding: 1rem; font-size: var(--text-sm); color: var(--text-dim); border: 1px solid var(--rule); }
@media (min-width: 860px) {
  .product-view__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .product-view__body { padding-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
}

.cart {
  width: min(100%, 27rem);
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0 0 0 auto;
  border-width: 0 0 0 1px;
}
.cart[open] { display: flex; }
.cart__inner { display: flex; flex-direction: column; width: 100%; min-height: 100%; }
.cart__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--rule); }
.cart__title { font: 900 1.5rem/1 var(--font-display); letter-spacing: -0.035em; text-transform: uppercase; }
.cart__lines { flex: 1; overflow-y: auto; padding: 0 1.25rem; }
.cart-line {
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr);
  gap: 0.4rem 1rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--rule);
}
.cart-line__thumb {
  grid-row: span 3;
  width: 4.75rem;
  aspect-ratio: 4 / 5;
  padding: 0.4rem;
  object-fit: contain;
  background: var(--surface);
}
.cart-line__name { font: 800 var(--text-sm)/1.25 var(--font-display); text-transform: uppercase; }
.cart-line__variant { font-size: var(--text-sm); color: var(--text-dim); }
.cart-line__controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--rule-strong); }
.stepper button {
  display: inline-grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background-color var(--fast) ease;
}
.stepper button:hover:not(:disabled) { background: rgb(250 250 250 / 0.08); }
.stepper button:disabled { color: var(--text-faint); cursor: not-allowed; }
.stepper output { min-width: 2rem; font-weight: 600; text-align: center; }
.cart-line__remove {
  min-height: var(--tap);
  padding: 0 0.25rem;
  font-size: var(--text-sm);
  color: var(--text-dim);
  text-decoration: underline;
  text-underline-offset: 0.22em;
  background: none;
  border: 0;
  cursor: pointer;
}
.cart-line__remove:hover { color: var(--text); }
.cart-line__total { font-weight: 600; }
.cart__empty { display: grid; justify-items: start; gap: 1rem; padding: 2rem 1.25rem; color: var(--text-dim); }
.cart__foot { display: grid; gap: 0.9rem; padding: 1.25rem; padding-bottom: max(1.25rem, env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); }
.cart__subtotal { display: flex; justify-content: space-between; font: 900 1.25rem/1 var(--font-display); letter-spacing: -0.02em; text-transform: uppercase; }
.cart__note { font-size: var(--text-sm); color: var(--text-dim); }
.cart__error { font-size: var(--text-sm); color: var(--accent-text); }

/* ---------- Thank-you page ---------- */

.thanks { display: grid; align-content: center; min-height: 100svh; padding-block: calc(var(--float) + var(--header-h) + 3rem) 4rem; }
.thanks__title { margin-top: 1rem; font: 900 clamp(3rem, 1rem + 14vw, 10rem)/0.86 var(--font-display); font-stretch: var(--display-stretch); letter-spacing: -0.05em; text-transform: uppercase; }
.thanks__text { max-width: 34rem; margin-top: 1.75rem; font-size: var(--text-lg); color: var(--text-dim); }
.thanks__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* The header opens like a film: up from black, easing back from a close-up.
     Then the type arrives in order: eyebrow, the word swinging up into place,
     and last "Scroll down" fading in with its drip. The drip keeps falling
     until the toggle pauses the header. */
  .reel__video { animation: reel-in 1800ms var(--ease-out) both; }
  .reel__eyebrow { animation: rise 700ms var(--ease-out) 500ms both; }
  .reel__title { transform-origin: 0 100%; animation: title-in 1000ms var(--ease-expo) 650ms both; }
  .reel__scroll { animation: rise 900ms var(--ease-out) 1500ms both; }
  .reel .motion-toggle { animation: fade 700ms ease 1800ms both; }
  .reel__drip::after { animation: drip 2400ms var(--ease-expo) 2400ms infinite; }

  .hero__title .line,
  .hero__text > :not(.hero__title) { animation: rise 700ms var(--ease-out) both; }
  .hero__title .line + .line { animation-delay: 60ms; }
  .hero__lede { animation-delay: 120ms; }
  .hero__actions { animation-delay: 160ms; }
  .wall { animation: fade 1200ms ease 150ms both; }

  .lightbox[open],
  .product-view[open] { animation: fade 220ms ease both; }
  .cart[open] { animation: slide-in 300ms var(--ease-out) both; }
}

@keyframes wall-drift { to { transform: translateY(-50%); } }
@keyframes reel-in { from { opacity: 0; transform: scale(1.08); } }
@keyframes title-in { from { opacity: 0; transform: perspective(40rem) translateY(0.3em) rotateX(-40deg); } }
@keyframes drip { from { transform: translateY(-100%); } 55%, to { transform: translateY(100%); } }
@keyframes rise { from { opacity: 0; transform: translateY(0.9rem); } }
@keyframes fade { from { opacity: 0; } }
@keyframes slide-in { from { transform: translateX(100%); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
