/* palette: bg=#ECEDEE fg=#1B1D20 accent=#5C7A99 */
/* fonts: display="Fraunces" body="Inter" mono="IBM Plex Mono" */

:root {
  --bg: #ECEDEE;        /* cool cloud-white, dominant background */
  --bg-alt: #E2E4E6;    /* slightly deeper alternating section */
  --bg-warm: #EEECE7;   /* faint warm tint pulled from the golden light */
  --fg: #1B1D20;        /* charcoal near-black, primary text + button */
  --fg-soft: #3C4045;   /* softened foreground */
  --muted: #80868E;     /* cool grey, secondary text */
  --accent: #5C7A99;    /* steel blue extracted from the mountains */
  --accent-deep: #3F586E; /* darker steel for hover */
  --line: #1B1D20;
  --border: rgba(27, 29, 32, 0.14);
  --border-soft: rgba(27, 29, 32, 0.08);
  --serif: 'Fraunces', ui-serif, Georgia, serif;
  --sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.75;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4 { font-weight: 400; margin: 0; }
p { margin: 0; }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) { .container { padding: 0 32px; } }

.section { padding: clamp(80px, 12vw, 160px) 0; }
.section--tight { padding: clamp(56px, 8vw, 100px) 0; }
.section--alt { background: var(--bg-alt); }
.section--warm { background: var(--bg-warm); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
}
.eyebrow--muted { color: var(--muted); }

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.32rem);
  line-height: 1.7;
  color: var(--fg-soft);
}
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 15px 30px;
  background: var(--fg);
  color: var(--bg);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), opacity 0.4s var(--ease);
}
.btn:hover { transform: translateY(-2px); background: var(--accent-deep); }
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}
.btn--ghost:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--light {
  background: var(--bg);
  color: var(--fg);
}
.btn--light:hover { background: var(--accent); color: #fff; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg);
  transition: gap 0.4s var(--ease), color 0.4s var(--ease);
}
.arrow-link:hover { gap: 14px; color: var(--accent); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
  background: rgba(236, 237, 238, 0);
  border-bottom: 1px solid transparent;
}
.header[data-scrolled="true"] {
  background: rgba(236, 237, 238, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 1px 24px -12px rgba(27, 29, 32, 0.4);
}
/* over-photo hero: header text light until scrolled */
.header--over-hero:not([data-scrolled="true"]) { color: #fff; }
.header--over-hero:not([data-scrolled="true"]) .brand-mark { border-color: rgba(255,255,255,0.6); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 1.18rem;
  letter-spacing: 0.01em;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  font-family: var(--serif);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  transition: border-color 0.4s var(--ease);
}
.brand strong { font-weight: 400; }

.nav { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; align-items: center; gap: 34px; }
  .nav a {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    position: relative;
    padding: 4px 0;
    color: inherit;
    opacity: 0.82;
    transition: opacity 0.3s var(--ease);
  }
  .nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -2px;
    width: 0; height: 1px;
    background: currentColor;
    transition: width 0.4s var(--ease);
  }
  .nav a:hover { opacity: 1; }
  .nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
}
.header__cta { display: none; }
@media (min-width: 900px) { .header__cta { display: inline-flex; } }

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  padding: 6px 0;
}
@media (min-width: 900px) { .menu-toggle { display: none; } }
.menu-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 24px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.mobile-menu[data-open="true"] { opacity: 1; pointer-events: all; transform: none; }
.mobile-menu a {
  font-family: var(--serif);
  font-size: clamp(2rem, 9vw, 3rem);
  letter-spacing: -0.02em;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
  color: var(--fg);
}
.mobile-menu a:last-of-type { border-bottom: 0; }
.mobile-menu__meta { margin-top: 40px; font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.05em; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  margin-top: -76px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 9s var(--ease) forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 50% 30%, rgba(0,0,0,0) 30%, rgba(20,24,30,0.32) 100%),
    linear-gradient(180deg, rgba(20,24,30,0.28) 0%, rgba(20,24,30,0.05) 35%, rgba(20,24,30,0.42) 100%);
}
.hero__inner {
  padding: 120px 20px;
  max-width: 920px;
}
.hero__monogram {
  width: 64px;
  height: 64px;
  margin: 0 auto 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.55);
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}
.hero .eyebrow { color: rgba(255,255,255,0.92); }
.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.5rem, 10vw, 9rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 22px 0 0;
}
.hero h1 em { font-style: italic; color: #cfe0ee; }
.hero__tagline {
  margin: 28px auto 40px;
  max-width: 560px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
  color: rgba(255,255,255,0.9);
}
.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero__scroll::after {
  content: "";
  width: 1px;
  height: 42px;
  background: linear-gradient(rgba(255,255,255,0.8), rgba(255,255,255,0));
  animation: scrollPulse 2.4s var(--ease) infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* page hero (interior pages) */
.page-hero {
  position: relative;
  padding: clamp(150px, 22vh, 260px) 0 clamp(70px, 9vw, 120px);
  text-align: center;
  border-bottom: 1px solid var(--border-soft);
  margin-top: -76px;
}
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-top: 20px;
}
.page-hero h1 em { font-style: italic; color: var(--accent); }
.page-hero p { max-width: 620px; margin: 26px auto 0; }

/* ---------- Section heading ---------- */
.section-head {
  max-width: 820px;
  margin: 0 auto clamp(48px, 6vw, 80px);
  text-align: center;
}
.section-head--left { text-align: left; margin-left: 0; }
.section-head h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-top: 20px;
}
.section-head h2 em { font-style: italic; color: var(--accent); }
.section-head p { margin-top: 24px; }

/* ---------- Manifesto ---------- */
.manifesto { text-align: center; }
.manifesto p {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  max-width: 980px;
  margin: 0 auto;
}
.manifesto p em { font-style: italic; color: var(--accent); }
.manifesto__mark {
  font-family: var(--serif);
  font-size: clamp(4rem, 9vw, 7rem);
  line-height: 0.5;
  color: var(--accent);
  display: block;
  margin-bottom: 24px;
}

/* dark inverted band */
.band-dark {
  background: var(--fg);
  color: var(--bg);
}
.band-dark .eyebrow { color: #9fb6cb; }
.band-dark .section-head h2 em { color: #cfe0ee; }
.band-dark .manifesto p em { color: #cfe0ee; }
.band-dark .muted { color: rgba(236,237,238,0.6); }

/* ---------- Timeline (Skeleton D progression) ---------- */
.timeline {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--border);
}
@media (min-width: 768px) { .timeline::before { left: 27px; } }
.tl-step {
  position: relative;
  padding: 0 0 clamp(40px, 5vw, 64px) 56px;
}
@media (min-width: 768px) { .tl-step { padding-left: 76px; } }
.tl-step:last-child { padding-bottom: 0; }
.tl-step__node {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
}
@media (min-width: 768px) { .tl-step__node { width: 56px; height: 56px; font-size: 13px; } }
.tl-step__phase {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.tl-step h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  letter-spacing: -0.01em;
  margin: 6px 0 12px;
}
.tl-step p { color: var(--fg-soft); max-width: 560px; }
.section--alt .tl-step__node { background: var(--bg-alt); }

/* ---------- Cards grid ---------- */
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
  box-shadow: 0 4px 24px -4px rgba(27,29,32,0.08);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px -8px rgba(27,29,32,0.14);
  border-color: var(--border);
}
.card__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  letter-spacing: -0.01em;
  margin: 18px 0 14px;
}
.card p { color: var(--fg-soft); font-size: 0.97rem; }
.card ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.card ul li { padding: 7px 0; border-top: 1px solid var(--border-soft); }
.card .arrow-link { margin-top: 24px; }
.section--alt .card { background: #ECEEF0; }

/* ---------- Work / case-study covers ---------- */
.work-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .work-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; } }
.work {
  display: block;
  group: work;
}
.work__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
}
.work__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.work:hover .work__media img { transform: scale(1.05); }
.work__cat {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 22px;
  display: block;
}
.work h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  letter-spacing: -0.01em;
  margin: 10px 0 10px;
}
.work p { color: var(--fg-soft); font-size: 0.97rem; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 24px;
  text-align: center;
}
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat__num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat__num em { font-style: italic; color: var(--accent); }
.stat__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 14px;
}

/* ---------- Split feature ---------- */
.split {
  display: grid;
  gap: 48px;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 0.95fr; gap: 72px; } .split--rev > .split__media { order: -1; } }
.split__media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.split h2 em { font-style: italic; color: var(--accent); }
.split p { margin-top: 22px; color: var(--fg-soft); }
.split .arrow-link { margin-top: 30px; }

/* ---------- Values list ---------- */
.values { display: grid; gap: 0; }
.value-row {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  padding: clamp(28px, 4vw, 44px) 0;
  border-top: 1px solid var(--border);
}
.value-row:last-child { border-bottom: 1px solid var(--border); }
@media (min-width: 768px) { .value-row { grid-template-columns: 80px 1fr 1.4fr; gap: 40px; align-items: baseline; } }
.value-row__idx { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; }
.value-row h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.01em;
}
.value-row p { color: var(--fg-soft); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item__q {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  letter-spacing: -0.01em;
  color: var(--fg);
}
.faq-item__icon {
  flex: none;
  width: 22px;
  height: 22px;
  position: relative;
  transition: transform 0.4s var(--ease);
}
.faq-item__icon::before, .faq-item__icon::after {
  content: "";
  position: absolute;
  background: var(--accent);
  left: 50%; top: 50%;
}
.faq-item__icon::before { width: 14px; height: 1.5px; transform: translate(-50%, -50%); }
.faq-item__icon::after { width: 1.5px; height: 14px; transform: translate(-50%, -50%); transition: transform 0.4s var(--ease); }
.faq-item[data-open="true"] .faq-item__icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease);
}
.faq-item__a-inner { padding: 0 0 30px; color: var(--fg-soft); max-width: 680px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 56px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 80px; } }
.contact-detail { padding: 22px 0; border-top: 1px solid var(--border); }
.contact-detail .eyebrow { display: block; margin-bottom: 8px; }
.contact-detail p { color: var(--fg-soft); }
.contact-detail a:hover { color: var(--accent); }

.form { display: grid; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea, .field select {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--fg);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  transition: border-color 0.3s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 120px; }
.field--row { display: grid; gap: 22px; }
@media (min-width: 640px) { .field--row { grid-template-columns: 1fr 1fr; } }
.form__consent { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }
.form__consent a { color: var(--accent); text-decoration: underline; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 880px;
  margin: 20px auto 0;
}
.cta-band h2 em { font-style: italic; color: var(--accent); }
.band-dark .cta-band h2 em { color: #cfe0ee; }
.cta-band__actions { margin-top: 40px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer {
  background: var(--fg);
  color: var(--bg);
  padding: clamp(64px, 8vw, 110px) 0 40px;
}
.footer__top {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; } }
.footer__brand .brand-mark { border-color: rgba(236,237,238,0.4); }
.footer__brand p { color: rgba(236,237,238,0.6); margin-top: 22px; max-width: 320px; font-size: 0.95rem; }
.footer__col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(236,237,238,0.5);
  margin-bottom: 18px;
}
.footer__col a, .footer__col p {
  display: block;
  color: rgba(236,237,238,0.82);
  padding: 6px 0;
  font-size: 0.95rem;
  transition: color 0.3s var(--ease);
}
.footer__col a:hover { color: #fff; }
.footer__bottom {
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 28px;
  border-top: 1px solid rgba(236,237,238,0.14);
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(236,237,238,0.5);
}
@media (min-width: 768px) { .footer__bottom { flex-direction: row; align-items: center; } }
.footer__bottom a:hover { color: #fff; }
.footer__bottom-links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg img { animation: none; }
  .hero__scroll::after { animation: none; }
}

/* ---------- Legal pages ---------- */
.legal { padding: clamp(130px, 18vh, 200px) 0 clamp(70px, 9vw, 120px); }
.legal__inner { max-width: 760px; margin: 0 auto; }
.legal h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: -0.02em;
  line-height: 1.02;
}
.legal__meta { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.08em; margin-top: 16px; }
.legal h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: -0.01em;
  margin: 48px 0 16px;
}
.legal h3 { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; margin: 28px 0 10px; }
.legal p, .legal li { color: var(--fg-soft); font-size: 1rem; line-height: 1.78; }
.legal p { margin-bottom: 16px; }
.legal ul { padding-left: 22px; margin-bottom: 16px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--accent); text-decoration: underline; }

/* ---------- Thank you ---------- */
.thanks {
  min-height: 86vh;
  display: flex;
  align-items: center;
  text-align: center;
}
.thanks__inner { max-width: 680px; margin: 0 auto; }
.thanks h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 7vw, 5rem);
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 22px 0;
}
.thanks h1 em { font-style: italic; color: var(--accent); }

/* ---------- Cookie popup ---------- */
.cookie-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 24px;
  background: rgba(20,24,30,0.4);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.cookie-popup[data-open="true"] { opacity: 1; pointer-events: all; }
.cookie-popup__card {
  background: var(--bg);
  padding: 32px 36px;
  max-width: 460px;
  border-radius: 4px;
  box-shadow: 0 24px 70px -20px rgba(20,24,30,0.5);
}
.cookie-popup__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.cookie-popup__card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin: 12px 0 12px;
}
.cookie-popup__card p { font-size: 0.9rem; color: var(--fg-soft); line-height: 1.65; }
.cookie-popup__card p a { color: var(--accent); text-decoration: underline; }
.cookie-popup__actions { display: flex; gap: 12px; margin-top: 22px; }
.cookie-popup__actions button {
  padding: 11px 24px;
  border: 1px solid var(--border);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.cookie-popup__actions button:first-child:hover { background: var(--bg-alt); }
.cookie-popup__actions button:last-child { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.cookie-popup__actions button:last-child:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

/* utility */
.center { text-align: center; }
.mt-s { margin-top: 18px; }
.mt-m { margin-top: 34px; }
.maxw-720 { max-width: 720px; margin-left: auto; margin-right: auto; }
