/* ============================================================
   Empero — Independent AI Research Lab
   Brand palette lifted from empero.org "midnight" theme
   ============================================================ */

:root {
  --paper: #0e0b14;
  --paper-raise: #151020;
  --ink: #e9e4f0;
  --rule: rgba(233, 228, 240, 0.18);
  --rule-soft: rgba(233, 228, 240, 0.09);
  --muted: rgba(233, 228, 240, 0.55);
  --faint: rgba(233, 228, 240, 0.32);
  --accent: #b66bff;
  --accent-soft: rgba(182, 107, 255, 0.14);
  --accent-ink: #0e0b14;
  --good: #7ee2a8;

  --ff-display: "Inter", "SF Pro Display", system-ui, -apple-system, sans-serif;
  --ff-body: "Inter", -apple-system, system-ui, sans-serif;
  --ff-mono: "JetBrains Mono", "Fira Code", ui-monospace, "SF Mono", Menlo, monospace;

  --pad-x: clamp(20px, 4vw, 48px);
  --maxw: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: var(--accent-ink); }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ---------- type utilities ---------- */

.t-label {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.t-label .acc { color: var(--accent); }

.t-mono {
  font-family: var(--ff-mono);
  font-size: 12.5px;
  color: var(--muted);
}

h1, h2, h3 { font-family: var(--ff-display); margin: 0; }

.headline {
  font-size: clamp(42px, 6.4vw, 84px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.headline em {
  font-style: normal;
  color: var(--accent);
}

.sec-title {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.t-body {
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.65;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  font-family: var(--ff-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover { border-color: var(--ink); color: var(--ink); }

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn-accent:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.btn .arrow { font-family: var(--ff-body); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 0.75px solid var(--rule);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
}

.brand:hover { color: var(--ink); }

.brand svg { display: block; }

.brand .wordmark {
  font-family: var(--ff-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
}

.brand .tag {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 0.75px solid var(--rule);
  padding: 4px 7px;
  margin-left: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav a:hover { color: var(--accent); }

.site-nav .btn { padding: 9px 16px; }

@media (max-width: 900px) {
  .site-nav a:not(.btn) { display: none; }
}

/* ---------- hero ---------- */

.hero {
  border-bottom: 0.75px solid var(--rule);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 78% 8%, rgba(182, 107, 255, 0.13), transparent 65%);
  pointer-events: none;
}

.hero .wrap { position: relative; }

.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 0.75px solid var(--rule-soft);
  flex-wrap: wrap;
}

.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr);
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 80px);
  align-items: center;
}

@media (max-width: 980px) {
  .hero-main { grid-template-columns: 1fr; }
}

.seed-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  border: 0.75px solid rgba(182, 107, 255, 0.45);
  background: var(--accent-soft);
  padding: 8px 14px;
  margin-bottom: 28px;
}

.seed-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(182, 107, 255, 0.5); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(182, 107, 255, 0); }
}

.hero-sub {
  max-width: 56ch;
  margin-top: 28px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 0.75px solid var(--rule);
  border-bottom: 0.75px solid var(--rule-soft);
}

.hero-strip .cell {
  padding: 20px 18px 22px;
  border-right: 0.75px solid var(--rule-soft);
}

.hero-strip .cell:last-child { border-right: none; }

.hero-strip .num {
  font-family: var(--ff-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero-strip .num .acc { color: var(--accent); }

.hero-strip .lbl {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

@media (max-width: 640px) {
  .hero-strip { grid-template-columns: 1fr; }
  .hero-strip .cell { border-right: none; border-bottom: 0.75px solid var(--rule-soft); }
  .hero-strip .cell:last-child { border-bottom: none; }
}

/* ---------- benchmark panel ---------- */

.bench {
  border: 0.75px solid var(--rule);
  background: color-mix(in srgb, var(--paper-raise) 72%, transparent);
  backdrop-filter: blur(6px);
}

.bench-hd {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 0.75px solid var(--rule-soft);
}

.bench-body { padding: 8px 20px 18px; }

.bench-row { padding: 13px 0; border-bottom: 0.75px solid var(--rule-soft); }
.bench-row:last-child { border-bottom: none; }

.bench-row .line1 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.bench-row .metric {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.bench-row .score {
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}

.bar {
  height: 5px;
  background: var(--rule-soft);
  overflow: hidden;
}

.bar > i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(182, 107, 255, 0.55), var(--accent));
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.bench-ft {
  padding: 12px 20px;
  border-top: 0.75px solid var(--rule-soft);
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--faint);
}

/* ---------- ticker ---------- */

.ticker {
  border-bottom: 0.75px solid var(--rule);
  overflow: hidden;
  white-space: nowrap;
  padding: 13px 0;
  user-select: none;
}

.ticker-track {
  display: inline-block;
  animation: ticker 46s linear infinite;
}

.ticker span {
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 18px;
}

.ticker .star { color: var(--accent); padding: 0; }

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */

section { border-bottom: 0.75px solid var(--rule); }

.sec-hd {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 0.75px solid var(--rule-soft);
}

.sec-hd .idx {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--accent);
}

.sec-hd .rule { flex: 1; height: 0.75px; background: var(--rule-soft); align-self: center; }

.sec-body { padding: clamp(40px, 5.5vw, 72px) 0; }

/* ---------- traction ---------- */

.traction-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 0.75px solid var(--rule);
}

.traction-grid .cell {
  padding: clamp(24px, 3vw, 40px) clamp(18px, 2.4vw, 32px);
  border-right: 0.75px solid var(--rule);
  position: relative;
}

.traction-grid .cell:last-child { border-right: none; }

.traction-grid .big {
  font-family: var(--ff-display);
  font-size: clamp(38px, 4.6vw, 60px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
}

.traction-grid .big .acc { color: var(--accent); }

.traction-grid .sub {
  margin-top: 12px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.7;
}

.traction-note {
  margin-top: 16px;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .traction-grid { grid-template-columns: repeat(2, 1fr); }
  .traction-grid .cell { border-bottom: 0.75px solid var(--rule); }
  .traction-grid .cell:nth-child(2n) { border-right: none; }
  .traction-grid .cell:nth-child(n+3) { border-bottom: none; }
}

@media (max-width: 520px) {
  .traction-grid { grid-template-columns: 1fr; }
  .traction-grid .cell { border-right: none !important; border-bottom: 0.75px solid var(--rule); }
  .traction-grid .cell:last-child { border-bottom: none; }
}

/* ---------- thesis ---------- */

.thesis-lead {
  max-width: 62ch;
  margin-bottom: clamp(36px, 4vw, 56px);
}

.thesis-lead .sec-title { margin-bottom: 20px; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75px;
  background: var(--rule);
  border: 0.75px solid var(--rule);
}

.pillar {
  background: var(--paper);
  padding: clamp(24px, 3vw, 36px);
}

.pillar .no {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 22px;
}

.pillar h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.pillar p { color: var(--muted); font-size: 15px; line-height: 1.65; margin: 0; }

@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
}

/* ---------- models ---------- */

.model-flag {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(32px, 4.5vw, 64px);
  border: 0.75px solid var(--rule);
  padding: clamp(28px, 4vw, 48px);
  background: linear-gradient(135deg, rgba(182, 107, 255, 0.06), transparent 55%);
  margin-bottom: 28px;
}

@media (max-width: 940px) {
  .model-flag { grid-template-columns: 1fr; }
}

.model-flag .kicker {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.chip {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 0.75px solid var(--rule);
  color: var(--muted);
}

.chip.acc {
  color: var(--accent);
  border-color: rgba(182, 107, 255, 0.45);
  background: var(--accent-soft);
}

.model-flag h3 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 18px;
}

.model-flag .desc { color: var(--muted); font-size: 16px; line-height: 1.65; }

.model-flag .desc strong { color: var(--ink); font-weight: 500; }

.model-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 28px;
  border-top: 0.75px solid var(--rule-soft);
}

.model-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 2px;
  border-bottom: 0.75px solid var(--rule-soft);
  font-family: var(--ff-mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.model-links a:hover { color: var(--accent); }

.evals {
  border: 0.75px solid var(--rule-soft);
  background: color-mix(in srgb, var(--paper-raise) 55%, transparent);
  align-self: start;
}

.evals .ev-hd {
  padding: 14px 18px;
  border-bottom: 0.75px solid var(--rule-soft);
}

.ev-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 13px 18px;
  border-bottom: 0.75px solid var(--rule-soft);
}

.ev-row:last-child { border-bottom: none; }

.ev-row .k {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.ev-row .v {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.ev-row .v.acc { color: var(--accent); }

.model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75px;
  background: var(--rule);
  border: 0.75px solid var(--rule);
}

@media (max-width: 900px) {
  .model-grid { grid-template-columns: 1fr; }
}

.model-card {
  background: var(--paper);
  padding: clamp(22px, 2.8vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.2s ease;
}

.model-card:hover { background: var(--paper-raise); }

.model-card .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.model-card h4 {
  margin: 0;
  font-family: var(--ff-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.model-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; flex: 1; }

.model-card .meta {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.model-card .go {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--accent);
}

/* ---------- abacus ---------- */

.abacus-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

@media (max-width: 980px) {
  .abacus-grid { grid-template-columns: 1fr; }
}

.abacus-feats { margin: 26px 0 0; padding: 0; list-style: none; border-top: 0.75px solid var(--rule-soft); }

.abacus-feats li {
  display: flex;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 0.75px solid var(--rule-soft);
  color: var(--muted);
  font-size: 15px;
}

.abacus-feats li::before {
  content: "✱";
  color: var(--accent);
  font-size: 12px;
  line-height: 1.9;
  flex-shrink: 0;
}

.abacus-feats li strong { color: var(--ink); font-weight: 500; }

/* terminal mock */

.term {
  border: 0.75px solid var(--rule);
  background: #0a0810;
  font-family: var(--ff-mono);
  font-size: 12.5px;
  line-height: 1.75;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-bottom: 0.75px solid var(--rule-soft);
}

.term-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rule); }
.term-bar .dot.a { background: rgba(182, 107, 255, 0.7); }

.term-bar .title {
  margin-left: auto;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.term-body { padding: 18px 20px 22px; overflow-x: auto; }

.term-body .ln { white-space: pre; }
.term-body .p { color: var(--accent); }
.term-body .c { color: var(--faint); }
.term-body .g { color: var(--good); }
.term-body .w { color: var(--ink); }
.term-body .m { color: var(--muted); }

.caret {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--accent);
  vertical-align: -2px;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* ---------- research ---------- */

.research-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75px;
  background: var(--rule);
  border: 0.75px solid var(--rule);
}

@media (max-width: 780px) {
  .research-grid { grid-template-columns: 1fr; }
}

.research-cell {
  background: var(--paper);
  padding: clamp(24px, 3vw, 36px);
}

.research-cell .t-label { margin-bottom: 18px; display: block; }

.research-cell h3 {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.research-cell p { color: var(--muted); font-size: 15px; line-height: 1.65; margin: 0; }

.claire {
  margin-top: 28px;
  border: 0.75px solid rgba(182, 107, 255, 0.35);
  background: linear-gradient(120deg, rgba(182, 107, 255, 0.08), transparent 60%);
  padding: clamp(24px, 3vw, 36px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

@media (max-width: 720px) {
  .claire { grid-template-columns: 1fr; }
}

.claire h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; margin: 10px 0 10px; }
.claire p { margin: 0; color: var(--muted); font-size: 15px; max-width: 60ch; }

.claire .status {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 0.75px solid rgba(182, 107, 255, 0.45);
  padding: 10px 16px;
  white-space: nowrap;
}

/* ---------- investors ---------- */

.invest {
  background:
    radial-gradient(ellipse 55% 65% at 50% 110%, rgba(182, 107, 255, 0.14), transparent 70%);
}

.invest-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(56px, 8vw, 110px) 0;
}

.invest-inner .seed-badge { margin-bottom: 32px; }

.invest-inner .sec-title { margin-bottom: 24px; }

.invest-inner .t-body { max-width: 58ch; margin: 0 auto 40px; }

.invest-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 0.75px solid var(--rule);
  margin-bottom: 44px;
  text-align: left;
}

.invest-points .cell {
  padding: 22px 22px 24px;
  border-right: 0.75px solid var(--rule-soft);
}

.invest-points .cell:last-child { border-right: none; }

.invest-points .k {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.invest-points .v { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

@media (max-width: 720px) {
  .invest-points { grid-template-columns: 1fr; }
  .invest-points .cell { border-right: none; border-bottom: 0.75px solid var(--rule-soft); }
  .invest-points .cell:last-child { border-bottom: none; }
}

.invest-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- footer ---------- */

.site-footer { padding: 40px 0 48px; }

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 0.75px solid var(--rule-soft);
  flex-wrap: wrap;
}

.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }

.footer-links a {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  flex-wrap: wrap;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--faint);
}

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 64px);
  border-top: 0.75px solid var(--rule);
  padding-top: 30px;
}

@media (max-width: 780px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- team / people ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75px;
  background: var(--rule);
  border: 0.75px solid var(--rule);
}

@media (max-width: 860px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .team-grid { grid-template-columns: 1fr; } }

.team-card {
  background: var(--paper);
  padding: clamp(24px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.2s ease;
}

.team-card:hover { background: var(--paper-raise); }

.team-avatar {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border: 0.75px solid var(--rule);
  margin-bottom: 8px;
}

.team-avatar.avatar-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(182, 107, 255, 0.18), transparent);
  font-family: var(--ff-display);
  font-size: 32px;
  font-weight: 500;
  color: var(--accent);
}

.team-card h3 {
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
}

.team-card .team-role {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.team-card .team-bio {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 4px 0 0;
}

.team-card .team-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 0.75px solid var(--rule-soft);
}

.team-card .team-loc {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.team-card .team-email {
  font-family: var(--ff-mono);
  font-size: 12.5px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  word-break: break-all;
}

.team-card .team-email:hover { color: var(--ink); }
.team-card .team-email .arrow { font-family: var(--ff-body); }

/* ---------- dispatch strip ---------- */

.dispatch-strip {
  border-bottom: 0.75px solid var(--rule);
  background: linear-gradient(120deg, rgba(182, 107, 255, 0.05), transparent 55%);
}

.dispatch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: end;
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

@media (max-width: 860px) {
  .dispatch-grid { grid-template-columns: 1fr; align-items: start; }
}

.dispatch-form { display: flex; flex-direction: column; gap: 10px; }

.dispatch-row {
  display: grid;
  grid-template-columns: 1fr auto;
  border: 0.75px solid var(--rule);
  background: var(--paper-raise);
}

.dispatch-row input {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 14px 16px;
  font-family: var(--ff-mono);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  min-width: 0;
}

.dispatch-row:focus-within { border-color: var(--accent); }

.dispatch-row .btn { border: none; }

.dispatch-note { font-size: 11px; }
.dispatch-note.ok { color: var(--good); }
.dispatch-note.err { color: #ff8fa3; }

/* ---------- writing: index ---------- */

.featured-post {
  border: 0.75px solid rgba(182, 107, 255, 0.35);
  background: linear-gradient(135deg, rgba(182, 107, 255, 0.07), transparent 55%);
  margin-bottom: 34px;
}

.featured-post > a { display: block; padding: clamp(26px, 3.5vw, 44px); color: var(--ink); }
.featured-post h2 {
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 14px;
}
.featured-post p { margin: 0 0 18px; max-width: 66ch; }
.featured-post a:hover h2 { color: var(--accent); }

.post-list { border-top: 0.75px solid var(--rule); }

.post-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) auto;
  gap: clamp(16px, 3vw, 40px);
  align-items: start;
  padding: 26px 4px;
  border-bottom: 0.75px solid var(--rule-soft);
  color: var(--ink);
}

.post-row:hover { background: var(--paper-raise); }
.post-row:hover h3 { color: var(--accent); }

.post-row .post-meta { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.post-row h3 { font-size: 21px; font-weight: 500; letter-spacing: -0.02em; margin: 0 0 8px; }
.post-row p { margin: 0 0 8px; color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 70ch; }
.post-row .go { font-family: var(--ff-mono); color: var(--accent); align-self: center; }

@media (max-width: 720px) {
  .post-row { grid-template-columns: 1fr; }
  .post-row .post-meta { flex-direction: row; align-items: center; }
  .post-row .go { display: none; }
}

/* ---------- writing: article ---------- */

.article-hd { padding: clamp(36px, 5vw, 64px) 0 10px; }
.article-hd .headline { margin-bottom: 20px; }
.article-hd .t-body { margin: 0 0 18px; }

.article-cover {
  display: block;
  width: 100%;
  height: auto;
  border: 0.75px solid var(--rule);
  margin: 26px 0 0;
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(30px, 4vw, 48px) 0;
  align-items: start;
}

@media (max-width: 900px) {
  .article-grid { grid-template-columns: 1fr; }
  .article-toc { display: none; }
}

.article-toc {
  position: sticky;
  top: 88px;
  border-left: 0.75px solid var(--rule);
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.article-toc .t-label { margin-bottom: 6px; }
.article-toc a { font-size: 13px; color: var(--muted); line-height: 1.4; }
.article-toc a:hover { color: var(--accent); }
.article-toc a.lvl3 { padding-left: 14px; font-size: 12.5px; }

.article-ft {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 26px 0 clamp(48px, 6vw, 80px);
  border-top: 0.75px solid var(--rule-soft);
}

/* ---------- prose (markdown body) ---------- */

.prose { max-width: 72ch; font-size: 16.5px; line-height: 1.75; color: var(--ink); }
.prose p { margin: 0 0 1.25em; color: rgba(233, 228, 240, 0.82); }
.prose h2, .prose h3, .prose h4 {
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 1.9em 0 0.7em;
  scroll-margin-top: 84px;
}
.prose h2 { font-size: 26px; }
.prose h3 { font-size: 21px; }
.prose h4 { font-size: 17px; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(182, 107, 255, 0.4); text-underline-offset: 3px; }
.prose code {
  font-family: var(--ff-mono);
  font-size: 0.86em;
  background: var(--paper-raise);
  border: 0.75px solid var(--rule-soft);
  padding: 0.12em 0.4em;
}
.prose pre {
  background: #0a0810;
  border: 0.75px solid var(--rule);
  padding: 18px 20px;
  overflow-x: auto;
  margin: 0 0 1.5em;
}
.prose pre code { background: none; border: none; padding: 0; font-size: 13px; line-height: 1.7; }
.prose blockquote {
  border-left: 2px solid var(--accent);
  margin: 0 0 1.5em;
  padding: 4px 0 4px 20px;
  color: var(--muted);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { margin: 0 0 1.4em; padding-left: 1.4em; color: rgba(233, 228, 240, 0.82); }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--accent); }
.prose img { display: block; max-width: 100%; height: auto; border: 0.75px solid var(--rule); margin: 1.6em 0; }
.prose hr { border: none; border-top: 0.75px solid var(--rule); margin: 2.2em 0; }
.prose .table-wrap { overflow-x: auto; margin: 0 0 1.5em; }
.prose table { border-collapse: collapse; border: 0.75px solid var(--rule); width: 100%; font-size: 14.5px; }
.prose th {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 10px 14px;
  border-bottom: 0.75px solid var(--rule);
}
.prose td { padding: 9px 14px; border-bottom: 0.75px solid var(--rule-soft); }

/* ---------- reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
  .bar > i { transition: none; }
}
