/* ===========================================================
   CRASH Lab — cinematic site styles
   =========================================================== */

:root {
  color-scheme: dark;
  --bg:    #05050a;
  --ink:   #f7f1e8;
  --muted: #a9a39a;
  --line:  rgba(247, 241, 232, 0.12);
  --amber:  #ffb84d;
  --coral:  #ff5d57;
  --cyan:   #6be7d8;
  --violet: #8d7bff;
  --mono:  ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", sans-serif;
}


/* ===========================================================
   NAVIGATION
   =========================================================== */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
  height: 3.5rem;
  background: rgba(5, 5, 10, 0.52);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(247, 241, 232, 0.07);
}

.site-nav__brand {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  opacity: 0.9;
  transition: opacity 180ms ease-out;
}
.site-nav__brand:hover { opacity: 1; }
.site-nav__brand:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

.site-nav__links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: clamp(1.2rem, 2.5vw, 2.5rem);
}

.site-nav__links a {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease-out;
}
.site-nav__links a:hover { color: var(--ink); }
.site-nav__links a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

@media (max-width: 560px) {
  .site-nav__links { display: none; }
}


/* ===========================================================
   SCENE SYSTEM — layout
   =========================================================== */

/* Scene 1 sticky container: 200vh gives 100vh of sticky scroll room */
.scene-sticky-area {
  position: relative;
  height: 200vh;
}

.scene {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

/* Scene 1: sticky inside its 200vh container */
.scene--impact {
  position: sticky;
  top: 0;
  z-index: 1;
}

/* Scene 2: negative margin pulls it up so it rises over Scene 1 */
.scene--crash {
  margin-top: -100vh;
  z-index: 2;
}

/* Scene 3: normal flow, fades in via JS */
.scene--breeze {
  z-index: 3;
}


/* ===========================================================
   SCENE LAYERS — parallax containers
   Oversized (inset: -5%) so edges don't clip during parallax.
   =========================================================== */

.scene__layer {
  position: absolute;
  inset: -5%;
  pointer-events: none;
  will-change: transform;
}

.scene__layer--bg  { z-index: 1; }
.scene__layer--mid { z-index: 2; }
.scene__layer--fg  { z-index: 3; }
/* HUD layer: no overshoot — text must stay within the visible area */
.scene__layer--hud { z-index: 4; inset: 0; }


/* ===========================================================
   SCENE TEXT CONTENT — sits above all layers
   =========================================================== */

.scene__content {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(4rem, 7vw, 7rem) clamp(1.5rem, 7vw, 6.5rem) clamp(4rem, 7vw, 6.5rem);
  pointer-events: none;
}

.scene__content > * { pointer-events: auto; }

/* Gradient vignette behind text for legibility */
.scene__content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 80% at 0% 100%, rgba(0,0,0,0.7) 0%, transparent 58%);
  pointer-events: none;
  z-index: -1;
}

.scene__content--left { max-width: 60%; }

@media (max-width: 820px) {
  .scene__content--left { max-width: 100%; }
}

.scene__content--bottom { justify-content: flex-end; }

/* Scene 3: shift vignette more toward bottom */
.scene--breeze .scene__content::before {
  background: radial-gradient(ellipse 100% 70% at 0% 100%, rgba(10,4,0,0.72) 0%, transparent 55%);
}


/* ===========================================================
   SCENE TEXT ELEMENTS
   =========================================================== */

.scene__eyebrow {
  margin: 0 0 clamp(0.9rem, 1.8vw, 1.4rem);
  color: rgba(169, 163, 154, 0.8);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scene__title {
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 7rem);
  font-weight: 770;
  letter-spacing: -0.02em;
  line-height: 0.93;
}

.scene__title--md {
  font-size: clamp(2.4rem, 5.2vw, 5rem);
  line-height: 0.96;
}

.scene__lede {
  max-width: 44rem;
  margin: clamp(1.2rem, 2.4vw, 2rem) 0 0;
  color: rgba(247, 241, 232, 0.72);
  font-size: clamp(1rem, 1.55vw, 1.22rem);
  line-height: 1.56;
}

.scene__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin-top: clamp(1.8rem, 3.5vw, 2.8rem);
  padding: 0.78em 1.6em;
  border: 1px solid rgba(255, 184, 77, 0.42);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 200ms ease-out, border-color 200ms ease-out;
}
.scene__cta::after { content: '\2193'; font-size: 0.85em; }
.scene__cta:hover {
  background: rgba(255, 184, 77, 0.1);
  border-color: rgba(255, 184, 77, 0.7);
}
.scene__cta:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

.scene__credit {
  margin: 0.7rem 0 0;
  color: rgba(247, 241, 232, 0.3);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

/* Large faded scene number, bottom-right */
.scene__marker {
  position: absolute;
  right: clamp(1.5rem, 4vw, 4rem);
  bottom: clamp(1.5rem, 3vw, 3rem);
  color: rgba(255, 184, 77, 0.14);
  font-family: var(--mono);
  font-size: clamp(5rem, 12vw, 11rem);
  font-weight: 800;
  line-height: 1;
  z-index: 10;
  user-select: none;
  pointer-events: none;
}


/* ===========================================================
   HUD (heads-up display) elements
   =========================================================== */

.hud {
  position: absolute;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  line-height: 1.9;
}

.hud--tr {
  top: clamp(4.5rem, 7vw, 6rem);
  right: clamp(1.5rem, 4vw, 4rem);
  text-align: right;
}

.hud__row {
  display: flex;
  justify-content: flex-end;
  gap: 0.9em;
  color: rgba(255, 184, 77, 0.62);
}

.hud__k { opacity: 0.52; }

.hud__v {
  min-width: 6em;
  text-align: right;
}

.hud__status {
  margin-top: 0.5em;
  padding-top: 0.5em;
  border-top: 1px solid rgba(255, 184, 77, 0.2);
  color: var(--amber);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .hud--tr { display: none; }
}


/* ===========================================================
   AMBER SWEEP — slide-in divider between scenes
   =========================================================== */

.scene__sweep {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%, var(--amber) 30%, var(--amber) 70%, transparent 100%);
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 50;
}

.js .scene__sweep {
  transition: transform 750ms cubic-bezier(0.4, 0, 0.2, 1) 80ms;
}

.scene.is-visible .scene__sweep { transform: scaleX(1); }


/* ===========================================================
   SCROLL CUE
   =========================================================== */

.scroll-cue {
  position: absolute;
  bottom: clamp(1.6rem, 3vw, 3rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  z-index: 10;
  pointer-events: none;
}

.scroll-cue__bar {
  display: block;
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, rgba(255,184,77,0.65), transparent);
  animation: cue-pulse 2.2s ease-in-out infinite;
}

.scroll-cue__label {
  color: rgba(247, 241, 232, 0.3);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@keyframes cue-pulse {
  0%, 100% { opacity: 0.85; transform: scaleY(1); }
  50%       { opacity: 0.28; transform: scaleY(0.6); }
}


/* ===========================================================
   SCENE 1 - IMPACT IN PROGRESS
   CSS FEA heatmap: concentric blast zones around impact at 60% 51%
   ASSET SWAP: add background-image to .scene--impact .scene__layer--bg
   =========================================================== */

.scene--impact .scene__layer--bg {
  background: #040000; /* dark fallback; SVG heatmap provides all visual */
}

.impact-heatmap-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.impact-mesh,
.impact-vectors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}


/* ===========================================================
   SCENE 2 - STRUCTURAL DEFORMATION / CRASHWORTHINESS
   CSS FEA von Mises stress field: blue -> cyan -> green -> yellow -> red
   ASSET SWAP: add background-image to .scene--crash .scene__layer--bg
   =========================================================== */

.scene--crash .scene__layer--bg {
  background:
    radial-gradient(ellipse 26% 20% at 46% 56%, rgba(215,42,0,0.78)  0%, transparent 80%),
    radial-gradient(ellipse 50% 38% at 46% 56%, rgba(196,176,0,0.42) 0%, transparent 80%),
    radial-gradient(ellipse 76% 62% at 46% 56%, rgba(0,145,195,0.28) 0%, transparent 80%),
    radial-gradient(ellipse 100% 88% at 22% 38%, rgba(0,36,118,0.38) 0%, transparent 70%),
    linear-gradient(180deg, rgba(0,0,0,0.58) 0%, transparent 36%, transparent 64%, rgba(0,0,0,0.52) 100%),
    linear-gradient(158deg, #020410 0%, #030715 50%, #020510 100%);
}

.crash-structure {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.crash-deform-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 35% 55% at 72% 50%, rgba(255,68,0,0.12) 0%, transparent 70%);
}


/* ===========================================================
   SCENE 3 - BREEZE / VENUS ATMOSPHERIC MISSION
   Background: NASA PIA23791 Venus atmosphere image
   Vignette gradient overlays the photo top+bottom to blend into content panels.
   =========================================================== */

.scene--breeze .scene__layer--bg {
  background-image:
    linear-gradient(180deg,
      rgba(4,2,2,0.78)    0%,
      rgba(22,6,0,0.38)  12%,
      rgba(0,0,0,0)      30%,
      rgba(0,0,0,0)      70%,
      rgba(22,6,0,0.38)  88%,
      rgba(4,2,2,0.78)  100%
    ),
    url(assets/scene-3-venus.jpeg);
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

.venus-clouds {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.venus-clouds__streak {
  position: absolute;
  left: -20%;
  width: 140%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,178,30,0.07)  22%,
    rgba(255,160,18,0.14)  50%,
    rgba(255,178,30,0.07)  78%,
    transparent 100%
  );
}

.venus-clouds__streak--1 { top: 26%; height: 13px; animation: vdrift1 22s linear infinite; }
.venus-clouds__streak--2 { top: 38%; height: 22px; animation: vdrift2 32s linear infinite 4s; }
.venus-clouds__streak--3 { top: 50%; height: 30px; animation: vdrift3 18s linear infinite 10s; opacity: 0.75; }
.venus-clouds__streak--4 { top: 61%; height: 16px; animation: vdrift4 26s linear infinite 1.5s; }
.venus-clouds__streak--5 { top: 72%; height: 24px; animation: vdrift5 28s linear infinite 7s; opacity: 0.6; }

@keyframes vdrift1 { from { transform: translateX(0)    skewX(-9deg);  } to { transform: translateX(-14.3%) skewX(-9deg);  } }
@keyframes vdrift2 { from { transform: translateX(0)    skewX(-5deg);  } to { transform: translateX(-14.3%) skewX(-5deg);  } }
@keyframes vdrift3 { from { transform: translateX(-4%)  skewX(-12deg); } to { transform: translateX(-18.3%) skewX(-12deg); } }
@keyframes vdrift4 { from { transform: translateX(0)    skewX(-7deg);  } to { transform: translateX(-14.3%) skewX(-7deg);  } }
@keyframes vdrift5 { from { transform: translateX(-2%)  skewX(-4deg);  } to { transform: translateX(-16.3%) skewX(-4deg);  } }

.breeze-craft {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(88vw, 820px);
  transform: translate(-50%, -52%);
}

.venus-haze {
  position: absolute;
  left: 0;
  right: 0;
  top: 40%;
  height: 30%;
  background: radial-gradient(ellipse 90% 100% at 50% 50%,
    rgba(255,120,0,0.1) 0%,
    rgba(200,80,0,0.05) 50%,
    transparent 80%
  );
}


/* ===========================================================
   SCENE TRANSITIONS (JS-driven via IntersectionObserver)
   =========================================================== */

.js .scene--breeze {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 960ms ease-out, transform 960ms ease-out;
}

.js .scene--breeze.is-visible {
  opacity: 1;
  transform: none;
}


/* ===========================================================
   REDUCED MOTION
   =========================================================== */

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

  .scene__layer    { transform: none !important; }
  .scene--breeze   { opacity: 1 !important; transform: none !important; }
  .scene__sweep    { transform: scaleX(1) !important; }
  .scroll-cue__bar { animation: none !important; opacity: 0.65; }

  .panel,
  .domain-card,
  .project-card,
  .method-list li,
  .panel-header,
  .mission-body p,
  .people-block,
  .panel--contact .panel-inner--center > * {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* ===========================================================
   MOBILE — disable sticky overlap on small screens
   =========================================================== */

@media (max-width: 768px) {
  .scene-sticky-area { height: auto; }
  .scene--impact     { position: relative; }
  .scene--crash      { margin-top: 0; }

  .scene__title    { font-size: clamp(2.8rem, 11vw, 4rem); }
  .scene__title--md { font-size: clamp(2rem, 8vw, 3rem); }
  .scene__lede     { font-size: clamp(0.95rem, 3.5vw, 1.1rem); }
  .scene__marker   { font-size: clamp(4rem, 18vw, 7rem); }
}


/* ===========================================================
   PANEL SYSTEM — content sections below the scenes
   =========================================================== */

.panel {
  position: relative;
  padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 7vw, 6.5rem);
  border-top: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 600ms ease-out;
}

.panel::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 60%;
  background: radial-gradient(ellipse at 30% 0%, var(--panel-glow, transparent), transparent 60%);
  opacity: 0;
  transition: opacity 900ms ease-out;
  pointer-events: none;
  z-index: 0;
}

.panel.is-visible::before { opacity: 1; }
.panel.is-visible { border-top-color: rgba(255, 184, 77, 0.2); }
.panel > * { position: relative; z-index: 1; }

#research { --panel-glow: rgba(107, 231, 216, 0.06); }
#methods  { --panel-glow: rgba(141, 123, 255, 0.05); }
#projects { --panel-glow: rgba(255, 184, 77, 0.05); }
#people   { --panel-glow: rgba(255, 93, 87, 0.04); }

.panel-header,
.mission-stats,
.mission-body p,
.workflow-rail,
.pi-profile,
.team-grid,
.recruit-cta,
.collab-lede,
.collab-pathways,
.collab-footer {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 460ms ease-out, transform 460ms ease-out;
}

.panel.is-visible .panel-header         { opacity: 1; transform: none; transition-delay: 40ms; }
.panel.is-visible .mission-stats        { opacity: 1; transform: none; transition-delay: 60ms; }
.panel.is-visible .mission-body p       { opacity: 1; transform: none; }
.panel.is-visible .mission-body p:nth-child(2) { transition-delay: 100ms; }
.panel.is-visible .workflow-rail        { opacity: 1; transform: none; transition-delay: 60ms; }
.panel.is-visible .pi-profile           { opacity: 1; transform: none; transition-delay: 60ms; }
.panel.is-visible .team-grid            { opacity: 1; transform: none; transition-delay: 120ms; }
.panel.is-visible .recruit-cta          { opacity: 1; transform: none; transition-delay: 180ms; }
.panel.is-visible .collab-lede          { opacity: 1; transform: none; transition-delay: 60ms; }
.panel.is-visible .collab-pathways      { opacity: 1; transform: none; transition-delay: 120ms; }
.panel.is-visible .collab-footer        { opacity: 1; transform: none; transition-delay: 180ms; }

.panel.is-visible .domain-card:nth-child(1) { transition-delay:  40ms; }
.panel.is-visible .domain-card:nth-child(2) { transition-delay:  90ms; }
.panel.is-visible .domain-card:nth-child(3) { transition-delay: 140ms; }
.panel.is-visible .domain-card:nth-child(4) { transition-delay: 190ms; }
.panel.is-visible .domain-card:nth-child(5) { transition-delay: 240ms; }
.panel.is-visible .domain-card:nth-child(6) { transition-delay: 290ms; }

.panel.is-visible .project-card:nth-child(1) { transition-delay:  40ms; }
.panel.is-visible .project-card:nth-child(2) { transition-delay: 100ms; }
.panel.is-visible .project-card:nth-child(3) { transition-delay: 160ms; }
.panel.is-visible .project-card:nth-child(4) { transition-delay: 220ms; }

.panel--alt { background: rgba(247, 241, 232, 0.018); }

.panel-inner {
  max-width: 80rem;
  margin: 0 auto;
}

.panel-inner--split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.panel-inner--center {
  max-width: 52rem;
  text-align: center;
}

.panel-header { margin-bottom: clamp(3rem, 6vw, 5rem); }

.panel-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.panel-eyebrow::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  flex: none;
  border: 1px solid var(--cyan);
  border-width: 1px 0 0 1px;
  opacity: 0.7;
}
.panel-inner--center .panel-eyebrow { justify-content: center; }

.panel-heading {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.06;
}

/* Mission */
.mission-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
  padding: 1.4rem 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 460ms ease-out, transform 460ms ease-out;
  transition-delay: 60ms;
}
.panel.is-visible .mission-stats { opacity: 1; transform: none; }

.mission-stat { display: flex; flex-direction: column; gap: 0.3rem; }
.mission-stat__value {
  font-family: var(--mono);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 700;
  color: var(--amber);
  letter-spacing: -0.01em;
}
.mission-stat__label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.mission-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 72rem;
}
.mission-body p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.65;
}
.mission-body em { color: var(--ink); font-style: normal; }
.mission-body__lead { color: var(--ink); }

/* Research domain cards */
.domain-index-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem clamp(1rem, 3vw, 2.2rem);
  margin: 0 0 clamp(1.5rem, 3vw, 2.2rem);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms ease-out, transform 420ms ease-out;
}
.panel.is-visible .domain-index-strip { opacity: 1; transform: none; }

.domain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.domain-card {
  position: relative;
  padding: clamp(1.4rem, 2.3vw, 2rem);
  background: rgba(5, 5, 10, 0.72);
  backdrop-filter: blur(18px);
  border-top: 2px solid transparent;
  opacity: 0;
  transform: translate3d(0, 20px, 0) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
  transition: opacity 460ms ease-out, transform 220ms ease-out, box-shadow 200ms ease-out;
}

.domain-card[data-accent="amber"]  { border-top-color: var(--amber); }
.domain-card[data-accent="coral"]  { border-top-color: var(--coral); }
.domain-card[data-accent="cyan"]   { border-top-color: var(--cyan); }
.domain-card[data-accent="violet"] { border-top-color: var(--violet); }

.panel.is-visible .domain-card {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
}

.domain-card:hover, .domain-card:focus-within {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.domain-card--uas { overflow: hidden; }

.domain-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  overflow: visible;
}

.domain-card--featured .domain-card__mark {
  position: relative;
  width: clamp(4rem, 7vw, 5.5rem);
  height: clamp(4rem, 7vw, 5.5rem);
}

.domain-card--featured .uas-mark {
  position: static;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.domain-card--featured .domain-card__body h3 { margin-top: 1rem; }

.domain-card--featured .domain-card__stat {
  align-self: center;
  padding-left: clamp(1.2rem, 2vw, 2rem);
  border-left: 1px solid var(--line);
  text-align: right;
}
.domain-card__stat-value {
  display: block;
  font-family: var(--mono);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  color: var(--amber);
  line-height: 1.1;
}
.domain-card__stat-label {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.uas-mark {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 3.2rem;
  height: 3.2rem;
  opacity: 0.18;
  transition: opacity 260ms ease-out;
}
.domain-card--uas:not(.domain-card--featured):hover .uas-mark,
.domain-card--uas:not(.domain-card--featured):focus-within .uas-mark { opacity: 0.35; }

.domain-index {
  display: inline-block;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
}

.domain-card h3 {
  margin: 1.4rem 0 0.6rem;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.2;
}
.domain-card--featured h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
.domain-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.58;
}

/* Methods workflow rail */
.workflow-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: clamp(2rem, 4vw, 4rem) 0 0;
  border-top: 1px solid var(--line);
}

.workflow-step {
  position: relative;
  padding: clamp(1.6rem, 2.8vw, 2.5rem) clamp(1.4rem, 2.5vw, 2.2rem) clamp(1.6rem, 2.8vw, 2.5rem) 0;
  border-top: 2px solid transparent;
  overflow: hidden;
}

.workflow-step:not(:last-child) {
  border-right: 1px solid var(--line);
  padding-right: clamp(1.4rem, 2.5vw, 2.2rem);
}

.workflow-step:not(:first-child) {
  padding-left: clamp(1.4rem, 2.5vw, 2.2rem);
}

.workflow-step:nth-child(1) { border-top-color: var(--amber); }
.workflow-step:nth-child(2) { border-top-color: var(--coral); }
.workflow-step:nth-child(3) { border-top-color: var(--violet); }
.workflow-step:nth-child(4) { border-top-color: var(--cyan); }

.workflow-step__num {
  position: absolute;
  bottom: -0.3rem;
  right: 0.4rem;
  font-family: var(--mono);
  font-size: clamp(4.5rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.03);
  user-select: none;
  pointer-events: none;
}

.workflow-step__phase {
  margin: 0 0 0.9rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.workflow-step:nth-child(1) .workflow-step__phase { color: var(--amber); }
.workflow-step:nth-child(2) .workflow-step__phase { color: var(--coral); }
.workflow-step:nth-child(3) .workflow-step__phase { color: var(--violet); }
.workflow-step:nth-child(4) .workflow-step__phase { color: var(--cyan); }

.workflow-step h3 {
  margin: 0 0 0.55rem;
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  line-height: 1.3;
  position: relative;
}

.workflow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  position: relative;
}

/* Project cards */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 1.8vw, 1.4rem);
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 2.3vw, 2rem);
  border: 1px solid var(--line);
  background: rgba(247, 241, 232, 0.018);
  opacity: 0;
  transform: translate3d(0, 20px, 0) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
  transition: opacity 460ms ease-out, transform 220ms ease-out, box-shadow 200ms ease-out, border-color 200ms ease-out;
}

.panel.is-visible .project-card {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
}

.project-card:hover, .project-card:focus-within {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  z-index: 2;
}
.project-card[data-accent="amber"]:hover, .project-card[data-accent="amber"]:focus-within { border-color: rgba(255, 184, 77, 0.45); }
.project-card[data-accent="coral"]:hover,  .project-card[data-accent="coral"]:focus-within  { border-color: rgba(255, 93, 87, 0.45); }
.project-card[data-accent="cyan"]:hover,   .project-card[data-accent="cyan"]:focus-within   { border-color: rgba(107, 231, 216, 0.45); }

/* Featured card spans full width */
.project-card--featured {
  grid-column: 1 / -1;
  overflow: hidden;
}

.project-card--featured h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  margin-bottom: 0.8rem;
}

.project-card--featured p {
  max-width: 60ch;
}

.project-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 0.65rem;
  height: 0.65rem;
  border: 1px solid rgba(255, 184, 77, 0.6);
  border-width: 1px 0 0 1px;
}

/* Visual placeholder zone on supporting cards */
.project-card__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  margin: -clamp(1.4rem, 2.3vw, 2rem) -clamp(1.4rem, 2.3vw, 2rem) clamp(1.2rem, 2vw, 1.6rem);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 241, 232, 0.03);
}

.project-card__visual-label {
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(169, 163, 154, 0.35);
}

/* Header row: tag + badge side by side on featured */
.project-card__header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
  position: relative;
}

.project-badge {
  padding: 0.2em 0.6em;
  border: 1px solid rgba(107, 231, 216, 0.4);
  border-radius: 2px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.breeze-atmo {
  position: absolute;
  inset: 0 0 auto 0;
  height: 38%;
  overflow: hidden;
  opacity: 0.5;
  background:
    linear-gradient(180deg, rgba(255, 184, 77, 0.22), transparent 70%),
    linear-gradient(180deg, transparent 40%, rgba(255, 138, 61, 0.16) 62%, transparent 82%),
    linear-gradient(180deg, transparent 55%, rgba(180, 82, 40, 0.14) 75%, transparent 100%);
  transform: scale(1);
  transition: transform 260ms ease-out, opacity 260ms ease-out;
  pointer-events: none;
}

.project-card--breeze:hover .breeze-atmo,
.project-card--breeze:focus-within .breeze-atmo { transform: scale(1.03); opacity: 0.72; }

.project-card--breeze .project-card__header,
.project-card--breeze h3,
.project-card--breeze p { position: relative; }

.project-tag {
  display: inline-block;
  margin-bottom: 0;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* standalone tag (non-featured cards) */
.project-card:not(.project-card--featured) > .project-tag { margin-bottom: 0.9rem; }

/* Footer strip: status · team · link */
.project-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.2rem;
  margin-top: auto;
  padding-top: clamp(1rem, 1.8vw, 1.4rem);
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-status {
  display: flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 600;
}
.project-status::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
}
.project-status--active { color: var(--cyan); }
.project-status--active::before { background: var(--cyan); }

.project-team { color: var(--muted); }

.project-card__link {
  margin-left: auto;
  color: var(--muted);
}

.project-card h3 { margin: 0 0 0.65rem; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.2; }
.project-card p  { margin: 0 0 0; color: var(--muted); font-size: 0.93rem; line-height: 1.58; }

/* People — PI profile, team grid, recruit CTA */
.pi-profile {
  display: flex;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: flex-start;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.pi-profile__photo {
  flex-shrink: 0;
  width: clamp(120px, 14vw, 180px);
  aspect-ratio: 1;
  border: 1px dashed rgba(247, 241, 232, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(247, 241, 232, 0.025);
}

.pi-profile__photo svg { width: 60%; height: auto; }

.pi-profile__photo-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(169, 163, 154, 0.3);
}

.pi-profile__body { flex: 1; }

.pi-name  { margin: 0 0 0.35rem; font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 700; }
.pi-role  { margin: 0 0 1rem; color: var(--cyan); font-family: var(--mono); font-size: 0.73rem; letter-spacing: 0.06em; text-transform: uppercase; }
.pi-bio   { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.62; }

/* Team member placeholder grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(1.2rem, 2vw, 1.8rem) clamp(0.8rem, 1.5vw, 1.2rem);
  background: rgba(5, 5, 10, 0.72);
  text-align: center;
}

.team-card__photo {
  width: clamp(3rem, 5vw, 4rem);
  height: clamp(3rem, 5vw, 4rem);
  border-radius: 50%;
  border: 1px dashed rgba(247, 241, 232, 0.14);
  background: rgba(247, 241, 232, 0.025);
  margin: 0 auto clamp(0.7rem, 1.2vw, 1rem);
}

.team-card__name {
  margin: 0 0 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.team-card__role {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(169, 163, 154, 0.45);
}

/* Recruit CTA card */
.recruit-cta {
  padding: clamp(1.6rem, 2.8vw, 2.5rem);
  border: 1px solid var(--line);
  background: rgba(247, 241, 232, 0.018);
}

.recruit-cta__heading {
  margin: 0 0 1rem;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.recruit-tracks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.2rem;
}

.recruit-track {
  padding: 0.3em 0.8em;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.recruit-cta__body {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.62;
}

.recruit-cta__link {
  display: inline-flex;
  align-items: center;
  padding: 0.7em 1.4em;
  background: rgba(255, 184, 77, 0.07);
  border: 1px solid rgba(255, 184, 77, 0.42);
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 200ms ease-out, border-color 200ms ease-out;
}
.recruit-cta__link:hover { background: rgba(255, 184, 77, 0.16); border-color: rgba(255, 184, 77, 0.7); }
.recruit-cta__link:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

/* Collaborate three-pathway layout */
.panel--contact { padding-bottom: clamp(6rem, 12vw, 11rem); }

.collab-lede {
  max-width: 56ch;
  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.65;
}

.collab-pathways {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.collab-pathway {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.5vw, 2.5rem);
  background: rgba(5, 5, 10, 0.72);
}

.collab-pathway__type {
  margin: 0 0 0.8rem;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.collab-pathway h3 {
  margin: 0 0 0.8rem;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  line-height: 1.3;
}

.collab-pathway p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  flex: 1;
}

.collab-pathway__cta {
  display: inline-flex;
  align-items: center;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease-out;
  margin-top: auto;
}
.collab-pathway__cta:hover { color: var(--ink); }
.collab-pathway__cta:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

.collab-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
}

.collab-location {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(169, 163, 154, 0.4);
}

.contact-links { display: flex; gap: 1.2rem; flex-wrap: wrap; justify-content: center; }

.contact-link {
  display: inline-flex;
  align-items: center;
  padding: 0.75em 1.5em;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 200ms ease-out, background 200ms ease-out;
}
.contact-link:hover, .contact-link:focus-visible {
  background: rgba(107, 231, 216, 0.07);
  border-color: rgba(107, 231, 216, 0.45);
}
.contact-link:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

.contact-link--primary {
  background: rgba(255, 184, 77, 0.07);
  border-color: rgba(255, 184, 77, 0.42);
  color: var(--amber);
}
.contact-link--primary:hover, .contact-link--primary:focus-visible {
  background: rgba(255, 184, 77, 0.16);
  border-color: rgba(255, 184, 77, 0.7);
}


/* ===========================================================
   PANEL RESPONSIVE BREAKPOINTS
   =========================================================== */

@media (max-width: 980px) {
  .panel-inner--split    { grid-template-columns: 1fr; gap: 2.5rem; }
  .domain-grid           { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .domain-card--featured { grid-template-columns: 1fr 1fr; }
  .domain-card--featured .domain-card__mark { display: none; }
  .mission-body          { grid-template-columns: 1fr; }
  .project-grid          { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow-rail         { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow-step:nth-child(2) { border-right: none; }
  .workflow-step:nth-child(3) { padding-left: 0; border-right: 1px solid var(--line); border-top: 2px solid transparent; }
  .workflow-step:nth-child(3) { border-top-color: var(--violet); }
  .collab-pathways       { grid-template-columns: 1fr; }
  .team-grid             { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .domain-grid              { grid-template-columns: 1fr; }
  .domain-card--featured    { grid-template-columns: 1fr; }
  .domain-card__stat        { display: none; }
  .project-grid             { grid-template-columns: 1fr; }
  .people-block             { grid-template-columns: 1fr; gap: 3rem; }
  .contact-links            { flex-direction: column; align-items: stretch; }
  .mission-stats            { gap: clamp(1rem, 4vw, 2rem); }
  .domain-index-strip       { display: none; }
  .project-card__link       { margin-left: 0; }
  .workflow-rail            { grid-template-columns: 1fr; border-top: none; border-left: 1px solid var(--line); }
  .workflow-step            { border-top: none; border-right: none; border-left: 2px solid transparent; padding-left: clamp(1.4rem, 4vw, 2rem); padding-right: 0; }
  .workflow-step:not(:last-child) { border-right: none; border-bottom: 1px solid var(--line); padding-right: 0; }
  .workflow-step:nth-child(1) { border-left-color: var(--amber); }
  .workflow-step:nth-child(2) { border-left-color: var(--coral); border-right: none; }
  .workflow-step:nth-child(3) { border-left-color: var(--violet); padding-left: clamp(1.4rem, 4vw, 2rem); border-right: none; border-top: none; }
  .workflow-step:nth-child(4) { border-left-color: var(--cyan); }
  .pi-profile               { flex-direction: column; gap: 1.5rem; }
  .pi-profile__photo        { width: 100px; }
  .team-grid                { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collab-pathways          { grid-template-columns: 1fr; }
  .collab-location          { margin-left: 0; width: 100%; }
}
