:root {
  --black: #0a0c10;
  --black-bg: #191d26;
  --black-alt: #242a36;
  --line: #343c4a;

  /* Two color families, two shades each — a dark/bright blue pair
     for the "professional" half, a dark/bright coral pair for the
     "fun" half. */
  --navy: #16233f;
  --blue: #5b8def;
  --rust: #9c4429;
  --coral: #dd6b4d;

  --ink: #eef1f5;
  --ink-soft: #9aa3b2;

  --radius: 14px;
  --serif: 'Fraunces', serif;
  --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--black-bg);
  line-height: 1.55;
}

h1, h2, h3 { font-family: var(--serif); margin: 0; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }

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

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.75rem;
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(22, 35, 63, 0.12);
}
.nav::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--blue), var(--coral), var(--rust));
}
.nav-inner {
  padding: 1rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-logo-icon {
  color: var(--coral);
  transition: color 0.2s ease, transform 0.2s ease;
}
.nav-logo:hover .nav-logo-icon { color: var(--blue); transform: rotate(-8deg); }
.nav-logo-text {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
}
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--blue); }
.nav-links a.active { color: var(--coral); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--navy);
  display: block;
}

/* ===== COLOR-BLOCK SECTIONS ===== */
.on-navy {
  background:
    radial-gradient(circle at 18% 15%, rgba(221, 107, 77, 0.12), transparent 42%),
    radial-gradient(circle at 88% 85%, rgba(91, 141, 239, 0.14), transparent 45%),
    var(--navy);
  color: #eef1f7;
}
.on-navy h1, .on-navy h2, .on-navy h3 { color: #ffffff; }
.on-navy p { color: #b9c2d6; }
.on-navy .kicker { color: var(--coral); }

.on-black {
  background:
    radial-gradient(circle at 15% 20%, rgba(91, 141, 239, 0.12), transparent 42%),
    radial-gradient(circle at 85% 80%, rgba(221, 107, 77, 0.12), transparent 45%),
    var(--black);
  color: #eef1f5;
}
.on-black h1, .on-black h2, .on-black h3 { color: #ffffff; }
.on-black p { color: #a9b0bb; }
.on-black .kicker { color: var(--coral); }

.on-blue { background: var(--blue); color: var(--navy); }
.on-blue h1, .on-blue h2, .on-blue h3 { color: var(--navy); }
.on-blue p { color: #1d2f52; }
.on-blue .kicker { color: var(--navy); }

.on-coral { background: var(--coral); color: var(--navy); }
.on-coral p { color: #5a2c1c; }
.on-coral .kicker { color: var(--navy); }

.on-rust { background: var(--rust); color: #f7ece8; }
.on-rust h1, .on-rust h2, .on-rust h3 { color: #ffffff; }
.on-rust p { color: #e3c3b7; }
.on-rust .kicker { color: var(--blue); }

.on-white { background: #faf9f6; color: var(--navy); }
.on-white h1, .on-white h2, .on-white h3 { color: var(--navy); }
.on-white p { color: #5c6470; }
.on-white .kicker { color: var(--coral); }
.on-white .card-meta { color: #5c6470; }
.on-white .img-placeholder {
  background: rgba(22, 35, 63, 0.05);
  border-color: rgba(22, 35, 63, 0.3);
  color: var(--navy);
}
.on-white .scroll-cue { color: var(--navy); }
.on-white .btn-ghost { border-color: var(--navy); color: var(--navy); }
.on-white .btn-ghost:hover { background: var(--navy); color: #ffffff; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 6rem 1.5rem;
  overflow: hidden;
}
/* Thin decorative accent lines in the open background space, kept
   clear of the text panel and photo so neither gets visually crowded. */
.hero-lines { position: absolute; inset: 0; z-index: 0; }
.hero-rule {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
}
.hero-rule.top {
  top: 16%;
  background: linear-gradient(90deg, transparent, var(--blue) 12%, var(--blue) 88%, transparent);
  opacity: 0.5;
}
.hero-rule.bottom {
  bottom: 16%;
  background: linear-gradient(90deg, transparent, var(--coral) 12%, var(--coral) 88%, transparent);
  opacity: 0.5;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.hero-media {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius);
  justify-self: end;
  object-fit: cover;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55), 0 8px 20px rgba(0, 0, 0, 0.4);
}
.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(3.4rem, 9vw, 6.4rem);
  font-weight: 700;
  line-height: 0.98;
  margin-bottom: 1.25rem;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}
.hero-subtitle {
  font-size: 1.15rem;
  max-width: 480px;
  margin: 0 0 2.25rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--coral); color: var(--navy); }
.btn-primary:hover { background: var(--blue); }
.btn-ghost { border: 1.5px solid #ffffff; color: #ffffff; }
.btn-ghost:hover { background: #ffffff; color: var(--navy); }

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.3rem;
  color: #ffffff;
  animation: bob 2s infinite;
  z-index: 2;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ===== SECTIONS ===== */
.section { padding: 6rem 1.5rem; position: relative; scroll-margin-top: 76px; }
#story {
  padding: 1.75rem 1.5rem;
  background-color: var(--black);
}
#skills { padding: 4rem 1.5rem; }
#volunteering {
  background:
    radial-gradient(circle at 85% 10%, rgba(221, 107, 77, 0.08), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(91, 141, 239, 0.08), transparent 40%);
}
.section-inner { max-width: var(--max); margin: 0 auto; position: relative; z-index: 1; }
.section-inner-narrow { max-width: 680px; }
.section h2 {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  margin-bottom: 2.5rem;
  max-width: 600px;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.45);
}

/* ===== IMAGE PLACEHOLDERS (diagonal-cut) ===== */
.img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1.5px dashed rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  padding: 1.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55), 0 8px 20px rgba(0, 0, 0, 0.4);
}
.img-placeholder svg { opacity: 0.8; }

.story-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.5fr;
  gap: 2rem;
  align-items: center;
  margin-top: 1rem;
}

/* ===== CAREER GOALS ===== */
.goals-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 2.5rem;
}
.goals-media {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 240px;
  flex-shrink: 0;
}
.goals-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55), 0 8px 20px rgba(0, 0, 0, 0.4);
}
/* The UW logo has a plain white background, so contain it on a
   matching white card instead of cover-cropping the wordmark. */
.goals-photo-logo {
  object-fit: contain;
  background: #ffffff;
  padding: 0.15rem;
}
.goals-text .story-paragraph:first-child { margin-top: 0; }
.story-media {
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: var(--radius);
  justify-self: end;
  object-fit: cover;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55), 0 8px 20px rgba(0, 0, 0, 0.4);
}
/* Two-column layout: GPA/ACT stats on the left, a much larger
   Coursework box on the right. */
.split-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 3rem;
  align-items: stretch;
  margin-top: 2.5rem;
}

/* Sports: two side-by-side blocks, one per sport, each its own
   heading/text/photo. */
.sports-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: 2.5rem;
  align-items: stretch;
}
.sport-block {
  display: flex;
  flex-direction: column;
}
.sport-tag { background: var(--coral); color: var(--navy); }
.sport-block:nth-child(2) .sport-tag { background: var(--blue); }
.sport-block h3 { font-size: 1.3rem; margin: 0.75rem 0 0.5rem; }
.sport-block p { flex: 1; }
.sport-media {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 280px;
  border-radius: var(--radius);
  margin-top: 1.25rem;
  object-fit: cover;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55), 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* ===== STATS (circle badges) ===== */
.stat-circle {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--black-alt);
  border: 5px solid var(--circle-color, var(--blue));
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}
/* Bright shades only — navy/rust text or borders on the black-alt
   surface are too low-contrast to read. */
.academics-stats .stat-circle:nth-child(1) { --circle-color: var(--blue); }
.academics-stats .stat-circle:nth-child(2) { --circle-color: var(--blue); }
.stat-number {
  font-family: var(--serif);
  font-size: 3.4rem;
  font-weight: 800;
  color: var(--circle-color, var(--blue));
  line-height: 1.1;
}
.stat-label {
  font-size: 1rem;
  color: var(--ink-soft);
  font-weight: 600;
  margin-top: 0.5rem;
  padding: 0 0.5rem;
}

/* "pop in" reveal, distinct from the generic fade-up used elsewhere */
.stat-circle.reveal {
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.stat-circle.reveal.visible {
  opacity: 1;
  transform: scale(1);
}
.about-text { max-width: 680px; font-size: 1.08rem; color: var(--ink-soft); }

/* ===== CARDS (academics) ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--black-alt);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 4px solid var(--card-color, var(--navy));
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--card-color, var(--navy));
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.6);
}
/* Navy is excluded here — too close in tone to the card's own
   --black-alt background, so a navy chip/border nearly disappears. */
.card:nth-child(3n+1) { --card-color: var(--coral); }
.card:nth-child(3n+2) { --card-color: var(--rust); }
.card:nth-child(3n+3) { --card-color: var(--blue); }
.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--card-color, var(--navy));
  color: #ffffff;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}
.card h3 { font-size: 1.2rem; margin-bottom: 0.3rem; color: var(--ink); }
.card-meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.card p:last-child { color: var(--ink-soft); margin-bottom: 0; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ===== ARTWORK GALLERY ===== */
.section-subhead {
  font-size: 1.05rem;
  color: var(--ink);
  margin: 2.5rem 0 1rem;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3.5rem;
  align-items: start;
}
/* Both columns use plain block-flow margins (not flex gap) so their
   kicker/h2 land at identical positions — a flex gap on one side but
   not the other was throwing the headers out of alignment. */
.skills-text h2, .artwork-block h2 { margin-bottom: 1.5rem; }
.artwork-block { margin-top: 0.5rem; }
/* Nudge the first box down to align with the gallery image, which
   sits lower due to the title/description above it on the other side. */
.interest-block:first-child { margin-top: 6rem; }
.interest-block + .interest-block { margin-top: 1.5rem; }
.interest-block {
  background: var(--black-alt);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 4px solid var(--block-color, var(--coral));
  border-radius: var(--radius);
  padding: 2.25rem;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}
.interest-block .tag-cloud { gap: 0.75rem; }
.interest-block .card-tag {
  font-size: 0.95rem;
  padding: 0.55rem 1.1rem;
}
.interest-coral { --block-color: var(--coral); }
.interest-blue { --block-color: var(--blue); }
.interest-block .section-subhead { margin-top: 0; }
.interest-block .tag-cloud + .section-subhead { margin-top: 1.5rem; }
/* Fixed height so different slides' description lengths don't resize
   the whole section when paging through the gallery. */
.artwork-intro { margin: 0 0 0.25rem; max-width: 480px; min-height: 9.5rem; }

/* ===== ARTWORK GALLERY ===== */
.gallery-main {
  aspect-ratio: 4 / 3;
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  position: relative;
  overflow: hidden;
}
.gallery-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 100%;
  padding: 0 2rem;
  text-align: center;
}
.gallery-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Used for low-resolution source photos where cropping tighter would
   mean upscaling (and blurring) rather than just cover-cropping —
   shows the full frame instead, letterboxed on a matching dark card. */
.gallery-photo.fit-contain {
  object-fit: contain;
  background: var(--black-alt);
}
/* Artwork pieces show the whole frame uncropped, letterboxed on a
   dark background instead of cover-cropping edges off. */
.artwork-photo,
.artwork-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--black);
}
.gallery-title { font-size: 1.15rem; font-weight: 700; color: var(--ink); margin: 0 0 0.5rem; text-align: left; }
.gallery-desc { font-size: 0.95rem; font-weight: 400; color: var(--ink-soft); margin: 0; max-width: 480px; text-align: left; }
.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 0.75rem;
}

/* ===== SPLIT GALLERY (Volunteering) — half info, half photo ===== */
.split-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Fixed height (not min-height) so switching between a short and a
     long entry never resizes the section. Sized to fit the longest
     description (the founded-group entry) with room to spare. */
  height: 420px;
  border-radius: var(--radius);
  border-top: 4px solid var(--coral);
  border-bottom: 4px solid var(--coral);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
  margin-top: 2rem;
}
.split-gallery-info {
  background: var(--black-alt);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.split-gallery-info h3 { font-size: 1.5rem; margin: 0.5rem 0 0.4rem; color: var(--ink); }
.split-gallery-info p:last-child { color: var(--ink-soft); margin-bottom: 0; }
.split-gallery-media {
  border-radius: 0;
  /* Locked to the aspect ratio every volunteering photo was already
     cropped for, and vertically centered (not stretched) so the
     section's fixed height above doesn't distort or re-crop them. */
  aspect-ratio: 3 / 2;
  align-self: center;
  background: var(--black-alt);
  position: relative;
  overflow: hidden;
}
.gallery-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.gallery-btn:hover { background: var(--coral); border-color: var(--coral); color: var(--navy); }
.gallery-dots { display: flex; gap: 0.6rem; }
.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.gallery-dot.active { background: var(--coral); transform: scale(1.2); }

/* ===== ACADEMICS: stats + coursework ===== */
.academics-stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.academics-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.coursework-card {
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.coursework-card h3 { font-size: 1.2rem; margin: 0.5rem 0 1rem; }

/* ===== STORY ===== */
.story-paragraph { font-size: 1.1rem; }
.pull-quote {
  margin: 1.5rem 0 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--coral);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: inherit;
}

/* ===== FOOTER ===== */
.footer {
  padding: 5rem 1.5rem;
  text-align: center;
  scroll-margin-top: 76px;
}
.footer-inner { max-width: 600px; margin: 0 auto; }
.footer h2 { margin-bottom: 0.75rem; font-size: 2rem; }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  margin: 2rem 0;
  font-weight: 700;
}
.footer-links a { border-bottom: 2px solid transparent; padding-bottom: 2px; transition: border-color 0.2s, color 0.2s; color: var(--coral); }
.footer-links a:hover { border-color: var(--blue); color: var(--blue); }
.footer-note { font-size: 0.85rem; color: #b9c2d6; }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text { margin: 0 auto; }
  .hero-cta { justify-content: center; }
  .hero-media { max-width: 260px; margin: 0 auto; justify-self: center; order: -1; }
  .split-grid, .story-grid, .goals-grid { grid-template-columns: 1fr; }
  .sports-grid, .skills-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split-gallery { grid-template-columns: 1fr; height: auto; }
  .split-gallery-media { aspect-ratio: 4 / 3; align-self: stretch; }
  .interest-block:first-child { margin-top: 0; }
}
@media (max-width: 780px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .card-grid, .card-grid-3 { grid-template-columns: 1fr; }
  .stat-circle { width: 200px; height: 200px; }
  .stat-number { font-size: 2.8rem; }
}

.nav.menu-open .nav-links {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  flex-direction: column;
  padding: 1.5rem;
  gap: 1.25rem;
  border-bottom: 1px solid var(--line);
}

/* ===== FLYING FRIEND ===== */
/* A little mascot that actually flies to a new spot on the screen
   when a new section scrolls in, or when the cursor gets close to it.
   .flybie itself is positioned (left/top, JS-driven) and transitions
   between spots; .flybie-float does the continuous idle bob so it
   never looks static while resting; .flybie-tilt holds the static
   downward-teardrop orientation; .flybie-body handles the flap. */
.flybie {
  position: fixed;
  top: 70vh;
  left: 85vw;
  width: 42px;
  height: 42px;
  z-index: 200;
  pointer-events: none;
  transition: left 1.7s cubic-bezier(0.33, 1.2, 0.4, 1), top 1.7s cubic-bezier(0.33, 1.2, 0.4, 1);
}
.flybie-float {
  width: 100%;
  height: 100%;
  animation: flybieFloat 3.4s ease-in-out infinite;
}
.flybie-tilt {
  width: 100%;
  height: 100%;
  transform: rotate(-45deg);
}
.flybie-body {
  width: 100%;
  height: 100%;
  background: var(--coral);
  border-radius: 47% 53% 46% 7%;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}
.flybie-body.flap { animation: flybieFlap 0.6s ease; }
/* Happy "closed" eyes — an upward-curving smile shape instead of a
   flat dot, no separate mouth needed. */
/* Default resting face is two open round eyes. JS briefly holds a
   squint or wink class (smoothly transitions in/out via the
   transition below), or triggers a self-contained wide-eyed pulse
   animation that expands and shrinks back on its own. */
.flybie-eye {
  position: absolute;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy);
  border-top: 0 solid var(--navy);
  box-sizing: border-box;
  transition: width 0.32s ease, height 0.32s ease, top 0.32s ease,
    border-radius 0.32s ease, background-color 0.32s ease, border-top-width 0.32s ease;
}
.flybie-eye.left { left: 10px; }
.flybie-eye.right { left: 23px; }

.flybie.expr-squint .flybie-eye,
.flybie.expr-wink-left .flybie-eye.left,
.flybie.expr-wink-right .flybie-eye.right {
  top: 15px;
  width: 8px;
  height: 5px;
  background: transparent;
  border-top-width: 2px;
  border-radius: 8px 8px 0 0;
}

@keyframes flybieFloat {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-16px) rotate(4deg); }
}
@keyframes flybieFlap {
  0% { transform: scale(1); }
  35% { transform: scale(1.25, 0.78); }
  65% { transform: scale(0.85, 1.18); }
  100% { transform: scale(1); }
}
.flybie.spinning { animation: flybieSpin 1.1s ease-in-out; }
@keyframes flybieSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(720deg); }
}

@media (max-width: 780px) {
  .flybie { width: 32px; height: 32px; }
  .flybie-eye { top: 11px; width: 5px; height: 5px; }
  .flybie-eye.left { left: 7px; }
  .flybie-eye.right { left: 17px; }
  .flybie.expr-squint .flybie-eye,
  .flybie.expr-wink-left .flybie-eye.left,
  .flybie.expr-wink-right .flybie-eye.right {
    top: 12px;
    width: 6px;
    height: 4px;
    border-top-width: 2px;
    border-radius: 6px 6px 0 0;
  }
}
