:root {
  --bg: #050713;
  --panel: #0d1428;
  --line: rgba(190, 210, 255, .15);
  --muted: #a7b3ce;
  --cyan: #6cecff;
  --violet: #a78bfa;
  --pink: #f0abfc;
  --gold: #ffd58a
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: var(--bg);
  color: #f5f7ff;
  font-family: "DM Sans", sans-serif;
  overflow-x: hidden
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(ellipse at 80% 10%, #32215a33, transparent 40%), radial-gradient(ellipse at 10% 60%, #0a4d7030, transparent 38%)
}

h1,
h2,
h3,
.brand,
.tech {
  font-family: Orbitron, sans-serif
}

.navbar {
  background: rgba(5, 7, 19, .72);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  z-index: 1000
}

.brand {
  font-weight: 800;
  letter-spacing: 4px;
  color: #fff !important
}

.brand span {
  color: var(--cyan)
}

.nav-link {
  color: #d4d9e9 !important;
  font-size: .72rem;
  letter-spacing: 1.2px
}

.nav-link:hover {
  color: var(--cyan) !important
}

.btn-cosmic {
  border: 0;
  border-radius: 40px;
  padding: 13px 23px;
  font-weight: 800;
  letter-spacing: .4px;
  color: #07101b;
  background: linear-gradient(100deg, var(--cyan), var(--violet));
  box-shadow: 0 0 25px #8c8cf733;
  transition: .3s
}

.btn-cosmic:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 35px #a78bfa66;
  color: #07101b
}

.btn-outline-cosmic {
  border: 1px solid #9aaed0;
  color: #eff6ff;
  border-radius: 40px;
  padding: 12px 21px
}

.btn-outline-cosmic:hover {
  background: #ffffff12;
  color: white;
  border-color: var(--cyan)
}

.hero {
  min-height: 850px;
  height: 100vh;
  max-height: 1100px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 72% 43%, #29245a55, transparent 40%), linear-gradient(90deg, #050713 0%, rgba(5, 7, 19, .88) 40%, rgba(5, 7, 19, .18) 100%)
}

#hero3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  cursor: grab
}

#hero3d:active {
  cursor: grabbing
}

.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #050713 0%, #050713aa 36%, transparent 78%), linear-gradient(0deg, var(--bg), transparent 22%);
  pointer-events: none;
  z-index: 1
}

.hero-inner {
  position: relative;
  z-index: 2;
  pointer-events: none
}

.hero-inner a,
.hero-inner button {
  pointer-events: auto
}

.eyebrow,
.section-label {
  color: var(--cyan);
  font-size: .68rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 800
}

.hero h1 {
  font-size: clamp(3.1rem, 7vw, 6.5rem);
  line-height: 1.06;
  letter-spacing: -3px;
  margin: 25px 0
}

.gradient {
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink));
  -webkit-background-clip: text;
  color: transparent
}

.hero p {
  color: #c2cbe0;
  max-width: 590px;
  line-height: 1.9;
  font-size: 1.05rem
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #8ca3c955;
  background: #0c1830aa;
  padding: 8px 14px;
  border-radius: 40px;
  color: #d9e7ff;
  font-size: .75rem
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6cecff;
  box-shadow: 0 0 12px #6cecff;
  animation: pulse 1.6s infinite
}

@keyframes pulse {
  50% {
    opacity: .35;
    transform: scale(.7)
  }
}

.hero-stats {
  display: flex;
  gap: 38px;
  margin-top: 50px;
  flex-wrap: wrap
}

.hero-stats strong {
  font: 700 1.55rem Orbitron, sans-serif;
  display: block
}

.hero-stats small {
  font-size: .62rem;
  letter-spacing: 1.5px;
  color: var(--muted)
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .65rem;
  letter-spacing: 3px;
  color: #9eabc7;
  display: flex;
  align-items: center;
  gap: 12px
}

.scroll-cue:before,
.scroll-cue:after {
  content: "";
  width: 35px;
  height: 1px;
  background: #667494
}

.section {
  padding: 105px 0;
  position: relative
}

.section-title {
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  margin: 15px 0;
  letter-spacing: -1px
}

.muted {
  color: var(--muted)
}

.lead-copy {
  max-width: 690px;
  color: var(--muted);
  line-height: 1.9
}

.glass {
  background: linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025));
  border: 1px solid var(--line);
  border-radius: 22px;
  backdrop-filter: blur(16px)
}

.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1)
}

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

body:not(.js-ready) .reveal {
  opacity: 1;
  transform: none
}

.audience-card {
  height: 100%;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: .35s
}

.audience-card:hover {
  transform: translateY(-8px);
  border-color: #8e8cfb;
  box-shadow: 0 22px 60px #5143a52b
}

.audience-card .num {
  font: 700 2.8rem Orbitron, sans-serif;
  color: #ffffff18;
  position: absolute;
  right: 20px;
  top: 12px
}

.audience-card i {
  font-size: 2rem;
  color: var(--cyan)
}

.audience-card h3 {
  font-size: 1.02rem;
  margin: 22px 0 12px
}

.audience-card p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.8;
  margin: 0
}

.experience-band {
  background: linear-gradient(100deg, #111a35, #171334 55%, #101c32);
  border-block: 1px solid var(--line)
}

.metric {
  padding: 25px 15px;
  text-align: center
}

.metric strong {
  display: block;
  font: 700 clamp(1.8rem, 4vw, 2.7rem) Orbitron, sans-serif;
  color: var(--cyan)
}

.metric span {
  font-size: .68rem;
  letter-spacing: 1.5px;
  color: var(--muted)
}

.dome-wrap {
  height: 500px;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: radial-gradient(ellipse at 50% 100%, #243b6a, #0a1023 60%, #060916)
}

#dome3d {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab
}

#dome3d:active {
  cursor: grabbing
}

.dome-caption {
  position: absolute;
  left: 25px;
  bottom: 22px;
  pointer-events: none
}

.dome-controls {
  position: absolute;
  right: 20px;
  top: 20px;
  display: flex;
  gap: 8px
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #ffffff55;
  background: #080d20aa;
  color: white;
  backdrop-filter: blur(10px)
}

.dome-hint {
  position: absolute;
  right: 22px;
  bottom: 22px;
  color: #b7c2da;
  font-size: .7rem
}

.program-card {
  height: 100%;
  overflow: hidden;
  transition: .35s
}

.program-card:hover {
  transform: translateY(-7px);
  border-color: #8c8cff
}

.program-art {
  height: 185px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #7c5acb, #172449 42%, #080d1c 75%)
}

.program-art:before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 35% 30%, #fff, #a5c7ff 8%, #4265b9 35%, #101b44 75%);
  box-shadow: 0 0 55px #8e8aff88
}

.program-art.rings:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 260px;
  height: 70px;
  border: 10px solid #d7c9ff88;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-18deg)
}

.program-art.nebula {
  background: radial-gradient(ellipse at 30% 35%, #f08bd588, transparent 35%), radial-gradient(ellipse at 70% 60%, #56b8ef99, transparent 42%), #080d1c
}

.program-art.nebula:before {
  width: 240px;
  height: 130px;
  border-radius: 50%;
  filter: blur(18px);
  background: linear-gradient(120deg, #e76cc9aa, #69d4ff99, #6653bd99)
}

.program-body {
  padding: 24px
}

.program-body h3 {
  font-size: 1rem
}

.program-body p {
  font-size: .86rem;
  line-height: 1.8;
  color: var(--muted)
}

.tag {
  display: inline-block;
  border: 1px solid #6cecff55;
  border-radius: 40px;
  color: var(--cyan);
  padding: 5px 9px;
  font-size: .65rem;
  letter-spacing: 1px
}

.process-step {
  padding: 26px 20px;
  border-left: 1px solid #65739855;
  position: relative
}

.process-step:before {
  content: "";
  position: absolute;
  left: -5px;
  top: 31px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 15px var(--cyan)
}

.process-step strong {
  font: 700 1.4rem Orbitron, sans-serif;
  color: #ffffff33
}

.process-step h3 {
  font: 700 1rem "DM Sans", sans-serif;
  margin: 15px 0 8px
}

.process-step p {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.8
}

.testimonial {
  padding: 28px;
  height: 100%
}

.testimonial p {
  color: #d3dbed;
  line-height: 1.8
}

.testimonial small {
  color: var(--muted)
}

.inquiry-panel {
  padding: 36px;
  background: linear-gradient(140deg, #151c3b, #10172b 60%, #20163b)
}

.form-control,
.form-select {
  background: #080e20;
  border: 1px solid #3b4969;
  color: white;
  border-radius: 11px;
  padding: 12px
}

.form-control:focus,
.form-select:focus {
  background: #080e20;
  color: white;
  border-color: var(--violet);
  box-shadow: 0 0 0 .2rem #a78bfa22
}

.form-control::placeholder {
  color: #8190ad
}

.form-select option {
  background: #101629
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 18px 0
}

.faq-item button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: white;
  font-weight: 700;
  padding: 0;
  display: flex;
  justify-content: space-between
}

.faq-item p {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.8;
  padding: 14px 28px 0 0;
  margin: 0
}

footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 24px;
  color: var(--muted);
  font-size: .85rem
}

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

.footer-contact {
  display: grid;
  gap: 8px;
}

.footer-contact strong {
  color: #f5f7ff;
}

.footer-contact a,
.footer-contact address {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  color: var(--muted);
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--cyan);
}

.footer-contact i {
  color: var(--cyan);
}

.footer-copyright {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

#toastArea {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2000
}

.toast {
  background: #101a31;
  color: white;
  border: 1px solid var(--line)
}

@media(max-width:767px) {
  .hero {
    height: auto;
    min-height: 820px;
    padding: 140px 0 90px
  }

  .hero h1 {
    letter-spacing: -2px
  }

  .hero:after {
    background: linear-gradient(90deg, #050713dd, #05071388), linear-gradient(0deg, var(--bg), transparent 35%)
  }

  .section {
    padding: 75px 0
  }

  .dome-wrap {
    height: 360px
  }

  .hero-stats {
    gap: 22px
  }

  .hero-stats strong {
    font-size: 1.25rem
  }
}

@media(prefers-reduced-motion:reduce) {

  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important
  }

  .reveal {
    opacity: 1;
    transform: none
  }

}

.solar-system-section {
  overflow: hidden
}

.solar-stage {
  height: 590px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 48%, rgba(30, 48, 95, .35), rgba(3, 7, 20, .96) 68%);
  border: 1px solid rgba(142, 171, 255, .2);
  touch-action: none
}

#solarSystem3d {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none
}

#solarSystem3d:active {
  cursor: grabbing
}

.solar-overlay {
  position: absolute;
  left: 22px;
  right: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #9eafd2;
  font-size: .67rem;
  letter-spacing: .14em;
  pointer-events: none
}

.solar-overlay button {
  pointer-events: auto
}

.solar-top {
  top: 18px
}

.solar-bottom {
  bottom: 18px
}

.solar-tooltip {
  position: absolute;
  display: none;
  z-index: 3;
  pointer-events: none;
  padding: 8px 12px;
  border: 1px solid rgba(126, 205, 255, .45);
  border-radius: 8px;
  background: rgba(7, 15, 35, .92);
  color: #fff;
  font-size: .78rem;
  letter-spacing: .08em;
  box-shadow: 0 8px 30px #0008;
  white-space: nowrap
}

.solar-hint {
  font-size: .68rem;
  letter-spacing: .13em;
  color: #9eafd2
}

.solar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: center;
  color: #aab8d5;
  font-size: .72rem
}

.solar-legend span {
  display: flex;
  align-items: center;
  gap: 7px
}

.solar-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot);
  display: inline-block;
  box-shadow: 0 0 10px var(--dot)
}

@media(max-width:767px) {
  .solar-stage {
    height: 430px
  }

  #hero3d,
  #solarSystem3d,
  #dome3d,
  .solar-overlay,
  .dome-controls,
  .dome-hint {
    display: none !important
  }

  .solar-overlay {
    left: 12px;
    right: 12px;
    font-size: .55rem
  }

  .solar-bottom {
    bottom: 12px
  }

  .solar-top {
    top: 12px
  }
}

.portfolio-hero {
  min-height: 470px;
  padding: 155px 0 90px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 75% 30%, #29245a88, transparent 44%), linear-gradient(120deg, #050713, #111a35);
}

.portfolio-hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1.05;
  margin: 22px 0;
}

.portfolio-hero p {
  color: #c2cbe0;
  max-width: 650px;
  line-height: 1.9;
  font-size: 1.05rem;
}

.portfolio-section {
  padding-top: 85px;
}

.portfolio-card {
  height: 100%;
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: #8e8cfb;
}

.portfolio-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #0d1428;
}

.portfolio-card-placeholder {
  display: grid;
  aspect-ratio: 4 / 3;
  place-items: center;
  background: radial-gradient(ellipse at center, #29245a88, #0d1428 70%);
  color: var(--cyan);
  font-size: 2rem;
}

.portfolio-card-body {
  padding: 22px;
}

.portfolio-card-body h3 {
  font-size: 1.1rem;
  margin: 12px 0 8px;
}

.portfolio-card-body p {
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}

.portfolio-empty {
  padding: 55px 24px;
}

.portfolio-empty > i {
  display: block;
  color: var(--cyan);
  font-size: 2rem;
  margin-bottom: 16px;
}

.portfolio-empty p {
  color: var(--muted);
  margin: 0;
}

.event-gallery-section {
  overflow: hidden;
  background: linear-gradient(180deg, transparent, #0d142888);
}

.gallery-institutions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 18px;
}

.event-gallery-institutions {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  overflow-x: auto;
  padding: 2px 2px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--violet) #101a31;
  scrollbar-width: thin;
}

.gallery-institution-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #10172bcc;
  color: #f5f7ff;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}

.event-gallery-institutions .gallery-institution-card {
  flex: 0 0 min(280px, 82vw);
  scroll-snap-align: start;
}

.gallery-institution-card:hover,
.gallery-institution-card:focus-visible {
  border-color: var(--cyan);
  color: #fff;
  transform: translateY(-3px);
}

.gallery-institution-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.gallery-photo-placeholder {
  display: flex;
  width: 100%;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  background: radial-gradient(ellipse at center, #29245a88, #0d1428 70%);
  color: var(--muted);
  font-size: .85rem;
}

.gallery-photo-placeholder > i {
  color: var(--cyan);
  font-size: 1.8rem;
}

.gallery-institution-card > .portfolio-card-placeholder {
  height: 180px;
  aspect-ratio: auto;
}

.gallery-institution-card strong {
  padding: 4px 16px 0;
  font: 600 1rem "DM Sans", sans-serif;
}

.gallery-institution-card-detail {
  padding: 10px 16px 0;
  color: var(--muted);
  font-size: .85rem;
}

.gallery-institution-card-count,
.gallery-institution-card-action {
  padding: 14px 16px 0;
  font-size: .85rem;
  color: var(--muted);
}

.gallery-institution-card-action {
  padding: 10px 16px 16px;
  color: var(--cyan);
}

.institution-gallery-view {
  max-width: 1040px;
  margin: 0 auto;
}

.institution-gallery-stage {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 16px;
}

.institution-gallery-stage--single {
  display: block;
}

.institution-gallery-slides {
  min-width: 0;
}

.institution-gallery-slide {
  position: relative;
  height: min(66vh, 680px);
  min-height: 320px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #0d1428;
}

.institution-gallery-stage--single .institution-gallery-slide {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: min(60vh, 620px);
  aspect-ratio: 16 / 9;
}

.institution-gallery-slide[hidden] {
  display: none;
}

.institution-gallery-slide > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #050713;
}

.institution-gallery-slide > .gallery-photo-placeholder {
  height: 100%;
}

.institution-gallery-slide > figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 48px 22px 18px;
  color: #fff;
  background: linear-gradient(transparent, #050713e8);
}

.institution-gallery-previous,
.institution-gallery-next {
  justify-self: center;
}

.institution-gallery-status {
  margin: 14px 0;
  color: var(--muted);
  font-size: .85rem;
  text-align: center;
}

.institution-gallery-thumbnails {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 12px;
}

.institution-gallery-thumbnail {
  flex: 0 0 112px;
  height: 76px;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0d1428;
  opacity: .65;
}

.institution-gallery-thumbnail[aria-pressed="true"] {
  border-color: var(--cyan);
  opacity: 1;
}

.institution-gallery-thumbnail img,
.institution-gallery-thumbnail .gallery-photo-placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  font-size: .65rem;
}

.institution-gallery-thumbnail .gallery-photo-placeholder > i {
  font-size: 1.2rem;
}

.event-gallery-controls {
  display: flex;
  gap: 10px;
}

.event-gallery-track {
  display: grid;
  grid-auto-columns: minmax(260px, 36%);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--violet) #101a31;
  scrollbar-width: thin;
}

.event-gallery-slide {
  position: relative;
  height: 300px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #0d1428;
  scroll-snap-align: start;
}

.event-gallery-slide > .gallery-photo-placeholder {
  height: 100%;
}

.event-gallery-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .4s ease;
}

.event-gallery-slide:hover img {
  transform: scale(1.04);
}

.event-gallery-slide figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 38px 18px 16px;
  color: #fff;
  background: linear-gradient(transparent, #050713e8);
}

@media(max-width:767px) {
  .portfolio-hero {
    min-height: 420px;
    padding: 135px 0 70px;
  }

  .event-gallery-track {
    grid-auto-columns: 82%;
    gap: 12px;
  }

  .event-gallery-slide {
    height: 250px;
  }

  .institution-gallery-stage {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 8px;
  }

  .institution-gallery-slide {
    height: 58vh;
    min-height: 260px;
  }

  .institution-gallery-thumbnail {
    flex-basis: 84px;
    height: 62px;
  }
}