/* ─────────────────────────────────────────────────────────────────────────────
   SOUNDHOUSE — foundation stylesheet
   Shared by index, shop, product and checkout. Tokens first, then chrome,
   then the components every page reuses.
   ───────────────────────────────────────────────────────────────────────────── */

:root {
  /* Warm ivory paper, warm near-black ink, the deep green from the shop logo carried
     right through: surfaces, lines, buttons and both dark sections. No second accent anywhere on the site. */
  --paper: #fbfcfa;
  --sand: #eaefe9;
  --sand-deep: #dde6dc;
  --ink: #101813;
  --ink-70: rgba(16, 24, 19, 0.7);
  --ink-50: rgba(16, 24, 19, 0.5);
  --ink-35: rgba(16, 24, 19, 0.34);
  --line: rgba(16, 24, 19, 0.14);
  --line-soft: rgba(16, 24, 19, 0.07);
  --accent: #1c5a3c;
  --accent-soft: #edf3ee;
  --accent-deep: #123f2a;
  --dark: #0f2a1e;

  --shell: 1400px;
  --gut: 40px;
  --header-h: 88px;

  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 24px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.76, 0, 0.24, 1);
  --t-micro: 0.28s;
  --t-ui: 0.45s;
  --t-reveal: 0.75s;

  --font-sans: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

/* `clip`, not `hidden`: `overflow-x: hidden` turns <body> into a scroll
   container, which silently kills every position: sticky on the site. */
html,
body { overflow-x: clip; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.96;
}

p { margin: 0; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── layout ───────────────────────────────────────────────────────────── */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section { padding-block: clamp(64px, 9vw, 132px); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.section--sand { background: var(--sand); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ── type ─────────────────────────────────────────────────────────────── */

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-50);
}

.display {
  font-size: clamp(42px, 7.4vw, 104px);
  letter-spacing: -0.04em;
  font-weight: 600;
}

.h2 {
  font-size: clamp(30px, 4.2vw, 58px);
  letter-spacing: -0.038em;
}

.h3 { font-size: clamp(21px, 2.1vw, 28px); }

.serif {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
}

.lede {
  font-size: clamp(16px, 1.35vw, 19px);
  color: var(--ink-70);
  line-height: 1.6;
  max-width: 56ch;
}

.muted { color: var(--ink-50); }

/* ── buttons ──────────────────────────────────────────────────────────── */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 14px;
  font-weight: 550;
  letter-spacing: 0.01em;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--t-micro) var(--ease), border-color var(--t-micro) var(--ease),
    transform var(--t-micro) var(--ease);
}

/* Fill wipes up from the bottom on hover — one real motion, not a colour swap. */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform var(--t-ui) var(--ease);
}

.btn:hover::after { transform: translateY(0); }
.btn:active { transform: scale(0.985); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line);
}

.btn--ghost:hover { color: #fff; border-color: var(--accent); }

.btn--accent { --btn-bg: var(--accent); }
.btn--accent::after { background: var(--ink); }

.btn--wide { width: 100%; }

.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.4;
  pointer-events: none;
}

.link-u {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 550;
  padding-bottom: 3px;
  background-image: linear-gradient(var(--ink), var(--ink));
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size var(--t-ui) var(--ease), color var(--t-micro) var(--ease);
}

.link-u:hover {
  color: var(--accent);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1px;
  background-position: 100% 100%;
}

/* ── header ───────────────────────────────────────────────────────────── */

.hdr {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-ui) var(--ease), background var(--t-ui) var(--ease);
}

.hdr[data-stuck='true'] { border-bottom-color: var(--line); }

.hdr--over {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
}

.hdr--over[data-stuck='true'] {
  background: var(--paper);
}

/* While it floats on the hero photograph the header is white on nothing.
   The moment the page scrolls it lands on paper and turns back to ink. */
body[data-hero-photo='on'] .hdr--over[data-stuck='false'] { color: #fff; }
body[data-hero-photo='on'] .hdr--over[data-stuck='false'] .hdr__nav a { color: rgba(255, 255, 255, 0.78); }
body[data-hero-photo='on'] .hdr--over[data-stuck='false'] .hdr__nav a:hover,
body[data-hero-photo='on'] .hdr--over[data-stuck='false'] .hdr__nav a[aria-current='page'] { color: #fff; }
body[data-hero-photo='on'] .hdr--over[data-stuck='false'] .icon-btn:hover { background: rgba(255, 255, 255, 0.14); }

.hdr__row {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.hdr__mark {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

/* The supplied logo is one dark-green lockup. Over the hero photograph it is
   flipped to white with a filter, so there is only ever one logo file. */
.hdr__logo { height: 54px; width: auto; }

body[data-hero-photo='on'] .hdr--over[data-stuck='false'] .hdr__logo {
  filter: brightness(0) invert(1);
}

.hdr__search {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 1 300px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  transition: border-color var(--t-micro) var(--ease), box-shadow var(--t-micro) var(--ease),
    background var(--t-micro) var(--ease);
}

.hdr__search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(28, 90, 60, 0.12); }
.hdr__search svg { width: 17px; height: 17px; flex: none; color: var(--ink-50); }

.hdr__search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  color: inherit;
  outline: none;
}

.hdr__search input::placeholder { color: var(--ink-35); }
.hdr__search input::-webkit-search-cancel-button { filter: grayscale(1) opacity(0.5); }

/* On the hero photograph the bar is glass, not a white pill. */
body[data-hero-photo='on'] .hdr--over[data-stuck='false'] .hdr__search {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}

body[data-hero-photo='on'] .hdr--over[data-stuck='false'] .hdr__search svg { color: rgba(255, 255, 255, 0.7); }
body[data-hero-photo='on'] .hdr--over[data-stuck='false'] .hdr__search input::placeholder { color: rgba(255, 255, 255, 0.6); }

.hdr__nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-inline: auto;
}

.hdr__nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-70);
  padding: 8px 0;
  position: relative;
  transition: color var(--t-micro) var(--ease);
}

.hdr__nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform var(--t-ui) var(--ease);
}

.hdr__nav a:hover,
.hdr__nav a[aria-current='page'] { color: var(--ink); }

.hdr__nav a:hover::after,
.hdr__nav a[aria-current='page']::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}

.hdr__acts {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: background var(--t-micro) var(--ease);
}

.icon-btn:hover { background: var(--sand); }
.icon-btn svg { width: 19px; height: 19px; }

.cart-count {
  position: absolute;
  top: 5px;
  right: 3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  transform: scale(0);
  transition: transform var(--t-ui) var(--ease);
}

.cart-count[data-has='true'] { transform: scale(1); }
.cart-count[data-pop='true'] { animation: pop 0.42s var(--ease); }

@keyframes pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.45); }
  100% { transform: scale(1); }
}

.hdr__burger { display: none; }

/* ── mobile menu ──────────────────────────────────────────────────────── */

.menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--paper);
  padding: 20px var(--gut) 40px;
  display: flex;
  flex-direction: column;
  transform: translateY(-101%);
  transition: transform var(--t-reveal) var(--ease-inout);
  visibility: hidden;
}

.menu[data-open='true'] { transform: translateY(0); visibility: visible; }

.menu__top {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.menu__links { display: flex; flex-direction: column; }

.menu__links a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 28px;
  letter-spacing: -0.03em;
  font-weight: 550;
  opacity: 0;
  transform: translateY(14px);
}

.menu[data-open='true'] .menu__links a {
  animation: menuIn 0.6s var(--ease) forwards;
  animation-delay: calc(var(--i) * 0.045s + 0.12s);
}

@keyframes menuIn {
  to { opacity: 1; transform: none; }
}

.menu__foot {
  margin-top: auto;
  padding-top: 28px;
  display: grid;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-70);
}

/* ── product card ─────────────────────────────────────────────────────── */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform var(--t-ui) var(--ease), border-color var(--t-ui) var(--ease),
    box-shadow var(--t-ui) var(--ease);
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--line);
  box-shadow: 0 22px 44px -28px rgba(16, 24, 19, 0.4);
}

.card__frame {
  position: relative;
  height: 268px;
  background: var(--sand);
  display: grid;
  place-items: center;
  padding: 26px;
  overflow: hidden;
}

.card__frame img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  transition: transform var(--t-reveal) var(--ease);
}

.card:hover .card__frame img { transform: scale(1.055); }

.card__body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.card__brand {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-35);
}

.card__name {
  font-size: 16px;
  font-weight: 550;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.card__foot {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card__price { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }

.card__add {
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t-micro) var(--ease), color var(--t-micro) var(--ease),
    border-color var(--t-micro) var(--ease);
}

.card__add:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.card__add[data-added='true'] { background: var(--accent); border-color: var(--accent); color: #fff; }

.card[data-out='true'] .card__frame img { filter: grayscale(1); opacity: 0.6; }
.card[data-out='true'] .card__add { opacity: 0.45; pointer-events: none; }

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--ink);
  color: #fff;
}

.badge[data-kind='new'] { background: var(--accent); }
.badge[data-kind='out'] { background: var(--paper); color: var(--ink-50); border: 1px solid var(--line); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 22px;
}

/* ── rail ─────────────────────────────────────────────────────────────── */

.rail {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
  cursor: grab;
}

.rail::-webkit-scrollbar { display: none; }
.rail[data-drag='true'] { cursor: grabbing; scroll-snap-type: none; }
.rail > * { flex: 0 0 300px; scroll-snap-align: start; }

.rail-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.rail-nav { display: flex; gap: 8px; }

.rail-nav button {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--t-micro) var(--ease), color var(--t-micro) var(--ease),
    border-color var(--t-micro) var(--ease);
}

.rail-nav button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.rail-nav button[disabled] { opacity: 0.3; pointer-events: none; }

/* ── cart drawer ──────────────────────────────────────────────────────── */

.scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(16, 24, 19, 0.42);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-ui) var(--ease), visibility var(--t-ui);
}

.scrim[data-open='true'] { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 92;
  width: min(440px, 100vw);
  height: 100dvh;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  transform: translateX(101%);
  transition: transform 0.55s var(--ease-inout);
  visibility: hidden;
}

.drawer[data-open='true'] { transform: none; visibility: visible; }

.drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.drawer__lines {
  flex: 1;
  overflow-y: auto;
  padding: 8px 24px;
}

.line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
}

.line__thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--r-sm);
  background: var(--sand);
  display: grid;
  place-items: center;
  padding: 8px;
}

.line__thumb img { max-height: 100%; object-fit: contain; }
.line__name { font-size: 14px; font-weight: 550; line-height: 1.3; }
.line__meta { font-size: 12px; color: var(--ink-50); margin-top: 3px; }

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-top: 10px;
}

.qty button {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  font-size: 15px;
  line-height: 1;
}

.qty button:hover { background: var(--sand); }
.qty span { min-width: 26px; text-align: center; font-size: 13px; font-weight: 550; }

.line__right { text-align: right; display: flex; flex-direction: column; justify-content: space-between; }
.line__price { font-size: 14px; font-weight: 600; }

.line__drop {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 12px;
  color: var(--ink-35);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.line__drop:hover { color: var(--accent); }

.drawer__foot { border-top: 1px solid var(--line); padding: 22px 24px calc(22px + env(safe-area-inset-bottom)); }

.tot-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 5px 0;
  color: var(--ink-70);
}

.tot-row--big {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

.empty { padding: 72px 24px; text-align: center; }
.empty h3 { margin-bottom: 10px; }

/* ── toast ────────────────────────────────────────────────────────────── */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 96;
  transform: translate(-50%, calc(100% + 40px));
  opacity: 0;
  visibility: hidden;
  background: var(--ink);
  color: #fff;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.6);
  transition: transform 0.5s var(--ease), opacity 0.3s var(--ease), visibility 0.5s;
}

.toast[data-show='true'] { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ── footer ───────────────────────────────────────────────────────────── */

.ftr { background: var(--dark); color: #fff; padding-top: clamp(56px, 7vw, 96px); }
.ftr a { color: rgba(255, 255, 255, 0.62); transition: color var(--t-micro) var(--ease); }
.ftr a:hover { color: #fff; }

.ftr__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 56px;
}

.ftr__cols { display: grid; gap: 10px; font-size: 14px; align-content: start; }
.ftr__logo { height: 54px; width: auto; filter: brightness(0) invert(1); }
.ftr__tag { margin-top: 10px; font-size: 13px; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.5); }

.ftr__h { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.4); margin-bottom: 6px; }

.ftr__word {
  font-size: clamp(56px, 15vw, 210px);
  line-height: 0.8;
  letter-spacing: -0.05em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.07);
  padding-bottom: 18px;
  user-select: none;
}

.ftr__base {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.ftr__by a { color: rgba(255, 255, 255, 0.82); text-decoration: underline; text-underline-offset: 3px; }
.ftr__by a:hover { color: #fff; }

/* ── reveal ───────────────────────────────────────────────────────────── */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease);
  transition-delay: var(--d, 0s);
}

[data-reveal='in'] { opacity: 1; transform: none; }

/* Mask reveal for headlines: the line slides out from behind its own edge. */
.mask { overflow: hidden; display: block; }

.mask > span {
  display: block;
  transform: translateY(105%);
  transition: transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}

[data-reveal='in'] .mask > span,
.mask[data-reveal='in'] > span { transform: none; }

/* ── forms ────────────────────────────────────────────────────────────── */

.field { display: grid; gap: 7px; }

.field label { font-size: 12px; font-weight: 550; letter-spacing: 0.02em; color: var(--ink-70); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color var(--t-micro) var(--ease), box-shadow var(--t-micro) var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(16, 24, 19, 0.07);
}

.field input[aria-invalid='true'] { border-color: var(--accent); }

.field__err {
  font-size: 12px;
  color: var(--accent);
  min-height: 16px;
}

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── responsive ───────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  :root { --gut: 28px; }
  .ftr__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 1100px) { .hdr__search { flex-basis: 220px; } }

@media (max-width: 900px) {
  .hdr__nav { display: none; }
  .hdr__row { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; row-gap: 10px; }
  .hdr__search { order: 3; flex: 1 0 100%; height: 44px; }
  .hdr__burger { display: inline-grid; }
  .hdr__mark { margin-right: auto; }
  .rail > * { flex-basis: 262px; }
}

@media (max-width: 720px) {
  :root { --gut: 20px; --header-h: 132px; }
  .hdr__logo { height: 42px; }
  .rail-head { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 24px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card__frame { height: 172px; padding: 14px; }
  .card__body { padding: 14px 14px 18px; }
  .card__name { font-size: 14px; }
  .card__foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .card__add { width: 100%; }
  .row-2 { grid-template-columns: 1fr; }
  .rail > * { flex-basis: 232px; }
  .ftr__grid { grid-template-columns: 1fr; gap: 30px; }
  .menu__links a { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .mask > span { transform: none; }
}
