/* ============================================================
   PANGEO AI — one-pager stylesheet
   Dark operator playbook, acid-green primary, semantic accents
   ============================================================ */

:root {
  /* Surfaces */
  --bg:        #08090b;
  --bg-deep:   #050608;
  --surface:   #121519;
  --surface-2: #171b20;

  /* Primary accent (acid green) */
  --accent:     #c6f53e;
  --accent-deep:#9bcc1f;
  --accent-dim: #6e8f15;
  --accent-ink: #0a0a0a;   /* text color on green fills */

  /* Semantic accents */
  --amber:  #ffaa3a;
  --rust:   #ff6b4a;
  --cyan:   #54e6d0;
  --violet: #9b8cff;

  /* Type tones */
  --text:      #e8ece8;
  --muted:     #9aa3a0;
  --faint:     #5d6660;

  /* Hairlines */
  --hair:      rgba(198, 245, 62, 0.22);
  --hair-soft: rgba(154, 163, 160, 0.16);
  --line:      #23282f;
  --line-bright:#2f3640;

  /* Gradients */
  --grad-acid: linear-gradient(135deg, #c6f53e, #7fd11a);

  /* Type */
  --font-display: 'Bricolage Grotesque', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:    'Spline Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, Menlo, monospace;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.62;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
}
/* atmospheric glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 85% -5%, rgba(198,245,62,0.07), transparent 60%),
    radial-gradient(700px 500px at 5% 30%, rgba(84,230,208,0.05), transparent 55%),
    radial-gradient(800px 700px at 50% 110%, rgba(155,140,255,0.05), transparent 60%);
}
/* subtle grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.mono { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ============================================================
   GLOBAL LATTICE TEXTURE (fixed, behind content)
   ============================================================ */
.lattice {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
}

main, .nav, .footer { position: relative; z-index: 1; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(8, 9, 11, 0.55);
  border-bottom: 1px solid transparent;
  transition: background 250ms var(--ease), border-color 250ms var(--ease);
}
.nav.is-scrolled {
  background: rgba(8, 9, 11, 0.82);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  height: 28px;
}
.nav__logo img { height: 28px; width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav__links a {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 2px;
  position: relative;
  transition: color 180ms var(--ease);
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms var(--ease);
}
.nav__links a:hover,
.nav__links a.is-active { color: var(--accent); }
.nav__links a:hover::after,
.nav__links a.is-active::after { transform: scaleX(1); }
.nav__cta { flex: 0 0 auto; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms var(--ease), background-color 180ms var(--ease), color 180ms var(--ease), box-shadow 220ms var(--ease), border-color 180ms var(--ease);
  white-space: nowrap;
  user-select: none;
}
.btn--pill { border-radius: 999px; padding: 11px 22px; }
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 6px 24px -8px rgba(198,245,62,0.45);
}
.btn--primary:hover {
  background: #d6ff58;
  box-shadow: 0 0 0 4px rgba(198,245,62,0.15), 0 10px 30px -8px rgba(198,245,62,0.55);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(232,236,232,0.3);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(198,245,62,0.06);
}
.btn__arrow { font-size: 1em; display: inline-block; transition: transform 200ms var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(64px, 10vh, 120px) 0 clamp(64px, 9vh, 96px);
  overflow: hidden;
  isolation: isolate;
}
.hero__anchor {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: -1;
  pointer-events: none;
}
.hero__anchor img {
  width: min(1100px, 130%);
  max-width: none;
  height: auto;
  opacity: 0.22;
  filter: grayscale(0.6) drop-shadow(0 0 60px rgba(198,245,62,0.12));
  transform: translateY(2%);
}
.hero::before {
  /* vignette so the pangaea fades into the page edges */
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 55%, transparent 30%, var(--bg) 80%);
  z-index: -1;
  pointer-events: none;
}

.hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(18, 21, 25, 0.6);
  margin-bottom: clamp(28px, 4vh, 44px);
}
.eyebrow__tick {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: blip 2.4s infinite var(--ease);
}
@keyframes blip {
  0%,100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}
.eyebrow .mono { color: var(--text); }

/* display type */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.022em;
  line-height: 0.98;
  margin: 0;
  color: var(--text);
}
.display--xl {
  font-size: clamp(38px, 6.4vw, 92px);
  letter-spacing: -0.028em;
  line-height: 0.97;
  max-width: 18ch;
}
.display--lg  { font-size: clamp(32px, 4.6vw, 64px); letter-spacing: -0.022em; }
.display--md  { font-size: clamp(26px, 2.8vw, 40px); letter-spacing: -0.018em; }
.display--muted  { color: var(--muted); font-weight: 600; }
.display--accent { color: var(--accent); font-style: italic; font-weight: 600; }

.hero__sub {
  max-width: 62ch;
  margin: clamp(28px, 3.5vh, 40px) 0 clamp(32px, 4vh, 44px);
  font-size: clamp(16px, 1.15vw, 19px);
  color: var(--muted);
  line-height: 1.65;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: clamp(48px, 8vh, 88px);
}

.readout {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 36px;
  padding-top: 20px;
  border-top: 1px solid var(--hair);
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
}
.readout span { display: inline-flex; align-items: center; gap: 10px; }
.readout em { font-style: normal; color: var(--accent); letter-spacing: 0.2em; }
.pulse {
  display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: blip 2s infinite var(--ease);
}

/* ============================================================
   SECTION PRIMITIVES
   ============================================================ */
.section { position: relative; padding: clamp(80px, 12vh, 140px) 0; }
.section__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section__head { max-width: 880px; margin-bottom: clamp(48px, 7vh, 88px); }
.section__label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent-deep);
  margin-bottom: 22px;
}
.section__label::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--accent-deep);
}
.section__sublabel {
  display: block;
  color: var(--accent-deep);
  margin-bottom: 22px;
}
.section__sub {
  font-size: clamp(16px, 1.1vw, 19px);
  color: var(--muted);
  max-width: 60ch;
  margin-top: 22px;
}

.section-divider {
  position: relative;
  height: 1px;
  margin: 0 auto;
  max-width: var(--container);
  background: linear-gradient(90deg, transparent, var(--hair) 15%, var(--hair) 85%, transparent);
}
.section-divider::before,
.section-divider::after {
  content: '';
  position: absolute;
  top: -3px;
  width: 7px; height: 7px;
  border: 1px solid var(--accent);
  background: var(--bg);
  transform: rotate(45deg);
}
.section-divider::before { left: calc(var(--gutter) - 4px); }
.section-divider::after  { right: calc(var(--gutter) - 4px); }

/* ============================================================
   PROJECTS
   ============================================================ */
.projects {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.project {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: clamp(24px, 3vw, 48px);
  padding: clamp(36px, 5vh, 56px) 0;
  border-top: 1px solid var(--hair-soft);
  position: relative;
  transition: background 250ms var(--ease);
}
.project:last-child { border-bottom: 1px solid var(--hair-soft); }
.project::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 500ms var(--ease);
}
.project:hover::before { width: 100%; }
.project:hover { background: linear-gradient(180deg, rgba(198,245,62,0.04), transparent 80%); }

.project__index {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  padding-top: 14px;
}
.project__body { min-width: 0; }
.project__row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 18px 22px;
  margin-bottom: 12px;
}
.project__name {
  font-size: clamp(34px, 3.6vw, 54px);
  letter-spacing: -0.022em;
  color: var(--text);
  line-height: 1;
}
.project__link {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: 0% 2px;
  background-position: 0 100%;
  transition: background-size 220ms var(--ease), color 220ms var(--ease);
}
.project__link:hover,
.project__link:focus-visible {
  color: var(--accent);
  background-size: 100% 2px;
  outline: none;
}
.project__tag {
  color: var(--muted);
  font-size: clamp(17px, 1.2vw, 20px);
  font-weight: 500;
  font-style: italic;
  margin: 0 0 18px;
}
.project__desc {
  max-width: 70ch;
  color: var(--text);
  margin: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  background: rgba(198,245,62,0.06);
  white-space: nowrap;
}
.badge::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}
.badge--active {
  background: var(--accent);
  color: var(--accent-ink);
}
.badge--active::before { background: var(--accent-ink); box-shadow: none; }

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
  margin-bottom: clamp(72px, 10vh, 120px);
}
.about__copy p {
  font-size: clamp(16px, 1.1vw, 19px);
  color: var(--text);
  margin: 0 0 18px;
  max-width: 52ch;
}
.about__copy p:last-child { margin-bottom: 0; }

.pullquote {
  position: relative;
  padding: 32px 36px;
  border: 1px solid var(--hair);
  background: linear-gradient(180deg, rgba(198,245,62,0.05), rgba(18, 21, 25, 0.55));
  margin: 0;
  overflow: hidden;
}
.pullquote::before,
.pullquote::after {
  /* small ticks on the corners */
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--accent);
}
.pullquote::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.pullquote::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.pullquote__mark {
  color: var(--accent);
  font-size: 3rem;
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 6px;
  font-family: var(--font-display);
}
.pullquote blockquote {
  margin: 0 0 16px;
  color: var(--text);
}
.pullquote figcaption { font-size: 0.7rem; letter-spacing: 0.22em; }

/* philosophy */
.philosophy { margin-bottom: clamp(72px, 10vh, 120px); }
.philosophy__grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--hair-soft);
  background: rgba(18, 21, 25, 0.55);
}
.philo {
  padding: clamp(26px, 3vw, 40px);
  border-right: 1px solid var(--hair-soft);
  position: relative;
}
.philo:last-child { border-right: none; }
.philo__num {
  display: inline-block;
  color: var(--accent);
  margin-bottom: 18px;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
}
.philo__title {
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: -0.018em;
  margin-bottom: 16px;
  color: var(--text);
}
.philo p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* founder */
.founder__card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
  padding: clamp(28px, 3vw, 44px);
  border: 1px solid var(--hair-soft);
  background: rgba(18, 21, 25, 0.55);
  position: relative;
}
.founder__portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 280px;
}
.founder__portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.05);
  border: 1px solid var(--hair-soft);
}
.founder__frame { position: absolute; inset: 0; pointer-events: none; }
.corner {
  position: absolute;
  width: 14px; height: 14px;
  border: 1.5px solid var(--accent);
}
.corner--tl { top: -4px; left: -4px; border-right: none; border-bottom: none; }
.corner--tr { top: -4px; right: -4px; border-left: none; border-bottom: none; }
.corner--bl { bottom: -4px; left: -4px; border-right: none; border-top: none; }
.corner--br { bottom: -4px; right: -4px; border-left: none; border-top: none; }

.founder__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: var(--accent-deep);
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
}
.founder__name { margin: 0 0 16px; }
.founder__body p { margin: 0; color: var(--text); max-width: 60ch; }

/* ============================================================
   CONTACT
   ============================================================ */
.section--contact {
  position: relative;
  isolation: isolate;
  color: var(--text);
  padding-top: clamp(96px, 14vh, 160px);
  padding-bottom: clamp(96px, 14vh, 160px);
}
.contact__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(180deg, rgba(8,9,11,0.92) 0%, rgba(8,9,11,0.78) 45%, rgba(8,9,11,0.95) 100%),
    url('assets/footer-scene.jpg');
  background-size: cover;
  background-position: center 60%;
  background-repeat: no-repeat;
}
.section--contact::before {
  /* faint lattice overlay, contact-specific */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(198,245,62,0.06) 1px, transparent 1.2px);
  background-size: 42px 42px;
  pointer-events: none;
  mix-blend-mode: screen;
}
.contact__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}
.contact__head { max-width: 760px; margin-bottom: clamp(48px, 7vh, 80px); }
.contact__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(28px, 3vw, 40px);
  background: rgba(18, 21, 25, 0.78);
  border: 1px solid var(--hair-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
}
.form::before,
.form::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border: 1px solid var(--accent);
}
.form::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.form::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.form__status {
  margin: 4px 0 0;
  padding: 12px 16px;
  border-left: 2px solid var(--accent);
  background: rgba(198, 245, 62, 0.06);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}
.form__status.is-success { border-left-color: #4ade80; background: rgba(74, 222, 128, 0.08); }
.form__status.is-error   { border-left-color: #f87171; background: rgba(248, 113, 113, 0.08); }
.btn--submit[disabled] { opacity: 0.6; cursor: not-allowed; }

.field input.is-invalid,
.field textarea.is-invalid,
.field select.is-invalid,
.field input.is-invalid:focus,
.field textarea.is-invalid:focus,
.field select.is-invalid:focus {
  border-bottom-color: #f87171;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { color: var(--muted); font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; }
.field input,
.field textarea,
.field select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hair-soft);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 10px 2px;
  transition: border-color 200ms var(--ease);
  border-radius: 0;
}
.field input:hover,
.field textarea:hover,
.field select:hover { border-color: var(--muted); }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(154,163,160,0.55); }

.select-wrap { position: relative; }
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 28px;
  cursor: pointer;
}
.select-wrap select option { background: var(--surface); color: var(--text); }
.select-wrap__arrow {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 0.9rem;
  pointer-events: none;
}

.btn--submit { align-self: flex-start; margin-top: 8px; }

.contact__info {
  padding: clamp(28px, 3vw, 36px) 0;
}
.contact__list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.contact__list > div {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--hair-soft);
}
.contact__list > div:last-child { border-bottom: none; }
.contact__list dt { color: var(--muted); margin-bottom: 8px; }
.contact__list dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.012em;
  color: var(--text);
}
.contact__list dd a { color: var(--text); border-bottom: 1px solid transparent; transition: border-color 180ms; }
.contact__list dd a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.contact__sig {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  color: var(--accent-deep);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.footer__logo img { height: 22px; width: auto; opacity: 0.85; }
.footer__copy {
  margin: 0 auto 0 0;
  color: var(--faint);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
}
.footer__top {
  color: var(--faint);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  transition: color 180ms;
}
.footer__top:hover { color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav__inner { gap: 14px; }
  .nav__links { gap: 16px; margin-right: 4px; }
  .nav__links a { font-size: 0.74rem; letter-spacing: 0.18em; }

  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .philosophy__grid { grid-template-columns: 1fr; }
  .philo { border-right: none; border-bottom: 1px solid var(--hair-soft); }
  .philo:last-child { border-bottom: none; }

  .founder__card { grid-template-columns: 1fr; }
  .founder__portrait { max-width: 220px; }

  .contact__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }

  .project { grid-template-columns: 50px 1fr; gap: 18px; }
  .project__index { padding-top: 10px; font-size: 0.78rem; }
}

@media (max-width: 640px) {
  .nav__cta { display: none; }
  .nav__logo img { height: 24px; }
  .hero__anchor img { width: 160%; opacity: 0.28; }
  .readout { gap: 14px 24px; }
  .footer__inner { gap: 16px; }
  .footer__copy { order: 3; flex-basis: 100%; margin: 0; }
  .eyebrow { padding: 5px 10px; }
  .eyebrow .mono { font-size: 0.62rem; letter-spacing: 0.14em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   ARTICLE PRIMITIVES — used by studio subpage and any future
   long-form content
   ============================================================ */

/* article wrapper + kickers */
.article-wrap { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.article-section { padding: clamp(56px, 8vh, 88px) 0; border-bottom: 1px solid var(--line); }
.article-section:last-of-type { border-bottom: none; }

.kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 26px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.kicker::before { content: ""; width: 34px; height: 1px; background: var(--accent-deep); }

.sec-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sec-tag b { color: var(--accent-deep); font-weight: 700; }

.lede {
  font-size: clamp(1.05rem, 1.7vw, 1.32rem);
  color: var(--muted);
  max-width: 62ch;
  font-weight: 300;
}
.lede b { color: var(--text); font-weight: 500; }

.meta-row {
  margin-top: 42px;
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--faint);
  text-transform: uppercase;
}
.meta-row span b { color: var(--accent-deep); font-weight: 500; }

.sec-intro {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 64ch;
  margin-bottom: 40px;
  font-weight: 300;
}
.sec-intro b { color: var(--text); font-weight: 500; }

.article-section h2 em { color: var(--accent); font-style: italic; }
.article-section h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: -0.01em;
  margin: 38px 0 16px;
  color: var(--text);
}
.article-section p { margin-bottom: 16px; color: var(--muted); }
.article-section p b, .article-section li b { color: var(--text); font-weight: 500; }
.article-section a.src { color: var(--cyan); text-decoration: none; border-bottom: 1px dotted rgba(84,230,208,0.4); }
.article-section a.src:hover { border-bottom-style: solid; }

.pull {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.3;
  color: var(--text);
  letter-spacing: -0.012em;
  margin: 6px 0 34px;
  max-width: 26ch;
}
.pull b { color: var(--accent); font-weight: 600; font-style: italic; }

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--surface-2);
  color: var(--accent);
  padding: 1.5px 6px;
  border-radius: 3px;
  border: 1px solid var(--line);
}

/* ---------- STAT STRIP ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 56px 0;
  border-radius: 4px;
  overflow: hidden;
}
.stat { background: var(--surface); padding: 30px 24px; transition: background 0.25s; }
.stat:hover { background: var(--surface-2); }
.stat .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.stat .num.amber { color: var(--amber); }
.stat .num.rust  { color: var(--rust); }
.stat .num.cyan  { color: var(--cyan); }
.stat .lab {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 12px;
  text-transform: uppercase;
  line-height: 1.5;
}
@media (max-width: 760px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .stat-strip { grid-template-columns: 1fr; } }

/* ---------- SPLIT GRID (thesis / value) ---------- */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 820px) { .split-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- BAR CHART ---------- */
.bar-chart { display: flex; flex-direction: column; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: center; }
.bar-row .bl {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  text-align: right;
  letter-spacing: 0.02em;
}
.bar-track { height: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; position: relative; overflow: hidden; }
.bar-fill {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 9px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-ink);
  border-radius: 2px;
  width: 0;
  transition: width 1.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.bar-fill.gen { background: var(--grad-acid); }
.bar-fill.src { background: linear-gradient(135deg, #2f3640, #3d4651); color: var(--text); }
@media (max-width: 520px) {
  .bar-row { grid-template-columns: 88px 1fr; }
  .bar-row .bl { font-size: 0.66rem; }
}

/* ---------- TABLE ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 0.93rem; margin: 8px 0; }
.tbl th {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  padding: 13px 14px;
  color: var(--faint);
  border-bottom: 1px solid var(--line-bright);
  font-weight: 500;
}
.tbl td { padding: 13px 14px; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: top; }
.tbl tr:hover td { background: var(--surface); }
.tbl td b { color: var(--text); }
.tbl .price { font-family: var(--font-mono); color: var(--accent); white-space: nowrap; }
.tbl .total td {
  background: var(--surface-2) !important;
  border-top: 1px solid var(--accent-deep);
  border-bottom: none;
}
.tbl .total td b { color: var(--accent); font-family: var(--font-display); font-size: 1.05rem; }
.tbl-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 3px;
  text-transform: uppercase;
  font-weight: 500;
}
.tag.api   { background: rgba(84,230,208,0.12);  color: var(--cyan);   border: 1px solid rgba(84,230,208,0.3); }
.tag.diy   { background: rgba(198,245,62,0.12);  color: var(--accent); border: 1px solid rgba(198,245,62,0.3); }
.tag.gated { background: rgba(255,107,74,0.12);  color: var(--rust);   border: 1px solid rgba(255,107,74,0.3); }

/* ---------- CARDS ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 10px; }
@media (max-width: 820px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  transition: transform 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--grad-acid);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-bright); }
.card:hover::before { transform: scaleX(1); }
.card .ix { font-family: var(--font-mono); font-size: 0.68rem; color: var(--accent-deep); font-weight: 700; letter-spacing: 0.08em; }
.card h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.14rem; margin: 9px 0 9px; color: var(--text); letter-spacing: -0.012em; }
.card p { font-size: 0.9rem; margin: 0; color: var(--muted); }
.card .skillname { font-family: var(--font-mono); font-size: 0.82rem; color: var(--cyan); margin-bottom: 8px; }

/* ---------- LADDER ---------- */
.ladder { display: flex; flex-direction: column; gap: 0; max-width: 640px; }
.rung {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left-width: 3px;
  position: relative;
}
.rung:not(:last-child) { border-bottom: none; }
.rung .step { font-family: var(--font-mono); font-size: 0.72rem; color: var(--faint); width: 20px; flex-shrink: 0; }
.rung .mname { font-family: var(--font-mono); font-weight: 700; font-size: 0.95rem; flex: 1; }
.rung .mcost { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }
.rung.r1 { border-left-color: var(--accent); } .rung.r1 .mname { color: var(--accent); }
.rung.r2 { border-left-color: var(--cyan); }   .rung.r2 .mname { color: var(--cyan); }
.rung.r3 { border-left-color: var(--amber); }  .rung.r3 .mname { color: var(--amber); }
.rung.r4 { border-left-color: var(--rust); }   .rung.r4 .mname { color: var(--rust); }

/* ---------- SLOP TEST LIST ---------- */
.slop-test { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.slop-test li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px 18px;
  font-size: 0.96rem;
  color: var(--text);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.slop-test li::before {
  content: "›";
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.2;
}

/* ---------- TIMELINE ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--accent), var(--cyan), var(--amber), var(--rust));
}
.tl-item { position: relative; margin-bottom: 30px; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  transform: translateX(1px);
}
.tl-item:nth-child(2)::before { border-color: var(--cyan); }
.tl-item:nth-child(3)::before { border-color: var(--amber); }
.tl-item:nth-child(4)::before { border-color: var(--rust); }
.tl-week {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}
.tl-item h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; color: var(--text); margin-bottom: 8px; letter-spacing: -0.012em; }
.tl-item p { font-size: 0.94rem; margin-bottom: 10px; color: var(--muted); }
.bench {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 10px 14px;
  border-radius: 0 4px 4px 0;
  display: inline-block;
}

/* ---------- TRIGGER GRID ---------- */
.triggers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .triggers { grid-template-columns: 1fr; } }
.trig {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 20px;
  display: flex;
  gap: 16px;
}
.trig .ic { font-family: var(--font-mono); font-size: 1.5rem; line-height: 1; color: var(--rust); flex-shrink: 0; }
.trig .when { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--rust); text-transform: uppercase; margin-bottom: 6px; font-weight: 500; }
.trig p { font-size: 0.9rem; margin: 0; color: var(--muted); }

/* ---------- CALLOUT ---------- */
.callout {
  background: linear-gradient(135deg, rgba(198,245,62,0.06), rgba(84,230,208,0.04));
  border: 1px solid var(--line-bright);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 26px 30px;
  margin: 34px 0;
}
.callout .ct {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 12px;
}
.callout p { color: var(--text); }
.callout p:last-child { margin-bottom: 0; }

/* ---------- CAVEAT LIST ---------- */
.caveat-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.caveat-list li { padding-left: 26px; position: relative; font-size: 0.95rem; color: var(--muted); }
.caveat-list li::before {
  content: "\26A0";
  position: absolute;
  left: 0; top: 0;
  color: var(--amber);
  font-size: 0.85rem;
}
.caveat-list li b { color: var(--text); }

/* ---------- PIPELINE DIAGRAM WRAPPER ---------- */
.pipe-wrap { margin: 10px 0 0; overflow-x: auto; padding-bottom: 8px; }
.pipe-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--faint);
  margin-top: 18px;
  text-align: center;
  letter-spacing: 0.04em;
}

/* ---------- SCROLL REVEAL ---------- */
/* Progressive enhancement: only hide when JS is confirmed (html.js).
   Without JS, content is visible — no blank sections. */
.reveal { transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
html.js .reveal { opacity: 0; transform: translateY(26px); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; }
  .bar-fill { transition: none; }
}

/* ---------- ARTICLE HEADER ---------- */
.article-header {
  padding: clamp(70px, 11vh, 110px) 0 clamp(56px, 8vh, 80px);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.article-header h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.8vw, 4.6rem);
  line-height: 0.97;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
  max-width: 18ch;
  text-transform: none;
}
.article-header h1 .hl { color: var(--accent); font-style: italic; font-weight: 600; }

.article-section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  max-width: 22ch;
  text-transform: none;
}

/* ============================================================
   SUBPAGE PRIMITIVES — promoted from page-local <style> blocks
   so any subpage can use them without an inline override
   ============================================================ */

/* ---------- PRODUCT-PAGE HERO + BACK LINK ---------- */
.product-hero { padding: clamp(80px, 14vh, 140px) 0 clamp(28px, 4vh, 40px); }
.product-hero .eyebrow { margin-bottom: 24px; }
.product-hero h1 { margin-top: 0; }
.product-hero__sub {
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 20px);
  max-width: 60ch;
  margin: 18px 0 28px;
}

.product-back {
  display: inline-block;
  margin-bottom: 32px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-decoration: none;
}
.product-back:hover { color: #d6ff58; text-decoration: underline; }

/* ---------- RESOURCE GRID (support/legal links) ---------- */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}
@media (max-width: 760px) { .resource-grid { grid-template-columns: 1fr; } }

.resource-card {
  display: block;
  padding: 22px 22px 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  transition: background 200ms var(--ease), border-color 200ms var(--ease), transform 200ms var(--ease);
}
.resource-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--grad-acid);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.resource-card:hover {
  background: var(--surface-2);
  border-color: var(--line-bright);
  transform: translateY(-2px);
}
.resource-card:hover::before { transform: scaleX(1); }

.resource-card__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
  font-weight: 700;
}
.resource-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: -0.012em;
  margin: 9px 0 9px;
  color: var(--text);
  text-transform: none;
}
.resource-card__desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.55;
}

/* ---------- LEGAL PAGES (terms, privacy, support) ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(96px, 14vh, 140px) var(--gutter) clamp(64px, 9vh, 96px);
  position: relative;
  z-index: 1;
}
.legal h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 2.8rem);
  letter-spacing: -0.022em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 8px;
  text-transform: none;
}
.legal__date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-deep);
  margin-bottom: 48px;
}
.legal h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: -0.012em;
  color: var(--text);
  margin: 40px 0 12px;
  text-transform: none;
}
.legal h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.008em;
  color: var(--text);
  margin: 24px 0 8px;
  text-transform: none;
}
.legal p,
.legal li {
  font-family: var(--font-body);
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--muted);
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--muted);
}
.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
}
.legal th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  font-weight: 500;
}
.legal p b,
.legal li b,
.legal p strong,
.legal li strong { color: var(--text); font-weight: 500; }
.legal ul { padding-left: 20px; margin: 8px 0; }
.legal li { margin-bottom: 6px; }
.legal a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dotted rgba(198, 245, 62, 0.4);
  transition: border-bottom-style 180ms var(--ease);
}
.legal a:hover { border-bottom-style: solid; }

.legal__back {
  display: inline-block;
  margin-bottom: 32px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-decoration: none;
}
.legal__back:hover { color: #d6ff58; text-decoration: underline; }
