/* ==========================================================================
   Perch. — perch.dating
   Marcellus throughout; white / #403636 / #786B6B.
   ========================================================================== */

/* --- Marcellus, self-hosted -------------------------------------------- */
@font-face {
  font-family: 'Marcellus';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/marcellus-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Marcellus';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/marcellus-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Marcellus SC';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/marcellussc-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Tokens ------------------------------------------------------------- */
:root {
  --white: #ffffff;
  --espresso: #403636;
  --espresso-deep: #332b2b;
  --espresso-light: #786b6b;

  /* White warmed with the brand grey — used for alternating bands so the page
     has rhythm without introducing a colour that isn't in the palette. */
  --paper: #f7f4f2;
  --paper-deep: #efeae7;

  --line: rgba(120, 107, 107, 0.26);
  --line-strong: rgba(120, 107, 107, 0.45);
  --line-on-dark: rgba(255, 255, 255, 0.2);
  --line-on-dark-strong: rgba(255, 255, 255, 0.38);

  --wrap: 1260px;
  --gutter: clamp(1.35rem, 5vw, 4.5rem);
  --section-y: clamp(4.5rem, 9.5vw, 9.5rem);
  --nav-h: 84px;

  --fs-display: clamp(2.6rem, 1.05rem + 6.1vw, 6.25rem);
  --fs-h1: clamp(2.2rem, 1.3rem + 3.6vw, 4.4rem);
  --fs-h2: clamp(1.85rem, 1.2rem + 2.5vw, 3.15rem);
  --fs-h3: clamp(1.28rem, 1.08rem + 0.75vw, 1.72rem);
  --fs-stat: clamp(3rem, 1.6rem + 4.6vw, 5.15rem);
  --fs-lead: clamp(1.16rem, 1rem + 0.72vw, 1.6rem);
  --fs-body: clamp(1.02rem, 0.98rem + 0.18vw, 1.12rem);
  --fs-small: 0.95rem;
  --fs-label: 0.7rem;

  --ease: cubic-bezier(0.22, 0.71, 0.22, 1);

  /* Very fine film grain. Keeps the large espresso fields from going flat. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (max-width: 900px) {
  :root { --nav-h: 66px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1.5rem);
  /* clip, not hidden: overflow-x:hidden turns the element into a scroll
     container, which silently kills position:sticky inside it. */
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--espresso);
  font-family: 'Marcellus', 'Cormorant Garamond', 'Times New Roman', serif;
  font-size: var(--fs-body);
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body.is-locked { overflow: hidden; }

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }

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

a { color: inherit; text-decoration: none; }

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

::selection { background: var(--espresso); color: var(--white); }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 300;
  background: var(--espresso);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

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

/* --- Layout ------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
}

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; gap: clamp(1.5rem, 6vw, 2.5rem); }
  .grid > * { grid-column: 1 / -1 !important; }
}

/* Dark bands ------------------------------------------------------------- */
.band--dark {
  background: var(--espresso);
  color: var(--white);
  position: relative;
  isolation: isolate;
}
.band--dark::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: -1;
}
.band--paper { background: var(--paper); }

/* --- Type helpers ------------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: var(--fs-label);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--espresso-light);
  margin-bottom: clamp(1.5rem, 3vw, 2.4rem);
}
.eyebrow::before {
  content: '';
  width: clamp(28px, 4vw, 54px);
  height: 1px;
  background: currentColor;
  opacity: 0.7;
  flex: none;
}
.band--dark .eyebrow { color: rgba(255, 255, 255, 0.72); }

.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: '';
  width: clamp(28px, 4vw, 54px);
  height: 1px;
  background: currentColor;
  opacity: 0.7;
  flex: none;
}

.display {
  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: -0.018em;
}

h1, .h1 { font-size: var(--fs-h1); line-height: 1.08; letter-spacing: -0.015em; font-weight: 400; }
h2, .h2 { font-size: var(--fs-h2); line-height: 1.14; letter-spacing: -0.012em; font-weight: 400; }
h3, .h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -0.005em; font-weight: 400; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  letter-spacing: -0.004em;
}

.muted { color: var(--espresso-light); }
.band--dark .muted,
.pagehead .muted { color: rgba(255, 255, 255, 0.74); }

.measure { max-width: 62ch; }
.measure-tight { max-width: 42ch; }

.rule {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 0;
}
.band--dark .rule { background: var(--line-on-dark); }

/* Inline source citation ------------------------------------------------- */
.cite {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  padding-bottom: 2px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.cite:hover { color: var(--white); border-color: var(--white); }
.cite .cite__arrow { font-size: 0.85em; transition: transform 0.3s var(--ease); }
.cite:hover .cite__arrow { transform: translate(2px, -2px); }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  --btn-fg: var(--espresso);
  --btn-bg: transparent;
  --btn-bd: var(--espresso);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.92em 1.9em;
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--btn-bd);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s var(--ease);
  z-index: 0;
}
.btn > * { position: relative; z-index: 1; }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn:hover, .btn:focus-visible { color: var(--white); }

.btn--solid { --btn-bg: var(--espresso); color: var(--white); }
.btn--solid::before { background: var(--white); }
.btn--solid:hover, .btn--solid:focus-visible { color: var(--espresso); }

.btn--light { --btn-fg: var(--white); --btn-bd: rgba(255, 255, 255, 0.55); }
.btn--light::before { background: var(--white); }
.btn--light:hover, .btn--light:focus-visible { color: var(--espresso); border-color: var(--white); }

.btn__arrow { transition: transform 0.4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* --- Store badges ------------------------------------------------------- */
.badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(0.7rem, 1.6vw, 1.05rem);
}
.badge {
  display: block;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.badge img { height: clamp(44px, 5.2vw, 53px); width: auto; }
.badge:hover { opacity: 0.82; transform: translateY(-2px); }
.badge.is-pending { cursor: default; }
.badge.is-pending:hover { opacity: 1; transform: none; }

.badges--center { justify-content: center; }

/* --- Navbar ------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  height: var(--nav-h);
  color: var(--white);
  transition: background 0.45s var(--ease), color 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}
.nav::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--line);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.nav.is-solid {
  background: var(--white);
  color: var(--espresso);
}
.nav.is-solid::after { opacity: 1; }

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav__logo { flex: none; display: block; }
.nav__logo img {
  height: clamp(30px, 3.2vw, 38px);
  width: auto;
  transition: opacity 0.45s var(--ease);
}
.nav__logo .logo--light { display: block; }
.nav__logo .logo--dark { display: none; }
.nav.is-solid .nav__logo .logo--light { display: none; }
.nav.is-solid .nav__logo .logo--dark { display: block; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.4vw, 2.3rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  font-size: 0.745rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  line-height: 1;
  position: relative;
  padding-block: 0.55rem;
  opacity: 0.92;
  transition: opacity 0.3s var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.4s var(--ease);
}
.nav__link:hover { opacity: 1; }
.nav__link:hover::after,
.nav__link[aria-current='page']::after { transform: scaleX(1); transform-origin: left center; }
.nav__link[aria-current='page'] { opacity: 1; }

.nav__right {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.7rem);
}

.socials {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.icon-link {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  opacity: 0.82;
  transition: opacity 0.3s var(--ease), background 0.3s var(--ease),
    transform 0.3s var(--ease);
}
.icon-link svg { width: 17px; height: 17px; }
.icon-link:hover { opacity: 1; transform: translateY(-1px); }

.nav__divider {
  width: 1px;
  height: 22px;
  background: currentColor;
  opacity: 0.28;
}

/* The Contact button has to survive both nav states: white outline while the
   navbar floats over the hero, espresso outline once the navbar goes solid.
   The fill colour can't be currentColor, or it would follow the text on hover
   and the label would vanish into it. */
.nav__contact {
  padding: 0.78em 1.5em;
  font-size: 0.735rem;
  --btn-fg: var(--white);
  --btn-bd: rgba(255, 255, 255, 0.55);
}
.nav__contact::before { background: var(--white); }
.nav__contact:hover,
.nav__contact:focus-visible { color: var(--espresso); border-color: var(--white); }

.nav.is-solid .nav__contact { --btn-fg: var(--espresso); --btn-bd: var(--espresso); }
.nav.is-solid .nav__contact::before { background: var(--espresso); }
.nav.is-solid .nav__contact:hover,
.nav.is-solid .nav__contact:focus-visible { color: var(--white); border-color: var(--espresso); }

/* Burger ----------------------------------------------------------------- */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  position: relative;
  z-index: 2;
}
.burger span {
  display: block;
  width: 25px;
  height: 1px;
  margin: 0 auto;
  background: currentColor;
  transition: transform 0.42s var(--ease), opacity 0.28s var(--ease);
}
.burger span + span { margin-top: 7px; }
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }

/* Mobile drawer ---------------------------------------------------------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--espresso);
  color: var(--white);
  padding: calc(var(--nav-h) + clamp(2rem, 8vh, 4rem)) var(--gutter)
    clamp(2rem, 6vh, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease),
    visibility 0.5s;
}
.drawer.is-open { opacity: 1; visibility: visible; transform: none; }

.drawer__links { list-style: none; margin: 0; padding: 0; }
.drawer__links li { border-bottom: 1px solid var(--line-on-dark); }
.drawer__links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(0.85rem, 2.6vh, 1.35rem) 0;
  font-size: clamp(1.65rem, 8vw, 2.4rem);
  line-height: 1.1;
  opacity: 0;
  transform: translateY(14px);
}
.drawer.is-open .drawer__links a {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s var(--ease) calc(var(--i) * 70ms + 120ms),
    transform 0.6s var(--ease) calc(var(--i) * 70ms + 120ms);
}
.drawer__links .num {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.5);
}

.drawer__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

@media (max-width: 1040px) {
  .nav__links, .nav__divider { display: none; }
}
@media (max-width: 900px) {
  .burger { display: block; }
  .nav__socials { display: none; }
  .nav__contact { display: none; }
}

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  isolation: isolate;
  color: var(--white);
  padding-block: calc(var(--nav-h) + clamp(2rem, 6vh, 5rem)) clamp(4rem, 10vh, 7rem);
  overflow: hidden;
}
@supports not (min-height: 100svh) {
  .hero { min-height: 100vh; }
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
/* <picture> is the img's real parent, so it needs the height for the img's
   height:100% to resolve against something. */
.hero__media picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.06);
  animation: heroDrift 22s var(--ease) forwards;
}
@keyframes heroDrift { to { transform: scale(1); } }

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(38, 30, 30, 0.76) 0%,
      rgba(38, 30, 30, 0.5) 28%,
      rgba(38, 30, 30, 0.54) 62%,
      rgba(38, 30, 30, 0.88) 100%),
    rgba(64, 54, 54, 0.34);
}
.hero__scrim::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.055;
  mix-blend-mode: overlay;
}

.hero__inner { text-align: center; }

.hero__lockup {
  width: clamp(228px, 27vw, 400px);
  margin: 0 auto clamp(1.5rem, 3.5vw, 2.7rem);
}

.hero__slogan {
  font-size: var(--fs-display);
  line-height: 1.03;
  letter-spacing: -0.02em;
  max-width: 15ch;
  margin-inline: auto;
  text-wrap: balance;
}

.hero__rule {
  width: 74px;
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
  margin: clamp(1.5rem, 3.2vw, 2.4rem) auto;
}

.hero__badges { margin-top: clamp(1.6rem, 3.6vw, 2.6rem); }

/* Short laptop screens: the hero would otherwise push its own scroll cue below
   the fold, which reads as a broken first impression. */
@media (min-width: 701px) and (max-height: 800px) {
  .hero__lockup { width: clamp(200px, 22vw, 310px); }
  .hero__slogan { font-size: clamp(2.3rem, 1rem + 4.4vw, 4.5rem); }
}

.hero__cue {
  position: absolute;
  left: 50%;
  bottom: clamp(1.4rem, 3.6vh, 2.6rem);
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  font-size: var(--fs-label);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
  transition: color 0.3s var(--ease);
}
.hero__cue:hover { color: var(--white); }
.hero__cue i {
  display: block;
  width: 1px;
  height: 46px;
  background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
  animation: cue 2.6s var(--ease) infinite;
  transform-origin: top center;
}
@keyframes cue {
  0%, 100% { transform: scaleY(0.35); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

@media (max-width: 700px) {
  .hero__cue { display: none; }
  .hero__slogan { max-width: 12ch; }
}

/* --- Statement ---------------------------------------------------------- */
.statement__body {
  grid-column: 4 / 12;
  font-size: clamp(1.42rem, 0.95rem + 1.85vw, 2.65rem);
  line-height: 1.32;
  letter-spacing: -0.014em;
  text-wrap: balance;
}
/* Three columns, not two: a two-column margin is too narrow for a rule plus a
   tracked-out two-word label, and it wraps mid-phrase. */
.statement__label { grid-column: 1 / 4; }
.statement__label .eyebrow { margin-bottom: 0; }

@media (max-width: 860px) {
  .statement__body { font-size: clamp(1.35rem, 1rem + 2.6vw, 2rem); }
}

/* --- Stats -------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: clamp(2.75rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line-on-dark);
}
.stat {
  padding: clamp(2rem, 3.6vw, 3.2rem) clamp(1.25rem, 3vw, 2.75rem);
  border-bottom: 1px solid var(--line-on-dark);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.stat:nth-child(odd) { padding-left: 0; border-right: 1px solid var(--line-on-dark); }
.stat:nth-child(even) { padding-right: 0; }

.stat__figure {
  font-size: var(--fs-stat);
  line-height: 0.94;
  letter-spacing: -0.03em;
}
.stat__figure sup {
  font-size: 0.25em;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  vertical-align: super;
  margin-left: 0.6em;
  color: rgba(255, 255, 255, 0.55);
}
.stat__text {
  font-size: clamp(1rem, 0.95rem + 0.28vw, 1.12rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  max-width: 38ch;
  flex: 1;
}
.stat__source { margin-top: auto; }

@media (max-width: 780px) {
  .stats { grid-template-columns: 1fr; }
  .stat, .stat:nth-child(odd), .stat:nth-child(even) {
    padding-inline: 0;
    border-right: 0;
  }
}

/* --- Approach ----------------------------------------------------------- */
/* The movements column runs a good deal longer than a portrait photograph, so
   the image travels with it rather than stranding half a screen of white. */
.approach__media {
  grid-column: 1 / 6;
  align-self: start;
  position: sticky;
  top: calc(var(--nav-h) + clamp(1.5rem, 4vw, 3rem));
}
.approach__body { grid-column: 7 / 13; }

.approach__media figure { margin: 0; position: relative; }
.approach__media img { width: 100%; }
.approach__media figcaption {
  margin-top: 1.1rem;
  font-size: var(--fs-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--espresso-light);
}

.movements { list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; }
/* Fixed numeral column, not auto: I / II / III are different widths, and an
   auto track would size per row and leave the headings stepping sideways. */
.movement {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
  padding-block: clamp(1.6rem, 3vw, 2.4rem);
  border-top: 1px solid var(--line);
}
.movement:last-child { border-bottom: 1px solid var(--line); }
.movement__num {
  font-family: 'Marcellus SC', 'Marcellus', serif;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  color: var(--espresso-light);
  padding-top: 0.35em;
  white-space: nowrap;
}
.movement h3 { margin-bottom: 0.55rem; }
.movement p { color: var(--espresso-light); max-width: 46ch; }

@media (max-width: 860px) {
  .movement { grid-template-columns: 1fr; gap: 0.45rem; }
  .movement__num { padding-top: 0; }
  /* One column: a sticky image would pin itself over the text it belongs to. */
  .approach__media { position: static; }
}

/* --- Full-bleed quote band ---------------------------------------------- */
.bleed {
  position: relative;
  isolation: isolate;
  color: var(--white);
  min-height: clamp(340px, 52vw, 580px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(4rem, 9vw, 7rem) var(--gutter);
  overflow: hidden;
}
.bleed img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.bleed::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(40, 32, 32, 0.62), rgba(40, 32, 32, 0.72)),
    rgba(64, 54, 54, 0.22);
}
.bleed blockquote {
  max-width: 20ch;
  font-size: clamp(1.7rem, 1rem + 3vw, 3.4rem);
  line-height: 1.16;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.bleed cite {
  display: block;
  margin-top: clamp(1.5rem, 3vw, 2.2rem);
  font-style: normal;
  font-size: var(--fs-label);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}

/* --- Philosophy --------------------------------------------------------- */
.philosophy__body { grid-column: 1 / 6; align-self: center; }
.philosophy__media { grid-column: 7 / 13; }
.philosophy__media img { width: 100%; }

.philosophy__body p + p { margin-top: 1.25rem; }
.philosophy__body h2 { margin-bottom: 1.6rem; }

/* --- CTA ---------------------------------------------------------------- */
.cta { text-align: center; }
.cta__symbol { width: clamp(52px, 6vw, 76px); margin: 0 auto clamp(1.75rem, 3.5vw, 2.6rem); }
.cta h2 { margin-bottom: 1.4rem; text-wrap: balance; }
.cta .lead { margin-inline: auto; max-width: 46ch; }
.cta .badges { margin-top: clamp(2.2rem, 4.5vw, 3.2rem); }
.cta__alt { margin-top: clamp(1.9rem, 3.6vw, 2.6rem); }

/* --- Page header (inner pages) ------------------------------------------ */
.pagehead {
  background: var(--espresso);
  color: var(--white);
  position: relative;
  isolation: isolate;
  padding-block: calc(var(--nav-h) + clamp(4rem, 10vh, 8rem)) clamp(3.5rem, 8vw, 6.5rem);
}
.pagehead::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: -1;
}
.pagehead h1 { max-width: 16ch; text-wrap: balance; }
.pagehead .lead { margin-top: clamp(1.4rem, 2.6vw, 2rem); max-width: 40ch; }
.pagehead .eyebrow { color: rgba(255, 255, 255, 0.72); }

/* --- "In preparation" block --------------------------------------------- */
.prep { text-align: center; }
.prep__mark { width: clamp(46px, 5vw, 64px); margin: 0 auto clamp(1.6rem, 3vw, 2.2rem); opacity: 0.85; }
.prep h2 { margin-bottom: 1.2rem; text-wrap: balance; }
.prep p { margin-inline: auto; max-width: 52ch; }
.prep .btn { margin-top: clamp(2rem, 4vw, 2.8rem); }

.notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 0;
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
  text-align: left;
}
.note {
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2.25rem);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.note:first-child { padding-left: 0; }
.note:last-child { border-right: 0; padding-right: 0; }
.note h3 { margin-bottom: 0.6rem; }
.note p { color: var(--espresso-light); font-size: var(--fs-small); }
.note__num {
  display: block;
  font-family: 'Marcellus SC', 'Marcellus', serif;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--espresso-light);
  margin-bottom: 0.9rem;
}
.band--dark .note { border-color: var(--line-on-dark); }
.band--dark .notes { border-color: var(--line-on-dark); }
.band--dark .note p,
.band--dark .note__num { color: rgba(255, 255, 255, 0.7); }

@media (max-width: 760px) {
  .note, .note:first-child, .note:last-child {
    padding-inline: 0;
    border-right: 0;
  }
}

/* --- Footer ------------------------------------------------------------- */
.footer {
  background: var(--espresso-deep);
  color: var(--white);
  position: relative;
  isolation: isolate;
  padding-block: clamp(3.5rem, 7vw, 6rem) clamp(1.75rem, 3vw, 2.5rem);
}
.footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: -1;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

.footer__brand img {
  width: clamp(210px, 26vw, 330px);
  margin-bottom: clamp(1.4rem, 2.6vw, 2rem);
}
.footer__brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-small);
  max-width: 34ch;
}

.footer__colhead {
  font-size: var(--fs-label);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  padding-bottom: 1.15rem;
  margin-bottom: 1.15rem;
  border-bottom: 1px solid var(--line-on-dark);
}
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li + li { margin-top: 0.72rem; }
.footer__list a {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  color: rgba(255, 255, 255, 0.86);
  transition: color 0.3s var(--ease);
  position: relative;
}
.footer__list a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.4s var(--ease);
}
.footer__list a:hover { color: var(--white); }
.footer__list a:hover::after { transform: scaleX(1); transform-origin: left center; }
.footer__list svg { width: 16px; height: 16px; flex: none; }

.footer__bottom {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-on-dark);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer__top { grid-template-columns: 1fr; }
}

/* --- Reveal on scroll --------------------------------------------------- */
/* Scoped to .js (set by an inline script in <head>) so that if the script
   never runs, the content is simply visible rather than an invisible page. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.95s var(--ease) var(--d, 0ms),
    transform 0.95s var(--ease) var(--d, 0ms);
}

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