/* Component layer. A page composes these; a page never restyles one from outside.
   A new variant belongs here, next to its component. */

/* ── Button ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  /* Sizes to its label — no full-width submits unless asked for. */
  padding: 0.6rem 1.15rem;
  border: var(--border-hairline) solid transparent;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  background: none;
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: var(--accent-contrast); }
.btn--primary:hover { background: var(--accent-hover); color: var(--accent-contrast); }

.btn--ghost { border-color: var(--border-strong); color: var(--fg); }
.btn--ghost:hover { border-color: var(--fg-muted); background: var(--surface-hover); color: var(--fg); }

.btn--quiet { color: var(--fg-muted); padding-inline: var(--space-2); }
.btn--quiet:hover { color: var(--fg); }

.btn--lg { padding: 0.8rem 1.5rem; font-size: var(--text-base); }
.btn__icon { width: 1.05em; height: 1.05em; flex: none; }

/* ── Icon button ───────────────────────────────────────────────── */
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: var(--border-hairline) solid transparent;
  border-radius: var(--radius-pill);
  background: none;
  color: var(--fg-muted);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.icon-btn:hover { color: var(--fg); background: var(--surface-hover); }
.icon-btn svg { width: 1.15rem; height: 1.15rem; }

/* ── Header + nav ──────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: var(--border-hairline) solid var(--border);
}
.header__bar {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-height: 3.75rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark em { color: var(--accent); font-style: normal; }
.wordmark__mark {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-pill);
  object-fit: cover;
  border: var(--border-hairline) solid var(--border-strong);
  flex: none;
}

.nav { display: flex; gap: var(--space-1); margin-inline-start: auto; align-items: center; }
.nav__link {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: var(--text-script-sm);
  /* Tight enough to keep the bar at its height, loose enough that the
     descender on "Portfolio" is not sliced off. */
  line-height: 1.35;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav__link:hover { color: var(--fg); }
.nav__link[aria-current="page"] { color: var(--accent); }
.nav__actions { display: flex; align-items: center; gap: var(--space-2); margin-inline-start: var(--space-3); }

.nav-toggle { display: none; margin-inline-start: auto; }

/* Drawer below the header's breakpoint. */
@media (max-width: 62rem) {
  .nav-toggle { display: inline-grid; }
  .nav {
    position: fixed;
    inset: 3.75rem 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: var(--space-3) var(--gutter) var(--space-6);
    background: var(--bg-raised);
    border-bottom: var(--border-hairline) solid var(--border);
    z-index: var(--z-drawer);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur-base) var(--ease-out),
                transform var(--dur-base) var(--ease-out),
                visibility var(--dur-base);
  }
  .nav[data-open="true"] { transform: none; opacity: 1; visibility: visible; }
  .nav__link { padding-block: var(--space-3); font-size: var(--text-script-md); border-bottom: var(--border-hairline) solid var(--border); }
  .nav__actions { margin: var(--space-4) 0 0; }
}

/* ── Footer ────────────────────────────────────────────────────── */
.footer { border-top: var(--border-hairline) solid var(--border); background: var(--bg-sunken); }
/* Two columns on a phone, four on a desktop. auto-fit collapsed to one column on a
   phone, which turned the footer into a long list of everything the site has. */
.footer__grid {
  display: grid;
  gap: var(--space-5) var(--space-4);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-block: var(--space-6);
}
.footer__brand { grid-column: 1 / -1; }
@media (min-width: 54rem) {
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--space-6); padding-block: var(--space-7) var(--space-6); }
  .footer__brand { grid-column: auto; }
}
.footer__socials { margin-top: var(--space-4); }
.footer__title {
  font-family: var(--font-display);
  font-size: var(--text-script-sm);
  line-height: var(--leading-script);
  color: var(--fg);
  margin-bottom: var(--space-3);
}
.footer__list { display: grid; }
.footer__list a {
  display: inline-block;
  padding-block: var(--space-2);
  color: var(--fg-muted);
  text-decoration: none;
  font-size: var(--text-sm);
}
.footer__list a:hover { color: var(--accent); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  padding-block: var(--space-4);
  border-top: var(--border-hairline) solid var(--border);
  font-size: var(--text-xs);
  color: var(--fg-subtle);
}

/* ── Section heading ───────────────────────────────────────────── */
.head { display: grid; gap: var(--space-3); margin-bottom: var(--space-6); }
.head__row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-4); }
.head__title { font-family: var(--font-display); font-size: var(--text-3xl); line-height: var(--leading-script); }

/* ── Figure / photo ────────────────────────────────────────────── */
.photo {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--img-placeholder) center/cover no-repeat;
  border-radius: var(--radius-md);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.photo img.is-loaded { opacity: 1; }
a.photo:hover img, button.photo:hover img { transform: scale(1.035); }
.photo--native { aspect-ratio: auto; }
.photo--native img { height: auto; object-fit: contain; }
.photo--tall { aspect-ratio: 4 / 5; }
.photo--wide { aspect-ratio: 3 / 2; }
.photo--square { aspect-ratio: 1; }

/* ── Gallery grid (masonry-ish via CSS columns, keeps native ratios) ── */
.grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fill, minmax(min(16rem, 100%), 1fr));
}
.grid--tight { gap: var(--space-2); }

.tile { position: relative; margin: 0; border: 0; padding: 0; background: none; cursor: zoom-in; width: 100%; }
.tile__meta {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: var(--space-5) var(--space-3) var(--space-3);
  font-size: var(--text-xs);
  color: var(--ink-050);
  background: linear-gradient(to top, rgb(var(--shade-rgb) / 0.8), transparent);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
  text-align: start;
  pointer-events: none;
}
.tile:hover .tile__meta, .tile:focus-visible .tile__meta { opacity: 1; }

/* ── Category card ─────────────────────────────────────────────── */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: var(--border-hairline) solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
a.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card__body { padding: var(--space-4); display: grid; gap: var(--space-2); }
.card__title { font-family: var(--font-display); font-size: var(--text-2xl); line-height: var(--leading-script); }
.card__note { font-size: var(--text-sm); color: var(--fg-muted); }
.card__count { font-size: var(--text-xs); color: var(--fg-subtle); letter-spacing: var(--tracking-wide); text-transform: uppercase; }
.card--muted .card__title { color: var(--fg-muted); }

/* A category with no photographs yet still needs a card the same height as its
   neighbours, or a mixed row reads as a broken grid rather than a deliberate one. */
.card__placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  background:
    repeating-linear-gradient(135deg, var(--surface-hover) 0 10px, transparent 10px 20px),
    var(--bg-sunken);
  color: var(--fg-subtle);
  border-bottom: var(--border-hairline) solid var(--border);
}
.card__placeholder svg { width: 1.6rem; height: 1.6rem; }

/* ── Badge ─────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--accent-soft);
  color: var(--accent);
  border: var(--border-hairline) solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.badge--neutral { background: var(--surface-hover); color: var(--fg-muted); border-color: var(--border); }

/* ── Filter chips (tabs) ───────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip {
  padding: 0.35rem 0.85rem;
  border: var(--border-hairline) solid var(--border);
  border-radius: var(--radius-pill);
  background: none;
  color: var(--fg-muted);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.chip:hover { color: var(--fg); border-color: var(--border-strong); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }

/* ── Form field ────────────────────────────────────────────────── */
.field { display: grid; gap: var(--space-2); min-width: 0; }
.field__label { font-size: var(--text-sm); font-weight: 600; }
.field__hint { font-size: var(--text-xs); color: var(--fg-subtle); }
.input, .textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: var(--surface);
  color: var(--fg);
  border: var(--border-hairline) solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.input:hover, .textarea:hover, .select__native:hover { border-color: var(--border-strong); }
.input:focus, .textarea:focus, .select__native:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}
.textarea { resize: vertical; min-height: 6rem; }

/* The native chevron and option list are the browser's; repaint what we can. */
/* ── Select ────────────────────────────────────────────────────────
   Two controls in one box. The native <select> is what the form reads and what a
   visitor with JS off uses, styled as far as a browser allows. app.js then draws
   .select__button and .select__list over it and hides the native one, because the
   browser renders its option list itself — in its own blue, out of reach of any
   stylesheet. Every colour below is a token, in both states. */
.select { position: relative; min-width: 0; }
.select__native {
  appearance: none;
  width: 100%;
  padding: var(--space-3) 2.25rem var(--space-3) var(--space-3);
  font: inherit;
  color: var(--fg);
  background: var(--surface);
  border: var(--border-hairline) solid var(--border-strong);
  border-radius: var(--radius-md);
  cursor: pointer;
}
.select__native option { background: var(--bg-raised); color: var(--fg); }
.select:not([data-ready])::after {
  content: "";
  position: absolute;
  right: 0.85rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--fg-muted);
  border-bottom: 2px solid var(--fg-muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
/* Once enhanced the native control is gone from view but still in the form. */
.select[data-ready] .select__native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.select__button {
  display: flex;
  max-width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-3);
  font: inherit;
  text-align: start;
  color: var(--fg);
  background: var(--surface);
  border: var(--border-hairline) solid var(--border-strong);
  border-radius: var(--radius-md);
  cursor: pointer;
}
.select__button:hover { border-color: var(--fg-subtle); }
.select__button[aria-expanded="true"] { border-color: var(--accent); }
.select__button::after {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--fg-muted);
  border-bottom: 2px solid var(--fg-muted);
  transform: translateY(-25%) rotate(45deg);
  transition: transform var(--dur-fast) var(--ease-out);
}
.select__button[aria-expanded="true"]::after { transform: translateY(15%) rotate(225deg); }
.select__value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.select__list {
  position: absolute;
  z-index: var(--z-drawer);
  inset-inline: 0;
  top: calc(100% + var(--space-1));
  max-height: 17rem;
  overflow-y: auto;
  padding: var(--space-1);
  background: var(--bg-raised);
  border: var(--border-hairline) solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.select__list:focus-visible { outline: none; }
.select__group {
  padding: var(--space-3) var(--space-3) var(--space-1);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--accent);
}
.select__option {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--fg-muted);
  cursor: pointer;
}
.select__option.is-active { background: var(--surface-hover); color: var(--fg); }
.select__option[aria-selected="true"] { color: var(--fg); font-weight: 600; }
.select__option[aria-selected="true"]::after { content: " ✓"; color: var(--accent); }

.form-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); }
.form-grid > * { min-width: 0; }
.form-grid__full { grid-column: 1 / -1; }

/* ── Empty / pending state ─────────────────────────────────────── */
.empty {
  display: grid;
  place-items: center;
  gap: var(--space-3);
  padding: var(--space-7) var(--space-4);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--fg-muted);
}
.empty__title { font-family: var(--font-display); font-size: var(--text-2xl); line-height: var(--leading-script); color: var(--fg); }
.empty__body { font-size: var(--text-sm); max-width: 34ch; }

/* ── Lightbox (modal) ──────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--scrim);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-out), visibility var(--dur-base);
}
.lightbox[data-open="true"] { opacity: 1; visibility: visible; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--gutter); }
.lightbox__count { font-size: var(--text-xs); color: var(--ink-300); letter-spacing: var(--tracking-wide); }
.lightbox__stage { display: grid; place-items: center; padding-inline: var(--gutter); min-height: 0; }
.lightbox__img { max-width: min(100%, 78rem); max-height: 100%; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox__caption { padding: var(--space-3) var(--gutter) var(--space-5); text-align: center; font-size: var(--text-sm); color: var(--ink-300); }
.lightbox .icon-btn { color: var(--ink-100); }
.lightbox .icon-btn:hover { color: var(--white); background: rgb(var(--light-rgb) / 0.12); }
.lightbox__nav { display: flex; gap: var(--space-2); }

/* ── Social row ────────────────────────────────────────────────── */
.socials { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.social {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.5rem 0.9rem;
  border: var(--border-hairline) solid var(--border);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  color: var(--fg-muted);
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease-out);
}
.social:hover { color: var(--fg); border-color: var(--accent); }
.social svg { width: 1.05rem; height: 1.05rem; }

/* ── Embed slot (Instagram / TikTok widgets) ───────────────────── */
.embed {
  min-height: 18rem;
  border: var(--border-hairline) solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: var(--space-4);
  overflow: hidden;
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero { padding-block: clamp(1.5rem, 0.75rem + 3vw, 3.25rem) 0; }
.hero__grid {
  display: grid;
  gap: clamp(var(--space-5), 4vw, var(--space-7));
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 58rem) { .hero__grid { grid-template-columns: 1fr 1.05fr; } }
.hero__copy > .lede { max-width: 38ch; }

.hero__title { font-family: var(--font-display); font-size: var(--text-hero); }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__copy { display: grid; gap: var(--space-4); justify-items: start; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

.hero__cluster { display: grid; gap: var(--space-3); grid-template-columns: 1fr 1fr; }
.hero__cluster > :first-child { grid-row: span 2; }
@media (max-width: 34rem) {
  .hero__cluster { grid-template-columns: 1fr; }
  .hero__cluster > :first-child { grid-row: auto; }
  .hero__cluster > :nth-child(3) { display: none; }
}

/* ── Split band (two-up text + media) ──────────────────────────── */
.split {
  display: grid;
  gap: clamp(var(--space-5), 4vw, var(--space-7));
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 54rem) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--flip > :first-child { order: 2; }
}
.split__copy { display: grid; gap: var(--space-4); justify-items: start; }

/* ── Setting cards (studio vs outdoor) ─────────────────────────── */
.settings { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.setting {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-5);
  border: var(--border-hairline) solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.setting__name { font-family: var(--font-display); font-size: var(--text-2xl); line-height: var(--leading-script); }
.setting__body { font-size: var(--text-sm); color: var(--fg-muted); }

/* ── CTA band ──────────────────────────────────────────────────── */
.cta {
  display: grid;
  gap: var(--space-4);
  justify-items: center;
  text-align: center;
  padding: var(--section-y) var(--gutter);
  border-top: var(--border-hairline) solid var(--border);
  border-bottom: var(--border-hairline) solid var(--border);
  background: var(--bg-sunken);
}
.cta__title { font-family: var(--font-display); font-size: var(--text-3xl); line-height: var(--leading-script); }
.cta__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }

/* ── Stat row ──────────────────────────────────────────────────── */
.stats { display: flex; flex-wrap: wrap; gap: var(--space-6); }
.stat__n { font-family: var(--font-hero); font-size: var(--text-xl); display: block; }
.stat__l { font-size: var(--text-xs); color: var(--fg-subtle); text-transform: uppercase; letter-spacing: var(--tracking-wide); }


/* ── Mosaic gallery ────────────────────────────────────────────────
   A landscape frame takes two columns at 8:5 and a portrait one column at 4:5,
   which land on near-identical heights — so rows stay flush without cropping
   anything to a single forced ratio. */
.grid--mosaic { grid-auto-flow: dense; }
.grid--mosaic .tile--wide { grid-column: span 2; }
.photo--mosaic-wide { aspect-ratio: 8 / 5; }
@media (max-width: 34rem) {
  .grid--mosaic .tile--wide { grid-column: span 1; }
}

/* ── Full-bleed hero ───────────────────────────────────────────────
   Three stacked layers: a dark ground, the statement type, then the
   photographer cut out of his backdrop on top, so the words pass behind him. */
.hero-full {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(100svh, 58rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(110% 85% at 50% 8%, var(--hero-glow) 0%, transparent 62%),
    linear-gradient(180deg, var(--hero-top) 0%, var(--hero-bottom) 100%);

  /* The composition is dark in both themes, so text inside reads against it. */
  --fg: var(--ink-050);
  --fg-muted: var(--ink-300);
  --fg-subtle: var(--ink-500);
  --border: rgb(var(--light-rgb) / 0.18);
  --border-strong: rgb(var(--light-rgb) / 0.34);
  --surface-hover: rgb(var(--light-rgb) / 0.08);
  color: var(--fg);
}

/* Type runs from the left, subject sits right, so only the tail of each word goes
   behind him. Centred behind this pose cost the middle 40% of every word: his arms
   are spread, making the silhouette nearly as wide as the word itself. */
.hero-full__type {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(1rem, 6vh, 5rem);
  z-index: 1;
  padding-inline: var(--gutter);
  text-align: start;
  user-select: none;
}
/* The name sits above the statement, deliberately much smaller: it identifies,
   the statement below it does the shouting. */
.hero-full__brand {
  display: block;
  font-family: var(--font-ui);
  font-size: clamp(0.95rem, 2.1vw, 1.75rem);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--hero-type);
  margin-bottom: clamp(var(--space-2), 1.2vw, var(--space-4));
  padding-inline-start: 0.12em;
}
.hero-full__brand em { color: var(--accent); font-style: normal; }

.hero-full__line {
  display: block;
  font-family: var(--font-hero);
  font-weight: 400;
  font-size: var(--text-mega);
  line-height: 0.88;
  letter-spacing: -0.012em;
  white-space: nowrap;
  color: var(--hero-type);
}
/* The trailing word fades so the lockup reads as one graphic rather than a banner. */
.hero-full__line--soft {
  background: linear-gradient(90deg, var(--hero-type) 30%, color-mix(in srgb, var(--hero-type) 45%, transparent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-full__subject {
  position: relative;
  z-index: 2;
  display: block;
  margin-inline: auto 0;
  height: min(80svh, 47rem);
  width: auto;
  max-width: 108%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 30px 60px rgb(var(--shadow-rgb) / 0.55));
  /* The original crops him at the waist; without this the cut reads as a hard
     horizontal line straight across the bottom of the hero. */
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 99%);
  mask-image: linear-gradient(180deg, #000 82%, transparent 99%);
}

.hero-full__meta {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: var(--space-5);
  padding: calc(3.75rem + var(--space-6)) var(--gutter) var(--space-6);
}
.hero-full__meta > * { pointer-events: auto; }

.hero-full__social { display: inline-flex; gap: var(--space-2); align-items: center; margin-inline-start: var(--space-1); }
.hero-full__social a { color: var(--fg-muted); display: grid; place-items: center; padding: 0.2rem; }
.hero-full__social a:hover { color: var(--accent); }
.hero-full__social svg { width: 1.05rem; height: 1.05rem; }

.hero-full__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
}
.hero-full__actions {
  align-self: start;
  justify-content: start;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}


@media (max-width: 62rem) {
  }
/* At phone width the subject is wider than the words, so layering them would hide
   the statement entirely. The type drops out of the stack and sits below him. */
@media (max-width: 40rem) {
  .hero-full { min-height: auto; padding-bottom: var(--space-5); }
  .hero-full__subject {
    order: 1;
    height: min(46svh, 22rem);
    max-width: 118%;
    margin-inline: auto;
  }
  .hero-full__type {
    position: static;
    order: 2;
    text-align: center;
    padding-inline: var(--space-3);
    margin-top: calc(var(--space-4) * -1);
  }
  .hero-full__line { letter-spacing: -0.035em; font-size: clamp(2rem, 12.5vw, 4rem); }
  .hero-full__meta { position: static; padding-block: calc(3.75rem + var(--space-5)) var(--space-4); }
}

/* ── Header over the hero ──────────────────────────────────────────
   Fixed and transparent at the top so the photograph runs under it, and
   opaque once scrolled so the nav stays readable over ordinary content. */
.header--over {
  position: fixed;
  inset-inline: 0;
  top: 0;
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
  transition: background var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.header--over:not(.is-stuck) {
  --fg: var(--ink-050);
  --fg-muted: var(--ink-300);
  --surface-hover: rgb(var(--light-rgb) / 0.1);
  color: var(--ink-050);
}
.header--over:not(.is-stuck) .wordmark { color: var(--ink-050); }
.header--over.is-stuck {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--border);
}
@media (max-width: 62rem) {
  .header--over:not(.is-stuck) .nav { background: var(--bg-raised); }
}

/* ── Ken Burns ─────────────────────────────────────────────────────
   A slow drift that makes a still photograph feel alive. Deliberately long and
   small in amplitude: anything faster reads as a slideshow and fights the work.
   Disabled outright under prefers-reduced-motion, where the image simply sits. */
.kb { position: relative; overflow: hidden; background: var(--img-placeholder); }
.kb > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: var(--kb-origin, 50% 50%);
  animation: kb-drift var(--kb-duration, 28s) var(--ease-in-out) infinite alternate;
  will-change: transform;
}
@keyframes kb-drift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(var(--kb-x, -1.5%), var(--kb-y, -1.5%), 0); }
}
@media (prefers-reduced-motion: reduce) {
  .kb > img { animation: none; transform: none; }
}

/* Scrim so overlaid text keeps its contrast whatever the photograph does. */
.kb__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgb(var(--shade-rgb) / 0.30) 0%,
    rgb(var(--shade-rgb) / 0.10) 32%,
    rgb(var(--shade-rgb) / 0.74) 74%,
    rgb(var(--shade-rgb) / 0.94) 100%);
}

/* ── Full-bleed showcase band ──────────────────────────────────── */
.band {
  position: relative;
  min-height: min(78svh, 40rem);
  display: grid;
  isolation: isolate;
  --fg: var(--ink-050);
  --fg-muted: var(--ink-100);
  --border-strong: rgb(var(--light-rgb) / 0.4);
  color: var(--ink-050);
}
.band > .kb { position: absolute; inset: 0; z-index: -1; }
.band__inner {
  align-self: end;
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding: var(--space-7) var(--gutter);
  display: grid;
  gap: var(--space-4);
  justify-items: start;
}
.band__title { font-family: var(--font-display); font-size: var(--text-3xl);
  line-height: var(--leading-script); max-width: 18ch; }

/* ── Picture-led setting card ──────────────────────────────────── */
.setting--visual { padding: 0; overflow: hidden; border-radius: var(--radius-lg); }
.setting--visual .kb { aspect-ratio: 4 / 3; }
.setting--visual .setting__body,
.setting--visual .setting__name { padding-inline: var(--space-5); }
.setting--visual .setting__name { padding-top: var(--space-4); }
.setting--visual .setting__body { padding-bottom: var(--space-5); }

/* Hero gets a drifting photograph behind the subject, at low opacity so it reads
   as texture and depth rather than a second image competing with him. */
.hero-full__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.4;
}
.hero-full__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(75% 60% at 50% 42%, rgb(var(--shade-rgb) / 0.86) 0%, rgb(var(--shade-rgb) / 0.55) 55%, rgb(var(--shade-rgb) / 0.95) 100%);
}


/* ── Masonry ───────────────────────────────────────────────────────
   Columns rather than a grid, so every photograph keeps its own aspect ratio
   and nothing is cropped to fit a box — no head cut off at the top of a frame. */
.masonry {
  columns: 4 17rem;
  column-gap: var(--space-3);
}
.masonry > * {
  break-inside: avoid;
  margin-bottom: var(--space-3);
  display: block;
}
@media (max-width: 40rem) { .masonry { columns: 2 9rem; column-gap: var(--space-2); } }
@media (max-width: 40rem) { .masonry > * { margin-bottom: var(--space-2); } }

/* ── Pill ──────────────────────────────────────────────────────────
   Replaces the title + blurb + count stack on a category card. The photograph
   is the content; the pill only has to name it. */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgb(var(--shade-rgb) / 0.62);
  backdrop-filter: blur(10px) saturate(140%);
  border: var(--border-hairline) solid rgb(var(--light-rgb) / 0.16);
  color: var(--ink-050);
  font-family: var(--font-display);
  font-size: var(--text-script-sm);
  line-height: 1.3;
  white-space: nowrap;
}
/* The count stays a grotesk: a script numeral at this size is a guess. */
.pill__count { font-family: var(--font-ui); font-size: var(--text-xs); color: var(--ink-300); font-weight: 500; }

/* Pinned to the bottom-left of a photograph. */
.pill--pin {
  position: absolute;
  left: var(--space-3);
  bottom: var(--space-3);
  z-index: 2;
}

/* ── Category tile: a photograph with a pill on it ─────────────── */
.cat {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  border: var(--border-hairline) solid var(--border);
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
a.cat:hover { border-color: var(--accent); transform: translateY(-3px); }
.cat--empty {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  background:
    repeating-linear-gradient(135deg, var(--surface-hover) 0 10px, transparent 10px 20px),
    var(--bg-sunken);
  color: var(--fg-subtle);
}
.cat--empty svg { width: 1.5rem; height: 1.5rem; }

.showcase__more { margin-top: var(--space-6); display: flex; justify-content: center; }

/* ── Legal document ────────────────────────────────────────────────
   Nineteen numbered sections, so the headings stay in the UI grotesk: the
   signature is for the names of things, and a contract has to be read, not
   admired. The section number is where the brand colour lands. */
.doc { display: grid; gap: var(--space-6); max-width: var(--measure); margin-top: var(--space-6); }
.doc__section { display: grid; gap: var(--space-3); }
.doc__title { font-size: var(--text-lg); font-weight: 600; color: var(--fg); }
.doc__n { color: var(--accent); margin-inline-end: var(--space-3); font-variant-numeric: tabular-nums; }
.doc p { color: var(--fg-muted); }
.doc ul { display: grid; gap: var(--space-2); padding-inline-start: var(--space-5); list-style: disc; color: var(--fg-muted); }
.doc li { padding-inline-start: var(--space-1); }
.doc__meta { font-size: var(--text-sm); color: var(--fg-subtle); }

/* ── Pricing ───────────────────────────────────────────────────────
   One panel at a time, chosen by the tabs, so the page is one screen rather than
   six stacked price lists. Cards are equal width and equal height: the grid
   stretches them, and the feature list takes the slack so every "Enquire" sits on
   the same line across a row. */
.price-head {
  display: grid;
  gap: var(--space-4) var(--space-6);
  align-items: end;
  grid-template-columns: 1fr;
  margin-bottom: var(--space-5);
}
@media (min-width: 52rem) { .price-head { grid-template-columns: 1fr auto; } }
.price-head__note {
  font-size: var(--text-sm);
  color: var(--fg-muted);
  padding-inline-start: var(--space-4);
  border-inline-start: 2px solid var(--accent);
}

.chips--tabs {
  gap: var(--space-2);
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-5);
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: none;
}
.chips--tabs::-webkit-scrollbar { display: none; }
.chips--tabs .chip { white-space: nowrap; flex: none; }

.panel-group__blurb { color: var(--fg-muted); max-width: var(--measure); margin-bottom: var(--space-4); }
/* auto-fill, not auto-fit: a group holding one package keeps one column's width
   instead of stretching a single card across the whole page. */
.pkgs { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }

.pkg {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  border: var(--border-hairline) solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  text-decoration: none;
  color: inherit;
  scroll-margin-top: 5rem;
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.pkg:hover { border-color: var(--accent); transform: translateY(-3px); color: inherit; }
.pkg__head { display: grid; gap: var(--space-1); }
.pkg__name { font-size: var(--text-lg); font-weight: 600; color: var(--fg); }
.pkg__price { font-family: var(--font-hero); font-size: var(--text-xl); color: var(--accent); }
.pkg__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--fg-subtle); }
.pkg__blurb { font-size: var(--text-sm); color: var(--fg-muted); }
.pkg__list {
  display: grid;
  gap: var(--space-2);
  padding-inline-start: var(--space-5);
  list-style: disc;
  font-size: var(--text-sm);
  color: var(--fg-muted);
  flex: 1;              /* takes the slack, so every card's footer lines up */
  align-content: start;
}
.pkg__note { font-size: var(--text-xs); color: var(--fg-subtle); max-width: var(--measure); }
.pkg__note--group { margin-top: var(--space-4); }
.pkg__go {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
}
.pkg__go .btn__icon { width: 1rem; height: 1rem; transition: transform var(--dur-fast) var(--ease-out); }
.pkg:hover .pkg__go .btn__icon { transform: translateX(3px); }
/* A bespoke package is the only card in its group; one column leaves it stranded
   beside three empty ones. */
@media (min-width: 52rem) {
  .pkg--quote { grid-column: span 2; }
}
.badge--save { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }

/* ── Add-ons and booking information, side by side ─────────────── */
.info { display: grid; gap: var(--space-6); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 52rem) { .info { grid-template-columns: 1fr 1.15fr; gap: var(--space-7); } }
.info__col { display: grid; gap: var(--space-3); }
.info__title { font-size: var(--text-lg); font-weight: 600; }

/* The long legal-ish detail folds away, so it costs a line each until it is wanted. */
.fold { border-bottom: var(--border-hairline) solid var(--border); }
.fold__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.fold__head::-webkit-details-marker { display: none; }
.fold__head::after {
  content: "";
  margin-inline-start: auto;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-25%) rotate(45deg);
  transition: transform var(--dur-fast) var(--ease-out);
}
.fold[open] .fold__head::after { transform: translateY(15%) rotate(225deg); }
.fold__body { display: grid; gap: var(--space-2); padding-bottom: var(--space-4); }
.fold__body p { font-size: var(--text-sm); color: var(--fg-muted); }

/* ── Fee breakdown on the booking form ─────────────────────────── */
.fee[hidden] { display: none; }
.fee {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4);
  border: var(--border-hairline) solid var(--accent);
  border-radius: var(--radius-md);
  background: var(--accent-soft);
}
.fee__row { display: flex; justify-content: space-between; gap: var(--space-3); font-size: var(--text-sm); }
.fee__label { color: var(--fg-muted); }
.fee__value { font-weight: 600; font-variant-numeric: tabular-nums; }
.fee__note { font-size: var(--text-xs); color: var(--fg-subtle); }

/* ── Booking form ──────────────────────────────────────────────── */
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); }
.contact__line {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--fg-muted);
}
