/* fonts.css is NOT @imported here on purpose: an @import is only discovered
   after this file has downloaded and parsed, so the @font-face rules — and the
   two <link rel="preload"> fonts that depend on them — wait behind a second
   round trip. base.njk links it directly, before this file, so both stylesheets
   download in parallel. */

/* ==========================================================================
   Design tokens
   Every colour, font, radius, shadow and duration in the site resolves to one
   of these. Change the value here and it updates everywhere — do not hardcode
   a hex value or a duration in a component rule below.

   Five colours were darkened from the design mockup because the originals
   failed WCAG AA against the backgrounds they sit on; the original is noted
   beside each. Hue and saturation are unchanged, only lightness.
   ========================================================================== */
:root {
  /* Surfaces */
  --page: #dbe9f4;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-soft: rgba(255, 255, 255, 0.7);
  --surface-veil: rgba(255, 255, 255, 0.45);
  --surface-ticker: rgba(255, 255, 255, 0.42);
  --nav-bg: rgba(219, 233, 244, 0.75);
  --input-bg: #f4f9fd;
  --dark: #01142f;
  --dark-card: #0b2545;

  /* Ink */
  --ink: #0b2545;
  --ink-card: #1e3852;
  --ink-body: #41586e;
  --ink-muted: #54697f;
  --ink-soft: #486b8d; /* mockup #5f87ad — 3.06:1 */
  --ink-faint: #4e6a82; /* mockup #8aa3b8 — 2.34:1 */
  --placeholder: #567593; /* mockup #9db2c6 — 2.06:1 */

  /* Accent */
  --cyan: #06718b; /* mockup #0891b2 — 2.98:1. Text, links, eyebrows, hover fills. */
  --cyan-bright: #22b8e6; /* Non-text only: dots, gradients, rules, focus ring. */

  /* On the dark accent panel */
  --on-dark: #f1f6fb;
  --on-dark-body: #c9dcec;
  --on-dark-soft: #7fb2d6;
  --on-dark-cyan: #46d3ff;
  --on-dark-accent: #8fd9f2;

  /* Lines */
  --border: rgba(11, 37, 69, 0.1);
  --border-faint: rgba(11, 37, 69, 0.07);
  --border-cyan: rgba(34, 184, 230, 0.14);
  --tint-cyan: rgba(34, 184, 230, 0.1);
  --tint-cyan-soft: rgba(6, 113, 139, 0.09);

  /* Type */
  --font-display: "Spectral", Georgia, serif;
  --font-ui: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Radii */
  --r-input: 14px;
  --r-card: 24px;
  --r-card-lg: 28px;
  --r-panel: 36px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-card: 0 14px 44px rgba(11, 37, 69, 0.09);
  --shadow-soft: 0 12px 40px rgba(11, 37, 69, 0.07);
  --shadow-chip: 0 8px 24px rgba(11, 37, 69, 0.07);
  --shadow-form: 0 20px 60px rgba(11, 37, 69, 0.11);
  --shadow-circle: 0 24px 60px rgba(11, 37, 69, 0.1),
    inset 0 0 0 1px rgba(34, 184, 230, 0.18);
  --shadow-circle-hover: 0 34px 80px rgba(8, 145, 178, 0.22),
    inset 0 0 0 1.5px rgba(34, 184, 230, 0.5);
  --shadow-lift: 0 24px 50px rgba(8, 145, 178, 0.14);
  --shadow-button: 0 18px 44px rgba(8, 145, 178, 0.28);

  /* Layout */
  --wrap: 1280px;
  --wrap-narrow: 1080px;
  --gutter: 40px;

  /* Motion */
  --t-fast: 0.25s;
  --t-base: 0.3s;
  --t-slow: 0.35s;
  --blob-a: 18s;
  --blob-b: 22s;
  --blob-c: 26s;
  --float: 14s;
  --ticker: 38s;
  --ease-out: cubic-bezier(0.2, 0.9, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  /* The nav is sticky; without this an anchor target lands underneath it. */
  scroll-padding-top: 96px;
}

html,
body {
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink-body);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(34, 184, 230, 0.25);
}

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

a:hover {
  color: var(--cyan);
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin: 0;
}

h1 em,
h2 em,
h3 em {
  font-style: italic;
  color: var(--cyan);
}

p {
  margin: 0;
}

strong {
  color: var(--ink);
  font-weight: 600;
}

/* The attribute alone loses to any class that sets display, so make it win. */
[hidden] {
  display: none !important;
}

/* Focus: never remove the indicator, only replace it. */
:focus-visible {
  outline: 3px solid var(--cyan-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 14px 22px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 600;
  border-radius: 0 0 var(--r-input) 0;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

/* ==========================================================================
   Shared primitives
   ========================================================================== */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.wrap-narrow {
  max-width: var(--wrap-narrow);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: 120px;
}

.section--tight {
  padding-block: 0 120px;
}

.section--flush {
  padding-block: 110px 40px;
}

.center {
  text-align: center;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow--tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border-radius: var(--r-pill);
  background: var(--tint-cyan);
  letter-spacing: 0.26em;
}

.eyebrow--badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--on-dark-accent);
  letter-spacing: 0.26em;
}

.dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan-bright);
  flex: none;
}

.lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-muted);
}

.lead--wide {
  max-width: 620px;
  margin-inline: auto;
}

.btn {
  display: inline-block;
  padding: 15px 34px;
  border: none;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform var(--t-base), box-shadow var(--t-base),
    background var(--t-base);
}

.btn:hover {
  background: var(--cyan);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-button);
}

.btn--lg {
  padding: 16px 40px;
}

.btn--ghost {
  padding: 14px 32px;
  background: transparent;
  border: 1.5px solid rgba(11, 37, 69, 0.18);
  color: var(--ink);
  font-weight: 500;
  transition: border-color var(--t-base), color var(--t-base);
}

.btn--ghost:hover {
  background: transparent;
  border-color: var(--cyan);
  color: var(--cyan);
  transform: none;
  box-shadow: none;
}

.chip {
  padding: 10px 22px;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: var(--shadow-chip);
  font-family: var(--font-ui);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-card);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}

/* ---- Vertical rhythm -----------------------------------------------------
   The mockup spaced every block with a one-off inline margin. These rules put
   the same spacing in one place, keyed to what actually follows what. */
.eyebrow {
  display: inline-block;
  margin-bottom: 28px;
}

h1 + .lead,
h2 + .lead,
h1 + .hero__lead {
  margin-top: 30px;
}

.lead + .lead {
  margin-top: 18px;
}

.chip-row + .lead {
  margin-top: 26px;
}

.grid-3 {
  margin-top: 48px;
}

.grid-3--roomy {
  margin-top: 64px;
}

.actions {
  margin-top: 34px;
}

.actions--lg {
  margin-top: 38px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  text-align: left;
}

.card {
  padding: 32px 30px;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.card__label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.card__text {
  margin-top: 14px;
  font-family: var(--font-ui);
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink-card);
  font-weight: 500;
}

.card--gradient {
  padding: 34px 30px;
  border-radius: var(--r-card-lg);
  background: linear-gradient(160deg, #ffffff, #f0f8fd);
  border: 1px solid var(--border-cyan);
  box-shadow: none;
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.card--gradient:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.card--gradient .card__text {
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-body);
  font-weight: 400;
}

/* ==========================================================================
   Decorative background
   Purely ornamental, so it is aria-hidden and pointer-events:none.
   ========================================================================== */
.decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.decor__blob {
  position: absolute;
  top: -140px;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(150, 218, 246, 0.42),
    transparent 65%
  );
  filter: blur(44px);
}

.decor__blob--left {
  left: -200px;
}

.decor__blob--right {
  right: -200px;
}

.decor__blob--mid {
  left: 30%;
  top: 1300px;
  width: 900px;
  height: 900px;
  background: radial-gradient(
    circle,
    rgba(200, 235, 250, 0.5),
    transparent 65%
  );
  filter: blur(60px);
}

.decor__flower {
  position: absolute;
  top: 340px;
  width: 640px;
  height: 580px;
  background: url("../img/botanic/flower.jpg") center / cover no-repeat;
  mix-blend-mode: multiply;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(
    60% 60% at 50% 50%,
    #000 40%,
    transparent 78%
  );
  mask-image: radial-gradient(60% 60% at 50% 50%, #000 40%, transparent 78%);
}

.decor__flower--right {
  right: -170px;
  transform: translateY(-50%);
}

/* The mirrored copy is this same file flipped in CSS, not a second download. */
.decor__flower--left {
  left: -170px;
  transform: translateY(-50%) scaleX(-1);
}

.decor__flourish {
  position: absolute;
  width: 480px;
  height: 480px;
  background: url("../img/botanic/flourish.jpg") center / contain no-repeat;
  mix-blend-mode: multiply;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(
    60% 60% at 50% 50%,
    #000 45%,
    transparent 80%
  );
  mask-image: radial-gradient(60% 60% at 50% 50%, #000 45%, transparent 80%);
  pointer-events: none;
}

.decor__flourish--r {
  right: -90px;
  top: 60px;
}

.decor__flourish--l {
  left: -90px;
  top: 60px;
  transform: scaleX(-1);
}

.decor__flourish--bl {
  left: -100px;
  bottom: -40px;
  width: 440px;
  height: 440px;
  opacity: 0.4;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 18px;
}

.progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan-bright), #7fd8f5);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-ui);
}

.logo:hover {
  color: inherit;
}

.logo__lockup {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.logo__name {
  font-weight: 700;
  font-size: 23px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.logo__group {
  font-size: 12px;
  letter-spacing: 0.42em;
  color: var(--ink-soft);
  font-weight: 500;
}

.logo__mark {
  display: block;
  flex: none;
}

.nav-back {
  font-family: var(--font-ui);
  font-size: 14.5px;
  color: var(--ink-body);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  z-index: 1;
  padding: 110px var(--gutter) 40px;
  text-align: center;
}

.hero__inner {
  max-width: 900px;
  margin: 0 auto;
}

.hero__title {
  margin-top: 34px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.06;
}

.hero__lead {
  margin: 30px auto 0;
  max-width: 600px;
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-muted);
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

/* Three overlapping circles. The negative margin is what makes them overlap;
   it is undone at the stacking breakpoint below. */
.pillars {
  position: relative;
  max-width: 1060px;
  margin: 80px auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.pillar {
  position: relative;
  z-index: 1;
  width: clamp(260px, 30vw, 330px);
  aspect-ratio: 1;
  margin-inline: -22px;
  padding: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #ffffff, #eaf5fc);
  box-shadow: var(--shadow-circle);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: translate var(--t-slow), scale var(--t-slow),
    box-shadow var(--t-slow);
}

.pillar:nth-child(2) {
  z-index: 2;
  background: radial-gradient(circle at 38% 32%, #ffffff, #e6f4fb);
}

/* The lift uses the standalone `translate`/`scale` properties rather than
   `transform`, because the idle float animation owns `transform` — an
   animation always beats a hover rule on the same property, so a
   transform-based hover would silently do nothing. These compose instead. */
.pillar:hover,
.pillar:focus-visible {
  z-index: 3;
  color: inherit;
  translate: 0 -10px;
  scale: 1.03;
  box-shadow: var(--shadow-circle-hover);
}

.pillar__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--cyan);
}

.pillar__title {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 27px;
  color: var(--ink);
  margin-top: 8px;
}

.pillar__blurb {
  font-size: 14.5px;
  color: var(--ink-muted);
  margin-top: 8px;
  line-height: 1.5;
  max-width: 210px;
}

.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 64px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  color: var(--ink-muted);
}

.scroll-cue__line {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--cyan-bright), transparent);
}

/* ==========================================================================
   Ticker
   WCAG 2.2.2: motion that starts automatically and runs for more than five
   seconds needs a pause mechanism. Hover is not one — it leaves keyboard and
   touch users with nothing — so there is a real button.
   ========================================================================== */
.ticker {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 18px 0;
  border-block: 1px solid rgba(11, 37, 69, 0.09);
  background: var(--surface-ticker);
}

.ticker__track {
  display: flex;
  width: max-content;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker__half {
  display: flex;
}

.ticker__item {
  padding: 0 28px;
}

.ticker__sep {
  color: var(--cyan);
}

/* The control is a checkbox and its label, not a scripted button, so it works
   with JavaScript disabled and needs no script at all. The checkbox stays in
   the layout (never display:none) so it remains focusable. */
.ticker__toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  z-index: 2;
  width: 30px;
  height: 30px;
  margin: -15px 0 0;
  opacity: 0;
  cursor: pointer;
  /* Both halves of the control are absent unless the banner actually moves,
     so a reduced-motion visitor never lands on an invisible focus stop. */
  display: none;
}

.ticker__pause {
  position: absolute;
  right: 10px;
  top: 50%;
  margin-top: -15px;
  z-index: 1;
  width: 30px;
  height: 30px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
}

.ticker__toggle:hover ~ .ticker__pause {
  border-color: var(--cyan);
  color: var(--cyan);
}

.ticker__toggle:focus-visible ~ .ticker__pause {
  outline: 3px solid var(--cyan-bright);
  outline-offset: 3px;
}

.ticker__pause svg {
  width: 12px;
  height: 12px;
  display: block;
}

.ticker__pause .icon-play {
  display: none;
}

.ticker__toggle:checked ~ .ticker__pause .icon-play {
  display: block;
}

.ticker__toggle:checked ~ .ticker__pause .icon-pause {
  display: none;
}

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

/* ==========================================================================
   Dark accent panel (about / track record)
   ========================================================================== */
.panel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: var(--r-panel);
  overflow: hidden;
  background: var(--dark);
}

.panel__flourish {
  position: absolute;
  right: -60px;
  top: -60px;
  width: 420px;
  height: 420px;
  background: url("../img/botanic/flourish-dark.jpg") center / contain no-repeat;
  opacity: 0.85;
  -webkit-mask-image: radial-gradient(
    60% 60% at 50% 50%,
    #000 45%,
    transparent 78%
  );
  mask-image: radial-gradient(60% 60% at 50% 50%, #000 45%, transparent 78%);
  pointer-events: none;
}

.panel__inner {
  position: relative;
  padding: 80px 70px;
  text-align: center;
}

.panel .eyebrow {
  color: var(--on-dark-cyan);
}

.panel__title {
  margin: 24px auto 0;
  max-width: 1000px;
  font-size: clamp(28px, 3.4vw, 40px);
  color: var(--on-dark);
}

.founders {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  margin-top: 44px;
  align-items: center;
  justify-content: center;
  text-align: left;
}

.founder {
  display: flex;
  align-items: center;
  gap: 20px;
}

.founder img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(70, 211, 255, 0.35);
}

.founder__name {
  font-family: var(--font-ui);
  font-size: 19px;
  font-weight: 600;
  color: var(--on-dark);
  letter-spacing: -0.01em;
}

.founder__role {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  margin-top: 7px;
}

.timeline {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 36px;
}

/* ==========================================================================
   Learn
   ========================================================================== */
.learn {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 70px;
  align-items: start;
  text-align: center;
}

.course {
  padding: 40px 38px;
  background: rgba(255, 255, 255, 0.86);
  border-radius: 26px;
  box-shadow: 0 18px 54px rgba(11, 37, 69, 0.1);
}

.course__partner {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.course__title {
  margin-top: 16px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.course__text {
  margin-top: 16px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  justify-content: center;
}

.course .btn {
  margin-top: 28px;
}

.tag {
  padding: 7px 15px;
  border-radius: var(--r-pill);
  background: var(--tint-cyan-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  text-transform: uppercase;
}

/* ==========================================================================
   Giving back
   ========================================================================== */
.giving__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.giving__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 170px;
  height: 170px;
  mix-blend-mode: multiply;
}

.giving__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 64px var(--gutter) 40px;
  border-top: 1px solid var(--border);
  background: var(--surface-veil);
}

.site-footer__top {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
}

.site-footer__blurb {
  margin-top: 16px;
  max-width: 280px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-faint);
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 14.5px;
}

.site-footer__bottom {
  max-width: var(--wrap);
  margin: 48px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border-faint);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-faint);
}

.site-footer__note {
  max-width: 640px;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--ink-faint);
}

.site-footer__note a {
  color: var(--cyan);
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: flex-start;
}

.form-card {
  flex: 1 1 500px;
  min-width: 0;
  padding: 44px 44px 40px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: var(--r-card-lg);
  box-shadow: var(--shadow-form);
}

.form {
  display: grid;
  gap: 22px;
}

.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 22px;
}

.field {
  display: grid;
  gap: 9px;
}

.field__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--input-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-input);
  transition: border-color var(--t-fast), background var(--t-fast);
}

.field textarea {
  line-height: 1.55;
  resize: vertical;
}

.field select {
  appearance: none;
  text-overflow: ellipsis;
  /* Room for the chevron drawn by the background image below. */
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23486b8d' stroke-width='1.75' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--placeholder);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--cyan-bright);
  background: #fff;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-muted);
}

.consent input {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  flex: none;
  accent-color: var(--cyan);
}

.consent a {
  color: var(--cyan);
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 4px;
}

.form__hint {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-faint);
}

/* The honeypot: a real field, hidden from people and from assistive tech, that
   only a scripted submission will fill in. Not display:none, because some bots
   skip those. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-aside {
  flex: 1 1 280px;
  min-width: 0;
  display: grid;
  gap: 18px;
  align-content: start;
}

.aside-card {
  padding: 30px 28px;
  background: var(--surface-soft);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-soft);
}

.aside-card__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.aside-card__text {
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-muted);
}

.aside-card--dark {
  background: linear-gradient(150deg, #0b2545, #123a63);
  box-shadow: 0 16px 46px rgba(11, 37, 69, 0.18);
}

.aside-card--dark .aside-card__label {
  color: var(--on-dark-cyan);
}

.aside-card--dark .aside-card__text {
  color: var(--on-dark-body);
}

.aside-card__link {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-ui);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--on-dark-accent);
}

.aside-card__link:hover {
  color: #fff;
}

/* ==========================================================================
   Thanks / 404
   ========================================================================== */
.notice {
  max-width: 620px;
  margin: 0 auto;
  padding: 60px 44px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: var(--r-card-lg);
  box-shadow: var(--shadow-form);
  text-align: center;
}

.notice__tick {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--tint-cyan-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
}

.notice__tick svg {
  width: 28px;
  height: 28px;
}

.notice h1 {
  margin-top: 26px;
  font-size: clamp(30px, 4vw, 40px);
}

.notice p {
  margin: 16px auto 0;
  max-width: 420px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-muted);
}

.notice .btn {
  margin-top: 30px;
}

/* ==========================================================================
   Legal
   ========================================================================== */
.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 46px 56px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: var(--r-card-lg);
  box-shadow: var(--shadow-card);
}

.legal h2 {
  margin-top: 56px;
  font-size: clamp(26px, 3vw, 34px);
  scroll-margin-top: 96px;
}

.legal h2:first-of-type {
  margin-top: 0;
}

.legal h3 {
  margin-top: 34px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.legal p {
  margin-top: 16px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-body);
}

.legal ol,
.legal ul {
  margin: 16px 0 0;
  padding-left: 22px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-body);
}

.legal li {
  margin-top: 10px;
}

.legal a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal .updated {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.legal .caps {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-muted);
}

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
}

.legal-toc a {
  padding: 9px 20px;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: var(--shadow-chip);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-card);
}

.legal-toc a:hover {
  color: var(--cyan);
}

/* ==========================================================================
   Motion
   Every animation is opt-in behind prefers-reduced-motion, and the reveal and
   progress effects are CSS scroll-driven rather than JavaScript — so they need
   no script, cannot flash unstyled content, and simply do not run on browsers
   that lack support.
   ========================================================================== */
@keyframes sg-blob {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -24px) scale(1.06);
  }
  66% {
    transform: translate(-20px, 18px) scale(0.97);
  }
}

@keyframes sg-blob-2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-36px, 22px) scale(1.08);
  }
}

@keyframes sg-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes sg-float-y {
  0%,
  100% {
    transform: translateY(-50%);
  }
  50% {
    transform: translateY(calc(-50% - 12px));
  }
}

@keyframes sg-float-y-flip {
  0%,
  100% {
    transform: translateY(-50%) scaleX(-1);
  }
  50% {
    transform: translateY(calc(-50% - 12px)) scaleX(-1);
  }
}

@keyframes sg-pulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

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

@keyframes sg-scroll-cue {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: translateY(12px);
    opacity: 0;
  }
}

@keyframes sg-reveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes sg-progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .decor__blob--left {
    animation: sg-blob var(--blob-a) ease-in-out infinite;
  }

  .decor__blob--right {
    animation: sg-blob-2 var(--blob-b) ease-in-out infinite;
  }

  .decor__blob--mid {
    animation: sg-blob var(--blob-c) ease-in-out infinite;
  }

  .decor__flower--right {
    animation: sg-float-y var(--float) ease-in-out infinite;
  }

  .decor__flower--left {
    animation: sg-float-y-flip var(--float) ease-in-out infinite 1.2s;
  }

  .pillar {
    animation: sg-float 7s ease-in-out infinite;
  }

  .pillar:nth-child(2) {
    animation: sg-float 8s ease-in-out infinite 0.8s;
  }

  .pillar:nth-child(3) {
    animation: sg-float 9s ease-in-out infinite 1.6s;
  }

  .dot-pulse {
    animation: sg-pulse 2s ease-in-out infinite;
  }

  .scroll-cue__line {
    animation: sg-scroll-cue 2.4s ease-in-out infinite;
  }

  .ticker__track {
    animation: sg-ticker var(--ticker) linear infinite;
  }

  .ticker__toggle:checked ~ .ticker__track {
    animation-play-state: paused;
  }

  .ticker__toggle {
    display: block;
  }

  .ticker__pause {
    display: flex;
  }

  /* Longhands, not the `animation` shorthand: the shorthand forces
     animation-duration to 0s, and a scroll-driven animation needs `auto` for
     its progress to be driven by the timeline instead of by the clock. */
  @supports (animation-timeline: view()) {
    .reveal {
      animation-name: sg-reveal;
      animation-duration: auto;
      animation-timing-function: var(--ease-out);
      animation-fill-mode: both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }

  @supports (animation-timeline: scroll()) {
    .progress {
      animation-name: sg-progress;
      animation-duration: auto;
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-timeline: scroll(root block);
    }
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  :root {
    --gutter: 24px;
  }

  .section {
    padding-block: 80px;
  }

  .section--tight {
    padding-block: 0 80px;
  }

  .section--flush {
    padding-block: 72px 32px;
  }

  .hero {
    padding-top: 72px;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .learn {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .panel__inner {
    padding: 56px 28px;
  }

  .panel__flourish {
    display: none;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .form-card {
    padding: 32px 24px 30px;
  }

  .legal {
    padding: 32px 24px 40px;
  }

  .contact-grid {
    gap: 32px;
  }
}

@media (max-width: 760px) {
  /* Undo the deliberate circle overlap: at this width the circles stack, and
     a negative margin between stacked items reads as a layout bug. */
  .pillar {
    width: min(300px, 82vw);
    margin-inline: 0;
    margin-block: -14px;
  }

  .pillars {
    margin-top: 56px;
  }

  .hero__title {
    font-size: clamp(32px, 9vw, 46px);
  }

  .founders {
    gap: 28px;
  }

  .site-footer__bottom {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .logo__group {
    display: none;
  }
}
