/* Chromatic terminal — shared visual system */
:root {
  --navy: #071d49;
  --navy-2: #102a68;
  --ink: #081a3a;
  --cream: #f3f7ff;
  --blue: #2563eb;
  --gold: #f7c948;
  --coral: #ff5f7a;
  --mint: #39e6c6;
  --violet: #7857ff;
  --cyan: #37cfff;
  --tech-line: rgba(72, 128, 255, .16);
  --tech-shadow: 0 24px 70px rgba(7, 29, 73, .16);
  --tech-ease: cubic-bezier(.16, 1, .3, 1);
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: tech-out .28s var(--tech-ease) both; }
::view-transition-new(root) { animation: tech-in .55s var(--tech-ease) both; }

html { background: #071d49; }
body {
  background-color: var(--page-bg, #f3f7ff);
  background-image:
    linear-gradient(var(--page-grid, rgba(37,99,235,.075)) 1px, transparent 1px),
    linear-gradient(90deg, var(--page-grid, rgba(37,99,235,.075)) 1px, transparent 1px),
    radial-gradient(circle at 82% 12%, var(--page-glow, rgba(55,207,255,.18)), transparent 28rem);
  background-size: 44px 44px, 44px 44px, auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 98;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, transparent 0 5px, rgba(5,25,65,.025) 5px 6px);
  mix-blend-mode: multiply;
}

.noise { opacity: .025; }
.cursor-glow {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, color-mix(in srgb, var(--page-accent, var(--cyan)) 22%, transparent), transparent 68%);
  filter: blur(10px);
}

.site-header {
  padding: 16px 3.5vw;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.site-header.scrolled,
body:not(.home-page) .site-header {
  background: rgba(243,247,255,.82);
  border-color: var(--tech-line);
  box-shadow: 0 10px 40px rgba(7,29,73,.07);
  backdrop-filter: blur(22px) saturate(150%);
}
.brand span {
  border-radius: 11px;
  border-color: color-mix(in srgb, currentColor 45%, transparent);
  background: color-mix(in srgb, var(--page-accent, var(--cyan)) 14%, transparent);
  box-shadow: inset 0 0 18px color-mix(in srgb, var(--page-accent, var(--cyan)) 18%, transparent);
}
.command-nav {
  border-color: color-mix(in srgb, currentColor 22%, transparent);
  background: color-mix(in srgb, var(--page-bg, #f3f7ff) 62%, transparent);
  backdrop-filter: blur(18px);
}
.command-nav a { transition: color .25s ease, background .25s ease, transform .25s var(--tech-ease); }
.command-nav a:hover,
.command-nav a.active {
  color: #fff;
  background: var(--page-accent, var(--blue));
  transform: translateY(-1px);
}

.hero {
  background:
    linear-gradient(rgba(55,207,255,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(55,207,255,.09) 1px, transparent 1px),
    radial-gradient(circle at 76% 26%, rgba(57,230,198,.28), transparent 23%),
    radial-gradient(circle at 18% 80%, rgba(120,87,255,.5), transparent 34%),
    linear-gradient(135deg, #0a2d70 0%, #194eb6 50%, #4f32b8 100%);
  background-size: 58px 58px, 58px 58px, auto, auto, auto;
}
.hero::before {
  content: "SYS / PORTFOLIO_01";
  position: absolute;
  top: 106px;
  right: 4vw;
  z-index: 3;
  color: rgba(255,255,255,.52);
  font: 10px var(--mono);
  letter-spacing: .15em;
}
.hero h1 em,
.page-hero h1 em { color: var(--mint); font-family: var(--sans); font-style: normal; font-weight: 500; }
.role-line {
  display: inline-flex;
  gap: .5em;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  background: rgba(7,29,73,.2);
  backdrop-filter: blur(12px);
  font-family: var(--mono);
}
.portrait-frame {
  border-radius: 28px 28px 6px 28px;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 18px 18px 0 rgba(57,230,198,.18), var(--tech-shadow);
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%);
}
.hero .button.primary {
  background: var(--mint);
  color: #071d49;
  border-color: var(--mint);
  box-shadow: 0 0 30px rgba(57,230,198,.25);
}

/* Landing-page flashcard architecture */
.portfolio-puzzle {
  background:
    linear-gradient(rgba(55,207,255,.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(55,207,255,.1) 1px, transparent 1px),
    radial-gradient(circle at 50% 48%, rgba(120,87,255,.32), transparent 31rem),
    linear-gradient(135deg, #081f50, #153a82 55%, #25307b) !important;
  background-size: 48px 48px, 48px 48px, auto, auto !important;
  color: #fff;
}
.portfolio-puzzle::before {
  left: 3.5vw;
  width: 1px;
  background: linear-gradient(transparent, var(--cyan), transparent);
  box-shadow: 14px 0 30px var(--cyan);
  opacity: .6;
}
.portfolio-puzzle::after { opacity: .16; }
.portfolio-puzzle .section-kicker span,
.portfolio-puzzle .eyebrow { color: var(--mint); }
.puzzle-heading h2 { color: #fff; }
.puzzle-heading h2 em { color: var(--cyan); }
.doodle-field { display: none; }
.puzzle-link path {
  fill: color-mix(in srgb, var(--accent) 25%, #102a68 75%);
  stroke: color-mix(in srgb, var(--accent) 72%, white 28%);
  stroke-width: 2;
  filter: drop-shadow(0 14px 22px rgba(1,11,38,.2));
}
.puzzle-link text { fill: #fff; font-family: var(--mono); letter-spacing: -.02em; }
.puzzle-projects { --accent: #37cfff; }
.puzzle-research { --accent: #a68bff; }
.puzzle-conferences { --accent: #ff6f91; }
.puzzle-awards { --accent: #f7c948; }
.puzzle-work { --accent: #39e6c6; }
.puzzle-link:hover path,
.puzzle-link:focus-visible path {
  fill: color-mix(in srgb, var(--accent) 44%, #102a68 56%);
  stroke: #fff;
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--accent) 60%, transparent));
}
.puzzle-link:hover text,
.puzzle-link:focus-visible text { fill: #fff; }

.world-section {
  background:
    linear-gradient(rgba(7,29,73,.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7,29,73,.075) 1px, transparent 1px),
    linear-gradient(135deg, #7cf0d5, #4dd7da 56%, #55b6ee) !important;
  background-size: 52px 52px, 52px 52px, auto !important;
}
.home-know-me {
  background:
    radial-gradient(circle at 12% 22%, rgba(55,207,255,.22), transparent 24rem),
    linear-gradient(135deg, #ecf3ff, #e8e4ff 55%, #d8faff) !important;
}
.know-me-actions a,
.know-me-cta,
.chain-photo {
  border-color: rgba(37,99,235,.28) !important;
  box-shadow: var(--tech-shadow);
}

/* Route identities */
.about-page { --page-accent: #7857ff; --page-bg: #f2f0ff; --page-grid: rgba(120,87,255,.09); --page-glow: rgba(120,87,255,.23); }
.places-page { --page-accent: #008f88; --page-bg: #edfffb; --page-grid: rgba(0,143,136,.09); --page-glow: rgba(57,230,198,.28); }
.projects-page { --page-accent: #2563eb; --page-bg: #edf5ff; --page-grid: rgba(37,99,235,.09); --page-glow: rgba(55,207,255,.26); }
.papers-page { --page-accent: #6b48e8; --page-bg: #f4f0ff; --page-grid: rgba(107,72,232,.09); --page-glow: rgba(166,139,255,.3); }
.work-page { --page-accent: #008ba8; --page-bg: #ebfbff; --page-grid: rgba(0,139,168,.09); --page-glow: rgba(55,207,255,.25); }
.awards-page:not(.work-page) { --page-accent: #d87800; --page-bg: #fff8e7; --page-grid: rgba(216,120,0,.08); --page-glow: rgba(247,201,72,.28); }
.contact-page { --page-accent: #df3565; --page-bg: #fff0f6; --page-grid: rgba(223,53,101,.08); --page-glow: rgba(255,95,122,.25); }
.cv-page { --page-accent: #1469d7; --page-bg: #eef6ff; --page-grid: rgba(20,105,215,.08); --page-glow: rgba(55,207,255,.22); }

body.about-page,
body.places-page,
body.projects-page,
body.papers-page,
body.awards-page,
body.contact-page,
body.cv-page {
  background-color: var(--page-bg);
  background-image:
    linear-gradient(var(--page-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--page-grid) 1px, transparent 1px),
    radial-gradient(circle at 82% 12%, var(--page-glow), transparent 28rem);
  background-size: 44px 44px, 44px 44px, auto;
}

body .page-hero {
  background:
    linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px),
    radial-gradient(circle at 82% 22%, color-mix(in srgb, var(--page-accent) 60%, white 5%), transparent 28rem),
    linear-gradient(135deg, color-mix(in srgb, var(--page-accent) 55%, #071d49), #102a68) !important;
  background-size: 48px 48px, 48px 48px, auto, auto !important;
  color: #fff !important;
}
body.about-page .page-hero,
body.places-page .page-hero,
body.projects-page .page-hero,
body.papers-page .page-hero,
body.awards-page .page-hero,
body.contact-page .page-hero,
body.cv-page .page-hero {
  background-image:
    linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px),
    radial-gradient(circle at 82% 22%, color-mix(in srgb, var(--page-accent) 60%, white 5%), transparent 28rem),
    linear-gradient(135deg, color-mix(in srgb, var(--page-accent) 55%, #071d49), #102a68) !important;
  background-size: 48px 48px, 48px 48px, auto, auto !important;
}
body .page-hero h1,
body .page-hero h1 em,
body .page-hero .page-lede { color: #fff !important; }
body .page-hero .eyebrow { color: #071d49; }
body .page-hero::after { -webkit-text-stroke-color: rgba(255,255,255,.11); }

.content-wrap,
.paper-library,
.project-selector,
.project-detail-area { position: relative; }
.about-page .content-wrap,
.places-page .content-wrap,
.projects-page .content-wrap,
.awards-page .content-wrap,
.cv-page .content-wrap,
.contact-page .content-wrap { background: transparent; }
.timeline-item,
.cv-entry,
.project-tile,
.paper-card,
.email-card,
.linkedin-section,
.calendly-section,
.about-chapter,
.passport {
  border-color: color-mix(in srgb, var(--page-accent) 38%, #071d49 62%) !important;
  box-shadow: 8px 10px 0 color-mix(in srgb, var(--page-accent) 14%, transparent), 0 22px 55px rgba(7,29,73,.09) !important;
  transition: transform .45s var(--tech-ease), box-shadow .45s var(--tech-ease), border-color .3s ease !important;
}
.timeline-item:hover,
.cv-entry:hover,
.project-tile:hover,
.paper-card:hover,
.email-card:hover {
  transform: translateY(-7px) !important;
  border-color: var(--page-accent) !important;
  box-shadow: 12px 16px 0 color-mix(in srgb, var(--page-accent) 18%, transparent), 0 30px 70px rgba(7,29,73,.13) !important;
}
.project-tile,
.paper-card,
.timeline-item,
.cv-entry { backdrop-filter: blur(10px); }
.project-tile { background: color-mix(in srgb, var(--tile-color, #fff) 65%, white 35%) !important; }
.project-tile:nth-child(5n+1) { --tile-color: #a7ddff; }
.project-tile:nth-child(5n+2) { --tile-color: #b9aaef; }
.project-tile:nth-child(5n+3) { --tile-color: #ffb3c4; }
.project-tile:nth-child(5n+4) { --tile-color: #ffe38a; }
.project-tile:nth-child(5n+5) { --tile-color: #9ce8d9; }

.button,
.circle-link,
.archive-switch,
.detail-toolbar a,
.globe-places-link {
  border-radius: 9px !important;
  transition: transform .35s var(--tech-ease), color .25s ease, background .25s ease, box-shadow .35s ease !important;
}
.button:hover,
.circle-link:hover,
.archive-switch:hover,
.detail-toolbar a:hover,
.globe-places-link:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--page-accent, var(--cyan)) 24%, transparent);
}
.button.primary { background: var(--page-accent, var(--mint)); border-color: var(--page-accent, var(--mint)); color: #fff; }
footer {
  background:
    linear-gradient(90deg, rgba(55,207,255,.06) 1px, transparent 1px),
    linear-gradient(135deg, #071d49, #142e69);
  background-size: 44px 44px, auto;
  border-top: 1px solid rgba(55,207,255,.22);
}

.reveal { transition-duration: .8s !important; transition-timing-function: var(--tech-ease) !important; }

@keyframes tech-out { to { opacity: 0; transform: scale(.992); filter: blur(5px); } }
@keyframes tech-in { from { opacity: 0; transform: translateY(12px); filter: blur(8px); } }

@media (max-width: 1000px) {
  .command-nav {
    visibility: hidden;
    opacity: 0;
    transform: translateY(-105%);
    transition: transform .45s var(--tech-ease), opacity .25s ease, visibility 0s linear .45s;
  }
  .command-nav.open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }
}

@media (max-width: 900px) {
  .site-header { background: rgba(243,247,255,.9); color: var(--ink) !important; }
  .hero::before,
  body .page-hero::before { display: none; }
  .command-nav { background: rgba(243,247,255,.96); }
  .portrait-frame { box-shadow: 10px 10px 0 rgba(57,230,198,.18), var(--tech-shadow); }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Calm aurora revision */
.home-page .hero {
  background:
    radial-gradient(circle, rgba(133,236,255,.15) 1px, transparent 1.7px) 0 0 / 26px 26px,
    linear-gradient(rgba(143,224,255,.08) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(90deg, rgba(143,224,255,.08) 1px, transparent 1px) 0 0 / 72px 72px,
    radial-gradient(circle at 80% 24%, rgba(82,226,213,.3), transparent 25%),
    radial-gradient(circle at 16% 76%, rgba(255,112,172,.25), transparent 30%),
    linear-gradient(135deg, #17185d 0%, #44308e 52%, #146f96 100%) !important;
}

.home-page .role-line {
  font-family: var(--sans) !important;
  background: rgba(25,24,93,.24);
  border-color: rgba(132,239,225,.26);
}
.home-page .rotating-role { color: #72f1dc; }
.home-page .hero h1 em { color: #ff8fc7 !important; }
.home-page .hero .button.primary {
  color: #241552;
  background: #ff91c2;
  border-color: #ff91c2;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 0 34px rgba(255,112,172,.32);
}
.home-page .portrait-frame {
  border-color: rgba(126,245,222,.48);
  box-shadow: 18px 18px 0 rgba(255,112,172,.2), 0 28px 80px rgba(9,12,65,.34);
}

.home-page .portfolio-puzzle {
  background:
    radial-gradient(circle, rgba(130,241,222,.13) 1px, transparent 1.7px) 0 0 / 28px 28px,
    linear-gradient(rgba(130,210,255,.1) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(130,210,255,.1) 1px, transparent 1px) 0 0 / 64px 64px,
    radial-gradient(circle at 50% 48%, rgba(255,116,178,.18), transparent 29rem),
    linear-gradient(135deg, #222168, #452c82 54%, #145d83) !important;
  background-size: 28px 28px, 64px 64px, 64px 64px, auto, auto !important;
}

.home-page .world-section {
  color: #f8fcff;
  background:
    radial-gradient(circle, rgba(124,242,221,.14) 1px, transparent 1.8px) 0 0 / 30px 30px,
    linear-gradient(rgba(132,216,255,.1) 1px, transparent 1px) 0 0 / 68px 68px,
    linear-gradient(90deg, rgba(132,216,255,.1) 1px, transparent 1px) 0 0 / 68px 68px,
    radial-gradient(circle at 76% 34%, rgba(55,207,255,.32), transparent 30%),
    linear-gradient(135deg, #10285f 0%, #164f78 48%, #167f82 100%) !important;
  background-size: 30px 30px, 68px 68px, 68px 68px, auto, auto !important;
}
.home-page .world-section .eyebrow,
.home-page .world-section .section-kicker span { color: #7ff4da; }
.home-page .globe-copy .globe-hint,
.home-page .globe-places-link {
  color: #f7fdff;
  border-color: rgba(255,255,255,.28);
  background: rgba(10,35,83,.36);
}
.home-page .globe-places-link:hover { background: #ff91c2; color: #241552; }
.home-page .home-know-me {
  background:
    radial-gradient(circle at 12% 22%, rgba(63,205,255,.28), transparent 24rem),
    radial-gradient(circle at 82% 78%, rgba(255,112,172,.2), transparent 28rem),
    linear-gradient(135deg, #edf3ff, #e8e5ff 52%, #d8fbf6) !important;
}

@media (min-width: 921px) {
  .home-page .horizontal-intro-track > [data-chapter-panel] {
    transform-origin: center 8%;
    transition: transform .18s cubic-bezier(.22,.61,.36,1), filter .2s ease;
  }
  .home-page .horizontal-intro-track > [data-chapter-panel]:not(:first-child) {
    border-radius: clamp(44px, 6vw, 88px) clamp(44px, 6vw, 88px) 0 0;
    box-shadow:
      inset 0 2px 0 rgba(255,255,255,.76),
      0 -4px 0 rgba(119,238,221,.22),
      0 -24px 42px rgba(12,21,78,.24),
      0 -64px 120px rgba(9,16,63,.34);
  }
}

/* A hand-drawn, glowing underline replaces navigation blocks. */
.command-nav a {
  --nav-tone: #ff647f;
  position: relative;
  isolation: isolate;
  color: inherit !important;
  background: transparent !important;
  border-bottom-color: transparent !important;
}
.command-nav a:nth-of-type(2) { --nav-tone: #8b5cf6; }
.command-nav a:nth-of-type(3) { --nav-tone: #00a884; }
.command-nav a:nth-of-type(4) { --nav-tone: #2478ff; }
.command-nav a:nth-of-type(5) { --nav-tone: #de416f; }
.command-nav a:nth-of-type(6) { --nav-tone: #00a2b8; }
.command-nav a:nth-of-type(7) { --nav-tone: #e49300; }
.command-nav a:nth-of-type(8) { --nav-tone: #e33f9a; }
.command-nav a::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -4%;
  right: -4%;
  bottom: 1px;
  height: 8px;
  background:
    linear-gradient(-2deg, transparent 0 23%, var(--nav-tone) 25% 47%, transparent 49% 58%, color-mix(in srgb, var(--nav-tone) 80%, white) 61% 77%, transparent 80%);
  clip-path: polygon(0 33%, 15% 24%, 31% 34%, 48% 17%, 66% 29%, 84% 20%, 100% 38%, 100% 79%, 82% 67%, 63% 80%, 45% 65%, 25% 82%, 0 68%);
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--nav-tone) 68%, transparent));
  transform: scaleX(0) rotate(-1deg);
  transform-origin: left center;
  opacity: 0;
  transition: transform .42s var(--tech-ease), opacity .22s ease;
}
.command-nav a:hover::after { transform: scaleX(.72) rotate(-1deg); opacity: .65; }
.command-nav a.active::after { transform: scaleX(1) rotate(-1deg); opacity: 1; }

/* More distinct route palettes. */
.about-page { --page-accent: #8b4de8; --page-bg: #f5efff; --page-grid: rgba(139,77,232,.1); --page-glow: rgba(229,82,198,.2); --hero-a:#35165f; --hero-b:#7d36a0; --note-color:#f4a7ff; }
.places-page { --page-accent: #008b78; --page-bg: #ebfff9; --page-grid: rgba(0,139,120,.1); --page-glow: rgba(62,226,191,.25); --hero-a:#064d60; --hero-b:#079184; --note-color:#8affdb; }
.projects-page { --page-accent: #236cec; --page-bg: #edf5ff; --page-grid: rgba(35,108,236,.1); --page-glow: rgba(44,189,255,.23); --hero-a:#192b80; --hero-b:#107bb3; --note-color:#83e7ff; }
.papers-page { --page-accent: #ce3f6a; --page-bg: #fff0f5; --page-grid: rgba(206,63,106,.09); --page-glow: rgba(255,98,142,.2); --hero-a:#641946; --hero-b:#c83d69; --note-color:#ffb0cf; }
.work-page { --page-accent: #008fa5; --page-bg: #eaffff; --page-grid: rgba(0,143,165,.1); --page-glow: rgba(35,224,211,.23); --hero-a:#084b6b; --hero-b:#009b99; --note-color:#82ffe7; }
.awards-page:not(.work-page) { --page-accent: #d17908; --page-bg: #fff8e5; --page-grid: rgba(209,121,8,.09); --page-glow: rgba(255,190,50,.24); --hero-a:#75400c; --hero-b:#d18213; --note-color:#ffe190; }
.contact-page { --page-accent: #d83289; --page-bg: #fff0f8; --page-grid: rgba(216,50,137,.09); --page-glow: rgba(255,89,172,.22); --hero-a:#67134b; --hero-b:#bd397d; --note-color:#ffafd9; }
.cv-page { --page-accent: #32866f; --page-bg: #effcf7; --page-grid: rgba(50,134,111,.09); --page-glow: rgba(80,209,161,.22); --hero-a:#173e5d; --hero-b:#2a876f; --note-color:#a1f4ca; }

body.about-page .page-hero,
body.places-page .page-hero,
body.projects-page .page-hero,
body.papers-page .page-hero,
body.awards-page .page-hero,
body.contact-page .page-hero,
body.cv-page .page-hero {
  background-image:
    radial-gradient(circle, rgba(255,255,255,.13) 1px, transparent 1.8px),
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
    radial-gradient(circle at 83% 28%, color-mix(in srgb, var(--page-accent) 72%, white 8%), transparent 24rem),
    linear-gradient(135deg, var(--hero-a), var(--hero-b)) !important;
  background-size: 27px 27px, 60px 60px, 60px 60px, auto, auto !important;
}
.page-hero .hero-hand-note {
  position: absolute;
  z-index: 4;
  top: 39%;
  right: 6vw;
  width: min(29vw, 410px);
  margin: 0;
  color: var(--note-color, #a8f2ff);
  font: 600 clamp(30px, 3.2vw, 52px)/.98 "Caveat", cursive;
  text-align: center;
  text-shadow: 0 0 8px color-mix(in srgb, var(--note-color) 64%, transparent), 0 0 24px color-mix(in srgb, var(--note-color) 38%, transparent);
  transform: rotate(-4deg);
  pointer-events: none;
}

/* GitHub profile preview */
.github-profile-section {
  padding: 40px 5vw 130px;
  color: #f4f8ff;
  background:
    radial-gradient(circle at 84% 18%, rgba(73,183,255,.22), transparent 26rem),
    radial-gradient(circle at 16% 82%, rgba(151,89,255,.2), transparent 30rem),
    linear-gradient(135deg, #101a43, #172f61 58%, #123e60);
}
.github-section-heading {
  max-width: 1320px;
  margin: 0 auto 44px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 7vw;
  align-items: end;
}
.github-section-heading .eyebrow { color: #72f1dc; }
.github-section-heading h2 { margin: 12px 0 0; font-size: clamp(54px,8vw,118px); line-height: .86; letter-spacing: -.075em; }
.github-section-heading > p { max-width: 520px; margin: 0; font-size: 18px; line-height: 1.7; color: rgba(244,248,255,.76); }
.github-browser { max-width: 1320px; margin: auto; overflow: hidden; border: 1px solid rgba(128,222,255,.3); border-radius: 22px; background: rgba(6,15,41,.68); box-shadow: 0 36px 100px rgba(0,5,29,.38), 14px 14px 0 rgba(55,207,255,.1); backdrop-filter: blur(18px); }
.github-browser-bar { min-height: 54px; display: flex; align-items: center; gap: 9px; padding: 0 18px; border-bottom: 1px solid rgba(128,222,255,.22); background: rgba(255,255,255,.06); }
.github-browser-bar span { width: 11px; height: 11px; border-radius: 50%; background: #ff718f; }
.github-browser-bar span:nth-child(2) { background: #ffd166; }
.github-browser-bar span:nth-child(3) { background: #65e3c6; }
.github-browser-bar b { margin-left: 12px; font: 500 11px var(--mono); color: rgba(244,248,255,.7); }
.github-browser-bar i { margin-left: auto; padding: 6px 9px; border: 1px solid rgba(114,241,220,.38); border-radius: 6px; color: #72f1dc; font: normal 500 9px var(--mono); letter-spacing: .1em; }
.github-browser-body { display: grid; grid-template-columns: 330px 1fr; min-height: 520px; }
.github-identity { padding: 42px 34px; border-right: 1px solid rgba(128,222,255,.18); }
.github-identity img { width: 168px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 2px solid #72f1dc; box-shadow: 0 0 35px rgba(114,241,220,.2); }
.github-identity h3 { margin: 25px 0 2px; font-size: 29px; letter-spacing: -.035em; }
.github-handle { margin: 0 0 22px !important; color: #91a4c9 !important; font: 16px var(--mono) !important; }
.github-identity > p { color: rgba(244,248,255,.76); line-height: 1.55; }
.github-identity dl { margin: 30px 0 0; }
.github-identity dl div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-top: 1px solid rgba(128,222,255,.15); }
.github-identity dt { color: #91a4c9; font: 11px var(--mono); text-transform: uppercase; }
.github-identity dd { margin: 0; font-weight: 700; }
.github-work { padding: 28px 34px 38px; }
.github-tabs { display: flex; gap: 28px; padding: 0 2px 18px; border-bottom: 1px solid rgba(128,222,255,.18); font-size: 13px; }
.github-tabs strong { color: #72f1dc; }
.github-mini-label { margin: 30px 0 14px; color: #91a4c9; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.github-work h3 { margin: 30px 0 14px; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #91a4c9; }
.github-repo { display: block; padding: 22px; margin-top: 12px; border: 1px solid rgba(128,222,255,.2); border-radius: 12px; background: rgba(255,255,255,.045); transition: transform .35s var(--tech-ease), border-color .25s ease, background .25s ease; }
.github-repo:hover { transform: translateX(7px); border-color: #72f1dc; background: rgba(114,241,220,.08); }
.github-repo strong { color: #7fdcff; font: 600 16px var(--mono); }
.github-repo p { margin: 9px 0 16px; color: rgba(244,248,255,.68); line-height: 1.5; }
.github-repo small { color: #aebbd5; font: 10px var(--mono); text-transform: uppercase; }
.github-repo small::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #f1e05a; box-shadow: 0 0 10px rgba(241,224,90,.45); }
.github-open { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 24px; padding: 14px 18px; border: 1px solid #72f1dc; border-radius: 8px; color: #72f1dc; font-weight: 700; transition: background .25s ease, color .25s ease, transform .3s var(--tech-ease); }
.github-open:hover { background: #72f1dc; color: #101a43; transform: translateY(-3px); }

@media (max-width: 1000px) {
  .command-nav a::after { bottom: 3px; height: 10px; }
  .page-hero .hero-hand-note { top: auto; right: 5vw; bottom: 5%; width: 34vw; font-size: clamp(26px,4vw,38px); }
  .github-browser-body { grid-template-columns: 280px 1fr; }
}
@media (max-width: 760px) {
  .page-hero .hero-hand-note { display: none; }
  .github-section-heading { grid-template-columns: 1fr; gap: 18px; }
  .github-browser-body { grid-template-columns: 1fr; }
  .github-identity { border-right: 0; border-bottom: 1px solid rgba(128,222,255,.18); }
  .github-identity img { width: 120px; }
  .github-browser-bar b { max-width: 48vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* Light chromatic landing palette, aligned with the personal-story chapter. */
.home-page .hero {
  color: #19204f;
  background:
    radial-gradient(circle, rgba(81,76,190,.14) 1px, transparent 1.7px) 0 0 / 27px 27px,
    linear-gradient(rgba(49,155,178,.09) 1px, transparent 1px) 0 0 / 66px 66px,
    linear-gradient(90deg, rgba(49,155,178,.09) 1px, transparent 1px) 0 0 / 66px 66px,
    radial-gradient(circle at 82% 24%, rgba(79,218,202,.42), transparent 28%),
    radial-gradient(circle at 15% 78%, rgba(181,137,244,.33), transparent 31%),
    linear-gradient(135deg, #f1efff 0%, #e2e9ff 48%, #d6f8f1 100%) !important;
}
.home-page .hero .eyebrow,
.home-page .hero-intro,
.home-page .hero .text-link { color: #28305f; }
.home-page .hero h1 { color: #151b4a; text-shadow: none; }
.home-page .hero h1 em { color: #714fc6 !important; }
.home-page .role-line {
  display: block;
  margin: 28px 0 0;
  padding: 0;
  color: #172052;
  border: 0;
  border-radius: 0;
  background: none;
  backdrop-filter: none;
  font-family: var(--sans) !important;
  font-size: clamp(30px, 3.7vw, 58px);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -.045em;
  text-shadow: none;
}
.home-page .rotating-role { color: #6b4bc1; }
.home-page .hero .button.primary {
  color: #f8fbff;
  background: #6547bd;
  border-color: #6547bd;
  box-shadow: 0 14px 36px rgba(88,60,176,.24), 0 0 0 1px rgba(255,255,255,.35) inset;
}
.home-page .hero .button.primary:hover,
.home-page .hero .button.primary:focus-visible { color: #112047; background: #55d9c7; border-color: #55d9c7; }
.home-page .portrait-frame {
  border-color: rgba(96,69,186,.4);
  box-shadow: 18px 18px 0 rgba(79,218,202,.3), 0 28px 75px rgba(76,62,153,.2);
}

.home-page .world-section {
  color: #172052;
  background:
    radial-gradient(circle, rgba(87,70,184,.12) 1px, transparent 1.7px) 0 0 / 29px 29px,
    linear-gradient(rgba(29,142,158,.085) 1px, transparent 1px) 0 0 / 68px 68px,
    linear-gradient(90deg, rgba(29,142,158,.085) 1px, transparent 1px) 0 0 / 68px 68px,
    radial-gradient(circle at 79% 35%, rgba(80,222,205,.43), transparent 30%),
    radial-gradient(circle at 14% 78%, rgba(169,127,236,.32), transparent 32%),
    linear-gradient(135deg, #edf0ff 0%, #e8e1ff 51%, #d7f8f0 100%) !important;
}
.home-page .world-section .eyebrow,
.home-page .world-section .section-kicker span { color: #6044b5; }
.home-page .globe-copy h2 { color: #172052; }
.home-page .globe-copy > p:not(.eyebrow) { color: #37406c; }
.home-page .globe-copy .globe-hint,
.home-page .globe-places-link { color: #25305b; border-color: rgba(75,53,167,.22); background: rgba(255,255,255,.52); }
.home-page .globe-places-link:hover { color: #fff; background: #6044b5; }
.home-page .globe-stage::after {
  content: "ATOMIC / GLOBAL_SIGNAL";
  position: absolute;
  top: 10%; right: 4%;
  color: rgba(71,50,158,.52);
  font: 500 10px var(--mono);
  letter-spacing: .13em;
}
.home-page .globe-stage canvas { filter: drop-shadow(0 28px 32px rgba(76,53,165,.2)); }

/* Scroll-linked word reveal. */
.scroll-text-reveal .text-reveal-word {
  display: inline-block;
  will-change: opacity, transform, filter;
  transform-origin: left bottom;
}

/* Tactile research folder with staggered paper depth. */
.research-folder-shell {
  max-width: 1240px;
  margin: auto;
  padding: 105px 5vw 140px;
  perspective: 1600px;
}
.folder-intro { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px 7vw; align-items: end; margin-bottom: 58px; }
.folder-intro .eyebrow { grid-column: 1 / -1; color: #b82f60; }
.folder-intro h2 { margin: 0; color: #461445; font-size: clamp(48px,7.5vw,102px); line-height: .88; letter-spacing: -.07em; }
.folder-intro > p:last-child { max-width: 490px; margin: 0 0 8px; color: #633451; font-size: 18px; line-height: 1.65; }
.research-folder {
  position: relative;
  display: block;
  width: min(760px, 92%);
  height: 390px;
  margin: 0 auto;
  padding: 0;
  color: #fff;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform .7s var(--tech-ease);
}
.research-folder:hover { transform: translateY(-8px) rotateX(2deg); }
.research-folder:focus-visible { outline: 3px solid #5d4bc2; outline-offset: 10px; border-radius: 24px; }
.folder-back,
.folder-front { position: absolute; left: 0; right: 0; bottom: 0; border: 1px solid rgba(255,255,255,.3); box-shadow: 0 28px 70px rgba(84,25,68,.24); }
.folder-back { height: 82%; border-radius: 22px 22px 28px 28px; background: linear-gradient(145deg,#922d68,#6a3db8 62%,#405bc1); transform: translateZ(-35px); }
.folder-back i { position: absolute; left: 0; top: -44px; width: 42%; height: 68px; border-radius: 20px 38px 0 0; background: #922d68; }
.folder-front {
  z-index: 5;
  height: 59%;
  padding: 48px 54px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-radius: 18px 18px 28px 28px;
  background:
    linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(118deg,#c54075,#8650cd 62%,#506bd3);
  transform-origin: bottom;
  transition: transform .8s var(--tech-ease), filter .6s ease;
}
.folder-front small { font: 500 10px var(--mono); letter-spacing: .13em; opacity: .78; }
.folder-front strong { margin-top: 18px; font-size: clamp(38px,5vw,68px); letter-spacing: -.06em; }
.folder-front > span { margin-top: auto; padding: 9px 12px; border: 1px solid rgba(255,255,255,.38); border-radius: 999px; font: 500 10px var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.folder-teaser {
  position: absolute;
  z-index: 2;
  left: 7%; right: 7%; bottom: 25%;
  height: 57%;
  padding: 26px 30px;
  border: 1px solid rgba(69,26,91,.16);
  border-radius: 18px;
  color: #4e2557;
  background: #f7e8ff;
  box-shadow: 0 16px 42px rgba(74,35,91,.14);
  font: 600 11px var(--mono);
  letter-spacing: .08em;
  text-align: left;
  transform-origin: center bottom;
  transition: transform .85s var(--tech-ease), opacity .5s ease;
}
.folder-teaser-two { background: #dcf9f2; }
.folder-teaser-three { background: #fff0c6; }
.research-folder-shell.is-open .folder-front { transform: rotateX(-58deg) translateY(18px); filter: saturate(.9); }
.research-folder-shell.is-open .folder-teaser-one { transform: translate3d(-18%, -112px, 28px) rotate(-7deg); }
.research-folder-shell.is-open .folder-teaser-two { transform: translate3d(2%, -162px, 52px) rotate(2deg); }
.research-folder-shell.is-open .folder-teaser-three { transform: translate3d(19%, -108px, 76px) rotate(8deg); }
.folder-paper-stack { padding: 30px 0 0; opacity: 0; max-height: 0; overflow: hidden; pointer-events: none; transform: translateY(-105px); transition: max-height 1.2s var(--tech-ease), opacity .55s ease .12s, transform 1s var(--tech-ease); }
.folder-paper-stack .paper-card { opacity: 0; transform: translateY(-70px) rotateX(-8deg); transition: transform .85s var(--tech-ease), opacity .55s ease; }
.folder-paper-stack .paper-card:nth-child(2) { transition-delay: .1s; }
.folder-paper-stack .paper-card:nth-child(3) { transition-delay: .2s; }
.research-folder-shell.is-open .folder-paper-stack { max-height: 2200px; opacity: 1; pointer-events: auto; transform: translateY(0); }
.research-folder-shell.is-open .folder-paper-stack .paper-card { opacity: 1; transform: none; }

.combined-impact-page { --page-accent: #2d8e91; --page-bg: #ecfbf7; --page-grid: rgba(45,142,145,.1); --page-glow: rgba(124,79,203,.2); --hero-a:#164e70; --hero-b:#5b45aa; --note-color:#8effdf; }

@media (max-width: 760px) {
  .folder-intro { grid-template-columns: 1fr; }
  .folder-intro .eyebrow { grid-column: auto; }
  .research-folder { width: 100%; height: 300px; }
  .folder-front { padding: 34px 28px; }
  .folder-front strong { font-size: 39px; }
  .research-folder-shell.is-open .folder-teaser-one { transform: translate3d(-7%, -70px, 28px) rotate(-5deg); }
  .research-folder-shell.is-open .folder-teaser-two { transform: translate3d(0, -105px, 52px) rotate(1deg); }
  .research-folder-shell.is-open .folder-teaser-three { transform: translate3d(7%, -65px, 76px) rotate(5deg); }
  .home-page .role-line { font-size: clamp(27px, 8vw, 38px); }
}

@media (prefers-reduced-motion: reduce) {
  .text-reveal-word { opacity: 1 !important; transform: none !important; filter: none !important; }
  .folder-paper-stack,
  .folder-paper-stack .paper-card,
  .folder-front,
  .folder-teaser { transition: none !important; }
}

/* Pastel chapter sequence and denser interior-page heroes. */
.home-page .hero {
  background:
    radial-gradient(circle, rgba(95,71,180,.14) 1px, transparent 1.7px) 0 0 / 27px 27px,
    linear-gradient(rgba(92,74,178,.08) 1px, transparent 1px) 0 0 / 66px 66px,
    linear-gradient(90deg, rgba(92,74,178,.08) 1px, transparent 1px) 0 0 / 66px 66px,
    radial-gradient(circle at 82% 24%, rgba(173,222,229,.45), transparent 28%),
    radial-gradient(circle at 15% 78%, rgba(197,164,241,.42), transparent 31%),
    linear-gradient(135deg, #eee8ff 0%, #ded8f8 52%, #e0f4f4 100%) !important;
}
.home-page .portfolio-puzzle {
  color: #322947;
  background:
    radial-gradient(circle, rgba(189,107,103,.11) 1px, transparent 1.7px) 0 0 / 29px 29px,
    linear-gradient(rgba(190,128,104,.08) 1px, transparent 1px) 0 0 / 68px 68px,
    linear-gradient(90deg, rgba(190,128,104,.08) 1px, transparent 1px) 0 0 / 68px 68px,
    radial-gradient(circle at 78% 28%, rgba(250,216,137,.58), transparent 29%),
    radial-gradient(circle at 14% 76%, rgba(244,177,170,.45), transparent 31%),
    linear-gradient(135deg, #fff0e9 0%, #f9e0dc 52%, #fff1c9 100%) !important;
}
.home-page .portfolio-puzzle .section-kicker span,
.home-page .portfolio-puzzle .eyebrow { color: #a84d65; }
.home-page .portfolio-puzzle .puzzle-heading h2 { color: #34294a; }
.home-page .portfolio-puzzle .puzzle-heading h2 em { color: #b25870; }
.home-page .world-section {
  background:
    radial-gradient(circle, rgba(51,120,178,.12) 1px, transparent 1.7px) 0 0 / 29px 29px,
    linear-gradient(rgba(39,133,166,.08) 1px, transparent 1px) 0 0 / 68px 68px,
    linear-gradient(90deg, rgba(39,133,166,.08) 1px, transparent 1px) 0 0 / 68px 68px,
    radial-gradient(circle at 79% 35%, rgba(105,215,213,.5), transparent 30%),
    radial-gradient(circle at 14% 78%, rgba(150,194,238,.45), transparent 32%),
    linear-gradient(135deg, #eaf5ff 0%, #dbeef9 51%, #d9f8f2 100%) !important;
}
.home-page .home-know-me {
  background:
    radial-gradient(circle at 12% 22%, rgba(105,215,184,.42), transparent 25rem),
    radial-gradient(circle at 84% 76%, rgba(249,185,201,.42), transparent 28rem),
    linear-gradient(135deg, #e8faef 0%, #e1f4e9 52%, #fff0dc 100%) !important;
}

body.about-page { --hero-light-a:#e7ddff; --hero-light-b:#cdbdf3; }
body.places-page { --hero-light-a:#d9f4e8; --hero-light-b:#f8e5a9; }
body.projects-page { --hero-light-a:#d9edfb; --hero-light-b:#d9cff5; }
body.papers-page { --hero-light-a:#f9dce8; --hero-light-b:#f4c3b9; }
body.work-page,
body.awards-page { --hero-light-a:#d8f3ec; --hero-light-b:#d8cdf4; }
body.contact-page { --hero-light-a:#fae8ab; --hero-light-b:#f5cedd; }
body.cv-page { --hero-light-a:#dbeaf7; --hero-light-b:#ddd2f5; }

body .page-hero,
body.about-page .page-hero,
body.places-page .page-hero,
body.projects-page .page-hero,
body.papers-page .page-hero,
body.awards-page .page-hero,
body.contact-page .page-hero,
body.cv-page .page-hero {
  min-height: 46vh;
  padding: 52px 7vw 42px;
  color: #19204f !important;
  background:
    radial-gradient(circle, rgba(51,46,105,.11) 1px, transparent 1.7px) 0 0 / 27px 27px,
    linear-gradient(rgba(51,46,105,.07) 1px, transparent 1px) 0 0 / 62px 62px,
    linear-gradient(90deg, rgba(51,46,105,.07) 1px, transparent 1px) 0 0 / 62px 62px,
    linear-gradient(135deg, var(--hero-light-a), var(--hero-light-b)) !important;
}
body .page-hero h1,
body .page-hero h1 em,
body .page-hero .page-lede { color: #19204f !important; }
body .page-hero h1 { margin: 13px 0; max-width: 760px; font-size: clamp(44px,5.6vw,80px); line-height: .9; }
body .page-hero .page-lede { max-width: 650px; font-size: 17px; line-height: 1.55; }
body .page-hero .eyebrow { color: #34305e; }
body .page-hero::before,
body .page-hero::after,
.page-hero .hero-hand-note { display: none !important; }
.page-hero .archive-switch { right: 5vw; bottom: 38px; }

.github-profile-section {
  padding: 55px 5vw 105px;
  color: #18224e;
  background: transparent;
}
.github-section-heading { margin-bottom: 32px; }
.github-section-heading .eyebrow { color: #286db3; }
.github-section-heading h2 { color: #21325f; font-size: clamp(42px,6vw,78px); line-height: .92; }
.github-section-heading > p { color: #53617c; font-size: 17px; }
.home-page .globe-stage canvas { width: min(96%, 620px); }

/* Taller folder, clickable paper titles, and more breathing room. */
.research-folder-shell { padding-top: 120px; }
.folder-intro { margin-bottom: 112px; }
.research-folder { height: 510px; cursor: default; }
.research-folder:hover { transform: none; }
.folder-front {
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.folder-front:focus-visible { outline: 3px solid #5d4bc2; outline-offset: 10px; }
.folder-teaser {
  height: 64%;
  padding: 30px 34px;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  font-family: var(--sans);
  letter-spacing: normal;
  text-transform: none;
}
.folder-teaser small { color: #7a5b81; font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.folder-teaser strong { display: block; max-width: 82%; margin-top: 18px; font-size: clamp(18px,2.1vw,29px); line-height: 1.12; letter-spacing: -.035em; }
.folder-teaser > span { margin-top: auto; color: #765181; font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.research-folder-shell.is-open .folder-teaser { z-index: 6; pointer-events: auto; }
.research-folder-shell.is-open .folder-teaser-one { transform: translate3d(-20%, -150px, 28px) rotate(-7deg); }
.research-folder-shell.is-open .folder-teaser-two { transform: translate3d(1%, -222px, 52px) rotate(1deg); }
.research-folder-shell.is-open .folder-teaser-three { transform: translate3d(21%, -146px, 76px) rotate(7deg); }
.folder-paper-stack { padding-top: 170px; }
.folder-paper-stack .paper-card { scroll-margin-top: 110px; }

@media (min-width: 921px) {
  .home-page .horizontal-intro-track > [data-chapter-panel]:not(:first-child) {
    box-shadow:
      inset 0 2px 0 rgba(255,255,255,.86),
      0 -6px 0 rgba(255,255,255,.36),
      0 -34px 58px rgba(39,46,104,.24),
      0 -100px 170px rgba(35,39,94,.32);
  }
}

@media (max-width: 760px) {
  body .page-hero,
  body.about-page .page-hero,
  body.places-page .page-hero,
  body.projects-page .page-hero,
  body.papers-page .page-hero,
  body.awards-page .page-hero,
  body.contact-page .page-hero,
  body.cv-page .page-hero { min-height: 43vh; padding: 58px 22px 34px; }
  body .page-hero h1 { font-size: 48px; }
  .research-folder-shell { padding-top: 85px; }
  .folder-intro { margin-bottom: 78px; }
  .research-folder { height: 390px; }
  .folder-teaser { padding: 24px; }
  .folder-teaser strong { max-width: 100%; font-size: 18px; }
  .research-folder-shell.is-open .folder-teaser-one { transform: translate3d(-5%, -86px, 28px) rotate(-4deg); }
  .research-folder-shell.is-open .folder-teaser-two { transform: translate3d(0, -138px, 52px) rotate(1deg); }
  .research-folder-shell.is-open .folder-teaser-three { transform: translate3d(5%, -82px, 76px) rotate(4deg); }
  .folder-paper-stack { padding-top: 120px; }
}

/* Supplied ink monogram as the shared site mark. */
.brand span {
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid rgba(31,35,53,.16);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(25,32,79,.12);
}
.brand span::before,
.brand span::after { content: none !important; display: none !important; }
.brand span img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Title-led showcase cards: the paper itself is the visual, never an image reveal. */
.folder-paper-stack .research-showcase {
  --pointer-x: 50%;
  --pointer-y: 50%;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  isolation: isolate;
  min-height: 430px;
  padding: 0;
  gap: 0;
  grid-template-columns: minmax(0, 1.45fr) minmax(245px, .55fr);
  align-items: stretch;
  overflow: hidden;
  outline: none;
  perspective: 1100px;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .65s var(--tech-ease), box-shadow .55s var(--tech-ease), border-color .3s ease !important;
}
.folder-paper-stack .research-showcase::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--pointer-x) var(--pointer-y), rgba(255,255,255,.64), transparent 62%);
  opacity: .48;
  transition: opacity .45s ease;
}
.folder-paper-stack .research-showcase::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(7,26,53,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(7,26,53,.07) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(115deg, #000, transparent 70%);
}
.folder-paper-stack .research-showcase:hover,
.folder-paper-stack .research-showcase:focus-visible {
  transform: translateY(-9px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) !important;
  box-shadow: 14px 18px 0 color-mix(in srgb, var(--page-accent) 18%, transparent), 0 34px 76px rgba(7,29,73,.16) !important;
}
.folder-paper-stack .research-showcase:focus-visible {
  box-shadow: 0 0 0 4px rgba(93,75,194,.3), 14px 18px 0 color-mix(in srgb, var(--page-accent) 18%, transparent), 0 34px 76px rgba(7,29,73,.16) !important;
}
.research-showcase:hover::before,
.research-showcase:focus-visible::before { opacity: .88; }
.showcase-stage,
.showcase-details {
  position: relative;
  z-index: 1;
  transform: translateZ(18px);
}
.showcase-stage {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: clamp(30px,4vw,58px);
  border-right: 1px solid rgba(7,26,53,.16);
}
.showcase-stage > p {
  width: fit-content;
  margin: 18px 0 auto;
  padding: 8px 11px;
  border: 1px solid rgba(7,26,53,.22);
  border-radius: 999px;
  font: 600 10px var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.showcase-number {
  font: 600 10px var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.research-showcase .showcase-stage h2 {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 34px 0 0;
  font-size: clamp(38px,5.6vw,72px);
  line-height: .94;
  letter-spacing: -.065em;
  text-wrap: balance;
  transition: transform .65s var(--tech-ease), letter-spacing .65s var(--tech-ease);
}
.research-showcase:hover .showcase-stage h2,
.research-showcase:focus-visible .showcase-stage h2 { transform: translate3d(8px,-5px,24px); letter-spacing: -.055em; }
.showcase-orbit {
  position: absolute;
  right: 5%;
  top: 12%;
  width: clamp(120px,18vw,220px);
  aspect-ratio: 1;
  border: 1px solid rgba(7,26,53,.22);
  border-radius: 50%;
  opacity: .42;
  transition: transform 1.2s var(--tech-ease), opacity .45s ease;
}
.showcase-orbit::before,
.showcase-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.showcase-orbit::before { inset: 20%; border: 1px dashed rgba(7,26,53,.32); }
.showcase-orbit::after { width: 12px; height: 12px; right: 7%; top: 28%; background: #071a35; box-shadow: 0 0 20px rgba(7,26,53,.36); }
.research-showcase:hover .showcase-orbit,
.research-showcase:focus-visible .showcase-orbit { transform: rotate(26deg) scale(1.06); opacity: .65; }
.showcase-details {
  display: flex;
  flex-direction: column;
  padding: clamp(30px,3vw,46px);
  background: rgba(255,255,255,.26);
  backdrop-filter: blur(7px);
  transition: background .45s ease, transform .65s var(--tech-ease);
}
.research-showcase:hover .showcase-details,
.research-showcase:focus-visible .showcase-details { background: rgba(255,255,255,.45); transform: translate3d(-6px,0,32px); }
.showcase-details small { line-height: 1.5; }
.showcase-details p { margin: auto 0 22px; font-size: 16px; }
.showcase-details strong { line-height: 1.55; }
.showcase-signal {
  width: fit-content;
  margin-top: 26px;
  padding-top: 13px;
  border-top: 1px solid rgba(7,26,53,.24);
  font: 600 10px var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .folder-paper-stack .research-showcase { grid-template-columns: 1fr; min-height: 560px; }
  .showcase-stage { min-height: 370px; border-right: 0; border-bottom: 1px solid rgba(7,26,53,.16); }
  .research-showcase .showcase-stage h2 { font-size: clamp(34px,11vw,52px); }
  .showcase-details p { margin: 34px 0 20px; }
  .brand span { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .folder-paper-stack .research-showcase,
  .showcase-stage h2,
  .showcase-orbit,
  .showcase-details { transition: none !important; transform: none !important; }
}

/* Legibility pass: only long-form Who I Am paragraphs retain text blur. */
@keyframes tech-out { to { opacity: 0; transform: scale(.992); filter: none; } }
@keyframes tech-in { from { opacity: 0; transform: translateY(12px); filter: none; } }
.home-page .scroll-text-reveal .text-reveal-word { filter: none !important; }

.cursor-glow {
  width: 160px;
  height: 160px;
  filter: blur(6px);
}

/* The ink mark sits directly on the interface with no white tile. */
.brand span {
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.brand span img {
  mix-blend-mode: multiply;
  filter: contrast(1.08);
}

/* Open folder: three fully separated, readable category cards. */
.research-folder-shell { padding-left: 3vw; padding-right: 3vw; }
.folder-intro { max-width: 1120px; margin-left: auto; margin-right: auto; margin-bottom: 132px; }
.research-folder {
  width: min(1080px, 98%);
  height: 650px;
}
.folder-teaser {
  left: 27%;
  right: auto;
  bottom: 24%;
  width: 46%;
  height: 52%;
  transition: left .85s var(--tech-ease), width .85s var(--tech-ease), transform .85s var(--tech-ease), opacity .5s ease;
}
.folder-teaser strong { max-width: 100%; font-size: clamp(21px,2.15vw,31px); }
.research-folder-shell.is-open .folder-teaser { width: 31%; }
.research-folder-shell.is-open .folder-teaser-one {
  left: 0;
  transform: translate3d(0, -142px, 30px) rotate(-4deg);
}
.research-folder-shell.is-open .folder-teaser-two {
  left: 34.5%;
  transform: translate3d(0, -258px, 54px) rotate(0deg);
}
.research-folder-shell.is-open .folder-teaser-three {
  left: 69%;
  transform: translate3d(0, -142px, 78px) rotate(4deg);
}
.folder-paper-stack { padding-top: 215px; }

@media (max-width: 760px) {
  .folder-intro { margin-bottom: 105px; }
  .research-folder { height: 820px; }
  .folder-back { height: 52%; }
  .folder-front { height: 31%; }
  .folder-teaser,
  .research-folder-shell.is-open .folder-teaser {
    left: 4%;
    width: 92%;
    height: 180px;
  }
  .research-folder-shell.is-open .folder-teaser-one {
    left: 4%;
    transform: translate3d(0, -425px, 30px) rotate(-1.5deg);
  }
  .research-folder-shell.is-open .folder-teaser-two {
    left: 4%;
    transform: translate3d(0, -222px, 54px) rotate(1deg);
  }
  .research-folder-shell.is-open .folder-teaser-three {
    left: 4%;
    transform: translate3d(0, -19px, 78px) rotate(-1deg);
  }
  .folder-paper-stack { padding-top: 150px; }
}

/* Quiet polish: softer color, no text blur, and a type-only site signature. */
.brand {
  display: inline-block;
  padding: 5px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font: 700 14px var(--sans);
  letter-spacing: -.015em;
}
.brand:hover,
.brand:focus-visible { color: var(--page-accent, #6757a8); background: transparent; box-shadow: none; }
.brand:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }

.scroll-text-reveal .text-reveal-word,
.about-page .scroll-text-reveal .text-reveal-word { filter: none !important; }

/* The biography sits directly on the page instead of inside sharp text boxes. */
.about-page .about-story-section,
.about-page .content-wrap.about-primary,
.about-page .content-wrap.story-astronautics,
.about-page .content-wrap.story-lawtie {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.about-page .about-chapters { border-top: 0; }
.about-page .about-chapter { border: 0 !important; box-shadow: none !important; }

/* Muted puzzle palette: still colorful, with print-like depth instead of neon light. */
.home-page .portfolio-puzzle::before {
  background: linear-gradient(transparent, #aa8a91, transparent);
  box-shadow: none;
  opacity: .28;
}
.home-page .puzzle-projects { --accent: #8ab7c8; }
.home-page .puzzle-research { --accent: #a99bc8; }
.home-page .puzzle-conferences { --accent: #d9a2a5; }
.home-page .puzzle-awards { --accent: #d8bb78; }
.home-page .puzzle-work { --accent: #8ebcaf; }
.home-page .puzzle-link path {
  fill: color-mix(in srgb, var(--accent) 58%, #f8f0e8 42%);
  stroke: color-mix(in srgb, var(--accent) 58%, #5f5368 42%);
  filter: drop-shadow(0 10px 14px rgba(75,55,75,.12));
}
.home-page .puzzle-link:hover path,
.home-page .puzzle-link:focus-visible path {
  fill: color-mix(in srgb, var(--accent) 72%, #f8f0e8 28%);
  stroke: #65576c;
  filter: drop-shadow(0 12px 16px rgba(75,55,75,.16));
}
.home-page .puzzle-link text,
.home-page .puzzle-link:hover text,
.home-page .puzzle-link:focus-visible text { fill: #34294a; }

/* GitHub preview in a calm editorial palette. */
.github-profile-section { color: #25304a; }
.github-section-heading .eyebrow { color: #68799c; }
.github-section-heading h2 { color: #25304a; }
.github-browser {
  border-color: #c9d1dc;
  background: #fffdf9;
  box-shadow: 0 22px 52px rgba(44,55,82,.11), 8px 9px 0 rgba(128,146,176,.12);
  backdrop-filter: none;
}
.github-browser-bar { border-bottom-color: #d6dce4; background: #eef2f6; }
.github-browser-bar span { background: #c79b9f; }
.github-browser-bar span:nth-child(2) { background: #cdb779; }
.github-browser-bar span:nth-child(3) { background: #91b3a6; }
.github-browser-bar b { color: #647087; }
.github-browser-bar i { border-color: #9ba8bb; color: #56647d; }
.github-identity { border-right-color: #d6dce4; }
.github-identity img { border-color: #8f9caf; box-shadow: none; }
.github-identity > p,
.github-repo p { color: #59647a; }
.github-handle,
.github-identity dt,
.github-mini-label,
.github-work h3,
.github-repo small { color: #718097 !important; }
.github-identity dl div,
.github-tabs { border-color: #d6dce4; }
.github-tabs strong,
.github-repo strong { color: #435c84; }
.github-repo { border-color: #d2d8e1; background: #f7f8fa; }
.github-repo:hover { border-color: #8fa0b8; background: #eef2f6; }
.github-repo small::before { background: #c8b86f; box-shadow: none; }
.github-open { border-color: #6c7d98; color: #536581; }
.github-open:hover { background: #536581; color: #fff; }

/* Reliable, non-neon LinkedIn profile preview. */
.linkedin-section {
  border: 1px solid #cdd8e3 !important;
  background: #e8eef4 !important;
  box-shadow: 0 22px 52px rgba(44,55,82,.1) !important;
}
.linkedin-live { padding: 0; overflow: hidden; border-color: #c8d1dc; background: #fff; }
.linkedin-profile-preview { display: block; width: 100%; min-height: 365px; color: #24324a; background: #fff; }
.linkedin-cover {
  display: block;
  height: 112px;
  background:
    linear-gradient(rgba(52,74,103,.09) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(52,74,103,.09) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(135deg, #b7cada, #d9e1e9);
}
.linkedin-preview-body { display: flex; flex-direction: column; align-items: flex-start; padding: 0 28px 28px; }
.linkedin-preview-body img {
  width: 96px;
  height: 96px;
  margin-top: -48px;
  border: 4px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(34,48,72,.14);
}
.linkedin-preview-body strong { margin-top: 17px; font-size: 27px; letter-spacing: -.035em; }
.linkedin-preview-body b { margin-top: 5px; font-size: 14px; font-weight: 600; }
.linkedin-preview-body small { margin-top: 8px; color: #6a7484; font: 11px var(--mono); line-height: 1.5; }
.linkedin-preview-body i {
  margin-top: 26px;
  padding-top: 13px;
  border-top: 1px solid #d3dae2;
  color: #536581;
  font: normal 700 12px var(--sans);
}
.linkedin-profile-preview:hover .linkedin-preview-body i { color: #263958; }

@media (max-width: 760px) {
  .brand { font-size: 13px; }
  .github-identity { border-right: 0; border-bottom-color: #d6dce4; }
  .linkedin-profile-preview { min-height: 340px; }
}

/* Supplied transparent MP monogram. */
.brand {
  display: grid;
  place-items: center;
  width: 54px;
  height: 40px;
  padding: 0;
}
.brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand:hover,
.brand:focus-visible { transform: translateY(-1px); }

/* Exchange the established Research and Contact color identities. */
body.papers-page {
  --page-accent: #d83289;
  --page-bg: #fff0f8;
  --page-grid: rgba(216,50,137,.09);
  --page-glow: rgba(255,89,172,.22);
  --hero-light-a: #fae8ab;
  --hero-light-b: #f5cedd;
}
body.contact-page {
  --page-accent: #ce3f6a;
  --page-bg: #fff0f5;
  --page-grid: rgba(206,63,106,.09);
  --page-glow: rgba(255,98,142,.2);
  --hero-light-a: #f9dce8;
  --hero-light-b: #f4c3b9;
}

/* Compact research index: heading and folder share the row, cards form a grid. */
.research-folder-shell {
  max-width: 1320px;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
  column-gap: clamp(42px,6vw,86px);
  align-items: center;
  padding: 90px 4vw 130px;
}
.folder-intro {
  display: block;
  width: 100%;
  margin: 0;
}
.folder-intro .eyebrow { margin-bottom: 22px; color: #8f5f57; }
.folder-intro h2 {
  max-width: 620px;
  color: #49394b;
  font-size: clamp(44px,6vw,78px);
  line-height: .92;
}
.folder-intro > p:last-child { max-width: 520px; margin-top: 28px; color: #665664; }
.research-folder {
  width: min(500px, 100%);
  height: 430px;
  margin: 0 auto;
}
.folder-back,
.folder-front {
  border-color: rgba(55,69,91,.2);
  box-shadow: 0 18px 38px rgba(55,65,82,.14);
}
.folder-back {
  height: 70%;
  background: linear-gradient(145deg,#8392a8,#718198 62%,#66778f);
}
.folder-back i { top: -38px; height: 58px; background: #8392a8; }
.folder-front {
  height: 42%;
  padding: 30px 34px;
  background:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(118deg,#8696aa,#75869c 62%,#687a92);
}
.folder-front strong { margin-top: 10px; font-size: clamp(31px,3.8vw,48px); }
.folder-front:focus-visible { outline-color: #65758c; }
.folder-teaser,
.research-folder-shell.is-open .folder-teaser {
  left: 6%;
  right: auto;
  bottom: 45px;
  width: 88%;
  height: 125px;
  padding: 18px 22px;
  border-color: rgba(62,70,86,.16);
  box-shadow: 0 10px 24px rgba(55,65,82,.12);
}
.folder-teaser strong { margin-top: 9px; font-size: clamp(15px,1.5vw,20px); }
.folder-teaser > span { font-size: 9px; }
.research-folder-shell.is-open .folder-teaser-one {
  left: 6%;
  transform: translate3d(-2%, -220px, 30px) rotate(-1.5deg);
}
.research-folder-shell.is-open .folder-teaser-two {
  left: 6%;
  transform: translate3d(2%, -88px, 54px) rotate(1deg);
}
.research-folder-shell.is-open .folder-teaser-three {
  left: 6%;
  transform: translate3d(-1%, 44px, 78px) rotate(-.5deg);
}
.folder-paper-stack {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px;
  padding: 120px 0 0;
}
.folder-paper-stack .research-showcase {
  min-height: 420px;
  grid-template-columns: 1fr;
}
.showcase-stage {
  min-height: 255px;
  padding: 28px;
  border-right: 0;
  border-bottom: 1px solid rgba(7,26,53,.16);
}
.research-showcase .showcase-stage h2 {
  margin-top: 24px;
  font-size: clamp(28px,3.1vw,43px);
  line-height: 1;
}
.showcase-stage > p { margin-top: 12px; }
.showcase-details { min-height: 165px; padding: 25px 28px; }
.showcase-details p { margin: 28px 0 18px; font-size: 14px; }
.showcase-signal { margin-top: 18px; }

@media (max-width: 1050px) {
  .research-folder-shell { grid-template-columns: 1fr 420px; }
  .folder-paper-stack { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .folder-paper-stack .research-showcase:last-child { grid-column: 1 / -1; }
}

@media (max-width: 800px) {
  .brand { width: 48px; height: 36px; }
  .research-folder-shell { grid-template-columns: 1fr; gap: 54px; padding-top: 72px; }
  .folder-intro { text-align: left; }
  .research-folder { width: min(500px,100%); height: 430px; }
  .folder-paper-stack { grid-template-columns: 1fr; padding-top: 90px; }
  .folder-paper-stack .research-showcase:last-child { grid-column: auto; }
}

/* September refinement: calmer spatial chapters and a distinct hero accent. */
.home-page .hero h1 em { color: #167b82 !important; }
.home-page .horizontal-intro-track {
  perspective: 1600px;
  perspective-origin: 50% 45%;
  transform-style: preserve-3d;
}
.home-page .horizontal-intro-track > [data-chapter-panel] {
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition: transform .32s cubic-bezier(.2,.72,.18,1), filter .38s ease;
  will-change: transform, filter;
}
.scroll-text-reveal .text-reveal-word {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

/* Real profile surfaces: calm, factual and connected to their public sources. */
.github-browser[data-github-profile] .github-tabs b { font: inherit; color: inherit; }
.github-browser[data-github-profile].is-live .github-browser-bar i {
  border-color: #76a99d;
  color: #487c72;
  background: #e8f3ef;
}
.github-repos { grid-template-columns: repeat(2,minmax(0,1fr)); }
.github-repo { min-height: 148px; }

.linkedin-real {
  display: grid;
  grid-template-columns: minmax(240px,.72fr) minmax(320px,1.28fr);
  border-radius: 34px;
  background: #f8fafb;
}
.linkedin-profile-summary {
  position: relative;
  display: grid;
  min-height: 620px;
  overflow: hidden;
  color: #fff;
  background: #2e4964;
}
.linkedin-profile-summary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,transparent 27%,rgba(19,37,55,.2) 50%,rgba(19,37,55,.92) 100%);
}
.linkedin-profile-summary img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--tech-ease); }
.linkedin-profile-summary:hover img { transform: scale(1.025); }
.linkedin-profile-summary > span {
  position: absolute;
  z-index: 1;
  left: 30px;
  right: 30px;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.linkedin-profile-summary small { font: 600 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.linkedin-profile-summary strong { margin-top: 10px; font-size: clamp(27px,3vw,42px); letter-spacing: -.045em; }
.linkedin-profile-summary b { margin-top: 8px; font-size: 14px; font-weight: 600; }
.linkedin-profile-summary em { margin-top: 7px; color: #dce7ef; font: normal 12px var(--sans); }
.linkedin-profile-summary i { margin-top: 24px; padding-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,.65); font: normal 700 12px var(--sans); }
.linkedin-post-embed { display: flex; min-width: 0; flex-direction: column; padding: 24px; background: #f8fafb; }
.linkedin-post-embed > div { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 16px; color: #536581; }
.linkedin-post-embed > div span { font: 600 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.linkedin-post-embed > div strong { font-size: 14px; }
.linkedin-post-embed iframe { width: 100%; max-width: 100%; min-height: 520px; border: 1px solid #d3dae2; border-radius: 20px; background: #fff; }
.linkedin-post-embed > a { align-self: flex-start; margin-top: 15px; color: #536581; font-size: 12px; font-weight: 700; border-bottom: 1px solid #8fa0b8; }

/* A horizontal, editorial event showcase inspired by the supplied CMS card. */
.places-showcase { display: grid; gap: clamp(90px,12vw,160px); padding: 50px 0 110px; }
.showcase-group { min-width: 0; }
.showcase-group-heading { display: grid; grid-template-columns: .35fr 1fr .6fr; align-items: end; gap: 24px; margin: 0 0 28px; }
.showcase-group-heading > span { color: #597887; font: 600 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.showcase-group-heading h2 { color: #24485a; font-size: clamp(34px,5vw,66px); letter-spacing: -.055em; line-height: .95; }
.showcase-group-heading p { max-width: 260px; color: #55717c; font-size: 13px; }
.places-showcase-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(330px,44%);
  gap: 26px;
  overflow-x: auto;
  padding: 10px 5vw 30px 2px;
  scroll-snap-type: x mandatory;
  scrollbar-color: #94b6c4 transparent;
}
.place-showcase-card {
  position: relative;
  min-height: 510px;
  overflow: hidden;
  scroll-snap-align: start;
  color: #23414f;
  border: 1px solid rgba(49,93,110,.2);
  border-radius: 150px 26px 118px 26px;
  background: #cfe7ea;
  box-shadow: 0 24px 58px rgba(49,77,91,.12);
  isolation: isolate;
  transition: transform .7s var(--tech-ease), border-radius .7s var(--tech-ease), box-shadow .7s ease;
}
.place-showcase-card:nth-child(even) { border-radius: 28px 145px 28px 120px; }
.place-showcase-card:hover { transform: translateY(-8px); border-radius: 84px 32px 84px 32px; box-shadow: 0 34px 70px rgba(49,77,91,.17); }
.place-showcase-card > img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--tech-ease); }
.place-showcase-card:hover > img { transform: scale(1.045); }
.place-showcase-card.has-photo::after { content:''; position:absolute; inset:0; z-index:0; background:linear-gradient(180deg,transparent 30%,rgba(16,42,54,.88) 100%); }
.place-visual { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.place-visual b { color: rgba(35,65,79,.72); font: 700 clamp(62px,10vw,140px) var(--sans); letter-spacing: -.08em; }
.place-visual i { position: absolute; width: 62%; aspect-ratio: 1; border: 1px solid rgba(35,65,79,.24); border-radius: 50%; box-shadow: 0 0 0 36px rgba(255,255,255,.08),0 0 0 72px rgba(255,255,255,.06); }
.place-invitation { background: #efdac5; }
.place-policy { background: #e9dfbf; }
.place-card-copy {
  position: absolute;
  z-index: 2;
  left: 28px;
  right: 28px;
  bottom: 28px;
  padding: 25px;
  border-radius: 24px;
  background: rgba(250,252,251,.88);
  box-shadow: 0 14px 40px rgba(40,67,78,.11);
  backdrop-filter: blur(8px);
}
.has-photo .place-card-copy { color: #fff; background: rgba(28,49,60,.76); }
.place-card-copy time { font: 600 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.place-card-copy h3 { max-width: 560px; margin-top: 10px; font-size: clamp(25px,3vw,40px); line-height: .98; letter-spacing: -.045em; }
.place-card-copy p { max-width: 560px; margin-top: 13px; font-size: 13px; line-height: 1.55; }
.place-card-copy > span { display: inline-block; margin-top: 18px; padding-top: 10px; border-top: 1px solid currentColor; font: 600 9px var(--mono); letter-spacing: .09em; text-transform: uppercase; opacity: .72; }

/* Pastel-blue functional folder and restrained research cards. */
.folder-back {
  appearance: none;
  padding: 0;
  cursor: pointer;
  background: linear-gradient(145deg,#c6e7f3,#b6dceb 62%,#a8d0e2);
}
.folder-back i { background: #c6e7f3; }
.folder-front {
  height: 34%;
  padding: 25px 32px;
  color: #29485a;
  background:
    linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(118deg,#cceaf4,#b9dfed 62%,#acd4e5);
}
.research-folder-shell.is-open .folder-teaser-three {
  transform: translate3d(-1%, 10px, 78px) rotate(-.5deg);
}
.folder-front > span { border-color: rgba(41,72,90,.32); }
.folder-back:focus-visible,.folder-front:focus-visible { outline: 3px solid #5c91aa; outline-offset: 8px; }
.folder-paper-stack .paper-lilac { background: #edf4f2; }
.folder-paper-stack .paper-yellow { background: #f7f2df; }
.folder-paper-stack .paper-coral { background: #f5ebe5; }
.folder-paper-stack .research-showcase { border-color: rgba(73,88,91,.18); box-shadow: 0 18px 44px rgba(62,76,81,.1); }
.folder-paper-stack .research-showcase::before { opacity: .14; }
.research-showcase .showcase-stage h2 { font-size: clamp(23px,2.25vw,34px); line-height: 1.05; }
.showcase-stage,.showcase-details { color: #344f57; }
.showcase-orbit { opacity: .18; }

@media (max-width: 900px) {
  .linkedin-real { grid-template-columns: 1fr; }
  .linkedin-profile-summary { min-height: 520px; }
  .showcase-group-heading { grid-template-columns: 1fr; gap: 9px; }
  .places-showcase-track { grid-auto-columns: minmax(300px,78%); }
  .place-showcase-card { min-height: 470px; }
}
@media (max-width: 620px) {
  .github-repos { grid-template-columns: 1fr; }
  .linkedin-post-embed { padding: 15px; }
  .linkedin-post-embed > div { align-items: flex-start; flex-direction: column; gap: 5px; }
  .places-showcase-track { grid-auto-columns: 90%; gap: 16px; }
  .place-showcase-card { min-height: 430px; border-radius: 92px 22px 78px 22px; }
  .place-card-copy { left: 18px; right: 18px; bottom: 18px; padding: 21px; }
}

/* Brand lockup stays transparent; navigation uses the logo's cyan-teal. */
.brand,
.brand:hover,
.brand:focus-visible,
.site-header.scrolled .brand,
.site-header.scrolled .brand:hover,
.site-header.scrolled .brand:focus-visible {
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
.brand img { background: transparent !important; }
.command-nav a,
.site-header.scrolled .command-nav a,
.home-page .site-header:not(.scrolled) .command-nav a {
  color: #149fb4 !important;
}
.command-nav a:hover,
.command-nav a.active {
  color: #149fb4 !important;
  background: transparent !important;
}
.command-nav a { --nav-tone: #149fb4 !important; }

/* Square event modules: no elongated showcase rectangles. */
.places-showcase-track { grid-auto-columns: minmax(340px,42%); }
.place-showcase-card {
  min-height: 0;
  aspect-ratio: 1 / 1;
  border-radius: 34px;
}
.place-showcase-card:nth-child(even) { border-radius: 34px; }
.place-showcase-card:hover { border-radius: 34px; }

/* Scroll-velocity gallery: two continuous image streams in opposite directions. */
.velocity-gallery {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 100px 0 120px;
  overflow: hidden;
  color: #dff8fb;
  background:
    linear-gradient(rgba(70,197,215,.1) 1px,transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg,rgba(70,197,215,.1) 1px,transparent 1px) 0 0 / 48px 48px,
    linear-gradient(135deg,#123953,#0e5763 58%,#153b65);
}
.velocity-gallery-heading {
  display: grid;
  grid-template-columns: .55fr 1fr .7fr;
  align-items: end;
  gap: 26px;
  width: min(1180px,90vw);
  margin: 0 auto 48px;
}
.velocity-gallery-heading .eyebrow { color: #58d0df; }
.velocity-gallery-heading h2 { color: #f3fdff; font-size: clamp(54px,8vw,110px); line-height: .82; letter-spacing: -.07em; }
.velocity-gallery-heading > span { color: #a9d6dc; font: 500 12px/1.5 var(--mono); }
.velocity-viewport {
  position: relative;
  display: grid;
  gap: 18px;
  transform: rotate(-1.2deg) scale(1.025);
}
.velocity-viewport::before,
.velocity-viewport::after {
  content: '';
  position: absolute;
  z-index: 3;
  top: -10px;
  bottom: -10px;
  width: 10vw;
  pointer-events: none;
}
.velocity-viewport::before { left: 0; background: linear-gradient(90deg,#123953,transparent); }
.velocity-viewport::after { right: 0; background: linear-gradient(270deg,#153b65,transparent); }
.velocity-row { display: flex; width: max-content; gap: 18px; will-change: transform; }
.velocity-set { display: flex; gap: 18px; }
.velocity-set button {
  width: clamp(220px,22vw,340px);
  aspect-ratio: 1.28 / 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(151,226,234,.35);
  border-radius: 12px;
  background: #173e52;
  box-shadow: 0 18px 45px rgba(1,20,31,.3);
  cursor: zoom-in;
}
.velocity-set img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.04); transition: transform .55s var(--tech-ease),filter .4s ease; }
.velocity-set button:hover img,.velocity-set button:focus-visible img { transform: scale(1.045); filter: saturate(1) contrast(1.06); }
.velocity-set button:focus-visible { outline: 3px solid #58d0df; outline-offset: 4px; }
.gallery-lightbox {
  width: min(900px,90vw);
  max-height: 88vh;
  padding: 0;
  overflow: visible;
  border: 1px solid #60c8d5;
  border-radius: 16px;
  background: #0d3144;
  box-shadow: 0 36px 100px rgba(0,18,30,.5);
}
.gallery-lightbox::backdrop { background: rgba(5,23,34,.78); backdrop-filter: blur(8px); }
.gallery-lightbox img { display: block; width: 100%; max-height: 82vh; object-fit: contain; border-radius: 15px; }
.gallery-lightbox button { position: absolute; z-index: 2; top: -18px; right: -18px; width: 42px; height: 42px; border: 1px solid #7ad3dd; border-radius: 50%; color: #e9fdff; background: #123f52; font-size: 24px; cursor: pointer; }

/* Research archive: professional signal colors and clean folder occlusion. */
.folder-paper-stack .paper-lilac {
  background:
    linear-gradient(rgba(22,91,116,.1) 1px,transparent 1px) 0 0 / 28px 28px,
    linear-gradient(145deg,#d6e8ed,#8dbbc7);
}
.folder-paper-stack .paper-yellow {
  background:
    linear-gradient(rgba(30,76,116,.1) 1px,transparent 1px) 0 0 / 28px 28px,
    linear-gradient(145deg,#d7e3eb,#8eaec5);
}
.folder-paper-stack .paper-coral {
  background:
    linear-gradient(rgba(21,92,91,.1) 1px,transparent 1px) 0 0 / 28px 28px,
    linear-gradient(145deg,#d2e4e2,#82afad);
}
.folder-paper-stack .research-showcase { border-color: #36788b; box-shadow: 0 20px 48px rgba(20,69,85,.15); }
.folder-teaser,
.folder-teaser-one { color: #effcff; border-color: #174e64; background: #23677b; }
.folder-teaser-two { color: #eff8ff; border-color: #214b72; background: #356b94; }
.folder-teaser-three { color: #effffd; border-color: #225b5c; background: #377b79; }
.folder-teaser small,
.folder-teaser strong,
.folder-teaser > span { color: inherit !important; }
.showcase-stage > p,.showcase-number,.showcase-signal {
  color: #e9fbfd !important;
  border-color: #236678 !important;
  background: #236678 !important;
}
.showcase-stage,.showcase-details { color: #173f52; }
.research-folder-shell.is-open .folder-teaser { z-index: 4; }
@media (min-width: 801px) {
  .research-folder-shell.is-open .folder-teaser-one { transform: translate3d(-2%,-250px,30px) rotate(-1.5deg); }
  .research-folder-shell.is-open .folder-teaser-two { transform: translate3d(2%,-150px,54px) rotate(1deg); }
  .research-folder-shell.is-open .folder-teaser-three { transform: translate3d(-1%,-50px,78px) rotate(-.5deg); }
}

@media (max-width: 900px) {
  .places-showcase-track { grid-auto-columns: minmax(300px,78%); }
  .velocity-gallery-heading { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 620px) {
  .places-showcase-track { grid-auto-columns: 88%; }
  .place-showcase-card { aspect-ratio: 1 / 1; }
  .velocity-gallery { padding: 76px 0 90px; }
  .velocity-set button { width: 210px; }
  .velocity-gallery-heading > span { font-size: 11px; }
}

/* Final page rhythm: people first, then the moving photographic archive. */
.places-page .content-wrap { display: flex; flex-direction: column; }
.places-page .section-kicker { order: 0; }
.places-page .places-showcase { order: 1; }
.places-page .conference-networking { order: 2; }
.places-page .velocity-gallery { order: 3; }
.places-page .home-cta { order: 4; }
.conference-networking figure { aspect-ratio: 1 / 1; }
.conference-networking img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Match the gallery to the mint-and-gold page hero. */
.velocity-gallery {
  color: #19204f;
  background:
    linear-gradient(rgba(38,112,111,.08) 1px,transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg,rgba(38,112,111,.08) 1px,transparent 1px) 0 0 / 48px 48px,
    linear-gradient(135deg,var(--hero-light-a),var(--hero-light-b));
}
.velocity-gallery-heading h2 { color: #19204f; }
.velocity-gallery-heading .eyebrow { color: #217d7c; }
.velocity-gallery-heading > span { color: #455875; }
.velocity-viewport::before { background: linear-gradient(90deg,var(--hero-light-a),transparent); }
.velocity-viewport::after { background: linear-gradient(270deg,var(--hero-light-b),transparent); }

/* Blue-to-indigo research system: technical, saturated, and free of green. */
.folder-paper-stack .paper-lilac {
  background:
    linear-gradient(rgba(36,76,137,.11) 1px,transparent 1px) 0 0 / 28px 28px,
    linear-gradient(145deg,#d9e4f3,#92add1);
}
.folder-paper-stack .paper-yellow {
  background:
    linear-gradient(rgba(31,81,133,.11) 1px,transparent 1px) 0 0 / 28px 28px,
    linear-gradient(145deg,#d5e2ef,#82a6c8);
}
.folder-paper-stack .paper-coral {
  background:
    linear-gradient(rgba(73,62,137,.11) 1px,transparent 1px) 0 0 / 28px 28px,
    linear-gradient(145deg,#e1def1,#a69acb);
}
.folder-paper-stack .research-showcase { border-color: #3d6194; box-shadow: 0 20px 48px rgba(38,61,104,.16); }
.folder-teaser,
.folder-teaser-one { color: #f5f9ff; border-color: #244d7a; background: #326493; }
.folder-teaser-two { color: #f5f9ff; border-color: #294d78; background: #426a96; }
.folder-teaser-three { color: #faf8ff; border-color: #49447d; background: #625e9b; }
.showcase-stage > p,.showcase-number,.showcase-signal {
  border-color: #315b8d !important;
  background: #315b8d !important;
}
.showcase-stage,.showcase-details { color: #233d68; }

/* Smaller closing invitation with its own cool-blue identity. */
.places-page .home-cta {
  min-height: 0;
  margin-top: 80px;
  padding: 54px 5vw 76px;
  color: #173a66;
  background: #d9e6f7;
  border: 1px solid rgba(49,88,137,.18);
  border-radius: 22px;
}
.places-page .home-cta h2 {
  max-width: 620px;
  margin: 16px 0;
  font-size: clamp(36px,4.4vw,58px);
  line-height: .96;
}
.places-page .home-cta .circle-link {
  width: 108px;
  height: 108px;
  right: 5vw;
  bottom: 28px;
  background: #426ba3;
}

@media (max-width: 800px) {
  .conference-networking figure { width: 100%; max-width: 520px; }
  .conference-networking img { height: auto; }
  .places-page .home-cta { padding-bottom: 145px; }
}

/* Three deliberately different blue registers for the research cards. */
.folder-paper-stack .paper-lilac {
  background:
    linear-gradient(rgba(16,94,142,.12) 1px,transparent 1px) 0 0 / 28px 28px,
    linear-gradient(145deg,#e1f2fb,#86c4e1);
}
.folder-paper-stack .paper-yellow {
  background:
    linear-gradient(rgba(34,72,148,.12) 1px,transparent 1px) 0 0 / 28px 28px,
    linear-gradient(145deg,#cfddf7,#7898d8);
}
.folder-paper-stack .paper-coral {
  background:
    linear-gradient(rgba(38,55,112,.12) 1px,transparent 1px) 0 0 / 28px 28px,
    linear-gradient(145deg,#c2d0e9,#687eb4);
}

/* Selected Grape-Magenta hero direction. */
.home-page .hero {
  --hero-complement: #8b6315;
  grid-template-columns: 1.2fr .8fr;
  clip-path: inset(0 round 0);
  transition: clip-path .65s cubic-bezier(.22,.61,.36,1), border-radius .65s cubic-bezier(.22,.61,.36,1);
  color: #2f2346;
  background-color: #ded2e6;
  background:
    radial-gradient(circle,rgba(74,54,106,.1) 1px,transparent 1.6px) 0 0 / 27px 27px,
    linear-gradient(rgba(74,54,106,.045) 1px,transparent 1px) 0 0 / 62px 62px,
    linear-gradient(90deg,rgba(74,54,106,.045) 1px,transparent 1px) 0 0 / 62px 62px,
    radial-gradient(circle at 82% 16%,rgba(184,92,154,.17),transparent 35%),
    radial-gradient(circle at 5% 100%,rgba(124,92,170,.13),transparent 40%),
    linear-gradient(132deg,#e7ddea,#d8cbe3 54%,#ead4df) !important;
}
.home-page .horizontal-intro-track { background: #e9dff1; }
.home-page .horizontal-intro-track > .hero {
  transition: transform .18s cubic-bezier(.22,.61,.36,1), filter .2s ease, clip-path .65s cubic-bezier(.22,.61,.36,1), border-radius .65s cubic-bezier(.22,.61,.36,1);
}
.home-page .hero.is-scrolled-card {
  clip-path: inset(12px 14px 14px round 46px);
  border-radius: 46px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 26px 70px rgba(55,24,91,.24);
}
.home-page .hero h1,
.home-page .hero .eyebrow,
.home-page .hero-intro,
.home-page .hero .text-link,
.home-page .hero .role-line,
.home-page .hero .scroll-cue { color: #2f2346 !important; }
.home-page .rotating-role { color: var(--hero-complement); }
.home-page .hero h1 em {
  color: var(--hero-complement) !important;
  font-family: "Caveat", cursive !important;
  font-size: 1.08em;
  font-style: normal;
  font-weight: 600;
  letter-spacing: -.035em;
}
.home-page .hero .button.primary {
  color: #fffaf2;
  background: #6c4c80;
  border-color: #6c4c80;
  box-shadow: 0 13px 34px rgba(72,47,88,.18);
}
.home-page .hero .button.primary:hover,
.home-page .hero .button.primary:focus-visible,
.home-page .hero .button.primary:active {
  color: #392848;
  background: #e3c258;
  border-color: #e3c258;
  box-shadow: 0 12px 30px rgba(72,47,88,.2);
}

/* Static transparent portrait replaces the interactive rotating card. */
.home-page .hero-portrait-static {
  --portrait-x: 50%;
  --portrait-y: 42%;
  --portrait-base-x: 0px;
  --portrait-base-y: 0px;
  --portrait-reveal-x: 0px;
  --portrait-reveal-y: 0px;
  --fluid-core-x: 0px;
  --fluid-core-y: 0px;
  --fluid-a-x: 0px;
  --fluid-a-y: 0px;
  --fluid-b-x: 0px;
  --fluid-b-y: 0px;
  --fluid-c-x: 0px;
  --fluid-c-y: 0px;
  --fluid-d-x: 0px;
  --fluid-d-y: 0px;
  --fluid-e-x: 0px;
  --fluid-e-y: 0px;
  --fluid-f-x: 0px;
  --fluid-f-y: 0px;
  --fluid-g-x: 0px;
  --fluid-g-y: 0px;
  --fluid-core-r: 146px;
  --fluid-a-r: 82px;
  --fluid-b-r: 88px;
  --fluid-c-r: 74px;
  --fluid-d-r: 88px;
  --fluid-e-r: 78px;
  --fluid-f-r: 68px;
  --fluid-g-r: 58px;
  width: min(40vw, 650px);
  height: min(79svh, 760px);
  aspect-ratio: auto;
  align-self: end;
  right: -5vw;
  padding: 0;
  overflow: hidden;
  background: none;
  perspective: none;
  -webkit-mask-image: linear-gradient(to bottom,#000 0%,#000 86%,rgba(0,0,0,.84) 90%,transparent 100%);
  mask-image: linear-gradient(to bottom,#000 0%,#000 86%,rgba(0,0,0,.84) 90%,transparent 100%);
  filter: drop-shadow(0 28px 34px rgba(39,20,67,.24));
  cursor: crosshair;
}
.home-page .role-line { white-space: nowrap; }
.home-page .hero-portrait-static::before,
.home-page .hero-portrait-static::after { display: none; }
.home-page .hero-portrait-static .hero-cutout {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: none;
  transition: transform .22s cubic-bezier(.22,.61,.36,1), opacity .34s ease;
  will-change: transform, opacity, -webkit-mask-image, mask-image;
}
.home-page .hero-portrait-static .hero-cutout-base {
  z-index: 1;
  transform: translate3d(var(--portrait-base-x),var(--portrait-base-y),0) scale(1.015);
}
.home-page .hero-portrait-static.is-interacting .hero-cutout-base {
  -webkit-mask-image:
    radial-gradient(circle var(--fluid-core-r) at calc(var(--portrait-x) + var(--fluid-core-x)) calc(var(--portrait-y) + var(--fluid-core-y)),transparent 0%,transparent 72%,rgba(0,0,0,.22) 84%,#000 100%),
    radial-gradient(circle var(--fluid-a-r) at calc(var(--portrait-x) + 92px + var(--fluid-a-x)) calc(var(--portrait-y) - 18px + var(--fluid-a-y)),transparent 0%,transparent 68%,rgba(0,0,0,.24) 83%,#000 100%),
    radial-gradient(circle var(--fluid-b-r) at calc(var(--portrait-x) - 88px + var(--fluid-b-x)) calc(var(--portrait-y) + 30px + var(--fluid-b-y)),transparent 0%,transparent 68%,rgba(0,0,0,.24) 83%,#000 100%),
    radial-gradient(circle var(--fluid-c-r) at calc(var(--portrait-x) + 12px + var(--fluid-c-x)) calc(var(--portrait-y) + 112px + var(--fluid-c-y)),transparent 0%,transparent 68%,rgba(0,0,0,.24) 83%,#000 100%),
    radial-gradient(circle var(--fluid-d-r) at calc(var(--portrait-x) + var(--fluid-d-x)) calc(var(--portrait-y) + var(--fluid-d-y)),transparent 0%,transparent 66%,rgba(0,0,0,.22) 82%,#000 100%),
    radial-gradient(circle var(--fluid-e-r) at calc(var(--portrait-x) + var(--fluid-e-x)) calc(var(--portrait-y) + var(--fluid-e-y)),transparent 0%,transparent 64%,rgba(0,0,0,.2) 80%,#000 100%),
    radial-gradient(circle var(--fluid-f-r) at calc(var(--portrait-x) + var(--fluid-f-x)) calc(var(--portrait-y) + var(--fluid-f-y)),transparent 0%,transparent 60%,rgba(0,0,0,.16) 78%,#000 100%),
    radial-gradient(circle var(--fluid-g-r) at calc(var(--portrait-x) + var(--fluid-g-x)) calc(var(--portrait-y) + var(--fluid-g-y)),transparent 0%,transparent 56%,rgba(0,0,0,.12) 76%,#000 100%);
  -webkit-mask-composite: source-in,source-in,source-in,source-in,source-in,source-in,source-in;
  mask-image:
    radial-gradient(circle var(--fluid-core-r) at calc(var(--portrait-x) + var(--fluid-core-x)) calc(var(--portrait-y) + var(--fluid-core-y)),transparent 0%,transparent 72%,rgba(0,0,0,.22) 84%,#000 100%),
    radial-gradient(circle var(--fluid-a-r) at calc(var(--portrait-x) + 92px + var(--fluid-a-x)) calc(var(--portrait-y) - 18px + var(--fluid-a-y)),transparent 0%,transparent 68%,rgba(0,0,0,.24) 83%,#000 100%),
    radial-gradient(circle var(--fluid-b-r) at calc(var(--portrait-x) - 88px + var(--fluid-b-x)) calc(var(--portrait-y) + 30px + var(--fluid-b-y)),transparent 0%,transparent 68%,rgba(0,0,0,.24) 83%,#000 100%),
    radial-gradient(circle var(--fluid-c-r) at calc(var(--portrait-x) + 12px + var(--fluid-c-x)) calc(var(--portrait-y) + 112px + var(--fluid-c-y)),transparent 0%,transparent 68%,rgba(0,0,0,.24) 83%,#000 100%),
    radial-gradient(circle var(--fluid-d-r) at calc(var(--portrait-x) + var(--fluid-d-x)) calc(var(--portrait-y) + var(--fluid-d-y)),transparent 0%,transparent 66%,rgba(0,0,0,.22) 82%,#000 100%),
    radial-gradient(circle var(--fluid-e-r) at calc(var(--portrait-x) + var(--fluid-e-x)) calc(var(--portrait-y) + var(--fluid-e-y)),transparent 0%,transparent 64%,rgba(0,0,0,.2) 80%,#000 100%),
    radial-gradient(circle var(--fluid-f-r) at calc(var(--portrait-x) + var(--fluid-f-x)) calc(var(--portrait-y) + var(--fluid-f-y)),transparent 0%,transparent 60%,rgba(0,0,0,.16) 78%,#000 100%),
    radial-gradient(circle var(--fluid-g-r) at calc(var(--portrait-x) + var(--fluid-g-x)) calc(var(--portrait-y) + var(--fluid-g-y)),transparent 0%,transparent 56%,rgba(0,0,0,.12) 76%,#000 100%);
  mask-composite: intersect;
}
.home-page .hero-portrait-static .hero-cutout-reveal {
  z-index: 2;
  opacity: 0;
  -webkit-clip-path: inset(40% 0 0 0);
  clip-path: inset(40% 0 0 0);
  -webkit-mask-image:
    radial-gradient(circle var(--fluid-core-r) at calc(var(--portrait-x) + var(--fluid-core-x)) calc(var(--portrait-y) + var(--fluid-core-y)),#000 0%,#000 72%,rgba(0,0,0,.78) 84%,transparent 100%),
    radial-gradient(circle var(--fluid-a-r) at calc(var(--portrait-x) + 92px + var(--fluid-a-x)) calc(var(--portrait-y) - 18px + var(--fluid-a-y)),#000 0%,#000 68%,rgba(0,0,0,.76) 83%,transparent 100%),
    radial-gradient(circle var(--fluid-b-r) at calc(var(--portrait-x) - 88px + var(--fluid-b-x)) calc(var(--portrait-y) + 30px + var(--fluid-b-y)),#000 0%,#000 68%,rgba(0,0,0,.76) 83%,transparent 100%),
    radial-gradient(circle var(--fluid-c-r) at calc(var(--portrait-x) + 12px + var(--fluid-c-x)) calc(var(--portrait-y) + 112px + var(--fluid-c-y)),#000 0%,#000 68%,rgba(0,0,0,.76) 83%,transparent 100%),
    radial-gradient(circle var(--fluid-d-r) at calc(var(--portrait-x) + var(--fluid-d-x)) calc(var(--portrait-y) + var(--fluid-d-y)),#000 0%,#000 66%,rgba(0,0,0,.78) 82%,transparent 100%),
    radial-gradient(circle var(--fluid-e-r) at calc(var(--portrait-x) + var(--fluid-e-x)) calc(var(--portrait-y) + var(--fluid-e-y)),#000 0%,#000 64%,rgba(0,0,0,.8) 80%,transparent 100%),
    radial-gradient(circle var(--fluid-f-r) at calc(var(--portrait-x) + var(--fluid-f-x)) calc(var(--portrait-y) + var(--fluid-f-y)),#000 0%,#000 60%,rgba(0,0,0,.7) 78%,transparent 100%),
    radial-gradient(circle var(--fluid-g-r) at calc(var(--portrait-x) + var(--fluid-g-x)) calc(var(--portrait-y) + var(--fluid-g-y)),#000 0%,#000 56%,rgba(0,0,0,.58) 76%,transparent 100%);
  -webkit-mask-composite: source-over,source-over,source-over,source-over,source-over,source-over,source-over;
  mask-image:
    radial-gradient(circle var(--fluid-core-r) at calc(var(--portrait-x) + var(--fluid-core-x)) calc(var(--portrait-y) + var(--fluid-core-y)),#000 0%,#000 72%,rgba(0,0,0,.78) 84%,transparent 100%),
    radial-gradient(circle var(--fluid-a-r) at calc(var(--portrait-x) + 92px + var(--fluid-a-x)) calc(var(--portrait-y) - 18px + var(--fluid-a-y)),#000 0%,#000 68%,rgba(0,0,0,.76) 83%,transparent 100%),
    radial-gradient(circle var(--fluid-b-r) at calc(var(--portrait-x) - 88px + var(--fluid-b-x)) calc(var(--portrait-y) + 30px + var(--fluid-b-y)),#000 0%,#000 68%,rgba(0,0,0,.76) 83%,transparent 100%),
    radial-gradient(circle var(--fluid-c-r) at calc(var(--portrait-x) + 12px + var(--fluid-c-x)) calc(var(--portrait-y) + 112px + var(--fluid-c-y)),#000 0%,#000 68%,rgba(0,0,0,.76) 83%,transparent 100%),
    radial-gradient(circle var(--fluid-d-r) at calc(var(--portrait-x) + var(--fluid-d-x)) calc(var(--portrait-y) + var(--fluid-d-y)),#000 0%,#000 66%,rgba(0,0,0,.78) 82%,transparent 100%),
    radial-gradient(circle var(--fluid-e-r) at calc(var(--portrait-x) + var(--fluid-e-x)) calc(var(--portrait-y) + var(--fluid-e-y)),#000 0%,#000 64%,rgba(0,0,0,.8) 80%,transparent 100%),
    radial-gradient(circle var(--fluid-f-r) at calc(var(--portrait-x) + var(--fluid-f-x)) calc(var(--portrait-y) + var(--fluid-f-y)),#000 0%,#000 60%,rgba(0,0,0,.7) 78%,transparent 100%),
    radial-gradient(circle var(--fluid-g-r) at calc(var(--portrait-x) + var(--fluid-g-x)) calc(var(--portrait-y) + var(--fluid-g-y)),#000 0%,#000 56%,rgba(0,0,0,.58) 76%,transparent 100%);
  mask-composite: add,add,add,add,add,add,add;
  transform: translate3d(var(--portrait-base-x),var(--portrait-base-y),0) scale(1.015);
}
.home-page .hero-portrait-static .hero-cutout-head {
  z-index: 3;
  pointer-events: none;
  transform: translate3d(var(--portrait-base-x),var(--portrait-base-y),0) scale(1.015);
  -webkit-mask-image: linear-gradient(to bottom,#000 0%,#000 40%,rgba(0,0,0,.98) 43%,rgba(0,0,0,.8) 46%,rgba(0,0,0,.28) 50%,transparent 54%);
  mask-image: linear-gradient(to bottom,#000 0%,#000 40%,rgba(0,0,0,.98) 43%,rgba(0,0,0,.8) 46%,rgba(0,0,0,.28) 50%,transparent 54%);
}
.home-page .hero-portrait-static.is-interacting .hero-cutout-reveal {
  opacity: 1;
}
.home-page .portrait-reveal-note {
  position: absolute;
  top: 16%;
  left: 4px;
  z-index: 4;
  margin: 0;
  color: #7c4f77;
  font: 600 clamp(21px,2vw,31px)/1 "Caveat",cursive;
  letter-spacing: .01em;
  text-shadow: 0 0 12px rgba(255,255,255,.68),0 2px 14px rgba(72,47,88,.18);
  transform: rotate(-6deg);
  pointer-events: none;
  transition: opacity .28s ease,transform .28s ease;
}
.home-page .portrait-reveal-note span { display:inline-block; margin-left:5px; transform:rotate(8deg); }
.home-page .hero-portrait-static.is-interacting .portrait-reveal-note {
  opacity: .24;
  transform: translateY(-5px) rotate(-6deg);
}

/* Compact navigation: always the same purple oval, never a full-width wash. */
.home-page .site-header .command-nav a,
.home-page .site-header .command-nav a:hover,
.home-page .site-header .command-nav a.active {
  color: #ffe258 !important;
  background: transparent !important;
  --nav-tone: #ffe258 !important;
}
.home-page .site-header .command-nav,
.home-page .site-header.scrolled .command-nav {
  color: #ffe258 !important;
  background: rgba(62,29,99,.9) !important;
  border: 1px solid rgba(255,226,88,.2);
  border-radius: 999px;
  box-shadow: 0 8px 26px rgba(42,16,72,.2);
  backdrop-filter: blur(16px) saturate(135%);
}
.home-page .site-header.scrolled {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

@media (max-width: 1000px) {
  .home-page .hero { grid-template-columns: 1fr; }
  .home-page .role-line { white-space: normal; }
  .home-page .hero-portrait-static {
    width: min(82vw, 700px);
    height: min(82svh, 760px);
    right: -23vw;
  }
}

@media (max-width: 640px) {
  .home-page .hero-portrait-static {
    width: 116vw;
    height: 76svh;
    right: -43vw;
  }
}

@media (max-width: 900px) {
  .home-page .command-nav {
    color: #ffe258 !important;
    background: linear-gradient(145deg,#492879,#8e347d) !important;
    border-radius: 0;
  }
  .home-page .hero.is-scrolled-card {
    clip-path: inset(8px round 30px);
    border-radius: 30px;
  }
}

/* Work and honors: separate bands, with three readable cards per row. */
.combined-impact-page .impact-content { padding-top: 58px; }
.combined-impact-page .impact-grid { display: block; }
.impact-jump { display:flex; flex-wrap:wrap; gap:10px 22px; margin:0 0 70px; padding-bottom:20px; border-bottom:1px solid rgba(31,70,91,.2); }
.impact-jump a { color:#245f76; font:600 12px var(--mono); text-decoration:none; border-bottom:1px solid transparent; padding:5px 0; }
.impact-jump a:hover,.impact-jump a:focus-visible { border-color:currentColor; }
.combined-impact-page .impact-grid .cv-section { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; padding:0 0 96px; }
.combined-impact-page .impact-grid .cv-section > h2 { grid-column:1/-1; margin:0 0 7px; color:#244d70; font:700 clamp(30px,3.8vw,50px)/1.05 var(--sans); letter-spacing:-.045em; text-transform:none; }
.combined-impact-page #awards { padding-top:56px; border-top:1px solid rgba(152,112,31,.2); }
.combined-impact-page #awards > h2 { color:#765522; }
.combined-impact-page .impact-grid .cv-entry { display:block; min-width:0; height:100%; margin:0; padding:25px; border-radius:18px; }
.combined-impact-page #work .cv-entry { background:#dbe9f5; border:1px solid #81a9c6 !important; color:#1e4763; }
.combined-impact-page #awards .cv-entry { background:#f8edc7; border:1px solid #d5bb6d !important; color:#584b27; }
.combined-impact-page #work .cv-entry:nth-of-type(3n+2) { background:#cbdff0; }
.combined-impact-page #work .cv-entry:nth-of-type(3n+3) { background:#e3edf5; }
.combined-impact-page #awards .cv-entry:nth-of-type(3n+2) { background:#f5e5ad; }
.combined-impact-page #awards .cv-entry:nth-of-type(3n+3) { background:#fbf1d7; }
.combined-impact-page .cv-entry time { display:block; margin-bottom:22px; color:inherit; opacity:.75; }
.combined-impact-page .cv-entry .work-heading { align-items:flex-start; }
.combined-impact-page .cv-entry h3 { font-size:clamp(20px,1.8vw,27px); line-height:1.13; }
.combined-impact-page .cv-entry p { line-height:1.6; }
.combined-impact-page #certificates,.combined-impact-page #leadership { grid-template-columns:repeat(3,minmax(0,1fr)); }
@media(max-width:980px) { .combined-impact-page .impact-grid .cv-section { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:640px) { .combined-impact-page .impact-grid .cv-section { grid-template-columns:1fr; gap:16px; padding-bottom:66px; } .impact-jump { margin-bottom:45px; } }

/* Square, typographic event cards share a single source with the globe. */
.event-card { background:#dce9f0; }
.event-card.event-blue { background:#c9dff0; }
.event-card.event-ice { background:#d4ecef; }
.event-card.event-gold { background:#f1e5c4; }
.event-card .place-visual b { font-size:clamp(62px,8vw,116px); letter-spacing:-.07em; opacity:.55; }
.event-card .place-card-copy { padding:23px; }
.event-card .place-card-copy h3 { font-size:clamp(23px,2.7vw,33px); line-height:1.05; }
.event-card .place-card-copy p { font-size:14px; }
.event-card .place-card-copy > span { font-size:11px; }
.event-details-link { display:inline-block; margin:12px 0 0; color:#175e83; border-bottom:1px solid currentColor; font-size:12px; font-weight:700; }
@media(max-width:640px) { .places-showcase-track { grid-auto-columns:minmax(280px,88%); } .event-card .place-card-copy { left:16px; right:16px; bottom:16px; padding:18px; } }

/* An honest live GitHub view: account data and repositories come from GitHub. */
.github-live-profile { max-width:1180px; margin:auto; padding:0; overflow:hidden; border:1px solid #ccd8e5; border-radius:18px; color:#273e59; background:#f8fbfd; box-shadow:0 26px 60px rgba(41,70,102,.1); }
.github-live-top { display:flex; justify-content:space-between; gap:20px; padding:17px 30px; border-bottom:1px solid #dbe4ed; color:#5c7188; background:#eef4f8; font:600 12px var(--mono); }
.github-live-top span:last-child { color:#476f92; }
.github-live-identity { display:grid; grid-template-columns:160px 1fr; gap:30px; align-items:start; padding:38px 40px; }
.github-live-identity img { width:150px; height:150px; border-radius:50%; object-fit:cover; border:1px solid #c5d5e4; }
.github-live-identity h3 { margin:2px 0 5px; font-size:clamp(29px,3vw,40px); letter-spacing:-.04em; }
.github-live-handle { color:#4475a3; font:500 16px var(--mono); }
.github-live-handle:hover { text-decoration:underline; }
.github-live-identity p { max-width:760px; margin:24px 0 0; font-size:17px; line-height:1.6; }
.github-live-meta { display:flex; flex-wrap:wrap; gap:12px 32px; margin-top:22px; color:#597088; font-size:14px; }
.github-live-meta strong { color:#273e59; }
.github-live-readme { padding:28px 40px 30px; border-top:1px solid #dbe4ed; background:#f2f7fb; }
.github-live-readme span { color:#57718a; font:600 12px var(--mono); text-transform:uppercase; letter-spacing:.08em; }
.github-live-readme p { max-width:920px; margin:14px 0 0; font-size:16px; line-height:1.65; }
.github-live-repositories { padding:30px 40px 40px; border-top:1px solid #dbe4ed; }
.github-live-repositories h4 { margin:0 0 22px; font-size:19px; }
.github-live-profile .github-repos { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; }
.github-live-profile .github-repo { min-height:150px; margin:0; background:#fff; border:1px solid #d4dfe9; border-radius:11px; box-shadow:none; }
.github-live-profile .github-repo strong { color:#27639a; }
.github-live-profile .github-repo p { color:#54677b; font-size:14px; }
.github-live-profile .github-repo small { color:#63788c !important; }
.github-live-open { display:flex; justify-content:space-between; gap:18px; padding:22px 40px; border-top:1px solid #dbe4ed; color:#235f93; font-weight:700; }
.github-live-open:hover { background:#eaf2f9; }
@media(max-width:700px) { .github-live-top { flex-direction:column; padding:15px 20px; } .github-live-identity { grid-template-columns:1fr; gap:20px; padding:28px 22px; } .github-live-identity img { width:112px; height:112px; } .github-live-readme,.github-live-repositories { padding:26px 22px; } .github-live-profile .github-repos { grid-template-columns:1fr; } .github-live-open { padding:20px 22px; } }
