:root {
  --ink: #0b0d0b;
  --charcoal: #111510;
  --charcoal-2: #181d17;
  --field: #303a28;
  --field-light: #68715a;
  --red: #6b201f;
  --red-light: #9b3a32;
  --brass: #b08b4f;
  --brass-light: #d1b374;
  --paper: #e8dec3;
  --paper-muted: #b9af96;
  --white: #f5f1e6;
  --line: rgba(232, 222, 195, 0.18);
  --display: "Barlow Condensed", Impact, sans-serif;
  --body: "Source Sans 3", system-ui, sans-serif;
  --wrap: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--paper); background: var(--ink); font-family: var(--body); font-size: 1rem; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
.wrap { width: var(--wrap); margin-inline: auto; }
.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; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .75rem 1rem; color: var(--ink); background: var(--brass-light); font-weight: 700; }
.skip-link:focus { top: 1rem; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 30; display: flex; align-items: center; justify-content: space-between; height: 84px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); border-bottom: 1px solid rgba(255,255,255,.12); transition: background .25s, height .25s; }
.site-header.is-scrolled { height: 68px; background: rgba(11,13,11,.94); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; text-transform: uppercase; }
.brand-shield { display: grid; place-items: center; width: 42px; height: 48px; color: var(--brass-light); border: 1px solid var(--brass); clip-path: polygon(50% 0, 100% 15%, 88% 78%, 50% 100%, 12% 78%, 0 15%); font-family: var(--display); font-size: 1.1rem; font-weight: 700; letter-spacing: .04em; background: rgba(11,13,11,.72); }
.brand strong, .brand small { display: block; line-height: 1; }
.brand strong { font-family: var(--display); font-size: 1.15rem; letter-spacing: .06em; }
.brand small { margin-top: 5px; color: var(--brass-light); font-size: .72rem; letter-spacing: .28em; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { position: relative; text-decoration: none; text-transform: uppercase; font-family: var(--display); font-size: .95rem; font-weight: 600; letter-spacing: .08em; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--brass); transition: right .2s; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }
.menu-button { display: none; width: 46px; height: 42px; padding: 9px; color: inherit; border: 1px solid var(--line); background: rgba(11,13,11,.6); }
.menu-button span:not(.sr-only) { display: block; width: 100%; height: 2px; margin: 5px 0; background: currentColor; }

.hero { position: relative; min-height: 760px; height: 100svh; max-height: 940px; display: grid; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-image, .hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: 58% center; }
.hero-overlay { background: linear-gradient(90deg, rgba(8,10,8,.98) 0%, rgba(8,10,8,.86) 34%, rgba(8,10,8,.34) 67%, rgba(8,10,8,.12) 100%), linear-gradient(0deg, rgba(8,10,8,.8), transparent 40%); }
.hero-content { position: relative; z-index: 2; padding-top: 78px; }
.eyebrow, .section-kicker { margin: 0 0 18px; color: var(--brass-light); text-transform: uppercase; font-family: var(--display); font-size: .92rem; font-weight: 700; letter-spacing: .18em; }
.eyebrow { display: flex; align-items: center; gap: 12px; }
.eyebrow span { width: 38px; height: 2px; background: var(--red-light); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); text-transform: uppercase; line-height: .98; }
h1 { max-width: 820px; margin-bottom: 25px; color: var(--white); font-size: clamp(4.5rem, 8.2vw, 8rem); letter-spacing: -.025em; }
h2 { margin-bottom: 24px; color: var(--white); font-size: clamp(3rem, 5vw, 5.1rem); letter-spacing: -.02em; }
h3 { margin-bottom: 12px; color: var(--white); font-size: 1.75rem; letter-spacing: .01em; }
.hero-lead { max-width: 610px; margin-bottom: 34px; color: #dad4c4; font-size: 1.25rem; line-height: 1.5; }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; padding: 13px 22px; border: 1px solid transparent; text-decoration: none; text-transform: uppercase; font-family: var(--display); font-size: 1rem; font-weight: 700; letter-spacing: .08em; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--red); border-color: var(--red-light); }
.button-primary:hover { background: var(--red-light); }
.button-secondary { color: var(--paper); background: rgba(12,14,12,.58); border-color: rgba(232,222,195,.42); }
.button-secondary:hover { border-color: var(--brass); }
.hero-meta { position: absolute; z-index: 2; right: max(24px, calc((100vw - 1180px) / 2)); bottom: 0; display: flex; background: rgba(11,13,11,.9); border-top: 1px solid var(--line); border-inline: 1px solid var(--line); }
.hero-meta span { padding: 14px 18px; color: var(--paper-muted); border-right: 1px solid var(--line); text-transform: uppercase; font-family: var(--display); font-size: .78rem; letter-spacing: .08em; }
.hero-meta span:last-child { border-right: 0; }

.section { padding: 110px 0; }
.intro { background: var(--charcoal); }
.intro-grid, .boot-grid, .command-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 9%; }
.intro-copy { padding-top: 44px; color: var(--paper-muted); font-size: 1.15rem; }
.intro-copy > p { max-width: 650px; }
.principles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.principles span { padding: 7px 12px; color: var(--paper); border: 1px solid var(--line); text-transform: uppercase; font-family: var(--display); font-size: .82rem; letter-spacing: .07em; }
.section-heading { display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 10%; margin-bottom: 52px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { color: var(--paper-muted); }

.systems { position: relative; background: #0d100d; }
.systems::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18; background-image: linear-gradient(rgba(232,222,195,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(232,222,195,.08) 1px, transparent 1px); background-size: 52px 52px; }
.systems .wrap { position: relative; }
.system-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.system-card { position: relative; min-height: 390px; display: flex; flex-direction: column; justify-content: space-between; padding: 30px; overflow: hidden; background: var(--charcoal-2); border: 1px solid var(--line); }
.system-card-featured { background: linear-gradient(145deg, #273021, #161a15 70%); border-color: rgba(176,139,79,.5); }
.system-number { color: var(--brass); font-family: var(--display); font-size: .85rem; letter-spacing: .14em; }
.card-tag { margin-bottom: 10px; color: var(--brass-light); text-transform: uppercase; font-family: var(--display); font-size: .78rem; font-weight: 700; letter-spacing: .13em; }
.system-card p:last-child { position: relative; z-index: 2; color: var(--paper-muted); }
.system-card h3 { position: relative; z-index: 2; font-size: 2.5rem; }
.card-mark { position: absolute; right: -12px; bottom: -32px; color: rgba(232,222,195,.045); font-family: var(--display); font-size: 9rem; font-weight: 700; line-height: 1; }

.events { background: #151914; }
.schedule { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.schedule-card { display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: center; padding: 30px; background: #1c211a; border: 1px solid var(--line); }
.schedule-card-accent { border-top: 3px solid var(--red-light); }
.schedule-date { min-height: 120px; display: flex; flex-direction: column; justify-content: center; align-items: center; border-right: 1px solid var(--line); }
.schedule-date strong { color: var(--brass-light); font-family: var(--display); font-size: 3rem; line-height: 1; }
.schedule-date span { color: var(--paper-muted); text-transform: uppercase; font-family: var(--display); font-size: .78rem; letter-spacing: .08em; }
.schedule-card p:last-child, .venue > p { margin-bottom: 0; color: var(--paper-muted); }
.venue { display: grid; grid-template-columns: .7fr 1.1fr auto; align-items: center; gap: 7%; margin-top: 14px; padding: 30px; border: 1px solid var(--line); background: var(--field); }
.venue h3, .venue .section-kicker { margin-bottom: 0; }
.text-link { color: var(--white); text-transform: uppercase; text-decoration-color: var(--brass); text-underline-offset: 5px; font-family: var(--display); font-weight: 700; letter-spacing: .06em; white-space: nowrap; }

.boot-camp { background: var(--paper); color: #292a24; }
.boot-camp h2, .boot-camp h3 { color: #151713; }
.boot-camp .section-kicker { color: var(--red); }
.boot-lead { max-width: 530px; margin-bottom: 30px; font-size: 1.2rem; }
.boot-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(15,18,14,.22); }
.boot-steps li { display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid rgba(15,18,14,.22); }
.boot-steps li > span { color: var(--red); font-family: var(--display); font-size: 1.1rem; font-weight: 700; }
.boot-steps h3 { margin-bottom: 5px; font-size: 1.55rem; }
.boot-steps p { margin-bottom: 0; }

.gallery { background: #0d100d; }
.gallery-grid { display: grid; grid-template-columns: 1.4fr .8fr; grid-template-rows: 240px 240px; gap: 14px; }
.gallery-callout { position: relative; overflow: hidden; border: 1px solid var(--line); }
.gallery-callout-main { grid-row: 1 / 3; }
.gallery-callout img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery-callout:hover img { transform: scale(1.03); }
.gallery-callout-main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,7,5,.92), transparent 55%); }
.gallery-callout > div { position: absolute; z-index: 2; inset: auto 26px 24px; }
.gallery-callout span { color: var(--brass-light); text-transform: uppercase; font-family: var(--display); font-size: .78rem; font-weight: 700; letter-spacing: .13em; }
.gallery-callout h3 { margin: 4px 0 0; font-size: 2rem; }
.gallery-placeholder { background: linear-gradient(145deg, #20261e, #131713); }
.gallery-placeholder::before { content: ""; position: absolute; inset: 20px; border: 1px dashed rgba(232,222,195,.16); }
.gallery-placeholder .gallery-icon { position: absolute; left: 26px; top: 22px; color: rgba(176,139,79,.45); font-size: 2rem; }
.submission { display: grid; grid-template-columns: .8fr 1.2fr; gap: 8%; align-items: start; margin-top: 70px; padding: 38px; background: var(--charcoal-2); border-left: 4px solid var(--brass); }
.submission h3 { font-size: 2rem; }
.submission ol { margin: 0; padding-left: 24px; color: var(--paper-muted); }
.submission li { padding: 6px 0 6px 10px; }

.command { background: #171b16; }
.command-list { border-top: 1px solid var(--line); }
.command-list > div { display: grid; grid-template-columns: .75fr 1.25fr; gap: 30px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.command-list strong { color: var(--brass-light); text-transform: uppercase; font-family: var(--display); font-size: 1.1rem; letter-spacing: .04em; }
.command-list p { margin-bottom: 0; color: var(--paper-muted); }

.contact { position: relative; padding: 130px 0; text-align: center; background: var(--field); overflow: hidden; }
.contact::before { content: "MG"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: rgba(232,222,195,.035); font-family: var(--display); font-size: 28rem; font-weight: 700; line-height: 1; }
.contact-inner { position: relative; z-index: 2; }
.contact h2 { margin-bottom: 18px; font-size: clamp(4rem, 8vw, 7rem); }
.contact p:not(.section-kicker) { max-width: 630px; margin: 0 auto 30px; color: #d2ccb9; font-size: 1.15rem; }
.contact-actions { justify-content: center; }

.site-footer { padding: 60px 0 26px; background: #080a08; }
.footer-main { display: grid; grid-template-columns: 1.1fr 1fr .9fr; gap: 7%; align-items: start; padding-bottom: 48px; }
.footer-main > p { color: var(--paper-muted); }
.footer-main nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.footer-main nav a { color: var(--paper-muted); text-decoration: none; }
.footer-main nav a:hover { color: var(--brass-light); }
.footer-legal { display: flex; justify-content: space-between; gap: 50px; padding-top: 24px; border-top: 1px solid var(--line); color: #837e6f; font-size: .82rem; }
.footer-legal p:first-child { max-width: 800px; }
.footer-legal p { margin-bottom: 0; }

:focus-visible { outline: 3px solid var(--brass-light); outline-offset: 4px; }

@media (max-width: 920px) {
  .menu-button { display: block; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 16px 24px 24px; background: rgba(11,13,11,.98); border-bottom: 1px solid var(--line); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 0; }
  .main-nav a::after { display: none; }
  .hero { min-height: 720px; }
  .hero-meta { left: 0; right: 0; justify-content: center; }
  .intro-grid, .boot-grid, .command-grid { grid-template-columns: 1fr; gap: 35px; }
  .intro-copy { padding-top: 0; }
  .system-grid { grid-template-columns: 1fr; }
  .system-card { min-height: 260px; }
  .schedule { grid-template-columns: 1fr; }
  .venue { grid-template-columns: 1fr; gap: 18px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 420px 240px; }
  .gallery-callout-main { grid-column: 1 / 3; grid-row: auto; }
  .submission { grid-template-columns: 1fr; gap: 20px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-main nav { grid-column: 1 / 3; }
}

@media (max-width: 640px) {
  :root { --wrap: min(100% - 28px, 1180px); }
  .site-header { height: 72px; padding-inline: 14px; }
  .brand-shield { width: 36px; height: 42px; font-size: .95rem; }
  .brand strong { font-size: 1rem; }
  .brand small { font-size: .64rem; }
  .hero { min-height: 740px; align-items: end; padding-bottom: 148px; }
  .hero-image { object-position: 63% center; }
  .hero-overlay { background: linear-gradient(0deg, rgba(8,10,8,.98) 8%, rgba(8,10,8,.73) 64%, rgba(8,10,8,.34)); }
  .hero-content { padding-top: 110px; }
  h1 { font-size: clamp(3.5rem, 17vw, 5rem); }
  h2 { font-size: clamp(2.6rem, 13vw, 4rem); }
  .hero-lead { font-size: 1.08rem; }
  .hero-actions .button { width: 100%; }
  .hero-meta { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-meta span { padding: 10px; text-align: center; }
  .hero-meta span:last-child { grid-column: 1 / 3; border-top: 1px solid var(--line); }
  .section { padding: 76px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 16px; margin-bottom: 35px; }
  .system-card { padding: 24px; }
  .schedule-card { grid-template-columns: 82px 1fr; gap: 18px; padding: 22px 18px; }
  .schedule-date { min-height: 100px; }
  .schedule-date strong { font-size: 2.2rem; }
  .boot-steps li { grid-template-columns: 50px 1fr; }
  .gallery-grid { display: grid; grid-template-columns: 1fr; grid-template-rows: 330px 210px 210px; }
  .gallery-callout-main { grid-column: auto; }
  .submission { margin-top: 45px; padding: 26px 22px; }
  .command-list > div { grid-template-columns: 1fr; gap: 6px; }
  .contact { padding: 95px 0; }
  .contact-actions .button { width: 100%; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-main nav { grid-column: auto; }
  .footer-legal { flex-direction: column; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
