:root {
  --bg: #0a0a0f;
  --bg2: #0d0d14;
  --bg3: #12121c;
  --surface: #151521;
  --surface2: #1a1a28;
  --border: #1f1f30;
  --border2: #2a2a3e;
  --border3: #3a3a52;
  --text: #e8e8f0;
  --text2: #a0a0b8;
  --text3: #c0c0d0;
  --text4: #a8a8c0;
  --accent: #00d4ff;
  --accent2: #00ff88;
  --accent3: #ff6b00;
  --warn: #ffc107;
  --danger: #ff3b5e;
  --gradient-cortex: radial-gradient(ellipse at center, rgba(0,212,255,.15) 0%, transparent 60%);
  --mono: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
  --sans: 'Inter', 'IBM Plex Sans', -apple-system, sans-serif;
  --serif: 'IBM Plex Serif', 'Georgia', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.protect-copy { -webkit-user-select: none; -moz-user-select: none; user-select: none; }

body.protect-copy::selection { background: transparent; color: inherit; }

.allow-copy { -webkit-user-select: text; user-select: text; }

a { color: var(--accent); text-decoration: none; transition: color .2s; }

a:hover { color: var(--accent2); }

img { max-width: 100%; display: block; }

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; }

h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 600; letter-spacing: -.015em; line-height: 1.15; }

h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }

h4 { font-size: 1.05rem; font-weight: 600; }

.eyebrow { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .2em; color: var(--accent); margin-bottom: 16px; }

.mono { font-family: var(--mono); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

.container-narrow { max-width: 920px; margin: 0 auto; padding: 0 32px; }

section { padding: 120px 0; position: relative; }

section:nth-child(even) { background: var(--bg2); }

.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  background: rgba(10,10,15,.8);
  border-bottom: 1px solid var(--border);
  z-index: 1000; padding: 14px 0;
  transition: transform .3s;
}

.topbar-inner { display: flex; align-items: center; gap: 32px; max-width: 1280px; margin: 0 auto; padding: 0 32px; }

.logo { font-family: var(--mono); font-weight: 700; font-size: 18px; letter-spacing: .02em; color: var(--text); display: flex; align-items: center; gap: 8px; }

.logo-dot { width: 8px; height: 8px; background: var(--accent2); border-radius: 50%; box-shadow: 0 0 12px var(--accent2); animation: pulse 2s infinite; }

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

.nav-main { display: flex; gap: 28px; margin-left: auto; }

.nav-main a { color: var(--text2); font-size: 13px; font-weight: 500; }

.nav-main a:hover { color: var(--text); }

.nav-cta { display: flex; gap: 12px; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 6px; font-size: 13px; font-weight: 500; transition: all .2s; cursor: pointer; border: 1px solid transparent; font-family: var(--sans); }

.btn-primary { background: var(--accent); color: #0a0a0f; }

.btn-primary:hover { background: var(--accent2); color: #0a0a0f; }

.btn-ghost { border: 1px solid var(--border2); color: var(--text); background: transparent; }

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm { padding: 6px 14px; font-size: 12px; }

.btn-lg { padding: 14px 28px; font-size: 14px; }

.sh { margin-bottom: 64px; max-width: 720px; }

.sh h2 { margin-bottom: 20px; }

.sh p { color: var(--text2); font-size: 17px; line-height: 1.65; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 32px; transition: all .25s; position: relative; overflow: hidden; }

.card:hover { border-color: var(--border3); transform: translateY(-2px); }

.card::before { content:''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent2)); opacity: 0; transition: opacity .3s; }

.card:hover::before { opacity: 1; }

.card-ix { font-family: var(--mono); font-size: 11px; color: #b8b8d0; margin-bottom: 16px; letter-spacing: .1em; }

.card h3 { margin-bottom: 12px; }

.card p { color: var(--text2); font-size: 14px; line-height: 1.6; }

.card-meta { display: flex; gap: 16px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); font-family: var(--mono); font-size: 11px; color: var(--text4); letter-spacing: .08em; }

.arch-stack { display: flex; flex-direction: column; gap: 2px; background: var(--bg3); border-radius: 14px; padding: 8px; border: 1px solid var(--border); }

.arch-layer { padding: 24px 32px; background: var(--surface); border-radius: 10px; display: grid; grid-template-columns: 60px 1fr auto; gap: 24px; align-items: center; transition: all .2s; cursor: pointer; }

.arch-layer:hover { background: var(--surface2); }

.arch-n { font-family: var(--mono); font-size: 32px; font-weight: 700; color: var(--accent); line-height: 1; }

.arch-name { font-size: 18px; font-weight: 600; margin-bottom: 4px; }

.arch-desc { font-size: 13px; color: var(--text2); }

.arch-meta { font-family: var(--mono); font-size: 11px; color: var(--text3); text-align: right; line-height: 1.4; }

.stats-table { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }

.stats-table table { width: 100%; border-collapse: collapse; }

.stats-table th { text-align: left; padding: 16px 24px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--text3); border-bottom: 1px solid var(--border); background: var(--surface2); }

.stats-table td { padding: 16px 24px; border-bottom: 1px solid var(--border); font-size: 14px; }

.stats-table td.num { font-family: var(--mono); text-align: right; color: var(--accent); font-weight: 500; }

.stats-table tr:last-child td { border-bottom: none; }

.stats-table tr:hover td { background: var(--surface2); }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; margin-top: 48px; }

.timeline::before { content:''; position: absolute; top: 32px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent) 0%, var(--accent3) 100%); z-index: 0; }

.tl-item { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; padding-top: 44px; }

.tl-year { position: absolute; top: 16px; left: 24px; font-family: var(--mono); font-size: 24px; font-weight: 700; color: var(--accent); background: var(--surface); padding-right: 8px; }

.tl-item h4 { margin-bottom: 10px; font-size: 15px; }

.tl-item p { font-size: 13px; color: var(--text2); line-height: 1.6; }

.form-wrap { max-width: 640px; margin: 48px auto 0; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 40px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }

.form-row-1 { margin-bottom: 16px; }

.form-field label { display: block; font-size: 12px; color: var(--text3); font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }

.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 16px; background: var(--bg3); border: 1px solid var(--border2);
  border-radius: 8px; color: var(--text); font-family: var(--sans); font-size: 14px; transition: all .2s;
}

.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--accent); background: var(--bg2);
}

.form-field textarea { min-height: 100px; resize: vertical; font-family: var(--sans); }

.form-optional { margin-top: 24px; padding-top: 24px; border-top: 1px dashed var(--border2); }

.form-optional-title { font-family: var(--mono); font-size: 11px; color: var(--text3); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }

.form-submit { margin-top: 24px; display: flex; justify-content: flex-end; }

.form-status { padding: 14px; border-radius: 8px; margin-top: 16px; font-size: 13px; display: none; }

.form-status.ok { display: block; background: rgba(0,255,136,.1); border: 1px solid var(--accent2); color: var(--accent2); }

.form-status.err { display: block; background: rgba(255,59,94,.1); border: 1px solid var(--danger); color: var(--danger); }

.api-locked { position: relative; overflow: hidden; }

.api-locked .locked-content { filter: blur(8px); pointer-events: none; user-select: none; }

.api-locked::after {
  content:''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(10,10,15,.8) 60%, rgba(10,10,15,.98) 100%);
  pointer-events: none;
}

.api-cta-overlay {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 40px; text-align: center;
  z-index: 10; background: linear-gradient(180deg, transparent, rgba(10,10,15,.95));
}

.api-cta-overlay h4 { margin-bottom: 12px; font-size: 18px; }

.api-cta-overlay p { color: var(--text2); margin-bottom: 20px; font-size: 14px; }

.code-block { background: var(--bg3); border: 1px solid var(--border); border-radius: 10px; padding: 20px 24px; font-family: var(--mono); font-size: 13px; color: var(--text2); line-height: 1.6; overflow-x: auto; margin: 16px 0; }

.code-block .kw { color: var(--accent); }

.code-block .str { color: var(--accent2); }

.code-block .cm { color: var(--text3); font-style: italic; }

footer { padding: 80px 0 40px; border-top: 1px solid var(--border); background: var(--bg3); }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 60px; }

.footer-brand h3 { font-family: var(--mono); margin-bottom: 16px; }

.footer-brand p { color: var(--text2); font-size: 14px; max-width: 360px; line-height: 1.65; }

.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--text3); margin-bottom: 16px; font-family: var(--mono); }

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.footer-col a { color: var(--text2); font-size: 14px; }

.footer-col a:hover { color: var(--accent); }

.footer-bottom { padding-top: 32px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-family: var(--mono); font-size: 12px; color: var(--text3); }

@media (max-width: 960px) {
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline::before { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-main { display: none; }
  section { padding: 80px 0; }
}

@media (max-width: 560px) {
  .container, .container-narrow { padding: 0 20px; }
  .topbar-inner { padding: 0 20px; gap: 16px; }
  .nav-cta .btn:first-child { display: none; }
  .arch-layer { grid-template-columns: 40px 1fr; }
  .arch-meta { display: none; }
  .form-wrap { padding: 24px; }
}

.devtools-warn { display: none; position: fixed; inset: 0; z-index: 99999; background: rgba(10,10,15,.98); backdrop-filter: blur(10px); align-items: center; justify-content: center; text-align: center; padding: 40px; }

.devtools-warn.on { display: flex; }

.devtools-warn-inner { max-width: 480px; }

.devtools-warn h2 { color: var(--danger); margin-bottom: 16px; }

.devtools-warn p { color: var(--text2); margin-bottom: 24px; font-size: 15px; line-height: 1.6; }

@media print {
  body { display: none !important; }
}

.timeline { gap: 20px; }

.tl-item {
  padding: 48px 24px 24px 24px;
  position: relative;
  min-height: 200px;
}

.tl-year {
  position: absolute;
  top: 14px;
  left: 24px;
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  background: transparent;
  padding: 0;
  line-height: 1;
  z-index: 2;
}

.tl-item h4 {
  margin-top: 8px;
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.3;
}

.tl-item p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.65;
}

@media (max-width: 960px) {
  .sh { text-align: left; margin-left: auto; margin-right: auto; }
  .cards { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .timeline { grid-template-columns: 1fr 1fr; gap: 14px; }
  .timeline::before { display: none; }
  .tl-item { padding: 44px 18px 20px; min-height: 180px; }
  .tl-year { font-size: 18px; top: 12px; left: 18px; }
  .tl-item h4 { font-size: 14px; }
  .tl-item p { font-size: 12px; }
  .arch-layer { grid-template-columns: 48px 1fr; gap: 14px; padding: 18px 20px; }
  .arch-n { font-size: 24px; }
  .arch-name { font-size: 15px; }
  .arch-desc { font-size: 12px; }
  .arch-meta { display: none; }
  .stats-table { overflow-x: auto; }
  .stats-table table { font-size: 12px; }
  .stats-table th, .stats-table td { padding: 10px 12px; }
  .form-wrap { padding: 20px; }
  .form-row { grid-template-columns: 1fr; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .nav-main { display: none; }
  .nav-cta .btn:first-child { display: none; }
  .topbar-inner { gap: 12px; padding: 0 16px; }
  .logo { font-size: 16px; }
  section { padding: 60px 0; }
  .container, .container-narrow { padding: 0 20px; }
  .api-locked { overflow-x: auto; }
  .code-block { font-size: 11px; padding: 14px; }
  .api-cta-overlay { padding: 24px 16px; }
  .api-cta-overlay h4 { font-size: 14px; }
  .api-cta-overlay .btn { margin: 6px 4px; }
  #contact [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
  h1 { font-size: 2rem !important; line-height: 1.1; }
  h2 { font-size: 1.5rem !important; }
  h3 { font-size: 1.1rem !important; }
  p, li { font-size: 14px !important; }
}

@media (max-width: 520px) {
  .timeline { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
  .container, .container-narrow { padding: 0 16px; }
  .sh { margin-bottom: 32px; }
}

body { font-size: 16px; line-height: 1.7; color: var(--text); }

p, li, td, th, label, input, select, textarea {
  font-family: var(--sans);
}

p.prose, section p:not(.hero-sub):not(.hero-stat-lbl):not(.card-ix):not(.eyebrow):not(.form-status) {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text2);
}

#cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 20px 24px;
  z-index: 9998;
  display: none;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  backdrop-filter: blur(20px);
}

#cookie-banner.visible { display: block; }

#cookie-banner h4 { font-size: 14px; margin-bottom: 8px; color: var(--text); font-family: var(--mono); }

#cookie-banner p { font-size: 13px; color: var(--text2); margin-bottom: 14px; line-height: 1.55; }

#cookie-banner .cb-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

#cookie-banner .btn { padding: 8px 16px; font-size: 12px; }

footer {
  padding: 60px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--bg3);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 40px;
  max-width: 1180px;
}

.footer-brand h3 {
  font-family: var(--mono);
  margin-bottom: 14px;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand p {
  color: var(--text2);
  font-size: 13px;
  max-width: 300px;
  line-height: 1.65;
}

.footer-col h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text3);
  margin-bottom: 14px;
  font-family: var(--mono);
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }

.footer-col a { color: var(--text2); font-size: 13px; }

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  #cookie-banner { padding: 16px; bottom: 12px; left: 12px; right: 12px; }
  #cookie-banner .cb-actions { justify-content: stretch; }
  #cookie-banner .btn { flex: 1; justify-content: center; }
}

.about-hero {
  padding: 140px 0 60px;
  position: relative;
  overflow: hidden;
}

.about-portrait {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border2);
  margin-bottom: 32px;
}

.about-portrait img { width: 100%; height: 100%; object-fit: cover; }

.bio-timeline { position: relative; padding-left: 32px; margin: 48px 0; }

.bio-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent2) 50%, var(--accent3) 100%);
}

.bio-event {
  position: relative;
  padding: 0 0 36px 0;
}

.bio-event::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 8px var(--accent);
}

.bio-year {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: .08em;
  margin-bottom: 6px;
}

.bio-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.bio-desc {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.7;
}

.bio-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--surface2);
  color: var(--text3);
  margin-right: 6px;
  margin-top: 8px;
  letter-spacing: .08em;
}

.quote-block {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  background: var(--surface);
  border-radius: 0 10px 10px 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--text);
}

.quote-block cite { display: block; margin-top: 12px; font-size: 12px; color: var(--text3); font-style: normal; font-family: var(--mono); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 32px 0;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}

.stat-card .big {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-card .lbl { font-size: 12px; color: var(--text2); line-height: 1.4; }

.legal-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; padding: 100px 0 80px; }

.legal-toc { position: sticky; top: 100px; font-family: var(--mono); font-size: 11px; line-height: 1.9; max-height: calc(100vh - 140px); overflow-y: auto; }

.legal-toc h4 { font-size: 10px; text-transform: uppercase; letter-spacing: .15em; color: var(--text3); margin-bottom: 12px; }

.legal-toc a { color: var(--text2); display: block; padding: 3px 0; padding-left: 10px; border-left: 2px solid transparent; }

.legal-toc a:hover { color: var(--accent); border-color: var(--accent); }

.legal-article h2 { margin: 48px 0 16px; font-size: 22px; scroll-margin-top: 100px; }

.legal-article h3 { margin: 32px 0 12px; font-size: 16px; color: var(--accent); }

.legal-article h4 { margin: 24px 0 10px; font-size: 14px; }

.legal-article p { font-size: 15px; line-height: 1.8; color: var(--text2); margin: 12px 0; }

.legal-article ul, .legal-article ol { padding-left: 24px; margin: 14px 0; }

.legal-article li { font-size: 15px; line-height: 1.8; color: var(--text2); margin-bottom: 6px; }

@media (max-width: 960px) {
  .legal-layout { grid-template-columns: 1fr; padding-top: 80px; }
  .legal-toc { position: static; max-height: none; border: 1px solid var(--border); border-radius: 10px; padding: 16px; background: var(--surface); }
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  padding: 140px 0 100px;
  max-width: 1180px;
  margin: 0 auto;
}

.legal-toc {
  position: sticky;
  top: 110px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.8;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  padding-right: 12px;
  border-right: 1px solid var(--border);
}

.legal-toc h4 {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--text3);
  margin-bottom: 18px;
  font-family: var(--mono);
}

.legal-toc ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.legal-toc li {
  list-style: none !important;
  padding: 0;
  margin: 0;
  font-size: 12px;
}

.legal-toc li::marker,
.legal-toc li::before { content: none !important; }

.legal-toc a {
  color: var(--text2);
  display: block;
  padding: 5px 0 5px 12px;
  border-left: 2px solid transparent;
  font-size: 12px;
  transition: all .15s;
  text-decoration: none;
}

.legal-toc a:hover,
.legal-toc a:focus {
  color: var(--accent);
  border-left-color: var(--accent);
  background: rgba(0, 212, 255, .05);
}

.legal-article {
  min-width: 0;
  max-width: 760px;
}

.legal-article h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 16px;
}

.legal-article h2 {
  margin: 56px 0 18px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  scroll-margin-top: 110px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.legal-article h2:first-of-type {
  margin-top: 40px;
}

.legal-article h3 {
  margin: 36px 0 14px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0;
}

.legal-article h4 {
  margin: 28px 0 10px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
}

.legal-article p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text2);
  margin: 14px 0;
}

.legal-article p strong,
.legal-article strong {
  color: var(--text);
  font-weight: 600;
}

.legal-article p em,
.legal-article em {
  color: var(--accent);
  font-style: italic;
}

.legal-article ul,
.legal-article ol {
  padding-left: 24px;
  margin: 16px 0;
}

.legal-article li {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text2);
  margin-bottom: 8px;
}

.legal-article a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(0, 212, 255, .3);
  text-underline-offset: 3px;
}

.legal-article a:hover {
  text-decoration-color: var(--accent);
}

@media (max-width: 960px) {
  .legal-layout {
    grid-template-columns: 1fr;
    padding: 110px 20px 60px;
    gap: 32px;
  }
  .legal-toc {
    position: static;
    max-height: none;
    border: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 20px;
    background: var(--surface);
  }
  .legal-article h1 { font-size: 1.85rem; }
  .legal-article h2 { font-size: 1.25rem; margin-top: 40px; }
  .legal-article p, .legal-article li { font-size: 15px; }
}

.bio-event {
  position: relative;
  padding: 0 0 42px 0;
}

.bio-event:last-child { padding-bottom: 0; }

.bio-desc {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 0;
}

.bio-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.bio-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--surface2);
  color: var(--text3);
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid var(--border);
}

.bio-event > .bio-tag {
  margin-top: 14px;
  margin-right: 6px;
}

.bio-event > .bio-tag:first-of-type {
  display: inline-block;
  margin-top: 14px;
}

.bio-event > .bio-desc + .bio-tag {
  clear: both;
}

.bio-event > .bio-desc {
  display: block;
}

.bio-event > .bio-desc::after {
  content: "";
  display: block;
  clear: both;
  height: 0;
}

.bio-event .quote-block {
  margin-top: 14px;
  margin-bottom: 6px;
}

section p:not(.hero-sub):not(.hero-stat-lbl):not(.card-ix):not(.eyebrow):not(.form-status):not(.bio-desc),
.container p.prose,
.container-narrow p.prose {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text2);
}

.topbar { z-index: 100; }

.workflow-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 28px 0;
}

.workflow-list li {
  list-style: none !important;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--border);
  align-items: baseline;
}

.workflow-list li:last-child { border-bottom: none; }

.workflow-list li::marker,
.workflow-list li::before { content: none !important; }

.workflow-list .step-n {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--accent2);
  line-height: 1.4;
  letter-spacing: .04em;
  text-align: left;
}

.workflow-list .step-body {
  min-width: 0;
}

.workflow-list .step-body strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
  color: var(--text);
  font-weight: 600;
  line-height: 1.35;
}

.workflow-list .step-body span {
  display: block;
  color: var(--text2);
  font-size: 16px;
  line-height: 1.7;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 36px 0;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.stat-card .big {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.15;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  word-break: normal;
}

.stat-card .big.split-line {
  font-size: 22px;
  line-height: 1.3;
}

.stat-card .lbl {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.5;
  font-family: var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
}

body { font-size: 18px; line-height: 1.7; }

p.prose,
section p:not(.hero-sub):not(.hero-stat-lbl):not(.card-ix):not(.eyebrow):not(.form-status):not(.bio-desc):not(.bio-year):not(.arch-desc),
.container p,
.container-narrow p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text2);
}

.sh p { font-size: 18px; line-height: 1.7; color: var(--text2); }

.card p { font-size: 16px; line-height: 1.6; }

.bio-desc { font-size: 16px; line-height: 1.75; }

.workflow-list .step-body strong { font-size: 17px; }

.workflow-list .step-body span { font-size: 16px; }

.legal-article p, .legal-article li { font-size: 16px; line-height: 1.75; }

.arch-desc { font-size: 15px; line-height: 1.55; color: var(--text2); }

.quote-block {
  font-size: 17px;
  line-height: 1.7;
}

main ul:not(.legal-article ul):not(.footer-col ul):not(.legal-toc ul),
main ol:not(.legal-article ol) {
  list-style: none;
  padding-left: 0;
}

main ul:not(.legal-article ul):not(.footer-col ul):not(.legal-toc ul) > li,
main ol:not(.legal-article ol) > li {
  list-style: none;
}

.legal-article ul {
  list-style: disc;
  padding-left: 24px;
}

.legal-article ol {
  list-style: decimal;
  padding-left: 28px;
}

/* ═══════════════════════════════════════════════════════════════════
   HERO — CLEAN REWRITE v2.0 (replaces all prior .hero* rules)
   Canvas BIG, TOP-aligned with title per Damir screenshot
   Mobile: canvas below text, centered, responsive
   ═══════════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
  min-height: auto;
}
.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 640px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  position: relative;
}
.hero-grid > div:first-child {
  position: relative;
  z-index: 3;
  max-width: 640px;
  padding-top: 30px;
}

.hero-tagline {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  color: var(--text);
  margin: 18px 0 28px;
  position: relative;
  z-index: 3;
}
.hero-tagline .accent { color: var(--accent); }
.hero-tagline .strike { color: var(--text3); text-decoration: line-through; text-decoration-color: rgba(255,255,255,0.15); }

.hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text2);
  max-width: 620px;
  margin-bottom: 40px;
  position: relative;
  z-index: 3;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 3;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 3;
}
.hero-stat { display: flex; flex-direction: column; gap: 4px; }
.hero-stat-val { font-family: var(--mono); font-size: 26px; font-weight: 700; color: var(--text); line-height: 1.1; letter-spacing: -0.01em; }
.hero-stat-lbl { font-size: 11px; color: var(--text3); font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }

.hero-canvas {
  position: relative;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  margin-top: 54px;
  justify-self: end;
  align-self: start;
  z-index: 1;
  pointer-events: none;
}
.hero-canvas canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

@media (min-width: 1200px) {
  .hero-canvas { max-width: 760px; margin-top: 70px; }
}

@media (max-width: 960px) {
  .hero { padding: 110px 0 50px; }
  .hero-inner { padding: 0 24px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    align-items: center;
  }
  .hero-grid > div:first-child {
    max-width: 100%;
    padding-top: 0;
    text-align: left;
  }
  .hero-canvas {
    order: 2;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    justify-self: center;
    margin-top: 0;
  }
  .hero-tagline { font-size: clamp(2rem, 8vw, 2.8rem); max-width: 100%; }
  .hero-sub { font-size: 16px; max-width: 100%; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; padding-top: 28px; }
  .hero-stat-val { font-size: 20px; }
  .hero-stat-lbl { font-size: 9px; }
  .hero-cta { justify-content: flex-start; }
  .hero-cta .btn-lg { padding: 12px 20px; font-size: 14px; }
}

@media (max-width: 560px) {
  .hero { padding: 90px 0 40px; }
  .hero-inner { padding: 0 18px; }
  .hero-tagline { font-size: 1.9rem; line-height: 1.1; }
  .hero-sub { font-size: 15px; }
  .hero-canvas { max-width: 320px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero-stat-val { font-size: 18px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { text-align: center; }
}


/* ═══════════════════════════════════════════════════════════════════
   PATCH v1.8 — 19.04.2026 — HERO BIGGER + MOBILE CLEAN + OVERFLOW KILL
   ═══════════════════════════════════════════════════════════════════ */

/* GLOBAL overflow protection */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
}
* { min-width: 0; }
img, canvas, svg, video, iframe { max-width: 100%; height: auto; }
table { max-width: 100%; table-layout: auto; word-break: break-word; }
pre, code { overflow-x: auto; word-break: break-all; white-space: pre-wrap; }

/* Heading word breaking — prevent long words forcing width */
h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

/* HERO CANVAS — BIGGER, TOP-ALIGNED — final version */
.hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
  min-height: auto;
}
.hero-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 600px) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  position: relative;
}
.hero-grid > div:first-child {
  position: relative;
  z-index: 3;
  max-width: 600px;
  padding-top: 30px;
}
.hero-tagline {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  color: var(--text);
  margin: 18px 0 28px;
  position: relative;
  z-index: 3;
}
.hero-sub { font-size: 18px; line-height: 1.7; color: var(--text2); max-width: 580px; margin-bottom: 40px; position: relative; z-index: 3; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; position: relative; z-index: 3; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--border); position: relative; z-index: 3; }
.hero-stat { display: flex; flex-direction: column; gap: 4px; }
.hero-stat-val { font-family: var(--mono); font-size: 26px; font-weight: 700; color: var(--text); line-height: 1.1; letter-spacing: -0.01em; }
.hero-stat-lbl { font-size: 11px; color: var(--text3); font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }

.hero-canvas {
  position: relative;
  width: 100%;
  max-width: 820px;         /* BIGGER canvas */
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  margin-top: 77px;         /* top-align with title top v1.8a */
  justify-self: end;
  align-self: start;
  z-index: 1;
  pointer-events: none;
}
.hero-canvas canvas { display: block; width: 100% !important; height: 100% !important; }

@media (min-width: 1400px) {
  .hero-canvas { max-width: 880px; margin-top: 67px; }
}

/* MOBILE OVERRIDES — centered, clean, no scatter */
@media (max-width: 960px) {
  .hero { padding: 100px 0 40px; overflow-x: hidden; }
  .hero-inner { padding: 0 20px; }
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 32px;
    align-items: center;
    text-align: center;
  }
  .hero-grid > div:first-child {
    max-width: 100%;
    padding-top: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-tagline { font-size: clamp(1.9rem, 7vw, 2.4rem); max-width: 100%; text-align: center; }
  .hero-sub { font-size: 15px; max-width: 100%; text-align: center; margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-canvas {
    order: 2;
    max-width: 340px;
    width: 100%;
    margin: 0 auto;
    justify-self: center;
  }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 36px; padding-top: 24px; text-align: center; }
  .hero-stat { align-items: center; }
  .hero-stat-val { font-size: 18px; }
  .hero-stat-lbl { font-size: 9px; }
  
  /* All other sections — proper mobile padding */
  section { padding: 50px 0 !important; }
  .container, .container-narrow { padding: 0 20px !important; }
  
  /* Stats/cards — single column on small */
  .stat-row { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  .cards { grid-template-columns: 1fr !important; }
  
  /* Arch layers stacked */
  .arch-layer { grid-template-columns: 48px 1fr !important; }
  .arch-layer .arch-meta { grid-column: 2 / 3 !important; text-align: left !important; }
  
  /* Section headers */
  .sh h2 { font-size: 1.75rem !important; }
  .sh p { font-size: 15px !important; }
  
  /* Timeline */
  .timeline { grid-template-columns: 1fr !important; }
  .tl-item { padding-left: 20px !important; }
  
  /* Workflow lists */
  .workflow-list li { grid-template-columns: 36px 1fr !important; gap: 14px !important; padding: 14px 0 !important; }
  .workflow-list .step-body strong { font-size: 15px !important; }
  .workflow-list .step-body span { font-size: 14px !important; line-height: 1.55 !important; }
  
  /* Bio events */
  .bio-event { padding: 0 0 28px 0 !important; }
  .bio-year { font-size: 12px !important; }
  .bio-title { font-size: 17px !important; }
  .bio-desc { font-size: 14px !important; }
  .bio-portrait { max-width: 180px !important; margin: 0 auto 24px !important; }
  .about-hero .stat-row { grid-template-columns: repeat(2, 1fr) !important; }
  
  /* Arch TOC */
  .arch-layout { grid-template-columns: 1fr !important; gap: 24px !important; }
  .arch-toc { position: static !important; }
  .layer-head { flex-wrap: wrap !important; gap: 12px !important; }
  .layer-head .n { font-size: 48px !important; }
  .layer-head h2 { font-size: 1.4rem !important; }
  .layer-head .tag { margin-left: 0 !important; }
  .metric-grid { grid-template-columns: repeat(2, 1fr) !important; }
  
  /* Legal */
  .legal-layout { grid-template-columns: 1fr !important; padding: 100px 20px 50px !important; gap: 28px !important; }
  .legal-toc { position: static !important; max-height: none !important; border-right: none !important; border: 1px solid var(--border) !important; border-radius: 10px !important; padding: 16px 18px !important; background: var(--surface) !important; }
  .legal-article h1 { font-size: 1.75rem !important; }
  .legal-article h2 { font-size: 1.25rem !important; margin-top: 36px !important; }
  .legal-article p, .legal-article li { font-size: 14.5px !important; line-height: 1.7 !important; }
  
  /* Stats table on mobile */
  .stats-table { overflow-x: auto; }
  .stats-table table { font-size: 13px; }
  .stats-table th, .stats-table td { padding: 8px 10px !important; }
  
  /* Devtools warning */
  .devtools-warn-inner { padding: 24px !important; }
  
  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 24px !important; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; align-items: center; }
}

@media (max-width: 560px) {
  .hero { padding: 85px 0 30px; }
  .hero-inner { padding: 0 16px; }
  .hero-tagline { font-size: 1.8rem; line-height: 1.1; }
  .hero-sub { font-size: 14px; }
  .hero-canvas { max-width: 280px; }
  .hero-stats { grid-template-columns: 1fr 1fr !important; gap: 10px; }
  .hero-stat-val { font-size: 16px; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-cta .btn { text-align: center; justify-content: center; }
  
  .container, .container-narrow { padding: 0 16px !important; }
  section { padding: 40px 0 !important; }
  
  .stat-row { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
  .stat-card { padding: 16px 12px !important; min-height: 90px !important; }
  .stat-card .big { font-size: 20px !important; }
  .stat-card .lbl { font-size: 10px !important; }
  
  .sh h2 { font-size: 1.5rem !important; line-height: 1.2 !important; }
  .sh p { font-size: 14px !important; }
  
  .footer-grid { grid-template-columns: 1fr !important; }
  
  .bio-timeline { padding-left: 12px !important; border-left-width: 1px !important; }
  .bio-portrait { max-width: 140px !important; }
  
  .layer-head .n { font-size: 36px !important; }
  .metric-grid { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
  .metric-box { padding: 12px !important; }
  .metric-box .val { font-size: 18px !important; }
}

/* TOPBAR responsive — prevent nav spill */
.topbar { max-width: 100vw; overflow: hidden; }
.topbar-inner { min-width: 0; max-width: 100vw; }

@media (max-width: 560px) {
  .topbar-inner { padding: 0 12px !important; gap: 10px !important; }
  .logo { font-size: 15px !important; }
  .logo .logo-dot { width: 8px !important; height: 8px !important; }
  .nav-cta { gap: 6px !important; }
  .nav-cta .btn { padding: 6px 12px !important; font-size: 11px !important; }
}


/* ═══════════════════════════════════════════════════════════════════
   PATCH v1.9 — 19.04.2026 — WORKFLOW OVERLAP FIX
   T+X,XXX values too wide for 48px grid column
   ═══════════════════════════════════════════════════════════════════ */

.workflow-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 28px 0;
}
.workflow-list li {
  list-style: none !important;
  display: grid !important;
  grid-template-columns: minmax(80px, auto) 1fr !important;
  gap: 20px !important;
  padding: 18px 0 !important;
  border-bottom: 1px dashed var(--border);
  align-items: baseline;
}
.workflow-list li:last-child { border-bottom: none; }
.workflow-list li::marker,
.workflow-list li::before { content: none !important; }

.workflow-list .step-n {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent2);
  line-height: 1.4;
  letter-spacing: .02em;
  white-space: nowrap;
  padding-right: 8px;
}

.workflow-list .step-body {
  min-width: 0;
  overflow-wrap: break-word;
}

.workflow-list .step-body strong {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
  color: var(--text);
  font-weight: 600;
  line-height: 1.35;
}

.workflow-list .step-body span {
  display: block;
  color: var(--text2);
  font-size: 15px;
  line-height: 1.7;
}

/* Mobile: stack vertically to avoid cramped grid */
@media (max-width: 560px) {
  .workflow-list li {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    padding: 14px 0 !important;
  }
  .workflow-list .step-n {
    padding-right: 0;
    font-size: 13px;
  }
  .workflow-list .step-body strong { font-size: 15px; }
  .workflow-list .step-body span { font-size: 14px; }
}


/* ═══════════════════════════════════════════════════════════════════
   PATCH v1.10 — 19.04.2026 — WORKFLOW ALIGNMENT
   Step-n (green): right-aligned, fixed 100px column
   Step-body (white): left-aligned, consistent start
   ═══════════════════════════════════════════════════════════════════ */
.workflow-list li {
  grid-template-columns: 100px 1fr !important;
  gap: 24px !important;
  align-items: baseline !important;
}
.workflow-list .step-n {
  text-align: right !important;
  padding-right: 0 !important;
  white-space: nowrap !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0 !important;
}
.workflow-list .step-body {
  text-align: left !important;
}
.workflow-list .step-body strong {
  text-align: left;
}

/* Mobile — still align but narrower column */
@media (max-width: 560px) {
  .workflow-list li {
    grid-template-columns: 1fr !important;
    gap: 4px !important;
  }
  .workflow-list .step-n {
    text-align: left !important;
    font-size: 12px;
    color: var(--accent2);
    margin-bottom: 2px;
  }
}

/* a11y: content links underline */
section p a[href], section li a[href], section div:not(.hero-stats):not(.topbar) > a[href]:not(.btn):not(.logo):not(.nav-link) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
section a.btn, section a.logo, section a.nav-link { text-decoration: none; }
/* a11y: focus visible */
a:focus-visible, button:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 2px;
}
