/* ==========================================================================
   Foresight Influencers — main stylesheet
   Part of the Summanity and Humanity Solutions family (shares the
   Aspiration Platform tokens: Fraunces display, system sans, indigo night).
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2");
}

:root {
  --paper: #F6F6FB;
  --surface: #FFFFFF;
  --surface-2: #EFEFF7;
  --ink: #16173A;
  --ink-2: #434568;
  --muted: #5B5D80;
  --line: #E2E2EF;
  --line-2: #CBCCE2;
  --brand: #312E81;
  --brand-2: #231F66;
  --brand-soft: #ECEBFB;
  --horizon: #A84A06;
  --horizon-soft: #FFF1D6;
  --horizon-glow: #F59E0B;
  --signal: #0F7B6B;
  --focus: #5B5BD6;
  --night: #14123C;
  --night-2: #201D5A;
  --night-line: rgba(255, 255, 255, .16);
  --on-night: #EEEFF8;
  --on-night-muted: #C6C7E6;
  --ok: #0F7B4B;
  --err: #B42318;

  --t-growth: #2F7D4A;
  --t-ai: #3550C8;
  --t-singularity: #6D45D6;
  --t-peace: #1D7F98;
  --t-collaboration: #946300;
  --t-innovation: #C2410C;
  --t-transition: #B03270;
  --t-other: #5B5D80;

  --r-lg: 18px;
  --r: 14px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(22, 23, 58, .04), 0 6px 20px rgba(22, 23, 58, .06);
  --shadow-lg: 0 2px 6px rgba(22, 23, 58, .05), 0 18px 48px rgba(22, 23, 58, .12);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --max: 1180px;
  --head: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0E0D2A;
    --surface: #17163A;
    --surface-2: #1D1C47;
    --ink: #EEEFF8;
    --ink-2: #C9CAE6;
    --muted: #A3A5C8;
    --line: #2A2960;
    --line-2: #3A3978;
    --brand: #8E8BF0;
    --brand-2: #A9A6FF;
    --brand-soft: #25235C;
    --horizon: #F5B04A;
    --horizon-soft: #3A2A12;
    --signal: #4CC9B4;
    --focus: #A9A6FF;
    --night: #0A0920;
    --night-2: #17163F;

    --t-growth: #6CC48C;
    --t-ai: #8EA2FF;
    --t-singularity: #B39BFF;
    --t-peace: #5EC4DC;
    --t-collaboration: #E6B655;
    --t-innovation: #FF9466;
    --t-transition: #F07AB2;
    --t-other: #A3A5C8;

    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .3), 0 18px 48px rgba(0, 0, 0, .45);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 16px); }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-2); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; color: var(--ink); }
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.35rem); line-height: 1.08; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--surface); padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { left: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(60px, 8vw, 104px) 0; }
.section--tight { padding: clamp(44px, 6vw, 72px) 0; }
.section--paper { background: var(--paper); }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase;
  color: var(--horizon); margin-bottom: 12px;
}
.lead { font-size: clamp(1.06rem, 1.5vw, 1.18rem); color: var(--ink-2); max-width: 44em; }
.section-head { max-width: 740px; margin-bottom: clamp(32px, 4.5vw, 48px); }
.section-head p { color: var(--ink-2); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 .95rem/1.2 var(--font);
  padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; min-height: 46px;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-2); color: #fff; }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: var(--surface); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--light { border-color: var(--night-line); color: var(--on-night); }
.btn--light:hover { border-color: #fff; color: #fff; }
.btn--horizon { background: var(--horizon-glow); color: #241400; }
.btn--horizon:hover { background: #FBBF24; color: #241400; }
.btn--sm { min-height: 38px; padding: 8px 16px; font-size: .88rem; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
@media (prefers-color-scheme: dark) {
  .btn--primary { color: #0E0D2A; }
  .btn--primary:hover { color: #0E0D2A; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--head);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 32px; height: 32px; flex: none; color: var(--brand); }
.site-footer .brand-mark { width: 30px; height: 30px; color: #C6C7E6; }
.brand-word { font-weight: 700; font-size: 1.06rem; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .9rem;
  padding: 8px 10px; border-radius: 8px;
}
.nav a:hover { color: var(--ink); background: var(--paper); }
.nav a[aria-current="page"] { color: var(--brand); }
.nav .btn { margin-left: 8px; padding: 10px 18px; min-height: 42px; color: #fff; font-size: .9rem; }
.nav .btn:hover { background: var(--brand-2); color: #fff; }
@media (prefers-color-scheme: dark) { .nav .btn, .nav .btn:hover { color: #0E0D2A; } }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); padding: 10px; margin-right: -10px; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--head) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 16px 20px; background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg); transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 13px 12px; font-size: 1rem; }
  .nav .btn { margin: 10px 0 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% 108%, color-mix(in srgb, var(--horizon-glow) 22%, transparent), transparent 65%),
    radial-gradient(800px 500px at 100% 0%, var(--brand-soft), transparent 70%),
    linear-gradient(180deg, var(--paper), var(--surface));
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 64px); align-items: center;
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(56px, 7vw, 96px);
}
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--horizon); }
.hero .lead { margin-bottom: 28px; }
.pill-note {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px;
  background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent);
  font-size: .86rem; font-weight: 600; color: var(--brand); text-decoration: none; margin-bottom: 22px;
}
.pill-note b { background: var(--brand); color: #fff; font-size: .74rem; padding: 3px 9px; border-radius: 999px; }
@media (prefers-color-scheme: dark) { .pill-note b { color: #0E0D2A; } }
.pill-note:hover { color: var(--brand-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 20px 40px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line-2); }
.hero-stats strong { display: block; font-family: var(--display); font-size: 1.75rem; line-height: 1.1; color: var(--ink); }
.hero-stats span { font-size: .85rem; color: var(--muted); }
@media (max-width: 940px) { .hero-inner { grid-template-columns: 1fr; } }

/* Signal-and-response card (hero) */
.pair-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg);
  padding: 22px;
}
.pair-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.pair-head h2 { font-family: var(--font); font-size: 1.1rem; font-weight: 700; margin: 0; letter-spacing: 0; }
.pair-head p { margin: 2px 0 0; font-size: .86rem; color: var(--muted); }
.pair-item { border: 1px solid var(--line); border-left: 4px solid var(--t, var(--brand)); border-radius: 12px; padding: 14px 16px; background: var(--surface); }
.pair-item .row { display: flex; justify-content: space-between; gap: 10px; font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.pair-item .tag { font-size: .74rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--paper); color: var(--ink-2); white-space: nowrap; }
.pair-item h3 { font-size: 1rem; font-weight: 600; margin: 0 0 6px; line-height: 1.35; }
.pair-item p { font-size: .88rem; color: var(--ink-2); margin: 0; }
.pair-link { display: flex; align-items: center; gap: 10px; margin: 8px 0 8px 18px; font-size: .78rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--horizon); }
.pair-link svg { width: 18px; height: 18px; }
.pair-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted); }
.illustrative { font-size: .74rem; font-weight: 650; color: var(--muted); }

/* ---------- Page head (inner pages) ---------- */
.page-head {
  padding: clamp(48px, 7vw, 88px) 0 clamp(36px, 5vw, 56px);
  background:
    radial-gradient(700px 300px at 92% 120%, color-mix(in srgb, var(--horizon-glow) 18%, transparent), transparent 65%),
    linear-gradient(180deg, var(--paper), var(--surface));
  border-bottom: 1px solid var(--line);
}
.page-head h1 { max-width: 20em; }
.page-head--night {
  background:
    radial-gradient(800px 360px at 90% 120%, rgba(245, 158, 11, .28), transparent 62%),
    radial-gradient(700px 400px at 0% 0%, rgba(109, 69, 214, .28), transparent 60%),
    linear-gradient(180deg, var(--night), var(--night-2));
  color: var(--on-night); border-bottom: 0;
}
.page-head--night h1 { color: #fff; }
.page-head--night .lead { color: var(--on-night-muted); }
.page-head--night .eyebrow { color: #FBBF24; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1020px) { .grid--4, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.section--paper .card { box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-2); font-size: .97rem; }
.card p:last-child { margin-bottom: 0; }
.icon-box {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--brand-soft); color: var(--brand);
}
.icon-box svg { width: 24px; height: 24px; }
.icon-box--horizon { background: var(--horizon-soft); color: var(--horizon); }
.card .example { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-2); font-size: .88rem; color: var(--muted); }

/* Two directions (signals in, solutions out) */
.two-way { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch; }
.two-way .card { padding: 30px; display: flex; flex-direction: column; }
.two-way .card > p:last-child { margin-top: auto; padding-top: 28px; margin-bottom: 0; }
.two-way .card h3 { font-family: var(--display); font-size: 1.5rem; font-weight: 600; }
.two-way ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.two-way li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--ink-2); font-size: .97rem; }
.two-way li svg { width: 18px; height: 18px; margin-top: 4px; color: var(--signal); }
.two-way .bridge { display: grid; place-items: center; color: var(--horizon); }
.two-way .bridge svg { width: 40px; height: 40px; }
.card--signal { border-top: 4px solid var(--brand); }
.card--solution { border-top: 4px solid var(--horizon-glow); }
@media (max-width: 860px) {
  .two-way { grid-template-columns: 1fr; }
  .two-way .bridge svg { transform: rotate(90deg); }
}

.voice-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; padding: 0; margin: 0; }
.voice-list li { list-style: none; padding: 20px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.voice-list .vi { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.voice-list .vi svg { width: 20px; height: 20px; }
.voice-list strong { display: block; font-size: 1rem; }
.voice-list span { color: var(--muted); font-size: .92rem; }
@media (max-width: 900px) { .voice-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .voice-list { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 0; margin: 0; }
.steps li { list-style: none; position: relative; }
.step-num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 14px;
}
@media (prefers-color-scheme: dark) { .step-num { color: #0E0D2A; } }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--ink-2); font-size: .95rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Theme tokens ---------- */
.t-growth { --t: var(--t-growth); }
.t-ai { --t: var(--t-ai); }
.t-singularity { --t: var(--t-singularity); }
.t-peace { --t: var(--t-peace); }
.t-collaboration { --t: var(--t-collaboration); }
.t-innovation { --t: var(--t-innovation); }
.t-transition { --t: var(--t-transition); }
.t-other { --t: var(--t-other); }

.theme-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.theme-tile {
  position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 190px;
  padding: 22px; border-radius: var(--r-lg); text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.theme-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--t) 45%, var(--line)); color: var(--ink); }
.theme-tile .ti { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--t); background: color-mix(in srgb, var(--t) 11%, transparent); }
.theme-tile .ti svg { width: 24px; height: 24px; }
.theme-tile h3 { font-size: 1.1rem; margin: 6px 0 0; }
.theme-tile p { font-size: .9rem; color: var(--muted); margin: 0; }
.theme-tile .more { margin-top: auto; font-size: .85rem; font-weight: 650; color: var(--t); }
.theme-tile--cta { background: var(--night); border-color: transparent; color: var(--on-night); justify-content: center; }
.theme-tile--cta h3 { color: #fff; }
.theme-tile--cta p { color: var(--on-night-muted); }
.theme-tile--cta .more { color: #FBBF24; }
.theme-tile--cta:hover { color: var(--on-night); }
@media (max-width: 1020px) { .theme-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .theme-tiles { grid-template-columns: 1fr; } .theme-tile { min-height: 0; } }

.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 650;
  padding: 3px 10px; border-radius: 999px; line-height: 1.45;
  color: var(--t, var(--ink-2)); background: color-mix(in srgb, var(--t, var(--ink-2)) 10%, transparent);
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip--plain { color: var(--ink-2); background: var(--paper); border: 1px solid var(--line); }
.chip--plain::before { display: none; }

/* ---------- Entry cards (signals & solutions) ---------- */
.entry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1020px) { .entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .entry-grid { grid-template-columns: 1fr; } }
.entry {
  display: flex; flex-direction: column; gap: 10px; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--t, var(--brand));
  border-radius: var(--r); padding: 20px 20px 16px;
}
.section--paper .entry { box-shadow: var(--shadow); }
.entry-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.entry-kind { font-size: .72rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.entry--solution .entry-kind { color: var(--horizon); }
.entry .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.entry h3 { font-size: 1.05rem; line-height: 1.35; margin: 0; }
.entry p { margin: 0; font-size: .93rem; color: var(--ink-2); }
.entry .callout { font-size: .9rem; padding: 10px 12px; border-radius: 10px; background: var(--paper); color: var(--ink-2); }
.entry .callout b { display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.entry .linked { font-size: .86rem; color: var(--muted); }
.entry .linked a { font-weight: 600; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.strength { display: inline-flex; gap: 3px; align-items: center; }
.strength i { width: 5px; height: 11px; border-radius: 2px; background: var(--line-2); display: inline-block; }
.strength i.on { background: var(--signal); }
.entry:target { box-shadow: 0 0 0 3px var(--focus); }

/* ---------- Directory filters ---------- */
.filters { display: grid; gap: 14px; margin-bottom: 26px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-label { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); min-width: 64px; }
.filter-btn {
  font: 550 .88rem/1 var(--font); padding: 8px 13px; border-radius: 999px; cursor: pointer; min-height: 36px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2);
}
.filter-btn:hover { border-color: var(--ink-2); }
.filter-btn[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.filter-btn[data-theme][aria-pressed="true"] { background: var(--t); border-color: var(--t); color: #fff; }
.search-input {
  width: 100%; font: 400 1rem var(--font); padding: 11px 16px 11px 42px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--ink);
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' width='18' height='18'%3E%3Cpath d='M9 15.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13Zm5-1.5 4 4' fill='none' stroke='%235B5D80' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 15px center;
}
.results-count { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.empty-state { text-align: center; padding: 44px 20px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 22px; }
.tabs a { padding: 8px 18px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.tabs a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* ---------- Frontier Voices ---------- */
.theme-nav-wrap { position: sticky; top: var(--head); z-index: 30; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.theme-nav { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.theme-nav::-webkit-scrollbar { display: none; }
.theme-nav a {
  flex: none; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; white-space: nowrap;
  font-size: .88rem; font-weight: 600; color: var(--ink-2); padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
}
.theme-nav a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--t); }
.theme-nav a:hover, .theme-nav a.is-active { border-color: var(--t); color: var(--t); }

.frontier { padding: clamp(52px, 7vw, 88px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--head) + 56px); }
.frontier:nth-of-type(even) { background: var(--paper); }
.frontier-head { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; margin-bottom: 30px; }
.frontier-icon { width: 68px; height: 68px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: var(--t); }
.frontier-icon svg { width: 36px; height: 36px; }
.frontier-kicker { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--t); margin-bottom: 4px; }
.frontier h2 { margin-bottom: 10px; }
.frontier-head p { color: var(--ink-2); font-size: 1.06rem; max-width: 46em; margin: 0; }
.frontier-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.frontier-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.frontier-col h3 { font-size: .76rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; color: var(--t); margin-bottom: 12px; }
.frontier-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.frontier-col li { position: relative; padding-left: 18px; font-size: .95rem; color: var(--ink-2); }
.frontier-col li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; border: 2px solid var(--t); }
.frontier-col--q li { font-family: var(--display); font-weight: 600; font-size: 1.02rem; color: var(--ink); padding-left: 0; }
.frontier-col--q li::before { display: none; }
.frontier-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.frontier-entries { margin-top: 26px; }
.frontier-entries:empty { display: none; }
.frontier-entries h3 { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
@media (max-width: 1020px) { .frontier-body { grid-template-columns: 1fr 1fr; } .frontier-col--q { grid-column: 1 / -1; } }
@media (max-width: 640px) {
  .frontier-body { grid-template-columns: 1fr; }
  .frontier-head { grid-template-columns: 1fr; gap: 14px; }
  .frontier-icon { width: 54px; height: 54px; border-radius: 14px; }
  .frontier-icon svg { width: 28px; height: 28px; }
}

/* ---------- Quote ---------- */
.quote { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 72px); align-items: center; }
.quote blockquote {
  margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.3;
  color: var(--ink); padding-left: 24px; border-left: 3px solid var(--horizon-glow);
}
@media (max-width: 860px) { .quote { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: 26px; padding: clamp(32px, 5.5vw, 64px);
  background:
    radial-gradient(560px 280px at 100% 110%, rgba(245, 158, 11, .42), transparent 70%),
    radial-gradient(500px 300px at 0% 0%, rgba(109, 69, 214, .3), transparent 70%),
    var(--night);
  color: var(--on-night); display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: var(--on-night-muted); margin: 0; }
.cta-band .actions { justify-content: flex-end; }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; } .cta-band .actions { justify-content: flex-start; } }

/* ---------- Family strip ---------- */
.family { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.family a { display: block; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); text-decoration: none; color: var(--ink); }
.family a:hover { border-color: var(--brand); color: var(--ink); }
.family strong { display: block; font-size: 1.02rem; margin-bottom: 4px; }
.family span { font-size: .9rem; color: var(--muted); }
@media (max-width: 760px) { .family { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
@media (max-width: 1000px) { .form-layout { grid-template-columns: 1fr; } }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow); }
fieldset { border: 0; padding: 0; margin: 0 0 34px; min-width: 0; }
fieldset[hidden] { display: none; }
legend { font-family: var(--display); font-weight: 600; font-size: 1.35rem; padding: 0; margin-bottom: 4px; color: var(--ink); }
.fieldset-intro { color: var(--muted); font-size: .93rem; margin-bottom: 18px; }
.step-badge { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font: 700 .86rem var(--font); margin-right: 8px; vertical-align: 3px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .field-grid { grid-template-columns: 1fr; } }
.field label, .field .label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: 6px; }
.field .req { color: var(--err); }
.field .hint { display: block; font-size: .84rem; color: var(--muted); margin-top: 5px; font-weight: 400; }
.field input[type="text"], .field input[type="email"], .field input[type="url"], .field select, .field textarea {
  width: 100%; font: 400 1rem/1.5 var(--font); color: var(--ink);
  padding: 11px 13px; border-radius: var(--r-sm); border: 1.5px solid var(--line-2); background: var(--surface);
}
.field textarea { min-height: 120px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 38px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='14' height='14'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%235B5D80' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 13px center;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 18%, transparent); }
.field.has-error input, .field.has-error select, .field.has-error textarea, .field.has-error .choice-grid { border-color: var(--err); }
.field .error-msg { display: none; color: var(--err); font-size: .85rem; margin-top: 5px; }
.field.has-error .error-msg { display: block; }
.char-count { float: right; font-weight: 400; font-size: .8rem; color: var(--muted); }

.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .choice-grid--3, .choice-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .choice-grid, .choice-grid--3, .choice-grid--4 { grid-template-columns: 1fr; } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.choice > span {
  display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--line-2); background: var(--surface);
}
.choice > span > b { font-weight: 650; font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.choice > span > small { color: var(--muted); font-size: .83rem; line-height: 1.35; }
.choice > span > b::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--t, var(--brand)); flex: none; }
.choice input:hover + span { border-color: var(--ink-2); }
.choice input:checked + span { border-color: var(--t, var(--brand)); background: color-mix(in srgb, var(--t, var(--brand)) 8%, var(--surface)); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice--big > span { padding: 18px; gap: 6px; }
.choice--big > span > b { font-family: var(--display); font-weight: 600; font-size: 1.2rem; }
.choice--big > span > b::before { display: none; }
.choice--big .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 4px; }
.choice--big .ico svg { width: 20px; height: 20px; }
.choice--solution .ico { background: var(--horizon-soft); color: var(--horizon); }
.choice--solution { --t: var(--horizon-glow); }

.range-wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; font-size: .85rem; color: var(--muted); }
.range-wrap input[type="range"] { width: 100%; accent-color: var(--signal); }
.range-value { font-weight: 650; color: var(--ink); }

.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .94rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 19px; height: 19px; margin: 3px 0 0; accent-color: var(--brand); }
.check + .check { margin-top: 12px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.legal-line { font-size: .84rem; color: var(--muted); margin-top: 16px; }

.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding-top: 4px; }
.form-status { display: none; margin-top: 18px; padding: 14px 16px; border-radius: 12px; font-size: .95rem; }
.form-status.is-error { display: block; background: color-mix(in srgb, var(--err) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--err) 40%, transparent); color: var(--ink); }
.form-success { display: none; text-align: center; padding: clamp(28px, 6vw, 56px) 16px; }
.form-success.is-visible { display: block; }
.form-success .ok-icon { width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); }
.form-success .ok-icon svg { width: 34px; height: 34px; }
.form-success code { font-size: .98rem; background: var(--paper); padding: 3px 8px; border-radius: 6px; }

.aside-stack { display: grid; gap: 16px; position: sticky; top: calc(var(--head) + 24px); }
@media (max-width: 1000px) { .aside-stack { position: static; } }
.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.aside-card h3 { font-size: 1.05rem; }
.aside-card ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: .93rem; }
.aside-card li + li { margin-top: 7px; }
.aside-card p { font-size: .93rem; color: var(--ink-2); }
.aside-card--night { background: var(--night); border-color: transparent; }
.aside-card--night h3 { color: #fff; }
.aside-card--night p { color: var(--on-night-muted); }
.aside-card--night a { color: #FBBF24; }

/* ---------- Prose ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }
.prose p, .prose li { color: var(--ink-2); }

.principles { counter-reset: p; display: grid; padding: 0; margin: 0; }
.principles li { list-style: none; counter-increment: p; display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 20px 0; border-top: 1px solid var(--line); }
.principles li::before { content: counter(p, decimal-leading-zero); font-family: var(--display); font-weight: 600; font-size: 1.5rem; color: var(--horizon); line-height: 1.1; }
.principles strong { display: block; font-size: 1.05rem; margin-bottom: 3px; }
.principles span { color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--on-night-muted); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer-lockup { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.footer-lockup .brand-word { color: #fff; }
.site-footer p { font-size: .93rem; max-width: 32em; }
.site-footer h2 { font-family: var(--font); font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.site-footer a { color: var(--on-night-muted); text-decoration: none; font-size: .93rem; overflow-wrap: anywhere; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--night-line); font-size: .84rem; }
.footer-legal p { max-width: none; font-size: .84rem; margin-bottom: 6px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Notices ---------- */
.notice {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; margin-bottom: 22px;
  background: var(--horizon-soft); color: var(--ink-2); font-size: .92rem;
}
.notice svg { width: 20px; height: 20px; flex: none; color: var(--horizon); margin-top: 1px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .theme-tile { transition: none; }
}

.center { text-align: center; }
.mt-lg { margin-top: 36px; }
