/* ==========================================================================
   Lily Grace Hair
   Concept: "The Getting-Ready Room" — a lookbook, not a salon menu.

   Brand rules this file obeys, taken from the brand pack:
     · Italiana for display, Urbanist for everything readable
     · deep neutrals, one claret accent
     · no drop shadows, no gradients, no icon sets
     · the solid highlight bar behind a key word is the only graphic device
   ========================================================================== */

/* --- 1. tokens ----------------------------------------------------------- */
:root {
  /* palette — approved brand pack, section 02 */
  --ink:        #12141A;
  --porcelain:  #F5F4F1;
  --espresso:   #3C302D;
  --charcoal:   #333132;
  --stone:      #CCC8BC;
  --rose:       #F1E1E2;
  --claret:     #5B0F1B;
  --divider:    #DEDCD6;

  /* derived, so text tones stay in the same family as the ground */
  --muted:      #6E6A66;
  --muted-dark: #9C9A96;
  --claret-lift:#7A1B28;

  --display: "Italiana", "Didot", "Bodoni MT", Georgia, serif;
  --body: "Urbanist", "Avenir Next", "Helvetica Neue", Arial, sans-serif;

  /* fluid type scale */
  --t-hero:  clamp(2.9rem, 8.4vw, 7rem);
  --t-xl:    clamp(2.1rem, 5.4vw, 4.25rem);
  --t-l:     clamp(1.7rem, 3.6vw, 2.75rem);
  --t-m:     clamp(1.3rem, 2.4vw, 1.75rem);
  --t-body:  clamp(1rem, .96rem + .2vw, 1.125rem);
  --t-small: .9375rem;
  --t-label: .6875rem;

  /* 8px rhythm */
  --s1: .5rem;  --s2: 1rem;   --s3: 1.5rem; --s4: 2rem;
  --s5: 3rem;   --s6: 4rem;   --s7: 6rem;   --s8: 8rem;

  --gut: clamp(1.25rem, 5vw, 5.5rem);
  --maxw: 1440px;
  --rule: 1px solid var(--divider);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --nav-h: 72px;
}

/* --- 2. reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  font-size: var(--t-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p, ul, ol, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--claret);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -120%);
  background: var(--ink); color: var(--porcelain);
  padding: .75rem 1.25rem; z-index: 200; font-size: var(--t-label);
  letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
}
.skip:focus { transform: translate(-50%, 0); }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- 3. typography ------------------------------------------------------- */
.display { font-family: var(--display); line-height: 1.04; letter-spacing: .012em; text-wrap: balance; }
.t-hero { font-size: var(--t-hero); }
.t-xl   { font-size: var(--t-xl); }
.t-l    { font-size: var(--t-l); }
.t-m    { font-size: var(--t-m); }

.label {
  font-size: var(--t-label); font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--claret);
}
.label--quiet { color: var(--muted); }

.lede { color: var(--muted); max-width: 58ch; }
.lede--wide { max-width: 70ch; }
.small { font-size: var(--t-small); color: var(--muted); }

/* the one graphic device: a solid bar behind a key word, from Lily's Stories */
.mark { position: relative; display: inline-block; isolation: isolate; }
.mark::after {
  content: ""; position: absolute; z-index: -1;
  left: -.07em; right: -.07em; bottom: .07em; height: .28em;
  background: var(--rose);
}
.mark--stone::after { background: var(--stone); }
/* on ink, claret goes muddy — so the bar becomes a fine rose rule instead */
.on-ink .mark::after { height: .07em; bottom: -.02em; background: var(--rose); }

/* --- 4. layout ----------------------------------------------------------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.wrap--narrow { max-width: 980px; }

section { padding-block: clamp(var(--s6), 11vw, var(--s8)); }
section.tight { padding-block: clamp(var(--s5), 8vw, var(--s7)); }
.ruled { border-top: var(--rule); }

.on-ink { background: var(--ink); color: var(--porcelain); }
.on-ink .lede, .on-ink .small { color: var(--muted-dark); }
.on-ink .label { color: var(--rose); }
.on-ink .ruled, .on-ink .rule { border-color: rgba(245, 244, 241, .16); }

.stack   { display: grid; gap: var(--s3); }
.stack-4 { display: grid; gap: var(--s4); }

/* a header block used at the top of most sections */
.head { display: grid; gap: var(--s3); max-width: 24ch; }
.head .lede { margin-top: var(--s1); }
.head--wide { max-width: none; }
.head--split {
  max-width: none;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--s3) clamp(var(--s4), 6vw, var(--s7));
  align-items: end;
}
.head--split h2 { max-width: 16ch; }

/* --- 5. navigation ------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); width: 100%; }
.nav__logo { display: block; }
.nav__logo img { height: 32px; width: auto; transition: filter .4s var(--ease); }

.nav--over .nav__logo img { filter: invert(1); }
.nav--over .nav__link, .nav--over .nav__burger { color: var(--porcelain); }
.nav--solid { background: var(--porcelain); border-bottom-color: var(--divider); }

.nav__links { display: flex; align-items: center; gap: clamp(1.25rem, 2.6vw, 2.5rem); }
.nav__link {
  font-size: var(--t-label); letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; position: relative; padding-block: .5rem; color: var(--ink);
  transition: color .3s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .1rem; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--claret); }
.nav--over .nav__link[aria-current="page"] { color: var(--rose); }

.nav__burger {
  display: none; background: none; border: 0; padding: .5rem; cursor: pointer;
  color: var(--ink); font-size: var(--t-label); letter-spacing: .2em;
  text-transform: uppercase; font-family: inherit; font-weight: 500;
}

/* full-screen menu, mobile */
.menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--ink); color: var(--porcelain);
  display: grid; align-content: center; gap: var(--s2);
  padding: var(--nav-h) var(--gut) var(--s6);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease);
  visibility: hidden;
}
.menu[data-open="true"] { clip-path: inset(0 0 0 0); visibility: visible; }
.menu a {
  font-family: var(--display); font-size: clamp(2.25rem, 12vw, 3.5rem);
  text-decoration: none; line-height: 1.15; color: var(--porcelain);
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.menu[data-open="true"] a { opacity: 1; transform: none; }
.menu[data-open="true"] a:nth-child(2) { transition-delay: .06s; }
.menu[data-open="true"] a:nth-child(3) { transition-delay: .12s; }
.menu[data-open="true"] a:nth-child(4) { transition-delay: .18s; }
.menu__foot { margin-top: var(--s4); border-top: 1px solid rgba(245,244,241,.16); padding-top: var(--s3); }

/* --- 6. buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: var(--t-label); font-weight: 500; letter-spacing: .2em;
  text-transform: uppercase; text-decoration: none;
  padding: 1.15rem 2rem; min-height: 48px;
  background: var(--claret); color: var(--rose);
  border: 1px solid var(--claret); border-radius: 2px;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--claret-lift);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.btn:hover { border-color: var(--claret-lift); }
.btn:hover::before { transform: none; }
.btn__arrow { transition: transform .4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(5px); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost::before { background: var(--ink); }
.on-ink .btn--ghost::before { background: var(--porcelain); }
.btn--ghost:hover { background: var(--ink); color: var(--porcelain); }
.on-ink .btn--ghost { color: var(--porcelain); border-color: rgba(245,244,241,.45); }
.on-ink .btn--ghost:hover { background: var(--porcelain); color: var(--ink); border-color: var(--porcelain); }

/* a quiet text link with a rule under it */
.tlink {
  display: inline-block; text-decoration: none;
  font-size: var(--t-label); letter-spacing: .2em; text-transform: uppercase;
  font-weight: 500; padding-bottom: .35rem;
  color: var(--claret); position: relative;
}
.tlink::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor;
}
.tlink:hover::after { animation: sweep .62s var(--ease); }
@keyframes sweep {
  0%   { transform: scaleX(1); transform-origin: right; }
  49%  { transform: scaleX(0); transform-origin: right; }
  50%  { transform: scaleX(0); transform-origin: left; }
  100% { transform: scaleX(1); transform-origin: left; }
}
.on-ink .tlink { color: var(--rose); }

/* --- 7. images ----------------------------------------------------------- */
.plate { position: relative; overflow: hidden; background: var(--divider); }
.plate img {
  width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4;
  transition: transform 1.1s var(--ease);
}
.plate--tall img { aspect-ratio: 2 / 3; }
.plate--wide img { aspect-ratio: 1 / 1; }
a.plate:hover img, .plate--zoom:hover img { transform: scale(1.055); }

.plate__tag {
  position: absolute; left: 0; bottom: 0;
  background: var(--porcelain); color: var(--ink);
  font-size: .5625rem; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 500; padding: .55rem .85rem;
  transition: background .4s var(--ease), color .4s var(--ease);
}
a.plate:hover .plate__tag { background: var(--claret); color: var(--rose); }

figure.shot { display: grid; }

/* --- 8. hero ------------------------------------------------------------- */
.hero { position: relative; background: var(--ink); color: var(--porcelain); overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: end;
  min-height: min(94svh, 900px);
  padding-top: calc(var(--nav-h) + var(--s5));
  padding-bottom: var(--s5);
  gap: var(--s5) clamp(var(--s4), 5vw, var(--s6));
}
.hero__copy { position: relative; z-index: 2; padding-bottom: var(--s2); }
.hero__copy h1 { margin-bottom: var(--s3); }
.hero__sub { color: var(--muted-dark); max-width: 42ch; }
.hero__meta {
  margin-top: var(--s4); padding-top: var(--s3);
  border-top: 1px solid rgba(245, 244, 241, .16);
  display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4);
  font-size: var(--t-label); letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted-dark);
}
.hero__figure { position: relative; align-self: stretch; display: flex; align-items: flex-end; }
.hero__figure .plate { width: 100%; }
.hero__figure .plate img { aspect-ratio: 4 / 5; }

/* --- 9. the visible column grid (used sparingly) ------------------------- */
.colgrid { display: grid; gap: 0; border-top: var(--rule); }
.colgrid > * {
  padding: var(--s4) clamp(var(--s2), 2.5vw, var(--s4));
  border-bottom: var(--rule);
}
@media (min-width: 900px) {
  .colgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .colgrid > * { border-right: var(--rule); border-bottom: 0; }
  .colgrid > *:first-child { padding-left: 0; }
  .colgrid > *:last-child { border-right: 0; }
}
.colgrid h3 { font-family: var(--display); font-size: var(--t-m); margin-bottom: var(--s2); }
.colgrid p { color: var(--muted); font-size: var(--t-small); }
.colgrid .num {
  font-size: var(--t-label); letter-spacing: .24em; color: var(--claret);
  font-weight: 500; display: block; margin-bottom: var(--s2);
}
.on-ink .colgrid .num { color: var(--rose); }

/* --- 10. galleries ------------------------------------------------------- */
.plates { display: grid; gap: clamp(.6rem, 1.4vw, 1.1rem); }
.plates--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plates--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* the editorial run on the homepage: three plates, middle one dropped */
.run { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.75rem, 2vw, 1.75rem); align-items: start; }
.run > :nth-child(2) { margin-top: clamp(var(--s4), 7vw, var(--s7)); }
.run > :nth-child(3) { margin-top: clamp(var(--s2), 3vw, var(--s4)); }

/* filterable work grid */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: var(--s4); }
.filters button {
  font-family: inherit; font-size: var(--t-label); font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  padding: .7rem 1.15rem; min-height: 44px; cursor: pointer;
  background: transparent; color: var(--muted);
  border: 1px solid var(--divider); border-radius: 2px;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.filters button:hover { color: var(--ink); border-color: var(--stone); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--porcelain); }

.work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.6rem, 1.6vw, 1.25rem); margin-top: var(--s4); }
.work .shot { transition: opacity .45s var(--ease), transform .45s var(--ease); }
.work .shot[hidden] { display: none; }
/* survivors of a filter click are re-dealt rather than snapping into place */
.js .work .shot.is-dealt { animation: deal .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes deal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* every fifth frame runs tall, so the grid never reads as a spreadsheet */
.work .shot:nth-child(5n + 1) .plate img { aspect-ratio: 2 / 3; }

/* --- 11. quotes ---------------------------------------------------------- */
.quote { display: grid; gap: var(--s3); }
.quote blockquote {
  font-family: var(--display); font-size: var(--t-l); line-height: 1.28;
  border-left: 2px solid var(--claret); padding-left: clamp(1rem, 2.5vw, 2rem);
  /* real quotation marks, hung into the padding so the text stays flush left */
  quotes: "\201C" "\201D";
  text-indent: -.44em;
}
.quote blockquote::before { content: open-quote; }
.quote blockquote::after  { content: close-quote; }
.quote blockquote::before,
.quote blockquote::after { color: var(--claret); }
.on-ink .quote blockquote { border-left-color: var(--rose); }
.on-ink .quote blockquote::before,
.on-ink .quote blockquote::after { color: var(--rose); }
.quote figcaption { font-size: var(--t-label); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-left: clamp(1rem, 2.5vw, 2rem); }
.on-ink .quote figcaption { color: var(--muted-dark); }

/* --- 12. detail lists ---------------------------------------------------- */
.facts { display: grid; gap: 0; }
.facts > div {
  display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: var(--s2) clamp(var(--s3), 4vw, var(--s5));
  padding-block: var(--s3); border-top: var(--rule);
}
.facts dt, .facts h3 {
  font-size: var(--t-label); font-weight: 500; letter-spacing: .2em;
  text-transform: uppercase; line-height: 1.9;
}
.facts dd, .facts p { margin: 0; color: var(--muted); }

/* prep cards, verbatim from Lily's Instagram */
.prep { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(var(--s3), 3vw, var(--s4)); }
.prep article { border-top: 2px solid var(--ink); padding-top: var(--s3); display: grid; gap: var(--s2); }
.prep h3 { font-family: var(--display); font-size: var(--t-m); }
.prep p { color: var(--muted); font-size: var(--t-small); }

/* --- 13. footer ---------------------------------------------------------- */
.foot { background: var(--ink); color: var(--porcelain); padding-block: var(--s6) var(--s4); }
.foot__top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s5); align-items: start; }
.foot__logo img { height: 30px; width: auto; filter: invert(1); }
.foot__nav { display: grid; gap: .6rem; }
.foot__nav a { text-decoration: none; font-size: var(--t-label); letter-spacing: .2em; text-transform: uppercase; color: var(--muted-dark); transition: color .3s var(--ease); }
.foot__nav a:hover { color: var(--porcelain); }
.foot__base {
  margin-top: var(--s6); padding-top: var(--s3);
  border-top: 1px solid rgba(245, 244, 241, .16);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2);
  font-size: .5625rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted-dark);
}

/* --- 14. sticky mobile CTA ----------------------------------------------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; padding: .65rem var(--gut) calc(.65rem + env(safe-area-inset-bottom));
  background: var(--porcelain); border-top: var(--rule);
  transform: translateY(110%); transition: transform .45s var(--ease);
}
.dock[data-show="true"] { transform: none; }
.dock .btn { width: 100%; justify-content: center; }

/* --- 15. motion ---------------------------------------------------------- */
/* None of this applies until the inline snippet in <head> puts .js on <html>,
   so with scripting off every page renders complete, visible and static. */

/* scroll reveal */
.js [data-reveal] { opacity: 0; transform: translateY(20px); }
.js [data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .plate[data-reveal] img { transform: scale(1.06); }
.js .plate[data-reveal].is-in img { transform: none; transition: transform 1.3s var(--ease) var(--d, 0s); }

/* a plate whose photograph wipes up from the bottom edge, used on the hero.
   The clip sits on the image, never on the observed element — an element
   clipped to nothing has no intersection area and would never be revealed. */
.js .plate[data-reveal="clip"] { opacity: 1; transform: none; background: transparent; }
.js .plate[data-reveal="clip"] img { clip-path: inset(0 0 100% 0); }
.js .plate[data-reveal="clip"].is-in img {
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.15s var(--ease) var(--d, 0s),
              transform 1.5s var(--ease) var(--d, 0s);
}

/* grids whose children arrive one after the next — indexed by the script */
.js [data-stagger] > * { opacity: 0; transform: translateY(24px); }
.js [data-stagger].is-in > * {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}

/* display headings rise out of a mask, a word at a time */
.js .w {
  display: inline-block; overflow: hidden; vertical-align: bottom;
  padding-bottom: .22em; margin-bottom: -.22em;
}
.js .w > i { display: inline-block; font-style: inherit; transform: translateY(115%); }
.js [data-split].is-in .w > i {
  transform: none;
  transition: transform 1.05s var(--ease);
  transition-delay: calc(var(--i, 0) * 55ms + var(--d, 0s));
}

/* the one graphic device, wiped in from the left behind its word */
/* Driven by whichever block revealed it, never by observing .mark itself — a
   mark inside a split heading sits in a clipped word box with no visible area,
   which an IntersectionObserver would never see. */
.js .mark::after { transform: scaleX(0); transform-origin: left; }
.js .mark.is-in::after,
.js .is-in .mark::after { transform: none; transition: transform .9s var(--ease) .2s; }
.js [data-split].is-in .mark::after { transition-delay: .62s; }

/* hairline section rules draw themselves across */
.js .ruled { position: relative; border-top-color: transparent; }
.js .ruled::before {
  content: ""; position: absolute; inset: -1px 0 auto 0; height: 1px;
  background: var(--divider); transform: scaleX(0); transform-origin: left;
}
.js .on-ink.ruled::before, .js .on-ink .ruled::before { background: rgba(245, 244, 241, .16); }
.js .ruled.is-in::before { transform: none; transition: transform 1.25s var(--ease); }

/* the hero photograph drifts a little slower than the page */
.js .hero__figure { will-change: transform; }

/* reading progress, sitting on the bottom edge of the bar */
.progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--claret); transform: scaleX(0); transform-origin: left;
}
.nav--over .progress { background: var(--rose); }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-reveal].is-in,
  .js .plate[data-reveal="clip"] img, .js .plate[data-reveal="clip"].is-in img,
  .js [data-stagger] > *, .js [data-stagger].is-in > *,
  .js .w > i, .js [data-split].is-in .w > i,
  .js .plate[data-reveal] img, .js .plate[data-reveal].is-in img {
    opacity: 1; transform: none; clip-path: none; transition: none;
  }
  .js .mark::after, .js .mark.is-in::after,
  .js .is-in .mark::after { transform: none; transition: none; }
  .js .ruled { border-top-color: var(--divider); }
  .js .on-ink .ruled { border-top-color: rgba(245, 244, 241, .16); }
  .js .ruled::before { display: none; }
  .js .work .shot.is-dealt { animation: none; }
  .progress { display: none; }
  .menu, .menu a { transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* --- 16. responsive ------------------------------------------------------ */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); align-items: start; min-height: 0; }
  .hero__figure { order: -1; }
  .hero__figure .plate img { aspect-ratio: 4 / 3; }
  .head--split { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .foot__top { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
}

@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .work, .plates--3, .plates--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work .shot:nth-child(5n + 1) .plate img { aspect-ratio: 3 / 4; }
  .run { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .run > :nth-child(3) { display: none; }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: .35rem; }
  .facts dt, .facts h3 { line-height: 1.6; }
  .dock { display: block; }
  body { padding-bottom: 0; }
}

@media (max-width: 560px) {
  .prep { grid-template-columns: minmax(0, 1fr); }
  .run { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
  .run > :nth-child(2), .run > :nth-child(3) { margin-top: 0; }
  .run > :nth-child(3) { display: grid; }
  .hero__figure .plate img { aspect-ratio: 3 / 4; }
  .hero__meta { gap: .35rem var(--s3); }
}

@media print {
  .nav, .menu, .dock { display: none !important; }
  body { background: #fff; color: #000; }
}
