/* Reve ceramics: website tokens. The one source for colour, type, space, radius and motion.
   Block 1 is printed by design-taste-frontend `start.mjs brand` (Reve's own colours, the Bricolage /
   Figtree pairing, soft radius); keep it as printed. Block 2 adds the brand colours and scales the
   styleguide documents. Fonts: load before this file —
   https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wdth,wght@12..96,75..100,400..700&family=Figtree:wght@400..600&display=swap
*/

/* ---------- 1. kit tokens (start.mjs brand --page product --bg #F5F3EC --ink #26231F --accent #C23C21 --type bricolage --radius soft) ---------- */
:root {
  --p-bg: #f5f3ec; --p-surface: #e9e7e0; --p-ink: #26231f; --p-muted: #67655f;
  --p-accent: #c23c21; --p-accent-ink: #f5f3ec; --p-action: #c23c21; --p-action-ink: #f5f3ec;
  --p-inv-bg: #26231f; --p-inv-surface: #322f2b; --p-inv-ink: #f5f3ec; --p-inv-muted: #9f9d97;
  --p-inv-accent: #f5f3ec; --p-inv-accent-ink: #26231f; --p-inv-action: #f5f3ec; --p-inv-action-ink: #26231f;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-text: "Figtree", system-ui, sans-serif;
  --display-weight: 400;
  --display-tracking: -0.03em;
  --display-tracking-xl: -0.04em;
  --display-stretch: 96%;
}

/* ---------- 2. Reve brand ---------- */
:root {
  /* brand colours, from the logo concept deck (page 9, vector values) */
  --reve-vermilion: #db4c31;   /* the logo; large fields and bands; never small text */
  --reve-cobalt: #2f57a3;      /* collection colour */
  --reve-olive: #6d7c42;       /* collection colour; graphics and large type */
  --reve-olive-deep: #5f6c38;  /* olive band that carries text (cream on it 5.13:1) */
  --reve-kraft: #a78e70;       /* packaging only: boxes, stamps; not a web ground */

  /* roles */
  --bg: var(--p-bg);
  --surface: var(--p-surface);
  --ink: var(--p-ink);
  --muted: var(--p-muted);
  --action: var(--p-action);          /* fired vermilion: primary button, links, focus */
  --action-ink: var(--p-action-ink);
  --line: color-mix(in oklab, var(--ink) 14%, var(--bg));   /* the one hairline */

  /* type scale: 390px -> 1440px */
  --t-h1: clamp(38px, 3.238vw + 25.37px, 72px);
  --t-h2: clamp(30px, 1.714vw + 23.31px, 48px);
  --t-h3: clamp(24px, 0.381vw + 22.51px, 28px);
  --t-lead: clamp(18px, 0.19vw + 17.26px, 20px);
  --t-body: 16px;
  --t-small: 14px;
  --t-label: 13px;

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

  /* layout */
  --wrap: 1280px;
  --gut: 80px;
  --nav: 72px;

  /* radius: soft */
  --r-sm: 8px; --r-md: 12px; --r-lg: 20px; --r-btn: 8px;
  --btn-h: 44px;

  /* motion */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --m-ease-enter: cubic-bezier(.22, 1, .36, 1);
  --m-in: 150ms; --m-out: 120ms; --m-press: 90ms; --m-panel: 200ms;
  --m-card: 180ms; --m-image: 600ms; --m-image-out: 400ms;
  --m-lift: -2px; --m-zoom: 1.03;
}

@media (max-width: 639px) {
  :root { --gut: 24px; --nav: 56px; }
}

/* Reve catalogue site. Tokens come first (styleguide/tokens.css, concatenated in by build_site.py). */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-latin.4083127a1f.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree-latin.eddba2ef40.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --img-outline: oklch(0 0 0 / 0.1);
  --raise: 0 1px 2px oklch(0 0 0 / 0.10), 0 4px 12px oklch(0 0 0 / 0.08);
  --icon-ease: cubic-bezier(0.2, 0, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav) + env(safe-area-inset-top) + var(--s-4));
       background: var(--bg); }   /* the rubber-band overscroll shows cream, not white */

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--t-body) / 1.625 var(--font-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-stretch: var(--display-stretch);
  letter-spacing: var(--display-tracking);
  text-wrap: balance;
}
p { text-wrap: pretty; }
img, video, svg { display: block; }
use { fill: currentColor; }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

a { color: var(--action); text-underline-offset: 3px; text-decoration-thickness: 1px;
    text-decoration-color: color-mix(in oklab, var(--action) 35%, transparent);
    transition: text-decoration-color var(--m-out) var(--ease); }
a:hover { text-decoration-color: currentColor; transition-duration: var(--m-in); }
:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }

.skip-link { position: absolute; left: var(--gut); top: -100px; z-index: 30; display: flex; align-items: center; min-height: 44px; padding: 0 var(--s-4);
             background: var(--bg); border-radius: var(--r-sm); color: var(--ink); }
.skip-link:focus-visible { top: 14px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 20;
  height: calc(var(--nav) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  background: var(--bg); border-bottom: 1px solid var(--line);
}
/* iOS lets the page scroll under its translucent top bar, above a top: 0 header.
   This cream backing reaches up past the screen edge, so nothing shows through there. */
.site-header::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 100vh; background: var(--bg); pointer-events: none; }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }
.site-header__logo { display: flex; align-items: center; height: 44px; color: var(--reve-vermilion); }
.site-header__logo svg { width: 84px; height: auto; aspect-ratio: 303 / 100.765; }
.site-header__note { font-size: var(--t-small); color: var(--muted); }
main { flex: 1; padding-top: calc(var(--nav) + env(safe-area-inset-top)); }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  height: var(--btn-h); padding: 0 var(--s-5); border-radius: var(--r-btn);
  border: 1px solid transparent;
  font: 500 16px / 1 var(--font-text); text-decoration: none; white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition-property: background-color, border-color, color, scale;
  transition-duration: var(--m-out);
  transition-timing-function: var(--ease);
}
.btn:active:not([aria-disabled="true"]) { scale: 0.96; transition-duration: var(--m-press); }
.btn--primary { background: var(--action); color: var(--action-ink); }
.btn--primary:hover { background: color-mix(in oklab, var(--action) 86%, var(--ink)); transition-duration: var(--m-in); }
.btn--secondary { background: transparent; color: var(--ink); border-color: color-mix(in oklab, var(--ink) 35%, var(--bg)); }
.btn--secondary:hover { background: color-mix(in oklab, var(--ink) 5%, var(--bg)); border-color: var(--ink); transition-duration: var(--m-in); }
.btn[aria-disabled="true"] { background: var(--surface); color: var(--muted); border-color: transparent; cursor: default; }

/* icon pair that cross-fades between two states (copy link, pause/play) */
.swap { position: relative; display: inline-grid; place-items: center; width: 18px; height: 18px; }
.swap > svg { grid-area: 1 / 1; width: 18px; height: 18px;
              transition-property: opacity, scale, filter; transition-duration: 200ms; transition-timing-function: var(--icon-ease); }
.swap > svg:last-child { opacity: 0; scale: 0.25; filter: blur(4px); }
.is-on .swap > svg:first-child { opacity: 0; scale: 0.25; filter: blur(4px); }
.is-on .swap > svg:last-child { opacity: 1; scale: 1; filter: blur(0); }
/* 1.75 sits between the skill's 1.5 (400 text) and 2 (600 text): every icon here sits beside 500-weight labels */
.icon-line { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- index: intro ---------- */
.intro { padding: var(--s-9) 0 var(--s-8); }
.intro .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-5); align-items: end; }
.intro h1 { grid-column: 1 / span 6; font-size: clamp(56px, 6.5vw + 20px, 128px); line-height: 0.95; letter-spacing: var(--display-tracking-xl); }
.intro__text { grid-column: 8 / span 5; display: grid; gap: var(--s-4); }
.intro__lead { font-size: var(--t-lead); line-height: 1.55; max-width: 32em; }
.intro__facts { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-5); margin: 0; padding: 0; list-style: none;
                font-size: var(--t-small); color: var(--muted); }

/* entrance: once, on the intro only */
@keyframes rise { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
.intro h1, .intro__lead, .intro__facts { animation: rise 700ms var(--m-ease-enter) both; }
.intro__lead { animation-delay: 100ms; }
.intro__facts { animation-delay: 200ms; }

/* ---------- index: grid of pieces ---------- */
.catalogue { padding-bottom: var(--s-9); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-7) var(--s-5); margin: 0; padding: 0; list-style: none; }

.card { display: grid; gap: var(--s-3); color: var(--ink); text-decoration: none;
        transition: translate var(--m-out) var(--ease); }
.card:hover { translate: 0 var(--m-lift); transition-duration: var(--m-card); }
.card:hover .card__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.card:focus-visible { outline-offset: 6px; border-radius: var(--r-lg); }

.frame { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); }
.frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
                box-shadow: inset 0 0 0 1px var(--img-outline); }
.frame img, .frame video { width: 100%; height: 100%; object-fit: cover; }
.frame--photo { aspect-ratio: 3 / 4; }
.frame--video { aspect-ratio: 9 / 16; }
.card .frame img { transition: scale var(--m-image-out) var(--ease); }
.card:hover .frame img { scale: var(--m-zoom); transition-duration: var(--m-image); }

.card__row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); }
.card__name { font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: 24px; line-height: 1.15; letter-spacing: -0.02em; }
.card__price { font-weight: 500; font-variant-numeric: tabular-nums; }
.card__meta { margin-top: calc(-1 * var(--s-2)); font-size: var(--t-small); color: var(--muted); font-variant-numeric: tabular-nums; }

/* sold: "Found a home". Inset 12px inside a 20px frame, so the badge corner is 20 - 12 = 8px */
.badge { position: absolute; top: 12px; left: 12px; z-index: 1;
         padding: 6px 10px; border-radius: 8px;
         background: var(--bg); color: var(--ink); box-shadow: var(--raise);
         font-size: var(--t-label); font-weight: 500; line-height: 16px; }
/* fade only on catalogue cards; a sold piece's own page keeps its photos in full colour */
.card.is-sold .frame img { filter: saturate(0.35); opacity: 0.85; }
.card.is-sold .card__price { color: var(--muted); }

/* ---------- piece page ---------- */
.piece { padding: var(--s-6) 0 var(--s-9); }
.back { display: inline-flex; align-items: center; gap: var(--s-2); height: 44px; margin-left: -4px; padding-right: var(--s-2);
        color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; }
.back svg { width: 18px; height: 18px; transition: translate var(--m-out) var(--ease); }
.back:hover svg { translate: -3px 0; transition-duration: var(--m-in); }

.piece__layout { margin-top: var(--s-5); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8);
                 grid-template-areas: "media info"; align-items: start; }
.piece__media { grid-area: media; display: grid; grid-template-columns: 3fr 4fr; gap: var(--s-3); }  /* 9:16 + 3:4 share one height */
.piece__info { grid-area: info; display: grid; gap: var(--s-5); padding-top: var(--s-2); }
.piece__info h1 { font-size: clamp(48px, 3vw + 36px, 88px); line-height: 0.98; letter-spacing: var(--display-tracking-xl); }
.piece__head { display: grid; gap: var(--s-3); }
.piece__body { display: grid; gap: var(--s-5); align-content: start; }

.edition { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2) var(--s-4);
           font-size: var(--t-small); font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.dots { display: inline-flex; gap: 5px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid color-mix(in oklab, var(--ink) 30%, var(--bg)); }
.dots i.on { background: var(--action); border-color: var(--action); scale: 1.3; }

.price { display: flex; align-items: baseline; gap: var(--s-2); }
.price strong { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 400; font-size: 32px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); }
.is-sold .price strong { color: var(--muted); }

.piece__text { display: grid; gap: var(--s-4); max-width: 34em; }
.piece__text p:first-child { font-size: var(--t-lead); line-height: 1.55; }

.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); padding-top: var(--s-2); }
.copy__label { display: inline-grid; }
.copy__label > span { grid-area: 1 / 1; transition: opacity 150ms var(--icon-ease); }
.copy__label > span:last-child { opacity: 0; }
.is-on .copy__label > span:first-child { opacity: 0; }
.is-on .copy__label > span:last-child { opacity: 1; }

.hint { margin-top: calc(-1 * var(--s-2)); font-size: var(--t-small); line-height: 1.5; color: var(--muted); max-width: 34em; }

.delivery { margin: 0; padding-top: var(--s-4); border-top: 1px solid var(--line); display: grid; gap: var(--s-3); font-size: var(--t-small); line-height: 1.5; max-width: 34em; }
.delivery div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--s-4); }
.delivery dt { color: var(--muted); }
.delivery dd { margin: 0; }

/* video play/pause: a 44px control inside the frame, inset 12px */
.player { position: absolute; right: 12px; bottom: 12px; z-index: 1;
          display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
          background: var(--bg); color: var(--ink); box-shadow: var(--raise); cursor: pointer;
          -webkit-tap-highlight-color: transparent;
          transition-property: scale, background-color; transition-duration: var(--m-out); transition-timing-function: var(--ease); }
.player:hover { background: color-mix(in oklab, var(--bg) 90%, var(--ink)); transition-duration: var(--m-in); }
.player:active { scale: 0.96; transition-duration: var(--m-press); }
.player .swap svg { width: 16px; height: 16px; }
.player .swap svg:first-child { translate: 0 0; }
.player .swap svg:last-child { translate: 1px 0; }   /* optical centre of the play triangle */

/* open in the larger view: the whole frame is the button; the chip is its static cue */
.open { position: absolute; inset: 0; z-index: 0; padding: 0; border: 0; border-radius: inherit; background: none; cursor: zoom-in;
        -webkit-tap-highlight-color: transparent; }
.open:focus-visible { outline-offset: -4px; }
.open__chip { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
              background: var(--bg); color: var(--ink); box-shadow: var(--raise);
              transition-property: opacity, scale; transition-duration: var(--m-out); transition-timing-function: var(--ease); }
.open__chip svg { width: 18px; height: 18px; }
@media (hover: hover) {
  .open__chip { opacity: 0; scale: 0.9; }
  .frame:hover .open__chip, .open:focus-visible .open__chip { opacity: 1; scale: 1; transition-duration: var(--m-in); }
}
.frame--video .player { z-index: 2; }

.map-link { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; margin-top: 2px; font-weight: 500; }
.map-link svg { width: 16px; height: 16px; flex: none; }
.delivery dd .map-link { display: flex; width: fit-content; }   /* its own line under the address */

/* ---------- larger view ----------
   Three rows: title + close / the media / Video|Photo. The media's pixel size is set by site.js
   from the free space and the file's real proportions, so it fits in every browser. */
.viewer {
  --v-bg: #1c1a17; --v-ink: #f5f3ec; --v-surface: #2e2b27; --v-muted: #b3b0a8;
  --v-pad: var(--s-5);
  position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--v-bg); color: var(--v-ink); overscroll-behavior: contain;
}
.viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: viewer-in 220ms var(--m-ease-enter); }
.viewer.is-closing { animation: viewer-out 150ms ease-out forwards; }
.viewer::backdrop { background: transparent; }
@keyframes viewer-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes viewer-out { from { opacity: 1; } to { opacity: 0; } }
.viewer__item:not([hidden]) > * { animation: viewer-media-in 260ms var(--m-ease-enter); }
@keyframes viewer-media-in { from { opacity: 0; scale: 0.98; } to { opacity: 1; scale: 1; } }

.viewer__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
               padding: calc(env(safe-area-inset-top) + var(--s-3)) calc(env(safe-area-inset-right) + var(--v-pad)) var(--s-3) calc(env(safe-area-inset-left) + var(--v-pad)); }
.viewer__title { display: flex; align-items: baseline; gap: var(--s-3); min-width: 0; }
.viewer__title b { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 400; font-size: 22px; line-height: 1; letter-spacing: -0.02em; }
.viewer__title span { font-size: var(--t-small); color: var(--v-muted); white-space: nowrap; }

.viewer__stage { position: relative; min-height: 0; overflow: hidden; outline: none; }
.viewer__item { position: absolute; inset: 0 calc(env(safe-area-inset-right) + var(--v-pad)) 0 calc(env(safe-area-inset-left) + var(--v-pad));
                display: flex; align-items: center; justify-content: center; }
.viewer__item[hidden] { display: none; }

/* sizes come from site.js; these are only the shape before it runs */
.viewer__video { position: relative; flex: none; width: min(100%, 56.25vh); aspect-ratio: 9 / 16; border-radius: var(--r-md); overflow: hidden; background: var(--v-surface); }
.viewer__video video { width: 100%; height: 100%; object-fit: cover; }
.viewer__img { display: block; flex: none; max-width: none; max-height: none; width: min(100%, 75vh); height: auto; aspect-ratio: 3 / 4;
               border-radius: var(--r-md); transform-origin: 50% 50%; will-change: transform; -webkit-user-drag: none; }
.viewer__img.is-easing { transition: transform 260ms var(--ease); }
.viewer__item--photo { touch-action: none; cursor: zoom-in; user-select: none; -webkit-user-select: none; }
.viewer__item--photo.is-zoomed { cursor: grab; }
.viewer__item--photo.is-panning { cursor: grabbing; }

.viewer__bar { position: relative; display: flex; justify-content: center; align-items: center;
               padding: var(--s-3) calc(env(safe-area-inset-right) + var(--v-pad)) calc(env(safe-area-inset-bottom) + var(--s-3)) calc(env(safe-area-inset-left) + var(--v-pad)); }
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 12px; background: var(--v-surface); }  /* 8 + 4 = 12 */
.seg button { height: 40px; min-width: 84px; padding: 0 var(--s-4); border: 0; border-radius: 8px; background: transparent; color: var(--v-muted);
              font: 500 15px/1 var(--font-text); cursor: pointer; -webkit-tap-highlight-color: transparent;
              transition-property: background-color, color, scale; transition-duration: var(--m-out); transition-timing-function: var(--ease); }
.seg button:hover { color: var(--v-ink); transition-duration: var(--m-in); }
.seg button[aria-pressed="true"] { background: var(--v-ink); color: var(--v-bg); }
.seg button:active { scale: 0.96; transition-duration: var(--m-press); }

/* zoom buttons only with a mouse or trackpad; on touch, tap and pinch do it */
.zoomctl { position: absolute; left: calc(env(safe-area-inset-left) + var(--v-pad)); top: 50%; translate: 0 -50%; display: inline-flex; gap: 4px; }
.zoomctl[hidden] { display: none; }
@media (hover: none), (pointer: coarse), (max-width: 639px) { .zoomctl { display: none; } }

.vbtn { position: relative; display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
        background: var(--v-surface); color: var(--v-ink); cursor: pointer; -webkit-tap-highlight-color: transparent; flex: none;
        transition-property: background-color, scale, opacity; transition-duration: var(--m-out); transition-timing-function: var(--ease); }
.vbtn:hover { background: color-mix(in oklab, var(--v-surface) 80%, var(--v-ink)); transition-duration: var(--m-in); }
.vbtn:active { scale: 0.96; transition-duration: var(--m-press); }
.vbtn:disabled { opacity: 0.4; cursor: default; }
.vbtn svg { width: 20px; height: 20px; }
.vbtn--text { min-width: 64px; padding: 0 var(--s-3); border-radius: 22px; font: 500 14px/1 var(--font-text); font-variant-numeric: tabular-nums; }
.viewer :focus-visible { outline-color: var(--v-ink); }

@media (max-width: 639px) {
  .viewer { --v-pad: var(--s-4); }
  .viewer__title b { font-size: 20px; }
}

/* neighbours */
.more { margin-top: var(--s-9); padding-top: var(--s-6); border-top: 1px solid var(--line);
        display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.next { display: flex; align-items: center; gap: var(--s-4); min-height: 44px; color: var(--ink); text-decoration: none; }
.next--right { flex-direction: row-reverse; text-align: right; }
.next .frame { width: 64px; flex: none; border-radius: var(--r-md); }
.next img { transition: scale var(--m-image-out) var(--ease); }
.next:hover img { scale: var(--m-zoom); transition-duration: var(--m-image); }
.next small { display: block; font-size: var(--t-small); color: var(--muted); }
.next b { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 400; font-size: 22px; letter-spacing: -0.02em; }
.next:hover b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: var(--s-7) 0; font-size: var(--t-small); color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-5); }
.site-footer svg { width: 120px; aspect-ratio: 303 / 174.403; color: var(--reve-vermilion); }
.site-footer__text { display: grid; gap: var(--s-1); justify-items: end; text-align: right; }
.site-footer__text a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 500; }
@media (max-width: 639px) { .site-footer__text { justify-items: start; text-align: left; } }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .intro h1, .intro__text { grid-column: 1 / -1; }
  .intro { padding: var(--s-8) 0 var(--s-7); }
  /* phone and tablet: name first, then the media, then price, story and actions */
  .piece__layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "media" "body"; gap: var(--s-6); }
  .piece__info { display: contents; }
  .piece__head { grid-area: head; }
  .piece__body { grid-area: body; }
}
@media (max-width: 639px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-3); }
  .card__name { font-size: 20px; }
  .card__row { flex-wrap: wrap; gap: 0 var(--s-2); }
  .badge { top: 8px; left: 8px; border-radius: 12px; padding: 4px 8px; }  /* inset 8 in a 20px frame: 20 - 8 = 12 */
  .actions .btn { flex: 1 1 100%; }
  .more { grid-template-columns: 1fr; gap: var(--s-4); }
  .next--right { flex-direction: row; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; }
  .card:hover, .card:hover .frame img, .next:hover img, .back:hover svg { translate: none; scale: none; }
}
