/* ---------------------------------------------------------------------
   Outdoor Photographer — front-end styles.

   Design tokens and the motion system are self-contained here: the theme
   no longer ships a theme.json, so nothing depends on --wp--preset--*.
--------------------------------------------------------------------- */

:root {
  --color-bg: #f6f4ef;
  --color-bg-raised: #ffffff;
  --color-ink: #17140f;
  --color-text: #17140f;
  --color-text-muted: #5c574c;
  --color-border: #e2ddd0;
  --color-accent: #b0502c;
  --color-accent-muted: #8f6a52;
  --color-inverse-bg: #17140f;
  --color-inverse-text: #f6f4ef;

  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --container-max: 90rem;
  /* The gutter scales with the viewport instead of stopping at 3rem: at
     3rem a 1440px laptop gave the content 93% of the screen, which read as
     edge-to-edge and left photographs with nothing to breathe against. */
  --container-pad: clamp(1.5rem, 5vw, 6rem);

  --radius-sm: 0.4rem;
  --radius-md: 1rem;
  --radius-lg: 1.75rem;

  /* One easing curve everywhere, so interactions read as a single
     language rather than a collection of separate effects. */
  --ease-editorial: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 220ms;
  --duration-base: 500ms;
  --duration-slow: 900ms;
  --duration-mask: 1100ms;
  --duration-mask-scale: 1400ms;
  --stagger-step: 90ms;

  color-scheme: light;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

@media (hover: none) {
  a:active,
  button:active {
    opacity: 0.7;
  }
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

/* --- Typography ----------------------------------------------------- */
h1,
h2,
h3,
.font-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 0.95;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.25rem, 8vw, 6rem);
}

h2 {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
}

h3,
.h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-color: var(--color-border);
}

.lede {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--color-text-muted);
  max-width: 46ch;
  line-height: 1.6;
}

/* --- Layout --------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  /* max() keeps content clear of a notch in landscape on iOS without
     changing padding anywhere else. */
  padding-inline: max(var(--container-pad), env(safe-area-inset-left))
    max(var(--container-pad), env(safe-area-inset-right));
}

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

@media (max-width: 640px) {
  .section {
    padding-block: var(--space-16);
  }
}

@media (max-width: 430px) {
  .section {
    padding-block: var(--space-12);
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 100;
  background: var(--color-ink);
  color: var(--color-bg);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  transition: top var(--duration-fast) var(--ease-editorial);
}

.skip-link:focus {
  top: var(--space-4);
}

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

/* --- Buttons, tags, links ------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 2.75rem;
  padding: var(--space-3) var(--space-6);
  background: var(--color-ink);
  color: var(--color-bg);
  border: 1px solid var(--color-ink);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity var(--duration-fast) var(--ease-editorial);
}

.btn:hover,
.btn:focus-visible {
  opacity: 0.78;
}

.btn--inverse {
  background: var(--color-inverse-text);
  color: var(--color-inverse-bg);
  border-color: var(--color-inverse-text);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.link-underline {
  position: relative;
  text-decoration: none;
}

.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.15em;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--duration-base) var(--ease-editorial);
}

.link-underline:hover::after,
.link-underline:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* --- Scroll reveal (progressive enhancement) ------------------------ */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--duration-base) var(--ease-editorial),
    transform var(--duration-base) var(--ease-editorial);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.no-js [data-reveal] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Image mask reveal ---------------------------------------------
   Split across two elements on purpose: a clipped element reports zero
   intersection to IntersectionObserver, so observing the clipped node
   itself would deadlock its own reveal. The wrapper carries only the
   scale; the image carries only the clip-path, which also keeps it from
   fighting the hover zoom on the same property.
--------------------------------------------------------------------- */
[data-reveal-image] {
  transform: scale(1.025);
  transition: transform var(--duration-mask-scale) var(--ease-editorial);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal-image].is-visible {
  transform: scale(1);
}

[data-reveal-image] .reveal-clip-target {
  clip-path: inset(0 0 100% 0);
  transition: clip-path var(--duration-mask) var(--ease-editorial);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal-image].is-visible .reveal-clip-target {
  clip-path: inset(0 0 0% 0);
}

.no-js [data-reveal-image] {
  transform: none;
}

.no-js [data-reveal-image] .reveal-clip-target {
  clip-path: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal-image],
  [data-reveal-image] .reveal-clip-target {
    transform: none;
    clip-path: none;
    transition: none;
  }
}

/* --- Masked title line ---------------------------------------------- */
.title-line {
  overflow: hidden;
}

.title-line[data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}

.title-line__inner {
  display: block;
  transform: translateY(110%);
  transition: transform var(--duration-slow) var(--ease-editorial);
}

.title-line.is-visible .title-line__inner {
  transform: translateY(0);
}

.no-js .title-line__inner {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .title-line__inner {
    transform: none;
    transition: none;
  }
}

.project-number {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-accent-muted);
  font-variant-numeric: tabular-nums;
}

/* --- Contextual cursor (desktop pointers only) ---------------------- */
.cursor-view {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  background: var(--color-ink);
  color: var(--color-bg);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(0.8);
  transition: opacity var(--duration-fast) var(--ease-editorial),
    transform var(--duration-fast) var(--ease-editorial);
  will-change: transform;
}

.cursor-view.is-active {
  opacity: 1;
  transform: translate3d(-50%, -50%, 0) scale(1);
}

/* --- Header --------------------------------------------------------- */
.site-header {
  position: sticky;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  padding-block: var(--space-4);
  padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px);
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.site-header__brand {
  font-size: clamp(1.05rem, 4vw, 1.35rem);
  text-decoration: none;
  color: var(--color-text);
}

/* The mark: a round pill the height of the menu button, so the header
   keeps the line it already had. It holds the logo when there is one, and
   a home glyph when the site has neither logo nor name. */
.site-header__brand--mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  border-radius: 999px;
  overflow: hidden;
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  transition: border-color var(--duration-fast) var(--ease-editorial);
}

.site-header__brand--mark:hover,
.site-header__brand--mark:focus-visible {
  border-color: var(--color-accent);
}

.site-header__logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 430px) {
  .site-header__brand--mark {
    width: 2.5rem;
    height: 2.5rem;
  }
}

.menu-anchor {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 2.75rem;
  padding-inline: var(--space-4);
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  transition: background var(--duration-fast) var(--ease-editorial);
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: var(--color-border);
}

.menu-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-toggle__bars i {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  font-style: normal;
}

.menu-dropdown {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  width: min(19rem, 80vw);
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: 0 20px 40px -20px rgba(23, 20, 15, 0.25);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.menu-dropdown[hidden] {
  display: none;
}

.menu-dropdown__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.menu-dropdown__list a,
.menu-dropdown__link {
  display: block;
  padding-block: var(--space-2);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--color-text);
  transition: color var(--duration-fast) var(--ease-editorial);
}

.menu-dropdown__list a:hover,
.menu-dropdown__list a:focus-visible,
.menu-dropdown__link:hover,
.menu-dropdown__link:focus-visible {
  color: var(--color-accent);
}

.menu-dropdown__contact {
  width: 100%;
}

.menu-dropdown__social {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
}

.menu-dropdown__insta {
  color: var(--color-text-muted);
  transition: color var(--duration-fast) var(--ease-editorial);
}

.menu-dropdown__insta:hover,
.menu-dropdown__insta:focus-visible {
  color: var(--color-accent);
}

/* On a small screen the button shrinks to the bars alone. The word is
   hidden from the eye rather than removed, so the button keeps announcing
   itself as "Menu" to a screen reader. */
@media (max-width: 430px) {
  .menu-toggle {
    width: 2.75rem;
    padding-inline: 0;
  }

  .menu-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

/* --- Hero ----------------------------------------------------------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 32rem;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

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

.hero__media img,
.hero__media video,
.hero__media .lazy-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media .lazy-video {
  aspect-ratio: auto;
  border-radius: 0;
}

/* Hero slideshow: slides sit side by side and the track slides one full
   width at a time. */
.hero__carousel {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform var(--duration-slow) var(--ease-editorial);
  will-change: transform;
}

.hero__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* An unattended slideshow is exactly the motion this setting asks to stop,
   so it holds on the first image instead. */
@media (prefers-reduced-motion: reduce) {
  .hero__track {
    transition: none;
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21, 20, 15, 0.15) 0%, rgba(21, 20, 15, 0.85) 100%);
}

.hero__content {
  position: relative;
  padding-bottom: var(--space-16);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Centred hero: the block sits in the middle of the frame rather than
   resting on its lower edge. */
.hero--center {
  align-items: center;
}

.hero--center .hero__content {
  align-items: center;
  text-align: center;
  padding-bottom: 0;
}

.hero--center .hero__lede {
  margin-inline: auto;
}

.hero--left {
  align-items: flex-end;
}

.hero__logo-wrap {
  margin: 0 0 var(--space-2);
}

.hero__logo {
  height: clamp(2.75rem, 7vw, 5.5rem);
  width: auto;
  max-width: min(100%, 26rem);
  object-fit: contain;
}

.hero--center .hero__logo {
  margin-inline: auto;
}

.hero__title {
  font-size: clamp(2.25rem, 9vw, 7rem);
  color: var(--color-inverse-text);
}

.hero__eyebrow {
  color: var(--color-inverse-text);
  text-decoration-color: rgba(246, 244, 239, 0.4);
}

.hero__availability {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(246, 244, 239, 0.65);
}

.hero__lede {
  color: rgba(246, 244, 239, 0.82);
}

/* --- Home: intro and work ------------------------------------------- */
.intro__grid {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.intro__text {
  max-width: 56ch;
}

.work__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-8);
}

.work__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8) var(--space-6);
}

@media (max-width: 720px) {
  .work__grid {
    grid-template-columns: 1fr;
  }

  .work__header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
}

@media (max-width: 430px) {
  .intro__grid .btn {
    width: 100%;
    margin-top: var(--space-2);
  }

  .hero__content .btn {
    width: 100%;
  }
}

/* --- Client logos ("Ils m'ont fait confiance") -----------------------
   A continuous band. The list is printed twice and the track slides by
   exactly half its width, so the second copy lands where the first began
   and the loop is seamless.
--------------------------------------------------------------------- */
.refs__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-top: var(--space-2);
}

.refs__viewport {
  display: flex;
  margin-top: var(--space-8);
  /* The band is deliberately full-bleed: it reads as a passing ribbon
     rather than a boxed-in list. */
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.refs__track {
  display: flex;
  align-items: center;
  gap: clamp(var(--space-8), 8vw, var(--space-24));
  padding-inline: clamp(var(--space-4), 4vw, var(--space-12));
  flex: 0 0 auto;
  animation: op-marquee var(--marquee-duration, 40s) linear infinite;
}

.refs__viewport:hover .refs__track,
.refs__viewport:focus-within .refs__track {
  animation-play-state: paused;
}

.refs__logo {
  flex: 0 0 auto;
}

.refs__logo img {
  display: block;
  width: auto;
  height: clamp(1.75rem, 4vw, 2.5rem);
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.5;
  transition: opacity var(--duration-base) var(--ease-editorial);
}

.refs__viewport:hover .refs__logo img {
  opacity: 0.75;
}

@keyframes op-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* Without motion the band becomes a plain row the visitor can swipe or
   scroll through, so no logo is unreachable. */
@media (prefers-reduced-motion: reduce) {
  .refs__viewport {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .refs__track {
    animation: none;
  }

  .refs__track[aria-hidden="true"] {
    display: none;
  }
}

.no-js .refs__track[aria-hidden="true"] {
  display: none;
}

/* --- Project card --------------------------------------------------- */
.project-card {
  display: block;
  min-width: 0;
  text-decoration: none;
  color: var(--color-text);
}

.project-card__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-bg-raised);
}

.project-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background var(--duration-slow) var(--ease-editorial);
  pointer-events: none;
}

.project-card:hover .project-card__media::after,
.project-card:focus-visible .project-card__media::after {
  background: rgba(0, 0, 0, 0.12);
}

.project-card__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-editorial);
}

.project-card:hover .project-card__media img,
.project-card:focus-visible .project-card__media img {
  transform: scale(1.025);
}

.project-card__meta {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  padding-top: var(--space-4);
}

/* A project still waiting for its cover keeps the same footprint as one
   that has it, rather than collapsing to nothing. */
.project-card__media--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--color-border);
  color: var(--color-border);
}

.project-card__title {
  flex: 1;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}

.project-card__year {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .project-card__media img,
  .project-card__media::after {
    transition: none;
  }
}

/* --- Portfolio archive ---------------------------------------------- */
.portfolio-header {
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Two columns on a wide screen: a single full-width card stood taller than
   the viewport, so no project could be seen whole. Two also matches the
   home page teasers. */
.list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-16) var(--space-8);
}

.list > * {
  min-width: 0;
}

@media (max-width: 900px) {
  .list {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
}

.pagination {
  margin-top: var(--space-16);
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: 0.9rem;
}

.pagination .current {
  color: var(--color-accent);
  font-weight: 600;
}

/* --- Project detail ------------------------------------------------- */
.project-header {
  padding-bottom: var(--space-12);
}

.project-header__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  align-items: flex-start;
}

.project-header__row {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  align-items: flex-start;
  width: 100%;
}

.project-header__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  align-items: flex-start;
  width: 100%;
}

/* With a header photo available, the title starts the row on the left and
   the image starts it on the right at the same height — the title's own
   first line sets where both begin, instead of the image floating centred
   against however tall the text block turns out to be. */
.project-header__row.has-media {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-12);
  align-items: start;
}

.project-header__media {
  margin: 0;
  width: 100%;
}

.project-header__media-frame {
  display: block;
}

.project-header__image {
  width: 100%;
  height: auto;
  max-height: 32rem;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

@media (max-width: 900px) {
  .project-header__row.has-media {
    grid-template-columns: 1fr;
  }

  .project-header__image {
    max-height: 24rem;
  }
}

.back-link {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text);
  text-decoration: none;
}

.project-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.project-meta-line .eyebrow {
  color: var(--color-text-muted);
  text-decoration: none;
}

.project-meta-line__sep {
  color: var(--color-border);
}

.project-title {
  font-size: clamp(2.25rem, 9vw, 6.5rem);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.project-credits {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.project-media {
  padding-top: 0;
}

.media-blocks {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

/* Two photographs per row rather than one at full width. A single column
   of full-bleed images reads as a slideshow the visitor has to sit
   through; a pair lets a series be taken in at a glance. */
.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-12) var(--space-8);
  align-items: start;
}

.media-grid > * {
  min-width: 0;
}

/* Inside a column the width already keeps a photograph in bounds, so
   neither orientation needs a height cap: each fills its column and keeps
   its own proportions. */
.media-grid .block__image,
.media-grid .block--portrait .block__image {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: fill;
}

@media (max-width: 720px) {
  .media-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.block--full img,
.block__image {
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* A vertical photograph is sized by its own proportions instead of being
   stretched to the column: at full width its height ran past the 85vh cap
   above, and object-fit then cropped the middle out of it — a portrait
   arrived on the page as a horizontal band. Letting both maximums apply
   to an image at its natural size keeps the whole frame, whatever the
   ratio. */
.block--portrait .block__image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(85vh, 52rem);
  object-fit: fill;
  margin-inline: auto;
}

/* The mask reveal scales its wrapper, so the wrapper has to shrink to the
   picture rather than stay the width of the column. */
.block--portrait [data-reveal-image] {
  display: flex;
  justify-content: center;
}

.block--text {
  max-width: 60ch;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.block__body {
  color: var(--color-text-muted);
  line-height: 1.7;
}

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

.block__caption {
  margin-top: var(--space-2);
  font-size: 0.8rem;
  color: var(--color-accent-muted);
}

.project-nav {
  border-top: 1px solid var(--color-border);
}

.project-nav__inner {
  display: flex;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.project-nav__next {
  margin-left: auto;
  text-align: right;
}

/* --- Video ---------------------------------------------------------- */
.lazy-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--color-bg-raised);
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.lazy-video__el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* A film hosted on YouTube or Vimeo: its own still, with a play button.
   The player itself only arrives when the visitor asks for it. */
.video-embed {
  position: relative;
  background: var(--color-ink);
}

.video-embed__poster,
.video-embed__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-embed__poster {
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-editorial),
    opacity var(--duration-base) var(--ease-editorial);
}

.video-embed__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.video-embed__icon {
  display: block;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  background: var(--color-bg);
  box-shadow: 0 14px 34px -18px rgba(23, 20, 15, 0.7);
  transition: transform var(--duration-base) var(--ease-editorial);
  position: relative;
}

/* The triangle is drawn from a border rather than shipped as an image. */
.video-embed__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 0.7rem 0 0.7rem 1.15rem;
  border-color: transparent transparent transparent var(--color-ink);
}

.video-embed__play:hover .video-embed__icon,
.video-embed__play:focus-visible .video-embed__icon {
  transform: scale(1.08);
}

.video-embed__play:hover ~ .video-embed__poster,
.video-embed:has(.video-embed__play:hover) .video-embed__poster {
  transform: scale(1.02);
  opacity: 0.88;
}

@media (max-width: 560px) {
  .video-embed__icon {
    width: 3.5rem;
    height: 3.5rem;
  }

  .video-embed__icon::after {
    border-width: 0.55rem 0 0.55rem 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-embed__poster,
  .video-embed__icon {
    transition: none;
  }
}

/* --- Film: the clip strip --------------------------------------------
   Standalone shots read as a strip, not a stack. The band runs off the
   right edge of the screen so the next clip is cut by the edge — that is
   the affordance; the arrows and the counter only confirm it.
--------------------------------------------------------------------- */
.clips {
  padding-block: var(--space-16);
  overflow: hidden;
}

.clips__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.clips__label {
  margin-bottom: 0;
  flex: 1;
  min-width: 8rem;
}

.clips__controls {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.clips__count {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

.clips__count-sep {
  color: var(--color-border);
  margin-inline: 0.15em;
}

.clips__arrows {
  display: flex;
  gap: var(--space-2);
}

.clips__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-bg-raised);
  color: var(--color-text);
  transition: border-color var(--duration-fast) var(--ease-editorial),
    opacity var(--duration-fast) var(--ease-editorial);
}

.clips__arrow:hover:not([disabled]) {
  border-color: var(--color-accent);
}

.clips__arrow[disabled] {
  opacity: 0.3;
  cursor: default;
}

/* Touch already scrolls; on a phone the arrows are dead weight. */
@media (hover: none) {
  .clips__arrows {
    display: none;
  }
}

.clips__track {
  display: flex;
  gap: var(--space-6);
  margin: 0;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  /* The first clip lines up with the page, the run bleeds off the right. */
  padding-inline: max(
    var(--container-pad),
    calc((100vw - var(--container-max)) / 2 + var(--container-pad))
  );
  /* Without this the snap point ignores the padding above: the browser
     scrolls the band by one gutter on load to align the first item with
     the container's edge, and the run starts off-register. */
  scroll-padding-inline: max(
    var(--container-pad),
    calc((100vw - var(--container-max)) / 2 + var(--container-pad))
  );
  padding-block: var(--space-2) var(--space-4);
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

@media (prefers-reduced-motion: reduce) {
  .clips__track {
    scroll-behavior: auto;
  }
}

.clips__item {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.clip {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.clip__media .lazy-video {
  border-radius: var(--radius-md);
  background: var(--color-ink);
}

/* One format for the whole strip, so the band keeps an even height and
   the eye reads a sequence rather than a jumble. */
/* The widths are picked so every format lands on roughly the same height:
   whichever one a project uses, the band sits in the page the same way. */
.clips--16-9 .clips__item { width: min(88vw, 40rem); }
.clips--16-9 .clip__media .lazy-video { aspect-ratio: 16 / 9; }

.clips--4-3 .clips__item { width: min(80vw, 30rem); }
.clips--4-3 .clip__media .lazy-video { aspect-ratio: 4 / 3; }

.clips--5-4 .clips__item { width: min(78vw, 28rem); }
.clips--5-4 .clip__media .lazy-video { aspect-ratio: 5 / 4; }

.clips--9-16 .clips__item { width: min(62vw, 17rem); }
.clips--9-16 .clip__media .lazy-video { aspect-ratio: 9 / 16; }

.clips--1-1 .clips__item { width: min(76vw, 26rem); }
.clips--1-1 .clip__media .lazy-video { aspect-ratio: 1 / 1; }

.clips--4-5 .clips__item { width: min(70vw, 23rem); }
.clips--4-5 .clip__media .lazy-video { aspect-ratio: 4 / 5; }

/* On a phone the widths above leave no room for the next clip, and the
   cut edge is the whole point of the band — so they tighten until it
   shows again. */
@media (max-width: 560px) {
  .clips__track {
    gap: var(--space-4);
  }

  .clips--16-9 .clips__item { width: 78vw; }
  .clips--4-3 .clips__item  { width: 74vw; }
  .clips--5-4 .clips__item  { width: 72vw; }
  .clips--1-1 .clips__item  { width: 70vw; }
  .clips--4-5 .clips__item  { width: 62vw; }
  .clips--9-16 .clips__item { width: 52vw; }
}

.clip__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
}

.clip__title {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.clip__desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  flex-basis: 100%;
}

/* --- Social: reels, carousels ----------------------------------------
   Vertical formats get their own composition rather than the 16/9 blocks
   the Film projects use. Nothing here draws a phone: the frame is the
   video itself, in its own ratio. */
.social-block {
  /* Three of these can stack on one project, so they carry half the
     usual section rhythm and read as one continuous page. */
  padding-block: var(--space-12);
}

.social-block__label {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.social-block__label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* Reels are placed by hand on a twelve-column field: one alone, then a
   duo, then a duo dropped down the page. The classes come from the
   template, so the rhythm is readable in both places. */
.reels {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--space-8);
  row-gap: var(--space-16);
  align-items: start;
}

.reel {
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.reel--solo {
  grid-column: 3 / span 5;
}

.reel--duo {
  grid-column: 1 / span 4;
  margin-top: var(--space-16);
}

.reel--duo-end {
  grid-column: 6 / span 4;
}

.reel--offset {
  grid-column: 2 / span 4;
}

.reel--offset-end {
  grid-column: 8 / span 4;
  margin-top: var(--space-24);
}

.reel__media {
  position: relative;
}

/* The only override the shared video component needs: a portrait frame. */
.reel .lazy-video {
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-md);
  background: var(--color-ink);
}

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

.reel__title {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reel__desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

@media (max-width: 900px) {
  .reels {
    grid-template-columns: repeat(2, 1fr);
    row-gap: var(--space-12);
  }

  .reel,
  .reel--solo,
  .reel--duo,
  .reel--duo-end,
  .reel--offset,
  .reel--offset-end {
    grid-column: span 1;
    margin-top: 0;
  }
}

@media (max-width: 560px) {
  /* Portrait video at half a phone's width is unwatchable; one per row. */
  .reels {
    grid-template-columns: 1fr;
  }

  .reel .lazy-video {
    max-width: 22rem;
  }
}

/* Carousels scroll horizontally with native snapping — no slider script,
   so touch, trackpad, keyboard and reduced motion all work as they are. */
.carousel {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.carousel + .carousel {
  margin-top: var(--space-16);
}

.carousel__meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-4);
}

/* A heading element, so the weight and tracking of the global h2/h3 rule
   are restated here rather than inherited — the name has to read as part
   of the meta line, not as a page title. */
.carousel__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1;
  text-transform: uppercase;
}

.carousel__count {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.carousel__track {
  display: flex;
  gap: var(--space-4);
  margin: 0;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  /* The first slide lines up with the container while the run still
     bleeds to the edge of the screen. */
  padding-inline: max(
    var(--container-pad),
    calc((100vw - var(--container-max)) / 2 + var(--container-pad))
  );
  /* Without this the snap point ignores the padding above: the browser
     scrolls the band by one gutter on load to align the first item with
     the container's edge, and the run starts off-register. */
  scroll-padding-inline: max(
    var(--container-pad),
    calc((100vw - var(--container-max)) / 2 + var(--container-pad))
  );
  padding-block: var(--space-2);
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

.carousel__slide {
  flex: 0 0 auto;
  scroll-snap-align: center;
}

/* A social carousel is published in one ratio, so its slides are cut to
   one: an even run is the point there. */
.carousel--social .carousel__slide {
  width: min(72vw, 24rem);
}

.carousel--social .carousel__slide img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* A run of photographs is not: cropping a series to one ratio would undo
   the framing. Constant height, natural widths — a strip of frames, where
   a vertical simply takes less room than a horizontal. */
.carousel--photo .carousel__slide {
  height: min(58vh, 30rem);
  scroll-snap-align: start;
}

.carousel--photo .carousel__slide img {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  border-radius: var(--radius-md);
}

/* On a phone the strip becomes one frame at a time.
   Sized by height alone, a landscape runs wider than the screen and
   spills over its neighbour, while a portrait leaves the run ragged —
   two verticals land side by side, the snap settles between two images,
   and a series shot in mixed formats reads as a mistake. So the slide
   becomes a box of one size and each frame sits inside it, centred,
   whole, and still uncropped. */
@media (max-width: 720px) {
  .carousel--photo .carousel__slide {
    width: min(84vw, 26rem);
    height: min(50vh, 21rem);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .carousel--photo .carousel__slide img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
  }
}

@media (max-width: 560px) {
  .carousel--social .carousel__slide {
    width: min(82vw, 24rem);
  }
}

/* --- Social: header and archive annotations ------------------------- */
.project-discipline,
.project-deliverables {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.project-discipline__sep {
  color: var(--color-border);
}

.project-deliverables {
  color: var(--color-accent-muted);
}

.archive-notes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.archive-notes li {
  position: relative;
}

.archive-notes li + li::before {
  content: "";
  position: absolute;
  left: calc(var(--space-6) / -2);
  top: 50%;
  width: 1px;
  height: 0.8em;
  transform: translateY(-50%);
  background: var(--color-border);
}

/* --- About ---------------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.about__media,
.about__content {
  /* Grid items default to min-width:auto, letting an image's intrinsic
     size override width:100% and blow out the track. */
  min-width: 0;
}

.about__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.about__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  align-items: flex-start;
}

.about__text {
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 60ch;
}

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

.about__block {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.about__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.about__muted {
  color: var(--color-text-muted);
}

@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* --- Steps ---------------------------------------------------------- */
.steps {
  border-top: 1px solid var(--color-border);
}

.steps__list {
  margin-top: var(--space-12);
  display: flex;
  flex-direction: column;
}

.steps__item {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: var(--space-6);
  padding-block: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.steps__item > * {
  min-width: 0;
}

.steps__item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.steps__number {
  font-size: 2rem;
  color: var(--color-accent);
}

.steps__title {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1rem;
  margin-bottom: var(--space-2);
}

.steps__body {
  color: var(--color-text-muted);
  max-width: 60ch;
  line-height: 1.7;
}

@media (max-width: 560px) {
  .steps__item {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
}

/* --- Contact -------------------------------------------------------- */
.contact {
  min-height: 70vh;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.contact__grid > * {
  min-width: 0;
}

.contact__list {
  margin-top: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.contact__list li {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  align-items: flex-start;
}

.contact__value {
  font-size: 1.1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.contact-form__feedback {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.contact-form__feedback--success {
  background: color-mix(in srgb, var(--color-accent) 12%, transparent);
  color: var(--color-accent);
}

.contact-form__feedback--error {
  background: color-mix(in srgb, #b3261e 10%, transparent);
  color: #8c1d18;
}

.contact-form__honeypot {
  position: absolute;
  left: -9999px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.field input,
.field textarea {
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: var(--space-3);
  font-family: var(--font-body);
  /* 16px keeps iOS Safari from zooming in on focus. */
  font-size: 1rem;
  border-radius: var(--radius-sm);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

@media (max-width: 900px) {
  .contact__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* --- Contact CTA ---------------------------------------------------- */
.contact-cta-wrap {
  padding-top: 0;
}

.contact-cta {
  background: var(--color-inverse-bg);
  color: var(--color-inverse-text);
  border-radius: var(--radius-lg);
  padding: var(--space-16) var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
}

.contact-cta__eyebrow {
  color: rgba(246, 244, 239, 0.6);
  text-decoration-color: rgba(246, 244, 239, 0.3);
}

.contact-cta__title {
  color: var(--color-inverse-text);
}

.contact-cta__lede {
  color: rgba(246, 244, 239, 0.75);
  max-width: 46ch;
}

@media (max-width: 430px) {
  .contact-cta {
    padding: var(--space-8) var(--space-6);
  }

  .contact-cta .btn {
    width: 100%;
  }
}

/* --- Editorial page (legal, free-form) ------------------------------ */
.page__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.page__content {
  max-width: 70ch;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.page__content h2,
.page__content h3 {
  color: var(--color-text);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.page__content p + p,
.page__content ul,
.page__content ol {
  margin-top: var(--space-4);
}

.page__content ul,
.page__content ol {
  padding-left: 1.2em;
  list-style: disc;
}

.page__content a {
  color: var(--color-accent);
}

/* --- 404 ------------------------------------------------------------ */
.not-found {
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.not-found__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
}

.not-found__actions {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  margin-top: var(--space-2);
}

/* --- Sound toggle --------------------------------------------------- */
.sound-toggle {
  position: fixed;
  right: max(var(--space-4), env(safe-area-inset-right));
  bottom: max(var(--space-4), env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: 2.75rem;
  padding-inline: var(--space-4);
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  box-shadow: 0 10px 30px -18px rgba(23, 20, 15, 0.5);
}

.sound-toggle__bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.sound-toggle__bars i {
  display: block;
  width: 2px;
  height: 4px;
  background: currentColor;
}

.sound-toggle.is-playing .sound-toggle__bars i {
  animation: op-bars 900ms var(--ease-editorial) infinite alternate;
}

.sound-toggle.is-playing .sound-toggle__bars i:nth-child(2) {
  animation-delay: 150ms;
}

.sound-toggle.is-playing .sound-toggle__bars i:nth-child(3) {
  animation-delay: 300ms;
}

@keyframes op-bars {
  from { height: 4px; }
  to { height: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .sound-toggle.is-playing .sound-toggle__bars i {
    animation: none;
  }
}

/* --- Footer --------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-16) 0;
  overflow: hidden;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.site-footer__grid > * {
  min-width: 0;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: flex-start;
}

.site-footer__muted {
  color: var(--color-text-muted);
}

.site-footer__links {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.site-footer__nav {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.site-footer__bottom {
  margin-top: var(--space-8);
}

.site-footer__copyright {
  color: var(--color-accent-muted);
  font-size: 0.8rem;
  padding-bottom: var(--space-4);
}

.site-footer__wordmark {
  font-size: clamp(4rem, 16vw, 11rem);
  line-height: 0.82;
  color: var(--color-text);
  opacity: 0.06;
  white-space: nowrap;
  margin: 0 calc(var(--container-pad) * -1) calc(var(--space-8) * -0.3);
  padding-inline: var(--container-pad);
  user-select: none;
}

@media (max-width: 720px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .site-footer__links,
  .site-footer__nav {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
}

/* The bar on a section only its owner can reach. Deliberately unlike the
   rest of the site: it is scaffolding, not part of the design, and it
   must not be mistaken for something a visitor sees. */
.hidden-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin: 0;
  padding: 0.65rem var(--container-pad);
  background: var(--color-ink);
  color: var(--color-bg);
  font-size: 0.8125rem;
  line-height: 1.4;
  text-align: center;
}

.hidden-notice a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* --- Testimonials --------------------------------------------------
   Real client words, never invented copy. Cards read like a stack of
   short notes rather than a marketing block: quiet border, no shadow,
   the quote itself carries the section.
--------------------------------------------------------------------- */
.testimonials__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-top: var(--space-2);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}

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

.testimonial__stars {
  display: flex;
  gap: 0.15em;
  font-size: 0.9rem;
  color: var(--color-border);
  letter-spacing: 0.05em;
}

.testimonial__star.is-filled {
  color: var(--color-accent);
}

.testimonial__quote {
  margin: 0;
  flex: 1 1 auto;
}

.testimonial__quote p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-text);
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: auto;
}

.testimonial__avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.testimonial__author-text {
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}

.testimonial__name {
  font-size: 0.95rem;
}

.testimonial__role {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.testimonial__source {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  align-self: flex-start;
}
