:root {
  --navy:    #0A2472;
  --saffron: #E08A2E;
  --green:   #1B6B3A;
  --ink:     #1A1A1A;
  --grey:    #6B7280;
  --line:    #E5E7EB;
  --bg:      #FFFFFF;
  --measure: 68ch;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* nav */
.nav {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 12px rgba(10, 20, 45, 0.04);
  z-index: 10;
}
.nav-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.nav-logo {
  width: 34px;
  height: 34px;
  flex: none;
}
.wordmark {
  font-family: "EB Garamond", serif;
  font-size: 22px;
  letter-spacing: 0.14em;
  color: var(--navy);
}
.nav nav { display: flex; gap: 30px; }
.nav nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--grey);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav nav a:hover { color: var(--navy); }
.nav nav a.active { color: var(--navy); border-color: var(--saffron); }

/* hero */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 82vh;
  padding: 80px 24px;
}
.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 1.4s ease-in-out;
}
.slide.is-active { opacity: 1; }
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(10, 20, 45, 0.42) 0%,
    rgba(10, 20, 45, 0.34) 42%,
    rgba(10, 20, 45, 0.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.hero-content h1 { color: #FFFFFF; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35); }
.hero-content .sub { color: rgba(255, 255, 255, 0.9); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3); }
.hero-content .status {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
}
.crest {
  width: 168px;
  height: auto;
  margin-bottom: 32px;
}
.flag {
  width: 46px;
  height: auto;
  display: block;
  margin: 0 auto 22px;
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.hero .crest { margin-bottom: 20px; }
.hero h1 {
  font-family: "EB Garamond", serif;
  font-weight: 500;
  font-size: clamp(34px, 5.5vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}
.sub {
  max-width: 54ch;
  margin: 0 auto 34px;
  color: var(--grey);
  font-size: 18px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--saffron);
  flex: none;
}

/* standalone page header */
.page-hero {
  max-width: 1040px;
  margin: 0 auto;
  padding: 72px 24px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.page-hero h1 {
  font-family: "EB Garamond", serif;
  font-weight: 500;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.1;
  color: var(--navy);
  margin: 0 0 12px;
}
.page-hero .page-sub {
  max-width: var(--measure);
  color: var(--grey);
  font-size: 18px;
  margin: 0;
}
.page-hero-text { flex: 1; min-width: 0; }
.page-crest { width: 92px; height: 92px; flex: none; }
@media (max-width: 640px) { .page-crest { display: none; } }

/* bands */
.band {
  max-width: 1040px;
  margin: 0 auto;
  padding: 56px 24px;
  border-top: 1px solid var(--line);
}
.band h2 {
  font-family: "EB Garamond", serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--saffron);
  margin: 0 0 20px;
}
.band h2 .brandmark { text-transform: none; }
.band p { max-width: var(--measure); margin: 0 0 12px; }
.band ul { max-width: var(--measure); margin: 0 0 14px; padding-left: 20px; }
.band ul li { margin: 7px 0; }
.band a { color: var(--navy); text-decoration-color: var(--line); }
.band a:hover { text-decoration-color: var(--saffron); }
.muted { color: var(--grey); }

/* steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: var(--measure);
  counter-reset: s;
}
.steps li {
  counter-increment: s;
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.steps li::before {
  content: counter(s);
  font-family: "EB Garamond", serif;
  font-size: 14px;
  color: var(--saffron);
  width: 16px;
  flex: none;
}
.steps .step-body { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.steps .step-body span { font-weight: 500; }
.steps .step-body small { font-size: 13px; color: var(--grey); line-height: 1.45; }
.steps em {
  font-style: normal;
  font-size: 14px;
  color: var(--grey);
  white-space: nowrap;
}

/* gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0 16px;
}
.photo {
  margin: 0;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FAFAF8;
  border: 1px dashed var(--line);
  border-radius: 6px;
}
.photo span {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  opacity: 0.6;
}
.photo-wide {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 6;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

@media (max-width: 640px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .photo-wide { aspect-ratio: 16 / 9; }
}

/* pdf embed */
.pdf-embed {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.pdf-embed iframe {
  width: 100%;
  height: 82vh;
  min-height: 560px;
  border: 0;
  display: block;
}
.credit {
  max-width: var(--measure);
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--grey);
}
.credit a { color: var(--navy); text-decoration-color: var(--line); }

/* compact resource list */
.res-list {
  max-width: var(--measure);
  margin-top: 8px;
  border-top: 1px solid var(--line);
}
.res-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 6px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: background .12s;
}
a.res-item:hover { background: #fafaf8; }
.res-body { display: flex; flex-direction: column; gap: 3px; }
.res-title { font-weight: 500; color: var(--navy); }
.res-desc { color: var(--grey); font-size: 13.5px; line-height: 1.4; }
.res-arrow { color: var(--saffron); font-size: 18px; flex: none; }
.res-item.is-soon { color: var(--grey); }
.res-item.is-soon .res-title { color: var(--grey); }

/* register call-to-action */
a.register-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 14px 26px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .15s, transform .1s;
}
a.register-cta:hover { background: #142063; transform: translateY(-1px); }
a.register-cta .arr { color: var(--saffron); }

/* disambiguation / important note callout */
.notice {
  max-width: var(--measure);
  margin: 4px 0;
  padding: 15px 20px;
  background: #FFF7ED;
  border-left: 4px solid var(--saffron);
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}
.notice strong { color: var(--navy); }
.notice u { text-decoration-thickness: 2px; text-underline-offset: 2px; }

/* embedded google form */
.form-embed {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.form-embed iframe {
  display: block;
  width: 100%;
  min-height: 900px;
  border: 0;
}

/* physics-match steps table */
.match-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 6px;
  font-size: 15px;
}
.match-table caption {
  text-align: left;
  font-weight: 600;
  color: var(--navy);
  padding-bottom: 8px;
}
.match-table th,
.match-table td {
  border: 1px solid var(--line);
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
}
.match-table thead th {
  background: #F5F6FA;
  color: var(--navy);
  font-weight: 600;
}
.match-table td.t-time,
.match-table th.t-time { text-align: right; white-space: nowrap; }

/* read more link */
.read-more {
  display: inline-block;
  margin-top: 4px;
  color: var(--navy);
  font-weight: 500;
  text-decoration-color: var(--line);
}
.read-more:hover { text-decoration-color: var(--saffron); }

/* alumni marquee */
.alumni { margin: 30px 0 4px; }
.alumni-label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--grey);
  margin: 0 0 16px;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee-track span {
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 500;
  color: var(--navy);
  white-space: nowrap;
  margin: 0 9px;
  padding: 9px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  display: inline-flex;
  align-items: center;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-duration: 90s; }
}

/* faq accordion */
.faq { max-width: var(--measure); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  padding: 17px 0;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--saffron); font-size: 20px; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0; padding: 0 0 18px; color: var(--grey); max-width: none; }

/* site footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.85); margin-top: 44px; }
.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 44px 24px 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px 64px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand-text { display: flex; flex-direction: column; gap: 2px; }
.footer-logo { width: 52px; height: 52px; flex: none; }
.footer-name { font-family: "EB Garamond", serif; font-size: 22px; letter-spacing: 0.12em; color: #fff; margin: 0; line-height: 1.1; }
.footer-tag { font-size: 13px; color: rgba(255,255,255,0.65); margin: 0; line-height: 1.3; }
.footer-brand { margin-right: auto; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.55); margin: 0 0 3px; }
.footer-col a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bar { border-top: 1px solid rgba(255,255,255,0.15); }
.footer-bar-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: rgba(255,255,255,0.6);
}
.footer-bar-inner a { color: rgba(255,255,255,0.6); }

/* contact rows with icons */
.contact-line { display: flex; align-items: center; gap: 11px; margin: 0 0 12px; }
.contact-icon { width: 20px; height: 20px; color: var(--saffron); flex: none; }

/* lightbox arrows */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.28); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
@media (max-width: 640px) {
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

.register-line { max-width: var(--measure); margin: 22px 0 12px; font-weight: 500; color: var(--ink); }
.gallery-more { margin-top: 18px; }
.gallery-more a { color: var(--navy); font-weight: 500; }
.team-leaders { max-width: var(--measure); margin: 0 0 10px; }
.team-leaders strong { color: var(--navy); }

/* gallery lightbox */
.photo { cursor: zoom-in; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 20, 45, 0.9);
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 96vw;
  max-height: 92vh;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.28); }

/* team / congratulations */
.team-cheer {
  font-family: "EB Garamond", serif;
  font-weight: 500;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.15;
  color: var(--navy);
  max-width: var(--measure);
  margin: 0 0 24px;
}
.team-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  max-width: var(--measure);
  counter-reset: t;
}
.team-list li {
  counter-increment: t;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-weight: 500;
}
.team-list li::before {
  content: counter(t);
  font-family: "EB Garamond", serif;
  font-size: 14px;
  color: var(--saffron);
  width: 16px;
  flex: none;
}
.team-thanks {
  max-width: var(--measure);
  color: var(--grey);
  margin: 0 0 28px;
}
.team-photo {
  margin: 0;
}
.team-photo img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* footer */
footer {
  border-top: 1px solid var(--line);
  margin-top: 24px;
}
footer p {
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 24px;
  font-size: 13px;
  color: var(--grey);
}

@media (max-width: 640px) {
  /* stack the nav so the links wrap instead of overflowing off-screen */
  .nav { position: static; }
  .nav-inner {
    flex-direction: column;
    align-items: center;
    height: auto;
    gap: 10px;
    padding: 12px 16px;
  }
  .nav nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    width: 100%;
  }
  .nav nav a { font-size: 13.5px; padding: 2px 0; }
  .hero { padding: 56px 24px 48px; }
  .crest { width: 128px; }
}
