/* ============================================================
   smithiii.co — Fractional CTO. Single-theme, engineered dark.
   Concept: "single source of truth" — glass panels, aurora
   accents, mono data labels, a living node-network backdrop.
   ============================================================ */

:root {
  /* ground — near-black with a blue-violet bias, not pure black */
  --bg: #07080f;
  --bg-2: #0b0d18;
  --ink: #eef0f7;
  --muted: #9298b0;
  --faint: #5b6076;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.14);

  /* glass */
  --glass: rgba(150, 160, 220, 0.045);
  --glass-2: rgba(150, 160, 220, 0.08);

  /* signature aurora */
  --indigo: #6366f1;
  --fuchsia: #d946ef;
  --cyan: #22d3ee;
  --grad: linear-gradient(100deg, var(--indigo), var(--fuchsia) 55%, var(--cyan));
  --grad-btn: linear-gradient(100deg, var(--indigo) 0%, #7c74f0 45%, var(--cyan) 100%);

  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 64px);

  --f-display: "Clash Display", "General Sans", system-ui, sans-serif;
  --f-sans: "General Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance; margin: 0; }

/* ---------- background layers ---------- */
#net {
  position: fixed; inset: 0; z-index: -2;
  width: 100%; height: 100%; display: block;
}
body::before { /* deep radial glow anchoring the "source of truth" */
  content: ""; position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 12%, rgba(99, 102, 241, 0.22), transparent 70%),
    radial-gradient(50% 40% at 85% 60%, rgba(217, 70, 239, 0.12), transparent 70%),
    radial-gradient(45% 45% at 10% 80%, rgba(34, 211, 238, 0.10), transparent 70%),
    var(--bg);
}
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---------- layout helpers ---------- */
main { position: relative; z-index: 1; }
section { max-width: var(--maxw); margin: 0 auto; padding: clamp(70px, 11vw, 150px) var(--pad); }
.kicker { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; color: var(--cyan); text-transform: uppercase; display: inline-block; margin-bottom: 18px; }
.section-head { max-width: 46ch; margin-bottom: 54px; }
.section-head h2 { font-size: clamp(28px, 4.5vw, 46px); }
.section-note { color: var(--muted); margin-top: 16px; }
.section-lead { color: var(--muted); margin-top: 20px; font-size: clamp(15px, 1.7vw, 18px); line-height: 1.6; max-width: 52ch; }

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

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--pad);
  backdrop-filter: blur(14px);
  background: linear-gradient(var(--bg), rgba(7, 8, 15, 0.35));
  border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--f-display); font-size: 30px; font-weight: 700; letter-spacing: 0.12em; color: #fff; line-height: 1; }
.brand:hover { color: #fff; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 15px; }
.nav-links a { color: var(--muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 100px; color: var(--ink) !important; }
.nav-cta:hover { border-color: var(--cyan); }

/* ---------- hero (full-bleed video, content constrained) ---------- */
.hero { max-width: none; position: relative; overflow: hidden; padding: clamp(16px, 2.5vw, 40px) 0 clamp(44px, 7vw, 86px); min-height: min(84vh, 820px); display: flex; flex-direction: column; justify-content: center; }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.hero-video { position: absolute; inset: 0; z-index: 0; width: 100%; }
.hero-video video { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.hero-scrim { position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 8%, rgba(7,8,15,0.6) 46%, rgba(7,8,15,0.15)),
    linear-gradient(0deg, var(--bg), transparent 42%);
}
.scroll-cue { position: absolute; left: var(--pad); bottom: 26px; z-index: 2; width: 26px; height: 42px; border: 1.5px solid var(--line-2); border-radius: 14px; display: grid; justify-items: center; padding-top: 8px; }
.scroll-cue span { width: 3px; height: 8px; border-radius: 3px; background: var(--cyan); animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0%,100% { transform: translateY(0); opacity: 0.4; } 50% { transform: translateY(9px); opacity: 1; } }
.eyebrow { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 22px; }
.hero h1 { font-size: clamp(40px, 8vw, 92px); font-weight: 700; max-width: 16ch; }
.lede { font-size: clamp(17px, 2.1vw, 21px); color: var(--muted); max-width: 62ch; margin: 30px 0 0; }
.lede strong { color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-meta { display: flex; align-items: center; gap: 16px; margin-top: 46px; font-family: var(--f-mono); font-size: 12.5px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; }
.hero-meta i { width: 5px; height: 5px; border-radius: 50%; background: var(--faint); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; padding: 13px 24px; border-radius: 100px; border: 1px solid transparent; cursor: pointer; transition: transform 0.16s, box-shadow 0.16s, background 0.16s; }
.btn-primary { background: var(--grad-btn); color: #08090f; box-shadow: 0 8px 30px rgba(99, 102, 241, 0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 38px rgba(99, 102, 241, 0.42); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--cyan); background: var(--glass); }
.btn-lg { padding: 17px 34px; font-size: 17px; }

/* ---------- glass primitive ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  backdrop-filter: blur(6px);
  position: relative;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.glass:hover { border-color: var(--line-2); background: var(--glass-2); transform: translateY(-3px); }

/* ---------- approach ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards-3 .num { font-family: var(--f-mono); font-size: 13px; color: var(--cyan); }
.cards-3 h3 { font-size: 21px; margin: 14px 0 10px; }
.cards-3 p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* ---------- about / founder ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 0.85fr; gap: clamp(30px, 6vw, 66px); align-items: start; }
.about-copy h2 { font-size: clamp(28px, 4.5vw, 46px); margin-bottom: 24px; }
.about-copy p { color: var(--muted); font-size: clamp(16px, 1.9vw, 19px); margin: 0 0 20px; max-width: 62ch; }
.about-copy p:first-of-type { color: #c6cbdd; }
.about-origin { font-size: 15px !important; color: var(--faint) !important; border-left: 2px solid var(--line-2); padding-left: 16px; }
.dim-hint { color: var(--cyan); opacity: 0.75; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.astat { border: 1px solid var(--line); border-radius: 14px; background: var(--glass); backdrop-filter: blur(6px); padding: 20px; }
.astat b { display: block; font-family: var(--f-display); font-size: clamp(23px, 3vw, 33px); font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.astat span { font-family: var(--f-mono); font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- case studies ---------- */
.work { display: grid; gap: 22px; }
.case {
  --a: var(--cyan);
  border: 1px solid var(--line); border-radius: 22px;
  background: var(--glass); backdrop-filter: blur(6px);
  padding: clamp(26px, 4vw, 44px);
  position: relative; overflow: hidden;
}
.case[data-accent="cyan"] { --a: var(--cyan); }
.case[data-accent="fuchsia"] { --a: var(--fuchsia); }
.case[data-accent="indigo"] { --a: var(--indigo); }
.case::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--a); opacity: 0.8; }
.case::after { content: ""; position: absolute; top: -40%; right: -10%; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, var(--a), transparent 65%); opacity: 0.14; pointer-events: none; }
.case-logo { height: 26px; width: auto; max-width: 150px; object-fit: contain; object-position: left center; display: block; margin-bottom: 14px; filter: brightness(0) invert(1); }
.case-tag { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--a); text-transform: uppercase; margin-bottom: 14px; }
.case h3 { font-size: clamp(26px, 4vw, 40px); }
.case-sub { color: var(--muted); font-size: clamp(16px, 2vw, 19px); margin: 12px 0 0; max-width: 52ch; }

.metrics { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 0; margin: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.metrics li { display: flex; flex-direction: column; gap: 3px; }
.metrics b { font-family: var(--f-display); font-size: clamp(19px, 2.4vw, 27px); font-weight: 600; }
.metrics span { font-family: var(--f-mono); font-size: 11.5px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.04em; }

.case-body { color: var(--muted); max-width: 74ch; }
.case-body p { margin: 0 0 18px; }
.case-body p:first-child { color: #c3c8dc; } /* lead paragraph a touch brighter */
/* collapsed: show only the first paragraph */
.case:not(.open) .case-body p:not(:first-child) { display: none; }
.case:not(.open) .case-body { -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }

.stack { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 6px; }
.stack span { font-family: var(--f-mono); font-size: 12px; color: var(--muted); padding: 5px 11px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, 0.02); }
.case:not(.open) .stack { display: none; }

.case-toggle { margin-top: 22px; font-family: var(--f-mono); font-size: 13px; color: var(--a); background: none; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 0; letter-spacing: 0.03em; }
.case-toggle i { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform 0.2s; }
.case.open .case-toggle i { transform: rotate(-135deg); }

/* ---------- ventures ---------- */
.venture-groups { display: grid; gap: 44px; }
.vgroup-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.vgroup-head h3 { font-size: 15px; font-family: var(--f-mono); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.vgroup-head .rule { flex: 1; height: 1px; background: var(--line); }
.vgroup-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.vcard {
  display: flex; flex-direction: column; gap: 7px;
  padding: 26px 24px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--glass); backdrop-filter: blur(6px);
  transition: border-color 0.2s, transform 0.2s, background 0.2s; position: relative; overflow: hidden;
  min-height: 168px; text-align: left;
}
.vcard:hover { transform: translateY(-3px); border-color: var(--vc, var(--cyan)); background: var(--glass-2); }
.vcard .vlogo { height: 26px; width: auto; max-width: 130px; object-fit: contain; object-position: left center; display: block; margin-bottom: 12px; filter: brightness(0) invert(1); opacity: 0.92; }
.vcard .vmark { font-family: var(--f-display); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; padding-right: 26px; }
.vcard .vrole { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.vcard .vdesc { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin: 6px 0 0; }
.vcard .varrow { position: absolute; top: 22px; right: 20px; color: var(--faint); transition: color 0.2s, transform 0.2s; }
.vcard:hover .varrow { color: var(--vc, var(--cyan)); transform: translate(2px, -2px); }
.vcard .vdisabled { color: var(--faint); font-family: var(--f-mono); font-size: 11px; margin-top: auto; padding-top: 6px; }
.vcard .vpast {
  display: inline-block; margin-left: 9px; padding: 1px 7px; border-radius: 999px;
  font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; vertical-align: middle;
  color: var(--faint); border: 1px solid var(--line-2); background: rgba(255,255,255,0.03);
}
/* peptide hive card + break-away modal */
.vcard-hive { font: inherit; color: inherit; cursor: pointer; width: 100%; -webkit-appearance: none; appearance: none; }
.vcard-hive .vhive-badge {
  margin-top: auto; padding-top: 10px; font-family: var(--f-mono); font-size: 12px;
  color: var(--vc, var(--cyan)); transition: transform 0.2s;
}
.vcard-hive:hover .vhive-badge { transform: translateX(2px); }
.hive-card { max-width: 500px; text-align: left; }
.hive-eyebrow { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); display: block; margin-bottom: 6px; }
.hive-card h3 { font-family: var(--f-display); font-size: clamp(22px, 3vw, 28px); margin: 0 0 6px; }
.hive-card > p { color: var(--muted); margin: 0 0 20px; max-width: none; }
.hive-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hive-link {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255, 255, 255, 0.02); font-family: var(--f-mono); font-size: 13px; color: var(--ink);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.hive-link:hover { border-color: var(--lc, var(--cyan)); background: rgba(255, 255, 255, 0.05); transform: translateY(-2px); }
.hive-link .hive-pre { color: var(--muted); }
.hive-link .hive-suf { color: var(--lc, var(--cyan)); font-weight: 600; }
.hive-link .varrow { position: static; color: var(--faint); flex: none; }
.hive-link:hover .varrow { color: var(--lc, var(--cyan)); }

/* ---------- impact band ---------- */
.impact { padding-top: 0; }
.impact-row { display: flex; flex-wrap: nowrap; gap: 14px clamp(18px, 2.5vw, 36px); padding: 28px clamp(22px, 3.5vw, 38px); border: 1px solid var(--line); border-radius: 18px; background: var(--glass); backdrop-filter: blur(6px); }
.stat { display: flex; flex-direction: column; gap: 4px; flex: 1 1 0; min-width: 0; }
.stat b { font-family: var(--f-display); font-size: clamp(16px, 1.9vw, 25px); font-weight: 600; white-space: nowrap; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-family: var(--f-mono); font-size: 11.5px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- manifesto divider ---------- */
.manifesto { text-align: center; padding-top: clamp(40px, 8vw, 90px); padding-bottom: clamp(40px, 8vw, 90px); }
.manifesto blockquote { font-family: var(--f-display); font-weight: 600; font-size: clamp(26px, 4.6vw, 52px); line-height: 1.12; letter-spacing: -0.02em; margin: 0 auto; max-width: 20ch; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 6vw, 70px); align-items: start; }
.contact-copy h2 { font-size: clamp(30px, 5vw, 50px); margin-bottom: 18px; }
.contact-copy p { color: var(--muted); font-size: clamp(16px, 2vw, 19px); margin: 0 0 28px; }
.socials { display: flex; gap: 12px; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); color: var(--muted); background: var(--glass); transition: color 0.2s, border-color 0.2s, transform 0.2s; }
.socials a:hover { color: var(--ink); border-color: var(--cyan); transform: translateY(-2px); }

.cform { display: flex; flex-direction: column; gap: 16px; }
.cform label { display: flex; flex-direction: column; gap: 7px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.cform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cform input, .cform textarea {
  font-family: var(--f-sans); font-size: 16px; color: var(--ink); text-transform: none; letter-spacing: 0;
  background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; width: 100%; resize: vertical;
  transition: border-color 0.2s, background 0.2s;
}
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--indigo); background: rgba(255,255,255,0.05); }
.cform button { align-self: flex-start; margin-top: 6px; }
.cform-err { margin: 14px 0 0; font-size: 14px; color: #ff8f8f; }
.cform-err a { color: #ffbcbc; text-decoration: underline; }
.cmodal {
  position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 24px;
  background: rgba(5, 7, 15, 0.72); backdrop-filter: blur(8px);
  animation: modalFade 0.28s ease both;
}
.cmodal.is-open { display: flex; }
.cmodal-card {
  position: relative; width: 100%; max-width: 440px; text-align: center;
  padding: clamp(36px, 5vw, 54px); border: 1px solid var(--line-2); border-radius: 20px;
  background: linear-gradient(180deg, #171a2b, #0d0f19);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: doneIn 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.cmodal-close {
  position: absolute; top: 12px; right: 15px; background: none; border: none;
  color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; padding: 4px;
  transition: color 0.2s;
}
.cmodal-close:hover { color: var(--ink); }
.cform-done-mark {
  display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 18px;
  border-radius: 50%; font-size: 26px; color: #04120b; font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), #7dffb0);
  box-shadow: 0 0 0 6px rgba(125, 255, 176, 0.12);
}
.cmodal-card h3 { font-family: var(--f-display); font-size: clamp(22px, 3vw, 30px); margin: 0 0 8px; }
.cmodal-card p { color: var(--muted); margin: 0 auto; max-width: 42ch; }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes doneIn { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ---------- footer ---------- */
.foot { max-width: var(--maxw); margin: 0 auto; padding: 34px var(--pad); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; position: relative; z-index: 1; }
.foot-links { display: flex; gap: 22px; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.foot-links a { color: var(--muted); transition: color 0.15s; }
.foot-links a:hover { color: var(--cyan); }

/* ---------- Gatekeeper easter egg ---------- */
.gatekeeper {
  position: fixed; right: 26px; bottom: 24px; z-index: 60;
  width: 40px; height: 40px; cursor: pointer; padding: 0;
  display: grid; place-items: center; font-size: 25px; line-height: 1;
  color: var(--cyan); background: none; border: none;
  opacity: 0.1;
  transition: opacity 0.45s ease, transform 0.3s ease, text-shadow 0.3s ease, color 0.2s;
}
.gatekeeper:hover, .gatekeeper:focus-visible {
  opacity: 1; color: #7bf5ff; transform: scale(1.14); outline: none;
  text-shadow: 0 0 14px rgba(34, 211, 238, 0.85), 0 0 30px rgba(34, 211, 238, 0.45);
}

.terminal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px;
  background: rgba(0, 0, 0, 0.86); backdrop-filter: blur(3px); animation: fade 0.25s ease; }
.terminal[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.crt {
  position: relative; width: min(760px, 100%); max-height: 86vh; overflow: hidden;
  background: #020a05; border: 1px solid #0f4; border-radius: 10px;
  box-shadow: 0 0 60px rgba(0, 255, 90, 0.25), inset 0 0 90px rgba(0, 255, 90, 0.08);
  padding: 28px 30px 24px;
}
.crt::before { /* scanlines */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(rgba(0, 0, 0, 0) 0 2px, rgba(0, 0, 0, 0.28) 2px 4px);
}
.crt::after { /* screen curvature vignette */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 120% at 50% 50%, transparent 60%, rgba(0, 0, 0, 0.55));
}
.term-out {
  font-family: var(--f-mono); font-size: 14px; line-height: 1.55; margin: 0;
  color: #33ff77; text-shadow: 0 0 6px rgba(51, 255, 119, 0.6);
  white-space: pre-wrap; word-break: break-word; min-height: 42vh; max-height: 76vh; overflow: auto;
}
.term-cursor { background: #33ff77; color: #020a05; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.term-foot { position: relative; margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.term-close { background: none; border: none; color: #1f8; font-family: var(--f-mono); font-size: 12px; cursor: pointer; opacity: 0.7; padding: 0; }
.term-close:hover { opacity: 1; }
.term-disclaimer { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.04em; color: #2c7a52; text-transform: lowercase; }

/* ---------- legal pages ---------- */
.legal { max-width: 760px; padding-top: clamp(50px, 9vw, 110px); }
.legal .back { font-family: var(--f-mono); font-size: 13px; color: var(--cyan); display: inline-block; margin-bottom: 26px; }
.legal h1 { font-size: clamp(30px, 5vw, 50px); }
.legal .updated { font-family: var(--f-mono); font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; margin: 14px 0 40px; }
.legal h2 { font-size: 20px; margin: 38px 0 12px; }
.legal p, .legal li { color: var(--muted); }
.legal p { margin: 0 0 16px; }
.legal ul { padding-left: 20px; margin: 0 0 16px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--cyan); }
.legal strong { color: var(--ink); }

/* ---------- reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .cards-3 { grid-template-columns: 1fr; }
  .nav-links a:not(.nav-cta) { display: none; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .vgroup-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .cform-row { grid-template-columns: 1fr; }
  .hero-video video { opacity: 0.32; }
  .foot { justify-content: center; text-align: center; }
  .impact-row { flex-wrap: wrap; }
  .stat { flex: 1 1 40%; }
  .vgroup-grid { grid-template-columns: 1fr; }
  .vcard { min-height: 0; }
  .hive-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .gatekeeper { animation: none; }
  * { animation-duration: 0.001ms !important; }
}
