/* ---- Aktiv Grotesk (self-hosted, licensed webfont) ---- */
@font-face { font-family:"aktiv-grotesk"; src:url("/assets/fonts/aktiv-grotesk-regular.woff2") format("woff2"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"aktiv-grotesk"; src:url("/assets/fonts/aktiv-grotesk-medium.woff2") format("woff2"); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:"aktiv-grotesk"; src:url("/assets/fonts/aktiv-grotesk-bold.woff2") format("woff2"); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:"aktiv-grotesk"; src:url("/assets/fonts/aktiv-grotesk-italic.woff2") format("woff2"); font-weight:400; font-style:italic; font-display:swap; }
@font-face { font-family:"aktiv-grotesk"; src:url("/assets/fonts/aktiv-grotesk-bold-italic.woff2") format("woff2"); font-weight:700; font-style:italic; font-display:swap; }

:root {
  --bg: #eae6e1;        /* warm beige */
  --ink: #583b1f;       /* dark brown */
  --tint: #e1dbd1;      /* slightly deeper beige for alternating sections */
  --accent: #583b1f;    /* brown (monochrome, matches the original) */
  --accent-dark: #402711;
  --white: #fff;
  --muted: #8a7a67;
  --container: 1180px;
  --font: "aktiv-grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-size: 1.1rem;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.container.narrow { max-width: 780px; }
.center { text-align: center; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--white); padding: .75rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---- Header ---- */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.1rem, 2.5vw, 1.6rem) clamp(1.25rem, 4vw, 2.5rem);
  background: var(--bg);
  position: relative;
  z-index: 20;
}
.site-header.over-hero {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: transparent;
}
.site-header.over-hero .wordmark,
.site-header.over-hero .site-nav a,
.site-header.over-hero .lang-label { text-shadow: 0 1px 14px rgba(255,255,255,.45); }
.site-nav { display: flex; gap: 1.5rem; font-weight: 500; font-size: 1.02rem; }
.site-nav a { text-decoration: none; opacity: .95; }
.site-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.wordmark { grid-column: 2; font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.65rem); text-decoration: none; letter-spacing: -0.01em; text-align: center; line-height: 1.1; }
.header-end { grid-column: 3; justify-self: end; }
.lang-label { font-weight: 500; font-size: 1rem; white-space: nowrap; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--white);
  font-weight: 500; font-size: 1rem; letter-spacing: .01em;
  padding: .85rem 2rem; border-radius: 100px; text-decoration: none;
  border: 2px solid var(--accent); cursor: pointer; transition: background .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }

/* ---- Sections ---- */
.section { padding: clamp(2.75rem, 6vw, 4.5rem) 0; }
.section-tint { background: var(--tint); }
.section-heading { font-weight: 700; font-size: clamp(1.8rem, 3.6vw, 2.3rem); line-height: 1.2; margin: 0 0 1rem; }
.lead { font-size: 1.14rem; margin: 0 0 1.4rem; }
.lead:last-child { margin-bottom: 0; }
.lead a, .faq-a a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.lead-statement { font-weight: 700; font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.25; margin: 0 0 1.6rem; }

/* ---- Hero ---- */
.hero { position: relative; height: 88vh; overflow: hidden; }
.hero-media { position: absolute; inset: 0; background: #2c2620; }
.hero-media img, .hero-video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (prefers-reduced-motion: reduce) {
  /* Don't autoplay motion; the poster frame still shows via the video element. */
  .hero-video { display: block; }
}
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(30,20,10,.08) 0%, rgba(30,20,10,0) 30%, rgba(30,20,10,.05) 55%, rgba(20,12,4,.55) 100%); }
.hero-inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(2.5rem, 6vw, 4.5rem); padding-top: 6rem; color: var(--bg); }
.hero-kicker { font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 500; margin: 0 0 .6rem; text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.hero-rotator { position: relative; min-height: 2.4em; }
.hero-tagline {
  position: absolute; left: 0; top: 0; right: 0;
  font-weight: 700; font-size: clamp(1.9rem, 5vw, 3.4rem); line-height: 1.12;
  opacity: 0; transform: translateY(8px); transition: opacity .6s ease, transform .6s ease;
  text-shadow: 0 2px 18px rgba(0,0,0,.5);
}
.hero-tagline.is-active { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .hero-tagline { position: relative; opacity: 1; transform: none; transition: none; margin-bottom: .3rem; }
  .hero-rotator { min-height: 0; }
}

/* ---- Vision band (dark-brown section: rendering + statement rows) ---- */
.vision-band { background: #322518; color: var(--bg); padding: clamp(3rem, 7vw, 5.5rem) 0; }
.vision-kicker { font-weight: 700; font-size: clamp(1.5rem, 3.4vw, 2.4rem); line-height: 1.18; margin: 0 0 clamp(2rem, 5vw, 3.5rem); max-width: 20ch; }
.vision-rows { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
.vision-row { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.vision-figure { margin: 0; }
.vision-figure img { width: 100%; border-radius: 4px; }
.vision-tagline { font-weight: 700; font-size: clamp(1.9rem, 4.1vw, 2.95rem); line-height: 1.14; margin: 0; }
/* Rightward stagger — each row nudges further right, like the original. */
.vision-row:nth-child(2) { margin-left: 6%; }
.vision-row:nth-child(3) { margin-left: 12%; }

/* ---- Content section (full-width map, text below-right) ---- */
.content-heading { font-weight: 700; font-size: clamp(1.6rem, 3.5vw, 2.4rem); line-height: 1.2; margin: 0 0 clamp(2rem, 5vw, 3.2rem); max-width: 26ch; }
.content-row { margin-bottom: clamp(3rem, 8vw, 6rem); }
.content-row:last-child { margin-bottom: 0; }
.content-row .figure img { width: 100%; }
.content-text { max-width: 50%; margin: clamp(1.5rem, 3.5vw, 2.5rem) 0 0 auto; }
.content-text .lead:last-child { margin-bottom: 0; }
.content-text .cta-row { margin: 1.8rem 0 0; text-align: center; }

@media (max-width: 720px) {
  .vision-row { grid-template-columns: 1fr; gap: 1.1rem; }
  .vision-row:nth-child(2), .vision-row:nth-child(3) { margin-left: 0; }
  .content-text { max-width: 100%; margin-top: 1.25rem; }
  .faq-layout { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ---- Figures ---- */
.figure { margin: 0; }
.figure img { width: 100%; border-radius: 6px; }
.figure figcaption { font-size: .98rem; color: #6f5a41; margin-top: .8rem; max-width: 70ch; }
.figure figcaption .courtesy { color: var(--muted); font-style: italic; }
.figure-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 3vw, 2.25rem); }
.faq-figure { margin-top: 1.4rem; }
.cta-row { margin-top: 2rem; }

/* ---- Sign up ---- */
.section-signup { background: var(--tint); }
.signup-wrap { margin: 1.6rem auto 0; max-width: 640px; }
.signup-status { margin: 1rem 0 0; font-weight: 500; min-height: 1.3em; text-align: center; }
.signup-status.is-success { color: var(--accent-dark); }
.signup-status.is-error { color: #b3402a; }
.signup-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.mc-field-group { margin-bottom: 1rem; }
.mc-field-group input {
  width: 100%; font: inherit; font-size: 1rem; padding: .9rem 1rem; border: 1.5px solid #c9bfb0;
  border-radius: 4px; background: var(--white); color: var(--ink); text-align: center;
}
.mc-field-group input::placeholder { color: #8a7a67; }
.mc-field-group input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.mc-hidden { position: absolute; left: -5000px; }
.mc-submit { margin-top: 1.3rem; text-align: center; }
.mc-submit .btn { min-width: 150px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- Sub-page heads ---- */
.page-head { padding-bottom: clamp(1rem, 3vw, 2rem); }
.page-title { font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.1rem); line-height: 1.1; margin: 0 0 1.25rem; }

/* ---- FAQ ---- */
.faq-top { margin-top: clamp(.5rem, 2vw, 1.5rem); }
.faq-hero { margin: 0; }
.faq-hero img { width: 100%; border-radius: 4px; display: block; }
.faq-layout { display: grid; grid-template-columns: 36% 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.faq-aside .page-title { margin-bottom: 1.5rem; }
.faq-list { display: grid; gap: 2.6rem; }
.faq-q { font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.25; margin: 0 0 .9rem; }
.faq-a { margin: 0; font-size: 1.13rem; line-height: 1.8; }
.faq-a p { margin: 0; }

/* ---- Press (multi-column grid, linked title + outlet) ---- */
.press-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.75rem, 3vw, 3rem) clamp(1.5rem, 2.5vw, 2.5rem); }
.press-item { display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; }
.press-title { font-weight: 700; font-size: 1.3rem; line-height: 1.25; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.press-outlet { font-weight: 500; font-size: 1.05rem; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.press-title:hover, .press-outlet:hover { color: var(--accent-dark); }
.press-date { color: var(--muted); font-size: 1rem; }
@media (max-width: 900px) { .press-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .press-list { grid-template-columns: 1fr; } }

/* ---- Footer ---- */
.site-footer { background: var(--tint); padding: clamp(2.5rem, 6vw, 3.5rem) 0; text-align: center; }
.site-footer a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.footer-partners { margin: 0 0 .5rem; font-weight: 500; }
.site-footer .copyright { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---- Responsive ---- */
@media (max-width: 720px) {
  .figure-grid { grid-template-columns: 1fr; }
  .signup-form .field-row { grid-template-columns: 1fr; gap: 0; }
  .site-header { grid-template-columns: auto 1fr; gap: 1rem; }
  .site-nav { grid-column: 1; }
  .wordmark { grid-column: 2; justify-self: end; grid-row: 1; }
  .header-end { display: none; }
  .hero { min-height: 80vh; }
}
