/* Matelume brand v2 preview. One palette (from the stitched-M logo), one variable family (Archivo, width + weight). */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff") format("woff");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  color-scheme: light;
  /* palette: named after surfaces in a room */
  --plaster: #E9EAE7;   /* page ground, the logo's own stitch ground */
  --chalk: #F4F5F2;     /* raised surface */
  --putty: #DCDFD9;     /* quiet panel */
  --graphite: #222526;  /* ink, from the logo */
  --stone: #4E544F;     /* secondary text, 6.4:1 on plaster */
  --olive: #5C6626;     /* accent: the logo's olive, deepened for text (5.1:1) */
  --sage: #CCD2AD;      /* accent on dark, the logo's pale olive */
  --hair: #C3C8C0;      /* rules and outlines */

  --bg: var(--plaster);
  --surface: var(--chalk);
  --surface-2: var(--putty);
  --ink: var(--graphite);
  --ink-2: var(--stone);
  --line: var(--hair);
  --accent: var(--olive);
  --btn-bg: var(--graphite);
  --btn-ink: #F4F5F2;
  --band-bg: #222526;
  --band-ink: #EEF0EC;
  --band-ink-2: #B3BAB3;
  --band-line: #3B4142;
  --logo-light: block;
  --logo-dark: none;

  --wrap: 1360px;
  --gutter: clamp(16px, 4.2vw, 64px);
  --sec: clamp(88px, 10vw, 160px);
  --radius-ctl: 3px;

  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --t-fast: 160ms;
  --t-med: 320ms;
  --t-slow: 700ms;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #1F2223;
    --surface: #272B2C;
    --surface-2: #303536;
    --ink: #EEF0EC;
    --ink-2: #B3BAB3;
    --line: #3B4142;
    --accent: #CCD2AD;
    --btn-bg: #CCD2AD;
    --btn-ink: #1F2223;
    --band-bg: #151718;
    --band-line: #33393A;
    --logo-light: none;
    --logo-dark: block;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1F2223;
  --surface: #272B2C;
  --surface-2: #303536;
  --ink: #EEF0EC;
  --ink-2: #B3BAB3;
  --line: #3B4142;
  --accent: #CCD2AD;
  --btn-bg: #CCD2AD;
  --btn-ink: #1F2223;
  --band-bg: #151718;
  --band-line: #33393A;
  --logo-light: none;
  --logo-dark: block;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  font-weight: 400;
  font-kerning: normal;
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
}
img, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
picture { display: contents; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--sage); color: #1F2223; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .band :focus-visible, .hero :focus-visible { outline-color: var(--sage); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--btn-bg); color: var(--btn-ink); padding: 12px 16px; border-radius: var(--radius-ctl);
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

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

/* ---------- type ---------- */
.display {
  font-size: clamp(3rem, 7.4vw + .4rem, 8.4rem);
  font-stretch: 125%;
  font-weight: 430;
  line-height: .9;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(2.25rem, 3.9vw + .7rem, 4.6rem);
  font-stretch: 118%;
  font-weight: 430;
  line-height: .98;
  letter-spacing: -.034em;
  text-wrap: balance;
}
.h3 {
  font-size: clamp(1.375rem, 1vw + 1.05rem, 1.875rem);
  font-stretch: 108%;
  font-weight: 540;
  line-height: 1.15;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.lead { font-size: clamp(1.125rem, .45vw + 1rem, 1.375rem); line-height: 1.5; color: var(--ink-2); max-width: 36em; }
.kicker {
  font-size: .9375rem; font-stretch: 92%; font-weight: 600; letter-spacing: .01em;
  color: var(--accent); margin-bottom: 1.25rem;
}
.caption { font-size: .875rem; font-stretch: 90%; line-height: 1.45; color: var(--ink-2); }
.fine { font-size: .875rem; line-height: 1.5; color: var(--ink-2); }
p + p { margin-top: 1em; }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 28px;
  border: 1px solid transparent; border-radius: var(--radius-ctl);
  font-size: 1rem; font-weight: 600; font-stretch: 104%; letter-spacing: .005em; line-height: 1.1;
  text-decoration: none; white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); }
/* the stitch: a running stitch sewn inside the primary action, like a woven label */
.btn-primary::after {
  content: ""; position: absolute; inset: 5px; border: 1px dashed currentColor; border-radius: 1px;
  opacity: .32; pointer-events: none; transition: opacity var(--t-fast) var(--ease-out);
}
.btn-primary:hover::after { opacity: .75; }
.btn-ghost { border-color: color-mix(in srgb, currentColor 42%, transparent); color: inherit; background: transparent; }
.btn-ghost:hover { border-color: currentColor; background: color-mix(in srgb, currentColor 6%, transparent); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: .9375rem; }
.btn-small.btn-primary::after { inset: 4px; }
.text-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 600; font-stretch: 100%; color: var(--ink);
  text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  background: none; border: 0; padding: 0;
}
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  color: var(--ink);
  transition: background-color var(--t-med) var(--ease-out), color var(--t-med) var(--ease-out), border-color var(--t-med);
  border-bottom: 1px solid transparent;
}
.site-header .bar { display: flex; align-items: center; gap: 28px; height: 72px; }
.site-header[data-over="page"] {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.site-header[data-over="hero"] { color: #F2F4F0; background: linear-gradient(to bottom, rgba(16, 18, 19, .58), rgba(16, 18, 19, 0)); }
.brand-link { display: inline-flex; align-items: center; flex-shrink: 0; min-height: 44px; }
.brand-link img { height: 28px; width: auto; }
.logo-for-light { display: var(--logo-light); }
.logo-for-dark { display: var(--logo-dark); }
.site-header[data-over="hero"] .logo-for-light { display: none; }
.site-header[data-over="hero"] .logo-for-dark { display: block; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-size: .9375rem; font-weight: 520; font-stretch: 96%; text-decoration: none; border-radius: var(--radius-ctl);
}
.nav a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid transparent; border-radius: var(--radius-ctl); background: transparent; color: inherit;
}
.icon-btn:hover { border-color: color-mix(in srgb, currentColor 35%, transparent); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-icon-dark { display: none; }
:root[data-theme="dark"] .theme-icon-dark { display: block; }
:root[data-theme="dark"] .theme-icon-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-icon-dark { display: block; }
  :root:not([data-theme="light"]) .theme-icon-light { display: none; }
}
.site-header[data-over="hero"] .btn-primary { background: #EEF0EC; color: #1F2223; }
.menu-btn { display: none; }
.menu-panel { display: none; }

@media (max-width: 960px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .header-actions { margin-left: auto; }
  .menu-panel[data-open="true"] {
    display: block; position: absolute; inset: 72px 0 auto 0;
    background: var(--bg); color: var(--ink); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .35);
  }
  .menu-panel a {
    display: flex; align-items: center; min-height: 52px; font-size: 1.25rem; font-stretch: 112%; font-weight: 480;
    text-decoration: none; border-bottom: 1px solid var(--line);
  }
  .menu-panel a:last-of-type { border-bottom: 0; }
}
.menu-theme { display: none; }
@media (max-width: 520px) {
  .header-actions .theme-toggle { display: none; }
  .menu-panel .menu-theme { display: flex; align-items: center; width: 100%; min-height: 52px; padding: 0; border: 0; background: none; font-size: 1.25rem; font-stretch: 112%; font-weight: 480; text-align: left; }
  .site-header .bar { gap: 8px; height: 64px; }
  .brand-link img { height: 24px; }
  .header-actions .btn-small { padding: 0 14px; }
  .menu-panel[data-open="true"] { inset: 64px 0 auto 0; }
}
@media (max-width: 380px) {
  .header-actions .btn-small { display: none; }
}

/* ---------- H01 hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: max(640px, 100svh);
  display: grid; grid-template-rows: 1fr auto;
  color: #F2F4F0; background: #121415; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-video, .hero-still img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%;
}
.hero-still { display: none; }
.hero[data-mode="still"] .hero-still { display: block; }
.hero[data-mode="still"] .hero-video { visibility: hidden; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(16, 18, 19, .9) 0%, rgba(16, 18, 19, .76) 34%, rgba(16, 18, 19, .5) 58%, rgba(16, 18, 19, 0) 84%),
    linear-gradient(to right, rgba(16, 18, 19, .55) 0%, rgba(16, 18, 19, 0) 62%);
}
.hero-content { align-self: end; padding-top: 140px; padding-bottom: clamp(28px, 4vw, 48px); text-shadow: 0 1px 14px rgba(10, 11, 12, .45); }
.hero-content .btn, .hero-content .proof-strip li { text-shadow: none; }
.hero-kicker { font-size: 1rem; font-stretch: 96%; font-weight: 560; color: #D9DEC6; margin-bottom: 18px; }
.hero h1 { max-width: 12ch; }
.hero-sub { margin-top: 26px; max-width: 34em; font-size: clamp(1.0625rem, .4vw + .98rem, 1.3125rem); line-height: 1.5; color: #E4E7E1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .btn-primary { background: #EEF0EC; color: #1F2223; }
.hero .btn-ghost { color: #F2F4F0; }
.hero-support { margin-top: 18px; font-size: .9375rem; color: #DADED6; }
.proof-strip {
  display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 22px;
}
.proof-strip li {
  font-size: .875rem; font-weight: 560; font-stretch: 92%; letter-spacing: .01em;
  padding: 7px 12px; border: 1px solid rgba(242, 244, 240, .34); border-radius: 999px; color: #F2F4F0;
  background: rgba(16, 18, 19, .32);
}
.hero-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-bottom: 18px; border-top: 1px solid rgba(242, 244, 240, .16); padding-top: 14px;
}
.hero-caption { font-size: .8125rem; font-stretch: 92%; color: #D3D8D0; max-width: 60ch; }
.hero-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1px solid rgba(242, 244, 240, .34); border-radius: 999px; background: rgba(16, 18, 19, .35);
  color: #F2F4F0; font-size: .875rem; font-weight: 560; flex-shrink: 0;
}
.hero-toggle:hover { border-color: #F2F4F0; }
.hero-toggle svg { width: 14px; height: 14px; }
.hero-toggle .i-play { display: none; }
.hero[data-playing="false"] .hero-toggle .i-play { display: block; }
.hero[data-playing="false"] .hero-toggle .i-pause { display: none; }

/* one orchestrated moment: the hero text settles once on load */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-content > * { opacity: 0; transform: translateY(14px); animation: hero-in 900ms var(--ease-out) forwards; }
  .js .hero-content > :nth-child(2) { animation-delay: 80ms; }
  .js .hero-content > :nth-child(3) { animation-delay: 200ms; }
  .js .hero-content > :nth-child(4) { animation-delay: 280ms; }
  .js .hero-content > :nth-child(5) { animation-delay: 340ms; }
  .js .hero-content > :nth-child(6) { animation-delay: 400ms; }
  @keyframes hero-in { to { opacity: 1; transform: none; } }
}
@media (max-width: 640px) {
  .hero-content { padding-top: 120px; }
  .hero-scrim {
    background: linear-gradient(to top, rgba(16, 18, 19, .92) 0%, rgba(16, 18, 19, .82) 42%, rgba(16, 18, 19, .62) 68%, rgba(16, 18, 19, .42) 100%);
  }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-foot { flex-direction: row; align-items: center; }
}

/* ---------- section scaffolding ---------- */
.section { padding-block: var(--sec); }
.section-tight { padding-block: calc(var(--sec) * .7); }
.band { background: var(--band-bg); color: var(--band-ink); --ink-2: var(--band-ink-2); --line: var(--band-line); --accent: var(--sage); --btn-bg: #EEF0EC; --btn-ink: #1F2223; }
.band .caption, .band .fine { color: var(--band-ink-2); }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(40px, 5vw, 72px); max-width: 1240px; }
.section-head .lead { margin-top: 2px; }

/* ---------- H02 the idea: a short introduction after the proof (R1) ---------- */
.idea { padding-block: clamp(56px, 6.5vw, 104px); }
.idea-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 36px); align-items: start; }
.idea-title {
  grid-column: 1 / span 5;
  font-size: clamp(1.75rem, 1.9vw + 1rem, 3rem); font-stretch: 118%; font-weight: 430;
  line-height: 1.02; letter-spacing: -.03em; text-wrap: balance;
}
.idea-copy { grid-column: 7 / span 6; padding-top: .35rem; }
.idea-copy p { font-size: clamp(1.0625rem, .35vw + 1rem, 1.25rem); line-height: 1.55; color: var(--ink-2); }
.idea-copy .idea-close { color: var(--ink); font-weight: 520; }
@media (max-width: 860px) {
  .idea-title, .idea-copy { grid-column: 1 / -1; }
}

/* ---------- H03 transformation (directly after the hero) ---------- */
.transform { background: var(--surface); padding-top: clamp(64px, 7vw, 112px); }
.compare-fit { margin-top: 6px; font-size: .9375rem; line-height: 1.5; font-weight: 540; color: var(--ink); }
.transform-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.compare {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface-2);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize;
  --pos: 50%;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-label {
  position: absolute; top: 14px; z-index: 2;
  font-size: .8125rem; font-weight: 600; font-stretch: 94%; letter-spacing: .01em;
  padding: 6px 10px; border-radius: 999px; background: rgba(16, 18, 19, .62); color: #F2F4F0;
}
.compare-label.left { left: 14px; }
.compare-label.right { right: 14px; }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 3; width: 44px; margin-left: -22px;
  display: grid; place-items: center; outline: none; cursor: ew-resize;
}
.compare-handle::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 0;
  border-left: 2px dashed rgba(242, 244, 240, .95); filter: drop-shadow(0 0 2px rgba(0, 0, 0, .45));
}
.compare-knob {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  background: #F2F4F0; color: #1F2223; display: grid; place-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
.compare-knob svg { width: 22px; height: 22px; }
.compare-handle:focus-visible .compare-knob { outline: 3px solid var(--sage); outline-offset: 3px; }
.pair-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--ink); font-size: .9375rem; font-weight: 540; font-stretch: 98%;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-selected="true"], .chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.compare-caption { margin-top: 12px; }
.transform-copy { display: grid; gap: 24px; }
.transform-copy > p:first-child { font-size: clamp(1.0625rem, .35vw + 1rem, 1.25rem); color: var(--ink-2); line-height: 1.55; }
.macro { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 18px; align-items: center; padding: 16px; border: 1px solid var(--line); background: var(--bg); }
.macro img { width: 148px; height: 148px; object-fit: cover; }
.macro b { display: block; font-size: 1.125rem; font-stretch: 108%; font-weight: 600; margin-bottom: 4px; }
.spec-line { padding-top: 18px; border-top: 1px solid var(--line); }
.spec-line p { font-size: 1rem; }
.spec-line .fine { margin-top: 8px; }
@media (max-width: 960px) {
  .transform-grid { grid-template-columns: 1fr; }
  .compare-block { max-width: 560px; }
}
@media (max-width: 420px) {
  .macro { grid-template-columns: 104px minmax(0, 1fr); }
  .macro img { width: 104px; height: 104px; }
}

/* ---------- H04 materials ---------- */
.mat { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.mat-index { position: sticky; top: 104px; display: grid; gap: 20px; }
.mat-tabs { display: grid; gap: 2px; }
/* a future family, kept apart from the four released ones */
.mat-future { padding-left: 22px; font-size: .9375rem; line-height: 1.45; color: var(--ink-2); max-width: 22em; }
.mat-tab {
  position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 64px; padding: 10px 0 10px 22px; text-align: left;
  border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink-2);
  font-size: clamp(1.5rem, 1.6vw + .9rem, 2.375rem); font-stretch: 116%; font-weight: 420; letter-spacing: -.025em; line-height: 1.1;
  transition: color var(--t-fast);
}
.mat-tab:hover { color: var(--ink); }
.mat-tab[aria-selected="true"] { color: var(--ink); }
.mat-tab::before {
  content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 0;
  border-left: 3px dashed var(--accent); opacity: 0; transition: opacity var(--t-fast);
}
.mat-tab[aria-selected="true"]::before { opacity: 1; }
.mat-panel[hidden] { display: none; }
.mat-figure { position: relative; }
.mat-figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--surface-2); }
.mat-figure figcaption { margin-top: 10px; }
.mat-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 28px; margin-top: 26px; align-items: end; }
.mat-body .h3 { grid-column: 1 / -1; }
.mat-body p { color: var(--ink-2); max-width: 40em; }
.mat-body .note { grid-column: 1 / -1; font-size: .9375rem; color: var(--ink-2); border-left: 2px solid var(--line); padding-left: 14px; }
.mat-panel { animation: none; }
@media (prefers-reduced-motion: no-preference) {
  .mat-panel.is-entering .mat-figure img { animation: mat-in 520ms var(--ease-out); }
  @keyframes mat-in { from { opacity: .001; transform: scale(1.015); } to { opacity: 1; transform: none; } }
}
.mat-foot { margin-top: clamp(32px, 4vw, 56px); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
@media (max-width: 960px) {
  .mat { grid-template-columns: 1fr; }
  .mat-index { position: relative; top: auto; gap: 8px; }
  .mat-future { padding-left: 0; font-size: .875rem; }
  .mat-tabs {
    position: relative; top: auto; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding: 2px calc(var(--gutter) + 40px) 6px var(--gutter); scroll-snap-type: x proximity;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
  }
  .mat-tabs::-webkit-scrollbar { display: none; }
  .mat-tab {
    flex: 0 0 auto; width: auto; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px;
    font-size: 1rem; font-stretch: 100%; font-weight: 560; letter-spacing: 0; scroll-snap-align: start; align-items: center;
  }
  .mat-tab::before { display: none; }
  .mat-tab[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .mat-figure img { aspect-ratio: 4 / 3; }
  .mat-body { grid-template-columns: 1fr; }
}

/* ---------- H05 how it works (scroll story) ---------- */
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 112px); }
.story-steps { position: relative; padding-left: 40px; }
/* the thread: a running stitch that fills as you read */
.story-steps::before, .story-steps::after {
  content: ""; position: absolute; left: 11px; top: 12px; bottom: 12px; width: 0;
  border-left: 2px dashed var(--line);
}
.story-steps::after { border-left-color: var(--accent); clip-path: inset(0 -4px calc(100% - var(--progress, 0%)) -4px); }
/* R7: shorter forced heights; the sticky stage still turns once per step */
.step { min-height: 46vh; display: flex; flex-direction: column; justify-content: center; padding-block: 28px; position: relative; }
.step:first-child { min-height: 40vh; justify-content: flex-start; padding-top: 4vh; }
.step:last-child { min-height: 50vh; }
.step-no {
  position: absolute; left: -40px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg); border: 2px solid var(--line);
  font-size: .6875rem; font-weight: 700; font-stretch: 90%; color: var(--ink-2);
  transition: border-color var(--t-med), background-color var(--t-med), color var(--t-med);
}
.step.is-active .step-no, .step.is-done .step-no { border-color: var(--accent); color: var(--accent); }
.step.is-active .step-no { background: var(--accent); color: var(--bg); }
.step-name { font-size: .9375rem; font-weight: 600; font-stretch: 92%; color: var(--accent); margin-bottom: 10px; }
.step p.step-copy { margin-top: 12px; color: var(--ink-2); max-width: 28em; font-size: 1.0625rem; }
.step-media, .step-media-cap { display: none; }
.story-stage { position: sticky; top: 12vh; height: 76vh; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; }
.stage-frame { position: relative; overflow: hidden; background: var(--surface-2); }
.st { position: absolute; inset: 0; opacity: 0; transition: opacity var(--t-slow) var(--ease-io); }
.st > img, img.st { width: 100%; height: 100%; object-fit: cover; }
.stage-frame[data-state="1"] .st-1, .stage-frame[data-state="2"] .st-2, .stage-frame[data-state="3"] .st-3, .stage-frame[data-state="4"] .st-4 { opacity: 1; }
.stage-caption { min-height: 2.9em; }
/* stage 2: a real Matelume 1.0.7 screen (Prepare, Real size); the panel side is never cropped */
.st-2 { background: #E9EAE7; }
.st-2 img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 0; }
/* Begin: the colour start, a current feature shown with its own real screen */
.colour-start { margin-top: 26px; max-width: 520px; padding-top: 18px; border-top: 1px solid var(--line); }
.colour-start-line { font-size: 1.0625rem; line-height: 1.5; font-weight: 520; color: var(--ink); max-width: 28em; }
.app-shot { margin-top: 14px; }
.app-shot img { width: 100%; height: auto; border: 1px solid var(--line); background: #E9EAE7; }
.app-shot figcaption { margin-top: 8px; }
/* stage 4: real maps, fanned */
.st-4 { display: grid; place-items: center; background: var(--surface-2); }
.map-fan { position: relative; width: min(78%, 420px); aspect-ratio: 1; }
.map-fan figure { position: absolute; inset: 0; transition: transform var(--t-slow) var(--ease-out); }
.map-fan img { width: 100%; height: 100%; object-fit: cover; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55); }
.map-fan figcaption { position: absolute; left: 10px; bottom: 10px; font-size: .75rem; font-weight: 600; padding: 4px 8px; border-radius: 999px; background: rgba(244, 245, 242, .92); color: #1F2223; }
.stage-frame[data-state="4"] .map-fan figure:nth-child(1) { transform: translate(-22%, -14%) rotate(-5deg) scale(.7); }
.stage-frame[data-state="4"] .map-fan figure:nth-child(2) { transform: translate(0, 2%) scale(.7); }
.stage-frame[data-state="4"] .map-fan figure:nth-child(3) { transform: translate(22%, 18%) rotate(5deg) scale(.7); }
.files { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; flex-wrap: wrap; gap: 4px 6px; justify-content: center; }
.files li { font-size: .75rem; font-weight: 560; font-stretch: 90%; padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); background: var(--bg); }
.story-cta { margin-top: 24px; }
@media (max-width: 960px) {
  .story { grid-template-columns: 1fr; }
  .story-stage { display: none; }
  .step, .step:first-child, .step:last-child { min-height: 0; padding-block: 0 56px; padding-top: 0; justify-content: flex-start; }
  .step-media { display: block; margin-top: 20px; position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface-2); max-width: 520px; }
  /* R7: Begin and Prepare stay compact; Craft and Export keep the larger pictures */
  .step[data-step="1"] .step-media { aspect-ratio: 16 / 9; }
  .step[data-step="2"] .step-media { aspect-ratio: 777 / 618; }
  .colour-start { margin-top: 22px; }
  .step-media .st { opacity: 1; position: absolute; transition: none; }
  .step-media .st-4 { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px; }
  .step-media .map-fan { width: min(72%, 360px); }
  .step-media .files { position: static; }
  .step-media .map-fan figure:nth-child(1) { transform: translate(-22%, -14%) rotate(-5deg) scale(.7); }
  .step-media .map-fan figure:nth-child(2) { transform: translate(0, 2%) scale(.7); }
  .step-media .map-fan figure:nth-child(3) { transform: translate(22%, 18%) rotate(5deg) scale(.7); }
  .step-media-cap { display: block; margin-top: 10px; max-width: 520px; }
}
@media (max-width: 599px) {
  .step[data-step="2"] .step-media {
    aspect-ratio: 479 / 357; max-width: none; z-index: 1;
    margin-left: calc(-40px - var(--gutter)); width: calc(100% + 40px + 2 * var(--gutter));
  }
  .colour-start .app-shot { position: relative; z-index: 1; margin-left: calc(-40px - var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
  .colour-start .app-shot img { border-inline: 0; }
  .colour-start .app-shot figcaption { padding-left: calc(40px + var(--gutter)); padding-right: var(--gutter); }
}

/* ---------- H06 viewer ---------- */
/* desktop: the copy and controls beside the square preview; the left group sits centred on it */
.viewer-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-rows: 1fr auto auto auto 1fr;
  grid-template-areas: ". stage" "title stage" "panel stage" "notes stage" ". stage";
  column-gap: clamp(28px, 5vw, 88px); align-items: start;
}
.viewer-title { grid-area: title; }
.viewer-title, .int-copy .h2 { font-size: clamp(2.25rem, 2.9vw + .8rem, 3.9rem); }
.viewer-stage { grid-area: stage; align-self: center; }
.viewer-panel { grid-area: panel; margin-top: 18px; }
.viewer-lede { font-size: clamp(1.0625rem, .35vw + 1rem, 1.25rem); line-height: 1.45; font-weight: 520; color: var(--band-ink); max-width: 30em; }
.viewer-notes { grid-area: notes; margin-top: 30px; }
.viewer-notes p { color: var(--band-ink-2); font-size: .9375rem; max-width: 34em; }
.controls { display: grid; gap: 22px; margin-top: 26px; }
.control-label { font-size: .875rem; font-weight: 600; font-stretch: 94%; color: var(--band-ink-2); margin-bottom: 10px; }
.band .chip { border-color: var(--band-line); color: var(--band-ink); }
.band .chip:hover { border-color: var(--band-ink); }
.band .chip[aria-checked="true"], .band .chip[aria-pressed="true"], .band .chip[aria-selected="true"] { background: var(--band-ink); color: #151718; border-color: var(--band-ink); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.light-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.light-pad {
  position: relative; width: 132px; height: 132px; border-radius: 50%; flex-shrink: 0;
  background: radial-gradient(circle at 50% 50%, #2B3031 0 58%, #222627 100%);
  border: 1px solid var(--band-line); touch-action: none; cursor: grab;
}
.light-pad::before { content: ""; position: absolute; inset: 22%; border-radius: 50%; border: 1px dashed rgba(204, 210, 173, .35); }
.light-pad::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: rgba(238, 240, 236, .35); }
.light-dot {
  position: absolute; left: calc(50% + var(--lx, -.5) * 50%); top: calc(50% + var(--ly, -.4) * 50%);
  width: 26px; height: 26px; margin: -13px; border-radius: 50%;
  background: radial-gradient(circle, #FFF7E6 0 35%, #F3DFB3 60%, rgba(243, 223, 179, 0) 72%);
  box-shadow: 0 0 18px 4px rgba(255, 236, 196, .45);
}
.light-pad:focus-visible { outline: 2px solid var(--sage); outline-offset: 4px; }
.light-help { display: grid; gap: 8px; }
.light-help p { font-size: .9375rem; color: var(--band-ink-2); max-width: 22em; }
.viewer-stage {
  position: relative; aspect-ratio: 1; width: 100%; overflow: hidden;
  background: radial-gradient(ellipse at 50% 42%, #2C3132 0%, #1A1D1E 70%);
  touch-action: none;
}
.viewer-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; cursor: grab; outline: none; }
.viewer-stage canvas:active { cursor: grabbing; }
.viewer-stage canvas:focus-visible { outline: 2px solid var(--sage); outline-offset: -2px; }
.viewer-fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; }
.viewer-fallback img { width: 62%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: inset 0 0 40px rgba(0, 0, 0, .6); }
.viewer-status { position: absolute; left: 16px; top: 14px; font-size: .8125rem; font-weight: 600; color: var(--band-ink-2); }
.viewer-hint {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  font-size: .8125rem; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: rgba(16, 18, 19, .7); color: #F2F4F0;
  pointer-events: none; transition: opacity var(--t-med);
}
.viewer-stage[data-touched="true"] .viewer-hint { opacity: 0; }
.viewer-start { position: absolute; inset: 0; display: grid; place-items: center; }
.viewer-notes .provenance { margin-top: 10px; font-size: .875rem; }
/* R3, tablet and phone: heading, then the preview, then the controls straight under it. The preview is sized so
   preview + controls fit one screen together (no sticky, so a control can never sit under the preview);
   site.js keeps the whole group in view when keyboard focus moves into it. */
@media (max-width: 960px) {
  .viewer-grid { display: flex; flex-direction: column; align-items: stretch; }
  .viewer-title { order: 1; margin-bottom: 18px; }
  .viewer-stage {
    order: 2; width: clamp(260px, calc(100svh - 470px), 640px); max-width: 100%; align-self: flex-start;
  }
  .viewer-panel { order: 3; margin-top: 16px; }
  .viewer-notes { order: 4; margin-top: 26px; }
  .controls { margin-top: 14px; gap: 14px; }
  .control-label { margin-bottom: 6px; }
}
@media (min-width: 600px) and (max-width: 960px) {
  .controls { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-rows: auto auto 1fr; column-gap: 28px; }
  .controls > div:nth-child(3) { grid-column: 2; grid-row: 1 / span 3; }
}
@media (max-width: 599px) {
  .light-row { flex-wrap: nowrap; gap: 14px; }
  .light-pad { width: 112px; height: 112px; }
  .light-help p { display: none; }
}
@media (max-width: 599px) {
  .viewer-stage { width: clamp(200px, calc(100svh - 486px), 100%); }
}

/* ---------- gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); }
.g-item { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--surface-2); overflow: hidden; cursor: zoom-in; text-align: left; color: inherit; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.g-item:hover img { transform: scale(1.02); }
.g-cap { margin-top: 10px; display: grid; gap: 2px; }
.g-cap b { font-weight: 600; font-stretch: 104%; font-size: 1rem; }
.g-cell { display: flex; flex-direction: column; }
/* R7: three distinct scenes on the page (fabric, marble, wood and art); all five stay in the viewer */
.g-cell.c-1 { grid-column: 1 / span 8; }
.g-cell.c-3 { grid-column: 9 / span 4; }
.g-cell.c-4 { grid-column: 1 / span 8; }
.g-more { grid-column: 9 / span 4; align-self: end; display: grid; gap: 14px; justify-items: start; padding-bottom: 46px; }
.g-more .caption { max-width: 24em; }
.c-1 .g-item { aspect-ratio: 16 / 11; }
.c-3 .g-item { aspect-ratio: 3 / 4; }
.c-4 .g-item { aspect-ratio: 16 / 9; }
.c-3 .g-item img { object-position: 62% 50%; }
@media (max-width: 860px) {
  .g-cell.c-1, .g-cell.c-3, .g-cell.c-4, .g-more { grid-column: 1 / -1; }
  .c-3 .g-item { aspect-ratio: 4 / 3; }
  .c-3 .g-item img { object-position: 62% 40%; }
  .g-more { padding-bottom: 0; margin-top: 6px; }
}

/* lightbox */
.lightbox { width: min(1480px, 100vw); max-width: 100vw; max-height: 100vh; height: 100%; margin: auto; padding: 0; border: 0; background: transparent; color: #F2F4F0; overflow: hidden; }
.lightbox::backdrop { background: rgba(10, 11, 12, .92); }
.lb-inner { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; padding: 12px clamp(12px, 3vw, 32px) 20px; gap: 12px; }
.lb-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lb-count { font-size: .875rem; color: #C9CEC6; }
.lb-media { display: grid; place-items: center; min-height: 0; }
.lb-media img, .lb-media video { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lb-bottom { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.lb-cap { font-size: .9375rem; color: #DADED6; max-width: 70ch; }
.lb-cap b { color: #F2F4F0; font-weight: 600; }
.lb-nav { display: flex; gap: 8px; flex-shrink: 0; }
.lb-btn { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(242, 244, 240, .36); background: rgba(16, 18, 19, .5); color: #F2F4F0; font-size: .9375rem; font-weight: 560; }
.lb-btn:hover { border-color: #F2F4F0; }
.lb-btn svg { width: 18px; height: 18px; }

/* ---------- H07 integrations ---------- */
.integrations { background: var(--surface); }
.int-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 96px); align-items: start; }
.int-copy p.body { color: var(--ink-2); font-size: clamp(1.0625rem, .35vw + 1rem, 1.25rem); margin-top: 24px; max-width: 32em; }
.int-copy .btn { margin-top: 30px; }
.routes { display: grid; gap: 16px; }
.route { border: 1px solid var(--line); background: var(--bg); padding: clamp(18px, 2.4vw, 28px); }
.route-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.route-title h3 { font-size: 1.125rem; font-stretch: 104%; font-weight: 600; }
.route-title span { font-size: .8125rem; font-weight: 600; color: var(--accent); }
.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.app { padding: 16px; background: var(--surface); border: 1px solid var(--line); }
.app b { display: block; font-size: 1.25rem; font-stretch: 112%; font-weight: 500; letter-spacing: -.015em; }
.app p { font-size: .9375rem; color: var(--ink-2); margin-top: 6px; }
.app .app-note { margin-top: 10px; padding-left: 10px; border-left: 2px solid var(--line); font-size: .875rem; color: var(--ink-2); }
.maps-row { display: flex; flex-wrap: wrap; gap: 6px; }
.maps-row li { font-size: .875rem; font-weight: 540; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.route.exported .apps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .int-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .apps, .route.exported .apps { grid-template-columns: 1fr; } }

/* ---------- H08 pricing ---------- */
.plans { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.plan { padding: 28px clamp(18px, 2.4vw, 32px) 32px 0; display: flex; flex-direction: column; gap: 12px; }
.plan + .plan { padding-left: clamp(18px, 2.4vw, 32px); border-left: 1px solid var(--line); }
.plan .plan-label { font-size: .875rem; font-weight: 600; font-stretch: 94%; color: var(--accent); min-height: 1.5em; }
.plan h3 { font-size: 1.5rem; font-stretch: 112%; font-weight: 500; letter-spacing: -.02em; }
.plan .price { font-size: clamp(2.5rem, 2.6vw + 1.4rem, 3.75rem); font-stretch: 116%; font-weight: 400; letter-spacing: -.04em; line-height: 1; margin-top: 4px; }
.plan .price small { font-size: 1rem; letter-spacing: 0; font-stretch: 100%; color: var(--ink-2); font-weight: 500; margin-left: 4px; }
.plan p { color: var(--ink-2); font-size: 1rem; }
.plan .sub { font-weight: 560; color: var(--ink); }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan-founder { position: relative; }
.terms { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 8px; max-width: 900px; }
@media (max-width: 960px) {
  .plans { grid-template-columns: 1fr; }
  .plan, .plan + .plan { padding: 26px 0 30px; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- H09 trial ---------- */
.trial-inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.trial-inner .h2 { max-width: 14ch; }
.trial-copy p { font-size: clamp(1.0625rem, .35vw + 1rem, 1.25rem); color: var(--band-ink); }
.trial-copy .btn { margin-top: 28px; }
.trial-copy .trial-terms { margin-top: 22px; font-size: .9375rem; color: var(--band-ink-2); }
.trial-copy .trial-more p { font-size: .9375rem; color: var(--band-ink-2); }
.trial-more { margin-top: 14px; }
.trial-more summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; gap: 12px; list-style: none; font-weight: 600; font-size: .9375rem; }
.trial-more summary::-webkit-details-marker { display: none; }
.trial-more summary::after {
  content: ""; width: 8px; height: 8px; border-right: 1.75px solid currentColor; border-bottom: 1.75px solid currentColor;
  transform: translateY(-3px) rotate(45deg); transition: transform var(--t-fast) var(--ease-out);
}
.trial-more[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.trial-more p { margin-top: 6px; }
@media (max-width: 960px) { .trial-inner { grid-template-columns: 1fr; } }

/* ---------- H10 manifesto ---------- */
.manifesto-head { max-width: 1100px; }
.manifesto-body { margin-top: clamp(40px, 6vw, 88px); display: grid; gap: clamp(22px, 3vw, 36px); max-width: 1100px; margin-left: auto; }
.beat {
  position: relative; padding-left: clamp(20px, 2.2vw, 32px);
  font-size: clamp(1.375rem, 1.6vw + 1rem, 2.5rem); font-stretch: 112%; font-weight: 400; line-height: 1.22; letter-spacing: -.02em; text-wrap: pretty;
  transition: color 500ms var(--ease-out);
}
/* R4: every state stays readable. Not yet read: secondary ink (6.4:1 light, 8.1:1 dark).
   Read: full ink. The paragraph being read carries the running stitch. */
.beat::before {
  content: ""; position: absolute; left: 0; top: .16em; bottom: .16em; width: 0;
  border-left: 3px dashed var(--accent); opacity: 0; transition: opacity var(--t-med) var(--ease-out);
}
.js-scrolllight .beat { color: var(--ink-2); }
.js-scrolllight .beat.is-lit { color: var(--ink); }
.js-scrolllight .beat.is-active::before { opacity: 1; }
.beat.final { font-weight: 520; }
.signature { margin-top: clamp(56px, 8vw, 120px); display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; padding-top: 28px; border-top: 1px dashed var(--line); }
.signature img { height: 34px; width: auto; }
.signature p { font-size: clamp(1.5rem, 2vw + 1rem, 3rem); font-stretch: 125%; font-weight: 420; letter-spacing: -.035em; line-height: 1; }

/* ---------- footer ---------- */
.site-footer { background: var(--band-bg); color: var(--band-ink); padding-block: clamp(64px, 8vw, 112px) 40px; --line: var(--band-line); }
.foot-top { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--band-line); }
.promise { font-size: clamp(1.5rem, 1.8vw + 1rem, 2.75rem); font-stretch: 118%; font-weight: 420; letter-spacing: -.03em; line-height: 1.08; max-width: 16ch; }
.foot-utility { margin-top: 18px; color: var(--band-ink-2); }
.foot-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.foot-links h3 { font-size: .875rem; font-weight: 600; color: var(--band-ink-2); margin-bottom: 8px; }
.foot-links a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-size: .9375rem; }
.foot-links a:hover { text-decoration: underline; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; align-items: center; }
.foot-bottom img { height: 24px; width: auto; }
.foot-bottom p { font-size: .8125rem; color: var(--band-ink-2); max-width: 80ch; }
@media (max-width: 860px) {
  .foot-top { grid-template-columns: 1fr; }
  .foot-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
