/* Venture Habitat — shared styles. Mobile-first; four font files, no framework. */

@font-face { font-family: "Inter"; src: url("../fonts/inter-regular-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-semibold-latin.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-bold-latin.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-extrabold-latin.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --ink: #22201c;              /* Ink */
  --ink-soft: #5a554d;
  --page: #ffffff;
  --mint: #f3f1ec;          /* Limestone: full-bleed bands and quiet tiles */
  --mint-deep: #e9e5dc;     /* chip tracks, hairlines on limestone */
  --rule: #e2ddd3;
  --teal: #00796b;            /* Reef — primary */
  --reef-deep: #005a50;      /* Reef hover */
  --teal-deep: #6b3a2a;       /* Mahogany — anchor: footer, deep fields */
  --teal-ink: #e6f4f1;      /* secondary text on Reef and Mahogany */
  --gold: #d9a23b;            /* Pride Gold — lit stop, icons */
  --action: #d2461f;          /* Hibiscus — the one action */
  --action-hover: #b53a18;
    --gold-deep: #8c5e12;     /* the only gold allowed as text on light */
  --gold-light: #f8e2b0;    /* pale gold field */
  --gold-text: #fdefcf;     /* gold that reads as text on Reef and Mahogany */
  --error: #a3352b;
  --field: #8c8478;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --gutter: 20px;
  --inset: clamp(8px, 1.2vw, 16px);   /* how far colour cards sit in from the viewport */
  --max: 1180px;
  --pill: 999px;
  --r-card: clamp(22px, 1rem + 1.2vw, 32px);
  --r-tile: clamp(18px, 0.9rem + 0.8vw, 26px);
  --r-chip: 16px;
  --r-field: 12px;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.375rem, 1.15rem + 1vw, 1.75rem);
  --step-3: clamp(2rem, 1.45rem + 2.4vw, 3.25rem);
  --step-4: clamp(2.6rem, 1.6rem + 4.6vw, 4.75rem);

  --space-s: 0.75rem;
  --space-m: 1.25rem;
  --space-l: 2rem;
  --space-xl: clamp(3.5rem, 2.5rem + 4.5vw, 6.5rem);

  --lift: 0 1px 2px rgb(34 32 28 / 0.08), 0 18px 40px -22px rgb(34 32 28 / 0.45);
  --lift-soft: 0 1px 2px rgb(34 32 28 / 0.06), 0 12px 28px -18px rgb(34 32 28 / 0.35);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.55;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

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

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

h1, h2, h3 {
  margin: 0;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.25; letter-spacing: -0.012em; }

p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1em; }

a { color: var(--teal); text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
a:hover { color: var(--reef-deep); text-decoration-thickness: 2.5px; }

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

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 50;
  background: var(--ink);
  color: var(--page);
  padding: 0.6rem 1.1rem;
  border-radius: var(--pill);
}
.skip:focus { top: 0.75rem; }
.skip:hover { color: var(--gold-text); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Arrival note (?from=tenhabitat) ---------- */

.arrival { background: var(--ink); color: var(--page); font-size: var(--step--1); font-weight: 650; }
.arrival[hidden] { display: none; }
.arrival .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-s); min-height: 3rem; padding-block: 0.3rem; }
.arrival-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-right: -0.6rem;
  border: 0;
  border-radius: var(--pill);
  background: transparent;
  color: var(--page);
  cursor: pointer;
}
.arrival-close:hover { background: rgb(255 255 255 / 0.12); }
.arrival-close svg { width: 20px; height: 20px; }
.arrival :focus-visible { outline-color: var(--gold-text); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(255 255 255 / 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  transition: box-shadow 0.3s var(--ease-out);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--rule); }

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  min-height: 4.25rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0;
  line-height: 1;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.025em;
  text-transform: lowercase;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.wordmark .logo-mark { width: 2.1rem; height: auto; flex: none; margin-right: 0.55rem; }
.wordmark span + span { color: var(--teal); }
.wordmark:hover { color: var(--ink); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 1.1rem 0 0.95rem;
  border: 0;
  border-radius: var(--pill);
  background: var(--mint);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: var(--step--1);
  cursor: pointer;
}
.nav-toggle:hover { background: var(--mint-deep); }
.nav-toggle svg { width: 18px; height: 18px; }
.nav-toggle[aria-expanded="true"] .icon-open,
.nav-toggle[aria-expanded="false"] .icon-close { display: none; }

.site-nav ul { list-style: none; margin: 0; padding: 0; }

/* Without JS the nav is simply shown under the header bar. */
.site-nav { width: 100%; }
.js .site-nav {
  position: absolute;
  left: var(--inset); right: var(--inset); top: calc(100% + 4px);
  background: var(--page);
  border-radius: var(--r-tile);
  padding: 0.5rem var(--space-m) var(--space-m);
  box-shadow: var(--lift);
  display: none;
}
.js .site-nav.is-open { display: block; }
.no-js .site-header .wrap { flex-wrap: wrap; padding-bottom: 0.75rem; }
.no-js .nav-toggle { display: none; }

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.site-nav a[aria-current="page"] { color: var(--teal); }
.site-nav .nav-cta { margin-top: var(--space-m); }
.site-nav .nav-cta a { border: 0; }
.site-nav .btn,
.site-nav .btn[aria-current="page"],
.site-nav .btn:hover { color: var(--ink); width: 100%; }

@media (min-width: 760px) {
  .nav-toggle { display: none; }
  .site-nav,
  .js .site-nav {
    position: static;
    display: block;
    width: auto;
    padding: 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
  }
  /* Segmented pill, like an app's account switcher */
  .site-nav ul { display: flex; align-items: center; gap: 0.75rem; }
  .site-nav li:not(.nav-cta) { background: var(--mint); }
  .site-nav li:not(.nav-cta):first-child { border-radius: var(--pill) 0 0 var(--pill); padding-left: 4px; }
  .site-nav li:not(.nav-cta):nth-last-child(2) { border-radius: 0 var(--pill) var(--pill) 0; padding-right: 4px; margin-left: -0.75rem; }
  .site-nav li:not(.nav-cta) a {
    min-height: 40px;
    margin-block: 4px;
    padding-inline: 1.1rem;
    border: 0;
    border-radius: var(--pill);
    font-size: 0.9375rem;
  }
  .site-nav li:not(.nav-cta) a:hover { background: rgb(255 255 255 / 0.7); }
  .site-nav a[aria-current="page"] { background: var(--page); color: var(--ink); box-shadow: var(--lift-soft); }
  .site-nav .nav-cta { margin: 0 0 0 0.5rem; }
  .site-nav .btn { width: auto; }
  .no-js .site-header .wrap { flex-wrap: nowrap; padding-bottom: 0; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.8rem 1.6rem;
  border: 0;
  border-radius: var(--pill);
  background: var(--action);
  color: var(--page);
  font: inherit;
  font-weight: 750;
  font-size: var(--step-0);
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.btn svg { width: 20px; height: 20px; flex: none; transition: transform 0.25s var(--ease-out); }
.btn:hover { background: var(--action-hover); color: var(--page); text-decoration: none; }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }
.btn[disabled],
.btn[aria-disabled="true"] { opacity: 0.6; cursor: progress; }

.btn-small { min-height: 44px; padding: 0.55rem 1.15rem; font-size: 0.9375rem; }

.btn-quiet { background: var(--mint); color: var(--ink); }
.btn-quiet:hover { background: var(--mint-deep); }
.on-teal .btn-quiet { background: rgb(255 255 255 / 0.12); color: var(--page); }
.on-teal .btn-quiet:hover { background: rgb(255 255 255 / 0.2); color: var(--page); }

/* Small outline pill, for "learn more" on tiles */
.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0 1rem;
  border-radius: var(--pill);
  box-shadow: inset 0 0 0 1.5px var(--ink);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
}
.pill-link svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease-out); }
.pill-link:hover { background: var(--ink); color: var(--page); text-decoration: none; }
.pill-link:hover svg { transform: translateX(2px); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.actions:has(.text-action) { column-gap: 1.5rem; }

.text-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  color: var(--ink);
}
.text-action:hover { color: var(--teal); }
.on-teal .text-action, .hero .text-action { color: var(--page); }
.on-teal .text-action:hover, .hero .text-action:hover { color: var(--gold-text); }

/* ---------- Colour cards (hero, teal sections) ---------- */

.hero,
.section.on-teal {
  margin-inline: var(--inset);
  border-radius: var(--r-card);
  background: var(--teal);
  color: var(--page);
}
.on-teal a:not(.btn):not(.pill-link) { color: var(--gold-text); }
.on-teal :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: var(--gold-text); }

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

.hero { padding-block: clamp(2.5rem, 1.5rem + 5vw, 6rem); overflow: hidden; }
.hero-grid { display: grid; gap: clamp(2.5rem, 1.5rem + 4vw, 4rem); }
.hero h1 { max-width: 12ch; }
.hero h1 .turn { color: var(--gold-text); }
.hero .lede {
  margin-top: var(--space-m);
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--teal-ink);
  max-width: 36ch;
}
.hero .actions { margin-top: var(--space-l); }
.hero-note { margin-top: var(--space-m); font-size: var(--step--1); color: var(--teal-ink); max-width: 44ch; }
.hero-note a { color: var(--gold-text); }
.hero .pathway-panel { color: var(--ink); }

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
}
@media (max-width: 759px) {
  .hero .lede { font-size: 1.125rem; }
}

/* Page heads on inner pages that open on white */
.page-head { padding-block: clamp(2rem, 1.5rem + 3vw, 4.5rem) var(--space-l); }
.page-head h1 { max-width: 14ch; }
.page-head .lede {
  margin-top: var(--space-m);
  font-size: var(--step-1);
  color: var(--ink-soft);
  max-width: 42ch;
  line-height: 1.45;
}

/* ---------- Pathway (signature): an app card ---------- */

.pathway-panel {
  position: relative;
  background: var(--page);
  color: var(--ink);
  border-radius: var(--r-card);
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  box-shadow: var(--lift);
}
.pathway-panel h2 {
  font-size: 1.375rem;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-m);
}
.pathway-note { margin-top: var(--space-l); }

.pathway {
  --dot: 22px;
  --line: 3px;
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pathway li {
  position: relative;
  display: grid;
  grid-template-columns: var(--dot) 1fr;
  column-gap: 0.9rem;
  padding: 0.55rem 0.75rem 0.65rem;
  margin-inline: -0.75rem;
  border-radius: var(--r-chip);
}
.pathway li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: calc(0.75rem + var(--dot) / 2 - var(--line) / 2);
  top: calc(0.55rem + var(--dot) + 0.1rem);
  bottom: calc(-0.55rem - 0.1rem);
  width: var(--line);
  border-radius: 2px;
  background: #cfc6b6;
  transform-origin: top;
}
.pathway .dot {
  position: relative;
  z-index: 1;
  width: var(--dot);
  height: var(--dot);
  margin-top: 0.1rem;
  border-radius: 50%;
  background: var(--page);
  box-shadow: inset 0 0 0 var(--line) var(--teal);
}
.pathway .stage-name { display: block; font-weight: 750; font-size: var(--step-0); line-height: 1.3; }
.pathway .stage-text { display: block; color: var(--ink-soft); font-size: var(--step--1); line-height: 1.45; margin-top: 0.1rem; max-width: 36ch; }
.pathway .here { background: var(--mint); }
.pathway .here .dot { background: var(--gold); box-shadow: inset 0 0 0 var(--line) var(--ink), 0 0 0 5px rgb(217 162 59 / 0.35); }
.pathway .here .stage-name::after {
  content: attr(data-here);
  margin-left: 0.5rem;
  padding: 0.15rem 0.55rem;
  border-radius: var(--pill);
  background: var(--ink);
  color: var(--page);
  font-size: 0.75rem;
  font-weight: 700;
  vertical-align: 0.15em;
}

/* Floating "you're here" chip on the hero card */
.float-chip {
  position: absolute;
  top: -1.1rem;
  left: clamp(1rem, 0.5rem + 2vw, 1.75rem);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem 0.5rem 0.55rem;
  border-radius: var(--pill);
  background: var(--gold-light);
  color: var(--ink);
  font-size: var(--step--1);
  font-weight: 700;
  box-shadow: var(--lift-soft);
}
.float-chip svg { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--ink); color: var(--gold-text); }
.pathway-panel:has(.float-chip) { padding-top: clamp(2rem, 1.6rem + 1.5vw, 2.6rem); }

/* The one authored moment: the route fills in, stop by stop, once. */
@media (prefers-reduced-motion: no-preference) {
  .pathway.animate li:not(:last-child)::before {
    animation: route-grow 0.6s var(--ease-out) both;
    animation-delay: calc(var(--i) * 0.22s + 0.2s);
  }
  .pathway.animate .dot {
    animation: stop-light 0.5s var(--ease-out) both;
    animation-delay: calc(var(--i) * 0.22s);
  }
  @keyframes route-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  @keyframes stop-light { from { transform: scale(0.5); } }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--space-xl); }
.section.on-teal { margin-block: var(--inset); }
.section.mint { background: var(--mint); }
.section-head { max-width: 46rem; margin-bottom: var(--space-l); }
.section-head p { margin-top: var(--space-m); font-size: var(--step-1); color: var(--ink-soft); line-height: 1.45; }
.section-head .actions { margin-top: var(--space-l); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center p { margin-inline: auto; max-width: 40ch; }
.section-head.center .actions { justify-content: center; }
.on-teal .section-head p,
.on-teal .muted { color: var(--teal-ink); }

/* Split: heading left, content right on wide screens */
.split { display: grid; gap: var(--space-l); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-xl); align-items: start; }
  .split .section-head { margin-bottom: 0; position: sticky; top: 7rem; }
}

/* Steps: a real sequence, so numbers carry meaning */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0.75rem; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 0 1rem;
  padding: var(--space-m);
  border-radius: var(--r-tile);
  background: var(--mint);
}
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--page);
  font-size: var(--step-1);
  font-weight: 800;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}
.steps h3 { margin-bottom: 0.3rem; align-self: center; }
.steps p { color: var(--ink-soft); max-width: 58ch; }
.on-teal .steps li { background: rgb(255 255 255 / 0.08); }
.on-teal .steps li::before { background: var(--gold-light); color: var(--ink); }
.on-teal .steps p { color: var(--teal-ink); }
.steps.plain li { grid-template-columns: 1fr; }
.steps.plain li::before { content: none; }

/* Big statement line */
.statement {
  font-size: var(--step-3);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 18ch;
  text-wrap: balance;
}
.statement .gold { color: var(--gold-text); }

/* Closing band: one action */
.band .wrap { display: grid; gap: var(--space-l); justify-items: center; text-align: center; }
.band .statement { margin-inline: auto; }

/* Facts list (event details): rows on a white chip */
.facts { margin: 0; display: grid; }
.facts div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}
.facts div:last-child { border-bottom: 0; }
.facts dt { font-weight: 700; color: var(--ink-soft); font-size: var(--step--1); }
.facts dd { margin: 0; font-weight: 650; }
.pathway-panel h2 + .facts { margin-top: calc(var(--space-s) * -1); }

.tbc {
  display: inline-block;
  padding: 0.1rem 0.6rem;
  border: 1.5px dashed var(--gold-deep);
  border-radius: var(--pill);
  color: var(--gold-deep);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.5;
  vertical-align: 0.05em;
}
.on-teal .tbc { border-color: var(--gold-text); color: var(--gold-text); }

/* Audience cards */
.audiences { display: grid; gap: 0.75rem; }
.audience {
  display: grid;
  gap: var(--space-s);
  align-content: start;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  border-radius: var(--r-tile);
  background: var(--mint);
}
.audience h3 { font-size: var(--step-2); letter-spacing: -0.02em; }
.audience p { color: var(--ink-soft); max-width: 58ch; }
.audience strong { color: var(--ink); }
.mint .audience { background: var(--page); }
/* Audience cards with a media block read as product tiles */
.audience:has(.tile-media) { padding: 0; background: none; gap: 0; }
.audience .tile-media { aspect-ratio: 16 / 11; margin-bottom: var(--space-m); }
.audience:has(.tile-media) h3 { margin-bottom: 0.4rem; }

/* Hero composition of chips (partners) */
.hero-media {
  display: grid;
  place-items: center;
  padding: clamp(1.75rem, 1rem + 3vw, 3rem) clamp(1.25rem, 0.75rem + 2vw, 2.5rem);
  border-radius: var(--r-card);
  background: var(--gold-light);
  color: var(--ink);
}
.hero-media .chip-stack { list-style: none; margin: 0; padding: 0; width: min(100%, 22rem); }
@media (min-width: 900px) {
  .wrap:not(.split) > .audiences { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Homepage: Funded ticket ---------- */

.feature { display: grid; gap: var(--space-l); align-items: center; }
@media (min-width: 900px) { .feature { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-xl); } }
.feature .section-head { margin-bottom: 0; }
@media (max-width: 759px) { .feature .btn { width: 100%; text-align: center; text-wrap: balance; } }

.media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 16rem;
  padding: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  border-radius: var(--r-card);
  background: var(--gold-light);
  overflow: hidden;
}

.ticket {
  width: min(100%, 25rem);
  border-radius: var(--r-tile);
  background: var(--page);
  box-shadow: var(--lift);
  overflow: hidden;
}
.ticket-head { padding: 1.1rem 1.35rem 1rem; background: var(--teal); color: var(--page); }
.ticket-head strong { display: block; font-size: var(--step-1); font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; }
.ticket-head span { display: block; margin-top: 0.15rem; font-size: var(--step--1); color: var(--teal-ink); }
.ticket .facts { padding: 0.25rem 1.35rem 0.5rem; }
.ticket-tear {
  position: relative;
  height: 0;
  margin-inline: 1.35rem;
  border-top: 2px dashed var(--rule);
}
.ticket-tear::before,
.ticket-tear::after {
  content: "";
  position: absolute;
  top: -11px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--gold-light);
}
.ticket-tear::before { left: calc(-1.35rem - 10px); }
.ticket-tear::after { right: calc(-1.35rem - 10px); }
.ticket-foot { display: flex; align-items: center; gap: 0.6rem; padding: 0.95rem 1.35rem 1.1rem; font-size: var(--step--1); font-weight: 700; }
.ticket-foot svg { width: 22px; height: 22px; flex: none; color: var(--teal); }

/* ---------- Homepage: what's changed ---------- */

.change-grid { display: grid; gap: 0.75rem; }
@media (min-width: 900px) { .change-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.change {
  display: grid;
  gap: var(--space-s);
  align-content: start;
  padding: clamp(1.4rem, 1rem + 1.4vw, 2rem);
  border-radius: var(--r-card);
  background: var(--page);
}
.change h3 { font-size: var(--step-2); letter-spacing: -0.02em; margin-bottom: 0.25rem; }
.change.teal { background: var(--teal); color: var(--page); }
.change.teal p { color: var(--teal-ink); }
.change.teal strong { color: var(--page); }
.change.teal a { color: var(--gold-text); }
.change.teal :focus-visible { outline-color: var(--gold-text); }
.change.gold { background: var(--gold-light); }
.change.gold p { color: var(--ink); }
.change p { color: var(--ink-soft); }
.change strong { color: var(--ink); }
.icon-chip {
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  margin-bottom: 0.35rem;
  border-radius: var(--r-chip);
  background: var(--mint);
  color: var(--teal);
}
.icon-chip svg { width: 24px; height: 24px; }

/* ---------- Homepage: tiles (How it works, partners) ---------- */

.tiles-head { display: grid; gap: var(--space-m); justify-items: center; margin-bottom: var(--space-l); text-align: center; }
.tiles-head p { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.45; max-width: 40ch; }

.tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-l) 1rem;
}
/* Phones: a snap-scrolling row, like swiping through an app's cards */
@media (max-width: 899px) {
  .tiles.scroll {
    grid-auto-flow: column;
    grid-auto-columns: min(78%, 20rem);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1);
    padding: 0.25rem var(--gutter) 1rem;
    scrollbar-width: none;
  }
  .tiles.scroll::-webkit-scrollbar { display: none; }
  .tiles.scroll > li { scroll-snap-align: start; }
}
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.tile h3 { margin-top: var(--space-m); font-size: var(--step-2); letter-spacing: -0.02em; }
.tile p { margin-top: 0.4rem; color: var(--ink-soft); }
.tile-media {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  padding: 1rem;
  border-radius: var(--r-card);
  background: var(--teal);
  overflow: hidden;
}
.tile-media.gold { background: var(--gold-light); }
.tile-media.mint { background: var(--mint); }
.tile-media.deep { background: var(--teal-deep); }

/* App-style chips inside tiles: demonstration UI, not data */
.chip-stack { display: grid; gap: 0.6rem; width: min(100%, 15rem); }
.chip {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--r-chip);
  background: var(--page);
  color: var(--ink);
  box-shadow: var(--lift-soft);
  font-size: 0.875rem;
  line-height: 1.3;
}
.chip b { display: block; font-weight: 750; }
.chip small { display: block; color: var(--ink-soft); font-size: 0.8125rem; }
.chip-icon {
  display: grid;
  place-items: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  background: var(--mint);
  color: var(--teal);
}
.chip-icon svg { width: 18px; height: 18px; }
.chip-icon.gold { background: var(--gold); color: var(--ink); }
.chip-tag {
  justify-self: start;
  grid-column: 1 / -1;
  padding: 0.1rem 0.55rem;
  border-radius: var(--pill);
  background: var(--ink);
  color: var(--page);
  font-size: 0.75rem;
  font-weight: 700;
}
.chip b .chip-tag { display: inline-block; margin-left: 0.3rem; vertical-align: 0.1em; }
.chip .full { grid-column: 1 / -1; }
.chip-bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--mint-deep); overflow: hidden; }
.chip-bar span { display: block; height: 100%; width: var(--fill, 50%); border-radius: 3px; background: var(--teal); }
.chip.offset { margin-left: 1.5rem; }
.chip.offset-l { margin-right: 1.5rem; }
.faces { display: flex; }
.faces span {
  width: 1.9rem; height: 1.9rem;
  border-radius: 50%;
  border: 2px solid var(--page);
  background: var(--teal);
}
.faces span + span { margin-left: -0.55rem; }
.faces span:nth-child(2) { background: var(--gold); }
.faces span:nth-child(3) { background: var(--teal-deep); }
.faces span:nth-child(4) { background: var(--gold-light); }

/* Partner tiles: whole card is the link */
.partner-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
@media (min-width: 900px) { .partner-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.partner-tiles a {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: var(--space-s);
  height: 100%;
  padding: clamp(1.4rem, 1rem + 1.4vw, 2rem);
  border-radius: var(--r-card);
  background: var(--page);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.partner-tiles .row-name { font-size: var(--step-2); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; }
.partner-tiles .row-text { color: var(--ink-soft); }
.partner-tiles .pill-link { justify-self: start; margin-top: var(--space-s); }
.partner-tiles a:hover { box-shadow: var(--lift); transform: translateY(-2px); }
.partner-tiles a:hover .pill-link { background: var(--ink); color: var(--page); }

/* Promise */
.promise { text-align: center; }
.promise .statement { margin-inline: auto; max-width: none; font-size: var(--step-4); letter-spacing: -0.035em; line-height: 1.02; }
.promise .statement span { display: block; }
.promise .statement .turn { color: var(--teal); }
.promise-line { margin: var(--space-l) auto 0; font-size: var(--step-1); line-height: 1.45; color: var(--ink-soft); max-width: 38ch; }

/* ---------- Forms ---------- */

.form-shell {
  background: var(--page);
  border-radius: var(--r-card);
  padding: clamp(1.25rem, 0.9rem + 2vw, 2.5rem);
  box-shadow: var(--lift);
}

.form-progress { margin-bottom: var(--space-l); }
.form-progress p { font-size: var(--step--1); font-weight: 700; color: var(--ink-soft); }
.form-progress .bar {
  margin-top: 0.5rem;
  height: 8px;
  background: var(--mint-deep);
  border-radius: var(--pill);
  overflow: hidden;
}
.form-progress .bar span {
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  border-radius: var(--pill);
  background: var(--teal);
  transition: width 0.4s var(--ease-out);
}

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset + fieldset { margin-top: var(--space-xl); }
legend {
  padding: 0;
  font-size: var(--step-2);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--space-m);
}

.field { margin-top: var(--space-m); }
.field > label,
.field > .label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.hint { display: block; font-size: var(--step--1); color: var(--ink-soft); margin: -0.2rem 0 0.5rem; }
.optional { font-weight: 500; color: var(--ink-soft); }

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  min-height: 54px;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--field);
  border-radius: var(--r-field);
  background: var(--page);
  color: var(--ink);
  font: inherit;
  caret-color: var(--teal);
  transition: border-color 0.2s, box-shadow 0.2s;
}
textarea { min-height: 7.5rem; resize: vertical; line-height: 1.5; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%231b4d4a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.6rem;
}
input::placeholder, textarea::placeholder { color: #706a60; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-soft); }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgb(0 121 107 / 0.2);
}
[aria-invalid="true"] { border-color: var(--error) !important; }

/* Choices as full-width tappable rows */
.choices { display: grid; gap: 0.5rem; }
.choice {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.8rem;
  align-items: start;
  padding: 0.95rem 1.1rem;
  border: 1.5px solid transparent;
  border-radius: var(--r-chip);
  background: var(--mint);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.choice:hover { background: var(--mint-deep); }
.choice input {
  appearance: none;
  margin: 0.15rem 0 0;
  width: 22px; height: 22px;
  border: 2px solid var(--field);
  border-radius: 50%;
  background: var(--page);
}
.choice input[type="checkbox"] { border-radius: 6px; }
.choice input:checked { border-color: var(--teal); background: var(--teal); box-shadow: inset 0 0 0 4px var(--page); }
.choice input[type="checkbox"]:checked {
  box-shadow: none;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 10.5 3.2 3L15 7'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.choice input:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.choice:has(input:checked) { border-color: var(--teal); background: #e3f2ef; }
.choice small { display: block; color: var(--ink-soft); font-size: var(--step--1); margin-top: 0.1rem; }
.field > label.choice { display: grid; font-weight: 400; margin-bottom: 0; }

.field-error {
  display: none;
  margin-top: 0.45rem;
  color: var(--error);
  font-size: var(--step--1);
  font-weight: 700;
}
.field-error.is-shown { display: flex; gap: 0.4rem; align-items: center; }
.field-error svg { width: 16px; height: 16px; flex: none; }

.notice {
  display: none;
  margin-top: var(--space-m);
  padding: 1rem 1.2rem;
  border-radius: var(--r-chip);
  background: #fbf1dc;
  color: var(--ink);
  font-size: var(--step--1);
  line-height: 1.5;
}
.notice.is-shown { display: block; }
.notice strong { display: block; font-size: var(--step-0); margin-bottom: 0.2rem; }

.form-foot {
  margin-top: var(--space-l);
  padding-top: var(--space-l);
  border-top: 1px solid var(--rule);
  display: grid;
  gap: var(--space-m);
}
.form-foot .btn { width: 100%; }
@media (min-width: 600px) { .form-foot .btn { width: auto; justify-self: start; } }
.form-status { font-weight: 700; }
.form-status.is-error { color: var(--error); }

.hp { position: absolute; left: -9999px; }

/* Success state */
.sent { display: none; }
.is-sent .sent { display: block; }
.is-sent .form-body { display: none; }
.sent h2 { font-size: var(--step-3); margin-bottom: var(--space-m); }
.sent .tick {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--page);
  display: grid;
  place-items: center;
  margin-bottom: var(--space-l);
}
.sent .tick svg { width: 28px; height: 28px; }
.sent p { color: var(--ink-soft); max-width: 52ch; }
.sent .actions { margin-top: var(--space-l); }

/* Layout for form pages */
.form-layout { display: grid; gap: var(--space-l); padding-bottom: var(--space-xl); }
.form-aside { color: var(--ink-soft); font-size: var(--step--1); }
.form-aside h2 { font-size: var(--step-1); color: var(--ink); margin-bottom: var(--space-s); }
@media (min-width: 960px) {
  .form-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: start; gap: var(--space-xl); }
  .form-aside { position: sticky; top: 6rem; }
}
.section .form-layout { padding-bottom: 0; }

/* Forms sit on the page on phones: no card around them */
@media (max-width: 759px) {
  .form-shell { box-shadow: none; padding: 0; border-radius: 0; }
}

/* ---------- Mobile sticky action ---------- */

.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 15;
  padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom));
  background: rgb(255 255 255 / 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 -12px 24px -18px rgb(34 32 28 / 0.35);
  transform: translateY(110%);
  transition: transform 0.4s var(--ease-out);
}
.dock .btn { width: 100%; }
.dock.is-shown { transform: none; }
@media (min-width: 760px) { .dock { display: none; } }

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

.site-footer {
  margin-top: var(--inset);
  background: var(--teal-deep);
  color: var(--teal-ink);
  padding-block: var(--space-xl) var(--space-l);
  font-size: var(--step--1);
}
.site-footer .wordmark { color: var(--page); font-size: 1.6rem; }
.site-footer .wordmark .logo-mark { width: 2.5rem; }
.site-footer .wordmark span + span { color: var(--gold-text); }
.footer-grid { display: grid; gap: var(--space-l); }
.footer-lines { margin-top: var(--space-m); font-size: var(--step-1); font-weight: 700; color: var(--page); line-height: 1.3; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.site-footer a { color: var(--page); text-decoration: none; display: inline-flex; min-height: 40px; align-items: center; }
.site-footer a:hover { color: var(--gold-text); text-decoration: underline; }
.footer-base {
  margin-top: var(--space-xl);
  padding-top: var(--space-m);
  border-top: 1px solid rgb(255 255 255 / 0.16);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

/* Room for the dock on small screens */
@media (max-width: 759px) { body.has-dock .site-footer { padding-bottom: 6.5rem; } }

/* ---------- v4 refocus: the pathway from trading to bankable to investible ---------- */

/* Rebrand strip link */
.arrival a { color: var(--gold-light); font-weight: 700; }
.arrival a:hover { color: var(--page); }

/* Small label above a heading */
.eyebrow {
  margin-bottom: var(--space-s);
  font-size: var(--step--1);
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.eyebrow.on-light { color: var(--gold-deep); }
.section-head .eyebrow.on-light { margin-top: 0; font-size: var(--step--1); line-height: 1.4; }
.hero h1 { max-width: 14ch; }

.center-actions { justify-content: center; margin-top: var(--space-l); }
.section-head.wide { max-width: 52rem; }
.section-head.center.wide p { max-width: 56ch; }
.center-note { margin-top: var(--space-l); text-align: center; color: var(--ink-soft); }

.promise-sub { margin-top: var(--space-m); font-size: var(--step-1); font-weight: 750; color: var(--gold-deep); }
.band-line { max-width: 40ch; margin-inline: auto; font-size: var(--step-1); line-height: 1.45; color: var(--teal-ink); }

.change.on-mint { background: var(--mint); }

/* Pathway page: step tiles with what you do / what you get */
.tile-kicker { margin-top: var(--space-m); font-size: var(--step--1); font-weight: 750; color: var(--gold-deep); }
.tile-kicker + h3 { margin-top: 0.2rem; }
.steps-detail .tile p strong { color: var(--ink); }
.powered {
  display: inline-block;
  margin-top: var(--space-m);
  padding: 0.3rem 0.8rem;
  border-radius: var(--pill);
  background: var(--mint);
  font-size: var(--step--1) !important;
  font-weight: 700;
  color: var(--teal) !important;
}

/* Funded: four audiences, logo placeholders */
@media (min-width: 900px) {
  .wrap:not(.split) > .audiences.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.logo-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.logo-row li {
  display: grid;
  place-items: center;
  min-height: 5rem;
  flex: 1 1 15rem;
  padding: 1rem;
  border-radius: var(--r-tile);
  background: var(--page);
  text-align: center;
}

/* Fit check: parts and notes */
legend .part {
  display: block;
  margin-bottom: 0.2rem;
  font-size: var(--step--1);
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.legend-note { margin: -0.25rem 0 var(--space-m); color: var(--ink-soft); font-size: var(--step--1); max-width: 52ch; }
.form-note { color: var(--ink-soft); font-size: var(--step--1); max-width: 52ch; }

/* Fit check result */
.result-label { font-size: var(--step--1); font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: var(--space-s); }
.sent [data-result-block="trading"] h2 { font-size: var(--step-3); max-width: 18ch; }
.result-pathway { margin-top: var(--space-l); }
.result-pathway .done .dot { background: var(--teal); }
.result-pathway li:not(.here) .stage-name::after { content: none; }
.result-focus { margin-top: var(--space-l); }
.result-focus span { display: block; font-size: var(--step-0); }
.result-trackb { margin-top: var(--space-m); font-weight: 650; color: var(--ink) !important; }
.result-seat { margin-top: var(--space-l); padding-top: var(--space-l); border-top: 1px solid var(--rule); }
.result-seat h3 { margin-bottom: 0.4rem; }
.result-note { margin-top: var(--space-l); font-size: var(--step--1); }
[data-result-block][hidden] { display: none; }
