/* MVS — Municipal Vendor Services */

:root {
  --cream: #fbf8ee;
  --sand: #efe8d4;
  --sand-2: #e4dbc0;
  --navy: #192853;
  --navy-deep: #121c3b;
  --navy-2: #2d3b62;
  --gold: #bb9c59;
  --gold-soft: #d9c79c;
  --gold-deep: #846a37;
  --red: #bf1e2d;
  --red-deep: #9d1824;

  --serif: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Century Gothic", "CenturyGothic", "Didact Gothic", "AppleGothic", system-ui, sans-serif;

  --t-hero: clamp(26px, 7vw, 124px);
  --t-title: clamp(38px, 6.4vw, 112px);
  --t-statement: clamp(23px, 2.5vw, 36px);
  --t-lead: clamp(19px, 1.5vw, 23px);
  --t-body: clamp(16px, 1.15vw, 18px);
  --t-label: 14px;

  --m: clamp(20px, 4vw, 64px);
  --gutter: clamp(16px, 2vw, 32px);
  --maxw: 1440px;
  --sec: clamp(104px, 13vw, 210px);
  --radius: 26px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --shape-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M7 0H93Q100 0 100 7V71Q100 77 94 79L10 99Q0 101 0 91V7Q0 0 7 0Z'/%3E%3C/svg%3E");
  --shape-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 20Q0 12 7 10L91 0Q100 -1 100 8V93Q100 100 93 100H7Q0 100 0 93Z'/%3E%3C/svg%3E");
  --shape-c: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M20 0H93Q100 0 100 7V93Q100 100 93 100H7Q0 100 0 93V24Q0 17 5 12L12 4Q15 0 20 0Z'/%3E%3C/svg%3E");
}

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

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--navy);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--gold); color: var(--navy-deep); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }

.skip-link {
  position: absolute; left: var(--m); top: -100px; z-index: 200;
  padding: 12px 20px; background: var(--gold); color: var(--navy-deep);
  border-radius: 999px; text-decoration: none;
}
.skip-link:focus { top: 96px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Layout ---------- */

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--m)); margin-inline: auto; padding-inline: var(--m); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }

.field { position: relative; padding-block: var(--sec); }
.field--cream { background: var(--cream); color: var(--navy); }
.field--sand { background: var(--sand); color: var(--navy); }
.field--navy { background: var(--navy-deep); color: var(--cream); }

/* ---------- Type ---------- */

.hero-title, .title, .serif-up {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -.005em;
  line-height: .92;
  text-wrap: balance;
}
.hero-title { font-size: var(--t-hero); }
.title { font-size: var(--t-title); }
.title--long { font-size: clamp(28px, 3.4vw, 58px); line-height: 1; }
@media (max-width: 560px) {
  .title--long, .finale__copy h2 { text-transform: none; }
  .title--long, .finale__copy h2.title--long { font-size: 24px; }
  .hero-title { font-size: 26px; }
}

.statement {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--t-statement);
  line-height: 1.12;
  letter-spacing: .01em;
  text-wrap: pretty;
}
.lead { font-size: var(--t-lead); line-height: 1.55; }
.serif { font-family: var(--serif); }
.label { font-size: 15px; letter-spacing: .02em; line-height: 1.35; }
.muted { opacity: .78; }
.gold { color: var(--gold-deep); }
.field--navy .gold, .on-dark .gold { color: var(--gold); }
.num { font-variant-numeric: lining-nums tabular-nums; }

/* ---------- Buttons ---------- */

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 54px;
  padding: 0 26px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  font-family: var(--sans);
  font-size: var(--t-label);
  text-transform: uppercase;
  letter-spacing: .14em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: currentColor;
  transform: translateY(101%);
  transition: transform .5s var(--ease-out);
}
.btn:hover::before { transform: none; }
.btn--cream { color: var(--cream); }
.btn--cream:hover { color: var(--navy-deep); }
.btn--cream:hover::before { background: var(--cream); }
.btn--navy { color: var(--navy); }
.btn--navy:hover { color: var(--cream); }
.btn--navy:hover::before { background: var(--navy); }
.btn--red { color: #fff; background: var(--red); border-color: var(--red); }
.btn--red::before { background: var(--red-deep); }
.btn:active { transform: scale(.98); }
.arrow { width: 34px; height: 10px; flex: none; transition: transform .45s var(--ease-out); }
.btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(5px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 16px;
  font-size: var(--t-label); text-transform: uppercase; letter-spacing: .14em;
  text-decoration: none; padding-block: 8px;
}

.text-link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.text-link:hover { text-decoration-color: transparent; }

/* ---------- Floating nav ---------- */

.nav-pill {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 90;
  width: min(760px, calc(100% - 24px));
  height: 64px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 0 8px 0 22px;
  border-radius: 999px;
  color: var(--navy);
  background: rgba(251, 248, 238, .9);
  box-shadow: 0 0 0 1px rgba(25, 40, 83, .08), 0 10px 30px rgba(18, 28, 59, .14);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  transition: opacity .9s var(--ease);
}
.nav-pill { transition: opacity .9s var(--ease), transform 1.1s var(--ease-out); }
.preload .nav-pill { opacity: 0; transform: translate(-50%, -28px); }
.menu-btn {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 48px; padding: 0 6px;
  border: 0; background: none; cursor: pointer;
  font-size: var(--t-label); text-transform: uppercase; letter-spacing: .14em;
}
.menu-btn__lines { position: relative; width: 34px; height: 9px; }
.menu-btn__lines::before, .menu-btn__lines::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform .45s var(--ease-out);
}
.menu-btn__lines::before { top: 0; }
.menu-btn__lines::after { bottom: 0; }
.menu-open .menu-btn__lines::before { transform: translateY(3.75px) rotate(18deg); }
.menu-open .menu-btn__lines::after { transform: translateY(-3.75px) rotate(-18deg); }
.menu-btn__close { display: none; }
.menu-open .menu-btn__open { display: none; }
.menu-open .menu-btn__close { display: inline; }

.nav-logo { display: block; width: 132px; }
.nav-logo img { width: 100%; height: auto; }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 6px; }
.nav-login {
  display: inline-flex; align-items: center;
  min-height: 48px; padding: 0 14px;
  font-size: var(--t-label); text-transform: uppercase; letter-spacing: .14em;
  text-decoration: none; white-space: nowrap;
  border-radius: 999px;
  transition: background-color .3s var(--ease);
}
.nav-login:hover { background: rgba(25, 40, 83, .08); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 48px; padding: 0 20px;
  border: 1px solid rgba(25, 40, 83, .4);
  border-radius: 999px;
  font-size: var(--t-label); text-transform: uppercase; letter-spacing: .14em;
  text-decoration: none; white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.nav-cta:hover { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.nav-cta .arrow { width: 26px; }

@media (max-width: 760px) {
  .menu-btn__text { display: none; }
  .nav-cta .arrow { display: none; }
}
@media (max-width: 560px) {
  .nav-pill { height: 58px; padding: 0 6px 0 12px; top: 12px; gap: 6px; grid-template-columns: auto minmax(0, 1fr) auto; }
  .nav-logo { justify-self: center; }
  .nav-logo { width: 92px; }
  .nav-actions { gap: 2px; }
  .nav-login { padding: 0 8px; font-size: 13px; letter-spacing: .04em; }
  .nav-cta { padding: 0 12px; font-size: 13px; letter-spacing: .04em; }
}
@media (max-width: 360px) {
  .nav-logo { width: 76px; }
}

/* ---------- Menu overlay ---------- */

.menu {
  position: fixed; inset: 0; z-index: 80;
  background: var(--navy-deep);
  color: var(--cream);
  overflow-y: auto;
  visibility: hidden;
  transform: translateY(-100%);
  transition: transform .8s var(--ease-out), visibility 0s .8s;
}
.menu-open .menu { visibility: visible; transform: none; transition: transform .8s var(--ease-out); }
.menu__inner {
  min-height: 100%;
  padding-top: 130px;
  padding-bottom: 48px;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 48px var(--gutter);
  align-items: end;
}
.menu__links a {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(40px, 6.6vw, 96px);
  line-height: 1.02;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .3s var(--ease);
}
.menu__links a:hover, .menu__links a[aria-current="page"] { color: var(--gold); }
.menu__links li { overflow: hidden; }
.menu__links li a { transform: translateY(105%); transition: transform .8s var(--ease-out), color .3s; transition-delay: calc(var(--i, 0) * 50ms + 150ms), 0s; }
.menu-open .menu__links li a { transform: none; }
.menu__aside { display: grid; gap: 28px; padding-bottom: 12px; }
.menu__aside .serif { font-size: clamp(22px, 2vw, 30px); line-height: 1.3; }
.menu__aside a { text-decoration: none; }
@media (max-width: 860px) { .menu__inner { grid-template-columns: 1fr; padding-top: 110px; } }

/* ---------- Preloader ---------- */

.preloader {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-items: center;
  background: var(--cream);
  color: var(--navy);
  transition: opacity .8s var(--ease);
}
.preloader__box { display: grid; justify-items: center; gap: 36px; width: min(320px, 70vw); }
.preloader__logo { position: relative; width: 180px; }
.preloader__logo img { width: 100%; height: auto; }
.preloader__logo-base { filter: grayscale(1); opacity: .2; }
.preloader__logo-fill { position: absolute; inset: 0; clip-path: inset(0 calc((1 - var(--p, 0)) * 100%) 0 0); }
.preloader__track { width: 100%; height: 4px; border-radius: 4px; overflow: hidden; background: var(--sand-2); }
.preloader__fill { height: 100%; border-radius: 4px; background: var(--navy); transform-origin: 0 50%; transform: scaleX(0); }
.preloader__pct { font-family: var(--serif); font-size: 44px; line-height: 1; }
.preloader.is-done { opacity: 0; pointer-events: none; }

/* ---------- Home hero ---------- */

.hero { position: relative; z-index: 0; min-height: 100svh; color: var(--cream); background: var(--navy-deep); overflow: hidden; display: flex; align-items: flex-end; }
.hero__media { position: absolute; inset: 0; will-change: transform; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(18, 28, 59, .42); transition: opacity 1.6s var(--ease); }
.intro .hero::after { opacity: 0; }
.hero__intro { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; transition: opacity .5s var(--ease); }
.hero__intro.is-done { opacity: 0; }
.intro-played .hero__media img { transform: none; transition: none; animation: heroBreath 28s 1s ease-in-out infinite alternate; }
@keyframes heroBreath { from { transform: scale(1); } to { transform: scale(1.07) translate3d(-1%, -.6%, 0); } }
.hero__inner { position: relative; z-index: 1; width: 100%; padding-top: 150px; padding-bottom: 40px; }
.hero__grid { align-items: end; row-gap: 32px; }
.hero__grid h1 { grid-column: 1 / -1; }
.hero__lede { grid-column: 1 / 7; font-size: var(--t-lead); line-height: 1.5; max-width: 34ch; }
.hero__actions { grid-column: 7 / 13; justify-content: flex-end; }

.steps { position: relative; margin-top: clamp(48px, 8vh, 88px); }
.steps__list { display: grid; grid-template-columns: repeat(3, 1fr); }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 1px /* taste-skill-ignore: progress indicator */; background: rgba(251, 248, 238, .35); }
.steps__fill { position: absolute; left: 0; right: 0; top: 5px; height: 1px /* taste-skill-ignore: progress indicator */; background: var(--gold); transform-origin: 0 50%; }
.steps li { position: relative; padding-top: 30px; }
.steps li::before { content: ""; position: absolute; left: 0; top: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--gold); }
.steps li:last-child { text-align: right; }
.steps li:last-child::before { left: auto; right: 0; }
.steps li:nth-child(2) { text-align: center; }
.steps li:nth-child(2)::before { left: 50%; margin-left: -5.5px; }
.steps span { font-family: var(--serif); font-size: clamp(20px, 1.9vw, 30px); }

@media (max-width: 900px) {
  .hero__lede, .hero__actions { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 560px) {
  .steps span { font-size: 18px; }
}

/* ---------- Page hero ---------- */

.page-hero { position: relative; z-index: 0; min-height: 88svh; color: var(--cream); background: var(--navy-deep); overflow: hidden; display: flex; align-items: flex-end; }
.page-hero--short { min-height: 70svh; }
.page-hero__media { position: absolute; inset: 0; will-change: transform; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: rgba(18, 28, 59, .44); }
.page-hero__inner { position: relative; z-index: 1; width: 100%; padding-top: 150px; padding-bottom: clamp(40px, 7vh, 80px); }
.page-hero__grid { align-items: end; row-gap: 28px; }
.page-hero__grid h1 { grid-column: 1 / -1; }
.page-hero__grid h1.title--long { font-size: clamp(28px, 4.4vw, 76px); }
.page-hero__grid p { grid-column: 7 / 13; font-size: var(--t-lead); line-height: 1.5; padding-bottom: 8px; }
@media (max-width: 900px) {
  .page-hero__grid h1, .page-hero__grid p { grid-column: 1 / -1; }
}

/* ---------- Shapes ---------- */

.shape { overflow: hidden; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.shape img { width: 100%; height: 100%; object-fit: cover; }
.shape--a { -webkit-mask-image: var(--shape-a); mask-image: var(--shape-a); }
.shape--b { -webkit-mask-image: var(--shape-b); mask-image: var(--shape-b); }
.shape--c { -webkit-mask-image: var(--shape-c); mask-image: var(--shape-c); }

.unique__photo { grid-column: 1 / 6; aspect-ratio: 4 / 3; }
.unique__body { grid-column: 7 / 13; display: grid; gap: 32px; align-content: start; }
@media (max-width: 900px) { .unique__photo, .unique__body { grid-column: 1 / -1; } }

/* ---------- Welcome (statement with floating photos) ---------- */

.welcome .grid { row-gap: 56px; align-items: start; }
.welcome__photo-a { grid-column: 1 / 4; aspect-ratio: 4 / 5; }
.welcome__body { grid-column: 4 / 13; display: grid; gap: 44px; }
.welcome__body .serif-up { font-size: clamp(22px, 1.9vw, 30px); color: var(--gold); }
.welcome__foot { grid-column: 4 / 10; display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; }
.welcome__photo-b { grid-column: 10 / 13; aspect-ratio: 4 / 3; }
@media (max-width: 900px) {
  .welcome__photo-a { grid-column: 1 / 7; }
  .welcome__photo-b { grid-column: 7 / 13; }
  .welcome__body, .welcome__foot { grid-column: 1 / -1; }
  .welcome__photo-a { order: 3; }
  .welcome__photo-b { order: 4; align-self: end; }
}

/* ---------- Big title section over blurred photo ---------- */

.chapter { position: relative; overflow: hidden; }
.chapter__bg { position: absolute; inset: -40px; z-index: 0; }
.chapter__bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(22px) saturate(.7); opacity: .3; }
.chapter > .wrap { position: relative; z-index: 1; }
.chapter__grid { row-gap: 48px; align-items: end; }
.chapter__grid .title { grid-column: 1 / -1; }
.chapter__text { grid-column: 7 / 13; display: grid; gap: 32px; }
@media (max-width: 900px) { .chapter__text { grid-column: 1 / -1; } }

/* ---------- Issues ---------- */

.issues { align-items: start; row-gap: 56px; }
.issues__photo { grid-column: 1 / 5; position: sticky; top: 110px; aspect-ratio: 3 / 4; }
.issues__body { grid-column: 6 / 13; }
.issues__title { grid-column: 1 / -1; }
.issues__list { margin-top: -22px; }
.issues__list li {
  display: flex; gap: 24px; align-items: baseline;
  padding-block: 22px;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(24px, 2.4vw, 38px); line-height: 1.15;
}
.issues__list li::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); transform: translateY(-.2em); }
.issues__foot { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; }
@media (max-width: 900px) {
  .issues__photo { grid-column: 1 / -1; position: static; aspect-ratio: 16 / 10; }
  .issues__body { grid-column: 1 / -1; }
}

/* ---------- Stats over a photograph ---------- */

.stats { position: relative; min-height: 112svh; color: var(--cream); overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.stats__media { position: absolute; inset: -8% 0; will-change: transform; }
.stats__media img { width: 100%; height: 100%; object-fit: cover; }
.stats::after { content: ""; position: absolute; inset: 0; background: rgba(18, 28, 59, .4); }
.stats > .wrap { position: relative; z-index: 1; }
.stats__top { padding-top: var(--sec); }
.stats__figure { font-family: var(--serif); font-weight: 300; font-size: clamp(96px, 15vw, 250px); line-height: .85; }
.stats__claim { margin-top: 20px; max-width: 30ch; }
.stats__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); padding-top: 64px; padding-bottom: 44px; }
.stat-card { background: var(--cream); color: var(--navy); border-radius: var(--radius); padding: 28px 30px; display: grid; gap: 14px; align-content: space-between; min-height: 200px; }
.stat-card__value { font-family: var(--serif); font-size: clamp(54px, 5vw, 84px); line-height: .9; }
@media (max-width: 760px) { .stats__cards { grid-template-columns: 1fr; } .stat-card { min-height: 0; } }

/* ---------- Principles ---------- */

.principles { row-gap: 56px; }
.principles__head { grid-column: 1 / 8; display: grid; gap: 40px; align-content: start; }
.principles__photo { aspect-ratio: 4 / 3; max-width: 420px; }
.principles__list { grid-column: 9 / 13; display: grid; grid-template-columns: 1fr; gap: 56px var(--gutter); align-content: start; }
.principles__list li { font-family: var(--serif); font-size: clamp(22px, 1.9vw, 30px); line-height: 1.22; padding-top: 22px; position: relative; }
.principles__list li::before { content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 2px; background: var(--gold); }
@media (max-width: 900px) {
  .principles__head, .principles__list { grid-column: 1 / -1; }
}


/* ---------- Quotes ---------- */

.quotes { text-align: center; }
.quotes__stage { min-height: 15em; display: grid; place-items: center; }
.quote-item[hidden] { display: none; }
.quote-item { animation: quoteIn .9s var(--ease-out) both; }
@keyframes quoteIn { from { opacity: 0; filter: blur(8px); transform: translateY(14px); } to { opacity: 1; filter: none; transform: none; } }
.quote { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 3.4vw, 52px); line-height: 1.12; max-width: 24ch; margin-inline: auto; }
.quote-cite { margin-top: 32px; display: grid; gap: 6px; }
.quote-cite .serif { font-size: 26px; }
.quotes__controls { margin-top: 44px; display: flex; justify-content: center; gap: 12px; }
.round-btn {
  width: 58px; height: 58px; border-radius: 50%;
  border: 1px solid currentColor; background: none; cursor: pointer;
  display: grid; place-items: center;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.round-btn:hover { background: var(--navy); color: var(--cream); }
.round-btn svg { width: 22px; height: 12px; }

/* ---------- Finale ---------- */

.finale { position: relative; min-height: 100svh; color: var(--cream); background: var(--navy-deep); overflow: hidden; display: grid; place-items: center; text-align: center; }
.finale__media { position: absolute; inset: -8% 0; will-change: transform; }
.finale__media img { width: 100%; height: 100%; object-fit: cover; }
.finale::after { content: ""; position: absolute; inset: 0; background: rgba(18, 28, 59, .5); }
.finale__copy { position: relative; z-index: 1; padding-block: 160px 96px; display: grid; justify-items: center; gap: 48px; }
.finale__copy h2 { font-size: clamp(30px, 5.4vw, 96px); }
.finale__copy h2.title--long { font-size: clamp(24px, 3.8vw, 64px); }

/* ---------- Split heading / text ---------- */

.split { row-gap: 40px; align-items: start; }
.split__head { grid-column: 1 / 6; }
.split__body { grid-column: 7 / 13; display: grid; gap: 32px; align-content: start; }
.split__wide { grid-column: 1 / -1; }
@media (max-width: 900px) { .split__head, .split__body { grid-column: 1 / -1; } }

/* ---------- Numbers ---------- */

.numbers { display: grid; grid-template-columns: repeat(var(--cols, 2), 1fr); gap: 48px var(--gutter); }
.numbers__value { font-family: var(--serif); font-size: clamp(48px, 5.4vw, 92px); line-height: .95; }
.numbers__label { margin-top: 14px; max-width: 26ch; }
@media (max-width: 760px) { .numbers { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .numbers { grid-template-columns: 1fr; } }

/* ---------- Goals ---------- */

.goals { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 56px var(--gutter); margin-top: 72px; }
.goals li { font-family: var(--serif); font-size: clamp(22px, 1.9vw, 30px); line-height: 1.22; padding-top: 22px; position: relative; }
.goals li::before { content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 2px; background: var(--gold); }

/* ---------- Team ---------- */

.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 42vw), 1fr)); gap: 64px var(--gutter); margin-top: 64px; }
.person .shape { aspect-ratio: 4 / 5; background: var(--sand-2); }
.person .shape img { object-position: 50% 22%; transition: transform .9s var(--ease-out); }
.person:hover .shape img { transform: scale(1.04); }
.person:nth-child(3n + 1) .shape { -webkit-mask-image: var(--shape-c); mask-image: var(--shape-c); }
.person:nth-child(3n + 2) .shape { -webkit-mask-image: var(--shape-b); mask-image: var(--shape-b); }
.person:nth-child(3n + 3) .shape { -webkit-mask-image: var(--shape-a); mask-image: var(--shape-a); }
.person figcaption { margin-top: 20px; display: grid; gap: 6px; }
.person__name { font-family: var(--serif); font-size: clamp(24px, 2vw, 30px); line-height: 1.1; }

/* ---------- Partners ---------- */

.partners__photo { grid-column: 1 / -1; aspect-ratio: 21 / 9; margin-top: 56px; }
.partner-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); margin-top: 72px; }
.partner-tile { min-width: 0; background: #fff; border-radius: var(--radius); aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 14%; transition: transform .6s var(--ease-out); }
.partner-tile:hover { transform: translateY(-6px); }
.partner-tile img { width: 100%; max-width: 260px; max-height: 70px; object-fit: contain; }
.partner-tile--boa img { max-width: 340px; max-height: 136px; }
@media (max-width: 760px) { .partners__photo { grid-column: 1 / -1; aspect-ratio: 21 / 9; margin-top: 56px; }
.partner-row { grid-template-columns: 1fr; } .partner-tile { aspect-ratio: 5 / 2; } }

/* ---------- Photo band ---------- */

.band { position: relative; height: 92svh; overflow: hidden; }
.band__media { position: absolute; inset: -10% 0; will-change: transform; }
.band__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- FAQ ---------- */

.faq-layout { align-items: start; row-gap: 48px; }
.faq-layout__photo { grid-column: 1 / 5; position: sticky; top: 110px; aspect-ratio: 3 / 4; }
.faq-layout__list { grid-column: 6 / 13; }
.faq details { padding-block: 6px; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding-block: 22px;
  font-family: var(--serif); font-size: clamp(20px, 2.2vw, 34px); line-height: 1.15;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; transition: transform .5s var(--ease-out), background-color .3s, color .3s; }
.faq summary:hover .plus { background: var(--navy); color: var(--cream); }
.faq details[open] .plus { transform: rotate(45deg); }
.faq .answer { padding: 4px 0 28px; max-width: 70ch; }
.faq .answer p + p { margin-top: 1em; }
.faq .answer img { margin-top: 20px; border-radius: 16px; }
@media (max-width: 900px) {
  .faq-layout__photo { grid-column: 1 / -1; position: static; aspect-ratio: 16 / 10; }
  .faq-layout__list { grid-column: 1 / -1; }
}

/* ---------- News ---------- */

.story { display: grid; grid-template-columns: 6fr 6fr; gap: var(--gutter); align-items: center; text-decoration: none; }
.story__img { aspect-ratio: 4 / 3; }
.story__img img { transition: transform .9s var(--ease-out); }
.story:hover .story__img img { transform: scale(1.04); }
.story__body { display: grid; gap: 22px; }
.story__title { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.4vw, 56px); line-height: 1.02; }
@media (max-width: 800px) { .story { grid-template-columns: 1fr; } }

.prose { max-width: 66ch; margin-inline: auto; }
.prose p { margin-top: 1.2em; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.15; }
.prose figure { margin-block: 44px; }
.prose figure img { border-radius: 18px; width: 100%; }
.prose figcaption { margin-top: 12px; font-size: var(--t-label); opacity: .78; }
.about-box { margin-top: 72px; padding: clamp(28px, 4vw, 52px); background: var(--navy-deep); color: var(--cream); border-radius: var(--radius); display: grid; gap: 20px; }

/* ---------- Contact ---------- */

.contact-grid { row-gap: 64px; }
.contact-grid__info { grid-column: 1 / 6; display: grid; gap: 40px; align-content: start; }
.contact-grid__form { grid-column: 7 / 13; }
.contact-lines a, .contact-lines p { display: block; font-family: var(--serif); font-size: clamp(26px, 2.6vw, 40px); line-height: 1.2; text-decoration: none; }
.contact-lines a:hover { color: var(--gold-deep); }
.contact-lines > * + * { margin-top: 10px; }
.contact-grid__photo { aspect-ratio: 4 / 3; max-width: 460px; }
@media (max-width: 900px) { .contact-grid__info, .contact-grid__form { grid-column: 1 / -1; } }

.form { display: grid; gap: 30px; }
.form label { display: block; font-size: 15px; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; min-height: 54px; padding: 12px 0;
  border: 0; border-bottom: 1px solid rgba(25, 40, 83, .35); border-radius: 0;
  background: transparent; color: var(--navy); font-size: 18px;
  transition: border-color .3s;
}
.form textarea { min-height: 140px; resize: vertical; }
.form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23192853' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; padding-right: 32px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-bottom: 2px solid var(--gold-deep); }
.form [aria-invalid="true"] { border-bottom: 2px solid var(--red); }
.form .error { color: var(--red); font-size: var(--t-label); margin-top: 8px; }
.form .error:empty { display: none; }
.form__status { font-size: var(--t-label); }
.form .req { color: var(--red); }

.map { margin-top: 56px; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.map iframe { display: block; width: 100%; height: min(60svh, 560px); border: 0; filter: grayscale(1) sepia(.25) contrast(.95) brightness(1.03); }

/* ---------- Privacy ---------- */

.legal > :not(.table-scroll) { max-width: 72ch; margin-inline: auto; }
.legal p { margin-top: 1em; }
.legal p b:only-child { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15; margin-top: 1.6em; }
.legal ul { margin-top: .6em; padding-left: 1.2em; list-style: disc; }
.legal a { text-decoration: underline; text-underline-offset: .2em; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 28px; background: var(--cream); border-radius: 18px; overflow: hidden; }
.legal td { vertical-align: top; padding: 16px 22px; border-top: 1px solid var(--sand-2); }
.legal tr:first-child td { border-top: 0; }
.legal td p { margin-top: 0; }
.legal td p b:only-child { font-family: var(--sans); font-weight: 700; font-size: inherit; margin-top: 0; }
.legal td:first-child { width: 34%; }
.table-scroll { overflow-x: auto; }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-deep); color: var(--cream); }
.footer__main { padding-top: clamp(96px, 11vw, 168px); padding-bottom: 32px; }
.footer__word { display: inline-block; font-family: var(--serif); font-size: clamp(30px, 6vw, 100px); line-height: .95; text-transform: uppercase; white-space: nowrap; }
.footer__tagline { margin-top: 20px; color: var(--gold); font-family: var(--serif); font-size: clamp(22px, 2vw, 30px); }
.footer__row { margin-top: 80px; row-gap: 48px; }
.footer__places { grid-column: 1 / 6; }
.footer__places a, .footer__places p { display: block; font-family: var(--serif); font-size: clamp(24px, 2.4vw, 36px); line-height: 1.25; text-decoration: none; }
.footer__places a:hover { color: var(--gold); }
.footer__links { grid-column: 7 / 13; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px var(--gutter); }
.footer__links li + li { margin-top: 12px; }
.footer__links a { font-size: 15px; text-decoration: none; opacity: .86; }
.footer__links a:hover { opacity: 1; color: var(--gold); }
.footer__news-date { display: block; opacity: .6; margin-top: 4px; }
.footer__legal { margin-top: clamp(64px, 7vw, 96px); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: var(--t-label); opacity: .75; }
.footer__legal a { text-decoration: none; }
.footer__legal a:hover { text-decoration: underline; }
@media (max-width: 900px) { .footer__places, .footer__links { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer__links { grid-template-columns: 1fr 1fr; } }

/* ---------- Motion ---------- */

.js [data-reveal] > * {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(30px);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease-out), filter 1s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal].in > * { opacity: 1; filter: none; transform: none; }

.js [data-blur] .w { display: inline-block; white-space: pre; will-change: opacity, filter; }

.js .hero__media img, .js .page-hero__media img { transform: scale(1.12); transition: transform 2.6s var(--ease-out); }
.js .is-loaded .hero__media img, .js .is-loaded .page-hero__media img { transform: scale(1); }
.rise { display: block; }
.js .rise { overflow: hidden; }
.js .rise > span { display: block; transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms + .05s); }
.js .is-loaded .rise > span { transform: none; }
.js .fade-late { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease) .8s, transform 1.2s var(--ease-out) .8s; }
.js .is-loaded .fade-late { opacity: 1; transform: none; }
.js .steps__fill { transform: scaleX(0); transition: transform 2.2s var(--ease-out) 1.1s; }
.js .is-loaded .steps__fill { transform: none; }
.js .steps li { opacity: 0; transition: opacity .8s var(--ease); }
.js .is-loaded .steps li:nth-child(1) { opacity: 1; transition-delay: 1.2s; }
.js .is-loaded .steps li:nth-child(2) { opacity: 1; transition-delay: 1.9s; }
.js .is-loaded .steps li:nth-child(3) { opacity: 1; transition-delay: 2.6s; }

.drift img { animation: drift 26s var(--ease) infinite alternate; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js [data-reveal] > *, .js .rise > span, .js .fade-late, .js .steps li, .js .steps__fill,
  .js .hero__media img, .js .page-hero__media img { opacity: 1 !important; transform: none !important; filter: none !important; }
  .js [data-blur] .w { opacity: 1 !important; filter: none !important; }
  .preloader { display: none; }
}


/* ---------- Stacking: the page slides over the hero picture ---------- */

main > :not(.hero):not(.page-hero) { position: relative; z-index: 1; }
.hero__shade, .page-hero__shade { position: absolute; inset: 0; z-index: 2; background: var(--navy-deep); opacity: 0; pointer-events: none; }

/* ---------- Letters that rise into place from behind a mask ---------- */

[data-letters] .lw { display: inline-block; white-space: nowrap; vertical-align: top; overflow: hidden; padding: .1em .02em .14em; margin: -.1em -.02em -.14em; }
[data-letters] .lc { display: inline-block; }
.js [data-letters] .lc {
  transform: translate3d(0, 112%, 0);
  transition: transform 1.1s var(--ease-out);
  transition-delay: calc(var(--c, 0) * 26ms);
}
.js [data-letters="bounce"] .lc {
  transform: translate3d(0, 112%, 0) rotate(8deg);
  transition: transform 1s cubic-bezier(.34, 1.45, .64, 1);
  transition-delay: calc(var(--c, 0) * 22ms);
}
.js [data-letters].in .lc,
.js .is-loaded [data-letters="load"] .lc { transform: none; }
.js .is-loaded [data-letters="load"] .lc { transition-delay: calc(var(--c, 0) * 30ms + .1s); }

/* ---------- Shaped photographs unfold upward as they enter ---------- */

.js .shape.reveal-shape { clip-path: inset(34% 0 0 0); transform: translate3d(0, 56px, 0); transition: clip-path 1.5s var(--ease-out), transform 1.5s var(--ease-out); }
.js .shape.reveal-shape img { transform: scale(1.22); transition: transform 2s var(--ease-out); }
.js .shape.reveal-shape.in { clip-path: inset(0 0 0 0); transform: none; }
.js .shape.reveal-shape.in img { transform: scale(1); }

/* ---------- Pinned scroll-story ---------- */

.scrolly { position: relative; height: 400vh; }
.scrolly__stage { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.scrolly__bg { position: absolute; inset: -12%; z-index: 0; }
.scrolly__bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(30px) saturate(.6); opacity: .32; animation: sway 22s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-3deg) scale(1.05); } to { transform: rotate(3deg) scale(1.15); } }
.scrolly__grid { position: relative; z-index: 1; align-items: center; }
.scrolly__photo { position: relative; will-change: transform; }
.scrolly__photo img { position: absolute; inset: 0; }
.scrolly__photo .scrolly__next { opacity: 0; transition: opacity 1.2s var(--ease); }
.scrolly__photo.is-next .scrolly__next { opacity: 1; }
.scrolly__photo--a { grid-column: 1 / 4; aspect-ratio: 4 / 5; }
.scrolly__photo--b { grid-column: 10 / 13; aspect-ratio: 4 / 3; }
.scrolly__copy { grid-column: 4 / 10; padding-inline: clamp(8px, 2vw, 32px); display: grid; gap: 40px; }
.scrolly__label { font-size: clamp(20px, 1.7vw, 28px); color: var(--gold); }
.scrolly__slides { display: grid; }
.scrolly__slide { grid-area: 1 / 1; display: grid; gap: 28px; align-content: start; }
.scrolly__title { font-size: clamp(38px, 5.4vw, 92px); }
.scrolly__foot { position: absolute; left: 0; right: 0; bottom: 36px; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
.scrolly__progress { width: 220px; height: 3px; border-radius: 3px; overflow: hidden; background: rgba(251, 248, 238, .2); }
.scrolly__fill { display: block; height: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); }
.scrolly__tagline { font-size: clamp(18px, 1.5vw, 24px); margin-right: auto; }

@media (max-width: 760px), (prefers-reduced-motion: reduce) {
  .scrolly { height: auto; padding-block: var(--sec); overflow: clip; }
  .scrolly__stage { position: static; height: auto; overflow: visible; display: block; }
  .scrolly__grid { row-gap: 40px; }
  .scrolly__photo--a { grid-column: 1 / 7; order: 2; }
  .scrolly__photo--b { grid-column: 7 / 13; order: 3; align-self: end; }
  .scrolly__copy { grid-column: 1 / -1; padding: 0; }
  .scrolly__slides { gap: 48px; }
  .scrolly__slide { grid-area: auto; }
  .scrolly__foot { position: static; margin-top: 48px; }
  .scrolly__progress { display: none; }
}

/* ---------- Giant title with photographs drifting past behind it ---------- */

.roots { padding-top: 0; overflow: hidden; }
.roots__stage { position: relative; min-height: 110vh; display: grid; place-items: center; }
.roots__photos { position: absolute; inset: 0; z-index: 0; }
.roots__photo { position: absolute; will-change: transform; }
.roots__photo img { filter: brightness(.72) saturate(.85); }
.roots__photo--1 { left: 4%; top: 12%; width: clamp(160px, 22vw, 340px); aspect-ratio: 4 / 3; }
.roots__photo--2 { right: 6%; top: 30%; width: clamp(140px, 17vw, 260px); aspect-ratio: 3 / 4; }
.roots__photo--3 { left: 34%; top: 62%; width: clamp(150px, 20vw, 320px); aspect-ratio: 4 / 3; }
.roots__head { position: relative; z-index: 1; text-align: center; display: grid; justify-items: center; gap: 28px; }
.roots__title { font-size: clamp(34px, 8.4vw, 148px); }
.roots__tagline { font-size: clamp(20px, 1.8vw, 28px); }
.roots__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px var(--gutter); }
.roots__list li { font-family: var(--serif); font-size: clamp(22px, 1.8vw, 28px); line-height: 1.22; padding-top: 22px; position: relative; }
.roots__list li::before { content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 2px; background: var(--gold); }
@media (max-width: 1000px) { .roots__list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .roots__list { grid-template-columns: 1fr; } .roots__title { font-size: 34px; } .roots__stage { min-height: 80vh; } }

/* ---------- Fog that parts as a closing picture arrives ---------- */

.fog { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.finale__copy { z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  .js [data-letters] .lc, .js .shape.reveal-shape, .js .shape.reveal-shape img { transform: none !important; clip-path: none !important; }
  .fog { display: none; }
}
