/* chaoscb.vn — "SIGNAL" design system v2
   Deep-indigo instrument surfaces · amber signal accent · generative order-from-chaos motif.
   Display: Space Grotesk · Body/UI: Manrope · Data: IBM Plex Mono. */

:root {
  --void: #070A14;
  --surface-1: #0C1120;
  --surface-2: #111828;
  --surface-3: #1A2338;
  --line: rgba(160, 178, 214, 0.13);
  --line-bright: rgba(160, 178, 214, 0.30);
  --text-hi: #EFF3FB;
  --text-mid: #ABB6CE;
  --text-low: #7A87A3;
  --signal: #FFB454;
  --signal-deep: #FF7A45;
  --signal-soft: rgba(255, 180, 84, 0.14);
  --grad-signal: linear-gradient(115deg, #FFC875 0%, #FFB454 40%, #FF7A45 100%);
  --ok: #6EE7A0;
  --err: #FF8D7E;
  --font-display: "Space Grotesk", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Consolas", monospace;
  --w: 1200px;
  --gutter: clamp(20px, 4vw, 44px);
  --header-h: 72px;
  --r: 14px;
  --r-sm: 9px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--void);
  color: var(--text-mid);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { max-width: 100%; display: block; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; }
a { color: inherit; }
button { font: inherit; }
::selection { background: rgba(255, 180, 84, 0.85); color: #14100A; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 3px; }

/* ---------- type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-hi);
  line-height: 1.04;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
h1.display { font-size: clamp(2.55rem, 6vw, 4.7rem); }
h2.display { font-size: clamp(1.8rem, 3.6vw, 2.9rem); letter-spacing: -0.018em; }
h3.display { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.25; }

.grad-text {
  background: var(--grad-signal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-low);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--grad-signal); flex: none; }
.eyebrow--bare::before { display: none; }

.lede { font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.7; color: var(--text-mid); max-width: 62ch; }
.muted { color: var(--text-mid); }
.small { font-size: 0.87rem; color: var(--text-low); }
.mono { font-family: var(--font-mono); font-size: 0.85em; letter-spacing: 0.02em; }
.text-hi { color: var(--text-hi); }

.prose { max-width: 66ch; display: grid; gap: 1.05em; }
.prose a, .link {
  color: var(--text-hi);
  text-decoration: none;
  background-image: linear-gradient(var(--signal), var(--signal));
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 100%;
  transition: color 0.2s ease;
}
.prose a:hover, .link:hover { color: var(--signal); }
.prose strong { color: var(--text-hi); font-weight: 700; }
.prose em { color: var(--text-hi); font-style: italic; }

/* ---------- layout ---------- */
.container { max-width: var(--w); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(76px, 10vw, 140px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.section--surface { background: var(--surface-1); }
.section--grid-bg {
  background-image: radial-gradient(rgba(160, 178, 214, 0.075) 1px, transparent 1px);
  background-size: 26px 26px;
}
.section-head { max-width: 760px; display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--flush { margin-bottom: 0; }

.grid-2 { display: grid; gap: clamp(28px, 4vw, 64px); grid-template-columns: 1fr; align-items: start; }
.grid-3 { display: grid; gap: clamp(18px, 2vw, 28px); grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.stack-16 { display: grid; gap: 16px; align-content: start; }
.stack-cards { display: grid; gap: clamp(18px, 2.5vw, 28px); }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-28 { margin-top: 28px; }
.pb-lg { padding-bottom: clamp(76px, 10vw, 140px); }
.prose-max { max-width: 68ch; }

/* hairline divider with signal tick */
.divider { border: 0; height: 1px; background: var(--line); position: relative; margin: 0; }
.divider::after { content: ""; position: absolute; left: 0; top: 0; width: 72px; height: 1px; background: var(--grad-signal); }

/* ---------- header ---------- */
/* Glass lives on a pseudo-element: backdrop-filter on the header itself would
   make it the containing block for the position:fixed mobile nav overlay. */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(7, 10, 20, 0.55);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: background 0.3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header.scrolled::before { background: rgba(7, 10, 20, 0.86); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-mark { flex: none; width: 34px; height: 34px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--text-hi);
  white-space: nowrap;
}
@media (max-width: 400px) { .brand-name { font-size: 0.7rem; letter-spacing: 0.1em; } }

.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.site-nav a:not(.lang-switch) {
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text-mid);
  padding: 8px 0;
  position: relative;
  transition: color 0.2s ease;
}
.site-nav a:not(.lang-switch)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 2px;
  height: 2px;
  background: var(--grad-signal);
  border-radius: 2px;
  transition: right 0.28s cubic-bezier(0.6, 0, 0.2, 1);
}
.site-nav a:not(.lang-switch):hover { color: var(--text-hi); }
.site-nav a:not(.lang-switch):hover::after { right: 0; }
.site-nav a[aria-current="page"] { color: var(--text-hi); }
.site-nav a[aria-current="page"]::after { right: 0; }

.lang-switch {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 1px solid var(--line-bright);
  padding: 7px 13px;
  border-radius: 100px;
  color: var(--text-mid);
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.lang-switch:hover { border-color: var(--signal); color: var(--signal); background: var(--signal-soft); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-bright);
  border-radius: 100px;
  padding: 9px 15px;
  cursor: pointer;
  color: var(--text-hi);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(7, 10, 20, 0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 8vh var(--gutter);
    gap: 4px;
    z-index: 55;
    overflow-y: auto;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.lang-switch) {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 6vw, 2.4rem);
    font-weight: 700;
    color: var(--text-hi);
    padding: 10px 0;
    width: 100%;
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open a:not(.lang-switch) { animation: menu-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .site-nav.is-open a:nth-child(1) { animation-delay: 0.03s; }
  .site-nav.is-open a:nth-child(2) { animation-delay: 0.08s; }
  .site-nav.is-open a:nth-child(3) { animation-delay: 0.13s; }
  .site-nav.is-open a:nth-child(4) { animation-delay: 0.18s; }
  .site-nav.is-open a:nth-child(5) { animation-delay: 0.23s; }
  .site-nav .lang-switch { margin-top: 28px; font-size: 0.9rem; padding: 10px 20px; }
  body.menu-open { overflow: hidden; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--signal); color: #14100A; padding: 10px 16px; z-index: 100; font-weight: 700; }
.skip-link:focus { left: 0; }

/* ---------- hero (home) ---------- */
.hero-field {
  position: relative;
  min-height: max(92vh, 640px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-h);
}
#field-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-field::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--void));
  pointer-events: none;
}
.hero-wrap { position: relative; z-index: 2; width: 100%; }
.hero-inner { position: relative; z-index: 2; display: grid; gap: 26px; max-width: 780px; padding-block: 60px; }
.flagship-copy { display: grid; gap: 20px; justify-items: start; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

.hero-readouts {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 5vw, 72px);
  padding-block: 22px;
  border-top: 1px solid var(--line);
}
.readout { display: grid; gap: 4px; }
.readout .k { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.2em; color: var(--text-low); text-transform: uppercase; }
.readout .v { font-family: var(--font-mono); font-size: 0.95rem; color: var(--signal); letter-spacing: 0.04em; }

/* page hero (inner pages) */
.page-head {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(56px, 9vw, 110px));
  padding-bottom: clamp(30px, 5vw, 56px);
  display: grid;
  gap: 18px;
  max-width: 820px;
}
.page-glow {
  position: absolute;
  inset: 0 0 auto 0;
  height: 420px;
  background:
    radial-gradient(600px 260px at 18% 0%, rgba(255, 150, 66, 0.13), transparent 70%),
    radial-gradient(900px 380px at 85% -10%, rgba(96, 130, 255, 0.10), transparent 70%);
  pointer-events: none;
}
.page-head .role-line { font-family: var(--font-mono); font-size: 0.84rem; color: var(--text-low); letter-spacing: 0.05em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.97rem;
  letter-spacing: 0.01em;
  padding: 14px 28px;
  border-radius: 100px;
  border: 1px solid transparent;
  background: var(--grad-signal);
  color: #17110A;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 34px -8px rgba(255, 150, 66, 0.45); filter: brightness(1.05); }
.btn:active { transform: none; }
.btn--ghost {
  background: transparent;
  border-color: var(--line-bright);
  color: var(--text-hi);
}
.btn--ghost:hover { border-color: var(--signal); color: var(--signal); box-shadow: 0 10px 30px -12px rgba(255, 150, 66, 0.3); background: var(--signal-soft); }
.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- cards ---------- */
.card {
  position: relative;
  background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
              linear-gradient(150deg, rgba(160, 178, 214, 0.28), rgba(160, 178, 214, 0.06) 45%, rgba(160, 178, 214, 0.03)) border-box;
  border: 1px solid transparent;
  border-radius: var(--r);
  padding: clamp(22px, 2.6vw, 32px);
  display: grid;
  gap: 14px;
  align-content: start;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.28s ease, background 0.28s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px -22px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 180, 84, 0.20);
  background: linear-gradient(var(--surface-3), var(--surface-3)) padding-box,
              linear-gradient(150deg, rgba(255, 180, 84, 0.55), rgba(255, 122, 69, 0.12) 50%, rgba(160, 178, 214, 0.05)) border-box;
}
.card h3 { color: var(--text-hi); }
.card p { font-size: 0.96rem; color: var(--text-mid); }
.cap-kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--signal);
}
.card .viz { height: 84px; margin-bottom: 4px; }
.card .viz svg { width: 100%; height: 100%; }

/* ---------- principles ---------- */
.principles { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
@media (min-width: 760px) { .principles { grid-template-columns: 1fr 1fr; } }
.principle { background: var(--surface-1); padding: clamp(22px, 3vw, 34px); display: grid; gap: 10px; transition: background 0.25s ease; }
.principle:hover { background: var(--surface-2); }
.principle .idx { font-family: var(--font-mono); font-size: 0.7rem; color: var(--signal); letter-spacing: 0.16em; }
.principle h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.06rem; color: var(--text-hi); }
.principle p { font-size: 0.93rem; color: var(--text-mid); max-width: 60ch; }

/* ---------- venture / flagship ---------- */
.flagship { display: grid; gap: clamp(30px, 4vw, 70px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 920px) { .flagship { grid-template-columns: 1.05fr 0.95fr; } }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  border: 1px solid rgba(255, 180, 84, 0.45);
  background: var(--signal-soft);
  padding: 7px 14px;
  border-radius: 100px;
  width: fit-content;
}
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 10px 1px rgba(255, 180, 84, 0.8); }
@media (prefers-reduced-motion: no-preference) { .status-pill::before { animation: pulse 2.4s ease-in-out infinite; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.venture-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 2.7rem); color: var(--text-hi); letter-spacing: -0.02em; }
.fact-list { list-style: none; display: grid; gap: 12px; }
.fact-list li { display: flex; gap: 14px; align-items: baseline; font-size: 0.97rem; color: var(--text-mid); }
.fact-list li::before { content: "→"; color: var(--signal); font-family: var(--font-mono); flex: none; }

/* stream visual: chaos cards resolving into a ranked column */
.stream-visual {
  position: relative;
  height: clamp(320px, 40vw, 430px);
  border-radius: var(--r);
  background: linear-gradient(var(--surface-1), var(--surface-1)) padding-box,
              linear-gradient(150deg, rgba(160, 178, 214, 0.25), rgba(160, 178, 214, 0.04)) border-box;
  border: 1px solid transparent;
  overflow: hidden;
}
.stream-visual .grid-bg { position: absolute; inset: 0; background-image: radial-gradient(rgba(160, 178, 214, 0.09) 1px, transparent 1px); background-size: 22px 22px; }
.s-card {
  position: absolute;
  width: 34%;
  height: 46px;
  border-radius: 9px;
  border: 1px solid var(--line-bright);
  /* painted "listing card": thumbnail square, two text lines, price pill */
  background:
    linear-gradient(rgba(160, 178, 214, 0.30), rgba(160, 178, 214, 0.30)) 10px 50% / 26px 26px,
    linear-gradient(rgba(160, 178, 214, 0.34), rgba(160, 178, 214, 0.34)) 46px 13px / 42% 6px,
    linear-gradient(rgba(160, 178, 214, 0.18), rgba(160, 178, 214, 0.18)) 46px 27px / 30% 5px,
    linear-gradient(rgba(160, 178, 214, 0.22), rgba(160, 178, 214, 0.22)) calc(100% - 10px) 50% / 17% 9px,
    var(--surface-3);
  background-repeat: no-repeat;
}
.s-card.lead {
  border-color: rgba(255, 180, 84, 0.65);
  box-shadow: 0 0 26px -6px rgba(255, 180, 84, 0.55);
  background:
    linear-gradient(135deg, #FFC875, #FF7A45) 10px 50% / 26px 26px,
    linear-gradient(rgba(238, 242, 250, 0.55), rgba(238, 242, 250, 0.55)) 46px 13px / 42% 6px,
    linear-gradient(rgba(160, 178, 214, 0.25), rgba(160, 178, 214, 0.25)) 46px 27px / 30% 5px,
    linear-gradient(135deg, rgba(255, 200, 117, 0.9), rgba(255, 122, 69, 0.9)) calc(100% - 10px) 50% / 17% 9px,
    var(--surface-3);
  background-repeat: no-repeat;
}
/* panel chrome: app bar with window dots */
.stream-visual::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 34px;
  background:
    radial-gradient(circle 4px at 18px 17px, rgba(255, 141, 126, 0.75) 4px, transparent 5px),
    radial-gradient(circle 4px at 34px 17px, rgba(255, 180, 84, 0.75) 4px, transparent 5px),
    radial-gradient(circle 4px at 50px 17px, rgba(110, 231, 160, 0.6) 4px, transparent 5px),
    linear-gradient(rgba(160, 178, 214, 0.07), rgba(160, 178, 214, 0.07));
  border-bottom: 1px solid var(--line);
  z-index: 1;
}
.stream-visual .tick { top: 44px; z-index: 1; }
.stream-visual .tick {
  position: absolute;
  top: 46px;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--text-low);
  text-transform: uppercase;
}
.tick--l { left: 16px; }
.tick--r { right: 16px; }
/* chaos-side cards */
.sc1 { top: 20%; left: 6%; transform: rotate(-7deg); opacity: 0.45; width: 30%; }
.sc2 { top: 46%; left: 2%; transform: rotate(5deg); opacity: 0.35; width: 36%; }
.sc3 { top: 70%; left: 9%; transform: rotate(-3deg); opacity: 0.55; width: 32%; }
.sc4 { top: 33%; left: 24%; transform: rotate(9deg); opacity: 0.5; width: 28%; }
.sc5 { top: 60%; left: 28%; transform: rotate(-10deg); opacity: 0.4; width: 33%; }
/* ranked-side cards */
.sr1, .sr2, .sr3, .sr4 { right: 6%; width: 40%; }
.sr1 { top: 18%; }
.sr2 { top: 37%; opacity: 0.85; }
.sr3 { top: 56%; opacity: 0.68; }
.sr4 { top: 75%; opacity: 0.5; }
@media (prefers-reduced-motion: no-preference) {
  .sc1, .sc2, .sc3, .sc4, .sc5 { animation: drift 5.5s ease-in-out infinite alternate; }
  .sc2 { animation-delay: 0.8s; }
  .sc3 { animation-delay: 1.6s; }
  .sc4 { animation-delay: 2.3s; }
  .sc5 { animation-delay: 3.1s; }
  @keyframes drift { to { translate: 10px -8px; } }
}
.h2-md { font-size: 1.6rem; }

/* ghost numerals give long card stacks rhythm (technology page) */
.stack-cards { counter-reset: cap; }
.stack-cards > .card { overflow: hidden; }
.stack-cards > .card::after {
  counter-increment: cap;
  content: "0" counter(cap);
  position: absolute;
  right: 18px;
  top: 2px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 5.2rem;
  line-height: 1;
  color: rgba(160, 178, 214, 0.07);
  pointer-events: none;
}

/* consistent full-width CTAs on small screens */
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}

/* ---------- system map ---------- */
.system-map { position: relative; }
.system-map svg { width: 100%; height: auto; }
.system-map text { font-family: var(--font-mono); letter-spacing: 0.08em; }
@media (prefers-reduced-motion: no-preference) {
  .map-flow { stroke-dasharray: 5 7; animation: flow 1.6s linear infinite; }
  @keyframes flow { to { stroke-dashoffset: -12; } }
}

/* ---------- info blocks / registry ---------- */
.info-block {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(20px, 2.5vw, 28px);
  display: grid;
  gap: 12px;
  align-content: start;
  font-size: 0.94rem;
}
.info-block h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.04rem; color: var(--text-hi); }
.info-block p { color: var(--text-mid); }

.registry-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 2.5vw, 28px); }
.registry-card .card-title { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-low); padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.registry-row { display: grid; gap: 3px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.registry-row:last-child { border-bottom: 0; padding-bottom: 0; }
.registry-row dt { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-low); font-weight: 600; }
.registry-row dd { font-family: var(--font-mono); font-size: 0.88rem; line-height: 1.55; color: var(--text-hi); overflow-wrap: anywhere; }

/* background rows (founder track record) */
.bg-rows { display: grid; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-1); overflow: hidden; }
.bg-row { display: grid; gap: 4px 24px; padding: 20px clamp(18px, 2.5vw, 28px); border-bottom: 1px solid var(--line); transition: background 0.25s ease; }
.bg-row:hover { background: var(--surface-2); }
.bg-row:last-child { border-bottom: 0; }
.bg-row .when { font-family: var(--font-mono); font-size: 0.78rem; color: var(--signal); white-space: nowrap; letter-spacing: 0.04em; }
.bg-row .what { font-weight: 700; font-size: 0.99rem; color: var(--text-hi); }
.bg-row .detail { font-size: 0.9rem; color: var(--text-mid); }
@media (min-width: 720px) {
  .bg-row { grid-template-columns: 185px 1fr; }
  .bg-row .what { grid-column: 2; }
  .bg-row .when { grid-row: span 2; padding-top: 3px; }
  .bg-row .detail { grid-column: 2; }
}

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: clamp(32px, 4vw, 72px); grid-template-columns: 1fr; }
@media (min-width: 880px) { .contact-grid { grid-template-columns: 1.15fr 0.85fr; } }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 700; font-size: 0.9rem; color: var(--text-hi); }
.field .hint { font-size: 0.8rem; color: var(--text-low); }
.field input, .field textarea {
  font: inherit;
  font-size: 0.98rem;
  padding: 13px 16px;
  border: 1px solid var(--line-bright);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--text-hi);
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-low); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px rgba(255, 180, 84, 0.18); }
.field textarea { min-height: 170px; resize: vertical; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 0.94rem; min-height: 1.4em; }
.form-status[data-state="error"] { color: var(--err); font-weight: 600; }
.form-status[data-state="ok"] { color: var(--ok); font-weight: 600; }

.email-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--signal);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 180, 84, 0.4);
  padding-bottom: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.email-line:hover { color: #FFC875; border-color: #FFC875; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: var(--surface-1); border-top: 1px solid var(--line); overflow: hidden; }
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 300px at 12% 110%, rgba(255, 150, 66, 0.16), transparent 65%),
    radial-gradient(800px 320px at 92% -20%, rgba(96, 130, 255, 0.10), transparent 65%);
  pointer-events: none;
}
.cta-band .container {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding-block: clamp(56px, 8vw, 100px);
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--void); font-size: 0.9rem; color: var(--text-mid); }
.footer-grid { display: grid; gap: clamp(30px, 4vw, 60px); grid-template-columns: 1fr; padding-block: clamp(48px, 6vw, 80px); }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 0.7fr 1.2fr; } }
.site-footer h4 { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-low); margin-bottom: 14px; font-weight: 500; }
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.site-footer a { color: var(--text-mid); text-decoration: none; transition: color 0.2s ease; }
.site-footer a:hover { color: var(--signal); }
.footer-brand { display: grid; gap: 16px; align-content: start; }
.footer-brand .brand-mark { width: 40px; height: 40px; }
.footer-legal-id { font-size: 0.8rem; line-height: 1.8; font-family: var(--font-mono); color: var(--text-low); }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 20px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 0.78rem; color: var(--text-low); }

/* ---------- legal ---------- */
.legal-section { display: grid; gap: 12px; padding-block: 30px; border-top: 1px solid var(--line); max-width: 76ch; }
.legal-section:first-of-type { border-top: 0; }
.legal-section h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--text-hi); }
.legal-section h3 { font-size: 1.02rem; font-weight: 700; color: var(--text-hi); }
.legal-section p, .legal-section li { font-size: 0.95rem; color: var(--text-mid); }
.legal-section ul { list-style: disc; padding-left: 20px; display: grid; gap: 7px; }
.def-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.def-table th, .def-table td { text-align: left; padding: 11px 14px; border: 1px solid var(--line); vertical-align: top; }
.def-table th { background: var(--surface-2); font-weight: 600; white-space: nowrap; color: var(--text-hi); }
.def-table td { font-family: var(--font-mono); font-size: 0.84rem; overflow-wrap: anywhere; color: var(--text-mid); }
.table-wrap { overflow-x: auto; border-radius: var(--r-sm); }

.note-box {
  border: 1px solid rgba(255, 180, 84, 0.35);
  background: var(--signal-soft);
  padding: 18px 22px;
  font-size: 0.94rem;
  color: var(--text-mid);
  border-radius: var(--r-sm);
  max-width: 68ch;
}
.note-box strong { color: var(--signal); }

/* ---------- scroll reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(0.2, 0.65, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.65, 0.2, 1); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal-group > * { opacity: 0; transform: translateY(26px); transition: opacity 0.65s cubic-bezier(0.2, 0.65, 0.2, 1), transform 0.65s cubic-bezier(0.2, 0.65, 0.2, 1); }
  .reveal-group.in > * { opacity: 1; transform: none; }
  .reveal-group.in > *:nth-child(2) { transition-delay: 0.09s; }
  .reveal-group.in > *:nth-child(3) { transition-delay: 0.18s; }
  .reveal-group.in > *:nth-child(4) { transition-delay: 0.27s; }
}

/* micro-viz animations */
@media (prefers-reduced-motion: no-preference) {
  .viz-pulse { animation: viz-pulse 3s ease-in-out infinite; transform-origin: center; }
  @keyframes viz-pulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
  .viz-dash { stroke-dasharray: 4 6; animation: flow 1.8s linear infinite; }
  .viz-rise { animation: viz-rise 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate; transform-origin: bottom; }
  @keyframes viz-rise { from { transform: scaleY(0.55); } to { transform: scaleY(1); } }
}
