/* ==========================================================================
   Shared venture design system
   Dark editorial. One continuous surface.
   No shadows. No gradients. No dividers between sections.

   Layout variants — set one on <body>:
     .layout-rule    section heads centred; cards carry a top hairline
     .layout-split   section heads split two-up; cards carry a top hairline
     .layout-index   section heads left; cards carry a left rule and gutter number
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Cambon";
  src: url("../fonts/cambon-regular.woff2") format("woff2"),
       url("../fonts/cambon-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --bg: #0B1A14;

  --fg: #F8FAF9;
  --body: #A8B5AE;
  --muted: #7A8B82;

  --line: #1E2E26;
  --line-2: #344A3D;

  --accent: #22C55E;
  --accent-2: #16A34A;

  --wrap: 1280px;
  --nav-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --display: "Cambon", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

/* ScrollTrigger measures by setting scroll position; CSS smooth scrolling makes
   those reads land mid-animation and corrupts every trigger's start/end. GSAP
   drives its own smooth scrolling, so the CSS version is off when it is active. */
html.gsap-active { scroll-behavior: auto; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--fg);
  line-height: 1.1;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.03; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: 1.4rem; line-height: 1.22; }

h4 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.005em;
  color: var(--fg);
  margin: 0 0 .5em;
}

p { margin: 0 0 1.15em; }
ul { margin: 0 0 1.15em; padding-left: 1.15em; }
li { margin-bottom: .4em; }
strong { color: var(--fg); font-weight: 600; }

/* ---------- Links ---------- */
a {
  color: var(--fg);
  text-decoration: none;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
a:hover { color: var(--accent); }
a:active { color: var(--accent-2); }

p a { color: var(--fg); border-bottom: 1px solid var(--line-2); }
p a:hover { color: var(--accent); border-bottom-color: var(--accent); }
p a:active { color: var(--accent-2); border-bottom-color: var(--accent-2); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--bg); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 12px 20px;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  z-index: 100;
}
.skip:focus { left: 0; color: var(--bg); }

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

/* ---------- Layout ---------- */
.wrap { width: min(100% - 56px, var(--wrap)); margin-inline: auto; }

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }

.center { text-align: center; }
.narrow { max-width: 780px; }
.center.narrow { margin-inline: auto; }
.lead { font-size: 1.2rem; line-height: 1.62; color: var(--body); }

.grid { display: grid; gap: 0; }
.grid--2 { grid-template-columns: repeat(2, 1fr); gap: 72px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Section head — the variant hinge ----------
   Markup is identical in all three variants; only presentation changes. */
.section__head { margin-bottom: 46px; }
.section__head .deck { margin-bottom: 0; }
.section__head h2:last-child { margin-bottom: 0; }

.layout-rule .section__head {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}
.layout-rule .section__head .eyebrow { justify-content: center; }

.layout-split .section__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 72px;
  align-items: end;
}
.layout-split .section__head .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.layout-split .section__head h2 { margin: 0; }
.layout-split .section__head .deck { align-self: end; }

.layout-index .section__head { max-width: 720px; }

.deck { font-size: 1.06rem; color: var(--body); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 26px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--line-2);
  flex: none;
}
.center .eyebrow { justify-content: center; }

/* ---------- Buttons ----------
   rest → hover (accent) → active (pressed) → focus (ring) → disabled */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .12s var(--ease);
}
.btn--primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn--primary:active { background: var(--accent-2); border-color: var(--accent-2); color: var(--bg); }

.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn--ghost:hover { color: var(--accent); border-color: var(--accent); }
.btn--ghost:active { color: var(--accent-2); border-color: var(--accent-2); }

.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.center .btn-row { justify-content: center; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--bg); }

.nav {
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  color: var(--fg);
}
/* Centring belongs to the three-column header grid only — it used to leak
   into the footer and push the logo off the column's left edge. */
.nav .brand { justify-self: center; }
.brand:hover { color: var(--fg); }
.brand__logo {
  height: 28px;
  width: auto;
}

/* Menu button (left) */
.nav__menu {
  justify-self: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 42px;
  height: 42px;
  padding: 0 8px;
  border: none;
  background: transparent;
  cursor: pointer;
}
.nav__menu span {
  display: block;
  height: 1.5px;
  background: var(--fg);
  transition: transform .28s var(--ease), opacity .2s var(--ease);
}
.nav__menu span:first-child { width: 22px; }
.nav__menu span:last-child { width: 16px; }

/* Search button (right) */
.nav__search {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  transition: color .2s var(--ease);
}
.nav__search:hover { color: var(--accent); }

/* ---------- Drawer ---------- */
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(420px, 85vw);
  height: 100dvh;
  background: var(--bg);
  z-index: 100;
  transform: translateX(-100%);
  transition: transform .4s var(--ease);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.drawer[aria-hidden="false"] { transform: translateX(0); }

.drawer__head {
  display: flex;
  justify-content: flex-end;
  padding: 18px 28px;
}
.drawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s var(--ease);
}
.drawer__close:hover { color: var(--fg); }

.drawer__nav { flex: 1; padding: 24px 0 48px; }
.drawer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.drawer__links li {
  margin: 0;
}
.drawer__links a {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 36px;
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--fg);
  letter-spacing: -.01em;
  transition: color .25s var(--ease), background .25s var(--ease);
}
.drawer__links a:hover { color: var(--accent); background: rgba(34,197,94,.04); }
.drawer__links a.is-active { color: var(--accent); }

.drawer__num {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--line-2);
  min-width: 2.4ch;
}

.drawer__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s var(--ease);
}
.drawer__backdrop.is-visible { opacity: 1; visibility: visible; }

/* ---------- Hero ---------- */
.hero { padding: 128px 0 104px; }
.hero h1 { max-width: 17ch; }
.hero .lead { max-width: 58ch; margin-top: 30px; }
.hero--sub { padding: 104px 0 84px; }
.hero--sub h1 { max-width: 21ch; font-size: clamp(2.3rem, 4.6vw, 3.7rem); }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 76px;
  gap: 0 40px;
}
.hero__stats > div { padding: 34px 0 0; }

.stat__icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
  margin-bottom: 14px;
  opacity: .6;
}

.stat__num {
  font-family: var(--display);
  font-size: 2.7rem;
  line-height: 1;
  color: var(--fg);
  letter-spacing: -.02em;
  margin-bottom: 12px;
}
.stat__label {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  padding: 30px 48px 38px 0;
  background: transparent;
}
.card p:last-child { margin-bottom: 0; }

.card__icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
  margin-bottom: 16px;
  opacity: .7;
}

.card__num {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .2em;
  color: var(--muted);
  margin-bottom: 18px;
}

/* Variant C: number sits in the gutter */
.layout-index .card {
  padding: 6px 40px 34px 30px;
}
.layout-index .card__num {
  position: absolute;
  left: 30px;
  top: 6px;
  margin: 0;
  color: var(--accent);
}
.layout-index .card__num + * { margin-top: 34px; }

.card--panel { padding: 40px; background: rgba(30,46,38,.35); }
.layout-index .card--panel { padding: 40px; }

/* ---------- Tag / meta ---------- */
.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: auto;
  padding-top: 22px;
}
.tag {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.tag--lead { color: var(--accent); }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 34px; margin-bottom: 44px; }
.filter {
  position: relative;
  padding: 4px 0;
  border: 0;
  background: none;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color .25s var(--ease);
}
.filter::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}
.filter:hover { color: var(--accent); }
.filter.is-active { color: var(--fg); }
.filter.is-active::after { transform: scaleX(1); transform-origin: left; }

.is-hidden { display: none !important; }
.empty-note { color: var(--muted); }

/* ---------- Spec table ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table caption {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding-bottom: 18px;
}
.table th, .table td {
  text-align: left;
  padding: 16px 24px 16px 0;
  vertical-align: top;
}
.table thead th {
  border-bottom: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 14px;
}
.table tbody th {
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 600;
  color: var(--fg);
  width: 30%;
}
.table td:last-child { padding-right: 0; }
.status {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.status--fixed { color: var(--fg); }
.status--plan { color: var(--accent); }

/* ---------- Plain rule lists ---------- */
/* Entrance animations slide these list items in along x. `clip` keeps that
   offset from creating a page-level horizontal scrollbar on narrow screens,
   where the wrap gutter is smaller than the slide distance. */
.rule-list, .steps { overflow-x: clip; }

.rule-list { list-style: none; padding: 0; margin: 0; }
.rule-list li {
  padding: 10px 0;
  margin: 0;
  color: var(--body);
}
.rule-list li:last-child { padding-bottom: 0; }

.rule-list--split li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  justify-content: space-between;
}
.rule-list--split span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  flex: none;
}

.rule__icon {
  width: 14px;
  height: 14px;
  flex: none;
}

/* ---------- Numbered steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li {
  position: relative;
  padding: 26px 0 26px 62px;
  margin: 0;
}
.steps li::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  left: 0;
  top: 28px;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .16em;
  color: var(--accent);
}
.steps h4 { margin-bottom: .25em; }
.steps p { margin: 0; font-size: .96rem; }

/* ---------- Posts ---------- */
.post { display: flex; flex-direction: column; height: 100%; }
.post__date {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.post h3 { margin-bottom: .45em; }
.post p { font-size: .97rem; }
.post__src {
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.post--feature { padding-right: 60px; }
.layout-index .post--feature { }
.post--feature h3 { font-size: 2.1rem; max-width: 20ch; }
.post--feature .post__date { color: var(--accent); }

/* ---------- Quote ---------- */
.quote {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -.01em;
  color: var(--fg);
  margin: 0 0 34px;
}
.quote__by {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

/* ---------- Accordion ---------- */
.accordion__item + .accordion__item { margin-top: 4px; }
.accordion__btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  background: none;
  border: 0;
  font-family: var(--display);
  font-size: 1.22rem;
  color: var(--fg);
  text-align: left;
  cursor: pointer;
  transition: color .25s var(--ease);
}
.accordion__btn:hover { color: var(--accent); }
.accordion__btn::after {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform .3s var(--ease);
}
.accordion__btn[aria-expanded="true"]::after { transform: translateY(2px) rotate(225deg); }
.accordion__panel { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.accordion__panel > div { padding: 0 90px 28px 0; }
.accordion__panel p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 26px; }
.field { position: relative; display: grid; gap: 9px; }
.field label {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  border-radius: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--fg);
  transition: border-color .25s var(--ease);
}
.field select { appearance: none; cursor: pointer; padding-right: 26px; }
.field select option { color: #0B1A14; background: #ffffff; }
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: #6c6a64; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.field.has-error input, .field.has-error select, .field.has-error textarea {
  border-bottom-color: var(--accent);
}
.field--select::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 42px;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  transform: rotate(45deg);
  pointer-events: none;
}

.error {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .1em;
  color: var(--accent);
  min-height: 1em;
}
.form-note {
  padding: 20px 0 0;
  font-size: .95rem;
  color: var(--fg);
}
.form-fine {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

/* ---------- Contact details ---------- */
.contact-item { padding: 14px 0; }
.contact-item:first-of-type { padding-top: 0; }
.contact__icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
  margin-bottom: 6px;
  opacity: .6;
}
.contact-item:last-child { padding-bottom: 0; }
.contact-item h4 { margin-bottom: .2em; }
.contact-item p { margin: 0; font-size: .96rem; }

/* ---------- Closing statement ---------- */
.cta-band { padding: 56px 0; text-align: center; }
.cta-band h2 { max-width: 22ch; margin-inline: auto; }
.cta-band p { max-width: 56ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { padding: 0 0 34px; font-size: .92rem; }
.site-footer h4 {
  font-family: var(--mono);
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 22px;
}
.site-footer a { color: var(--body); }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 12px; }

.footer__grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.1fr;
  gap: 56px;
  padding-top: 76px;
  border-top: 1px solid var(--line);
}

/* Brand column */
.footer__brand .brand {
  align-self: start;
  margin-bottom: 24px;
}
.footer__brand p {
  max-width: 34ch;
  margin: 0 0 26px;
  color: var(--muted);
}
.footer__meta {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer__meta li { margin-bottom: 9px; }

/* Social row */
.footer__social {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.footer__social li { margin: 0; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-2);
  color: var(--body);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.footer__social a:hover { color: var(--accent); border-color: var(--accent); }
.footer__social svg { width: 17px; height: 17px; }

/* Notes sign-up band */
.footer__sub {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 34px 56px;
  align-items: end;
  margin-top: 56px;
  padding-top: 46px;
  border-top: 1px solid var(--line);
}
.footer__sub p { margin: 0; max-width: 48ch; color: var(--muted); }

.footer__signup { display: grid; gap: 12px; }
.footer__field {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line-2);
  transition: border-color .3s var(--ease);
}
.footer__field:focus-within { border-color: var(--accent); }
.footer__field input {
  flex: 1;
  min-width: 0;
  padding: 13px 0;
  border: 0;
  background: transparent;
  color: var(--fg);
  font-family: var(--sans);
  font-size: .95rem;
}
.footer__field input::placeholder { color: var(--muted); }
.footer__field input:focus { outline: none; }
.footer__field button {
  flex: none;
  padding: 0 0 0 20px;
  border: 0;
  background: transparent;
  color: var(--fg);
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .3s var(--ease);
}
.footer__field button:hover { color: var(--accent); }
.footer__signup .form-fine { margin: 0; }

/* Legal block */
.footer__legal {
  margin-top: 58px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.footer__legal p {
  margin: 0;
  max-width: 96ch;
  font-size: .8rem;
  color: var(--muted);
}

.footer__bottom {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer__bottom p { margin: 0; max-width: 62ch; }
.footer__legal-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer__legal-links li { margin: 0; }

/* Oversized wordmark, set just above the page background */
.footer__wordmark {
  margin-top: 52px;
  font-family: var(--display);
  font-size: clamp(3.2rem, 11vw, 9.5rem);
  line-height: .82;
  letter-spacing: -.02em;
  color: var(--line);
  user-select: none;
  pointer-events: none;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- GSAP text split ---------- */
.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: .08em;
}
.split-inner {
  display: inline-block;
  will-change: transform;
}

html.gsap-active .reveal {
  transition: none !important;
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 44px;
  height: 44px;
  border: none;
  background: var(--line);
  color: var(--fg);
  font-size: .9rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease),
              background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  z-index: 50;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--accent); color: var(--bg); }
.to-top:active { background: var(--accent-2); }
.to-top__icon { width: 18px; height: 18px; }

/* ---------- Imagery ---------- */
.hero--img { position: relative; overflow: hidden; }
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.3) sepia(0.25) hue-rotate(90deg) contrast(1.15);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,26,20,0.55) 0%, var(--bg) 100%);
}
.hero--img .wrap { position: relative; z-index: 1; }

.img-editorial {
  position: relative;
  overflow: hidden;
}
.img-editorial img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.85) brightness(0.5) sepia(0.2) hue-rotate(90deg) contrast(1.1);
  transition: filter .6s var(--ease), transform .6s var(--ease);
}
.img-editorial:hover img {
  filter: grayscale(0.5) brightness(0.6) sepia(0.15) hue-rotate(90deg) contrast(1.05);
  transform: scale(1.03);
}
.img-editorial::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11,26,20,0.5) 100%);
  pointer-events: none;
}

.img-editorial--tall { aspect-ratio: 3 / 4; }
.img-editorial--wide { aspect-ratio: 16 / 9; }
.img-editorial--square { aspect-ratio: 1; }
.img-editorial--landscape { aspect-ratio: 4 / 3; }

.section__img {
  margin-top: 56px;
}

.post__thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin-bottom: 22px;
}
.post__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.8) brightness(0.45) sepia(0.2) hue-rotate(90deg) contrast(1.1);
  transition: filter .5s var(--ease), transform .5s var(--ease);
}
.post:hover .post__thumb img {
  filter: grayscale(0.4) brightness(0.6) sepia(0.12) hue-rotate(90deg) contrast(1.05);
  transform: scale(1.04);
}

/* ==========================================================================
   Editorial media system
   Imagery is content, never a section background. Every block below puts a
   real <img> in the document flow so GSAP can parallax each one on its own
   axis and speed without fighting a background-attachment hack.
   ========================================================================== */

.media-figure { margin: 0; }

.media-cap {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.media-cap::before {
  content: "";
  flex: none;
  width: 24px;
  height: 1px;
  background: var(--line-2);
  transform: translateY(-4px);
}
.media-cap strong {
  font-weight: 400;
  color: var(--body);
}

/* Index number pinned inside an image frame */
.media-num {
  position: absolute;
  z-index: 2;
  left: 16px;
  bottom: 12px;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .12em;
  color: var(--fg);
}

/* Grid children default to a min-content floor, which lets a long caption blow
   the track out past the wrap. Zeroing it keeps every media grid inside. */
.media-duo > *,
.media-trio > *,
.media-band > *,
.media-aside > *,
.hero__media > * { min-width: 0; }

/* Two images, second dropped down so the parallax offset reads clearly */
.media-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: start;
}
.media-duo > :nth-child(2) { margin-top: 76px; }
.media-duo--flip > :nth-child(1) { margin-top: 76px; }
.media-duo--flip > :nth-child(2) { margin-top: 0; }

/* Asymmetric three-up mosaic on a 12-column field */
.media-trio {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
  align-items: start;
}
.media-trio > :nth-child(1) { grid-column: 1 / span 5; }
.media-trio > :nth-child(2) { grid-column: 6 / span 4; margin-top: 68px; }
.media-trio > :nth-child(3) { grid-column: 10 / span 3; margin-top: 22px; }

/* Four-up flush band — no gaps, reads as one strip of frames */
.media-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

/* Horizontally scrubbed gallery. Track width is set by content. */
.media-strip {
  position: relative;
  overflow: hidden;
  padding: 4px 0;
}
.media-strip__track {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
}
.media-strip__item {
  flex: none;
  width: 320px;
}
.media-strip__item .media-cap { margin-top: 12px; }

/* Text column that holds while its image column scrolls past */
.media-sticky {
  position: sticky;
  top: calc(var(--nav-h) + 40px);
}

/* Portrait pulled alongside body copy */
.media-aside {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
  margin-top: 34px;
}
.media-aside > :nth-child(2) { margin-top: 48px; }

/* Thumbnail inside a card */
.card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin: 0 0 22px;
}
.card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.85) brightness(0.45) sepia(0.2) hue-rotate(90deg) contrast(1.1);
  transition: filter .5s var(--ease), transform .5s var(--ease);
}
.card:hover .card__media img {
  filter: grayscale(0.4) brightness(0.6) sepia(0.12) hue-rotate(90deg) contrast(1.05);
}
.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(11,26,20,0.55) 100%);
  pointer-events: none;
}

/* Hero image row — sits under the hero copy, not behind it */
.hero__media {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 62px;
}
.hero__media > :nth-child(2) { margin-top: 40px; }
.hero__media > :nth-child(3) { margin-top: 14px; }

/* Scroll progress rule */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* GSAP owns the transform on parallaxed images, so the CSS hover-zoom is
   suppressed to stop the two writing to the same property. */
html.gsap-active .img-editorial:hover img,
html.gsap-active .post:hover .post__thumb img,
html.gsap-active .card:hover .card__media img { transform: none; }

.parallax-media { will-change: transform; }

/* ---------- Utilities ---------- */
.mt-lg { margin-top: 64px; }
.mt-md { margin-top: 46px; }
.mt-sm { margin-top: 26px; }
.span-2 { grid-column: span 2; }
.items-center { align-items: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-progress { display: none; }
  .media-duo > :nth-child(2),
  .media-duo--flip > :nth-child(1),
  .media-trio > :nth-child(2),
  .media-trio > :nth-child(3),
  .media-aside > :nth-child(2),
  .hero__media > :nth-child(2),
  .hero__media > :nth-child(3) { margin-top: 0; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--2 { gap: 52px; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__sub { grid-template-columns: 1fr; gap: 26px; align-items: start; }
  .post--feature { padding-right: 34px; }
  .post--feature h3 { font-size: 1.7rem; }
  .card--panel { padding: 28px; }

  .media-trio > :nth-child(1) { grid-column: 1 / span 6; }
  .media-trio > :nth-child(2) { grid-column: 7 / span 6; margin-top: 52px; }
  .media-trio > :nth-child(3) { grid-column: 1 / span 12; margin-top: 22px; }
  .media-strip__item { width: 270px; }
  .media-band { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .section__img { margin-top: 40px; }
  .img-editorial--tall { aspect-ratio: 16 / 9; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; gap: 0; }
  .grid--2 { gap: 56px; }
  .span-2 { grid-column: span 1; }

  .media-duo { gap: 20px; }
  .media-duo > :nth-child(2),
  .media-duo--flip > :nth-child(1) { margin-top: 28px; }
  .media-trio { grid-template-columns: 1fr; gap: 20px; }
  .media-trio > :nth-child(1),
  .media-trio > :nth-child(2),
  .media-trio > :nth-child(3) { grid-column: 1 / -1; margin-top: 0; }
  .media-aside { grid-template-columns: 1fr; gap: 20px; }
  .media-aside > :nth-child(2) { margin-top: 0; }
  .hero__media { grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 46px; }
  .hero__media > :nth-child(2) { margin-top: 24px; }
  .hero__media > :nth-child(3) { display: none; }
  .media-sticky { position: static; }
  .media-strip__item { width: 230px; }

  .layout-split .section__head { grid-template-columns: 1fr; gap: 16px; }

  .section { padding: 68px 0; }
  .section--tight { padding: 48px 0; }
  .hero { padding: 92px 0 78px; }
  .hero--sub { padding: 76px 0 66px; }

  .hero__stats { grid-template-columns: repeat(2, 1fr); margin-top: 62px; gap: 0 30px; }
  .hero__stats > div { padding: 26px 0; }

  .card { padding-right: 0; }
  .layout-index .card { padding-right: 0; }
  .post--feature { padding-right: 0; }
  .post--feature h3 { font-size: 1.6rem; }
  .cta-band { padding: 40px 0; }
  .accordion__panel > div { padding-right: 0; }
  .wrap { width: min(100% - 40px, var(--wrap)); }
  .mt-lg { margin-top: 48px; }
  .mt-md { margin-top: 34px; }
  .table th, .table td { padding-right: 18px; }
  .table tbody th { width: auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; padding-top: 56px; }
  .footer__legal-links { gap: 10px 20px; }
}

@media (max-width: 540px) {
  body { font-size: 16px; }
  .footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer__wordmark { margin-top: 40px; }
  .hero__stats { grid-template-columns: 1fr; gap: 0; }
  .hero__stats > div { padding: 20px 0; }
  .card--panel { padding: 28px 22px; }
  .steps li { padding-left: 0; }
  .steps li::before { position: static; display: block; margin-bottom: 8px; }
  .media-band { grid-template-columns: 1fr 1fr; }
  .media-strip__item { width: 200px; }
}
