/* ------------------------------------------------------------------
   CROWN OF THORNS: styles
   Editorial streetwear: black, white and paper, with one flat crimson
   for the thorns. Big condensed type, photography first, precise motion.
   Change colours and fonts in :root (light parts) and .dark (dark parts).
   Display fonts on the shirts (blackletter etc.) live only in the artwork.
------------------------------------------------------------------- */
:root {
  color-scheme: light;

  --ink: #0d0d0d;
  --ink-2: #1a1a1a;
  --paper: #f4f3f0;
  --white: #fff;
  --photo: #dcdbd8;           /* behind the shirt photos */
  --crimson: #c4122f;         /* the thorns: buttons, highlights */
  --crimson-dark: #9d0e26;
  --scripture: #b3122a;       /* the words of Christ, and error messages */

  /* these swap inside .dark sections */
  --bg: var(--paper);
  --fg: var(--ink);
  --soft: #5f5e5a;
  --line: #d9d7d1;
  --field: #fff;

  --font: Archivo, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 3.2vw, 48px);
  --ease: cubic-bezier(.19, 1, .22, 1);      /* fast out, long settle */
}
.dark {
  --bg: var(--ink);
  --fg: #f4f3f0;
  --soft: #a09e99;
  --line: rgba(255, 255, 255, .16);
  --field: #1a1a1a;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; background: var(--ink); }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
.dark { background: var(--bg); color: var(--fg); }
h1, h2, h3, p, ul, ol, blockquote, fieldset, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; }
::selection { background: var(--crimson); color: #fff; }
:focus-visible { outline: 2px solid var(--crimson); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 14px; background: var(--white); color: var(--ink); font-weight: 600; }
.skip:focus { top: 12px; }

/* type */
.display {
  font-family: var(--font); font-stretch: 62%; font-weight: 800; text-transform: uppercase;
  line-height: .86; letter-spacing: -.005em;
}
.mono, .eyebrow, .label { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.eyebrow, .label { color: var(--soft); }
.red, .red-letter { color: var(--scripture); }
.dark .red-letter { color: #ff5a6e; }

/* ---------- motion helpers (only once JavaScript is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease) var(--delay, 0ms), transform 1.1s var(--ease) var(--delay, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.split > span { display: block; overflow: hidden; padding-bottom: .04em; }
.split > span > span { display: block; }
.js .split > span > span { transform: translateY(105%); transition: transform 1.2s var(--ease) var(--delay, 0ms); }
.js .split.in > span > span, .js .hero .split > span > span { transform: none; }
.js .split > span:nth-child(2) > span { transition-delay: calc(var(--delay, 0ms) + 90ms); }
/* photos open like a curtain */
.js .wipe { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease) var(--delay, 0ms); }
.js .wipe.in { clip-path: inset(0 0 0 0); }
.js .wipe > * { transform: scale(1.18); transition: transform 1.6s var(--ease) var(--delay, 0ms); }
.js .wipe.in > * { transform: none; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; overflow: hidden; isolation: isolate;
  border: 1px solid var(--fg); border-radius: 0; background: transparent; color: var(--fg);
  font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  line-height: 1.2; text-decoration: none; text-align: center; transition: color .5s var(--ease), border-color .5s var(--ease);
}
/* a block of colour slides up from below on hover */
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--fg); transform: translateY(101%); transition: transform .55s var(--ease); }
.btn:hover { color: var(--bg); }
.btn:hover::before { transform: none; }
.btn-solid { background: var(--fg); color: var(--bg); }
.btn-solid::before { background: var(--crimson); }
.btn-solid:hover { color: #fff; border-color: var(--crimson); }
.btn-glow { background: var(--crimson); border-color: var(--crimson); color: #fff; }
.btn-glow::before { background: var(--ink); }
.btn-glow:hover { color: #fff; border-color: var(--ink); }
.dark .btn-glow::before { background: #fff; }
.dark .btn-glow:hover { color: var(--ink); border-color: #fff; }
.btn-arrow::after { content: '\2192'; font-size: 14px; line-height: 1; transition: transform .5s var(--ease); }
.btn-arrow:hover::after { transform: translateX(4px); }
.btn-wide { width: 100%; }
.btn-small { min-height: 38px; padding: 6px 14px; font-size: 11px; }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn:disabled::before { display: none; }
.btn:disabled:hover { color: var(--fg); }
.text-link {
  position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 12px 0;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--fg);
}
.text-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: currentColor; transform-origin: right; transition: transform .6s var(--ease); }
.text-link:hover::after { transform: scaleX(0); }
.link { padding: 4px 0; border: 0; background: none; color: var(--soft); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--fg); }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; font-size: 26px; line-height: 1; color: inherit; }
.icon-btn:hover { color: var(--crimson); }

/* ---------- opening screen ---------- */
.intro { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; background: var(--ink); color: #f4f3f0; cursor: pointer; transition: transform 1s var(--ease); }
html:not(.js) .intro, .intro-seen .intro { display: none; }
.intro.leaving { transform: translateY(-100%); }
.intro-inner { display: grid; justify-items: center; gap: 26px; }
/* the crown logo (images/crown.png, built in so it also works when opened as a file),
   recoloured with CSS: it takes the colour of the text around it */
:root { --crown: url("../images/crown-mask.png"); }
.mark { display: inline-block; flex: none; width: 44px; aspect-ratio: 1.995; background: currentColor;
  -webkit-mask: var(--crown) center / contain no-repeat; mask: var(--crown) center / contain no-repeat; }
.intro .mark { color: var(--crimson); }
.mark-big { width: clamp(150px, 22vw, 240px); clip-path: inset(0 100% 0 0); animation: wipeIn 1.3s var(--ease) .1s forwards; }
@keyframes wipeIn { to { clip-path: inset(0 0 0 0); } }
.intro-name { overflow: hidden; font-stretch: 62%; font-weight: 800; font-size: clamp(34px, 7vw, 76px); line-height: .9; text-transform: uppercase; }
.intro-name span { display: block; transform: translateY(100%); animation: up 1s var(--ease) .55s forwards; }
.intro-credit { position: absolute; bottom: 32px; display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #8d8b86; opacity: 0; animation: fade .8s ease 1s forwards; }
.intro-credit img { height: 15px; width: auto; }
@keyframes up { to { transform: none; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- header ---------- */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 68px; padding: 0 var(--gutter); color: #f4f3f0;
  transition: background-color .5s var(--ease), transform .6s var(--ease);
}
.site-head.scrolled, .solid-head .site-head { background: var(--ink); }
.site-head.away { transform: translateY(-100%); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand .mark { color: var(--crimson); transition: transform 1.2s var(--ease); }
.brand:hover .mark { transform: scale(1.08) rotate(-4deg); }
.brand-name { font-stretch: 62%; font-weight: 800; font-size: 22px; line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
.site-head nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); }
.site-head nav a, .bag-btn {
  position: relative; padding: 8px 0; border: 0; background: none;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: inherit;
}
.site-head nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.site-head nav a:hover::after, .site-head nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.bag-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 4px; padding: 0 5px; border-radius: 10px; background: var(--crimson); color: #fff; font-size: 11px; font-variant-numeric: tabular-nums; }

/* ---------- hero: the photo is the background ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 100svh; padding: 92px var(--gutter) 18px; --p: 0;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; background: #2a2a29; transform: scale(calc(1 + var(--p) * .12)); transform-origin: 50% 40%; }
.hero-bg img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 60% 32%; }
.js .hero-bg { animation: bgIn 2s var(--ease) var(--start, .1s) both; }
/* the hero animates only once its photo has loaded (motion.js adds .go) */
.js:not(.go) .hero-bg, .js:not(.go) .hero .split > span > span { animation-play-state: paused; }
@keyframes bgIn { from { opacity: 0; transform: scale(1.14); } }
.hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(13, 13, 13, .82) 0%, rgba(13, 13, 13, .1) 22%, rgba(13, 13, 13, 0) 45%, rgba(13, 13, 13, .55) 68%, rgba(13, 13, 13, .96) 92%),
    linear-gradient(90deg, rgba(13, 13, 13, .55) 0%, rgba(13, 13, 13, 0) 40%, rgba(13, 13, 13, 0) 60%, rgba(13, 13, 13, .45) 100%);
}
/* desktop: buttons above the headline. Phones (below) put the headline first. */
.hero-bottom { display: flex; flex-direction: column; gap: clamp(14px, 2vw, 26px); }
.hero-bottom .hero-foot { order: -1; }
.hero-title {
  font-size: 16vw; text-align: center; white-space: nowrap; overflow: hidden; color: #f4f3f0;
  transform: translateY(calc(var(--p) * 22%));
}
.hero-title .accent { color: var(--crimson); }
.js .hero .split > span > span { transform: translateY(105%); animation: up 1.3s var(--ease) calc(var(--start, .1s) + .25s) forwards; }
.hero-foot { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-light::before { background: #fff; }
.btn-light:hover { color: var(--ink); }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; padding: 18px 0; border-block: 1px solid var(--line); }
.marquee-track { display: flex; width: max-content; animation: slide 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: baseline; gap: 18px; padding-right: 18px; white-space: nowrap; font-stretch: 62%; font-weight: 800; font-size: clamp(26px, 3.4vw, 46px); line-height: 1; text-transform: uppercase; }
.marquee-item .ref { font-family: var(--font-mono); font-stretch: 100%; font-size: 11px; font-weight: 500; letter-spacing: .04em; color: var(--soft); }
.marquee-item .sep { color: var(--crimson); }
.marquee-item .outline { color: transparent; -webkit-text-stroke: 1px currentColor; }
.dark .marquee-item .outline { -webkit-text-stroke-color: rgba(244, 243, 240, .7); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(70px, 10vw, 150px) var(--gutter) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 40px; margin-bottom: clamp(26px, 3.4vw, 48px); padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.section-head h2 { font-size: clamp(56px, 10vw, 160px); }
.section-head .lead { max-width: 26em; color: var(--soft); }

/* ---------- best sellers ---------- */
.best { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); }
.best-card { position: relative; display: flex; flex-direction: column; }
.best-photo { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--photo); }
.best-photo .card-photo { position: absolute; inset: 0; }
.best-card:nth-child(2) { margin-top: clamp(30px, 6vw, 90px); }
.badge { position: absolute; top: 12px; right: 12px; z-index: 2; padding: 5px 8px; background: var(--ink); color: #fff; pointer-events: none; font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.best-body { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 12px; padding-top: 14px; }
.best-body h3 { font-stretch: 62%; font-weight: 800; font-size: clamp(28px, 3vw, 44px); line-height: .95; text-transform: uppercase; }
.best-body h3 a { text-decoration: none; }
.best-body p { grid-column: 1 / -1; color: var(--soft); }
.best-body .actions { grid-column: 1 / -1; display: flex; gap: 22px; margin-top: 6px; }
.price { font-family: var(--font-mono); font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- the designs ---------- */
.designs-tools { display: grid; gap: 14px; justify-items: end; }
.show-on { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.chip { position: relative; padding: 6px 0; border: 0; background: none; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.chip::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.chip:hover { color: var(--fg); }
.chip[aria-pressed="true"] { color: var(--fg); }
.chip[aria-pressed="true"]::after { transform: scaleX(1); transform-origin: left; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .18); background: var(--swatch); transition: transform .4s var(--ease); }
.dark .swatch { border-color: rgba(255, 255, 255, .28); }
.swatch:hover { transform: scale(1.12); }
.swatch[aria-pressed="true"] { outline: 1px solid var(--fg); outline-offset: 3px; }
.swatch-auto { width: auto; padding: 0 10px; border-radius: 14px; background: transparent; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; }

.grid { display: grid; gap: clamp(34px, 4vw, 56px) clamp(10px, 1.4vw, 20px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.card { display: flex; flex-direction: column; min-width: 0; }
svg.tee { width: 100%; height: auto; }
.card-shirt { position: relative; display: block; overflow: hidden; background: var(--photo); aspect-ratio: 4 / 5; }
.card-photo { position: absolute; inset: 0; display: block; transition: opacity .6s ease, transform 1.4s var(--ease); }
.card-photo-alt { opacity: 0; }
/* a hover photo only shows once it has fully loaded */
.card-photo-alt img:not(.loaded) { visibility: hidden; }
.card-photo > img, .band-shirt img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) {
  .card-shirt:hover .card-photo-alt, .card-shirt:focus-visible .card-photo-alt,
  .best-photo:hover .card-photo-alt, .best-photo:focus-visible .card-photo-alt { opacity: 1; }
  .card-shirt:hover .card-photo, .best-photo:hover .card-photo { transform: scale(1.04); }
}
.card-body { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding-top: 12px; }
.card h3 { font-size: 15px; font-weight: 600; line-height: 1.25; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--crimson); }
.card-price { font-family: var(--font-mono); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.card-ref { grid-column: 1 / -1; font-size: 14px; color: var(--soft); }
.card-swatches { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 12px; }
.card-swatches .swatch { width: 16px; height: 16px; }
.card-swatches .swatch[aria-pressed="true"] { outline-offset: 2px; }
.card-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.card-sizes { grid-column: 1 / -1; display: grid; gap: 6px; padding-top: 2px; }
.card-sizes[hidden] { display: none; }
.card-size-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.card-size-row .size { min-width: 0; min-height: 36px; padding: 2px; font-size: 11px; }
.card-size-row .size:hover { border-color: var(--fg); }
.card-actions .btn { min-height: 40px; padding-inline: 8px; font-size: 11px; }

/* ---------- up close ---------- */
.close { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); align-items: start; gap: clamp(10px, 1.4vw, 20px); }
.close-main { grid-column: 1 / 7; grid-row: span 2; position: relative; overflow: hidden; background: var(--photo); aspect-ratio: 1; }
.close-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fabric-cycle { position: absolute; inset: 0; }
.fabric-cycle img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity 1.2s ease; }
.fabric-cycle img.on { opacity: 1; }
/* the owner's crown and hem photos are shown whole, never cropped */
img.whole, .close-main img.whole, .gallery-main img.whole, .gallery-thumb img.whole { object-fit: contain; background: #0e0e0e; }
.close-small { position: relative; overflow: hidden; background: #0e0e0e; aspect-ratio: 764 / 506; }
/* the owner's crown and hem photos carry their own colour label bottom left, so our caption sits top left */
.close-small .cap { top: 10px; bottom: auto; }
.close-a { grid-column: 7 / 9; } .close-b { grid-column: 9 / 11; }
.close-small > div, .close-small svg { width: 100%; height: 100%; }
.close-text { grid-column: 7 / 11; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; padding-top: 10px; }
.close-text h3 { font-stretch: 62%; font-weight: 800; font-size: clamp(36px, 4.4vw, 68px); line-height: .9; text-transform: uppercase; }
.cap { position: absolute; left: 12px; bottom: 12px; z-index: 2; padding: 5px 8px; background: var(--ink); color: #fff; font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.facts div { padding: 14px 14px 0 0; }
.facts strong { display: block; font-stretch: 62%; font-weight: 800; font-size: clamp(28px, 2.8vw, 42px); line-height: 1; text-transform: uppercase; }
.facts span { font-family: var(--font-mono); font-size: 11px; color: var(--soft); text-transform: uppercase; letter-spacing: .04em; }
.ticks { display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 20px; line-height: 1.4; color: var(--soft); }
.ticks li::before { content: ''; position: absolute; left: 0; top: .62em; width: 10px; height: 1px; background: var(--crimson); }
.photo-credit { font-size: 12px; color: var(--soft); }
.photo-credit a { color: inherit; }

/* ---------- customize band ---------- */
.band { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: end; gap: clamp(24px, 4vw, 60px); margin-top: clamp(70px, 10vw, 150px); padding: clamp(40px, 6vw, 90px) var(--gutter); background: var(--crimson); color: #fff; }
.band .eyebrow { color: rgba(255, 255, 255, .75); }
.band h2 { margin: 18px 0 22px; font-size: clamp(64px, 11vw, 190px); }
.band p { max-width: 30em; margin-bottom: 22px; color: rgba(255, 255, 255, .85); }
.band .btn { border-color: #fff; color: #fff; }
.band .btn::before { background: #fff; }
.band .btn:hover { color: var(--crimson); }
.band-steps { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-bottom: 30px; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; }
.band-shirt { position: relative; justify-self: end; width: min(100%, 400px); aspect-ratio: 4 / 5; overflow: hidden; background: var(--photo); }
.band-shirt > div { position: absolute; inset: 0; transition: clip-path 1.1s var(--ease); clip-path: inset(0 0 100% 0); }
.band-shirt > div.on { clip-path: inset(0 0 0 0); z-index: 1; }
.band-shirt > div.was { clip-path: inset(0 0 0 0); }

/* front and back, side by side */
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-self: center; }
.side-shot { position: relative; margin: 0; overflow: hidden; aspect-ratio: 4 / 5; background: var(--photo); }
.side-shot img, .side-shot svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.side-shot > svg, .side-shot > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.side-shot figcaption { position: absolute; left: 10px; bottom: 10px; padding: 5px 8px; background: var(--ink); color: #fff; font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.back-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid var(--line); background: transparent; text-align: left; font-size: 14px; color: var(--fg); cursor: pointer; transition: border-color .3s; }
.back-note:hover { border-color: var(--fg); }
.back-note strong { display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.back-note span { color: var(--soft); }
.back-note::after { content: '+'; font-size: 18px; }
.sides-guide { width: min(720px, calc(100vw - 24px)); padding: 0; border: 0; background: var(--paper); --bg: var(--paper); --fg: var(--ink); }
.sides-guide .sides { padding: 0 22px; }
.sides-guide p { padding: 16px 22px 22px; color: var(--soft); }
.sides-guide p strong { color: var(--fg); }

/* ---------- footer ---------- */
.site-foot { padding: clamp(50px, 7vw, 100px) var(--gutter) 26px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 40px; padding-bottom: 40px; }
.foot-top p { max-width: 30em; color: var(--soft); }
.foot-top nav { display: grid; gap: 6px; }
.foot-top nav a { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--soft); }
.foot-top nav a:hover { color: var(--fg); }
.foot-big { font-size: 15vw; white-space: nowrap; overflow: hidden; color: var(--fg); }
.foot-big .accent { color: var(--crimson); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.credit, .foot-verse { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--soft); }
.credit a { color: var(--fg); }
.credit a:hover { color: var(--crimson); }
.credit { display: flex; align-items: center; gap: 10px; }
.credit-logo { display: inline-block; opacity: .9; transition: opacity .3s; }
.credit-logo:hover { opacity: 1; }
.credit-logo img { display: block; height: 18px; width: auto; }
/* "coming soon" in the shop filter */
.soon-tag { margin-left: 4px; padding: 2px 5px; border: 1px solid currentColor; font-size: 9px; letter-spacing: .06em; vertical-align: 1px; }
.soon { display: grid; justify-items: start; gap: 14px; padding: clamp(40px, 6vw, 90px) 0; border-bottom: 1px solid var(--line); }
.soon .mono { color: var(--crimson); }
.soon h3 { font-size: clamp(64px, 12vw, 200px); }
.soon p:not(.mono) { color: var(--soft); }

/* ---------- forms and dialogs ---------- */
dialog { color: var(--ink); }
dialog::backdrop { background: rgba(13, 13, 13, .55); }
legend { padding: 0; margin-bottom: 10px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
legend span { margin-left: 6px; font-family: var(--font); letter-spacing: 0; text-transform: none; font-size: 14px; color: var(--fg); }
.sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.size { min-width: 52px; min-height: 44px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 0; background: transparent; font-family: var(--font-mono); font-size: 13px; transition: border-color .3s, background-color .3s, color .3s; }
.size:hover { border-color: var(--fg); }
.size[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.error { color: var(--scripture); font-weight: 500; font-size: 14px; }
.error:empty { display: none; }
input:not([type]), input[type="tel"], textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 0; background: var(--field); font-size: 16px; color: var(--fg); }
input:focus-visible, textarea:focus-visible { border-color: var(--fg); outline: none; }
textarea { resize: vertical; }
.lede { color: var(--soft); line-height: 1.45; }

/* bag drawer */
.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(460px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; padding: 0; border: 0; background: var(--paper); --bg: var(--paper); --fg: var(--ink); }
.drawer[open] { display: flex; flex-direction: column; animation: drawerIn .7s var(--ease); }
@keyframes drawerIn { from { transform: translateX(100%); } }
.drawer-head { display: flex; flex: none; align-items: center; justify-content: space-between; padding: 14px 12px 14px 22px; border-bottom: 1px solid var(--line); }
.drawer-title { font-stretch: 62%; font-weight: 800; font-size: 30px; line-height: 1; text-transform: uppercase; }
.drawer-body { display: flex; flex: 1; flex-direction: column; min-height: 0; overflow: auto; }
.drawer-empty { display: grid; justify-items: center; gap: 16px; padding: 64px 22px; text-align: center; color: var(--soft); }
.lines { flex: 1; padding: 0 22px; }
.line { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line-thumb { align-self: start; overflow: hidden; background: var(--photo); }
.line-thumb img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.line h3 { font-size: 15px; font-weight: 600; line-height: 1.3; }
.line-meta, .line-details { font-size: 13px; color: var(--soft); overflow-wrap: anywhere; }
.line-actions { display: flex; align-items: center; gap: 16px; margin-top: 10px; }
.line-price { font-family: var(--font-mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.stepper button { width: 38px; height: 38px; border: 0; background: none; font-size: 17px; }
.stepper button:hover { background: rgba(0, 0, 0, .05); }
.stepper output { min-width: 24px; text-align: center; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.note { margin: 12px 22px 0; font-size: 14px; color: var(--scripture); }
.drawer-foot { position: sticky; bottom: 0; display: grid; gap: 10px; margin-top: auto; padding: 16px 22px 20px; border-top: 1px solid var(--line); background: var(--paper); }
.sum { display: flex; align-items: baseline; justify-content: space-between; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; color: var(--soft); }
.sum strong { font-family: var(--font); font-stretch: 62%; font-weight: 800; font-size: 32px; color: var(--fg); font-variant-numeric: tabular-nums; }
.back { justify-self: center; }
.checkout { display: flex; flex: 1; flex-direction: column; gap: 14px; padding-top: 18px; }
.checkout > .lede, .checkout > label { margin-inline: 22px; }
.checkout label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.optional { font-weight: 400; color: var(--soft); }
.send { display: grid; gap: 10px; padding: 18px 22px 24px; }
/* the receipt: white till paper, monospace, torn edge at the bottom */
.receipt { position: relative; margin: 6px 0 22px; padding: 22px 18px 18px; background: #fff; color: var(--ink); font-family: var(--font-mono); font-size: 12.5px; line-height: 1.5; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.receipt::after { content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background: linear-gradient(135deg, #fff 50%, transparent 50%) 0 0 / 12px 8px repeat-x, linear-gradient(-135deg, #fff 50%, transparent 50%) 0 0 / 12px 8px repeat-x; }
.receipt dl, .receipt dd { margin: 0; }
.r-head { display: grid; justify-items: center; gap: 4px; padding-bottom: 14px; border-bottom: 1px dashed #bdbab3; text-align: center; }
.r-mark { width: 56px; color: var(--crimson); }
.r-brand { font-family: var(--font); font-stretch: 62%; font-weight: 800; font-size: 26px; line-height: 1; text-transform: uppercase; }
.r-kind { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.r-meta, .r-who { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px dashed #bdbab3; }
.r-meta div, .r-who div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; }
.r-meta dt, .r-who dt { color: var(--soft); text-transform: uppercase; font-size: 11px; letter-spacing: .06em; padding-top: 1px; }
.r-who dd { white-space: pre-wrap; overflow-wrap: anywhere; }
.r-meta dd { text-align: right; }
.r-items { margin: 0; padding: 6px 0; list-style: none; border-bottom: 1px dashed #bdbab3; }
.r-items li { padding: 7px 0; }
.r-row { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.r-row span:last-child { white-space: nowrap; }
.r-sub { color: var(--soft); font-size: 11.5px; }
.r-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-bottom: 1px dashed #bdbab3; text-transform: uppercase; letter-spacing: .06em; }
.r-total strong { font-size: 18px; letter-spacing: 0; }
.r-foot { padding-top: 12px; text-align: center; font-size: 11px; color: var(--soft); }
.send-number { font-size: 14px; text-align: center; }
.send-number a { font-family: var(--font-mono); color: var(--fg); text-underline-offset: 3px; }
.copied { font-size: 13px; color: var(--soft); }
.copied:empty { display: none; }
.send-done { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 6px; }

/* ---------- product page ---------- */
.pdp { padding: 92px var(--gutter) 0; }
.crumbs { padding-bottom: 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--soft); }
.crumbs a { color: var(--fg); }
.pdp-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr); gap: clamp(20px, 3.4vw, 56px); align-items: start; }
.gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; }
.gallery-thumbs { display: grid; gap: 6px; align-content: start; }
.gallery-thumb { display: block; width: 100%; padding: 0; overflow: hidden; border: 0; background: var(--photo); aspect-ratio: 4 / 5; opacity: .55; transition: opacity .4s; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb svg, .gallery-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb[aria-pressed="true"] { opacity: 1; outline: 1px solid var(--fg); outline-offset: 2px; }
.gallery-main { --zx: 50%; --zy: 50%; overflow: hidden; background: var(--photo); aspect-ratio: 4 / 5; cursor: zoom-in; }
.gallery-main svg, .gallery-main img { display: block; width: 100%; height: 100%; object-fit: cover; transform-origin: var(--zx) var(--zy); transition: transform .5s var(--ease); animation: shotIn 1s var(--ease); }
/* Moving between pages: the browser keeps this page on screen until the next one is ready, then cross-fades
   and slides it in (Chrome, Edge, Safari 18.2+). No blank or black moment in between. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .45s cubic-bezier(.4, 0, .2, 1) both; }
::view-transition-new(root) { animation: vtIn .65s cubic-bezier(.2, .7, .2, 1) .05s both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-24px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(40px); } }
/* when the browser skips its transition, the new page still slides and fades in (class added in the page head) */
@keyframes enterFade { from { opacity: 0; } }
@keyframes enterUp { from { transform: translateY(40px); } }
.enter { background: var(--paper); }
.enter body { animation: enterFade .55s ease both; }
.enter main, .enter .site-foot { animation: enterUp .65s cubic-bezier(.2, .7, .2, 1) both; }
/* Older browsers: a simple fade, through the cream page colour rather than black */
@keyframes pageIn { from { opacity: 0; } }
.page-in body { animation: pageIn .45s ease both; }
.page-in:not(.page-shown), .page-out { background: var(--paper); }
.page-out body { opacity: 0; transition: opacity .2s ease; }
@media (prefers-reduced-motion: reduce) {
  .page-in body, .enter body, .enter main, .enter .site-foot { animation: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
@keyframes shotIn { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
.gallery-main.zoomed { cursor: zoom-out; }
.gallery-main.zoomed svg, .gallery-main.zoomed img { transform: scale(2.2); }
.gallery-stage figcaption { padding-top: 10px; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--soft); }
.gallery-stage figcaption a { color: var(--fg); }
.pdp-info { position: sticky; top: 88px; display: grid; gap: 16px; padding-bottom: 20px; }
.pdp-info .eyebrow { color: var(--crimson); }
.pdp-info h1 { margin-top: -4px; font-stretch: 62%; font-weight: 800; font-size: clamp(48px, 5.4vw, 92px); line-height: .88; text-transform: uppercase; }
.pdp-info blockquote { font-size: 18px; line-height: 1.45; color: var(--soft); }
.pdp-info blockquote.red-letter { color: var(--scripture); }
.pdp-badges:empty { display: none; }
.pdp-badges .badge { position: static; display: inline-block; }
.product-price { font-family: var(--font-mono); font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; }
.accordion { margin-top: 6px; border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { display: flex; justify-content: space-between; padding: 15px 0; cursor: pointer; list-style: none; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; font-size: 18px; line-height: 1; transition: transform .5s var(--ease); }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion details > :not(summary) { padding-bottom: 16px; color: var(--soft); }
.more { padding: clamp(60px, 8vw, 120px) 0 0; }
.more h2 { margin-bottom: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-stretch: 62%; font-weight: 800; font-size: clamp(44px, 6vw, 96px); line-height: .9; text-transform: uppercase; }
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(10px, 1.4vw, 20px); margin: 0; padding: 0; list-style: none; }
.related-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 12px; text-decoration: none; color: inherit; }
/* every box the same size: one 4:5 frame, the photo fills it */
.related-photo { grid-column: 1 / -1; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--photo); }
.related-photo img, .related-photo svg { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.related-card:hover .related-photo img, .related-card:hover .related-photo svg { transform: scale(1.03); }
.related-title { margin-top: 12px; font-weight: 600; font-size: 16px; line-height: 1.25; }
.related-card:hover .related-title { color: var(--crimson); }
.related-price { margin-top: 12px; font-family: var(--font-mono); font-size: 13px; white-space: nowrap; }
.size-guide { width: min(560px, calc(100vw - 24px)); padding: 0; border: 0; background: var(--paper); --bg: var(--paper); --fg: var(--ink); }
.size-body { padding: 18px 22px 22px; color: var(--soft); }
.size-body table { width: 100%; margin-bottom: 16px; border-collapse: collapse; font-family: var(--font-mono); font-size: 13px; font-variant-numeric: tabular-nums; color: var(--fg); }
.size-body th, .size-body td { padding: 10px 6px; text-align: left; border-bottom: 1px solid var(--line); }
.size-body thead th { font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }

/* ---------- customizer ---------- */
.studio-page { height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
.studio-page .site-head { position: static; flex: none; background: var(--ink); }
.studio { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(380px, 44%) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "tools preview" "tools buy"; }
.tools { grid-area: tools; display: flex; flex-direction: column; min-height: 0; background: #fff; border-right: 1px solid var(--line); }
.tool-tabs { flex: none; display: flex; padding: 0 18px; border-bottom: 1px solid var(--line); }
.tool-tabs button { position: relative; flex: 1; min-height: 52px; padding: 6px; border: 0; background: none; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.tool-tabs button::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--crimson); transform: scaleX(0); transition: transform .6s var(--ease); }
.tool-tabs button:hover { color: var(--fg); }
.tool-tabs button[aria-selected="true"] { color: var(--fg); }
.tool-tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.tool-scroll { flex: 1; min-height: 0; overflow: auto; padding: 18px; }
.tool-scroll .chips { margin-bottom: 16px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; }
.thumb { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.thumb-art { display: block; padding: 10px; transition: transform .6s var(--ease); }
.thumb:hover .thumb-art { transform: translateY(-3px); }
.thumb[aria-pressed="true"] .thumb-art { outline: 2px solid var(--crimson); outline-offset: 2px; }
.thumb-name { display: block; margin-top: 7px; font-size: 13px; line-height: 1.25; color: var(--soft); }
.field-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.hint { margin: 8px 0 18px; font-size: 14px; color: var(--soft); }
.fonts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.font-btn { min-height: 62px; padding: 6px; border: 1px solid var(--line); background: transparent; font-size: 22px; line-height: 1.1; transition: background-color .3s, color .3s, border-color .3s; }
.font-btn:hover { border-color: var(--fg); }
.font-btn[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.dropzone { display: grid; justify-items: center; gap: 6px; padding: 36px 20px; text-align: center; cursor: pointer; border: 1px dashed var(--fg); background: var(--paper); transition: background-color .3s; }
.dropzone:hover, .dropzone:focus-within { background: #ebe9e4; }
.dropzone strong { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.dropzone span { font-size: 14px; color: var(--soft); }
.upload-preview { display: flex; align-items: center; gap: 14px; margin-top: 14px; font-size: 14px; line-height: 1.35; color: var(--soft); }
.upload-preview img { flex: none; width: 72px; height: 72px; object-fit: contain; background: var(--photo); }
[data-panel="upload"] .hint { margin-top: 14px; }
.dock { flex: none; display: grid; gap: 10px; padding: 14px 18px 16px; border-top: 1px solid var(--line); background: var(--paper); font-size: 14px; }
.dock-title { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--crimson); }
.dock-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 42px; align-items: center; gap: 10px; color: var(--soft); }
.dock-row .swatches { grid-column: 2 / 4; gap: 7px; }
.dock-row .swatch { width: 26px; height: 26px; }
.dock-row .swatch-auto { width: auto; }
.dock-row output { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--fg); }
.dock-actions { display: flex; gap: 8px; }
input[type="range"] { width: 100%; accent-color: var(--crimson); }
input[type="range"]:disabled { opacity: .35; }
.preview { grid-area: preview; position: relative; min-height: 0; display: flex; flex-direction: column; align-items: center; padding: 14px 20px 4px; background: #e9e8e4; }
.view-toggle { position: absolute; top: 14px; left: 20px; z-index: 2; display: flex; border: 1px solid var(--ink); background: #fff; }
.scene-toggle { left: auto; right: 20px; }
.view-toggle button { position: relative; min-height: 36px; padding: 4px 14px; border: 0; background: none; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.view-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.view-toggle button:disabled { opacity: .35; cursor: not-allowed; }
.view-toggle button.has-print::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-radius: 50%; background: var(--crimson); vertical-align: middle; }
.stage { flex: 1; min-height: 0; width: 100%; display: flex; justify-content: center; touch-action: none; user-select: none; }
.stage:focus-visible { outline-offset: -3px; }
.stage svg.tee { height: 100%; width: auto; max-width: 100%; }
.sel-box { fill: none; stroke: var(--crimson); stroke-width: 1.5; stroke-dasharray: 5 4; pointer-events: none; }
.sel-handle { fill: var(--crimson); stroke: #fff; stroke-width: 2; cursor: nwse-resize; }
.stage-hint { padding: 8px 0 6px; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--soft); text-align: center; }
.buy { grid-area: buy; display: grid; grid-template-columns: auto 1fr; gap: 12px 28px; padding: 16px 22px 18px; border-top: 1px solid var(--line); background: #fff; }
.buy legend { margin-bottom: 8px; }
.buy .swatch { width: 26px; height: 26px; }
.buy .size { min-width: 46px; min-height: 40px; }
.buy-row { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; }
.buy-price { flex: 1; line-height: 1.15; }
.buy-price strong { display: block; font-stretch: 62%; font-weight: 800; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.buy-price span { font-size: 12px; color: var(--soft); }
.buy #add { min-width: 190px; }
.buy .error { grid-column: 1 / -1; }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .buy { grid-template-columns: 1fr; }
  .pdp-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .gallery { grid-template-columns: 1fr; }
  .gallery-thumbs { order: 2; grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .site-head { height: 60px; }
  .site-head nav a[href*="#bestsellers"] { display: none; }
  .hero { padding-top: 76px; }
  .hero-bg img { object-position: 64% 40%; }   /* phones: keep the chest and crown in frame */
  .hero-bottom .hero-foot { order: 0; }
    .best { gap: 8px; }
  .best-card:nth-child(2) { margin-top: 24px; }
  .designs-tools { justify-items: start; }
  .close { grid-template-columns: 1fr 1fr; }
  .close-main { grid-column: 1 / -1; grid-row: auto; }
  .close-a, .close-b { grid-column: auto; }
  .close-text { grid-column: 1 / -1; }
  .band { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 16px; }
  .pdp { padding-top: 76px; }
  .pdp-grid { grid-template-columns: 1fr; }
  .pdp-info { position: static; }
  .related { gap: 22px 8px; }

  .studio-page { height: auto; overflow: visible; display: block; }
  .studio { display: flex; flex-direction: column; }
  .preview { order: -1; flex: none; position: sticky; top: 0; z-index: 10; height: 44dvh; min-height: 290px; padding: 8px 12px 6px; border-bottom: 1px solid var(--line); }
  .view-toggle { top: 8px; left: 8px; }
  .scene-toggle { left: auto; right: 8px; }
  .view-toggle button { padding-inline: 10px; }
  .stage-hint { display: none; }
  .tools { border-right: 0; }
  .tool-scroll { overflow: visible; padding: 16px; }
  .thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .dock { padding: 14px 16px; }
  .buy { padding: 16px; }
  .buy-row { flex-wrap: wrap; }
  .buy #add { flex: 1 0 100%; }
}
@media (max-width: 520px) {
  .site-head nav { gap: 14px; }
  .site-head nav a[href*="#designs"] { display: none; }
  .brand-name { font-size: 18px; }
  /* compact three-across grids on phones */
  .section-head h2 { font-size: clamp(46px, 15vw, 70px); }
  .best-body { padding-top: 8px; grid-template-columns: 1fr; }
  .best-body h3 { font-size: 17px; }
  .best-body p, .best-body .actions, .best-card .badge { display: none; }
  .price { font-size: 11px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 8px; }
  .card-body { grid-template-columns: 1fr; padding-top: 8px; }
  .card h3 { font-size: 12px; line-height: 1.2; }
  .card-ref, .card-swatches, .card-actions, .card-sizes, .card .badge { display: none; }
  .card-price { font-size: 11px; }
  .designs-tools .show-on .label { display: none; }
  .close-main { aspect-ratio: 4 / 3; }
  .close-text h3 { font-size: 34px; }
  .facts strong { font-size: 24px; }
  .band { padding-block: 40px; }
  .band h2 { font-size: 15vw; margin: 12px 0 14px; }
  .band p { font-size: 14px; margin-bottom: 14px; }
  .band-steps { display: none; }
  .band .btn { padding-inline: 14px; }
  .related-title { font-size: 12px; }
  .related-price { font-size: 11px; }
  .related-card { grid-template-columns: 1fr; }
  .related-price { margin-top: 0; }
  .line { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; }
}
@media (max-height: 760px) and (min-width: 861px) {
  .stage-hint { display: none; }
  .buy { gap: 8px 24px; padding-block: 12px; }
  .dock { gap: 6px; padding-block: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* transitions off entirely (a tiny duration would also animate font sizes, which breaks the headline fitting) */
  *, *::before, *::after { transition: none !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; }
  .hero { --p: 0 !important; }
}
