/* =========================================================
   MATCH'D — brand tokens (from the MATCH'D brand guide)
   Orange #E8451F accent · Sage #B4C7A5 brand backgrounds
   Cream #F5F1E8 air · Dark #2A241E text / evening
   Climate Crisis — wordmark & big brand inscriptions only
   Anton SC — labels, tags, numbers (caps, tracked)
   Inter — everything else
   ========================================================= */
:root {
  --orange: #E8451F;
  --sage: #B4C7A5;
  --cream: #F5F1E8;
  --dark: #2A241E;
  --amber: #E9A15A;          /* "warm amber, not neon" — night mood */
  --night: #1C1814;          /* deepest evening surface */

  --text: var(--dark);
  --text-muted: #5C5349;     /* 7.0:1 on cream */
  --surface: var(--cream);

  --font-brand: "Climate Crisis", "Anton SC", Impact, sans-serif;
  --font-label: "Anton SC", "Anton", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --section-y: clamp(80px, 12vw, 168px);
  --radius: 18px;
  --radius-lg: 28px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --dur-reveal: 900ms;
  --dur-ui: 200ms;
  --dur-mode: 700ms;

  --z-header: 50;
  --z-skip: 100;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; background-color: #F5F1E8; }
main, .site-footer { overflow-x: clip; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p, ul, ol, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; }
::selection { background: var(--orange); color: var(--cream); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute !important; 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; left: 16px; top: -60px; z-index: var(--z-skip);
  background: var(--dark); color: var(--cream); padding: 12px 18px; border-radius: 999px;
  text-decoration: none; font-weight: 600; transition: top var(--dur-ui);
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }

/* ---------- type primitives ---------- */
.label {
  font-family: var(--font-label);
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.2;
  display: flex; align-items: center; gap: 14px;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.label__num {
  display: inline-grid; place-items: center;
  min-width: 2.4em; height: 2.4em; padding-inline: .5em;
  border: 1.5px solid currentColor; border-radius: 999px;
  letter-spacing: .06em;
}
.label--light { color: var(--cream); }
.label--amber { color: var(--amber); }

.h2 {
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
  max-width: 18ch;
}
.display {
  font-family: var(--font-brand);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .92;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.accent { color: var(--orange); font-style: normal; }

.prose { display: grid; gap: 1.1em; max-width: 60ch; color: var(--text-muted); font-size: clamp(1.0625rem, 1.25vw, 1.1875rem); }
.prose .big { color: var(--text); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.02em; line-height: 1.15; }

.tag {
  display: inline-block;
  font-family: var(--font-label);
  font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; line-height: 1.35;
  padding: 8px 14px; border-radius: 18px;
  background: var(--dark); color: var(--cream);
}
.tag--dark { background: var(--dark); color: var(--cream); }
.tag--amber { background: transparent; color: var(--amber); box-shadow: inset 0 0 0 1.5px var(--amber); }

.concept-tag {
  position: absolute; left: 12px; bottom: 12px;
  font-family: var(--font-label); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(28, 24, 20, .78); color: var(--cream);
  padding: 6px 10px; border-radius: 999px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

/* ---------- header (no menu by design) ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) calc(var(--gutter) + env(safe-area-inset-right, 0px)) 14px calc(var(--gutter) + env(safe-area-inset-left, 0px));
  transition: background-color var(--dur-ui), box-shadow var(--dur-ui), transform 400ms var(--ease-out);
}
/* phones: a solid bar (no blur, which is costly while scrolling) that also fills the status-bar strip */
@media (hover: none) {
  .site-header.is-scrolled { background: var(--cream) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}
.site-header.is-scrolled {
  background: rgba(245, 241, 232, .88);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(42, 36, 30, .08);
}
.site-header.is-hidden { transform: translateY(-110%); }
.site-header__logo { display: block; padding: 10px 0; opacity: 0; transition: opacity 300ms; pointer-events: none; }
.site-header.is-scrolled .site-header__logo { opacity: 1; pointer-events: auto; }
.site-header__logo img { width: clamp(108px, 12vw, 140px); }
.site-header__links { display: flex; gap: 8px; }
.site-header__links a {
  font-family: var(--font-label); font-size: .9rem; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: var(--dark);
  min-height: 44px; display: inline-flex; align-items: center;
  padding: 0 18px; border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--dark);
  transition: background-color var(--dur-ui), color var(--dur-ui);
}
.site-header__links a:hover { background: var(--dark); color: var(--cream); }
.site-header__links a:last-child { background: var(--orange); color: var(--dark); box-shadow: none; }
.site-header__links a:last-child:hover { background: var(--dark); color: var(--cream); }

/* ---------- hero: fast by day → social by night ----------
   The section is tall; its inner screen stays pinned while you scroll,
   and main.js sets --p (0 → 1) and .is-night past the halfway point. */
.hero {
  --p: 0;
  position: relative;
  height: 250vh; height: 250svh; height: 250lvh;
  background: var(--night);
  color: var(--cream);
}
.hero__sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh; height: 100lvh;
  overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(88px + env(safe-area-inset-top, 0px)) var(--gutter) 150px;
}
.hero__scene { position: absolute; inset: 0; z-index: -2; transition: opacity 1100ms ease; }
.hero__scene picture, .hero__scene img { display: block; width: 100%; height: 100%; }
.hero__scene img { object-fit: cover; }
.hero__scene--day img { object-position: 50% 45%; }
.hero__scene--night img { object-position: 50% 55%; }
.hero__scene { will-change: opacity; transform: translateZ(0); }
@media (min-width: 700px) { .hero__scene img { will-change: transform; } }
.hero__scene--night { opacity: 0; }
.hero.is-night .hero__scene--night { opacity: 1; }
.hero.is-night .hero__scene--day { opacity: 0; }

.hero__sticky::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 50% 46%, rgba(20,16,12,.55), rgba(20,16,12,0) 75%),
    linear-gradient(to bottom, rgba(20,16,12,.55) 0%, rgba(20,16,12,.15) 22%, rgba(20,16,12,.15) 55%, rgba(20,16,12,.85) 100%);
}

.hero__inner { max-width: var(--maxw); width: 100%; margin-inline: auto; text-align: center; }
.hero__kicker { justify-content: center; color: var(--cream); animation: fade 900ms var(--ease-out) 200ms both; }
.hero__title { margin: 0 auto; }
.hero__wordmark {
  display: block; width: min(100%, 1180px); aspect-ratio: 1468 / 199; margin-inline: auto;
  background-color: var(--cream);
  -webkit-mask: url("assets/logo.png") center / contain no-repeat;
          mask: url("assets/logo.png") center / contain no-repeat;
  transition: background-color 900ms ease, filter 900ms ease;
  animation: rise 1.1s var(--ease-out) both;
}
.hero.is-night .hero__wordmark { background-color: var(--orange); filter: drop-shadow(0 0 28px rgba(232,69,31,.75)); }
.hero__lede {
  margin: clamp(18px, 2.4vw, 30px) auto 0;
  max-width: 30ch;
  font-size: clamp(1.2rem, 2vw, 1.625rem); line-height: 1.3; font-weight: 500; letter-spacing: -0.02em;
  text-shadow: 0 2px 18px rgba(20,16,12,.5);
  animation: rise 1s var(--ease-out) 250ms both;
}
.hero__lede strong { font-weight: 800; }

.hero__bottom {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(20px, 4vh, 40px);
  bottom: calc(clamp(20px, 4vh, 40px) + (100lvh - 100svh));
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  max-width: var(--maxw); margin-inline: auto;
}
.hero__states { display: grid; }
.hero__state { grid-area: 1 / 1; max-width: 44ch; transition: opacity 700ms ease, transform 700ms var(--ease-out); }
.hero__state--night { opacity: 0; transform: translateY(16px); }
.hero.is-night .hero__state--day { opacity: 0; transform: translateY(-16px); }
.hero.is-night .hero__state--night { opacity: 1; transform: none; }
.hero__state-title {
  font-family: var(--font-brand); text-transform: uppercase; line-height: .95;
  font-size: clamp(1.6rem, 3.4vw, 3rem); color: var(--orange); margin-bottom: 10px;
}
.hero__state--night .hero__state-title { color: var(--amber); text-shadow: 0 0 30px rgba(232,69,31,.6); }
.hero__state-copy { font-size: clamp(.98rem, 1.2vw, 1.0625rem); line-height: 1.45; color: #EDE6DA; }

.hero__meta { display: grid; justify-items: end; gap: 12px; flex: none; }
.hero__concept {
  position: absolute; white-space: nowrap;
  left: auto; right: calc(var(--gutter) + env(safe-area-inset-right, 0px));
  bottom: calc(clamp(20px, 4vh, 40px) + (100lvh - 100svh));
}
.hero__meta { padding-bottom: 46px; }
.hero__meter { display: flex; align-items: center; gap: 6px; }
.hero__jump {
  font-family: var(--font-label); font-size: .85rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cream); background: none; border: 0; cursor: pointer;
  min-height: 44px; padding: 0 10px; border-radius: 999px;
}
.hero__jump:hover { color: var(--amber); }
/* a 44px-tall hit area around a thin line; touch-action stops the page from scrolling while you drag */
.hero__track {
  position: relative; width: 150px; height: 44px; cursor: grab;
  touch-action: none; -webkit-tap-highlight-color: transparent; border-radius: 22px;
}
.hero__track::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px;
  border-radius: 3px; background: rgba(245,241,232,.35);
}
.hero__track.is-dragging { cursor: grabbing; }
.hero__thumb {
  position: absolute; left: -12px; top: 50%;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 0 0 5px rgba(232,69,31,.25), 0 4px 14px rgba(0,0,0,.35);
  transform: translate3d(0, -50%, 0); will-change: transform;
  transition: box-shadow 200ms ease;
}
.hero__thumb::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid rgba(232,69,31,.7); animation: thumb-hint 2.2s ease-out 1.2s 3;
  opacity: 0;
}
.hero__track.is-dragging .hero__thumb, .hero__track:focus-visible .hero__thumb { box-shadow: 0 0 0 9px rgba(232,69,31,.3), 0 4px 14px rgba(0,0,0,.35); }
.hero__track:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }
@keyframes thumb-hint { 0% { opacity: .9; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.9); } }

@media (max-width: 699px) {
  .hero__sticky { padding-bottom: 210px; }
  .hero__bottom { flex-direction: column; align-items: stretch; gap: 16px; }
  .hero__meta { justify-items: start; gap: 6px; }
  .hero__meter { margin-left: -10px; }
  .hero__track { width: 170px; }
}

/* phones: the photo fills the whole screen under the header. Faces and kiosks stay clear in the
   upper part; the logo + text sit low, over a dark fade that also covers the lower part of the frame */
@media (max-width: 699px) {
  .hero__scene { top: calc(72px + env(safe-area-inset-top, 0px)); }
  .hero__scene--day img { object-position: 50% 40%; }
  .hero__scene--night img { object-position: 28% 50%; }
  .hero__sticky {
    justify-content: flex-end;
    padding-top: calc(72px + 24px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(150px + (100lvh - 100svh));
  }
  .hero__sticky::before {
    top: calc(72px + env(safe-area-inset-top, 0px));
    background: linear-gradient(to bottom,
      rgba(20,16,12,.18) 0%, rgba(20,16,12,0) 22%, rgba(20,16,12,0) 38%,
      rgba(20,16,12,.62) 52%, rgba(20,16,12,.88) 64%, rgba(20,16,12,.85) 80%, rgba(20,16,12,.3) 100%);
  }
  /* top: location line + concept label sit in the open wall area under the header */
  .hero__inner { position: static; }
  .hero__kicker {
    position: absolute; left: var(--gutter); right: var(--gutter);
    top: calc(72px + 20px + env(safe-area-inset-top, 0px));
    margin: 0; font-size: .82rem; text-shadow: 0 1px 12px rgba(20,16,12,.55);
  }
  .hero__concept {
    left: 50%; right: auto; bottom: auto; transform: translateX(-50%);
    top: calc(72px + 20px + 38px + env(safe-area-inset-top, 0px));
    font-size: .64rem; padding: 4px 10px;
  }
  /* bottom: only logo, one line, the day/night title and the slider */
  .hero__state-copy { display: none; }
  .hero__meta { padding-bottom: 0; }
  .hero__lede { margin-top: 12px; }
}
/* short phones (e.g. iPhone SE): keep only the essentials so nothing overlaps */
@media (max-width: 699px) and (max-height: 740px) {
  .hero__sticky { padding-bottom: calc(140px + (100lvh - 100svh)); }
  .hero__lede { font-size: 1.05rem; }
}
/* phones: the header is the same cream bar with the MATCH'D logo from the very first screen,
   and nothing behind the page is dark, so Safari tints its top and bottom bars light */
@media (max-width: 699px) {
  .hero { background: var(--cream); }
  html .site-header:not(.is-scrolled) { background: var(--cream); box-shadow: 0 1px 0 rgba(42, 36, 30, .08); }
  html .site-header:not(.is-scrolled) .site-header__logo { opacity: 1; pointer-events: auto; }
  html .site-header:not(.is-scrolled) .site-header__links a:first-child { color: var(--dark); box-shadow: inset 0 0 0 1.5px var(--dark); }
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

/* header sits on the dark scene until you scroll past it */
.site-header:not(.is-scrolled) .site-header__links a:first-child { color: var(--cream); box-shadow: inset 0 0 0 1.5px var(--cream); }
.site-header:not(.is-scrolled) .site-header__links a:first-child:hover { background: var(--cream); color: var(--dark); }

/* ---------- 01 intro ---------- */
.intro { background: var(--cream); }
.intro__grid { display: grid; gap: clamp(40px, 6vw, 96px); align-items: center; }
.intro__text .h2 { margin-bottom: clamp(28px, 4vw, 44px); max-width: 16ch; }
.intro__photo { border-radius: var(--radius-lg); overflow: hidden; }
.intro__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 900px) {
  .intro__grid { grid-template-columns: 1.15fr .85fr; }
}

/* ---------- everything is meant to match (orange) ---------- */
.match { background: var(--orange); color: var(--dark); }
.match__title { color: var(--cream); font-size: clamp(1.9rem, 8.4vw, 9.5rem); max-width: 12ch; margin-bottom: clamp(48px, 7vw, 96px); }
.pairs { display: grid; gap: clamp(28px, 3vw, 40px); align-items: start; }
.pair { display: grid; gap: 18px; align-content: start; }
.pair__photo { position: relative; border-radius: var(--radius); overflow: hidden; background: rgba(42,36,30,.15); }
.pair__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.pair__text {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; color: var(--dark);
}
.pair__text span { display: block; font-weight: 800; color: var(--cream); }
.match__outro {
  margin-top: clamp(56px, 7vw, 96px);
  max-width: 34ch;
  font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.2; font-weight: 600; letter-spacing: -0.025em;
  color: var(--dark);
}
@media (min-width: 760px) {
  .pairs { grid-template-columns: repeat(3, 1fr); }
  .pair:nth-child(2) { margin-top: clamp(40px, 6vw, 96px); }
  .pair:nth-child(3) { margin-top: clamp(80px, 12vw, 192px); }
}

/* ---------- 02 the name ---------- */
.name { background: var(--cream); }
.name__title { margin-bottom: clamp(40px, 6vw, 72px); }
.meanings { border-top: 1.5px solid var(--dark); }
.meaning {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "idx word"
    "body body"
    "photo photo";
  gap: 14px 18px;
  padding-block: clamp(28px, 4vw, 48px);
  border-bottom: 1.5px solid var(--dark);
  align-items: start;
}
.meaning__index { grid-area: idx; font-family: var(--font-label); font-size: 1rem; letter-spacing: .12em; padding-top: .6em; color: var(--text-muted); }
.meaning__word {
  grid-area: word;
  font-family: var(--font-brand); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.4rem, 9vw, 5rem); line-height: .9; color: var(--orange);
}
@media (min-width: 900px) { .meaning__word { font-size: clamp(2.6rem, 4.8vw, 4.75rem); } }
.meaning__body { grid-area: body; display: grid; gap: 16px; justify-items: start; font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.4; max-width: 36ch; }
.meaning__photo { grid-area: photo; border-radius: var(--radius); overflow: hidden; width: min(100%, 340px); }
.meaning__photo img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
@media (min-width: 900px) {
  .meaning {
    grid-template-columns: 64px minmax(0, 1.3fr) minmax(0, 1fr) 200px;
    grid-template-areas: "idx word body photo";
    align-items: center; gap: 32px;
  }
  .meaning__photo { width: 200px; }
}

/* ---------- 03 sourcing: matcha from Japan, produce from California ---------- */
.sourcing { background: var(--cream); padding-top: 0; }
.sourcing__title { max-width: 20ch; margin-bottom: clamp(40px, 6vw, 72px); }
.sourcing__grid { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.source { border-radius: var(--radius-lg); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.source--matcha { background: var(--dark); color: var(--cream); }
.source--farms { background: var(--sage); color: var(--dark); }
.source__photo { overflow: hidden; }
.source__photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 900ms var(--ease-out); }
.source--matcha .source__photo img { object-position: 50% 22%; }
.source--farms .source__photo img { object-position: 30% 30%; }
.source:hover .source__photo img { transform: scale(1.05); }
.source__body { padding: clamp(24px, 3.2vw, 44px); display: grid; gap: 16px; align-content: start; }
.source__kicker { font-family: var(--font-label); font-size: .95rem; letter-spacing: .16em; text-transform: uppercase; }
.source--matcha .source__kicker { color: var(--sage); }
.source--farms .source__kicker { color: var(--dark); }
.source__title {
  font-family: var(--font-brand); font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.9rem, 3.6vw, 3.25rem); line-height: .95;
}
.source--matcha .source__title { color: var(--orange); }
.source--farms .source__title { color: var(--dark); }
.source__body > p:not(.source__kicker) { font-size: clamp(1.0625rem, 1.25vw, 1.1875rem); line-height: 1.55; max-width: 46ch; }
.source--matcha .source__body > p:not(.source__kicker) { color: #DDD3C6; }
.source__facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.source__facts li {
  font-family: var(--font-label); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 999px;
}
.source--matcha .source__facts li { box-shadow: inset 0 0 0 1.5px rgba(245,241,232,.45); }
.source--farms .source__facts li { background: var(--cream); }
@media (min-width: 900px) { .sourcing__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- 04 a place for everyone (sage) ---------- */
.everyone { background: var(--sage); }
.everyone__grid { display: grid; gap: clamp(40px, 6vw, 96px); align-items: center; }
.everyone__photo { border-radius: var(--radius-lg); overflow: hidden; }
.everyone__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.everyone__text .h2 { max-width: 17ch; margin-bottom: clamp(28px, 4vw, 40px); }
.everyone .prose { color: var(--dark); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(28px, 4vw, 40px); }
.chips li {
  font-weight: 600; font-size: 1.0625rem;
  padding: 12px 20px; border-radius: 999px;
  background: var(--cream); color: var(--dark);
}
.chips li:nth-child(odd) { background: var(--dark); color: var(--cream); }
.stay {
  display: grid; gap: 4px; margin-bottom: clamp(28px, 4vw, 40px);
  font-size: clamp(1.375rem, 2.3vw, 2rem); line-height: 1.2; letter-spacing: -0.025em; font-weight: 500;
}
.stay strong { font-weight: 800; }
@media (min-width: 900px) {
  .everyone__grid { grid-template-columns: .85fr 1.15fr; }
}

/* ---------- choice ---------- */
.choice { background: var(--cream); }
.choice__inner { display: grid; gap: 28px; justify-items: center; text-align: center; }
.choice__line { font-size: clamp(1.9rem, 4.4vw, 3.75rem); line-height: 1.08; font-weight: 700; letter-spacing: -0.035em; max-width: 22ch; text-wrap: balance; }
.choice__sub { max-width: 58ch; color: var(--text-muted); font-size: clamp(1.0625rem, 1.3vw, 1.25rem); }

.choice__cols { display: grid; gap: 32px; width: 100%; max-width: 1040px; text-align: left; margin-bottom: clamp(32px, 5vw, 64px); }
.choice__cols p:not(.choice__col-title) { color: var(--text-muted); font-size: clamp(1.0625rem, 1.25vw, 1.1875rem); }
.choice__col-title { font-family: var(--font-brand); text-transform: uppercase; font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1; color: var(--orange); margin-bottom: 14px; }
.choice__col-title--night { color: var(--dark); }
@media (min-width: 760px) { .choice__cols { grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); } }

/* ---------- 05 pillars ---------- */
.pillars { background: var(--sage); }
.pillars .h2 { margin-bottom: clamp(40px, 6vw, 72px); }
.pillar-list { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.pillar { background: var(--cream); border-radius: var(--radius-lg); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.pillar__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pillar__body { padding: clamp(24px, 3vw, 36px); display: grid; gap: 14px; align-content: start; }
.pillar__num { font-family: var(--font-label); letter-spacing: .14em; color: var(--orange); font-size: 1.1rem; }
.pillar__title { font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; }
.pillar__body p { color: var(--text-muted); }
.pillar__body .pillar__note { color: var(--dark); font-weight: 600; padding-top: 14px; border-top: 1.5px solid rgba(42,36,30,.15); }
@media (min-width: 900px) { .pillar-list { grid-template-columns: repeat(3, 1fr); } }
/* mid-size screens: photo beside the text, so images never stretch to full width */
@media (min-width: 600px) and (max-width: 899px) {
  .pillar { grid-template-columns: 44% 1fr; grid-template-rows: none; }
  .pillar__photo { height: 100%; }
  .pillar__photo img { height: 100%; aspect-ratio: auto; min-height: 340px; }
}
@media (max-width: 599px) { .pillar__photo img { aspect-ratio: 4 / 5; } }
.pillar__photo img { object-position: 50% 40%; }

/* ---------- 06 vision ---------- */
.vision { background: var(--cream); padding-bottom: clamp(60px, 8vw, 120px); }
.vision__title { max-width: 22ch; margin-bottom: clamp(40px, 6vw, 72px); }
.vision__grid { display: grid; gap: clamp(40px, 6vw, 96px); align-items: start; }
.not-list__intro { font-family: var(--font-label); letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.not-list ul { display: grid; gap: 4px; margin-bottom: 24px; }
.not-list li { font-size: clamp(1.75rem, 3.6vw, 3rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; color: var(--text-muted); }
.not-list s { text-decoration-color: var(--orange); text-decoration-thickness: .1em; }
.not-list__is { font-size: clamp(1.25rem, 2vw, 1.625rem); line-height: 1.3; letter-spacing: -0.02em; max-width: 30ch; }
.not-list__is strong { color: var(--orange); }
@media (min-width: 900px) { .vision__grid { grid-template-columns: 1fr 1fr; } }

.marquee { position: relative; margin-block: clamp(64px, 9vw, 128px); padding-bottom: 88px; overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee.is-paused .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; gap: 16px; padding-right: 16px; }
.marquee__group li { width: clamp(180px, 22vw, 300px); border-radius: var(--radius); overflow: hidden; flex: none; }
.marquee__group li:nth-child(even) { transform: translateY(24px); }
.marquee__group img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.marquee__toggle {
  position: absolute; right: var(--gutter); bottom: 0;
  min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--dark); color: var(--cream);
  font-family: var(--font-label); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  transition: background-color var(--dur-ui);
}
.marquee__toggle:hover { background: var(--orange); color: var(--dark); }
@keyframes marquee { to { transform: translateX(-50%); } }

.quote p {
  font-size: clamp(1.9rem, 4.6vw, 4rem); line-height: 1.06; letter-spacing: -0.035em; font-weight: 700;
  max-width: 24ch; text-wrap: balance;
}
.quote { padding-top: clamp(24px, 4vw, 48px); }

/* ---------- finale (orange) ---------- */
.finale { background: var(--orange); padding-block: var(--section-y); color: var(--dark); overflow: hidden; }
.finale .label { color: var(--dark); }
/* orange surfaces: keep labels in the WCAG "large text" range (≥18.7px bold) */
.match .label, .finale .label { font-size: 1.2rem; }
.finale__rights { display: grid; gap: 2px; margin-bottom: clamp(48px, 7vw, 96px); }
.finale__rights li {
  font-size: clamp(2.25rem, 7vw, 6.5rem); font-weight: 800; line-height: 1; letter-spacing: -0.045em; color: var(--cream);
}
.finale__rights li:nth-child(even) { padding-left: clamp(24px, 10vw, 180px); color: var(--dark); }
.finale__title { color: var(--dark); font-size: clamp(1.9rem, 7.4vw, 7.5rem); max-width: 13ch; margin-bottom: 28px; }
.finale__sub { font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 600; letter-spacing: -0.02em; max-width: 34ch; font-style: italic; }

/* ---------- footer (dark / evening) ---------- */
.site-footer { background: var(--dark); color: var(--cream); padding-top: clamp(72px, 10vw, 128px); overflow: hidden; }
.footer__grid { display: grid; gap: 40px; padding-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid rgba(245,241,232,.15); }
.footer__col .label { margin-bottom: 14px; }
.footer__big-link, .footer__big {
  font-size: clamp(1.375rem, 2.4vw, 2rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.2;
  overflow-wrap: anywhere;
}
.footer__big-link { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size 400ms var(--ease-out), color var(--dur-ui); }
.footer__big-link:hover { color: var(--amber); background-size: 100% 2px; }
.footer__muted { color: #B9AE9F; font-weight: 500; }
.footer__app { padding-top: 28px; color: #B9AE9F; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: repeat(3, 1fr); } }

.footer__wordmark { padding: clamp(56px, 8vw, 112px) var(--gutter) 0; text-align: center; }
.footer__wordmark img { width: 100%; max-width: 1600px; margin-inline: auto; }
.footer__tag {
  margin-top: clamp(14px, 2vw, 24px);
  font-family: var(--font-label); letter-spacing: .5em; text-transform: uppercase; font-size: clamp(.95rem, 1.6vw, 1.4rem);
  padding-left: .5em; color: var(--sage);
}
.footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-block: 40px 32px; color: #B9AE9F; font-size: .9375rem;
}
.footer__legal a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.footer__legal a:hover { color: var(--cream); }

/* ---------- scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* image pop-up: the frame opens from a smaller rounded window while the photo settles from a zoom */
.js .pop {
  opacity: 0;
  transform: translateY(70px) scale(.9);
  clip-path: inset(14% 10% 14% 10% round 40px);
  transition:
    opacity 600ms ease,
    transform 1100ms cubic-bezier(.2, 1.2, .3, 1),
    clip-path 1200ms var(--ease-out);
  will-change: transform, clip-path;
}
.js .pop img { transform: scale(1.3); transition: transform 1600ms var(--ease-out); }
.js .pop.is-in { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 0px); }
.js .pop.is-in img { transform: scale(1); }
.js .pop .concept-tag { opacity: 0; transition: opacity 500ms ease 900ms; }
.js .pop.is-in .concept-tag { opacity: 1; }


/* ---- different entrance per section (data-anim set by main.js) ---- */
/* curtain: the photo is unveiled from the bottom up */
.js .pop[data-anim="curtain"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0 round var(--radius-lg)); transition: clip-path 1300ms cubic-bezier(.77, 0, .18, 1); }
.js .pop[data-anim="curtain"] img { transform: scale(1.35) translateY(-6%); transition: transform 1800ms cubic-bezier(.22, 1, .36, 1); }
.js .pop[data-anim="curtain"].is-in { clip-path: inset(0 0 0 0 round var(--radius-lg)); }

/* tilt: cards swing up and straighten, like photos dealt onto a table */
.js .pop[data-anim="tilt"] { clip-path: none; transform: translateY(110px) rotate(var(--rot, -7deg)) scale(.9); transform-origin: 50% 100%; transition: opacity 500ms ease, transform 1300ms cubic-bezier(.34, 1.4, .5, 1); }
.js .pop[data-anim="tilt"] img { transform: scale(1.12); }

/* slide: a horizontal wipe from the right */
.js .pop[data-anim="slide"] { opacity: 1; transform: translateX(40px); clip-path: inset(0 0 0 100% round var(--radius)); transition: clip-path 1100ms cubic-bezier(.77, 0, .18, 1), transform 1100ms var(--ease-out); }
.js .pop[data-anim="slide"] img { transform: scale(1.25) translateX(8%); }
.js .pop[data-anim="slide"].is-in { clip-path: inset(0 0 0 0 round var(--radius)); }

/* iris: opens from a circle in the middle */
.js .pop[data-anim="iris"] { opacity: 1; transform: none; clip-path: circle(6% at 50% 45%); transition: clip-path 1500ms cubic-bezier(.65, 0, .25, 1); }
.js .pop[data-anim="iris"] img { transform: scale(1.4) rotate(4deg); transition: transform 2000ms var(--ease-out); }
.js .pop[data-anim="iris"].is-in { clip-path: circle(80% at 50% 50%); }

/* focus: comes into focus like a camera lens */
.js .pop[data-anim="focus"] { clip-path: none; transform: scale(.96); filter: blur(22px) saturate(.4); transition: opacity 900ms ease, transform 1400ms var(--ease-out), filter 1400ms var(--ease-out); }
.js .pop[data-anim="focus"].is-in { filter: none; }
.js .pop[data-anim].is-in { opacity: 1; transform: none; }
.js .pop[data-anim].is-in img { transform: none; }

/* zoom: only the picture settles, the frame stays put */
.js .pop[data-anim="zoom"] { opacity: 1; transform: none; clip-path: none; }
.js .pop[data-anim="zoom"] img { transform: scale(1.45); transition: transform 1800ms var(--ease-out); }

/* flip: whole card folds up toward you */
.js .flip { transform: perspective(1000px) rotateX(32deg) translateY(80px); transform-origin: 50% 100%; opacity: 0; transition: transform 1200ms cubic-bezier(.22, 1.2, .36, 1), opacity 700ms ease; }
.js .flip.is-in { transform: none; opacity: 1; }

/* hover: pair cards tilt toward the cursor (vars set by main.js) */
.js .pop[data-anim].is-in.settled { transition: transform 500ms var(--ease-out), opacity 500ms ease; transform: perspective(900px) rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg)); }
.js .pillar:hover .pop.is-in img, .js .meaning:hover .pop.is-in img, .pillar:hover .pillar__photo img, .meaning:hover .meaning__photo img { transform: scale(1.06); transition: transform 900ms var(--ease-out); }
.marquee__group img { transition: transform 700ms var(--ease-out), filter 700ms ease; }
.marquee__group li:hover img { transform: scale(1.08); }

/* gentle depth while scrolling (set by main.js) */
.js .drift { translate: 0 var(--drift, 0px); }

/* ---------- small screens ---------- */
@media (max-width: 600px) {
  .site-header__links a { padding: 0 14px; font-size: .8rem; }
  .marquee__toggle { position: static; margin: 32px var(--gutter) 0 auto; display: block; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal, .js .pop, .js .flip, .js .pop[data-anim] { opacity: 1; transform: none; clip-path: none; filter: none; }
  .js .pop[data-anim] img { transform: none; }
  .js .pop img { transform: none; }
  .js .drift { translate: none; }
  .marquee__track { animation: none; }
  .marquee { overflow-x: auto; }
  .marquee__toggle { display: none; }
}

/* ---------- phones: tap a photo and it lifts toward you ---------- */
.js .pop[data-anim].is-in.is-pressed {
  transform: translateY(-6px) scale(1.035) rotate(-1.5deg);
  box-shadow: 0 26px 50px -22px rgba(28, 24, 20, .55);
  transition: transform 260ms cubic-bezier(.34, 1.56, .64, 1), box-shadow 260ms ease;
}
.js .pop[data-anim].is-in.is-pressed img { transform: scale(1.08); transition: transform 400ms var(--ease-out); }
.marquee__group li { transition: transform 260ms cubic-bezier(.34, 1.56, .64, 1); }
.marquee__group li.is-pressed { transform: translateY(-10px) scale(1.05) rotate(-2deg); z-index: 2; }
.marquee__group li:nth-child(even).is-pressed { transform: translateY(14px) scale(1.05) rotate(2deg); }
main figure.pop { -webkit-tap-highlight-color: transparent; }

/* ---------- text that lights up as you scroll ---------- */
[data-scrub] .w { opacity: .18; transition: opacity 160ms linear; }

