:root {
  color-scheme: dark;
  --navy: #080f19;
  --ink: #141e29;
  --ivory: #ece0ca;
  --surface: #111e2c;
  --muted: #bbccd9;
  --field: #0d1723;
  --line: #334d63;
  --control-line: #67859d;
  --serif: Georgia, serif;
  --ease-out: cubic-bezier(.2, .7, .25, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  position: relative;
  isolation: isolate;
  margin: 0;
  background: var(--navy);
  color: var(--ivory);
  font: 16px/1.5 system-ui, sans-serif;
}
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: clamp(360px, 55vw, 600px);
  pointer-events: none;
  background: repeating-conic-gradient(#244a79 0% 25%, transparent 0% 50%) 0 0 / 12px 12px;
  mask-image: radial-gradient(ellipse 90% 100% at 68% 4%, #000, #0009 45%, transparent);
  opacity: .31;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #a8c7dc; outline-offset: 3px; }
.shell { width: min(1080px, calc(100% - 56px)); margin-inline: auto; }
.section { padding-block: clamp(24px, 3.6vw, 42px); }
.pill { border-radius: 999px; }

.top, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
}
.top { border-bottom: 1px solid #67859d42; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: .09em; white-space: nowrap; }
.brand-logo { display: block; width: 38px; height: 38px; border-radius: 50%; }
nav { display: flex; align-items: center; gap: 20px; font-size: .88rem; }
nav a:hover, .footer-social:hover { text-decoration: underline; }
.nav-register { padding: 6px 14px; border: 1px solid var(--line); background: var(--surface); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 4vw, 48px);
  padding-block: clamp(24px, 4.1vw, 52px) clamp(12px, 2.4vw, 28px);
}
.hero-copy { min-width: 0; }
.eyebrow {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow span {
  display: inline-block;
  width: 18px;
  height: 1px;
  margin-right: 7px;
  background: currentColor;
  vertical-align: middle;
}
h1, h2 { margin: 0; font: 400 1rem/1.04 var(--serif); letter-spacing: -.045em; }
h1 { font-size: clamp(2.65rem, 5.5vw, 5.2rem); }
h1 em { font-weight: 400; white-space: nowrap; }
h2 { font-size: clamp(2rem, 3.7vw, 3.4rem); }
.intro { max-width: 44ch; margin: 16px 0 20px; color: var(--muted); font-size: .97rem; }
.hero-actions { display: grid; gap: 6px; width: min(100%, 340px); }
.hero-tile {
  display: grid;
  grid-template: auto auto / 1fr auto;
  gap: 1px 10px;
  align-items: center;
  min-height: 62px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}
.hero-tile strong { font: 400 1.18rem/1.2 var(--serif); }
.tile-label { grid-column: 1; color: var(--muted); font-size: .62rem; letter-spacing: .12em; font-weight: 750; text-transform: uppercase; }
.tile-arrow { grid-area: 1 / 2 / span 2; }
.chevron {
  display: block;
  width: .58rem;
  height: .58rem;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  rotate: -45deg;
}
.hero-tile--primary { border-color: #d2bea0; background: var(--ivory); color: var(--ink); }
.hero-tile--primary .tile-label { color: #574c3e; }
.hero-tile:hover { border-color: var(--control-line); background: #1c3044; }
.hero-tile--primary:hover { border-color: #f0e7d8; background: #f5ebd9; }

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  isolation: isolate;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: -8% -4%;
  z-index: -1;
  background: radial-gradient(ellipse at center, #375b7b7a, transparent 69%);
}
.globe-stage { position: relative; width: min(100%, 398px); aspect-ratio: 1; }
.globe-stage svg { display: block; width: 100%; height: auto; }
.globe-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; touch-action: pan-y; }
.globe-ready .globe-canvas { opacity: 1; pointer-events: auto; cursor: grab; }
.globe-ready .globe-canvas.is-dragging { cursor: grabbing; }
.globe-ready svg { visibility: hidden; }

#committees .section { padding-top: 16px; }
.section-heading { margin-bottom: 16px; }
.committee-stacks { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: start; gap: 16px; }
.committee-division {
  min-width: 0;
  padding: clamp(10px, 1.6vw, 16px);
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(155deg, #162638, var(--field) 70%);
}
.committee-division h3 {
  margin: 0 0 10px;
  padding: 0 2px;
  font: 400 1.25rem/1.3 var(--serif);
}
.committee-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(110deg, #1a2d41, #142434);
}
.committee-card + .committee-card { margin-top: -3px; box-shadow: 0 -2px 5px #080f194f; }
.committee-card:focus-within { z-index: 1; }
.committee-card[open] { border-color: var(--control-line); background: #182b3e; }
.committee-card summary {
  display: grid;
  grid-template-columns: minmax(4.65rem, auto) minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 47px;
  padding: 8px 11px;
  border-radius: inherit;
  list-style: none;
  cursor: pointer;
}
.committee-card summary::-webkit-details-marker { display: none; }
.committee-card summary:hover { background: #789eb71c; }
.committee-card summary:focus-visible { outline-offset: -2px; }
.committee-code {
  justify-self: start;
  padding: 4px 6px;
  border-radius: 5px;
  background: #080f196e;
  color: #d9c7a9;
  font-size: .66rem;
  font-weight: 750;
  letter-spacing: .07em;
}
.committee-name { font-size: .89rem; line-height: 1.3; font-weight: 600; }
.committee-card summary .chevron { margin: 0 3px 3px 0; color: var(--muted); rotate: 45deg; }
.committee-card[open] summary .chevron { margin-bottom: -3px; rotate: 225deg; }
.committee-agendas { margin-inline: 11px; padding: 9px 2px 12px; border-top: 1px solid var(--line); }
.committee-agendas p { margin: 0; color: var(--muted); font-size: .88rem; }
.committee-agendas p + p { margin-top: 9px; }
.committee-agendas strong { display: block; margin-bottom: 2px; color: var(--ivory); font-size: .77rem; }

.sponsor-panel {
  padding: clamp(14px, 2.6vw, 25px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: radial-gradient(ellipse at 50% 0%, #20364b, var(--surface) 77%);
}
.sponsor-panel h2 { margin-bottom: 13px; text-align: center; font-size: clamp(1.8rem, 3vw, 2.65rem); }
.sponsor-stage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 136px), 1fr));
  gap: 8px;
  max-width: 700px;
  margin-inline: auto;
}
.sponsor-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  align-items: center;
  gap: 5px;
  min-width: 0;
  min-height: 120px;
  margin: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--field);
  text-align: center;
}
.sponsor-card figcaption { font-size: clamp(.73rem, 2.6vw, .93rem); font-weight: 650; line-height: 1.22; }
.sponsor-logo { position: relative; }
.sponsor-logo img { display: block; width: 100%; height: auto; }
.sponsor-logo--crust, .sponsor-logo--qalbe {
  width: min(100%, 74px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
}
.sponsor-logo--crust img, .sponsor-logo--qalbe img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--logo-width);
  translate: var(--logo-x) var(--logo-y);
}
.sponsor-logo--crust { --logo-width: 146%; --logo-x: -48%; --logo-y: -51.4%; }
.sponsor-logo--qalbe { --logo-width: 111%; --logo-x: -49.2%; --logo-y: -51.5%; }
.sponsor-logo--aryan { width: min(100%, 170px); }
.sponsor-logo--aryan img, .sponsor-logo--seemab img { border-radius: 6px; }
.sponsor-logo--seemab { width: min(100%, 74px); }

.sponsor-stage--rotating {
  --card-width: 42%;
  --side-offset: 77%;
  position: relative;
  display: block;
  height: 130px;
  overflow: clip;
  isolation: isolate;
}
.sponsor-stage--rotating .sponsor-card {
  position: absolute;
  inset-block: 4px;
  left: 50%;
  width: var(--card-width);
  transform: translateX(calc(-50% + var(--offset, 0%))) scale(var(--scale, 1));
}
.sponsor-card[data-position="featured"] {
  z-index: 2;
  border-color: #a3947e;
  background: #1b2d40;
  box-shadow: 0 4px 10px #080f1954;
}
.sponsor-card:is([data-position="previous"], [data-position="next"]) { --scale: .8; opacity: .62; }
.sponsor-card[data-position="previous"] { --offset: calc(-1 * var(--side-offset)); }
.sponsor-card[data-position="next"] { --offset: var(--side-offset); }
.sponsor-card[data-position^="out-"] { --scale: .68; opacity: 0; pointer-events: none; }
.sponsor-card[data-position="out-left"] { --offset: -155%; }
.sponsor-card[data-position="out-right"] { --offset: 155%; }
.sponsor-controls { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.sponsor-control {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--control-line);
  border-radius: 50%;
  background: var(--field);
  color: var(--ivory);
}
.sponsor-control:hover { background: #273f56; }
.sponsor-control[data-step="-1"] .chevron { margin-left: 3px; rotate: 135deg; }
.sponsor-control[data-step="1"] .chevron { margin-right: 3px; }
.rotation-icon { width: 8px; height: 10px; border-inline: 2px solid currentColor; }
[data-playing="false"] .rotation-icon {
  width: 0;
  height: 0;
  margin-left: 2px;
  border: 5px solid transparent;
  border-left: 8px solid currentColor;
  border-right: 0;
}
.sponsor-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.reel-section { padding-top: 12px; }
.reel-card {
  display: grid;
  grid-template-columns: minmax(0, .42fr) minmax(0, 1fr);
  align-items: stretch;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}
.reel-card:hover { border-color: var(--control-line); }
.reel-cover {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 116px;
  overflow: hidden;
  border-radius: 10px;
  background: repeating-radial-gradient(circle at center, transparent 0 21px, #93b6d12b 22px 23px, transparent 24px 34px),
    radial-gradient(ellipse at center, #375b7b, #142337 76%, var(--field));
}
.reel-cover img { display: block; width: 57px; height: 57px; border: 1px solid #d5e1ea66; border-radius: 50%; object-fit: cover; }
.reel-play {
  position: absolute;
  inset: auto 7px 7px auto;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--ivory);
}
.reel-play::before { content: ""; margin-left: 2px; border-block: 4px solid transparent; border-left: 7px solid var(--ink); }
.reel-copy { align-self: center; padding: clamp(8px, 2.5vw, 22px); }
.reel-copy .eyebrow { margin-bottom: 5px; }
.reel-copy h2 { font-size: clamp(1.55rem, 3.1vw, 2.65rem); }
.reel-cta { display: inline-block; margin-top: 7px; font-size: .82rem; font-weight: 650; }
.reel-card:hover .reel-cta { text-decoration: underline; }

#register { padding-top: 12px; }
.register-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: clamp(14px, 2.7vw, 25px);
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}
.register-intro .eyebrow { margin-bottom: 5px; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 15px;
  background: var(--ivory);
  color: var(--ink);
  font-size: .87rem;
  font-weight: 750;
}
.button:hover { background: #f5ebd9; }
.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .81rem; }
.footer .brand-logo { width: 32px; height: 32px; }
.footer-social { color: var(--ivory); white-space: nowrap; }

.scroll-progress { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero-tile, .reel-card, .sponsor-control { transition: border-color .2s, background-color .2s; }
  .hero-tile .chevron { transition: translate .2s var(--ease-out); }
  .hero-tile:hover .chevron { translate: 3px 0; }
  .sponsor-stage--rotating .sponsor-card {
    transition: transform .58s var(--ease-out), opacity .46s, border-color .45s, background-color .45s, box-shadow .45s;
  }
  .sponsor-stage--rotating [data-repositioning] { transition: none; }
  .committee-card[open] .committee-agendas { animation: agenda-enter .2s var(--ease-out) both; }
  @keyframes agenda-enter { from { opacity: .5; translate: 0 -3px; } }
  @supports (animation-timeline: scroll()) {
    .scroll-progress {
      display: block;
      position: fixed;
      inset: 0 0 auto;
      height: 2px;
      z-index: 3;
      pointer-events: none;
      background: var(--ivory);
      transform-origin: left;
      animation: reading-progress linear both;
      animation-timeline: scroll(root block);
    }
    @keyframes reading-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }
}

@media (max-width: 720px) {
  .committee-stacks { grid-template-columns: 1fr; gap: 9px; }
}
@media (max-width: 560px) {
  .shell { width: calc(100% - 30px); }
  .top, .footer { padding-block: 12px; }
  nav { gap: 11px; }
  .hero { grid-template-columns: 1fr; gap: 8px; padding-bottom: 5px; }
  .hero-actions { width: 100%; }
  .hero-art { overflow: clip; }
  .globe-stage { width: min(59vw, 240px); }
  .sponsor-stage--rotating { --card-width: 54%; --side-offset: 56%; }
  .sponsor-card:is([data-position="previous"], [data-position="next"]) { --scale: .75; opacity: .48; }
  .reel-cover { min-height: 97px; }
  .footer { flex-wrap: wrap; gap: 8px 12px; }
  .footer > span { flex-basis: 100%; order: 1; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
