@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ══════════════════════════════════════════════════════════
   CINEMATIC HERO (Home page)
   Light, fullscreen, video-backed hero with Instrument Serif
══════════════════════════════════════════════════════════ */
body.home-cinematic {
  background: #F5F1E8;
  color: #1A1A1A;
  font-family: 'Inter', system-ui, sans-serif;
  --accent-orange: #E8743C;
  --accent-blue:   #3B5F7E;
  --accent-mustard:#C99240;
  --accent-green:  #5C7B4F;
}

body.home-cinematic::before {
  display: none;
}

.cinematic-shell {
  position: relative;
  min-height: 100vh;
  width: 100%;
  background: #F5F1E8;
  color: #1A1A1A;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto 1fr auto;
  grid-template-areas:
    ".         tag      nav"
    "wordmark  wordmark wordmark"
    "bio       .        desc"
    "scroll    scroll   scroll";
  gap: 0;
  padding: 28px 48px 96px;
  align-items: start;
}

/* Color accent classes for italic emphasis */
.home-cinematic em.accent-orange  { color: var(--accent-orange);  font-style: italic; }
.home-cinematic em.accent-blue    { color: var(--accent-blue);    font-style: italic; }
.home-cinematic em.accent-mustard { color: var(--accent-mustard); font-style: italic; }
.home-cinematic em.accent-green   { color: var(--accent-green);   font-style: italic; }

.cinematic-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    radial-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 24px 24px, 6px 6px;
  background-position: 0 0, 3px 3px;
  opacity: 0.6;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 90%);
}

/* Top tagline (small caps, center) */
.cinematic-tag {
  grid-area: tag;
  margin: 8px 0 0;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #1A1A1A;
  font-weight: 500;
  z-index: 5;
  pointer-events: none;
}

/* Brand block: wordmark + About CTA below it */
.cinematic-brand {
  grid-area: wordmark;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  z-index: 5;
  padding-top: 4px;
  /* Let pointer events fall through to the SVG points behind us.
     Only the CTA below re-enables hit-testing. */
  pointer-events: none;
}

.cinematic-brand .cinematic-name-cta {
  pointer-events: auto;
}

.cinematic-wordmark {
  margin: 0;
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(3.5rem, 11vw, 9.5rem);
  line-height: 0.82;
  letter-spacing: -0.055em;
  color: #1A1A1A;
  display: flex;
  align-items: flex-start;
  gap: 0.08em;
  white-space: nowrap;
}

.cinematic-wordmark-bullet {
  display: inline-block;
  font-size: 0.18em;
  line-height: 1;
  color: var(--accent-orange);
  transform: translateY(-0.2em);
  animation: hub-pulse 2.4s ease-in-out infinite;
}

/* About CTA under the name */
.cinematic-name-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 18px 8px 8px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-decoration: none;
  color: #1A1A1A;
  transition: transform 0.2s ease, background 0.2s ease,
    border-color 0.2s ease, box-shadow 0.2s ease;
}

.cinematic-name-cta:hover {
  transform: translateY(-2px);
  background: #1A1A1A;
  color: #F5F1E8;
  border-color: #1A1A1A;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.cinematic-name-cta-mono {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #1A1A1A;
  color: #F5F1E8;
  font-family: 'Instrument Serif', serif;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.cinematic-name-cta:hover .cinematic-name-cta-mono {
  background: var(--accent-orange);
  color: #FFFFFF;
}

.cinematic-name-cta-text {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}

.cinematic-name-cta-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.cinematic-name-cta-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: #6F6F6F;
  transition: color 0.2s ease;
}

.cinematic-name-cta:hover .cinematic-name-cta-sub {
  color: rgba(245, 241, 232, 0.7);
}

.cinematic-name-cta-arrow {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  margin-left: 4px;
  transition: transform 0.2s ease;
}

.cinematic-name-cta:hover .cinematic-name-cta-arrow {
  transform: translate(3px, -3px);
}

/* Cinematic navigation (top right inline) */
.cinematic-nav {
  grid-area: nav;
  position: relative;
  z-index: 60;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  padding-top: 12px;
  /* Let pointer events fall through the bar; links/button re-enable below. */
  pointer-events: none;
}

.cinematic-nav-links,
.cinematic-nav .cinematic-menu-toggle {
  pointer-events: auto;
}

.cinematic-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cinematic-nav-links a {
  color: #1A1A1A;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.2s ease;
}

.cinematic-nav-links a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: #1A1A1A;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.cinematic-nav-links a.active::after,
.cinematic-nav-links a:hover::after {
  transform: scaleX(1);
}

/* Center stage animation */
/* Stage = absolute backdrop centered behind text */
.cinematic-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
}

.cinematic-stage-svg {
  width: min(900px, 90vmin);
  height: auto;
  display: block;
  overflow: visible;
  pointer-events: none;
}

/* Re-enable hover interaction only on the labeled research points */
.cinematic-points .point-group {
  pointer-events: auto;
  cursor: pointer;
}

/* Cream outline around labels so they pop on the busy compass */
.cinematic-points .label-main,
.cinematic-points .label-sub {
  paint-order: stroke fill;
  stroke: #F5F1E8;
  stroke-width: 4px;
  stroke-linejoin: round;
}

/* Smooth hover transitions */
.cinematic-points .point-group .point,
.cinematic-points .point-group .point-ring,
.cinematic-points .point-group .label-main,
.cinematic-points .point-group .label-sub {
  transition: r 0.35s cubic-bezier(0.25, 1, 0.5, 1),
              font-size 0.35s cubic-bezier(0.25, 1, 0.5, 1),
              font-weight 0.2s ease,
              stroke-width 0.3s ease,
              filter 0.3s ease,
              opacity 0.3s ease;
}

/* Hover: dot/ring grow, animation pauses so it sits steady at the bigger size */
.cinematic-points .point-group:hover .point {
  r: 12;
  animation: none;
  transform: none;
  opacity: 1;
}

.cinematic-points .point-group:hover .point-ring {
  r: 22;
  stroke-width: 1.8;
  animation: none;
  transform: none;
  opacity: 0.85;
}

/* Hover: labels swell + go bold. Kept conservative so the longest one
   ("TRANSPORT & ECONOMICS") still fits without being cut off. */
.cinematic-points .point-group:hover .label-main {
  font-size: 22px;
  font-weight: 700;
  stroke-width: 5px;
}

.cinematic-points .point-group:hover .label-sub {
  font-size: 14px;
  font-weight: 600;
}

/* Dim non-hovered point groups to focus attention */
.cinematic-points:hover .point-group {
  opacity: 0.35;
  transition: opacity 0.25s ease;
}

.cinematic-points:hover .point-group:hover {
  opacity: 1;
}

/* Concentric pulse rings (radar pulse from center) */
.cinematic-pulse-rings .ring {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: pulse-ring 4.2s ease-out infinite;
}
.cinematic-pulse-rings .ring-1 { animation-delay: 0s; }
.cinematic-pulse-rings .ring-2 { animation-delay: 1.4s; }
.cinematic-pulse-rings .ring-3 { animation-delay: 2.8s; }

@keyframes pulse-ring {
  0% { transform: scale(0.18); opacity: 0; }
  10% { opacity: 0.7; }
  100% { transform: scale(3.6); opacity: 0; }
}

/* Spokes (colored connection lines hub → research points) */
.cinematic-spokes line {
  stroke-dashoffset: 0;
  animation: spoke-flow 6s linear infinite;
}
.cinematic-spokes .spoke-1 { animation-delay: 0s; }
.cinematic-spokes .spoke-2 { animation-delay: -1.5s; }
.cinematic-spokes .spoke-3 { animation-delay: -3s; }
.cinematic-spokes .spoke-4 { animation-delay: -4.5s; }

@keyframes spoke-flow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -140; }
}

/* Labeled point dots breathe */
.cinematic-points .point {
  transform-box: fill-box;
  transform-origin: center;
  animation: point-pulse 2.6s ease-in-out infinite;
}
.cinematic-points .point-1 .point { animation-delay: 0s; }
.cinematic-points .point-2 .point { animation-delay: 0.7s; }
.cinematic-points .point-3 .point { animation-delay: 1.3s; }
.cinematic-points .point-4 .point { animation-delay: 1.9s; }

@keyframes point-pulse {
  0%, 100% { opacity: 0.75; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.35); }
}

/* Point rings ping outward */
.cinematic-points .point-ring {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: point-ping 2.6s ease-out infinite;
}
.cinematic-points .point-1 .point-ring { animation-delay: 0s; }
.cinematic-points .point-2 .point-ring { animation-delay: 0.7s; }
.cinematic-points .point-3 .point-ring { animation-delay: 1.3s; }
.cinematic-points .point-4 .point-ring { animation-delay: 1.9s; }

@keyframes point-ping {
  0% { transform: scale(1); opacity: 0.85; }
  100% { transform: scale(4.5); opacity: 0; }
}

/* Micro inner-ring dots — gentle alternating fade */
.cinematic-microdots circle {
  animation: micro-twinkle 3.4s ease-in-out infinite;
}
.cinematic-microdots circle:nth-child(1) { animation-delay: 0s; }
.cinematic-microdots circle:nth-child(2) { animation-delay: 0.4s; }
.cinematic-microdots circle:nth-child(3) { animation-delay: 0.8s; }
.cinematic-microdots circle:nth-child(4) { animation-delay: 1.2s; }
.cinematic-microdots circle:nth-child(5) { animation-delay: 1.6s; }
.cinematic-microdots circle:nth-child(6) { animation-delay: 2.0s; }
.cinematic-microdots circle:nth-child(7) { animation-delay: 2.4s; }
.cinematic-microdots circle:nth-child(8) { animation-delay: 2.8s; }

@keyframes micro-twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.7; }
}

/* Hub breathing */
.cinematic-hub circle:first-child {
  transform-box: fill-box;
  transform-origin: center;
  animation: hub-breathe 3s ease-in-out infinite;
}

@keyframes hub-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

@keyframes hub-pulse {
  0%, 100% { opacity: 0.4; transform: translateY(-0.2em) scale(0.9); }
  50% { opacity: 1; transform: translateY(-0.2em) scale(1.1); }
}

/* Bottom-left bio */
.cinematic-bio {
  grid-area: bio;
  align-self: end;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 22rem;
  z-index: 5;
}

.cinematic-bio-caps {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  line-height: 1.6;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1A1A1A;
  font-weight: 500;
}

.cinematic-bio-divider {
  width: 100%;
  height: 1px;
  background: rgba(0, 0, 0, 0.18);
}

.cinematic-bio-quote {
  margin: 0;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
  color: #1A1A1A;
}

.cinematic-bio-quote em {
  font-weight: 500;
}

/* Bottom-right description */
.cinematic-desc {
  grid-area: desc;
  align-self: end;
  justify-self: end;
  max-width: 24rem;
  z-index: 5;
}

.cinematic-desc p {
  margin: 0;
  font-family: 'Instrument Serif', serif;
  font-size: clamp(1.05rem, 1.4vw, 1.5rem);
  line-height: 1.35;
  color: #1A1A1A;
  text-align: right;
}

.cinematic-desc em {
  font-style: italic;
  color: #1A1A1A;
}

/* Bottom-center scroll hint — pushed down into a dedicated row at the very bottom */
.cinematic-scroll-hint {
  grid-area: scroll;
  align-self: end;
  justify-self: center;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 56px;
  text-decoration: none;
  color: #1A1A1A;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  z-index: 5;
}

.cinematic-scroll-circle {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: scroll-bob 2s ease-in-out infinite;
  color: #1A1A1A;
}

@keyframes scroll-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* Menu toggle button (square icon button on the side) */
.cinematic-menu-toggle {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.6);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease;
}

.cinematic-menu-toggle:hover {
  background: #000000;
  border-color: #000000;
  transform: scale(1.03);
}

.cinematic-menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #000000;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cinematic-menu-toggle:hover span {
  background: #FFFFFF;
}

@media (max-width: 860px) {
  .cinematic-nav-inner {
    padding: 18px 20px;
    gap: 12px;
  }
  .cinematic-cta {
    display: none;
  }
}

/* Cinematic menu overlay panel */
.cinematic-menu-panel {
  position: fixed;
  inset: 0;
  background: #FFFFFF;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.35s ease, transform 0.35s ease,
    visibility 0s linear 0.35s;
  overflow-y: auto;
}

.cinematic-menu-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s ease,
    visibility 0s linear 0s;
}

body.menu-open {
  overflow: hidden;
}

.cinematic-menu-panel-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 24px 32px 80px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.cinematic-menu-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 64px;
}

.cinematic-menu-close {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.02);
  cursor: pointer;
  position: relative;
  padding: 0;
  transition: background 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease;
}

.cinematic-menu-close:hover {
  background: #000000;
  border-color: #000000;
  transform: scale(1.03);
}

.cinematic-menu-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 1.5px;
  background: #000000;
  transition: background 0.2s ease;
}

.cinematic-menu-close span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.cinematic-menu-close span:nth-child(2) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.cinematic-menu-close:hover span {
  background: #FFFFFF;
}

.cinematic-menu-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 80px;
  padding-bottom: 64px;
}

.cinematic-menu-col {
  display: flex;
  flex-direction: column;
}

.cinematic-menu-col a {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #000000;
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.2s ease, padding-left 0.25s ease;
}

.cinematic-menu-col a span {
  font-size: 0.55em;
  color: #6F6F6F;
  transition: transform 0.25s ease, color 0.25s ease;
}

.cinematic-menu-col a:hover {
  color: #6F6F6F;
  padding-left: 12px;
}

.cinematic-menu-col a:hover span {
  transform: translateX(6px);
  color: #000000;
}

.cinematic-menu-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.cinematic-menu-cta {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #FFFFFF;
  background: #000000;
  border-radius: 999px;
  padding: 12px 28px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cinematic-menu-cta:hover {
  transform: scale(1.03);
  color: #FFFFFF;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.cinematic-menu-foot p {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: #6F6F6F;
  margin: 0;
}

@media (max-width: 640px) {
  .cinematic-menu-panel-inner {
    padding: 18px 20px 48px;
  }
  .cinematic-menu-panel-top {
    padding-bottom: 40px;
  }
  .cinematic-menu-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-bottom: 40px;
  }
}

/* ══════════════════════════════════════════════════════════
   SUBPAGE CINEMATIC STYLE
   Editorial typography + shared nav, with a per-page background color
══════════════════════════════════════════════════════════ */

body.page-cinematic {
  background: var(--page-bg, #F5F1E8);
  color: #1A1A1A;
  font-family: 'Inter', system-ui, sans-serif;
  --accent-orange:  #E8743C;
  --accent-blue:    #3B5F7E;
  --accent-mustard: #C99240;
  --accent-green:   #5C7B4F;
}

body.page-cinematic::before { display: none; }

/* Unique per-page background colors (all warm, harmonized with cream home) */
body.page-cinematic.bg-peach    { --page-bg: #F2DECC; }
body.page-cinematic.bg-sage     { --page-bg: #DCE4D2; }
body.page-cinematic.bg-sky      { --page-bg: #D9E1E8; }
body.page-cinematic.bg-butter   { --page-bg: #F1E7C8; }
body.page-cinematic.bg-lilac    { --page-bg: #E2D9E5; }
body.page-cinematic.bg-stone    { --page-bg: #E8E0D2; }
body.page-cinematic.bg-rose     { --page-bg: #EBD8D4; }
body.page-cinematic.bg-mint     { --page-bg: #D4DFD4; }

/* Editorial italic accent helpers (also work on home) */
body.page-cinematic em.accent-orange  { color: var(--accent-orange);  font-style: italic; }
body.page-cinematic em.accent-blue    { color: var(--accent-blue);    font-style: italic; }
body.page-cinematic em.accent-mustard { color: var(--accent-mustard); font-style: italic; }
body.page-cinematic em.accent-green   { color: var(--accent-green);   font-style: italic; }

/* ── Shared cinematic nav (matches home page bar) ─────────── */
.page-cinematic .pc-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  width: 100%;
  background: transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease,
    border-bottom-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.page-cinematic .pc-nav.scrolled {
  background: color-mix(in srgb, var(--page-bg, #F5F1E8) 80%, white 10%);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.page-cinematic .pc-nav-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.page-cinematic .pc-logo {
  font-family: 'Instrument Serif', serif;
  font-size: 1.75rem;
  letter-spacing: -0.025em;
  color: #1A1A1A;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.page-cinematic .pc-logo sup {
  font-size: 0.5em;
  vertical-align: super;
  margin-left: 2px;
  color: var(--accent-orange);
}

.page-cinematic .pc-nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.page-cinematic .pc-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page-cinematic .pc-nav-links a {
  color: #1A1A1A;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.page-cinematic .pc-nav-links a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: #1A1A1A;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.page-cinematic .pc-nav-links a.active::after,
.page-cinematic .pc-nav-links a:hover::after {
  transform: scaleX(1);
}

@media (max-width: 720px) {
  .page-cinematic .pc-nav-links { display: none; }
  .page-cinematic .pc-nav-inner { padding: 18px 20px; }
}

/* ── Editorial page hero (replaces .page-hero on subpages) ── */
.page-cinematic main { background: transparent; }

.page-cinematic .pc-hero {
  max-width: 80rem;
  margin: 0 auto;
  padding: 64px 32px 48px;
}

.page-cinematic .pc-hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #1A1A1A;
  font-weight: 600;
  margin: 0 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.page-cinematic .pc-hero-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: #1A1A1A;
}

.page-cinematic .pc-hero-title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #1A1A1A;
  margin: 0 0 28px;
  max-width: 60rem;
}

.page-cinematic .pc-hero-title em {
  font-style: italic;
  color: #6F6F6F;
}

.page-cinematic .pc-hero-lead {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  line-height: 1.45;
  color: #1A1A1A;
  max-width: 42rem;
  margin: 0;
  font-style: italic;
}

.page-cinematic .pc-hero-lead em {
  font-style: italic;
  color: var(--accent-orange);
}

/* ── Body overrides: editorial cards, sections, footer ───── */
.page-cinematic .section {
  padding: 64px 0;
}

.page-cinematic .section.alt {
  background: rgba(0, 0, 0, 0.03);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.page-cinematic .container {
  width: min(80rem, 92%);
  margin: 0 auto;
}

.page-cinematic .section-title {
  margin-bottom: 40px;
  text-align: left;
}

.page-cinematic .section-title h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: #1A1A1A;
  background: none;
  -webkit-text-fill-color: #1A1A1A;
  margin: 0 0 12px;
}

.page-cinematic .section-title p {
  color: #4A4A4A;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
}

/* Cards take on a warm, semi-translucent card look */
.page-cinematic .card,
.page-cinematic .list-card,
.page-cinematic .timeline-item,
.page-cinematic .pub-card,
.page-cinematic .project-card,
.page-cinematic .stacked-card,
.page-cinematic .award-card-fancy,
.page-cinematic .membership-card,
.page-cinematic .contact-card,
.page-cinematic .signature-card,
.page-cinematic .stay-updated,
.page-cinematic .award-photo-placeholder,
.page-cinematic .fun-fact {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #1A1A1A;
}

.page-cinematic .card:hover,
.page-cinematic .list-card:hover,
.page-cinematic .timeline-item:hover,
.page-cinematic .pub-card:hover,
.page-cinematic .project-card:hover {
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.75);
}

.page-cinematic .card h3,
.page-cinematic .list-card h3,
.page-cinematic .timeline-item h3,
.page-cinematic .pub-content h3,
.page-cinematic .project-title,
.page-cinematic .award-showcase-content h2,
.page-cinematic .award-card-fancy-content h3,
.page-cinematic .stay-updated h3,
.page-cinematic .signature-name {
  color: #1A1A1A;
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  background: none;
  -webkit-text-fill-color: #1A1A1A;
}

.page-cinematic .card p,
.page-cinematic .list-card p,
.page-cinematic .list-card li,
.page-cinematic .timeline-item p,
.page-cinematic .pub-content p,
.page-cinematic .stacked-card .card-content p,
.page-cinematic .stacked-card .card-content li,
.page-cinematic .award-description,
.page-cinematic .stay-updated p,
.page-cinematic .signature-title,
.page-cinematic .signature-org,
.page-cinematic .map-info-card p {
  color: #4A4A4A;
}

.page-cinematic .timeline::before {
  background: linear-gradient(180deg,
    var(--accent-orange), var(--accent-mustard),
    var(--accent-green), var(--accent-blue));
}

.page-cinematic .timeline-item::before {
  background: var(--accent-orange);
  border-color: var(--page-bg, #F5F1E8);
  box-shadow: 0 0 0 4px rgba(232, 116, 60, 0.18);
}

.page-cinematic .timeline-year,
.page-cinematic .pub-meta .year,
.page-cinematic .award-year,
.page-cinematic .membership-year {
  color: var(--accent-orange);
  background: rgba(232, 116, 60, 0.12);
  border: 1px solid rgba(232, 116, 60, 0.25);
  border-radius: 999px;
  padding: 2px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  display: inline-block;
}

.page-cinematic .pub-number {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: #1A1A1A;
}

.page-cinematic .pill,
.page-cinematic .eyebrow {
  background: rgba(232, 116, 60, 0.12);
  color: var(--accent-orange);
  border: 1px solid rgba(232, 116, 60, 0.25);
  -webkit-text-fill-color: var(--accent-orange);
}

.page-cinematic .badge,
.page-cinematic .award-badge,
.page-cinematic .award-ribbon {
  background: #1A1A1A;
  color: var(--page-bg, #F5F1E8);
  -webkit-text-fill-color: var(--page-bg, #F5F1E8);
  box-shadow: none;
}

.page-cinematic .tag {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #1A1A1A;
}

.page-cinematic .tag:hover {
  border-color: var(--accent-orange);
  box-shadow: 0 4px 14px rgba(232, 116, 60, 0.15);
}

.page-cinematic .primary-btn,
.page-cinematic .copy-btn {
  background: #1A1A1A;
  color: var(--page-bg, #F5F1E8);
  border: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.page-cinematic .primary-btn:hover,
.page-cinematic .copy-btn:hover {
  background: var(--accent-orange);
  color: #FFFFFF;
}

.page-cinematic .secondary-btn {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.16);
  color: #1A1A1A;
}

.page-cinematic .secondary-btn:hover {
  background: #1A1A1A;
  color: var(--page-bg, #F5F1E8);
  border-color: #1A1A1A;
  box-shadow: none;
}

.page-cinematic .ghost-btn {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #1A1A1A;
}

/* Page footer takes the editorial treatment */
.page-cinematic .site-footer {
  background: rgba(0, 0, 0, 0.04);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  color: #1A1A1A;
}

.page-cinematic .site-footer h3 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  color: #1A1A1A;
}

.page-cinematic .site-footer p,
.page-cinematic .footer-links a {
  color: #4A4A4A;
}

.page-cinematic .footer-links a:hover { color: var(--accent-orange); }

.page-cinematic .footer-note {
  color: #6F6F6F;
  font-family: 'Inter', sans-serif;
}

/* Fade-rise animations */
@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-rise {
  opacity: 0;
  animation: fade-rise 0.8s ease-out 0s forwards;
}

.animate-fade-rise-delay {
  opacity: 0;
  animation: fade-rise 0.8s ease-out 0.2s forwards;
}

.animate-fade-rise-delay-2 {
  opacity: 0;
  animation: fade-rise 0.8s ease-out 0.4s forwards;
}

/* Cinematic shell responsive */
@media (max-width: 960px) {
  .cinematic-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "nav"
      "tag"
      "wordmark"
      "desc"
      "bio"
      "scroll";
    padding: 24px 24px 64px;
    gap: 24px;
    min-height: 100vh;
  }
  .cinematic-wordmark {
    white-space: normal;
    font-size: clamp(3rem, 18vw, 7rem);
  }
  .cinematic-nav {
    justify-content: space-between;
    padding-top: 0;
  }
  .cinematic-nav-links { gap: 18px; font-size: 0.7rem; }
  .cinematic-tag { text-align: left; margin-top: 0; }
  .cinematic-stage-svg {
    width: min(560px, 90vmin);
  }
  .cinematic-bio,
  .cinematic-desc {
    max-width: 100%;
    justify-self: stretch;
  }
  .cinematic-desc p { text-align: left; }
  .cinematic-name-cta-sub { display: none; }
  .cinematic-scroll-hint {
    justify-self: center;
    margin-top: 32px;
  }
}

@media (max-width: 600px) {
  .cinematic-nav-links a:not(.active) { display: none; }
}

:root {
  color-scheme: dark;
  --bg: #0a0a0f;
  --bg-2: #12121a;
  --card: rgba(20, 20, 30, 0.7);
  --card-solid: #16161f;
  --text: #f0f0f5;
  --muted: #9090a8;
  --accent: #7c3aed;
  --accent-2: #06b6d4;
  --accent-3: #f472b6;
  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(124, 58, 237, 0.4);
  --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --glow: 0 0 40px rgba(124, 58, 237, 0.3);
  --gradient: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-3));
  --glass: rgba(255, 255, 255, 0.03);
}

body.theme-light {
  color-scheme: light;
  --bg: #fafafa;
  --bg-2: #ffffff;
  --card: rgba(255, 255, 255, 0.8);
  --card-solid: #ffffff;
  --text: #0f0f14;
  --muted: #64648a;
  --border: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(124, 58, 237, 0.25);
  --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  --glow: 0 0 40px rgba(124, 58, 237, 0.15);
  --glass: rgba(0, 0, 0, 0.02);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 58, 237, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(6, 182, 212, 0.1), transparent),
    radial-gradient(ellipse 50% 30% at 0% 100%, rgba(244, 114, 182, 0.08), transparent);
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

.container {
  width: min(1200px, 90%);
  margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════
   HEADER & NAVIGATION
══════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

body.theme-light .site-header {
  background: rgba(250, 250, 250, 0.85);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}

.logo {
  font-weight: 700;
  font-size: 24px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
}

.site-nav a {
  color: var(--muted);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--glass);
}

.site-nav a.active {
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border-glow);
  box-shadow: var(--glow);
}

/* Dropdown Navigation */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-toggle {
  color: var(--muted);
  font-family: inherit;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-toggle:hover {
  color: var(--text);
  background: var(--glass);
}

.nav-dropdown-toggle.active {
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border-glow);
  box-shadow: var(--glow);
}

.dropdown-arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
}

.nav-dropdown-menu a:hover {
  color: var(--text);
  background: var(--glass);
}

.ghost-btn {
  border: 1px solid var(--border);
  background: var(--glass);
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  transition: all 0.2s ease;
}

.ghost-btn:hover {
  border-color: var(--border-glow);
  box-shadow: var(--glow);
}

/* ══════════════════════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════════════════════ */
.hero {
  padding: 100px 0 60px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent), transparent 60%);
  opacity: 0.08;
  top: -200px;
  left: -200px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-2), transparent 60%);
  opacity: 0.06;
  bottom: -150px;
  right: -100px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: 60px;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 20px;
  padding: 6px 14px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 999px;
  width: fit-content;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text) 0%, var(--muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead {
  color: var(--muted);
  font-size: 1.15rem;
  margin-bottom: 32px;
  max-width: 500px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.primary-btn {
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5);
  color: #fff;
}

.secondary-btn {
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--glass);
  transition: all 0.3s ease;
}

.secondary-btn:hover {
  border-color: var(--border-glow);
  box-shadow: var(--glow);
  color: var(--text);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.quick-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.quick-links a::before {
  content: '→';
  color: var(--accent);
}

/* ══════════════════════════════════════════════════════════
   HERO VISUAL & IMAGE CARDS
══════════════════════════════════════════════════════════ */
.hero-visual {
  display: grid;
  gap: 20px;
}

.image-card {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--card);
}

.image-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
  pointer-events: none;
}

.image-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.image-card:hover img {
  transform: scale(1.05);
}

.image-badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.1);
}

.hero-card {
  background: var(--card);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-card h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stat {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat:hover {
  border-color: var(--border-glow);
  box-shadow: var(--glow);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.small {
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}

/* ══════════════════════════════════════════════════════════
   TERMINAL WIDGET
══════════════════════════════════════════════════════════ */
.terminal-card {
  background: linear-gradient(145deg, rgba(20, 20, 30, 0.95), rgba(10, 10, 20, 0.98));
  border: 1px solid rgba(124, 58, 237, 0.3);
  font-family: 'JetBrains Mono', monospace;
  padding: 0;
  overflow: hidden;
}

.theme-light .terminal-card {
  background: linear-gradient(145deg, rgba(30, 30, 40, 0.95), rgba(20, 20, 30, 0.98));
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.terminal-body {
  padding: 20px;
}

.terminal-body p {
  margin: 0 0 12px 0;
  font-size: 13px;
  line-height: 1.6;
}

.terminal-prompt {
  color: #27c93f;
  margin-right: 8px;
}

.terminal-output {
  color: #06b6d4;
  padding-left: 24px;
  opacity: 0.9;
}

.terminal-output::before {
  content: '';
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: #7c3aed;
  margin-left: 4px;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ══════════════════════════════════════════════════════════
   TIMELINE LAYOUT (for Experience)
══════════════════════════════════════════════════════════ */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2), var(--accent-3));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding: 24px 32px;
  margin-bottom: 24px;
  background: var(--card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -48px;
  top: 32px;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border: 3px solid var(--bg);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
}

.timeline-item:hover {
  border-color: var(--border-glow);
  transform: translateX(8px);
  box-shadow: var(--glow);
}

.timeline-item .date {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  background: rgba(124, 58, 237, 0.15);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.timeline-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--fg);
}

.timeline-item .org {
  font-size: 14px;
  color: var(--accent-2);
  margin-bottom: 12px;
}

.timeline-item ul {
  margin: 0;
  padding-left: 20px;
}

.timeline-item li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 6px;
}

/* ══════════════════════════════════════════════════════════
   STACKED CARDS (for Research)
══════════════════════════════════════════════════════════ */
.stacked-cards {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.stacked-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  transition: all 0.3s ease;
}

.stacked-card:nth-child(even) {
  direction: rtl;
}

.stacked-card:nth-child(even) > * {
  direction: ltr;
}

.stacked-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--glow);
  transform: translateY(-4px);
}

.stacked-card .card-visual {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.stacked-card .card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stacked-card .card-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(6, 182, 212, 0.2));
  pointer-events: none;
}

.stacked-card .card-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stacked-card .card-content .subtitle {
  font-size: 14px;
  color: var(--accent-2);
  margin-bottom: 16px;
}

.stacked-card .card-content p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.stacked-card .card-content ul {
  margin: 0;
  padding-left: 20px;
}

.stacked-card .card-content li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 8px;
}

.stacked-card .card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(6, 182, 212, 0.1));
  border-radius: 16px;
  font-size: 4rem;
}

@media (max-width: 768px) {
  .timeline {
    padding-left: 24px;
  }
  
  .timeline-item::before {
    left: -32px;
    width: 12px;
    height: 12px;
  }
  
  .stacked-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  
  .stacked-card:nth-child(even) {
    direction: ltr;
  }
  
  .stacked-card .card-visual {
    order: -1;
  }
}

/* ══════════════════════════════════════════════════════════
   PUBLICATION SHOWCASE
══════════════════════════════════════════════════════════ */
.pub-section {
  margin-bottom: 60px;
}

.pub-section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.pub-section-title .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--gradient);
  border-radius: 12px;
  font-size: 1.5rem;
}

.pub-section-title h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.pub-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pub-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: start;
  background: var(--card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 32px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.pub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pub-card:hover {
  border-color: var(--border-glow);
  transform: translateX(8px);
  box-shadow: var(--glow);
}

.pub-card:hover::before {
  opacity: 1;
}

.pub-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(6, 182, 212, 0.2));
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}

.pub-content {
  flex: 1;
}

.pub-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 8px;
  color: var(--fg);
}

.pub-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.pub-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.pub-meta .venue {
  color: var(--accent-2);
  font-weight: 500;
}

.pub-meta .year {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(124, 58, 237, 0.15);
  color: var(--accent);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.pub-type {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-2);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.pub-type.thesis {
  background: rgba(244, 114, 182, 0.15);
  color: var(--accent-3);
  border-color: rgba(244, 114, 182, 0.3);
}

.pub-type.paper {
  background: rgba(124, 58, 237, 0.15);
  color: var(--accent);
  border-color: rgba(124, 58, 237, 0.3);
}

.pub-type.poster {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-2);
  border-color: rgba(6, 182, 212, 0.3);
}

.pub-type.talk {
  background: rgba(250, 204, 21, 0.15);
  color: #facc15;
  border-color: rgba(250, 204, 21, 0.3);
}

.pub-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  transition: all 0.2s ease;
}

.pub-link:hover {
  color: var(--accent-2);
  gap: 10px;
}

.pub-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

@media (max-width: 768px) {
  .pub-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  
  .pub-number {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }
  
  .pub-actions {
    flex-direction: row;
    justify-content: flex-start;
  }
}

/* ══════════════════════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════════════════════ */
.section {
  padding: 80px 0;
}

.section.alt {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  margin-bottom: 48px;
  text-align: center;
}

.section-title h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-title p {
  color: var(--muted);
  font-size: 1.1rem;
}

/* ══════════════════════════════════════════════════════════
   CARDS
══════════════════════════════════════════════════════════ */
.card-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
  background: var(--card);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 0;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.4s ease;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: var(--glow), var(--shadow);
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.card h3 {
  padding: 24px 24px 8px;
  font-size: 1.2rem;
  font-weight: 600;
}

.card p {
  padding: 0 24px 24px;
  color: var(--muted);
  font-size: 14px;
}

/* ══════════════════════════════════════════════════════════
   TAGS & BADGES
══════════════════════════════════════════════════════════ */
.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.tag {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tag:hover {
  border-color: var(--border-glow);
  box-shadow: var(--glow);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  justify-content: center;
}

.badge {
  background: var(--gradient);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

/* ══════════════════════════════════════════════════════════
   TIMELINE
══════════════════════════════════════════════════════════ */
.timeline {
  display: grid;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  background: var(--card);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 28px 32px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.timeline-item:hover {
  border-color: var(--border-glow);
  box-shadow: var(--glow);
}

.timeline-year {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
  padding-top: 4px;
}

.timeline-content h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.timeline-content p {
  color: var(--muted);
  font-size: 14px;
}

/* ══════════════════════════════════════════════════════════
   FUN FACT
══════════════════════════════════════════════════════════ */
.fun-fact {
  background: var(--card);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 48px;
  text-align: center;
  font-size: 1.25rem;
  border: 1px dashed var(--border-glow);
  max-width: 700px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════
   LIST CARDS (SUBPAGES)
══════════════════════════════════════════════════════════ */
.content-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.list-card {
  background: var(--card);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 0;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.3s ease;
}

.list-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--glow);
}

.list-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.list-card h3 {
  padding: 24px 24px 16px;
  font-size: 1.15rem;
  font-weight: 600;
}

.list-card ul {
  list-style: none;
  display: grid;
  gap: 12px;
  padding: 0 24px 24px;
  color: var(--muted);
  font-size: 14px;
}

.list-card li::before {
  content: '▸';
  color: var(--accent);
  margin-right: 8px;
}

/* ══════════════════════════════════════════════════════════
   PAGE HERO
══════════════════════════════════════════════════════════ */
.page-hero {
  padding: 80px 0 40px;
  text-align: center;
}

.page-hero h1 {
  max-width: 700px;
  margin: 0 auto 16px;
}

.page-hero .lead {
  max-width: 500px;
  margin: 0 auto;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--gradient);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
}

/* ══════════════════════════════════════════════════════════
   CONTACT CARD
══════════════════════════════════════════════════════════ */
.contact-card {
  background: var(--card);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 0;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  gap: 0;
}

.contact-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.contact-card h3 {
  padding: 24px 24px 12px;
  font-size: 1.1rem;
}

.contact-card p {
  padding: 0 24px 8px;
  color: var(--muted);
  font-size: 14px;
}

.contact-card > div {
  padding: 16px 24px 24px;
}

.copy-btn {
  border: none;
  background: var(--gradient);
  color: #fff;
  padding: 10px 20px;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

/* ══════════════════════════════════════════════════════════
   AWARDS PAGE - FANCY STYLES
══════════════════════════════════════════════════════════ */
.award-section.alt-bg {
  background: var(--bg-2);
}

/* Featured Award Showcase */
.award-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.award-showcase-content {
  position: relative;
}

.award-badge {
  display: inline-block;
  background: var(--gradient);
  color: #fff;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.award-badge.secondary {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
}

.award-badge.tertiary {
  background: linear-gradient(135deg, #f472b6, #ec4899);
  box-shadow: 0 4px 20px rgba(244, 114, 182, 0.4);
}

.award-showcase-content h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 12px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.award-year {
  color: var(--accent);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 16px;
  font-family: 'JetBrains Mono', monospace;
}

.award-description {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

.award-highlight-bar {
  width: 100px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
  margin-top: 24px;
}

.award-showcase-image {
  position: relative;
}

/* Photo Placeholder Styles */
.award-photo-placeholder {
  background: var(--card);
  border: 2px dashed var(--border);
  border-radius: 16px;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.award-photo-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0.05;
  transition: opacity 0.3s ease;
}

.award-photo-placeholder:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--glow);
}

.award-photo-placeholder:hover::before {
  opacity: 0.1;
}

.placeholder-icon {
  font-size: 3rem;
}

.placeholder-text {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.award-photo-placeholder.large {
  aspect-ratio: 3 / 4;
}

/* Fancy Award Card (alternating layout) */
.award-card-fancy {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 60px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  transition: all 0.3s ease;
}

.award-card-fancy:hover {
  border-color: var(--border-glow);
  box-shadow: var(--glow);
  transform: translateY(-4px);
}

.award-card-fancy.reverse {
  grid-template-columns: 1fr 400px;
}

.award-card-fancy-content h3 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.award-card-fancy-image .award-photo-placeholder {
  aspect-ratio: 4 / 3;
}

/* Award Gallery (for GIS Day) */
.award-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.award-gallery-item {
  position: relative;
}

.award-gallery-info {
  text-align: center;
  padding: 20px;
}

.award-ribbon {
  display: inline-block;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #000;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.award-ribbon.special {
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  color: #fff;
}

.award-gallery-info h4 {
  font-size: 1.2rem;
  color: var(--text);
}

/* Membership Grid */
.membership-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.membership-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.membership-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.membership-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.membership-card:hover::before {
  transform: scaleX(1);
}

.membership-card.honor {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(6, 182, 212, 0.05));
  border-color: var(--border-glow);
}

.membership-card.honor::before {
  transform: scaleX(1);
}

.membership-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.membership-card h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.membership-year {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 12px;
}

.membership-card > p:last-child {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Awards Page Responsive */
@media (max-width: 900px) {
  .award-showcase {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .award-showcase-content h2 {
    font-size: 2rem;
  }

  .award-card-fancy,
  .award-card-fancy.reverse {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .award-gallery {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .membership-grid {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════════════════
   CONTACT PAGE - SIGNATURE & MAP
══════════════════════════════════════════════════════════ */

/* Professional Signature Card */
.signature-card {
  display: flex;
  align-items: center;
  gap: 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.signature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient);
}

.signature-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.signature-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.3);
}

.avatar-initials {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -2px;
}

.signature-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.signature-name {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.signature-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.signature-org {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.signature-divider {
  width: 1px;
  height: 120px;
  background: var(--border);
  flex-shrink: 0;
}

.signature-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.signature-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.signature-icon {
  font-size: 1.2rem;
  width: 32px;
  text-align: center;
}

.signature-contact-item > div {
  display: flex;
  flex-direction: column;
}

.signature-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 600;
}

.signature-contact-item a,
.signature-contact-item span:not(.signature-label):not(.signature-icon) {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

.signature-contact-item a:hover {
  color: var(--accent);
}

.signature-social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  transition: all 0.2s ease;
}

.social-link:hover {
  color: var(--text);
  border-color: var(--border-glow);
  background: var(--card);
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

/* Map Section */
.alt-bg {
  background: var(--bg-2);
}

.map-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.map-container iframe {
  display: block;
  filter: grayscale(20%) contrast(1.1);
}

body.theme-light .map-container iframe {
  filter: none;
}

.map-info-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 10;
}

.map-info-card {
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.map-info-card h4 {
  font-size: 1rem;
  margin: 0 0 4px 0;
  color: var(--text);
}

.map-info-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* Contact Page Responsive */
@media (max-width: 900px) {
  .signature-card {
    flex-direction: column;
    text-align: center;
    gap: 24px;
    padding: 32px 24px;
  }

  .signature-left {
    flex-direction: column;
    gap: 16px;
  }

  .signature-divider {
    width: 100%;
    height: 1px;
  }

  .signature-right {
    align-items: center;
  }

  .signature-contact-item {
    justify-content: center;
  }

  .signature-social {
    justify-content: center;
  }
}

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.site-footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: center;
}

.footer-grid h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.footer-grid p {
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
}

.footer-links a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-note {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin-top: 32px;
  font-family: 'JetBrains Mono', monospace;
}

/* ══════════════════════════════════════════════════════════
   PROJECT SHOWCASE (UPenn Page)
══════════════════════════════════════════════════════════ */
.project-intro {
  text-align: center;
  margin-bottom: 60px;
}

.project-intro .eyebrow {
  margin: 0 auto 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text) 0%, var(--muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.project-showcase {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.project-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  background: var(--card);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--glow), var(--shadow);
}

.project-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 3rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.3;
  line-height: 1;
}

.project-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tags .tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.15);
  color: var(--accent);
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.project-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}

.project-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.project-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--accent-2);
  font-family: 'JetBrains Mono', monospace;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.4); }
  50% { opacity: 0.6; box-shadow: 0 0 0 8px rgba(6, 182, 212, 0); }
}

.project-visual {
  width: 180px;
  height: 120px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Code Preview Visual */
.code-preview {
  width: 100%;
  height: 100%;
  padding: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.code-line {
  display: block;
  color: var(--muted);
}

.code-keyword {
  color: var(--accent);
}

.code-comment {
  color: var(--accent-2);
  font-style: italic;
}

.code-cursor {
  display: inline-block;
  width: 6px;
  height: 12px;
  background: var(--accent);
  animation: blink 1s step-end infinite;
  margin-top: 4px;
}

/* Map Preview Visual */
.map-preview {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 20px;
}

.map-cell {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  transition: all 0.3s ease;
}

.map-cell.active {
  background: rgba(6, 182, 212, 0.3);
  border-color: rgba(6, 182, 212, 0.5);
  animation: cell-glow 2s ease-in-out infinite alternate;
}

@keyframes cell-glow {
  0% { background: rgba(6, 182, 212, 0.2); }
  100% { background: rgba(124, 58, 237, 0.3); }
}

.map-ping {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  background: var(--accent-3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.map-ping::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent-3);
  animation: ping-ring 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% { opacity: 0; }
}

@keyframes ping-ring {
  75%, 100% { transform: scale(2.5); opacity: 0; }
}

/* Chart Preview Visual */
.chart-preview {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  height: 100%;
  padding: 20px;
}

.chart-preview .bar {
  width: 20px;
  height: var(--height, 50%);
  background: var(--gradient);
  border-radius: 4px 4px 0 0;
  animation: bar-grow 2s ease-in-out infinite alternate;
}

.chart-preview .bar:nth-child(1) { animation-delay: 0s; }
.chart-preview .bar:nth-child(2) { animation-delay: 0.2s; }
.chart-preview .bar:nth-child(3) { animation-delay: 0.4s; }
.chart-preview .bar:nth-child(4) { animation-delay: 0.6s; }
.chart-preview .bar:nth-child(5) { animation-delay: 0.8s; }

@keyframes bar-grow {
  0% { opacity: 0.5; transform: scaleY(0.8); }
  100% { opacity: 1; transform: scaleY(1); }
}

/* Terrain Preview Visual (LiDAR) */
.terrain-preview {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 20px;
}

.terrain-line {
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--accent) 20%, 
    var(--accent-2) 40%, 
    var(--accent) 60%, 
    var(--accent-3) 80%, 
    transparent 100%
  );
  border-radius: 2px;
  animation: terrain-scan 3s ease-in-out infinite;
  animation-delay: calc(var(--offset) * 0.2s);
  opacity: 0.7;
}

@keyframes terrain-scan {
  0%, 100% { 
    transform: scaleX(0.6) translateX(-20%); 
    opacity: 0.4;
  }
  50% { 
    transform: scaleX(1) translateX(0); 
    opacity: 1;
  }
}

/* Satellite Preview Visual */
.satellite-preview {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.orbit-ring {
  width: 80px;
  height: 80px;
  border: 2px dashed rgba(124, 58, 237, 0.3);
  border-radius: 50%;
  position: relative;
  animation: orbit-pulse 4s ease-in-out infinite;
}

.orbit-ring::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: var(--gradient);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
}

.satellite-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--accent-2);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-2);
  animation: orbit-rotate 3s linear infinite;
  transform-origin: 0 0;
}

@keyframes orbit-pulse {
  0%, 100% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
}

@keyframes orbit-rotate {
  0% { transform: rotate(0deg) translateX(45px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(45px) rotate(-360deg); }
}

/* Wave Preview Visual (Climate) */
.wave-preview {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  overflow: hidden;
}

.wave-preview svg {
  width: 140%;
  height: 60px;
  animation: wave-drift 3s ease-in-out infinite;
}

.wave-path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
}

.wave-path.wave-2 {
  stroke: var(--accent-2);
  opacity: 0.6;
}

@keyframes wave-drift {
  0%, 100% { 
    transform: translateX(-10%);
    opacity: 0.7;
  }
  50% { 
    transform: translateX(0%);
    opacity: 1;
  }
}

/* Stay Updated Card */
.stay-updated {
  text-align: center;
  margin-top: 60px;
  padding: 48px;
  background: var(--card);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px dashed var(--border);
  border-radius: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  transition: all 0.3s ease;
}

.stay-updated:hover {
  border-color: var(--border-glow);
  border-style: solid;
}

.update-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.stay-updated h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stay-updated p {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 14px;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .nav-wrap {
    flex-direction: column;
    gap: 16px;
  }

  .site-nav {
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .card-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  /* Project Cards Responsive */
  .project-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 24px;
  }

  .project-number {
    font-size: 2rem;
  }

  .project-content {
    align-items: center;
  }

  .project-tags {
    justify-content: center;
  }

  .project-visual {
    width: 100%;
    height: 100px;
  }

  .stay-updated {
    padding: 32px 24px;
  }
}
