:root {
  --black-950: #050708;
  --gray-950: #080b0d;
  --gray-900: #0b0f12;
  --gray-850: #10161a;
  --gray-800: #151c21;
  --gray-750: #1b242a;
  --gray-700: #263238;
  --gray-600: #34444c;
  --gray-500: #5f6c72;
  --gray-400: #8d9ca3;
  --gray-300: #c1ccd1;
  --gray-100: #f2f5f6;
  --brand: #aab3b8;
  --brand-bright: #d9dee1;
  --brand-secondary: #b8d66d;
  --warning: #f2c94c;
  --bg-page: var(--gray-900);
  --bg-card: var(--gray-800);
  --border-subtle: var(--gray-700);
  --border-default: var(--gray-600);
  --text-heading: var(--gray-100);
  --text-body: var(--gray-300);
  --text-muted: var(--gray-400);
  --font-sans: "Inter Variable", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  --container: min(1120px, calc(100vw - 48px));
  --radius-md: 8px;
  --ease: cubic-bezier(.2,0,0,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text-body);
  background:
    radial-gradient(circle at 80% 0%, rgba(193,204,209,.09), transparent 29rem),
    linear-gradient(180deg, #080b0d, #0b0f12 42%, #10161a);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .18;
  background-image:
    linear-gradient(rgba(193,204,209,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(193,204,209,.028) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img, svg, iframe { display: block; max-width: 100%; }
p, h1, h2, h3, ol, ul { margin: 0; }
h1, h2, h3 { color: var(--text-heading); line-height: 1.05; }
p + p { margin-top: 18px; }

.container { width: var(--container); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(52,68,76,.62);
  background: rgba(11,15,18,.88);
  backdrop-filter: blur(18px) saturate(125%);
}
.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex: 0 0 auto;
}
.brand-mark {
  width: 42px;
  height: 36px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 0 12px rgba(193,204,209,.18));
}
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong {
  color: var(--text-heading);
  font-size: 15px;
  letter-spacing: .18em;
  font-weight: 790;
}
.brand-copy span {
  margin-top: 5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
  color: var(--text-body);
  font-size: 14px;
  font-weight: 650;
}
.nav-links a:hover { color: var(--text-heading); }
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: #061014;
  background: var(--brand);
  font-weight: 780;
}
.button:hover { background: var(--brand-bright); }

.page-hero {
  padding: clamp(82px, 9vw, 132px) 0 48px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-bright);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .115em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--brand);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(320px, .62fr);
  gap: clamp(36px, 6vw, 86px);
  align-items: end;
}
.page-hero h1 {
  max-width: 13ch;
  margin-top: 18px;
  font-size: clamp(3rem, 7vw, 6.6rem);
  letter-spacing: -.045em;
}
.lead {
  max-width: 620px;
  color: var(--text-muted);
  font-size: clamp(1.08rem, 1.7vw, 1.38rem);
  line-height: 1.65;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.meta-row span::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--brand-secondary);
  vertical-align: 1px;
}

.visual-panel {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  border: 1px solid rgba(193,204,209,.28);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(21,28,33,.92), rgba(5,7,8,.96));
}
.visual-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(242,245,246,.035) 50%, transparent 62%);
  transform: translateX(-72%);
  animation: scan 7s linear infinite;
}
@keyframes scan { to { transform: translateX(72%); } }
.visual-panel svg { width: 100%; height: 100%; min-height: 330px; }
.visual-label {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(193,204,209,.28);
  border-radius: var(--radius-md);
  background: #000;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.content-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(34px, 6vw, 72px);
  align-items: start;
  padding: 26px 0 112px;
}
.article-body {
  max-width: 760px;
  color: var(--text-body);
}
.article-body h2 {
  margin-top: 54px;
  font-size: clamp(1.9rem, 3vw, 3rem);
  letter-spacing: -.03em;
}
.article-body h3 {
  margin-top: 28px;
  font-size: 1.1rem;
}
.article-body p, .article-body li {
  color: var(--text-body);
  font-size: 18px;
  line-height: 1.75;
}
.article-body ul, .article-body ol {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-left: 1.3rem;
}
.article-body li::marker { color: var(--brand-secondary); }
.article-intro {
  color: var(--text-heading);
  font-size: clamp(1.25rem, 2.1vw, 1.65rem);
  line-height: 1.55;
}
.callout {
  margin-top: 38px;
  padding: 24px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(16,22,26,.72);
}
.callout strong {
  display: block;
  color: var(--text-heading);
  font-size: 18px;
}
.callout p { margin-top: 8px; font-size: 16px; }
.sidebar {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 14px;
}
.side-panel, .post-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(16,22,26,.62);
}
.side-panel { padding: 18px; }
.side-panel span, .post-card span {
  color: var(--brand-secondary);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.side-panel strong {
  display: block;
  margin-top: 8px;
  color: var(--text-heading);
}
.side-panel p {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}
.link-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-bright);
  font-weight: 720;
}
.text-link:hover { color: var(--text-heading); }

.posts-section {
  padding: 28px 0 112px;
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}
.post-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  transition: border-color 180ms var(--ease), background 180ms var(--ease), transform 180ms var(--ease);
}
.post-card:hover {
  border-color: var(--border-default);
  background: rgba(21,28,33,.78);
  transform: translateY(-3px);
}
.post-card h2 {
  max-width: 13ch;
  margin-top: 42px;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  letter-spacing: -.035em;
}
.post-card p {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.65;
}
.post-card .text-link { margin-top: auto; padding-top: 28px; }

.footer {
  border-top: 1px solid rgba(52,68,76,.62);
  padding: 34px 0 42px;
}
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--text-muted);
  font-size: 13px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer a:hover { color: var(--text-heading); }

@media (max-width: 900px) {
  :root { --container: min(100% - 36px, 760px); }
  .hero-grid, .content-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .posts-grid { grid-template-columns: 1fr; }
  .nav { align-items: flex-start; flex-direction: column; padding: 18px 0; }
  .nav-links { justify-content: flex-start; }
}

@media (max-width: 620px) {
  :root { --container: calc(100% - 28px); }
  .brand-copy span { display: none; }
  .nav-links { gap: 14px; }
  .button { width: 100%; }
  .page-hero { padding-top: 64px; }
  .page-hero h1 { font-size: clamp(2.8rem, 14vw, 4.5rem); }
  .article-body p, .article-body li { font-size: 16px; }
  .sidebar { grid-template-columns: 1fr; }
  .footer-grid { align-items: flex-start; flex-direction: column; }
}
