/* ══════════════════════════════════════════════════════════════════════
   HIGH SIGNAL — editorial

   One system, applied everywhere. Cream ground, ink type, a serif for
   headlines and a sans for everything else, a fixed type scale and a
   fixed spacing scale. The logo green appears only on buttons and the
   smallest of details. No images except the founder video and the
   headshots; no icons except the outbound links on the speaker cards
   and under Salim's name.
   ══════════════════════════════════════════════════════════════════════ */

/* ── TOKENS ────────────────────────────────────────────────────────── */

:root {
  /* palette */
  --cream: #f6f3ec;
  --ink: #1a1b1e;
  --muted: #62646b;
  --line: rgba(26, 27, 30, 0.14);
  --line-strong: rgba(26, 27, 30, 0.32);
  --panel: #ece8df;
  --signal: #0ef16f;
  --signal-deep: #0bd45f;

  /* type */
  --serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;

  /* scale — every size on the page is one of these */
  --t-display: clamp(40px, 5.2vw, 56px); /* H1: two lines above ~1090px */
  --t-h2: clamp(30px, 3.4vw, 42px);
  --t-h3: 22px; /* card names, quote attribution lead */
  --t-quote: clamp(24px, 2.4vw, 30px);
  --t-lede: clamp(18px, 1.6vw, 21px);
  --t-body: 17px;
  --t-small: 14px;

  /* spacing — 8px base */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 48px;
  --s-6: 64px;
  --s-7: 96px;
  --s-8: clamp(96px, 12vh, 144px); /* between sections */

  --wrap: 1120px;
  --measure: 640px;
  --gut: clamp(20px, 5vw, 48px);
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.24, 1);

  color-scheme: light;
}

/* ── BASE ──────────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--signal);
  color: var(--ink);
}

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

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--signal-deep);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── TYPE SCALE ────────────────────────────────────────────────────── */

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  color: var(--ink);
}

h1 {
  font-size: var(--t-display);
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 16ch;
  font-variation-settings: "opsz" 72;
}

h2 {
  font-size: var(--t-h2);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 20ch;
  font-variation-settings: "opsz" 48;
}

h3 {
  font-size: var(--t-h3);
  line-height: 1.3;
  font-variation-settings: "opsz" 24;
}

.lede {
  font-size: var(--t-lede);
  line-height: 1.5;
  color: var(--ink);
  max-width: var(--measure);
  margin: 0;
}

.body {
  font-size: var(--t-body);
  line-height: 1.65;
  max-width: var(--measure);
  margin: 0;
}

.small {
  font-size: var(--t-small);
  line-height: 1.55;
  color: var(--muted);
}

/* a heading the copy breaks at a given word: one span per line, each
   its own block, so the break holds at every width and each line wraps
   on its own if it must */
.lines {
  max-width: none;
}

/* a paragraph broken into lines keeps its usual measure; only headings
   (which already cap width in ch) want the constraint lifted */
.body.lines,
.lede.lines {
  max-width: var(--measure);
}

.lines > span {
  display: block;
  text-wrap: balance;
}

/* links in running copy: ink, on a green rule */
.body a,
.lede a,
.quote p a {
  border-bottom: 1px solid var(--signal-deep);
  padding-bottom: 1px;
  transition: color 0.2s var(--ease);
}

.body a:hover,
.lede a:hover {
  color: var(--muted);
}

/* ── STACK — the one vertical rhythm every section uses ────────────── */

.stack > * + * {
  margin-top: var(--s-3);
}

.stack > h1 + .lede,
.stack > h2 + .body {
  margin-top: var(--s-4);
}

.stack > .body + .body {
  margin-top: var(--s-2);
}

.stack > * + .actions {
  margin-top: var(--s-5);
}

.stack > * + .list {
  margin-top: var(--s-4);
}

.stack > * + .cards,
.stack > * + .founder,
.stack > * + .price,
.stack > * + .faq,
.stack > * + .legal {
  margin-top: var(--s-6);
}

/* ── LISTS — the bulleted runs in the copy ─────────────────────────── */

/* One shape for every list: on the measure, with a hanging green dot so
   the text edge lines up with the paragraphs above. The bold lead-in an
   item opens with is the copy's own. */
.list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: var(--measure);
}

.list > li {
  position: relative;
  padding-left: var(--s-4);
  font-size: var(--t-body);
  line-height: 1.65;
}

.list > li + li {
  margin-top: var(--s-2);
}

.list > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.68em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--signal-deep);
}

.list strong {
  font-weight: 500;
}

/* ── BUTTONS ───────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--s-3);
  font-family: var(--sans);
  font-size: var(--t-small);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.btn:hover {
  background: #000;
  border-color: #000;
}

/* the one place the green is allowed to fill */
.btn--signal {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--ink);
}

.btn--signal:hover {
  background: var(--signal-deep);
  border-color: var(--signal-deep);
}

.btn--quiet {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn--quiet:hover {
  background: transparent;
  border-color: var(--ink);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
}

/* ── THE SIGNAL FIELD ──────────────────────────────────────────────── */

/* fixed behind everything: faint green ripples on the cream. Every
   column of copy sits above it; it never takes input. */
.fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ── LAYOUT ────────────────────────────────────────────────────────── */

.wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gut);
}

.sec {
  padding: var(--s-8) 0 0;
}

.sec--hero {
  padding-top: var(--s-7);
}

.sec--last {
  padding-bottom: var(--s-8);
}

/* ── NAV ───────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  height: 72px;
}

.nav__mark img {
  height: 34px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  font-size: var(--t-small);
  font-weight: 500;
}

.nav__links a:not(.btn) {
  padding: var(--s-1) 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}

.nav__links a:not(.btn):hover {
  border-bottom-color: var(--signal-deep);
}

.nav .btn {
  min-height: 40px;
  padding: 0 var(--s-3);
}

/* ── PRICE ─────────────────────────────────────────────────────────── */

.price {
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  max-width: var(--measure);
}

.price__amount {
  font-family: var(--serif);
  font-size: var(--t-h2);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  font-variation-settings: "opsz" 48;
}

.price__note {
  display: inline-block;
  font-family: var(--sans);
  font-size: var(--t-small);
  line-height: 1.55;
  letter-spacing: 0;
  color: var(--muted);
}

/* ── FOUNDER — video, quote, card ──────────────────────────────────── */

.founder {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--s-6);
  align-items: start;
}

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
}

.video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote {
  margin: 0;
  padding-left: var(--s-3);
  border-left: 1px solid var(--ink);
}

.quote p {
  font-family: var(--serif);
  font-size: var(--t-quote);
  line-height: 1.35;
  letter-spacing: -0.005em;
  margin: 0;
  font-variation-settings: "opsz" 32;
}

/* the founder quote runs long; at the display size it would swamp the
   column beside the video, so it drops to the lede size and keeps the
   serif */
.founder .quote p {
  font-size: var(--t-lede);
  line-height: 1.45;
  font-variation-settings: "opsz" 24;
}

.quote footer {
  margin-top: var(--s-2);
}

.quote__by p {
  margin: 0;
}

/* website, LinkedIn, X under the attribution. The row is pulled left by
   the icon's inset so the first glyph sits on the text edge. */
.social {
  list-style: none;
  margin: var(--s-1) 0 0 -6px;
  padding: 0;
  display: flex;
  gap: 2px;
}

/* ── ICON LINKS ────────────────────────────────────────────────────── */

/* the only icons on the page: 16px glyphs in the ink, on a 28px round
   hit area, muted until hovered. Used in the card heads and under the
   founder quote. */
.icon-link,
.card__link {
  flex: none;
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--muted);
  transition:
    color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.icon-link svg,
.card__link svg {
  width: 16px;
  height: 16px;
  display: block;
}

.icon-link:hover,
.card__link:hover {
  color: var(--ink);
  background: var(--panel);
}

/* ── SPEAKER CARDS ─────────────────────────────────────────────────── */

/* Two per row on web, one on mobile. Each card runs horizontally: the
   headshot on the left, the text on the right. */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
}

.card {
  display: grid;
  grid-template-columns: clamp(112px, 28%, 168px) minmax(0, 1fr);
  border: 1px solid var(--line-strong);
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
}

/* the photo column is at least 4:5 and stretches to the text beside it;
   a real headshot fills it edge to edge. The ratio comes from a padded
   pseudo-element rather than aspect-ratio, which would let the box grow
   wider than its track to keep 4:5 once the text runs taller. */
.card__photo {
  position: relative;
  align-self: stretch;
  justify-self: stretch;
  background: var(--panel);
  border-right: 1px solid var(--line);
}

.card__photo::before {
  content: "";
  display: block;
  padding-top: 125%;
}

.card__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: var(--s-3);
}

.card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2);
}

.card__head .card__link {
  align-self: center;
}

.card__role {
  margin: var(--s-1) 0 0;
}

/* the one- or two-sentence blurb: body copy, a touch tighter */
.card__blurb {
  font-size: var(--t-body);
  line-height: 1.55;
  margin: var(--s-2) 0 0;
}

/* ── GUARANTEE ─────────────────────────────────────────────────────── */

/* the one boxed section: the warm panel, a hairline, and a thin green
   rule down the left, so the promise stands apart without shouting */
.guarantee {
  max-width: 800px;
  padding: var(--s-5);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--signal-deep);
  border-radius: var(--radius);
}

/* ── FAQ ───────────────────────────────────────────────────────────── */

/* One question per row, hairline between. The question is the serif at
   card size so a page of twenty-two of them stays scannable. */
.faq {
  max-width: var(--measure);
  border-top: 1px solid var(--line);
}

.faq__item {
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line);
}

.faq__item h2 {
  font-size: var(--t-h3);
  line-height: 1.3;
  letter-spacing: 0;
  max-width: none;
  font-weight: 500;
  font-variation-settings: "opsz" 24;
}

.faq__item h2 + .body {
  margin-top: var(--s-2);
}

/* ── LEGAL — the policy and terms pages ────────────────────────────── */

.legal {
  max-width: var(--measure);
}

.legal__date {
  margin: 0 0 var(--s-4);
}

.legal h2 {
  font-size: var(--t-h3);
  line-height: 1.3;
  letter-spacing: 0;
  max-width: none;
  margin-top: var(--s-6);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  font-variation-settings: "opsz" 24;
}

.legal h2 + .body {
  margin-top: var(--s-3);
}

.legal .body + .body {
  margin-top: var(--s-2);
}

.legal strong {
  font-weight: 500;
}

/* ── FOOTER ────────────────────────────────────────────────────────── */

.foot {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  margin-top: var(--s-8);
}

.foot__inner {
  min-height: 96px;
  padding: var(--s-4) var(--gut);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
}

.foot img {
  height: 28px;
  width: auto;
  flex: none;
}

.foot__links {
  display: flex;
  gap: var(--s-3);
  font-size: var(--t-small);
}

.foot__links a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}

.foot__links a:hover {
  border-bottom-color: var(--signal-deep);
}

.foot__legal {
  margin: 0;
}

/* ── REVEALS ───────────────────────────────────────────────────────── */

.rv {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.7s var(--ease) var(--d, 0ms),
    transform 0.7s var(--ease) var(--d, 0ms);
}

.rv.in {
  opacity: 1;
  transform: none;
}

/* ── MEET BLIP — the copy, and him beside it ───────────────────────── */

/* The heading sits where every heading sits. Under it, Blip to the left
   of the paragraph at exactly the paragraph's height: the image box has
   no height of its own (height: 0) and is stretched to the row's, which
   the paragraph sets, so he tracks the copy wherever it reflows. The
   image is a transparent PNG straight from the mascot renderer, so it
   sits on the cream with no frame or panel. */
.meet {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--s-4);
  align-items: stretch;
}

.meet__blip {
  width: 116px; /* his width at four lines of body copy; he scales inside */
  height: 0;
  min-height: 100%;
}

.meet__blip img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.meet > .body {
  margin: 0;
}

/* the block holds the section's paragraph, so it follows the heading at
   the heading → copy gap */
.stack > h2 + .meet {
  margin-top: var(--s-4);
}

/* ── RESPONSIVE ────────────────────────────────────────────────────── */

@media (max-width: 960px) {
  .founder {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-5);
  }

  /* one column: Blip under the heading, then the copy under him */
  .meet {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--s-3);
  }

  .meet__blip {
    width: 160px;
    height: auto;
    min-height: 0;
  }

  .meet__blip img {
    height: auto;
  }

  /* one Ambassador per row once two horizontal cards no longer fit */
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .nav__inner {
    height: 64px;
  }

  .nav__mark img {
    height: 30px;
  }

  /* the bar is already down to FAQ and the one action; both stay, on a
     tighter gap */
  .nav__links {
    gap: var(--s-3);
  }

  .cards {
    gap: var(--s-2);
  }

  .card {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .card__body {
    padding: var(--s-2);
  }

  .card__blurb {
    font-size: var(--t-small);
    color: var(--ink);
  }

  .guarantee {
    padding: var(--s-3);
  }

  .foot__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
