/* ============================================================
   BITS · BYTES · BOTS — design system v2
   One display (Inter Tight), one body (Inter), one mono (JetBrains Mono).
   ============================================================ */

:root {
  --bg: #050510;
  --bg-2: #0a0a18;
  --bg-card: rgba(17, 17, 28, 0.66);
  --bg-card-solid: #11111c;
  --ink: #ffffff;
  --ink-2: rgba(255, 255, 255, 0.62);
  --ink-3: rgba(255, 255, 255, 0.38);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --bits: #ff9d52;   /* the creator  */
  --bytes: #b58cff;  /* the engineer */
  --bots: #5b9bff;   /* the hunter   */
  --ok: #4ade80;
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --r-md: 12px;
  --r-lg: 18px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { background: var(--bg); color: var(--ink); }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(91, 155, 255, 0.35); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.02;
}
h1 { font-size: clamp(48px, 8vw, 112px); }
h2 { font-size: clamp(36px, 5vw, 72px); }
h3 { font-size: clamp(20px, 2.2vw, 28px); letter-spacing: -0.02em; }
p  { color: var(--ink-2); }
a  { color: inherit; }
img, video { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }

.mono { font-family: var(--font-mono); }
.muted { color: var(--ink-3); }
.body-lg { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--ink-2); }
.body-sm { font-size: 14px; line-height: 1.55; color: var(--ink-2); }

.container-x { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.section-y { padding: clamp(90px, 11vw, 150px) 0; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }

/* --- gradient text ------------------------------------------------ */
.grad-text {
  background: linear-gradient(100deg, var(--bots) 0%, var(--bytes) 50%, var(--bits) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  background-size: 200% 200%;
  animation: gradShift 9s ease infinite;
}
.grad-text-warm {
  background: linear-gradient(100deg, var(--bits), #ff5e8a, var(--bytes));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  background-size: 200% 200%;
  animation: gradShift 9s ease infinite;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* --- atmosphere / backgrounds ------------------------------------- */
.bg-atmosphere { position: relative; }
.bg-atmosphere::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 60% 45% at 18% 8%,  rgba(91, 155, 255, 0.10), transparent 60%),
    radial-gradient(ellipse 55% 40% at 85% 20%, rgba(181, 140, 255, 0.09), transparent 60%),
    radial-gradient(ellipse 50% 40% at 55% 95%, rgba(255, 157, 82, 0.07), transparent 60%);
}
.bg-atmosphere > * { position: relative; z-index: 1; }
.bg-grid {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center;
  position: relative;
}
.bg-grid::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, transparent 30%, var(--bg) 92%);
}
.bg-grid > * { position: relative; }

/* particle canvas fixed behind hero */
#atmosphere {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.9;
}

/* --- nav ----------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  background: rgba(5, 5, 16, 0.6);
  border-bottom: 1px solid transparent;
  transition: background 300ms ease, border-color 300ms ease;
}
.nav.scrolled { background: rgba(5, 5, 16, 0.85); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; transition: padding 300ms ease; }
.nav.scrolled .nav-inner { padding: 12px 0; }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 14px; }
.nav-links a { color: var(--ink-2); text-decoration: none; transition: color 180ms ease; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--bots), var(--bytes), var(--bits));
}
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-burger { display: none; background: none; border: 0; color: var(--ink); padding: 8px; cursor: pointer; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { display: inline-flex; gap: 4px; align-items: flex-end; height: 16px; }
.brand-mark span { width: 5px; border-radius: 2px; animation: barPulse 2.6s ease-in-out infinite; }
.brand-mark span:nth-child(1) { height: 10px; background: var(--bots); animation-delay: 0s; }
.brand-mark span:nth-child(2) { height: 16px; background: var(--bytes); animation-delay: 0.3s; }
.brand-mark span:nth-child(3) { height: 12px; background: var(--bits); animation-delay: 0.6s; }
@keyframes barPulse { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.55); } }
.brand-name { font-family: var(--font-display); font-weight: 650; letter-spacing: -0.02em; font-size: 17px; color: var(--ink); }
.brand-name .sep { color: var(--ink-3); margin: 0 3px; font-weight: 400; }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 80; background: #050510;
  display: flex; flex-direction: column; justify-content: center; padding: 0 32px; gap: 8px;
  opacity: 0; pointer-events: none; transition: opacity 280ms ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--font-display); font-size: clamp(36px, 9vw, 56px); font-weight: 650;
  letter-spacing: -0.03em; text-decoration: none; color: var(--ink-2); padding: 10px 0;
  transform: translateY(16px); opacity: 0; transition: transform 400ms var(--ease-out), opacity 400ms ease, color 200ms ease;
}
.mobile-menu.open a { transform: none; opacity: 1; }
.mobile-menu a:hover { color: var(--ink); }
.mobile-menu a:nth-child(2) { transition-delay: 60ms; }
.mobile-menu a:nth-child(3) { transition-delay: 120ms; }
.mobile-menu a:nth-child(4) { transition-delay: 180ms; }
.mobile-menu a:nth-child(5) { transition-delay: 240ms; }

/* --- buttons -------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform 240ms var(--ease-out), box-shadow 240ms ease, background 240ms ease, border-color 240ms ease;
  will-change: transform;
}
.btn .arrow { transition: transform 240ms var(--ease-out); display: inline-block; }
.btn:hover .arrow { transform: translate(3px, 3px); }
.btn-primary {
  color: #050510; background: #fff;
  box-shadow: 0 0 0 0 rgba(91, 155, 255, 0);
  position: relative;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(91, 155, 255, 0.35), 0 2px 16px rgba(255, 157, 82, 0.25);
}
.btn-ghost { color: var(--ink); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.4); transform: translateY(-2px); background: rgba(255, 255, 255, 0.05); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  color: #050510; background: #fff; padding: 9px 18px; border-radius: 999px;
  transition: transform 220ms var(--ease-out), box-shadow 220ms ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(91, 155, 255, 0.35); }
.nav-cta .arrow { font-size: 13px; }

/* --- chips / status ------------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-2);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 14px;
  background: rgba(255, 255, 255, 0.02);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: blink 2.2s ease infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.section-eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  color: var(--ink-3); text-transform: lowercase;
  display: inline-flex; align-items: center; gap: 10px;
}
.section-eyebrow::after { content: ""; width: 48px; height: 1px; background: var(--line-strong); }

/* --- ticker (shipping log marquee) ---------------------------------- */
.ticker-wrap {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 13px 0; background: rgba(255, 255, 255, 0.015);
  position: relative;
}
.ticker-wrap::before, .ticker-wrap::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.ticker-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.ticker-wrap::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.ticker { display: flex; width: max-content; animation: tick 46s linear infinite; }
.ticker-wrap:hover .ticker { animation-play-state: paused; }
.ticker span {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.03em;
  color: var(--ink-3); padding: 0 28px; white-space: nowrap;
}
.ticker span b { color: var(--ink-2); font-weight: 500; }
.ticker span .t-ok { color: var(--ok); }
.ticker span .t-bits { color: var(--bits); }
.ticker span .t-bytes { color: var(--bytes); }
.ticker span .t-bots { color: var(--bots); }
@keyframes tick { to { transform: translateX(-50%); } }

/* --- cards ----------------------------------------------------------- */
.card-x {
  background: var(--bg-card-solid);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  position: relative;
  transition: border-color 260ms ease, transform 400ms var(--ease-out), box-shadow 400ms ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.card-x:hover { border-color: var(--line-strong); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.card-x .card-glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 5;
  background: radial-gradient(400px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.07), transparent 45%);
  opacity: 0; transition: opacity 300ms ease;
}
.card-x:hover .card-glare { opacity: 1; }
.bot-sig-bits:hover  { border-color: rgba(255, 157, 82, 0.45); box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 42px rgba(255, 157, 82, 0.10); }
.bot-sig-bytes:hover { border-color: rgba(181, 140, 255, 0.45); box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 42px rgba(181, 140, 255, 0.10); }
.bot-sig-bots:hover  { border-color: rgba(91, 155, 255, 0.45); box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 42px rgba(91, 155, 255, 0.10); }

/* --- character stage -------------------------------------------------- */
.character-stage {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  background: var(--bg-2); aspect-ratio: 1 / 1; margin-bottom: 24px;
}
.stage-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform 700ms var(--ease-out); }
.card-x:hover .stage-video { transform: scale(1.04); }
.stage-video-overlay {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(5, 5, 16, 0.55) 100%),
    linear-gradient(180deg, rgba(5, 5, 16, 0.2) 0%, transparent 30%, transparent 70%, rgba(5, 5, 16, 0.35) 100%);
}
.stage-status {
  position: absolute; left: 12px; bottom: 12px; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--ink-2);
  background: rgba(5, 5, 16, 0.72); border: 1px solid var(--line-strong);
  padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(6px);
}
.stage-status .ss-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: blink 2.2s ease infinite; }
.stage-corner { position: absolute; width: 14px; height: 14px; z-index: 4; border-color: var(--line-strong); border-style: solid; border-width: 0; transition: border-color 300ms ease; }
.stage-corner.tl { top: 8px; left: 8px; border-top-width: 1px; border-left-width: 1px; }
.stage-corner.tr { top: 8px; right: 8px; border-top-width: 1px; border-right-width: 1px; }
.stage-corner.bl { bottom: 8px; left: 8px; border-bottom-width: 1px; border-left-width: 1px; }
.stage-corner.br { bottom: 8px; right: 8px; border-bottom-width: 1px; border-right-width: 1px; }
.bot-sig-bits:hover .stage-corner { border-color: var(--bits); }
.bot-sig-bytes:hover .stage-corner { border-color: var(--bytes); }
.bot-sig-bots:hover .stage-corner { border-color: var(--bots); }

/* --- terminal --------------------------------------------------------- */
.terminal {
  background: #0a0a14; border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  font-family: var(--font-mono); font-size: 13px; line-height: 1.85;
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.02);
}
.terminal-bar .tb-dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal-bar .tb-dot:nth-child(1) { background: #ff5f57; }
.terminal-bar .tb-dot:nth-child(2) { background: #febc2e; }
.terminal-bar .tb-dot:nth-child(3) { background: #28c840; }
.terminal-bar .tb-title { margin-left: 10px; font-size: 11px; letter-spacing: 0.06em; color: var(--ink-3); }
.terminal-body { padding: 20px 22px; min-height: 300px; color: var(--ink-2); }
.terminal-body .tl-dim { color: var(--ink-3); }
.terminal-body .tl-ok { color: var(--ok); }
.terminal-body .tl-bits { color: var(--bits); }
.terminal-body .tl-bytes { color: var(--bytes); }
.terminal-body .tl-bots { color: var(--bots); }
.terminal-cursor { display: inline-block; width: 8px; height: 15px; background: var(--ok); vertical-align: -2px; animation: blink 1s steps(1) infinite; }

/* --- capability lists -------------------------------------------------- */
.cap-preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cap-col {
  background: var(--bg-card-solid); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px; transition: border-color 240ms ease, transform 320ms var(--ease-out), box-shadow 320ms ease;
}
.cap-col:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4); }
.cap-list { list-style: none; padding: 0; margin: 0; }
.cap-list li {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  font-size: 14px; color: var(--ink); border-bottom: 1px solid var(--line);
}
.cap-list li:last-child { border-bottom: none; }
.cap-list li.hidden { display: none; }
.cap-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 8px currentColor; }
.cap-toggle {
  margin-top: 14px; padding: 6px 0; background: transparent; border: none;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  cursor: pointer; opacity: 0.85; transition: opacity 160ms ease; text-align: left;
}
.cap-toggle:hover { opacity: 1; }

/* service detail rows */
.svc-item { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: baseline; transition: padding-left 240ms var(--ease-out); }
.svc-item:hover { padding-left: 10px; }
.svc-item:last-child { border-bottom: none; }
.svc-item .svc-name { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; color: var(--ink); }
.svc-item .svc-desc { font-size: 14px; color: var(--ink-2); }
@media (max-width: 720px) { .svc-item { grid-template-columns: 1fr; gap: 4px; } }

/* --- stat blocks --------------------------------------------------------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { border-left: 1px solid var(--line-strong); padding-left: 22px; }
.stat .stat-num {
  font-family: var(--font-display); font-weight: 650; letter-spacing: -0.03em;
  font-size: clamp(44px, 5vw, 72px); line-height: 1;
}
.stat .stat-label { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.05em; margin-top: 10px; }
@media (max-width: 860px) { .stat-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; } }

/* --- marquee word strip --------------------------------------------------- */
.word-marquee { overflow: hidden; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.word-marquee .wm-track { display: flex; width: max-content; animation: tick 30s linear infinite; }
.word-marquee span {
  font-family: var(--font-display); font-weight: 650; letter-spacing: -0.03em;
  font-size: clamp(26px, 3.4vw, 44px); white-space: nowrap; padding: 0 22px; color: var(--ink-3);
}
.word-marquee span em { font-style: normal; color: var(--ink); }

/* --- reveal on scroll ------------------------------------------------------ */
html.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 800ms ease, transform 800ms var(--ease-out); transition-delay: var(--rd, 0ms); }
html.js [data-reveal].revealed { opacity: 1; transform: none; }
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: bottom; }
html.js [data-split] .w > span { display: inline-block; transform: translateY(110%); transition: transform 900ms var(--ease-out); transition-delay: var(--wd, 0ms); }
html.js [data-split].revealed .w > span { transform: none; }

/* --- custom cursor ---------------------------------------------------------- */
@media (pointer: fine) {
  .cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 999; border-radius: 50%; }
  .cursor-dot { width: 6px; height: 6px; background: #fff; transform: translate(-50%, -50%); }
  .cursor-ring {
    width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, 0.35);
    transform: translate(-50%, -50%);
    transition: width 260ms var(--ease-out), height 260ms var(--ease-out), border-color 260ms ease, background 260ms ease;
  }
  .cursor-ring.hovering { width: 52px; height: 52px; border-color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.04); }
}

/* --- footer ------------------------------------------------------------------ */
footer.site-footer { border-top: 1px solid var(--line); padding: 80px 0 40px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-h5 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 16px; font-weight: 500;
}
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 10px; font-size: 14px; color: var(--ink-2); }
.footer-list a { color: inherit; text-decoration: none; transition: color 180ms ease; }
.footer-list a:hover { color: var(--ink); }
.footer-base {
  display: flex; justify-content: space-between; align-items: center; padding-top: 30px;
  border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-3); flex-wrap: wrap; gap: 12px;
}
.footer-bars { display: inline-flex; gap: 6px; }
.footer-bars span { width: 18px; height: 4px; border-radius: 2px; }

/* --- forms --------------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink-3); margin-bottom: 8px; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-strong);
  color: var(--ink); border-radius: 10px; padding: 13px 15px; font-family: var(--font-body); font-size: 15px;
  transition: border-color 200ms ease, box-shadow 200ms ease; appearance: none;
}
.field textarea { min-height: 110px; resize: vertical; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--bots); box-shadow: 0 0 0 3px rgba(91, 155, 255, 0.15);
}
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }

/* --- blog ------------------------------------------------------------------------ */
.post-tag {
  padding: 4px 12px; border-radius: 999px; font-size: 11px; border: 1px solid;
  font-family: var(--font-mono); letter-spacing: 0.06em; display: inline-block;
}
.tag-essays          { color: var(--bits);  border-color: rgba(255,157,82,0.3);  background: rgba(255,157,82,0.10); }
.tag-build-logs      { color: var(--bytes); border-color: rgba(181,140,255,0.3); background: rgba(181,140,255,0.10); }
.tag-tools-we-love   { color: var(--bots);  border-color: rgba(91,155,255,0.3);  background: rgba(91,155,255,0.10); }
.tag-behind-the-build{ color: var(--ok);    border-color: rgba(74,222,128,0.3);  background: rgba(74,222,128,0.10); }
.tag-workshop-notes  { color: var(--ink-2); border-color: var(--line-strong);    background: rgba(255,255,255,0.04); }
.tag-projects        { color: #ff5e8a;       border-color: rgba(255,94,138,0.3);  background: rgba(255,94,138,0.10); }

.post-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.dot-sep { color: var(--ink-3); }
.by-line { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.author-dot {
  width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 157, 82, 0.15); color: var(--bits); border: 1px solid rgba(255, 157, 82, 0.35);
  font-family: var(--font-mono); font-size: 12px;
}
.post-body { max-width: 720px; }
.post-body p { margin-bottom: 22px; font-size: 17px; line-height: 1.7; }
.post-body h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 44px 0 18px; letter-spacing: -0.02em; }
.post-body h3 { margin: 32px 0 14px; }
.post-body ul, .post-body ol { margin: 0 0 22px 22px; color: var(--ink-2); }
.post-body li { margin-bottom: 10px; font-size: 16px; line-height: 1.65; }
.post-body blockquote { border-left: 2px solid var(--bits); padding-left: 20px; margin: 28px 0; color: var(--ink); font-style: italic; }
.post-body code { font-family: var(--font-mono); font-size: 0.9em; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px; }
.post-body strong { color: var(--ink); }
.post-body a { color: var(--bots); }
.post-card { display: block; text-decoration: none; }
.post-card h3 { margin: 14px 0 8px; transition: color 200ms ease; }
.post-card:hover h3 { color: var(--bots); }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .more-grid { grid-template-columns: 1fr; } }

/* filter chips */
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-chip {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink-2);
  border-radius: 999px; padding: 8px 16px; cursor: pointer; transition: all 200ms ease;
}
.filter-chip:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.4); }
.filter-chip.active { background: #fff; color: #050510; border-color: #fff; }

/* --- about page dossier ------------------------------------------------------------ */
.dossier { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.dossier.flip .d-media { order: 2; }
.dossier .quote {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em;
  font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; color: var(--ink); margin: 24px 0;
}
.spec-table { border-top: 1px solid var(--line); margin-top: 28px; }
.spec-row { display: grid; grid-template-columns: 140px 1fr; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec-row .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.07em; color: var(--ink-3); text-transform: uppercase; padding-top: 2px; }
.spec-row .v { color: var(--ink-2); }
@media (max-width: 860px) { .dossier { grid-template-columns: 1fr; } .dossier.flip .d-media { order: 0; } }

/* --- misc ---------------------------------------------------------------------------- */
.two-col-head { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; margin-bottom: 64px; }
.teams-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hero-pad { padding: 190px 0 110px; position: relative; }
.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em; color: var(--ink-3);
  writing-mode: vertical-rl; display: flex; align-items: center; gap: 10px;
}
.scroll-hint::after { content: ""; width: 1px; height: 44px; background: linear-gradient(var(--ink-3), transparent); animation: scrollPulse 2s ease infinite; }
@keyframes scrollPulse { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (max-width: 980px) {
  .cap-preview-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .two-col-head { grid-template-columns: 1fr; gap: 32px; }
  .teams-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-burger { display: block; }
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-cta { display: none; }
}

/* --- reduced motion -------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  [data-reveal], [data-split] .w > span { opacity: 1 !important; transform: none !important; }
  html { scroll-b