/* ═══════════════════════════════════════════
   DESIGN TOKENS
════════════════════════════════════════════ */
:root {
  /* Navy palette */
  --navy-950:  #060b18;
  --navy-900:  #0a1628;
  --navy-800:  #0f2044;
  --navy-700:  #152c5e;
  --navy-600:  #1a3878;
  --navy-500:  #1e4494;

  /* Accent */
  --accent:        #4f8ef7;
  --accent-bright: #6fa3ff;
  --accent-glow:   rgba(79, 142, 247, 0.25);
  --accent-subtle: rgba(79, 142, 247, 0.10);

  /* Emergency red accent */
  --emergency:     #ef4444;
  --emergency-sub: rgba(239, 68, 68, 0.15);

  /* Text */
  --text-primary:  #f0f4ff;
  --text-secondary:#aab8d4;
  --text-muted:    #5c7099;

  /* Surfaces */
  --surface-0:     var(--navy-950);
  --surface-1:     var(--navy-900);
  --surface-2:     var(--navy-800);
  --surface-card:  rgba(15, 32, 68, 0.70);
  --border:        rgba(79, 142, 247, 0.15);
  --border-hover:  rgba(79, 142, 247, 0.40);

  /* Spacing */
  --section-pad: 6rem;
  --container:   1160px;
  --radius:      14px;
  --radius-sm:   8px;

  /* Nav */
  --nav-h: 68px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════
   RESET & BASE
════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--surface-0);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* RTL support */
[dir="rtl"] body { font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif; }

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ═══════════════════════════════════════════
   TYPOGRAPHY
════════════════════════════════════════════ */
.section-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 2.5rem;
}

/* ═══════════════════════════════════════════
   CONTAINER
════════════════════════════════════════════ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ═══════════════════════════════════════════
   SECTION
════════════════════════════════════════════ */
.section {
  padding: var(--section-pad) 0;
}

/* Alternating background */
.about-section  { background: var(--surface-0); }
.exp-section    { background: var(--surface-1); }
.skills-section { background: var(--surface-0); }
.contact-section { background: var(--surface-1); }
.cv-section     { background: var(--surface-0); }

/* ═══════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 24px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-bright);
  box-shadow: 0 0 36px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: var(--accent-subtle);
}

.btn-large { padding: 0.85rem 1.8rem; font-size: 1rem; }
.btn-small { padding: 0.45rem 0.9rem; font-size: 0.8rem; }

/* ═══════════════════════════════════════════
   NAVBAR
════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.navbar.scrolled {
  background: rgba(6, 11, 24, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.logo-first { color: var(--accent); }
.logo-last  { color: var(--text-primary); }

.nav-links {
  display: flex;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover {
  color: var(--text-primary);
  background: var(--accent-subtle);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-btn {
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--border);
  transition: all 0.2s;
  letter-spacing: 0.04em;
}
.lang-btn:hover {
  background: var(--accent-subtle);
  border-color: var(--accent);
}

.linkedin-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.linkedin-btn:hover {
  color: #0a66c2;
  border-color: #0a66c2;
  background: rgba(10, 102, 194, 0.08);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════
   HERO
════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Subtle grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 0%, transparent 100%);
}

/* Glowing orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: float 8s ease-in-out infinite;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--navy-500) 0%, transparent 70%);
  top: -100px; left: -100px;
  animation-delay: 0s;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #1a2d6e 0%, transparent 70%);
  bottom: -80px; right: -80px;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(20px, -30px); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  padding: 2rem 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(79, 142, 247, 0.06);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #f0f4ff 0%, var(--accent-bright) 60%, #a8c4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.hero-tagline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  margin: 0 auto;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ═══════════════════════════════════════════
   ABOUT
════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text {}
.about-body {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.about-stats .stat-card:last-child {
  grid-column: span 2;
}

.stat-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: border-color 0.25s, transform 0.25s;
}
.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}
.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat-plus { font-size: 1.5rem; vertical-align: super; }
.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   TIMELINE (EXPERIENCE)
════════════════════════════════════════════ */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 2.5rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--border);
}

.timeline-item {
  display: flex;
  gap: 2rem;
  position: relative;
  padding-bottom: 2.5rem;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: -1.5rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.marker-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--navy-900);
  border: 2px solid var(--border);
  transition: border-color 0.2s;
}
.timeline-item.featured .marker-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  width: 16px; height: 16px;
}

.timeline-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  backdrop-filter: blur(8px);
  flex: 1;
  margin-left: 1rem;
  transition: border-color 0.25s, transform 0.25s;
}
.timeline-card:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
}
.timeline-item.featured .timeline-card {
  border-color: rgba(79, 142, 247, 0.3);
  background: rgba(15, 32, 68, 0.85);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.card-badge-wrap { display: flex; gap: 0.4rem; }

.card-badge {
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.badge-emergency { background: var(--emergency-sub); color: var(--emergency); border: 1px solid rgba(239,68,68,0.3); }
.badge-surgery   { background: rgba(168,85,247,0.12); color: #c084fc; border: 1px solid rgba(168,85,247,0.25); }
.badge-internal  { background: rgba(34,197,94,0.10); color: #4ade80; border: 1px solid rgba(34,197,94,0.2); }
.badge-featured  { background: var(--accent-subtle); color: var(--accent); border: 1px solid var(--border-hover); }

.card-date {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}
.card-body {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* ═══════════════════════════════════════════
   TAGS
════════════════════════════════════════════ */
.tag {
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  background: var(--accent-subtle);
  color: var(--accent-bright);
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--border);
}

/* ═══════════════════════════════════════════
   SKILLS BENTO GRID
════════════════════════════════════════════ */
.skills-bento {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-areas:
    "ai script"
    "ai network"
    "native native";
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.card-ai      { grid-area: ai; }
.card-script  { grid-area: script; }
.card-network { grid-area: network; }
.card-native  { grid-area: native; }

.bento-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  backdrop-filter: blur(8px);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.bento-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.card-ai { padding: 2rem 2.25rem; }
.card-ai .skill-desc { flex: none; }

.skill-icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  background: var(--accent-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}
.skill-icon svg { width: 19px; height: 19px; stroke: var(--accent); }
.card-ai .skill-icon { width: 60px; height: 60px; margin-bottom: 1.5rem; }
.card-ai .skill-icon svg { width: 28px; height: 28px; }

.skill-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}
.card-ai .skill-title { font-size: 1.4rem; margin-bottom: 1rem; }

.skill-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0.9rem;
  flex: 1;
}
.card-ai .skill-desc { font-size: 1.05rem; line-height: 1.95; margin-bottom: 1.75rem; }

.skill-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.card-ai .skill-tags { gap: 0.5rem; }
.card-ai .tag { font-size: 0.8rem; padding: 0.3rem 0.75rem; }

/* ═══════════════════════════════════════════
   CONTACT
════════════════════════════════════════════ */
.hidden { display: none !important; }

.contact-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════
   CV SECTION
════════════════════════════════════════════ */
.cv-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cv-content {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.cv-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius);
  background: var(--accent-subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cv-icon svg { width: 30px; height: 30px; stroke: var(--accent); }

.cv-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.cv-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
.footer {
  background: var(--navy-950);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-brand { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; font-weight: 700; }
.footer-copy  { font-size: 0.82rem; color: var(--text-muted); }
.footer-copy a { color: var(--text-muted); }
.footer-copy a:hover { color: var(--accent); }
.footer-linkedin {
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-linkedin:hover { color: #0a66c2; }

/* ═══════════════════════════════════════════
   FADE-IN ANIMATION
════════════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 860px) {
  :root { --section-pad: 4rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(6, 11, 24, 0.97);
    backdrop-filter: blur(20px);
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 0.25rem;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .linkedin-btn span { display: none; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .about-stats .stat-card:last-child { grid-column: unset; }

  .timeline { padding-left: 1rem; }
  .timeline-card { margin-left: 0.75rem; }

  .cv-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
  }

  .skills-bento {
    grid-template-columns: 1fr;
    grid-template-areas: "ai" "script" "network" "native";
  }
}

@media (max-width: 540px) {
  .hero-title { font-size: 2.5rem; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .about-stats .stat-card:last-child { grid-column: span 2; }
  .bento-card { padding: 1.5rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .contact-card { flex-direction: column; align-items: flex-start; padding: 2rem; }
}

/* ═══════════════════════════════════════════
   RTL OVERRIDES
════════════════════════════════════════════ */
[dir="rtl"] .timeline {
  padding-left: 0;
  padding-right: 1.5rem;
  border-left: none;
  border-right: 2px solid var(--border);
}
[dir="rtl"] .timeline-card { margin-left: 0; margin-right: 1rem; }
[dir="rtl"] .timeline-card:hover { transform: translateX(-4px); }
[dir="rtl"] .timeline-marker { left: unset; right: -1.5rem; transform: translateX(50%); }
[dir="rtl"] .card-date { margin-left: 0; margin-right: auto; }
[dir="rtl"] .hero-cta { flex-direction: row-reverse; }
[dir="rtl"] .about-stats { direction: rtl; }

/* ═══════════════════════════════════════════
   SUB-PAGE TOPBAR (externship.html, cv.html)
════════════════════════════════════════════ */
.subpage-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(6, 11, 24, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--border);
}
.subpage-topbar .nav-inner { justify-content: space-between; }
.back-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.back-link:hover { color: var(--text-primary); }

/* ═══════════════════════════════════════════
   ARTICLE PAGE (externship.html)
════════════════════════════════════════════ */
.article-page { padding-top: calc(var(--nav-h) + 3rem); padding-bottom: 5rem; }
.article-header { max-width: 760px; margin: 0 auto 2.5rem; }
.article-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.article-meta {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.5rem;
}
.article-disclaimer {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--accent-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.article-disclaimer svg { flex-shrink: 0; margin-top: 0.15rem; color: var(--accent); }

.article-content {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
}
.article-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 3rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.article-content h2:first-child { padding-top: 0; border-top: none; margin-top: 0; }
.article-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-bright);
  margin: 2rem 0 0.75rem;
}
.article-content p { margin: 0.9rem 0; }
.article-content strong { color: var(--text-primary); font-weight: 600; }
.article-content em { color: var(--text-secondary); }
.article-content ul, .article-content ol {
  margin: 0.9rem 0;
  padding-left: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.article-content li { margin: 0; }
.article-content a { color: var(--accent-bright); text-underline-offset: 3px; text-decoration: underline; }
.article-content blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  background: rgba(79, 142, 247, 0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-primary);
  font-weight: 500;
}
.article-content hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.article-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.25rem 0;
  font-size: 0.9rem;
}
.article-content th {
  background: var(--accent-subtle);
  color: var(--accent-bright);
  font-weight: 600;
  text-align: left;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
}
.article-content td {
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
}

.print-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px var(--accent-glow);
  transition: transform 0.2s, background 0.2s;
  z-index: 50;
}
.print-btn:hover { background: var(--accent-bright); transform: translateY(-2px); }

@media (max-width: 860px) {
  .print-btn { bottom: 1.25rem; right: 1.25rem; }
}

/* ═══════════════════════════════════════════
   REVIEW BANNER (screen-only, cv.html draft flag)
════════════════════════════════════════════ */
.review-banner {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 90;
  background: #7c4a00;
  color: #ffe4b0;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  padding: 0.55rem 1rem;
}

/* ═══════════════════════════════════════════
   CV DOCUMENT (cv.html)
════════════════════════════════════════════ */
.cv-page { padding-top: calc(var(--nav-h) + 5.5rem); }
@media (max-width: 500px) {
  .cv-page { padding-top: calc(var(--nav-h) + 7.5rem); }
}
.cv-doc { max-width: 760px; margin: 0 auto; }
.cv-doc-header { text-align: center; margin-bottom: 3rem; }
.cv-doc-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}
.cv-doc-tagline { color: var(--accent-bright); font-weight: 600; margin-bottom: 1rem; }
.cv-doc-contact { font-size: 0.9rem; color: var(--text-secondary); }
.cv-doc-contact a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 3px; }
.cv-doc-contact a:hover { color: var(--accent-bright); }
.cv-doc-dot { margin: 0 0.5rem; color: var(--text-muted); }

.cv-doc-section { margin-bottom: 2.5rem; }
.cv-doc-section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.6rem;
  margin-bottom: 1.25rem;
}
.cv-doc-section > p { color: var(--text-secondary); line-height: 1.75; }

.cv-doc-entry { margin-bottom: 1.5rem; }
.cv-doc-entry:last-child { margin-bottom: 0; }
.cv-doc-entry-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.cv-doc-entry-head h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}
.cv-doc-entry-date { font-size: 0.85rem; color: var(--text-muted); white-space: nowrap; }
.cv-doc-entry-org { font-size: 0.9rem; color: var(--accent-bright); margin: 0.15rem 0 0.5rem; font-weight: 500; }
.cv-doc-entry > p:not(.cv-doc-entry-org) { color: var(--text-secondary); line-height: 1.7; }
.cv-doc-entry a { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 3px; }

.cv-doc-skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.cv-doc-skills h3 { font-family: 'Space Grotesk', sans-serif; font-size: 0.95rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.4rem; }
.cv-doc-skills p { font-size: 0.86rem; color: var(--text-secondary); line-height: 1.65; }

.cv-doc-placeholder {
  border: 1px dashed var(--border-hover);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 700px) {
  .cv-doc-skills { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   PRINT
════════════════════════════════════════════ */
@media print {
  .subpage-topbar, .footer, .print-btn, .navbar, .review-banner { display: none !important; }
  body { background: #fff !important; color: #111 !important; }
  .article-page { padding-top: 0 !important; }
  .article-content { color: #222 !important; }
  .article-content h2, .article-content h3, .article-title { color: #000 !important; }
  .article-content a { color: #1a4fb0 !important; }
  .article-disclaimer { background: #f2f2f2 !important; border-color: #ccc !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .article-content blockquote { background: #f6f6f6 !important; border-left-color: #999 !important; }

  .cv-doc-name, .cv-doc-entry-head h3, .cv-doc-section h2, .cv-doc-skills h3 { color: #000 !important; }
  .cv-doc-tagline, .cv-doc-entry-org { color: #1a4fb0 !important; }
  .cv-doc-contact, .cv-doc-section > p, .cv-doc-entry > p, .cv-doc-skills p, .cv-doc-entry-date { color: #333 !important; }
  .cv-doc-contact a, .cv-doc-entry a { color: #1a4fb0 !important; }
  .cv-doc-section h2 { border-bottom-color: #ccc !important; }
  .cv-doc-placeholder { border-color: #999 !important; color: #666 !important; }
}
