/* ---------- base ---------- */
:root {
  --bg: #0a0a0b;
  --bg-2: #111114;
  --card: #141418;
  --card-2: #181820;
  --line: #23232b;
  --text: #ececef;
  --muted: #8a8a95;
  --dim: #5e5e68;
  --accent: #c8ff4a;
  --accent-soft: rgba(200, 255, 74, .12);
  --green: #5ce28a;
  --radius: 22px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --serif: 'Iowan Old Style', 'Apple Garamond', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, monospace;
  --max: 980px;
  --gutter: clamp(16px, 3vw, 28px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

#grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: .04; mix-blend-mode: overlay;
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 14px; z-index: 50;
  margin: 14px auto 0;
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  display: flex; align-items: center; gap: 14px;
  padding: 10px 12px 10px 18px;
  background: rgba(20, 20, 24, .72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1;
  width: 32px; height: 32px; display: grid; place-items: center;
  background: #fff; color: #0a0a0b; border-radius: 10px;
}
.brand-name { font-weight: 600; letter-spacing: -.01em; font-size: 15px; }
.nav-links {
  display: flex; gap: 4px; margin-left: auto;
  font-size: 14px; color: var(--muted);
}
.nav-links a {
  padding: 8px 12px; border-radius: var(--radius-pill);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  background: var(--text); color: var(--bg);
  border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 600;
  transition: transform .2s, background .2s;
}
.nav-cta:hover { transform: translateY(-1px); background: #fff; }
.nav-cta .dot {
  width: 7px; height: 7px; background: var(--green); border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(92,226,138,.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(92,226,138,.55); }
  70%  { box-shadow: 0 0 0 10px rgba(92,226,138,0); }
  100% { box-shadow: 0 0 0 0 rgba(92,226,138,0); }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .brand-name { display: none; }
}

/* ---------- main ---------- */
main {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin: 22px auto 80px;
  display: flex; flex-direction: column; gap: 18px;
}

/* ---------- card ---------- */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 36px);
  overflow: hidden;
}
.card-head { margin-bottom: 14px; }
.card-head.between {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.eb-emoji {
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  display: inline-flex;
  filter: saturate(1.2);
  transform: translateY(-.5px);
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
}
.eyebrow .status-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
}
.count {
  font-family: var(--mono); font-size: 12px; color: var(--dim);
}

h2, h3, h4 {
  margin: 8px 0 0;
  letter-spacing: -.025em;
  font-weight: 600;
  color: var(--text);
}
h2 { font-size: clamp(22px, 3vw, 28px); line-height: 1.18; }
h3 { font-size: 19px; line-height: 1.25; }
h4 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.card-lede { color: var(--muted); margin-top: 10px; max-width: 60ch; }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(200,255,74,.07), transparent 60%),
    radial-gradient(700px 360px at -10% 110%, rgba(120, 140, 255, .06), transparent 60%),
    var(--card);
  padding: clamp(28px, 5vw, 56px);
}
.hero-skyline {
  position: absolute;
  left: 0; right: 0; bottom: 64px;
  width: 100%;
  height: clamp(120px, 17vw, 180px);
  color: var(--text);
  opacity: .14;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
[data-theme="light"] .hero-skyline { opacity: .25; }
.hero > *:not(.hero-skyline) { position: relative; z-index: 1; }
.hero-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: rgba(92, 226, 138, .08);
  color: var(--green);
  border: 1px solid rgba(92, 226, 138, .25);
  border-radius: var(--radius-pill);
  letter-spacing: .08em;
}
.status-dot {
  width: 7px; height: 7px; background: var(--green); border-radius: 50%;
  animation: pulse 2.4s infinite;
}
.loc { color: var(--dim); }

.hero-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.18;
  letter-spacing: -.02em;
  margin: 28px 0 26px;
  padding-bottom: .12em;
}
.hero-title .reveal { display: block; }

.hero-sub {
  max-width: 56ch;
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--muted);
  margin: 0 0 28px;
}

.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 600;
  border: 1px solid transparent;
  transition: transform .2s, background .2s, border-color .2s;
  cursor: pointer;
}
.btn.primary { background: var(--text); color: var(--bg); }
.btn.primary:hover { background: #fff; transform: translateY(-1px); }
.btn.ghost {
  background: transparent; color: var(--text);
  border-color: var(--line);
}
.btn.ghost:hover { border-color: var(--text); transform: translateY(-1px); }

.hero-marquee {
  position: relative;
  margin: 36px -36px -36px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; gap: 22px;
  font-family: var(--serif); font-style: italic;
  font-size: 22px; color: var(--dim);
  white-space: nowrap;
  animation: marquee 38s linear infinite;
}
.marquee-track span:nth-child(odd) { color: var(--muted); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- story ---------- */
.story { position: relative; }
.story h2 { font-family: var(--serif); font-style: italic; font-weight: 400; }
.story-photo {
  position: absolute;
  top: 22px; right: 22px;
  width: clamp(72px, 11vw, 116px);
  aspect-ratio: 4/5;
  border-radius: 14px;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  box-shadow: 0 10px 40px rgba(0,0,0,.4);
  transition: filter .4s ease, transform .4s ease;
}
.story-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(.85) brightness(.85);
  transition: filter .6s ease;
}
.story:hover .story-photo img { filter: grayscale(0) brightness(1); }
.story-photo:hover { transform: rotate(.5deg) translateY(-2px); }
@media (max-width: 640px) {
  .story-photo { position: static; margin: 0 0 16px; width: 96px; }
}

.prose p {
  font-size: clamp(16px, 1.6vw, 18px);
  color: #c9c9d0;
  margin: 14px 0 0;
  max-width: 64ch;
}
.prose a {
  color: var(--text);
  border-bottom: 1px solid var(--line);
  transition: border-color .2s;
}
.prose a:hover { border-color: var(--accent); }

/* ---------- grid ---------- */
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) { .grid.two { grid-template-columns: 1fr; } }

/* ---------- stealth featured card ---------- */
.stealth-card {
  position: relative;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(200,255,74,.5), rgba(120,140,255,.35) 50%, rgba(200,255,74,.5));
  margin: 24px 0 28px;
  overflow: hidden;
}
.stealth-shimmer {
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.08) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: shimmer 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.stealth-inner {
  background: linear-gradient(180deg, #15151b 0%, #11111630 100%), #11111a;
  border-radius: 17px;
  padding: clamp(20px, 3vw, 32px);
  position: relative;
}
.stealth-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
  padding: 5px 12px;
  background: rgba(200,255,74,.08);
  border: 1px solid rgba(200,255,74,.25);
  border-radius: var(--radius-pill);
}
.stealth-eyebrow .status-dot { background: var(--accent); animation: pulse 2.4s infinite; }
.stealth-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.3;
  margin: 14px 0 10px;
  padding-bottom: .18em;
  background: linear-gradient(180deg, #fff 0%, #c8ff4a 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stealth-card p { color: var(--muted); max-width: 50ch; margin: 0 0 16px; }

/* ---------- timeline ---------- */
.built h2 { font-family: var(--serif); font-style: italic; font-weight: 400; max-width: 24ch; }
.timeline {
  list-style: none; padding: 0; margin: 8px 0 0;
  display: flex; flex-direction: column;
}
.t-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 22px; align-items: start;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  transition: background .2s;
}
.t-row:hover { background: rgba(255,255,255,.015); }
.t-year {
  font-family: var(--mono); font-size: 12px; color: var(--dim);
  padding-top: 6px;
  white-space: nowrap;
}
.t-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 6px;
}
.t-logo {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: #fff;
  object-fit: contain;
  padding: 3px;
  flex-shrink: 0;
}
.t-body h3 { margin: 0; font-size: 18px; display: inline-flex; align-items: center; gap: 8px; }
.t-body p { margin: 4px 0 0; color: var(--muted); max-width: 60ch; }
.t-tag {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 4px 10px; white-space: nowrap; align-self: center;
}
.badge {
  display: inline-flex; align-items: center;
  font-size: 14px;
  line-height: 1;
}
@media (max-width: 640px) {
  .t-row { grid-template-columns: 88px 1fr; gap: 14px; }
  .t-tag { grid-column: 2; justify-self: start; margin-top: 6px; }
  .t-year { padding-top: 8px; }
}

/* ---------- stack ---------- */
.stack h2 { font-family: var(--serif); font-style: italic; font-weight: 400; }
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.stack-col { padding: 22px 22px 24px; border-right: 1px solid var(--line); }
.stack-col:last-child { border-right: none; }
.stack-col h4 { margin: 0 0 14px; }
.stack-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.stack-col li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text);
}
.stack-col img {
  width: 22px; height: 22px;
  border-radius: 5px;
  background: #fff;
  padding: 2px;
  object-fit: contain;
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .stack-grid { grid-template-columns: 1fr; }
  .stack-col { border-right: none; border-bottom: 1px solid var(--line); }
  .stack-col:last-child { border-bottom: none; }
}

/* ---------- invest ---------- */
.invest h2 { font-family: var(--serif); font-style: italic; font-weight: 400; max-width: 28ch; }
.origins-hat {
  display: flex; gap: 16px; align-items: flex-start;
  margin-top: 10px;
}
.origins-hat img {
  width: 44px; height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: #fff;
}
.origins-hat p { color: var(--muted); margin: 0; max-width: 60ch; }
.logos.rich {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.logos.rich li {
  padding: 22px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .2s;
}
.logos.rich li:hover { background: rgba(255,255,255,.02); }
.logos.rich img {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
  object-fit: contain;
  margin-bottom: 12px;
}
.logos.rich .lg-name {
  font-size: 15px; font-weight: 600; color: var(--text);
  display: inline-flex; align-items: center; gap: 6px;
}
.logos.rich .lg-tag {
  font-family: var(--mono); font-size: 11px; color: var(--dim);
  letter-spacing: .04em;
  margin-top: 4px;
}
.lg-more {
  display: flex; flex-direction: column; justify-content: center;
  background:
    radial-gradient(280px 120px at 50% 50%, rgba(200,255,74,.05), transparent 70%);
}
.lg-more .lg-name {
  font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--accent);
}

/* ---------- posts ---------- */
.posts h2 { font-family: var(--serif); font-style: italic; font-weight: 400; }
.posts-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 22px;
  padding: 22px 24px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 16px; font-weight: 600;
  transition: transform .2s, border-color .2s, background .2s;
}
.posts-cta:hover {
  transform: translateY(-2px);
  border-color: rgba(10, 102, 194, .55);
  background: #1a1a22;
}
.posts-cta-label {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--text);
}
.posts-cta-label svg { color: #0a66c2; flex-shrink: 0; }
.posts-cta-arrow {
  font-size: 22px; color: var(--muted);
  transition: transform .2s, color .2s;
}
.posts-cta:hover .posts-cta-arrow { transform: translateX(4px); color: var(--text); }

.post-grid {
  list-style: none; padding: 0; margin: 22px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.post-grid a {
  display: block;
  padding: 22px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  height: 100%;
  transition: transform .2s, border-color .2s;
}
.post-grid a:hover { transform: translateY(-2px); border-color: rgba(200,255,74,.4); }
.post-meta {
  font-family: var(--mono); font-size: 11px;
  color: var(--dim); letter-spacing: .04em;
  text-transform: uppercase;
}
.post-grid h3 {
  font-size: 17px; margin: 8px 0 8px;
  line-height: 1.25;
}
.post-grid p { color: var(--muted); margin: 0 0 14px; font-size: 14px; }
.post-cta {
  font-size: 13px; font-weight: 600; color: var(--accent);
}

/* ---------- podcast / writing ---------- */
.podcast p { color: var(--muted); margin: 12px 0 16px; max-width: 50ch; }
.podcast {
  background:
    radial-gradient(360px 180px at 100% 100%, rgba(255, 184, 88, .07), transparent 60%),
    var(--card);
}
.quotes { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.quotes li {
  font-family: var(--serif); font-style: italic;
  font-size: 18px; line-height: 1.4;
  color: var(--text);
  padding-left: 14px;
  border-left: 2px solid var(--accent-soft);
}
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--text);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: border-color .2s, gap .2s;
}
.link-arrow:hover { border-color: var(--text); gap: 10px; }

/* ---------- follow ---------- */
.follow h2 { font-family: var(--serif); font-style: italic; font-weight: 400; }
.social-grid {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 720px) { .social-grid { grid-template-columns: 1fr; } }

.social-card {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  padding: 20px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  isolation: isolate;
  transition: transform .25s ease, border-color .25s ease;
}
.social-card:hover { transform: translateY(-3px); }
.social-glow {
  position: absolute; inset: -40%;
  background: radial-gradient(circle at 30% 30%, var(--brand, #fff) 0%, transparent 55%);
  opacity: 0;
  z-index: -1;
  transition: opacity .35s ease;
  filter: blur(20px);
}
.social-card:hover .social-glow { opacity: .35; }
.social-icon {
  width: 28px; height: 28px;
  color: var(--brand, var(--text));
  flex-shrink: 0;
  transition: transform .3s ease;
}
.social-card:hover .social-icon { transform: scale(1.1) rotate(-3deg); }
.social-meta {
  display: flex; flex-direction: column;
  flex: 1; min-width: 0;
}
.social-platform { font-size: 15px; font-weight: 600; color: var(--text); letter-spacing: -.01em; }
.social-handle {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.social-arrow {
  font-size: 18px; color: var(--muted);
  transition: transform .25s ease, color .25s ease;
}
.social-card:hover .social-arrow { transform: translate(2px, -2px); color: var(--text); }

.social-card.linkedin   { --brand: #0a66c2; }
.social-card.linkedin:hover { border-color: rgba(10, 102, 194, .6); }
.social-card.x          { --brand: #ffffff; }
.social-card.x:hover    { border-color: rgba(255, 255, 255, .35); }
.social-card.instagram  { --brand: #e1306c; }
.social-card.instagram:hover { border-color: rgba(225, 48, 108, .55); }
.social-card.instagram .social-glow {
  background: radial-gradient(circle at 30% 30%, #f09433 0%, #dc2743 35%, #bc1888 60%, transparent 75%);
}

[data-theme="light"] .social-card { background: #fafafb; }
[data-theme="light"] .social-card.x { --brand: #14141a; }
[data-theme="light"] .social-card.x:hover { border-color: rgba(0,0,0,.45); }

/* ---------- contact form ---------- */
.contact h2 { font-family: var(--serif); font-style: italic; font-weight: 400; }
.contact-form {
  display: flex; flex-direction: column; gap: 14px;
  margin-top: 22px;
}
.contact-form .row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
@media (max-width: 560px) {
  .contact-form .row { grid-template-columns: 1fr; }
}
.contact-form label {
  display: flex; flex-direction: column; gap: 6px;
}
.contact-form label > span {
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.contact-form input,
.contact-form textarea {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  transition: border-color .2s, background .2s;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #1a1a22;
}
.contact-form .honey { display: none !important; }
.form-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.form-foot .btn { border: none; }
.form-note {
  font-size: 12px; color: var(--dim); font-family: var(--mono); letter-spacing: .04em;
}

.form-success {
  margin-top: 22px;
  padding: 28px 24px;
  border: 1px solid rgba(92, 226, 138, .3);
  background:
    radial-gradient(420px 160px at 100% 0%, rgba(92, 226, 138, .07), transparent 60%),
    var(--bg-2);
  border-radius: var(--radius-sm);
  text-align: center;
}
.form-success-icon {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(92, 226, 138, .12);
  color: var(--green);
  border: 1px solid rgba(92, 226, 138, .35);
  animation: pop .5s cubic-bezier(.2,.7,.2,1.4);
}
@keyframes pop {
  0%   { transform: scale(.6); opacity: 0; }
  60%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.form-success h3 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 26px; margin: 0 0 8px;
}
.form-success p { color: var(--muted); margin: 0; max-width: 44ch; margin-inline: auto; }

.form-error {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 90, 90, .35);
  background: rgba(255, 90, 90, .06);
  border-radius: var(--radius-sm);
  color: #ff8a8a;
  font-size: 14px;
}
.form-error a { color: var(--accent); border-bottom: 1px solid currentColor; }

/* ---------- footer ---------- */
.foot {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin: 0 auto 40px;
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--dim);
  letter-spacing: .04em;
  padding: 0 8px;
}
@media (max-width: 480px) {
  .foot { flex-direction: column; gap: 4px; }
}

/* ---------- reveal anims ---------- */
.reveal { opacity: 0; transform: translateY(14px); }
.in-view .reveal,
.reveal.in-view { opacity: 1; transform: none; transition: opacity .8s ease, transform .8s ease; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- theme toggle button ---------- */
.theme-toggle {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s, transform .2s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--text);
  border-color: var(--text);
  transform: rotate(15deg);
}
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun  { display: block; }
[data-theme="light"] .theme-toggle .icon-sun  { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ---------- LIGHT THEME ---------- */
[data-theme="light"] {
  --bg: #f4f4f5;
  --bg-2: #ffffff;
  --card: #ffffff;
  --card-2: #fafafa;
  --line: #e8e8ec;
  --text: #14141a;
  --muted: #5d5d68;
  --dim: #9a9aa3;
  --accent: #6c8c00;
  --accent-soft: rgba(108, 140, 0, .12);
  --green: #10a85c;
}
[data-theme="light"] body { background: var(--bg); color: var(--text); }
[data-theme="light"] #grain { opacity: .025; mix-blend-mode: multiply; }
[data-theme="light"] .nav {
  background: rgba(255, 255, 255, .76);
  border-color: rgba(0,0,0,.06);
  box-shadow: 0 8px 24px rgba(0,0,0,.04);
}
[data-theme="light"] .brand-mark { background: #14141a; color: #fff; }
[data-theme="light"] .card {
  background: var(--card);
  border-color: var(--line);
  box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 8px 28px rgba(0,0,0,.04);
}
[data-theme="light"] .hero {
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(108,140,0,.06), transparent 60%),
    radial-gradient(700px 360px at -10% 110%, rgba(80, 100, 200, .05), transparent 60%),
    var(--card);
}
[data-theme="light"] .status {
  background: rgba(16, 168, 92, .08);
  color: #057a3d;
  border-color: rgba(16, 168, 92, .25);
}
[data-theme="light"] .stealth-card {
  background: linear-gradient(135deg, rgba(108,140,0,.55), rgba(80,100,200,.4) 50%, rgba(108,140,0,.55));
}
[data-theme="light"] .stealth-inner {
  background: linear-gradient(180deg, #fcfcfd 0%, #f7f7f8 100%);
}
[data-theme="light"] .stealth-eyebrow {
  background: rgba(108, 140, 0, .1);
  border-color: rgba(108, 140, 0, .3);
  color: #4d6500;
}
[data-theme="light"] .stealth-eyebrow .status-dot { background: #6c8c00; }
[data-theme="light"] .stealth-title {
  background: linear-gradient(180deg, #14141a 0%, #4d6500 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
[data-theme="light"] .now.stealth h3,
[data-theme="light"] .lg-more .lg-name { color: #4d6500; }
[data-theme="light"] .quotes li { border-left-color: var(--accent-soft); }
[data-theme="light"] .post-cta { color: #4d6500; }
[data-theme="light"] .stack-col img,
[data-theme="light"] .logos.rich img,
[data-theme="light"] .t-logo,
[data-theme="light"] .origins-hat img {
  border: 1px solid var(--line);
  background: #fff;
}
[data-theme="light"] .nav-cta {
  background: #14141a; color: #fff;
}
[data-theme="light"] .nav-cta:hover { background: #000; }
[data-theme="light"] .btn.primary {
  background: #14141a; color: #fff;
}
[data-theme="light"] .btn.primary:hover { background: #000; }
[data-theme="light"] .nav-cta .dot { background: var(--green); }
[data-theme="light"] .marquee-track,
[data-theme="light"] .marquee-track span:nth-child(odd) { color: #b3b3bb; }
[data-theme="light"] .marquee-track span:nth-child(odd) { color: #93939d; }
[data-theme="light"] .prose p { color: #2d2d36; }
[data-theme="light"] .now p,
[data-theme="light"] .podcast p,
[data-theme="light"] .stealth-card p,
[data-theme="light"] .t-body p,
[data-theme="light"] .post-grid p,
[data-theme="light"] .origins-hat p { color: var(--muted); }
[data-theme="light"] .contact-form input,
[data-theme="light"] .contact-form textarea {
  background: #fafafb;
  border-color: var(--line);
}
[data-theme="light"] .contact-form input:focus,
[data-theme="light"] .contact-form textarea:focus {
  background: #fff;
  border-color: #14141a;
}
[data-theme="light"] .posts-cta { background: #fafafb; }
[data-theme="light"] .posts-cta:hover { background: #f0f6ff; border-color: rgba(10, 102, 194, .35); }
[data-theme="light"] .post-grid a { background: #fafafb; }
[data-theme="light"] .post-grid a:hover { border-color: rgba(108,140,0,.4); background: #fff; }
[data-theme="light"] .story-photo {
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
[data-theme="light"] .lg-more {
  background: radial-gradient(280px 120px at 50% 50%, rgba(108,140,0,.06), transparent 70%);
}

/* ---------- mobile refinements ---------- */
@media (max-width: 720px) {
  main { gap: 12px; margin: 16px auto 60px; }
  .card { padding: 22px 18px; border-radius: 18px; }
  .hero { padding: 24px 20px; }
  .hero-title { font-size: clamp(28px, 9vw, 38px); margin: 22px 0 16px; max-width: none; }
  .hero-sub { font-size: 15px; margin-bottom: 22px; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1; justify-content: center; }
  .hero-marquee { margin: 26px -18px -22px; }
  .marquee-track { font-size: 18px; gap: 16px; }
  .hero-meta { font-size: 11px; }
  .status { padding: 5px 10px; }

  .theme-toggle { width: 34px; height: 34px; }
  .nav { padding: 8px 8px 8px 12px; gap: 8px; }
  .nav-cta { padding: 8px 12px; font-size: 13px; }
  .brand-mark { width: 28px; height: 28px; font-size: 18px; }

  h2 { font-size: clamp(20px, 5.4vw, 24px); }
  h3 { font-size: 17px; }
  .card-head.between { gap: 8px; }
  .count { font-size: 11px; }

  .stealth-card { margin: 18px 0 22px; }
  .stealth-inner { padding: 20px 18px; }
  .stealth-title { font-size: clamp(24px, 6.4vw, 30px); }

  .timeline { margin-top: 0; }
  .t-row { padding: 18px 0; gap: 12px; grid-template-columns: 92px 1fr; }
  .t-year { font-size: 11px; padding-top: 6px; }
  .t-body p { font-size: 14px; }
  .t-tag { font-size: 10px; padding: 3px 8px; }
  .t-logo { width: 24px; height: 24px; }
  .t-head { gap: 8px; }

  .stack-grid { grid-template-columns: 1fr; }
  .stack-col { padding: 18px; }

  .logos.rich { grid-template-columns: 1fr 1fr; }
  .logos.rich li { padding: 16px 14px; }
  .logos.rich img { width: 32px; height: 32px; margin-bottom: 8px; }
  .logos.rich .lg-name { font-size: 14px; }
  .logos.rich .lg-tag { font-size: 10px; }

  .origins-hat { gap: 12px; }
  .origins-hat img { width: 38px; height: 38px; }

  .posts-cta { padding: 18px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .posts-cta-arrow { align-self: flex-end; }

  .post-grid { grid-template-columns: 1fr; }
  .post-grid a { padding: 18px; }

  .quotes li { font-size: 16px; }
  .socials a { padding: 16px 4px; font-size: 15px; }
  .s-handle { font-size: 12px; }

  .form-foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .form-foot .btn { justify-content: center; }
  .form-note { text-align: center; }

  .foot { font-size: 11px; padding: 0 4px; }
}

@media (max-width: 420px) {
  .hero-title { font-size: 30px; }
  .stealth-title { font-size: 24px; }
  .logos.rich { grid-template-columns: 1fr; }
}
