/* Studio Schubert — design system
   Display: Newsreader (editorial serif)  ·  Text/UI: Jost (humanist geometric)
   Signature: the specification rail — hairline + sheet reference above every section,
   the way a joinery drawing is annotated. */

:root {
  --ink: #14110f;
  --ink-70: rgba(20, 17, 15, .7);
  --ink-45: rgba(20, 17, 15, .45);
  --ink-12: rgba(20, 17, 15, .12);
  --paper: #ffffff;
  --stone: #f1eee9;
  --grey: #8b857e;
  --brass: #9a7b4f;

  --serif: "Newsreader", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --gut: clamp(20px, 4vw, 56px);
  --max: 1560px;
  --sec-y: clamp(64px, 9vw, 148px);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --slow: 1.1s var(--ease);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(15px, .55vw + 13.4px, 17px);
  line-height: 1.75;
  letter-spacing: .006em;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* ---------- Layout ---------- */

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.wrap--narrow { max-width: 980px; }

.section { padding-block: var(--sec-y); }
.section--stone { background: var(--stone); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--tight { padding-block: clamp(48px, 6vw, 96px); }
.section--flush-top { padding-top: 0; }

/* ---------- The specification rail (signature) ---------- */

.rail {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;          /* long section labels must not push the link off-screen */
  gap: clamp(16px, 3vw, 40px);
  padding-bottom: 14px;
  margin-bottom: clamp(32px, 4vw, 64px);
  border-bottom: 1px solid var(--ink-12);
}
.section--ink .rail { border-bottom-color: rgba(255, 255, 255, .18); }

.rail__ref {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass);
  white-space: nowrap;
  font-weight: 400;
}
.rail__label {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 400;
  margin: 0;
  color: var(--ink-70);
}
.section--ink .rail__label { color: rgba(255, 255, 255, .7); }
.rail__link {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  white-space: nowrap;
}

/* ---------- Type ---------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -.012em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

.display   { font-size: clamp(2.6rem, 6.6vw, 6.6rem); line-height: 1.02; letter-spacing: -.022em; }
/* Long editorial H1s (the About page) need a smaller ceiling than the
   two-word hero headlines the display size was tuned for. */
.display--sm { font-size: clamp(2rem, 3.4vw, 3.3rem); line-height: 1.08; letter-spacing: -.014em; max-width: 20ch; }
.heading   { font-size: clamp(1.9rem, 3.6vw, 3.5rem); }
.heading-s { font-size: clamp(1.4rem, 2vw, 2rem); }

.lede {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.1vw, 1.9rem);
  line-height: 1.42;
  font-weight: 200;
  letter-spacing: -.01em;
}

.prose p { margin: 0 0 1.35em; max-width: 68ch; }
.prose p:last-child { margin-bottom: 0; }
.prose--wide p { max-width: 78ch; }

.meta {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--grey);
  font-weight: 400;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 400;
  text-decoration: none;
  padding: 17px 34px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background .45s var(--ease), color .45s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--solid:hover { background: transparent; color: var(--ink); }
.btn--light { color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btns { display: flex; flex-wrap: wrap; gap: 14px; }
/* Rząd przycisków o równej szerokości: każdy dostaje tyle miejsca co najszerszy,
   zamiast kurczyć się do długości własnego napisu. Siatka o szerokości
   fit-content sprawia, że słupki 1fr wyrównują się do najszerszej zawartości,
   więc nie trzeba wpisywać żadnej sztywnej wartości — napisy mogą się zmieniać. */
.btns--even {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  width: fit-content;
  max-width: 100%;
}
.btns--even .btn { text-align: center; }
/* Poniżej trzy takie przyciski nie zmieszczą się obok siebie — układają się
   w kolumnę, nadal równe, na całą dostępną szerokość. */
@media (max-width: 620px) {
  .btns--even { grid-auto-flow: row; width: 100%; }
}

.link-u {
  text-decoration: none;
  border-bottom: 1px solid var(--ink-12);
  padding-bottom: 2px;
  transition: border-color .4s var(--ease);
}
.link-u:hover { border-bottom-color: currentColor; }

/* ---------- Header ---------- */

.hdr {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  display: grid;
  /* Equal sides keep the mark centred. The minimum stops the empty left column
     collapsing below the burger's width on small phones, which would otherwise
     shove the wordmark off-centre. */
  grid-template-columns: minmax(42px, 1fr) auto minmax(42px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 16px var(--gut);
  color: #fff;
  transition: background .5s var(--ease), color .5s var(--ease), padding .5s var(--ease);
}
.hdr::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .5), transparent);
  z-index: -1;
  transition: opacity .5s var(--ease);
}
.hdr.is-solid {
  background: var(--paper);
  color: var(--ink);
  padding-block: 12px;
  box-shadow: 0 1px 0 var(--ink-12);
}
.hdr.is-solid::after { opacity: 0; }
body.no-hero .hdr { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--ink-12); }
body.no-hero .hdr::after { opacity: 0; }

/* Wordmark, set in live type rather than as an image: it stays crisp at any
   pixel density, scales with the header, and inherits the light/dark colour
   the header switches between. */
.brand {
  grid-column: 2;
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: 6px;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.brand__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.15rem, 1.85vw, 1.8rem);
  text-transform: uppercase;
  letter-spacing: .07em;
  line-height: 1;
}
/* "London & Kent" between two rules, as on the studio's mark */
.brand__sub {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 14px);
  font-family: var(--serif);
  font-size: clamp(.62rem, .78vw, .82rem);
  letter-spacing: .04em;
  line-height: 1;
}
.brand__sub::before,
.brand__sub::after {
  content: "";
  height: 1px;
  width: clamp(20px, 3.4vw, 54px);
  background: currentColor;
  opacity: .85;
}

.hdr__actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
}

/* On the narrowest phones the mark needs the gaps and the rules to give way. */
@media (max-width: 480px) {
  .hdr { gap: 8px; }
  .brand__name { font-size: 1.02rem; letter-spacing: .05em; }
  .brand__sub { font-size: .58rem; gap: 7px; }
  .brand__sub::before, .brand__sub::after { width: 16px; }
}

.nav { display: none; }
.nav--left { grid-column: 1; justify-self: start; }
/* Menu po prawej: przycisk ląduje pod nim, do prawej krawędzi. Dzięki temu
   prawa kolumna jest szeroka na tyle, co samo menu — gdyby przycisk stał obok,
   symetryczne słupki wymusiłyby ekran ~1780px. Układ pionowy włączamy dopiero
   tam, gdzie menu jest widoczne; niżej zostaje sam hamburger w jednym rzędzie. */
@media (min-width: 1400px) {
  .hdr__actions--stacked {
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
  }
}
/* Odstępy domknięte względem wersji z trzema pozycjami: pięć pozycji obok
   wyśrodkowanego znaku mieści się dopiero przy ~1400px, więc każdy piksel
   odstępu decyduje o tym, czy menu nie wejdzie na logo. */
.nav ul { display: flex; align-items: center; gap: clamp(14px, 1.35vw, 26px); list-style: none; margin: 0; padding: 0; }
.nav a {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 0;
  display: block;
  position: relative;
  white-space: nowrap;          /* labels must never wrap onto a second line */
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 2px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

/* The CTA only appears once nav, mark and button all fit without crowding. */
.hdr__cta { display: none; }
@media (min-width: 1280px) { .hdr__cta { display: inline-block; } }

.burger {
  /* 44px to minimum celu dotykowego wg wytycznych Apple; kreski zostaja
     24px, wiec wyglad sie nie zmienia — rosnie tylko obszar klikalny */
  width: 44px; height: 44px;
  display: grid;
  place-content: center;
  gap: 6px;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 0;
}
.burger span { display: block; width: 24px; height: 1px; background: currentColor; transition: transform .4s var(--ease), opacity .3s; }
.burger.is-open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-3.5px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: var(--paper);
  color: var(--ink);
  padding: 96px var(--gut) 48px;
  overflow-y: auto;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .6s var(--ease), visibility .6s;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer > ul > li { border-bottom: 1px solid var(--ink-12); }
.drawer > ul > li > a {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  text-decoration: none;
  display: block;
  padding: 18px 0;
}
.drawer__sub { padding-bottom: 12px; display: flex; flex-wrap: wrap; gap: 0 22px; }
/* Submenu entries are the smallest thing anyone taps on this site, so they get
   a full 44px target rather than the 21px the type alone would give. */
.drawer__sub a {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-70);
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
}
.drawer__foot { margin-top: 40px; display: grid; gap: 8px; }

/* Próg podniesiony z 1080px: pięć pozycji po lewej zajmuje ~490px, a przy
   wyśrodkowanym znaku lewy słupek osiąga tę szerokość dopiero ok. 1400px.
   Niżej menu wchodziło na logo, więc tam pokazujemy hamburger. */
@media (min-width: 1400px) {
  .nav { display: block; }
  .burger { display: none; }
  /* CTA visibility is handled above at 1280px; spacing comes from .hdr__actions */
}

/* Desktop dropdown */
.has-sub { position: relative; }
.sub {
  position: absolute;
  top: 100%; left: -22px;
  min-width: 260px;
  background: var(--paper);
  color: var(--ink);
  padding: 20px 24px;
  display: grid;
  gap: 2px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { font-size: 11px; letter-spacing: .1em; padding: 7px 0; color: var(--ink-70); }
.sub a:hover { color: var(--ink); }
.sub--wide { min-width: 520px; grid-template-columns: 1fr 1fr; column-gap: 32px; }
/* Znacznik świeżej realizacji w menu. Pełny mosiądz z jasnym napisem: sam
   mosiężny tekst na białym panelu ginął w liście dziewiętnastu pozycji. */
.sub__new {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 6px 2px;
  background: var(--brass);
  color: var(--paper);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1;
  vertical-align: 1px;
}
/* Wyjście do siostrzanej firmy. Ma się odróżniać od listy kategorii, bo prowadzi
   poza serwis: mosiężna ramka, strzałka wylotowa i kreska oddzielająca je od
   reszty. Ramka czyni z niego przycisk, a nie kolejną pozycję listy. */
.sub a.sub__ext,
.drawer__sub a.sub__ext {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brass);
  border: 1px solid currentColor;
  padding: 11px 13px;
  margin-bottom: 12px;
  transition: background .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease);
}
/* Bez znaczka po prawej. Trzeba to powiedzieć wprost, bo .nav a::after rysuje
   podkreślenie przy najechaniu — wewnątrz wypełnionego przycisku pojawiłaby się
   biała kreska przy dolnej krawędzi. */
.sub a.sub__ext::after,
.drawer__sub a.sub__ext::after {
  content: none;
}
.sub a.sub__ext:hover,
.sub a.sub__ext:focus-visible,
.drawer__sub a.sub__ext:hover,
.drawer__sub a.sub__ext:focus-visible {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--paper);
}
/* W szufladzie pozycje leżą w rzędzie, więc ten jeden ma zająć całą szerokość. */
.drawer__sub a.sub__ext { flex: 1 0 100%; margin-top: 4px; }

/* ---------- Pełnoekranowy podgląd zdjęć ---------- */

/* Zdjęcie w galerii jest przyciskiem, żeby dało się je otworzyć klawiaturą.
   Reset do zera, bo ma wyglądać dokładnie jak samo zdjęcie. */
.gallery__btn {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: zoom-in;
}
.gallery__btn img { display: block; }
.gallery__btn:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }

.lb {
  position: fixed;
  inset: 0;
  z-index: 200;                /* nad nagłówkiem (90) i szufladą (85) */
  background: rgba(18, 15, 13, .965);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.lb.is-open { opacity: 1; }
/* Bez tego zamknięte okno zostaje na wierzchu: "display: flex" powyżej to
   reguła klasowa, więc bije domyślne [hidden] { display: none } przeglądarki.
   Przezroczysta warstwa dalej pokrywałaby ekran i łykała każde kliknięcie. */
.lb[hidden] { display: none; }
.lb__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: clamp(56px, 8vh, 96px) clamp(64px, 11vw, 150px);
}
.lb__stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Strzałki przy krawędziach ekranu, jak w kinie: kciuk trafia w nie bez
   celowania, a myszka ma je zawsze w tym samym miejscu. */
.lb__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  cursor: pointer;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.lb__nav:hover, .lb__nav:focus-visible {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .7);
}
.lb__nav--prev { left: clamp(10px, 2.5vw, 34px); }
.lb__nav--next { right: clamp(10px, 2.5vw, 34px); }
/* Grot z dwóch krawędzi obróconego kwadratu — bez pliku graficznego. */
.lb__nav::before {
  content: "";
  width: 13px;
  height: 13px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
}
.lb__nav--next::before { transform: rotate(45deg);  margin-left: -4px; }
.lb__nav--prev::before { transform: rotate(-135deg); margin-right: -4px; }

.lb__close {
  position: absolute;
  top: clamp(10px, 2vw, 26px);
  right: clamp(10px, 2.5vw, 34px);
  width: 48px;
  height: 48px;
  display: grid;
  place-content: center;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.lb__close span {
  display: block;
  width: 20px;
  height: 1px;
  background: #fff;
  transition: background .3s var(--ease);
}
.lb__close span:nth-child(1) { transform: translateY(1px) rotate(45deg); }
.lb__close span:nth-child(2) { transform: rotate(-45deg); }
.lb__close:hover span, .lb__close:focus-visible span { background: var(--brass); }

.lb__count {
  position: absolute;
  bottom: clamp(14px, 3vh, 34px);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  letter-spacing: .22em;
}

@media (max-width: 640px) {
  .lb__nav { width: 48px; height: 48px; }
  .lb__stage { padding: 64px 12px 72px; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--ink);
}
.hero--page { min-height: 68svh; }
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: heroIn 2.4s var(--ease) both;
}
@keyframes heroIn { from { transform: scale(1.08); opacity: .4; } to { transform: none; opacity: 1; } }

/* Pokaz slajdów na stronie głównej. Kadry leżą jeden na drugim i przenikają
   się; każdy przy wejściu powoli cofa się z lekkiego powiększenia. Przejście,
   a nie animacja, bo animacja z "fill: both" trzymałaby nieaktywny kadr na
   pełnej widoczności. */
.hero__show img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.06);
  animation: none;
  transition: opacity 1.8s var(--ease), transform 9s linear;
}
.hero__show img.is-on { opacity: 1; transform: none; }
/* Pierwszy kadr oddala się tak samo jak pozostałe — tym samym przejściem.

   Nie animacją: Chrome po zdjęciu animacji nie rusza przejścia od bieżącej
   wartości, tylko od razu ustawia stan końcowy. Kadr z oddalaniem jako
   animacją w chwili zmiany znikał w jednej klatce zamiast się przenikać.

   Dlatego start jest dwustopniowy: hero__first trzyma powiększenie 1.06, skrypt
   zdejmuje tę klasę w następnej klatce i przejście z .is-on robi resztę.
   Rozjaśnienie zostaje animacją, ale z "backwards" — po 1,8 s przestaje działać,
   więc przy zmianie kadru nie ma już czego zdejmować.
   Bez skryptu i przy ograniczonym ruchu kadr zostaje nieruchomy, lekko przybliżony. */
.hero__show img.hero__intro { animation: heroFade 1.8s var(--ease) backwards; }
.hero__show img.hero__first { transform: scale(1.06); }
@keyframes heroFade { from { opacity: .4; } to { opacity: 1; } }
/* Interiors photography is bright and busy, so the scrim does real work here:
   a bottom wash for the headline block and a left wash to hold the text column. */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .42) 38%, rgba(0, 0, 0, .12) 66%, rgba(0, 0, 0, .38) 100%),
    linear-gradient(to right, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .12) 55%, rgba(0, 0, 0, 0) 100%);
}
.hero__body { position: relative; width: 100%; padding-block: clamp(48px, 8vw, 104px); }
.hero__eyebrow {
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, .78);
}
.hero h1 { max-width: 17ch; }
/* Hasło firmowe pod nagłówkiem. Ma czytać się jak sygnatura, nie jak kolejne
   zdanie opisu: krótka kreska prowadzi wzrok do słów, a kursywa Newsreadera
   odróżnia je od opisowego .hero__sub. Kreska powtarza motyw szyny
   specyfikacyjnej, który spina całą stronę. */
.hero__motto {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 22px);
  margin: clamp(20px, 2.4vw, 30px) 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.15rem, 2vw, 1.75rem);
  line-height: 1.2;
  color: rgba(255, 255, 255, .92);
}
.hero__motto::before {
  content: "";
  flex: none;
  width: clamp(30px, 4.5vw, 64px);
  height: 2px;
  background: rgba(255, 255, 255, .92);
}
.hero__sub { max-width: 56ch; margin: 26px 0 34px; color: rgba(255, 255, 255, .88); font-size: clamp(1rem, 1.2vw, 1.15rem); }
.hero__scroll {
  position: absolute;
  right: var(--gut);
  bottom: clamp(48px, 8vw, 104px);
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  color: rgba(255, 255, 255, .7);
  display: none;
}
@media (min-width: 900px) { .hero__scroll { display: block; } }

/* Reveal words on load */
.mask { display: block; overflow: hidden; }
.mask > span { display: block; animation: riseIn 1.15s var(--ease) both; }
.mask:nth-child(2) > span { animation-delay: .1s; }
@keyframes riseIn { from { transform: translateY(105%); } to { transform: none; } }

/* ---------- Cards / grids ---------- */

.grid { display: grid; gap: clamp(20px, 2.4vw, 34px); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card { display: block; text-decoration: none; position: relative; }
.card__media { position: relative; overflow: hidden; background: var(--stone); aspect-ratio: 4 / 5; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__media img { transform: scale(1.045); }
.card__title { font-family: var(--serif); font-size: clamp(1.15rem, 1.5vw, 1.5rem); font-weight: 300; margin: 18px 0 6px; }
.card__spec {
  font-size: 10.5px;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--grey);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.card__spec span::before { content: "· "; color: var(--brass); }
.card__spec span:first-child::before { content: ""; }
/* Znacznik nowej realizacji. Trzyma tę samą siatkę typograficzną co podpisy
   kart — wersaliki z dużym światłem — więc czyta się jak część systemu, a nie
   doklejona naklejka. Mosiądz na jasnym tle, żeby był widoczny nad każdym
   zdjęciem, także nad ciemnym. */
.card__new {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  padding: 7px 11px 6px;
  /* Pełny mosiądz zamiast jasnego prostokąta z obrysem: ten drugi gubił się
     nad jasnymi kadrami, a nad ciemnymi i tak wygrywał zbyt cicho. */
  background: var(--brass);
  color: var(--paper);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  line-height: 1;
}
.card__note { margin: 10px 0 0; font-size: .92rem; color: var(--ink-70); max-width: 42ch; }
.card--wide .card__media { aspect-ratio: 3 / 2; }
.card--tall .card__media { aspect-ratio: 3 / 4; }

/* Project index */
.index-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--ink-12);
  text-decoration: none;
  align-items: baseline;
  transition: padding-left .5s var(--ease);
}
.index-row:hover { padding-left: 12px; }
.index-row__ref { font-size: 11px; letter-spacing: .18em; color: var(--brass); }
.index-row__name { font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.9rem); font-weight: 300; }
.index-row__loc { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); }
@media (min-width: 860px) {
  .index-row { grid-template-columns: 78px 1fr 240px; }
}

/* ---------- Split (image + copy) ---------- */

.split { display: grid; gap: clamp(28px, 4vw, 72px); align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--flip .split__media { order: 2; }
  .split--60 { grid-template-columns: 1.25fr 1fr; }
}
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split__media--wide img { aspect-ratio: 3 / 2; }
.split__body h2 { margin-bottom: 22px; }
.split__body .btns { margin-top: 32px; }

/* ---------- Process steps (a real sequence) ---------- */

.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  counter-increment: step;
  display: grid;
  gap: 8px 32px;
  padding: clamp(26px, 3vw, 40px) 0;
  border-top: 1px solid var(--ink-12);
}
.step:last-child { border-bottom: 1px solid var(--ink-12); }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--brass);
  padding-top: 8px;
}
.step h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); }
.step p { margin: 0; color: var(--ink-70); max-width: 62ch; }
@media (min-width: 900px) {
  .step { grid-template-columns: 72px 300px 1fr; align-items: start; }
}

/* Question lists reuse the row rhythm but carry no sequence, so no numerals */
.steps--plain { counter-reset: none; }
.steps--plain .step { counter-increment: none; }
.steps--plain .step::before { content: none; }
@media (min-width: 900px) {
  .steps--plain .step { grid-template-columns: 380px 1fr; }
}

/* ---------- Quotes ---------- */

.quote { max-width: 30ch; }
.quote blockquote {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.55vw, 1.5rem);
  font-weight: 200;
  line-height: 1.45;
  margin: 0 0 20px;
}
.quote figcaption { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); }
.quote--lead { max-width: 44ch; }
.quote--lead blockquote { font-size: clamp(1.5rem, 3vw, 2.6rem); }

/* ---------- Reviews ---------- */

.rsum {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 28px);
  padding-bottom: clamp(32px, 4vw, 56px);
  margin-bottom: clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--ink-12);
}
.rsum__score {
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(3.2rem, 7vw, 5.4rem);
  line-height: .9;
  letter-spacing: -.03em;
}
.rsum__meta { display: grid; gap: 10px; }
.rsum__meta .meta { display: flex; align-items: center; gap: 8px; }

.g-mark { width: 15px; height: 15px; flex: none; }

.stars { display: inline-flex; gap: 3px; }
.star { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--brass); stroke-width: 1.4; }
.star.is-full { fill: var(--brass); }
.star.is-half { fill: url(#halfBrass); }

/* Carousel. The track is a plain scroll-snap strip, so without JS it still
   scrolls and every review stays reachable; the arrows and the timer only
   drive scrollBy on top of it. */
.rcar { position: relative; }
.rcar__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: clamp(20px, 2.4vw, 34px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}
.rcar__track::-webkit-scrollbar { display: none; }
.rcar__track:focus-visible { outline: 2px solid var(--brass); outline-offset: 6px; }
@media (min-width: 720px) { .rcar__track { grid-auto-columns: calc((100% - 34px) / 2); } }
@media (min-width: 1040px) { .rcar__track { grid-auto-columns: calc((100% - 68px) / 3); } }

.rcar__nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: clamp(28px, 3vw, 44px);
}
.rcar__btn {
  width: 48px;
  height: 48px;
  display: grid;
  place-content: center;
  background: none;
  border: 1px solid var(--ink-12);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.rcar__btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.rcar__btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.rcar__btn[disabled] { opacity: .3; cursor: default; }
.rcar__btn[disabled]:hover { background: none; color: var(--ink); border-color: var(--ink-12); }
.rcar__count {
  margin: 0;
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--grey);
  font-variant-numeric: tabular-nums;
}

.review {
  margin: 0;
  padding-top: 26px;
  border-top: 1px solid var(--ink-12);
  display: grid;
  gap: 18px;
  align-content: start;
  scroll-snap-align: start;
}
.review blockquote {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.45vw, 1.4rem);
  font-weight: 200;
  line-height: 1.5;
  margin: 0;
  /* clamp long reviews — they arrive at wildly different lengths and a ragged
     card grid reads as broken rather than authentic */
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.review figcaption {
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-70);
  display: grid;
  gap: 5px;
}
.review figcaption span { color: var(--grey); }

/* ---------- Gallery ---------- */

.gallery { display: grid; gap: clamp(10px, 1.4vw, 22px); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(6, 1fr); } }
.gallery figure { margin: 0; grid-column: span 1; }
@media (min-width: 900px) {
  .gallery figure { grid-column: span 2; }
  .gallery figure.is-wide { grid-column: span 4; }
  .gallery figure.is-full { grid-column: span 6; }
}
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; background: var(--stone); }
.gallery figure.is-wide img, .gallery figure.is-full img { aspect-ratio: 3 / 2; }
.gallery figcaption { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); margin-top: 10px; }

/* ---------- Spec table ---------- */

.spec { display: grid; gap: 0; margin: 0; }
.spec div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ink-12);
}
@media (min-width: 640px) { .spec div { grid-template-columns: 140px 1fr; } }
.spec dt { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--grey); margin: 0; }
.spec dd { margin: 0; }

/* ---------- Logos ---------- */

.logos { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(28px, 5vw, 72px); justify-content: center; }
.logos img { height: clamp(26px, 3.4vw, 42px); width: auto; object-fit: contain; filter: grayscale(1); opacity: .62; transition: opacity .4s var(--ease); }
.logos img:hover { opacity: 1; }

/* ---------- Contact band ---------- */

.band { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.band__media { position: absolute; inset: 0; opacity: .38; }
.band__media img { width: 100%; height: 100%; object-fit: cover; }
.band__body { position: relative; padding-block: clamp(72px, 10vw, 156px); text-align: center; }
.band__body h2 { max-width: 20ch; margin-inline: auto; }
.band__body .btns { justify-content: center; margin-top: 38px; }
.band__body p { max-width: 54ch; margin: 22px auto 0; color: rgba(255, 255, 255, .82); }

/* ---------- Form ---------- */

.form { display: grid; gap: 22px; }
@media (min-width: 720px) { .form { grid-template-columns: 1fr 1fr; } .form .full { grid-column: 1 / -1; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--grey); }
.field input, .field textarea, .field select {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink-12);
  padding: 12px 0;
  transition: border-color .4s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--brass); }
.field textarea { resize: vertical; min-height: 130px; }

.form__submit { display: grid; gap: 16px; justify-items: start; }
.form__status { margin: 0; max-width: 56ch; letter-spacing: .08em; text-transform: none; }
.form__status:empty { display: none; }
.form__status.is-ok { color: var(--ink); }
.form__status.is-error { color: var(--brass); }
button[data-form-submit][disabled] { opacity: .5; cursor: default; }

/* Honeypot: off-screen rather than display:none, because some bots skip
   hidden fields but happily fill anything still in the layout. */
.cc-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Footer ---------- */

.ftr { background: var(--ink); color: rgba(255, 255, 255, .74); padding-block: clamp(56px, 7vw, 96px) 32px; }
.ftr a { text-decoration: none; }
.ftr a:hover { color: #fff; }
.ftr__grid { display: grid; gap: 42px; }
@media (min-width: 860px) { .ftr__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; } }
.ftr h2, .ftr h3 { color: #fff; }
.ftr__brand { font-family: var(--serif); font-size: 1.6rem; color: #fff; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ftr ul a { display: inline-block; padding: 5px 0; }
.ftr__head { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin: 0 0 18px; font-family: var(--sans); font-weight: 400; }
/* Krótkie nazwy dają maleńki cel dotyku — samo "X" ma 8px szerokości.
   min-width daje pełne 44px wg wytycznych Apple, a wyrównanie do lewej
   zostawia literę na miejscu: obszar dotyku rośnie w prawo, w pustą
   przestrzeń, więc układ wygląda identycznie. */
.ftr__social a { min-width: 44px; justify-content: flex-start; }

.ftr__bar {
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  font-size: 11px;
  letter-spacing: .1em;
}
.ftr__bar nav { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-left: auto; }

/* ---------- Breadcrumbs ---------- */

.crumbs { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); padding-top: 110px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs span { color: var(--brass); padding: 0 8px; }

/* ---------- Legal documents ---------- */

.legal { margin-top: clamp(40px, 5vw, 68px); }
.legal__sec { padding-top: clamp(30px, 3.4vw, 46px); }
.legal__sec + .legal__sec { border-top: 1px solid var(--ink-12); margin-top: clamp(30px, 3.4vw, 46px); }
.legal__h {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 300;
  margin: 0 0 20px;
  display: flex;
  gap: 16px;
  align-items: baseline;
}
.legal__h span {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--brass);
  flex: none;
}
.legal__item { margin: 0 0 24px; }
.legal__item:last-child { margin-bottom: 0; }
.legal__item h3 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 8px;
}
.legal__item p { margin: 0; }
/* Items the studio still has to fill in. Deliberately conspicuous so they are
   impossible to miss during the pre-launch read-through. */
.legal__todo {
  margin: 18px 0 0;
  padding: 14px 18px;
  border-left: 2px solid var(--brass);
  background: var(--stone);
  font-size: .88rem;
  color: var(--ink-70);
}
.legal__todo::before {
  content: "";
  display: block;
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 6px;
}
.section--stone .legal__todo { background: var(--paper); }

.legal__list { margin: 12px 0 0; padding-left: 20px; }
.legal__list li { margin-bottom: 8px; color: var(--ink-70); max-width: 68ch; }
.legal__list li::marker { color: var(--brass); }
@media (max-width: 900px) {
  .legal__item h3 { font-size: 12px; }
}

/* ---------- Tables ---------- */

/* Wide tables scroll inside their own box so the page never scrolls sideways. */
.table-wrap { overflow-x: auto; margin: 22px 0 0; -webkit-overflow-scrolling: touch; }
.tbl { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .88rem; }
.tbl th, .tbl td {
  text-align: left;
  vertical-align: top;
  padding: 14px 18px 14px 0;
  border-bottom: 1px solid var(--ink-12);
}
.tbl th {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey);
  white-space: nowrap;
}
.tbl td { color: var(--ink-70); }
.tbl code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .85em;
  color: var(--ink);
  white-space: nowrap;
}
@media (max-width: 900px) { .tbl th { font-size: 12px; } }

/* ---------- Cookie consent ---------- */

.cc-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 120;
  background: var(--paper);
  border-top: 1px solid var(--ink-12);
  box-shadow: 0 -18px 50px rgba(0, 0, 0, .08);
  transform: translateY(100%);
  transition: transform .6s var(--ease);
}
.cc-banner.is-in { transform: none; }
.cc-banner[hidden] { display: none; }
.cc-banner__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(18px, 2.2vw, 26px) var(--gut);
  display: grid;
  gap: 18px;
}
.cc-banner__text p { margin: 0; font-size: .93rem; max-width: 72ch; color: var(--ink-70); }
.cc-banner__text strong { color: var(--ink); font-weight: 400; }
.cc-banner__text a { color: var(--ink); }
.cc-banner__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
@media (min-width: 900px) {
  .cc-banner__inner { grid-template-columns: 1fr auto; align-items: center; gap: 40px; }
  .cc-banner__actions { justify-content: flex-end; }
}

/* Accept and reject are deliberately identical: refusing must not be the
   harder option. Only "Manage" is visually quieter, because it opens more UI
   rather than settling the question. */
.cc-btn { padding: 14px 26px; white-space: nowrap; }
.cc-link {
  background: none;
  border: 0;
  padding: 14px 4px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-70);
  cursor: pointer;
  border-bottom: 1px solid var(--ink-12);
}
.cc-link:hover { color: var(--ink); border-bottom-color: currentColor; }

.cc-footer-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}
.cc-footer-link:hover { color: #fff; }

.cc-modal { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; }
.cc-modal[hidden] { display: none; }
.cc-modal__backdrop { position: absolute; inset: 0; background: rgba(20, 17, 15, .55); }
.cc-modal__panel {
  position: relative;
  width: min(660px, calc(100vw - 2 * var(--gut)));
  max-height: min(86svh, 760px);
  overflow-y: auto;
  background: var(--paper);
  padding: clamp(24px, 3vw, 40px);
  display: grid;
  gap: 4px;
  animation: ccIn .45s var(--ease) both;
}
@keyframes ccIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.cc-modal__head { position: relative; padding-bottom: 20px; border-bottom: 1px solid var(--ink-12); }
.cc-modal__head h2 { margin-top: 10px; }
.cc-close {
  position: absolute; top: -6px; right: -6px;
  width: 42px; height: 42px;
  display: grid; place-content: center;
  background: none; border: 0; cursor: pointer; color: var(--ink);
}
.cc-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; }

.cc-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 24px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--ink-12);
}
.cc-row h3 { font-family: var(--serif); font-size: 1.15rem; font-weight: 300; margin: 0 0 6px; }
.cc-row p { margin: 0; font-size: .88rem; color: var(--ink-70); max-width: 52ch; }
.cc-lock { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--grey); padding-top: 6px; }

.cc-switch { position: relative; display: inline-block; cursor: pointer; padding-top: 4px; }
.cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cc-switch__track {
  display: block;
  width: 48px; height: 26px;
  border: 1px solid var(--ink-12);
  border-radius: 999px;
  background: var(--stone);
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
.cc-switch__track::after {
  content: "";
  position: absolute;
  top: 8px; left: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--grey);
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.cc-switch input:checked + .cc-switch__track { background: var(--ink); border-color: var(--ink); }
.cc-switch input:checked + .cc-switch__track::after { transform: translateX(22px); background: #fff; }
.cc-switch input:focus-visible + .cc-switch__track { outline: 2px solid var(--brass); outline-offset: 3px; }

.cc-modal__foot { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 24px; }
.cc-modal__note { margin: 14px 0 0; font-size: 11.5px; color: var(--grey); }
.cc-modal__note a { color: var(--ink-70); }

@media (max-width: 900px) {
  .cc-row p { font-size: .92rem; }
  .cc-modal__note { font-size: 12px; }
  .cc-banner__text p { font-size: .95rem; line-height: 1.9; }
  .cc-btn { flex: 1 1 auto; text-align: center; }
  /* the inline policy link is the smallest thing to tap in the banner */
  .cc-banner__text a,
  .cc-modal__note a { display: inline-block; padding: 9px 0; }
}

/* ---------- Reveal on scroll ---------- */

.rv { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; }
.rv-d2 { transition-delay: .16s; }
.rv-d3 { transition-delay: .24s; }

/* ---------- Utilities ---------- */

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 20px;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  transition: top .3s var(--ease);
}
.skip:focus { top: 12px; }
.center { text-align: center; }
.mt-l { margin-top: clamp(36px, 4vw, 64px); }
.stack { display: grid; gap: clamp(20px, 2.4vw, 34px); }

/* ---------- Small screens ---------- */

/* The tracked uppercase labels sit at 10.5–11px on desktop, which is fine at
   reading distance on a large screen and too small on a phone. Nothing below
   12px survives here. */
@media (max-width: 900px) {
  .card__spec,
  .meta,
  .hero__eyebrow,
  .index-row__ref,
  .index-row__loc,
  .quote figcaption,
  .review figcaption,
  .gallery figcaption,
  .spec dt,
  .field label,
  .ftr__head,
  .rcar__count,
  .rail__ref,
  .rail__label,
  .rail__link { font-size: 12px; }

  /* Every remaining link becomes a finger-sized target. Text links sit at
     19–27px from line-height alone, which fails on touch. */
  .rail__link,
  .ftr a,
  .link-u,
  .drawer__foot a,
  .index-row {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .drawer__foot a.btn { display: inline-block; }
  .index-row { display: grid; min-height: 0; padding: 18px 0; }
  .ftr ul { gap: 0; }
  .ftr ul a { padding: 0; }
  .ftr__bar { gap: 4px 24px; }

  .btn { padding: 18px 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .rv { opacity: 1; transform: none; }
}
