/* ============ Header & Nav ============ */
/* --safe-top grows the header by the camera-cutout height where the
   browser reports one (home-screen web apps, some Android browsers); it
   is 0 elsewhere, including ordinary iPhone Safari tabs. Safari draws
   the Dynamic Island strip itself — see "Phones" below. */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: calc(var(--header-h) + var(--safe-top));
  padding-top: var(--safe-top);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out), height var(--dur-med) var(--ease-out);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(8, 8, 8, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--color-border);
  height: calc(var(--header-h) - 16px + var(--safe-top));
}

/* Phones: the header is solid page-black from the moment the page
   loads, not only after scrolling. iPhone Safari (iOS 26+) fills the
   strip around the Dynamic Island by copying the background colour of
   the bar pinned to the top of the page — but only a fully solid one.
   A transparent or see-through header (rgba, backdrop-filter) gives it
   nothing to copy, so it shows the page scrolling behind the clock
   instead. Hence no alpha and no blur here. Desktop keeps the
   see-through header over the hero. */
@media (max-width: 859px) {
  .site-header,
  .site-header.is-scrolled {
    background: var(--color-bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom-color: var(--color-border);
  }

  /* Belt and braces for that strip: in an ordinary Safari tab the page
     still scrolls under the clock and Dynamic Island, *above* the
     header's top edge, and Safari doesn't always take the header's
     colour for it. This block hangs off the top of the header, painted
     in the header's own colour (page-black, or ink with the menu open),
     so the page is physically covered there whatever Safari decides.
     It sits above the screen and is never seen on other devices. */
  .site-header::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 100vh;
    background: inherit;
    pointer-events: none;
  }
}

.site-header__inner {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-left: max(var(--space-5), var(--safe-left));
  padding-right: max(var(--space-5), var(--safe-right));
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

.wordmark span {
  color: var(--color-accent);
}

.nav-desktop {
  display: none;
}

@media (min-width: 860px) {
  .nav-desktop {
    display: flex;
    gap: var(--space-6);
    align-items: center;
  }
}

.nav-desktop a {
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  padding-block: var(--space-2);
  color: var(--color-text);
  opacity: 0.85;
  transition: opacity var(--dur-fast) var(--ease-out);
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  opacity: 1;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--color-accent);
  transition: right var(--dur-med) var(--ease-out);
}

.nav-desktop a:hover::after,
.nav-desktop a[aria-current="page"]::after {
  right: 0;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: var(--space-2);
}

@media (min-width: 860px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--color-text);
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Mobile menu ----------
   A full-screen menu: the page is replaced by a solid near-black screen
   with the four pages in large display type and Instagram / Email
   pinned to the bottom. Being one solid sheet also keeps iPhone Safari's
   top and bottom bars dark while it's open.

     .nav-mobile         the full-screen layer (appears instantly, fades out)
     .nav-mobile__panel  its content column

   While open the header turns the same ink (js/main.js sets
   .is-menu-open), so name, close button and menu read as one screen.

   Closed, the whole thing is visibility:hidden — not just moved off
   screen — so its links can't be reached by Tab. The visibility flip
   waits for the closing transition to finish. */

/* Height: iPhone Safari (iOS 26) ends a plain `inset: 0` overlay at the
   top of its floating bottom search bar, so the page kept showing in the
   strip behind the bar. 100lvh is the screen height with Safari's bars
   counted as hidden, which carries the menu all the way down behind the
   bar. The panel's bottom padding adds the bar's height back
   (100lvh − 100svh), so Instagram / Email stay above it and tappable.
   Elsewhere lvh and svh are equal and this is just full height.

   Background: transparent while closed, ink only while open. Safari
   colours its bars from fixed elements touching the screen edges; a
   closed menu that kept its ink background (even invisible) could tint
   them during normal browsing. */
.nav-mobile {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100lvh;
  z-index: 99;
  overflow-y: auto; /* landscape phones: lets the links scroll if needed */
  overscroll-behavior: contain;
  background-color: transparent;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 220ms var(--ease-out),
    visibility 0s linear 260ms,
    background-color 0s linear 260ms;
}

/* Opening is instant: the screen goes black on the tap, with no fade,
   and only the links animate in (below). Closing still fades out. */
.nav-mobile.is-open {
  background-color: var(--color-ink);
  opacity: 1;
  visibility: visible;
  transition: none;
}

.nav-mobile__panel {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding:
    calc(var(--header-h) + var(--safe-top) + var(--space-7))
    max(var(--space-5), var(--safe-right))
    calc(var(--space-6) + var(--safe-bottom))
    max(var(--space-5), var(--safe-left));
  /* Browsers without lvh/svh ignore this and keep the line above. */
  padding-bottom: calc(var(--space-6) + var(--safe-bottom) + (100lvh - 100svh));
}

/* The four pages: large, left-aligned, no numbers or rules. */
.nav-mobile__panel > a {
  align-self: flex-start;
  padding-block: var(--space-2);
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 9vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-text);
  transition: color var(--dur-fast) var(--ease-out);
}

.nav-mobile__panel > a:hover,
.nav-mobile__panel > a:focus-visible,
.nav-mobile__panel > a[aria-current="page"] {
  color: var(--color-accent);
}

/* Instagram and Email, pinned to the bottom of the screen in the small
   mono capitals used for labels across the site. Each link is a 44px-tall
   tap target. */
.nav-mobile__foot {
  margin-top: auto;
  padding-top: var(--space-7);
  display: flex;
  gap: var(--space-6);
}

.nav-mobile__foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color var(--dur-fast) var(--ease-out);
}

.nav-mobile__foot a:hover,
.nav-mobile__foot a:focus-visible {
  color: var(--color-accent);
}

/* Each line rises in a beat after the one above as the menu opens; on
   close they all leave at once, faster, so closing never feels slow. */
.nav-mobile__panel > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.nav-mobile.is-open .nav-mobile__panel > * {
  opacity: 1;
  transform: none;
  transition-duration: 420ms;
  transition-delay: calc(120ms + var(--i, 0) * 60ms);
}

.nav-mobile__panel > :nth-child(2) { --i: 1; }
.nav-mobile__panel > :nth-child(3) { --i: 2; }
.nav-mobile__panel > :nth-child(4) { --i: 3; }
.nav-mobile__panel > :nth-child(5) { --i: 4; }

/* Header and panel become one sheet while the menu is open. */
.site-header.is-menu-open {
  background: var(--color-ink);
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: none; /* black at once, with the menu */
}

/* While the menu is open (js/main.js puts .is-menu-open on <html>) the
   page itself is hidden and the root turns the menu's ink. iPhone Safari
   draws whatever is under its Dynamic Island strip and floating search
   bar — areas the menu can't reliably cover — so with the page gone
   there is nothing left there but the same ink as the menu. Both happen
   on the tap, together with the menu appearing. visibility (not
   display) keeps the layout and scroll position. */
html.is-menu-open,
html.is-menu-open body {
  background-color: var(--color-ink);
  overflow: hidden;
}

html.is-menu-open #main,
html.is-menu-open .site-footer {
  visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .nav-mobile,
  .nav-mobile__panel > * {
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  .nav-mobile__panel > * {
    transform: none;
  }
}

@media (min-width: 860px) {
  .nav-mobile {
    display: none;
  }
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  font-size: var(--fs-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.btn:hover {
  background: var(--color-accent);
  color: var(--color-ink);
  transform: translateY(-2px);
}

.btn--solid {
  background: var(--color-accent);
  color: var(--color-ink);
}

.btn--solid:hover {
  background: var(--color-accent-soft);
  border-color: var(--color-accent-soft);
}

.btn--ghost {
  border-color: var(--color-border-strong);
}

.btn--ghost:hover {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--color-ink);
}

/* The hero image carries two independent motions, so they get two
   elements: the wrapper is translated on scroll (parallax, driven by
   js/main.js) while the image itself runs the Ken Burns drift. Sharing
   one element would mean both fighting over the same `transform`. */
.hero__media-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  will-change: transform;
}

/* Parallax: the photo drifts down at 28% of scroll speed over the first
   screen of scrolling. Where the browser supports scroll-driven
   animations, it runs here in CSS, tied directly to the scroll position,
   so it moves in lockstep with the page and stops at the top during
   iPhone's overscroll bounce. Moving it from JavaScript lagged a frame
   behind on phones, which is what made it jitter. Browsers without
   support fall back to js/main.js on desktop only. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero__media-wrap {
      animation: hero-parallax linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 100vh;
    }
  }
}

@keyframes hero-parallax {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(0, 28vh, 0);
  }
}

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Was 0.75 to stop the photo fighting the headline on top of it. With
     the headline gone it should read as a photograph, not a backdrop. */
  opacity: 0.94;
  transform-origin: 52% 48%;
  animation: kenburns 32s ease-in-out infinite alternate;
}

/* Slow push-in with a touch of drift, so a still frame keeps breathing.
   Subtle by design — it should register as atmosphere, not as movement. */
@keyframes kenburns {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.11) translate3d(-1.6%, -1.2%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__media {
    animation: none;
    transform: none;
  }
  .hero__media-wrap {
    transform: none !important;
    will-change: auto;
  }
}

/* The scrim used to hold down a headline, a paragraph and two buttons
   across the whole frame. Now it only has to keep the header legible at
   the top and the data plate legible at the bottom, so the middle of the
   photograph is left almost untouched. */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(8,8,8,0.50) 0%,
      rgba(8,8,8,0.06) 26%,
      rgba(8,8,8,0.06) 52%,
      rgba(8,8,8,0.90) 100%);
}

/* Inline padding and centring are NOT set here: css/editorial.css gives
   this element the same twelve-column track list as the editorial flow,
   so the data plate starts on exactly the line the frame captions below
   it start on. One left margin down the whole page. */
.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: var(--space-9) var(--space-8);
}

/* ============ Section framing ============ */
/* 72px top and bottom on every page: the same as the page header's
   bottom padding, so the gap from a page title to the first section
   matches across About, Gallery, Contact and Shop. (Was 104px; the
   About page had already been brought down to 72.) */
.section {
  padding-block: var(--space-8);
}

.section--tight {
  padding-block: var(--space-8);
}

.section--alt {
  background: var(--color-bg-alt);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-7);
}

.section__title {
  margin-top: var(--space-3);
  max-width: 20ch;
}

/* ============ Statement / pull-quote ============ */
.statement {
  text-align: center;
  padding-block: var(--space-8);
}

.statement p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-xl);
  color: var(--color-text);
  max-width: 20ch;
  margin-inline: auto;
  line-height: 1.25;
}

/* ============ Masonry gallery grid ============
   Explicit flex columns, filled round-robin by js/gallery.js — NOT CSS
   multi-column. `column-count` is a maximum, not a target: multicol
   balances by finding the shortest height that fits the content within
   the column budget, so a 4-photo filter would settle into two columns
   of two and leave the third empty. Real columns always get used.

   --cols is the single source of truth for the breakpoints; gallery.js
   reads it back off the computed style so the numbers live only here. */
.grid-gallery {
  --cols: 1;
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
}

@media (min-width: 640px) {
  .grid-gallery { --cols: 2; }
}

@media (min-width: 1080px) {
  .grid-gallery { --cols: 3; }
}

.grid-gallery__col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.grid-gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  /* Deliberately transparent: a surface-colored box would read as an
     empty lit frame while the photo is still loading or mid-wipe. */
  background: transparent;
  /* Keeps the [data-reveal="wipe"] clip-path in step with the corners */
  --reveal-radius: var(--radius-md);
}

.grid-gallery__btn {
  display: block;
  width: 100%;
  position: relative;
}

.grid-gallery__item img {
  width: 100%;
  height: auto;
  transition: transform var(--dur-slow) var(--ease-out), filter var(--dur-slow) var(--ease-out);
}

.grid-gallery__btn:hover img,
.grid-gallery__btn:focus-visible img {
  transform: scale(1.045);
}

.grid-gallery__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-5) var(--space-4) var(--space-4);
  background: linear-gradient(0deg, rgba(8,8,8,0.88) 0%, transparent 100%);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  text-align: left;
}

.grid-gallery__btn:hover .grid-gallery__caption,
.grid-gallery__btn:focus-visible .grid-gallery__caption {
  opacity: 1;
  transform: translateY(0);
}

.grid-gallery__caption .cat {
  display: block;
  font-size: var(--fs-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 2px;
}

.grid-gallery__caption .title {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  color: var(--color-text);
}

/* Filter pills */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-7);
}

.filter-pill {
  padding: var(--space-2) var(--space-5);
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: all var(--dur-fast) var(--ease-out);
}

.filter-pill:hover {
  border-color: var(--color-accent);
  color: var(--color-text);
}

.filter-pill[aria-pressed="true"] {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-ink);
}

/* Destinations toggle — sits in the main pill row but isn't a category
   value; it opens/closes the destination row below instead of selecting
   anything itself, so it gets its own visual language: an outline while
   open, a filled look only once a destination is actually narrowing the
   grid (independent of open/closed — see updateDestinationsToggle in
   js/gallery.js). */
.filter-pill--destinations[aria-expanded="true"] {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.filter-pill--destinations.has-selection {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-ink);
}

/* Clear all — a quiet text button at the end of the main row, not a
   pill, so it never reads as one more filter. js/gallery.js shows it
   only while a category or destination is narrowing the grid. */
.filter-clear {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: var(--space-2) var(--space-3);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color var(--dur-fast) var(--ease-out);
}

/* A drawn ×, so it lines up with the text in any font. */
.filter-clear::before {
  content: "";
  width: 0.7em;
  height: 0.7em;
  background:
    linear-gradient(45deg, transparent calc(50% - 0.75px), currentColor calc(50% - 0.75px), currentColor calc(50% + 0.75px), transparent calc(50% + 0.75px)),
    linear-gradient(-45deg, transparent calc(50% - 0.75px), currentColor calc(50% - 0.75px), currentColor calc(50% + 0.75px), transparent calc(50% + 0.75px));
}

.filter-clear:hover,
.filter-clear:focus-visible {
  color: var(--color-accent);
}

/* display:inline-flex above would otherwise beat the UA [hidden] rule. */
.filter-clear[hidden] {
  display: none;
}

/* Destination sub-filter — shown/hidden purely by the Destinations
   toggle above, independent of which category pill is active, so it can
   narrow "All Work" or any single category the same way (see
   js/gallery.js). Deliberately smaller/quieter than the primary pills so
   it still reads calmly once a destination list grows past a handful of
   entries and wraps to two lines. */
.filters--sub {
  /* .filters (the main row right before this one) already carries a
     var(--space-7) margin-bottom; pull up so the two rows read as one
     nested group with just var(--space-3) between them. */
  margin-top: calc(var(--space-3) - var(--space-7));
  margin-bottom: var(--space-7);
  padding-left: var(--space-1);
  gap: var(--space-2);
}

.filters--sub .filter-pill {
  padding: var(--space-1) var(--space-4);
  font-size: 0.68rem;
  border-color: var(--color-border);
  color: var(--color-text-muted);
}

.filters--sub .filter-pill[aria-pressed="true"] {
  background: transparent;
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* .filters sets display:flex unconditionally, which otherwise beats the
   UA [hidden] rule — this is what actually hides/shows the row when the
   Destinations toggle is clicked. */
.filters--sub[hidden] {
  display: none;
}

/* Shown instead of the grid when a category + destination combination
   has no photos yet (see renderGrid in js/gallery.js). */
.grid-gallery__empty {
  color: var(--color-text-muted);
  font-size: var(--fs-base);
}

/* ============ Lightbox ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(4, 4, 4, 0.94);
  padding:
    max(var(--space-5), var(--safe-top))
    max(var(--space-5), var(--safe-right))
    max(var(--space-5), var(--safe-bottom))
    max(var(--space-5), var(--safe-left));
}

.lightbox.is-open {
  display: flex;
}

.lightbox__figure {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.lightbox__figure img {
  max-height: 74vh;
  width: auto;
  margin-inline: auto;
  border-radius: var(--radius-sm);
}

.lightbox__caption {
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}

.lightbox__close,
.lightbox__nav {
  position: fixed;
  top: 0;
  color: var(--color-text);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.lightbox__close {
  top: calc(var(--space-5) + var(--safe-top));
  right: calc(var(--space-5) + var(--safe-right));
}

.lightbox__prev, .lightbox__next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  width: 56px;
  height: 56px;
  color: var(--color-text-muted);
}

.lightbox__prev:hover, .lightbox__next:hover, .lightbox__close:hover {
  color: var(--color-accent);
}

.lightbox__prev { left: calc(var(--space-3) + var(--safe-left)); }
.lightbox__next { right: calc(var(--space-3) + var(--safe-right)); }

/* ============ Category pill links (home) ============ */
.category-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.category-card {
  flex: 1 1 200px;
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.category-card:hover img {
  transform: scale(1.06);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,8,8,0.1), rgba(8,8,8,0.85));
}

.category-card__label {
  position: absolute;
  inset-inline: 0;
  bottom: var(--space-5);
  z-index: 1;
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
}

/* ============ Split layout (about teaser, about page) ============ */
.split {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-9);
  }
  .split--reverse .split__media {
    order: 2;
  }
}

.split__media {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.split__body p + p {
  margin-top: var(--space-4);
}

/* A little more than between paragraphs, so the heading still
   reads as the start of the block. */
.split__body h2 + p {
  margin-top: var(--space-5);
}

/* ============ Instagram grid ============ */
.insta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .insta-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1080px) {
  .insta-grid { grid-template-columns: repeat(6, 1fr); }
}

.insta-grid a {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  display: block;
}

.insta-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-med) var(--ease-out), filter var(--dur-med) var(--ease-out);
}

.insta-grid a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8,8,8,0.35);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-out);
}

.insta-grid a:hover::after {
  opacity: 1;
}

.insta-grid a:hover img {
  transform: scale(1.08);
}

/* ============ CTA banner ============ */
/* Base black with a hairline rule, not a color field: the solid button
   is the only accent in the block, matching how green is used elsewhere. */
.cta-banner {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-8);
  text-align: center;
}

.cta-banner h2 {
  font-size: var(--fs-xl);
  max-width: 18ch;
  margin-inline: auto;
}

.cta-banner p {
  margin-top: var(--space-4);
  color: var(--color-text-muted);
}

.cta-banner .btn {
  margin-top: var(--space-6);
}

/* ============ Cards: values / testimonials / press ============ */
.value-row {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 720px) {
  .value-row { grid-template-columns: repeat(3, 1fr); }
}

.value-card {
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.value-card .num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-accent);
  font-size: var(--fs-lg);
}

.value-card h3 {
  margin-top: var(--space-4);
}

.value-card p {
  margin-top: var(--space-3);
}

.testimonial-grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 720px) {
  .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
}

.testimonial-card {
  padding: var(--space-6);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.testimonial-card .stars {
  color: var(--color-accent);
  letter-spacing: 0.2em;
  font-size: var(--fs-sm);
}

.testimonial-card blockquote {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  line-height: 1.4;
}

.testimonial-card cite {
  font-style: normal;
  font-size: var(--fs-sm);
  color: var(--color-text-faint);
}

.press-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
  padding-block: var(--space-6);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.press-strip span {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  letter-spacing: 0.04em;
  color: var(--color-text-faint);
  opacity: 0.7;
  transition: opacity var(--dur-fast) var(--ease-out);
}

.press-strip span:hover {
  opacity: 1;
  color: var(--color-text);
}

/* ============ Forms ============
   Set like a page from a field notebook rather than a web form: no
   boxes, no fills, no rounded corners. Labels are numbered entries in
   the mono register the homepage uses for frame data, answers are
   written on a single hairline, and the message is a ruled page.
   Only contact.html uses these. */

.form-grid {
  display: grid;
  /* minmax(0, …) lets the track shrink below the captcha iframe's fixed
     303px width instead of stretching the whole form past the viewport. */
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  counter-reset: entry;
}

@media (min-width: 620px) {
  .form-grid--2col {
    grid-template-columns: 1fr 1fr;
    column-gap: var(--space-7);
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* "01  NAME *" — the number is a CSS counter, so reordering or adding
   fields in contact.html renumbers them without touching the copy. */
.field > label {
  counter-increment: entry;
  display: flex;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.field > label::before {
  content: counter(entry, decimal-leading-zero);
  color: var(--color-text-faint);
  font-variant-numeric: tabular-nums;
}

.field input,
.field select,
.field textarea {
  --rule: var(--color-border-strong);
  width: 100%;
  background-color: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  padding: var(--space-2) 0;
  font-size: var(--fs-base);
  color: var(--color-text);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.field input::placeholder,
.field textarea::placeholder {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  color: var(--color-text-faint);
  opacity: 1;
}

/* Focus thickens the rule and turns it accent — the line you're
   writing on, not a glowing box. */
.field input:focus,
.field select:focus {
  --rule: var(--color-accent);
  box-shadow: 0 1px 0 var(--color-accent);
  outline: none;
}

/* Native select chrome replaced with a plain chevron so it sits on the
   rule like the text inputs. */
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: var(--space-6);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23a3a3a0' stroke-width='1.25'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  cursor: pointer;
}

.field select:invalid {
  color: var(--color-text-faint);
}

.field select option {
  background: var(--color-surface);
  color: var(--color-text);
}

/* The message shares the single rule the other fields use. It starts
   two lines tall and grows a line at a time as the visitor writes:
   field-sizing does it natively where supported, and js/contact.js
   sizes it by hand everywhere else. Past the cap it scrolls instead of
   pushing the send button off the screen. */
.field textarea {
  line-height: 1.6;
  field-sizing: content;
  min-height: calc(2lh + var(--space-2) * 2);
  max-height: 60vh;
  resize: none;
  overflow-y: auto;
}

.field textarea:focus {
  --rule: var(--color-accent);
  box-shadow: 0 1px 0 var(--color-accent);
  outline: none;
}

/* Browser autofill paints its own pale fill over transparent inputs;
   paint the page ground back over it. */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--color-text);
  box-shadow: inset 0 0 0 1000px var(--color-bg);
  caret-color: var(--color-text);
}

/* Inline validation (set by contact.js on blur) */
.field input[aria-invalid="true"],
.field input[aria-invalid="true"]:focus {
  --rule: var(--color-error);
  box-shadow: 0 1px 0 var(--color-error);
}

/* Square, mono, and sized to its words — a stamp at the foot of the
   entry rather than a full-width bar. Full width only on phones, where
   it's the easier target. */
.form-grid [type="submit"] {
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
}

@media (min-width: 620px) {
  .form-grid [type="submit"] {
    width: auto;
    /* .field is a flex column, which would stretch it back to full width */
    align-self: flex-start;
    padding-inline: var(--space-7);
  }
}

.field-error {
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--color-error);
}

.field-error[hidden] {
  display: none;
}

.field--full {
  grid-column: 1 / -1;
}

/* .field's display:flex would otherwise override the [hidden] attribute */
.field[hidden] {
  display: none;
}

/* hCaptcha widget is a fixed 303×78px; shrink it on phones narrower than
   ~350px (viewport − 48px container padding < 303px). Transforms don't affect
   layout, so the negative margin reclaims the 78px × 12% of unused height. */
@media (max-width: 350px) {
  .h-captcha {
    transform: scale(0.88);
    transform-origin: left top;
    margin-bottom: -10px;
  }
}

/* A margin note rather than an alert box: a rule down the left edge
   in the status colour, no fill. */
.form-status {
  padding: var(--space-2) 0 var(--space-2) var(--space-4);
  border-left: 2px solid currentColor;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  line-height: 1.7;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status--success {
  color: var(--color-success);
}

.form-status--error {
  color: var(--color-error);
}

.contact-info dl {
  margin-top: var(--space-6);
}

.contact-info .row {
  padding-block: var(--space-4);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--fs-sm);
}

.contact-info dt {
  font-family: var(--font-mono);
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--fs-xs);
}

.social-row {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

/* Bare icon, no ring. The link keeps a 42px tap target; the negative
   margin pulls the glyph back onto the wordmark's left edge. */
.social-row a {
  width: 42px;
  height: 42px;
  margin-left: -12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--dur-fast) var(--ease-out);
}

.social-row a:hover {
  color: var(--color-accent);
}

/* ============ Page header (interior pages) ============ */
.page-header {
  padding: calc(var(--header-h) + var(--safe-top) + var(--space-8)) 0 var(--space-8);
  background: var(--color-ink);
  border-bottom: 1px solid var(--color-border);
}

.page-header__title {
  margin-top: var(--space-3);
}

.page-header p {
  margin-top: var(--space-4);
  max-width: 60ch;
}

/* ============ Footer ============ */
/* Same three columns and copyright bar as before, packed tighter: less
   padding top and bottom, smaller gaps between links, and a closer
   copyright rule. On phones the Explore links run across one line
   instead of stacking four deep, which is most of the saving there. */
.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  /* + --safe-bottom keeps the copyright line above the iPhone home bar. */
  padding-block: var(--space-6) calc(var(--space-4) + var(--safe-bottom));
}

.footer-grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: var(--space-7);
  }
}

.footer-grid h4 {
  font-size: var(--fs-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-2);
}

.footer-grid nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

@media (max-width: 719px) {
  .footer-grid nav {
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: var(--space-5);
  }
}

.footer-grid nav a:hover {
  color: var(--color-accent);
}

/* Sits under the email in the Contact column. Small gap: the 42px tap
   target already carries its own air around the glyph. */
.site-footer .social-row {
  margin-top: var(--space-2);
}

.footer-bottom {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--fs-xs);
  color: var(--color-text-faint);
}

/* ============ Shop (unlinked placeholder) ============ */
.shop-banner {
  text-align: center;
  padding: var(--space-6);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-8);
  color: var(--color-text-muted);
}

.product-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.product-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.product-card__body {
  padding: var(--space-5);
}

.product-card .price {
  color: var(--color-accent);
  font-family: var(--font-display);
  margin-top: var(--space-2);
}

.product-card .btn {
  margin-top: var(--space-5);
  width: 100%;
  justify-content: center;
  opacity: 0.5;
  pointer-events: none;
}
