/* ============================================================================
   Sarah Kop — čiernobiela fotografia
   Mobile-first. Breakpoints: 640 / 900 / 1200. Light-only by design.
   ========================================================================= */

/* ── Fonts ──────────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('fonts/cormorant-garamond-latin-ext-300-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('fonts/cormorant-garamond-latin-300-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/cormorant-garamond-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/cormorant-garamond-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300; font-display: swap;
  src: url('fonts/cormorant-garamond-latin-ext-300-italic.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300; font-display: swap;
  src: url('fonts/cormorant-garamond-latin-300-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('fonts/jetbrains-mono-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  color-scheme: light;

  --clay: #89413b;
  --clay-deep: #6b322d;
  --paper: #f4f1ea;
  --paper-warm: #eae4d9;
  --ink: #1a1614;
  --ink-soft: #5b534e;
  --rule: rgb(26 22 20 / 0.14);

  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --pad: clamp(1.5rem, 6vw, 6.5rem);
  --gap: clamp(4rem, 10vw, 9rem);
  --max: 1400px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

/* +20% over the browser default. Everything below is sized in rem, so this one
   line scales all type (and, gently, the rem-based spacing alongside it). */
html { font-size: 120%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
:target, section[id] { scroll-margin-top: clamp(3.5rem, 9vw, 5.5rem); }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.0625rem, 0.98rem + 0.42vw, 1.3125rem);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
ol, ul { list-style: none; padding: 0; }

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

.skip {
  position: fixed; top: 0; left: 0; z-index: 100;
  padding: 0.9rem 1.25rem;
  background: var(--clay); color: var(--paper);
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  transform: translateY(-110%);
}
.skip:focus { transform: none; }

.vh {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* ── Shared bits ────────────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--mono);
  font-size: clamp(0.625rem, 0.58rem + 0.2vw, 0.75rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--clay);
}
.eyebrow--rule {
  display: flex; align-items: center; gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}
.eyebrow--rule::after {
  content: ''; flex: 1; height: 1px; background: var(--rule);
}

.link {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--clay);
  text-decoration: underline;
  text-underline-offset: 0.4em;
  text-decoration-thickness: 1px;
  padding: 0.6rem 0;
  transition: color 0.25s var(--ease), text-underline-offset 0.25s var(--ease);
}
.link:hover, .link:focus-visible { color: var(--clay-deep); text-underline-offset: 0.6em; }

.link--lg {
  font-size: clamp(0.8125rem, 0.75rem + 0.3vw, 0.9375rem);
  letter-spacing: 0.2em;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem;
  padding: 0.9rem 2rem;
  background: var(--clay); color: var(--paper);
  font-family: var(--mono); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.25s var(--ease);
}
.btn:hover, .btn:focus-visible { background: var(--clay-deep); }
.btn--wide { width: 100%; margin-top: clamp(1.5rem, 4vw, 2.5rem); }

/* Blur-up: the LQIP sits as a background under the real file. Gated on `.js` so a
   failed or blocked script can never leave every photo stuck at opacity 0. */
.ph { background-size: cover; background-position: center; }
.js .ph { opacity: 0; transition: opacity 0.7s var(--ease); }
.js .ph.is-loaded { opacity: 1; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem var(--pad);
  padding-top: max(1rem, env(safe-area-inset-top));
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.hdr.is-stuck {
  background: rgb(244 241 234 / 0.92);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--rule);
}

.hdr__mark {
  font-family: var(--mono); font-size: 0.8125rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none;
  padding: 0.5rem 0;
}

.hdr__nav { display: none; }

.hdr__toggle {
  min-height: 44px; min-width: 44px;
  display: flex; align-items: center; justify-content: flex-end;
  font-family: var(--mono); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--clay);
}
.hdr__toggle-label { text-decoration: underline; text-underline-offset: 0.35em; }

/* ── Mobile nav panel ───────────────────────────────────────────────────── */
.navpanel {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: center;
  gap: 2rem;
  padding: clamp(4.5rem, 14vw, 7rem) var(--pad) max(2rem, env(safe-area-inset-bottom));
  background: var(--paper);
}
.navpanel[hidden] { display: none; }
.navpanel nav { display: flex; flex-direction: column; }
.navpanel nav a {
  display: flex; align-items: baseline; gap: 1.25rem;
  padding: 0.65rem 0;
  font-size: clamp(2rem, 11vw, 3rem);
  font-weight: 300; line-height: 1.15;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.navpanel__n {
  font-family: var(--mono); font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.14em; color: var(--clay);
}
.navpanel__foot {
  display: flex; flex-direction: column; gap: 0.25rem;
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em;
}
.navpanel__foot a { color: var(--clay); text-underline-offset: 0.35em; padding: 0.5rem 0; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
/* The two frames fill the viewport between them — stacked on phones, side by side
   from 900px. The only things over them are the header and the one call to action. */
.hero {
  position: relative;
  height: 100svh;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr;
}

.hero__frame { position: relative; overflow: hidden; min-height: 0; }
.hero__frame picture { width: 100%; height: 100%; }
.hero__img { width: 100%; height: 100%; object-fit: cover; }

.hero__cta {
  position: absolute;
  left: 50%; translate: -50% 0;
  bottom: max(clamp(2rem, 7vh, 4.5rem), env(safe-area-inset-bottom));
  z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(1.1rem, 3.5vh, 1.9rem);
  width: min(90vw, 32rem);
}
.hero__slogan {
  color: var(--paper);
  font-size: clamp(1.5rem, 1rem + 2.6vw, 2.75rem);
  font-weight: 300; font-style: italic; line-height: 1.15;
  letter-spacing: -0.01em;
  text-align: center; text-wrap: balance;
  text-shadow: 0 2px 28px rgb(26 22 20 / 0.6);
}
.hero__cta .btn {
  white-space: nowrap;
  padding-inline: clamp(1.25rem, 5vw, 2.25rem);
  box-shadow: 0 10px 40px rgb(26 22 20 / 0.35);
}

/* ── Section wrapper ───────────────────────────────────────────────────── */
.contact {
  max-width: var(--max);
  margin-inline: auto;
  padding: var(--gap) var(--pad);
}

/* ── Ako to prebieha — the four steps of a booking ───────────────────────── */
.msteps__eyebrow { margin-top: clamp(2.5rem, 6vw, 3.5rem); }
.msteps {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem 2.5rem;
  margin-top: clamp(1.25rem, 3vw, 1.75rem);
  padding-top: clamp(1.75rem, 4vw, 2.25rem);
  border-top: 1px solid var(--rule);
}
.msteps li { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; flex: 1 1 12rem; max-width: 16rem; }
.msteps__n {
  font-family: var(--mono); font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.14em; color: var(--clay);
}
.msteps__title { font-size: 1.125rem; }
.msteps__text {
  font-size: 0.9375rem; line-height: 1.55;
  color: var(--ink-soft);
}

/* ── Portfolio ─────────────────────────────────────────────────────────────
   Three horizontal rollers — Páry a tehotenské, Deti a rodina, Portrét — the middle
   one opened by a full-bleed landscape frame. Photos meet edge to edge everywhere:
   each track is a flex row with `gap: 0`, and nothing stacked between the rollers
   carries a margin. */
.portfolio { display: flex; flex-direction: column; }

.slider { position: relative; }

/* Two states. Before main.js runs — and if it never does — the track is a plain
   horizontal scroll container, so the frames stay reachable with JS off. Once Embla
   takes over it becomes a viewport that merely clips a flex container Embla moves
   with transforms; the track stops being a scroller at all, which is what removes
   the whole class of scroll-position bugs the loop used to have. */
.slider__track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.slider__track::-webkit-scrollbar { display: none; }

.slider--embla .slider__track { display: block; overflow: hidden; }
.slider__container {
  display: flex;
  gap: 0;
  /* A vertical drag scrolls the page; a horizontal one drags the roller. Without
     this the browser claims the gesture and Embla never sees it. */
  touch-action: pan-y pinch-zoom;
  backface-visibility: hidden;
  cursor: grab;
}
.slider--dragging .slider__container { cursor: grabbing; }

.slider .tile {
  flex: 0 0 auto;
  height: clamp(26rem, 78vh, 52rem);
  aspect-ratio: 2 / 3;
}

/* Dark disc, white chevron — reads on any frame. Hidden only while the track fits
   (main.js sets .slider--static); the roller loops, so there is no scroll end. */
.slider__nav {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 2;
  width: 3.25rem; height: 3.25rem;
  display: grid; place-items: center;
  color: #fff;
  background: rgb(26 22 20 / 0.74);
  border: 1px solid rgb(255 255 255 / 0.4);
  border-radius: 50%;
  box-shadow: 0 3px 16px rgb(26 22 20 / 0.45);
  backdrop-filter: blur(2px);
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease), opacity 0.25s var(--ease);
}
.slider__nav:hover, .slider__nav:focus-visible {
  background: rgb(26 22 20 / 0.92);
  transform: scale(1.08);
}
/* A drawn chevron, not a text glyph: `‹` sits off-centre by whatever side bearings
   the font gives it, and its weight drifts between fonts. Both paths span x 8→16 and
   y 4→20, so each is symmetric about the viewBox centre — `place-items: center` on
   the button then lands them exactly on the disc's middle, with no nudging. */
.chev {
  width: 1.375rem; height: 1.375rem;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.slider__nav[disabled] { opacity: 0; pointer-events: none; }
.slider__nav--prev { left: clamp(0.5rem, 2vw, 1.25rem); }
.slider__nav--next { right: clamp(0.5rem, 2vw, 1.25rem); }
.slider--static .slider__nav { display: none; }

.banner { display: block; width: 100%; aspect-ratio: 5 / 2; }

.tile { position: relative; overflow: hidden; }
.tile__btn { display: block; width: 100%; height: 100%; padding: 0; }
.tile picture { display: block; width: 100%; height: 100%; }
.tile__img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.tile__btn:hover .tile__img, .tile__btn:focus-visible .tile__img { transform: scale(1.04); }

/* Category name, white over the first frame of its roller (over the banner for Deti a
   rodina). Pointer passes through to the button beneath so the frame still opens. */
.tile__cap {
  position: absolute; inset: 0 0 auto 0;
  padding: clamp(1rem, 3vw, 1.5rem) clamp(1.25rem, 4vw, 2rem) clamp(2rem, 6vw, 3rem);
  color: #fff;
  pointer-events: none;
  background: linear-gradient(180deg, rgb(26 22 20 / 0.55) 0%, rgb(26 22 20 / 0) 100%);
}
.tile__cap--label {
  font-family: var(--mono);
  font-size: clamp(0.6875rem, 0.6rem + 0.3vw, 0.8125rem);
  font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
}

.portfolio__ig { padding: clamp(2rem, 5vw, 3rem) var(--pad) 0; }
.portfolio__ig .link { color: var(--clay); }

/* ── Contact ────────────────────────────────────────────────────────────── */
.contact { position: relative; text-align: center; padding-block: clamp(5rem, 15vw, 11rem); }

.contact__body { position: relative; }
.contact__title {
  font-size: clamp(2.5rem, 10vw, 4.5rem);
  font-weight: 300; font-style: italic; line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--clay);
  max-width: 20ch; margin-top: clamp(1rem, 3vw, 1.5rem); margin-inline: auto;
  text-wrap: balance;
}
.contact__body p {
  max-width: 38ch; margin: clamp(1.5rem, 4vw, 2rem) auto 0;
  color: var(--ink-soft); font-size: 0.9375em;
}
.contact__links {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  margin-top: clamp(2.75rem, 7vw, 4rem);
}

/* ── About ─────────────────────────────────────────────────────────────── */
.about {
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(4.5rem, 13vw, 9rem) var(--pad);
  border-top: 1px solid var(--rule);
  display: grid;
  gap: clamp(2rem, 6vw, 4.5rem);
}
.about__photo { margin: 0; }
.about__photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 30%;
}
.about__body { max-width: 58ch; }
.about__title {
  font-size: clamp(2rem, 7vw, 3.25rem);
  font-weight: 300; font-style: italic; line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--clay);
  margin-top: clamp(1rem, 3vw, 1.5rem);
  text-wrap: balance;
}
.about__text { margin-top: clamp(1.75rem, 4vw, 2.5rem); }
.about__text p + p { margin-top: 1.1em; }
.about__sign {
  margin-top: clamp(2rem, 5vw, 3rem);
  font-style: italic;
  color: var(--clay);
  font-size: 1.25em;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem;
  max-width: var(--max); margin-inline: auto;
  padding: 1.5rem var(--pad);
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule);
  font-family: var(--mono); font-size: 0.6875rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft);
}

/* ── Lightbox ───────────────────────────────────────────────────────────── */
.lb {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  padding: clamp(2.75rem, 8vw, 4rem) clamp(0.5rem, 3vw, 3rem);
  background: rgb(20 17 15 / 0.97);
}
.lb[hidden] { display: none; }
.lb__stage { width: 100%; height: 100%; display: grid; place-items: center; }
.lb__stage img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
}
.lb__close, .lb__nav {
  position: absolute; z-index: 2;
  min-width: 48px; min-height: 48px;
  display: grid; place-items: center;
  color: rgb(244 241 234 / 0.72);
  font-size: 1.5rem; line-height: 1;
  transition: color 0.2s var(--ease);
}
.lb__close:hover, .lb__nav:hover, .lb__close:focus-visible, .lb__nav:focus-visible { color: var(--paper); }
.lb__close { top: max(0.5rem, env(safe-area-inset-top)); right: 0.5rem; font-size: 1.125rem; }
.lb__nav { top: 50%; translate: 0 -50%; }
/* The lightbox discs are smaller than the roller's, so the chevron scales with them
   to keep the same optical weight rather than filling the button. */
.lb__nav .chev { width: 1.25rem; height: 1.25rem; stroke-width: 1.75; }
.lb__nav--prev { left: 0.25rem; }
.lb__nav--next { right: 0.25rem; }
.lb__count {
  position: absolute; bottom: max(0.75rem, env(safe-area-inset-bottom)); left: 50%; translate: -50% 0;
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.14em;
  color: rgb(244 241 234 / 0.6);
}
body.is-locked { overflow: hidden; }

/* ── Reveal on scroll ───────────────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

/* Until it sticks, the header sits on the two full-bleed hero frames, where ink is
   unreadable. The scrim keeps it legible whatever those frames happen to be; once
   scrolled (.is-stuck) it gets its cream plate and ink back. */
.hdr:not(.is-stuck)::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(26 22 20 / 0.55), rgb(26 22 20 / 0));
  pointer-events: none;
  /* A positioned pseudo-element paints above static siblings, so it has to be pushed
     behind explicitly or it would cover the wordmark it exists to reveal. .hdr already
     makes a stacking context (z-index: 50), so -1 stays inside it. */
  z-index: -1;
}
.hdr:not(.is-stuck) .hdr__mark { color: var(--paper); }
.hdr:not(.is-stuck) .hdr__toggle { color: rgb(244 241 234 / 0.92); }
.hdr:not(.is-stuck) .hdr__nav a { color: rgb(244 241 234 / 0.92); }
.hdr:not(.is-stuck) .hdr__nav a:hover,
.hdr:not(.is-stuck) .hdr__nav a:focus-visible { color: #fff; }

/* ══ 640px ═════════════════════════════════════════════════════════════ */
@media (min-width: 640px) {
  .contact__links { flex-direction: row; justify-content: center; gap: 2.5rem; }
}

/* ══ 900px ═════════════════════════════════════════════════════════════ */
@media (min-width: 900px) {
  .hdr { padding-block: 1.5rem; }
  .hdr__nav { display: flex; align-items: baseline; gap: 2rem; }
  /* Serif here, not the mono of the wordmark: the two then read as different voices
     rather than one long monospace line, and it matches the mobile nav panel, which
     was already serif. */
  .hdr__nav a {
    font-family: var(--serif); font-size: 1.0625rem; font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--clay);
    text-decoration: underline; text-underline-offset: 0.35em; text-decoration-thickness: 1px;
    padding: 0.4rem 0;
    transition: color 0.25s var(--ease), text-underline-offset 0.25s var(--ease);
  }
  .hdr__nav a:hover, .hdr__nav a:focus-visible { color: var(--clay-deep); text-underline-offset: 0.5em; }
  .hdr__toggle { display: none; }
  .navpanel { display: none !important; }

  /* Side by side, each half the screen. */
  .hero { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }

  .msteps { flex-wrap: nowrap; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }

  /* Photo left, text right — an even 50/50 split, the photo running tall in its half. */
  .about {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(3rem, 7vw, 6rem);
  }
  .about__photo img { aspect-ratio: 2 / 3; }
}

/* ── Reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .tile__btn:hover .tile__img, .tile__btn:focus-visible .tile__img { transform: none; }
}

/* ── Print ──────────────────────────────────────────────────────────────── */
@media print {
  .hdr, .navpanel, .lb, .skip { display: none !important; }
  body { background: #fff; }
}
