
:root {
  --ink: #f4f7fb;
  --muted: #8d9aab;
  --subtle: #596679;
  --background: #070b12;
  --surface: #0b111c;
  --surface-2: #101826;
  --border: #1a2738;
  --cyan: #18d7b0;
  --blue: #61a8ff;
  --magenta: #ff5e9d;
  --amber: #f6b95f;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: var(--gh-font-body, "Pretendard Variable"), Pretendard, "Noto Sans KR", Inter, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--gh-font-heading, "Pretendard Variable"), Pretendard, "Noto Sans KR", Inter, sans-serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(20, 137, 172, 0.1), transparent 24rem),
    var(--background);
}

#cursor-splash-root > div {
  position: fixed;
  z-index: 30;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.14;
  mix-blend-mode: screen;
}

#fluid {
  display: block;
  width: 100vw;
  height: 100vh;
}

.section-wrap,
.site-header,
.hero,
.signal-strip {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 76px;
  border-bottom: 1px solid rgba(103, 136, 171, 0.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(24, 215, 176, 0.4);
  border-radius: 7px;
  background: rgba(24, 215, 176, 0.06);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark i {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 9px rgba(24, 215, 176, 0.8);
  content: "";
}

.brand-mark::before { left: 4px; top: 9px; }
.brand-mark::after { right: 4px; top: 9px; }
.brand-mark i:nth-child(1) { left: 9px; top: 4px; }
.brand-mark i:nth-child(2) { left: 9px; bottom: 4px; }
.brand-mark i:nth-child(3) {
  left: 9px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 1px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 3vw, 42px);
  height: 100%;
}

.main-nav a {
  position: relative;
  display: grid;
  place-items: center;
  color: #9aa6b5;
  font-size: 13px;
  font-weight: 650;
  transition: color 160ms ease;
}

.main-nav a::after {
  position: absolute;
  bottom: -1px;
  left: 50%;
  width: 0;
  height: 2px;
  content: "";
  background: var(--cyan);
  transform: translateX(-50%);
  transition: width 160ms ease;
}

.main-nav a:hover,
.main-nav a.active { color: var(--ink); }
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }

.search-link {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: #b8c2cf;
  background: rgba(10, 17, 28, 0.72);
  transition: border-color 160ms ease, background 160ms ease;
}

.search-link:hover {
  border-color: rgba(24, 215, 176, 0.5);
  background: rgba(24, 215, 176, 0.06);
}

.search-link span {
  position: relative;
  width: 12px;
  height: 12px;
  border: 1.5px solid #b8c2cf;
  border-radius: 50%;
}

.search-link span::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 1.5px;
  content: "";
  background: #b8c2cf;
  transform: rotate(45deg);
}

.hero {
  position: relative;
  display: grid;
  min-height: 620px;
  grid-template-columns: minmax(0, 1.08fr) minmax(400px, 0.92fr);
  gap: 70px;
  align-items: center;
  padding-block: 82px 76px;
}

.hero-grid {
  position: absolute;
  z-index: 0;
  inset: 0 -50vw;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(74, 108, 142, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 108, 142, 0.25) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent, #000 24%, #000 72%, transparent);
}

.hero-glow {
  position: absolute;
  right: -180px;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  opacity: 0.42;
  background: radial-gradient(circle, rgba(31, 153, 180, 0.22), rgba(98, 88, 208, 0.06) 42%, transparent 68%);
  filter: blur(10px);
}

.hero-copy,
.evidence-visual {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--cyan);
  font-family: "JetBrains Mono", "Cascadia Code", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.eyebrow > span {
  width: 22px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(50px, 5.2vw, 76px);
  font-weight: 780;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(100deg, #ecf8f6 0%, var(--cyan) 52%, var(--blue) 100%);
  background-clip: text;
}

.hero-description {
  max-width: 630px;
  margin: 30px 0 0;
  color: #9ca8b7;
  font-size: 17px;
  line-height: 1.8;
  word-break: keep-all;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 750;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button-primary {
  color: #04110f;
  background: var(--cyan);
  box-shadow: 0 12px 30px rgba(24, 215, 176, 0.12);
}

.button-secondary {
  color: #bbc5d1;
  border-color: var(--border);
  background: rgba(10, 17, 28, 0.75);
}

.button-primary:hover,
.button-secondary:hover { transform: translateY(-2px); }
.button-secondary:hover { border-color: rgba(24, 215, 176, 0.45); }

.evidence-visual {
  overflow: hidden;
  min-height: 416px;
  border: 1px solid rgba(85, 123, 162, 0.35);
  border-radius: 18px;
  background: rgba(8, 15, 25, 0.8);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(18px);
  container-type: inline-size;
}

.visual-topbar,
.visual-footer,
.chain-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #758398;
  font-family: "JetBrains Mono", "Cascadia Code", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.visual-topbar {
  height: 52px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
}

.live-dot { color: var(--cyan); }
.live-dot::before {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  content: "";
}

.topology {
  position: relative;
  height: 310px;
}

.topology-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(99, 136, 172, 0.25) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle, black 12%, transparent 70%);
}

.topology-core,
.topology-node {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(78, 139, 202, 0.45);
  background: #0a1421;
  box-shadow: 0 0 26px rgba(54, 138, 214, 0.1);
}

.topology-core {
  top: 85px;
  left: 50%;
  width: 140px;
  height: 140px;
  border-radius: 30px;
  border-color: rgba(24, 215, 176, 0.6);
  background: radial-gradient(circle at 50% 20%, rgba(24, 215, 176, 0.16), transparent 70%), #0a1421;
  transform: translateX(-50%) rotate(45deg);
}

.topology-core-content {
  display: flex;
  width: 150px;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  text-align: center;
  transform: rotate(-45deg);
}

.topology-core span { color: var(--cyan); font: 700 10px "JetBrains Mono", monospace; letter-spacing: 0.08em; }
.topology-core strong { color: #edf5fb; font: 700 34px/1 "JetBrains Mono", monospace; letter-spacing: -0.06em; }
.topology-core small { color: #8b99aa; font: 11px "JetBrains Mono", monospace; }

.topology-node {
  width: 88px;
  height: 58px;
  flex-direction: column;
  border-radius: 12px;
}

.topology-node b { color: #d8e6f3; font: 650 14px "JetBrains Mono", monospace; }
.topology-node small { color: #7d8ca0; font: 11px "JetBrains Mono", monospace; }
.node-a { top: 43px; left: 34px; }
.node-b { top: 44px; right: 36px; border-color: rgba(255, 94, 157, 0.4); }
.node-c { right: 58px; bottom: 22px; }

.link-line {
  position: absolute;
  z-index: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  transform-origin: left center;
}

.line-a { top: 96px; left: 105px; width: 148px; transform: rotate(24deg); }
.line-b { top: 121px; left: 282px; width: 130px; transform: rotate(-23deg); background: linear-gradient(90deg, transparent, var(--magenta), transparent); }
.line-c { top: 210px; left: 274px; width: 126px; transform: rotate(32deg); }

.visual-footer {
  display: grid;
  height: 52px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 0 18px;
  border-top: 1px solid var(--border);
  letter-spacing: 0.04em;
}

.visual-footer > span { white-space: nowrap; }
.visual-footer > span:last-child { text-align: right; }

.visual-footer .ok {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--cyan);
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, auto) 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: 25px 28px;
  border-block: 1px solid var(--border);
  background: rgba(9, 15, 24, 0.75);
}

.signal-strip div {
  display: flex;
  align-items: baseline;
  gap: 9px;
  white-space: nowrap;
}

.signal-strip strong { color: #dbe6ef; font: 650 19px "JetBrains Mono", monospace; }
.signal-strip div span { color: #7b899d; font: 12px "JetBrains Mono", monospace; text-transform: uppercase; }
.signal-strip > p {
  justify-self: end;
  margin: 0;
  color: #718096;
  font: 12px "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
}

.status-pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 9px var(--cyan);
}

.featured-section,
.latest-section {
  padding-block: 112px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-heading .eyebrow { margin-bottom: 12px; }
.section-heading h2,
.lab-intro h2 {
  margin: 0;
  font-size: clamp(30px, 3vw, 43px);
  letter-spacing: -0.045em;
  line-height: 1.17;
}

.section-heading > a {
  color: #8897aa;
  font-size: 12px;
  font-weight: 650;
}

.section-heading > a span { margin-left: 10px; color: var(--cyan); }
.section-heading > p {
  margin: 0;
  color: #718096;
  font: 12px "JetBrains Mono", monospace;
}

.featured-card {
  display: grid;
  overflow: hidden;
  grid-template-columns: 1.15fr 0.85fr;
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 94, 157, 0.095), transparent 25rem),
    linear-gradient(140deg, #0d1320, #090f18);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}

.featured-content {
  padding: clamp(38px, 5vw, 70px);
  border-right: 1px solid var(--border);
}

.card-label {
  display: inline-flex;
  padding: 6px 9px;
  border: 1px solid rgba(255, 94, 157, 0.28);
  border-radius: 5px;
  color: var(--magenta);
  background: rgba(255, 94, 157, 0.07);
  font: 700 12px "JetBrains Mono", monospace;
  letter-spacing: 0.12em;
}

.featured-meta {
  margin: 20px 0 12px;
  color: #758398;
  font: 12px "JetBrains Mono", monospace;
  letter-spacing: 0.06em;
}

.featured-content h3 {
  margin: 0;
  font-size: clamp(31px, 3.6vw, 51px);
  letter-spacing: -0.055em;
  line-height: 1.13;
}

.featured-content > p:not(.featured-meta) {
  max-width: 650px;
  margin: 25px 0 30px;
  color: #93a0b0;
  font-size: 15px;
  line-height: 1.8;
  word-break: keep-all;
}

.featured-content > a {
  color: #dce7f0;
  font-size: 13px;
  font-weight: 750;
}

.featured-content > a span { margin-left: 8px; color: var(--magenta); }

.evidence-chain {
  align-self: center;
  margin: 34px;
  border: 1px solid #1d2a3d;
  border-radius: 14px;
  background: rgba(5, 10, 18, 0.62);
}

.chain-header {
  height: 54px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
}

.chain-header span:last-child { color: var(--cyan); }
.evidence-chain ol { margin: 0; padding: 0; list-style: none; }

.evidence-chain li {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(27, 40, 57, 0.72);
}

.evidence-chain li:last-child { border-bottom: 0; }
.evidence-chain li > span { color: #7d8ca0; font: 12px "JetBrains Mono", monospace; }
.evidence-chain li > div { display: flex; flex-direction: column; }
.evidence-chain li strong { color: #d5dee7; font-size: 15px; }
.evidence-chain li small { margin-top: 2px; color: #8290a3; font: 12px "JetBrains Mono", monospace; }
.evidence-chain li > i { color: var(--cyan); font-style: normal; font-size: 15px; }

.latest-section { padding-top: 30px; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.post-card {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #0b111b;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.post-card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  transform: translateY(-5px);
}

.tone-trouble { --accent: var(--magenta); }
.tone-rca { --accent: var(--cyan); }
.tone-k8s { --accent: var(--blue); }
.tone-network { --accent: var(--amber); }

.post-card-visual {
  position: relative;
  overflow: hidden;
  height: 110px;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 9%, transparent), transparent 65%),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(76, 105, 135, 0.09) 32px),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(76, 105, 135, 0.09) 32px);
}

.post-number {
  position: absolute;
  top: 18px;
  left: 20px;
  color: color-mix(in srgb, var(--accent) 72%, white);
  font: 600 12px "JetBrains Mono", monospace;
}

.visual-lines {
  position: absolute;
  top: 28px;
  right: 21px;
  display: grid;
  width: 92px;
  gap: 7px;
}

.visual-lines i { height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 50%, transparent)); }
.visual-lines i:nth-child(2) { width: 72%; justify-self: end; }

.visual-node {
  position: absolute;
  bottom: 16px;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 70%, transparent);
}

.visual-node i {
  position: absolute;
  width: 5px;
  height: 5px;
  border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  border-radius: 50%;
}

.visual-node i:nth-child(1) { left: -53px; top: -25px; }
.visual-node i:nth-child(2) { right: -60px; top: -37px; }
.visual-node i:nth-child(3) { right: -48px; top: 17px; }

.post-card-body {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  padding: 25px 25px 21px;
}

.post-card-topline,
.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 12px "JetBrains Mono", monospace;
  letter-spacing: 0.05em;
}

.post-card-topline span:first-child {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
}

.post-card-topline span:last-child { color: #526074; }

.post-card h3 {
  margin: 19px 0 13px;
  color: #e7edf3;
  font-size: 21px;
  letter-spacing: -0.035em;
  line-height: 1.34;
  word-break: keep-all;
}

.post-card h3 a:hover { color: color-mix(in srgb, var(--accent) 55%, white); }

.post-card-body > p {
  margin: 0;
  color: #78869a;
  font-size: 15px;
  line-height: 1.75;
  word-break: keep-all;
}

.post-card-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: #536176;
}

.post-card-footer a {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--accent);
  transition: background 160ms ease, color 160ms ease;
}

.post-card-footer a:hover { color: #08110f; background: var(--accent); }

.lab-section {
  position: relative;
  margin-top: 30px;
  border-block: 1px solid var(--border);
  background:
    radial-gradient(circle at 18% 50%, rgba(24, 215, 176, 0.08), transparent 28rem),
    #090f18;
}

.lab-section::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(69, 99, 130, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 99, 130, 0.35) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, black, transparent 70%);
}

.lab-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 100px;
  align-items: center;
  padding-block: 120px;
}

.lab-intro > p:not(.eyebrow) {
  max-width: 530px;
  margin: 25px 0 30px;
  color: #8794a5;
  font-size: 15px;
  line-height: 1.8;
  word-break: keep-all;
}

.lab-timeline {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(6, 12, 20, 0.72);
}

.timeline-row {
  display: grid;
  grid-template-columns: 44px 110px 1fr 10px;
  gap: 18px;
  align-items: center;
  min-height: 82px;
  padding: 15px 22px;
  border-bottom: 1px solid var(--border);
}

.timeline-row:last-child { border-bottom: 0; }
.timeline-row > span { color: #718096; font: 12px "JetBrains Mono", monospace; }
.timeline-row strong { color: #d5dfe8; font-size: 15px; }
.timeline-row p { margin: 0; color: #7c899c; font: 12px "JetBrains Mono", monospace; }
.timeline-row i {
  width: 7px;
  height: 7px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(24, 215, 176, 0.5);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 60px;
  align-items: end;
  padding-block: 62px;
}

.site-footer > div:first-child p {
  margin: 10px 0 0 36px;
  color: #5e6b7e;
  font: 11px "JetBrains Mono", monospace;
}

.footer-links { display: flex; gap: 24px; }
.footer-links a { color: #798699; font-size: 12px; }
.site-footer > p { margin: 0; color: #637084; font: 11px "JetBrains Mono", monospace; }

@media (max-width: 980px) {
  .main-nav { justify-content: flex-end; gap: 22px; }
  .main-nav a:nth-child(4),
  .main-nav a:nth-child(5) { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 54px; padding-block: 70px; }
  .hero-copy { max-width: 760px; }
  .evidence-visual { width: min(620px, 100%); }
  .signal-strip { grid-template-columns: repeat(4, 1fr); gap: 22px; }
  .signal-strip > p { display: none; }
  .signal-strip div { flex-direction: column; gap: 1px; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-content { border-right: 0; border-bottom: 1px solid var(--border); }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lab-grid { grid-template-columns: 1fr; gap: 55px; }
}

@media (max-width: 680px) {
  .section-wrap,
  .site-header,
  .hero,
  .signal-strip { width: min(100% - 28px, 1180px); }

  .site-header { height: auto; min-height: 64px; grid-template-columns: 1fr auto; }
  .site-header .brand { padding-block: 16px; }
  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    height: 44px;
    scrollbar-width: none;
  }
  .main-nav a { flex: 0 0 auto; }
  .main-nav a:nth-child(4),
  .main-nav a:nth-child(5) { display: grid; }
  .search-link { grid-column: 2; grid-row: 1; }
  .hero { gap: 44px; padding-block: 54px; }
  .hero h1 { font-size: clamp(41px, 12vw, 58px); line-height: 1.01; }
  .hero-description { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .evidence-visual { min-height: 368px; }
  .topology { height: 260px; transform: scale(0.88); margin: -2px -22px; }
  .visual-footer { height: 54px; }
  .visual-footer span:last-child { display: none; }
  .signal-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 14px;
    padding: 22px 4px;
  }
  .signal-strip div:nth-child(n+3) { display: flex; }
  .featured-section,
  .latest-section { padding-block: 78px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .section-heading > p { display: none; }
  .featured-content { padding: 34px 24px; }
  .featured-content h3 br { display: none; }
  .evidence-chain { margin: 18px; }
  .post-grid { grid-template-columns: 1fr; }
  .post-card { min-height: 410px; }
  .lab-grid { padding-block: 82px; }
  .timeline-row { grid-template-columns: 34px 86px 1fr 7px; gap: 10px; padding-inline: 14px; }
  .timeline-row p { font-size: 11px; }
  .site-footer { grid-template-columns: 1fr; gap: 28px; padding-block: 45px; }
  .site-footer > div:first-child p { margin-left: 0; }
}

@container (max-width: 420px) {
  .visual-footer {
    gap: 10px;
    padding-inline: 14px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  #cursor-splash-root { display: none; }
}

/* Ghost theme integration */

body,
button,
input,
textarea,
select {
  font: inherit;
}

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

.main-nav .nav,
.footer-links .nav {
  display: flex;
  align-items: stretch;
  gap: clamp(20px, 3vw, 42px);
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav .nav li {
  display: flex;
}

.main-nav .nav-current a {
  color: var(--ink);
}

.main-nav .nav-current a::after {
  width: 100%;
}

.search-link {
  padding: 0;
  cursor: pointer;
}

.topology-core strong {
  max-width: none;
  font-size: 34px;
  line-height: 1;
  text-align: center;
}

.topic-rail {
  display: flex;
  overflow-x: auto;
  align-items: center;
  gap: 10px;
  padding-block: 22px;
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}

.topic-rail-label {
  margin-right: 8px;
  color: #566477;
  font: 700 11px "JetBrains Mono", "Cascadia Code", monospace;
  letter-spacing: 0.12em;
}

.topic-rail a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: #8795a8;
  font-size: 12px;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.topic-rail a:hover {
  color: var(--ink);
  border-color: rgba(24, 215, 176, 0.42);
  background: rgba(24, 215, 176, 0.05);
}

.topic-rail small {
  color: var(--cyan);
  font: 11px "JetBrains Mono", "Cascadia Code", monospace;
}

.post-card-topline > a,
.post-card-topline > span:first-child {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
}

.post-card-topline time {
  color: #526074;
}

.tone-troubleshooting { --accent: var(--magenta); }
.tone-rca { --accent: var(--cyan); }
.tone-kubernetes { --accent: var(--blue); }
.tone-network { --accent: var(--amber); }
.tone-project { --accent: #9f7cff; }

.post-card:not([class*="tone-"]) {
  --accent: var(--cyan);
}

.post-card.has-image .post-card-visual {
  height: 150px;
  background: #0e1622;
}

.post-card-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.04) brightness(0.78);
  transition: transform 420ms ease, filter 420ms ease;
}

.post-card:hover .post-card-visual > img {
  filter: saturate(0.95) contrast(1.04) brightness(0.9);
  transform: scale(1.025);
}

.pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: #7b899c;
  font: 12px "JetBrains Mono", "Cascadia Code", monospace;
}

.pagination a {
  transition: color 160ms ease;
}

.pagination a:hover { color: var(--cyan); }
.pagination .older-posts { justify-self: end; }
.pagination .page-number { color: #536176; }

/* Collection pages */

.collection-header {
  padding-block: 100px 56px;
  border-bottom: 1px solid var(--border);
}

.collection-header > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 28px;
}

.collection-header h1 {
  margin: 0;
  font-size: clamp(54px, 8vw, 100px);
  letter-spacing: -0.07em;
  line-height: 1;
}

.collection-header > div > span {
  color: var(--cyan);
  font: 12px "JetBrains Mono", "Cascadia Code", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.collection-header > p:not(.eyebrow) {
  max-width: 720px;
  margin: 28px 0 0;
  color: #8492a5;
  font-size: 16px;
  line-height: 1.75;
}

.collection-posts {
  padding-block: 60px 112px;
}

/* Article pages */

.article-header {
  max-width: 960px;
  padding-block: 108px 58px;
  text-align: left;
}

.article-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: #8492a5;
  font: 13px "JetBrains Mono", "Cascadia Code", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-kicker a,
.article-kicker > span:first-child {
  display: inline-flex;
  padding: 6px 9px;
  border: 1px solid rgba(24, 215, 176, 0.28);
  border-radius: 5px;
  color: var(--cyan);
  background: rgba(24, 215, 176, 0.055);
  font-weight: 700;
}

.article-kicker > span + span::before {
  margin-right: 12px;
  color: #344256;
  content: "·";
}

.article-header h1 {
  max-width: 950px;
  margin: 0;
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 780;
  letter-spacing: -0.062em;
  line-height: 1.08;
  word-break: keep-all;
}

.article-header > p {
  max-width: 800px;
  margin: 28px 0 0;
  color: #95a2b2;
  font-size: 18px;
  line-height: 1.78;
  word-break: keep-all;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  color: #748297;
  font-size: 12px;
}

.article-author img {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 50%;
  object-fit: cover;
}

.article-image {
  overflow: hidden;
  margin-bottom: 74px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.article-image img {
  width: 100%;
  max-height: 690px;
  object-fit: cover;
}

.article-image figcaption {
  padding: 12px 16px;
  color: #627086;
  font-size: 11px;
  text-align: center;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 780px) minmax(180px, 240px);
  gap: clamp(52px, 8vw, 108px);
  justify-content: center;
  align-items: start;
  padding-bottom: 80px;
}

.gh-content {
  min-width: 0;
  color: #c5ced8;
  font-size: 17px;
  line-height: 1.86;
  word-break: keep-all;
}

.gh-content > *:first-child { margin-top: 0; }
.gh-content > *:last-child { margin-bottom: 0; }

.gh-content p,
.gh-content ul,
.gh-content ol,
.gh-content blockquote,
.gh-content pre,
.gh-content figure,
.gh-content .kg-card,
.gh-content .table-scroll {
  margin-block: 0 1.75em;
}

.gh-content h2,
.gh-content h3,
.gh-content h4 {
  color: #f0f4f8;
  letter-spacing: -0.04em;
  line-height: 1.3;
  scroll-margin-top: 110px;
}

.gh-content h2 {
  margin: 2.2em 0 0.78em;
  padding-top: 0.9em;
  border-top: 1px solid var(--border);
  font-size: 31px;
}

.gh-content h3 { margin: 1.8em 0 0.65em; font-size: 23px; }
.gh-content h4 { margin: 1.5em 0 0.55em; font-size: 18px; }

.gh-content a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-color: rgba(24, 215, 176, 0.35);
  text-underline-offset: 3px;
}

.gh-content strong { color: #eef3f7; }

.gh-content code {
  padding: 0.13em 0.38em;
  border: 1px solid #243349;
  border-radius: 4px;
  color: #b8e8dd;
  background: #0d1724;
  font: 0.86em "JetBrains Mono", "Cascadia Code", monospace;
  word-break: break-word;
}

.gh-content pre {
  overflow-x: auto;
  padding: 21px 23px;
  border: 1px solid #1c2a3e;
  border-radius: 10px;
  background: #080e17;
  box-shadow: inset 3px 0 var(--cyan);
  scrollbar-width: thin;
}

.gh-content pre code {
  padding: 0;
  border: 0;
  color: #b9c8d7;
  background: transparent;
  font-size: 13px;
  line-height: 1.75;
  white-space: pre;
  word-break: normal;
}

.gh-content blockquote {
  padding: 18px 22px;
  border: 1px solid rgba(97, 168, 255, 0.25);
  border-left: 3px solid var(--blue);
  border-radius: 0 9px 9px 0;
  color: #aebdcb;
  background: rgba(97, 168, 255, 0.055);
}

.gh-content ul,
.gh-content ol { padding-left: 1.35em; }
.gh-content li { margin: 0.45em 0; }
.gh-content li::marker { color: var(--cyan); }

.gh-content hr {
  height: 1px;
  margin: 3em 0;
  border: 0;
  background: var(--border);
}

.gh-content img {
  height: auto;
  border-radius: 10px;
}

.gh-content figcaption {
  margin-top: 10px;
  color: #667489;
  font-size: 11px;
  text-align: center;
}

.gh-content .kg-width-wide {
  position: relative;
  left: 50%;
  width: min(1040px, calc(100vw - 48px));
  max-width: none;
  transform: translateX(-50%);
}

.gh-content .kg-width-full {
  position: relative;
  left: 50%;
  width: min(1440px, calc(100vw - 24px));
  max-width: none;
  transform: translateX(-50%);
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  scrollbar-width: thin;
}

.gh-content table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: #080e17;
  font-size: 14px;
}

.gh-content th,
.gh-content td {
  padding: 14px 16px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.gh-content th:last-child,
.gh-content td:last-child { border-right: 0; }
.gh-content tr:last-child td { border-bottom: 0; }
.gh-content th { color: #dce5ed; background: #111923; }

.kg-callout-card {
  border: 1px solid #24344a;
  border-radius: 10px;
  background: #0d1622;
}

.kg-bookmark-card a {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: inherit;
  background: #0c131e;
  text-decoration: none;
}

.kg-bookmark-content { padding: 18px; }
.kg-bookmark-title { color: #edf2f6; font-weight: 700; }
.kg-bookmark-description { color: #7c899b; font-size: 13px; }

.article-toc {
  position: sticky;
  top: 100px;
  padding: 20px 0 20px 20px;
  border-left: 1px solid var(--border);
}

.article-toc > p {
  margin: 0 0 18px;
  color: var(--cyan);
  font: 700 12px "JetBrains Mono", "Cascadia Code", monospace;
  letter-spacing: 0.1em;
}

.article-toc ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-toc a {
  display: block;
  color: #8a99ad;
  font-size: 14px;
  line-height: 1.55;
  transition: color 160ms ease;
}

.article-toc a:hover { color: #d6e2eb; }
.article-toc .toc-subitem { padding-left: 14px; }
.article-toc .toc-subitem a { color: #718096; font-size: 13px; }

.article-footer {
  padding-block: 42px 86px;
  border-top: 1px solid var(--border);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-tags a {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: #8b99ab;
  font-size: 11px;
}

.post-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.post-navigation > a {
  display: flex;
  min-height: 110px;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0a111b;
  transition: border-color 160ms ease;
}

.post-navigation > a:hover { border-color: rgba(24, 215, 176, 0.35); }
.post-navigation span { color: #718096; font: 11px "JetBrains Mono", monospace; }
.post-navigation strong { color: #c8d2dc; font-size: 13px; line-height: 1.5; }

.related-section { padding-block: 20px 110px; }
.related-section .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.error-page {
  min-height: 68vh;
  padding-block: 140px;
}

.error-page h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(48px, 7vw, 84px);
  letter-spacing: -0.06em;
  line-height: 1.05;
}

.error-page > p:not(.eyebrow) { margin: 25px 0 34px; color: #7f8da0; }

@media (max-width: 980px) {
  .article-layout { grid-template-columns: minmax(0, 780px); }
  .article-toc { display: none; }
  .related-section .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .main-nav .nav {
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    gap: 0;
  }
  .main-nav .nav li { flex: 1 1 33.333%; }
  .main-nav a { width: 100%; min-height: 40px; font-size: 12px; white-space: nowrap; }
  .main-nav { overflow: visible; height: auto; scroll-snap-type: none; }
  .footer-links .nav { gap: 18px; }
  .topic-rail { width: 100%; padding-inline: 14px; }
  .article-header { padding-block: 72px 42px; }
  .article-header h1 { font-size: clamp(40px, 12vw, 58px); }
  .article-header > p { font-size: 16px; }
  .article-image { width: calc(100% - 28px); margin-bottom: 48px; }
  .article-layout { padding-bottom: 58px; }
  .gh-content { font-size: 16px; line-height: 1.82; }
  .gh-content h2 { font-size: 27px; }
  .gh-content h3 { font-size: 21px; }
  .gh-content .kg-width-wide,
  .gh-content .kg-width-full { width: calc(100vw - 28px); }
  .collection-header { padding-block: 74px 42px; }
  .collection-header > div { align-items: flex-start; flex-direction: column; gap: 12px; }
  .collection-header h1 {
    max-width: 100%;
    font-size: clamp(40px, 11.5vw, 48px);
    overflow-wrap: anywhere;
  }
  .post-navigation { grid-template-columns: 1fr; }
  .related-section .post-grid { grid-template-columns: 1fr; }
}
