:root {
  /* Ground — light by default, redefined under prefers-color-scheme: dark below */
  --bg: #FFFFFF;
  --bg-alt: #F5F5F7;
  --panel: #FFFFFF;
  --line: #D6D6DA;
  --line-soft: #E8E8EC;
  --ink: #1D1D1F;
  --ink-soft: #6E6E73;
  --ink-faint: #A1A1A6;
  --nav-bg: rgba(255,255,255,0.78);

  /* Brand signal */
  --signal: #F0631B;
  --signal-deep: #B8480F;
  --signal-soft: #FFF0E6;

  /* Solid action fill (buttons, toasts) — tracks --ink so it flips with theme;
     only the text needs an explicit override in dark mode below. */
  --action-bg: var(--ink);
  --action-text: #FFFFFF;

  /* Engine spectrum — Conversation Engines (warm) */
  --e-voice:   #F0631B;
  --e-eval:    #1E9E62;
  --e-build:   #D69A1E;
  --e-analyze: #8A5CF6;
  --e-t2t:     #3169F5;
  --e-t2v:     #12B3A8;
  /* Trust Engines (cool-adjacent, distinct family so the two groups read apart) */
  --e-match:   #0E8F8F;
  --e-guard:   #C23B5A;
  --e-auto:    #5B6BD6;
  --e-rate:    #2E8B57;

  /* Dark section — authored, not a user theme toggle */
  --dk-bg: #08080A;
  --dk-panel: #1A1A1D;
  --dk-line: #2E2E32;
  --dk-text: #F5F5F7;
  --dk-text-soft: #98989D;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0B0D;
    --bg-alt: #17171A;
    --panel: #1A1A1D;
    --line: #38383D;
    --line-soft: #27272B;
    --ink: #F5F5F7;
    --ink-soft: #A3A3A8;
    --ink-faint: #6E6E73;
    --nav-bg: rgba(11,11,13,0.72);

    --signal-deep: #FF8A4D;
    --signal-soft: rgba(240,99,27,0.16);
    --action-text: #1D1D1F;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { margin: 0; padding: 0; background: var(--bg); }
body {
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--signal); color: #fff; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

h1, h2, h3, .display {
  font-family: "Instrument Sans", "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
  color: var(--ink);
}
.mono { font-family: "JetBrains Mono", ui-monospace, "SF Mono", monospace; font-variant-numeric: tabular-nums; }
.eyebrow {
  font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; display: flex; align-items: center; gap: 10px;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .wrap { padding: 0 22px; } }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .wrap-narrow { padding: 0 22px; } }

/* ================= Page loader ================= */
.page-loader {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 13px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-loader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.pl-mark { width: 9px; height: 9px; border-radius: 2px; background: var(--signal); animation: pl-pulse 1.1s ease-in-out infinite; }
.pl-phrase {
  font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint);
  transition: opacity 0.15s ease; min-height: 15px;
}
@keyframes pl-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.7); opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) {
  .pl-mark { animation: none; }
  .page-loader { transition: none; }
}

/* ================= Nav ================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--line-soft); box-shadow: 0 1px 0 rgba(0,0,0,0.02); }
.nav-inner { max-width: 1120px; margin: 0 auto; padding: 9px 32px; min-height: 56px; display: flex; align-items: center; justify-content: space-between; }
@media (max-width: 720px) { .nav-inner { padding: 9px 22px; } }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-decoration: none; }
.brand-row { display: flex; align-items: center; gap: 8px; line-height: 1; }
.brand .mark { width: 8px; height: 8px; border-radius: 2px; background: var(--signal); flex-shrink: 0; }
.brand-name { font-family: "Instrument Sans", sans-serif; font-weight: 700; font-size: 15px; color: var(--ink); letter-spacing: -0.01em; line-height: 1; }
.brand-tag {
  font-family: "JetBrains Mono", monospace; font-size: 10px; font-weight: 500;
  letter-spacing: 0.02em; color: var(--ink-faint); line-height: 1;
  margin-left: 16px; text-transform: none;
}
@media (max-width: 640px) { .brand-tag { display: none; } }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 13.5px; font-weight: 500; color: var(--ink-soft); }
.nav-links a { text-decoration: none; transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta { font-size: 13px; font-weight: 600; color: var(--action-text); background: var(--action-bg); padding: 8px 16px; border-radius: 999px; text-decoration: none; transition: background 0.15s; flex-shrink: 0; }
.nav-cta:hover { background: var(--signal-deep); }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 34px; height: 34px; margin-left: 14px; padding: 0; flex-shrink: 0;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line-soft);
    padding: 6px 22px 14px; box-shadow: 0 16px 28px rgba(0,0,0,0.06);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-top: 1px solid var(--line-soft); font-size: 15px; }
  .nav-links a:first-child { border-top: none; }
}

/* ================= Buttons ================= */
.btn {
  font-family: "Inter", sans-serif; font-weight: 600; font-size: 14.5px;
  padding: 13px 24px; border-radius: 999px; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid transparent; transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--action-bg); color: var(--action-text); }
.btn.primary:hover { background: var(--signal-deep); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink-soft); }

/* ================= Status badge ================= */
.status-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--signal-soft); color: var(--signal-deep);
  font-family: "JetBrains Mono", monospace; font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.04em; padding: 6px 13px 6px 10px; border-radius: 999px;
}
.status-badge .d { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.rec-dot { display: inline-flex; align-items: center; gap: 6px; color: var(--signal-deep); }
.rec-dot .d { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); animation: pulse 2s ease-in-out infinite; }

/* ================= Page hero (interior pages) ================= */
.page-hero { padding: 84px 0 56px; }
.page-hero h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.06; max-width: 760px; }
.page-hero .hero-sub { margin-top: 20px; max-width: 560px; font-size: 18px; color: var(--ink-soft); line-height: 1.55; }

/* ================= Section scaffolding ================= */
.section { padding: 96px 0; }
.section.tight { padding: 64px 0; }
.section.alt { background: var(--bg-alt); border-radius: 24px; }
.section-head { max-width: 640px; margin: 0 auto 60px; text-align: center; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head .eyebrow { justify-content: center; color: var(--signal-deep); margin-bottom: 16px; }
.section-head.left .eyebrow { justify-content: flex-start; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { margin-top: 16px; color: var(--ink-soft); font-size: 16.5px; }

/* Cheap, short reveal — opacity + tiny translate only (no layout shift,
   no large-distance transform) so it stays light on scroll-heavy pages. */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.45s ease, transform 0.45s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ================= Engine rows ================= */
.engine-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 20px; overflow: hidden; }
@media (max-width: 780px) { .engine-grid { grid-template-columns: 1fr; } }
.engine-card { background: var(--bg); padding: 34px 32px; }
.engine-tag { display: inline-flex; align-items: center; gap: 8px; font-family: "JetBrains Mono", monospace; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.engine-tag .sw { width: 7px; height: 7px; border-radius: 2px; flex-shrink: 0; }
.engine-card h3 { font-size: 19px; margin-bottom: 9px; }
.engine-card p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }
.engine-icon { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.engine-icon svg { width: 19px; height: 19px; }

.proof-strip { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 7px; }
.proof-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-alt); border: 1px solid var(--line-soft); border-radius: 8px; padding: 5px 9px; font-family: "JetBrains Mono", monospace; font-size: 10.5px; color: var(--ink-soft); }
.proof-chip .ok { color: var(--e-eval); font-weight: 700; }

/* Detail spotlight (the two flagship engines get a fuller treatment) */
.engine-spotlight { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 64px 0; }
.engine-spotlight.reverse .es-visual { order: 2; }
.engine-spotlight.reverse .es-copy { order: 1; }
@media (max-width: 860px) {
  .engine-spotlight { grid-template-columns: 1fr; gap: 30px; padding: 44px 0; }
  .engine-spotlight.reverse .es-visual, .engine-spotlight.reverse .es-copy { order: unset; }
}
.es-copy h3 { font-size: clamp(22px, 3vw, 27px); margin-bottom: 14px; }
.es-copy p { color: var(--ink-soft); font-size: 16px; line-height: 1.65; max-width: 480px; }
.es-copy p + p { margin-top: 12px; }
.es-visual {
  aspect-ratio: 4 / 3; border-radius: 20px; position: relative; overflow: hidden;
  background: var(--bg-alt); border: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: center;
}
.es-visual canvas { width: 100%; height: 100%; }

/* ================= Dark pipeline section ================= */
.dark-section { background: var(--dk-bg); color: var(--dk-text); padding: 100px 0; }
.dark-section .section-head h2 { color: var(--dk-text); }
.dark-section .section-head p { color: var(--dk-text-soft); }
.dark-section .eyebrow { color: var(--signal); }

.pipeline { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.pipe-row { display: flex; align-items: stretch; gap: 0; }
.pipe-node { flex: 1; border: 1px solid var(--dk-line); background: var(--dk-panel); border-radius: 14px; padding: 18px 16px; }
.pipe-node .n-tag { font-family: "JetBrains Mono", monospace; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dk-text-soft); margin-bottom: 8px; display: flex; align-items: center; gap: 7px; }
.pipe-node .n-tag .sw { width: 7px; height: 7px; border-radius: 2px; }
.pipe-node .n-title { font-family: "Instrument Sans", sans-serif; font-weight: 600; font-size: 14px; color: var(--dk-text); }
.pipe-connector { display: flex; align-items: center; justify-content: center; width: 36px; flex-shrink: 0; }
.pipe-connector svg { width: 100%; }
.flow-line { stroke-dasharray: 4 4; animation: flow 1.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -16; } }
@media (max-width: 780px) {
  .pipe-row { flex-direction: column; align-items: center; }
  .pipe-node { width: 100%; }
  .pipe-connector { width: 3px; height: 20px; margin: 2px 0; }
  .pipe-connector svg { height: 100%; display: block; }
}

.roadmap-note { font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: 0.02em; color: var(--dk-text-soft); border: 1px dashed var(--dk-line); border-radius: 10px; padding: 13px 18px; margin-top: 40px; }

/* ================= Proof log ================= */
.log { border: 1px solid var(--line-soft); border-radius: 16px; overflow: hidden; background: var(--bg); }
.log-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 20px; align-items: baseline; padding: 17px 22px; border-bottom: 1px solid var(--line-soft); }
.log-row:last-child { border-bottom: none; }
.log-industry { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--ink-faint); letter-spacing: 0.04em; }
.log-detail { font-size: 15px; color: var(--ink); }
.log-detail b { font-weight: 600; }
.log-status { font-family: "JetBrains Mono", monospace; font-size: 11.5px; color: var(--e-eval); font-weight: 600; white-space: nowrap; }
@media (max-width: 640px) { .log-row { grid-template-columns: 1fr; gap: 4px; } }

/* ================= Partner / RiseYou card ================= */
.partner-card { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; border: 1px solid var(--line-soft); border-radius: 24px; padding: 52px; background: linear-gradient(155deg, var(--bg-alt), var(--bg)); }
@media (max-width: 820px) { .partner-card { grid-template-columns: 1fr; padding: 36px 28px; } }
.partner-card h3 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 14px; }
.partner-card p { color: var(--ink-soft); font-size: 16px; max-width: 460px; }
.partner-mock { border: 1px solid var(--line-soft); border-radius: 16px; background: var(--panel); padding: 20px; box-shadow: 0 20px 50px -24px rgba(0,0,0,0.25); }
.partner-mock .rm-top { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.partner-mock .rm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.partner-mock .rm-name { font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--ink-faint); margin-left: 4px; }
.partner-mock .rm-line { height: 8px; border-radius: 4px; background: var(--bg-alt); margin-bottom: 8px; }
.partner-mock .rm-bubble { background: var(--signal-soft); color: var(--signal-deep); font-size: 12px; font-weight: 600; border-radius: 10px; padding: 9px 12px; display: inline-block; margin-top: 10px; }
.co-founded-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); background: var(--bg); border: 1px solid var(--line-soft); border-radius: 999px; padding: 6px 12px; margin-bottom: 18px; }
.co-founded-badge .avatars { display: flex; }
.co-founded-badge .avatars span { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--bg); margin-left: -6px; display: inline-block; }
.co-founded-badge .avatars span:first-child { margin-left: 0; background: var(--signal); }
.co-founded-badge .avatars span:last-child { background: var(--ink); }

/* ================= CTA ================= */
.cta-section { text-align: center; padding: 90px 0 104px; }
.cta-section h2 { font-size: clamp(28px, 4.5vw, 44px); max-width: 720px; margin: 0 auto; }
.cta-section p { margin: 18px auto 0; color: var(--ink-soft); max-width: 480px; }
.cta-row { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ================= Generic content cards (About/Team/Blog) ================= */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }
.content-card { border: 1px solid var(--line-soft); border-radius: 18px; padding: 26px; background: var(--bg); transition: border-color 0.15s, box-shadow 0.15s; }
.content-card:hover { border-color: var(--line); box-shadow: 0 16px 40px -28px rgba(0,0,0,0.25); }
.content-card .cc-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.content-card h4 { font-size: 16px; margin-bottom: 8px; }
.content-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }

.value-row { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line-soft); }
.value-row:first-child { border-top: none; }
@media (max-width: 640px) { .value-row { grid-template-columns: 1fr; gap: 8px; } }
.value-row .v-num { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--ink-faint); letter-spacing: 0.06em; padding-top: 3px; }
.value-row h4 { font-size: 18px; margin-bottom: 8px; }
.value-row p { color: var(--ink-soft); font-size: 15px; max-width: 520px; }

.discipline-card { border: 1px solid var(--line-soft); border-radius: 18px; padding: 28px; }
.discipline-card .d-num { font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--signal-deep); letter-spacing: 0.06em; margin-bottom: 14px; display: block; }
.discipline-card h4 { font-size: 17px; margin-bottom: 8px; }
.discipline-card p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }

/* ================= People (Team page leadership) ================= */
.people-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 640px; margin: 0 auto; }
@media (max-width: 620px) { .people-grid { grid-template-columns: 1fr; } }
.person-card { border: 1px solid var(--line-soft); border-radius: 18px; padding: 28px 26px; text-align: left; }
.person-head { display: flex; align-items: center; gap: 14px; }
.person-avatar {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: "Instrument Sans", sans-serif; font-weight: 700; font-size: 16px;
  color: #fff; letter-spacing: 0.02em;
}
.person-name { font-size: 16.5px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.person-role { font-family: "JetBrains Mono", monospace; font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-faint); }

.stat-row { display: flex; gap: 48px; flex-wrap: wrap; }
.stat-row .stat b { font-family: "Instrument Sans", sans-serif; font-size: clamp(28px, 4vw, 38px); display: block; color: var(--ink); }
.stat-row .stat span { font-size: 13px; color: var(--ink-soft); }

/* ================= Blog ================= */
.post-list { display: flex; flex-direction: column; }
.post-row { display: grid; grid-template-columns: 130px 1fr auto; gap: 24px; align-items: baseline; padding: 26px 0; border-top: 1px solid var(--line-soft); text-decoration: none; }
.post-row:first-child { border-top: none; }
@media (max-width: 640px) { .post-row { grid-template-columns: 1fr; gap: 6px; } }
.post-row .p-date { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--ink-faint); }
.post-row .p-title { font-size: 18px; font-weight: 600; color: var(--ink); font-family: "Instrument Sans", sans-serif; }
.post-row .p-excerpt { color: var(--ink-soft); font-size: 14.5px; margin-top: 5px; max-width: 560px; }
.post-row .p-tag { font-family: "JetBrains Mono", monospace; font-size: 10.5px; color: var(--signal-deep); background: var(--signal-soft); padding: 4px 9px; border-radius: 999px; white-space: nowrap; height: fit-content; }
.post-row:hover .p-title { color: var(--signal-deep); }

article.post { max-width: 680px; margin: 0 auto; padding: 90px 32px 100px; }
article.post .p-eyebrow { color: var(--signal-deep); margin-bottom: 20px; }
article.post h1 { font-size: clamp(30px, 4.5vw, 44px); line-height: 1.1; }
article.post .p-meta { margin-top: 18px; font-family: "JetBrains Mono", monospace; font-size: 12.5px; color: var(--ink-faint); }
article.post .p-body { margin-top: 40px; font-size: 17px; line-height: 1.75; color: var(--ink); }
article.post .p-body p { margin: 0 0 22px; }
article.post .p-body h2 { font-size: 23px; margin: 40px 0 16px; }
article.post .p-body blockquote { margin: 28px 0; padding-left: 20px; border-left: 3px solid var(--signal); color: var(--ink-soft); font-style: normal; font-size: 17px; }
article.post .back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); text-decoration: none; margin-bottom: 8px; }
article.post .back-link:hover { color: var(--ink); }

footer { border-top: 1px solid var(--line-soft); padding: 40px 0 44px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-bottom: 32px; margin-bottom: 28px; border-bottom: 1px solid var(--line-soft); }
@media (max-width: 780px) { .footer-top { grid-template-columns: repeat(2, 1fr); } }
.footer-top .f-brand { font-family: "Instrument Sans", sans-serif; font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.footer-top .f-tag { font-size: 13.5px; color: var(--ink-soft); max-width: 220px; line-height: 1.5; }
.footer-col h5 { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13.5px; color: var(--ink-soft); text-decoration: none; margin-bottom: 10px; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: "JetBrains Mono", monospace; font-size: 11.5px; color: var(--ink-faint); }
.footer-legal {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-soft);
  font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--ink-faint);
}
.footer-legal-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-legal-links a, .footer-legal-links button {
  font-family: inherit; font-size: 11px; color: var(--ink-faint);
  text-decoration: none; background: none; border: none; padding: 0; margin: 0;
  cursor: pointer; transition: color 0.15s;
}
.footer-legal-links a:hover, .footer-legal-links button:hover { color: var(--ink); }
.cookie-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  background: var(--action-bg); color: var(--action-text); font-family: "Inter", sans-serif; font-size: 12.5px;
  padding: 11px 20px; border-radius: 999px; box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  z-index: 200; max-width: 90vw; text-align: center; animation: toast-in 0.25s ease;
}
@keyframes toast-in { from { opacity: 0; transform: translateX(-50%) translateY(8px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
@media (prefers-reduced-motion: reduce) { .cookie-toast { animation: none; } }

/* ================= Contact page ================= */
.contact-card {
  max-width: 720px; margin: 0 auto;
  border: 1px solid var(--line-soft); border-radius: 28px; padding: 52px;
  background: var(--panel); box-shadow: 0 40px 90px -50px rgba(0,0,0,0.35);
}
@media (max-width: 640px) { .contact-card { padding: 30px 24px; } }

.contact-form { display: flex; flex-direction: column; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 9px; }
.field label {
  font-family: "JetBrains Mono", monospace; font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint);
}
.field label .optional { font-weight: 500; text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea {
  font-family: "Inter", sans-serif; font-size: 15px; color: var(--ink);
  background: var(--bg-alt); border: 1px solid transparent; border-radius: 12px;
  padding: 14px 16px; width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: var(--bg); border-color: var(--signal);
  box-shadow: 0 0 0 4px var(--signal-soft);
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.55; font-family: inherit; }
.field select { cursor: pointer; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236E6E73' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
@media (prefers-color-scheme: dark) {
  .field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23A3A3A8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
}
.contact-form .btn.primary {
  align-self: flex-start; border: none; cursor: pointer; font-size: 15px;
  padding: 14px 28px; display: inline-flex; align-items: center; gap: 9px;
}
.form-note { font-size: 12.5px; color: var(--ink-faint); line-height: 1.6; margin: 0; }
.form-status { font-size: 13.5px; font-weight: 600; min-height: 18px; margin: 0; }
.form-status.ok { color: var(--e-eval); }
.form-status.warn { color: #C08A00; }

.trust-grid { max-width: 720px; margin: 56px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 700px) { .trust-grid { grid-template-columns: 1fr; gap: 24px; } }
.trust-item .t-num { display: block; font-family: "JetBrains Mono", monospace; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; color: var(--signal-deep); margin-bottom: 10px; }
.trust-item h4 { font-size: 15px; margin-bottom: 6px; }
.trust-item p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; margin: 0; }
.trust-footer {
  max-width: 720px; margin: 36px auto 0; padding-top: 28px; border-top: 1px solid var(--line-soft);
  text-align: center; font-size: 13.5px; color: var(--ink-faint);
}
.trust-footer a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.trust-footer a:hover { border-color: var(--ink-soft); }
.prompt-hint { font-size: 12px; color: var(--ink-faint); margin: -2px 0 0; }
.prompt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.prompt-chip {
  font-family: "Inter", sans-serif; font-size: 12.5px; font-weight: 500;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink-soft); cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.prompt-chip:hover { border-color: var(--signal); color: var(--signal-deep); background: var(--signal-soft); }

/* ---------- Contact wizard: progress diagram + steps ---------- */
.wizard-progress { display: flex; align-items: center; margin-bottom: 40px; }
.wp-node { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; }
.wp-dot {
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 700; color: var(--ink-faint);
  background: var(--bg-alt); border: 1.5px solid var(--line); transition: all 0.25s ease;
}
.wp-label { font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-faint); transition: color 0.25s ease; white-space: nowrap; }
.wp-node.active .wp-dot { border-color: var(--signal); color: var(--signal-deep); background: var(--signal-soft); box-shadow: 0 0 0 4px var(--signal-soft); animation: dot-breathe 1.6s ease-in-out infinite; }
.wp-node.active .wp-label { color: var(--signal-deep); }
.wp-node.done .wp-dot { border-color: var(--signal); background: var(--signal); color: #fff; animation: dot-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.wp-node.done .wp-label { color: var(--ink); }
@keyframes dot-pop { 0% { transform: scale(0.6); } 55% { transform: scale(1.2); } 100% { transform: scale(1); } }
@keyframes dot-breathe { 0%, 100% { box-shadow: 0 0 0 4px var(--signal-soft); } 50% { box-shadow: 0 0 0 7px var(--signal-soft); } }
.wp-line { flex: 1; height: 2px; background: var(--line-soft); margin: 0 6px 20px; position: relative; overflow: visible; }
.wp-line::after { content: ''; position: absolute; inset: 0; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform 0.5s ease; border-radius: 2px; }
.wp-line.filled::after { transform: scaleX(1); }
.wl-pulse {
  position: absolute; top: 50%; left: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px;
  border-radius: 50%; background: var(--signal); box-shadow: 0 0 10px 2px var(--signal); opacity: 0;
}
.wp-line.filled .wl-pulse { animation: travel 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes travel { 0% { left: 0; opacity: 1; } 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@media (max-width: 560px) { .wp-label { display: none; } .wizard-progress { margin-bottom: 32px; } }
@media (prefers-reduced-motion: reduce) {
  .wp-node.active .wp-dot, .wp-node.done .wp-dot { animation: none; }
  .wl-pulse { display: none; }
}

.wizard-step { display: none; }
.wizard-step.active { display: block; animation: step-in-fwd 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.wizard-step.active.dir-back { animation-name: step-in-back; }
@keyframes step-in-fwd { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: translateX(0); } }
@keyframes step-in-back { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .wizard-step.active { animation: none; } }
.wizard-step h3 { font-size: 22px; margin-bottom: 8px; }
.wizard-sub { font-size: 14.5px; color: var(--ink-soft); margin: 0 0 24px; }
.wizard-step .field, .wizard-step .form-row { margin-bottom: 18px; }

.persona-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .persona-grid { grid-template-columns: 1fr; } }
.persona-card {
  position: relative; text-align: left; display: flex; flex-direction: column; gap: 10px;
  border: 1.5px solid var(--line); border-radius: 16px; padding: 20px;
  background: var(--bg); cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.persona-card:hover { border-color: var(--ink-soft); transform: translateY(-3px); box-shadow: 0 14px 28px -18px rgba(0,0,0,0.3); }
.persona-card:active { transform: translateY(-1px) scale(0.99); }
.persona-card.selected { border-color: var(--signal); background: var(--signal-soft); animation: card-pop 0.35s ease; }
@keyframes card-pop { 0% { transform: scale(1); } 45% { transform: scale(0.965); } 100% { transform: scale(1); } }
.persona-icon { width: 10px; height: 10px; border-radius: 3px; transition: transform 0.2s ease; }
.persona-card:hover .persona-icon { transform: scale(1.3); }
.persona-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.persona-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.persona-check {
  position: absolute; top: 14px; right: 14px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--signal); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; line-height: 1; opacity: 0; transform: scale(0.4);
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.persona-card.selected .persona-check { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .persona-card.selected { animation: none; } }

.wizard-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; }
.wizard-nav .btn { border: none; cursor: pointer; }
.wizard-nav .btn.ghost { background: none; border: 1px solid var(--line); color: var(--ink-soft); }
.wizard-nav .btn.ghost:hover { border-color: var(--ink-soft); color: var(--ink); }

.wizard-review { border: 1px solid var(--line-soft); border-radius: 16px; background: var(--bg-alt); padding: 22px 24px; margin-bottom: 24px; }
.review-row { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); opacity: 0; animation: row-in 0.4s ease forwards; }
.review-row:nth-child(1) { animation-delay: 0.05s; }
.review-row:nth-child(2) { animation-delay: 0.15s; }
.review-row:nth-child(3) { animation-delay: 0.25s; }
.review-row:last-child { border-bottom: none; }
.review-row .r-label { font-family: "JetBrains Mono", monospace; font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-faint); width: 90px; flex-shrink: 0; padding-top: 2px; }
.review-row .r-value { font-size: 14px; color: var(--ink); line-height: 1.55; }
.review-edit { font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--signal-deep); background: none; border: none; cursor: pointer; padding: 0; margin-top: 14px; }
@keyframes row-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .review-row { opacity: 1; animation: none; } }

.field textarea.flash { animation: flash-bg 0.6s ease; }
@keyframes flash-bg { 0% { background: var(--signal-soft); } 100% { background: var(--bg-alt); } }
@media (prefers-reduced-motion: reduce) { .field textarea.flash { animation: none; } }
