/* Vatolabútor static site. Tokens follow docs/design-spec-v2.md section 2 (delta on docs/design-spec.md). */

/* ---- Fonts --------------------------------------------------------------- */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(../fonts/bricolage-grotesque-latin-ext-opsz-normal.woff2) format("woff2-variations"), url(../fonts/bricolage-grotesque-latin-ext-opsz-normal.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;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(../fonts/bricolage-grotesque-latin-opsz-normal.woff2) format("woff2-variations"), url(../fonts/bricolage-grotesque-latin-opsz-normal.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: "Source Serif 4";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(../fonts/source-serif-4-latin-ext-wght-normal.woff2) format("woff2-variations"), url(../fonts/source-serif-4-latin-ext-wght-normal.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;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(../fonts/source-serif-4-latin-wght-normal.woff2) format("woff2-variations"), url(../fonts/source-serif-4-latin-wght-normal.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: "Bricolage Fallback";
  src: local("Arial"), local("Helvetica Neue");
  size-adjust: 100%;
  ascent-override: 93%;
  descent-override: 27%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Source Serif Fallback";
  src: local("Georgia"), local("Times New Roman");
  size-adjust: 108%;
  ascent-override: 96%;
  descent-override: 31%;
  line-gap-override: 0%;
}

/* ---- Tokens (design-spec-v2 section 2) ----------------------------------- */
:root {
  --brand-50: #EFF4F9;
  --brand-100: #DCE8F2;
  --brand-500: #3475AA;
  --brand-600: #28618F;
  --brand-700: #1F4B70;
  --brand-800: #173A57;

  --paper: #FFFFFF;
  --cloud: #F3F5F8;
  --mist: #E6EAEF;
  --line: #D5DAE1;
  --ink-900: #262425;
  --ink-700: #46474B;
  --ink-500: #5F6268;

  --footer-bg: #1B2B3A;
  --footer-text: #E6EAEF;
  --footer-muted: #A9B4C0;

  --pending-bg: #FFF8E6;
  --pending-border: #C9A227;
  --pending-text: #6B5300;

  --color-bg: var(--paper);
  --color-bg-alt: var(--cloud);
  --color-surface: var(--paper);
  --color-border: var(--line);
  --color-text: var(--ink-900);
  --color-text-body: var(--ink-700);
  --color-text-muted: var(--ink-500);
  --color-brand: var(--brand-500);
  --color-accent: var(--brand-600);
  --color-accent-hover: var(--brand-700);
  --color-accent-tint: var(--brand-100);
  --color-accent-wash: var(--brand-50);
  --color-on-accent: #FFFFFF;
  --color-focus: var(--brand-600);

  --font-display: "Bricolage Grotesque", "Bricolage Fallback", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Serif 4", "Source Serif Fallback", Georgia, "Times New Roman", serif;

  --text-display: clamp(2.5rem, 1.17rem + 3.43vw, 4.75rem);
  --text-h1-page: clamp(2.5rem, 1.9rem + 1.6vw, 3.5rem);
  --text-h2: clamp(1.875rem, 1.44rem + 1.71vw, 3rem);
  --text-h3: clamp(1.25rem, 1.16rem + 0.38vw, 1.5rem);
  --text-lead: clamp(1.125rem, 1.03rem + 0.38vw, 1.375rem);
  --text-body: clamp(1rem, 0.95rem + 0.19vw, 1.125rem);
  --text-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --text-eyebrow: clamp(0.75rem, 0.73rem + 0.1vw, 0.8125rem);
  --text-button: clamp(1rem, 0.98rem + 0.1vw, 1.0625rem);
  /* Contact action values (phone and e-mail share it). Sized from the actions column
     (container query units) so the e-mail, about 12.4em wide, never wraps. */
  --text-action-fit: calc(7.9cqi - 12px);
  --text-action: clamp(0.9375rem, var(--text-action-fit), 1.75rem);

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

  --section-pad: clamp(64px, 5vw + 32px, 120px);
  --container: 1280px;
  --gutter: clamp(16px, 4vw, 48px);

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgb(38 36 37 / 0.05), 0 8px 24px -12px rgb(38 36 37 / 0.14);
  --shadow-hover: 0 2px 4px rgb(38 36 37 / 0.07), 0 20px 40px -16px rgb(38 36 37 / 0.22);
  --shadow-sheet: 0 24px 64px -16px rgb(38 36 37 / 0.40);

  --dur-fast: 150ms;
  --dur-base: 240ms;
  --dur-slow: 420ms;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --header-h: 72px;
  --filter-h: 96px;
}
@media (max-width: 899px) {
  :root { --header-h: 64px; }
}

/* ---- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
/* The sticky filter bar sits under the header on the models page. */
html.page-models-root { scroll-padding-top: calc(var(--header-h) + var(--filter-h) + 16px); }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text-body);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  overflow-x: clip;
  /* Short pages (legal stubs) keep the footer at the bottom of the window. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; }
body.is-locked { overflow: hidden; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: var(--color-accent); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--color-accent-hover); }
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--color-text);
  text-wrap: balance;
  hyphens: manual;
}
p { text-wrap: pretty; hyphens: auto; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
main:focus { outline: none; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 24px; height: 24px; flex: none; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: var(--radius-md);
  transform: translateY(-160%);
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus-visible { transform: none; color: var(--color-on-accent); }

/* ---- Typography helpers --------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  hyphens: manual;
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  margin-right: 10px;
  background: var(--color-brand);
  flex: none;
}
.h2 {
  font-size: var(--text-h2);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 96;
  max-width: 28ch;
}
.page-title {
  font-size: var(--text-h1-page);
  font-weight: 640;
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 96;
}
.lead {
  font-size: var(--text-lead);
  line-height: 1.5;
  max-width: 62ch;
  hyphens: manual;
}
.section-head { display: grid; gap: var(--space-4); margin-bottom: var(--space-7); }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  font-family: var(--font-display);
  font-size: var(--text-button);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn-primary { background: var(--color-accent); color: var(--color-on-accent); }
.btn-primary:hover { background: var(--color-accent-hover); color: var(--color-on-accent); }
.btn-primary:active { background: var(--color-accent-hover); transform: translateY(1px); }
.btn-secondary { border-color: var(--color-accent); color: var(--color-accent); background: transparent; }
.btn-secondary:hover { background: var(--color-accent-wash); color: var(--color-accent-hover); border-color: var(--color-accent-hover); }
.btn-secondary:active { transform: translateY(1px); }
.btn-sm { min-height: 44px; padding: 0 20px; }

.btn-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-accent);
  color: var(--color-accent);
  background: transparent;
  transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn-icon:hover { background: var(--color-accent-wash); }
.btn-icon:active { transform: translateY(1px); }
.btn-icon-plain { border-color: transparent; color: var(--color-text); cursor: pointer; font: inherit; padding: 0; }
.btn-icon-plain:hover { color: var(--color-text); }

.link-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  cursor: pointer;
}
.link-btn:hover { color: var(--color-accent-hover); }

/* ---- Chips --------------------------------------------------------------- */
.chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-tint);
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.chip-more { background: var(--mist); color: var(--ink-700); }

/* ---- Header -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--color-border);
}
@supports ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .site-header {
    background: rgb(255 255 255 / 0.88);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}
.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 40px);
  height: var(--header-h);
}
.logo-link { display: block; flex: none; padding-block: 6px; border-radius: var(--radius-sm); }
.logo { height: 44px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: clamp(12px, 2vw, 32px); }
.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--color-text-body);
  text-decoration: none;
  text-underline-offset: 8px;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out);
}
.main-nav a:hover { color: var(--color-text); text-decoration: underline; text-decoration-thickness: 1px; }
.main-nav a[aria-current="page"] {
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-color: var(--color-brand);
  text-decoration-thickness: 2px;
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--color-accent);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.header-phone .icon { width: 20px; height: 20px; color: var(--color-brand); }
.header-phone:hover span { text-decoration: underline; }
.header-mobile { display: none; margin-left: auto; gap: var(--space-1); }

.mobile-sheet {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 49;
  background: var(--paper);
  box-shadow: var(--shadow-sheet);
  overflow-y: auto;
  padding: var(--space-2) var(--gutter) var(--space-7);
  animation: sheet-in var(--dur-slow) var(--ease-out);
}
.mobile-sheet a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 56px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
}
.mobile-sheet a[aria-current="page"] { color: var(--color-accent); }
.mobile-sheet .sheet-contact a { color: var(--color-accent); font-size: 18px; overflow-wrap: anywhere; }
.mobile-sheet .sheet-contact .icon { color: var(--color-brand); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (max-width: 899px) {
  .main-nav, .header-phone { display: none; }
  .header-mobile { display: flex; }
  .logo { height: 36px; }
}

/* ---- Hero ---------------------------------------------------------------- */
.hero { padding-block: var(--space-8); }
.hero-grid { display: grid; gap: var(--space-7); align-items: center; }
/* The photo is a white studio cut-out on a white page: no frame. The image file is
   already cropped above the printed catalogue band (scripts/optimize-images.ts). */
.hero-media img {
  width: 100%;
  aspect-ratio: 2200 / 844;
  object-fit: cover;
  animation: hero-fade var(--dur-slow) var(--ease-out) both;
}
.hero-text { display: grid; gap: var(--space-5); justify-items: start; }
.hero-title {
  font-size: var(--text-display);
  font-weight: 640;
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 96;
  max-width: 16ch;
}
.hero-lead {
  hyphens: manual;
  font-size: var(--text-lead);
  line-height: 1.5;
  color: var(--color-text-body);
  max-width: 62ch;
}
.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero-note { font-size: var(--text-small); color: var(--color-text-muted); }
.hero-rise { animation: hero-rise var(--dur-base) var(--ease-out) both; }
.hero-text > :nth-child(1) { animation-delay: 60ms; }
.hero-text > :nth-child(2) { animation-delay: 120ms; }
.hero-text > :nth-child(3) { animation-delay: 180ms; }
.hero-text > :nth-child(4) { animation-delay: 240ms; }
.hero-text > :nth-child(5) { animation-delay: 300ms; }
@keyframes hero-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hero-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 5fr 7fr;
    gap: var(--space-7);
    min-height: min(calc(100vh - 72px - 128px), 600px);
  }
  .hero-text { grid-column: 1; grid-row: 1; }
  .hero-media { grid-column: 2; grid-row: 1; }
}
@media (min-width: 600px) and (max-width: 1023px) {
  .hero { padding-block: var(--space-5) var(--space-8); }
  .hero-grid { gap: var(--space-6); }
}
@media (max-width: 599px) {
  .hero { padding-block: 0 var(--space-8); }
  .hero-grid { gap: var(--space-5); }
  .hero-media { margin-inline: calc(-1 * var(--gutter)); }
  .cta-row { flex-direction: column; width: 100%; }
  .cta-row .btn { width: 100%; }
  .hero-note { justify-self: center; text-align: center; }
}

/* ---- Sections ------------------------------------------------------------ */
.section { padding-block: var(--section-pad); }
.section-alt { background: var(--color-bg-alt); }

/* Choice strip */
.tiles { display: grid; gap: var(--space-4); grid-template-columns: repeat(2, 1fr); }
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  height: 100%;
  min-height: 132px;
  padding: 16px 16px 48px;
  background: var(--paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.tile:hover { border-color: var(--color-brand); box-shadow: var(--shadow-hover); color: var(--color-text); }
.tile-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  font-variation-settings: "opsz" 48;
  hyphens: manual;
}
.tile-count { font-size: var(--text-small); color: var(--color-text-muted); }
.tile-arrow {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 22px;
  height: 22px;
  color: var(--color-brand);
  transition: transform var(--dur-base) var(--ease-out);
}
.tile:hover .tile-arrow { transform: translateX(3px); }
@media (min-width: 600px) {
  .tiles { grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
  .tile { padding: 20px 20px 52px; }
  .tile-title { font-size: 18px; }
  .tile-arrow { right: 20px; bottom: 20px; }
}
@media (min-width: 1200px) { .tiles { grid-template-columns: repeat(6, 1fr); } }

/* Cards (shared by the teaser and the models page) */
.card-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .card-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.card { scroll-margin-top: 16px; }
.card-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.card-media {
  position: relative;
  display: block;
  border-radius: calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px) 0 0;
  overflow: hidden;
  background: var(--paper);
  border-bottom: 1px solid var(--color-border);
}
.card-media img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.card-media:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.card-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 9px;
  border-radius: var(--radius-sm);
  background: rgb(38 36 37 / 0.78);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
}
.card-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
  padding: 18px 20px 20px;
}
.card-title {
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 48;
}
.card-dims .nobr { white-space: nowrap; }
.card-dims {
  font-size: var(--text-small);
  line-height: 1.45;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
  hyphens: manual;
}
.card-actions { display: flex; justify-content: flex-end; margin-top: auto; padding-top: var(--space-1); }
@media (hover: hover) {
  .card-inner:hover { border-color: var(--color-brand); box-shadow: var(--shadow-card); }
}

/* Teaser */
.teaser-layout { display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: var(--space-5); }
.teaser-head { margin-bottom: var(--space-7); }
.teaser-all { margin-bottom: var(--space-7); }
.teaser-row { grid-column: 1 / -1; }
.teaser-swipe { display: none; }
@media (max-width: 599px) {
  .teaser-layout { grid-template-columns: 1fr; }
  .teaser-head { margin-bottom: var(--space-5); }
  .teaser .teaser-row {
    display: flex;
    gap: 16px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 4px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    overscroll-behavior-x: contain;
  }
  .teaser-row > .card { flex: 0 0 82vw; scroll-snap-align: start; }
  .teaser-swipe { display: block; order: 3; margin-top: var(--space-3); font-size: var(--text-small); color: var(--color-text-muted); }
  .teaser-all { order: 4; width: 100%; margin: var(--space-5) 0 0; }
}

/* Steps */
.step-list { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
.step { display: grid; gap: var(--space-3); align-content: start; }
.step-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-brand);
  font-variant-numeric: tabular-nums;
}
.step-title { font-size: 22px; font-weight: 600; line-height: 1.2; font-variation-settings: "opsz" 48; }
.step-body { color: var(--color-text-body); max-width: 62ch; hyphens: manual; }
.step-body a { overflow-wrap: anywhere; hyphens: manual; white-space: nowrap; }
@media (min-width: 600px) { .step-list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 599px) {
  .step { grid-template-columns: auto 1fr; column-gap: var(--space-4); align-items: baseline; }
  .step-num { font-size: 32px; }
  .step-body { grid-column: 1 / -1; }
  .step-body a { white-space: normal; }
}

/* Contact */
.contact-panel {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: var(--space-8);
  background: var(--paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.contact-text { display: grid; gap: var(--space-4); align-content: center; }
.contact-body { font-size: var(--text-lead); line-height: 1.5; }
.contact-actions { display: grid; grid-auto-rows: 1fr; gap: var(--space-4); min-width: 0; container-type: inline-size; }
.action-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: var(--space-4);
  min-height: 96px;
  padding: 20px 24px;
  background: var(--paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.action-card:hover { border-color: var(--color-brand); box-shadow: var(--shadow-hover); color: var(--color-text); }
.action-card:active { transform: translateY(1px); }
.action-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent-tint);
  color: var(--color-accent);
}
.action-text { display: grid; gap: 2px; min-width: 0; }
.action-label { font-size: var(--text-small); color: var(--color-text-muted); }
.action-value {
  font-family: var(--font-display);
  font-size: 1.375rem; /* fallback without container query units */
  font-size: var(--text-action);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--color-text);
  white-space: nowrap;
}
.action-value-phone { font-variant-numeric: tabular-nums; }
.action-arrow { color: var(--color-brand); transition: transform var(--dur-base) var(--ease-out); }
.action-card:hover .action-arrow { transform: translateX(3px); }

/* Model handoff: :target works without JS; JS adds .is-active and owns the state. */
.handoff-list { display: grid; gap: var(--space-3); }
.handoff-list:not(:has(.handoff:target, .handoff.is-active)) { display: none; }
.handoff {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  justify-self: start;
  scroll-margin-top: 24px;
  border-radius: var(--radius-md);
}
.handoff:target, .handoff.is-active { display: flex; animation: handoff-in var(--dur-base) var(--ease-out); }
[data-handoff-list].is-enhanced .handoff:not(.is-active) { display: none; }
.handoff:focus { outline: none; }
.handoff:focus-visible .handoff-name { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.handoff-label { font-size: var(--text-small); color: var(--color-text-muted); }
.handoff-name {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  background: var(--color-accent-wash);
  border: 1px solid var(--color-accent-tint);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
}
.handoff-other {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: var(--text-small);
  font-weight: 600;
}
.handoff-hint { font-size: var(--text-small); color: var(--color-text-muted); }
@keyframes handoff-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.contact-compact .contact-panel { padding: 40px; }

@media (max-width: 1023px) {
  .contact-panel, .contact-compact .contact-panel { grid-template-columns: 1fr; padding: 40px; gap: var(--space-6); }
}
@media (max-width: 599px) {
  .contact-panel, .contact-compact .contact-panel {
    margin-inline: calc(-1 * var(--gutter));
    padding: 24px var(--gutter);
    border-radius: 0;
    border-inline: 0;
  }
  .action-card { min-height: 80px; padding: 16px; gap: var(--space-3); grid-template-columns: 48px 1fr; }
  .action-card .action-arrow { display: none; }
  /* No arrow column and tighter padding: 94px of the card is not text. */
  .contact-actions { --text-action-fit: calc(7.9cqi - 8px); }
}

/* ---- Models page --------------------------------------------------------- */
.models-head { display: grid; gap: var(--space-4); padding-block: var(--space-7) var(--space-6); }
/* No bottom padding: the sticky bar leaves together with the last card row. */
.models-body { padding-block: var(--space-6) 0; }
.filter-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: var(--paper);
  border-block: 1px solid var(--color-border);
}
.filter-inner {
  display: grid;
  grid-template-rows: 36px 36px;
  row-gap: 8px;
  align-items: center;
  height: var(--filter-h);
  padding-block: 11px;
}
.filter-group { display: flex; align-items: center; gap: var(--space-4); min-width: 0; grid-column: 1; }
.filter-label {
  flex: 0 0 116px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  hyphens: manual;
}
.filter-row {
  display: flex;
  gap: var(--space-2);
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  /* room for the focus ring and the 44px hit area inside the scroller */
  padding: 4px 3px;
  margin: -4px -3px;
}
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-accent-tint);
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
  scroll-snap-align: start;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
/* Visual chip is 36px tall; the pseudo-element extends the hit area to 44px. */
.filter-chip::after { content: ""; position: absolute; inset: -4px 0; }
.filter-chip:hover { background: #CCDDEC; color: var(--color-accent-hover); }
.filter-chip[aria-checked="true"], .filter-chip[aria-pressed="true"] { background: var(--color-accent); color: var(--color-on-accent); }
.filter-chip[aria-checked="true"]::before, .filter-chip[aria-pressed="true"]::before { content: "\2713"; font-size: 13px; }
.chip-count { font-weight: 500; opacity: 0.85; }
.filter-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
  min-height: 44px;
  margin-bottom: var(--space-4);
  font-size: var(--text-small);
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}
.filter-reset-wrap { display: inline-flex; align-items: center; gap: 6px; }
.filter-status .link-btn { font-size: var(--text-small); }
.grid-empty {
  display: grid;
  justify-items: start;
  gap: var(--space-2);
  padding: var(--space-6);
  background: var(--paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
}
@media (max-width: 899px) {
  .filter-label { flex-basis: 104px; }
}
@media (max-width: 599px) {
  .models-head { padding-block: var(--space-5) var(--space-5); }
  .page-title { font-size: 40px; }
  /* The chips name themselves; the group names stay available to assistive tech. */
  .filter-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .filter-inner { padding-inline: 0; }
  .filter-row { padding-inline: var(--gutter); margin-inline: 0; scroll-padding-inline: var(--gutter); }
  .models-body { padding-top: var(--space-5); }
}
/* ---- About and legal pages ---------------------------------------------- */
.page-section { padding-block: var(--space-7) var(--section-pad); }
.about { padding-bottom: 0; } /* the contact section below brings its own top padding */
.about-layout, .legal-layout { display: grid; gap: var(--space-6); }
.about-intro { display: grid; gap: var(--space-6); grid-template-columns: minmax(0, 1fr) auto; align-items: center; max-width: 1040px; }
.about-text { display: grid; gap: var(--space-4); max-width: 880px; }
.about-logo { height: 120px; width: auto; }
.legal-layout { max-width: 880px; gap: var(--space-4); }
.legal-verified { font-size: var(--text-lead); color: var(--color-text); }
.legal-verified a { white-space: nowrap; }
.pending-grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(3, 1fr); margin-top: var(--space-3); }
.pending-grid-single { grid-template-columns: 1fr; max-width: 640px; }
.pending { display: grid; gap: var(--space-3); align-content: start; }
.pending-heading { font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.2; color: var(--color-text); }
.pending-box {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--pending-bg);
  border: 2px dashed var(--pending-border);
  border-radius: var(--radius-md);
  color: var(--pending-text);
}
.pending-icon { width: 20px; height: 20px; margin-top: 2px; color: var(--pending-border); }
.pending-title { font-family: var(--font-display); font-size: 16px; font-weight: 600; line-height: 1.3; }
.pending-body { font-size: var(--text-small); line-height: 1.5; margin-top: 4px; hyphens: manual; }
@media (max-width: 899px) {
  .pending-grid { grid-template-columns: 1fr; }
}
@media (max-width: 599px) {
  .about-intro { grid-template-columns: 1fr; }
  .about-logo { order: -1; height: 88px; }
}

/* ---- Footer -------------------------------------------------------------- */
/* Light and quiet: the cool grey surface, one row from 600px up. */
.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: var(--text-small);
  padding-block: var(--space-6);
}
.footer-inner {
  display: grid;
  grid-template-columns: auto auto 1fr;
  grid-template-areas: "logo copy links";
  align-items: center;
  column-gap: var(--space-5);
}
.footer-logo { grid-area: logo; height: 32px; width: auto; }
.footer-copy { grid-area: copy; color: var(--color-text-muted); }
.footer-nav { grid-area: links; justify-self: end; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 var(--space-5); }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-text-body);
  text-decoration: none;
}
.footer-links a:hover { color: var(--color-accent-hover); text-decoration: underline; }
.footer-links a[aria-current="page"] { color: var(--color-text); text-decoration: underline; text-decoration-color: var(--color-brand); text-decoration-thickness: 2px; }
@media (max-width: 599px) {
  .footer-inner {
    grid-template-columns: 1fr;
    grid-template-areas: "logo" "links" "copy";
    justify-items: start;
    row-gap: var(--space-2);
  }
  .footer-nav { justify-self: start; margin-top: var(--space-2); }
  /* Clear the back-to-top button (56px + 16px offset) at the very bottom of the page. */
  .site-footer { padding-top: var(--space-5); padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
}

/* ---- Back to top (phones only, JS-enhanced; hidden without JS) --------------------- */
.to-top { display: none; }
@media (max-width: 599px) {
  .to-top {
    position: fixed;
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 45; /* above the filter bar (40), under the menu sheet (49) and header (50) */
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-on-accent);
    box-shadow: var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.92);
    transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility 0s linear var(--dur-base);
  }
  .to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility 0s;
  }
  .to-top:hover, .to-top:active { background: var(--color-accent-hover); color: var(--color-on-accent); }
  .to-top .icon { width: 24px; height: 24px; }
  body.is-locked .to-top { visibility: hidden; opacity: 0; }
}

/* ---- Lightbox ------------------------------------------------------------ */
.lightbox {
  width: min(1200px, 92vw);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--color-text-body);
  overflow: hidden;
  box-shadow: var(--shadow-sheet);
}
.lightbox::backdrop { background: rgb(27 43 58 / 0.72); }
.lightbox[open] { animation: lb-in var(--dur-slow) var(--ease-out); }
.lightbox[open]::backdrop { animation: lb-fade var(--dur-base) var(--ease-out); }
@keyframes lb-in { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.lb-panel { position: relative; display: flex; flex-direction: column; max-height: 92vh; }
.lb-stage {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  height: min(54vh, 600px);
  background: var(--paper);
  border-bottom: 1px solid var(--color-border);
  touch-action: pan-y;
}
.lb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.lb-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-brand);
  transform-origin: left;
  transform: scaleX(0);
  opacity: 0;
  z-index: 1;
}
.lightbox.is-loading .lb-progress { opacity: 1; animation: lb-progress 1.2s var(--ease-in-out) infinite; }
@keyframes lb-progress { 0% { transform: scaleX(0); } 70% { transform: scaleX(0.85); } 100% { transform: scaleX(1); opacity: 0.4; } }
.lb-nav, .lb-close {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: rgb(255 255 255 / 0.94);
  color: var(--ink-900);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.lb-nav:hover, .lb-close:hover { background: #FFFFFF; border-color: var(--color-brand); }
.lb-nav:active, .lb-close:active { transform: scale(0.96); }
.lb-nav { top: 50%; width: 48px; height: 48px; margin-top: -24px; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-close { top: 12px; right: 12px; width: 44px; height: 44px; z-index: 2; }
.lb-details {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--space-4) var(--space-7);
  padding: 20px 24px 0;
  max-height: 40vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.lb-main, .lb-side { display: grid; gap: var(--space-3); align-content: start; }
.lb-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); }
.lb-heading { display: grid; gap: 2px; }
.lb-title { font-size: 20px; font-weight: 600; line-height: 1.2; font-variation-settings: "opsz" 48; }
.lb-caption { font-family: var(--font-display); font-size: var(--text-small); color: var(--color-text-muted); letter-spacing: 0.02em; }
.lb-count { font-size: var(--text-small); color: var(--color-text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb-notes { display: grid; gap: var(--space-2); font-size: var(--text-small); line-height: 1.5; color: var(--color-text-body); }
.lb-dims-title { font-size: 15px; font-weight: 600; line-height: 1.3; }
.lb-dims { display: grid; grid-template-columns: auto 1fr; gap: 4px var(--space-4); font-size: var(--text-small); font-variant-numeric: tabular-nums; }
.lb-dims dt { color: var(--color-text-muted); }
.lb-dims dd { color: var(--color-text); }
.lb-more-title { font-size: var(--text-small); color: var(--color-text-muted); margin-top: var(--space-2); }
.lb-more { display: grid; gap: 2px; font-size: var(--text-small); color: var(--color-text); font-variant-numeric: tabular-nums; }
.lb-cta-row {
  grid-column: 1 / -1;
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  padding: 16px 0 20px;
  background: var(--paper);
  border-top: 1px solid var(--color-border);
}
.lb-nav:focus-visible, .lb-close:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
@media (max-width: 899px) {
  .lb-details { grid-template-columns: 1fr; gap: var(--space-4); }
}
@media (max-width: 599px) {
  .lightbox { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .lb-panel { height: 100dvh; max-height: 100dvh; }
  /* The photos are 2:1: size the stage to the photo instead of letterboxing it. */
  .lb-stage { height: auto; aspect-ratio: 2 / 1; max-height: min(52vh, 420px); margin-top: 60px; border-top: 1px solid var(--color-border); }
  .lb-details { display: flex; flex-direction: column; flex: 1; max-height: none; min-height: 0; padding: 16px var(--gutter) 0; }
  .lb-cta-row { margin-top: auto; }
  .lb-cta-row .btn { width: 100%; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}

/* ---- Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-rise, .hero-media img, .lightbox[open], .handoff { animation: none; }
  /* Back to top: a plain fade, no movement. */
  .to-top, .to-top.is-visible { transform: none; }
}
