/* ==========================================================================
   Marston Elite
   Same print-culture system as the Athletics site, in championship colors:
   Regal #431266 (brand) · Tunnel #1D0930 · Gold Trim #F2DC89 · Chalk #F7F3EA
   ========================================================================== */

@font-face { font-family: 'Anton'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/anton-400.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/barlow-400.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/barlow-500.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/barlow-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/barlow-700.woff2') format('woff2'); }

:root {
  --purple: #431266;
  --tunnel: #1D0930;
  --gold: #F2DC89;
  --gold-deep: #C9A93E;
  --bronze: #82691A;
  --chalk: #F7F3EA;
  --ink: #1C1320;
  --muted: #6E6276;
  --display: 'Anton', 'Arial Narrow', sans-serif;
  --body: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
  --pad: clamp(1.25rem, 5vw, 4rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; overflow-x: clip; }
body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--chalk);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--purple); }

/* paper grain */
body::after {
  content: '';
  position: fixed; inset: 0;
  z-index: 90;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.045 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

.eyebrow {
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 0.75rem;
}
h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  margin-bottom: 1.75rem;
  position: relative;
  padding-bottom: 1.35rem;
  text-wrap: balance;
}
/* painted court marking: baseline + free-throw arc */
h2::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: min(180px, 55%);
  border-bottom: 3px solid var(--gold-deep);
}
h2::before {
  content: '';
  position: absolute; left: calc(min(180px, 55%) / 2 - 22px); bottom: 0;
  width: 44px; height: 22px;
  border: 3px solid var(--gold-deep);
  border-bottom: none;
  border-radius: 44px 44px 0 0;
}
.section-purple h2::after, .section-purple h2::before { border-color: var(--gold); }

/* ---------- screen-printed buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  background: var(--gold);
  color: var(--tunnel);
  border: 2px solid var(--tunnel);
  box-shadow: 5px 5px 0 rgba(0,0,0,0.45);
  transition: background-color 0.15s ease, translate 0.1s ease, box-shadow 0.1s ease, color 0.15s ease;
}
.btn:hover { background: #F8E9A8; }
.btn:active { translate: 4px 4px; box-shadow: 1px 1px 0 rgba(0,0,0,0.45); }
.btn:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 3px; }
.btn-purple { background: var(--purple); color: #fff; box-shadow: 5px 5px 0 var(--gold-deep); }
.btn-purple:hover { background: #55207D; }
.btn-purple:active { box-shadow: 1px 1px 0 var(--gold-deep); }
.btn-outline { background: transparent; color: var(--purple); border-color: var(--purple); box-shadow: 5px 5px 0 rgba(67,18,102,0.25); }
.btn-outline:hover { background: var(--purple); color: #fff; }
.btn-outline:active { box-shadow: 1px 1px 0 rgba(67,18,102,0.25); }
.btn-line {
  background: transparent; color: var(--gold);
  border-color: rgba(242,220,137,0.8);
  box-shadow: none;
}
.btn-line:hover { background: rgba(242,220,137,0.14); }
.btn-line:active { translate: 2px 2px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.5rem var(--pad);
  background: rgba(29, 9, 48, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--gold);
}
.nav-logo img { height: 46px; width: auto; }
.nav-links { display: flex; gap: 1.25rem; margin-left: auto; flex-wrap: wrap; }
.nav-links a {
  font-family: var(--display); font-size: 1rem;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--chalk); text-decoration: none;
  display: inline-block; padding: 0.55rem 0.2rem;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta { white-space: nowrap; font-size: 0.95rem; padding: 0.5rem 1.1rem; box-shadow: 3px 3px 0 rgba(0,0,0,0.5); }
.nav-cta:active { translate: 2px 2px; box-shadow: 1px 1px 0 rgba(0,0,0,0.5); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none; border: none; cursor: pointer;
  width: 48px; height: 44px;
  padding: 10px 8px;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span {
  display: block; height: 3px; width: 100%;
  background: var(--gold);
  transition: transform 0.28s cubic-bezier(0.3, 0.7, 0.3, 1), opacity 0.2s ease;
}
.nav-toggle:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(10.5px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-10.5px) rotate(-45deg); }

@media (max-width: 700px) {
  .nav { flex-wrap: wrap; gap: 0 1rem; }
  .nav-logo img { height: 40px; }
  .nav-toggle { display: flex; }
  .nav-links {
    order: 3; width: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    max-height: 0; overflow: hidden;
    opacity: 0; visibility: hidden;
    translate: 0 -8px;
    transition: max-height 0.42s cubic-bezier(0.25, 0.8, 0.35, 1), opacity 0.28s ease,
                translate 0.35s ease, visibility 0s 0.42s;
  }
  .nav.open .nav-links {
    max-height: 400px;
    opacity: 1; visibility: visible;
    translate: 0 0;
    margin-top: 0.4rem;
    padding: 0.5rem 0 0.25rem;
    border-top: 2px solid rgba(242,220,137,0.4);
    transition: max-height 0.45s cubic-bezier(0.25, 0.8, 0.35, 1), opacity 0.3s ease 0.05s,
                translate 0.4s ease;
  }
  .nav-links a { font-size: 1.3rem; padding: 0.7rem 0.2rem; border-bottom: 1px solid rgba(242,220,137,0.18); }
  .nav-cta {
    order: 4; width: 100%; text-align: center;
    max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
    padding-top: 0; padding-bottom: 0; border-width: 0; margin: 0;
    transition: max-height 0.42s cubic-bezier(0.25, 0.8, 0.35, 1), opacity 0.28s ease, visibility 0s 0.42s;
  }
  .nav.open .nav-cta {
    max-height: 72px; opacity: 1; visibility: visible;
    padding: 0.7rem 1rem; border-width: 2px;
    margin: 0.9rem 0 0.6rem;
    transition: max-height 0.45s cubic-bezier(0.25, 0.8, 0.35, 1), opacity 0.3s ease 0.1s;
  }
  @media (prefers-reduced-motion: no-preference) {
    .nav.open .nav-links a { animation: navItem 0.35s cubic-bezier(0.25, 0.8, 0.35, 1) both; }
    .nav.open .nav-links a:nth-child(1) { animation-delay: 0.05s; }
    .nav.open .nav-links a:nth-child(2) { animation-delay: 0.09s; }
    .nav.open .nav-links a:nth-child(3) { animation-delay: 0.13s; }
    .nav.open .nav-links a:nth-child(4) { animation-delay: 0.17s; }
    @keyframes navItem { from { opacity: 0; translate: 0 10px; } }
  }
}

/* ---------- hero ---------- */
.hero {
  background:
    linear-gradient(180deg, rgba(29,9,48,0.72) 0%, rgba(29,9,48,0.5) 55%, rgba(29,9,48,0.9) 100%),
    url('images/banner.jpg') center / cover no-repeat,
    var(--tunnel);
  color: var(--chalk);
  text-align: center;
  padding: clamp(4rem, 10vw, 7.5rem) var(--pad);
}
.hero-inner { max-width: 46rem; margin: 0 auto; }
.hero-logo { height: clamp(110px, 18vw, 170px); width: auto; margin: 0 auto 1.5rem; filter: drop-shadow(0 6px 24px rgba(0,0,0,0.5)); }
.hero .eyebrow { color: var(--gold); }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(3.5rem, 12vw, 7rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.hero h1 span {
  color: var(--gold);
  text-shadow: 0 2px 0 var(--gold-deep), 0 6px 18px rgba(0,0,0,0.45);
}
.hero-sub { margin: 1.25rem auto 2rem; max-width: 34rem; color: rgba(247,243,234,0.92); font-size: 1.1rem; }
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

@media (prefers-reduced-motion: no-preference) {
  .hero-logo, .hero .eyebrow, .hero h1, .hero-sub, .hero-ctas {
    opacity: 0; translate: 0 14px;
    animation: rise 0.65s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
  }
  .hero .eyebrow { animation-delay: 0.12s; }
  .hero h1 { animation-delay: 0.2s; }
  .hero-sub { animation-delay: 0.32s; }
  .hero-ctas { animation-delay: 0.44s; }
  @keyframes rise { to { opacity: 1; translate: 0 0; } }
}

/* ---------- sections ---------- */
.section { padding: clamp(3.25rem, 8vw, 5.5rem) var(--pad); max-width: 68rem; margin: 0 auto; }
.section-purple {
  background: var(--purple); color: var(--chalk);
  padding: clamp(3.25rem, 8vw, 5.5rem) var(--pad);
}
.section-purple .eyebrow { color: var(--gold); }
.section-purple a { color: var(--gold); }
.section-purple a.btn { color: var(--tunnel); }
.section-purple a.btn-purple { color: #fff; }

/* scroll reveals */
.reveal { opacity: 0; translate: 0 20px; transition: opacity 0.6s ease, translate 0.65s cubic-bezier(0.22, 0.61, 0.36, 1); }
.reveal.in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; translate: 0 0; transition: none; } }

/* ---------- ticket ---------- */
.ticket {
  display: grid; grid-template-columns: 1fr auto;
  background: var(--tunnel); color: var(--chalk);
  border: 2px solid var(--gold);
  box-shadow: 8px 8px 0 rgba(67,18,102,0.3);
  max-width: 56rem;
}
.ticket-main { padding: 2rem 2.25rem; }
.ticket-label { font-weight: 700; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }
.ticket-main h3 { font-family: var(--display); font-size: clamp(1.5rem, 3.2vw, 2.2rem); text-transform: uppercase; line-height: 1.05; margin-bottom: 1.1rem; }
.ticket-facts { list-style: none; display: grid; gap: 0.5rem; margin-bottom: 1.5rem; }
.ticket-facts strong {
  display: inline-block; min-width: 4.5rem;
  color: var(--gold); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.ticket-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.ticket-ctas .btn-outline { border-color: rgba(247,243,234,0.6); color: var(--chalk); box-shadow: 5px 5px 0 rgba(0,0,0,0.4); }
.ticket-ctas .btn-outline:hover { background: rgba(247,243,234,0.12); color: #fff; }
.ticket-stub {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.1rem;
  padding: 1.5rem 1.9rem;
  border-left: 2px dashed rgba(242,220,137,0.6);
  background: repeating-linear-gradient(-45deg, rgba(242,220,137,0.08) 0 8px, transparent 8px 16px);
  font-size: 0.75rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold);
}
.ticket-stub strong { font-family: var(--display); font-size: 2.1rem; color: var(--chalk); letter-spacing: 0.1em; }
@media (max-width: 560px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket-stub { border-left: none; border-top: 2px dashed rgba(242,220,137,0.6); flex-direction: row; gap: 0.7rem; }
}

.steps { margin: 2.5rem 0 0; padding-left: 1.4rem; display: grid; gap: 0.7rem; max-width: 40rem; }
.steps li::marker { font-family: var(--display); color: var(--bronze); }
.steps strong { color: var(--purple); }

/* ---------- about + rafter banners ---------- */
#about { padding-top: 0; }
.banners {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: clamp(0.9rem, 2.5vw, 1.75rem);
  max-width: 56rem;
  margin: 0 auto clamp(3rem, 7vw, 4.5rem);
}
.banner {
  clip-path: polygon(0 0, 100% 0, 100% 76%, 50% 100%, 0 76%);
  padding: 1.3rem 0.9rem 2.9rem;
  text-align: center;
  transform-origin: top center;
}
.banner small { display: block; font-weight: 700; font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.8; }
.banner strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.1;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.banner span { display: block; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; opacity: 0.9; }
.b-gold { background: var(--gold); color: var(--tunnel); rotate: -1.1deg; }
.b-chalk { background: var(--chalk); color: var(--purple); rotate: 0.9deg; }
.b-line { background: var(--tunnel); color: var(--gold); rotate: -0.7deg; }
.banner.reveal { translate: 0 -26px; transition-property: opacity, translate, rotate; }
.banner.reveal:not(.in) { rotate: 0deg; }
.banners .banner:nth-child(2) { transition-delay: 0.08s; }
.banners .banner:nth-child(3) { transition-delay: 0.16s; }

.about-wrap { max-width: 68rem; margin: 0 auto; }
.about-grid {
  display: grid; grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about-grid p + p { margin-top: 1rem; }
.about-pull { border-left: 3px solid var(--gold); padding-left: 1.25rem; }
.about-pull p { font-size: 1.3rem; line-height: 1.45; font-weight: 500; color: var(--gold); }
.about-pull cite { display: block; margin-top: 0.75rem; font-style: normal; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(247,243,234,0.7); }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- leadership ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.75rem; }
.person {
  background: #fff;
  border: 2px solid var(--purple);
  border-top: 6px solid var(--gold-deep);
  box-shadow: 7px 7px 0 rgba(67,18,102,0.18);
  padding: 1.75rem;
}
.person h3 { font-family: var(--display); font-size: 1.5rem; text-transform: uppercase; line-height: 1.1; }
.person-role { font-weight: 700; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bronze); margin: 0.3rem 0 0.8rem; }
.person p { font-size: 0.97rem; }
.person-contact { margin-top: 1rem; font-weight: 600; line-height: 1.9; }
.person-contact a { display: inline-block; padding: 0.2rem 0; }
.people .person:nth-child(2).reveal { transition-delay: 0.08s; }

/* ---------- train cross-link ---------- */
.train-inner {
  max-width: 68rem; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.train-inner h2 { margin-bottom: 0.75rem; }
.train-inner p { max-width: 34rem; color: rgba(247,243,234,0.9); }

/* ---------- contact ---------- */
.contact-copy { max-width: 34rem; margin-bottom: 1.75rem; }
.contact-row { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* ---------- footer ---------- */
.footer { background: var(--tunnel); color: rgba(247,243,234,0.75); text-align: center; padding: 2.75rem var(--pad); }
.footer-logo { height: 54px; width: auto; margin: 0 auto 1rem; }
.footer-fine { font-size: 0.85rem; }
.footer-fine a { color: var(--gold); }
