:root {
  color-scheme: dark;
  --bg: #000;
  --fg: #f5f5f0;
  --muted: #8c8c88;
  --muted-2: #b9b9b2;
  --line: rgba(255, 255, 255, 0.18);
  --line-strong: rgba(255, 255, 255, 0.42);
  --panel: #070707;
  --panel-2: #101010;
  --panel-soft: rgba(255, 255, 255, 0.035);
  --accent: #ffffff;
  --accent-red: #ff7676;
  --landing-fill: #ef7676;
  --landing-text: #000000;
  --max: 1440px;
  --pad: clamp(22px, 4vw, 68px);
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f1e8;
  --fg: #080808;
  --muted: #5d5d58;
  --muted-2: #2f2f2c;
  --line: rgba(0, 0, 0, 0.17);
  --line-strong: rgba(0, 0, 0, 0.42);
  --panel: #ebe7dc;
  --panel-2: #ded8ca;
  --panel-soft: rgba(0, 0, 0, 0.045);
  --accent: #000000;
  --accent-red: #d32f2f;
  --landing-fill: #dc5f5f;
  --landing-text: #f4f1e8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--fg);
  background:
    radial-gradient(circle at 72% 10%, var(--panel-soft), transparent 25vw),
    radial-gradient(circle at 20% 92%, var(--panel-soft), transparent 30vw),
    var(--bg);
  font-family: var(--sans);
  text-rendering: geometricPrecision;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.1;
  background-image:
    linear-gradient(currentColor 1px, transparent 1px),
    linear-gradient(90deg, currentColor 1px, transparent 1px);
  background-size: 64px 64px;
  color: var(--fg);
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 82%, transparent);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 11;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: difference;
}

html[data-theme="light"] body::after {
  opacity: 0.025;
  mix-blend-mode: multiply;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-color: var(--accent-red);
}

code {
  padding: 0.15em 0.4em;
  color: var(--fg);
  border: 1px solid var(--line);
  background: var(--panel-soft);
  font-family: var(--mono);
  font-size: 0.9em;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 100;
  transform: translateY(-150%);
  padding: 10px 12px;
  background: var(--fg);
  color: var(--bg);
  font: 800 13px/1 var(--mono);
  text-transform: uppercase;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
}

.brand,
.nav,
.theme-toggle,
.lang-toggle,
.notification-toggle,
.notification-panel-head,
.notification-meta,
.hero-kicker,
.hero-footer,
.section-label,
.button,
.filter-button,
.card-meta,
.card-links,
.site-footer,
.card-status,
.card-proof,
.card-stack,
.panel-line span,
.cap-tag {
  font-family: var(--mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--fg);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--fg);
  font-weight: 950;
  font-size: 13px;
  transition: background 240ms ease, color 240ms ease, transform 240ms ease;
}

.brand:hover .brand-mark {
  background: var(--fg);
  color: var(--bg);
  transform: rotate(-6deg);
}

.brand-text {
  color: var(--muted-2);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 34px);
  color: var(--muted-2);
  font-size: 12px;
}

.nav a {
  position: relative;
  padding: 10px 0;
  text-decoration: none;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.theme-toggle,
.lang-toggle,
.notification-toggle {
  min-height: 38px;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  color: var(--fg);
  background: transparent;
  font-size: 11px;
  cursor: pointer;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

.theme-toggle:hover,
.lang-toggle:hover,
.notification-toggle:hover,
.notification-toggle[aria-expanded="true"] {
  background: var(--fg);
  color: var(--bg);
  transform: translateY(-1px);
}

.notification-center {
  position: relative;
}

.notification-toggle {
  display: inline-grid;
  place-items: center;
  position: relative;
  width: 40px;
  padding: 0;
  line-height: 1;
}

.notification-toggle svg {
  display: block;
}

.notification-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border: 1px solid var(--bg);
  border-radius: 999px;
  background: var(--accent-red);
  color: #000;
  font: 900 10px/1 var(--mono);
  letter-spacing: 0;
}

.notification-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 70;
  width: min(360px, calc(100vw - 32px));
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--panel) 94%, var(--bg));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.notification-panel[hidden] {
  display: none;
}

.notification-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.notification-list {
  display: grid;
  max-height: min(440px, calc(100vh - 150px));
  overflow: auto;
}

.notification-item {
  display: grid;
  gap: 8px;
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
  transition: background 220ms ease;
}

.notification-item:last-child {
  border-bottom: 0;
}

.notification-item:hover,
.notification-item:focus-visible {
  background: var(--panel-2);
}

.notification-meta {
  color: var(--muted);
  font-size: 10px;
}

.notification-item strong {
  color: var(--fg);
  font-size: 16px;
  line-height: 1.18;
}

.notification-item span:last-child,
.notification-empty {
  margin: 0;
  color: var(--muted-2);
  font-size: 14px;
  line-height: 1.5;
}

.notification-empty {
  padding: 18px;
}

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-2);
  transition: color 220ms ease;
  text-decoration: none;
}

.github-link:hover {
  color: var(--fg);
}

.github-link svg {
  display: block;
  transition: transform 220ms ease;
}

.github-link:hover svg {
  transform: scale(1.1);
}

.hero {
  width: min(100%, var(--max));
  min-height: calc(100vh - 78px);
  margin: 0 auto;
  padding: clamp(74px, 9vw, 136px) var(--pad) 38px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: clamp(34px, 5vw, 76px);
}

.hero-kicker,
.hero-footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.hero-title {
  align-self: center;
  margin: 0;
  max-width: 1280px;
}

.hero-line {
  display: block;
  font-size: clamp(60px, 11.2vw, 166px);
  line-height: 0.86;
  letter-spacing: -0.025em;
  font-weight: 950;
  text-transform: uppercase;
  transition: color 360ms ease, -webkit-text-stroke-color 360ms ease, transform 360ms ease, letter-spacing 360ms ease;
}

.hero-line.fill {
  color: var(--fg);
  -webkit-text-stroke: 1.5px var(--fg);
}

.hero-line.outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--fg);
}

.hero:hover .hero-line.fill {
  color: transparent;
  transform: translateX(-0.02em);
}

.hero:hover .hero-line.outline {
  color: var(--fg);
  transform: translateX(0.03em);
}

.hero-meta {
  display: grid;
  grid-template-columns: minmax(280px, 760px) auto;
  align-items: end;
  gap: clamp(28px, 6vw, 90px);
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.hero-meta p,
.lead {
  margin: 0;
  color: var(--muted-2);
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.6;
}

.hero-meta strong {
  color: var(--fg);
}

.hero-actions,
.card-links,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.card-links a,
.contact-links a,
.filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  padding: 13px 17px;
  color: var(--fg);
  background: transparent;
  font-size: 12px;
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease, transform 220ms ease;
  cursor: pointer;
  text-decoration: none;
}

.button:hover,
.card-links a:hover,
.contact-links a:hover,
.filter-button:hover,
.filter-button.is-active {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
  transform: translateY(-1px);
}

.button.primary {
  background: var(--fg);
  color: var(--bg);
}

.button.primary:hover {
  background: transparent;
  color: var(--fg);
}

.section {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 142px) var(--pad);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: clamp(30px, 5vw, 82px);
}

.section-label {
  color: var(--muted);
  font-size: 12px;
  padding-top: 0.65em;
}

.section h2 {
  margin: 0 0 28px;
  max-width: 1040px;
  font-size: clamp(38px, 5.8vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.lead.compact {
  max-width: 820px;
  font-size: clamp(17px, 1.6vw, 20px);
}




.capabilities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 52px;
  background: var(--line);
  border: 1px solid var(--line);
}

.cap-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0;
  min-height: 200px;
  background: var(--panel);
  transition: background 220ms ease;
}

.cap-card:hover {
  background: var(--panel-2);
}

.cap-index {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 0;
  border-right: 1px solid var(--line);
}

.cap-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.cap-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-lr;
  text-orientation: mixed;
}

.cap-content {
  padding: clamp(24px, 2.5vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cap-content h3 {
  margin: 0 0 16px;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.012em;
  text-transform: uppercase;
}

.cap-content p {
  margin: 0;
  color: var(--muted-2);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.62;
}

.section-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 30px;
  margin-bottom: 42px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
  max-width: 620px;
}

.filter-button {
  min-height: 40px;
  padding: 10px 14px;
  font-size: 11px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  background: transparent;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.project-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transition: background 220ms ease;
}

.project-card:hover {
  background: var(--panel-2);
}

.project-card.no-visual {
  min-height: auto;
}

.project-visual {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 200px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, var(--panel-soft), transparent 30%),
    repeating-linear-gradient(90deg, var(--panel-soft) 0 1px, transparent 1px 18px),
    radial-gradient(circle at 70% 18%, color-mix(in srgb, var(--fg) 10%, transparent), transparent 36%),
    var(--panel);
  flex-shrink: 0;
}

.project-visual::before {
  content: attr(data-placeholder);
  position: absolute;
  inset: 22px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  font: 800 12px/1.25 var(--mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
}

.project-visual.has-image {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top center;
  filter: grayscale(1) contrast(1.15);
  transition: filter 400ms ease, transform 400ms ease;
}

.project-visual.has-image::before {
  display: none;
}

.project-card:hover .project-visual.has-image {
  filter: grayscale(0) contrast(1);
  transform: scale(1.02);
}

.project-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, color-mix(in srgb, var(--bg) 78%, transparent), transparent 58%);
  opacity: 0;
  transition: opacity 260ms ease;
}

.project-card:hover .project-visual::after {
  opacity: 1;
}

html[data-theme="light"] .project-visual::after {
  background: linear-gradient(to top, rgba(8, 8, 8, 0.2), transparent 56%);
}

html[data-theme="light"] .project-card:hover .project-visual::after {
  opacity: 0.55;
}

.card-body {
  padding: clamp(22px, 2.2vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  gap: 22px;
  min-width: 0;
}

.card-top {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 11px;
}

.project-card h3 {
  margin: 0;
  font-size: clamp(22px, 2.1vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

.project-card.long-title h3 {
  font-size: clamp(20px, 1.85vw, 28px);
}

.project-card p {
  margin: 0;
  color: var(--muted-2);
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.55;
  max-width: 680px;
}

.card-proof,
.card-stack,
.card-status {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  overflow-wrap: break-word;
  word-break: break-word;
}

.card-status {
  color: var(--fg);
}

.card-links {
  margin-top: 6px;
}

.card-links a {
  min-height: 38px;
  padding: 10px 14px;
  font-size: 11px;
  text-decoration: none;
}

.card-links a.btn-landing {
  background: var(--landing-fill);
  color: var(--landing-text);
  border-color: var(--landing-fill);
}

.card-links a.btn-landing:hover {
  background: var(--landing-text);
  color: var(--landing-fill);
  border-color: var(--landing-fill);
}

.evidence-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.72fr);
  gap: clamp(32px, 6vw, 86px);
}

.evidence-panel {
  border: 1px solid var(--line);
  background: var(--panel);
}

.panel-line {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  padding: 26px;
  border-bottom: 1px solid var(--line);
}

.panel-line:last-child {
  border-bottom: 0;
}

.panel-line span {
  color: var(--muted);
  font-size: 12px;
}

.panel-line p {
  margin: 0;
  color: var(--muted-2);
  font-size: 17px;
  line-height: 1.55;
}

.contact-body {
  min-height: 380px;
  display: grid;
  align-content: center;
}

.contact-links {
  margin-top: 36px;
}

.site-footer {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 34px var(--pad) 52px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.blog-shell,
.post-shell {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.blog-hero {
  min-height: min(720px, calc(100vh - 78px));
  padding: clamp(74px, 9vw, 136px) var(--pad) 42px;
  display: grid;
  align-content: center;
  gap: clamp(28px, 5vw, 56px);
}

.blog-title {
  margin: 0;
  max-width: 1100px;
  color: var(--fg);
  font-size: clamp(66px, 12vw, 176px);
  line-height: 0.86;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.blog-intro {
  margin: 0;
  max-width: 820px;
  color: var(--muted-2);
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.55;
}

.blog-section {
  padding-top: clamp(58px, 8vw, 104px);
}

.post-list {
  display: grid;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.post-card {
  min-height: 300px;
  padding: clamp(28px, 3.2vw, 44px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  display: grid;
  align-content: space-between;
  gap: 28px;
}

.post-meta,
.post-back,
.post-link,
.post-page-link {
  font-family: var(--mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.post-toolbar {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 18px 28px;
  margin-bottom: clamp(28px, 4vw, 48px);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  color: var(--muted);
  font-size: 11px;
}

.post-card h3 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.post-card p {
  margin: 0;
  max-width: 760px;
  color: var(--muted-2);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
}

.post-link,
.post-back {
  color: var(--fg);
  font-size: 12px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.post-back {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.post-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(48px, 7vw, 88px);
  border: 1px solid var(--line);
  background: var(--line);
}

.post-page-link {
  min-height: 132px;
  padding: clamp(22px, 3vw, 34px);
  background: var(--panel);
  display: grid;
  align-content: space-between;
  gap: 18px;
  color: var(--fg);
  font-size: 12px;
  transition: background 220ms ease, color 220ms ease;
  text-decoration: none;
}

a.post-page-link:hover,
a.post-page-link:focus-visible {
  background: var(--fg);
  color: var(--bg);
}

.post-page-link > span {
  color: var(--muted);
  font-size: 11px;
}

.post-page-link strong {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.1;
  letter-spacing: 0;
}

.post-page-link.is-disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.55;
}

.post-article {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 132px) var(--pad);
}

.post-article h1 {
  margin: 22px 0 28px;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.post-article h2 {
  margin: clamp(42px, 6vw, 72px) 0 18px;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.post-lead,
.post-article p {
  color: var(--muted-2);
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.7;
}

.post-lead {
  color: var(--fg);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(32px, 5vw, 56px) 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.metric-strip div {
  min-height: 132px;
  padding: 22px;
  background: var(--panel);
  display: grid;
  align-content: space-between;
  gap: 24px;
}

.metric-strip span {
  color: var(--fg);
  font-size: clamp(30px, 4vw, 54px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.metric-strip strong {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.post-table-wrap {
  margin: clamp(28px, 4vw, 44px) 0;
  overflow-x: auto;
  border: 1px solid var(--line);
}

.post-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: var(--panel);
}

.post-table th,
.post-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 15px;
  line-height: 1.45;
  text-align: left;
}

.post-table th {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.post-table tr:last-child td {
  border-bottom: 0;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: clamp(28px, 4vw, 44px) 0;
}

.chart-card {
  margin: clamp(28px, 4vw, 44px) 0;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.chart-grid .chart-card {
  margin: 0;
}

.chart-card figcaption {
  margin-bottom: 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.line-chart {
  display: block;
  width: 100%;
  height: auto;
  color: var(--fg);
}

.line-chart line {
  stroke: var(--line-strong);
  stroke-width: 1;
}

.line-chart polyline {
  fill: none;
  stroke: var(--accent-red);
  stroke-width: 3;
}

.line-chart circle {
  fill: var(--fg);
  stroke: var(--bg);
  stroke-width: 2;
}

.line-chart text {
  fill: var(--muted);
  font: 11px var(--mono);
}

.bar-chart {
  display: grid;
  gap: 18px;
}

.bar-row {
  display: grid;
  grid-template-columns: 70px 1fr 56px;
  align-items: center;
  gap: 12px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 12px;
}

.bar-row div {
  height: 14px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.bar-row i {
  display: block;
  min-width: 2px;
  height: 100%;
  background: var(--accent-red);
}

.bar-row strong {
  color: var(--fg);
  font-weight: 800;
}

.error-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.error-pills span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  color: var(--muted-2);
  background: var(--panel-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-figure {
  margin: clamp(34px, 5vw, 58px) 0;
  border: 1px solid var(--line);
  background: var(--panel);
}

.post-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--line);
}

.post-figure figcaption {
  padding: 16px 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.post-code,
.post-diagram,
.post-formula {
  margin: clamp(28px, 4vw, 44px) 0;
  border: 1px solid var(--line);
  background: var(--panel);
}

.post-code {
  overflow-x: auto;
  padding: 22px;
}

.post-code code {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted-2);
  font-size: 14px;
  line-height: 1.65;
}

.post-diagram {
  padding: 24px;
  overflow-x: auto;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
  white-space: pre;
}

.post-diagram svg {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.mermaid-fallback {
  border-style: dashed;
}

.flow-diagram {
  margin: clamp(28px, 4vw, 44px) 0;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  align-items: stretch;
  gap: 12px;
  overflow-x: auto;
}

.flow-diagram.vertical {
  flex-direction: column;
}

.flow-node {
  min-width: 150px;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  color: var(--fg);
  background: var(--panel-2);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
  display: grid;
  place-items: center;
}

.flow-arrow {
  display: grid;
  place-items: center;
  color: var(--accent-red);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 900;
}

.flow-diagram.vertical .flow-arrow {
  transform: rotate(90deg);
}

.post-formula {
  overflow-x: auto;
  padding: 24px;
  color: var(--fg);
  text-align: center;
}

.math-formula {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45em;
  color: var(--fg);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.35;
}

.math-formula i {
  font-style: italic;
}

.math-formula sub,
.math-formula sup {
  font-size: 0.58em;
  line-height: 0;
}

.math-arrow {
  padding: 0 0.25em;
  color: var(--accent-red);
  font-family: var(--mono);
  font-size: 0.72em;
}



@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .hero-meta,
  .section,
  .section-heading-row,
  .evidence-grid {
    grid-template-columns: 1fr;
  }

  .section-label {
    padding-top: 0;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-visual {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .filter-bar {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 66px;
  }

  .brand-text {
    display: none;
  }

  .theme-toggle,
  .lang-toggle,
  .notification-toggle {
    min-height: 34px;
    padding: 8px 10px;
    font-size: 10px;
  }

  .notification-toggle {
    width: 36px;
    padding: 0;
  }

  .github-link span {
    display: none;
  }

  .hero {
    min-height: calc(100vh - 66px);
    padding-top: 56px;
  }

  .hero-line {
    font-size: clamp(48px, 16.5vw, 78px);
    letter-spacing: -0.02em;
  }

  .hero-kicker,
  .hero-footer,
  .site-footer {
    flex-direction: column;
  }

  .hero-meta {
    align-items: start;
  }

  .capabilities {
    grid-template-columns: 1fr;
  }

  .cap-card {
    grid-template-columns: 60px 1fr;
    min-height: auto;
  }

  .project-card {
    min-height: auto;
  }

  .panel-line {
    grid-template-columns: 1fr;
  }

  .blog-title {
    font-size: clamp(52px, 18vw, 88px);
    letter-spacing: -0.025em;
  }

  .post-card h3,
  .post-article h1 {
    letter-spacing: -0.02em;
  }

  .post-toolbar,
  .post-pagination,
  .metric-strip,
  .chart-grid {
    grid-template-columns: 1fr;
  }

  .post-page-link {
    min-height: 112px;
  }

  .flow-diagram {
    flex-direction: column;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }
}

html[lang="ru"] .hero-line {
  font-size: clamp(58px, 10.8vw, 160px);
  line-height: 0.88;
  letter-spacing: 0;
}

@media (max-width: 760px) {
  html[lang="ru"] .hero-line {
    font-size: clamp(42px, 14vw, 70px);
    line-height: 0.92;
    letter-spacing: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
