:root {
  --bg: #09090b;
  --bg-elevated: #18181b;
  --bg-card: #121215;
  --text: #fafafa;
  --text-dim: #a1a1aa;
  --accent: #10b981;
  --accent-bright: #22d395;
  --accent-subtle: rgba(16, 185, 129, 0.08);
  --purple: #8b5cf6;
  --cyan: #0ea5e9;
  --border: #27272a;
  --radius: 4px;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  --sans: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background-color: var(--bg); color: var(--text);
  font-family: var(--sans); line-height: 1.6; overflow-x: hidden;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
}

/* ---------- Nav ---------- */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(9,9,11,0.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; display: flex; align-items: center;
  justify-content: space-between; height: 64px; gap: 16px;
}
.nav-logo { font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--text); white-space: nowrap; letter-spacing: -0.01em; }
.nav-logo a { color: var(--text); text-decoration: none; }
.nav-logo .dot { color: var(--accent); }
.nav-links { display: flex; gap: 24px; overflow-x: auto; }
.nav-links a {
  color: var(--text-dim); text-decoration: none; font-size: 13.5px; white-space: nowrap;
  border-bottom: 1px solid transparent; padding: 2px 0; transition: color .15s, border-color .15s;
}
.nav-links a:hover { color: var(--text); border-color: var(--accent); }

/* ---------- Animated gradient layers (verbatim from pelicanlabs.dev site.css) ---------- */
.hero-solar { position: relative; }
.hero-solar h1 { overflow-wrap: anywhere; word-break: normal; }

/* Left side: Text section - Soft emerald bokeh with purple accent */
.hero-text-gradient { position: relative; }
.hero-text-gradient::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  background:
    radial-gradient(
      ellipse 600px 500px at 25% 45%,
      rgba(34, 211, 149, 0.22) 0%,
      rgba(16, 185, 129, 0.16) 15%,
      rgba(16, 185, 129, 0.08) 35%,
      rgba(16, 185, 129, 0.03) 55%,
      transparent 75%
    ),
    radial-gradient(
      ellipse 400px 400px at 35% 60%,
      rgba(139, 92, 246, 0.12) 0%,
      rgba(124, 58, 237, 0.06) 30%,
      transparent 60%
    );
  animation: hero-text-pulse 10s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}
@keyframes hero-text-pulse {
  0%, 100% { opacity: 0.7; transform: translate(0, 0) scale(1); }
  33% { opacity: 1; transform: translate(-8%, 10%) scale(1.15); }
  66% { opacity: 0.85; transform: translate(10%, -8%) scale(0.92); }
}

/* Right side: IDE mockup - Soft cyan-emerald bokeh with blue tones */
.hero-ide-gradient { position: relative; }
.hero-ide-gradient::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  background:
    radial-gradient(
      ellipse 700px 600px at 70% 40%,
      rgba(14, 165, 233, 0.18) 0%,
      rgba(6, 182, 212, 0.12) 20%,
      rgba(6, 182, 212, 0.05) 40%,
      transparent 65%
    ),
    radial-gradient(
      ellipse 500px 500px at 55% 65%,
      rgba(34, 211, 149, 0.14) 0%,
      rgba(16, 185, 129, 0.08) 25%,
      rgba(16, 185, 129, 0.03) 50%,
      transparent 70%
    );
  animation: hero-ide-shift 14s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  filter: blur(50px);
}
@keyframes hero-ide-shift {
  0%, 100% { opacity: 0.8; transform: translate(0, 0) scale(1); }
  25% { opacity: 1; transform: translate(12%, -10%) scale(1.12); }
  50% { opacity: 0.85; transform: translate(-8%, 8%) scale(1.05); }
  75% { opacity: 0.9; transform: translate(10%, -5%) scale(0.94); }
}

.hero-text-gradient > *,
.hero-ide-gradient > * { position: relative; z-index: 1; }

/* Integrations Section - Soft horizontal bokeh sweep with purple hints */
.integrations-gradient { position: relative; }
.integrations-gradient::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -100%;
  right: -100%;
  bottom: -30%;
  background:
    radial-gradient(
      ellipse 800px 300px at 30% 50%,
      rgba(34, 211, 149, 0.14) 0%,
      rgba(16, 185, 129, 0.08) 30%,
      rgba(14, 165, 233, 0.1) 50%,
      rgba(6, 182, 212, 0.05) 70%,
      transparent 85%
    ),
    radial-gradient(
      ellipse 600px 250px at 70% 50%,
      rgba(124, 58, 237, 0.08) 0%,
      rgba(16, 185, 129, 0.06) 40%,
      transparent 75%
    );
  animation: integrations-wave 16s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
}
@keyframes integrations-wave {
  0%, 100% { transform: translateX(-15%); opacity: 0.7; }
  50% { transform: translateX(35%); opacity: 1; }
}
.integrations-gradient > * { position: relative; z-index: 1; }

/* Compatibility aliases used across pages */
.glow-hero { position: relative; overflow: hidden; }
.glow-hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%; right: -50%; bottom: -50%;
  background:
    radial-gradient(
      ellipse 600px 500px at 25% 45%,
      rgba(34, 211, 149, 0.22) 0%,
      rgba(16, 185, 129, 0.16) 15%,
      rgba(16, 185, 129, 0.08) 35%,
      rgba(16, 185, 129, 0.03) 55%,
      transparent 75%
    ),
    radial-gradient(
      ellipse 400px 400px at 35% 60%,
      rgba(139, 92, 246, 0.12) 0%,
      rgba(124, 58, 237, 0.06) 30%,
      transparent 60%
    );
  animation: hero-text-pulse 10s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}
.glow-hero > * { position: relative; z-index: 1; }
.glow-band { position: relative; overflow: hidden; }
.glow-band::before {
  content: '';
  position: absolute;
  top: -30%; left: -100%; right: -100%; bottom: -30%;
  background:
    radial-gradient(
      ellipse 800px 300px at 30% 50%,
      rgba(34, 211, 149, 0.14) 0%,
      rgba(16, 185, 129, 0.08) 30%,
      rgba(14, 165, 233, 0.1) 50%,
      rgba(6, 182, 212, 0.05) 70%,
      transparent 85%
    ),
    radial-gradient(
      ellipse 600px 250px at 70% 50%,
      rgba(124, 58, 237, 0.08) 0%,
      rgba(16, 185, 129, 0.06) 40%,
      transparent 75%
    );
  animation: integrations-wave 16s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
}
.glow-band > * { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .hero-text-gradient::before,
  .hero-ide-gradient::before,
  .integrations-gradient::before,
  .glow-hero::before,
  .glow-band::before {
    animation: none !important;
    opacity: 0.6;
    transform: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  max-width: 1200px; margin: 0 auto; padding: 88px 24px 72px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px; align-items: center;
}
.hero-col-ide { border-left: 1px solid var(--border); padding-left: 48px; align-self: stretch; display: flex; align-items: center; }
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 64px; }
  .hero-col-ide { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 40px; }
}

.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 9999px;
  border: 1px solid var(--border); background: var(--bg-elevated);
  color: var(--text-dim); font-family: var(--mono); font-size: 12.5px;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 26px;
}
.badge-pill .pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: pulse-dot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(42px, 6vw, 68px); letter-spacing: -0.01em; line-height: 1.08;
}
.hero h1 .muted-line { display: block; color: var(--text-dim); font-style: italic; }
.hero .sub { margin-top: 24px; font-size: 17.5px; color: var(--text-dim); max-width: 560px; font-weight: 300; }
.hero .sub strong { color: var(--text); font-weight: 500; }
.hero .sub-mono { margin-top: 14px; font-family: var(--mono); font-size: 13px; color: var(--text-dim); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 30px; border-radius: var(--radius); font-size: 15px; font-weight: 500;
  text-decoration: none; transition: all .2s ease; border: 1px solid transparent;
}
.btn.primary { background: var(--accent); color: #09090b; border-color: var(--accent); }
.btn.primary:hover { background: #fff; border-color: #fff; transform: scale(1.01); }
.btn.ghost { background: transparent; color: var(--text-dim); border-color: var(--border); }
.btn.ghost:hover { color: var(--text); border-color: var(--text-dim); }

.stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.stat {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 18px; min-width: 130px;
}
.stat .num { font-family: var(--serif); font-size: 26px; color: var(--accent); }
.stat .lbl { font-size: 12px; color: var(--text-dim); margin-top: 1px; font-family: var(--mono); }

/* ---------- Terminal ---------- */
.terminal {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--mono); font-size: 13px; overflow: hidden; width: 100%;
  box-shadow: 0 0 24px var(--accent-subtle);
}
.terminal-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 16px; border-bottom: 1px solid var(--border); background: var(--bg);
}
.terminal-bar .dots { display: flex; gap: 7px; }
.terminal-bar .dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.terminal-bar .title { font-family: var(--sans); font-size: 12px; color: var(--text-dim); }
.terminal-body { padding: 22px; line-height: 1.75; min-height: 320px; }
.terminal-body .prompt { color: var(--accent); }
.terminal-body .path { color: #60a5fa; }
.terminal-body .out {
  padding-left: 16px; border-left: 1px solid var(--border); margin: 12px 0;
  color: var(--text-dim); opacity: 0; transition: opacity 1s ease;
}
.terminal-body .out.show { opacity: 1; }
.terminal-body .out .step { color: #93c5fd; }
.terminal-body .out .ok { color: var(--accent); }
.terminal-body .out .warn { color: #facc15; }
.input-cursor {
  display: inline-block; width: 8px; height: 1.15em; background: var(--accent);
  animation: blink 1s step-end infinite; vertical-align: middle; margin-left: 2px;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.hidden { display: none; }

/* ---------- Marquee ---------- */
.marquee-section { padding: 44px 0 52px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.marquee-label {
  text-align: center; font-family: var(--mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.2em; color: var(--text-dim); margin-bottom: 30px;
}
.marquee { position: relative; width: 100%; overflow: hidden; }
.marquee-track { display: flex; white-space: nowrap; animation: pelican-marquee 30s linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; align-items: center; gap: 48px; padding: 0 24px; }
.marquee-set span {
  font-size: 20px; font-weight: 700; color: var(--text-dim); display: inline-flex;
  align-items: center; gap: 9px; min-width: max-content;
  filter: grayscale(1); transition: all .3s ease;
}
.marquee-set span:hover { filter: grayscale(0); color: var(--text); }
.marquee-set i { color: var(--accent); opacity: 0.75; }
@keyframes pelican-marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}
@media (max-width: 640px) { .marquee-track { animation-duration: 12s; } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none !important; transform: none !important; } }

/* ---------- Sections ---------- */
section { max-width: 1200px; margin: 0 auto; padding: 72px 24px; }
.section-kicker { font-family: var(--mono); font-size: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.18em; }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.01em; margin-top: 10px; line-height: 1.15; }
h2 em, h2 .it { font-style: italic; color: var(--text-dim); }
.section-intro { color: var(--text-dim); margin-top: 12px; max-width: 720px; font-weight: 300; font-size: 16px; }

.diagram-panel {
  margin-top: 28px; background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; overflow-x: auto;
}
.diagram-panel .mermaid { display: flex; justify-content: center; min-width: 320px; }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; margin-top: 36px; }
.card {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: border-color .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column; gap: 10px;
}
.card:hover { border-color: var(--accent); box-shadow: 0 0 20px var(--accent-subtle); }
.card .tag { font-family: var(--mono); font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em; }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 21px; }
.card p { font-size: 14px; color: var(--text-dim); flex: 1; font-weight: 300; }
.card a.jump { font-size: 13px; color: var(--accent); text-decoration: none; font-family: var(--mono); }
.card a.jump:hover { color: var(--text); }

/* ---------- Project blocks ---------- */
.project {
  margin-top: 44px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-elevated); overflow: hidden; transition: border-color .2s ease;
}
.project:hover { border-color: #3f3f46; }
.project-head { padding: 30px 30px 0; }
.project-head .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  font-family: var(--mono); font-size: 11px; padding: 4px 11px; border-radius: 9999px;
  border: 1px solid var(--border); color: var(--text-dim); background: rgba(255,255,255,0.02);
}
.chip.prod { border-color: rgba(16,185,129,0.5); color: var(--accent); }
.chip.concept { border-color: rgba(245,158,11,0.5); color: #f59e0b; }
.project-head h3 { font-family: var(--serif); font-weight: 400; font-size: 27px; }
.project-head .oneliner { color: var(--text-dim); margin-top: 8px; max-width: 800px; font-weight: 300; }
.project-body { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 0; }
@media (max-width: 900px) { .project-body { grid-template-columns: 1fr; } }
.project-notes { padding: 20px 30px 30px; }
.project-notes h4 { font-size: 12px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin: 16px 0 8px; }
.project-notes ul { list-style: none; }
.project-notes li { font-size: 14px; color: var(--text-dim); padding: 4px 0 4px 18px; position: relative; font-weight: 300; }
.project-notes li::before { content: ">"; font-family: var(--mono); position: absolute; left: 0; color: var(--accent); }
.soundbite {
  margin-top: 18px; padding: 14px 16px; background: var(--accent-subtle);
  border: 1px solid rgba(16,185,129,0.25); border-radius: var(--radius);
  font-size: 13.5px; color: var(--text); font-style: italic; font-family: var(--serif);
  font-size: 15.5px; line-height: 1.55;
}
.project-diagram { padding: 20px 24px 28px; border-left: 1px solid var(--border); overflow-x: auto; }
@media (max-width: 900px) { .project-diagram { border-left: none; border-top: 1px solid var(--border); } }
.project-diagram .mermaid { display: flex; justify-content: center; }

/* ---------- OS pillars ---------- */
.os-pillars { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 32px; }
.pillar { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; transition: border-color .2s ease; }
.pillar:hover { border-color: var(--accent); }
.pillar .n { font-family: var(--mono); color: var(--accent); font-size: 12px; }
.pillar h4 { font-family: var(--serif); font-weight: 400; font-size: 19px; margin-top: 6px; }
.pillar p { font-size: 13.5px; color: var(--text-dim); margin-top: 6px; font-weight: 300; }

/* ---------- Tables ---------- */
table.compare { width: 100%; border-collapse: collapse; margin-top: 32px; font-size: 14px; }
table.compare th, table.compare td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); }
table.compare th { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); }
table.compare td:first-child { color: var(--text-dim); font-weight: 300; }
table.compare td:last-child { color: var(--accent); }

table.detail { width: 100%; border-collapse: collapse; margin-top: 22px; font-size: 14px; }
table.detail th, table.detail td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
table.detail th { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); }
table.detail td:first-child { font-family: var(--mono); font-size: 13px; color: var(--accent); white-space: nowrap; }
table.detail td { color: var(--text-dim); font-weight: 300; }

/* ---------- Positioning quote ---------- */
.positioning {
  margin-top: 32px; padding: 22px 26px; border-left: 2px solid var(--accent);
  background: var(--bg-elevated); border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--serif); font-size: 18px; line-height: 1.55; color: var(--text); max-width: 820px;
}

/* ---------- Looking-for box ---------- */
.looking-for {
  margin-top: 28px; padding: 18px 22px; border: 1px solid rgba(16,185,129,0.4);
  background: var(--accent-subtle); border-radius: var(--radius); max-width: 560px;
}
.looking-for .lf-label { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 8px; }
.looking-for .lf-line { font-size: 15.5px; color: var(--text); }
.looking-for .lf-sub { font-size: 13.5px; color: var(--text-dim); margin-top: 5px; font-weight: 300; }

/* ---------- Systems list (resume style) ---------- */
.sys-list { margin-top: 32px; border-top: 1px solid var(--border); }
.sys-row {
  display: grid; grid-template-columns: minmax(180px, 280px) 1fr auto;
  gap: 18px; align-items: baseline; padding: 18px 4px;
  border-bottom: 1px solid var(--border); text-decoration: none;
  transition: background .15s ease;
}
.sys-row:hover { background: rgba(255,255,255,0.02); }
.sys-row .sys-name { font-family: var(--serif); font-size: 19px; color: var(--text); }
.sys-row .sys-blurb { font-size: 14px; color: var(--text-dim); font-weight: 300; }
.sys-row .sys-link { font-family: var(--mono); font-size: 13px; color: var(--accent); white-space: nowrap; }
.sys-row:hover .sys-link { color: var(--text); }
@media (max-width: 900px) {
  .sys-row { display: block; padding: 16px 2px; }
  .sys-row .sys-name { display: block; font-size: 18px; }
  .sys-row .sys-blurb { display: block; margin-top: 5px; line-height: 1.55; }
  .sys-row .sys-link { display: inline-block; margin-top: 8px; }
}

/* ---------- CTA band ---------- */
.cta-band { text-align: center; padding: 64px 24px; border-top: 1px solid var(--border); background: var(--bg-elevated); }
.cta-band h2 { margin-bottom: 26px; }
.hero-contact-top { display: flex; justify-content: center; padding: 40px 24px 0; position: relative; z-index: 2; }
.hero-contact-top .btn { padding: 15px 44px; font-size: 16px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); margin-top: 72px; }
footer .inner { max-width: 1200px; margin: 0 auto; padding: 40px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; color: var(--text-dim); font-size: 13px; font-family: var(--mono); }
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { color: var(--text); }

/* ---------- Detail pages ---------- */
.breadcrumb { max-width: 1200px; margin: 0 auto; padding: 28px 24px 0; font-family: var(--mono); font-size: 13px; }
.breadcrumb a { color: var(--text-dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--accent); }

.detail-hero { max-width: 1200px; margin: 0 auto; padding: 44px 24px 8px; }
.detail-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.5vw, 52px); letter-spacing: -0.01em; line-height: 1.12; }
.detail-hero .sub { margin-top: 16px; font-size: 17px; color: var(--text-dim); max-width: 780px; font-weight: 300; }
.detail-hero .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

h3.sub-head { font-family: var(--serif); font-weight: 400; font-size: 24px; margin-top: 36px; }
.prose { max-width: 800px; }
.prose p { margin-top: 14px; color: var(--text-dim); font-size: 15px; font-weight: 300; }
.prose strong { color: var(--text); font-weight: 500; }
.prose em { color: var(--text); }
.prose ul { list-style: none; margin-top: 12px; }
.prose li { font-size: 14.5px; color: var(--text-dim); padding: 5px 0 5px 20px; position: relative; font-weight: 300; }
.prose li::before { content: ">"; font-family: var(--mono); position: absolute; left: 0; color: var(--accent); }
.prose li strong { color: var(--text); font-weight: 500; }

.callout {
  margin-top: 24px; padding: 18px 22px; border-radius: var(--radius); max-width: 800px;
  background: rgba(139,92,246,0.06); border: 1px solid rgba(139,92,246,0.3);
  font-size: 14.5px; font-weight: 300;
}
.callout.teal { background: var(--accent-subtle); border-color: rgba(16,185,129,0.3); }
.callout .callout-title { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--purple); margin-bottom: 6px; }
.callout.teal .callout-title { color: var(--accent); }

pre.code {
  margin-top: 20px; padding: 18px 20px; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); font-family: var(--mono); font-size: 13px; line-height: 1.7;
  color: var(--text); overflow-x: auto; max-width: 800px;
}

.next-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.next-links a {
  flex: 1; min-width: 220px; background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px; text-decoration: none; color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.next-links a:hover { border-color: var(--accent); box-shadow: 0 0 16px var(--accent-subtle); }
.next-links .dir { font-family: var(--mono); font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; }
.next-links .ttl { font-family: var(--serif); font-size: 18px; margin-top: 4px; color: var(--accent); }

/* ---------- Job history timeline ---------- */
.timeline { margin-top: 36px; border-left: 1px solid var(--border); padding-left: 0; }
.timeline-item {
  position: relative; padding: 22px 0 22px 34px; border-bottom: 1px solid var(--border);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-item::before {
  content: ""; position: absolute; left: -5px; top: 32px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--bg);
  border: 2px solid var(--accent);
}
.timeline-item .dates { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.06em; }
.timeline-item h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; margin-top: 4px; }
.timeline-item .co { color: var(--text-dim); font-size: 14px; margin-top: 2px; font-family: var(--mono); }
.timeline-item .desc { color: var(--text-dim); font-size: 14.5px; font-weight: 300; margin-top: 10px; max-width: 720px; }
.timeline-item .desc strong { color: var(--text); font-weight: 500; }
.timeline-item ul.wins { list-style: none; margin-top: 10px; }
.timeline-item ul.wins li { font-size: 14px; color: var(--text-dim); padding: 3px 0 3px 18px; position: relative; font-weight: 300; }
.timeline-item ul.wins li::before { content: ">"; font-family: var(--mono); position: absolute; left: 0; color: var(--accent); }
.timeline-item ul.wins li strong { color: var(--text); font-weight: 500; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; transition: none; } }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ---------- Mobile ---------- */
.nav-links { -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }

.diagram-panel, .project-diagram { -webkit-overflow-scrolling: touch; position: relative; }
.scroll-hint { display: none; }

@media (max-width: 900px) {
  /* Tighter rhythm */
  section { padding: 44px 18px; }
  .hero { padding: 56px 18px 44px; gap: 32px; }
  .hero .sub { font-size: 16px; }
  .detail-hero { padding: 32px 18px 8px; }
  .manifesto-hero { padding: 72px 18px 56px; }
  nav { padding: 0 14px; }
  .nav-inner { height: 56px; gap: 10px; }
  .nav-logo { font-size: 17px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13px; padding: 8px 0; }

  /* Full-width tap targets */
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .stats { gap: 10px; }
  .stat { flex: 1 1 40%; min-width: 0; padding: 12px 14px; }
  .stat .num { font-size: 22px; }

  /* Terminal */
  .terminal-body { padding: 16px; font-size: 12px; min-height: 0; }

  /* Tables scroll instead of squeeze */
  table.compare, table.detail { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.detail td:first-child { white-space: normal; }

  /* Diagrams: keep natural size, make scrollability obvious */
  .diagram-panel, .project-diagram { padding: 14px; }
  .diagram-panel::after, .project-diagram::after {
    content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 28px;
    background: linear-gradient(to left, rgba(9,9,11,0.55), transparent);
    pointer-events: none; border-radius: 0 var(--radius) var(--radius) 0;
  }
  .diagram-panel .mermaid, .project-diagram .mermaid { justify-content: flex-start; }
  .scroll-hint {
    display: block; margin: 8px 0 0; text-align: center;
    font-family: var(--mono); font-size: 11px; color: var(--text-dim);
  }

  /* Cards & projects */
  .project-head { padding: 22px 18px 0; }
  .project-notes { padding: 16px 18px 22px; }
  .project-diagram { padding: 14px 14px 20px; }
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .os-pillars { grid-template-columns: 1fr; }

  /* Timeline */
  .timeline-item { padding: 18px 0 18px 26px; }
  .timeline-item h3 { font-size: 19px; }

  /* Type scale */
  h2 { font-size: 26px; }
  .positioning { font-size: 16px; padding: 16px 18px; }
  .soundbite { font-size: 14px; }

  /* Footer stacks */
  footer .inner { flex-direction: column; gap: 8px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 38px; }
  .badge-pill { font-size: 11px; padding: 5px 12px; }
  .marquee-set { gap: 32px; }
  .marquee-set span { font-size: 17px; }
}
