/* Leet Consulting — www.leetdc.com
   Brand: Leet blue #1D3FF2 (from the original logo), deep ink, paper.
   Type: Inter Tight (variable) + JetBrains Mono, self-hosted. */

@font-face {
  font-family: "Inter Tight";
  src: url("/assets/fonts/inter-tight-latin-wght-normal.woff2") format("woff2-variations"),
       url("/assets/fonts/inter-tight-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #1d3ff2;
  --blue-600: #1632c9;
  --blue-300: #8396ff;
  --blue-100: #e6eaff;
  --ink: #070b24;
  --ink-2: #0d1336;
  --ink-3: #151d4a;
  --paper: #ffffff;
  --tint: #f4f6fc;
  --text: #0b1030;
  --muted: #545c80;
  --line: rgba(11, 16, 48, .1);
  --on-dark: #eef0ff;
  --on-dark-muted: #a3abd4;
  --line-dark: rgba(238, 240, 255, .12);
  --mint: #34e0a8;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--blue); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--blue-300); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 2; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--on-dark);
  transition: background .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(7, 11, 36, .78);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line-dark);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .mark { width: 34px; height: auto; fill: var(--blue); filter: drop-shadow(0 4px 14px rgba(29, 63, 242, .55)); }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word b { font-weight: 800; font-size: 19px; letter-spacing: .06em; }
.brand-word span { font-size: 10.5px; letter-spacing: .32em; text-transform: uppercase; opacity: .75; margin-top: 4px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 26px; }
.site-nav ul a { text-decoration: none; font-size: 15px; font-weight: 500; opacity: .82; transition: opacity .2s; }
.site-nav ul a:hover { opacity: 1; }
.menu-toggle { display: none; background: none; border: 0; color: inherit; width: 44px; height: 44px; cursor: pointer; padding: 0; }
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; margin: 0 auto; position: relative; transition: transform .25s var(--ease), opacity .2s; }
.menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle .bars::before { top: -7px; }
.menu-toggle .bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(7, 11, 36, .97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line-dark);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .25s var(--ease);
  }
  .site-nav.open { transform: none; opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line-dark); }
  .site-nav .btn { margin-top: 18px; justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 10px; border: 1px solid transparent;
  font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background .2s, box-shadow .3s, border-color .2s;
  position: relative;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: #2c4dff; }
/* the logo's offset "pixel" square, echoed on primary buttons */
.btn-blue::after {
  content: ""; position: absolute; right: -4px; bottom: -4px; width: 9px; height: 9px;
  background: var(--blue); border-radius: 2px; box-shadow: 0 0 0 3px var(--ink);
  transition: transform .25s var(--ease);
}
.btn-blue:hover::after { transform: translate(2px, 2px); }
.btn-sm.btn-blue::after { width: 7px; height: 7px; right: -3px; bottom: -3px; box-shadow: 0 0 0 2px var(--ink); }
.site-header:not(.scrolled) .btn-sm.btn-blue::after { box-shadow: 0 0 0 2px #0a0f2e; }
.btn-glow { box-shadow: 0 10px 40px -8px rgba(29, 63, 242, .75); }
.btn-ghost { color: var(--on-dark); border-color: var(--line-dark); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: rgba(238, 240, 255, .35); background: rgba(255, 255, 255, .06); }
.arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Type ---------- */
.display { font-weight: 700; letter-spacing: -.035em; }
.display em { font-style: normal; color: var(--blue); }
.dark .display em { color: transparent; background: linear-gradient(100deg, #8ea0ff 0%, #c9d1ff 45%, #6f86ff 90%); -webkit-background-clip: text; background-clip: text; }
.h1 { font-size: clamp(40px, 6vw, 76px); }
.h2 { font-size: clamp(32px, 4.2vw, 54px); }
.eyebrow {
  font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: currentColor; border-radius: 2px; }
.dark .eyebrow { color: var(--blue-300); }
.eyebrow.center { display: flex; justify-content: center; text-align: center; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--on-dark-muted); max-width: 60ch; }
.lede-dark { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 62ch; margin-top: 18px; }
.prose p + p { margin-top: 16px; }
.prose { color: var(--muted); font-size: 18px; }
.prose strong { color: var(--text); font-weight: 600; }
.dark .prose { color: var(--on-dark-muted); }
.dark .prose strong { color: var(--on-dark); }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section.tint { background: var(--tint); }
.dark { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; isolation: isolate; }
.section-head { max-width: 820px; margin-bottom: clamp(40px, 6vw, 64px); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split > div > .prose { margin-top: 22px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; padding: 132px 0 48px; display: flex; flex-direction: column; justify-content: center; }
.pixels { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .9; }
.glow { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.glow span { position: absolute; border-radius: 50%; filter: blur(80px); }
.glow span:nth-child(1) { width: 60vw; height: 60vw; max-width: 820px; max-height: 820px; left: -18vw; top: -22vw; background: radial-gradient(circle, rgba(29, 63, 242, .55), transparent 65%); animation: drift 18s ease-in-out infinite alternate; }
.glow span:nth-child(2) { width: 50vw; height: 50vw; max-width: 700px; max-height: 700px; right: -16vw; bottom: -20vw; background: radial-gradient(circle, rgba(82, 110, 255, .35), transparent 65%); animation: drift 22s ease-in-out infinite alternate-reverse; }
.glow-soft span { opacity: .55; }
@keyframes drift { to { transform: translate(6vw, 4vw) scale(1.08); } }
.grid-lines {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .35;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
[data-spotlight]::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), rgba(120, 140, 255, .12), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px;
  border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .04);
  font: 500 13px/1 var(--mono); letter-spacing: .04em; color: var(--on-dark-muted); margin-bottom: 28px;
}
.pill-dot { width: 8px; height: 8px; border-radius: 2px; background: var(--mint); box-shadow: 0 0 12px var(--mint); animation: blink 2.4s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.hero-title { font-size: clamp(44px, 6.6vw, 88px); line-height: 1.0; letter-spacing: -.045em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); }
.hero-title .line:nth-child(2) > span { transition-delay: .08s; }
.hero-title .line:nth-child(3) > span { transition-delay: .16s; }
.hero-title .line:nth-child(4) > span { transition-delay: .24s; }
.loaded .hero-title .line > span { transform: none; }
.hero .lede { margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: clamp(48px, 7vw, 88px) 0 0;
  padding-top: 26px; border-top: 1px solid var(--line-dark);
}
.hero-meta dt { font: 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--blue-300); margin-bottom: 10px; }
.hero-meta dd { margin: 0; font-weight: 500; font-size: 15.5px; color: var(--on-dark); }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) { .hero-meta { grid-template-columns: 1fr 1fr; gap: 18px; } .hero-meta dd { font-size: 14px; } }

/* Agent run card */
.hero-card-wrap { position: relative; perspective: 1200px; }
.run {
  position: relative; border-radius: 18px; padding: 22px;
  background: linear-gradient(160deg, rgba(27, 36, 92, .82), rgba(10, 15, 46, .9));
  border: 1px solid rgba(131, 150, 255, .22);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .02) inset, 0 0 80px -20px rgba(29, 63, 242, .45);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transform-style: preserve-3d; transition: transform .4s var(--ease);
}
.run-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line-dark); }
.run-head b { display: block; font-size: 15px; }
.run-head div span { font-size: 13px; color: var(--on-dark-muted); }
.run-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(29, 63, 242, .18); flex: none; }
.run-icon .mark { width: 20px; fill: var(--blue-300); }
.chip { margin-left: auto; font: 500 12px/1 var(--mono); padding: 7px 10px; border-radius: 999px; background: rgba(131, 150, 255, .14); color: var(--blue-300); white-space: nowrap; transition: all .3s; }
.chip.done { background: rgba(52, 224, 168, .14); color: var(--mint); }
.run-steps { margin: 14px 0 6px; display: grid; gap: 4px; counter-reset: s; }
.run-steps li {
  display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 12px;
  padding: 9px 10px; border-radius: 9px; font-size: 14.5px; color: var(--on-dark-muted);
  transition: background .3s, color .3s;
}
.run-steps i { width: 12px; height: 12px; border-radius: 3px; border: 1.5px solid rgba(163, 171, 212, .45); transition: all .3s; }
.run-steps code { font: 12px/1 var(--mono); color: transparent; transition: color .3s; white-space: nowrap; }
.run-steps li.active { background: rgba(29, 63, 242, .16); color: var(--on-dark); }
.run-steps li.active i { border-color: var(--blue-300); background: var(--blue); animation: blink 1s infinite; }
.run-steps li.done { color: var(--on-dark); }
.run-steps li.done i { background: var(--mint); border-color: var(--mint); }
.run-steps li.done code { color: var(--blue-300); }
.run-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--line-dark); font-size: 12.5px; color: var(--on-dark-muted); }
.run-note { font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; font-size: 11px; }
.float-tag {
  position: absolute; z-index: 3; font-size: 13px; font-weight: 500; padding: 9px 13px; border-radius: 10px;
  background: rgba(13, 19, 54, .9); border: 1px solid var(--line-dark); color: var(--on-dark);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .7); animation: bob 6s ease-in-out infinite;
}
.float-tag b { color: var(--mint); font-size: 10px; margin-right: 4px; }
.float-tag.t1 { left: -28px; bottom: -22px; }
.float-tag.t2 { right: -18px; top: -18px; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (max-width: 980px) { .float-tag.t1 { left: 8px; } .float-tag.t2 { right: 8px; } .hero-card-wrap { max-width: 520px; } }

/* ---------- Marquee ---------- */
.marquee { background: var(--blue); color: #fff; overflow: hidden; padding: 18px 0; position: relative; z-index: 2; }
.marquee-track { display: flex; width: max-content; animation: scroll 38s linear infinite; }
.marquee-track span { font-weight: 600; font-size: 18px; padding: 0 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.marquee-track span::after { content: ""; width: 8px; height: 8px; background: #fff; border-radius: 2px; opacity: .6; margin-left: 28px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Why / proof ---------- */
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: clamp(48px, 7vw, 80px); }
.proof-item { background: var(--paper); padding: 30px 28px; }
.proof-item b { display: block; font-size: clamp(28px, 3vw, 38px); letter-spacing: -.03em; color: var(--blue); margin-bottom: 8px; }
.proof-item span { color: var(--muted); font-size: 16px; }
@media (max-width: 760px) { .proof { grid-template-columns: 1fr; } }

/* ---------- Services bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -28px rgba(13, 19, 54, .35); border-color: rgba(29, 63, 242, .3); }
[data-spot]::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(300px circle at var(--sx, 50%) var(--sy, 50%), rgba(29, 63, 242, .08), transparent 65%);
}
[data-spot]:hover::before { opacity: 1; }
.card-lg { grid-column: span 2; grid-row: span 1; background: linear-gradient(150deg, #fff 40%, var(--blue-100)); }
.card-no { font-size: 12px; color: var(--blue); letter-spacing: .1em; }
.card h3 { font-size: 23px; margin: 14px 0 12px; }
.card p { color: var(--muted); font-size: 16px; }
.card-lg h3 { font-size: clamp(26px, 2.6vw, 32px); }
.card-lg p { font-size: 17.5px; max-width: 58ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags li { font: 12px/1 var(--mono); padding: 7px 10px; border-radius: 6px; background: var(--tint); color: var(--muted); border: 1px solid var(--line); }
.card-lg .tags li { background: rgba(255, 255, 255, .7); }
.flow { display: flex; align-items: center; gap: 0; margin-top: 28px; flex-wrap: wrap; row-gap: 10px; }
.flow span { font: 500 13px/1 var(--mono); padding: 10px 12px; border-radius: 8px; background: #fff; border: 1px solid rgba(29, 63, 242, .25); color: var(--text); }
.flow span.hl { background: var(--blue); color: #fff; border-color: var(--blue); }
.flow i { width: 22px; height: 2px; background: linear-gradient(90deg, rgba(29, 63, 242, .2), var(--blue)); position: relative; }
.flow i::after { content: ""; position: absolute; top: -2px; left: 0; width: 6px; height: 6px; border-radius: 1px; background: var(--blue); animation: packet 2.4s linear infinite; }
@keyframes packet { from { left: 0; opacity: 0; } 20% { opacity: 1; } to { left: 100%; opacity: 0; } }
@media (max-width: 980px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .card-lg { grid-column: auto; } }

/* ---------- Work / cases ---------- */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.case {
  position: relative; border-radius: var(--radius); padding: 30px 28px; overflow: hidden;
  background: linear-gradient(160deg, rgba(21, 29, 74, .7), rgba(13, 19, 54, .7));
  border: 1px solid var(--line-dark); transition: border-color .3s, transform .3s var(--ease);
}
.case:hover { border-color: rgba(131, 150, 255, .35); transform: translateY(-3px); }
.case[data-spot]::before { background: radial-gradient(320px circle at var(--sx, 50%) var(--sy, 50%), rgba(120, 140, 255, .14), transparent 65%); }
.case-feature { grid-column: 1 / -1; background: linear-gradient(140deg, rgba(29, 63, 242, .32), rgba(13, 19, 54, .75) 60%); border-color: rgba(131, 150, 255, .3); }
.case-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; color: var(--on-dark-muted); margin-bottom: 16px; }
.case-meta .mono { color: var(--blue-300); }
.badge { font: 11.5px/1 var(--mono); padding: 6px 9px; border-radius: 6px; background: rgba(131, 150, 255, .14); color: #c9d1ff; letter-spacing: .02em; }
.case h3 { font-size: clamp(21px, 2vw, 25px); margin-bottom: 12px; }
.case-feature h3 { font-size: clamp(26px, 3vw, 36px); max-width: 24ch; }
.case p { color: var(--on-dark-muted); font-size: 16px; }
.case-feature p { font-size: 17.5px; max-width: 75ch; }
.case-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.case-points li { font-size: 14.5px; color: var(--on-dark); padding: 14px 16px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-dark); position: relative; padding-left: 34px; }
.case-points li::before { content: ""; position: absolute; left: 14px; top: 20px; width: 8px; height: 8px; border-radius: 2px; background: var(--mint); }
@media (max-width: 860px) { .cases { grid-template-columns: 1fr; } .case-points { grid-template-columns: 1fr; } }

/* ---------- Client wall ---------- */
.clients { padding: clamp(64px, 8vw, 96px) 0; border-bottom: 1px solid var(--line); }
.clients .eyebrow { color: var(--muted); font-size: 12px; margin-bottom: 34px; }
.clients .eyebrow::before { background: var(--blue); }
.wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.wall li {
  background: var(--paper); min-height: 96px; display: grid; place-items: center; text-align: center; padding: 16px 12px;
  font-weight: 700; font-size: 16px; letter-spacing: -.01em; color: #2a3156; line-height: 1.2;
  transition: color .2s, background .2s;
}
.wall li:hover { color: var(--blue); background: var(--tint); }
.wall-logo img { width: 130px; height: auto; filter: brightness(0) saturate(100%) invert(14%) sepia(18%) saturate(1900%) hue-rotate(205deg) brightness(92%); opacity: .9; }
@media (max-width: 980px) { .wall { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .wall { grid-template-columns: repeat(2, 1fr); } .wall li { font-size: 15px; min-height: 80px; } }

/* ---------- Approach ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 28px 24px 30px; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); }
.step::after {
  content: ""; position: absolute; top: 34px; right: -14px; width: 10px; height: 10px; border-radius: 2px; background: var(--blue); z-index: 2;
}
.step:last-child::after { display: none; }
.step-no { font-size: 12.5px; color: var(--blue); letter-spacing: .08em; text-transform: uppercase; }
.step h3 { font-size: 20px; margin: 14px 0 10px; }
.step p { color: var(--muted); font-size: 15.5px; }
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 18px; }
.principle { padding: 22px 24px; border-radius: var(--radius); background: var(--ink); color: var(--on-dark); }
.principle b { display: block; font-size: 17px; margin-bottom: 6px; }
.principle span { color: var(--on-dark-muted); font-size: 14.5px; }
@media (max-width: 980px) { .steps, .principles { grid-template-columns: 1fr 1fr; } .step:nth-child(2)::after { display: none; } }
@media (max-width: 560px) { .steps, .principles { grid-template-columns: 1fr; } .step::after { display: none; } }

/* ---------- Team ---------- */
.disciplines { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.disc { position: relative; overflow: hidden; padding: 22px 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); transition: border-color .3s, transform .3s var(--ease); }
.disc:hover { border-color: rgba(29, 63, 242, .3); transform: translateY(-2px); }
.disc-ic { display: block; width: 22px; height: 20px; margin-bottom: 16px; position: relative; }
.disc-ic::before { content: ""; position: absolute; left: 0; top: 0; width: 18px; height: 16px; border-radius: 3px; background: var(--blue); clip-path: polygon(0 0, 100% 0, 100% 72%, 76% 72%, 76% 100%, 0 100%); }
.disc-ic::after { content: ""; position: absolute; right: 0; bottom: 0; width: 5px; height: 5px; border-radius: 1px; background: var(--blue); }
.disc b { display: block; font-size: 17px; margin-bottom: 8px; }
.disc span { color: var(--muted); font-size: 15px; display: block; }
@media (max-width: 560px) { .disciplines { grid-template-columns: 1fr; } }

/* ---------- AI-native ---------- */
.terminal { margin-top: 30px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-dark); background: rgba(3, 6, 22, .7); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line-dark); }
.term-bar i { width: 10px; height: 10px; border-radius: 3px; background: rgba(163, 171, 212, .25); }
.term-bar span { margin-left: 8px; font-size: 12px; color: var(--on-dark-muted); }
.terminal pre { margin: 0; padding: 18px 18px 20px; font-size: 13px; line-height: 1.9; color: var(--on-dark); white-space: pre-wrap; overflow-x: auto; }
.t-dim { color: var(--blue-300); }
.t-ok { color: var(--mint); }

/* ---------- Timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 34px; height: 2px; background: linear-gradient(90deg, var(--line), var(--blue)); }
.timeline li { position: relative; padding: 0 18px 0 0; }
.timeline li .mono { display: block; font-size: 13px; color: var(--blue); letter-spacing: .06em; margin-bottom: 26px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 29px; width: 12px; height: 12px; border-radius: 3px; background: var(--paper); border: 2px solid var(--blue); }
.timeline li.now::before { background: var(--blue); box-shadow: 0 0 0 6px rgba(29, 63, 242, .15); }
.timeline b { display: block; font-size: 17px; margin-bottom: 6px; line-height: 1.25; }
.timeline p { color: var(--muted); font-size: 14.5px; }
@media (max-width: 980px) {
  .timeline { grid-template-columns: 1fr; gap: 26px; padding-left: 28px; }
  .timeline::before { left: 5px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; background: linear-gradient(180deg, var(--line), var(--blue)); }
  .timeline li { padding: 0; }
  .timeline li::before { left: -28px; top: 4px; }
  .timeline li .mono { margin-bottom: 6px; }
}

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta-inner { display: flex; flex-direction: column; align-items: center; max-width: 900px; }
.cta .lede { margin: 24px auto 0; }
.cta .hero-actions { justify-content: center; }
.cta-note { margin-top: 30px; font-size: 13px; color: var(--on-dark-muted); letter-spacing: .04em; }
.notfound { text-align: center; }
.notfound .lede { margin: 22px auto 0; }
.notfound .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-2); color: var(--on-dark); padding: 72px 0 34px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.footer-brand .logo { width: 96px; height: auto; margin-bottom: 20px; }
.logo-sq { fill: var(--blue); }
.logo text { fill: #fff; font-family: var(--sans); }
.logo .logo-big { font-weight: 700; font-size: 70px; }
.logo .logo-small { font-weight: 450; font-size: 27px; }
.footer-brand p { color: var(--on-dark-muted); font-size: 15px; max-width: 42ch; }
.footer-h { font: 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--blue-300); margin-bottom: 18px; }
.footer-col li { margin-bottom: 10px; font-size: 15px; color: var(--on-dark-muted); }
.footer-col a { text-decoration: none; color: var(--on-dark); opacity: .85; }
.footer-col a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 26px; font-size: 13px; color: var(--on-dark-muted); }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .4s; }
.no-js .reveal { opacity: 1; transform: none; }
.no-js .hero-title .line > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero-title .line > span { transform: none; }
  .marquee-track { animation: none; }
}

/* ---------- Insights / blog ---------- */
.btn-line { color: var(--text); border-color: var(--line); background: var(--paper); }
.btn-line:hover { border-color: var(--blue); color: var(--blue); }
.row-head { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px 24px; min-height: 260px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.post-card:hover { transform: translateY(-3px); border-color: rgba(29, 63, 242, .3); box-shadow: 0 24px 50px -28px rgba(13, 19, 54, .35); }
.post-card h3 { font-size: 21px; line-height: 1.2; letter-spacing: -.02em; }
.post-card p { color: var(--muted); font-size: 15.5px; flex: 1; }
.post-card[hidden] { display: none; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }
.post-meta span:not(.new)::before { content: "·"; margin-right: 14px; opacity: .5; }
.post-meta .new { color: #fff; background: var(--blue); padding: 3px 8px; border-radius: 5px; }
.post-meta .new + time::before { content: none; }
.post-more { font-weight: 600; font-size: 14.5px; color: var(--blue); }
@media (max-width: 980px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } .post-card { min-height: 0; } }

.post-hero { padding: 150px 0 72px; }
.blog-hero { padding-bottom: 90px; }
.blog-hero .lede { margin-top: 22px; }
.feed-link { display: inline-block; margin-top: 24px; font-size: 13px; color: var(--blue-300); text-decoration: none; border-bottom: 1px solid rgba(131, 150, 255, .4); }
.blog-list { padding-top: 64px; }
.post-feature {
  display: block; padding: clamp(28px, 4vw, 48px); border-radius: 18px; text-decoration: none; margin-bottom: 40px;
  background: linear-gradient(140deg, var(--blue-100), #fff 60%); border: 1px solid rgba(29, 63, 242, .2);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.post-feature:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -30px rgba(29, 63, 242, .4); }
.post-feature h2 { font-size: clamp(28px, 3.6vw, 46px); margin: 16px 0 14px; max-width: 26ch; }
.post-feature p { color: var(--muted); font-size: 18px; max-width: 70ch; margin-bottom: 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip-f { font: 500 13px/1 var(--mono); padding: 9px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--muted); cursor: pointer; transition: all .2s; }
.chip-f:hover { border-color: var(--blue); color: var(--blue); }
.chip-f.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.narrow { max-width: 780px; }
.back { display: inline-block; font-size: 13px; color: var(--blue-300); text-decoration: none; margin-bottom: 28px; }
.post-hero .post-meta { color: var(--on-dark-muted); margin-bottom: 18px; }
.post-title { font-size: clamp(34px, 4.6vw, 58px); letter-spacing: -.035em; line-height: 1.06; }
.post-hero .lede { margin-top: 20px; }
.tags-dark li { background: rgba(255, 255, 255, .05); border-color: var(--line-dark); color: var(--on-dark-muted); }
.post-body { padding-top: 56px; padding-bottom: 24px; font-size: 18.5px; line-height: 1.72; color: #262c4d; }
.post-body > * + * { margin-top: 1.1em; }
.post-body h2 { font-size: clamp(24px, 2.6vw, 30px); margin-top: 1.9em; color: var(--text); letter-spacing: -.025em; }
.post-body h3 { font-size: 21px; margin-top: 1.6em; color: var(--text); }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body ul { list-style: none; padding-left: 1.4em; }
.post-body ul li { position: relative; }
.post-body ul li::before { content: ""; position: absolute; left: -1.2em; top: .7em; width: 7px; height: 7px; border-radius: 2px; background: var(--blue); }
.post-body ol { list-style: decimal; }
.post-body li + li { margin-top: .45em; }
.post-body a { color: var(--blue); text-underline-offset: 3px; }
.post-body strong { color: var(--text); }
.post-body code { font-family: var(--mono); font-size: .85em; background: var(--tint); padding: 2px 6px; border-radius: 5px; }
.post-body blockquote { margin-left: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--blue); font-size: 21px; color: var(--text); font-weight: 500; }
.post-body h2:last-of-type + ol, .post-body h2:last-of-type + ul { font-size: 15px; }
.post-cta { margin: 48px 0 0; padding: 26px 28px; border-radius: var(--radius); background: var(--ink); color: var(--on-dark); display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.post-cta p { color: var(--on-dark-muted); max-width: 46ch; }
.post-cta strong { color: #fff; }
.post-cta .btn-blue::after { box-shadow: 0 0 0 2px var(--ink); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0 100px; }
.pn { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-weight: 600; line-height: 1.3; transition: border-color .2s; }
.pn:hover { border-color: var(--blue); }
.pn .mono { font-size: 12px; font-weight: 400; color: var(--blue); }
.pn.next { grid-column: 2; text-align: right; }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } .pn.next { grid-column: auto; text-align: left; } }
@media (max-width: 520px) { .pill { font-size: 11px; letter-spacing: .02em; } }
.wall li { display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.wall li b { font-weight: 700; font-size: 16px; color: var(--text); }
.wall li span { font-weight: 400; font-size: 13px; color: var(--muted); }
.wall li:hover b { color: var(--blue); }
