:root {
  --maroon: #5c1424;
  --maroon-deep: #33080f;
  --gold: #c9a45a;
  --gold-soft: #ecd9a6;
  --color-bg: #f8f3ea;
  --color-surface: #fffdf8;
  --color-surface-2: #f1e9da;
  --color-text: #231a17;
  --color-muted: #6b5d55;
  --color-border: #e2d6c3;
  --color-accent: var(--maroon);
  --color-accent-contrast: #fffaf0;

  --font-display: 'Gambetta', 'Georgia', serif;
  --font-body: 'Switzer', 'Helvetica Neue', sans-serif;

  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.85rem + 0.15vw, 0.9375rem);
  --text-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --text-xl: clamp(1.625rem, 1.4rem + 1vw, 2.25rem);
  --text-2xl: clamp(2.25rem, 1.8rem + 2vw, 3.5rem);
  --text-hero: clamp(2.75rem, 1.9rem + 4.2vw, 5.5rem);

  --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem; --space-6: 1.5rem;
  --space-8: 2rem; --space-12: 3rem; --space-16: 4rem; --space-24: 6rem;
  --section: clamp(4rem, 9vw, 7.5rem);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(40 20 10 / 0.06), 0 8px 28px rgb(40 20 10 / 0.07);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1180px;
}

[data-theme="dark"] {
  --color-bg: #1a1312;
  --color-surface: #231a18;
  --color-surface-2: #2c211e;
  --color-text: #f3ebe0;
  --color-muted: #b8a89b;
  --color-border: #3d2f2a;
  --color-accent: #e0b24b;
  --color-accent-contrast: #231a17;
  --maroon: #8e2f3f;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-body); font-size: var(--text-base); line-height: 1.6;
  -webkit-font-smoothing: antialiased; transition: background .3s, color .3s;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section); }
.eyebrow {
  font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; color: var(--color-accent); display: inline-flex; gap: .6rem; align-items: center;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.section-title { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 500; margin-top: var(--space-3); }
.lede { color: var(--color-muted); max-width: 60ch; margin-top: var(--space-4); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.35rem; border-radius: 999px; font-size: var(--text-sm); font-weight: 600;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--maroon); color: #fffaf0; }
.btn-primary:hover { background: var(--maroon-deep); }
.btn-gold { background: var(--gold); color: #231a17; }
.btn-gold:hover { background: #d8b56c; }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn-light { border-color: rgb(255 250 240 / .7); color: #fffaf0; }
.btn-light:hover { background: rgb(255 250 240 / .12); }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.scrolled { border-color: var(--color-border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand svg { width: 42px; height: 42px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.brand-sub { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--color-muted); }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a { font-size: var(--text-sm); text-decoration: none; color: var(--color-muted); font-weight: 500; transition: color .2s; }
.nav a:hover { color: var(--color-text); }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--color-border);
  background: transparent; display: grid; place-items: center; cursor: pointer;
}
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }

@media (max-width: 960px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--color-surface); border-bottom: 1px solid var(--color-border); padding: .5rem 1.25rem 1rem; }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--color-border); font-size: var(--text-base); }
  .menu-btn { display: grid; }
  .header-actions .btn { display: none; }
}

/* Hero */
.hero { position: relative; min-height: min(88vh, 820px); display: grid; align-items: end; color: #fffaf0; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(30 10 12 / .15) 0%, rgb(30 10 12 / .35) 45%, rgb(40 10 16 / .88) 100%); }
.hero-content { position: relative; padding-block: var(--space-24) clamp(3rem, 7vw, 5.5rem); }
.hero .eyebrow { color: var(--gold-soft); }
.hero h1 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-hero); max-width: 14ch; margin-top: var(--space-4); letter-spacing: -.01em; }
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero p { max-width: 54ch; margin-top: var(--space-6); font-size: var(--text-lg); color: rgb(255 250 240 / .88); line-height: 1.5; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: var(--space-8); }

/* Pathways */
.pathways { margin-top: calc(-1 * var(--space-12)); position: relative; z-index: 2; }
.pathway-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.pathway {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: var(--space-8); box-shadow: var(--shadow); text-decoration: none; display: flex; flex-direction: column; gap: .6rem;
  transition: transform .3s var(--ease), border-color .3s;
}
.pathway:hover { transform: translateY(-4px); border-color: var(--gold); }
.pathway .num { font-family: var(--font-display); font-size: var(--text-xl); color: var(--gold); line-height: 1; }
.pathway h3 { font-size: var(--text-lg); font-weight: 600; }
.pathway p { color: var(--color-muted); font-size: var(--text-sm); }
.pathway .arrow { margin-top: auto; padding-top: .5rem; font-size: var(--text-sm); font-weight: 600; color: var(--color-accent); }
@media (max-width: 820px) { .pathway-grid { grid-template-columns: 1fr; } .pathways { margin-top: calc(-1 * var(--space-8)); } }

/* About */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }
.fund-list { list-style: none; padding: 0; margin: var(--space-8) 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.5rem; }
.fund-list li { display: flex; gap: .7rem; align-items: flex-start; font-size: var(--text-sm); }
.fund-list svg { width: 20px; height: 20px; flex: none; color: var(--gold); margin-top: 2px; }
.fund-list strong { display: block; font-size: var(--text-base); }
.fund-list span { color: var(--color-muted); }
@media (max-width: 520px) { .fund-list { grid-template-columns: 1fr; } }

/* Quote band */
.band { position: relative; color: #fffaf0; overflow: hidden; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: rgb(60 14 22 / .72); }
.band .wrap { position: relative; z-index: 1; padding-block: clamp(5rem, 11vw, 8.5rem); text-align: center; }
.band blockquote { margin: 0 auto; max-width: 26ch; font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1.15; font-weight: 500; }
.band cite { display: block; margin-top: var(--space-6); font-style: normal; font-size: var(--text-sm); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-soft); }

/* Board */
.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: var(--space-12); }
.person { text-align: left; }
.avatar { aspect-ratio: 1; border-radius: var(--radius); background: var(--color-surface-2); border: 1px dashed var(--color-border);
  display: grid; place-items: center; color: var(--color-muted); font-family: var(--font-display); font-size: var(--text-xl); }
.person h3 { font-size: var(--text-base); font-weight: 600; margin-top: .8rem; }
.person p { font-size: var(--text-sm); color: var(--color-muted); }
@media (max-width: 820px) { .board { grid-template-columns: repeat(2, 1fr); } }

/* Membership */
.alt { background: var(--color-surface-2); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: var(--space-12); }
.tier {
  background: var(--color-surface); border: 1.5px solid var(--color-border); border-radius: var(--radius);
  padding: var(--space-8) var(--space-6); display: flex; flex-direction: column; gap: 1rem; position: relative;
  transition: border-color .25s, transform .3s var(--ease);
}
.tier:hover { transform: translateY(-3px); }
.tier.featured { border-color: var(--maroon); }
.tier .badge { position: absolute; top: -12px; left: var(--space-6); background: var(--maroon); color: #fffaf0;
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; }
.tier h3 { font-size: var(--text-lg); font-weight: 600; }
.price { font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1; }
.price small { font-family: var(--font-body); font-size: var(--text-sm); color: var(--color-muted); }
.tier ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: var(--text-sm); color: var(--color-muted); flex: 1; }
.tier li { display: flex; gap: .5rem; }
.tier li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-top: .5rem; flex: none; }
.tier .btn { width: 100%; }
@media (max-width: 1000px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiers { grid-template-columns: 1fr; } }

/* Sponsors */
.sponsor-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: var(--space-12); }
.s-tier { border-top: 3px solid var(--gold); padding-top: var(--space-6); }
.s-tier:nth-child(2) { border-color: var(--maroon); }
.s-tier:nth-child(3) { border-color: var(--color-text); }
.s-tier h3 { font-size: var(--text-lg); font-weight: 600; }
.s-tier .amt { font-family: var(--font-display); font-size: var(--text-xl); margin-top: .3rem; }
.s-tier p { color: var(--color-muted); font-size: var(--text-sm); margin-top: .6rem; }
.logo-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: .75rem; margin-top: var(--space-12); }
.logo-slot { aspect-ratio: 3/2; border: 1px dashed var(--color-border); border-radius: var(--radius-sm); display: grid; place-items: center;
  color: var(--color-muted); font-size: var(--text-xs); text-align: center; padding: .5rem; }
@media (max-width: 820px) { .sponsor-tiers { grid-template-columns: 1fr; } .logo-wall { grid-template-columns: repeat(3, 1fr); } }

/* Events */
.events { margin-top: var(--space-12); border-top: 1px solid var(--color-border); }
.event { display: grid; grid-template-columns: 110px 1fr auto; gap: 1.5rem; align-items: center; padding: var(--space-6) 0; border-bottom: 1px solid var(--color-border); }
.date { font-family: var(--font-display); line-height: 1; }
.date .m { display: block; font-family: var(--font-body); font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--color-accent); font-weight: 600; }
.date .d { font-size: var(--text-2xl); }
.event h3 { font-size: var(--text-lg); font-weight: 600; }
.event p { color: var(--color-muted); font-size: var(--text-sm); margin-top: .2rem; }
.tag { font-size: var(--text-xs); padding: .3rem .7rem; border-radius: 999px; background: var(--color-surface-2); color: var(--color-muted); white-space: nowrap; }
@media (max-width: 640px) { .event { grid-template-columns: 70px 1fr; } .event .btn { grid-column: 2; justify-self: start; } }

/* Donate */
.donate { background: var(--maroon-deep); color: #fffaf0; }
[data-theme="dark"] .donate { background: #2a0e14; }
.donate .eyebrow { color: var(--gold-soft); }
.donate .lede { color: rgb(255 250 240 / .78); }
.donate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 860px) { .donate-grid { grid-template-columns: 1fr; } }
.card { background: var(--color-surface); color: var(--color-text); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow); }
.toggle { display: grid; grid-template-columns: 1fr 1fr; background: var(--color-surface-2); border-radius: 999px; padding: 4px; }
.toggle button { border: 0; background: transparent; padding: .6rem; border-radius: 999px; font-size: var(--text-sm); font-weight: 600; cursor: pointer; color: var(--color-muted); }
.toggle button[aria-pressed="true"] { background: var(--color-surface); color: var(--color-text); box-shadow: 0 1px 3px rgb(0 0 0 / .1); }
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: var(--space-6); }
.amounts button { border: 1.5px solid var(--color-border); background: transparent; border-radius: var(--radius-sm); padding: .85rem .5rem; font-weight: 600; cursor: pointer; transition: border-color .2s, background .2s; }
.amounts button:hover { border-color: var(--gold); }
.amounts button[aria-pressed="true"] { border-color: var(--maroon); background: color-mix(in srgb, var(--maroon) 8%, transparent); }
[data-theme="dark"] .amounts button[aria-pressed="true"] { border-color: var(--gold); }
.impact { margin-top: var(--space-4); font-size: var(--text-sm); color: var(--color-muted); min-height: 3em; }
.uses { display: grid; gap: 1rem; margin-top: var(--space-8); }
.use { display: grid; grid-template-columns: 64px 1fr; gap: 1rem; align-items: center; }
.use .pct { font-family: var(--font-display); font-size: var(--text-xl); color: var(--gold); }
.bar { height: 6px; border-radius: 3px; background: rgb(255 250 240 / .15); margin-top: .4rem; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--gold); border-radius: 3px; }
.use p { font-size: var(--text-sm); }

/* Forms */
.field { display: grid; gap: .35rem; margin-top: var(--space-4); }
.field label, fieldset legend { font-size: var(--text-sm); font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
  background: var(--color-bg); transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--maroon); }
[data-theme="dark"] .field input:focus, [data-theme="dark"] .field textarea:focus { border-color: var(--gold); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }
fieldset { border: 0; padding: 0; margin: var(--space-6) 0 0; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .6rem; }
.check { display: flex; gap: .6rem; align-items: center; padding: .7rem .8rem; border: 1.5px solid var(--color-border); border-radius: var(--radius-sm); cursor: pointer; font-size: var(--text-sm); }
.check:has(input:checked) { border-color: var(--maroon); background: color-mix(in srgb, var(--maroon) 6%, transparent); }
.check input { accent-color: var(--maroon); width: 16px; height: 16px; }
.form-foot { margin-top: var(--space-6); display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.note { font-size: var(--text-xs); color: var(--color-muted); }
.success { display: none; padding: 1rem 1.1rem; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--gold) 20%, transparent); font-size: var(--text-sm); margin-top: var(--space-4); }
.success.show { display: block; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: var(--space-8) 0 0; display: grid; gap: 1.25rem; }
.contact-list li { display: grid; grid-template-columns: 40px 1fr; gap: .9rem; align-items: center; }
.contact-list .ic { width: 40px; height: 40px; border-radius: 50%; background: var(--color-surface-2); display: grid; place-items: center; color: var(--color-accent); }
.contact-list .ic svg { width: 18px; height: 18px; }
.contact-list small { display: block; color: var(--color-muted); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .1em; }

/* Newsletter + footer */
.newsletter { display: flex; gap: .6rem; margin-top: var(--space-4); max-width: 420px; }
.newsletter input { flex: 1; padding: .75rem 1rem; border-radius: 999px; border: 1px solid rgb(255 250 240 / .25); background: rgb(255 250 240 / .06); color: #fffaf0; }
.newsletter input::placeholder { color: rgb(255 250 240 / .55); }
.footer { background: #1c1210; color: rgb(255 250 240 / .8); padding-block: var(--space-16) var(--space-8); font-size: var(--text-sm); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 2.5rem; }
.footer h4 { font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); margin: 0 0 1rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fffaf0; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer .brand { color: #fffaf0; }
.footer .brand-sub { color: rgb(255 250 240 / .55); }
.disclaimer { margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid rgb(255 250 240 / .12);
  display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; font-size: var(--text-xs); color: rgb(255 250 240 / .55); }
.disclaimer p { max-width: 70ch; }
.socials { display: flex; gap: .5rem; margin-top: 1.25rem; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgb(255 250 240 / .2); display: grid; place-items: center; }
.socials svg { width: 16px; height: 16px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

.brand img { height: 40px; width: auto; aspect-ratio: 240 / 134; border-radius: 4px; }
.footer .brand img { height: 56px; }
.hero-badge { width: min(240px, 60vw); height: auto; aspect-ratio: 1160 / 650; object-fit: cover; border-radius: 6px; box-shadow: 0 12px 40px rgb(0 0 0 / .45); margin-bottom: var(--space-6); }
.band-leather { background: #29060d url('assets/mgc-logo-full.webp') center/cover; }
.person .mail, .contact-list a { color: var(--color-accent); text-decoration: none; font-weight: 500; word-break: break-word; }
.person .mail:hover, .contact-list a:hover { text-decoration: underline; }
.avatar { background: var(--maroon-deep); color: var(--gold-soft); border: 1px solid var(--gold); border-style: solid; }
