/*
Theme Name: UC3M Chinese Alumni
Theme URI: https://www.aecuc3m.com/
Author: Socios fundadores de AECUC3M
Description: Tema monopágina para la comunidad 马德里卡洛斯三世大学华人校友会. Sin blog, archivos ni páginas auxiliares.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: uc3m-chinese-alumni
*/

:root {
  --background: #040712;
  --foreground: #f7f9ff;
  --card: #0a1022;
  --card-foreground: #f7f9ff;
  --popover: #0a1022;
  --popover-foreground: #f7f9ff;
  --primary: #ff3f22;
  --primary-foreground: #ffffff;
  --secondary: #0a2d67;
  --secondary-foreground: #ffffff;
  --muted: #151d33;
  --muted-foreground: #aeb9d3;
  --accent: #ffb41f;
  --accent-foreground: #1b0b00;
  --destructive: #ff4c5e;
  --border: rgba(255, 255, 255, 0.14);
  --input: rgba(255, 255, 255, 0.14);
  --ring: #ffb41f;
  --brand-blue: #0754b8;
  --brand-blue-bright: #20a5ff;
  --brand-red: #d32619;
  --brand-crimson: #a50045;
  --brand-gold: #ffb41f;
  --brand-ink: #030611;
  --brand-cloud: #f4f7fc;
  --radius: 1rem;
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --radius-sm: calc(var(--radius) - 8px);
  --radius-md: calc(var(--radius) - 4px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 8px);
  --font-sans: "Avenir Next", "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--brand-ink);
  color: var(--foreground);
  font-family: "Avenir Next", "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  text-rendering: optimizeLegibility;
}

body.admin-bar .site-header {
  top: 32px;
}

.uc3m-icon {
  display: inline-block;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.primary-cta,
.dialog-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: pointer;
}

.hero h1 .hero-title-base {
  display: inline;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
}

.nav-join {
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.65rem 1rem;
}

.uc3m-modal[hidden],
.success-state[hidden],
.join-form[hidden],
.faq-panel[hidden] {
  display: none;
}

.uc3m-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.72);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.join-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
}

.dialog-close {
  position: absolute;
  z-index: 2;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
}

.dialog-close svg {
  width: 18px;
  height: 18px;
}

.dialog-header {
  display: grid;
  gap: 0.55rem;
  padding-right: 2.5rem;
}

.dialog-header h2,
.success-state h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.dialog-header > p,
.success-state > p {
  margin: 0;
  color: #a9b7d1;
  font-size: 0.96rem;
  line-height: 1.65;
}

body.modal-open {
  overflow: hidden;
}

.faq-trigger {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.faq-chevron {
  margin-left: auto;
  color: #ffbd48;
  font-size: 1.25rem;
  transition: transform 180ms ease;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
}

.faq-panel {
  overflow: hidden;
}

.menu-icon,
.close-icon {
  display: inline-flex;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--brand-gold);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  transform: translateY(-180%);
  border-radius: 999px;
  background: #fff;
  color: #020711;
  padding: 0.75rem 1rem;
  font-weight: 800;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 40;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 86px;
  padding: 0.8rem clamp(1.25rem, 4vw, 4.5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(3, 6, 17, 0.72);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px) saturate(140%);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0.8rem;
  width: fit-content;
}

.brand img {
  width: 52px;
  height: 52px;
  border: 2px solid rgba(255, 180, 31, 0.8);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 24px rgba(255, 180, 31, 0.28);
}

.brand span {
  display: grid;
  gap: 0.08rem;
}

.brand strong {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.brand small {
  color: #8fa6ce;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.3vw, 2.5rem);
}

.main-nav > a {
  position: relative;
  color: #dce6fa;
  font-size: 0.88rem;
  font-weight: 700;
}

.main-nav > a::after {
  position: absolute;
  right: 0;
  bottom: -0.65rem;
  left: 0;
  height: 2px;
  content: "";
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--brand-blue-bright), var(--brand-gold), #ff5234);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav > a:hover::after {
  transform: scaleX(1);
}

.nav-join,
.primary-cta,
.dialog-submit {
  height: auto;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(110deg, #ffb41f 0%, #ff6a1a 45%, #d81c27 100%);
  color: #140600;
  box-shadow: 0 12px 32px rgba(224, 48, 24, 0.28);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.015em;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.nav-join {
  display: none;
}

.nav-join svg,
.primary-cta svg,
.dialog-submit svg {
  width: 18px;
  height: 18px;
  transition: transform 180ms ease;
}

.nav-join:hover,
.primary-cta:hover,
.dialog-submit:hover {
  transform: translateY(-2px);
  background: linear-gradient(110deg, #ffc74b 0%, #ff7b21 45%, #ec2d36 100%);
  box-shadow: 0 17px 38px rgba(224, 48, 24, 0.38);
}

.nav-join:hover svg,
.primary-cta:hover svg,
.dialog-submit:hover svg {
  transform: translateX(4px);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 1rem;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  color: #6f82a8;
  font-size: 0.78rem;
  font-weight: 800;
}

.language-switch button {
  border: 0;
  background: transparent;
  color: #7f91b4;
  cursor: pointer;
  padding: 0.35rem 0.18rem;
}

.language-switch button.active {
  color: #fff;
}

.menu-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  cursor: pointer;
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(460px, 1.05fr);
  align-items: center;
  min-height: 900px;
  overflow: hidden;
  padding: 150px clamp(1.5rem, 6.6vw, 7.5rem) 96px;
  background:
    radial-gradient(circle at 82% 48%, rgba(217, 28, 24, 0.25), transparent 30%),
    radial-gradient(circle at 58% 50%, rgba(0, 103, 255, 0.22), transparent 31%),
    linear-gradient(116deg, #02050d 0%, #050a19 48%, #0a0610 100%);
  isolation: isolate;
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: 21%;
  right: -22%;
  width: 70vw;
  height: 70vw;
  border: 1px solid rgba(255, 180, 31, 0.1);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 8vw rgba(255, 255, 255, 0.008),
    0 0 0 18vw rgba(255, 255, 255, 0.006);
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 180px;
  content: "";
  background: linear-gradient(transparent, #030611);
  pointer-events: none;
}

.hero-stars {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.55;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(70, 161, 255, 0.75) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(255, 177, 54, 0.72) 0 1px, transparent 1.7px);
  background-position: 0 0, 37px 51px, 103px 29px;
  background-size: 130px 130px, 181px 181px, 237px 237px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 88%);
}

.hero-copy {
  position: relative;
  z-index: 4;
  max-width: 710px;
}

.eyebrow,
.section-kicker {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: #6fbcff;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.17em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow svg {
  width: 17px;
  height: 17px;
}

.anniversary-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 1.8rem 0 1.25rem;
  border: 1px solid rgba(255, 180, 31, 0.35);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 180, 31, 0.13), rgba(219, 40, 30, 0.1));
  color: #ffe3a2;
  padding: 0.58rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
}

.anniversary-badge svg {
  width: 16px;
  height: 16px;
  color: var(--brand-gold);
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(3.4rem, 5.35vw, 6.6rem);
  font-weight: 850;
  letter-spacing: -0.064em;
  line-height: 0.95;
}

.hero h1 span {
  display: block;
  padding-bottom: 0.08em;
  background: linear-gradient(95deg, #5bbcff 0%, #f8f6e8 34%, #ffbd39 61%, #ff4f32 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-intro {
  max-width: 650px;
  margin: 1.7rem 0 0;
  color: #ced8ec;
  font-size: clamp(1.05rem, 1.25vw, 1.26rem);
  line-height: 1.7;
}

.community-note {
  max-width: 620px;
  margin: 1.35rem 0 0;
  border-left: 2px solid var(--brand-gold);
  color: #9facc5;
  padding-left: 1rem;
  font-size: 0.92rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.2rem;
}

.primary-cta {
  min-height: 56px;
  padding: 0 1.5rem;
  font-size: 0.96rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  color: #d7e0f3;
  padding: 0.7rem 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 800;
  transition: color 180ms ease, border-color 180ms ease;
}

.text-link span {
  color: var(--brand-gold);
  font-size: 1.1rem;
}

.text-link:hover {
  border-color: var(--brand-gold);
  color: #fff;
}

.portal-stage {
  position: relative;
  z-index: 2;
  justify-self: center;
  width: min(47vw, 700px);
  aspect-ratio: 1;
}

.portal-glow {
  position: absolute;
  inset: 11%;
  border-radius: 50%;
  background:
    conic-gradient(from 200deg, #0095ff, #013fd1 23%, #8e0959 49%, #ff2418 68%, #ffb51f 84%, #0095ff);
  filter: blur(42px);
  opacity: 0.52;
  animation: glow-breathe 5s ease-in-out infinite alternate;
}

.portal-image-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 66%;
  aspect-ratio: 1;
  overflow: hidden;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 205, 95, 0.9);
  border-radius: 50%;
  background: #060916;
  box-shadow:
    0 0 0 7px rgba(255, 180, 31, 0.08),
    0 0 52px rgba(255, 153, 18, 0.46),
    0 0 120px rgba(0, 107, 255, 0.33);
}

.portal-image {
  width: 100%;
  height: 100%;
  transform: scale(1.06);
  object-fit: cover;
  object-position: 50% 47%;
}

.portal-image-wrap::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(120deg, rgba(50, 159, 255, 0.1), transparent 46%, rgba(255, 55, 24, 0.15)),
    radial-gradient(circle, transparent 55%, rgba(3, 6, 17, 0.5));
  content: "";
  pointer-events: none;
}

.portal-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(151, 199, 255, 0.24);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.portal-orbit::before,
.portal-orbit::after {
  position: absolute;
  inset: 9%;
  border: 1px solid rgba(255, 180, 31, 0.12);
  border-radius: inherit;
  content: "";
}

.orbit-one {
  width: 85%;
  aspect-ratio: 1;
  animation: orbit-spin 28s linear infinite;
}

.orbit-two {
  width: 97%;
  aspect-ratio: 1;
  border-style: dashed;
  border-color: rgba(255, 91, 48, 0.19);
  animation: orbit-spin-reverse 36s linear infinite;
}

.portal-orbit i {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 16px #fff, 0 0 30px #3d9cff;
}

.orbit-one i:nth-child(1) {
  top: 9%;
  left: 21%;
}

.orbit-one i:nth-child(2) {
  right: 4%;
  bottom: 31%;
  background: var(--brand-gold);
  box-shadow: 0 0 20px var(--brand-gold);
}

.orbit-one i:nth-child(3) {
  bottom: 8%;
  left: 26%;
  width: 6px;
  height: 6px;
}

.orbit-two i:nth-child(1) {
  top: 48%;
  left: -0.2%;
  background: #44aaff;
  box-shadow: 0 0 22px #168fff;
}

.orbit-two i:nth-child(2) {
  top: 15%;
  right: 17%;
  background: #ff3b25;
  box-shadow: 0 0 22px #ff3b25;
}

.portal-caption {
  position: absolute;
  right: 4%;
  bottom: 5%;
  display: grid;
  width: 250px;
  border-left: 2px solid var(--brand-gold);
  background: rgba(3, 6, 17, 0.58);
  padding: 0.85rem 1rem;
  backdrop-filter: blur(10px);
}

.portal-caption span {
  color: #80bfff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portal-caption strong {
  margin-top: 0.25rem;
  color: #fff;
  font-size: 1rem;
  line-height: 1.4;
}

.hero-index {
  position: absolute;
  right: clamp(1.5rem, 4vw, 4.5rem);
  bottom: 2.2rem;
  color: #5f6e8c;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.22em;
}

.section-shell {
  width: min(100% - 3rem, 1240px);
  margin: 0 auto;
}

.origin-section {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: clamp(3rem, 7vw, 8rem);
  padding-top: clamp(6rem, 10vw, 10rem);
  padding-bottom: clamp(6rem, 10vw, 10rem);
  color: #071020;
}

.origin-section::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(180deg, #f5f8fd 0%, #edf2fa 100%),
    radial-gradient(circle at 20% 20%, rgba(13, 94, 208, 0.12), transparent 30%);
  content: "";
}

.origin-section {
  position: relative;
}

.section-heading h2,
.network-copy h2,
.final-cta h2 {
  margin: 0.9rem 0 1.5rem;
  font-size: clamp(2.5rem, 4.1vw, 4.65rem);
  font-weight: 850;
  letter-spacing: -0.052em;
  line-height: 1.02;
}

.origin-section .section-kicker {
  color: #0754b8;
}

.section-heading > p:last-child,
.network-copy > p,
.final-cta > p {
  margin: 0;
  color: #536077;
  font-size: 1.06rem;
  line-height: 1.78;
}

.timeline {
  position: relative;
}

.timeline::before {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 28px;
  width: 1px;
  background: linear-gradient(#238df1, #c02943 68%, #ff9d13);
  content: "";
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 1.35rem;
  padding-bottom: 2.2rem;
}

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

.timeline-marker {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(7, 84, 184, 0.25);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 28px rgba(4, 28, 70, 0.1);
}

.timeline-marker::after {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 157, 19, 0.35);
  border-radius: inherit;
  content: "";
}

.timeline-marker span {
  color: #0754b8;
  font-size: 0.7rem;
  font-weight: 900;
}

.timeline-content {
  border-bottom: 1px solid rgba(7, 16, 32, 0.11);
  padding: 0.25rem 0 2.2rem;
}

.timeline-item:last-child .timeline-content {
  border-bottom: 0;
  padding-bottom: 0;
}

.timeline-content time {
  color: #c22c2c;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.timeline-content h3 {
  margin: 0.45rem 0 0.6rem;
  font-size: 1.45rem;
  letter-spacing: -0.025em;
}

.timeline-content p {
  margin: 0;
  color: #60708a;
  font-size: 0.98rem;
  line-height: 1.7;
}

.purpose-section {
  position: relative;
  overflow: hidden;
  padding: clamp(6rem, 9vw, 9rem) 0;
  background:
    linear-gradient(125deg, rgba(0, 85, 194, 0.16), transparent 45%),
    radial-gradient(circle at 92% 28%, rgba(210, 38, 29, 0.2), transparent 31%),
    #050917;
}

.purpose-section::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 70px 70px;
  content: "";
  mask-image: radial-gradient(circle at 60% 50%, black, transparent 74%);
}

.purpose-aura {
  position: absolute;
  top: -260px;
  right: -140px;
  width: 680px;
  height: 680px;
  border: 1px solid rgba(255, 180, 31, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 100px rgba(255, 180, 31, 0.015),
    0 0 0 200px rgba(0, 120, 255, 0.012);
}

.purpose-heading {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 450px);
  align-items: end;
  gap: 3rem;
  margin-bottom: 3.4rem;
}

.purpose-heading .section-kicker {
  color: #69bbff;
}

.purpose-heading h2 {
  margin-bottom: 0;
}

.purpose-heading > p {
  color: #aab9d5;
}

.objective-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.objective-card {
  position: relative;
  min-height: 285px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 30px 8px 30px 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  padding: 2rem;
  transition: transform 240ms ease, border-color 240ms ease, background 240ms ease;
  backdrop-filter: blur(12px);
}

.objective-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #1e9bff, transparent);
  content: "";
}

.objective-card::after {
  position: absolute;
  right: -75px;
  bottom: -90px;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  content: "";
}

.objective-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 190, 67, 0.35);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035));
}

.objective-1 {
  grid-column: 1 / 7;
}

.objective-2 {
  grid-column: 7 / 13;
}

.objective-3 {
  grid-column: 1 / 5;
}

.objective-4 {
  grid-column: 5 / 13;
}

.objective-2::before,
.objective-4::before {
  background: linear-gradient(90deg, #ffb51f, #e83425, transparent);
}

.objective-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(77, 173, 255, 0.32);
  border-radius: 16px 4px 16px 4px;
  background: rgba(7, 84, 184, 0.18);
  color: #6ac0ff;
}

.objective-2 .objective-icon,
.objective-4 .objective-icon {
  border-color: rgba(255, 180, 31, 0.3);
  background: rgba(207, 48, 29, 0.15);
  color: #ffbd48;
}

.objective-icon svg {
  width: 24px;
  height: 24px;
}

.objective-number {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: rgba(255, 255, 255, 0.22);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.objective-card h3 {
  margin: 2.1rem 0 0.85rem;
  font-size: clamp(1.65rem, 2.2vw, 2.35rem);
  letter-spacing: -0.035em;
}

.objective-card p {
  max-width: 590px;
  margin: 0;
  color: #a8b6d0;
  font-size: 0.98rem;
  line-height: 1.75;
}

.network-section {
  display: grid;
  grid-template-columns: minmax(310px, 0.76fr) minmax(560px, 1.24fr);
  align-items: center;
  gap: clamp(3rem, 6vw, 7rem);
  padding-top: clamp(6rem, 10vw, 10rem);
  padding-bottom: clamp(6rem, 10vw, 10rem);
  color: #081224;
}

.network-section .section-kicker {
  color: #bd2532;
}

.network-copy > p {
  color: #5e6b81;
}

.cohort-detail {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 0.2rem 1.2rem;
  margin-top: 2.2rem;
  border-top: 1px solid rgba(8, 18, 36, 0.14);
  padding-top: 1.5rem;
}

.cohort-detail span {
  grid-column: 1 / -1;
  color: #68758d;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cohort-detail strong {
  align-self: start;
  background: linear-gradient(100deg, #0754b8, #d32324);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 3.1rem;
  letter-spacing: -0.06em;
  line-height: 1;
}

.cohort-detail p {
  margin: 0;
  color: #3f4e68;
  font-size: 0.92rem;
  line-height: 1.6;
}

.network-visual {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(16, 101, 214, 0.16);
  border-radius: 48px 12px 48px 12px;
  background:
    radial-gradient(circle at 58% 46%, rgba(10, 111, 244, 0.28), transparent 17%),
    radial-gradient(circle at 79% 36%, rgba(219, 44, 31, 0.21), transparent 27%),
    radial-gradient(circle at 12% 70%, rgba(20, 144, 255, 0.17), transparent 25%),
    #050a18;
  box-shadow: 0 34px 80px rgba(4, 22, 54, 0.23);
}

.network-visual::before {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image:
    radial-gradient(circle, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle, #319dff 0 1px, transparent 1.5px),
    radial-gradient(circle, #ffac2f 0 1px, transparent 1.5px);
  background-position: 0 0, 43px 81px, 87px 31px;
  background-size: 137px 137px, 193px 193px, 251px 251px;
  content: "";
}

.network-visual::after {
  position: absolute;
  inset: 9%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 65px rgba(255, 255, 255, 0.012);
}

.network-visual svg {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.network-visual svg path {
  fill: none;
  stroke: url("#networkGradient");
  stroke: rgba(62, 165, 255, 0.55);
  stroke-width: 0.35;
  vector-effect: non-scaling-stroke;
}

.network-visual svg .network-line-secondary {
  stroke: rgba(255, 166, 40, 0.25);
  stroke-dasharray: 5 6;
}

.network-core {
  position: absolute;
  z-index: 5;
  top: 49%;
  left: 52%;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 191, 72, 0.75);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(219, 41, 33, 0.95), rgba(107, 6, 54, 0.92));
  box-shadow: 0 0 34px rgba(255, 88, 40, 0.48), 0 0 80px rgba(17, 123, 255, 0.32);
  color: #fff;
}

.network-core::before {
  position: absolute;
  inset: -12px;
  border: 1px dashed rgba(255, 184, 55, 0.3);
  border-radius: inherit;
  content: "";
  animation: orbit-spin 18s linear infinite;
}

.network-core svg {
  position: static;
  width: 24px;
  height: 24px;
}

.network-core span {
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.cohort-node {
  position: absolute;
  z-index: 6;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(111, 189, 255, 0.5);
  border-radius: 50%;
  background: rgba(4, 17, 42, 0.88);
  color: #c3dcff;
  box-shadow: 0 0 18px rgba(36, 145, 255, 0.2);
  cursor: pointer;
  transition: transform 190ms ease, background 190ms ease, box-shadow 190ms ease, border-color 190ms ease;
  backdrop-filter: blur(8px);
}

.cohort-node.small {
  width: 56px;
  height: 56px;
}

.cohort-node.medium {
  width: 68px;
  height: 68px;
}

.cohort-node.large {
  width: 78px;
  height: 78px;
}

.cohort-node span {
  font-size: 0.72rem;
  font-weight: 900;
}

.cohort-node:hover,
.cohort-node.active {
  transform: translate(-50%, -50%) scale(1.12);
  border-color: #ffbd48;
  background: linear-gradient(145deg, #0a5cc1, #b81738);
  box-shadow: 0 0 20px rgba(255, 179, 53, 0.5), 0 0 48px rgba(38, 142, 255, 0.4);
  color: #fff;
}

.network-label {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(200, 222, 255, 0.52);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.network-label svg {
  position: static;
  width: 14px;
  height: 14px;
}

.label-a {
  top: 11%;
  left: 11%;
}

.label-b {
  right: 9%;
  bottom: 9%;
}

.final-cta {
  position: relative;
  display: grid;
  justify-items: center;
  overflow: hidden;
  padding: clamp(6rem, 11vw, 10rem) 1.5rem;
  background:
    linear-gradient(rgba(3, 6, 17, 0.25), rgba(3, 6, 17, 0.86)),
    url("assets/images/cosmic-identity.png") center 49% / cover;
  text-align: center;
  isolation: isolate;
}

.final-cta::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at center, transparent 0 18%, rgba(3, 6, 17, 0.28) 44%, rgba(3, 6, 17, 0.85) 85%),
    linear-gradient(90deg, rgba(0, 58, 169, 0.38), transparent 47%, rgba(188, 26, 24, 0.35));
  content: "";
}

.final-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: 520px;
  height: 520px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 189, 60, 0.3);
  border-radius: 50%;
  box-shadow:
    0 0 0 44px rgba(255, 255, 255, 0.025),
    0 0 0 92px rgba(255, 255, 255, 0.018),
    0 0 90px rgba(255, 141, 27, 0.34);
}

.final-logo {
  width: 82px;
  height: 82px;
  margin-bottom: 1.7rem;
  border: 2px solid rgba(255, 194, 70, 0.85);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 35px rgba(255, 180, 31, 0.4);
}

.final-cta .section-kicker {
  color: #ffd373;
}

.final-cta h2 {
  max-width: 920px;
  margin-bottom: 1.3rem;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.final-cta > p {
  max-width: 630px;
  color: #d0daec;
}

.final-cta .primary-cta {
  margin-top: 2.1rem;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 520px) auto;
  align-items: center;
  gap: 3rem;
  padding: 2.2rem clamp(1.5rem, 5vw, 5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #02040b;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-brand div {
  display: grid;
  gap: 0.16rem;
}

.footer-brand strong {
  font-size: 0.85rem;
}

.footer-brand span {
  color: #71809e;
  font-size: 0.73rem;
}

.site-footer p {
  margin: 0;
  color: #7886a3;
  font-size: 0.75rem;
  line-height: 1.6;
  text-align: center;
}

.footer-year {
  color: #ffbd48;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.join-dialog {
  max-height: calc(100vh - 2rem);
  max-width: 620px;
  overflow-y: auto;
  border: 1px solid rgba(255, 188, 55, 0.24);
  border-radius: 32px 10px 32px 10px;
  background:
    radial-gradient(circle at top right, rgba(194, 32, 37, 0.22), transparent 31%),
    radial-gradient(circle at bottom left, rgba(0, 104, 234, 0.2), transparent 35%),
    #070c1a;
  color: #f8faff;
  padding: clamp(1.5rem, 4vw, 2.7rem);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.68);
}

.join-dialog [data-slot="dialog-title"] {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.join-dialog [data-slot="dialog-description"] {
  color: #a9b7d1;
  font-size: 0.96rem;
  line-height: 1.65;
}

.dialog-icon,
.success-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 0.65rem;
  border: 1px solid rgba(255, 188, 55, 0.35);
  border-radius: 16px 4px 16px 4px;
  background: linear-gradient(145deg, rgba(255, 180, 31, 0.18), rgba(207, 42, 33, 0.16));
  color: #ffc752;
}

.dialog-icon svg,
.success-icon svg {
  width: 24px;
  height: 24px;
}

.join-form {
  display: grid;
  gap: 1rem;
  margin-top: 0.7rem;
}

.join-form > label,
.join-form fieldset {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.join-form label > span,
.join-form legend {
  color: #cfdaee;
  font-size: 0.78rem;
  font-weight: 800;
}

.join-form input,
.join-form select {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px 4px 12px 4px;
  outline: none;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  padding: 0 0.9rem;
  transition: border-color 160ms ease, background 160ms ease;
}

.join-form select option {
  background: #071020;
  color: #fff;
}

.join-form input:focus,
.join-form select:focus {
  border-color: rgba(255, 190, 68, 0.75);
  background: rgba(255, 255, 255, 0.085);
}

.interest-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.interest-options label {
  position: relative;
  cursor: pointer;
}

.interest-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.interest-options span {
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.5rem 0.75rem;
  text-align: center;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.interest-options input:checked + span {
  border-color: #ffb637;
  background: rgba(255, 182, 55, 0.13);
  color: #ffd987;
}

.interest-options input:focus-visible + span {
  outline: 3px solid #ffb637;
  outline-offset: 2px;
}

.dialog-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 0.3rem;
}

.join-form small {
  color: #73809a;
  font-size: 0.72rem;
  line-height: 1.5;
  text-align: center;
}

.success-state {
  display: grid;
  justify-items: center;
  padding: 2rem 0.5rem 1rem;
  text-align: center;
}

.success-state .success-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 1.4rem;
  border-radius: 50%;
  color: #ffd15c;
  box-shadow: 0 0 40px rgba(255, 180, 31, 0.25);
}

.success-state [data-slot="dialog-description"] {
  max-width: 430px;
  margin: 1rem auto 1.8rem;
}

.success-state .dialog-submit {
  max-width: 250px;
}

/* Unified midnight visual system */
.site-header {
  grid-template-columns: minmax(320px, 1.2fr) auto minmax(110px, 0.45fr);
  padding-right: clamp(1rem, 3vw, 3rem);
  padding-left: clamp(1rem, 3vw, 3rem);
}

.brand strong {
  font-size: 0.78rem;
  letter-spacing: 0.035em;
}

.brand small {
  color: #89b9ef;
  font-size: 0.62rem;
}

.main-nav {
  gap: clamp(0.8rem, 1.5vw, 1.55rem);
}

.main-nav > a {
  font-size: 0.79rem;
}

.origin-section,
.network-section {
  color: #f7f9ff;
}

.origin-section::before {
  background:
    radial-gradient(circle at 12% 18%, rgba(16, 113, 241, 0.18), transparent 32%),
    radial-gradient(circle at 88% 82%, rgba(208, 36, 32, 0.14), transparent 31%),
    linear-gradient(180deg, #040713 0%, #060b19 100%);
}

.origin-section .section-kicker,
.network-section .section-kicker {
  color: #70beff;
}

.origin-section .section-heading > p:last-child,
.network-copy > p {
  color: #aab8d2;
}

.timeline::before {
  background: linear-gradient(#2e9dff, #bd2942 68%, #ffae20);
}

.timeline-marker {
  border-color: rgba(89, 176, 255, 0.26);
  background: #081126;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.timeline-marker span {
  color: #7bc4ff;
}

.timeline-content {
  border-color: rgba(255, 255, 255, 0.1);
}

.timeline-content time {
  color: #ff9d57;
}

.timeline-content p {
  color: #95a5c2;
}

.cohort-detail {
  border-color: rgba(255, 255, 255, 0.12);
}

.cohort-detail span {
  color: #8495b6;
}

.cohort-detail strong {
  background: linear-gradient(100deg, #65bcff, #ffc04f, #ff5241);
  -webkit-background-clip: text;
  background-clip: text;
}

.cohort-detail p {
  color: #b2bfd7;
}

.legacy-section {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(115deg, rgba(0, 103, 224, 0.14), transparent 42%),
    radial-gradient(circle at 86% 18%, rgba(212, 42, 30, 0.18), transparent 28%),
    #050a18;
  padding: clamp(5.5rem, 9vw, 8.5rem) 0;
}

.legacy-section::before {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.8) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(43, 151, 255, 0.8) 0 1px, transparent 1.5px);
  background-position: 0 0, 47px 73px;
  background-size: 179px 179px, 239px 239px;
  content: "";
}

.legacy-section > .section-shell {
  position: relative;
  z-index: 1;
}

.legacy-intro {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  align-items: end;
  gap: clamp(3rem, 7vw, 7rem);
}

.legacy-intro h2,
.community-heading h2,
.programs-heading h2,
.ecosystem-heading h2,
.roadmap-heading h2,
.faq-heading h2 {
  margin: 0.9rem 0 0;
  font-size: clamp(2.5rem, 4.2vw, 4.75rem);
  font-weight: 850;
  letter-spacing: -0.052em;
  line-height: 1.02;
}

.legacy-intro > p {
  margin: 0;
  color: #acbbd4;
  font-size: 1.04rem;
  line-height: 1.78;
}

.legacy-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.legacy-stats article {
  display: grid;
  align-content: start;
  min-height: 190px;
  border-right: 1px solid rgba(255, 255, 255, 0.11);
  padding: 1.6rem;
}

.legacy-stats article:last-child {
  border-right: 0;
}

.legacy-stats strong {
  background: linear-gradient(95deg, #6bc0ff, #ffd06c, #ff5941);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(2rem, 3.4vw, 3.55rem);
  letter-spacing: -0.06em;
}

.legacy-stats span {
  margin-top: 1.2rem;
  color: #8f9fbd;
  font-size: 0.86rem;
  line-height: 1.6;
}

.legacy-manifesto {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 1.2rem;
  max-width: 920px;
  margin: 4rem auto 0;
  border: 0;
  padding: 0;
}

.legacy-manifesto svg {
  width: 28px;
  height: 28px;
  margin-top: 0.35rem;
  color: #ffbd48;
}

.legacy-manifesto p {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.75rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.28;
}

.community-section {
  padding-top: clamp(6rem, 10vw, 10rem);
  padding-bottom: clamp(6rem, 10vw, 10rem);
}

.community-heading {
  max-width: 940px;
}

.community-heading > p:last-child {
  max-width: 790px;
  margin: 1.5rem 0 0;
  color: #aab8d2;
  font-size: 1.05rem;
  line-height: 1.78;
}

.eligibility-panel {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  overflow: hidden;
  margin-top: 3.5rem;
  border: 1px solid rgba(111, 188, 255, 0.22);
  border-radius: 42px 10px 42px 10px;
  background:
    radial-gradient(circle at 8% 80%, rgba(3, 112, 248, 0.28), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.022));
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.24);
}

.eligibility-copy {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(rgba(3, 8, 21, 0.38), rgba(3, 8, 21, 0.88)),
    url("assets/images/cosmic-identity.png") center 49% / cover;
  padding: clamp(2rem, 4vw, 3.8rem);
}

.eligibility-copy::after {
  position: absolute;
  right: -110px;
  bottom: -110px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 192, 75, 0.25);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 45px rgba(255, 255, 255, 0.02);
}

.eligibility-copy > svg {
  width: 52px;
  height: 52px;
  margin-top: 5rem;
  color: #ffc859;
  filter: drop-shadow(0 0 18px rgba(255, 179, 47, 0.5));
}

.panel-number {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.panel-label,
.eligibility-label {
  margin: 1.3rem 0 0.55rem;
  color: #72bdff;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eligibility-copy h3 {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3.15rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.eligibility-list {
  display: grid;
  align-content: center;
  padding: clamp(2rem, 4.5vw, 4.5rem);
}

.eligibility-list > .eligibility-label {
  margin-top: 0;
  color: #ffcc68;
}

.eligibility-list article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.3rem 0;
}

.eligibility-list article:last-child {
  border-bottom: 0;
}

.eligibility-list article > svg {
  width: 21px;
  height: 21px;
  margin-top: 0.18rem;
  color: #ffbd48;
}

.eligibility-list h4 {
  margin: 0;
  font-size: 1.08rem;
}

.eligibility-list article p {
  margin: 0.45rem 0 0;
  color: #91a1bf;
  font-size: 0.9rem;
  line-height: 1.65;
}

.student-route {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.3rem;
  margin-top: 1rem;
  border: 1px solid rgba(255, 98, 61, 0.24);
  border-radius: 12px 34px 12px 34px;
  background: linear-gradient(100deg, rgba(183, 24, 45, 0.15), rgba(255, 180, 31, 0.055));
  padding: 1.4rem 1.5rem;
}

.student-route-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 181, 58, 0.3);
  border-radius: 50%;
  color: #ffbd48;
}

.student-route-icon svg {
  width: 24px;
  height: 24px;
}

.student-route .eligibility-label {
  margin: 0 0 0.2rem;
  color: #ff9c73;
}

.student-route h3 {
  margin: 0;
  font-size: 1.25rem;
}

.student-route p:last-child {
  margin: 0.35rem 0 0;
  color: #a7b4cc;
  font-size: 0.9rem;
  line-height: 1.6;
}

.student-route > a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border-bottom: 1px solid rgba(255, 195, 76, 0.45);
  color: #ffd271;
  padding: 0.55rem 0;
  font-size: 0.84rem;
  font-weight: 900;
  white-space: nowrap;
}

.student-route > a svg {
  width: 16px;
  height: 16px;
}

.programs-section {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background:
    radial-gradient(circle at 88% 22%, rgba(206, 31, 34, 0.2), transparent 30%),
    linear-gradient(120deg, rgba(0, 91, 215, 0.12), transparent 44%),
    #050917;
  padding: clamp(6rem, 10vw, 10rem) 0;
}

.programs-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.76fr) minmax(520px, 1.24fr);
  gap: clamp(3rem, 7vw, 7rem);
}

.programs-heading {
  position: sticky;
  top: 120px;
  align-self: start;
}

.programs-heading > p {
  margin: 1.45rem 0 0;
  color: #a5b4cf;
  font-size: 1.02rem;
  line-height: 1.76;
}

.programs-heading small {
  display: block;
  margin-top: 1.7rem;
  border-left: 2px solid #ffb43a;
  color: #7687a7;
  padding-left: 1rem;
  font-size: 0.76rem;
  line-height: 1.65;
}

.program-list {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.program-list article {
  display: grid;
  grid-template-columns: 48px 58px 1fr;
  gap: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  padding: 2rem 0;
  transition: padding 180ms ease, background 180ms ease;
}

.program-list article:hover {
  background: linear-gradient(90deg, rgba(16, 108, 230, 0.08), rgba(210, 43, 31, 0.06));
  padding-right: 1rem;
  padding-left: 1rem;
}

.program-index {
  color: #566887;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.program-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(92, 183, 255, 0.25);
  border-radius: 14px 4px 14px 4px;
  background: rgba(10, 91, 193, 0.13);
  color: #69bbff;
}

.program-list article:nth-child(even) .program-icon {
  border-color: rgba(255, 180, 49, 0.24);
  background: rgba(190, 35, 41, 0.12);
  color: #ffc458;
}

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

.program-copy > span {
  color: #7086aa;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.program-copy h3 {
  margin: 0.4rem 0 0.65rem;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  letter-spacing: -0.035em;
}

.program-copy p {
  margin: 0;
  color: #98a8c4;
  font-size: 0.92rem;
  line-height: 1.72;
}

.ecosystem-section {
  padding-top: clamp(6rem, 10vw, 10rem);
  padding-bottom: clamp(6rem, 10vw, 10rem);
}

.ecosystem-heading {
  display: grid;
  grid-template-columns: minmax(380px, 1.1fr) minmax(320px, 0.9fr);
  align-items: end;
  gap: clamp(3rem, 7vw, 7rem);
}

.ecosystem-heading > p {
  margin: 0;
  color: #9eacc6;
  font-size: 1rem;
  line-height: 1.75;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-top: 3.5rem;
}

.resource-link {
  position: relative;
  grid-column: span 2;
  min-height: 270px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 28px 7px 28px 7px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.022));
  padding: 1.7rem;
  transition: transform 200ms ease, border-color 200ms ease;
}

.resource-link:nth-child(4),
.resource-link:nth-child(5) {
  grid-column: span 3;
}

.resource-link::before {
  position: absolute;
  inset: auto -60px -80px auto;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(63, 164, 255, 0.13);
  border-radius: 50%;
  content: "";
}

.resource-link:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 190, 68, 0.36);
}

.resource-link > svg:first-child {
  width: 28px;
  height: 28px;
  color: #6cc0ff;
}

.resource-link:nth-child(even) > svg:first-child {
  color: #ffc658;
}

.resource-number {
  position: absolute;
  top: 1.7rem;
  right: 1.7rem;
  color: #50617e;
  font-size: 0.7rem;
  font-weight: 900;
}

.resource-link h3 {
  max-width: 250px;
  margin: 2.8rem 0 0.7rem;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.resource-link p {
  max-width: 410px;
  margin: 0;
  color: #8e9eba;
  font-size: 0.86rem;
  line-height: 1.68;
}

.resource-arrow {
  position: absolute;
  right: 1.6rem;
  bottom: 1.6rem;
  width: 18px;
  height: 18px;
  color: #ffbd48;
}

.roadmap-section {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background:
    radial-gradient(circle at 8% 50%, rgba(2, 118, 255, 0.19), transparent 35%),
    radial-gradient(circle at 91% 50%, rgba(224, 46, 24, 0.17), transparent 32%),
    #050917;
  padding: clamp(6rem, 10vw, 9rem) 0;
}

.roadmap-heading {
  max-width: 860px;
  margin-bottom: 4rem;
}

.roadmap-heading > p:last-child {
  max-width: 660px;
  margin: 1.35rem 0 0;
  color: #9caac5;
  font-size: 1rem;
  line-height: 1.7;
}

.roadmap-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.roadmap-list::before {
  position: absolute;
  top: 52px;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, #299bff, #8f4ba4, #d8433b, #ffb33b);
  content: "";
}

.roadmap-list article {
  position: relative;
  padding-right: clamp(1.2rem, 3vw, 3rem);
}

.roadmap-list article > span {
  color: #6d7f9e;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.roadmap-node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin: 1.55rem 0 2.2rem;
  border: 1px solid #59b1ff;
  border-radius: 50%;
  background: #050917;
  box-shadow: 0 0 18px rgba(62, 164, 255, 0.5);
}

.roadmap-list article:nth-child(3) .roadmap-node,
.roadmap-list article:nth-child(4) .roadmap-node {
  border-color: #ffb348;
  box-shadow: 0 0 18px rgba(255, 160, 46, 0.48);
}

.roadmap-node i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.roadmap-list article > div:last-child > p:first-child {
  margin: 0 0 0.45rem;
  color: #607391;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.roadmap-list h3 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.roadmap-list article > div:last-child > p:last-child {
  margin: 0.7rem 0 0;
  color: #93a2bd;
  font-size: 0.85rem;
  line-height: 1.68;
}

.faq-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.65fr) minmax(520px, 1.35fr);
  gap: clamp(3rem, 8vw, 8rem);
  padding-top: clamp(6rem, 10vw, 10rem);
  padding-bottom: clamp(6rem, 10vw, 10rem);
}

.faq-heading {
  align-self: start;
}

.faq-accordion {
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.faq-accordion [data-slot="accordion-item"] {
  border-color: rgba(255, 255, 255, 0.12);
}

.faq-accordion [data-slot="accordion-trigger"] {
  align-items: center;
  justify-content: flex-start;
  min-height: 82px;
  border-radius: 0;
  color: #f3f7ff;
  padding: 1.2rem 0;
  font-size: 1rem;
  font-weight: 750;
  text-decoration: none;
}

.faq-accordion [data-slot="accordion-trigger"]:hover {
  color: #ffca63;
  text-decoration: none;
}

.faq-accordion [data-slot="accordion-trigger"] > svg {
  margin-left: auto;
  color: #ffbd48;
}

.faq-number {
  min-width: 42px;
  color: #526684;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.faq-accordion [data-slot="accordion-content"] p {
  max-width: 720px;
  margin: 0;
  color: #94a4c0;
  padding: 0 3rem 1.5rem 2.65rem;
  font-size: 0.94rem;
  line-height: 1.75;
}

.join-form .eligibility-confirm {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.75rem;
  border: 1px solid rgba(255, 184, 55, 0.24);
  border-radius: 14px 4px 14px 4px;
  background: rgba(255, 180, 31, 0.065);
  padding: 0.9rem;
}

.join-form .eligibility-confirm input {
  width: 18px;
  height: 18px;
  margin-top: 0.1rem;
  accent-color: #ffb41f;
}

.join-form .eligibility-confirm span {
  color: #c8d3e6;
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.55;
}

@keyframes orbit-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes orbit-spin-reverse {
  to {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

@keyframes glow-breathe {
  from {
    transform: scale(0.96);
    opacity: 0.42;
  }
  to {
    transform: scale(1.05);
    opacity: 0.62;
  }
}

@media (min-width: 1380px) {
  .nav-join {
    display: inline-flex;
  }
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    position: fixed;
    top: 86px;
    right: 1rem;
    left: 1rem;
    display: none;
    align-items: stretch;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px 8px 24px 8px;
    background: rgba(4, 8, 20, 0.97);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
    padding: 1rem;
    backdrop-filter: blur(20px);
  }

  .main-nav.is-open {
    display: grid;
  }

  .main-nav > a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.9rem 0.5rem;
  }

  .main-nav > a::after {
    display: none;
  }

  .main-nav .nav-join {
    display: inline-flex;
    margin-top: 0.4rem;
  }

  .menu-toggle {
    display: grid;
  }

  .hero {
    grid-template-columns: 1fr minmax(380px, 0.86fr);
    min-height: 840px;
    padding-right: 2rem;
    padding-left: 2rem;
  }

  .portal-stage {
    width: min(50vw, 560px);
  }

  .origin-section {
    gap: 4rem;
  }

  .legacy-intro,
  .ecosystem-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.5rem;
  }

  .programs-layout,
  .faq-section {
    grid-template-columns: 1fr;
  }

  .programs-heading {
    position: static;
    max-width: 780px;
  }

  .faq-heading {
    max-width: 620px;
  }

  .network-section {
    grid-template-columns: 1fr;
  }

  .network-copy {
    max-width: 720px;
  }

  .network-visual {
    min-height: 620px;
  }
}

@media (max-width: 820px) {
  .site-header {
    min-height: 76px;
    padding: 0.65rem 1rem;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .brand strong {
    font-size: 0.76rem;
  }

  .brand small {
    font-size: 0.58rem;
  }

  .main-nav {
    top: 77px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 128px 1.25rem 72px;
  }

  .hero-copy {
    max-width: 670px;
  }

  .hero h1 {
    font-size: clamp(3.15rem, 12vw, 5.7rem);
  }

  .portal-stage {
    width: min(92vw, 620px);
    margin: 1rem auto 0;
  }

  .portal-caption {
    right: 5%;
    bottom: 4%;
  }

  .hero-index {
    display: none;
  }

  .origin-section {
    grid-template-columns: 1fr;
  }

  .timeline {
    max-width: 650px;
  }

  .purpose-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.25rem;
  }

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

  .objective-card {
    grid-column: auto;
    min-height: 300px;
  }

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

  .legacy-stats article:nth-child(2) {
    border-right: 0;
  }

  .legacy-stats article:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  }

  .eligibility-panel {
    grid-template-columns: 1fr;
  }

  .eligibility-copy {
    min-height: 390px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  }

  .student-route {
    grid-template-columns: auto 1fr;
  }

  .student-route > a {
    grid-column: 2;
    justify-self: start;
  }

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

  .resource-link,
  .resource-link:nth-child(4),
  .resource-link:nth-child(5) {
    grid-column: auto;
  }

  .roadmap-list {
    grid-template-columns: 1fr 1fr;
    gap: 3rem 1.5rem;
  }

  .roadmap-list::before {
    display: none;
  }

  .network-visual {
    min-height: 540px;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
  }

  .site-footer p {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
  }
}

@media (max-width: 560px) {
  html {
    scroll-padding-top: 76px;
  }

  .brand span {
    display: grid;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .brand strong {
    font-size: 0.56rem;
    letter-spacing: 0.01em;
  }

  .brand small {
    font-size: 0.49rem;
    letter-spacing: 0.11em;
  }

  .header-actions {
    gap: 0.6rem;
  }

  .language-switch {
    font-size: 0.7rem;
  }

  .hero {
    padding-top: 112px;
  }

  .anniversary-badge {
    align-items: flex-start;
    max-width: 100%;
    border-radius: 18px 4px 18px 4px;
    line-height: 1.45;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4.4rem);
  }

  .hero-intro {
    font-size: 1rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 0.8rem;
  }

  .primary-cta {
    width: 100%;
  }

  .text-link {
    justify-content: space-between;
  }

  .portal-stage {
    width: 108vw;
    margin-left: -8vw;
  }

  .portal-caption {
    right: 8%;
    bottom: 1%;
    width: 210px;
  }

  .section-shell {
    width: min(100% - 2.2rem, 1240px);
  }

  .section-heading h2,
  .network-copy h2,
  .final-cta h2,
  .legacy-intro h2,
  .community-heading h2,
  .programs-heading h2,
  .ecosystem-heading h2,
  .roadmap-heading h2,
  .faq-heading h2 {
    font-size: clamp(2.45rem, 12vw, 3.7rem);
  }

  .origin-section {
    gap: 3.2rem;
  }

  .timeline-item {
    grid-template-columns: 50px 1fr;
    gap: 1rem;
  }

  .timeline::before {
    left: 24px;
  }

  .timeline-marker {
    width: 50px;
    height: 50px;
  }

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

  .objective-card {
    min-height: 270px;
    padding: 1.5rem;
  }

  .objective-number {
    top: 1.5rem;
    right: 1.5rem;
  }

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

  .legacy-stats article,
  .legacy-stats article:nth-child(2) {
    min-height: 150px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  }

  .legacy-stats article:last-child {
    border-bottom: 0;
  }

  .legacy-manifesto {
    grid-template-columns: 1fr;
  }

  .eligibility-copy {
    min-height: 420px;
    padding: 1.6rem;
  }

  .eligibility-copy > svg {
    margin-top: 4rem;
  }

  .eligibility-list {
    padding: 1.6rem;
  }

  .student-route {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .student-route > a {
    grid-column: 1;
  }

  .program-list article {
    grid-template-columns: 40px 1fr;
    gap: 0.9rem;
  }

  .program-icon {
    grid-column: 1;
    grid-row: 2;
  }

  .program-copy {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

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

  .roadmap-list {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .roadmap-node {
    margin-bottom: 1.3rem;
  }

  .faq-accordion [data-slot="accordion-content"] p {
    padding-right: 0;
    padding-left: 0;
  }

  .network-section {
    gap: 2.6rem;
  }

  .cohort-detail {
    grid-template-columns: 1fr;
  }

  .network-visual {
    width: calc(100% + 1rem);
    min-height: 480px;
    margin-left: -0.5rem;
    border-radius: 32px 8px 32px 8px;
  }

  .network-core {
    width: 72px;
    height: 72px;
  }

  .cohort-node.small {
    width: 48px;
    height: 48px;
  }

  .cohort-node.medium {
    width: 54px;
    height: 54px;
  }

  .cohort-node.large {
    width: 60px;
    height: 60px;
  }

  .cohort-node span {
    font-size: 0.65rem;
  }

  .final-cta {
    background-position: center 47%;
  }

  .final-ring {
    width: 330px;
    height: 330px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-year {
    grid-row: 2;
  }

  .site-footer p {
    grid-row: 3;
  }

  .interest-options {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
