/* ==========================================================================
   Angel Sheu — Medical Student Portfolio
   Design system grounded in TCU's official brand palette:
   Horned Frog Purple (primary) + Trinity Blue & Brick Buff (Executive
   secondary palette) — https://brand.tcu.edu
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* TCU brand colors */
  --purple: #4d1979;          /* Horned Frog Purple — PMS 268 C, official TCU primary */
  --purple-deep: #34115a;     /* darker step for gradients & hover states */
  --purple-pale: #f3eef9;     /* light tint for backgrounds, badge fills */
  --purple-pale-2: #ece2f5;
  --blue: #5e88b4;            /* Trinity Blue — TCU Executive secondary palette */
  --blue-deep: #3f6a95;
  --buff: #e2d0a6;            /* TCU Brick Buff — TCU Executive secondary palette */
  --buff-deep: #b99a5f;

  /* Neutrals */
  --ink: #1f1729;             /* near-black w/ warm purple undertone, for headings */
  --slate: #5a5568;           /* muted body copy */
  --slate-light: #8b8696;
  --line: #e6e1ec;            /* hairline borders/dividers */
  --paper: #fbfaf9;           /* page background */
  --white: #ffffff;

  /* Type */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(31, 23, 41, 0.06), 0 1px 1px rgba(31, 23, 41, 0.04);
  --shadow-md: 0 10px 30px -8px rgba(77, 25, 121, 0.16), 0 2px 8px rgba(31, 23, 41, 0.05);
  --shadow-lg: 0 24px 48px -12px rgba(77, 25, 121, 0.22), 0 4px 12px rgba(31, 23, 41, 0.06);

  /* Shape & motion */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.6em 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 1.6rem + 2vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 1.3rem + 0.9vw, 2rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }

p { margin: 0 0 1em 0; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--purple);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--blue-deep); }

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

ul { list-style: none; margin: 0; padding: 0; }

::selection { background: var(--purple); color: var(--white); }

/* Accessible focus ring everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Small caps / eyebrow utility voice — used for labels, badges, breadcrumbs */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-deep);
}

/* ---------- Layout ---------- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

main { display: block; }

/* ---------- Navigation ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 249, 0.85);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
}

.nav-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  color: var(--purple) !important;
  text-decoration: none !important;
}

.nav-brand { display: flex; align-items: center; gap: 1rem; }

.landing-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--slate) !important;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.32rem 0.75rem;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.landing-link i { color: var(--buff-deep); font-size: 0.72rem; }
.landing-link:hover {
  border-color: var(--purple);
  color: var(--purple) !important;
  background: var(--purple-pale);
}

@media (max-width: 560px) {
  .landing-link span { display: none; }
  .landing-link { padding: 0.4rem; }
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--purple);
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-bottom: 0.9rem;
}

.nav-links li a {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-links li a:hover { background: var(--purple-pale); color: var(--purple); }

.nav-links li a.active {
  background: var(--purple);
  color: var(--white) !important;
}

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    max-height: 0;
    overflow: hidden;
    padding-bottom: 0;
    transition: max-height 0.35s var(--ease), padding 0.35s var(--ease);
  }
  .nav-links.active { max-height: 480px; padding-bottom: 1rem; }
  .nav-links li a { display: block; }
}

/* ---------- Hero (index.html) ---------- */
.hero-area {
  position: relative;
  background: linear-gradient(155deg, var(--purple) 0%, var(--purple-deep) 62%, #260c40 100%);
  overflow: hidden;
  padding: 4.5rem 1.5rem 5rem;
}

.hero-area::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 0%, rgba(94, 136, 180, 0.35), transparent 60%),
    radial-gradient(ellipse 45% 45% at 5% 100%, rgba(226, 208, 166, 0.14), transparent 60%);
  pointer-events: none;
}

/* Heartbeat / vitals line — the signature motif, drawn in on load */
.ekg-line {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  height: 34px;
  margin: 0 0 1.6rem;
  opacity: 0.85;
}
.ekg-line path {
  fill: none;
  stroke: var(--buff);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: draw-ekg 1.8s var(--ease) 0.3s forwards;
}
@keyframes draw-ekg {
  to { stroke-dashoffset: 0; }
}

.profile-container {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
}

.profile-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.profile-content .profile-img {
  width: 190px;
  height: 190px;
  flex-shrink: 0;
  border: 4px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-lg);
}

.profile-text h1 {
  color: var(--white);
  margin-bottom: 0.3rem;
}

.tagline {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--buff);
  margin-bottom: 1.6rem;
  letter-spacing: 0.01em;
}

.profile-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-badges .badge {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--white);
}
.hero-badges .badge i { color: var(--buff); }

@media (max-width: 720px) {
  .profile-content { flex-direction: column; text-align: center; }
  .profile-cta { justify-content: center; }
  .hero-badges { justify-content: center; }
  .ekg-line { margin-left: auto; margin-right: auto; }
}

/* ---------- Page Header (inner pages) ---------- */
.page-header {
  position: relative;
  background: linear-gradient(120deg, var(--purple) 0%, var(--purple-deep) 100%);
  padding: 3.2rem 1.5rem 3.6rem;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 90% 10%, rgba(94, 136, 180, 0.32), transparent 65%);
  pointer-events: none;
}

.page-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='14' viewBox='0 0 140 14'%3E%3Cpolyline points='0,7 46,7 53,1 60,13 67,7 140,7' fill='none' stroke='%23e2d0a6' stroke-width='1.4' stroke-opacity='0.55'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 140px 14px;
  opacity: 0.8;
}

.header-container {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
}

.page-header h1 { color: var(--white); margin-bottom: 0.5rem; }

.breadcrumbs {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.03em;
}
.breadcrumbs a { color: rgba(255, 255, 255, 0.75); }
.breadcrumbs a:hover { color: var(--white); }
.breadcrumbs i { margin: 0 0.4em; font-size: 0.7em; }

/* ---------- Card & Section Header ---------- */
.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  top: 0; left: 2.4rem; right: 2.4rem;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--purple), var(--blue));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.card:hover { box-shadow: var(--shadow-md); }
.card:hover::before { opacity: 1; }

.section-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.section-header i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--blue-deep));
  color: var(--white);
  line-height: 1;
  overflow: hidden;
  font-size: 1.15rem;
  box-shadow: var(--shadow-sm);
}

.section-header h2 { margin: 0; }

/* scroll-reveal utility, toggled by script.js via IntersectionObserver */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Buttons ---------- */
.primary-btn,
.secondary-btn,
.download-btn,
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

.primary-btn,
.download-btn,
button[type="submit"] {
  background: linear-gradient(120deg, var(--purple), var(--blue-deep));
  color: var(--white) !important;
  box-shadow: 0 8px 20px -6px rgba(77, 25, 121, 0.45);
}
.primary-btn:hover,
.download-btn:hover,
button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -6px rgba(77, 25, 121, 0.5);
}

.secondary-btn {
  background: transparent;
  border-color: var(--purple);
  color: var(--purple) !important;
}
.secondary-btn:hover {
  background: var(--purple-pale);
  transform: translateY(-2px);
}

.button-group { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }

/* ---------- Timeline / Timeline List ---------- */
.timeline-list li {
  position: relative;
  padding: 0 0 1.6rem 1.5rem;
  border-left: 2px solid var(--line);
}
.timeline-list li:last-child { padding-bottom: 0; }
.timeline-list li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0.3em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px var(--purple-pale);
}
.timeline-list strong {
  display: block;
  color: var(--ink);
  font-size: 1.02rem;
  margin-bottom: 0.2rem;
}
.timeline-list em {
  display: block;
  font-style: normal;
  color: var(--blue-deep);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  margin-bottom: 0.5rem;
}
.timeline-list p { color: var(--slate); }
.timeline-list p a { font-weight: 600; white-space: nowrap; }

.timeline { display: flex; flex-direction: column; gap: 1.8rem; }
.timeline-item { display: flex; gap: 1.2rem; }
.timeline-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--purple), var(--blue-deep));
  color: var(--white);
  line-height: 1;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.timeline-date {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 0.25rem;
}
.institution-details { color: var(--slate-light); font-size: 0.92rem; margin-bottom: 0.6rem; }
.achievement-list { display: flex; flex-direction: column; gap: 0.45rem; }
.achievement { display: flex; align-items: flex-start; gap: 0.55rem; font-size: 0.92rem; }
.achievement i { color: var(--buff-deep); margin-top: 0.25em; }

/* ---------- Badges & Quote ---------- */
.badges-container { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--purple-pale);
  border: 1px solid var(--purple-pale-2);
  color: var(--purple);
  font-size: 0.8rem;
  font-weight: 600;
}
.badge i { color: var(--blue-deep); }

.quote {
  position: relative;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--purple-pale);
  border-left: 3px solid var(--purple);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.2rem 1.5rem 1.2rem 2.4rem;
  margin: 1.4rem 0;
}
.quote::before {
  content: "\201C";
  position: absolute;
  left: 0.5rem;
  top: 0.1rem;
  font-size: 2.4rem;
  color: var(--blue);
  opacity: 0.55;
  font-family: Georgia, serif;
}

/* ---------- Skill tags ---------- */
.skills-section h3 {
  margin-top: 1.6rem;
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
}
.skills-section h3:first-child { margin-top: 0; }

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.4rem;
}
.skill-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--purple-pale);
  border: 1px solid var(--purple-pale-2);
  color: var(--purple);
  font-size: 0.85rem;
  font-weight: 600;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.skill-tag:hover {
  transform: translateY(-2px);
  background: var(--purple-pale-2);
  border-color: var(--purple);
}

/* ---------- List with icons (About > Passions) ---------- */
.list-with-icons li {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.list-with-icons li:last-child { border-bottom: none; padding-bottom: 0; }
.list-with-icons li:first-child { padding-top: 0; }
.list-with-icons > li > i {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--purple), var(--blue-deep));
  color: var(--white);
  line-height: 1;
  overflow: hidden;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
}
.list-content h3 { margin-bottom: 0.25rem; font-size: 1rem; }
.list-content p { color: var(--slate); font-size: 0.93rem; }

/* ---------- Interests / Resources grid ---------- */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
.interest-item { display: flex; gap: 1rem; }
.interest-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--purple), var(--blue-deep));
  color: var(--white);
  line-height: 1;
  overflow: hidden;
  font-size: 1.05rem;
  box-shadow: var(--shadow-sm);
}
.interest-text h3 { font-size: 0.98rem; margin-bottom: 0.25rem; }
.interest-text p { font-size: 0.9rem; color: var(--slate); }

/* ---------- About: intro / bio ---------- */
.about-flex { display: flex; gap: 2.4rem; align-items: flex-start; }
.about-image { flex-shrink: 0; text-align: center; }
.about-bio { flex: 1; min-width: 0; }
.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--purple-pale-2);
  box-shadow: var(--shadow-md);
  margin: 0 auto;
}
.profile-img.large { width: 200px; height: 200px; }

@media (max-width: 720px) {
  .about-flex { flex-direction: column; align-items: center; text-align: center; }
}

/* ---------- Education: featured school & stats ---------- */
.education-featured .featured-school {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}
.school-logo {
  flex-shrink: 0;
  width: 110px;
  height: 110px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--purple), var(--blue-deep));
  color: var(--white);
  line-height: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  box-shadow: var(--shadow-md);
}
.school-logo i { font-size: 1.6rem; }
.school-years { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; }
.school-name { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 0.7rem; }
.school-name h2 { margin: 0; }

.stats-container {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.3rem;
  flex-wrap: wrap;
}
.stat-item {
  background: var(--purple-pale);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.3rem;
  text-align: center;
  min-width: 100px;
}
.stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-top: 0.2rem;
}

@media (max-width: 720px) {
  .education-featured .featured-school { flex-direction: column; text-align: center; }
}

/* ---------- Course grid, rotations, certs, projects ---------- */
.course-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.course-category h3 { margin-bottom: 0.7rem; }
.course-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0;
  font-size: 0.92rem;
  color: var(--slate);
}
.course-list i { color: var(--blue); }

.rotations-container { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.rotation-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.3rem 1.4rem;
}
.rotation-header { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.5rem; }
.rotation-header i { color: var(--purple); }
.rotation-header h3 { margin: 0; flex: 1; }
.rotation-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  white-space: nowrap;
}
.rotation-item p { font-size: 0.9rem; margin: 0; }

.projects-container { display: flex; flex-direction: column; gap: 1.5rem; }
.project-item { display: flex; gap: 1.2rem; }
.project-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--purple), var(--blue-deep));
  color: var(--white);
  line-height: 1;
  overflow: hidden;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
}
.project-meta { display: flex; gap: 1rem; flex-wrap: wrap; margin: 0.35rem 0 0.6rem; }
.project-meta span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.project-outcome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--purple);
  margin-top: 0.6rem;
}

.cert-container { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.cert-group h3 { margin-bottom: 0.9rem; }
.cert-items { display: flex; flex-direction: column; gap: 0.9rem; }
.cert-item { display: flex; align-items: center; gap: 0.9rem; }
.cert-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--purple), var(--blue-deep));
  color: var(--white);
  line-height: 1;
  overflow: hidden;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}
.cert-content h4 { margin-bottom: 0.1rem; }
.cert-content p { font-size: 0.85rem; color: var(--slate-light); }

.contact-cta {
  text-align: center;
  background: linear-gradient(120deg, var(--purple-pale), var(--purple-pale-2));
  border-radius: var(--radius-lg);
  padding: 2.4rem;
}
.contact-cta .button-group { justify-content: center; }

/* ---------- CV page ---------- */
.about-flex .profile-cta { margin-top: 1.3rem; }
.pdf-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}
.pdf-viewer, embed.pdf-viewer {
  width: 100%;
  height: 640px;
  border: none;
  display: block;
}
.pdf-fallback { text-align: center; padding: 1rem; margin: 0; }

/* Homepage's inline PDF preview (index.html #cv) */
#cv .pdf-viewer {
  width: 100%;
  height: 480px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-top: 1rem;
}
#cv .pdf-viewer iframe { width: 100%; height: 100%; border: none; }
#cv .download-btn { margin-top: 1rem; }
#cv .download-text { display: inline-flex; align-items: center; gap: 0.4rem; }

/* ---------- Contact page ---------- */
.contact-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  margin-top: 1.6rem;
}
.contact-info { display: flex; flex-direction: column; gap: 1.4rem; }
.contact-item { padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: none; padding-bottom: 0; }
.contact-header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.3rem; }
.contact-header i {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--purple), var(--blue-deep));
  color: var(--white);
  line-height: 1;
  overflow: hidden;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}
.contact-header h3 { margin: 0; font-size: 0.98rem; }
.contact-item p { color: var(--slate); font-size: 0.93rem; }

.linkedin-card {
  background: linear-gradient(150deg, var(--purple), var(--purple-deep));
  border-radius: var(--radius-md);
  padding: 2rem 1.6rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-md);
}
.linkedin-card .profile-img {
  width: 96px;
  height: 96px;
  border-color: rgba(255, 255, 255, 0.5);
}
.linkedin-card p:empty { display: none; }

.map-container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.6rem; align-items: center; }
.responsive-map { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.map-placeholder { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.map-info p { margin-bottom: 1rem; }

.social-connect { text-align: center; }
.social-icons { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.2rem; }
.social-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 88px;
  padding: 1rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  color: var(--slate) !important;
  font-size: 0.78rem;
  font-weight: 600;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.social-icon i { font-size: 1.3rem; color: var(--purple); }
.social-icon:hover { border-color: var(--purple); color: var(--purple) !important; transform: translateY(-2px); }

.faq-container { display: flex; flex-direction: column; gap: 0.7rem; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq-question {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.2rem;
  cursor: pointer;
  user-select: none;
}
.faq-question h3 { margin: 0; font-size: 0.98rem; flex: 1; }
.faq-question i {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--blue-deep));
  color: var(--white);
  line-height: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: transform 0.25s var(--ease);
}
.faq-item.active .faq-question i { background: var(--buff-deep); color: var(--white); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.2rem;
  transition: max-height 0.3s var(--ease), padding 0.3s var(--ease);
}
.faq-item.active .faq-answer { max-height: 220px; padding: 0 1.2rem 1.1rem; }
.faq-answer p { color: var(--slate); font-size: 0.93rem; }

@media (max-width: 780px) {
  .contact-container,
  .map-container,
  .course-grid,
  .cert-container,
  .rotations-container {
    grid-template-columns: 1fr;
  }
}

/* ---------- Forms ---------- */
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(94, 136, 180, 0.2);
}
.form-group textarea { resize: vertical; min-height: 110px; }

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.65);
  padding: 2.6rem 1.5rem;
  text-align: center;
}
footer p { font-size: 0.85rem; margin-bottom: 1rem; }
.footer-content {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.78rem;
  font-weight: 600;
}
.footer-link i { font-size: 1.15rem; color: var(--buff); }
.footer-link.swing:hover { color: var(--white) !important; }
.footer-link.swing:hover i { animation: swing 0.6s var(--ease); }
@keyframes swing {
  20% { transform: rotate(12deg); }
  40% { transform: rotate(-10deg); }
  60% { transform: rotate(6deg); }
  80% { transform: rotate(-4deg); }
  100% { transform: rotate(0); }
}

/* ---------- Press page ---------- */
.timeline-list li em + p a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.3rem;
  font-weight: 700;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .two-column,
  .interests-grid { grid-template-columns: 1fr; }
  .card { padding: 1.8rem; }
}

@media (max-width: 640px) {
  .container { padding: 2rem 1.1rem 3.5rem; }
  h1 { font-size: 2rem; }
  .card { padding: 1.5rem; border-radius: var(--radius-md); }
  .card::before { left: 1.5rem; right: 1.5rem; }
  .button-group { flex-direction: column; }
  .button-group a { justify-content: center; }
}

/* ---------- Print ---------- */
@media print {
  nav, footer, .menu-toggle, .ekg-line, .profile-cta, .button-group,
  .contact-form, .faq-question i, iframe,
  .scroll-progress, .back-to-top { display: none !important; }

  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }

  .hero-area {
    background: none !important;
    color: #000;
    padding: 0 0 1.5rem;
  }
  .hero-area::before { display: none; }
  .profile-text h1, .tagline, .eyebrow { color: #000 !important; }

  .card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .card::before { display: none; }
}

/* ---------- Landing / Splash Page ---------- */
.landing-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.6rem 1.8rem;
}
.landing-nav .logo { color: var(--white) !important; }
.landing-nav .skip-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.landing-nav .skip-link:hover { border-color: rgba(255, 255, 255, 0.8); color: var(--white) !important; }

.landing-hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 7rem 1.5rem 4rem;
  background: linear-gradient(165deg, var(--purple) 0%, var(--purple-deep) 55%, #1c0836 100%);
  color: var(--white);
}
.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 85% 8%, rgba(94, 136, 180, 0.4), transparent 60%),
    radial-gradient(ellipse 50% 45% at 10% 95%, rgba(226, 208, 166, 0.16), transparent 60%);
  pointer-events: none;
}
.landing-hero::after {
  /* faint concentric ring, echoes the EKG signature without repeating it literally */
  content: "";
  position: absolute;
  width: 900px; height: 900px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.landing-hero-inner { position: relative; z-index: 1; max-width: 760px; }
.landing-hero .eyebrow { color: var(--buff); display: block; margin-bottom: 1.1rem; }
.landing-hero h1 {
  color: var(--white);
  font-size: clamp(2.8rem, 2.1rem + 4vw, 5.2rem);
  margin-bottom: 1rem;
}
.landing-hero .landing-sub {
  max-width: 540px;
  margin: 0 auto 2.4rem;
  font-size: 1.15rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}
.landing-hero .profile-cta { justify-content: center; }

.scroll-cue {
  position: absolute;
  bottom: 2.2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.scroll-cue i { animation: scroll-bounce 1.8s var(--ease) infinite; }
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(8px); opacity: 1; }
}

.media-section { padding: 5.5rem 1.5rem; max-width: 1180px; margin: 0 auto; }
.media-section-header { text-align: center; max-width: 620px; margin: 0 auto 3.2rem; }
.media-section-header .eyebrow { display: block; margin-bottom: 0.7rem; color: var(--blue-deep); }
.media-section-header p { color: var(--slate); }

.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.8rem; }

.media-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.media-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.media-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--purple-pale), var(--purple-pale-2));
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-thumb i.placeholder-icon { font-size: 2.2rem; color: var(--purple); opacity: 0.35; }
.media-thumb .play-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex; align-items: center; justify-content: center;
  color: var(--purple);
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
}
.media-type-badge {
  position: absolute;
  top: 0.9rem; left: 0.9rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(31, 23, 41, 0.72);
  color: var(--white);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}
.media-card-content { padding: 1.5rem 1.6rem 1.7rem; }
.media-outlet {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 0.5rem;
}
.media-card-content h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.media-card-content .media-date { font-size: 0.8rem; color: var(--slate-light); margin-bottom: 0.7rem; }
.media-card-content p { font-size: 0.88rem; color: var(--slate); }
.media-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.8rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.landing-cta-section {
  text-align: center;
  padding: 4.5rem 1.5rem 6rem;
  background: linear-gradient(180deg, var(--paper), var(--purple-pale));
}
.landing-cta-section h2 { margin-bottom: 0.7rem; }
.landing-cta-section p { max-width: 480px; margin: 0 auto 1.8rem; color: var(--slate); }
.landing-cta-section .primary-btn { font-size: 1rem; padding: 1rem 2.2rem; }

@media (max-width: 640px) {
  .landing-hero { min-height: auto; padding: 6.5rem 1.2rem 4rem; }
  .landing-nav { padding: 1.2rem; }
}

/* ---------- Animation polish ---------- */

/* Hero entrance choreography — pure CSS, runs with or without JS,
   respected by the prefers-reduced-motion override above. */
@keyframes fade-up-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-area .eyebrow { animation: fade-up-in 0.7s var(--ease) 0.05s both; }
.hero-area .profile-img { animation: fade-up-in 0.8s var(--ease) 0.05s both; }
.hero-area h1 { animation: fade-up-in 0.7s var(--ease) 0.2s both; }
.hero-area .tagline { animation: fade-up-in 0.7s var(--ease) 0.35s both; }
.hero-area .profile-cta { animation: fade-up-in 0.7s var(--ease) 0.5s both; }
.hero-area .hero-badges { animation: fade-up-in 0.7s var(--ease) 0.65s both; }
.hero-area .hero-badges .badge:nth-child(1) { animation: fade-up-in 0.5s var(--ease) 0.75s both; }
.hero-area .hero-badges .badge:nth-child(2) { animation: fade-up-in 0.5s var(--ease) 0.85s both; }
.hero-area .hero-badges .badge:nth-child(3) { animation: fade-up-in 0.5s var(--ease) 0.95s both; }

.landing-hero .eyebrow { animation: fade-up-in 0.7s var(--ease) 0.15s both; }
.landing-hero h1 { animation: fade-up-in 0.8s var(--ease) 0.3s both; }
.landing-hero .landing-sub { animation: fade-up-in 0.7s var(--ease) 0.5s both; }
.landing-hero .profile-cta { animation: fade-up-in 0.7s var(--ease) 0.65s both; }
.landing-nav { animation: fade-up-in 0.6s var(--ease) 0s both; }
.scroll-cue { animation: fade-up-in 0.6s var(--ease) 1.1s both, scroll-bounce 1.8s var(--ease) 1.6s infinite; }

/* Staggered reveal for repeated children, scoped under the JS-driven
   .reveal/.is-visible pair already applied to their parent .card — this
   keeps everything visible by default if JS never runs. */
.reveal .timeline-list li,
.reveal .stat-item,
.reveal .cert-item,
.reveal .rotation-item,
.reveal .project-item,
.reveal .interest-item,
.reveal .badges-container .badge,
.reveal .course-category {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal.is-visible .timeline-list li,
.reveal.is-visible .stat-item,
.reveal.is-visible .cert-item,
.reveal.is-visible .rotation-item,
.reveal.is-visible .project-item,
.reveal.is-visible .interest-item,
.reveal.is-visible .badges-container .badge,
.reveal.is-visible .course-category {
  opacity: 1;
  transform: translateY(0);
}
.reveal.is-visible .timeline-list li:nth-child(1) { transition-delay: 0.05s; }
.reveal.is-visible .timeline-list li:nth-child(2) { transition-delay: 0.14s; }
.reveal.is-visible .timeline-list li:nth-child(3) { transition-delay: 0.23s; }
.reveal.is-visible .timeline-list li:nth-child(4) { transition-delay: 0.32s; }
.reveal.is-visible .timeline-list li:nth-child(5) { transition-delay: 0.41s; }
.reveal.is-visible .timeline-list li:nth-child(n+6) { transition-delay: 0.48s; }

.reveal.is-visible .stat-item:nth-child(1),
.reveal.is-visible .cert-item:nth-child(1),
.reveal.is-visible .rotation-item:nth-child(1),
.reveal.is-visible .project-item:nth-child(1),
.reveal.is-visible .interest-item:nth-child(1),
.reveal.is-visible .course-category:nth-child(1) { transition-delay: 0.05s; }
.reveal.is-visible .stat-item:nth-child(2),
.reveal.is-visible .cert-item:nth-child(2),
.reveal.is-visible .rotation-item:nth-child(2),
.reveal.is-visible .project-item:nth-child(2),
.reveal.is-visible .interest-item:nth-child(2),
.reveal.is-visible .course-category:nth-child(2) { transition-delay: 0.13s; }
.reveal.is-visible .stat-item:nth-child(3),
.reveal.is-visible .cert-item:nth-child(3),
.reveal.is-visible .rotation-item:nth-child(3),
.reveal.is-visible .project-item:nth-child(3),
.reveal.is-visible .interest-item:nth-child(3),
.reveal.is-visible .course-category:nth-child(3) { transition-delay: 0.21s; }
.reveal.is-visible .stat-item:nth-child(4),
.reveal.is-visible .cert-item:nth-child(4),
.reveal.is-visible .rotation-item:nth-child(4),
.reveal.is-visible .project-item:nth-child(4),
.reveal.is-visible .interest-item:nth-child(4),
.reveal.is-visible .course-category:nth-child(4) { transition-delay: 0.29s; }

.reveal.is-visible .badges-container .badge:nth-child(1) { transition-delay: 0.05s; }
.reveal.is-visible .badges-container .badge:nth-child(2) { transition-delay: 0.11s; }
.reveal.is-visible .badges-container .badge:nth-child(3) { transition-delay: 0.17s; }
.reveal.is-visible .badges-container .badge:nth-child(4) { transition-delay: 0.23s; }
.reveal.is-visible .badges-container .badge:nth-child(5) { transition-delay: 0.29s; }
.reveal.is-visible .badges-container .badge:nth-child(n+6) { transition-delay: 0.35s; }

/* Media grid cards reveal individually, so the stagger lives on the
   card itself rather than a shared ancestor. */
.media-grid .media-card:nth-child(1) { transition-delay: 0s; }
.media-grid .media-card:nth-child(2) { transition-delay: 0.08s; }
.media-grid .media-card:nth-child(3) { transition-delay: 0.16s; }
.media-grid .media-card:nth-child(4) { transition-delay: 0.24s; }
.media-grid .media-card:nth-child(5) { transition-delay: 0.32s; }

/* Micro-interactions */
.card { transform: translateY(0); }
.card:hover { transform: translateY(-3px); }

.primary-btn:active, .secondary-btn:active, .download-btn:active,
button[type="submit"]:active { transform: scale(0.97); }

.logo { display: inline-block; transition: transform 0.25s var(--ease); }
.logo:hover { transform: scale(1.04); opacity: 0.85; }

.nav-links li a { position: relative; }
.social-icon, .footer-link { transition: transform 0.25s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease); }

.media-thumb .play-btn { transition: transform 0.3s var(--ease); }
.media-card:hover .play-btn { transform: scale(1.12); }
.media-card:hover .placeholder-icon { transform: scale(1.08); }
.media-thumb i.placeholder-icon { transition: transform 0.3s var(--ease); }

/* ==========================================================================
   Animation & Micro-interactions
   ========================================================================== */

/* ---- Hero entrance: staggered fade-up on page load ---- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-scale-in {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.hero-area .eyebrow, .hero-area h1, .hero-area .tagline,
.hero-area .profile-cta, .hero-area .hero-badges,
.landing-hero .eyebrow, .landing-hero h1, .landing-hero .landing-sub,
.landing-hero .profile-cta {
  opacity: 0;
  animation: fade-up 0.85s var(--ease) forwards;
}
.hero-area .eyebrow, .landing-hero .eyebrow   { animation-delay: 0.45s; }
.hero-area h1, .landing-hero h1               { animation-delay: 0.6s; }
.hero-area .tagline, .landing-hero .landing-sub { animation-delay: 0.75s; }
.hero-area .profile-cta, .landing-hero .profile-cta { animation-delay: 0.9s; }
.hero-area .hero-badges                       { animation-delay: 1.05s; }

.hero-area .profile-content .profile-img {
  opacity: 0;
  animation: fade-scale-in 0.9s var(--ease) 0.25s forwards;
}
.scroll-cue { opacity: 0; animation: fade-up 0.8s var(--ease) 1.3s forwards; }

/* ---- Cascading reveal for list-style children, once the parent card is visible ---- */
.timeline-list li, .timeline-item, .cert-items .cert-item,
.projects-container .project-item, .rotations-container .rotation-item,
.interests-grid .interest-item, .stats-container .stat-item,
.badges-container .badge, .media-grid .media-card, .course-list li {
  transform: translateY(16px);
  transition: transform 0.6s var(--ease);
}
.is-visible .timeline-list li, .is-visible .timeline-item,
.is-visible .cert-items .cert-item, .is-visible .projects-container .project-item,
.is-visible .rotations-container .rotation-item, .is-visible .interests-grid .interest-item,
.is-visible .stats-container .stat-item, .is-visible .badges-container .badge,
.is-visible .media-grid .media-card, .is-visible .course-list li {
  transform: translateY(0);
}
:is(.timeline-list, .cert-items, .projects-container, .rotations-container,
    .interests-grid, .stats-container, .badges-container, .media-grid, .course-list)
  > :nth-child(1) { transition-delay: 0.04s; }
:is(.timeline-list, .cert-items, .projects-container, .rotations-container,
    .interests-grid, .stats-container, .badges-container, .media-grid, .course-list)
  > :nth-child(2) { transition-delay: 0.11s; }
:is(.timeline-list, .cert-items, .projects-container, .rotations-container,
    .interests-grid, .stats-container, .badges-container, .media-grid, .course-list)
  > :nth-child(3) { transition-delay: 0.18s; }
:is(.timeline-list, .cert-items, .projects-container, .rotations-container,
    .interests-grid, .stats-container, .badges-container, .media-grid, .course-list)
  > :nth-child(4) { transition-delay: 0.25s; }
:is(.timeline-list, .cert-items, .projects-container, .rotations-container,
    .interests-grid, .stats-container, .badges-container, .media-grid, .course-list)
  > :nth-child(5) { transition-delay: 0.32s; }
:is(.timeline-list, .cert-items, .projects-container, .rotations-container,
    .interests-grid, .stats-container, .badges-container, .media-grid, .course-list)
  > :nth-child(n+6) { transition-delay: 0.38s; }

/* ---- Hover micro-interactions ---- */
.badge { transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.badge:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }

.section-header i { transition: transform 0.35s var(--ease); }
.card:hover .section-header i { transform: scale(1.15) rotate(-8deg); }

.timeline-icon, .project-icon, .cert-icon, .contact-header i, .rotation-header i {
  transition: transform 0.3s var(--ease);
}
.timeline-item:hover .timeline-icon,
.project-item:hover .project-icon,
.cert-item:hover .cert-icon { transform: scale(1.1); }

.interest-icon { transition: transform 0.3s var(--ease); }
.interest-item:hover .interest-icon { transform: scale(1.15) rotate(-6deg); }

.media-thumb .placeholder-icon, .media-thumb .play-btn {
  transition: transform 0.35s var(--ease);
}
.media-card:hover .placeholder-icon { transform: scale(1.12); }
.media-card:hover .play-btn { transform: scale(1.12); }

.linkedin-card .profile-img, .about-image .profile-img {
  transition: transform 0.4s var(--ease);
}
.linkedin-card:hover .profile-img, .about-image:hover .profile-img { transform: scale(1.04); }

.stat-item { transition: transform 0.25s var(--ease); }
.stat-item:hover { transform: translateY(-3px); }

/* ---- Ambient hero gradient drift (very slow, purely decorative) ---- */
@keyframes drift {
  0%, 100% { background-position: 0% 0%, 0% 0%; }
  50%      { background-position: 4% 3%, -3% -2%; }
}
.hero-area::before, .landing-hero::before {
  background-size: 140% 140%;
  animation: drift 22s ease-in-out infinite;
}
