/* Honeypot field — visually removed from layout but still present in the DOM so bots fill it */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

:root {
  color-scheme: light only;
  --surface-0: #ffffff;
  --surface-1: #fafbff;
  --surface-2: #f1f4fe;
  --surface-3: #e6ecfd;
  --ink-1: #18191e;
  --ink-2: #4a525c;
  --ink-3: #6b7399;
  --ink-4: #a0a9b3;
  --rule: #cdd5ee;
  --rule-faint: #e4eafb;
  --warm: #4338ca;
  --warm-hover: #312e81;
  --warm-surface: #eef2ff;
  --warm-ink: #ffffff;
  --warm-gradient: linear-gradient(145deg, #1a2149 0%, #24337f 58%, #312e81 100%);
  --warm-gradient-hover: linear-gradient(145deg, #212857 0%, #2c4296 58%, #3d3a9a 100%);
  --font-sans: "Inter", -apple-system, system-ui, sans-serif;
  --font-reading: "Source Serif 4", Georgia, serif;
  --base-size: 15px;
  --max-width: 1180px;
  --shadow: 0 24px 64px rgba(67, 56, 202, 0.08);
  --shadow-soft: 0 14px 34px rgba(24, 25, 30, 0.06);
}


* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: var(--base-size);
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--ink-2);
  background: #ffffff;
}

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

img,
video {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

::selection {
  background: color-mix(in srgb, var(--warm) 20%, transparent);
}

.page-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 1rem 0 4rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 64px;
  padding: 0 max(1rem, calc((100vw - var(--max-width)) / 2 + 1rem));
  border-bottom: 1px solid var(--rule-faint);
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px) saturate(180%);
  -webkit-backdrop-filter: blur(8px) saturate(180%);
  will-change: transform;
  transform: translateZ(0);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.1rem 0.15rem 0.1rem 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.brand:hover,
.brand:focus-visible {
  transform: translateY(-1px);
  opacity: 0.92;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 28px;
  flex: 0 0 auto;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: hue-rotate(-18deg) saturate(85%) brightness(105%) drop-shadow(0 0 10px rgba(180, 200, 255, 0.5));
}

.brand-text {
  display: inline-flex;
  align-items: center;
}

.brand-text strong {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink-1);
}

.gallery-header p,
.connect-copy p,
.history-item p,
.story-copy p,
.event-strip p {
  color: var(--ink-3);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0.25rem;
  border: 1px solid #c9cdf8;
  border-radius: 999px;
  background: linear-gradient(180deg, #fbfcff 0%, #f3f5ff 100%);
  color: #253472;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 1px 2px rgba(36, 51, 127, 0.04);
  font-size: 0.9rem;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.site-nav:hover {
  border-color: #b4b9f1;
  background: linear-gradient(180deg, #f7f8ff 0%, #ecefff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 2px 8px rgba(36, 51, 127, 0.06);
}

.nav-sep {
  padding: 0 0.1rem;
  color: #c9cdf8;
  user-select: none;
  pointer-events: none;
  font-weight: 400;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0 0.85rem;
  border-radius: 999px;
  font-weight: 500;
  color: #253472;
  transition: background-color 150ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.85);
  color: #253472;
}


.site-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0 1.2rem;
  border-radius: 999px;
  border: 1px solid #253472;
  background: var(--warm-gradient);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 4px 12px rgba(36, 51, 127, 0.20);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.site-cta:hover,
.site-cta:focus-visible {
  transform: translateY(-1px);
  background: var(--warm-gradient-hover);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 20px rgba(36, 51, 127, 0.28);
}

.hero,
.section {
  opacity: 0;
  transform: translateY(20px);
  animation: rise-in 0.7s ease forwards;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: 2rem;
  align-items: end;
  padding: 2.2rem 0 1.6rem;
}

.hero-copy {
  padding: 2rem;
  border: 1px solid #dce3f1;
  border-radius: 32px;
  background: linear-gradient(155deg, #f8faff 0%, #ffffff 40%, #ffffff 60%, #f5f8ff 100%);
  box-shadow: 0 8px 32px rgba(36, 51, 127, 0.06);
}

.section-label,
.strip-label,
.charity-strip-label {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--ink-3);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.hero h1,
.event-strip h2,
.section-intro h2,
.history-item h3,
.gallery-header h3,
.form-panel h3 {
  margin: 0;
}

.hero h1,
.event-strip h2 {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.06em;
}

.section-intro h2,
.history-item h3,
.gallery-header h3,
.form-panel h3 {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.06em;
  padding-bottom: 0.08em;
  background: var(--warm-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 {
  font-size: clamp(4.2rem, 11vw, 8rem);
  line-height: 0.94;
  padding-bottom: 0.08em;
  max-width: 8ch;
  text-wrap: balance;
  background: var(--warm-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-kicker {
  max-width: 58ch;
  margin: 1.2rem 0 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink-3);
}

.hero-media,
.story-image,
.history-image,
.connect-image,
.form-panel,
.video-card,
.media-tile,
.lightbox,
.charity-pill {
  border: 1px solid var(--rule-faint);
}

.hero-media {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(67, 56, 202, 0.3), rgba(67, 56, 202, 0.08)),
    linear-gradient(180deg, var(--surface-1), var(--surface-2));
  box-shadow: var(--shadow);
}

.hero-media::after,
.story-image::after,
.history-image::after,
.connect-image img {
  position: absolute;
  top: 0;
  left: 0;
}

@keyframes cf-a {
  0%, 40%  { opacity: 1; }
  50%, 90% { opacity: 0; }
  100%     { opacity: 1; }
}

@keyframes cf-b {
  0%, 40%  { opacity: 0; }
  50%, 90% { opacity: 1; }
  100%     { opacity: 0; }
}

.connect-photo--1 {
  animation: cf-a 9s ease-in-out infinite;
}

.connect-photo--2 {
  animation: cf-b 9s ease-in-out infinite;
}

.connect-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 42%, color-mix(in srgb, var(--surface-0) 10%, transparent) 100%);
}

.hero-media img,
.story-image img,
.history-image img,
.connect-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  padding: 2.6rem 0;
  border-top: 1px solid var(--rule-faint);
}

.event-section {
  position: relative;
}

.event-strip,
.story-section,
.video-section,
.history-section,
.gallery-group,
.connect-section {
  position: relative;
}

.event-strip {
  display: grid;
  /* Even split: the right column's content is narrower than the date, so a
     wider right column just pooled empty space against the box edge. */
  grid-template-columns: minmax(260px, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: end;
  padding: 1.6rem;
  border-radius: 30px;
  background: var(--warm-gradient);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 16px 40px rgba(36, 51, 127, 0.24);
}

.event-strip .strip-label {
  color: rgba(255, 255, 255, 0.60);
}

.event-strip h2 {
  color: #ffffff;
}

.event-strip p {
  color: rgba(255, 255, 255, 0.78) !important;
}

.event-strip .notify-form input {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.30);
  color: #ffffff;
}

.event-strip .notify-form input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.event-strip .submit-button {
  background: linear-gradient(180deg, #fbfcff 0%, #f3f5ff 100%) !important;
  border-color: rgba(255, 255, 255, 0.50) !important;
  color: #253472 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 2px 10px rgba(36, 51, 127, 0.14) !important;
}

.event-strip .submit-button:hover,
.event-strip .submit-button:focus-visible {
  background: linear-gradient(180deg, #f7f8ff 0%, #ecefff 100%) !important;
  border-color: rgba(255, 255, 255, 0.70) !important;
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 4px 16px rgba(36, 51, 127, 0.20) !important;
}

.event-strip h2 {
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  line-height: 0.96;
}

.event-strip p {
  margin: 0;
  max-width: 52ch;
  font-size: 1.02rem;
  line-height: 1.8;
}

.event-actions {
  display: grid;
  gap: 1rem;
}

.event-details {
  display: grid;
  gap: 0.1rem;
}

/* Both override the blanket .event-strip p colour rule, which is !important. */
.event-strip .event-detail-primary {
  margin: 0 0 0.35rem;
  font-size: clamp(1.7rem, 2.7vw, 2.3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: #ffffff !important;
}

.event-strip .event-detail-secondary {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72) !important;
}

/* Collapse the empty error slot so it doesn't pad the hint below the form.
   Kept rendered (not display:none) so the aria-live region still announces. */
.notify-form .form-status:empty {
  /* min-height on .form-status would otherwise hold an 18px floor. */
  min-height: 0;
  height: 0;
  line-height: 0;
}

.notify-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.notify-form .form-status {
  flex: 1 1 100%;
}

.notify-form input {
  min-width: min(100%, 320px);
  padding: 0.95rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--surface-0);
  color: var(--ink-1);
  text-align: left;
}

.notify-form input::placeholder,
.inquiry-form input::placeholder,
.inquiry-form textarea::placeholder {
  color: var(--ink-4);
}

.notify-form input::placeholder {
  text-align: left;
}

.notify-form input::-webkit-input-placeholder {
  text-align: left;
}

.notify-form input:focus,
.inquiry-form input:focus,
.inquiry-form textarea:focus,
.inquiry-form select:focus {
  outline: 2px solid color-mix(in srgb, var(--warm) 24%, transparent);
  outline-offset: 2px;
  border-color: var(--warm);
}

.compact-button {
  min-height: 3.1rem;
  padding-inline: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-intro {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.6rem;
}

.section-intro h2 {
  font-size: clamp(2.1rem, 5vw, 4.3rem);
  line-height: 1.02;
  max-width: 12ch;
  text-wrap: balance;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 2rem;
  align-items: stretch;
}

.story-content {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.story-image {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border-radius: 28px;
  background: linear-gradient(180deg, var(--warm-surface), var(--surface-2));
  box-shadow: var(--shadow);
}

.hero-slideshow {
  position: relative;
  height: 100%;
  min-height: 520px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  background: var(--surface-1);
  box-shadow: 0 18px 40px rgba(24, 25, 30, 0.08);
}

.hero-slide {
  opacity: 0;
  transition: opacity 1100ms ease-in-out;
  will-change: opacity;
}

.hero-slide.is-active {
  opacity: 1;
}

.story-card {
  position: relative;
  inset: auto;
  margin: 0;
  overflow: hidden;
  background: var(--surface-1);
  box-shadow: 0 18px 40px rgba(24, 25, 30, 0.08);
  border: 1px solid var(--rule-faint);
  border-radius: 24px;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
}

.hero-slide.is-active img {
  transform: none;
}

.hero-progress {
  position: absolute;
  inset: auto 1.25rem 1.25rem 1.25rem;
  z-index: 2;
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.hero-progress-dot {
  flex: 1 1 0;
  height: 0.28rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.hero-progress-dot::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(165, 180, 252, 0.96));
}

.hero-progress-dot.is-active::after {
  animation: hero-progress-fill 1.8s linear forwards;
}

.story-collage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  height: 100%;
  padding: 0.9rem;
  background: linear-gradient(155deg, #f8faff 0%, #ffffff 36%, #ffffff 64%, #f1f4ff 100%);
}

.story-card-main {
  grid-column: 1 / -1;
  min-height: 215px;
}

.story-card-accent {
  min-height: 250px;
}

.story-card-side {
  min-height: 250px;
}

.story-card-main img {
  object-position: center 28%;
}

.story-card-accent img {
  object-position: center 32%;
}

.story-card-side img {
  object-position: center 26%;
}

.story-copy,
.connect-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-copy {
  min-height: 0;
  justify-content: flex-start;
}

.story-copy .section-intro,
.connect-copy .section-intro {
  margin-bottom: 1rem;
}

.story-copy p,
.connect-copy p {
  margin: 0 0 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
}

.anchor-button,
.carousel-button,
.submit-button,
.lightbox-close,
.video-chip {
  border: 1px solid var(--rule);
  background: var(--surface-0);
  color: var(--ink-1);
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.anchor-button,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  font-weight: 500;
}

/* Primary CTA — form submit buttons + "Get in touch" */
.submit-button:not(.compact-button),
.anchor-button {
  background: var(--warm-gradient);
  border-color: #253472;
  color: var(--warm-ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 12px 24px rgba(36, 51, 127, 0.20);
}

.submit-button:not(.compact-button):hover,
.submit-button:not(.compact-button):focus-visible,
.anchor-button:hover,
.anchor-button:focus-visible {
  transform: translateY(-1px);
  background: var(--warm-gradient-hover);
  border-color: #2e3f8a;
  color: var(--warm-ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 16px 32px rgba(36, 51, 127, 0.28);
}

/* Inverse style — secondary / supporting buttons */
.carousel-button,
.lightbox-close,
.submit-button.compact-button {
  background: linear-gradient(180deg, #fbfcff 0%, #f3f5ff 100%);
  color: #253472;
  border-color: #c9cdf8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 1px 2px rgba(36, 51, 127, 0.04);
}

.carousel-button:hover,
.carousel-button:focus-visible,
.lightbox-close:hover,
.lightbox-close:focus-visible,
.submit-button.compact-button:hover,
.submit-button.compact-button:focus-visible {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #f7f8ff 0%, #ecefff 100%);
  border-color: #b4b9f1;
  color: #253472;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 2px 8px rgba(36, 51, 127, 0.06);
}

.anchor-button {
  margin-top: 0.6rem;
  align-self: flex-start;
  min-width: 0;
  padding-inline: 1.35rem;
}

.video-chip:hover,
.video-chip:focus-visible {
  transform: translateY(-1px);
  background: var(--surface-2);
  border-color: var(--warm);
  color: var(--warm);
}

.story-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: auto;
  margin-bottom: auto;
}

.stat {
  padding: 1.5rem 1.4rem 1.35rem;
  border: 1px solid #dce3f1;
  border-radius: 16px;
  background: linear-gradient(155deg, #f8faff 0%, #ffffff 40%, #ffffff 60%, #f5f8ff 100%);
  box-shadow: 0 4px 16px rgba(36, 51, 127, 0.05);
}

.stat strong {
  display: block;
  margin-bottom: 0.65rem;
  font-size: clamp(1.25rem, 2.2vw, 1.9rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #4a51b0 0%, #2f347f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span {
  color: var(--ink-3);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
}

.charity-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
  padding-bottom: 0.5rem;
}

.charity-strip-label {
  margin-top: 1.2rem;
}

.charity-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.8rem;
  padding: 0.7rem 1rem;
  border: 1px solid #253472;
  border-radius: 999px;
  background: var(--warm-gradient);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 4px 14px rgba(36, 51, 127, 0.18);
  font-size: 0.92rem;
  font-weight: 500;
  color: #ffffff;
  transition:
    transform 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.charity-pill:hover,
.charity-pill:focus-visible {
  transform: translateY(-1px);
  background: var(--warm-gradient-hover);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 8px 22px rgba(36, 51, 127, 0.26);
}

.sponsor-section {
  padding-bottom: 1.25rem;
}

.sponsor-intro {
  margin-bottom: 1rem;
}

.sponsor-intro h2 {
  max-width: none;
}

.sponsor-marquee {
  position: relative;
  overflow: hidden;
  margin-top: 0.85rem;
  padding: 0.5rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.sponsor-marquee-track {
  display: flex;
  width: max-content;
  gap: 1.1rem;
  animation: sponsor-marquee-scroll 36s linear infinite;
  will-change: transform;
}

.sponsor-marquee:hover .sponsor-marquee-track,
.sponsor-marquee:focus-within .sponsor-marquee-track {
  animation-play-state: paused;
}

.sponsor-marquee-group {
  display: flex;
  flex-shrink: 0;
  gap: 1.1rem;
}

.sponsor-logo-link {
  display: inline-flex;
  flex-shrink: 0;
  text-decoration: none;
}

.sponsor-logo-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10.5rem;
  height: 5.5rem;
  padding: 0.9rem 1.25rem;
  border: 1px solid rgba(37, 52, 114, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 248, 255, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 10px 24px rgba(36, 51, 127, 0.06);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.sponsor-logo-link:hover .sponsor-logo-card,
.sponsor-logo-link:focus-visible .sponsor-logo-card {
  transform: translateY(-2px);
  border-color: rgba(37, 52, 114, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 14px 30px rgba(36, 51, 127, 0.10);
}

.sponsor-logo-link:focus-visible {
  outline: none;
}

.sponsor-logo-card img {
  display: block;
  max-width: 11rem;
  max-height: 3.35rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  padding: 1rem 0 2.25rem;
}

.footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 1.75rem;
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact-link:hover {
  color: var(--warm);
}

.site-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0;
  color: inherit;
}

.site-footer-brand .brand-text strong {
  color: var(--ink-2);
}

.site-footer-brand .brand-mark {
  width: 34px;
  height: 24px;
}

.site-footer-note {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-4);
}

@keyframes sponsor-marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 0.55rem));
  }
}

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

.video-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2.2 / 1;
  min-height: 0;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(67, 56, 202, 0.05), transparent 30%),
    linear-gradient(180deg, var(--surface-1), var(--surface-2));
  box-shadow: var(--shadow);
}

.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.video-label {
  padding: 0.52rem 0.78rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-0) 76%, transparent);
  color: var(--ink-1);
  border: 1px solid color-mix(in srgb, var(--rule) 86%, transparent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.video-actions {
  display: flex;
  gap: 0.5rem;
}

.video-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-0) 82%, transparent);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.history-head,
.connect-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 2rem;
  align-items: center;
}

.history-image,
.connect-image {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border-radius: 28px;
  background: linear-gradient(180deg, var(--warm-surface), var(--surface-2));
  box-shadow: var(--shadow);
}

.connect-image {
  min-height: 460px;
}

.connect-photo {
  object-position: center center;
}

.connect-photo--1 {
  object-position: center 65%;
}

.connect-photo--2 {
  object-position: center center;
}

.history-image img {
  object-position: center 62%;
}

.history-head {
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
}

.history-head .section-intro {
  margin-bottom: 0;
}

.history-image {
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.history-list {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.history-item {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  padding: 1.6rem 1.8rem;
  border: 1px solid #dce3f1;
  border-radius: 16px;
  background: linear-gradient(155deg, #f8faff 0%, #ffffff 40%, #ffffff 60%, #f5f8ff 100%);
  box-shadow: 0 4px 16px rgba(36, 51, 127, 0.05);
}

.history-year-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  padding-top: 0.15rem;
}

.history-year {
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 800;
  background: var(--warm-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.history-sport-icon {
  font-size: 1.5rem;
  line-height: 1;
  display: block;
  filter: grayscale(1) opacity(0.55);
}

.history-item h3 {
  margin-bottom: 0.6rem;
  font-size: 1.7rem;
  font-style: italic;
}

.history-item p {
  margin: 0;
  line-height: 1.75;
}

.history-meta {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.75;
  color: var(--ink-3);
  margin-top: 1.25rem;
}

.gallery-group {
  margin-top: 2rem;
}

.past-event-group {
  margin-top: 2rem;
}

.past-event-group + .past-event-group {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule-faint);
}

.gallery-group--inline {
  margin-top: 1.25rem;
}

.past-event-header {
  margin-bottom: 0.75rem;
}

.past-event-header h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 2rem;
  font-style: italic;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: var(--ink-2);
  font-weight: 800;
  letter-spacing: -0.06em;
  margin: 0;
}

.sport-icon {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  object-fit: contain;
  flex-shrink: 0;
  mix-blend-mode: multiply;
  align-self: center;
}

.past-event-body-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.past-event-desc {
  flex: 1;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink-3);
}

.past-event-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.gallery-header h3 {
  font-size: 1.8rem;
  font-style: italic;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: var(--ink-2);
}

.carousel-wrap {
  position: relative;
}

.gallery-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 0.75rem;
  z-index: 10;
  pointer-events: none;
}

.gallery-controls .carousel-button {
  pointer-events: auto;
}

.carousel-button,
.lightbox-close {
  min-width: 2.6rem;
  min-height: 2.6rem;
  padding: 0.45rem;
  border-radius: 999px;
}

.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 28vw);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.6rem;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}

.carousel::-webkit-scrollbar {
  height: 10px;
}

.carousel::-webkit-scrollbar-thumb {
  background: var(--rule);
  border-radius: 999px;
}

.media-tile {
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, var(--surface-1), var(--surface-2));
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.media-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

.media-tile:hover img,
.media-tile:focus-visible img {
  transform: scale(1.03);
  filter: saturate(1.03);
}

.connect-copy {
  align-self: stretch;
  min-height: 280px;
}

.connect-copy p {
  margin: 0;
  max-width: 58ch;
}

.form-carousel-outer {
  padding: 2.5rem 0 1rem;
  margin-top: 1.5rem;
}

.form-carousel-stage {
  position: relative;
  overflow: hidden;
}

.form-side-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  border: 1px solid #c9cdf8;
  background: linear-gradient(180deg, #fbfcff 0%, #f3f5ff 100%);
  color: #253472;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 4px 14px rgba(36, 51, 127, 0.14);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.form-side-btn--prev {
  left: 1.5rem;
}

.form-side-btn--next {
  right: 1.5rem;
}

.form-side-btn:hover {
  transform: translateY(calc(-50% - 1px));
  background: linear-gradient(180deg, #f7f8ff 0%, #ecefff 100%);
  border-color: #b4b9f1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 6px 18px rgba(36, 51, 127, 0.18);
}

.form-carousel-track {
  position: relative;
  min-height: 520px;
}

.form-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.form-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  border: 1px solid #c9cdf8;
  background: linear-gradient(180deg, #fbfcff 0%, #f3f5ff 100%);
  color: #253472;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 1px 2px rgba(36, 51, 127, 0.04);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.form-nav-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #f7f8ff 0%, #ecefff 100%);
  border-color: #b4b9f1;
}

.form-nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.form-nav-dots {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.form-nav-btn--mobile {
  display: none;
}

.form-nav-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  border: none;
  background: var(--rule);
  cursor: pointer;
  padding: 0;
  transition: width 200ms ease, background 200ms ease;
}

.form-nav-dot.is-active {
  width: 1.5rem;
  background: var(--warm-gradient);
}

.form-panel {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(640px, calc(100% - 180px));
  padding: 1.9rem;
  border: 1px solid #dce3f1;
  border-radius: 34px;
  background: linear-gradient(155deg, #f8faff 0%, #ffffff 40%, #ffffff 60%, #f5f8ff 100%);
  transition: transform 420ms cubic-bezier(0.4, 0, 0.2, 1), opacity 320ms ease, box-shadow 320ms ease;
}

.form-panel.is-active {
  box-shadow: 0 20px 70px rgba(36, 51, 127, 0.12), 0 0 0 1px rgba(36, 51, 127, 0.04);
}

.form-panel-label {
  display: inline-block;
  margin-bottom: 1.05rem;
  color: var(--ink-3);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.form-panel h3 {
  margin-bottom: 0.7rem;
  font-size: 2rem;
  font-style: italic;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: var(--ink-2);
}

.form-panel-copy {
  margin: 0 0 1.3rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink-3);
  min-height: 3.5rem;
}

.inquiry-form {
  display: grid;
  gap: 1rem;
}

.form-status {
  min-height: 1.2rem;
  margin: -0.2rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-3);
}

.form-status.is-success {
  color: #1d6b49;
}

.form-status.is-error {
  color: #b33a3a;
}

.inquiry-form label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.inquiry-form input,
.inquiry-form textarea,
.inquiry-form select {
  width: 100%;
  margin-top: 0.15rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(67, 56, 202, 0.16);
  border-radius: 20px;
  background: var(--surface-0);
  color: var(--ink-1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  appearance: none;
  -webkit-appearance: none;
}

.inquiry-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%237a8490' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.05rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.inquiry-form textarea {
  resize: vertical;
}

.submit-button {
  margin-top: 0.4rem;
}

.lightbox {
  width: min(1100px, calc(100vw - 2rem));
  border-radius: 28px;
  padding: 1rem;
  background:
    radial-gradient(circle at top right, rgba(67, 56, 202, 0.05), transparent 28%),
    linear-gradient(180deg, #f5f7ff, var(--surface-1));
  color: var(--ink-1);
  box-shadow: var(--shadow);
}

.lightbox::backdrop {
  background: rgba(7, 11, 20, 0.72);
  backdrop-filter: blur(8px);
}

.lightbox-close {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  font-size: 1.8rem;
  line-height: 1;
}

.lightbox-content {
  margin-top: 0.8rem;
}

.lightbox-content img,
.lightbox-content video {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 18px;
}

.success-modal {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 420px;
  width: calc(100% - 2rem);
  border-radius: 1.25rem;
}

.success-modal::backdrop {
  background: rgba(10, 15, 40, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.success-modal-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  position: relative;
  box-shadow: 0 24px 64px rgba(10, 15, 40, 0.18);
  animation: modal-pop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes modal-pop {
  from { opacity: 0; transform: scale(0.88) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.success-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--ink-3);
  cursor: pointer;
  padding: 0.25rem;
  line-height: 0;
  transition: color 0.15s;
}

.success-modal-close:hover {
  color: var(--ink-1);
}

.success-modal-check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #edf7f1;
  color: #2a9e55;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.success-modal-message {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-1);
  margin: 0 0 1.75rem;
}

.success-modal-btn {
  background: #253472;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.625rem 1.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
}

.success-modal-btn:hover {
  opacity: 0.85;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-progress-fill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sponsor-marquee {
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .sponsor-marquee-track {
    width: 100%;
    flex-direction: column;
    animation: none;
  }

  .sponsor-marquee-group {
    flex-wrap: wrap;
    justify-content: center;
  }

  .sponsor-marquee-group[aria-hidden="true"] {
    display: none;
  }
}

@media (max-width: 980px) {
  .hero,
  .event-strip,
  .story-grid,
  .history-head,
  .connect-head,
  .form-grid,
  .video-grid,
  .history-item {
    grid-template-columns: 1fr;
  }

  .history-image,
  .connect-image,
  .hero-media {
    min-height: 320px;
  }

  .story-image {
    min-height: 320px;
  }

  .story-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .story-content {
    display: contents;
  }

  .story-copy {
    order: 1;
  }

  .story-image {
    order: 2;
  }

  .hero-slideshow {
    min-height: 360px;
  }

  .story-stats {
    order: 3;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0.6rem;
    margin-bottom: 0;
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    padding-bottom: 2rem;
  }
}

@media (max-width: 860px) {
  .page-shell {
    width: min(calc(100% - 1.25rem), var(--max-width));
  }

  .hero {
    padding: 1.5rem 0 1.2rem;
    gap: 1.25rem;
  }

  .hero h1 {
    font-size: clamp(3.6rem, 14vw, 5.6rem);
    max-width: 7ch;
  }

  .hero-kicker,
  .event-strip p,
  .story-copy p,
  .connect-copy p,
  .history-item p {
    font-size: 1rem;
    line-height: 1.72;
  }

  .section {
    padding: 2rem 0;
  }

  .section-intro h2 {
    font-size: clamp(1.9rem, 7vw, 3.2rem);
    max-width: 11ch;
  }

  .notify-form {
    width: 100%;
  }

  .notify-form input {
    flex: 1 1 100%;
    min-width: 0;
  }

  .compact-button {
    width: 100%;
  }

  .charity-pill {
    min-height: 2.5rem;
    padding: 0.6rem 0.85rem;
    font-size: 0.88rem;
  }

  .sponsor-logo-card {
    min-width: 9.25rem;
    height: 5rem;
    padding: 0.8rem 1rem;
  }

  .sponsor-logo-card img {
    max-width: 9.8rem;
    max-height: 3rem;
  }

  .video-label {
    font-size: 0.72rem;
  }
}

@media (max-width: 640px) {
  .gallery-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header {
    gap: 0.75rem;
    height: auto;
    min-height: 4rem;
    flex-wrap: wrap;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }

  .site-nav {
    order: 3;
    flex: 1 1 100%;
    justify-content: center;
  }

  .site-cta {
    margin-left: auto;
  }

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

  .sponsor-marquee {
    overflow: hidden;
  }

  .sponsor-marquee-track {
    width: max-content;
    flex-direction: row;
    animation: sponsor-marquee-scroll 28s linear infinite;
  }

  .sponsor-marquee-group {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .sponsor-marquee-group[aria-hidden="true"] {
    display: flex;
  }

  .sponsor-logo-card {
    min-width: 8.75rem;
    height: 4.75rem;
  }

  .site-footer {
    align-items: center;
    text-align: center;
  }

  .carousel {
    grid-auto-columns: minmax(72vw, 1fr);
  }

  .event-strip,
  .form-panel,
  .history-item {
    padding: 1.15rem;
  }

  .hero-media,
  .story-image,
  .history-image,
  .connect-image,
  .video-card {
    border-radius: 24px;
  }

  /* Forms carousel: full-width cards on mobile */
  .form-carousel-outer {
    display: flex;
    flex-direction: column;
  }

  /* Nav: [←] [● ● ●] [→] centered above the form */
  .form-carousel-nav {
    order: -1;
    margin-top: 0;
    margin-bottom: 0.75rem;
    justify-content: center;
    gap: 0.75rem;
    padding: 0;
  }

  .form-nav-btn--mobile {
    display: inline-flex;
  }

  .form-panel {
    width: calc(100% - 1rem);
  }

  .form-side-btn {
    display: none;
  }

  /* Prevent iOS auto-zoom on input focus */
  .inquiry-form input,
  .inquiry-form textarea,
  .inquiry-form select {
    font-size: 1rem;
  }

  /* History: full-width body text, no arrows on mobile (swipe to navigate) */
  .past-event-body-row {
    flex-direction: column;
    gap: 0;
    margin-bottom: 0.75rem;
  }

  .gallery-controls {
    display: none;
  }

  /* History: larger section title, subtitle-sized sport headings */
  .history-section .section-intro h2 {
    font-size: 2.2rem;
  }

  .past-event-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    font-style: italic;
    color: var(--ink-3);
  }
}
