@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

/* ============================================================
   AMG — variant 2 "Open"
   The footage stays bright: no wedge across the frame, only a
   bottom-up scrim under the copy. Everything below the hero is
   paper-light, including the footer. Hierarchy is carried by
   whitespace and rules rather than by size or by dark blocks.
   ============================================================ */
:root {
  --ink:        #16161E;
  --ink-70:     #43434F;
  --ink-60:     #5A5A66;
  --ink-40:     #6E6E7B;
  --paper:      #FFFFFF;
  --paper-alt:  #F4F4F7;
  --line:       #E4E4EC;
  --line-soft:  #EDEDF2;
  --brand:      #4A1BCF;
  --brand-deep: #3A14A6;
  --aog:        #C50089;

  --display: 'Space Grotesk', sans-serif;
  --text:    'Inter', sans-serif;

  --container: 1200px;
  --gutter: 60px;
  --ease: cubic-bezier(.16, 1, .3, 1);

  /* ---- texture ----------------------------------------------------
     Baked into background-image so it survives a fullPage screenshot —
     a position:fixed overlay would only render once, at the top.
     Strength lives inside the SVG (rect opacity): a background image
     cannot be faded with the opacity property.                        */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.62' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)' opacity='0.34'/%3E%3C/svg%3E");
  --rule-c: rgba(22,22,30,.09);
  --rule-x: calc(var(--container) / 2 - var(--gutter));
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.7;
}
img, svg { display: block; max-width: 100%; }

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

/* ---------- flatter still: H1/body = 2.9x ---------- */
h1, h2, h3 { font-family: var(--display); margin: 0; }
h1 { font-size: 52px; font-weight: 500; letter-spacing: -1.1px; line-height: 1.14; }
h2 { font-size: 34px; font-weight: 500; letter-spacing: -0.5px; line-height: 1.24; }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.1px; line-height: 1.4; }
p  { margin: 0; }

.eyebrow {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow--onDark { color: rgba(255,255,255,.82); }

.sectionHead { text-align: center; }
.sectionHead h2 { margin-top: 16px; }
.sectionHead .lead {
  margin: 22px auto 0;
  max-width: 62ch;
  font-size: 18px;
  color: var(--ink-60);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 30px;
  border-radius: 999px;                 /* pill, to rhyme with the nav */
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .14s ease, border-color .14s ease, color .14s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-deep); }
.btn--ghostLight { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--ghostLight:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.btn--quiet { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--quiet:hover { border-color: var(--ink); }

/* ============================================================
   FLOATING NAV — three fixed pieces, no full-width bar
   ============================================================ */
.brand  { position: fixed; top: 30px; left: var(--gutter);  z-index: 60; }
.brand img { height: 40px; width: auto; }
.brand__dark { display: none; }

.navPill {
  position: fixed;
  top: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  gap: 2px;
  padding: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.24);
  backdrop-filter: blur(16px) saturate(1.2);
  transition: background .25s ease, border-color .25s ease;
}
.navPill a {
  padding: 9px 18px;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 14.5px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}
.navPill a:hover { background: rgba(255,255,255,.18); }

.aogLink {
  position: fixed;
  top: 30px; right: var(--gutter);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  letter-spacing: .2px;
}
.aogLink__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--aog);
  box-shadow: 0 0 0 0 rgba(197,0,137,.8);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(197,0,137,.75); }
  70%  { box-shadow: 0 0 0 9px rgba(197,0,137,0); }
  100% { box-shadow: 0 0 0 0 rgba(197,0,137,0); }
}

/* scrolled: the pill lands on white, the marks flip to ink */
.is-stuck .navPill { background: rgba(255,255,255,.94); border-color: var(--line); box-shadow: 0 2px 18px rgba(22,22,30,.10); }
.is-stuck .navPill a { color: var(--ink); }
.is-stuck .navPill a:hover { background: var(--paper-alt); }
.is-stuck .brand__light { display: none; }
.is-stuck .brand__dark  { display: block; }
.is-stuck .aogLink { color: var(--ink); }

/* ============================================================
   HERO — bottom-anchored copy, footage left bright
   ============================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: #0F1420 center / cover no-repeat;
}
@supports not (height: 100svh) { .hero { height: 100vh; } }

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .8s ease;
}
.hero__video.is-ready { opacity: 1; }

/* Only the bottom is darkened. The sky at the top stays as shot —
   that is the whole point of this variant. */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(12,16,26,.32) 0%,     /* just enough for the nav pill */
      rgba(12,16,26,.04) 16%,    /* sky as shot */
      rgba(12,16,26,.18) 40%,
      rgba(12,16,26,.68) 66%,    /* copy band starts here */
      rgba(12,16,26,.93) 100%);
}

.hero__copy {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 64px;
  text-align: center;
}
/* two lines, not three — keeps the block inside the dark band */
.hero h1 { color: #fff; margin: 16px auto 0; max-width: 900px; }
.hero__sub {
  margin: 22px auto 0;
  max-width: 60ch;
  color: rgba(255,255,255,.94);
  font-size: 18px;
  line-height: 1.65;
}
.hero__actions { display: flex; justify-content: center; gap: 14px; margin-top: 36px; }

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  width: 1px; height: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.7));
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 128px 0; }

/* ---- textured band — one section only ----
   Grain plus two hairlines on the text edge. Deliberately not page-wide:
   on flat white grain reads as dirt, on a tinted band as material. */
.section--textured { position: relative; }
.section--textured > * { position: relative; z-index: 1; }
.section--textured::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    var(--grain),
    linear-gradient(var(--rule-c), var(--rule-c)),
    linear-gradient(var(--rule-c), var(--rule-c));
  background-size: 160px 160px, 1px 100%, 1px 100%;
  background-position: 0 0, calc(50% - var(--rule-x)) 0, calc(50% + var(--rule-x)) 0;
  background-repeat: repeat, no-repeat, no-repeat;
}

.section--tight { padding-top: 0; }
.rule { height: 1px; background: var(--line-soft); }

/* about: one wide statement, then a hairline stat row */
.statement {
  margin: 44px auto 0;
  max-width: 25ch;
  text-align: center;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: -0.3px;
  color: var(--ink);
}
.statement em { font-style: normal; color: var(--brand); }

.support {
  margin: 30px auto 0;
  max-width: 64ch;
  text-align: center;
  color: var(--ink-60);
}

.statRow {
  margin-top: 84px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  border-top: 1px solid var(--line);
  padding-top: 34px;
}
.statRow__num {
  font-family: var(--display);
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -1.2px;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.statRow__num span { color: var(--brand); }
.statRow__label {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-60);
}

/* approvals: a quiet inline row, no badges */
.approvalRow {
  margin-top: 72px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
}
.approvalRow__key { color: var(--ink-40); font-weight: 600; font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; }
.approvalRow__item { display: inline-flex; align-items: center; gap: 9px; }
.approvalRow__item svg { flex: none; }
.link {
  margin-left: auto;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.link:hover { color: var(--brand-deep); }

/* ---------- partners ---------- */
.marquee {
  margin-top: 60px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: slide 50s linear infinite;
}
@keyframes slide { to { transform: translateX(-50%); } }
.marquee__slot { flex: none; width: 168px; height: 46px; display: grid; place-items: center; }
.marquee__slot--wide { width: 210px; }
.marquee__slot img {
  max-width: 100%; max-height: 40px;
  width: auto; height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .55;
  transition: filter .25s ease, opacity .25s ease;
}
.marquee__slot:hover img { filter: none; opacity: 1; }

/* ---------- locations band ---------- */
.locations { background-color: var(--paper-alt); }
.map {
  margin-top: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #E9ECF1;
}
/* The tile image keeps its own aspect ratio, so the pin percentages
   below stay true at any container width. */
.map__canvas { position: relative; }
.map__canvas > img { display: block; width: 100%; height: auto; }

/* 38% / 52% — where build-map.py placed the geocoded point */
.map__pin   { position: absolute; left: 38%; top: 52%; transform: translate(-50%, -100%); }
.map__label {
  position: absolute; left: 38%; top: 52%;
  transform: translate(26px, -100%);
  background: #fff;
  border-radius: 6px;
  padding: 12px 16px 13px;
  box-shadow: 0 6px 22px rgba(16,20,32,.16);
  white-space: nowrap;
}
.map__label strong {
  display: block;
  font-family: var(--display);
  font-size: 15px; font-weight: 600; line-height: 1.3;
  color: var(--ink);
}
.map__label span { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-60); }

.map__attrib {
  position: absolute; right: 9px; bottom: 9px;
  margin: 0;
  padding: 3px 8px;
  border-radius: 3px;
  background: rgba(255,255,255,.82);
  font-size: 10.5px;
  line-height: 1.4;
  color: #5A5A66;
}
.map__bar {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  background: #fff;
  font-size: 15px;
  color: var(--ink-60);
}
.map__bar svg { flex: none; width: 15px; height: 15px; }
.map__bar strong { color: var(--ink); font-weight: 600; }

/* ---------- contact: details left, form right ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  margin-top: 56px;
  /* stretch, not start: both columns must end on the same line */
  align-items: stretch;
}
.contact__aside h3 { margin-bottom: 4px; }
.contact__aside dl { margin: 26px 0 0; display: grid; gap: 20px; }
.contact__aside dt {
  font-family: var(--display);
  font-size: 12px; font-weight: 600;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--ink-40); margin-bottom: 5px;
}
.contact__aside dd { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--ink-70); }
.contact__aside a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.contact__aside a:hover { color: var(--brand); border-color: var(--brand); }

.aogStrip {
  margin-top: 30px;
  padding: 22px 24px;
  border-radius: 8px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--aog);
  background: #fff;
}
.aogStrip__label {
  font-family: var(--display);
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 1.3px; text-transform: uppercase;
  color: var(--aog);
}
.aogStrip__num {
  font-family: var(--display);
  font-size: 25px; font-weight: 600; letter-spacing: -.4px;
  margin-top: 5px; color: var(--ink);
}
.aogStrip p { margin-top: 6px; font-size: 14.5px; line-height: 1.5; color: var(--ink-60); }

.form { display: grid; gap: 20px; grid-template-rows: auto auto 1fr auto; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 9px; }
.field label {
  font-family: var(--display);
  font-size: 12px; font-weight: 600;
  letter-spacing: 1.1px; text-transform: uppercase;
  color: var(--ink-40);
}
/* underline fields, not boxes — the other visible split from v1 */
.field input, .field textarea {
  height: 46px;
  padding: 0 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  font-family: var(--text);
  font-size: 16.5px;
  color: var(--ink);
  transition: border-color .16s ease;
}
.field textarea { height: 104px; padding-top: 10px; resize: none; line-height: 1.6; }
/* must sit AFTER the base .field textarea rule: same specificity,
   so source order decides which height wins */
.field--grow { grid-template-rows: auto 1fr; }
.field--grow textarea { height: 100%; min-height: 104px; }
.field input::placeholder, .field textarea::placeholder { color: #8A8A98; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--brand); border-bottom-width: 2px; }
.form__submit { margin-top: 12px; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.form__note { font-size: 14.5px; line-height: 1.55; color: var(--ink-60); }
.form__note a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }

/* ============================================================
   FOOTER — light, not a dark slab
   ============================================================ */
.footer {
  position: relative;
  background-color: var(--paper-alt);
  background-image: var(--grain);   /* the second, and last, textured surface */
  background-size: 160px 160px;
  color: var(--ink);
  padding: 78px 0 30px;
  border-top: 1px solid var(--line);
}
.footer > * { position: relative; z-index: 1; }
.footer__top { display: grid; grid-template-columns: 4fr 8fr; gap: 72px; }
.footer__logo { height: 42px; width: auto; }
.footer__tag { margin-top: 20px; max-width: 30ch; font-size: 15px; line-height: 1.65; color: var(--ink-60); }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.footer__col h4 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 1.3px; text-transform: uppercase;
  color: var(--ink-40);
}
.footer__col a, .footer__col p {
  display: block;
  font-size: 15px; line-height: 1.55;
  color: var(--ink-70);
  text-decoration: none;
  margin-bottom: 11px;
}
.footer__col a:hover { color: var(--brand); }
.footer__bottom {
  /* 2x2 grid, not a single flex row: five items on one line wrapped
     into ragged fragments once the credit was added */
  margin-top: 62px;
  padding-top: 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 32px;
  align-items: center;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-40);
}
.footer__bottom a { color: var(--ink-60); text-decoration: none; }
.footer__bottom a:hover { color: var(--brand); }
.footer__legal { display: flex; gap: 22px; justify-self: end; }

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  :root { --gutter: 40px; }
  .navPill { display: none; }
  .contact__grid { grid-template-columns: 1fr; gap: 56px; }
  .statRow { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  :root { --gutter: 24px; }
  body { font-size: 16.5px; }
  h1 { font-size: 36px; letter-spacing: -.7px; }
  h2 { font-size: 28px; }
  .statement { font-size: 21px; max-width: none; }
  .aogLink { display: none; }
  .section { padding: 76px 0; }
  .hero__copy { padding-bottom: 56px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { justify-content: center; }
  .statRow { grid-template-columns: 1fr; gap: 26px; }
  .approvalRow { gap: 18px; }
  .link { margin-left: 0; }
  .form__row { grid-template-columns: 1fr; }
  
  .footer__top { grid-template-columns: 1fr; gap: 40px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__bottom { grid-template-columns: 1fr; gap: 12px; }
  .footer__legal { justify-self: start; flex-wrap: wrap; }
  .footer__credit { justify-self: start; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track, .aogLink__dot { animation: none; }
}

/* credit line — quieter than the legal links, still clickable */
.footer__credit { justify-self: end; white-space: nowrap; color: var(--ink-40); }
.footer__credit a { color: var(--ink-60); text-decoration: none; border-bottom: 1px solid var(--line); }
.footer__credit a:hover { color: var(--brand); border-bottom-color: var(--brand); }
