/* =====================================================================
   Storefront — site.css
   Tokens → base → masthead → catalog rails → tiles → reviews → product
   → custom work → cart → order pages → proof (template preview) → footer
   ===================================================================== */

/* Inter Tight (SIL Open Font License, see /fonts/OFL.txt) — variable weight 100–900. Self-hosted. */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter-tight-latin.woff2) format('woff2-variations'), url(/fonts/inter-tight-latin.woff2) format('woff2');
  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: 'Inter Tight';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter-tight-latin-ext.woff2) format('woff2-variations'), url(/fonts/inter-tight-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --white: #ffffff;
  --black: #000000;
  --stone: #ecebe8;
  --stone-2: #d9d7d2;
  --graphite: #5b5956;
  --rule: rgba(0, 0, 0, 0.12);
  --accent: #f9abcf;           /* the one pink — the only pink used anywhere */
  --accent-ink: #0b0b0b;       /* text that needs emphasis stays black (pink is too light for text) */
  --on-accent: #000000;        /* text on an accent fill */
  --post-bg: rgba(0, 0, 0, 0.04);
  --accent-soft: #f9abcf;       /* (kept for older rules: the same single pink) */

  --font: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;

  --gutter: clamp(16px, 2.4vw, 36px);
  --r-tile: clamp(14px, 1.5vw, 22px);
  --r-sheet: 14px;
  --masthead-h: 105px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.83, 0, 0.17, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--masthead-h) + 12px);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--black);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

main { flex: 1; outline: none; }

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */

.btn {
  --btn-bg: var(--black);
  --btn-fg: var(--white);
  appearance: none;
  border: 1.5px solid var(--btn-bg);
  background: var(--btn-bg);
  color: var(--btn-fg);
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease-out);
}
.btn:hover { --btn-bg: #222; }
.btn:active { transform: scale(0.98); }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.45; cursor: not-allowed; }
.btn--block { width: 100%; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--black); border-color: var(--black); }
.btn--ghost:hover { --btn-bg: var(--black); --btn-fg: var(--white); }
.btn--small { min-height: 36px; padding: 0 16px; font-size: 13px; }

.link-button {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent);
  animation: live-pulse 2.4s var(--ease-out) infinite;
  flex: none;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  70%, 100% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--accent) 0%, transparent); }
}

/* ---------------------------------------------------------------------
   Header — two rows: logo · primary nav · search · cart, then section links
   --------------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}
.mast-top {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 40px);
  min-height: 62px;
  padding: 0 var(--gutter);
}
.brand-slot {
  flex: none;
  display: flex;
  align-items: center;
  min-height: 36px;
  color: var(--black);
  text-decoration: none;
}
.brand-logo { display: block; height: var(--logo-h, 30px); width: auto; max-width: min(360px, 34vw); object-fit: contain; }
.brand-text {
  font-weight: 800;
  font-stretch: 112%;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}

.primary-nav { display: flex; gap: 24px; }
.primary-nav a {
  color: var(--black);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 7px 0 5px;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover { border-bottom-color: var(--rule); }
.primary-nav a[aria-current='page'] { border-bottom-color: var(--black); }

.search {
  margin: 0 0 0 auto;
  flex: 0 1 460px;
  display: flex;
  align-items: center;
  height: 42px;
  padding: 0 4px 0 18px;
  border: 1px solid #d5d5d3;
  border-radius: 999px;
  background: var(--white);
  transition: border-color 0.2s;
}
.search:focus-within { border-color: var(--black); }
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 14.5px;
  color: var(--black);
}
.search input::placeholder { color: var(--graphite); }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.search button {
  appearance: none;
  border: 0;
  background: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--black);
  cursor: pointer;
}
.search button svg { width: 18px; height: 18px; }

.mast-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn-plain {
  appearance: none;
  position: relative;
  border: 0;
  background: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--black);
  cursor: pointer;
}
.icon-btn-plain svg { width: 23px; height: 23px; }
.search-toggle { display: none; }
.cart-count {
  position: absolute;
  top: 4px;
  right: 1px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  background: var(--accent);
  color: var(--on-accent);
  transition: transform 0.35s var(--ease-out);
}
.cart-count:not(.has-items) { display: none; }
.cart-count.bump { transform: scale(1.25); }

.mast-sections {
  display: flex;
  flex-wrap: wrap;           /* every section stays visible on wide screens, however many there are */
  align-items: center;
  gap: 2px 30px;
  min-height: 42px;
  padding: 4px var(--gutter);
  white-space: nowrap;
}
.mast-sections::-webkit-scrollbar { display: none; }
.mast-sections a {
  flex: none;
  color: var(--black);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 5px 0 3px;
  border-bottom: 1.5px solid transparent;
}
.mast-sections a:hover, .mast-sections a[aria-current='page'] { border-bottom-color: var(--black); }
.mast-sections .sep { flex: none; width: 1px; height: 14px; background: var(--rule); }
.masthead:not(.has-sections) .mast-sections { display: none; }
.only-narrow { display: none; }

@media (max-width: 760px) {
  .mast-top { flex-wrap: wrap; min-height: 56px; gap: 0 12px; }
  .brand-text { font-size: 19px; }
  .brand-logo { height: min(calc(var(--logo-h, 30px) * 0.85), 48px); max-width: 52vw; }
  .primary-nav, .search { display: none; }
  .mast-actions { margin-left: auto; }
  .search-toggle { display: grid; }
  .masthead.search-open .search { display: flex; order: 5; flex-basis: 100%; margin: 0 0 10px; }
  .masthead .mast-sections {
    display: flex; flex-wrap: nowrap; gap: 22px; min-height: 40px; padding-block: 0;
    border-top: 1px solid var(--rule);
    overflow-x: auto; scrollbar-width: none;
    /* fade at the right edge says "swipe for more" */
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
  }
  .masthead .mast-sections::after { content: ''; flex: none; width: 24px; }
  .only-narrow { display: inline-block; }
  .mast-sections .sep.only-narrow { display: block; }
}

/* ---------------------------------------------------------------------
   Boot / loading / empty / error
   --------------------------------------------------------------------- */

.boot { padding: 28px var(--gutter); display: grid; gap: 40px; }
.boot-row {
  height: clamp(220px, 30vw, 460px);
  border-radius: var(--r-tile);
  background: linear-gradient(90deg, var(--stone) 0%, #f4f3f1 50%, var(--stone) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
}
.boot-row:nth-child(2) { height: clamp(160px, 22vw, 320px); width: 78%; }
@keyframes shimmer { to { background-position: -200% 0; } }

.state {
  padding: clamp(60px, 12vh, 140px) var(--gutter);
  max-width: 760px;
}
.state h1 {
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 800;
  font-stretch: 110%;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}
.state p { font-size: 17px; color: var(--graphite); margin: 0 0 26px; max-width: 52ch; }
.state .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------------------------------------------------------------
   Catalog controls
   --------------------------------------------------------------------- */

.catalog { padding-bottom: 40px; }
.rails > .rail:first-child { padding-top: 24px; }

/* Banners the owner places above, between or below the rows: full width, square edges */
.banners { display: grid; gap: 0; padding-top: clamp(26px, 4vw, 48px); }
.banners--top { padding-top: 0; }
.banners--bottom { padding-top: clamp(40px, 6vw, 80px); margin-bottom: -40px; }
.banner { margin: 0; background: var(--stone); }
.banner a { display: block; }
.banner a:focus-visible { outline-offset: -4px; border-radius: 0; }
.banner img { display: block; width: 100%; height: auto; }

/* Likes */
.like {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--black);
  transition: transform 0.2s var(--ease-out), color 0.2s;
}
.like svg { width: 18px; height: 18px; overflow: visible; }
.like[aria-pressed='true'] { --heart-fill: var(--accent); color: var(--accent-ink); }
.like--tile {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
}
.like--tile:hover { transform: scale(1.08); }
.like--inline {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--black);
}
.like--inline svg { width: 22px; height: 22px; }
.like.pop svg { animation: heart-pop 0.45s var(--ease-out); }
@keyframes heart-pop { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 100% { transform: scale(1); } }
.buy-row { display: flex; gap: 10px; align-items: center; }
.buy-row .btn { flex: 1; }
.liked-note { padding: 18px var(--gutter) 0; margin: 0; font-size: 13px; color: var(--graphite); }
.likes-link[aria-current='page'] { box-shadow: inset 0 -2px 0 var(--black); border-radius: 0; }


/* ---------------------------------------------------------------------
   Rails (drifting sections) — every row uses the same square size
   --------------------------------------------------------------------- */

.rail {
  --tile: clamp(200px, 21vw, 330px);
  padding-top: clamp(26px, 4vw, 48px);
}

.rail-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 0 var(--gutter) 14px;
}
.rail-title {
  margin: 0;
  font-size: 14px;
  font-weight: 620;
  letter-spacing: 0;
}
.rail-title sup { font-size: 10px; font-weight: 500; color: var(--graphite); margin-left: 4px; }
.rail-nav { margin-left: auto; display: flex; gap: 6px; }
.rail-nav button {
  appearance: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--white);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.2s, background-color 0.2s;
}
.rail-nav button:hover { border-color: var(--black); }
.rail-nav svg { width: 14px; height: 14px; }

.rail-track {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  padding: 6px 0 10px;
  -webkit-overflow-scrolling: touch;
}
.rail-track::-webkit-scrollbar { display: none; }
.rail-inner {
  display: flex;
  gap: clamp(10px, 1.2vw, 18px);
  padding: 0 var(--gutter);
  width: max-content;
  will-change: transform;
}
.rail-track.is-static .rail-inner { will-change: auto; }

.rail-inner > .tile { width: var(--tile); flex: none; }

/* Grid view */
.catalog[data-view='grid'] .rails .rail-nav { display: none; }
.catalog[data-view='grid'] .rails .rail-track { overflow: visible; padding: 0 var(--gutter); }
.catalog[data-view='grid'] .rails .rail-inner {
  width: auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
  gap: 18px 14px;
  transform: none !important;
}
.catalog[data-view='grid'] .rails .rail-inner > .tile { width: auto; }
.catalog[data-view='grid'] .rails .rail-inner > [data-clone] { display: none; }

@media (max-width: 640px) {
  .rail { --tile: 56vw; }
  .rail-nav { display: none; }
  .catalog[data-view='grid'] .rails .rail-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
}

/* ---------------------------------------------------------------------
   Tiles (product cards)
   --------------------------------------------------------------------- */

.tile { position: relative; }
.tile-link { display: block; text-decoration: none; border-radius: var(--r-tile); }
.tile-link:focus-visible { outline-offset: 4px; }

.tile-media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-tile);
  overflow: hidden;
  background: var(--stone);
  isolation: isolate;
}
.tile-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out), opacity 0.5s;
}
.tile-media img.alt { opacity: 0; }
@media (hover: hover) {
  .tile-link:hover .tile-media img { transform: scale(1.035); }
  .tile-link:hover .tile-media img.alt { opacity: 1; }
}

.tile-noimage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--graphite);
  font-size: 13px;
}

.price-chip {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  background: var(--white);
  color: var(--black);
  font-size: 13px;
  font-weight: 650;
  padding: 5px 11px;
  border-radius: 999px;
  line-height: 1.2;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.swatch-dots {
  position: absolute;
  right: 12px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  gap: 3px;
}
.swatch-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--white);
  box-shadow: 0 0 0 0.5px rgba(0,0,0,0.25);
}
.swatch-dots b { font-size: 11px; color: var(--white); font-weight: 600; margin-left: 3px; text-shadow: 0 1px 2px rgba(0,0,0,0.4); }

.tile-caption { padding: 11px 2px 0; }
.tile-title {
  margin: 0;
  font-size: 14px;
  font-weight: 540;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.tile-type { font-size: 12.5px; color: var(--graphite); margin-top: 2px; }

/* Live preview tiles. The black "Live preview" button sits top right with a soft pink ring
   pulsing out of it; hovering the tile turns it pink. Resting the mouse on a template blurs its
   image away into the real site, which scrolls slowly while the tile stays hovered (js/peek.js). */
.peek {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: var(--white);
  pointer-events: none;
  opacity: 0;
  filter: blur(14px);
  transform: scale(1.04);
  transition: opacity 0.55s var(--ease-out), filter 0.7s var(--ease-out), transform 0.8s var(--ease-out);
}
.peek iframe {
  position: absolute;
  top: 0;
  left: 0;
  border: 0;
  transform-origin: 0 0;
  background: var(--white);
}
.peek-bar { position: absolute; right: 6px; top: 58px; bottom: 54px; z-index: 2; width: 3px; border-radius: 3px; background: rgba(0, 0, 0, 0.12); }
.peek-bar i { position: absolute; left: 0; top: 0; width: 100%; height: 26%; border-radius: 3px; background: var(--black); }
.tile-media.is-peeking .peek { opacity: 1; filter: blur(0); transform: none; }
.tile-media.is-peeking > img { filter: blur(16px); opacity: 0; transform: scale(1.06); transition: filter 0.6s var(--ease-out), opacity 0.6s var(--ease-out), transform 0.8s var(--ease-out); }
.tile--live .tile-media .price-chip { z-index: 2; }

.tile-live {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  appearance: none;
  border: 0;
  background: var(--black);
  color: var(--white);
  border-radius: 999px;
  height: 38px;
  padding: 0 15px 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.55);
  animation: live-halo 2.4s ease-out infinite;
  transition: background-color 0.3s, color 0.3s, transform 0.35s var(--ease-out);
}
.tile-live .live-dot { width: 8px; height: 8px; animation: none; box-shadow: none; }
.tile-live svg { width: 12px; height: 12px; margin-left: 1px; }
.tile-live:hover, .tile--live .tile-media:hover ~ .tile-live, .tile--live:hover .tile-live { background: var(--accent); color: var(--black); transform: scale(1.05); }
.tile--live:hover .tile-live .live-dot { background: var(--black); }
@keyframes live-halo {
  0% { box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.55), 0 0 0 0 rgba(249, 171, 207, 0.85); }
  70%, 100% { box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.55), 0 0 0 12px rgba(249, 171, 207, 0); }
}
@media (max-width: 760px) {
  .tile-live { height: 34px; font-size: 10.5px; padding: 0 12px 0 10px; }
}

/* ---------------------------------------------------------------------
   Reviews — summary + review wall
   Left: average, star bars (filters), most reviewed. Right: filterable wall of cards.
   --------------------------------------------------------------------- */

.reviews {
  margin-top: clamp(48px, 7vw, 96px);
  padding: 0 var(--gutter) clamp(32px, 5vw, 64px);
  background: var(--white);
  display: grid;
  grid-template-columns: minmax(220px, 290px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.rv-summary {
  position: sticky;
  top: calc(var(--masthead-h) + 20px);
  display: grid;
  gap: 18px;
  min-width: 0;
}
.rv-score { display: flex; align-items: flex-end; gap: 14px; }
.rv-score b {
  font-size: clamp(64px, 6vw, 88px);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.8;
}
.rv-score .stars svg { width: 16px; height: 16px; }
.rv-score p { margin: 6px 0 0; font-size: 12.5px; color: var(--graphite); }
.rv-bars { display: grid; gap: 2px; }
.rv-bar {
  appearance: none;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 10px;
  padding: 5px 8px;
  margin: 0 -8px;
  border-radius: 8px;
  font-size: 12.5px;
  text-align: left;
}
.rv-bar:hover:not(:disabled) { background: var(--stone); }
.rv-bar[aria-pressed='true'] { background: var(--accent-soft); }
.rv-bar:disabled { cursor: default; opacity: 0.55; }
.rv-bar > span:first-child { display: inline-flex; align-items: center; gap: 4px; }
.rv-bar > span:first-child svg { width: 11px; height: 11px; }
.rv-bar > span:last-child { color: var(--graphite); text-align: right; }
.rv-bar i { display: block; height: 6px; border-radius: 3px; background: var(--stone); overflow: hidden; }
.rv-bar i b { display: block; height: 100%; border-radius: 3px; background: var(--black); }
.rv-label { font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--graphite); }
.rv-picks { display: grid; gap: 8px; }
.rv-picks-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.rv-picks-row a { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--stone); }
.rv-picks-row img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.rv-picks-row a:hover img { transform: scale(1.06); }

.rv-main { display: grid; gap: 16px; min-width: 0; }
.rv-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rv-chips { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
.rv-chip {
  appearance: none;
  border: 1px solid var(--rule);
  background: var(--white);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
.rv-chip:hover { border-color: var(--black); }
.rv-chip[aria-pressed='true'] { background: var(--black); border-color: var(--black); color: var(--white); }
.rv-sort select {
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--black);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 7px 30px 7px 13px;
  appearance: none;
  background: var(--white) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 6"><path d="M1 1l4 4 4-4" fill="none" stroke="black" stroke-width="1.4"/></svg>') no-repeat right 12px center / 9px 6px;
  cursor: pointer;
}

.rv-wall { columns: 3 240px; column-gap: 12px; }
.rv-card {
  break-inside: avoid;
  margin: 0 0 12px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 12px;
  background: var(--white);
}
.rv-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rv-card-top time { font-size: 12px; color: var(--graphite); white-space: nowrap; }
.rv-body { margin: 0; font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.rv-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rv-who-text { display: grid; min-width: 0; line-height: 1.25; }
.rv-name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-handle { font-size: 12px; color: var(--graphite); }
.rv-verified { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--graphite); }
.rv-verified svg { width: 12px; height: 12px; color: var(--accent); }
.rv-product {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  text-decoration: none;
  min-width: 0;
}
.rv-product img { flex: none; width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--stone); }
.rv-product > span { display: grid; min-width: 0; line-height: 1.25; }
.rv-product-title { font-size: 13px; font-weight: 600; text-transform: lowercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-product small { font-size: 11.5px; color: var(--graphite); }
.rv-product:hover .rv-product-title { text-decoration: underline; text-underline-offset: 3px; }
.rv-empty { color: var(--graphite); margin: 8px 0; }
.rv-more { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 12.5px; color: var(--graphite); }
.rv-more [hidden] + span { display: none; }

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex: none;
  object-fit: cover;
  background: var(--stone);
  color: var(--graphite);
  display: grid;
  place-items: center;
  font-size: 11.5px;
  font-weight: 700;
}
.stars { display: inline-flex; gap: 1px; color: var(--black); }
.stars svg { width: 12px; height: 12px; }
.stars .off { color: rgba(0, 0, 0, 0.2); }

@media (max-width: 900px) {
  .reviews { grid-template-columns: minmax(0, 1fr); }
  .rv-summary { position: static; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 18px 28px; }
  .rv-summary > .rail-title, .rv-picks { grid-column: 1 / -1; }
  .rv-picks-row { grid-template-columns: repeat(4, minmax(0, 72px)); }
}
@media (max-width: 560px) {
  .rv-summary { grid-template-columns: minmax(0, 1fr); }
  .rv-tools { flex-wrap: wrap; }
  .rv-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; flex: 1 1 100%; }
  .rv-chips::-webkit-scrollbar { display: none; }
}

/* Search results */
.search-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; padding: 26px var(--gutter) 16px; }
.search-count { font-size: 13px; color: var(--graphite); }
.search-page .rails .rail { padding-top: 0; }
.search-custom { margin-top: 48px; }
.search-custom > h2 { padding: 0 var(--gutter) 12px; }

/* ---------------------------------------------------------------------
   Product page
   --------------------------------------------------------------------- */

.product {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 72px);
  padding: 22px var(--gutter) 40px;
  align-items: start;
}
.crumbs { grid-column: 1 / -1; font-size: 13px; color: var(--graphite); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.gallery { min-width: 0; }
.gallery-strip {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--r-tile);
  background: var(--stone);
}
.gallery-strip::-webkit-scrollbar { display: none; }
.gallery-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 1 / 1;
  position: relative;
}
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-wrap { position: relative; }
.gallery-wrap.is-swapping .gallery-strip { opacity: 0; transform: scale(0.985); }
.gallery-strip { transition: opacity 0.28s, transform 0.4s var(--ease-out); }

.gallery-arrows {
  position: absolute;
  inset: auto 12px 12px auto;
  display: flex;
  gap: 6px;
}
.gallery-arrows button {
  appearance: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.gallery-arrows svg { width: 15px; height: 15px; }
.gallery-counter {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12.5px;
  font-weight: 600;
}
.gallery-live {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
}

.thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 3px;
}
.thumbs button {
  appearance: none;
  flex: none;
  width: 68px;
  height: 68px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--stone);
  opacity: 0.55;
  transition: opacity 0.2s, box-shadow 0.2s;
}
.thumbs button[aria-current='true'] { opacity: 1; box-shadow: 0 0 0 2px var(--white), 0 0 0 3.5px var(--black); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.buybox { position: sticky; top: calc(var(--masthead-h) + 20px); display: grid; gap: 22px; }
.buybox-kind { font-size: 13px; color: var(--graphite); margin: 0; }
.buybox h1 {
  margin: -8px 0 0;
  font-size: clamp(32px, 4.3vw, 66px);
  font-weight: 780;
  font-stretch: 92%;
  line-height: 0.96;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}
.buybox-price { font-size: clamp(22px, 2vw, 28px); font-weight: 560; letter-spacing: -0.01em; margin: 0; }

.variant-field { border: 0; padding: 0; margin: 0; }
.variant-field legend { font-size: 14px; font-weight: 600; padding: 0; margin-bottom: 10px; }
.variant-field legend span { font-weight: 450; color: var(--graphite); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px 0 8px;
  border-radius: 999px;
  border: 1.5px solid var(--rule);
  background: var(--white);
  cursor: pointer;
  font-size: 14px;
  font-weight: 520;
  transition: border-color 0.2s;
}
.swatch:hover { border-color: var(--graphite); }
.swatch:has(input:checked) { border-color: var(--black); box-shadow: inset 0 0 0 1px var(--black); }
.swatch:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.swatch i { width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15); background: var(--stone); }
.swatch.no-color { padding-left: 14px; }
.field-error { color: var(--accent-ink); font-size: 14px; font-weight: 560; margin: 10px 0 0; }
.variant-field.has-error .swatch { border-color: var(--accent); }

.buy-actions { display: grid; gap: 10px; }
.btn-live { --btn-bg: var(--white); --btn-fg: var(--black); border-color: var(--black); }
.btn-live:hover { --btn-bg: var(--black); --btn-fg: var(--white); }

.assurances { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 8px; font-size: 14px; color: var(--graphite); }
.assurances li { display: flex; gap: 10px; align-items: baseline; }
.assurances li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--black); flex: none; transform: translateY(-2px); }

.prose { font-size: 16px; line-height: 1.62; max-width: 64ch; }
.prose p { margin: 0 0 1em; }
.prose ul { margin: 0 0 1em; padding-left: 1.2em; }
.prose li { margin-bottom: 0.3em; }
.product-description { grid-column: 1 / 2; padding-top: 12px; }
.product-description h2 { font-size: 14px; font-weight: 620; margin: 0 0 12px; }

.related { padding-bottom: 20px; }

@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; gap: 24px; padding-top: 14px; }
  .buybox { position: static; }
  .product-description { grid-column: 1; }
  .gallery { margin: 0 calc(var(--gutter) * -1); }
  .gallery-strip { border-radius: 0; }
  .thumbs { padding-left: var(--gutter); padding-right: var(--gutter); }
}

/* Sticky mobile add-to-cart */
.mobile-buy {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: none;
  gap: 10px;
  align-items: center;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--rule);
  transform: translateY(110%);
  transition: transform 0.35s var(--ease-out);
}
.mobile-buy.is-visible { transform: none; }
.mobile-buy .mb-price { font-weight: 650; font-size: 17px; }
.mobile-buy .btn { flex: 1; min-height: 48px; }
@media (max-width: 900px) { .mobile-buy { display: flex; } }

/* ---------------------------------------------------------------------
   Custom work
   --------------------------------------------------------------------- */

/* Printed paper: the jaguar and zebra prints with a soft paper grain on top. */
.print { position: relative; background: url(/img/print-jaguar.webp) center / cover; filter: saturate(0.82) contrast(0.94) brightness(1.03); isolation: isolate; }
.print--zebra { background-image: url(/img/print-zebra.webp); }
.print::after, .cu-cell-bg--image::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url(/img/paper-grain.png), linear-gradient(rgba(251, 246, 238, 0.14), rgba(251, 246, 238, 0.14));
  background-size: 220px, auto;
}

/* The Custom page: a big centred headline, a black scrolling band, then the offerings as printed cells. */
.cu { padding: clamp(30px, 6vw, 72px) var(--gutter) clamp(40px, 6vw, 80px); display: grid; gap: clamp(34px, 5vw, 56px); }
.cu-hero { display: grid; gap: 26px; justify-items: center; text-align: center; max-width: 1080px; margin: 0 auto; padding-top: clamp(10px, 2vw, 30px); }
.cu-hero h1 { margin: 0; font-size: clamp(38px, 8.2vw, 118px); font-weight: 600; line-height: 0.9; letter-spacing: -0.055em; text-transform: lowercase; text-wrap: balance; }
.cu-hero h1:focus { outline: none; }
.cu-hero h1 .l2 { display: block; }
.cu-hero h1 em { font-style: italic; font-weight: 600; padding-right: 0.08em; }
.cu-hero h1 .so { position: relative; display: inline-block; isolation: isolate; }
.cu-hero h1 .so::after { content: ''; position: absolute; left: 4%; right: 2%; bottom: 0.04em; height: 0.09em; border-radius: 99px; background: var(--accent); z-index: -1; }
.cu-hero p { margin: 0; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.4; color: #2b2b2b; letter-spacing: -0.01em; max-width: 46ch; white-space: pre-line; }

.cu-band { margin: 0 calc(var(--gutter) * -1); background: var(--black); color: #fbf8f3; overflow: hidden; padding: 16px 0; }
.cu-band div { display: inline-flex; gap: 26px; align-items: center; white-space: nowrap; font-size: clamp(22px, 3vw, 36px); font-weight: 600; letter-spacing: -0.04em; padding-left: 26px; animation: cu-ticker 22s linear infinite; }
.cu-band i { font-style: normal; color: var(--accent); font-weight: 400; }
@keyframes cu-ticker { to { transform: translateX(-50%); } }

.cu-cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cu-cell { position: relative; border-radius: 26px; overflow: hidden; padding: clamp(18px, 2.4vw, 28px); display: grid; min-height: 440px; background: var(--stone); }
.cu-cell-bg { position: absolute; inset: 0; transition: transform 1.2s var(--ease-out); }
.cu-cell-bg--image { background-size: cover; background-position: center; }
.cu-cell:hover .cu-cell-bg { transform: scale(1.04); }
.cu-card {
  position: relative;
  z-index: 1;
  align-self: end;
  border-radius: 20px;
  padding: 22px;
  display: grid;
  gap: 10px;
  align-content: start;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 40px -26px rgba(0, 0, 0, 0.55);
  transition: transform 0.5s var(--ease-out);
}
.cu-cell:hover .cu-card { transform: translateY(-6px); }
.cu-cell.has-badge .cu-card { background: rgba(255, 255, 255, 0.95); border: 2px solid var(--black); }
.cu-badge, .cu-no { position: absolute; top: clamp(18px, 2.4vw, 28px); z-index: 2; padding: 6px 11px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.2; }
.cu-badge { left: clamp(18px, 2.4vw, 28px); background: var(--accent); color: var(--black); max-width: calc(100% - 140px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cu-no { right: clamp(18px, 2.4vw, 28px); background: rgba(255, 255, 255, 0.92); font-weight: 600; letter-spacing: 0.2em; }
.cu-card h2 { margin: 0; font-size: 30px; font-weight: 600; letter-spacing: -0.05em; line-height: 0.95; text-transform: lowercase; overflow-wrap: anywhere; }
.cu-card h2 a { text-decoration: none; }
.cu-card h2 a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.cu-amt { margin: 0; font-size: 46px; font-weight: 300; letter-spacing: -0.06em; line-height: 1; }
.cu-card p.cu-sum { margin: 0; font-size: 14px; color: var(--graphite); }
.cu-reserve {
  justify-self: start;
  margin-top: 4px;
  border: 0;
  background: var(--black);
  color: var(--white);
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}
.cu-reserve:hover { background: var(--accent); color: var(--black); }

.cu-faq { display: grid; gap: 8px; }
.cu-faq details { border-radius: 18px; border: 1px solid var(--rule); padding: 15px 18px; background: var(--white); }
.cu-faq summary { cursor: pointer; font-weight: 650; letter-spacing: -0.02em; list-style: none; display: flex; justify-content: space-between; gap: 10px; text-transform: lowercase; }
.cu-faq summary::-webkit-details-marker { display: none; }
.cu-faq summary::after { content: '+'; font-weight: 400; font-size: 20px; line-height: 1; transition: transform 0.3s var(--ease-out); }
.cu-faq details[open] summary::after { transform: rotate(45deg); }
.cu-faq p { margin: 8px 0 0; color: var(--graphite); font-size: 14px; white-space: pre-line; }
.cu-foot { display: flex; justify-content: flex-start; align-items: center; gap: 12px; flex-wrap: wrap; }
.cu-link { display: inline-flex; align-items: center; gap: 9px; border: 0; background: none; padding: 0 0 2px; font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--black); cursor: pointer; }
.cu-link i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
@media (max-width: 900px) {
  .cu-cells { grid-template-columns: minmax(0, 1fr); max-width: 460px; width: 100%; margin: 0 auto; }
  .cu-cell { min-height: 380px; }
}

/* ---------------------------------------------------------------------
   The "text me" phone (js/phone.js) — floats bottom right on every page
   --------------------------------------------------------------------- */
.ph-scrim { position: fixed; inset: 0; z-index: 50; background: rgba(12, 12, 12, 0.28); opacity: 0; pointer-events: none; transition: opacity 0.5s var(--ease-out); }
.ph-scrim.on { opacity: 1; pointer-events: auto; }
.ph-dock {
  --ph-right: max(24px, env(safe-area-inset-right, 0px));
  --ph-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  position: fixed;
  right: var(--ph-right);
  bottom: var(--ph-bottom);
  z-index: 52;
  width: 175px;
  height: 255px;
  perspective: 1600px;
  transform-origin: 100% 100%;
  transform: rotate(-6deg) scale(var(--k, 1));
  transition: transform 0.9s var(--ease-out), bottom 0.35s var(--ease-out);
  animation: ph-bob 3.6s ease-in-out infinite;
  pointer-events: none;
}
.ph-dock > * { pointer-events: auto; }
.ph-dock.open { transform: none; animation: none; }
.ph-flip { position: absolute; right: 0; bottom: 0; width: 112px; height: 255px; transform-style: preserve-3d; transition: width 0.9s var(--ease-out), height 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.ph-dock.open .ph-flip { width: 300px; height: min(620px, calc(100dvh - 48px)); transform: rotateY(180deg); }
.ph-back, .ph-front { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.ph-back { border: 0; padding: 0; cursor: pointer; background: url(/img/phone-case.webp) center / 100% 100% no-repeat; border-radius: 20px; filter: drop-shadow(0 22px 26px rgba(0, 0, 0, 0.35)); }
.ph-strap { position: absolute; left: 0; top: 24px; width: 63px; height: auto; z-index: 4; transform-origin: 61.5px 1px; animation: ph-swing 2.9s ease-in-out infinite; pointer-events: none !important; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.22)); transition: opacity 0.25s; }
.ph-dock.open .ph-strap { opacity: 0; }
.ph-bubble {
  position: fixed;
  right: calc(max(24px, env(safe-area-inset-right, 0px)) + 140px);
  bottom: calc(24px + env(safe-area-inset-bottom, 0px) + 222px);
  z-index: 53;
  border: 0;
  background: var(--white);
  color: var(--black);
  border-radius: 20px 20px 4px 20px;
  padding: 12px 16px;
  font-size: 13.5px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.015em;
  box-shadow: 0 16px 34px -16px rgba(0, 0, 0, 0.45);
  text-align: left;
  max-width: 236px;
  cursor: pointer;
  animation: ph-bubble 3.6s ease-in-out infinite;
  transition: opacity 0.3s, bottom 0.35s var(--ease-out);
}
.ph-bubble span { display: block; font-weight: 500; color: var(--graphite); }
.ph-bubble em { font-style: normal; box-shadow: inset 0 -0.45em 0 var(--accent); }
.ph-bubble.gone { opacity: 0; pointer-events: none; }
@keyframes ph-bob { 0%, 100% { transform: rotate(-6deg) scale(var(--k, 1)) translateY(0); } 50% { transform: rotate(-6deg) scale(var(--k, 1)) translateY(-7px); } }
@keyframes ph-swing { 0%, 100% { transform: rotate(9deg); } 50% { transform: rotate(-11deg); } }
@keyframes ph-bubble { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-5px) rotate(1deg); } }
.ph-front { transform: rotateY(180deg); background: #121212; padding: 10px; border-radius: 46px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55); }
.ph-screen { position: relative; height: 100%; border-radius: 37px; background: var(--white); overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.ph-island { position: absolute; top: 9px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 20px; background: #111; z-index: 3; }
.ph-head { padding: 44px 14px 10px; display: grid; justify-items: center; gap: 3px; border-bottom: 1px solid rgba(0, 0, 0, 0.07); background: rgba(250, 250, 250, 0.96); position: relative; text-align: center; }
.ph-av { position: relative; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: url(/img/print-jaguar.webp) center / cover; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--accent); }
.ph-av b { position: relative; z-index: 2; color: #fff; font-size: 19px; font-weight: 700; letter-spacing: -0.04em; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }
.ph-head strong { font-size: 13px; font-weight: 650; letter-spacing: -0.01em; }
.ph-head small { font-size: 10.5px; color: #9a9692; }
.ph-x { position: absolute; left: 14px; top: 46px; border: 0; background: none; font-size: 13px; font-weight: 600; cursor: pointer; padding: 2px; }
.ph-msgs { overflow-y: auto; padding: 12px 12px 18px; display: flex; flex-direction: column; gap: 4px; overscroll-behavior: contain; }
.ph-msg { max-width: 80%; padding: 8px 12px; border-radius: 18px; font-size: 13.5px; line-height: 1.35; animation: ph-msg-in 0.35s var(--ease-out) both; overflow-wrap: anywhere; white-space: pre-line; }
.ph-msg.them { align-self: flex-start; background: #ececee; color: #111; border-bottom-left-radius: 5px; }
.ph-msg.me { align-self: flex-end; background: var(--accent); color: var(--black); border-bottom-right-radius: 5px; }
.ph-msg.me small { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.7; margin-top: 6px; }
.ph-msg.me small:first-child { margin-top: 0; }
.ph-msg.them + .ph-msg.me, .ph-msg.me + .ph-msg.them, .ph-msg + .ph-note, .ph-note + .ph-msg { margin-top: 8px; }
.ph-meta { align-self: flex-end; font-size: 10px; color: #9a9692; margin: 1px 4px 6px; }
.ph-typing { align-self: flex-start; background: #ececee; border-radius: 18px; padding: 11px 13px; display: flex; gap: 4px; margin-top: 4px; }
.ph-typing i { width: 7px; height: 7px; border-radius: 50%; background: #9a9a9e; animation: ph-dots 1s infinite; }
.ph-typing i:nth-child(2) { animation-delay: 0.15s; }
.ph-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes ph-dots { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-3px); opacity: 1; } }
@keyframes ph-msg-in { from { opacity: 0; transform: translateY(6px) scale(0.96); } to { opacity: 1; transform: none; } }
.ph-again { align-self: center; margin-top: 10px; border: 1px solid var(--rule); background: var(--white); border-radius: 999px; padding: 7px 13px; font-size: 12px; font-weight: 600; cursor: pointer; }
.ph-note {
  align-self: stretch;
  position: relative;
  border-radius: 14px;
  padding: 14px 14px 12px 34px;
  box-shadow: 0 10px 22px -14px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.05);
  background-color: #fbf8f3;
  background-image: repeating-linear-gradient(transparent 0 25px, var(--accent) 25px 26px);
  background-position: 0 12px;
  display: grid;
  gap: 4px;
  animation: ph-msg-in 0.45s var(--ease-out) both;
}
.ph-note::before { content: ''; position: absolute; top: 0; bottom: 0; left: 24px; width: 1.2px; background: var(--accent); }
.ph-note::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: url(/img/paper-grain.png); background-size: 200px; opacity: 0.45; pointer-events: none; }
.ph-note .dear { margin: 0; font-size: 16px; font-weight: 650; letter-spacing: -0.04em; line-height: 26px; }
.ph-note label { display: grid; font-size: 9.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; line-height: 1.2; }
.ph-note textarea, .ph-note input { position: relative; z-index: 1; border: 0; background: transparent; font: inherit; font-size: 16px; font-weight: 500; line-height: 26px; padding: 0; resize: none; outline: none; color: var(--black); width: 100%; text-transform: none; letter-spacing: -0.01em; }
.ph-note textarea { height: 78px; }
.ph-note textarea::placeholder, .ph-note input::placeholder { color: #9a9692; }
.ph-note .ph-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ph-note .row { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.ph-note .xo { font-size: 12px; color: var(--graphite); }
.ph-note .send { border: 0; background: var(--black); color: var(--white); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 12.5px; cursor: pointer; }
.ph-note .send:disabled { opacity: 0.6; cursor: default; }
.ph-note .err { position: relative; z-index: 1; margin: 0; font-size: 11.5px; min-height: 1em; line-height: 1.3; }
@media (min-width: 761px) {
  .ph-note textarea, .ph-note input { font-size: 13.5px; }
}
/* The phone takes less room in the corner on phones. */
@media (max-width: 760px) {
  .ph-dock { --k: 0.54; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .ph-dock.open { right: 50%; margin-right: -150px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .ph-dock.open .ph-flip { height: min(620px, calc(100dvh - 32px)); }
  .ph-bubble { right: 84px; bottom: calc(12px + env(safe-area-inset-bottom, 0px) + 116px); font-size: 12px; padding: 9px 12px; max-width: 180px; border-radius: 16px 16px 4px 16px; }
}
@media (max-width: 340px) {
  .ph-dock.open { right: 8px; margin-right: 0; }
  .ph-dock.open .ph-flip { width: calc(100vw - 16px); }
}
/* Product pages on phones have a sticky buy bar at the bottom: the phone sits just above it. */
@media (max-width: 900px) {
  body:has(.mobile-buy.is-visible) .ph-dock:not(.open) { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  body:has(.mobile-buy.is-visible) .ph-bubble { bottom: calc(84px + env(safe-area-inset-bottom, 0px) + 222px); }
}
@media (max-width: 760px) {
  body:has(.mobile-buy.is-visible) .ph-bubble { bottom: calc(84px + env(safe-area-inset-bottom, 0px) + 116px); }
}
@media print { .phone-widget { display: none; } }

.cw { padding: clamp(24px, 4vw, 48px) 0 60px; }
.cw-intro {
  padding: 0 var(--gutter) clamp(24px, 3vw, 40px);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  align-items: baseline;
}
.cw-intro h1 { font-size: 14px; font-weight: 620; margin: 0; }
.cw-intro p { margin: 0; color: var(--graphite); font-size: 14px; max-width: 60ch; }

.cw-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--black); }
.cw-list li { border-bottom: 1px solid var(--black); }
.cw-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px 40px;
  padding: clamp(14px, 2vw, 26px) var(--gutter) clamp(16px, 2.2vw, 30px);
  text-decoration: none;
  position: relative;
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out);
}
.cw-row:focus-visible { outline-offset: -4px; border-radius: 0; }
.cw-name, .cw-price {
  font-size: clamp(38px, 7.6vw, 136px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  margin: 0;
}
.cw-name { font-weight: 820; font-stretch: 118%; overflow-wrap: anywhere; }
.cw-price { font-weight: 280; font-stretch: 100%; white-space: nowrap; }
.cw-summary { grid-column: 1 / -1; margin: 6px 0 0; font-size: 15px; color: var(--graphite); max-width: 60ch; transition: color 0.35s; }
@media (hover: hover) {
  .cw-row:hover { background: var(--black); color: var(--white); }
  .cw-row:hover .cw-summary { color: rgba(255, 255, 255, 0.72); }
}
@media (max-width: 640px) {
  .cw-row { grid-template-columns: 1fr; }
  .cw-price { font-size: clamp(30px, 10vw, 56px); }
}

.cw-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  gap: clamp(28px, 5vw, 90px);
  padding: 22px var(--gutter) 70px;
  align-items: start;
}
.cw-detail .crumbs { grid-column: 1 / -1; }
.cw-detail h1 {
  font-size: clamp(44px, 8vw, 140px);
  font-weight: 820;
  font-stretch: 118%;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 0 0 clamp(20px, 3vw, 40px);
  overflow-wrap: anywhere;
}
.cw-detail .cw-big-price {
  font-size: clamp(40px, 6vw, 96px);
  font-weight: 280;
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0;
}
.cw-buy { position: sticky; top: calc(var(--masthead-h) + 20px); display: grid; gap: 20px; }
.cw-buy .fixed-note { margin: -8px 0 0; color: var(--graphite); font-size: 14px; }
.steps { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 26px 1fr; font-size: 14px; color: var(--graphite); }
.steps li::before { content: counter(s); font-weight: 700; color: var(--black); }
@media (max-width: 900px) {
  .cw-detail { grid-template-columns: 1fr; }
  .cw-buy { position: static; }
}

/* ---------------------------------------------------------------------
   Cart drawer + cart page
   --------------------------------------------------------------------- */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  justify-content: flex-end;
  visibility: hidden;
}
.drawer.is-open { visibility: visible; }
.drawer-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}
.drawer.is-open .drawer-scrim { opacity: 1; }
.drawer-panel {
  position: relative;
  width: min(460px, 100%);
  height: 100%;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease-out);
  box-shadow: -20px 0 60px -30px rgba(0, 0, 0, 0.4);
  outline: none;
}
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--rule);
}
.drawer-head h2 { font-size: 18px; font-weight: 700; margin: 0; font-stretch: 110%; }
.icon-btn {
  appearance: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--stone);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.icon-btn svg { width: 16px; height: 16px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; overscroll-behavior: contain; }
.drawer-foot { border-top: 1px solid var(--rule); padding: 16px 20px calc(18px + env(safe-area-inset-bottom)); display: grid; gap: 12px; }

.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.cart-line:last-child { border-bottom: 0; }
.cart-thumb {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--stone);
  display: grid;
  place-items: center;
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb.is-custom { background: var(--black); color: var(--white); font-size: 11px; font-weight: 700; text-align: center; line-height: 1.1; padding: 6px; font-stretch: 112%; }
.cart-line h3 { font-size: 14.5px; font-weight: 600; margin: 0 0 2px; line-height: 1.3; }
.cart-line h3 a { text-decoration: none; }
.cart-meta { font-size: 13px; color: var(--graphite); margin: 0; }
.cart-line-price { font-weight: 620; font-size: 14.5px; text-align: right; white-space: nowrap; }
.cart-line.is-unavailable { opacity: 0.7; }
.line-note { font-size: 13px; margin: 6px 0 0; font-weight: 560; color: var(--accent-ink); }
.line-controls { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--rule); border-radius: 999px; height: 34px; }
.qty button { appearance: none; border: 0; background: none; width: 32px; height: 32px; cursor: pointer; font-size: 16px; border-radius: 50%; }
.qty button:disabled { opacity: 0.3; cursor: default; }
.qty output { min-width: 22px; text-align: center; font-size: 14px; font-weight: 600; }
.remove { font-size: 13px; color: var(--graphite); }

.cart-notice {
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  background: var(--accent);
  color: var(--black);
  margin: 12px 0 4px;
}
.cart-notice strong { display: block; margin-bottom: 2px; }
.cart-error { background: #fff4e5; color: #6b3a00; }

.totals { display: flex; justify-content: space-between; align-items: baseline; font-size: 16px; }
.totals strong { font-size: 20px; font-weight: 700; }
.cart-fineprint { margin: 0; font-size: 13px; color: var(--graphite); line-height: 1.45; }
.cart-empty { padding: 40px 0; }
.cart-empty p { color: var(--graphite); margin: 0 0 18px; }
.cart-empty .actions { display: flex; flex-wrap: wrap; gap: 10px; }

.cart-page { padding: clamp(28px, 4vw, 56px) var(--gutter) 70px; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(24px, 5vw, 80px); align-items: start; }
.cart-page h1 { grid-column: 1 / -1; margin: 0; font-size: clamp(34px, 5vw, 64px); font-weight: 800; font-stretch: 110%; letter-spacing: -0.03em; line-height: 1; }
.cart-page .summary { position: sticky; top: calc(var(--masthead-h) + 20px); background: var(--stone); border-radius: 18px; padding: 20px; display: grid; gap: 12px; }
@media (max-width: 860px) { .cart-page { grid-template-columns: 1fr; } .cart-page .summary { position: static; } }

.spinner {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------------
   Order return pages
   --------------------------------------------------------------------- */

.order-state { padding: clamp(50px, 10vh, 120px) var(--gutter) 80px; max-width: 900px; }
.order-state h1 {
  font-size: clamp(46px, 8vw, 128px);
  font-weight: 820;
  font-stretch: 118%;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 0 0 28px;
}
.order-state .lede { font-size: clamp(18px, 1.8vw, 22px); max-width: 44ch; margin: 0 0 14px; }
.order-state p { color: var(--graphite); max-width: 60ch; }
.order-state .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.order-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; max-width: 60ch; }
.order-list li { display: grid; grid-template-columns: 28px 1fr; font-size: 16px; }
.order-list li::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); margin-top: 6px; }

/* ---------------------------------------------------------------------
   Toast
   --------------------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 90;
  transform: translate(-50%, 30px);
  opacity: 0;
  pointer-events: none;
  background: var(--black);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 560;
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
  max-width: calc(100vw - 32px);
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */

.site-footer { padding: 70px var(--gutter) 0; overflow: hidden; border-top: 1px solid var(--rule); margin-top: 40px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; font-size: 14px; margin-bottom: 50px; }
.footer-cols h2 { font-size: 14px; font-weight: 650; margin: 0 0 10px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: var(--graphite); }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { text-decoration: underline; }
.footer-legal { margin: 0; padding: 18px 0 26px; border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--graphite); }

.noscript { padding: 40px var(--gutter); }

/* ---------------------------------------------------------------------
   Proof — the live template preview (see js/proof.js)
   A tile unfolds into a proof sheet: the stage grows out of the product image,
   printer's crop marks mark the "trim" of the chosen device, and the product
   image folds open to reveal the live site underneath.
   --------------------------------------------------------------------- */

.proof {
  --bar-h: 68px;
  --inset: 28px;
  --mark: 16px;
  position: fixed;
  inset: 0;
  z-index: 80;
  color: var(--white);
}
.proof-scrim {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 12, 0.62);
  opacity: 0;
}

.proof-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 var(--inset);
  opacity: 0;
}
.proof-id { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 0; }
.proof-id .reg { width: 22px; height: 22px; flex: none; color: var(--accent); }
.proof-title { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proof-host { font-size: 13px; color: rgba(255, 255, 255, 0.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.proof-devices { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); flex: none; }
.proof-devices button {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 560;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  cursor: pointer;
}
.proof-devices button[aria-pressed='true'] { background: var(--white); color: var(--black); }

.proof-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex: 1 1 0; min-width: 0; }
.proof-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: var(--white);
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 560;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.proof-btn:hover { border-color: var(--white); }
.proof-btn svg { width: 14px; height: 14px; }
.proof-btn--buy { background: var(--white); color: var(--black); border-color: var(--white); font-weight: 650; }
.proof-btn--buy:hover { background: #e9e9e9; }
.proof-btn--icon { width: 38px; padding: 0; justify-content: center; }
.proof-switch { display: inline-flex; gap: 4px; }

.proof-sheet {
  position: absolute;
  left: var(--inset);
  right: var(--inset);
  top: var(--bar-h);
  bottom: var(--inset);
  display: flex;
  justify-content: center;
}

.proof-trim {
  position: relative;
  height: 100%;
  width: 100%;
  max-width: 100%;
  transition: width 0.7s var(--ease-in-out);
}
.proof[data-device='tablet'] .proof-trim { width: min(834px, 100%); }
.proof[data-device='phone'] .proof-trim { width: min(390px, 100%); }

.proof-stage {
  position: absolute;
  inset: 0;
  border-radius: var(--r-sheet);
  overflow: hidden;
  background: var(--white);
  perspective: 1800px;
}
.proof-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--white);
}

.proof-veil {
  position: absolute;
  inset: 0;
  z-index: 3;
  background-color: var(--stone);
  background-size: cover;
  background-position: center;
  will-change: filter, opacity, transform;
  pointer-events: none;
}

.proof-loading {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 560;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.proof.is-loading .proof-loading { opacity: 1; }

.proof-fallback {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 24px;
  background-size: cover;
  background-position: center;
}
.proof-fallback::before { content: ''; position: absolute; inset: 0; background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.proof-fallback-card {
  position: relative;
  color: var(--black);
  max-width: 440px;
  text-align: left;
}
.proof-fallback-card h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; font-stretch: 110%; letter-spacing: -0.03em; line-height: 1; margin: 0 0 12px; }
.proof-fallback-card p { margin: 0 0 20px; color: #333; }
.proof-fallback-card .actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Crop marks sit just outside the trim corners and follow the device width. */
.crop { position: absolute; width: var(--mark); height: var(--mark); pointer-events: none; opacity: 0; }
.crop::before, .crop::after { content: ''; position: absolute; background: rgba(255, 255, 255, 0.85); }
.crop::before { width: 100%; height: 1px; }
.crop::after { width: 1px; height: 100%; }
.crop--tl { left: calc(var(--mark) * -1 - 4px); top: calc(var(--mark) * -1 - 4px); }
.crop--tl::before { bottom: 0; left: 0; } .crop--tl::after { right: 0; top: 0; }
.crop--tr { right: calc(var(--mark) * -1 - 4px); top: calc(var(--mark) * -1 - 4px); }
.crop--tr::before { bottom: 0; right: 0; } .crop--tr::after { left: 0; top: 0; }
.crop--bl { left: calc(var(--mark) * -1 - 4px); bottom: calc(var(--mark) * -1 - 4px); }
.crop--bl::before { top: 0; left: 0; } .crop--bl::after { right: 0; bottom: 0; }
.crop--br { right: calc(var(--mark) * -1 - 4px); bottom: calc(var(--mark) * -1 - 4px); }
.crop--br::before { top: 0; right: 0; } .crop--br::after { left: 0; bottom: 0; }
.trim-label {
  position: absolute;
  left: 0;
  top: calc(100% + 2px);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  opacity: 0;
}

.proof-menu {
  position: absolute;
  right: var(--inset);
  top: calc(var(--bar-h) - 4px);
  z-index: 10;
  background: var(--white);
  color: var(--black);
  border-radius: 14px;
  padding: 6px;
  min-width: 220px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
}
.proof-menu p { margin: 6px 10px 6px; font-size: 12.5px; color: var(--graphite); }
.proof-menu button {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  padding: 10px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
}
.proof-menu button:hover, .proof-menu button:focus-visible { background: var(--stone); }
.proof-menu i { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15); }

.proof-sentinel { position: absolute; width: 1px; height: 1px; overflow: hidden; }

/* Mobile: a full-screen sheet with a thumb-reach dock instead of a top bar. */
@media (max-width: 760px) {
  .proof { --bar-h: 0px; --inset: 0px; }
  .proof-bar {
    top: auto;
    bottom: 0;
    height: auto;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(8, 8, 8, 0.96);
    flex-wrap: wrap;
    gap: 10px;
  }
  .proof-sheet { top: 0; bottom: var(--dock-h, 124px); left: 0; right: 0; }
  .proof-stage { border-radius: 0 0 var(--r-sheet) var(--r-sheet); }
  .proof-devices, .crop, .trim-label, .proof-btn--reload { display: none; }
  .proof-id { flex: 1 1 100%; order: -1; }
  .proof-grab { display: block; }
  .proof-actions { flex: 1 1 100%; justify-content: stretch; }
  .proof-actions .proof-btn--buy { flex: 1; justify-content: center; height: 46px; font-size: 15px; }
  .proof-actions .proof-btn { height: 46px; }
  .proof-actions { flex-wrap: nowrap; gap: 6px; }
  .proof-actions .proof-btn--icon { width: 42px; flex: none; }
  .proof-actions .proof-btn--buy { min-width: 0; padding: 0 12px; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; letter-spacing: 0.08em; }
  .proof-switch { flex: none; }
  .proof-menu { right: 12px; left: 12px; top: auto; bottom: calc(var(--dock-h, 124px) + 8px); }
}
.proof-grab { display: none; position: absolute; top: 5px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: rgba(255, 255, 255, 0.35); }

/* ---------------------------------------------------------------------
   Reduced motion
   --------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.12s !important;
  }
  .live-dot { animation: none; }
  .tile-link:hover .tile-media img { transform: none; }
}

::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.28s; }
::view-transition-group(hero-media) { animation-duration: 0.55s; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
::view-transition-image-pair(hero-media) { isolation: auto; }

/* ---------------------------------------------------------------------
   Typography — tight lowercase grotesk headlines + small wide-tracked capitals
   (kept last so it settles every heading style above)
   --------------------------------------------------------------------- */

:is(.brand-text, .buybox h1, .cw-name, .cw-detail h1, .order-state h1, .state h1, .proof-fallback-card h2, .cart-page h1, .drawer-head h2) {
  font-family: var(--font); font-weight: 600; font-stretch: normal; letter-spacing: -0.055em;
}
.brand-text { font-size: 27px; }
.brand-text::after { content: '©'; font-size: 0.42em; font-weight: 500; letter-spacing: 0; vertical-align: 0.1em; margin-left: 0.18em; }
.buybox h1 { font-size: clamp(42px, 5.2vw, 84px); line-height: 0.9; }
.buybox-price { font-size: clamp(24px, 2.2vw, 32px); font-weight: 400; letter-spacing: -0.03em; }
.cw-name { font-size: clamp(46px, 9vw, 160px); line-height: 0.86; }
.cw-price { font-family: var(--font); font-size: clamp(46px, 9vw, 160px); font-weight: 300; font-stretch: normal; letter-spacing: -0.05em; line-height: 0.86; }
.cw-detail h1 { font-size: clamp(52px, 9.5vw, 168px); line-height: 0.86; }
.cw-big-price { font-size: clamp(44px, 6vw, 100px); font-weight: 300; letter-spacing: -0.05em; }
.order-state h1 { font-size: clamp(56px, 9.5vw, 150px); line-height: 0.88; }
.tile-title { font-size: 15.5px; font-weight: 500; letter-spacing: -0.02em; }
.drawer-head h2 { font-size: 26px; }
:is(.rail-title, .buybox-kind, .tile-type, .segmented button, .cw-intro h1, .footer-cols h2, .crumbs, .btn, .fixed-note, .variant-field legend, .product-description h2, .tile-live, .proof-btn--buy) {
  text-transform: uppercase; letter-spacing: 0.16em; font-weight: 500;
}
:is(.segmented button, .crumbs, .tile-live) { font-size: 11.5px; }
:is(.rail-title, .cw-intro h1, .footer-cols h2, .buybox-kind, .product-description h2, .variant-field legend, .fixed-note) { font-size: 12px; }
.tile-type { font-size: 10.5px; margin-top: 4px; }
.btn { font-size: 12.5px; }
.variant-field legend span { text-transform: none; letter-spacing: 0; font-size: 14px; }
.rail-title sup { letter-spacing: 0; }
@media (max-width: 760px) { .brand-text { font-size: 22px; } }
:is(.brand-text, .buybox h1, .cw-name, .cw-detail h1, .order-state h1, .state h1, .tile-title, .drawer-head h2, .cart-page h1) { text-transform: lowercase; }

/* ---------------------------------------------------------------------
   Section pages + row links
   --------------------------------------------------------------------- */

.rail-title a { color: inherit; text-decoration: none; }
.rail-title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.rail-all {
  margin-left: auto;
  color: var(--black);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
}
.rail-all + .rail-nav { margin-left: 14px; }
.section-crumbs { padding: 22px var(--gutter) 0; }
.section-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; padding: 10px var(--gutter) 26px; }
.section-title {
  margin: 0;
  font-size: clamp(40px, 6.4vw, 104px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.9;
  text-transform: lowercase;
  overflow-wrap: anywhere;
}
