/* ==========================================================================
   Visually Rendered Production — pages.css
   Section-level layout for Home, Portfolio and About.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero
   The poster image is the LCP element. The video is attached by JS afterwards
   and sits behind it, so a slow connection never delays first paint.
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-block-size: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero__media img,
.hero__media video {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.hero__media video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms var(--ease-out);
}

.hero__media video.is-playing {
  opacity: 1;
}

/* Slow cinematic push-in on the backdrop */
@media (prefers-reduced-motion: no-preference) {
  .hero__media img,
  .hero__media video {
    animation: hero-push 26s var(--ease-soft) infinite alternate;
  }
}

@keyframes hero-push {
  from {
    transform: scale(1.02);
  }

  to {
    transform: scale(1.12);
  }
}

/* Dark overlay + soft vignette, as two separate cheap layers */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(9, 9, 9, 0.92) 0%, rgba(9, 9, 9, 0.42) 26%, rgba(9, 9, 9, 0.55) 62%, var(--bg) 100%),
    radial-gradient(120% 78% at 50% 42%, rgba(9, 9, 9, 0.1) 0%, rgba(9, 9, 9, 0.78) 100%);
}

.hero__inner {
  inline-size: 100%;
  max-inline-size: var(--container);
  margin-inline: auto;
  padding: calc(var(--header-h) + var(--space-2xl)) var(--gutter) var(--space-xl);
  display: grid;
  justify-items: center;
  gap: var(--space-m);
  text-align: center;
}

.hero__title {
  font-size: var(--step-7);
  font-weight: 500;
  max-inline-size: 16ch;
}

.hero__title em {
  font-style: normal;
  color: var(--gold);
}

.hero__sub {
  font-size: var(--step-1);
  color: var(--muted);
  max-inline-size: 52ch;
}

.hero__actions {
  margin-block-start: var(--space-s);
}

/* Scroll indicator */
.scroll-cue {
  position: relative;
  z-index: 1;
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  padding-block-end: var(--space-l);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.scroll-cue__line {
  inline-size: 1px;
  block-size: 3.25rem;
  background: linear-gradient(180deg, var(--gold), transparent);
  transform-origin: top center;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-cue__line {
    animation: cue 2.4s var(--ease-in-out) infinite;
  }
}

@keyframes cue {
  0%,
  100% {
    transform: scaleY(0.35);
    opacity: 0.4;
  }

  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   2. Intro / statement
   -------------------------------------------------------------------------- */
.statement {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 400;
  line-height: 1.24;
  letter-spacing: -0.025em;
  max-inline-size: 22ch;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--space-xl) var(--space-2xl);
  align-items: start;
}

@media (max-width: 52rem) {
  .intro-grid {
    grid-template-columns: 1fr;
  }
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: var(--space-m);
  margin-block-start: var(--space-l);
  padding-block-start: var(--space-l);
  border-block-start: 1px solid var(--border);
}

.stat__value {
  font-family: var(--font-display);
  font-size: var(--step-4);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.stat__label {
  margin-block-start: 0.35rem;
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

/* --------------------------------------------------------------------------
   3. Featured reel
   -------------------------------------------------------------------------- */
.reel {
  position: relative;
  /* A <button> is shrink-to-fit, so `aspect-ratio` has no definite width to
     resolve against once the frame inside is taken out of flow — the element
     collapses to nothing. Giving it a block box and a full width fixes it. */
  display: block;
  inline-size: 100%;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  aspect-ratio: 16 / 9;
  cursor: pointer;
}

.reel video,
.reel img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.reel video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 700ms var(--ease-out);
}

.reel video.is-playing {
  opacity: 1;
}

.reel__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 9, 9, 0.28) 0%, rgba(9, 9, 9, 0) 45%, rgba(9, 9, 9, 0.72) 100%);
  pointer-events: none;
}

.reel__label {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  padding: clamp(1rem, 3vw, 2.25rem);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-s);
  pointer-events: none;
}

.reel__title {
  font-family: var(--font-display);
  font-size: var(--step-2);
  letter-spacing: -0.02em;
}

.reel__hint {
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   4. Services
   -------------------------------------------------------------------------- */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: var(--space-s);
}

.service {
  display: grid;
  align-content: start;
  gap: var(--space-2xs);
  padding: var(--space-l) var(--space-m) var(--space-xl);
  min-block-size: 14rem;
}

.service__icon {
  inline-size: 1.6rem;
  block-size: 1.6rem;
  color: var(--gold);
  margin-block-end: var(--space-s);
}

/* --------------------------------------------------------------------------
   5. Photo gallery — CSS multi-column masonry.
   Chosen over a JS-positioned grid deliberately: no measurement, no resize
   listener, no layout thrash, and it degrades perfectly without JavaScript.
   -------------------------------------------------------------------------- */
.masonry {
  column-count: 3;
  column-gap: var(--space-s);
}

@media (max-width: 62rem) {
  .masonry {
    column-count: 2;
  }
}

@media (max-width: 34rem) {
  .masonry {
    column-count: 1;
  }
}

@media (min-width: 100rem) {
  .masonry {
    column-count: 4;
  }
}

.masonry .media-item {
  break-inside: avoid;
  margin-block-end: var(--space-s);
  /* Prevents Firefox/Safari splitting a card across a column boundary */
  display: block;
  inline-size: 100%;
}

/* --------------------------------------------------------------------------
   6. Video gallery
   -------------------------------------------------------------------------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr));
  gap: var(--space-s);
}

.video-grid .frame {
  aspect-ratio: 16 / 9;
}

/* A media item is a button or link: reset its chrome, keep it focusable */
.media-item {
  display: block;
  inline-size: 100%;
  text-align: start;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  border-radius: var(--radius-m);
}

.media-item:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* Items filtered out are removed from flow entirely so masonry reflows */
.media-item[hidden] {
  display: none;
}

/* --------------------------------------------------------------------------
   7. Portfolio page chrome
   -------------------------------------------------------------------------- */
.page-head {
  padding-block: calc(var(--header-h) + var(--space-2xl)) var(--space-xl);
  border-block-end: 1px solid var(--border);
}

.page-head__title {
  font-size: var(--step-6);
  max-inline-size: 18ch;
}

.tabs {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface);
  margin-block-end: var(--space-l);
}

.tab {
  padding: 0.6em 1.5em;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-radius: var(--radius-full);
  transition:
    color var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out);
}

.tab:hover {
  color: var(--text);
}

.tab[aria-selected='true'] {
  color: #0b0b0b;
  background: var(--warm);
}

.gallery-status {
  font-size: var(--step--1);
  color: var(--muted-dim);
  margin-block-end: var(--space-s);
}

/* --------------------------------------------------------------------------
   8. About page
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: var(--space-2xl);
  align-items: start;
}

@media (max-width: 56rem) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

.portrait {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 5;
  background: var(--surface);
}

.portrait img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.prose {
  max-inline-size: 62ch;
}

.prose p + p {
  margin-block-start: var(--space-s);
}

.prose p {
  color: var(--muted);
}

.process {
  display: grid;
  gap: var(--space-s);
  counter-reset: step;
}

.process__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-m);
  align-items: start;
  padding-block: var(--space-m);
  border-block-start: 1px solid var(--border);
}

.process__item::before {
  counter-increment: step;
  content: '0' counter(step);
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--gold);
  letter-spacing: 0.04em;
}

.kit-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}

.kit-list li {
  padding: 0.45em 1em;
  font-size: var(--step--1);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   10. 404
   -------------------------------------------------------------------------- */
.error-page {
  min-block-size: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--space-2xl) var(--gutter);
}

.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 12rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--surface);
  -webkit-text-stroke: 1px var(--border-strong);
}

/* --------------------------------------------------------------------------
   11. Small alignment utilities
   These exist so no page needs an inline style attribute, which the Content
   Security Policy blocks.
   -------------------------------------------------------------------------- */
.lede--center {
  margin-inline: auto;
  text-align: center;
}

.btn-row--spaced {
  margin-block-start: var(--space-l);
}

/* --------------------------------------------------------------------------
   12. Film list — an editorial run of stories, not a grid of thumbnails.
   Each row alternates side, states what the piece is in one line, then shows
   the frame. Reading before watching is the point.
   -------------------------------------------------------------------------- */
.film-list {
  display: grid;
  gap: clamp(3rem, 7vw, 6.5rem);
  counter-reset: film;
}

.film {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.film:nth-child(even) .film__text {
  order: 2;
}

@media (max-width: 54rem) {
  .film {
    grid-template-columns: 1fr;
    gap: var(--space-m);
  }

  .film:nth-child(even) .film__text {
    order: 0;
  }
}

.film__text {
  display: grid;
  align-content: center;
  gap: var(--space-2xs);
}

.film__index {
  counter-increment: film;
  font-family: var(--font-display);
  font-size: var(--step--1);
  letter-spacing: 0.2em;
  color: var(--gold);
}

.film__index::before {
  content: '0' counter(film);
}

.film__tag {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.film__title {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-block: 0.15rem 0.35rem;
}

.film__blurb {
  color: var(--muted);
  font-size: var(--step-0);
  max-inline-size: 44ch;
}

.film__cue {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-block-start: var(--space-s);
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.film__cue-dot {
  display: grid;
  place-items: center;
  inline-size: 2.5rem;
  block-size: 2.5rem;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  color: var(--gold);
  transition:
    background-color var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
}

.film__cue-dot svg {
  inline-size: 0.85rem;
  block-size: 0.85rem;
  margin-inline-start: 2px;
}

.film:hover .film__cue-dot,
.film:focus-within .film__cue-dot {
  background: var(--gold);
  color: #0b0b0b;
  transform: scale(1.08);
}

.film__media {
  position: relative;
  inline-size: 100%;
  text-align: start;
  background: none;
  border: 0;
  padding: 0;
  border-radius: var(--radius-m);
}

.film__media:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

.film__media .frame {
  aspect-ratio: 16 / 9;
}

.film__duration {
  position: absolute;
  inset-block-end: 0.85rem;
  inset-inline-end: 0.85rem;
  z-index: 4;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  background: rgba(9, 9, 9, 0.72);
  border-radius: var(--radius-s);
}

/* --------------------------------------------------------------------------
   13. Photo collections — the two weddings introduced separately
   -------------------------------------------------------------------------- */
.collection-intro {
  display: grid;
  gap: var(--space-2xs);
  margin-block: var(--space-xl) var(--space-m);
  padding-block-start: var(--space-m);
  border-block-start: 1px solid var(--border);
}

.collection-intro:first-of-type {
  margin-block-start: 0;
}

.collection-intro__title {
  font-family: var(--font-display);
  font-size: var(--step-3);
  letter-spacing: -0.025em;
}

.collection-intro__meta {
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   14. Section transitions — a hairline that draws itself in
   -------------------------------------------------------------------------- */
.draw-line {
  block-size: 1px;
  background: var(--border-strong);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.1s var(--ease-out);
}

.draw-line.is-in {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  .draw-line {
    transform: none;
  }
}

/* Large muted numeral behind a section heading */
.section-index {
  position: absolute;
  inset-block-start: calc(var(--space-3xl) * -0.15);
  inset-inline-end: var(--gutter);
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 11rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px var(--border);
  pointer-events: none;
  user-select: none;
  z-index: -1;
}

/* Lead line above a gallery's filters */
.gallery-lead {
  font-size: var(--step-1);
  color: var(--muted);
  max-inline-size: 48ch;
  margin-block-end: var(--space-m);
}

/* --------------------------------------------------------------------------
   15. Legal pages
   -------------------------------------------------------------------------- */
.legal {
  padding-block: var(--space-2xl);
  max-inline-size: 56rem;
}

.legal__section {
  padding-block: var(--space-xl);
  border-block-start: 1px solid var(--border);
}

.legal__section:first-child {
  border-block-start: 0;
  padding-block-start: 0;
}

.legal__section h2 {
  font-size: var(--step-4);
  margin-block-end: var(--space-m);
}

.legal__section h3 {
  font-size: var(--step-1);
  color: var(--text);
  margin-block: var(--space-l) var(--space-2xs);
}

.legal__section p {
  color: var(--muted);
  max-inline-size: 68ch;
}

.legal__section p + p {
  margin-block-start: var(--space-s);
}

.legal__section code {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 0.9em;
  padding: 0.1em 0.4em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  color: var(--warm);
}

.legal-updated {
  margin-block-start: var(--space-m);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.legal__notice {
  padding: var(--space-m);
  background: var(--surface);
  border: 1px solid var(--border);
  border-inline-start: 3px solid var(--gold);
  border-radius: var(--radius-m);
  margin-block-end: var(--space-m);
}

.legal__notice p:first-child {
  color: var(--text);
}

.legal__contact {
  display: grid;
  gap: var(--space-s);
  margin-block: var(--space-m);
}

.legal__contact > div {
  display: grid;
  grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
  gap: var(--space-s);
  padding-block-end: var(--space-s);
  border-block-end: 1px solid var(--border);
}

.legal__contact dt {
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

@media (max-width: 40rem) {
  .legal__contact > div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

/* ==========================================================================
   HOME — the scroll narrative
   Each section is a beat: who → the work → how it is made → what to ask for.
   ========================================================================== */

/* --------------------------------------------------------- brand in words */
.hero__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: var(--step--1);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--warm);
  margin-block-end: var(--space-m);
}

.hero__brand::before,
.hero__brand::after {
  content: '';
  block-size: 1px;
  inline-size: clamp(1.5rem, 6vw, 4rem);
  background: linear-gradient(90deg, transparent, var(--gold-line));
}

.hero__brand::after {
  background: linear-gradient(90deg, var(--gold-line), transparent);
}

/* ------------------------------------------------------ auto-running rail */
/* Moves on its own, slowly, left to right. Pauses the moment a pointer or a
   keyboard focus lands on it, so nothing slides out from under a visitor who
   is trying to click it. The track holds two identical groups and travels
   exactly -50%, which is what makes the loop seamless. */
.rail {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-m);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.rail__track {
  display: flex;
  inline-size: max-content;
  will-change: transform;
  animation: rail-drift var(--rail-duration, 80s) linear infinite;
}

.rail:hover .rail__track,
.rail:focus-within .rail__track {
  animation-play-state: paused;
}

.rail__group {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.4vw, 1.1rem);
  padding-inline-end: clamp(0.6rem, 1.4vw, 1.1rem);
  flex: none;
}

@keyframes rail-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.rail__item {
  position: relative;
  flex: none;
  display: block;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  inline-size: clamp(11rem, 18vw, 17rem);
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-m);
  overflow: hidden;
  cursor: pointer;
  transition:
    border-color var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
}

.rail__item:nth-child(even) {
  aspect-ratio: 4 / 3;
  align-self: center;
  inline-size: clamp(13rem, 22vw, 21rem);
}

.rail__item img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  transition:
    transform var(--dur-slow) var(--ease-out),
    opacity var(--dur) var(--ease-out);
  opacity: 0.86;
}

.rail__item:hover,
.rail__item:focus-visible {
  border-color: var(--gold-line);
  transform: translateY(-4px);
}

.rail__item:hover img,
.rail__item:focus-visible img {
  transform: scale(1.06);
  opacity: 1;
}

/* A hairline that sweeps in on hover, so the item reads as openable. */
.rail__item::after {
  content: '';
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  block-size: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease-out);
  z-index: 4;
}

.rail__item:hover::after,
.rail__item:focus-visible::after {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  .rail {
    overflow-x: auto;
  }

  .rail__track {
    animation: none;
  }
}

/* ------------------------------------------------------- big statement */
.statement {
  padding-block: var(--space-3xl);
}

.statement__text {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.1rem + 3.6vw, 4.1rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  max-inline-size: 22ch;
}

/* Each word lifts in turn — the delay is written by JS, not hard-coded. */
.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.word__inner {
  display: inline-block;
  transform: translate3d(0, 105%, 0);
  transition: transform 820ms var(--ease-out);
  transition-delay: var(--word-delay, 0ms);
}

.is-in .word__inner {
  transform: none;
}

.statement__dim {
  color: var(--muted-dim);
}

.statement__gold {
  color: var(--gold);
}

@media (prefers-reduced-motion: reduce) {
  .word__inner {
    transform: none;
  }
}

/* ------------------------------------------------ sticky process sequence */
/* The visual pins while four steps scroll past it. This is the one moment on
   the site that could not be a static page, and it is doing real work: it
   shows the same project moving through each stage. */
.sequence {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.sequence__visual {
  position: sticky;
  inset-block-start: calc(var(--header-h) + 2.5rem);
  /* 16:9 to match the films, and `contain` below so a portrait still is
     letterboxed rather than having its head cut off. Nothing on this page
     crops the client's work. */
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #060606;
}

.sequence__frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.05);
  transition:
    opacity 700ms var(--ease-out),
    transform 1200ms var(--ease-out);
}

.sequence__frame.is-current {
  opacity: 1;
  transform: none;
}

.sequence__frame img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: contain;
}

.sequence__counter {
  position: absolute;
  inset-block-end: 1.1rem;
  inset-inline-start: 1.3rem;
  z-index: 4;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-variant-numeric: tabular-nums;
  color: var(--warm);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}

.sequence__counter span {
  color: var(--gold);
}

.sequence__steps {
  display: grid;
}

.step {
  min-block-size: 74vh;
  display: grid;
  align-content: center;
  gap: var(--space-xs);
  padding-block: var(--space-l);
}

.step__num {
  font-family: var(--font-display);
  font-size: var(--step--1);
  letter-spacing: 0.28em;
  color: var(--gold);
}

.step__title {
  font-family: var(--font-display);
  font-size: var(--step-4);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--muted-dim);
  transition: color 500ms var(--ease-out);
}

.step.is-active .step__title {
  color: var(--text);
}

.step__body {
  color: var(--muted);
  max-inline-size: 42ch;
}

.step__rule {
  block-size: 1px;
  background: var(--border);
  margin-block-start: var(--space-s);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 900ms var(--ease-out);
}

.step.is-active .step__rule {
  transform: scaleX(1);
  background: var(--gold-line);
}

@media (max-width: 54rem) {
  .sequence {
    grid-template-columns: 1fr;
  }

  .sequence__visual {
    position: relative;
    inset-block-start: auto;
    aspect-ratio: 16 / 10;
  }

  .step {
    min-block-size: 0;
    padding-block: var(--space-m);
  }
}

/* ------------------------------------------------------ four ways to help */
.ways {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
}

.way {
  position: relative;
  background: var(--bg);
  padding: clamp(1.5rem, 3.2vw, 2.75rem);
  display: grid;
  gap: var(--space-2xs);
  align-content: start;
  min-block-size: clamp(13rem, 22vw, 17rem);
  isolation: isolate;
  overflow: hidden;
}

.way::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(155deg, rgba(201, 169, 97, 0.09), transparent 55%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
}

.way:hover::before,
.way:focus-within::before {
  opacity: 1;
}

.way__num {
  font-family: var(--font-display);
  font-size: var(--step--1);
  letter-spacing: 0.24em;
  color: var(--gold);
}

.way__title {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.1;
  letter-spacing: -0.028em;
  margin-block-start: var(--space-2xs);
}

.way__text {
  color: var(--muted);
  max-inline-size: 34ch;
}

.way__mark {
  position: absolute;
  inset-block-end: -0.9rem;
  inset-inline-end: 0.8rem;
  z-index: -1;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 9vw, 8rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--border-strong);
  transition: transform var(--dur-slow) var(--ease-out);
}

.way:hover .way__mark {
  transform: translateY(-6px);
}

@media (max-width: 44rem) {
  .ways {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------- brand moment */
.brand-moment {
  display: grid;
  place-items: center;
  gap: var(--space-m);
  padding-block: var(--space-3xl);
  text-align: center;
}

.brand-moment__art {
  inline-size: min(100%, 52rem);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #060606;
}

.brand-moment__art img {
  inline-size: 100%;
  block-size: 100%;
  /* `contain`, so the wordmark is never clipped at any viewport width. */
  object-fit: contain;
}

.brand-moment__name {
  font-size: var(--step--1);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   16. Featured reel — layering
   The reel holds a .frame and a caption. Without these rules the caption sat
   in normal flow above the frame, which read as a stray bar across the top of
   the poster. The frame fills the reel; the caption floats over its foot.
   -------------------------------------------------------------------------- */
.reel .frame {
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: 0;
  display: block;
}

.reel .frame img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.reel__meta {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 4;
  display: grid;
  gap: 0.15rem;
  padding: clamp(1rem, 2.4vw, 1.75rem);
  text-align: start;
  background: linear-gradient(180deg, rgba(9, 9, 9, 0), rgba(9, 9, 9, 0.88));
  pointer-events: none;
}

.reel__title {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.reel__hint {
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.reel .play-badge {
  z-index: 5;
}

/* ==========================================================================
   PORTFOLIO — entrance choreography
   The grid should assemble, not appear. Cards rise and un-blur in short runs
   of three or four so the eye follows a wave across the page instead of
   watching 122 things move at once.
   ========================================================================== */
.js .masonry [data-reveal='rise'],
.js .video-grid [data-reveal='rise'] {
  opacity: 0;
  transform: translate3d(0, 34px, 0) scale(0.985);
  transition:
    opacity 760ms var(--ease-out),
    transform 900ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.js .masonry [data-reveal='rise'].is-in,
.js .video-grid [data-reveal='rise'].is-in {
  opacity: 1;
  transform: none;
}

/* The film poster wipes open from the side the row enters from. */
.js .frame--wipe {
  clip-path: inset(0 0 0 0);
}

.js [data-reveal='right'] .frame--wipe {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1s var(--ease-out) 120ms;
}

.js [data-reveal='left'] .frame--wipe {
  clip-path: inset(0 0 0 100%);
  transition: clip-path 1s var(--ease-out) 120ms;
}

.js [data-reveal].is-in .frame--wipe {
  clip-path: inset(0 0 0 0);
}

/* A gold corner tick that draws itself on hover — quiet, but it makes the
   whole grid feel handled rather than dumped. */
.masonry .media-item .frame::before,
.video-grid .media-item .frame::before {
  content: '';
  position: absolute;
  inset-block-start: 0.6rem;
  inset-inline-start: 0.6rem;
  inline-size: 1.35rem;
  block-size: 1.35rem;
  border-block-start: 1px solid var(--gold);
  border-inline-start: 1px solid var(--gold);
  opacity: 0;
  transform: translate3d(-6px, -6px, 0);
  transition:
    opacity var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
  z-index: 4;
  pointer-events: none;
}

.masonry .media-item:hover .frame::before,
.masonry .media-item:focus-visible .frame::before,
.video-grid .media-item:hover .frame::before,
.video-grid .media-item:focus-visible .frame::before {
  opacity: 1;
  transform: none;
}

/* The film index counts up from a hairline as the row arrives. */
.film__index {
  position: relative;
  padding-inline-start: 2.6rem;
}

.film__index::after {
  content: '';
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 0;
  inline-size: 2rem;
  block-size: 1px;
  background: var(--gold-line);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 900ms var(--ease-out) 200ms;
}

.film__text.is-in .film__index::after {
  transform: scaleX(1);
}

/* Tabs get a moving underline rather than a hard swap. */
.tab {
  position: relative;
}

.tab::after {
  content: '';
  position: absolute;
  inset-block-end: -1px;
  inset-inline: 0;
  block-size: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dur) var(--ease-out);
}

.tab[aria-selected='true']::after {
  transform: scaleX(1);
}

/* Filter buttons lift very slightly as a set when the row appears. */
.filters .filter {
  transition:
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.filters .filter:hover {
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .js .masonry [data-reveal='rise'],
  .js .video-grid [data-reveal='rise'] {
    opacity: 1;
    transform: none;
  }

  .js .frame--wipe,
  .js [data-reveal='right'] .frame--wipe,
  .js [data-reveal='left'] .frame--wipe {
    clip-path: none;
  }
}

/* The About visual is the logo treatment, which must never be cropped. */
.portrait {
  aspect-ratio: 16 / 9;
  background: #060606;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
}

.portrait img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: contain;
}

/* The gold cue is now a button, so it needs button resets and a focus ring. */
.film__cue {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: start;
}

.film__cue:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 6px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   CONTACT — reach me on the left, enquiry form on the right
   ========================================================================== */
.contact {
  position: relative;
  /* Set explicitly. An earlier centred version of this section used to leak
     `text-align: center` into the channel cards, which centred the short
     labels over left-aligned values and made the column look ragged. */
  text-align: start;
  padding-block: var(--space-3xl);
  border-block-start: 1px solid var(--border);
  background: var(--bg-elevated);
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  inset-block-start: -30%;
  inset-inline-start: 50%;
  translate: -50% 0;
  inline-size: min(70rem, 130%);
  aspect-ratio: 2 / 1;
  background: radial-gradient(ellipse at center, rgba(201, 169, 97, 0.06) 0%, transparent 62%);
  pointer-events: none;
}

.contact > .container {
  position: relative;
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.contact__title {
  font-size: var(--step-5);
  margin-block: var(--space-2xs) var(--space-s);
}

.contact__intro .lede {
  max-inline-size: 40ch;
}

@media (max-width: 56rem) {
  .contact__grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------- channels -- */
.channels {
  display: grid;
  gap: 0.5rem;
  margin-block-start: var(--space-l);
  padding: 0;
  list-style: none;
}

.channel {
  /* A fixed icon column and one text column, so the labels and values on every
     card start on exactly the same vertical line regardless of icon or text
     length. `align-items: center` keeps the icon optically centred against a
     two-line body. */
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  align-items: center;
  gap: var(--space-s);
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  background: var(--surface);
  text-align: start;
  transition:
    border-color var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.channel:hover,
.channel:focus-visible {
  border-color: var(--gold-line);
  background: var(--surface-hover);
  transform: translateX(3px);
}

.channel__icon {
  display: grid;
  place-items: center;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  color: var(--warm);
}

.channel__icon--wa {
  color: #25d366;
}

.channel__icon svg {
  inline-size: 1.15rem;
  block-size: 1.15rem;
}

.channel__body {
  display: grid;
  justify-items: start;
  gap: 0.15rem;
  min-inline-size: 0;
  text-align: start;
}

.channel__label {
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.channel__value {
  font-size: var(--step-0);
  line-height: 1.35;
  color: var(--text);
  overflow-wrap: anywhere;
}

.channel__note {
  color: var(--muted-dim);
}

.channel:hover .channel__label,
.channel:focus-visible .channel__label {
  color: var(--gold);
}

.contact__social {
  margin-block-start: var(--space-l);
}

.contact__social-label {
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-block-end: var(--space-2xs);
}

/* ----------------------------------------------------------------- form -- */
.form {
  display: grid;
  gap: var(--space-s);
  padding: clamp(1.4rem, 3vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-s);
}

@media (max-width: 34rem) {
  .form__row {
    grid-template-columns: 1fr;
  }
}

.field {
  display: grid;
  gap: 0.4rem;
  min-inline-size: 0;
}

.field__label {
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.field__input {
  inline-size: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: var(--step-0);
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-m);
  transition:
    border-color var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out);
}

.field__input::placeholder {
  color: var(--muted-dim);
}

.field__input:hover {
  border-color: #3a3a3a;
}

.field__input:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--bg-elevated);
}

.field__input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Only complain once the visitor has actually typed something wrong. */
.field__input:not(:placeholder-shown):invalid {
  border-color: #b4553f;
}

.field__input--area {
  resize: vertical;
  min-block-size: 8rem;
  line-height: 1.6;
}

.field__input--select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 55%, calc(100% - 0.8rem) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-inline-end: 2.5rem;
}

.field__input--select option {
  background: var(--surface);
  color: var(--text);
}

/* Off-screen rather than display:none — some bots skip hidden fields. */
.field--trap {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-s);
  margin-block-start: var(--space-2xs);
}

.form__submit[data-busy] {
  opacity: 0.6;
  pointer-events: none;
}

.form__note {
  font-size: var(--step--1);
  color: var(--muted-dim);
}

.form__status {
  font-size: var(--step-0);
  min-block-size: 1.4em;
}

.form__status[data-state='ok'] {
  color: #6fd39b;
}

.form__status[data-state='error'] {
  color: #e08a72;
}

.form__status[data-state='busy'] {
  color: var(--muted);
}
