/* ==========================================================================
   kovaleria.ph — portrait photography
   Editorial monochrome layout. Sections: hero / about / portfolio / pricing /
   contacts. All copy lives in assets/js/i18n.js (data-i18n keys) so the page
   can be translated without touching markup.
   ========================================================================== */

/* --------------------------------------------------------------- tokens -- */
:root {
  --bg:        #eceae7;
  --sheet:     #ffffff;
  --ink:       #16150f;
  --ink-2:     #3d3b35;
  --muted:     #9a978f;
  --line:      #e2e0da;
  --line-2:    #d2cfc7;
  --dark:      #121210;

  --font-display: 'Bodoni Moda', 'Playfair Display', 'Times New Roman', serif;
  --font-ui:      'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  /* Full-bleed layout: no centred sheet, no side margins. Breathing room
     comes from the gutter, which scales with the viewport instead. */
  --gutter: clamp(20px, 6vw, 190px);
  --radius-pill: 999px;

  /* Photos read monochrome and bloom into full colour on hover.
     Set --photo-filter to `none` to show every image in colour. */
  --photo-filter:       grayscale(1) contrast(1.03);
  --photo-filter-hover: grayscale(0) contrast(1);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ----------------------------------------------------------------- base -- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

/* Author `display` rules outrank the browser default for [hidden], so this
   has to be stated explicitly or hidden="" silently does nothing. */
[hidden] { display: none !important; }

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
/* `padding: 0` matters: the browser default would otherwise force small
   fixed-size buttons (the slider dots) wider than they are tall. */
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

::selection { background: var(--ink); color: var(--sheet); }

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

.u-sr {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden;
}

/* ------------------------------------------------------------ typography -- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: .04em;
  line-height: .95;
  margin: 0;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 6.4vw, 82px);
  letter-spacing: .06em;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
}

.lede {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.3vw, 30px);
  line-height: 1.28;
  letter-spacing: .01em;
  margin: 0;
}

.body-sm {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 14px;
}

.label {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Inline emphasis used through the running text, as in the reference. */
.mark {
  font-style: italic;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: .5px;
}

/* Underlined on every line, the way the reference sets its pull quotes. */
.rule-heading {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 34px);
  line-height: 1.45;
  letter-spacing: .01em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
}
.rule-heading--sm { font-size: clamp(16px, 1.7vw, 21px); }

/* --------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 12px 16px 12px 24px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  background: var(--sheet);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: lowercase;
  white-space: nowrap;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.btn__arrow {
  display: inline-flex;
  transition: transform .4s var(--ease);
}
.btn:hover            { background: var(--ink); color: var(--sheet); border-color: var(--ink); }
.btn:hover .btn__arrow{ transform: translateX(5px); }

.btn--ghost {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn--solid {
  background: var(--ink);
  color: var(--sheet);
  border-color: var(--ink);
}
.btn--solid:hover { background: transparent; color: var(--ink); }

/* ---------------------------------------------------------------- shell -- */
/* The sheet itself is transparent and each band paints its own background.
   That lets the outlined words sit on a negative layer and get clipped by
   the white bands, exactly as they are in the reference. Full width — the
   outlined words now run off the edge of the viewport instead. */
.sheet {
  position: relative;
  width: 100%;
}

.section {
  position: relative;
  background: var(--sheet);
}

.section__inner {
  position: relative;
  z-index: 1;
  padding-inline: var(--gutter);
}

/* Oversized outlined words drifting behind the white sheet. */
.bgwords {
  position: absolute;
  z-index: -1;
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 104px);
  line-height: 1.06;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(22, 21, 15, .17);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.bgwords--l { left: 0;  top: 7%;  transform: translateX(-16%); }
.bgwords--r { right: 0; top: 42%; transform: translateX(16%); text-align: right; }

/* The single hand-drawn line that threads the whole page together. */
.thread {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.thread path {
  fill: none;
  stroke: rgba(22, 21, 15, .16);
  stroke-width: 1;
}

/* ------------------------------------------------------------- top nav -- */
/* Overlay bar sitting on the hero, plus a sticky solid bar after scroll. */
.topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 22px var(--gutter);
  color: #fff;
}
.brand__mark {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
  letter-spacing: .02em;
}
.brand__word {
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  opacity: .85;
  align-self: flex-start;
  padding-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 46px);
  padding: 22px var(--gutter);
  background: rgba(255, 255, 255, .13);
  backdrop-filter: blur(10px);
}
.nav a {
  position: relative;
  font-size: 12px;
  letter-spacing: .06em;
  color: #fff;
  padding-bottom: 3px;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav a:hover::after,
.nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle { display: none; }

/* ------------------------------------------------------- phone menu -- */
/* A single overlay, appended to <body> by shared.js so it is never trapped
   inside a transformed header. Desktop never shows it. */
.mnav {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  background: rgba(16, 16, 14, .97);
  backdrop-filter: blur(18px);
  transform: translateX(100%);
  transition: transform .45s var(--ease);
}
.mnav.is-open { transform: none; }
.mnav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 27px;
  letter-spacing: .06em;
  padding: 6px 12px;
}
.mnav .lang { margin-top: 18px; gap: 4px; }
.mnav .lang__btn { color: #fff; font-size: 13px; padding: 10px 12px; }

.mnav__close {
  position: absolute;
  top: 18px;
  right: max(16px, calc(var(--gutter) - 4px));
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  color: #fff;
}
.mnav__close span {
  position: absolute;
  width: 24px; height: 1px;
  background: currentColor;
}
.mnav__close span:nth-child(1) { transform: rotate(45deg); }
.mnav__close span:nth-child(2) { transform: rotate(-45deg); }

@media (max-width: 720px) { .mnav { display: flex; } }

/* Language switch — only rendered once a second language exists in i18n.js. */
.lang { display: inline-flex; gap: 10px; }
.lang__btn {
  font-size: 11px;
  letter-spacing: .14em;
  color: currentColor;
  opacity: .5;
  transition: opacity .3s var(--ease);
}
.lang__btn:hover,
.lang__btn.is-active { opacity: 1; }

/* Sticky header revealed once the hero is scrolled past. */
.stickybar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--gutter);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-100%);
  transition: transform .5s var(--ease);
}
.stickybar.is-shown { transform: none; }

.stickybar .brand { color: var(--ink); padding: 0; }
.stickybar .nav {
  background: none;
  backdrop-filter: none;
  padding: 0;
}
.stickybar .nav a { color: var(--ink); }

/* Over a full-bleed dark hero the bar goes transparent with white type.
   These must come AFTER the rules above: same specificity, so source order
   is what decides — declared earlier they lost and the logo went dark. */
.stickybar--over {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
}
.stickybar--over .brand,
.stickybar--over .nav a,
.stickybar--over .nav-toggle { color: #fff; }

/* ----------------------------------------------------------------- hero -- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  background: var(--dark);
  color: #fff;
}

.hero__media { position: absolute; inset: 0; }

.hero__slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 52% 48%;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}
.hero__slide.is-active { opacity: 1; }

.hero__half { position: relative; overflow: hidden; }
.hero__half img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(.92);
  transform: scale(1.06);
  transition: transform 8s var(--ease);
}
.hero__slide.is-active .hero__half img { transform: scale(1); }
.hero__half--l::after,
.hero__half--r::after {
  content: "";
  position: absolute; inset: 0;
}
.hero__half--l::after { background: linear-gradient(105deg, rgba(0,0,0,.62), rgba(0,0,0,.22)); }
.hero__half--r::after { background: linear-gradient(255deg, rgba(0,0,0,.42), rgba(0,0,0,.14)); }

.hero__rail {
  position: absolute;
  left: var(--gutter);
  top: 46%;
  transform: translateY(-50%);
  z-index: 20;
  display: grid;
  gap: 10px;
}
.hero__rail a {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 50%;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.hero__rail a:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hero__rail svg { width: 14px; height: 14px; fill: currentColor; }

.hero__center {
  position: absolute;
  z-index: 20;
  left: clamp(24px, 26%, 390px);
  right: var(--gutter);
  top: 50%;
  transform: translateY(-48%);
}
.hero__eyebrow {
  font-size: 11px;
  letter-spacing: .12em;
  line-height: 1.5;
  margin: 0 0 10px clamp(0px, 25vw, 300px);
  opacity: .9;
}
.hero__title {
  font-size: clamp(36px, 7.2vw, 94px);
  letter-spacing: .045em;
  line-height: .94;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero__sub {
  font-size: 11px;
  letter-spacing: .12em;
  line-height: 1.5;
  margin: 12px 0 0 clamp(0px, 25vw, 300px);
  opacity: .9;
}

.hero__cta-left  { position: absolute; z-index: 20; left: var(--gutter);  bottom: 68px; }
.hero__cta-right { position: absolute; z-index: 20; right: var(--gutter); top: 52%; }

.hero__loc {
  position: absolute;
  z-index: 20;
  right: var(--gutter);
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: .06em;
  opacity: .9;
}
.hero__loc svg { width: 11px; height: 11px; fill: currentColor; }

.dots {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero__dots {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
}
.dots button {
  position: relative;
  flex: 0 0 auto;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .45;
  transition: opacity .3s var(--ease);
}
.dots button::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0;
  transition: opacity .35s var(--ease);
}
/* The dot itself stays 6px; this gives the finger something to hit. */
.dots button::after {
  content: "";
  position: absolute;
  inset: -12px;
}
.dots button:hover { opacity: .8; }
.dots button.is-active { opacity: 1; }
.dots button.is-active::before { opacity: .7; }

/* ---------------------------------------------------------------- about -- */
.about { padding: clamp(70px, 11vw, 150px) 0 clamp(60px, 9vw, 120px); }

.about__head { margin-bottom: clamp(36px, 5vw, 74px); }

.about__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
}
.about__row--flip { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
/* Closing note sits low against the photo stack, as in the reference. */
.about__row--flip .about__copy { align-self: end; padding-bottom: clamp(20px, 6vw, 90px); }

.about__copy { max-width: 40ch; }
.about__copy p:first-child { margin-top: 0; }

.about__goal {
  margin: clamp(48px, 7vw, 92px) 0 clamp(30px, 4vw, 54px);
  max-width: 34ch;
}

.about__sign {
  margin-top: 26px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  line-height: 1.5;
}

/* Staggered photo grid — offsets are what give it the editorial rhythm. */
.stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 1.8vw, 22px);
}
.stack figure { margin: 0; overflow: hidden; }
.stack img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: var(--photo-filter);
  transition: filter .7s var(--ease), transform 1.1s var(--ease);
}
.stack figure:hover img { filter: var(--photo-filter-hover); transform: scale(1.035); }

.stack--a > :nth-child(1) { aspect-ratio: 1 / 1; }
.stack--a > :nth-child(2) { margin-top: clamp(-40px, -4vw, -18px); }
.stack--a > :nth-child(3) { margin-top: clamp(14px, 2.4vw, 34px); }
.stack--a > :nth-child(4) { margin-top: clamp(-14px, -1.4vw, -6px); }

.stack--b > :nth-child(2) { margin-top: clamp(24px, 4vw, 58px); }
.stack--b > :nth-child(3) { margin-top: clamp(10px, 1.6vw, 22px); }
.stack--b > :nth-child(4) { margin-top: clamp(-24px, -2.6vw, -12px); }

.stack--a > :nth-child(1) img { aspect-ratio: 1 / 1; }

.zoomable { cursor: zoom-in; }

/* ------------------------------------------------------------ portfolio -- */
.portfolio { padding: clamp(60px, 9vw, 120px) 0 clamp(70px, 10vw, 140px); }

.portfolio__head { margin-bottom: clamp(28px, 4vw, 56px); }

.portfolio__notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(20px, 4vw, 64px);
  max-width: 720px;
  margin-left: auto;
  margin-bottom: clamp(38px, 5vw, 70px);
}

.portfolio__label { margin-bottom: 22px; }

/* Horizontal, snap-scrolling series rail. The active card expands into the
   white "case" treatment; the rest stay as full-bleed photos. */
.rail {
  display: flex;
  gap: clamp(10px, 1.4vw, 18px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.rail::-webkit-scrollbar { display: none; }

.card {
  --rail-gap: clamp(10px, 1.4vw, 18px);
  position: relative;
  flex: 0 0 calc((100% - 2 * var(--rail-gap)) / 3);   /* exactly three per view */
  scroll-snap-align: start;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg);
  text-align: left;
  transition: flex-basis .6s var(--ease);
}
.card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: var(--photo-filter);
  transition: filter .7s var(--ease), transform 1.2s var(--ease);
}
.card:hover img { filter: var(--photo-filter-hover); transform: scale(1.04); }

.card__panel {
  position: absolute;
  left: 18%;
  top: 8%;
  width: 56%;
  padding: 26px 20px;
  background: var(--sheet);
  transition: opacity .5s var(--ease);
}
.card__title, .card__date, .card__count { display: block; }
.card__title {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.7vw, 23px);
  line-height: 1.2;
  letter-spacing: .01em;
  margin: 0;
}
.card__date {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--muted);
}
.card__count {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--muted);
}

/* Active card: a light case with an inset photo and a call to action.
   Laid out as a flex column so the panel can never overlap the photo,
   however narrow the card gets. */
/* Absolute lengths, not percentages: percentage padding on a flex item
   resolves against the rail's width, not the card's, which crushes the
   thumbnail on wide screens. */
.card.is-active {
  display: flex;
  flex-direction: column;
  padding: clamp(16px, 1.8vw, 30px);
  background: var(--bg);
}
/* aspect-ratio gives the thumbnail a definite height so object-fit works,
   while flex-shrink lets it give room back to the panel on narrow cards. */
.card.is-active img {
  position: static;
  flex: 0 1 auto;
  min-height: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}
.card.is-active .card__panel {
  position: static;
  flex: 0 0 auto;
  width: 100%;
  padding: 20px 0 0;
  background: none;
}
.card.is-active .card__cta { display: inline-flex; }
.card__cta { display: none; margin-top: 18px; }
.card:hover .card__cta { background: var(--ink); color: var(--sheet); border-color: var(--ink); }
.card:hover .card__cta .btn__arrow { transform: translateX(5px); }

.portfolio__dots {
  display: flex;
  justify-content: center;
  margin-top: clamp(28px, 4vw, 48px);
  color: var(--ink);
}

.portfolio__more { margin-top: clamp(26px, 4vw, 44px); text-align: center; }

/* Full grid revealed by "view all photographs". */
.grid-all {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: clamp(8px, 1.2vw, 14px);
  margin-top: clamp(26px, 4vw, 44px);
}
.grid-all[hidden] { display: none; }
.grid-all img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: var(--photo-filter);
  cursor: zoom-in;
  transition: filter .7s var(--ease), transform 1s var(--ease);
}
.grid-all img:hover { filter: var(--photo-filter-hover); transform: scale(1.03); }

/* -------------------------------------------------------------- pricing -- */
.pricing {
  padding: clamp(70px, 10vw, 130px) 0;
  border-top: 1px solid var(--line);
}
.pricing__head { margin-bottom: clamp(34px, 5vw, 66px); }

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(20px, 3vw, 44px);
}
.plan {
  display: flex;
  flex-direction: column;
  padding-top: 22px;
  border-top: 1px solid var(--ink);
}
.plan__name {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.15;
  margin: 0 0 6px;
}
.plan__meta { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.plan__price {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1;
  margin: 26px 0 20px;
}
.plan__list { margin: 0 0 26px; padding: 0; list-style: none; }
.plan__list li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
}
.plan__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 8px; height: 1px;
  background: var(--muted);
}
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan__note {
  margin: clamp(28px, 4vw, 46px) 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* ------------------------------------------------------------- contacts -- */
.contacts {
  padding: clamp(70px, 10vw, 130px) 0 clamp(50px, 7vw, 90px);
  border-top: 1px solid var(--line);
}
.contacts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  margin-top: clamp(30px, 4vw, 56px);
}
.contacts__lede { max-width: 26ch; }

.linklist { display: grid; gap: 2px; }
.linklist a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  transition: padding-left .4s var(--ease), border-color .4s var(--ease);
}
.linklist a span:last-child { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.linklist a:hover { padding-left: 10px; border-color: var(--ink); }

/* ------------------------------------------------------------ q & a -- */
/* Left-aligned, and capped so the questions stay on one line rather than
   stretching the full width of a fullscreen layout. */
.qa {
  max-width: 880px;
  margin-top: clamp(50px, 8vw, 110px);
}

.qa__item { border-bottom: 1px solid var(--line); }
.qa__item:first-child { border-top: 1px solid var(--line); }

.qa__q {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 20px 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.35;
  transition: padding-left .4s var(--ease);
}
.qa__q:hover { padding-left: 8px; }

/* the + that becomes a − */
.qa__mark {
  position: relative;
  flex: 0 0 auto;
  width: 11px; height: 11px;
  align-self: center;
}
.qa__mark::before,
.qa__mark::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: var(--ink);
  transition: transform .45s var(--ease);
}
.qa__mark::after { transform: rotate(90deg); }
.qa__item.is-open .qa__mark::after { transform: rotate(0deg); }

/* grid-template-rows animates between 0fr and 1fr, so the answer slides
   open to its own height without measuring anything in JS */
.qa__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--ease);
}
.qa__item.is-open .qa__a { grid-template-rows: 1fr; }

.qa__a > div {
  overflow: hidden;
  min-height: 0;
  visibility: hidden;                     /* keeps it out of the a11y tree */
  transition: visibility .5s var(--ease);
}
.qa__item.is-open .qa__a > div { visibility: visible; }

.qa__a p {
  max-width: 52ch;
  margin: 0;
  padding: 0 0 24px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
}

/* --------------------------------------------------------------- footer -- */
.footer {
  background: var(--sheet);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 26px var(--gutter) 34px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
  text-transform: uppercase;
}
.footer a:hover { color: var(--ink); }

/* ------------------------------------------------------------- lightbox -- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(20px, 5vw, 60px);
  background: rgba(14, 14, 12, .97);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  color: #fff;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.lightbox__btn:hover { background: #fff; color: var(--ink); }
.lightbox__btn svg { width: 14px; height: 14px; fill: currentColor; }
.lightbox__close { top: 22px; right: 22px; }
.lightbox__prev  { left: 22px;  top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__count {
  position: absolute;
  left: 50%; bottom: 22px;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: .18em;
  color: rgba(255,255,255,.7);
}

/* ==========================================================================
   PROJECT PAGE (project.html)
   A single photoshoot, scrolled top to bottom. Every photograph is 3:4, so
   the rhythm comes from size, placement and whitespace.
   ========================================================================== */

.progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 65;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--ink);
}

/* ------------------------------------------------------ project hero -- */
.phero {
  position: relative;
  height: 92vh;
  height: 92svh;
  min-height: 520px;
  overflow: hidden;
  background: var(--dark);
  color: #fff;
}
.phero img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  filter: grayscale(1) contrast(1.04) brightness(.9);
}
.phero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.12) 38%, rgba(0,0,0,.72) 100%);
}

.phero__body {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(48px, 8vh, 96px);
}
.phero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 7vw, 104px);
  line-height: .98;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin: 0;
  max-width: 16ch;
}
.phero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 22px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .85;
}

.phero__back {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  top: clamp(74px, 12vh, 118px);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
}
.phero__back svg { width: 15px; height: 15px; fill: currentColor; transition: transform .4s var(--ease); }
.phero__back:hover svg { transform: translateX(-5px); }

.phero__scroll {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  bottom: clamp(48px, 8vh, 96px);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .8;
}
.phero__scroll i {
  display: block;
  width: 1px; height: 46px;
  background: currentColor;
  transform-origin: top;
  animation: scrollhint 2.4s var(--ease) infinite;
}
@keyframes scrollhint {
  0%   { transform: scaleY(0); opacity: 0; }
  40%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; transform-origin: bottom; }
}

/* --------------------------------------------------------- intro note -- */
.pintro {
  padding: clamp(60px, 10vw, 140px) var(--gutter) clamp(20px, 4vw, 60px);
  background: var(--sheet);
}
.pintro p { max-width: 30ch; }

/* ------------------------------------------------------------- blocks -- */
/* padding-top rather than a margin on the first block: a margin there would
   collapse out of .blocks and show the page background as a stray band. */
.blocks {
  padding: clamp(30px, 5vw, 70px) var(--gutter) clamp(60px, 9vw, 130px);
  background: var(--sheet);
}
.block {
  display: grid;
  gap: clamp(14px, 2.2vw, 34px);
  margin-block: clamp(44px, 7vw, 120px);
}
.block:first-child { margin-top: 0; }
.block:last-child  { margin-bottom: 0; }

.shot { margin: 0; overflow: hidden; cursor: zoom-in; }
.shot img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: var(--photo-filter);
  transition: filter .8s var(--ease), transform 1.3s var(--ease);
}
.shot:hover img { filter: var(--photo-filter-hover); transform: scale(1.028); }

.shot__cap {
  margin-top: 12px;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* one tall frame, centred and deliberately not very wide */
.block--solo   { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.block--solo .shot { width: min(46%, 720px); }

/* one wider frame, cropped shallower so it reads differently to a solo */
.block--wide   { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.block--wide .shot { width: min(74%, 1150px); }
.block--wide img { aspect-ratio: 4 / 5; }

/* full-bleed band, breaking out of the gutter */
.block--edge {
  margin-inline: calc(var(--gutter) * -1);
}
.block--edge img {
  aspect-ratio: 16 / 10;
  object-position: 50% 30%;
}

/* two equal frames */
.block--duo { grid-template-columns: 1fr 1fr; }

/* two frames of different weight, the heavier one dropped down the page */
.block--offset  { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr); align-items: start; }
.block--offset  > :nth-child(2) { margin-top: clamp(30px, 7vw, 120px); }
.block--offsetR { grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr); align-items: start; }
.block--offsetR > :nth-child(1) { margin-top: clamp(30px, 7vw, 120px); }

/* ------------------------------------------------------- project foot -- */
.pfoot {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
  padding: clamp(50px, 8vw, 110px) var(--gutter);
  background: var(--sheet);
  border-top: 1px solid var(--line);
}
.pnext {
  display: flex;
  align-items: center;
  gap: 22px;
}
.pnext--prev { justify-content: flex-start; }
.pnext--next { justify-content: flex-end; text-align: right; }
.pnext img {
  width: 84px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: var(--photo-filter);
  transition: filter .7s var(--ease);
  order: 0;
}
.pnext--next img { order: 1; }
.pnext:hover img { filter: var(--photo-filter-hover); }
.pnext__label,
.pnext__title { display: block; }
.pnext__label { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.pnext__title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.2;
  margin-top: 8px;
}
.pfoot__cta { display: flex; justify-content: center; }

/* ==========================================================================
   CLIENT GALLERY (gallery.html) + FIND YOUR STORY (find-your-story.html)
   ========================================================================== */

.ghead {
  padding: clamp(90px, 14vh, 190px) var(--gutter) clamp(40px, 6vw, 80px);
  background: var(--sheet);
}
.ghead__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 6vw, 88px);
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 14px 0 0;
  max-width: 18ch;
}
.ghead__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 22px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.ghead__note {
  max-width: 46ch;
  margin: 26px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
}
.ghead__all { margin-top: clamp(28px, 4vw, 44px); }

/* ---------------------------------------------------------------- rows -- */
.grows {
  padding: 0 var(--gutter) clamp(60px, 9vw, 130px);
  background: var(--sheet);
}

/* Justified row: widths follow each photograph's aspect ratio, so every
   frame in a row ends up the same height. Each one is capped at --rowh tall
   (expressed as a max-width of rowh x aspect) and the row centres whatever
   is left over. Nothing is ever cropped — a client sees the whole frame. */
.grow {
  --rowgap: clamp(8px, 1.1vw, 18px);
  display: flex;
  justify-content: center;
  gap: var(--rowgap);
  margin-block: clamp(8px, 1.1vw, 18px);
}
.grow--full { margin-inline: calc(var(--gutter) * -1); }
.grow:first-child { margin-top: 0; }

.gshot {
  /* flex-grow is set per photo as aspect x 100 — a bare aspect below 1
     would claim only that fraction of the free space and under-fill. */
  flex: 1 1 0;
  max-width: calc(var(--rowh) * var(--a));
  margin: 0;
  min-width: 0;
  overflow: hidden;
  cursor: zoom-in;
}
.gshot img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 1.2s var(--ease), opacity .6s var(--ease);
}
.gshot:hover img { transform: scale(1.02); }

/* Client galleries show the photographs as shot — no monochrome treatment. */

.gsplash {
  display: grid;
  gap: 28px;
  justify-items: start;
  padding: clamp(120px, 22vh, 260px) var(--gutter);
  background: var(--sheet);
}
.gsplash .lede { max-width: 30ch; }

/* ------------------------------------------------------ find your story -- */
.findpage {
  min-height: 78vh;
  padding: clamp(110px, 18vh, 220px) var(--gutter) clamp(60px, 10vw, 130px);
  background: var(--sheet);
}
.findpage__inner { max-width: 720px; }
.findpage__lede { margin-top: 22px; max-width: 34ch; }

.findform {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2.4vw, 30px);
  margin-top: clamp(40px, 6vw, 70px);
}
.findform.is-busy { opacity: .5; pointer-events: none; }
.field--code { grid-column: 1 / -1; max-width: 220px; }
.findform__go { grid-column: 1 / -1; justify-self: start; }

.field { display: grid; gap: 8px; }
.field__label {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.field__input {
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  border-radius: 0;
  background: none;
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  color: var(--ink);
  transition: border-color .4s var(--ease);
}
.field__input:focus { outline: none; border-color: var(--ink); }
.field__input::placeholder { color: var(--line-2); }

.findform__msg {
  margin-top: 26px;
  font-size: 13px;
  line-height: 1.7;
  max-width: 46ch;
  min-height: 1.7em;
}
.findform__msg.is-bad  { color: #9c2b2b; }
.findform__msg.is-note { color: var(--muted); }

@media (max-width: 720px) {
  .findform { grid-template-columns: 1fr; }
  /* One photograph per row on a phone — two portraits side by side are
     unreadable at 375px. */
  .grow { flex-wrap: wrap; }
  .grow .gshot { flex-basis: 100%; max-width: 100%; }
}

/* ==========================================================================
   STUDIO (studio.html) — Valeria's side. Utilitarian, but the same type.
   ========================================================================== */

.studiopage { background: var(--bg); }

.login {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 24px;
}
.login__box {
  display: grid;
  gap: 18px;
  width: min(100%, 360px);
  padding: clamp(28px, 5vw, 44px);
  background: var(--sheet);
}
.login__title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  margin: 0 0 6px;
}
.login__msg { margin: 0; font-size: 12px; color: #9c2b2b; min-height: 1.4em; }

.studio { min-height: 100svh; }
.studio__bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(16px, 3vw, 32px);
  background: var(--sheet);
  border-bottom: 1px solid var(--line);
}
.studio__bar .brand { padding: 0; color: var(--ink); }
.studio__barright { display: flex; align-items: center; gap: 18px; }
.studio__who { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.lnk {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid transparent;
}
.lnk:hover { color: var(--ink); border-bottom-color: currentColor; }
.lnk--danger:hover { color: #9c2b2b; }

.studio__body {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  align-items: start;
}
.studio__side {
  position: sticky;
  top: 57px;
  padding: 20px clamp(12px, 1.6vw, 20px);
  border-right: 1px solid var(--line);
  background: var(--sheet);
  min-height: calc(100svh - 57px);
}
.studio__new { width: 100%; justify-content: space-between; margin-bottom: 18px; }

.shootlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.shootlist__item button {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 11px 12px;
  text-align: left;
  border-radius: 3px;
}
.shootlist__item button:hover { background: var(--bg); }
.shootlist__item.is-on button { background: var(--ink); color: var(--sheet); }
.shootlist__name { font-family: var(--font-display); font-size: 16px; }
.shootlist__meta { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }

.studio__main { padding: clamp(18px, 3vw, 34px); }
.studio__empty { color: var(--muted); font-size: 13px; }

.shoothead {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 2.4vw, 26px);
  background: var(--sheet);
  margin-bottom: 18px;
}
.shoothead__fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}
.field__input--sm {
  font-family: var(--font-ui);
  font-size: 14px;
  padding: 8px 0;
}
.shoothead__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .06em; }

/* ------------------------------------------------------------- upload -- */
.drop {
  display: grid;
  place-items: center;
  gap: 6px;
  padding: clamp(28px, 5vw, 52px);
  border: 1px dashed var(--line-2);
  background: var(--sheet);
  text-align: center;
  cursor: pointer;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.drop.is-target { border-color: var(--ink); background: var(--bg); }
.drop__text { margin: 0; font-family: var(--font-display); font-size: 18px; }
.drop__link { text-decoration: underline; text-underline-offset: 3px; }
.drop__hint { margin: 0; font-size: 11px; color: var(--muted); }

.uploads { display: grid; gap: 6px; margin-top: 12px; }
.upload {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px 60px;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: var(--sheet);
  font-size: 11px;
}
.upload__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload__bar { height: 2px; background: var(--line); }
.upload__bar i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .3s var(--ease); }
.upload__pct { text-align: right; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.upload.is-bad .upload__pct { color: #9c2b2b; }

/* ------------------------------------------------------ layout editor -- */
.editor { margin-top: 20px; }

.egap { height: 14px; border-radius: 2px; transition: background .2s var(--ease); }
.egap.is-target { background: var(--ink); height: 16px; }

.erow {
  display: grid;
  gap: 10px;
  padding: 10px;
  background: var(--sheet);
  outline: 1px solid transparent;
  transition: outline-color .2s var(--ease);
}
.erow.is-target { outline-color: var(--ink); }
.erow__strip { display: flex; gap: 8px; align-items: flex-start; }
.erow__tools { display: flex; gap: 6px; flex-wrap: wrap; }

.ecell {
  position: relative;
  flex: 1 1 0;
  margin: 0;
  min-width: 0;
  max-width: 190px;
  cursor: grab;
}
.ecell.is-dragging { opacity: .35; }
.ecell img { width: 100%; height: auto; display: block; pointer-events: none; }
.ecell__x {
  position: absolute;
  top: 5px; right: 5px;
  display: grid;
  place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  opacity: 0;
  transition: opacity .2s var(--ease);
}
.ecell:hover .ecell__x { opacity: 1; }
.ecell__x svg { fill: currentColor; }

/* There is no hover on a touch screen, so the remove button would never
   appear. Show it permanently and make it thumb-sized instead. */
@media (hover: none) {
  .ecell__x { opacity: 1; width: 30px; height: 30px; }
}

.chip:disabled { opacity: .3; cursor: default; }
.chip:disabled:hover { border-color: var(--line-2); color: var(--muted); }

.chip {
  padding: 5px 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--sheet); }
.chip--ghost { border-style: dashed; }

.editor__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
}
.editor__hint { margin: 0; font-size: 11px; color: var(--muted); max-width: 52ch; }

.studio__toast {
  position: fixed;
  left: 50%; bottom: 24px;
  transform: translate(-50%, 20px);
  z-index: 90;
  margin: 0;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--sheet);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.studio__toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.studio__toast.is-bad { background: #9c2b2b; }

@media (max-width: 800px) {
  .studio__body { grid-template-columns: 1fr; }
  .studio__side { position: static; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .ecell { max-width: 120px; }

  /* Thumb-sized controls. */
  .chip { padding: 9px 12px; }
  .toggle input { width: 20px; height: 20px; }
  .toggle { padding: 8px 0; }
  .lnk { display: inline-block; padding: 8px 0; }
  .studio__bar .brand { padding: 8px 0; }
  .upload { grid-template-columns: minmax(0, 1fr) 70px 50px; }
}

/* ------------------------------------------------------- reveal on scroll -- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* -------------------------------------------------------------- responsive -- */
@media (max-width: 900px) {
  .hero__slide { grid-template-columns: 58% 42%; }
  .hero__center { left: var(--gutter); right: var(--gutter); max-width: none; }
  .hero__eyebrow, .hero__sub { margin-left: 0; }
  .hero__cta-right { top: auto; bottom: 68px; }
  .hero__rail { top: auto; bottom: 26px; left: var(--gutter); transform: none; display: flex; }
  .hero__loc { display: none; }

  .about__row,
  .about__row--flip { grid-template-columns: 1fr; }
  .about__copy { max-width: none; }
  .portfolio__notes { margin-left: 0; }
  .card { flex-basis: 78%; }
  .bgwords { display: none; }

  .block--solo .shot { width: min(68%, 460px); }
  .block--wide .shot { width: 100%; }
  .pnext--next { justify-content: flex-start; text-align: left; }
  .pnext--next img { order: 0; }
}

@media (max-width: 720px) {
  /* The in-header nav is desktop-only; phones get the .mnav overlay. */
  .nav { display: none; }

  .nav-toggle {
    position: relative;
    display: grid;
    gap: 5px;
    padding: 22px var(--gutter);
  }
  /* Tap targets: the hamburger and logo in the slim sticky bar were only
     13px and 24px tall. Padding, not size, so nothing looks different. */
  .stickybar .nav-toggle { padding: 16px 6px; margin-right: -6px; }
  .stickybar .brand { padding: 10px 0; }
  .nav-toggle span {
    display: block;
    width: 24px; height: 1px;
    background: currentColor;
  }
  .topbar .nav-toggle { color: #fff; }
  .stickybar:not(.stickybar--over) .nav-toggle { color: var(--ink); }

  /* Dots need room between them once each has a 30px hit area. */
  .dots { gap: 24px; }

  /* Text links are the last of the thin tap targets. */
  .footer { justify-content: flex-start; gap: 4px 18px; }
  .footer a { padding: 8px 0; }
  .phero__back { padding: 10px 0; }

  .hero__slide { grid-template-columns: 1fr; }
  .hero__half--r { display: none; }
  .hero__cta-left, .hero__cta-right { position: static; }
  .hero__ctas {
    position: absolute;
    z-index: 20;
    left: var(--gutter);
    right: var(--gutter);
    bottom: 80px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .hero__rail { bottom: 30px; }
  /* The hero slider keeps auto-advancing; it just loses its indicator here. */
  .hero__dots { display: none; }

  .card { flex-basis: 84%; }

  /* On a phone the offsets and columns stop earning their keep — one
     photograph at a time reads better than two squeezed side by side. */
  .block--duo,
  .block--offset,
  .block--offsetR { grid-template-columns: 1fr; }
  .block--offset  > :nth-child(2),
  .block--offsetR > :nth-child(1) { margin-top: 0; }
  .block--solo .shot { width: 100%; }
  .block--edge img { aspect-ratio: 4 / 5; }
  .phero__scroll { display: none; }

  .lightbox__prev, .lightbox__next { top: auto; bottom: 20px; transform: none; }
  .lightbox__prev { left: calc(50% - 62px); }
  .lightbox__next { right: calc(50% - 62px); }
  .lightbox__count { bottom: 82px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
