/* ==========================================================================
   GEM landing page
   Built on the brand design system — load brand/tokens.css BEFORE this file.
   This :root only aliases the shared --gem-* tokens into the short local names
   the page uses; it does not redefine brand values. Edit colors/type/spacing in
   brand/tokens.css so every GEM project stays in sync.
   ========================================================================== */

:root {
  /* Brand cores → brand tokens */
  --green:      var(--gem-ozark);
  --teal:       var(--gem-river);
  --amber:      var(--gem-gold);
  --rust:       var(--gem-leather);

  /* Tint ramps → the brand guide's official 4-step ramps */
  --green-80:   var(--gem-ozark-1);
  --green-60:   var(--gem-ozark-2);
  --green-35:   var(--gem-ozark-3);
  --green-15:   var(--gem-ozark-4);
  --teal-80:    var(--gem-river-1);
  --teal-60:    var(--gem-river-2);
  --teal-35:    var(--gem-river-3);
  --teal-15:    var(--gem-river-4);
  --amber-80:   var(--gem-gold-1);
  --amber-60:   var(--gem-gold-2);
  --amber-35:   var(--gem-gold-3);
  --amber-15:   var(--gem-gold-4);
  --rust-60:    var(--gem-leather-2);
  --rust-15:    var(--gem-leather-4);

  /* Deeper greens for layering on dark grounds. The brand guide defines no
     shade darker than Ozark base, so these are page-local extensions. */
  --green-deep: #0B2320;
  --green-card: #1B403A;
  /* Teal for text and links on light grounds (6.79:1 on white; raw teal is
     4.60:1). Also page-local, per the README. */
  --teal-deep:  #00675C;

  /* Semantic → brand semantic tokens */
  --surface:     var(--gem-surface);
  --surface-alt: var(--gem-surface-alt);
  --ink:         var(--gem-ink);
  --ink-muted:   var(--gem-ink-muted);
  --border:      var(--gem-border);

  /* Type → brand font stacks (Manifold CF display / Montserrat body) */
  --font-display: var(--gem-font-display);
  --font-body:    var(--gem-font-body);

  --step-eyebrow: var(--gem-text-eyebrow);
  --step-sm:      var(--gem-text-sm);
  --step-base:    var(--gem-text-body);
  --step-lg:      clamp(1.125rem, 0.4vw + 1.05rem, 1.3125rem);
  --step-h3:      clamp(1.2rem, 0.5vw + 1.08rem, 1.45rem);
  --step-h2:      var(--gem-text-h2);
  --step-h1:      var(--gem-text-h1);

  /* Space → brand tokens */
  --gutter:    var(--gem-gutter);
  --section-y: var(--gem-section-y);
  --container: var(--gem-container);

  --header-h:  76px;

  --radius:    var(--gem-radius);
  --radius-lg: var(--gem-radius-lg);

  --shadow-sm: var(--gem-shadow-sm);
  --shadow-md: var(--gem-shadow-md);

  --ease: var(--gem-ease);
}

/* --- Reset / base ------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: var(--step-h1); letter-spacing: -0.025em; }
h2 { font-size: var(--step-h2); letter-spacing: -0.02em; }
h3 { font-size: var(--step-h3); letter-spacing: -0.015em; line-height: 1.2; }
p  { margin: 0; text-wrap: pretty; }

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

.skip-link {
  position: absolute; left: 50%; top: 0;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--amber); color: var(--green);
  padding: .7rem 1.2rem; border-radius: 0 0 10px 10px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { transform: translate(-50%, 0); }

[id] { scroll-margin-top: 96px; }

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

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

.section { padding-block: var(--section-y); }

.eyebrow {
  font-size: var(--step-eyebrow);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 1.15rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before {
  content: "";
  width: 9px; height: 9px;
  background: var(--amber);
  clip-path: polygon(50% 0, 100% 38%, 50% 100%, 0 38%);
  flex: none;
}
.eyebrow--onDark { color: var(--teal-60); }

.lede {
  font-size: var(--step-lg);
  color: var(--ink-muted);
  max-width: 56ch;
  margin-top: 1.35rem;
}

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

.btn {
  --btn-bg: var(--amber);
  --btn-fg: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .95rem 1.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: var(--step-sm);
  font-weight: 700;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .22s var(--ease), background-color .22s var(--ease),
              box-shadow .22s var(--ease);
}
.btn:hover { background: var(--amber-80); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--sm { padding: .68rem 1.25rem; font-size: .9rem; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, .3);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .55);
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover { transform: none; }
}

/* --- Header ------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.header::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(11, 35, 32, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity .3s var(--ease);
  z-index: -1;
}
/* Stuck state: fade the background/blur in. The header height stays constant —
   the on-scroll resize was removed because changing the header height reflowed
   the page and made it shake. Re-add min-height here (with the hysteresis guard
   in main.js) if we revisit the condense effect later. */
.header.is-stuck::after { opacity: 1; }

.header__inner {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  flex: none;
}
.brand__mark { width: 30px; height: auto; }
.brand__word { height: 21px; width: auto; filter: brightness(0) invert(1); }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__link {
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
  font-size: var(--step-sm);
  font-weight: 400;
  position: relative;
  transition: color .2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav__link:hover { color: #fff; }
.nav__link:hover::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 10px;
  cursor: pointer;
}
.nav__toggle span {
  display: block; width: 18px; height: 2px;
  background: #fff; position: relative;
  transition: background-color .2s var(--ease);
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 18px; height: 2px; background: #fff;
  transition: transform .25s var(--ease);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after  { top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav__toggle { display: flex; }
  .nav {
    position: absolute;
    top: calc(100% + .4rem);
    left: var(--gutter);
    right: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
    padding: .75rem;
    background: var(--green-card);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius);
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .6);
  }
  .nav[hidden] { display: none; }
  .nav__link { padding: .75rem .8rem; border-radius: 9px; }
  .nav__link::after { display: none; }
  .nav__link:hover { background: rgba(255, 255, 255, .07); }
  .nav .btn { margin-top: .4rem; }
}

/* --- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + clamp(4.5rem, 10vw, 8rem));
  padding-bottom: clamp(4.5rem, 9vw, 8rem);
  /* Tall enough that the G in the photo isn't clipped; content stays centered. */
  min-height: min(100svh, 820px);
  display: grid;
  align-content: center;
  background: var(--green);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
/* Calf-in-G brand photo behind the copy. The layer is wider than the hero so
   the G lands on the right, away from the headline, and the Ozark-green scrim
   is heaviest where the text sits.

   The calf fades between breeds while the G holds still. Every layer shares
   one canvas (built by tools/build-hero-fade.py) and the same position and
   size, so they stay registered at every width:
     .hero__photo          Angus photo, the base
     .hero__breed          Red Angus, Hereford and Charolais, their G aligned
                           to the Angus G; they fade in turn over the base
     .hero__photo::after   static white G, under the scrim gradients
   The static G has holes where a calf stands in front of it, so the calf
   still crosses the crossbar. */
.hero__photo {
  --hero-pos: center 42%;
  --hero-size: cover;
  position: absolute;
  inset: 0 auto 0 0;
  width: 150%;
  z-index: -1;
  background: url("assets/hero-angus.webp") var(--hero-pos) / var(--hero-size) no-repeat;
  pointer-events: none;
}
.hero__breed {
  position: absolute; inset: 0;
  background-position: var(--hero-pos);
  background-size: var(--hero-size);
  background-repeat: no-repeat;
  opacity: 0;
  /* The -1s delay starts the loop partway into the first Angus hold, so the
     first change begins 2s after load, before most people scroll. */
  animation: 16.8s ease-in-out -1s infinite;
}
.hero__breed--red-angus { background-image: url("assets/hero-red-angus.webp"); animation-name: hero-red-angus; }
.hero__breed--hereford  { background-image: url("assets/hero-hereford.webp");  animation-name: hero-hereford; }
.hero__breed--charolais { background-image: url("assets/hero-charolais.webp"); animation-name: hero-charolais; }
/* Angus -> Red Angus -> Hereford -> Charolais -> Angus, 4.2s per breed (25%
   of the loop): a 3s hold, then a 1.2s fade (7.14%) to the next. Each breed
   fades in over a fully shown predecessor, which drops out only once it's
   covered, so every change is a true crossfade; the last fades out to reveal
   the Angus base. */
@keyframes hero-red-angus {
  0%, 17.86%    { opacity: 0; }
  25%, 52%      { opacity: 1; }
  52.01%, 100%  { opacity: 0; }
}
@keyframes hero-hereford {
  0%, 42.86%    { opacity: 0; }
  50%, 77%      { opacity: 1; }
  77.01%, 100%  { opacity: 0; }
}
@keyframes hero-charolais {
  0%, 67.86%    { opacity: 0; }
  75%, 92.86%   { opacity: 1; }
  100%          { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__breed { animation: none; }
}
.hero__photo::after {
  content: "";
  position: absolute; inset: 0;
  background:
    /* Topmost: fade the bottom into the logo band's green so the hero has no
       hard bottom edge. It sits above the side scrim, whose darker left end
       would otherwise leave a tone step against the band. */
    linear-gradient(180deg, transparent 72%, var(--green) 100%),
    linear-gradient(90deg, rgba(11, 35, 32, .95) 0%, rgba(17, 49, 43, .88) 28%, rgba(17, 49, 43, .55) 44%, rgba(17, 49, 43, .5) 66%),
    linear-gradient(180deg, rgba(11, 35, 32, .7) 0%, transparent 32%),
    url("assets/hero-g.webp") var(--hero-pos) / var(--hero-size) no-repeat;
}

.hero__inner { display: grid; }
.hero__copy { max-width: 40rem; }

.hero h1 { margin-bottom: 1.5rem; }
.hero h1 em {
  font-style: italic;
  color: var(--amber);
}
.hero__lede {
  font-size: var(--step-lg);
  color: rgba(255, 255, 255, .76);
  max-width: 36ch;
}

.hero__note {
  margin-top: 1rem;
  font-size: .875rem;
  color: rgba(255, 255, 255, .58);
}

/* --- Waitlist form ------------------------------------------------------ */

.waitlist { margin-top: 2.25rem; max-width: 480px; }

.waitlist__row {
  display: flex;
  gap: .5rem;
  padding: .4rem;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 100px;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.waitlist__row:focus-within {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .4);
}
.waitlist input {
  flex: 1;
  min-width: 0;
  padding: .9rem 1.25rem;
  background: transparent;
  border: 0;
  color: #fff;
  font-family: inherit;
  font-size: var(--step-sm);
}
.waitlist input::placeholder { color: rgba(255, 255, 255, .5); }
.waitlist input:focus { outline: none; }

.waitlist__msg {
  margin-top: .85rem;
  font-size: .875rem;
  min-height: 1.3em;
}
.waitlist__msg[data-state="error"]   { color: var(--amber-60); }
.waitlist__msg[data-state="success"] { color: var(--teal-35); }

.waitlist--light .waitlist__row {
  background: #fff;
  border-color: var(--border);
}
.waitlist--light input { color: var(--ink); }
.waitlist--light input::placeholder { color: var(--green-60); }

/* --- Pillars ------------------------------------------------------------ */

.pillars { background: var(--surface-alt); }

.pillars__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 3.25rem;
}

.card {
  padding: 2.1rem 1.9rem 2.3rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              border-color .3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-35);
}
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }

.card__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--teal-15);
  color: var(--teal);
  margin-bottom: 1.4rem;
}
.card__icon svg { width: 23px; height: 23px; }
.card h3 { margin-bottom: .7rem; }
.card p { color: var(--ink-muted); font-size: var(--step-sm); }

/* --- Feature bands ------------------------------------------------------ */

.feature__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
.feature__detail > .ticks {
  margin: 0;
  padding: 1.75rem 1.9rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.feature__detail .stats { margin: 0 0 1.1rem; }
.feature__detail .stat__num { font-size: clamp(1.6rem, 2.2vw, 2rem); line-height: 1.1; }

.feature p { color: var(--ink-muted); }
.feature .lede { margin-top: 1.25rem; }

.ticks {
  list-style: none;
  margin: 1.9rem 0 0;
  padding: 0;
  display: grid;
  gap: .8rem;
}
.ticks li {
  position: relative;
  padding-left: 1.85rem;
  font-size: var(--step-sm);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: .52em;
  width: 11px; height: 11px;
  background: var(--amber);
  clip-path: polygon(50% 0, 100% 38%, 50% 100%, 0 38%);
}

.feature--alt { background: var(--surface-alt); }

/* --- Mission band ------------------------------------------------------- */

/* Same line and treatment as the holding page on main: the first clause
   upright, the second in gold italic. On Ozark green rather than the brand
   teal, because gold on teal is 2.32:1 and on Ozark 7.05:1. */
.mission {
  background: var(--green);
  color: #fff;
  text-align: center;
  padding-block: clamp(3.75rem, 7vw, 6rem);
}
.mission p {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.1vw, 2.85rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  max-width: 22ch;
  margin-inline: auto;
  text-wrap: balance;
}
.mission p em { font-style: italic; color: var(--amber); }
.mission__mark {
  width: 44px;
  margin: 0 auto 1.6rem;
  filter: brightness(0) invert(1);
  opacity: .9;
}

/* --- Closing CTA -------------------------------------------------------- */

.cta {
  position: relative;
  background: var(--green);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.cta__facets {
  position: absolute; inset: 0; z-index: -1;
  background-image: url("assets/diamond.svg");
  background-size: 132px;
  opacity: .038;
}
.cta__glow {
  position: absolute; z-index: -2;
  width: 900px; height: 560px;
  left: 50%; bottom: -300px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(0, 132, 118, .5), transparent 70%);
  pointer-events: none;
}
.cta h2 { max-width: 16ch; margin-inline: auto; }
.cta .lede { color: rgba(255, 255, 255, .74); margin-inline: auto; }
.cta .waitlist { margin-inline: auto; }

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

.footer {
  background: var(--green-deep);
  color: rgba(255, 255, 255, .62);
  padding-block: 3.5rem 2.25rem;
  font-size: var(--step-sm);
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: space-between;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer__brand { max-width: 30ch; }
.footer__word {
  height: 26px; width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}
.footer__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem 4.5rem;
}
.footer__cols > div { min-width: 140px; }
.footer h4 {
  margin: 0 0 .9rem;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer a { text-decoration: none; transition: color .2s var(--ease); }
.footer a:hover { color: var(--amber); }
/* The reset makes svg display:block, which pushes the flag onto its own line. */
.flag {
  display: inline-block;
  height: 1.05em; width: 1.575em;
  vertical-align: -0.22em;
  margin-left: .45em;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .15);
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 2rem;
  justify-content: space-between;
  padding-top: 1.75rem;
  font-size: .82rem;
  color: rgba(255, 255, 255, .45);
}

/* --- Blog (blog/) --------------------------------------------------------- */

/* The site header is transparent until scrolled, so blog pages open on a
   green band (pulled up under the header, like the home hero). */
.page-head {
  position: relative;
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + clamp(3rem, 7vw, 5rem)) 0 clamp(2.75rem, 6vw, 4.25rem);
  background: var(--green);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.page-head::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: url("/brand/patterns/pattern-gold.svg") center / 300px;
  opacity: .06;
  -webkit-mask-image: linear-gradient(105deg, transparent 30%, #000 85%);
          mask-image: linear-gradient(105deg, transparent 30%, #000 85%);
}
.page-head .eyebrow { color: var(--teal-60); }
.page-head h1 { font-size: clamp(2rem, 2.4vw + 1.2rem, 3.1rem); max-width: 24ch; }
.page-head__lede {
  margin-top: 1.15rem;
  max-width: 62ch;
  font-size: var(--step-lg);
  color: rgba(255, 255, 255, .78);
}

/* Blog index */
.posts { padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--section-y); }
.post-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-card__image { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.post-card__body { padding: clamp(1.5rem, 3vw, 2.4rem); display: grid; align-content: center; gap: .85rem; }
.post-card__meta {
  font-size: var(--step-eyebrow);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.post-card h2 { font-size: var(--step-h3); line-height: 1.2; }
.post-card p { color: var(--ink-muted); }
.post-card__more { font-weight: 700; color: var(--teal-deep); }
@media (prefers-reduced-motion: reduce) { .post-card:hover { transform: none; } }
@media (max-width: 760px) {
  .post-card { grid-template-columns: 1fr; }
  .post-card__image { min-height: 0; aspect-ratio: 1200 / 515; }
}

/* Article */
.article { padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--section-y); }
.article__body {
  max-width: 44rem;
  margin-inline: auto;
  font-size: 1.0625rem;
  line-height: 1.75;
}
.article__body > p + p { margin-top: 1.15rem; }
.article__figure { margin: 0 0 2.25rem; }
.article__figure img { width: 100%; height: auto; border-radius: var(--radius-lg); }
.article__figure figcaption { margin-top: .7rem; font-size: .875rem; color: var(--ink-muted); }
.article__end {
  margin: 2.5rem 0;
  text-align: center;
  letter-spacing: .4em;
  color: var(--ink-muted);
}
.article__box {
  margin-top: 1.5rem;
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-alt);
}
.article__box h2 {
  margin-bottom: .6rem;
  font-size: 1.15rem;
  letter-spacing: 0;
}
.article__box p { font-size: .975rem; line-height: 1.65; }
.article__box a { color: var(--teal-deep); font-weight: 700; }
.article__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2.25rem;
}
.article__back { font-weight: 700; color: var(--teal-deep); text-decoration: none; }
.article__back:hover { text-decoration: underline; }

/* Printing (and the downloadable PDF, rendered from print): just the release,
   with the logo and release header that a news release carries. */
.print-only { display: none; }
@media print {
  @page { size: letter; margin: .6in .7in; }
  .header, .footer, .article__actions, .toast, .skip-link, .no-print { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .print-only { display: block; }
  .print-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.4rem; }
  .print-head img { width: 1.3in; height: auto; }
  .print-head p { margin: 0; font-size: 10pt; line-height: 1.5; }
  .print-head strong { display: block; margin-bottom: .35rem; letter-spacing: .08em; }
  .page-head { margin: 0; padding: 0 0 .9rem; background: none; color: #000; }
  .page-head::before { display: none; }
  .page-head .eyebrow { display: none; }
  .page-head h1 { max-width: none; font-size: 18pt; text-align: center; }
  .page-head__lede { max-width: none; margin-top: .5rem; color: #333; font-size: 11pt; font-style: italic; text-align: center; }
  .page-head .container, .article .container { padding: 0; max-width: none; }
  .article { padding: .4rem 0 0; }
  .article__body { max-width: none; font-size: 11pt; line-height: 1.55; }
  .article__figure { break-inside: avoid; margin-bottom: 1.2rem; }
  .article__figure img { border-radius: 0; }
  .article__box { break-inside: avoid; background: none; border: 0; padding: 0; margin-top: 1rem; }
  .article__box a { color: #000; }
  a { color: inherit; text-decoration: none; }
}

/* --- Toast (main.js: "Email address copied") ---------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 300;
  max-width: calc(100% - 2rem);
  padding: .8rem 1.2rem;
  border-radius: 100px;
  /* White, so it stands out over the dark footer where the links are. */
  background: #fff;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .45);
  color: var(--green);
  font-size: var(--step-sm);
  font-weight: 700;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) {
  .toast { transition: none; }
}

/* --- Scroll reveal ------------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 940px) {
  /* Single column: behind the copy the G and calf were buried under a heavy
     scrim, so the G sits above the copy instead, lightly scrimmed, and the
     copy follows on solid green.

     The photo is sized so the G is --g-w of the width (capped at --hw for
     tablets) and placed so the G's top lands just under the header. The
     constants come from where the G sits in the hero canvas
     (tools/build-hero-fade.py): G width = .3473 of the image width, top at
     .2659 and height .5099 of its height, image aspect 1.5997. So:
       G top in the image = width * g-w * .4786
       G height           = width * g-w * .9178 */
  .hero {
    --hw: min(100vw, 520px);
    --g-w: .74;
    --g-top: calc(var(--header-h) + .5rem);
    --g-h: calc(var(--hw) * var(--g-w) * .9178);
    min-height: 0;
    align-content: start;
    padding-top: calc(var(--g-top) + var(--g-h) + 1.75rem);
    padding-bottom: 3.5rem;
  }
  .hero__photo {
    width: 100%;
    --hero-size: calc(var(--hw) * var(--g-w) / .3473) auto;
    --hero-pos: 50% calc(var(--g-top) - var(--hw) * var(--g-w) * .4786);
  }
  .hero__photo::after {
    background:
      linear-gradient(180deg,
        rgba(11, 35, 32, .85) 0,
        rgba(17, 49, 43, .35) calc(var(--header-h) + 1rem),
        rgba(17, 49, 43, .3) calc(var(--g-top) + var(--g-h) * .7),
        var(--green) calc(var(--g-top) + var(--g-h) + 1.5rem)),
      url("assets/hero-g.webp") var(--hero-pos) / var(--hero-size) no-repeat;
  }
}

@media (max-width: 560px) {
  .waitlist__row {
    flex-direction: column;
    border-radius: var(--radius);
    padding: .55rem;
  }
  .waitlist input { padding: .8rem 1rem; }
  .waitlist .btn { width: 100%; }
  .footer__top { flex-direction: column; }
}

/* --- Utilities ---------------------------------------------------------- */

.nowrap { white-space: nowrap; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --- Brand logo (SVG) sizing -------------------------------------------- */

/* The primary logo is stacked (icon over wordmark), so it needs most of the
   header's height to read; 56px leaves 10px above and below in the 76px bar. */
.brand__logo { height: 56px; width: auto; display: block; }
@media (max-width: 560px) { .brand__logo { height: 50px; } }
.footer__logo { height: 30px; width: auto; margin-bottom: 1rem; }

/* --- Hero actions / trust ----------------------------------------------- */

.hero__actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  align-items: center;
}
.hero__trust {
  margin-top: 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: var(--step-sm);
  color: rgba(255, 255, 255, .78);
}
.hero__trust::before {
  content: "";
  width: 11px; height: 11px;
  background: var(--amber);
  clip-path: polygon(50% 0, 100% 38%, 50% 100%, 0 38%);
  flex: none;
}

/* --- Credential band ----------------------------------------------------- */

.credential { background: var(--surface-alt); }
.credential__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: center;
}
.credential__seal { width: clamp(120px, 18vw, 184px); height: auto; flex: none; }
.credential h2 { margin-bottom: 1rem; }
.credential p { color: var(--ink-muted); font-size: var(--step-lg); max-width: 46ch; }

@media (max-width: 680px) {
  .credential__inner { grid-template-columns: 1fr; justify-items: start; }
}

/* --- Stat band ----------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
  margin: 2.4rem 0 .5rem;
}
.stat {
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1;
  color: var(--green);
}
.stat__label {
  margin-top: .55rem;
  font-size: var(--step-sm);
  color: var(--ink-muted);
}

/* --- Testimonials -------------------------------------------------------- */

.stories { background: var(--surface); }
.stories__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
  align-items: start;
}
.quote {
  margin: 0; /* <figure> ships with a 40px side margin */
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2rem 1.9rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.quote__mark {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: .6;
  color: var(--amber);
}
.quote blockquote {
  margin: 0;
  font-size: var(--step-base);
  color: var(--ink);
  line-height: 1.55;
}
.quote figcaption {
  font-size: var(--step-sm);
  color: var(--ink-muted);
}
.quote figcaption strong { color: var(--green); font-weight: 700; }
.quote cite { font-style: normal; }

/* --- About ------------------------------------------------------------- */

.about { background: var(--surface-alt); }
.about__intro { max-width: 46rem; }
.about__people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
  align-items: start;
}
.person {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.1rem 1.1rem;
  align-items: center;
  padding: 1.75rem 1.75rem 1.9rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
/* Source headshots are 176x187, so keep them at avatar size. */
.person__photo {
  width: 88px; height: 88px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 30%;
  box-shadow: 0 0 0 3px var(--amber-15), 0 0 0 4px var(--amber-35);
}

.person__name { margin: 0; font-size: var(--step-h3); }
.person__role {
  margin: .3rem 0 0;
  font-size: var(--step-eyebrow);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
}
.person__bio {
  grid-column: 1 / -1;
  margin: 0;
  font-size: var(--step-sm);
  color: var(--ink-muted);
  line-height: 1.6;
}

/* --- Join form ----------------------------------------------------------- */

.join {
  position: relative;
  background: var(--green);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.join__facets {
  position: absolute; inset: 0; z-index: -1;
  /* Same brand-pattern treatment as the hero (see .hero__facets). */
  background-image: url("brand/patterns/pattern-gold.svg");
  background-size: 300px;
  background-position: center;
  opacity: .07;
  -webkit-mask-image: linear-gradient(105deg, transparent 0%, transparent 34%, #000 78%);
          mask-image: linear-gradient(105deg, transparent 0%, transparent 34%, #000 78%);
}
.join__glow {
  position: absolute; z-index: -2;
  width: 900px; height: 560px;
  left: 50%; bottom: -320px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(0, 132, 118, .5), transparent 70%);
  pointer-events: none;
}
/* A centered call-to-action band; the form itself is in the modal below. */
.join__inner {
  display: grid;
  justify-items: center;
  text-align: center;
}
.join__inner .eyebrow { color: var(--teal-60); justify-content: center; }
.join__inner .lede { color: rgba(255, 255, 255, .76); margin-inline: auto; }
.join__inner .btn { margin-top: 2rem; }

.joinform__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.1rem;
}
/* City is wide, state is short. */
.joinform__grid--place { grid-template-columns: minmax(0, 1fr) 7.5rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label,
.choice legend {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}
.field label .req { color: var(--amber); }
.field input,
.field select {
  width: 100%;
  padding: .8rem .9rem;
  background: rgba(255, 255, 255, .95);
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--ink);
  font-family: inherit;
  /* 16px minimum: iOS Safari zooms the page in on fields smaller than that,
     which pushes the sign-up modal partly off-screen. */
  font-size: max(1rem, var(--step-sm));
}
.field select { appearance: none; cursor: pointer; }
.field input:focus,
.field select:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255,164,0,.35); }
.field input::placeholder { color: var(--green-60); }
.field input[aria-invalid="true"] { border-color: var(--amber-60); box-shadow: 0 0 0 3px rgba(255,200,102,.3); }

/* Auction yes/no as pill choices: the radio stays in place (transparent) so it
   keeps native keyboard and screen-reader behaviour. */
.choice { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice legend { padding: 0; margin-bottom: .55rem; }
.choice__opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice__opt { position: relative; }
.choice__opt input {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: pointer;
}
.choice__opt span {
  display: inline-block;
  padding: .62rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 100px;
  font-size: var(--step-sm);
  font-weight: 600;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.choice__opt:hover span { border-color: rgba(255, 255, 255, .6); }
.choice__opt input:checked + span { background: var(--amber); border-color: var(--amber); color: var(--green); }
.choice__opt input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 3px; }

.joinform__msg {
  margin-top: .75rem;
  font-size: .875rem;
  min-height: 1.3em;
  color: rgba(255, 255, 255, .7);
}
.joinform__msg[data-state="error"]   { color: var(--amber-60); }
.joinform__msg[data-state="success"] { color: var(--teal-35); }
.joinform__note {
  margin-top: .4rem;
  font-size: .8rem;
  color: rgba(255, 255, 255, .5);
}

@media (max-width: 520px) {
  .joinform__grid { grid-template-columns: 1fr; }
  .joinform__grid--place { grid-template-columns: minmax(0, 1fr) 6rem; }
}

/* --- Join modal ---------------------------------------------------------- */

/* Author display rules would otherwise beat the UA's [hidden] { display: none }. */
.joinmodal [hidden] { display: none !important; }

/* Lock the page behind the modal; the gutter stops the layout shifting when
   the scrollbar goes away. */
html.modal-open { overflow: hidden; scrollbar-gutter: stable; }

/* --vv-height / --vv-top are the visible viewport, kept up to date by
   main.js while the modal is open. On phones the on-screen keyboard shrinks
   only that visible area, not the layout viewport that svh and position:fixed
   use, so without them the modal sits half behind the keyboard with nothing
   to scroll. */
.joinmodal {
  width: min(36rem, calc(100% - 2rem));
  max-width: none;
  max-height: calc(var(--vv-height, 100svh) - 2rem);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-lg);
  background: var(--green);
  color: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  overflow: auto;
  overscroll-behavior: contain;
}
.joinmodal::backdrop {
  background: rgba(11, 35, 32, .72);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}
.joinmodal[open] { animation: joinmodal-in .3s var(--ease); }
.joinmodal[open]::backdrop { animation: joinmodal-fade .3s ease-out; }
@keyframes joinmodal-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
@keyframes joinmodal-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .joinmodal[open], .joinmodal[open]::backdrop { animation: none; }
}

.joinmodal__panel {
  position: relative;
  isolation: isolate;
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
/* Faint brand pattern in the top corner, as on the join band. */
.joinmodal__panel::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: url("brand/patterns/pattern-gold.svg") right top / 300px;
  opacity: .06;
  -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 45%);
          mask-image: linear-gradient(200deg, #000 0%, transparent 45%);
  pointer-events: none;
}
.joinmodal .eyebrow { color: var(--teal-60); margin-bottom: .8rem; }
.joinmodal__title {
  font-size: clamp(1.55rem, 1.2vw + 1.2rem, 2rem);
  padding-right: 2.5rem;  /* clear the close button */
}
/* Focused on open on touch screens (instead of the first field), so the
   keyboard doesn't cover the form before it's been seen. */
.joinmodal__title:focus { outline: none; }

/* Little room to show (keyboard up, or a short phone): pin the modal to the
   top of the visible area instead of centring it, and tighten the header so
   the fields stay in view. The modal scrolls inside itself. */
.joinmodal.is-short {
  inset: var(--vv-top, 0px) 0 auto;
  margin: .75rem auto;
  max-height: calc(var(--vv-height, 100svh) - 1.5rem);
}
.joinmodal.is-short .joinmodal__panel { padding: 1.1rem 1.1rem 1.25rem; }
.joinmodal.is-short .eyebrow { display: none; }
.joinmodal.is-short .joinmodal__title { font-size: 1.3rem; }
.joinmodal.is-short .joinmodal__progress { margin: .8rem 0 1rem; }

.joinmodal__close {
  position: absolute; top: .9rem; right: .9rem;
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.joinmodal__close:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .5); }
.joinmodal__close svg { width: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.joinmodal__progress {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.35rem 0 1.5rem;
}
.joinmodal__bar {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.joinmodal__bar span {
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .18);
  transition: background-color .3s var(--ease);
}
.joinmodal__bar span.is-on { background: var(--amber); }
.joinmodal__count {
  font-size: .8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .7);
  white-space: nowrap;
}

.step { border: 0; margin: 0; padding: 0; min-width: 0; }
.step__title {
  padding: 0;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

/* Off-screen rather than display:none, which some bots skip. */
.joinform__hp {
  position: absolute;
  left: -10000px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.joinmodal__nav {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1.6rem;
}
.joinmodal__nav [data-next] { margin-left: auto; min-width: 8.5rem; }
.joinmodal__nav .btn:disabled { opacity: .7; cursor: default; transform: none; }

.joinmodal__done {
  display: grid;
  justify-items: start;
  gap: .75rem;
  margin-top: 1.5rem;
  outline: none;
}
.joinmodal__done svg {
  width: 3rem; height: 3rem;
  padding: .6rem;
  border-radius: 50%;
  background: var(--teal);
  fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.joinmodal__done p { color: rgba(255, 255, 255, .76); }
.joinmodal__done .btn { margin-top: .75rem; }

/* --- Client logo marquee ------------------------------------------------- */

.clients {
  background: var(--green);
  padding-block: 0 clamp(2.5rem, 5vw, 4rem);
}
.clients__label {
  margin: 0;
  padding-block: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.25rem);
  text-align: center;
  font-size: var(--step-eyebrow);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}
.clients__rows { display: grid; gap: .75rem; }

.marquee {
  overflow: hidden;
  /* fade the ends so logos enter and leave rather than getting clipped */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  /* Loop time scales with the number of logos in the row (180px each) so
     speed stays put as clients are added: these were 64s / 78s / 70s at 23
     logos a row, now 29 / 29 / 28 (86 logos). */
  animation: marquee-scroll 81s linear infinite;
}
.marquee:nth-child(2) .marquee__track { animation-duration: 98s; }
.marquee:nth-child(3) .marquee__track { animation-duration: 85s; }
.marquee--rev .marquee__track { animation-direction: reverse; }

.marquee__group {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0;
  padding: 0 .375rem;
  list-style: none;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.chip {
  flex: none;
  width: 168px;
  height: 84px;
  display: block;
  padding: .85rem 1.1rem;
  background: #fff;
  border-radius: 10px;
}
/* The cell is a block with a definite height, so the image's percentage sizing
   resolves against its content box and object-fit does the scaling. A grid cell
   here fails: the row is indefinite, so height:100% falls back to auto and the
   image scales off its width instead, overflowing. */
.chip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 560px) {
  .chip { width: 138px; height: 70px; padding: .65rem .8rem; }
  .marquee__group { gap: .5rem; }
}

/* Motion is decorative here — without it the rows simply become scrollable. */
@media (prefers-reduced-motion: reduce) {
  .marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .marquee__track { animation: none; width: auto; }
  .marquee__group[aria-hidden="true"] { display: none; }
}
