:root {
  --onyx: #0d0d0d;
  --gold: #c9a227;
  --gold-light: #e2c25c;
  --blue: #0f3d91;
  --paper: #f6f5f1;
  --card: #ffffff;
  --ink: #171717;
  --ink-muted: #63615a;
  --border: #e1dccd;
  --danger: #b3261e;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, sans-serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-anchor: none;
}

p { line-height: 1.65; font-weight: 400; }

a { color: inherit; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin: 0;
}

.eyebrow-light { color: var(--gold-light); }

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.kicker-bar {
  width: 5px;
  height: 18px;
  border-radius: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

.kicker-bar-light { background: var(--gold-light); }

.section-heading {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--onyx);
  margin: 0 0 20px;
}

/* ---------- Topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: var(--onyx);
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: 18px 24px;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 13, 0.72);
  pointer-events: none;
}

.topbar-inner {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

/* Same photo runs behind the topbar and whatever hero section follows it —
   background-attachment: fixed pins both to the same viewport-relative
   image so the seam between them disappears, without restructuring the
   header/hero into one shared element. */
body.home .topbar,
body.home .hero,
body.home .progress-note {
  background-image: url("/assets/hero-bg.png");
  background-position: center 55%;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body.dark-hero-page .topbar,
body.dark-hero-page .page-hero-dark,
body.dark-hero-page > .hero {
  background-image: url("/assets/hero-dark-pitch.png");
  background-position: center 35%;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.topbar .crest { height: 30px; width: auto; flex-shrink: 0; }

.topbar .club-name {
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar .club-name .accent { color: var(--gold-light); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: 32px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.42);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: default;
}

.nav-link-live {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-link-live:hover { color: var(--gold-light); }

.nav-link-current { color: var(--gold-light); }

.topbar-cta {
  margin-left: 0;
  flex-shrink: 0;
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.topbar-cta:hover { border-bottom-color: var(--gold-light); }

.topbar-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: auto;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.topbar-social svg { width: 16px; height: 16px; }

.topbar-social:hover {
  color: var(--onyx);
  border-color: var(--gold-light);
  background: var(--gold-light);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 6px;
  margin-left: auto;
  cursor: pointer;
  color: #fff;
}

.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .topbar { position: sticky; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin-left: 0;
    background: var(--onyx);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px 24px 16px;
  }

  .main-nav.is-open { display: flex; }

  .main-nav a,
  .main-nav .nav-link {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .main-nav a:last-child,
  .main-nav .nav-link:last-child { border-bottom: none; }

  .brand-link { order: 1; }
  .menu-toggle { display: inline-flex; order: 2; margin-left: 6px; }
  .topbar-social { order: 3; }
  .topbar-cta { order: 4; margin-left: 0; }
}

@media (max-width: 560px) {
  .topbar .club-name { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background-color: var(--onyx);
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #fff;
  padding: 34px 24px 60px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 13, 13, 0.72) 0%, rgba(13, 13, 13, 0.7) 65%, rgba(13, 13, 13, 0.74) 100%);
}

.hero-inner {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-crest {
  width: 112px;
  height: auto;
  margin: 0 0 16px;
  filter: drop-shadow(0 0 30px rgba(201, 162, 39, 0.34));
}

@media (max-width: 480px) {
  .hero-crest { width: 100px; }
}

.hero-overline {
  margin: 0 0 10px;
  color: var(--gold-light);
  font-family: "Oswald", sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-headline { margin: 0 0 16px; text-wrap: balance; }

.hero-lead {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: clamp(2.4rem, 4.8vw, 4.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.05em;
  color: #fff;
}

.hero-brand {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: clamp(2.4rem, 4.8vw, 4.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.05em;
  color: var(--gold-light);
}

.hero-sub {
  font-size: 1.02rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.86);
  max-width: 540px;
  margin: 0 0 16px;
}

.hero-date {
  margin: 0 0 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 3px;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary { background: var(--gold); color: var(--onyx); }
.btn-primary:hover { background: var(--gold-light); }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.btn-ghost:hover { border-color: #fff; }

.btn-outline-blue { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline-blue:hover { background: var(--blue); color: #fff; }

/* ---------- Sections ---------- */

.section { padding: 108px 24px 88px; }

.section-inner { max-width: 1080px; margin: 0 auto; }

.section-inner.narrow { max-width: 620px; }

.story-text {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ink-muted);
  line-height: 1.7;
  letter-spacing: -0.005em;
}

.story-text.small { font-size: 1rem; }

.home .progress-note {
  position: relative;
  padding: 58px 24px 66px;
  background-color: var(--onyx);
  color: #fff;
}

.home .progress-note::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 13, 0.74);
  pointer-events: none;
}

.home .progress-note-card {
  position: relative;
  max-width: 1080px;
  padding: 0;
}

.home .progress-note .section-heading {
  color: #fff;
  margin-bottom: 12px;
}

.home .progress-note .story-text {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.68);
}

.progress-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.home .progress-status-col {
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.025);
}

.progress-status-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.home .progress-status-label.live,
.home .progress-status-label.updating,
.home .progress-status-label.soon {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.home .progress-status-label.live { color: var(--gold-light); }
.home .progress-status-label.updating { color: var(--gold); }
.home .progress-status-label.soon { color: rgba(255, 255, 255, 0.45); }

.home .progress-status-col p { margin: 0; color: rgba(255, 255, 255, 0.78); font-size: 0.95rem; }

@media (max-width: 560px) {
  .hero { padding: 42px 20px 64px; }
  .hero-lead, .hero-brand { font-size: clamp(2.35rem, 11vw, 3.5rem); }
  .hero-sub { font-size: 0.94rem; }
  .hero-date { line-height: 1.5; }
  .home .progress-note { padding: 44px 20px 52px; }
  .progress-status { grid-template-columns: 1fr; }
}

.ground { padding-top: 0; }

.ground-title {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  color: var(--onyx);
}

.map-embed {
  position: relative;
  width: 100%;
  padding-bottom: 52%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px -2px rgba(13, 13, 13, 0.08), 0 1px 3px rgba(13, 13, 13, 0.04);
  margin-top: 24px;
}

.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.map-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(13, 13, 13, 0.82);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: 20px;
}

.map-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}

.map-link:hover { text-decoration: underline; }

/* ---------- Play / Support tracks ---------- */

.track-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 780px) {
  .track-grid { grid-template-columns: 1fr; }
}

.track {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 2px 8px -2px rgba(13, 13, 13, 0.05), 0 1px 3px rgba(13, 13, 13, 0.03);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.track:hover {
  box-shadow: 0 10px 24px -4px rgba(13, 13, 13, 0.1), 0 4px 8px -2px rgba(13, 13, 13, 0.04);
  transform: translateY(-2px);
}

.track-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--gold);
}

.track-icon svg { width: 24px; height: 24px; }

.track-icon-blue { color: var(--blue); }

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 18px;
}

.tag-play { background: var(--gold); color: var(--onyx); }
.tag-support { background: var(--blue); color: #fff; }

.track h3 {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  color: var(--onyx);
}

.track p {
  color: var(--ink-muted);
  font-size: 1.02rem;
  margin: 0 0 26px;
}

.age-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 36px;
  padding: 0 6px;
  border-radius: 2px;
  background: var(--onyx);
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.8rem;
}

/* ---------- Footer ---------- */

.site-footer { background: var(--onyx); color: rgba(255, 255, 255, 0.6); border-top: 1px solid rgba(255, 255, 255, 0.1); }

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

.footer-col-title {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
}

.footer-name {
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.footer-legal { font-size: 0.85rem; margin-bottom: 6px; }

.footer-email { font-size: 0.85rem; color: var(--gold-light); text-decoration: none; }
.footer-email:hover { text-decoration: underline; }

.footer-policies-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-policies-list a {
  color: var(--gold-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-policies-list a:hover,
.footer-policies-list a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.footer-policies-note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  margin: 10px 0 0;
}

.footer-bottom {
  max-width: 1080px;
  margin: 24px auto 0;
  padding: 16px 24px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom a {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.32);
  text-decoration: none;
}

.footer-bottom a:hover { color: var(--gold-light); }

/* ---------- About page ---------- */

.about-page {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

.about-page p,
.about-page li {
  text-wrap: pretty;
  line-height: 1.6;
}

.about-page h1,
.about-page h2,
.about-page h3 {
  text-wrap: balance;
}

[lang="ko"] {
  font-family: "Noto Sans KR", "Inter", sans-serif;
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: break-word;
}

.about-page [lang="ko"] p,
.about-page [lang="ko"] li {
  line-height: 1.7;
}

.about-toc-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 28px 24px 8px;
}

/* Jump nav — keeps the page a single narrative read while still
   letting someone skip to a section instead of scrolling past it. */
.about-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 4px;
}

.about-toc a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.about-toc a:hover {
  color: var(--onyx);
  border-color: var(--gold);
  background: var(--card);
}

.about-section { padding: 52px 24px; }
.about-section:nth-of-type(even) { background: var(--card); }

.about-section-inner { max-width: 680px; margin: 0 auto; }

.about-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--onyx);
  margin: 0 0 20px;
}

.about-section h2::before {
  content: "";
  width: 5px;
  height: 18px;
  border-radius: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

.about-section h3 {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-deep, #9e7b15);
  margin: 0 0 10px;
}

.ko-block h3 { font-family: "Noto Sans KR", sans-serif; text-transform: none; }

.about-section-inner p { color: var(--ink); margin: 0 0 18px; }
.about-section-inner p:last-child { margin-bottom: 0; }

.fact-strip {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.fact-strip strong { color: var(--onyx); font-weight: 600; }

.fact-sep { color: var(--border); margin: 0 2px; }

.about-section-inner .btn { margin-top: 6px; }

.ko-block {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px dashed var(--border);
  color: var(--ink-muted);
}

.ko-block h2 {
  text-transform: none;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 1.1rem;
  color: var(--ink-muted);
}

.ko-block h2::before { background: var(--gold-light); }

.coaching-subblock {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.ko-block .coaching-subblock { border-top-color: rgba(0, 0, 0, 0.08); }

.join-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.join-label {
  display: inline-block;
  min-width: 108px;
  font-weight: 600;
  color: var(--onyx);
}

.join-list a { color: var(--blue); text-decoration: none; }
.join-list a:hover { text-decoration: underline; }

.committee-placeholder {
  margin-top: 30px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 28px 24px;
  text-align: center;
  color: var(--ink-muted);
}

.committee-placeholder p { margin: 0; font-size: 0.92rem; }
.committee-placeholder p + p { margin-top: 8px; }

@media (max-width: 560px) {
  .about-toc-wrap { padding: 24px 20px 4px; }
  .about-section { padding: 40px 20px; }
  .join-label { display: block; min-width: 0; margin-bottom: 2px; }
}

/* ---------- Contact page ---------- */

.page-intro {
  color: var(--ink-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 560px;
  margin: 0;
}

.contact-container { max-width: 1080px; margin: 0 auto; }

.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.contact-side-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 2px 8px -2px rgba(13, 13, 13, 0.05), 0 1px 3px rgba(13, 13, 13, 0.03);
  overflow: hidden;
}

.info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--gold);
}

.info-card h2 {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--onyx);
  margin: 0 0 20px;
}

.info-card > p { color: var(--ink-muted); margin: 0 0 16px; }
.info-card .hint { color: var(--ink-muted); font-size: 0.85rem; margin: 0 0 14px; }

.info-card .map-embed { margin-top: 0; }

/* ---- Form fields ---- */

.field { margin-bottom: 18px; }
.field:last-of-type { margin-bottom: 0; }

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

.field .req { color: var(--danger); }
.field .hint { font-weight: 400; color: var(--ink-muted); font-size: 0.78rem; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}

.age-group-result {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 12px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink-muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.age-group-result.computed {
  border-style: solid;
  border-color: var(--gold);
  background: rgba(201, 162, 39, 0.08);
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.22);
}

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

.field input.invalid,
.field select.invalid,
.field textarea.invalid {
  border-color: var(--danger);
  background: rgba(179, 38, 30, 0.04);
}

.field-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.field-row2 .field { margin-bottom: 0; }

@media (max-width: 560px) {
  .field-row2 { grid-template-columns: 1fr; }
}

.field-error {
  display: none;
  color: var(--danger);
  font-size: 0.78rem;
  font-weight: 500;
  margin-top: 6px;
}

.field-error.visible { display: block; }

.contact-submit { width: 100%; margin-top: 4px; }

.eoi-form-col { max-width: 620px; margin: 0 auto; }
.eoi-submit { width: 100%; margin-top: 4px; }
#eoi-body { background: var(--paper); padding-top: 56px; }

.form-success {
  background: rgba(21, 128, 61, 0.08);
  border: 1px solid rgba(21, 128, 61, 0.25);
  color: #15803d;
  border-radius: 10px;
  padding: 18px 20px;
  font-weight: 500;
  margin-bottom: 20px;
}

.follow-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.follow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px dashed var(--border);
  color: var(--ink-muted);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.follow-icon svg { width: 20px; height: 20px; }

.follow-icon-live {
  border-style: solid;
  border-color: var(--gold);
  color: var(--onyx);
  text-decoration: none;
}

.follow-icon-live:hover { background: var(--gold); color: var(--onyx); }

/* ---------- Dark page hero (Contact, etc.) ---------- */

.page-hero-dark {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 240px;
  background-color: var(--onyx);
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #fff;
  padding: 48px 24px;
  overflow: hidden;
}

.page-hero-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 13, 13, 0.72) 0%, rgba(13, 13, 13, 0.78) 100%);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.page-hero-eyebrow {
  margin: 0 0 19px;
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-hero-dark h1 {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  margin: 10px 0 16px;
}

.page-hero-sub {
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 620px;
  margin: 0;
}

#contact-body { background: var(--paper); padding-top: 56px; }

@media (max-width: 560px) {
  .page-hero-dark { padding: 40px 20px; min-height: 200px; }
}

/* ---------- Modal (sponsorship coming-soon, etc.) ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(13, 13, 13, 0.75);
}

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

.modal-box {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--onyx);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.modal-box h3 {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 14px;
  padding-right: 20px;
}

.modal-box p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
  margin: 0 0 26px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

/* Mobile browsers (notably iOS Safari) don't reliably paint
   background-attachment: fixed, so the topbar/hero background image
   never appears there, and stacking several sections that each compute
   their own "cover" crop independently makes the seams between them
   visible. bg-fixed.js manually recreates the fixed-background math
   (same image, same anchor point, sized to the viewport) on every
   participating element for as long as this media query matches, so the
   photo reads as one continuous, non-repeating image across the topbar,
   hero and any section(s) below it. Only the attachment is overridden
   here; size/position/repeat are set inline by that script. */
@media (max-width: 900px) {
  body.home .topbar,
  body.home .hero,
  body.home .progress-note,
  body.dark-hero-page .topbar,
  body.dark-hero-page .page-hero-dark,
  body.dark-hero-page > .hero,
  .page-hero-dark {
    background-attachment: scroll;
  }
}

.modal-close:hover { color: #fff; }
