/* ==========================================================================
   CoCi — Trust, Built on Real Connections
   Shared design system
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT@9..144,300..700,0..100&family=Geist:wght@300..700&family=Geist+Mono:wght@400..500&display=swap');

/* --- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }

/* --- Tokens -------------------------------------------------------------- */
:root {
  /* Color */
  --ink:        #0B1220;
  --ink-soft:   #131C30;
  --ink-line:   rgba(255, 255, 255, 0.08);
  --ink-mute:   rgba(234, 234, 240, 0.62);
  --ink-text:   #EAEAF0;

  --paper:      #FAFAF6;
  --paper-2:    #F1F0EA;
  --paper-line: rgba(11, 18, 32, 0.10);
  --text:       #0B1220;
  --muted:      #5A6275;

  --mint:       #2c73d2;   /* trust signal */
  --mint-soft:  #95baf4;
  --gold:       #e68405;   /* human warmth */
  --gold-soft:  #f6ce94;

  /* Type */
  --display: 'Fraunces', 'Times New Roman', serif;
  --sans:    'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:    'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 128px);

  /* Radii / Motion */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* --- Base ---------------------------------------------------------------- */
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(15px, 1vw + 0.6rem, 17px);
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

/* --- Typography ---------------------------------------------------------- */
.display {
  font-family: var(--display);
  font-weight: 380;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
  letter-spacing: -0.02em;
  line-height: 1.04;
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
}
.display em {
  font-style: italic;
  font-weight: 360;
  font-variation-settings: 'opsz' 144, 'SOFT' 80;
}

h2.display { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.06; }
h3 {
  font-family: var(--display);
  font-weight: 420;
  font-variation-settings: 'opsz' 36, 'SOFT' 30;
  letter-spacing: -0.01em;
  font-size: clamp(1.25rem, 1.6vw + 0.6rem, 1.75rem);
  line-height: 1.2;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.dark .eyebrow { color: var(--ink-mute); }

.lede {
  font-size: clamp(1.05rem, 0.6vw + 0.95rem, 1.25rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 58ch;
}
.dark .lede { color: var(--ink-mute); }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #1a2440; }

.dark .btn-primary { background: var(--mint); color: var(--ink); }
.dark .btn-primary:hover { background: #7ee0c2; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--paper-line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--ink); }
.dark .btn-ghost {
  border-color: var(--ink-line);
  color: var(--ink-text);
}
.dark .btn-ghost:hover { border-color: var(--ink-text); }

/* --- Header / Nav -------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(250, 250, 246, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--paper-line); }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-weight: 460;
  font-variation-settings: 'opsz' 36, 'SOFT' 50;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.brand img {
  height: 32px;
  width: auto;
  display: block;
}
.brand span {
  transform: translateY(1px);
}


.nav-links {
  display: flex; align-items: center; gap: 28px;
  font-size: 14.5px;
  color: var(--muted);
}
.nav-links a {
  position: relative;
  padding: 6px 2px;
  transition: color .2s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--text); }
.nav-links a.is-active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--ink);
}

.nav-cta { display: inline-flex; gap: 10px; align-items: center; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--paper-line);
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; position: relative;
  width: 16px; height: 1px; background: var(--text);
  transition: transform .3s var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 16px; height: 1px; background: var(--text);
  transition: transform .3s var(--ease);
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after  { top:  5px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle.is-open span::after  { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu.is-open { display: flex; }
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px var(--gutter) 28px;
  border-top: 1px solid var(--paper-line);
  background: var(--paper);
  gap: 4px;
}
.mobile-menu a {
  padding: 14px 6px;
  font-size: 18px;
  font-family: var(--display);
  font-weight: 420;
  border-bottom: 1px solid var(--paper-line);
}
.mobile-menu a:last-of-type { border-bottom: 0; }
.mobile-menu .btn { margin-top: 18px; align-self: flex-start; }

/* --- Hero (Home) --------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--ink-text);
  overflow: hidden;
  padding-block: clamp(96px, 14vw, 180px) clamp(72px, 10vw, 140px);
}
.hero canvas#constellation {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0.55;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 80% 10%, rgba(98, 214, 181, 0.12), transparent 60%),
    radial-gradient(50% 50% at 10% 90%, rgba(232, 184, 111, 0.06), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.4fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: end;
}
.hero h1 { color: var(--ink-text); }
.hero h1 .accent { color: var(--mint); font-style: italic; }
.hero-sub {
  margin-top: 28px;
  font-size: clamp(1.05rem, 0.6vw + 0.95rem, 1.25rem);
  color: var(--ink-mute);
  max-width: 56ch;
  line-height: 1.5;
}
.hero-cta {
  margin-top: 36px;
  display: flex; gap: 12px; flex-wrap: wrap;
}
.hero-side {
  align-self: end;
  display: flex; flex-direction: column; gap: 18px;
  padding: 22px;
  border: 1px solid var(--ink-line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.02);
}
.hero-side .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); }
.hero-side .pulse {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-text);
}
.hero-side .pulse::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(98, 214, 181, 0.5);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(98, 214, 181, 0.55); }
  70%  { box-shadow: 0 0 0 14px rgba(98, 214, 181, 0); }
  100% { box-shadow: 0 0 0 0 rgba(98, 214, 181, 0); }
}
.hero-support {
  margin-top: 60px;
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mute);
}
.hero-support .line { flex: 0 0 60px; height: 1px; background: var(--ink-line); }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { display: none; }
}

/* --- Section heading ----------------------------------------------------- */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head .label-col .eyebrow { margin-bottom: 14px; }
.section-head .label-col .num {
  font-family: var(--display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 360;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  font-style: italic;
  color: var(--muted);
  opacity: 0.5;
}
.dark .section-head .label-col .num { color: var(--ink-mute); opacity: 0.5; }

@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .section-head .label-col .num { display: none; }
}

/* --- Section: Problem ---------------------------------------------------- */
.problem-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--paper-line);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--paper-line);
}
.problem-card {
  padding: 36px 28px;
  background: var(--paper);
  display: flex; flex-direction: column; gap: 12px;
  min-height: 220px;
}
.problem-card .index {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.problem-card h3 { font-style: italic; }
.problem-card p { color: var(--muted); font-size: 15px; }

@media (max-width: 760px) {
  .problem-cards { grid-template-columns: 1fr; }
}

/* --- Section: Solution / Statement (dark) -------------------------------- */
.dark {
  background: var(--ink);
  color: var(--ink-text);
}
.dark .text { color: var(--ink-text); }
.dark .muted { color: var(--ink-mute); }

.statement {
  position: relative;
  padding-block: clamp(80px, 10vw, 140px);
  overflow: hidden;
}
.statement::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 80% at 90% 50%, rgba(98, 214, 181, 0.08), transparent 70%);
  pointer-events: none;
}
.statement .container { position: relative; }
.statement-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 100px);
  align-items: center;
}
.statement .tagline {
  margin-top: 28px;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--ink-line);
  border-radius: var(--r-pill);
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute);
}
.statement .tagline .gold-dot {
  width: 8px; height: 8px; background: var(--gold); border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(232, 184, 111, 0.18);
}
.statement aside p {
  font-size: 1.05rem;
  color: var(--ink-mute);
  line-height: 1.65;
}
@media (max-width: 880px) {
  .statement-grid { grid-template-columns: 1fr; }
}

/* --- Concept Cards (4 core concepts) ------------------------------------- */
.concepts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.concept {
  position: relative;
  padding: 32px 28px;
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-md);
  transition: transform .35s var(--ease), border-color .25s var(--ease);
  overflow: hidden;
}
.concept::before {
  content: "";
  position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--mint), transparent);
  opacity: 0; transition: opacity .3s var(--ease);
}
.concept:hover { transform: translateY(-3px); border-color: var(--ink); }
.concept:hover::before { opacity: 1; }
.concept .glyph {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 13px;
  margin-bottom: 22px;
}
.concept:nth-child(2) .glyph { background: var(--mint); color: var(--ink); }
.concept:nth-child(3) .glyph { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.concept:nth-child(4) .glyph { background: var(--gold); color: var(--ink); }
.concept h3 { margin-bottom: 10px; }
.concept p { color: var(--muted); }

@media (max-width: 760px) {
  .concepts { grid-template-columns: 1fr; }
}

/* --- Steps timeline (How it works preview) ------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
}
.step {
  padding: 36px 24px;
  border-right: 1px solid var(--ink-line);
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
}
.step:last-child { border-right: 0; }
.step .num {
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 380;
  font-variation-settings: 'opsz' 144, 'SOFT' 60;
  color: var(--mint);
}
.step h3 { color: var(--ink-text); font-size: 1.15rem; }
.step p { color: var(--ink-mute); font-size: 14.5px; }
.step::after {
  content: "";
  position: absolute; right: -3px; top: 48px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-line);
}
.step:last-child::after { display: none; }

@media (max-width: 880px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(1), .step:nth-child(2) { border-bottom: 1px solid var(--ink-line); }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--ink-line); }
  .step:last-child { border-bottom: 0; }
  .step::after { display: none; }
}

/* --- Why CoCi (comparison) ---------------------------------------------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--paper-line);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 36px;
}
.compare > div { padding: 32px 28px; background: var(--paper); }
.compare .vs-coci { background: var(--ink); color: var(--ink-text); }
.compare h4 {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 14px;
  color: var(--muted);
}
.compare .vs-coci h4 { color: var(--mint); }
.compare p {
  font-family: var(--display);
  font-weight: 380;
  font-style: italic;
  font-size: clamp(1.2rem, 1.4vw + 0.6rem, 1.55rem);
  line-height: 1.3;
  font-variation-settings: 'opsz' 72, 'SOFT' 50;
}
.compare .legacy p { color: var(--muted); }

.highlight-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.highlight-card {
  padding: 24px 22px;
  border: 1px solid var(--paper-line);
  border-radius: var(--r-md);
  background: var(--paper);
}
.highlight-card .icon {
  display: inline-flex;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--mint-soft);
  color: var(--ink);
  margin-bottom: 16px;
}
.highlight-card h4 {
  font-family: var(--display);
  font-weight: 420;
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.highlight-card p { color: var(--muted); font-size: 14.5px; }

@media (max-width: 760px) {
  .compare { grid-template-columns: 1fr; }
  .highlight-cards { grid-template-columns: 1fr; }
}

/* --- Use cases grid ------------------------------------------------------ */
.usecases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--paper-line);
  border-left: 1px solid var(--paper-line);
}
.usecase {
  padding: 32px 28px;
  border-right: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
  background: var(--paper);
  position: relative;
  transition: background .25s var(--ease);
  min-height: 200px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
}
.usecase:hover { background: var(--paper-2); }
.usecase .marker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.usecase .marker::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}
.usecase h3 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 380;
  font-size: 1.55rem;
  font-variation-settings: 'opsz' 72, 'SOFT' 80;
}
.usecase p { color: var(--muted); font-size: 15px; }

@media (max-width: 880px) {
  .usecases { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .usecases { grid-template-columns: 1fr; }
}

/* --- Vision (large editorial) ------------------------------------------- */
.vision {
  text-align: center;
  padding-block: clamp(96px, 12vw, 160px);
  position: relative;
}
.vision::before {
  content: "";
  position: absolute; left: 50%; top: 70px;
  transform: translateX(-50%);
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(98, 214, 181, 0.18), transparent 70%);
  pointer-events: none;
}
.vision .eyebrow { color: var(--mint); margin-bottom: 28px; justify-content: center; display: inline-flex; }
.vision .display { font-style: italic; max-width: 18ch; margin-inline: auto; }
.vision .lede { margin-top: 28px; margin-inline: auto; text-align: center; max-width: 56ch; color: var(--ink-mute); }

/* --- CTA Band ------------------------------------------------------------ */
.cta-band {
  background: var(--paper-2);
  padding-block: clamp(72px, 9vw, 120px);
}
.cta-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
}
.cta-band h2 { max-width: 14ch; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .meta {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 12.5px; color: var(--muted);
  letter-spacing: 0.06em;
}
.cta-band .meta a { color: var(--text); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

@media (max-width: 760px) {
  .cta-band-inner { grid-template-columns: 1fr; }
}

/* --- Forms --------------------------------------------------------------- */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
}
.form .full { grid-column: 1 / -1; }
.field {
  display: flex; flex-direction: column; gap: 8px;
}
.field label {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-sm);
  font-size: 15.5px;
  color: var(--text);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; font-family: inherit; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: #fff;
}
.field .hint { font-size: 12.5px; color: var(--muted); }

.form-foot {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 6px;
}
.form-foot .note {
  font-family: var(--mono);
  font-size: 11.5px; letter-spacing: 0.12em; color: var(--muted);
}
.form-success {
  grid-column: 1 / -1;
  padding: 22px 24px;
  border: 1px dashed var(--mint);
  border-radius: var(--r-md);
  background: rgba(98, 214, 181, 0.08);
  font-family: var(--display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
  display: none;
}
.form-success.is-shown { display: block; }

@media (max-width: 720px) {
  .form { grid-template-columns: 1fr; }
}

/* --- Page-level hero (sub-pages) ---------------------------------------- */
.page-hero {
  background: var(--ink);
  color: var(--ink-text);
  padding-block: clamp(96px, 12vw, 150px) clamp(56px, 8vw, 96px);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 70% at 90% 0%, rgba(98, 214, 181, 0.10), transparent 70%),
    radial-gradient(40% 70% at 0% 100%, rgba(232, 184, 111, 0.06), transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .breadcrumb {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 36px;
}
.page-hero .breadcrumb a:hover { color: var(--mint); }
.page-hero .breadcrumb span { margin-inline: 8px; opacity: 0.5; }
.page-hero h1 { color: var(--ink-text); max-width: 18ch; }
.page-hero .lede { margin-top: 24px; max-width: 56ch; color: var(--ink-mute); }

/* --- Detail step rows (How it Works page) ------------------------------- */
.detail-step {
  display: grid;
  grid-template-columns: minmax(120px, 0.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 60px);
  padding-block: clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--paper-line);
  align-items: start;
}
.detail-step:last-child { border-bottom: 0; }
.detail-step .num {
  font-family: var(--display);
  font-style: italic;
  font-weight: 360;
  font-variation-settings: 'opsz' 144, 'SOFT' 80;
  font-size: clamp(3.6rem, 6vw, 5.6rem);
  color: var(--ink);
  line-height: 1;
  position: sticky;
  top: 100px;
}
.detail-step .num small {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 12px;
  font-style: normal;
  font-weight: 400;
}
.detail-step h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.6rem, 2vw + 0.6rem, 2.2rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.detail-step .body p { color: var(--muted); margin-bottom: 14px; }
.detail-step .signal-list {
  display: flex; flex-direction: column; gap: 10px;
  padding: 24px;
  background: var(--paper-2);
  border-radius: var(--r-md);
  margin-top: 8px;
}
.detail-step .signal-list .item {
  display: flex; gap: 12px;
  font-size: 14.5px;
}
.detail-step .signal-list .item::before {
  content: ""; width: 6px; height: 6px; margin-top: 9px; flex-shrink: 0;
  background: var(--mint); border-radius: 50%;
}

@media (max-width: 880px) {
  .detail-step { grid-template-columns: 1fr; }
  .detail-step .num { position: static; font-size: 3.4rem; }
}

/* --- About blocks -------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--paper-line);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.about-block {
  padding: 36px 32px;
  background: var(--paper);
  display: flex; flex-direction: column; gap: 14px;
  min-height: 240px;
}
.about-block .label {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
}
.about-block h3 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 380;
  font-size: 1.7rem;
  font-variation-settings: 'opsz' 72, 'SOFT' 60;
}
.about-block p { color: var(--muted); }
.about-block.featured { background: var(--ink); color: var(--ink-text); }
.about-block.featured .label { color: var(--mint); }
.about-block.featured h3 { color: var(--ink-text); }
.about-block.featured p { color: var(--ink-mute); }

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* --- Contact split ------------------------------------------------------- */
.contact-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.contact-info { padding-top: 8px; }
.contact-info .channel {
  padding: 18px 0;
  border-bottom: 1px solid var(--paper-line);
}
.contact-info .channel:first-of-type { border-top: 1px solid var(--paper-line); }
.contact-info .channel .label {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
  display: block; margin-bottom: 6px;
}
.contact-info .channel .value {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.4rem;
  font-weight: 400;
  font-variation-settings: 'opsz' 72, 'SOFT' 60;
}
.contact-info .channel .value:hover { color: var(--mint); }

@media (max-width: 880px) {
  .contact-split { grid-template-columns: 1fr; }
}

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--ink-text);
  padding-block: clamp(64px, 8vw, 96px) 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 60px);
  padding-bottom: 56px;
  border-bottom: 1px solid var(--ink-line);
}
.footer-top .brand-mark .display {
  font-size: 2.6rem; margin-bottom: 16px; max-width: 14ch;
  font-style: italic;
}
.footer-top p { color: var(--ink-mute); max-width: 32ch; }
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--ink-text); font-size: 15px; }
.footer-col a:hover { color: var(--mint); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px;
  font-family: var(--mono);
  font-size: 12px; color: var(--ink-mute);
  letter-spacing: 0.06em;
  flex-wrap: wrap; gap: 14px;
}
.footer-bottom .legal { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom .legal a:hover { color: var(--mint); }

@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* --- Reveal animation (progressive enhancement) ------------------------- */
/* Content is visible by default. JS adds .js to <html>, which enables the
   pre-animation hidden state. Once observed, .is-in reveals it. */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }
.js .reveal[data-delay="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero canvas#constellation { display: none; }
  * { animation: none !important; transition: none !important; }
}

/* --- Legal Pages --------------------------------------------------------- */
.legal-content {
  max-width: 800px;
  margin-inline: auto;
  padding-block: var(--section-y);
}
.legal-content h2 {
  font-family: var(--display);
  font-size: 1.8rem;
  margin-top: 48px;
  margin-bottom: 20px;
  color: var(--ink);
}
.legal-content h3 {
  font-size: 1.2rem;
  margin-top: 32px;
  margin-bottom: 12px;
}
.legal-content p {
  margin-bottom: 20px;
  color: var(--muted);
  line-height: 1.6;
}
.legal-content ul {
  margin-bottom: 24px;
  padding-left: 20px;
}
.legal-content li {
  margin-bottom: 12px;
  color: var(--muted);
  position: relative;
}
.legal-content li::before {
  content: "•";
  position: absolute; left: -20px;
  color: var(--mint);
}
