body { margin: 0; padding: 0; width: 100%; }

.site-header {
  transform: translateY(-100%);
  transition: transform 0.6s ease-out;
}
body.page-loaded .site-header { transform: translateY(0); }

.loader {
  height: 3px;
  background: repeating-linear-gradient(90deg, #0033FE 0px, #0033FE 10px, transparent 10px, transparent 20px);
  position: fixed; top: 50%; left: 0; width: 0%;
  z-index: 9999; margin-top: -1.5px;
}
.loader-svg {
  position: fixed; top: 50%; left: 0;
  width: 20px; height: 20px; margin-top: -10px;
  z-index: 10000;
  background-image: url('../images/S1.svg');
  background-size: contain; background-repeat: no-repeat;
  opacity: 0; visibility: hidden;
}
.content { display: none; }
body.page-loaded .loader { display: none !important; }
body.page-loaded .content { display: block; }

.primary-nav a.active { color: var(--lime); }

/* ── READING PROGRESS ── */
.read-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: repeating-linear-gradient(
    90deg,
    var(--blue) 0px, var(--blue) 10px,
    transparent 10px, transparent 20px
  );
  z-index: 200;
  pointer-events: none;
  transition: width 0.1s linear;
}

/* ── ARTICLE HERO ── */
.ah-section {
  width: 100%;
  padding: 0 var(--side);
  position: sticky;
  top: var(--header-h, 60px);
  z-index: 1;
}
.ah-card {
  width: 100%;
  border-radius: clamp(8px, 0.8vw, 12px);
  background: linear-gradient(160deg, rgb(9,30,58) 0%, rgb(0,51,254) 100%);
  border: 1px solid rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
  padding: clamp(16px, 2vw, 28px) clamp(22px, 3vw, 40px) 0;
  display: flex;
  flex-direction: column;
}
.ah-card::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(237,238,240,0.10) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.ah-top {
  position: relative; z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.5vw, 20px);
}
.ah-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.25s ease;
}
.ah-breadcrumb:hover { color: var(--lime); }
.ah-breadcrumb svg { flex-shrink: 0; }

.ah-badge-row {
  display: flex;
  align-items: center;
  gap: clamp(6px, 0.8vw, 10px);
  flex-wrap: wrap;
}
.ah-badge {
  display: inline-flex;
  align-items: center;
  height: clamp(18px, 1.8vw, 22px);
  padding: 0 clamp(8px, 0.8vw, 12px);
  background: var(--lime);
  color: var(--ink);
  border-radius: 2px;
  font-size: clamp(7px, 0.6vw, 9px);
  letter-spacing: 0.08em;
  font-weight: 500;
  text-transform: uppercase;
}
.ah-badge--outline {
  background: transparent;
  color: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.25);
}
.ah-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 60px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.04;
  letter-spacing: -0.01em;
  max-width: 22ch;
}
.ah-sub {
  margin: 0;
  font-size: var(--text-md);
  line-height: 1.45;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.02em;
  max-width: 58ch;
}
.ah-meta {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  flex-wrap: wrap;
  padding: clamp(16px, 2vw, 24px) 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: clamp(20px, 2.5vw, 32px);
}
.ah-author {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 12px);
}
.ah-avatar {
  width: clamp(30px, 3vw, 42px);
  height: clamp(30px, 3vw, 42px);
  border-radius: 50%;
  background: var(--lime);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(12px, 1.2vw, 16px);
  font-weight: 700;
  color: var(--ink);
}
.ah-author-info {}
.ah-author-name {
  font-size: var(--text-sm);
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.ah-author-role {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-top: 2px;
}
.ah-meta-divider {
  width: 1px;
  height: clamp(20px, 2vw, 28px);
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}
.ah-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
}
.ah-meta-item svg { opacity: 0.6; flex-shrink: 0; }

/* Featured image strip */
.ah-image {
  width: 100%;
  aspect-ratio: 21 / 7;
  background: url('../images/article.jpg') center / cover no-repeat;
  margin-top: clamp(28px, 3.5vw, 48px);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* ── ARTICLE BODY ── */
.ab-section {
  width: 100%;
  padding: clamp(48px, 6vw, 88px) var(--side);
  position: relative;
  z-index: 2;
}
.ab-layout {
  display: grid;
  grid-template-columns: 1fr clamp(180px, 18vw, 260px);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

/* Main content column */
.ab-main {}
.ab-body {
  font-size: var(--text-md);
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.ab-body h2 {
  font-size: clamp(20px, 2.2vw, 32px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin: clamp(36px, 4.5vw, 60px) 0 clamp(14px, 1.5vw, 22px);
  padding-bottom: clamp(10px, 1.2vw, 16px);
  border-bottom: 1px solid rgba(25,36,59,0.12);
}
.ab-body h3 {
  font-size: clamp(16px, 1.7vw, 24px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin: clamp(24px, 3vw, 40px) 0 clamp(10px, 1vw, 14px);
}
.ab-body p {
  margin: 0 0 clamp(14px, 1.8vw, 24px);
  color: rgba(25,36,59,0.85);
}
.ab-body p:last-child { margin-bottom: 0; }
.ab-body ul, .ab-body ol {
  margin: 0 0 clamp(14px, 1.8vw, 24px);
  padding-left: clamp(18px, 2vw, 28px);
}
.ab-body li {
  margin-bottom: clamp(6px, 0.8vw, 10px);
  color: rgba(25,36,59,0.85);
}
.ab-body strong { font-weight: 700; color: var(--ink); }
.ab-body a { color: var(--blue); text-decoration: none; border-bottom: 1px solid rgba(0,51,254,0.3); transition: border-color 0.2s ease; }
.ab-body a:hover { border-color: var(--blue); }

/* Pull quote */
.ab-quote {
  margin: clamp(28px, 4vw, 52px) 0;
  padding: clamp(20px, 2.5vw, 32px) clamp(20px, 2.5vw, 32px) clamp(20px, 2.5vw, 32px) clamp(24px, 3vw, 40px);
  border-left: 4px solid var(--blue);
  border-radius: 0 clamp(6px, 0.7vw, 10px) clamp(6px, 0.7vw, 10px) 0;
  background: rgba(0,51,254,0.04);
  position: relative;
}
.ab-quote::before {
  content: '"';
  position: absolute;
  top: clamp(-8px, -1vw, -12px);
  left: clamp(16px, 2vw, 24px);
  font-size: clamp(48px, 6vw, 80px);
  line-height: 1;
  color: var(--blue);
  opacity: 0.18;
  font-weight: 900;
  pointer-events: none;
}
.ab-quote p {
  margin: 0 0 clamp(8px, 1vw, 12px);
  font-size: clamp(16px, 1.7vw, 22px);
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: 0.01em;
  font-style: italic;
}
.ab-quote cite {
  display: block;
  font-size: var(--text-xs);
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 500;
}

/* Inline figure / image */
.ab-figure {
  margin: clamp(28px, 4vw, 52px) 0;
}
.ab-figure img, .ab-figure .ab-img-placeholder {
  width: 100%;
  border-radius: clamp(6px, 0.7vw, 10px);
  display: block;
}
.ab-img-placeholder {
  aspect-ratio: 16 / 7;
  background: url('../images/article.jpg') center / cover no-repeat;
}
.ab-figcaption {
  margin-top: clamp(8px, 1vw, 12px);
  font-size: clamp(10px, 0.85vw, 13px);
  color: rgba(25,36,59,0.5);
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.4;
}

/* Highlight box */
.ab-highlight {
  margin: clamp(28px, 4vw, 52px) 0;
  padding: clamp(20px, 2.5vw, 32px);
  background: var(--ink);
  border-radius: clamp(8px, 0.8vw, 12px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(14px, 1.8vw, 24px);
  align-items: start;
}
.ab-highlight-icon {
  width: clamp(36px, 3.5vw, 48px);
  height: clamp(36px, 3.5vw, 48px);
  background: var(--lime);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 3px 3px 6px rgba(0,0,0,0.25);
}
.ab-highlight h4 {
  margin: 0 0 clamp(6px, 0.7vw, 10px);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.02em;
}
.ab-highlight p {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.55;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.02em;
}

/* Stats row inside article */
.ab-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.5vw, 20px);
  margin: clamp(28px, 4vw, 52px) 0;
}
.ab-stat {
  padding: clamp(16px, 2vw, 24px);
  border-radius: clamp(6px, 0.7vw, 10px);
  background: var(--ink);
  text-align: center;
  box-shadow: 0 4px 12px rgba(25,36,59,0.15);
}
.ab-stat .num {
  font-size: clamp(22px, 2.8vw, 40px);
  font-weight: 700;
  color: var(--lime);
  line-height: 1;
  letter-spacing: -0.02em;
}
.ab-stat .lbl {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.08em;
  margin-top: 4px;
  text-transform: uppercase;
}

/* Tags row */
.ab-tags {
  display: flex;
  align-items: center;
  gap: clamp(6px, 0.8vw, 10px);
  flex-wrap: wrap;
  margin-top: clamp(36px, 4.5vw, 60px);
  padding-top: clamp(20px, 2.5vw, 32px);
  border-top: 1px solid rgba(25,36,59,0.12);
}
.ab-tags-label {
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(25,36,59,0.45);
  flex-shrink: 0;
}
.ab-tag {
  display: inline-flex;
  align-items: center;
  height: clamp(22px, 2vw, 28px);
  padding: 0 clamp(8px, 1vw, 14px);
  border-radius: 4px;
  border: 1px solid rgba(0,51,254,0.25);
  background: rgba(0,51,254,0.04);
  font-size: var(--text-xs);
  color: var(--blue);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.ab-tag:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* Share row */
.ab-share {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 14px);
  margin-top: clamp(20px, 2.5vw, 32px);
  flex-wrap: wrap;
}
.ab-share-label {
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(25,36,59,0.45);
  flex-shrink: 0;
}
.ab-share-btn {
  width: clamp(32px, 3vw, 40px);
  height: clamp(32px, 3vw, 40px);
  border-radius: 5px;
  background: var(--ink);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
}
.ab-share-btn:hover { background: var(--blue); }
.ab-share-btn svg { display: block; }

/* ── SIDEBAR ── */
.ab-sidebar {
  position: sticky;
  top: calc(var(--header-h, 60px) + clamp(16px, 2vw, 28px));
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 24px);
}

/* TOC */
.ab-toc {
  background: var(--white);
  border: 1px solid rgba(25,36,59,0.1);
  border-radius: clamp(8px, 0.8vw, 12px);
  padding: clamp(16px, 2vw, 24px);
}
.ab-toc-title {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(25,36,59,0.45);
  margin: 0 0 clamp(10px, 1.2vw, 16px);
  font-weight: 500;
}
.ab-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 0.5vw, 6px);
}
.ab-toc-list a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: var(--text-sm);
  color: rgba(25,36,59,0.65);
  text-decoration: none;
  letter-spacing: 0.01em;
  line-height: 1.35;
  padding: clamp(4px, 0.5vw, 6px) clamp(6px, 0.7vw, 10px);
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}
.ab-toc-list a::before {
  content: '';
  width: 3px;
  min-height: 14px;
  background: var(--blue);
  border-radius: 2px;
  flex-shrink: 0;
  opacity: 0;
  margin-top: 2px;
  transition: opacity 0.2s ease;
}
.ab-toc-list a:hover { background: rgba(0,51,254,0.05); color: var(--blue); }
.ab-toc-list a:hover::before { opacity: 1; }
.ab-toc-list a.toc-active { color: var(--blue); }
.ab-toc-list a.toc-active::before { opacity: 1; }

/* Sidebar info card */
.ab-info-card {
  background: var(--ink);
  border-radius: clamp(8px, 0.8vw, 12px);
  padding: clamp(16px, 2vw, 24px);
}
.ab-info-card .ab-info-label {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin: 0 0 clamp(10px, 1.2vw, 14px);
}
.ab-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(6px, 0.8vw, 10px) 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.ab-info-row:last-child { border-bottom: none; padding-bottom: 0; }
.ab-info-key {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
}
.ab-info-val {
  font-size: var(--text-xs);
  color: var(--lime);
  letter-spacing: 0.04em;
  font-weight: 500;
  text-align: right;
}

/* Sidebar CTA card */
.ab-side-cta {
  background: var(--blue);
  border-radius: clamp(8px, 0.8vw, 12px);
  padding: clamp(16px, 2vw, 24px);
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.2vw, 16px);
}
.ab-side-cta .btn-primary {
  width: 100%;
  justify-content: space-between;
}
.ab-side-cta p {
  margin: 0;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.02em;
  line-height: 1.45;
}

/* ── AUTHOR CARD ── */
.aauthor-section {
  width: 100%;
  padding: 0 var(--side) clamp(48px, 6vw, 88px);
}
.aauthor-card {
  background: var(--ink);
  border-radius: clamp(8px, 0.8vw, 12px);
  padding: clamp(24px, 3vw, 40px);
  display: grid;
  grid-template-columns: clamp(60px, 7vw, 96px) 1fr;
  gap: clamp(20px, 2.5vw, 36px);
  align-items: start;
}
.aauthor-avatar {
  width: clamp(60px, 7vw, 96px);
  height: clamp(60px, 7vw, 96px);
  border-radius: 50%;
  background: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(22px, 2.8vw, 36px);
  font-weight: 700;
  color: var(--ink);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.aauthor-label {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
  margin: 0 0 6px;
}
.aauthor-name {
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--white);
  margin: 0 0 clamp(8px, 1vw, 12px);
  letter-spacing: 0.01em;
}
.aauthor-bio {
  font-size: var(--text-sm);
  line-height: 1.55;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.02em;
  margin: 0;
}
.aauthor-links {
  display: flex;
  gap: clamp(6px, 0.8vw, 10px);
  margin-top: clamp(14px, 1.8vw, 22px);
  flex-wrap: wrap;
}
.aauthor-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: clamp(26px, 2.5vw, 34px);
  padding: 0 clamp(10px, 1.2vw, 16px);
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.2);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.aauthor-link:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }

/* ── RELATED ARTICLES ── */
.arel-section {
  width: 100%;
  padding: 0 var(--side) 0;
}
.arel-inner {
  border-top: 2px dashed var(--blue);
  border-right: 2px dashed var(--blue);
  border-left: none;
  border-bottom: none;
  border-radius: 0 clamp(8px, 0.8vw, 12px) 0 0;
  padding: clamp(24px, 3vw, 40px);
}
.arel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 3vw, 40px);
}

/* ── CTA ── */
.sta-scene { height: 260vh; }
.sta-section {
  width: 100%;
  height: 100vh;
  background: var(--blue);
  margin-top: clamp(48px, 6vw, 80px);
  clip-path: inset(88% 8% 0% 8% round 18px);
  will-change: clip-path;
  position: sticky;
  top: 0;
}
.sta-inner {
  width: 100%; height: 100%;
  padding: clamp(48px, 7vw, 90px) var(--side);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
}
.sta-inner img.wordmark { align-self: center; margin: 0 auto; }
.sta-inner h2 {
  font-size: var(--text-xl); line-height: 1.05;
  font-weight: 400; color: var(--white);
  margin: clamp(12px, 1.5vw, 20px) 0 0;
  white-space: pre-line;
  width: clamp(280px, 50vw, 700px);
}
.sta-inner .sub {
  font-size: var(--text-md); line-height: 1.3;
  letter-spacing: 0.02em; color: var(--white);
  margin: clamp(16px, 2vw, 28px) 0 0;
  width: clamp(260px, 48vw, 680px);
}
.sta-inner .cta-row {
  display: flex; gap: clamp(12px, 2.5vw, 38px);
  margin-top: clamp(28px, 4vw, 56px);
  flex-wrap: wrap; justify-content: center;
}
.sta-inner .wordmark,
.sta-inner h2,
.sta-inner .sub,
.sta-inner .cta-row {
  opacity: 0; transform: scale(0.75); filter: blur(6px);
  will-change: opacity, transform, filter;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .ab-layout { grid-template-columns: 1fr; }
  .ab-sidebar { position: static; }
  .ab-stats { grid-template-columns: repeat(3, 1fr); }
  .aauthor-card { grid-template-columns: 1fr; }
  .aauthor-avatar { width: clamp(52px, 10vw, 72px); height: clamp(52px, 10vw, 72px); }
  .ah-image { aspect-ratio: 16 / 7; }
}
@media (max-width: 580px) {
  .ab-stats { grid-template-columns: 1fr 1fr; }
}
