@font-face {
  font-family: "Estedad Local";
  src: url("assets/fonts/Estedad-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Estedad Local";
  src: url("assets/fonts/Estedad-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #070a06;
  --ink-2: #0b1009;
  --panel: #10160d;
  --paper: #f0f1e8;
  --muted: #a2aa98;
  --lime: #b7f51d;
  --lime-hot: #ceff48;
  --green: #527819;
  --line: rgba(218, 255, 118, 0.17);
  --line-soft: rgba(240, 241, 232, 0.09);
  --shell: min(1240px, calc(100% - 48px));
  --mono: "IBM Plex Mono", Consolas, monospace;
  --sans: "Vazirmatn", Tahoma, sans-serif;
  --fa: "Estedad Local", "Vazirmatn", Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 80% 8%, rgba(130, 193, 27, 0.12), transparent 31rem),
    var(--ink);
  font-family: var(--sans);
  line-height: 1.8;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
.fa-copy {
  direction: rtl;
  text-align: right;
  font-family: var(--fa);
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { color: inherit; font: inherit; }
::selection { color: var(--ink); background: var(--lime); }

.grain {
  position: fixed;
  z-index: 100;
  inset: 0;
  opacity: .045;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.shell { width: var(--shell); margin-inline: auto; }
.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(7, 10, 6, .76);
  backdrop-filter: blur(18px);
}
.nav { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid;
  width: 47px;
  height: 47px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(183, 245, 29, .45);
  border-radius: 50%;
  background: #090e07;
  box-shadow: 0 0 28px rgba(183, 245, 29, .08);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-type { display: grid; line-height: 1.15; text-align: left; }
.brand-type strong { font: 600 1rem/1 var(--mono); letter-spacing: .12em; }
.brand-type em { color: var(--lime); font-style: normal; }
.brand-type small { margin-top: 7px; color: var(--muted); font: 400 .62rem/1 var(--mono); letter-spacing: .04em; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { padding: 10px 13px; color: #c2c8bc; font-size: .89rem; font-weight: 650; transition: color .2s ease, background .2s ease; }
.nav-links a:hover { color: var(--lime-hot); }
.nav-links .nav-cta { margin-left: 16px; border: 1px solid var(--line); background: rgba(183, 245, 29, .06); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 12px; border: 1px solid var(--line); background: transparent; }
.menu-toggle span { display: block; height: 1px; margin: 5px 0; background: var(--paper); }

.hero {
  position: relative;
  min-height: calc(100svh - 82px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
  align-items: center;
  gap: 20px;
  padding-block: clamp(52px, 8vh, 96px);
}
.hero-copy { position: relative; z-index: 2; max-width: 670px; }
.status-pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 11px; border: 1px solid var(--line); color: var(--lime); background: rgba(183, 245, 29, .045); font: 500 .67rem/1 var(--mono); letter-spacing: .08em; }
.status-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); animation: pulse 1.9s infinite; }
.kicker, .section-index { margin: 26px 0 16px; color: var(--muted); font: 500 .72rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(4rem, 8.7vw, 8.5rem); font-weight: 900; line-height: .9; letter-spacing: -.085em; }
.hero h1 span { color: var(--lime); }
.hero-lead { max-width: 610px; margin: 30px 0 0; color: #bdc5b6; font-size: clamp(.98rem, 1.5vw, 1.13rem); line-height: 2.05; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 0 22px; border: 1px solid var(--line); font-weight: 750; transition: .2s ease; }
.button.primary { color: var(--ink); border-color: var(--lime); background: var(--lime); }
.button.primary:hover { background: var(--lime-hot); box-shadow: 0 0 34px rgba(183, 245, 29, .16); transform: translateY(-2px); }
.button.secondary { color: #c7cec0; background: rgba(255,255,255,.025); }
.button.secondary:hover { color: var(--paper); border-color: rgba(240,241,232,.25); }
.hero-proof { display: flex; gap: 30px; margin-top: 44px; color: #7f8878; font: 400 .65rem/1.4 var(--mono); text-transform: uppercase; }
.hero-proof span { display: grid; gap: 4px; }
.hero-proof b { color: var(--paper); font-size: .84rem; }

.hero-visual { position: relative; min-height: 690px; display: grid; place-items: center; isolation: isolate; direction: ltr; }
.hero-visual::before { content: ""; position: absolute; z-index: -3; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(183, 245, 29, .19), rgba(183, 245, 29, .035) 50%, transparent 70%); filter: blur(14px); }
.hero-visual::after { content: ""; position: absolute; z-index: -2; inset: 8% 3%; background-image: linear-gradient(rgba(183,245,29,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(183,245,29,.055) 1px, transparent 1px); background-size: 42px 42px; mask-image: radial-gradient(circle, black, transparent 67%); }
.hero-visual > img { position: relative; z-index: 2; width: min(100%, 560px); max-height: 720px; object-fit: contain; filter: saturate(.97) contrast(1.04); mix-blend-mode: lighten; }
.orbit { position: absolute; z-index: -1; border: 1px solid rgba(183, 245, 29, .16); border-radius: 50%; }
.orbit::before, .orbit::after { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.orbit-one { width: 76%; aspect-ratio: 1; animation: rotate 26s linear infinite; }
.orbit-two { width: 55%; aspect-ratio: 1; animation: rotate 18s linear infinite reverse; }
.orbit-one::before { left: 11%; top: 17%; }.orbit-one::after { right: 2%; bottom: 38%; }
.orbit-two::before { left: -3px; top: 50%; }.orbit-two::after { right: 20%; bottom: 4%; }
.scanline { position: absolute; z-index: 3; width: 90%; height: 1px; background: linear-gradient(90deg, transparent, rgba(206,255,72,.65), transparent); box-shadow: 0 0 16px var(--lime); animation: scan 5s ease-in-out infinite; }
.visual-label { position: absolute; z-index: 4; padding-left: 12px; border-left: 1px solid var(--lime); color: #8e9787; font: 400 .58rem/1.55 var(--mono); letter-spacing: .05em; }
.visual-label span { color: var(--lime); }
.label-top { top: 17%; right: 0; }.label-bottom { bottom: 14%; left: 1%; }
.coordinate { position: absolute; z-index: 4; color: #65705f; font: 400 .55rem/1 var(--mono); letter-spacing: .1em; }
.coord-a { top: 11%; left: 12%; transform: rotate(-90deg); }.coord-b { right: 6%; bottom: 22%; }

.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--lime); color: var(--ink); }
.marquee-track { width: max-content; display: flex; align-items: center; gap: 30px; padding: 13px 0; animation: marquee 34s linear infinite; font: 600 .72rem/1 var(--mono); letter-spacing: .1em; }
.marquee-track i { font-style: normal; }
.section { padding-block: clamp(92px, 12vw, 160px); scroll-margin-top: 70px; }
.section-head { display: grid; grid-template-columns: 1.1fr .7fr; gap: 80px; align-items: end; margin-bottom: 54px; }
.section-index { margin-top: 0; color: var(--lime); }
.section-head h2, .identity-copy h2 { margin: 0; font-size: clamp(2.8rem, 5.2vw, 5.3rem); line-height: 1.06; letter-spacing: -.055em; }
.section-head > p { max-width: 490px; margin: 0 0 7px; color: var(--muted); line-height: 2; }

.notes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.note-card { overflow: hidden; border: 1px solid var(--line-soft); background: #0b0f09; transition: transform .25s ease, border-color .25s ease; }
.note-card:hover { transform: translateY(-5px); border-color: rgba(183,245,29,.34); }
.note-card a { height: 100%; display: grid; }
.note-featured { grid-column: 1 / -1; }
.note-featured a { grid-template-columns: 1.35fr .65fr; }
.cover-wrap { position: relative; min-height: 260px; overflow: hidden; background: #030503; }
.note-featured .cover-wrap { min-height: 460px; }
.cover-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 62%, rgba(5,8,4,.52)); pointer-events: none; }
.cover-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .3s; }
.note-card:hover img { transform: scale(1.025); filter: brightness(1.06); }
.note-featured .cover-wrap { display: grid; place-items: center; }
.note-featured .cover-wrap > img { height: auto; max-height: 100%; object-fit: contain; }
.note-featured:hover .cover-wrap > img { transform: none; }
.issue { position: absolute; z-index: 2; top: 18px; left: 18px; padding: 7px 10px; color: var(--ink); background: var(--lime); font: 600 .62rem/1 var(--mono); letter-spacing: .08em; }
.note-copy { padding: 28px; }
.note-featured .note-copy { display: flex; flex-direction: column; justify-content: center; padding: 42px; }
.note-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #7f8978; font: 500 .65rem/1.5 var(--mono); }
.note-meta span { color: var(--lime); direction: ltr; }
.note-copy h3 { margin: 20px 0 12px; font-size: clamp(1.4rem, 2.4vw, 2.15rem); line-height: 1.55; letter-spacing: -.025em; }
.note-copy h3.fa-copy { font-weight: 700; line-height: 1.7; }
.note-copy p.fa-copy { font-weight: 400; line-height: 2.15; }
.note-featured h3 { font-size: clamp(2rem, 3.3vw, 3.4rem); }
.note-copy p { margin: 0; color: var(--muted); line-height: 2; }
.read-link { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; margin-top: 25px; color: var(--paper); font-size: .84rem; font-weight: 700; }
.read-link b { color: var(--lime); font-family: var(--mono); }
.all-notes { min-height: 80px; display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding: 0 28px; border: 1px solid var(--line-soft); color: var(--paper); background: linear-gradient(90deg, rgba(183,245,29,.055), transparent); font-weight: 800; transition: .2s; }
.all-notes:hover { border-color: rgba(183,245,29,.32); color: var(--lime-hot); }
.all-notes b { font: 400 1.3rem var(--mono); }
.cover-fallback { width: 100%; height: 100%; min-height: inherit; display: grid; place-items: center; background: radial-gradient(circle, rgba(183,245,29,.13), transparent 34%), linear-gradient(135deg, #090d07, #040604); }
.cover-fallback img { position: static; width: min(34%, 150px); height: auto; object-fit: contain; opacity: .85; filter: drop-shadow(0 0 28px rgba(183,245,29,.2)); }

.lab { border-block: 1px solid var(--line-soft); background: #0a0e08; }
.lab-grid { border-top: 1px solid var(--line-soft); }
.lab-item { min-height: 144px; display: grid; grid-template-columns: 60px 1.2fr .8fr 58px; gap: 28px; align-items: center; border-bottom: 1px solid var(--line-soft); }
.lab-no { color: var(--lime); font: 500 .7rem var(--mono); }
.lab-item h3 { margin: 0 0 8px; color: var(--paper); font: 600 clamp(1rem, 2vw, 1.35rem) var(--mono); letter-spacing: .05em; }
.lab-item p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.8; }
.lab-item > strong { color: var(--lime); font: 500 .8rem var(--mono); text-align: left; }
.meter { height: 3px; overflow: hidden; background: rgba(240,241,232,.09); }
.meter i { display: block; width: 0; height: 100%; background: var(--lime); box-shadow: 0 0 12px var(--lime); transition: width 1.25s cubic-bezier(.2,.8,.2,1); }
.lab-grid.is-visible .meter i { width: var(--value); }
.topic-dashboard { display: grid; grid-template-columns: minmax(260px, .34fr) minmax(0, .66fr); border: 1px solid var(--line-soft); background: #080c07; }
.topic-summary { display: flex; flex-direction: column; justify-content: space-between; min-height: 430px; padding: 38px; border-right: 1px solid var(--line-soft); background: radial-gradient(circle at 30% 24%, rgba(183,245,29,.12), transparent 48%); }
.topic-total { color: var(--lime); font: 600 clamp(5.5rem, 11vw, 10rem)/.8 var(--mono); letter-spacing: -.1em; }
.topic-summary strong { display: block; color: var(--paper); font: 600 .9rem var(--mono); text-transform: uppercase; }
.topic-summary small { display: block; margin-top: 9px; color: var(--muted); font: 400 .69rem/1.7 var(--mono); }
.topic-list { display: grid; }
.topic-row { min-height: 106px; display: grid; grid-template-columns: 42px minmax(170px, .65fr) minmax(100px, .35fr) 86px; gap: 22px; align-items: center; padding: 22px 28px; border-bottom: 1px solid var(--line-soft); transition: background .2s ease; }
.topic-row:last-child { border-bottom: 0; }
.topic-row:hover { background: rgba(183,245,29,.045); }
.topic-name h3 { margin: 0; font: 600 clamp(.92rem, 1.8vw, 1.18rem) var(--mono); }
.topic-name small { color: #727d6b; font: 400 .62rem var(--mono); }
.topic-row > strong { color: var(--lime); font: 500 1.15rem var(--mono); text-align: right; }
.topic-row > strong small { color: #788271; font-size: .57rem; font-weight: 400; text-transform: uppercase; }
.topic-dashboard.is-visible .meter i { width: var(--value); }

.identity-card { display: grid; grid-template-columns: minmax(370px, .9fr) minmax(0, 1.1fr); gap: clamp(42px, 8vw, 100px); align-items: center; }
.terminal { overflow: hidden; border: 1px solid var(--line); background: #060805; box-shadow: 24px 24px 0 #11180d; }
.terminal-top { height: 50px; display: flex; align-items: center; gap: 7px; padding: 0 16px; border-bottom: 1px solid var(--line-soft); }
.terminal-top span { width: 8px; height: 8px; border-radius: 50%; background: #3f473a; }
.terminal-top span:last-of-type { background: var(--lime); box-shadow: 0 0 9px rgba(183,245,29,.7); }
.terminal-top small { margin-left: auto; color: #6e7868; font: .6rem var(--mono); }
.terminal-body { min-height: 370px; padding: 28px; color: #ccd3c6; font: 400 .78rem/1.85 var(--mono); text-align: left; }
.terminal-body p { margin: 0 0 7px; }
.terminal-body b { color: var(--lime); font-weight: 400; }
.terminal-body .output { margin-bottom: 24px; padding-left: 14px; color: #899582; }
.terminal-body .error { color: #d0e8a3; }
.cursor { display: inline-block; width: 8px; height: 15px; margin-top: 6px; background: var(--lime); animation: blink 1s steps(1) infinite; }
.identity-copy .section-index { margin-bottom: 20px; }
.identity-copy h2 span { color: var(--lime); }
.identity-copy > p:not(.section-index) { max-width: 650px; margin: 26px 0 0; color: var(--muted); line-height: 2.05; }
.identity-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; }
.identity-facts span { padding-top: 13px; border-top: 1px solid var(--line); color: #d1d7cb; font-size: .74rem; line-height: 1.6; direction: ltr; text-align: left; }
.identity-facts small { display: block; margin-bottom: 7px; color: #717b6a; font: 500 .57rem var(--mono); letter-spacing: .08em; }
.text-link { display: inline-flex; gap: 10px; margin-top: 30px; color: var(--lime); direction: ltr; font: 500 .83rem var(--mono); }

/* Archive */
.page-hero { min-height: 590px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .65fr); gap: 90px; align-items: center; padding-block: clamp(80px, 10vw, 140px); }
.page-hero-copy { max-width: 720px; }
.breadcrumb { display: inline-flex; margin-bottom: 32px; color: var(--lime); font: 500 .67rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.page-hero h1, .error-page h1 { margin: 0; font-size: clamp(4.1rem, 8vw, 8rem); line-height: .88; letter-spacing: -.075em; }
.page-hero h1 span, .error-page h1 span { color: var(--lime); }
.page-hero-copy > p:last-child { max-width: 650px; margin: 30px 0 0; color: var(--muted); font-size: 1rem; line-height: 2; }
.archive-terminal { overflow: hidden; border: 1px solid var(--line); background: #050704; box-shadow: 18px 18px 0 #11180d; }
.archive-query { min-height: 270px; padding: 30px; color: #9ba494; font: 400 .78rem/2 var(--mono); }
.archive-query > span { color: var(--lime); }
.archive-query i { display: block; width: 9px; height: 16px; margin: 24px 0; background: var(--lime); animation: blink 1s steps(1) infinite; }
.archive-query strong { display: block; padding-top: 17px; border-top: 1px solid var(--line-soft); color: var(--lime); font-size: .68rem; font-weight: 500; }
.archive-shell { padding-bottom: clamp(90px, 12vw, 150px); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 22px; border-block: 1px solid var(--line-soft); }
.filter-bar a { display: inline-flex; gap: 10px; padding: 9px 13px; border: 1px solid transparent; color: #929b8b; font: 500 .67rem var(--mono); }
.filter-bar a b { color: #626c5c; font-weight: 500; }
.filter-bar a:hover, .filter-bar a.active { color: var(--ink); border-color: var(--lime); background: var(--lime); }
.filter-bar a.active b, .filter-bar a:hover b { color: #334008; }
.archive-heading { display: flex; justify-content: space-between; gap: 20px; padding: 50px 0 22px; color: var(--muted); font: 500 .67rem var(--mono); text-transform: uppercase; }
.archive-heading p { margin: 0; color: var(--paper); }
.archive-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.archive-card { overflow: hidden; border: 1px solid var(--line-soft); background: #0b0f09; transition: transform .25s ease, border-color .25s ease; }
.archive-card:hover { transform: translateY(-5px); border-color: rgba(183,245,29,.34); }
.archive-card > a { height: 100%; display: grid; grid-template-rows: auto 1fr; }
.archive-card .cover-wrap { aspect-ratio: 16 / 9; min-height: 0; }
.archive-card .note-copy { display: flex; flex-direction: column; }
.archive-card .note-copy h2 { margin: 20px 0 12px; font-size: clamp(1.5rem, 2.5vw, 2.15rem); line-height: 1.7; }
.archive-card .note-copy p { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.archive-card .read-link { margin-top: auto; padding-top: 25px; }
.pagination { min-height: 90px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; margin-top: 22px; border-top: 1px solid var(--line-soft); font: 500 .69rem var(--mono); }
.pagination strong { color: #707a69; font-weight: 400; }
.pagination a:last-child { text-align: right; }
.archive-empty { grid-column: 1 / -1; }

/* Article */
.preview-banner { margin-top: 22px; padding: 12px 16px; border: 1px solid var(--lime); color: var(--lime); background: rgba(183,245,29,.06); font: 500 .7rem var(--mono); }
.article-hero { min-height: 680px; display: grid; grid-template-columns: minmax(0, .82fr) minmax(410px, 1.18fr); gap: clamp(45px, 8vw, 100px); align-items: center; padding-block: clamp(70px, 9vw, 125px); }
.article-intro h1 { margin: 22px 0 20px; font-size: clamp(2.6rem, 5.3vw, 5.2rem); line-height: 1.5; }
.article-category { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--muted); font: 500 .64rem var(--mono); text-transform: uppercase; }
.article-category span { color: var(--lime); }
.article-category i { width: 24px; height: 1px; background: var(--line); }
.article-summary { margin: 0; color: #b2bbab; font-size: 1rem; line-height: 2.15; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 27px; }
.article-meta span { padding: 7px 10px; border: 1px solid var(--line-soft); color: #7d8777; font: 400 .61rem var(--mono); }
.article-cover { position: relative; min-width: 0; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line); background: #050704; box-shadow: 20px 20px 0 #10160d; }
.article-cover > img { width: 100%; height: 100%; object-fit: cover; }
.article-cover figcaption { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; gap: 18px; padding: 13px 16px; color: #8a9583; background: rgba(4,7,3,.9); font: 400 .58rem var(--mono); }
.article-cover figcaption span { color: var(--lime); }
.article-cover figcaption strong { max-width: 60%; overflow: hidden; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.article-layout {
  width: min(100% - 40px, 820px);
  padding-block: 54px 110px;
}
.article-body { min-width: 0; font-family: var(--fa); color: #dde2d8; }
.article-body > p, .article-body > ul, .article-body > ol {
  font-size: clamp(1.06rem, 1.3vw, 1.17rem);
  line-height: 2.08;
  unicode-bidi: plaintext;
}
.article-body > p {
  margin: 0 0 32px;
  text-align: justify;
  text-align-last: right;
  text-justify: inter-word;
}
.article-body h2 {
  margin: 76px 0 27px;
  color: var(--paper);
  font-size: clamp(1.75rem, 2.6vw, 2.5rem);
  line-height: 1.65;
  text-wrap: balance;
}
.article-body .dir-ltr { direction: ltr; text-align: left; font-family: var(--sans); }
.article-body a { color: var(--lime); text-decoration: underline; text-decoration-color: rgba(183,245,29,.35); text-underline-offset: 4px; }
.article-callout, .article-link-card, .article-code, .article-figure { margin: 42px 0; border: 1px solid var(--line); background: #090d07; }
.article-callout { position: relative; padding: 32px 32px 25px; border-left: 3px solid var(--lime); }
.callout-label { position: absolute; top: -11px; left: 19px; padding: 5px 8px; color: var(--ink); background: var(--lime); font: 600 .57rem var(--mono); }
.article-callout p { margin: 0; color: #cdd4c8; line-height: 2; }
.article-list { padding-right: 23px; }
.article-list.dir-ltr { padding-right: 0; padding-left: 23px; }
.article-list li { margin-bottom: 12px; padding-right: 7px; }
.article-link-card a { display: grid; gap: 7px; padding: 25px; text-decoration: none; }
.article-link-card span { color: var(--lime); font: 500 .58rem var(--mono); }
.article-link-card strong { color: var(--paper); font-size: 1.03rem; }
.article-link-card em { color: var(--muted); font-size: .86rem; font-style: normal; }
.article-code { overflow: hidden; direction: ltr; }
.code-top { height: 42px; display: flex; align-items: center; gap: 6px; padding: 0 14px; border-bottom: 1px solid var(--line-soft); }
.code-top span { width: 7px; height: 7px; border-radius: 50%; background: #384133; }
.code-top span:last-of-type { background: var(--lime); }
.code-top small { margin-left: auto; color: #66705f; font: .58rem var(--mono); }
.article-code figcaption { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: .78rem; }
.article-code pre { margin: 0; padding: 25px; overflow-x: auto; color: #bdff55; font: 400 .76rem/1.9 var(--mono); text-align: left; }
.article-figure { overflow: hidden; }
.article-figure img { width: 100%; height: auto; }
.article-figure figcaption { padding: 13px 17px; color: var(--muted); font-size: .78rem; line-height: 1.8; }
.article-empty { direction: ltr; text-align: left; }
.article-reaction {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
  margin-top: 46px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  color: #66705f;
  font: 500 .6rem/1 var(--mono);
  text-transform: uppercase;
}
.like-form { margin: 0; }
.like-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 42px;
  min-height: 30px;
  padding: 4px 9px;
  border: 1px solid rgba(240,241,232,.11);
  color: #7d8777;
  background: transparent;
  font: 500 .64rem/1 var(--mono);
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.like-button:hover, .like-button:focus-visible { color: var(--lime); border-color: rgba(183,245,29,.42); outline: none; }
.like-button.is-liked { color: var(--lime); border-color: rgba(183,245,29,.26); background: rgba(183,245,29,.045); }
.like-button[disabled] { cursor: wait; opacity: .55; }
.like-button.is-error { border-color: #d98b73; color: #d98b73; }
.like-icon { font-size: .9rem; transform: translateY(-1px); }
.comment-jump { padding: 8px 0; transition: color .18s ease; }
.comment-jump:hover { color: var(--paper); }
.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; }
.article-end { padding-block: 30px 90px; border-top: 1px solid var(--line-soft); }
.end-mark { display: flex; align-items: center; justify-content: center; gap: 13px; color: #65705f; font: 500 .6rem var(--mono); letter-spacing: .1em; }
.end-mark img { width: 31px; height: 31px; border-radius: 50%; }
.article-neighbors { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 45px; }
.article-neighbors > a { display: grid; min-height: 145px; align-content: center; gap: 13px; padding: 24px; border: 1px solid var(--line-soft); background: #090d07; }
.article-neighbors > a:hover { border-color: rgba(183,245,29,.35); }
.article-neighbors small { color: var(--lime); font: 500 .57rem var(--mono); }
.article-neighbors span { color: var(--paper); font-size: 1.1rem; line-height: 1.8; }
.article-neighbors .next { text-align: right; }
.related { padding-top: 20px; }
.compact-head { margin-bottom: 32px; }
.compact-head h2 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.related-card { display: grid; align-content: center; min-height: 210px; gap: 14px; padding: 28px; border: 1px solid var(--line-soft); background: #090d07; }
.related-card:hover { border-color: rgba(183,245,29,.35); }
.related-card > span, .related-card small { color: var(--lime); font: 500 .58rem var(--mono); }
.related-card h3 { margin: 0; font-size: 1.28rem; line-height: 1.8; }
.related-card small { color: #778170; }

.comments-section { width: min(100% - 40px, 920px); padding: 12px 0 clamp(90px, 11vw, 140px); scroll-margin-top: 105px; }
.comments-header { display: grid; grid-template-columns: 1fr minmax(260px, .65fr); gap: 45px; align-items: end; padding-bottom: 28px; border-bottom: 1px solid var(--line-soft); }
.comments-header .section-index { margin-top: 0; }
.comments-header h2 { margin: 0; font-size: clamp(2.35rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -.055em; }
.comments-header h2 sup { color: var(--lime); font: 500 .65rem/1 var(--mono); letter-spacing: 0; vertical-align: top; }
.comments-header > p { margin: 0; color: #7e8878; font-size: .84rem; line-height: 1.8; }
.comment-list { margin-bottom: 55px; }
.comment { display: grid; grid-template-columns: minmax(120px, .3fr) 1fr; gap: 35px; padding: 28px 0; border-bottom: 1px solid var(--line-soft); }
.comment header { display: grid; align-content: start; gap: 6px; }
.comment header strong { color: var(--paper); font-size: .84rem; font-weight: 650; overflow-wrap: anywhere; }
.comment header time { color: #626b5c; font: 400 .56rem/1.5 var(--mono); text-transform: uppercase; }
.comment > div { color: #b9c1b3; font-size: .94rem; line-height: 1.95; white-space: normal; overflow-wrap: anywhere; }
.comments-empty { margin: 0 0 55px; padding: 24px 0; border-bottom: 1px solid var(--line-soft); color: #717b6b; font: 400 .68rem/1.8 var(--mono); }
.comment-composer { display: grid; grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr); gap: clamp(36px, 7vw, 80px); padding: clamp(30px, 5vw, 52px); border: 1px solid var(--line-soft); background: #090d07; }
.comment-composer-copy > span { color: var(--lime); font: 500 .59rem/1 var(--mono); letter-spacing: .1em; }
.comment-composer-copy h3 { margin: 16px 0 14px; font-size: clamp(1.7rem, 3vw, 2.55rem); line-height: 1.05; letter-spacing: -.04em; }
.comment-composer-copy p { margin: 0; color: #7f8979; font-size: .81rem; line-height: 1.85; }
.comment-form { min-width: 0; }
.comment-fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.comment-form label { display: grid; gap: 7px; margin-bottom: 13px; color: #8f9989; font: 500 .58rem/1.2 var(--mono); text-transform: uppercase; }
.comment-form label span { display: flex; justify-content: space-between; gap: 10px; }
.comment-form label em { color: #596252; font-style: normal; font-weight: 400; }
.comment-form input, .comment-form textarea { width: 100%; border: 1px solid rgba(240,241,232,.12); border-radius: 0; color: var(--paper); background: #060905; font: 400 .86rem/1.7 var(--sans); outline: none; transition: border-color .18s ease, background .18s ease; }
.comment-form input { height: 46px; padding: 0 13px; }
.comment-form textarea { min-height: 145px; resize: vertical; padding: 12px 13px; }
.comment-form input:focus, .comment-form textarea:focus { border-color: rgba(183,245,29,.55); background: #080c06; }
.comment-form label small { color: #d98b73; font: 400 .63rem/1.55 var(--sans); text-transform: none; }
.comment-submit { width: 100%; min-height: 47px; display: flex; align-items: center; justify-content: space-between; margin-top: 7px; padding: 0 15px; border: 1px solid rgba(183,245,29,.38); color: var(--lime); background: rgba(183,245,29,.045); font: 600 .61rem/1 var(--mono); letter-spacing: .06em; cursor: pointer; transition: color .18s ease, background .18s ease; }
.comment-submit:hover, .comment-submit:focus-visible { color: var(--ink); background: var(--lime); outline: none; }
.comment-notice { margin: 0 0 16px; padding: 11px 13px; font: 500 .65rem/1.7 var(--mono); }
.comment-notice.success { border: 1px solid rgba(183,245,29,.3); color: var(--lime); background: rgba(183,245,29,.045); }
.comment-notice.error { border: 1px solid rgba(217,139,115,.35); color: #e6a48f; background: rgba(217,139,115,.05); }
.comment-notice ul { margin: 0; padding-left: 18px; }
.spam-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.empty-state { padding: 45px; border: 1px solid var(--line-soft); background: #090d07; }
.empty-icon { color: var(--lime); font: 500 .7rem var(--mono); }
.empty-state h2, .empty-state h3 { margin: 14px 0 8px; }
.empty-state p { margin: 0 0 22px; color: var(--muted); }
.error-page { min-height: calc(100svh - 82px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-block: 100px; }
.error-page > p:not(.section-index) { max-width: 620px; margin: 35px 0; color: var(--muted); font-size: 1rem; }

.footer { border-top: 1px solid var(--line-soft); background: #050704; }
.footer-inner { min-height: 150px; display: grid; grid-template-columns: 1fr auto 44px; gap: 30px; align-items: center; }
.footer p { margin: 0; color: #747e6e; font-size: .76rem; text-align: center; }
.footer-brand .brand-mark { width: 39px; height: 39px; }
.back-top { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); color: var(--lime); font-family: var(--mono); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes scan { 0%,100% { transform: translateY(-230px); opacity: 0; } 20%,80% { opacity: .8; } 50% { transform: translateY(240px); } }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 1040px) {
  .hero { grid-template-columns: 1fr .82fr; }
  .hero h1 { font-size: clamp(4rem, 9.5vw, 6.8rem); }
  .hero-visual { min-height: 580px; }
  .note-featured a { grid-template-columns: 1.1fr .9fr; }
  .identity-card { grid-template-columns: .85fr 1.15fr; }
  .identity-facts { grid-template-columns: 1fr; }
  .page-hero { grid-template-columns: 1fr .7fr; gap: 50px; }
  .article-hero { grid-template-columns: 1fr; }
  .article-cover { max-width: 820px; }
}

@media (max-width: 780px) {
  :root { --shell: min(100% - 30px, 1240px); }
  .site-header { backdrop-filter: none; }
  .nav { min-height: 72px; }
  .brand-type small { display: none; }
  .menu-toggle { display: block; position: fixed; z-index: 3; top: 14px; right: 15px; }
  .nav-links { position: fixed; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 12px; background: #070a06; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .25s; }
  .nav-links a { font-size: 1.4rem; }
  .nav-links .nav-cta { margin: 12px 0 0; }
  .menu-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .menu-open .menu-toggle span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-open .menu-toggle span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 68px; }
  .hero-copy { max-width: none; }
  .hero h1 { font-size: clamp(4.1rem, 18vw, 7.5rem); }
  .hero-visual { min-height: 520px; margin-top: -20px; }
  .hero-visual > img { max-height: 560px; }
  .hero-proof { gap: 18px; }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .notes-grid { grid-template-columns: 1fr; }
  .note-featured { grid-column: auto; }
  .note-featured a { grid-template-columns: 1fr; }
  .note-featured .cover-wrap { min-height: 270px; }
  .note-featured .note-copy { padding: 28px; }
  .lab-item { grid-template-columns: 40px 1fr 50px; gap: 14px; padding-block: 26px; }
  .lab-item .meter { grid-column: 2 / -1; grid-row: 2; }
  .identity-card { grid-template-columns: 1fr; }
  .terminal { order: 2; box-shadow: 12px 12px 0 #11180d; }
  .footer-inner { grid-template-columns: 1fr 42px; padding-block: 30px; }
  .footer p { grid-column: 1 / -1; grid-row: 2; text-align: left; }
  .topic-dashboard { grid-template-columns: 1fr; }
  .topic-summary { min-height: 260px; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .topic-row { grid-template-columns: 34px 1fr 70px; }
  .topic-row .meter { grid-column: 2 / -1; grid-row: 2; }
  .page-hero { min-height: auto; grid-template-columns: 1fr; gap: 40px; }
  .archive-terminal { max-width: 560px; }
  .archive-grid { grid-template-columns: 1fr; }
  .article-body > p { text-align: start; text-align-last: auto; }
  .article-hero { min-height: auto; }
  .article-neighbors, .related-grid { grid-template-columns: 1fr; }
  .article-neighbors .next { text-align: left; }
  .comments-header { grid-template-columns: 1fr; gap: 17px; }
  .comment-composer { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .brand-mark { width: 41px; height: 41px; }
  .brand-type strong { font-size: .82rem; }
  .hero h1 { font-size: clamp(3.5rem, 19vw, 5rem); }
  .hero-lead { font-size: .92rem; }
  .hero-proof { display: grid; grid-template-columns: repeat(3, 1fr); }
  .hero-visual { min-height: 430px; }
  .label-top, .coord-a { display: none; }
  .section { padding-block: 82px; }
  .section-head h2, .identity-copy h2 { font-size: clamp(2.5rem, 13vw, 4rem); }
  .cover-wrap, .note-featured .cover-wrap { min-height: 220px; }
  .note-copy, .note-featured .note-copy { padding: 22px; }
  .note-meta { align-items: flex-start; flex-direction: column; }
  .lab-item { grid-template-columns: 32px 1fr 45px; }
  .lab-item p { font-size: .78rem; }
  .terminal-body { min-height: 330px; padding: 21px; font-size: .68rem; }
  .page-hero h1, .error-page h1 { font-size: clamp(3.5rem, 17vw, 5rem); }
  .archive-terminal { box-shadow: 10px 10px 0 #11180d; }
  .filter-bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .filter-bar a { flex: 0 0 auto; }
  .article-hero { padding-top: 55px; }
  .article-intro h1 { font-size: clamp(2.2rem, 11vw, 3.3rem); }
  .article-cover { box-shadow: 10px 10px 0 #10160d; }
  .article-layout { width: min(100% - 40px, 1240px); padding-top: 18px; }
  .article-body > p, .article-body > ul, .article-body > ol { font-size: 1.04rem; line-height: 2.12; }
  .article-body > p { margin-bottom: 29px; }
  .article-body h2 { margin-top: 62px; line-height: 1.7; }
  .article-callout { padding: 30px 20px 22px; }
  .article-code pre { padding: 19px; font-size: .68rem; }
  .article-reaction { margin-top: 36px; }
  .comments-section { width: min(100% - 30px, 920px); }
  .comment { grid-template-columns: 1fr; gap: 13px; }
  .comment header { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
  .comment-fields-row { grid-template-columns: 1fr; gap: 0; }
  .comment-composer { padding: 26px 20px; }
  .topic-row { padding-inline: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}
