:root {
  --bg: #08080a;
  --surface: #101014;
  --surface-2: #15151a;
  --ink: #f2f2ed;
  --muted: #a1a19b;
  --faint: #6d6d67;
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(255, 255, 255, .18);
  --accent: #d4ff36;
  --accent-soft: rgba(212, 255, 54, .09);
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    var(--bg);
  background-size: 64px 64px;
  color: var(--ink);
  font-family: var(--sans);
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 8, 10, .9);
  backdrop-filter: blur(18px);
}
.topbar .shell { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font: 700 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.brand-mark { width: 40px; height: 40px; flex: none; border: 0; border-radius: 9px; overflow: hidden; font-size: 0; color: transparent; background: url('/assets/brand/lb-monogram.svg?v=3') center/contain no-repeat; filter: drop-shadow(0 4px 7px rgba(0,0,0,.5)); }
.brand-name { display: inline-flex; gap: .55em; }
.brand-name > span:first-child { color: var(--ink); }
.brand-name > span:last-child { color: var(--accent); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.top-link, .lang-link { border: 1px solid var(--line-strong); padding: 10px 13px; color: var(--muted); font: 650 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; transition: .2s ease; }
.top-link:hover, .lang-link:hover { color: var(--accent); border-color: var(--accent); }
.lang-link { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.lang-link:hover { color: var(--bg); background: #e2ff72; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding-top: 34px; color: var(--faint); font: 600 9px/1.4 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span[aria-hidden] { color: #3e3e3a; }

.hero { padding: clamp(60px, 8vw, 104px) 0 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 25px; color: var(--accent); font: 700 10px/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--accent); }
h1 { max-width: 1050px; margin: 0; font-size: clamp(56px, 9vw, 122px); line-height: .87; letter-spacing: -.07em; text-transform: uppercase; }
.hero-bottom { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); align-items: end; gap: clamp(32px, 7vw, 100px); margin-top: 38px; }
.hero-lead { max-width: 780px; margin: 0; color: var(--muted); font-size: clamp(18px, 1.75vw, 22px); line-height: 1.64; }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border: 1px solid var(--line-strong); color: var(--ink); font: 700 11px/1 var(--mono); letter-spacing: .05em; transition: .2s ease; }
.button.primary { color: #090a04; background: var(--accent); border-color: var(--accent); }
.button:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.button.primary:hover { color: #090a04; background: #e2ff72; }

.cover { position: relative; margin-top: clamp(54px, 7vw, 88px); border: 1px solid var(--line-strong); background: var(--surface); overflow: hidden; }
.cover::before, .cover::after { content: ""; position: absolute; z-index: 2; width: 48px; height: 48px; pointer-events: none; }
.cover::before { left: -1px; top: -1px; border-left: 2px solid var(--accent); border-top: 2px solid var(--accent); }
.cover::after { right: -1px; bottom: -1px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); }
.cover img { display: block; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.cover-caption { position: absolute; right: 18px; bottom: 18px; z-index: 3; padding: 8px 10px; border: 1px solid var(--line-strong); background: rgba(8,8,10,.85); color: var(--muted); font: 650 8px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }

.facts { border-bottom: 1px solid var(--line); background: rgba(16, 16, 20, .72); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { min-height: 118px; padding: 25px 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.fact:first-child { border-left: 1px solid var(--line); }
.fact small { color: var(--faint); font: 650 9px/1.3 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.fact strong { font-size: 17px; line-height: 1.25; }

.section { padding: clamp(74px, 9vw, 118px) 0; border-bottom: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 42px; margin-bottom: 48px; }
.section-index { color: var(--accent); font: 700 11px/1 var(--mono); letter-spacing: .12em; }
h2 { max-width: 900px; margin: 0; font-size: clamp(38px, 5.4vw, 70px); line-height: .98; letter-spacing: -.045em; }
.story-grid { display: grid; grid-template-columns: 180px minmax(0, 820px); gap: 42px; }
.story-label { color: var(--faint); font: 650 9px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.prose p { margin: 0 0 24px; color: #c6c6c0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.72; }
.prose p:last-child { margin-bottom: 0; }

.flow { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.flow-step { min-height: 205px; padding: 23px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(16,16,20,.72); }
.flow-step span { color: var(--accent); font: 700 9px/1 var(--mono); }
.flow-step h3 { margin: 56px 0 10px; font-size: 18px; line-height: 1.1; }
.flow-step p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.decisions { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.decision { min-height: 260px; padding: 27px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.decision span { color: var(--accent); font: 700 10px/1 var(--mono); }
.decision h3 { margin: 66px 0 12px; font-size: 22px; letter-spacing: -.025em; }
.decision p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.62; }

.evidence-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 14px; }
.evidence-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.evidence-list li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); color: #c9c9c3; line-height: 1.55; }
.evidence-list li::before { content: "✓"; color: var(--accent); font: 700 12px/1.6 var(--mono); }
.stack-panel { padding: 28px; border: 1px solid var(--line); background: var(--surface); }
.stack-panel h3 { margin: 0 0 24px; font-size: 20px; }
.stack-list { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-list span { padding: 8px 10px; border: 1px solid var(--line); color: #bcbcb6; font: 650 9px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery figure { margin: 0; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery figcaption { padding: 13px; color: var(--faint); font: 600 8px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.gallery.single { grid-template-columns: minmax(0, 720px); }
.gallery.single img { aspect-ratio: 16 / 9; }

.author-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; padding: 24px; border: 1px solid var(--line); background: var(--surface); }
.author-card img { width: 68px; height: 68px; object-fit: cover; border: 1px solid var(--line-strong); }
.author-card small { display: block; margin-bottom: 7px; color: var(--accent); font: 650 9px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.author-card strong { display: block; font-size: 20px; }
.author-card p { margin: 5px 0 0; color: var(--muted); line-height: 1.45; }

.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-card { min-height: 190px; padding: 24px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; transition: .2s ease; }
.related-card:hover { border-color: rgba(212,255,54,.55); background: var(--surface-2); transform: translateY(-3px); }
.related-card small { color: var(--accent); font: 650 9px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.related-card strong { margin-top: auto; padding-top: 45px; font-size: 22px; }
.related-card span { margin-top: 8px; color: var(--faint); font: 600 9px/1 var(--mono); text-transform: uppercase; }

.contact { padding: clamp(74px, 9vw, 112px) 0; }
.contact-panel { padding: clamp(34px, 6vw, 70px); border: 1px solid rgba(212,255,54,.35); background: linear-gradient(135deg, var(--accent-soft), rgba(16,16,20,.9) 60%); }
.contact-panel h2 { max-width: 880px; }
.contact-panel p { max-width: 680px; margin: 22px 0 30px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.contact-panel .buttons { justify-content: flex-start; }

.footer { padding: 34px 0; border-top: 1px solid var(--line); color: var(--faint); font: 600 10px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.footer .shell { display: flex; justify-content: space-between; gap: 24px; }

@media (max-width: 960px) {
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow-step:last-child { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .hero-bottom, .section-head, .story-grid { grid-template-columns: 1fr; }
  .buttons { justify-content: flex-start; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 1px solid var(--line); }
  .decisions, .related { grid-template-columns: 1fr; }
  .decision { min-height: auto; }
  .decision h3 { margin-top: 36px; }
  .evidence-grid { grid-template-columns: 1fr; }
  .author-card { grid-template-columns: auto 1fr; }
  .author-card .button { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 24px, 1180px); }
  .topbar .shell { min-height: 64px; }
  .brand span:last-child, .top-link { display: none; }
  h1 { font-size: clamp(50px, 17vw, 78px); }
  .cover img { aspect-ratio: 4 / 3; }
  .facts-grid, .flow, .gallery { grid-template-columns: 1fr; }
  .fact, .fact:nth-child(3) { min-height: 98px; border-left: 1px solid var(--line); }
  .flow-step, .flow-step:last-child { min-height: auto; grid-column: auto; }
  .flow-step h3 { margin-top: 30px; }
  .gallery img { aspect-ratio: 16 / 11; }
  .author-card { grid-template-columns: 1fr; }
  .author-card img { width: 82px; height: 82px; }
  .footer .shell { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
