/* ============================================
   SSTA – Student Space Technology Association
   University of Tennessee Rocketry
   ============================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* UT Brand Colors */
  --ut-orange:       #FF8200;
  --ut-white:        #FFFFFF;
  --ut-smokey-gray:  #58595B;

  /* Extended Palette */
  --orange-light:    #FF9E40;
  --orange-dark:     #CC6800;

  /* Dark Theme Surface Colors */
  --bg-primary:      #0A0A0A;
  --bg-secondary:    #111111;
  --bg-elevated:     #1A1A1A;
  --bg-card:         #141414;

  /* Text */
  --text-primary:    #F5F5F5;
  --text-secondary:  #A0A0A0;
  --text-muted:      #666666;

  /* Borders */
  --border-subtle:   #222222;
  --border-accent:   rgba(255, 130, 0, 0.25);

  /* Spacing Scale */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Typography */
  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Bebas Neue', 'Inter', sans-serif;

  /* Layout */
  --nav-height:    72px;
  --max-width:     1200px;

  /* Transitions */
  --ease-out:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration:    200ms;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul, ol {
  list-style: none;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-xl);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   NAVIGATION – Hidden on load, revealed
   when user scrolls past the hero
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background-color: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1),
              opacity 400ms ease;
  pointer-events: none;
}

.site-header.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.site-header .container {
  display: flex;
  align-items: center;
  height: 100%;
  gap: var(--space-lg);
}

.site-header .nav-menu {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.site-logo img {
  height: 44px;
  width: auto;
}

.site-header .nav-logo {
  position: relative;
  isolation: isolate;
  transform: translate3d(var(--nav-logo-offset, 0px), 0, 0) rotate(var(--nav-logo-tilt, 0deg));
  transform-origin: center;
  will-change: transform;
}

.site-header .nav-logo img {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 10px rgba(255, 130, 0, 0.5));
  animation: nav-logo-shudder 1.45s ease-in-out infinite;
  animation-play-state: paused;
}

.site-header.visible .nav-logo img {
  animation-play-state: running;
}

.site-header .nav-logo::before,
.site-header .nav-logo::after {
  content: '';
  position: absolute;
  top: 50%;
  pointer-events: none;
  animation-play-state: paused;
}

.site-header .nav-logo::before {
  display: none;
}

.rocket-plume {
  position: absolute;
  top: 50%;
  left: var(--nav-logo-trail-left, 0px);
  z-index: 0;
  width: var(--nav-logo-trail-length, 0px);
  height: var(--nav-logo-plume-height, 42px);
  opacity: var(--nav-logo-trail-opacity, 0);
  pointer-events: none;
  transform: translateY(-50%);
  transform-origin: right center;
  overflow: visible;
  filter: saturate(1.08);
}

.rocket-plume::before,
.rocket-plume::after,
.plume-flame,
.plume-smoke {
  position: absolute;
  top: 50%;
  right: 0;
  border-radius: 50%;
  transform-origin: right center;
  pointer-events: none;
}

.rocket-plume::before,
.rocket-plume::after {
  content: '';
}

.rocket-plume::before {
  width: 72%;
  height: 26%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 180, 40, 0.35) 38%, rgba(255, 245, 190, 0.95) 88%, #fff 100%);
  filter: blur(0.5px);
  animation: plume-core-flow 720ms linear infinite;
}

.rocket-plume::after {
  width: 100%;
  height: 86%;
  background:
    radial-gradient(ellipse at 92% 50%, rgba(255, 228, 116, 0.7) 0 12%, transparent 30%),
    radial-gradient(ellipse at 65% 42%, rgba(255, 116, 0, 0.42) 0 18%, transparent 46%),
    radial-gradient(ellipse at 38% 62%, rgba(255, 58, 0, 0.25) 0 18%, transparent 48%),
    radial-gradient(ellipse at 12% 50%, rgba(96, 96, 96, 0.28) 0 28%, transparent 68%);
  clip-path: polygon(100% 50%, 82% 31%, 57% 18%, 26% 15%, 0 35%, 10% 50%, 0 65%, 26% 85%, 57% 82%, 82% 69%);
  filter: blur(2px);
  animation: plume-envelope 560ms ease-in-out infinite alternate;
}

.plume-flame {
  display: block;
  --wisp-drift: -62%;
  --wisp-start-rot: -2deg;
  --wisp-end-rot: 4deg;
  --wisp-start-y: -50%;
  --wisp-end-y: -50%;
  width: 72%;
  height: 42%;
  background:
    radial-gradient(ellipse at 86% 50%, rgba(255, 255, 236, 0.98) 0 10%, transparent 24%),
    radial-gradient(ellipse at 70% 45%, rgba(255, 191, 54, 0.82) 0 20%, transparent 50%),
    radial-gradient(ellipse at 42% 55%, rgba(255, 74, 0, 0.56) 0 20%, transparent 54%),
    radial-gradient(ellipse at 14% 50%, rgba(255, 95, 0, 0.22) 0 24%, transparent 64%);
  clip-path: polygon(100% 50%, 82% 23%, 54% 17%, 22% 28%, 0 49%, 22% 72%, 54% 83%, 82% 77%);
  filter: blur(0.8px);
  opacity: 0;
  animation: plume-wisp 760ms linear infinite;
}

.plume-flame-2 {
  --wisp-drift: -54%;
  --wisp-start-rot: 4deg;
  --wisp-end-rot: -3deg;
  --wisp-start-y: -55%;
  --wisp-end-y: -44%;
  height: 58%;
  width: 84%;
  animation-delay: -190ms;
  animation-duration: 880ms;
}

.plume-flame-3 {
  --wisp-drift: -70%;
  --wisp-start-rot: -6deg;
  --wisp-end-rot: 8deg;
  --wisp-start-y: -45%;
  --wisp-end-y: -58%;
  height: 34%;
  width: 68%;
  animation-delay: -390ms;
  animation-duration: 650ms;
}

.plume-flame-4 {
  --wisp-drift: -46%;
  --wisp-start-rot: 2deg;
  --wisp-end-rot: 7deg;
  --wisp-start-y: -53%;
  --wisp-end-y: -48%;
  height: 48%;
  width: 92%;
  animation-delay: -560ms;
  animation-duration: 980ms;
  filter: blur(1.8px);
}

.plume-flame-5 {
  --wisp-drift: -38%;
  --wisp-start-rot: -8deg;
  --wisp-end-rot: 3deg;
  --wisp-start-y: -50%;
  --wisp-end-y: -57%;
  height: 72%;
  width: 104%;
  animation-delay: -120ms;
  animation-duration: 1.15s;
  filter: blur(1.6px);
}

.plume-flame-6 {
  --wisp-drift: -78%;
  --wisp-start-rot: 6deg;
  --wisp-end-rot: -8deg;
  --wisp-start-y: -58%;
  --wisp-end-y: -42%;
  height: 30%;
  width: 56%;
  animation-delay: -470ms;
  animation-duration: 540ms;
  filter: blur(0.5px);
}

.plume-flame-7 {
  --wisp-drift: -58%;
  --wisp-start-rot: -3deg;
  --wisp-end-rot: -9deg;
  --wisp-start-y: -43%;
  --wisp-end-y: -51%;
  height: 62%;
  width: 78%;
  animation-delay: -710ms;
  animation-duration: 820ms;
  filter: blur(1.5px);
}

.plume-flame-8 {
  --wisp-drift: -34%;
  --wisp-start-rot: 9deg;
  --wisp-end-rot: -4deg;
  --wisp-start-y: -56%;
  --wisp-end-y: -45%;
  height: 44%;
  width: 112%;
  animation-delay: -860ms;
  animation-duration: 1.28s;
  filter: blur(2.8px);
}

.plume-smoke {
  display: block;
  width: 46%;
  height: 76%;
  right: auto;
  left: 0;
  background:
    radial-gradient(ellipse at 35% 42%, rgba(150, 150, 150, 0.26) 0 24%, transparent 62%),
    radial-gradient(ellipse at 65% 58%, rgba(75, 75, 75, 0.22) 0 26%, transparent 68%);
  filter: blur(5px);
  opacity: 0.65;
  animation: smoke-roll 1.4s ease-in-out infinite alternate;
}

.plume-smoke-2 {
  width: 58%;
  height: 92%;
  left: -10%;
  opacity: 0.42;
  animation-delay: -650ms;
  animation-duration: 1.9s;
  filter: blur(7px);
}

.rocket-plume,
.rocket-plume::before,
.rocket-plume::after,
.plume-flame,
.plume-smoke {
  animation-play-state: paused;
}

.site-header.visible .rocket-plume,
.site-header.visible .rocket-plume::before,
.site-header.visible .rocket-plume::after,
.site-header.visible .plume-flame,
.site-header.visible .plume-smoke {
  animation-play-state: running;
}

.site-header .nav-logo::after {
  left: 50%;
  z-index: 1;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 58%, rgba(255, 236, 150, 0.72) 0 12%, transparent 33%),
    radial-gradient(circle at 34% 48%, rgba(255, 130, 0, 0.6) 0 22%, transparent 58%),
    radial-gradient(circle at 58% 42%, rgba(255, 70, 0, 0.38) 0 20%, transparent 55%);
  filter: blur(4px);
  mix-blend-mode: screen;
  opacity: var(--nav-logo-fire-opacity, 0.68);
  transform: translate(-50%, -50%) scale(var(--nav-logo-glow-scale, 1));
  animation: fire-glow 420ms ease-in-out infinite alternate;
}

.site-header.visible .nav-logo::before,
.site-header.visible .nav-logo::after {
  animation-play-state: running;
}

@keyframes nozzle-flare {
  0% {
    transform: translateY(-50%) scale(0.86);
    opacity: var(--nav-logo-trail-opacity, 0);
  }
  100% {
    transform: translateY(-50%) scale(1.14);
    opacity: var(--nav-logo-trail-opacity, 0);
  }
}

@keyframes plume-core-flow {
  0% {
    transform: translate(0, -50%) scaleX(0.92);
    opacity: 0.9;
  }
  100% {
    transform: translate(-14%, -50%) scaleX(1.12);
    opacity: 0.58;
  }
}

@keyframes plume-envelope {
  0% {
    transform: translate(0, -50%) scaleY(0.82) skewX(-2deg);
    opacity: 0.76;
  }
  100% {
    transform: translate(-3%, -50%) scaleY(1.08) skewX(3deg);
    opacity: 0.94;
  }
}

@keyframes plume-wisp {
  0% {
    transform: translate(0, var(--wisp-start-y)) scaleX(0.28) scaleY(0.62) rotate(var(--wisp-start-rot));
    opacity: 0;
  }
  16% {
    opacity: 0.9;
  }
  62% {
    opacity: 0.68;
  }
  100% {
    transform: translate(var(--wisp-drift), var(--wisp-end-y)) scaleX(1.18) scaleY(1.28) rotate(var(--wisp-end-rot));
    opacity: 0;
  }
}

@keyframes smoke-roll {
  0% {
    transform: translate(0, -52%) scale(0.92);
    opacity: 0.34;
  }
  100% {
    transform: translate(8%, -47%) scale(1.18);
    opacity: 0.58;
  }
}

@keyframes fire-glow {
  0% {
    transform: translate(-50%, -50%) scale(var(--nav-logo-glow-scale, 1)) rotate(-2deg);
    filter: blur(4px);
  }
  100% {
    transform: translate(-50%, -50%) scale(var(--nav-logo-glow-scale, 1)) rotate(3deg);
    filter: blur(5px);
  }
}

@keyframes nav-logo-shudder {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  22% {
    transform: translate3d(-0.6px, 0.4px, 0) rotate(-0.3deg);
  }
  48% {
    transform: translate3d(0.35px, -0.5px, 0) rotate(0.25deg);
  }
  73% {
    transform: translate3d(-0.25px, 0.2px, 0) rotate(-0.15deg);
  }
}

.site-logo span {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--ut-white);
}

/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-links a {
  position: relative;
  padding: var(--space-sm) var(--space-md);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-radius: 6px;
  transition: color var(--duration) var(--ease-out),
              background-color var(--duration) var(--ease-out);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ut-white);
  background-color: var(--bg-elevated);
}

.nav-links a.active {
  color: var(--ut-orange);
}

/* Social Icons */
.social-icons {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-left: var(--space-lg);
  padding-left: var(--space-lg);
  border-left: 1px solid var(--border-subtle);
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--text-secondary);
  transition: color var(--duration) var(--ease-out),
              background-color var(--duration) var(--ease-out);
}

.social-icons a:hover,
.social-icons a:focus-visible {
  color: var(--ut-orange);
  background-color: var(--bg-elevated);
}

.social-icons svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: 6px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--duration) var(--ease-out),
              opacity var(--duration) var(--ease-out);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========================================
   HERO – Parallax layers move at different
   speeds as user scrolls. Logo rises up
   into view on load.
   ======================================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding-top: 0;
  background: radial-gradient(ellipse at 50% 80%, rgba(255, 130, 0, 0.06) 0%, transparent 60%),
              var(--bg-primary);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-xl) var(--space-xl);
  max-width: 800px;
}

/* Parallax layers share base transform behavior */
.parallax-layer {
  will-change: transform, opacity;
  transition: none;
}

.hero-logo {
  width: 140px;
  height: auto;
  margin-inline: auto;
  margin-bottom: var(--space-lg);
  filter: drop-shadow(0 0 60px rgba(255, 130, 0, 0.25));
  opacity: 0;
  transform: translateY(80px) scale(0.8);
  animation: logo-launch 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

@keyframes logo-launch {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  color: var(--ut-white);
  margin-bottom: var(--space-md);
}

/* Each line streaks in from the left like a rocket trail */
.hero-line {
  display: block;
  clip-path: inset(0 100% 0 0);
  animation: streak-in 0.5s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.hero-line-1 {
  animation-delay: 0.5s;
}

.hero-line-2 {
  animation-delay: 0.7s;
}

.hero h1 .accent {
  color: var(--ut-orange);
}

@keyframes streak-in {
  0%   { clip-path: inset(0 100% 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 540px;
  margin-inline: auto;
  margin-bottom: var(--space-lg);
  clip-path: inset(0 100% 0 0);
  animation: streak-in 0.45s cubic-bezier(0.77, 0, 0.175, 1) 0.9s forwards;
}

.hero .cta-group {
  opacity: 0;
  animation: cta-appear 0.4s ease 1.15s forwards;
}

@keyframes cta-appear {
  to {
    opacity: 1;
  }
}

/* Scroll-down indicator */
.hero-scroll {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--ut-orange);
  opacity: 0;
  animation: scroll-fade-in 0.6s ease 1.6s forwards;
}

.hero-scroll svg {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 0 10px rgba(255, 130, 0, 0.4));
  animation: scroll-bounce 1.8s var(--ease-out) infinite;
}

.hero-scroll:hover svg {
  color: var(--orange-light);
}

@keyframes scroll-fade-in {
  to { opacity: 1; }
}

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

/* Star field container */
.hero-stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Static twinkling dots */
.star {
  position: absolute;
  border-radius: 50%;
  background: var(--ut-white);
  opacity: 0;
  transition: opacity 1.5s ease;
}

.star.visible {
  opacity: var(--brightness, 0.6);
}

/* Shooting stars — a single dot that streaks with a fading tail */
.shooting-star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.4);
  transition: none;
}

/* CTA Buttons */
.cta-group {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.8rem 1.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 8px;
  transition: all var(--duration) var(--ease-out);
}

.btn-primary {
  background-color: var(--ut-orange);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background-color: var(--orange-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 130, 0, 0.25);
}

.btn-outline {
  border: 1.5px solid var(--border-accent);
  color: var(--ut-orange);
}

.btn-outline:hover {
  background-color: rgba(255, 130, 0, 0.08);
  border-color: var(--ut-orange);
  transform: translateY(-1px);
}

.btn-sponsor {
  border: 1.5px solid var(--ut-white);
  color: var(--ut-white);
  background: transparent;
}

.btn-sponsor:hover {
  background-color: var(--ut-white);
  color: var(--bg-primary);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.btn-sponsor-sm {
  padding: 0.55rem 1.2rem;
  font-size: 0.8rem;
  margin-top: var(--space-xs);
}

/* ========================================
   SCROLL-REVEAL SYSTEM (disabled)
   Scroll-triggered reveals were removed for performance. The .reveal
   markup is kept as a no-op so content renders normally.
   ======================================== */
.reveal {
  opacity: 1;
  transform: none;
}

/* ---------- Section Base ---------- */
.section {
  padding: var(--space-4xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: 0.04em;
  color: var(--ut-white);
  margin-bottom: var(--space-sm);
}

.section-header p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-inline: auto;
}

/* Secondary heading within a section (e.g. "Past Projects") */
.section-header--sub {
  margin-top: var(--space-4xl);
  margin-bottom: var(--space-2xl);
}

.section-header--sub h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.section-alt {
  background-color: var(--bg-secondary);
  background-image: linear-gradient(180deg, rgba(75, 75, 75, 0.16), transparent 55%);
}

/* Subtle #4B4B4B wash to break up the pure-black sections */
.section-tint {
  background-color: var(--bg-primary);
  background-image: linear-gradient(
    180deg,
    rgba(75, 75, 75, 0.18) 0%,
    rgba(75, 75, 75, 0.05) 45%,
    transparent 100%
  );
}

/* Thin gray edge that softly separates a section from its neighbor */
.section-divider-top {
  border-top: 1px solid rgba(75, 75, 75, 0.35);
}

.wiki-cta {
  text-align: center;
  margin-top: var(--space-3xl);
  padding: var(--space-2xl);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background-color: var(--bg-card);
}

.wiki-cta p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

/* ---------- Cards Grid ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: var(--space-2xl);
  transition: border-color var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out);
}

.card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 8px 32px rgba(255, 130, 0, 0.06);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background-color: rgba(255, 130, 0, 0.1);
  color: var(--ut-orange);
  margin-bottom: var(--space-lg);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-xl);
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* ---------- Sponsors Ticker ---------- */
.sponsors-section {
  padding: var(--space-3xl) 0;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.sponsors-heading {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: var(--space-xl);
}

.sponsors-subheading {
  text-align: center;
  max-width: 560px;
  margin: calc(-1 * var(--space-md)) auto var(--space-xl);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.sponsors-ticker {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.sponsors-track {
  display: flex;
  gap: var(--space-3xl);
  width: max-content;
  animation: sponsors-scroll 30s linear infinite;
}

/* Second row scrolls the opposite way for an interlocked feel */
.sponsors-track-reverse {
  animation-direction: reverse;
}

.sponsors-heading-stacked {
  margin-top: var(--space-2xl);
}

.sponsor-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-xl);
  height: 56px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background-color: var(--bg-card);
  transition: border-color var(--duration) var(--ease-out);
}

.sponsor-logo img {
  width: auto;
  height: 34px;
  max-width: 180px;
  object-fit: contain;
  opacity: 1;
  transition: transform var(--duration) var(--ease-out);
  user-select: none;
  -webkit-user-drag: none;
}

.sponsor-logo:hover {
  border-color: var(--border-accent);
}

.sponsor-logo:hover img {
  transform: scale(1.04);
}

@keyframes sponsors-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* "Where We Work" tiles match the dark sponsor tiles. Logos keep their
   original brand colors. */
.sponsors-track-reverse .sponsor-logo img {
  height: 30px;
  max-width: 160px;
}

/* ---------- Static Media Gallery ---------- */
.gallery-section {
  --gallery-gap: clamp(0.75rem, 1.4vw, 1.2rem);
  --gallery-padding: clamp(0.75rem, 2vw, 1.5rem);
  padding: var(--gallery-padding) 0;
}

/* Masonry collage: a fine-grained grid where each tile's column-span sets its
   size (small/medium/large) and its row-span is measured from the image's real
   aspect ratio by js/scroll.js. Images keep their true proportions (no crop, no
   letterbox) while packing into a tight, uniform-looking collage. Add or remove
   <figure class="collage-item collage-item--{small|medium|large}"> tiles and the
   layout re-flows on its own. */
.gallery-collage {
  --gallery-columns: 8;
  --gallery-gap: clamp(3px, 0.4vw, 6px);
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--gallery-columns), minmax(0, 1fr));
  grid-auto-flow: row dense;
  align-items: start;
  gap: var(--gallery-gap);
  padding: var(--gallery-gap);
  width: 100%;
  margin-inline: 0;
  background: var(--ut-orange);
  overflow: hidden;
}

.collage-item {
  position: relative;
  grid-column: span var(--span, 3);
  margin: 0;
  overflow: hidden;
  background: var(--bg-card);
}

.collage-item--small  { --span: 2; }
.collage-item--medium { --span: 3; }
.collage-item--large  { --span: 4; }

/* Once js is active it positions each tile into the shortest column (true
   masonry) so there's no unused vertical space. The grid above is the no-js
   fallback. */
.gallery-collage.is-masonry .collage-item {
  position: absolute;
  margin: 0;
}

.collage-item:hover {
  z-index: 2;
}

.collage-item img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
  transition: transform 600ms var(--ease-out);
}

.collage-item:hover img {
  transform: scale(1.05);
}

/* ---------- Hardcoded galleries (page-specific grid collages) ---------- */
.gallery-collage[data-gallery-static="true"] {
  --gallery-columns: 12;
  --gallery-gap: clamp(3px, 0.35vw, 5px);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  align-items: stretch;
}

.gallery-collage[data-gallery-static="true"] .collage-item {
  --span: initial;
  min-height: 0;
}

.gallery-collage[data-gallery-static="true"].is-masonry .collage-item {
  position: relative;
  left: auto;
  top: auto;
  width: auto;
  height: auto;
}

.gallery-collage[data-gallery-static="true"] .collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Home gallery — 11 tiles, 6 rows, side-by-side large tiles */
.gallery-collage--index {
  grid-template-rows: repeat(6, minmax(0, 1fr));
  height: clamp(200px, 24vw, 300px);
}

.gallery-collage--index .collage-item:nth-child(1)  { grid-area: 1 / 1 / 4 / 4; }   /* medium */
.gallery-collage--index .collage-item:nth-child(2)  { grid-area: 1 / 4 / 5 / 10; }  /* large */
.gallery-collage--index .collage-item:nth-child(3)  { grid-area: 1 / 10 / 4 / 13; } /* medium */
.gallery-collage--index .collage-item:nth-child(4)  { grid-area: 4 / 1 / 7 / 3; }   /* small */
.gallery-collage--index .collage-item:nth-child(5)  { grid-area: 4 / 3 / 7 / 5; }   /* small */
.gallery-collage--index .collage-item:nth-child(6)  { grid-area: 6 / 1 / 7 / 4; }   /* medium */
.gallery-collage--index .collage-item:nth-child(7)  { grid-area: 4 / 5 / 6 / 7; }   /* small */
.gallery-collage--index .collage-item:nth-child(8)  { grid-area: 4 / 7 / 7 / 13; }  /* large */
.gallery-collage--index .collage-item:nth-child(9)  { grid-area: 5 / 4 / 7 / 7; }   /* medium */
.gallery-collage--index .collage-item:nth-child(10) { grid-area: 4 / 10 / 5 / 13; }  /* medium */
.gallery-collage--index .collage-item:nth-child(11) { grid-area: 5 / 10 / 7 / 13; }  /* small */

/* Lunabotics gallery — 9 tiles, 5 rows */
.gallery-collage--lunabotics {
  grid-template-rows: repeat(5, minmax(0, 1fr));
  height: clamp(180px, 22vw, 280px);
}

.gallery-collage--lunabotics .collage-item:nth-child(1) { grid-area: 1 / 1 / 4 / 7; }   /* large */
.gallery-collage--lunabotics .collage-item:nth-child(2) { grid-area: 1 / 7 / 3 / 10; }  /* medium */
.gallery-collage--lunabotics .collage-item:nth-child(3) { grid-area: 1 / 10 / 3 / 13; } /* small */
.gallery-collage--lunabotics .collage-item:nth-child(4) { grid-area: 3 / 7 / 5 / 11; }  /* medium */
.gallery-collage--lunabotics .collage-item:nth-child(5) { grid-area: 3 / 11 / 5 / 13; } /* small */
.gallery-collage--lunabotics .collage-item:nth-child(6) { grid-area: 4 / 1 / 6 / 5; }  /* medium */
.gallery-collage--lunabotics .collage-item:nth-child(7) { grid-area: 4 / 5 / 6 / 9; }  /* medium */
.gallery-collage--lunabotics .collage-item:nth-child(8) { grid-area: 5 / 9 / 6 / 11; } /* small */
.gallery-collage--lunabotics .collage-item:nth-child(9) { grid-area: 5 / 11 / 6 / 13; } /* small */

/* Big Liquid gallery — 10 tiles, 5 rows */
.gallery-collage--big-liquid {
  grid-template-rows: repeat(5, minmax(0, 1fr));
  height: clamp(180px, 22vw, 280px);
}

.gallery-collage--big-liquid .collage-item:nth-child(1)  { grid-area: 1 / 7 / 3 / 10; }  /* medium */
.gallery-collage--big-liquid .collage-item:nth-child(2)  { grid-area: 1 / 10 / 3 / 12; } /* small */
.gallery-collage--big-liquid .collage-item:nth-child(3)  { grid-area: 3 / 7 / 5 / 10; }  /* medium */
.gallery-collage--big-liquid .collage-item:nth-child(4)  { grid-area: 1 / 1 / 4 / 7; }    /* large */
.gallery-collage--big-liquid .collage-item:nth-child(5)  { grid-area: 3 / 10 / 5 / 13; }  /* medium */
.gallery-collage--big-liquid .collage-item:nth-child(6)  { grid-area: 4 / 1 / 6 / 3; }   /* small */
.gallery-collage--big-liquid .collage-item:nth-child(7)  { grid-area: 4 / 3 / 6 / 5; }   /* small */
.gallery-collage--big-liquid .collage-item:nth-child(8)  { grid-area: 4 / 5 / 6 / 8; }   /* medium */
.gallery-collage--big-liquid .collage-item:nth-child(9)  { grid-area: 4 / 8 / 6 / 10; }  /* small */
.gallery-collage--big-liquid .collage-item:nth-child(10) { grid-area: 4 / 10 / 6 / 13; }  /* small */

.gallery-stats {
  grid-template-columns: repeat(3, 1fr);
}

.project-gallery {
  padding-top: var(--space-xl);
  scroll-margin-top: var(--nav-height);
}

.project-gallery .section-header {
  margin-bottom: var(--space-lg);
}

/* Bouncing cue that points down to the project gallery. */
.gallery-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  width: fit-content;
  margin: var(--space-xl) auto 0;
  color: var(--ut-orange);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color var(--duration) var(--ease-out);
}

.gallery-cue:hover {
  color: var(--orange-light);
}

.gallery-cue svg {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 10px rgba(255, 130, 0, 0.4));
  animation: scroll-bounce 1.8s var(--ease-out) infinite;
}

/* ---------- Our Facilities ---------- */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl);
}

.facility-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color var(--duration) var(--ease-out),
              transform var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out);
}

.facility-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(255, 130, 0, 0.08);
}

.facility-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.facility-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}

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

/* ---------- Facility Carousel (turnstile) ---------- */
.facility-carousel {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 500ms var(--ease-out);
}

.carousel-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Disable the hover-zoom on carousel images so slides stay aligned */
.facility-card:hover .carousel-track img {
  transform: none;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border-accent);
  background-color: rgba(10, 10, 10, 0.55);
  color: var(--ut-white);
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background-color var(--duration) var(--ease-out),
              color var(--duration) var(--ease-out);
}

.carousel-arrow:hover {
  background-color: var(--ut-orange);
  color: var(--ut-smokey, #0a0a0a);
}

.carousel-arrow svg {
  width: 22px;
  height: 22px;
}

.carousel-arrow--prev {
  left: var(--space-md);
}

.carousel-arrow--next {
  right: var(--space-md);
}

.carousel-dots {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: var(--space-sm);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background-color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background-color var(--duration) var(--ease-out);
}

.carousel-dot.is-active {
  background-color: var(--ut-orange);
}

.facility-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ut-orange);
  background-color: rgba(10, 10, 10, 0.7);
  border: 1px solid var(--border-accent);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.facility-body {
  padding: var(--space-xl) var(--space-2xl) var(--space-2xl);
}

.facility-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: 0.03em;
  color: var(--ut-white);
  margin-bottom: var(--space-sm);
}

.facility-body > p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.facility-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm) var(--space-lg);
}

.facility-features li {
  position: relative;
  padding-left: var(--space-lg);
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.facility-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--ut-orange);
}

/* ---------- Newsletters ---------- */
.newsletter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.newsletter-card {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg) var(--space-xl);
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  transition: border-color var(--duration) var(--ease-out),
              transform var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out);
}

.newsletter-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(255, 130, 0, 0.08);
}

.newsletter-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: rgba(255, 130, 0, 0.1);
  color: var(--ut-orange);
}

.newsletter-icon svg {
  width: 22px;
  height: 22px;
}

.newsletter-info {
  flex: 1;
  min-width: 0;
}

.newsletter-title {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.newsletter-date {
  font-weight: 400;
  color: var(--text-muted);
}

.newsletter-desc {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.newsletter-arrow {
  flex-shrink: 0;
  font-size: 1.1rem;
  color: var(--ut-orange);
  transform: translateY(-2px);
  transition: transform var(--duration) var(--ease-out);
}

.newsletter-card:hover .newsletter-arrow {
  transform: translateY(2px);
}

/* ---------- Project Banners (full-width, overlaid) ---------- */
.projects-banners {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.project-banner {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-card);
}

.project-banner-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}

.project-banner:hover .project-banner-media {
  transform: scale(1.05);
}

.project-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: var(--space-lg);
  padding: clamp(var(--space-xl), 4vw, var(--space-3xl));
  background: linear-gradient(to top, rgba(10, 10, 10, 0.82), rgba(10, 10, 10, 0.15) 55%, transparent);
}

.project-banner-overlay h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.03em;
  color: var(--ut-white);
  margin: 0;
}

/* Video banner: overlay sits at the bottom but lets clicks pass to the video */
.project-banner--video .project-banner-overlay {
  pointer-events: none;
}

.project-banner--video .project-banner-overlay .btn {
  pointer-events: auto;
}

.project-banner--video:hover .project-banner-media {
  transform: none;
}

/* ---------- More Projects Grid ---------- */
.project-tiles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.project-tile {
  position: relative;
  display: block;
  flex: 0 1 calc((100% - (2 * var(--space-xl))) / 3);
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-card);
  transition: border-color var(--duration) var(--ease-out),
              transform var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out);
}

.project-tile:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(255, 130, 0, 0.08);
}

.project-tile-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-color: var(--bg-elevated);
}

.project-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease-out);
}

.project-tile:hover .project-tile-media img {
  transform: scale(1.05);
}

.project-tile-body {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: var(--space-md);
  padding: var(--space-xl);
  background: linear-gradient(to top, rgba(10, 10, 10, 0.85), rgba(10, 10, 10, 0.12) 60%, transparent);
}

.project-tile-body h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  color: var(--ut-white);
  margin: 0;
}

.project-tiles--text .project-tile {
  aspect-ratio: auto;
  flex-basis: calc((100% - (2 * var(--space-xl))) / 3);
  min-height: 116px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(20, 20, 20, 0.62);
}

.project-tiles--text .project-tile-body {
  position: relative;
  inset: auto;
  height: 100%;
  min-height: 116px;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: none;
}

.project-tiles--text .project-tile-body h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}

.project-tiles--text .btn {
  padding: 0.55rem 0.95rem;
  font-size: 0.82rem;
}

/* ---------- Conference Feature ---------- */
.conference-section {
  --conference-accent: #8b1ed1;
  --conference-accent-soft: rgba(139, 30, 209, 0.16);
  --conference-text: #d9c2ea;
  border-top: 1px solid rgba(75, 75, 75, 0.45);
  background:
    linear-gradient(180deg, rgba(75, 75, 75, 0.12), transparent 120px),
    var(--bg-primary);
}

.conference-feature {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: var(--space-3xl);
}

.conference-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  border-radius: 16px;
  background-color: #d9d9d9;
}

.conference-logo img {
  width: min(100%, 420px);
  height: auto;
}

.conference-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-lg);
}

.conference-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--conference-accent);
}

.conference-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--conference-accent);
}

.conference-content p {
  max-width: 620px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--conference-text);
}

.conference-content .btn-outline {
  border-color: rgba(139, 30, 209, 0.5);
  color: var(--conference-accent);
}

.conference-content .btn-outline:hover {
  background-color: var(--conference-accent-soft);
  border-color: var(--conference-accent);
}

/* ---------- Conference Page ---------- */
.page-conference {
  --conference-accent: #8b1ed1;
  --conference-accent-soft: rgba(139, 30, 209, 0.16);
  --conference-lime: #e7ff9b;
  --conference-copy: #d7d0df;
}

.conference-page {
  background-color: var(--bg-primary);
}

.conference-page-hero {
  padding: var(--space-3xl) 0 var(--space-4xl);
  background:
    radial-gradient(circle at 78% 24%, rgba(139, 30, 209, 0.16), transparent 36%),
    var(--bg-primary);
}

.conference-page-hero-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: var(--space-3xl);
}

.conference-page-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  border-radius: 16px;
  background-color: #d9d9d9;
}

.conference-page-logo img {
  width: min(100%, 420px);
  height: auto;
}

.conference-page-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  color: var(--conference-accent);
  margin: var(--space-sm) 0 var(--space-lg);
}

.conference-page-copy p {
  max-width: 680px;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.75;
  color: var(--conference-copy);
  margin-bottom: var(--space-xl);
}

.conference-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.conference-page .btn-primary {
  background-color: var(--conference-accent);
  color: var(--ut-white);
}

.conference-page .btn-primary:hover {
  background-color: #a246df;
  box-shadow: 0 8px 24px rgba(139, 30, 209, 0.28);
}

.conference-page .btn-outline {
  border-color: rgba(139, 30, 209, 0.5);
  color: var(--conference-accent);
}

.conference-page .btn-outline:hover {
  background-color: var(--conference-accent-soft);
  border-color: var(--conference-accent);
}

.conference-page .back-link:hover {
  color: var(--conference-accent);
}

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

.conference-page-section {
  padding: var(--space-4xl) 0;
}

.conference-page-section--tint {
  background:
    linear-gradient(180deg, rgba(139, 30, 209, 0.05), transparent 42%),
    var(--bg-secondary);
}

.conference-page .section-header h2,
.conference-detail h2,
.conference-panel-feature h2,
.conference-subsection h2 {
  color: var(--conference-accent);
}

.conference-detail h2,
.conference-panel-feature h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  line-height: 1;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-md);
}

.conference-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-3xl);
}

.conference-stat {
  position: relative;
  padding-top: var(--space-md);
}

.conference-stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background-color: var(--conference-lime);
  box-shadow: 0 0 18px rgba(231, 255, 155, 0.35);
}

.conference-stat span {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  color: var(--conference-lime);
  margin-bottom: var(--space-xs);
}

.conference-stat p {
  font-size: 0.88rem;
  color: var(--conference-copy);
}

.conference-split,
.conference-next,
.conference-panel-feature,
.conference-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3xl);
  align-items: center;
}

.conference-split h3,
.conference-next h3,
.conference-highlight-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: 0.04em;
  color: var(--conference-lime);
  margin-bottom: var(--space-md);
}

.conference-split p,
.conference-next p,
.conference-highlight-card p,
.conference-panel-feature p,
.conference-detail p {
  color: var(--conference-copy);
  line-height: 1.75;
}

.conference-panel-feature p + .conference-list,
.conference-detail p + .conference-list {
  margin-top: var(--space-lg);
}

.conference-list,
.conference-ranking {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.conference-list li,
.conference-ranking li {
  position: relative;
  padding-left: var(--space-lg);
  color: var(--conference-copy);
  line-height: 1.7;
}

.conference-list li::before,
.conference-ranking li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--conference-lime);
}

.conference-ranking {
  list-style: none;
  margin-top: var(--space-xl);
}

.conference-ranking strong {
  color: var(--conference-lime);
  margin-right: var(--space-xs);
}

.conference-panel-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.conference-panel-list li {
  position: relative;
  padding-left: var(--space-lg);
}

.conference-panel-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background-color: var(--conference-accent);
  box-shadow: 0 0 18px rgba(139, 30, 209, 0.5);
}

.conference-panel-list strong,
.conference-panel-list span {
  display: block;
}

.conference-panel-list strong {
  color: var(--conference-lime);
  margin-bottom: 2px;
}

.conference-panel-list span {
  color: var(--conference-copy);
  line-height: 1.6;
}

.conference-subsection {
  margin-top: var(--space-4xl);
  padding-top: var(--space-md);
}

.conference-subsection h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-xl);
}

.conference-panel-list--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-xl) var(--space-3xl);
}

.conference-panel-list--grid li {
  padding-bottom: 0;
}

.conference-image {
  position: relative;
  min-height: 300px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 22% 22%, rgba(231, 255, 155, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(139, 30, 209, 0.16), rgba(231, 255, 155, 0.04)),
    #101010;
}

.conference-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.conference-image--wide {
  min-height: 180px;
  aspect-ratio: 16 / 9;
  margin-bottom: var(--space-lg);
}

.conference-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3xl);
}

.conference-highlight-card,
.conference-detail {
  position: relative;
}

.conference-highlight-card h3,
.conference-detail h2,
.conference-panel-feature h2,
.conference-subsection h2 {
  text-wrap: balance;
}

.conference-detail {
  align-self: start;
}

/* ---------- Custom unmute button ---------- */
.video-unmute {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-accent);
  background: rgba(10, 10, 10, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--ut-white);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background var(--duration) var(--ease-out),
              border-color var(--duration) var(--ease-out),
              transform var(--duration) var(--ease-out);
}

.video-unmute:hover {
  background: var(--ut-orange);
  border-color: var(--ut-orange);
  color: #0a0a0a;
  transform: translateY(-1px);
}

.video-unmute-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

.video-unmute .video-unmute-on {
  display: none;
}

.video-unmute.is-unmuted .video-unmute-on {
  display: block;
}

.video-unmute.is-unmuted .video-unmute-off {
  display: none;
}

@media (max-width: 768px) {
  .video-unmute {
    top: var(--space-md);
    right: var(--space-md);
  }
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--ut-orange);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Members Banner ---------- */
.members-banner {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.members-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--bg-secondary);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 280px;
  margin-top: var(--space-md);
  line-height: 1.65;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: var(--space-xs) 0;
  transition: color var(--duration) var(--ease-out);
}

.footer-col a:hover {
  color: var(--ut-orange);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom .social-icons {
  border-left: none;
  padding-left: 0;
  margin-left: 0;
}

/* ---------- Project Card Links ---------- */
.card-link {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
}

.card-link .card-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.card-link .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease-out);
}

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

.card-link .card-body {
  padding: var(--space-xl) var(--space-2xl) var(--space-2xl);
}

.card-link h3 {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.card-arrow {
  display: inline-block;
  font-weight: 400;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--duration) var(--ease-out),
              transform var(--duration) var(--ease-out);
}

.card-link:hover .card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Team Grid ---------- */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xl);
}

.team-grid .team-member {
  flex: 0 1 180px;
}

.team-section + .team-section {
  margin-top: var(--space-3xl);
}

.team-subheading {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  letter-spacing: 0.04em;
  color: var(--ut-orange);
  text-align: center;
  margin-bottom: var(--space-sm);
}

.team-subheading-desc {
  text-align: center;
  max-width: 620px;
  margin: 0 auto var(--space-xl);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.team-member {
  text-align: center;
}

.member-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: var(--space-md);
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms var(--ease-out);
}

.member-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: var(--space-md) var(--space-lg);
  background: linear-gradient(to top, rgba(10, 10, 10, 0.96) 0%, rgba(10, 10, 10, 0.78) 60%, transparent 100%);
  text-align: left;
  opacity: 0;
  transform: translateY(100%);
  transition: transform 350ms var(--ease-out), opacity 350ms var(--ease-out);
  pointer-events: none;
}

/* Slides up when hovering anywhere on the card or the photo itself. */
.team-member:hover .member-overlay,
.member-photo:hover .member-overlay,
.project-lead:hover .member-overlay,
.project-lead-photo:hover .member-overlay {
  opacity: 1;
  transform: translateY(0);
}

.team-member:hover .member-photo img,
.member-photo:hover img,
.project-lead:hover .project-lead-photo img {
  transform: scale(1.05);
}

.member-grade {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ut-white);
  line-height: 1.2;
}

.member-major {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.member-bio {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.member-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.member-role {
  font-size: 0.8rem;
  color: var(--ut-orange);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Project Pages ---------- */
.page-project {
  padding-top: var(--nav-height);
}

.project-page {
  padding: var(--space-3xl) 0 var(--space-2xl);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-2xl);
  transition: color var(--duration) var(--ease-out);
}

.back-link:hover {
  color: var(--ut-orange);
}

.project-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.project-hero-text {
  flex: 1;
  min-width: 0;
}

.project-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.04em;
  color: var(--ut-white);
  margin-bottom: var(--space-sm);
}

.project-tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 600px;
}

.project-lead {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  flex-shrink: 0;
  max-width: 360px;
}

.project-lead-photo {
  position: relative;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--bg-elevated);
  border: 2px solid var(--border-accent);
}

.project-lead-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--ease-out);
}

/* Compact overlay text so grade + major fit inside the small round lead photo. */
.project-lead-photo .member-overlay {
  align-items: center;
  text-align: center;
  padding: 6px 4px;
}

.project-lead-photo .member-grade {
  font-size: 0.55rem;
  line-height: 1.1;
}

.project-lead-photo .member-major {
  font-size: 0.5rem;
  line-height: 1.1;
}

.project-lead-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.project-lead-role {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ut-orange);
}

.project-lead-bio {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-top: var(--space-sm);
}

.project-hero-image {
  width: 100%;
  margin-bottom: var(--space-3xl);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.project-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.project-hero-image--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
  border: 0;
  background: none;
}

.project-hero-image--grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}

.project-hero-image--grid img:nth-child(-n + 2) {
  aspect-ratio: 4 / 5;
}

.project-hero-image--grid img:nth-child(3) {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.project-body {
  max-width: none;
}

.project-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3xl);
  align-items: start;
}

.project-section {
  max-width: 780px;
  margin-bottom: var(--space-3xl);
}

.project-section--wide {
  max-width: none;
}

.project-info-grid .project-section {
  max-width: none;
}

/* The leadership grid breaks out of the narrow text column and centers */
.project-leadership {
  max-width: none;
  text-align: center;
}

.project-leadership .team-grid {
  max-width: 820px;
  margin-inline: auto;
}

.project-section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--ut-orange);
  margin-bottom: var(--space-lg);
}

.project-section p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.project-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.project-list li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-left: var(--space-lg);
  position: relative;
}

.project-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--ut-orange);
}

.project-list li strong {
  color: var(--text-primary);
}

/* ---------- Project Timeline ---------- */
.project-timeline-section {
  max-width: none;
}

.project-timeline-section > h2,
.project-timeline-section > p {
  max-width: 780px;
}

.project-timeline {
  position: relative;
  max-width: 980px;
  margin: var(--space-3xl) auto 0;
}

.project-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--ut-orange), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: var(--space-2xl);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 1.6rem;
  left: 50%;
  width: 16px;
  height: 16px;
  border: 3px solid var(--ut-orange);
  border-radius: 50%;
  background-color: var(--bg-primary);
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-item--left .timeline-card {
  grid-column: 1;
  margin-right: var(--space-3xl);
}

.timeline-item--right .timeline-card {
  grid-column: 2;
  margin-left: var(--space-3xl);
}

.timeline-item--left .timeline-media {
  grid-column: 2;
  margin-left: var(--space-3xl);
}

.timeline-item--right .timeline-media {
  grid-column: 1;
  grid-row: 1;
  margin-right: var(--space-3xl);
}

.timeline-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
}

.timeline-year {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--ut-orange);
  margin-bottom: var(--space-md);
}

.timeline-card h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.timeline-card p {
  margin: 0;
}

.timeline-card .btn {
  margin-top: var(--space-md);
}

.past-projects-timeline {
  max-width: 820px;
  margin-top: var(--space-xl);
}

.past-projects-timeline .timeline-item {
  margin-bottom: var(--space-sm);
}

.past-projects-timeline .timeline-item::before {
  content: attr(data-year);
  top: 0.15rem;
  width: 54px;
  height: 26px;
  display: grid;
  place-items: center;
  border-width: 1px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--ut-orange);
  background-color: var(--bg-primary);
}

.past-projects-timeline .timeline-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  width: fit-content;
  padding: 0.15rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.past-projects-timeline .timeline-item--left .timeline-card {
  justify-self: end;
  margin-right: var(--space-3xl);
}

.past-projects-timeline .timeline-item--right .timeline-card {
  justify-self: start;
  margin-left: var(--space-3xl);
}

.past-projects-timeline .timeline-year {
  display: none;
}

.past-projects-timeline .timeline-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1;
  letter-spacing: 0.04em;
}

.past-projects-timeline .timeline-card h3 a {
  position: relative;
  color: var(--text-primary);
  transition: color var(--duration) var(--ease-out);
}

.past-projects-timeline .timeline-card h3 a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.18rem;
  height: 1px;
  background-color: var(--ut-orange);
  opacity: 0;
  transform: scaleX(0.7);
  transition: opacity var(--duration) var(--ease-out),
              transform var(--duration) var(--ease-out);
}

.past-projects-timeline .timeline-card h3 a:hover,
.past-projects-timeline .timeline-card h3 a:focus-visible {
  color: var(--ut-orange);
}

.past-projects-timeline .timeline-card h3 a:hover::after,
.past-projects-timeline .timeline-card h3 a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.timeline-launch {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  padding: var(--space-md);
  border: 1px solid rgba(255, 130, 0, 0.35);
  border-radius: 10px;
  background: rgba(255, 130, 0, 0.08);
}

.timeline-launch svg {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  color: var(--ut-orange);
}

.timeline-launch span,
.timeline-launch strong {
  display: block;
}

.timeline-launch span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.timeline-launch strong {
  margin-top: 2px;
  color: var(--text-primary);
}

.timeline-media {
  align-self: center;
}

.timeline-video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.timeline-video {
  min-height: 260px;
}

.timeline-video .video-embed-placeholder {
  padding: var(--space-md);
}

.timeline-video .video-embed-placeholder svg {
  width: 36px;
  height: 36px;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-lg);
}

.spec {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: var(--space-lg);
  text-align: center;
}

.spec-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ut-orange);
  margin-bottom: var(--space-xs);
}

.spec-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Flight Results ---------- */
.flight-result + .flight-result {
  margin-top: var(--space-2xl);
}

.flight-result--with-video {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  align-items: stretch;
  gap: var(--space-xl);
}

.flight-result-media {
  min-width: 0;
}

.flight-result-media .video-embed {
  height: 100%;
  min-height: 320px;
}

.flight-result-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.flight-result-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.flight-result-header h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
}

.flight-status {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25em 0.7em;
  border-radius: 999px;
  border: 1px solid currentColor;
}

.flight-status--success {
  color: #4ade80;
}

.flight-status--partial {
  color: var(--ut-orange);
}

/* ---------- Launch Video ---------- */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-card);
}

.video-embed iframe,
.video-embed video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-embed-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

.video-embed-placeholder svg {
  width: 48px;
  height: 48px;
  color: var(--ut-orange);
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-logo,
  .hero h1,
  .hero-line,
  .hero-subtitle,
  .hero .cta-group {
    opacity: 1;
    transform: none;
    clip-path: none;
  }

  .site-header {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-header .nav-logo {
    transform: none;
  }

  .site-header .nav-logo::before,
  .site-header .nav-logo::after,
  .rocket-plume {
    display: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    bottom: auto;
    height: auto;
    max-height: calc(100dvh - var(--nav-height));
    background-color: var(--bg-primary);
    flex-direction: column;
    padding: var(--space-xl);
    justify-content: flex-start;
    align-items: stretch;
    transform: translateX(100%);
    transition: transform 300ms var(--ease-out);
    display: flex;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1100;
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-xs);
    margin-left: 0;
  }

  .nav-links a {
    font-size: 1rem;
    padding: var(--space-md);
  }

  .social-icons {
    border-left: none;
    border-top: 1px solid var(--border-subtle);
    padding-left: 0;
    padding-top: var(--space-lg);
    margin-left: 0;
    margin-top: var(--space-lg);
    justify-content: center;
  }

  .site-header .nav-logo::before {
    width: 18px;
    height: 20px;
  }

  .site-header .nav-logo::after {
    width: 58px;
    height: 58px;
  }

  .hero-logo {
    width: 120px;
  }

  .project-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-hero-image--grid,
  .project-info-grid {
    grid-template-columns: 1fr;
  }

  .project-hero-image--grid img {
    height: auto;
  }

  .project-timeline {
    margin-top: var(--space-2xl);
    padding-left: var(--space-xl);
  }

  .project-timeline::before {
    left: 0;
  }

  .timeline-item {
    display: block;
    margin-bottom: var(--space-xl);
  }

  .timeline-item::before {
    left: 0;
  }

  .timeline-item--left .timeline-card,
  .timeline-item--right .timeline-card,
  .timeline-item--left .timeline-media,
  .timeline-item--right .timeline-media {
    margin-left: var(--space-lg);
    margin-right: 0;
  }

  .timeline-card {
    padding: var(--space-lg);
  }

  .timeline-media {
    margin-top: var(--space-lg);
  }

  .timeline-video-grid {
    grid-template-columns: 1fr;
  }

  .flight-result--with-video {
    grid-template-columns: 1fr;
  }

  .flight-result-media .video-embed {
    min-height: 0;
  }

  .project-lead {
    max-width: 100%;
  }

  .project-banner {
    aspect-ratio: 4 / 3;
  }

  .conference-page-hero-grid,
  .conference-split,
  .conference-next,
  .conference-panel-feature,
  .conference-panel-list--grid,
  .conference-detail-grid {
    grid-template-columns: 1fr;
  }

  .conference-page-logo {
    justify-content: flex-start;
  }

  .conference-page-logo img {
    width: min(100%, 320px);
  }

  .conference-stats,
  .conference-highlight-grid {
    grid-template-columns: 1fr;
  }

  .conference-feature {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .conference-logo {
    justify-content: flex-start;
  }

  .conference-logo img {
    width: min(100%, 320px);
  }

  .projects-banners {
    gap: var(--space-xl);
  }

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

  .gallery-stats {
    gap: var(--space-md);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

@media (max-width: 900px) {
  .gallery-collage {
    --gallery-columns: 6;
  }

  .collage-item--small  { --span: 2; }
  .collage-item--medium { --span: 3; }
  .collage-item--large  { --span: 4; }

  .gallery-collage[data-gallery-static="true"] {
    --gallery-columns: 6;
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  /* Index — tablet: 4 rows */
  .gallery-collage--index {
    grid-template-rows: repeat(4, minmax(0, 1fr));
    height: clamp(160px, 32vw, 240px);
  }

  .gallery-collage--index .collage-item:nth-child(1)  { grid-area: 1 / 1 / 3 / 3; }
  .gallery-collage--index .collage-item:nth-child(2)  { grid-area: 1 / 3 / 4 / 6; }
  .gallery-collage--index .collage-item:nth-child(3)  { grid-area: 1 / 6 / 3 / 7; }
  .gallery-collage--index .collage-item:nth-child(4)  { grid-area: 3 / 1 / 5 / 2; }
  .gallery-collage--index .collage-item:nth-child(5)  { grid-area: 3 / 2 / 5 / 3; }
  .gallery-collage--index .collage-item:nth-child(6)  { grid-area: 4 / 1 / 5 / 3; }
  .gallery-collage--index .collage-item:nth-child(7)  { grid-area: 3 / 3 / 4 / 4; }
  .gallery-collage--index .collage-item:nth-child(8)  { grid-area: 3 / 4 / 5 / 7; }
  .gallery-collage--index .collage-item:nth-child(9)  { grid-area: 4 / 3 / 5 / 5; }
  .gallery-collage--index .collage-item:nth-child(10) { grid-area: 2 / 6 / 3 / 7; }
  .gallery-collage--index .collage-item:nth-child(11) { grid-area: 3 / 6 / 5 / 7; }

  /* Lunabotics — tablet: 4 rows */
  .gallery-collage--lunabotics {
    grid-template-rows: repeat(4, minmax(0, 1fr));
    height: clamp(150px, 30vw, 220px);
  }

  .gallery-collage--lunabotics .collage-item:nth-child(1) { grid-area: 1 / 1 / 4 / 4; }
  .gallery-collage--lunabotics .collage-item:nth-child(2) { grid-area: 1 / 4 / 3 / 6; }
  .gallery-collage--lunabotics .collage-item:nth-child(3) { grid-area: 1 / 6 / 3 / 7; }
  .gallery-collage--lunabotics .collage-item:nth-child(4) { grid-area: 3 / 4 / 5 / 7; }
  .gallery-collage--lunabotics .collage-item:nth-child(5) { grid-area: 3 / 6 / 5 / 7; }
  .gallery-collage--lunabotics .collage-item:nth-child(6) { grid-area: 4 / 1 / 5 / 3; }
  .gallery-collage--lunabotics .collage-item:nth-child(7) { grid-area: 4 / 3 / 5 / 5; }
  .gallery-collage--lunabotics .collage-item:nth-child(8) { grid-area: 4 / 5 / 5 / 6; }
  .gallery-collage--lunabotics .collage-item:nth-child(9) { grid-area: 4 / 6 / 5 / 7; }

  /* Big Liquid — tablet: 4 rows */
  .gallery-collage--big-liquid {
    grid-template-rows: repeat(4, minmax(0, 1fr));
    height: clamp(150px, 30vw, 220px);
  }

  .gallery-collage--big-liquid .collage-item:nth-child(1)  { grid-area: 1 / 4 / 3 / 6; }
  .gallery-collage--big-liquid .collage-item:nth-child(2)  { grid-area: 1 / 6 / 3 / 7; }
  .gallery-collage--big-liquid .collage-item:nth-child(3)  { grid-area: 3 / 4 / 5 / 6; }
  .gallery-collage--big-liquid .collage-item:nth-child(4)  { grid-area: 1 / 1 / 4 / 4; }
  .gallery-collage--big-liquid .collage-item:nth-child(5)  { grid-area: 3 / 6 / 5 / 7; }
  .gallery-collage--big-liquid .collage-item:nth-child(6)  { grid-area: 4 / 1 / 5 / 2; }
  .gallery-collage--big-liquid .collage-item:nth-child(7)  { grid-area: 4 / 2 / 5 / 3; }
  .gallery-collage--big-liquid .collage-item:nth-child(8)  { grid-area: 4 / 3 / 5 / 5; }
  .gallery-collage--big-liquid .collage-item:nth-child(9)  { grid-area: 4 / 5 / 5 / 6; }
  .gallery-collage--big-liquid .collage-item:nth-child(10) { grid-area: 4 / 6 / 5 / 7; }

  .location-card {
    width: 240px;
  }

  .project-tiles {
    gap: var(--space-lg);
  }

  .project-tile {
    flex-basis: calc((100% - var(--space-lg)) / 2);
  }

  .project-tiles--text .project-tile {
    flex-basis: calc((100% - var(--space-lg)) / 2);
  }

  .conference-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .conference-highlight-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .gallery-collage {
    --gallery-columns: 2;
  }

  .collage-item--small  { --span: 1; }
  .collage-item--medium { --span: 2; }
  .collage-item--large  { --span: 2; }

  .gallery-collage[data-gallery-static="true"] {
    --gallery-columns: 4;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* Index — mobile: 5 rows */
  .gallery-collage--index {
    grid-template-rows: repeat(5, minmax(0, 1fr));
    height: clamp(200px, 52vw, 280px);
  }

  .gallery-collage--index .collage-item:nth-child(1)  { grid-area: 1 / 1 / 3 / 3; }
  .gallery-collage--index .collage-item:nth-child(2)  { grid-area: 1 / 3 / 4 / 5; }
  .gallery-collage--index .collage-item:nth-child(3)  { grid-area: 3 / 1 / 5 / 3; }
  .gallery-collage--index .collage-item:nth-child(4)  { grid-area: 5 / 1 / 6 / 2; }
  .gallery-collage--index .collage-item:nth-child(5)  { grid-area: 5 / 2 / 6 / 3; }
  .gallery-collage--index .collage-item:nth-child(6)  { grid-area: 4 / 1 / 5 / 3; }
  .gallery-collage--index .collage-item:nth-child(7)  { grid-area: 4 / 3 / 5 / 4; }
  .gallery-collage--index .collage-item:nth-child(8)  { grid-area: 4 / 3 / 6 / 5; }
  .gallery-collage--index .collage-item:nth-child(9)  { grid-area: 5 / 3 / 6 / 4; }
  .gallery-collage--index .collage-item:nth-child(10) { grid-area: 2 / 1 / 3 / 2; }
  .gallery-collage--index .collage-item:nth-child(11) { grid-area: 2 / 2 / 3 / 3; }

  /* Lunabotics — mobile: 5 rows */
  .gallery-collage--lunabotics {
    grid-template-rows: repeat(5, minmax(0, 1fr));
    height: clamp(190px, 50vw, 260px);
  }

  .gallery-collage--lunabotics .collage-item:nth-child(1) { grid-area: 1 / 1 / 4 / 5; }
  .gallery-collage--lunabotics .collage-item:nth-child(2) { grid-area: 4 / 1 / 5 / 3; }
  .gallery-collage--lunabotics .collage-item:nth-child(3) { grid-area: 4 / 3 / 5 / 4; }
  .gallery-collage--lunabotics .collage-item:nth-child(4) { grid-area: 4 / 4 / 5 / 5; }
  .gallery-collage--lunabotics .collage-item:nth-child(5) { grid-area: 5 / 1 / 6 / 2; }
  .gallery-collage--lunabotics .collage-item:nth-child(6) { grid-area: 5 / 2 / 6 / 3; }
  .gallery-collage--lunabotics .collage-item:nth-child(7) { grid-area: 5 / 3 / 6 / 4; }
  .gallery-collage--lunabotics .collage-item:nth-child(8) { grid-area: 5 / 4 / 6 / 5; }
  .gallery-collage--lunabotics .collage-item:nth-child(9) { grid-area: 3 / 1 / 4 / 2; }

  /* Big Liquid — mobile: 5 rows */
  .gallery-collage--big-liquid {
    grid-template-rows: repeat(5, minmax(0, 1fr));
    height: clamp(190px, 50vw, 260px);
  }

  .gallery-collage--big-liquid .collage-item:nth-child(1)  { grid-area: 4 / 1 / 5 / 3; }
  .gallery-collage--big-liquid .collage-item:nth-child(2)  { grid-area: 4 / 3 / 5 / 4; }
  .gallery-collage--big-liquid .collage-item:nth-child(3)  { grid-area: 5 / 1 / 6 / 3; }
  .gallery-collage--big-liquid .collage-item:nth-child(4)  { grid-area: 1 / 1 / 4 / 5; }
  .gallery-collage--big-liquid .collage-item:nth-child(5)  { grid-area: 5 / 3 / 6 / 4; }
  .gallery-collage--big-liquid .collage-item:nth-child(6)  { grid-area: 3 / 1 / 4 / 2; }
  .gallery-collage--big-liquid .collage-item:nth-child(7)  { grid-area: 3 / 2 / 4 / 3; }
  .gallery-collage--big-liquid .collage-item:nth-child(8)  { grid-area: 3 / 3 / 4 / 4; }
  .gallery-collage--big-liquid .collage-item:nth-child(9)  { grid-area: 3 / 4 / 4 / 5; }
  .gallery-collage--big-liquid .collage-item:nth-child(10) { grid-area: 5 / 4 / 6 / 5; }

  .project-tiles {
    gap: var(--space-md);
  }

  .project-tile,
  .project-tiles--text .project-tile {
    flex-basis: 100%;
    max-width: 360px;
  }

  .conference-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .past-projects-timeline {
    padding-left: 0;
  }

  .past-projects-timeline::before {
    left: 27px;
    transform: none;
  }

  .past-projects-timeline .timeline-item::before {
    left: 0;
    transform: none;
  }

  .past-projects-timeline .timeline-item--left .timeline-card,
  .past-projects-timeline .timeline-item--right .timeline-card {
    margin-left: 76px;
    margin-right: 0;
  }
}

@media (max-width: 560px) {
  .past-projects-timeline {
    max-width: 100%;
    margin-top: var(--space-lg);
  }

  .past-projects-timeline::before {
    left: 23px;
  }

  .past-projects-timeline .timeline-item {
    margin-bottom: 0.4rem;
  }

  .past-projects-timeline .timeline-item::before {
    top: 0.05rem;
    width: 46px;
    height: 22px;
    font-size: 0.8rem;
  }

  .past-projects-timeline .timeline-card {
    min-height: 24px;
  }

  .past-projects-timeline .timeline-item--left .timeline-card,
  .past-projects-timeline .timeline-item--right .timeline-card {
    margin-left: 62px;
  }

  .past-projects-timeline .timeline-card h3 {
    font-size: clamp(1.05rem, 6vw, 1.35rem);
  }
}
