@font-face {
  font-family: ClubSerif;
  src: url(/assets/club-serif.woff2) format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  --cosmos-deep: #08101f;
  --cosmos-navy: #0b1630;
  --cosmos-mid: #102042;
  --cosmos-surface: #122244;
  --cosmos-card: rgba(16, 31, 61, 0.78);
  --sky-accent: #beddf2;
  --sky-soft: rgba(190, 221, 242, 0.24);
  --gold: #c8a869;
  --gold-bright: #ebd6a6;
  --gold-cream: #f3ead3;
  --gold-line: rgba(200, 168, 105, 0.26);
  --paper: #f5f5f0;
  --paper-card: #fafbf8;
  --ink: #101d35;
  --ink-soft: #4e5f73;
  --border-light: #d4dad7;
  --text-light: #eef2f7;
  --text-muted: #bac6d8;
  --danger: #d45b5b;
  --success: #3e9d72;
  --serif: ClubSerif, "Noto Serif SC", "Songti SC", Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --num: Georgia, ClubSerif, serif;
  --mono: "JetBrains Mono", Consolas, "Courier New", monospace;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow-soft: 0 18px 44px rgba(6, 14, 30, 0.28);
  --shadow-card: 0 10px 28px rgba(16, 29, 53, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 15px/1.75 var(--sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body.theme-dark {
  background: linear-gradient(180deg, #0d1a38 0%, #0b1630 42%, #091328 76%, #08101f 100%);
  color: var(--text-light);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; }
button, a { touch-action: manipulation; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--sky-accent);
  outline-offset: 3px;
}

h1, h2, h3, h4, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.24; }
h3, h4 { font-weight: 600; line-height: 1.35; }

.wrap {
  width: min(1240px, 90vw);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 90;
  background: var(--gold-bright);
  color: var(--cosmos-deep);
  padding: 8px 14px;
  border-radius: 4px;
  font-weight: 600;
}
.skip:focus { top: 10px; }

/* ---------- Header / Navigation ---------- */
.mast {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 22, 48, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gold-line);
  color: var(--text-light);
}

.bar {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand img {
  width: 52px;
  max-height: 28px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(86%) sepia(32%) saturate(460%) hue-rotate(346deg) brightness(98%);
}

.brand span {
  border-left: 1px solid rgba(200, 168, 105, 0.45);
  padding-left: 12px;
  color: var(--gold-cream);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}

.main-nav a {
  font-size: 14px;
  color: #cad5e4;
  padding: 8px 2px;
  position: relative;
  white-space: nowrap;
  transition: color 0.16s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--gold-bright);
}

.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  background: var(--gold);
}

.bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-pill {
  font-size: 13px;
  border: 1px solid rgba(200, 168, 105, 0.58);
  border-radius: 4px;
  padding: 7px 14px;
  color: var(--gold-bright);
  background: rgba(200, 168, 105, 0.08);
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.nav-pill:hover {
  background: rgba(200, 168, 105, 0.2);
  border-color: var(--gold-bright);
}

.menu-btn {
  display: none;
  background: transparent;
  color: var(--gold-cream);
  border: 1px solid rgba(190, 221, 242, 0.42);
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
}

/* ---------- Center-Outward Aperture Opening Animation ---------- */
.aperture-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 48%, rgba(190, 221, 242, 0.14) 0%, transparent 28%),
    repeating-radial-gradient(circle at 50% 48%, rgba(200, 168, 105, 0.28) 0 1px, transparent 2px 74px),
    radial-gradient(circle at 50% 48%, #122449 0%, #0b1630 56%, #070e1d 100%);
  overflow: hidden;
  transition: opacity 0.45s ease;
}

.aperture-overlay.expanding {
  animation: apertureReveal 1.05s cubic-bezier(0.24, 0.04, 0.16, 1) forwards;
}

.aperture-core {
  text-align: center;
  padding: 24px;
  pointer-events: none;
  animation: coreFade 0.9s ease forwards;
}

.aperture-diamond {
  width: 22px;
  height: 22px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  transform: rotate(45deg);
  box-shadow: 0 0 28px rgba(235, 214, 166, 0.55);
}

.aperture-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0.14em;
  color: var(--gold-bright);
}

.aperture-sub {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.34em;
  color: var(--sky-accent);
  text-transform: uppercase;
}

.aperture-skip {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 125;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(200, 168, 105, 0.5);
  background: rgba(8, 16, 31, 0.85);
  color: var(--gold-cream);
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.aperture-skip:hover {
  background: rgba(200, 168, 105, 0.2);
}

@keyframes apertureReveal {
  0% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 0, 50% 48%, 50% 48%, 50% 48%, 50% 48%, 50% 48%, 0 0);
    opacity: 1;
  }
  78% {
    opacity: 1;
  }
  100% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 0, -25% -25%, -25% 125%, 125% 125%, 125% -25%, -25% -25%, 0 0);
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes coreFade {
  0% { opacity: 1; transform: scale(1); }
  55% { opacity: 0.9; transform: scale(1.06); }
  100% { opacity: 0; transform: scale(1.18); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .aperture-overlay, .aperture-skip { display: none !important; }
}

/* ---------- Buttons & Interactive Controls ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 4px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.14s ease, filter 0.14s ease, background 0.14s ease;
  white-space: nowrap;
}

.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn.gold {
  background: linear-gradient(105deg, #ebd6a6 0%, #d3b273 100%);
  border-color: #ebd6a6;
  color: #0b1630;
}

.btn.ghost-dark {
  background: rgba(16, 30, 56, 0.72);
  border-color: rgba(190, 221, 242, 0.42);
  color: #fff;
}

.btn.outline-light {
  background: transparent;
  border-color: rgba(16, 29, 53, 0.35);
  color: var(--ink);
}

.btn.outline-light:hover {
  background: rgba(16, 29, 53, 0.05);
  filter: none;
}

.btn.danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.btn.success {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.btn.sm {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 13px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ---------- Editorial Eyebrow & Section Headers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
}

.eyebrow.ink {
  color: #556a82;
}

.eyebrow.ink::before {
  background: var(--gold);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(28px, 3vw, 42px);
  margin-top: 8px;
}

.section-head p {
  max-width: 640px;
  margin-top: 10px;
  color: var(--ink-soft);
}

.cosmic-band .section-head h2 { color: var(--gold-cream); }
.cosmic-band .section-head p { color: var(--text-muted); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.cosmic-band .text-link { color: var(--gold-bright); }

/* ---------- Cosmic Home Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(112deg, #091328 16%, #0f2144 58%, #0d1c38 100%);
}

.hero::before,
.inner-hero::before,
.cosmic-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url(/assets/stars.png);
  background-size: 520px 360px;
  opacity: 0.56;
  pointer-events: none;
}

.hero-art {
  position: absolute;
  top: 0;
  right: 0;
  width: 58%;
  height: 100%;
  z-index: -1;
  mix-blend-mode: screen;
  background: url(/assets/chip_city_v_k.webp) right 52% / 90% auto no-repeat;
  mask-image: linear-gradient(96deg, transparent 2%, #000 36%);
  opacity: 0.92;
  pointer-events: none;
}

.hero-orbits {
  position: absolute;
  width: 68%;
  aspect-ratio: 1.65;
  top: -16%;
  right: -14%;
  z-index: -1;
  border: 1px solid rgba(190, 221, 242, 0.22);
  border-radius: 50%;
  transform: rotate(-22deg);
  pointer-events: none;
}

.hero-orbits::before,
.hero-orbits::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(200, 168, 105, 0.24);
  inset: -34px;
}

.hero-orbits::after {
  inset: -76px;
  border-color: rgba(190, 221, 242, 0.14);
}

.hero-inner {
  min-height: clamp(500px, 44vw, 640px);
  padding: clamp(64px, 6vw, 104px) 0 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 680px;
}

.hero h1 {
  font-size: clamp(46px, 6vw, 88px);
  letter-spacing: 0.04em;
  color: var(--gold-bright);
  margin: 16px 0 18px;
  text-shadow: 0 4px 36px rgba(4, 12, 28, 0.5);
}

.hero-lead {
  font-size: clamp(19px, 2vw, 25px);
  color: #f6f4ec;
  line-height: 1.5;
  font-weight: 500;
}

.hero-copy {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 15px;
  max-width: 580px;
  line-height: 1.85;
}

.hero .actions { margin-top: 30px; }

.hero-ticker {
  border-top: 1px solid rgba(190, 221, 242, 0.2);
  background: rgba(7, 15, 30, 0.72);
  color: #d3dfec;
}

.hero-ticker .wrap {
  min-height: 54px;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ticker-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: center;
}

.ticker-items a {
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ticker-items a:hover { color: var(--gold-bright); }

.ticker-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold-bright);
  padding: 2px 8px;
  border: 1px solid var(--gold-line);
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-end {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #9bb0c7;
}

/* ---------- Inner Page Hero ---------- */
.inner-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(108deg, #0b1630 15%, #152a50 85%);
  color: #fff;
  padding: 36px 0 46px;
  border-bottom: 1px solid var(--gold-line);
}

.inner-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -24%;
  width: 48%;
  height: 135%;
  z-index: -1;
  mix-blend-mode: screen;
  background: url(/assets/riemann_h_k.webp) center / cover no-repeat;
  opacity: 0.38;
  mask-image: linear-gradient(90deg, transparent, #000 65%);
  pointer-events: none;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #b7c8db;
  margin-bottom: 14px;
}

.breadcrumb a:hover { color: var(--gold-bright); }

.inner-hero h1 {
  font-size: clamp(32px, 4.2vw, 54px);
  color: var(--gold-bright);
  margin: 10px 0 12px;
}

.inner-hero p {
  max-width: 740px;
  color: #d3dfec;
  font-size: 15px;
  line-height: 1.8;
}

/* ---------- Bands & Sections ---------- */
.section {
  padding: 64px 0;
}

.section + .section {
  border-top: 1px solid var(--border-light);
}

.cosmic-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 72px 0;
  background: linear-gradient(180deg, #0d1a38 0%, #0b1630 55%, #08101f 100%);
  color: var(--text-light);
}

.cosmic-band + .cosmic-band {
  border-top: 1px solid rgba(200, 168, 105, 0.18);
}

/* ---------- Three Barriers & Benefits Grid ---------- */
.barriers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.barrier-card {
  background: rgba(16, 32, 62, 0.72);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.barrier-num {
  font-family: var(--num);
  font-size: 32px;
  color: var(--gold-bright);
  line-height: 1;
  margin-bottom: 14px;
}

.barrier-card p {
  color: #e6ecf5;
  font-size: 16px;
  line-height: 1.7;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.benefit-card {
  position: relative;
  overflow: hidden;
  background: rgba(14, 28, 56, 0.84);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.benefit-card.featured {
  border-color: rgba(235, 214, 166, 0.52);
  background: linear-gradient(135deg, rgba(20, 39, 76, 0.92), rgba(11, 22, 48, 0.92));
}

.benefit-art {
  position: absolute;
  right: -12px;
  top: -10px;
  width: 170px;
  height: 170px;
  object-fit: cover;
  opacity: 0.22;
  mix-blend-mode: screen;
  mask-image: radial-gradient(circle at 70% 30%, #000 20%, transparent 72%);
  pointer-events: none;
}

.benefit-no {
  font-family: var(--num);
  font-size: 26px;
  color: var(--gold);
  line-height: 1;
}

.benefit-q {
  color: var(--gold-bright);
  font-size: 14px;
  font-weight: 500;
}

.benefit-card h3 {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--gold-cream);
}

.benefit-card p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.8;
}

.benefit-highlight {
  margin-top: 6px;
  padding: 10px 14px;
  border-left: 3px solid var(--gold-bright);
  background: rgba(200, 168, 105, 0.1);
  color: var(--gold-cream);
  font-size: 13.5px;
}

.perk-banner {
  margin-top: 24px;
  padding: 22px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(190, 221, 242, 0.34);
  background: rgba(190, 221, 242, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.perk-banner h3 {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--gold-bright);
  margin-bottom: 4px;
}

.perk-banner p {
  color: #d6e2f0;
  font-size: 14px;
}

/* ---------- Cards & Grids ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--paper-card);
  border: 1px solid var(--border-light);
  border-top: 3px solid #486481;
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-card);
  min-width: 0;
}

.card.gold-top { border-top-color: var(--gold); }

.card-cat {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #536b84;
  text-transform: uppercase;
}

.card h3 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
}

.card p {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.75;
}

.card-foot {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Case Cards ---------- */
.case-card {
  background: var(--paper-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  min-width: 0;
}

.case-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(16, 29, 53, 0.12);
}

.case-thumb {
  aspect-ratio: 16 / 10;
  background: #0d1a38;
  overflow: hidden;
  position: relative;
}

.case-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.case-client {
  font-size: 12.5px;
  color: #526a83;
  font-weight: 600;
}

.case-body h3 {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
}

.case-metric {
  font-size: 13.5px;
  color: #8a6423;
  font-weight: 600;
}

.case-meta {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #e6eae8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

/* ---------- Pricing / Closing Join Band ---------- */
.join-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gold-line);
  background: linear-gradient(120deg, rgba(13, 26, 56, 0.96), rgba(9, 18, 38, 0.96));
  padding: 40px 38px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.75fr);
  gap: 36px;
  align-items: center;
}

.join-rocket {
  position: absolute;
  left: -24px;
  bottom: -24px;
  width: 240px;
  opacity: 0.24;
  mix-blend-mode: screen;
  pointer-events: none;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin: 18px 0 12px;
}

.price-main {
  font-family: var(--num);
  font-size: clamp(38px, 4.5vw, 56px);
  color: var(--gold-bright);
  line-height: 1;
}

.price-strike {
  font-family: var(--num);
  font-size: 20px;
  color: #8da0b8;
  text-decoration: line-through;
}

.price-note {
  font-size: 13.5px;
  color: var(--sky-accent);
}

.rules-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.qr-box {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.qr-box img {
  width: 184px;
  height: 184px;
  margin: 0 auto 12px;
  border-radius: 6px;
  object-fit: contain;
}

.qr-box strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
}

.qr-box small {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 12.5px;
}

/* ---------- Events & Schedule Layout ---------- */
.event-card {
  background: var(--paper-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 26px;
  align-items: start;
  box-shadow: var(--shadow-card);
}

.event-card + .event-card { margin-top: 20px; }

.event-date {
  border-right: 1px solid var(--border-light);
  padding-right: 18px;
  font-family: var(--num);
  color: #2c4a6b;
}

.event-date strong {
  display: block;
  font-size: 34px;
  line-height: 1.05;
}

.event-date small {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
}

.status-chip {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 3px;
  background: #e2edf4;
  color: #1f4463;
}

.status-chip.gold { background: #f3e5c3; color: #6a4c14; }
.status-chip.green { background: #dcf2e7; color: #196441; }
.status-chip.red { background: #fae1e1; color: #9c2b2b; }
.status-chip.dark { background: #1e3152; color: var(--gold-bright); }

.agenda-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  border-top: 1px solid #e5eae8;
}

.agenda-list li {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #e5eae8;
  font-size: 14px;
}

.agenda-list b {
  font-family: var(--mono);
  font-size: 13px;
  color: #365575;
}

/* ---------- Tabs & Filters ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter-btn {
  padding: 7px 16px;
  border-radius: 4px;
  border: 1px solid #b5c0ca;
  background: transparent;
  color: #2f465c;
  font-size: 13.5px;
  cursor: pointer;
}

.filter-btn[aria-pressed="true"],
.filter-btn.active {
  background: var(--cosmos-navy);
  border-color: var(--cosmos-navy);
  color: var(--gold-bright);
}

/* ---------- Split Layout & Aside ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.85fr);
  gap: 36px;
  align-items: start;
}

.aside-box {
  background: var(--paper-card);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px;
}

/* ---------- Forms & Workbenches ---------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field.full { grid-column: 1 / -1; }

.field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.theme-dark .field label,
.cosmic-band .field label {
  color: var(--gold-cream);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #b9c4ce;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
}

.field textarea { resize: vertical; min-height: 92px; }

.checklist {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: #f0f3f1;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink);
  cursor: pointer;
}

.check-item input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.alert {
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
  margin-top: 12px;
}
.alert.ok { background: #dff3e8; color: #165b3a; border: 1px solid #a9dec0; }
.alert.err { background: #fbe3e3; color: #8c2626; border: 1px solid #ebb2b2; }
.alert.info { background: #e3eef7; color: #1b4466; border: 1px solid #b4d1e7; }

/* ---------- KPI & Tables (Admin & Researcher Workbench) ---------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.kpi-card {
  background: var(--paper-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 18px;
}

.kpi-card small {
  display: block;
  font-size: 12px;
  color: var(--ink-soft);
}

.kpi-card strong {
  display: block;
  margin-top: 6px;
  font-family: var(--num);
  font-size: 28px;
  color: var(--ink);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--paper-card);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 740px;
  font-size: 13.5px;
}

th, td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #e4e8e6;
  vertical-align: top;
}

th {
  background: #edf1f4;
  color: #243b54;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Modal Dialog ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6, 13, 28, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-backdrop[hidden] { display: none !important; }

.modal-card {
  width: min(620px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--paper-card);
  color: var(--ink);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gold-line);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: #fff;
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
}

/* ---------- Footer ---------- */
.foot {
  background: #08101f;
  color: #b7c6d8;
  border-top: 1px solid var(--gold-line);
  padding: 42px 0 34px;
}

.foot-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 13.5px;
}

.foot-links a:hover { color: var(--gold-bright); }

.foot-meta {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(190, 221, 242, 0.12);
  font-size: 12.5px;
  color: #8296ae;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

[hidden] { display: none !important; }

/* ---------- Responsive Breakpoints (1024px & 768px / 390px) ---------- */
@media (max-width: 1024px) {
  .cards-3, .barriers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .join-panel { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .wrap { width: 92vw; }
  .bar { min-height: 62px; }
  .menu-btn { display: inline-flex; align-items: center; }
  .bar-actions .nav-pill { display: none; }
  .main-nav {
    display: none;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    background: #0b1630;
    border-bottom: 1px solid var(--gold-line);
    padding: 14px 4vw 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    box-shadow: 0 14px 28px rgba(4, 10, 22, 0.5);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 8px; border-bottom: 1px solid rgba(200, 168, 105, 0.12); }

  .hero-inner { min-height: 440px; padding: 44px 0 46px; }
  .hero-art { width: 88%; opacity: 0.45; right: -16%; mask-image: linear-gradient(90deg, transparent, #000 65%); }
  .hero h1 { font-size: clamp(38px, 11vw, 56px); }
  .ticker-end { display: none; }

  .section, .cosmic-band { padding: 44px 0; }
  .cards-3, .cards-2, .cards-4, .barriers-grid, .benefits-grid, .form-grid {
    grid-template-columns: 1fr;
  }
  .event-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px;
  }
  .event-date {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding: 0 0 10px;
    display: flex;
    align-items: baseline;
    gap: 10px;
  }
  .agenda-list li { grid-template-columns: 1fr; gap: 2px; }
  .join-panel { padding: 24px 20px; }
  .modal-card { padding: 22px 18px; }
}
