/* =============================================
   JOMRIVAS.COM — Design System
   Palette: Navy #0D1B2A | Blue #1A6CF6 | Cyan #00D4E8 | Light #F8FAFF | Mid #8896A5
   Fonts: Space Grotesk (display) + Inter (body) + JetBrains Mono (code)
   ============================================= */

/* ── Reset & Root ──────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #0D1B2A;
  --navy2:   #111E2F;
  --navy3:   #162235;
  --blue:    #1A6CF6;
  --cyan:    #00D4E8;
  --white:   #F8FAFF;
  --mid:     #8896A5;
  --border:  rgba(26,108,246,0.18);
  --glass:   rgba(13,27,42,0.7);
  --glow-b:  rgba(26,108,246,0.35);
  --glow-c:  rgba(0,212,232,0.25);

  --ff-display: 'Space Grotesk', sans-serif;
  --ff-body:    'Inter', sans-serif;
  --ff-mono:    'JetBrains Mono', monospace;

  --section-pad: clamp(5rem, 10vw, 9rem);
  --container:   1200px;
  --radius:      16px;
  --radius-sm:   10px;
  --transition:  0.3s cubic-bezier(0.4,0,0.2,1);
}

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

body {
  font-family: var(--ff-body);
  background-color: var(--navy);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Custom cursor ─────────────────────────── */
.cursor, .cursor-trail {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.3s;
}
.cursor {
  width: 10px; height: 10px;
  background: var(--cyan);
  transform: translate(-50%,-50%);
  mix-blend-mode: screen;
}
.cursor-trail {
  width: 30px; height: 30px;
  border: 1px solid rgba(0,212,232,0.5);
  transform: translate(-50%,-50%);
  transition: left 0.12s, top 0.12s, opacity 0.3s;
}
@media (hover: none) { .cursor, .cursor-trail { display: none; } }

/* ── Scroll Progress ───────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  z-index: 10000;
  transition: width 0.1s;
}

/* ── Container ─────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

/* ── Shared section styles ─────────────────── */
.section { padding: var(--section-pad) 0; }

.section-eyebrow {
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--cyan);
}

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 2.5rem;
}

.section-header { margin-bottom: 3.5rem; }

.gradient-text {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ───────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background: linear-gradient(135deg, var(--blue), #0e52c8);
  color: var(--white);
  text-decoration: none;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 24px rgba(26,108,246,0.35);
  border: 1px solid rgba(26,108,246,0.5);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(26,108,246,0.5);
  background: linear-gradient(135deg, #2a7aff, var(--blue));
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background: transparent;
  color: var(--white);
  text-decoration: none;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.btn-ghost:hover {
  border-color: var(--blue);
  background: rgba(26,108,246,0.1);
  transform: translateY(-2px);
}

/* ── Chips ─────────────────────────────────── */
.chip {
  display: inline-flex;
  padding: 0.35rem 0.85rem;
  background: rgba(26,108,246,0.12);
  border: 1px solid rgba(26,108,246,0.3);
  border-radius: 100px;
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  color: var(--cyan);
  white-space: nowrap;
}
.about-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

/* ── Reveal animations ─────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════ */
.nav-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}
.nav-header.scrolled {
  background: rgba(13,27,42,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.75rem 0;
  box-shadow: 0 1px 0 rgba(26,108,246,0.2);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem,5vw,3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: -0.02em;
}

.logo-nav { width: 32px; height: 32px; flex-shrink: 0; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}
.nav-link {
  padding: 0.5rem 0.85rem;
  color: var(--mid);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  transition: var(--transition);
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.05); }

.nav-cta {
  padding: 0.55rem 1.25rem;
  background: linear-gradient(135deg, var(--blue), #0e52c8);
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  transition: var(--transition);
  box-shadow: 0 2px 16px rgba(26,108,246,0.4);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 24px rgba(26,108,246,0.5); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(13,27,42,0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.mobile-menu.open { display: flex; }
.mobile-menu ul { list-style: none; text-align: center; }
.mobile-link {
  display: block;
  padding: 1.1rem 2rem;
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  transition: color var(--transition);
}
.mobile-link:hover { color: var(--cyan); }
.mobile-cta {
  margin-top: 1rem;
  color: var(--cyan);
}

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 8rem clamp(1.25rem,5vw,3rem) 5rem;
  max-width: var(--container);
  margin: 0 auto;
  overflow: hidden;
}

/* Mesh gradient background */
.hero-mesh {
  position: fixed;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 80vh;
  background: radial-gradient(ellipse at center,
    rgba(26,108,246,0.12) 0%,
    rgba(0,212,232,0.06) 40%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: meshFloat 8s ease-in-out infinite;
}
@keyframes meshFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-3%, 3%) scale(1.05); }
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,108,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,108,246,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,0.5) 30%, rgba(0,0,0,0.5) 70%, transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(0,212,232,0.08);
  border: 1px solid rgba(0,212,232,0.25);
  border-radius: 100px;
  font-family: var(--ff-mono);
  font-size: 0.8rem;
  color: var(--cyan);
  margin-bottom: 1.5rem;
}
.dot {
  width: 7px; height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,212,232,0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(0,212,232,0); }
}

.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.hero-name {
  display: block;
  font-size: 0.55em;
  font-weight: 500;
  color: var(--mid);
  letter-spacing: 0;
  margin-bottom: 0.3rem;
  font-family: var(--ff-body);
}
.hero-role {
  display: block;
  background: linear-gradient(135deg, var(--white) 40%, var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-role em {
  font-style: normal;
  color: var(--blue);
  -webkit-text-fill-color: var(--blue);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--mid);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-unit { font-size: 1.4rem; font-weight: 700; color: var(--cyan); }
.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--mid);
  margin-top: 0.15rem;
}
.stat-divider {
  width: 1px;
  height: 2.5rem;
  background: var(--border);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.logo-frame {
  position: relative;
  width: 360px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-hero {
  width: 200px;
  height: 200px;
  filter: drop-shadow(0 0 40px rgba(26,108,246,0.5)) drop-shadow(0 0 80px rgba(0,212,232,0.2));
  animation: heroFloat 4s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}


.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: orbitSpin linear infinite;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}
.orbit-1 {
  width: 260px; height: 260px;
  border-color: rgba(26,108,246,0.2);
  animation-duration: 20s;
}
.orbit-2 {
  width: 340px; height: 340px;
  border-color: rgba(0,212,232,0.1);
  animation-duration: 35s;
  animation-direction: reverse;
}
@keyframes orbitSpin {
  from { transform: translate(-50%,-50%) rotate(0deg); }
  to   { transform: translate(-50%,-50%) rotate(360deg); }
}

.tech-badge {
  position: absolute;
  padding: 0.35rem 0.85rem;
  background: rgba(13,27,42,0.9);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  white-space: nowrap;
  backdrop-filter: blur(10px);
  animation: badgePulse 3s ease-in-out infinite;
}
.badge-rf { top: 15%;  left: -10%; animation-delay: 0s; }
.badge-pw { top: 15%;  right: -5%; animation-delay: 0.8s; }
.badge-py { bottom: 25%; left: -15%; animation-delay: 1.6s; }
.badge-ap { bottom: 25%; right: -10%; animation-delay: 2.4s; }
@keyframes badgePulse {
  0%, 100% { transform: translateY(0); opacity: 0.8; }
  50%       { transform: translateY(-6px); opacity: 1; }
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  color: var(--mid);
  letter-spacing: 0.1em;
}
.scroll-wheel {
  width: 22px; height: 36px;
  border: 1.5px solid var(--mid);
  border-radius: 11px;
  position: relative;
}
.scroll-wheel::after {
  content: '';
  position: absolute;
  top: 5px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--cyan);
  border-radius: 2px;
  animation: scrollWheel 2s ease-in-out infinite;
}
@keyframes scrollWheel {
  0% { top: 5px; opacity: 1; }
  100% { top: 18px; opacity: 0; }
}

/* ══════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════ */
.about {
  background: var(--navy2);
  position: relative;
}
.about::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}

.about-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 5rem;
  align-items: start;
}

.about-img-wrap {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
}
.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%) contrast(1.05);
  transition: filter 0.5s;
}
.about-img-wrap:hover .about-img { filter: grayscale(0%) contrast(1); }
.img-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(13,27,42,0.8));
  pointer-events: none;
}

.corner {
  position: absolute;
  width: 28px; height: 28px;
  border-color: var(--blue);
  border-style: solid;
}
.corner-tl { top: 12px; left: 12px; border-width: 2px 0 0 2px; }
.corner-br { bottom: 12px; right: 12px; border-width: 0 2px 2px 0; }

.social-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  justify-content: center;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: rgba(26,108,246,0.08);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--mid);
  text-decoration: none;
  transition: var(--transition);
}
.social-link:hover {
  background: rgba(26,108,246,0.2);
  border-color: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

.about-lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.about-body {
  font-size: 0.98rem;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.about-body strong { color: var(--white); }
.about-body em { color: var(--cyan); font-style: normal; }

/* ══════════════════════════════════════════════
   SKILLS — BENTO
══════════════════════════════════════════════ */
.skills { position: relative; }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 1.25rem;
}

.bento-cell {
  background: rgba(22,34,53,0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.bento-cell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,108,246,0.04), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.bento-cell:hover::before { opacity: 1; }
.bento-cell:hover {
  border-color: rgba(26,108,246,0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(26,108,246,0.15);
}

.bento-large  { grid-column: span 2; }
.bento-tall   { grid-row: span 2; }
.bento-wide   { grid-column: span 2; }
.bento-accent {
  background: linear-gradient(135deg, rgba(26,108,246,0.15), rgba(0,212,232,0.05));
  border-color: rgba(26,108,246,0.35);
}

.bento-icon { margin-bottom: 1rem; }
.bento-title {
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--white);
}

/* Skill bars */
.skill-list { display: flex; flex-direction: column; gap: 0.85rem; }
.skill-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--mid);
}
.skill-bar {
  height: 4px;
  background: rgba(255,255,255,0.07);
  border-radius: 2px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border-radius: 2px;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

/* Lang tags */
.lang-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.lang-tag {
  padding: 0.3rem 0.7rem;
  background: rgba(26,108,246,0.1);
  border: 1px solid rgba(26,108,246,0.25);
  border-radius: 6px;
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  color: var(--mid);
  transition: var(--transition);
}
.lang-tag:hover { border-color: var(--blue); color: var(--white); }

/* Bento list */
.bento-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.88rem;
  color: var(--mid);
}
.bento-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.bento-list li::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Method row */
.method-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
}
.method-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--mid);
}
.method-dot {
  width: 6px; height: 6px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 50%;
}

/* ══════════════════════════════════════════════
   EXPERIENCE
══════════════════════════════════════════════ */
.experience { background: var(--navy2); }
.experience::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}
.experience { position: relative; }

.timeline { display: flex; flex-direction: column; gap: 0; }

.timeline-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 1.5rem;
  padding-bottom: 3rem;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.35rem;
}
.marker-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--navy2);
  border: 2px solid var(--border);
  flex-shrink: 0;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}
.marker-dot.current {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0,212,232,0.15), 0 0 16px rgba(0,212,232,0.3);
}
.marker-dot.current::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--cyan);
  border-radius: 50%;
}
.timeline-item:hover .marker-dot { border-color: var(--blue); }

.marker-line {
  flex: 1;
  width: 1px;
  background: linear-gradient(to bottom, var(--border), transparent);
  margin-top: 0.5rem;
}

.timeline-card {
  background: rgba(22,34,53,0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: var(--transition);
}
.timeline-card:hover {
  border-color: rgba(26,108,246,0.35);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.tl-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.tl-period {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  color: var(--mid);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.4rem;
}
.current-badge {
  color: var(--cyan) !important;
}
.tl-role {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.25rem;
}
.tl-company {
  font-size: 0.88rem;
  color: var(--mid);
}
.tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  flex-shrink: 0;
}
.tl-tag {
  padding: 0.25rem 0.65rem;
  background: rgba(26,108,246,0.1);
  border: 1px solid rgba(26,108,246,0.25);
  border-radius: 4px;
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  color: var(--blue);
}
.tl-desc {
  font-size: 0.92rem;
  color: var(--mid);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.tl-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.tl-bullets li {
  font-size: 0.88rem;
  color: var(--mid);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.tl-bullets li::before {
  content: '→';
  color: var(--cyan);
  flex-shrink: 0;
  font-size: 0.8rem;
  margin-top: 0.1em;
}

/* Education strip */
.edu-strip {
  margin-top: 1rem;
  background: rgba(22,34,53,0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.edu-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.edu-header svg { color: var(--cyan); flex-shrink: 0; }
.edu-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.edu-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.25rem;
  background: rgba(13,27,42,0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.edu-year {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  color: var(--cyan);
}
.edu-card strong {
  font-size: 0.9rem;
  color: var(--white);
}
.edu-card span {
  font-size: 0.8rem;
  color: var(--mid);
}

/* ══════════════════════════════════════════════
   PROJECTS
══════════════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.project-card {
  background: rgba(22,34,53,0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}
.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,108,246,0.05), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.project-card:hover::after { opacity: 1; }
.project-card:hover {
  border-color: rgba(26,108,246,0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(26,108,246,0.1);
}

.card-featured {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(26,108,246,0.12), rgba(0,212,232,0.04));
  border-color: rgba(26,108,246,0.3);
}

.project-tag {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  letter-spacing: 0.08em;
}
.project-title {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}
.project-sub {
  font-size: 0.85rem;
  color: var(--blue);
  font-family: var(--ff-mono);
}
.project-desc {
  font-size: 0.92rem;
  color: var(--mid);
  line-height: 1.75;
  flex: 1;
}
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}
.project-tech span {
  padding: 0.25rem 0.65rem;
  background: rgba(13,27,42,0.8);
  border: 1px solid rgba(26,108,246,0.2);
  border-radius: 4px;
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  color: var(--mid);
}
.project-meta { margin-top: 0.5rem; }
.project-status {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
}
.status-wip { color: #f59e0b; }

/* ══════════════════════════════════════════════
   VOLUNTEERING
══════════════════════════════════════════════ */
.volunteering {
  background: var(--navy2);
  position: relative;
  overflow: hidden;
}
.volunteering::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}

.volunteer-wrap {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 5rem;
  align-items: center;
}

.volunteer-lead {
  font-size: 1.1rem;
  color: var(--white);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.volunteer-lead strong { color: var(--cyan); }
.volunteer-body {
  font-size: 0.95rem;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.scout-values {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.scout-value {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.sv-icon {
  width: 44px; height: 44px;
  background: rgba(26,108,246,0.1);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.scout-value strong {
  display: block;
  font-size: 0.9rem;
  color: var(--white);
  margin-bottom: 0.2rem;
}
.scout-value p {
  font-size: 0.85rem;
  color: var(--mid);
  line-height: 1.6;
}

.volunteer-visual {
  display: flex;
  justify-content: center;
}
.scout-badge-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 320px;
}
.scout-fleur {
  width: 220px;
  filter: drop-shadow(0 0 30px rgba(26,108,246,0.4));
  animation: heroFloat 5s ease-in-out infinite;
}
.scout-label {
  text-align: center;
}
.scout-label span {
  display: block;
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.scout-label small {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  color: var(--mid);
}

/* ══════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════ */
.contact { position: relative; overflow: hidden; }
.contact::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(26,108,246,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.contact-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-sub {
  font-size: 1rem;
  color: var(--mid);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  margin-top: -1rem;
}

.contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 2.5rem;
  background: linear-gradient(135deg, var(--blue), #0e52c8);
  color: var(--white);
  text-decoration: none;
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 10px;
  transition: var(--transition);
  box-shadow: 0 8px 32px rgba(26,108,246,0.4);
  margin-bottom: 2rem;
}
.contact-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(26,108,246,0.55);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}
.clink {
  font-size: 0.9rem;
  color: var(--mid);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}
.clink::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.clink:hover { color: var(--white); }
.clink:hover::after { transform: scaleX(1); }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background: var(--navy);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--mid);
  transition: color var(--transition);
}
.footer-logo:hover { color: var(--white); }
.footer-copy {
  font-size: 0.8rem;
  color: var(--mid);
}
.back-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: rgba(26,108,246,0.1);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--mid);
  text-decoration: none;
  transition: var(--transition);
}
.back-top:hover {
  background: rgba(26,108,246,0.2);
  border-color: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 3rem;
  }
  .hero-visual { justify-content: flex-start; }
  .about-grid { grid-template-columns: 1fr; }
  .about-image-col { display: grid; grid-template-columns: 300px 1fr; gap: 2rem; align-items: start; }
  .about-img-wrap { max-width: 300px; }
  .bento-large { grid-column: span 1; }
  .bento-wide  { grid-column: span 1; }
  .bento-grid  { grid-template-columns: repeat(2,1fr); }
  .volunteer-wrap { grid-template-columns: 1fr; }
  .volunteer-visual { display: none; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }

  .hero {
    padding-top: 7rem;
    padding-bottom: 4rem;
  }
  .hero-visual { display: none; }
  .hero-stats { gap: 1.25rem; }

  .about-image-col { grid-template-columns: 1fr; }
  .about-img-wrap { max-width: 100%; aspect-ratio: 3/2; }

  .bento-grid { grid-template-columns: 1fr; }
  .bento-tall { grid-row: auto; }

  .projects-grid { grid-template-columns: 1fr; }
  .card-featured { grid-column: span 1; }

  .timeline-item { grid-template-columns: 24px 1fr; gap: 1rem; }
  .tl-head { flex-direction: column; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  :root { --section-pad: 4rem; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
  .hero-stats { flex-wrap: wrap; gap: 1rem; }
  .stat-divider { display: none; }
  .contact-links { gap: 1.25rem; }
}

/* ── Focus visible ─────────────────────────── */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Reduced motion ────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
