:root {
  --color-primary: #f5b900;
  --color-secondary: #0b0b0a;
  --color-bg-light: #f4f1e8;
  --color-bg-dark: #0b0b0a;
  --color-text: #11110f;
  --color-text-secondary: #6c6b65;
  --color-border: #c9c5b9;
  --color-success: #14733b;
  --color-alert: #a94d1e;
  --color-conquered: #f5b900;
  --color-unconquered: #d5d1c6;
  --color-review: #eee8d9;
  --font-display: "Arial Narrow", "Roboto Condensed", "Helvetica Neue Condensed", Impact, sans-serif;
  --font-body: Arial, "Helvetica Neue", sans-serif;
  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 7rem;
  --max-width: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--color-bg-light); color: var(--color-text); font-family: var(--font-body); font-size: 16px; line-height: 1.55; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 3px; }
::selection { background: var(--color-primary); color: var(--color-secondary); }
.skip-link { position: fixed; z-index: 9999; top: .75rem; left: .75rem; padding: .8rem 1rem; transform: translateY(-160%); background: var(--color-primary); color: var(--color-secondary); font-weight: 800; }
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
main:focus, #main-content:focus { outline: none; }

.page-shell { width: min(calc(100% - 48px), var(--max-width)); margin-inline: auto; }
.section { padding-block: var(--space-7); }
.section--dark { background: var(--color-bg-dark); color: var(--color-bg-light); }
.section--yellow { background: var(--color-primary); color: var(--color-secondary); }
.section-index, .eyebrow, .panel-label { display: block; font-family: var(--font-display); font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.section-index { color: var(--color-text-secondary); }
.section-index--light { color: #9a9890; }
.eyebrow--yellow { color: var(--color-primary); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 900; line-height: .9; letter-spacing: -.035em; text-transform: uppercase; }
h1, h2, h3, strong, p { overflow-wrap: anywhere; }
h2 { margin: 1.5rem 0 0; font-size: clamp(3.2rem, 7vw, 7.6rem); }
h2 em, h1 em { color: var(--color-primary); font-style: normal; }
.section--yellow h2 em { color: var(--color-bg-light); }
.section-heading { display: grid; grid-template-columns: 8fr 4fr; align-items: end; gap: 3rem; margin-bottom: 4rem; }
.section-heading > p { max-width: 28rem; margin: 0 0 .5rem; color: #aaa79e; }
.section-heading--map > p { color: var(--color-text-secondary); }

.site-header { position: relative; z-index: 20; width: min(calc(100% - 48px), var(--max-width)); height: 88px; margin: auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--color-border); }
.site-header--dark { color: var(--color-bg-light); border-color: #32322f; }
.wordmark { display: flex; flex-direction: column; font-family: var(--font-display); line-height: 1; }
.wordmark span { font-size: 1.42rem; font-weight: 900; letter-spacing: .02em; }
.wordmark small { margin-top: .25rem; font-size: .55rem; letter-spacing: .22em; color: var(--color-primary); }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.25rem); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.nav a:not(.nav-cta) { padding-block: 1rem; }
.nav a[aria-current="page"]:not(.nav-cta) { color: var(--color-primary); }
.nav-cta { padding: .75rem 1.25rem; background: var(--color-primary); color: var(--color-secondary); }
.language-switch { display: inline-flex; align-items: center; gap: .35rem; font-family: monospace; font-size: .68rem; }
.language-switch a { min-width: 40px; min-height: 40px; display: grid; place-items: center; padding: .25rem !important; color: #5f5e58; }
.site-header--dark .language-switch a { color: #aaa79e; }
.language-switch a[aria-current="true"] { color: var(--color-primary); }
.menu-toggle { display: none; border: 0; background: none; font-family: var(--font-display); font-weight: 900; text-transform: uppercase; }

.hero { min-height: 820px; background-color: var(--color-bg-dark); color: var(--color-bg-light); overflow: hidden; }
.hero--home { background-image: linear-gradient(#232320 1px, transparent 1px), linear-gradient(90deg, #232320 1px, transparent 1px); background-size: 8.333vw 100%, 100% 96px; }
.hero-grid { min-height: 732px; position: relative; display: grid; grid-template-columns: 8fr 4fr; align-items: center; gap: 2rem; }
.hero-copy h1 { margin: 0; display: grid; width: min-content; grid-template-columns: auto auto; align-items: end; line-height: .72; }
.hero-copy h1 span { font-size: clamp(4rem, 7.2vw, 8rem); letter-spacing: .01em; }
.hero-copy h1 span:first-child { align-self: start; padding-top: 1.1rem; }
.hero-copy h1 span:last-child { grid-column: 1 / -1; letter-spacing: .19em; }
.hero-copy h1 strong { grid-row: span 2; font-size: clamp(14rem, 28vw, 31rem); line-height: .64; color: var(--color-primary); letter-spacing: -.08em; }
.hero-slogan { margin-top: 2.2rem; font-family: var(--font-display); font-size: clamp(1.3rem, 2.3vw, 2.2rem); font-weight: 900; letter-spacing: .17em; }
.hero-slogan em { color: var(--color-primary); font-style: normal; }
.hero-statement { align-self: end; padding-bottom: 8.5rem; }
.hero-statement > p { font-family: var(--font-display); font-size: clamp(2.1rem, 3.4vw, 4.2rem); font-weight: 900; line-height: .95; text-transform: uppercase; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.button { min-height: 48px; padding: .88rem 1.25rem; display: inline-flex; align-items: center; justify-content: center; gap: 1.5rem; border: 1px solid transparent; border-radius: 0; font-family: var(--font-display); font-size: .86rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.button--primary { background: var(--color-primary); color: var(--color-secondary); }
.button--ghost { background: transparent; color: inherit; border-color: #555550; }
.button--dark { background: var(--color-secondary); color: var(--color-bg-light); }
.button--outline { background: transparent; border-color: var(--color-border); }
.button--large { min-height: 64px; padding-inline: 2rem; }
.route-line { position: absolute; right: 0; bottom: 3.8rem; width: 49%; display: flex; align-items: center; }
.route-run { flex: 1; border-top: 1px dashed #68675f; }
.route-dot { width: 9px; height: 9px; background: var(--color-primary); border-radius: 50%; }
.route-dot--end { background: transparent; border: 2px solid var(--color-primary); }
.hero-coordinates { position: absolute; bottom: 1.7rem; left: 0; right: 51%; display: flex; justify-content: space-between; font-family: monospace; color: #77766f; font-size: .69rem; letter-spacing: .12em; }

.manifesto { display: grid; grid-template-columns: 2fr 6fr 4fr; gap: 2rem; align-items: start; }
.manifesto-title { font-family: var(--font-display); font-size: clamp(3rem, 6.2vw, 7rem); font-weight: 900; line-height: .88; letter-spacing: -.04em; text-transform: uppercase; }
.manifesto-title span, .manifesto-title strong { display: block; }
.manifesto-title strong { color: var(--color-primary); }
.manifesto-copy { padding-top: .35rem; font-size: 1.05rem; }
.manifesto-copy p + p { color: var(--color-text-secondary); }

.steps-grid { margin: 0 0 2.5rem; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #42423e; border-left: 1px solid #42423e; }
.steps-grid li { min-height: 210px; padding: 1.5rem; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid #42423e; border-bottom: 1px solid #42423e; }
.steps-grid span { color: var(--color-primary); font-family: monospace; font-size: .8rem; }
.steps-grid strong { max-width: 18rem; font-family: var(--font-display); font-size: 1.8rem; line-height: 1; text-transform: uppercase; }
.text-link, .text-action { border: 0; border-bottom: 1px solid currentColor; background: none; padding: 0 0 .25rem; font-family: var(--font-display); font-size: .82rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.text-link--light { color: var(--color-primary); }

.map-module { display: grid; grid-template-columns: 8fr 4fr; min-height: 630px; background: #e7e3d8; border: 1px solid var(--color-border); }
.map-stage { position: relative; min-height: 630px; overflow: hidden; padding: 4rem; border-right: 1px solid var(--color-border); background-color: #ede9de; background-image: linear-gradient(#d6d2c7 1px, transparent 1px), linear-gradient(90deg, #d6d2c7 1px, transparent 1px); background-size: 8.333% 72px; }
.parish-topology { width: min(100%, 720px); height: 470px; margin: 1rem auto 0; display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 1fr; border: 1px solid #9e9b92; transform: skewY(-2deg); }
.topology-cell { position: relative; border: 0; border-right: 1px solid #9e9b92; border-bottom: 1px solid #9e9b92; background: rgba(244,241,232,.68); font-family: var(--font-display); font-size: 1.2rem; font-weight: 900; cursor: pointer; transition: background-color .18s ease, color .18s ease, transform .18s ease; }
.topology-cell:nth-child(6n) { border-right: 0; }
.topology-cell:nth-last-child(-n+6) { border-bottom: 0; }
.topology-cell--conquered { background: var(--color-conquered); }
.topology-cell--review { background: repeating-linear-gradient(135deg, #eee8d9, #eee8d9 8px, #dad5c8 8px, #dad5c8 9px); }
.topology-cell--locked { color: #9d9a91; }
.topology-cell.is-selected { z-index: 2; background: var(--color-secondary); color: var(--color-primary); outline: 3px solid var(--color-primary); outline-offset: -3px; transform: scale(1.04); }
.map-coordinate { position: absolute; font-family: monospace; font-size: .65rem; color: #7c7a73; letter-spacing: .16em; }
.map-coordinate--top { top: 1.25rem; left: 4rem; }
.map-coordinate--side { right: 1.25rem; top: 4rem; writing-mode: vertical-rl; }
.map-disclaimer { position: absolute; bottom: 1rem; left: 4rem; margin: 0; font-size: .65rem; color: var(--color-text-secondary); text-transform: uppercase; letter-spacing: .1em; }
.map-detail { position: relative; padding: 3rem; display: flex; flex-direction: column; align-items: flex-start; background: var(--color-secondary); color: var(--color-bg-light); }
.map-detail__number { margin-bottom: auto; color: var(--color-primary); font-family: var(--font-display); font-size: clamp(6rem, 11vw, 12rem); font-weight: 900; line-height: .75; }
.map-detail h3 { margin: 2rem 0 1rem; font-size: clamp(2.5rem, 4vw, 5rem); }
.map-detail p { color: #aaa79e; }
.map-detail dl { width: 100%; margin: 1rem 0 2.5rem; }
.map-detail dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-top: 1px solid #3b3b37; font-size: .75rem; }
.map-detail dt { color: #8d8b84; }
.map-detail dd { margin: 0; text-align: right; }
.map-detail .text-action { color: var(--color-primary); }
.map-module--compact { min-height: 500px; grid-template-columns: 1fr; }
.map-module--compact .map-stage { min-height: 500px; border: 0; }
.map-module--compact .parish-topology { height: 370px; }
.map-module--compact .map-detail { display: none; }

.status { display: inline-flex; align-items: center; min-height: 26px; padding: .25rem .55rem; border: 1px solid currentColor; font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.status--conquered { color: var(--color-secondary); background: var(--color-conquered); border-color: var(--color-conquered); }
.status--review { color: #7b5a16; background: var(--color-review); }
.status--available { color: var(--color-success); }
.status--locked { color: #5f5d57; }
.map-detail .status--available, .dashboard .status--available { color: #63c888; }
.map-detail .status--locked, .dashboard .status--locked { color: #b7b4ac; }

.journey-section { background: #dedacf; }
.state-legend { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: -1.5rem 0 2rem; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.state-legend span { display: flex; align-items: center; gap: .5rem; }
.legend-dot { width: 10px; height: 10px; border: 1px solid #89867e; }
.legend-dot--available { border-color: var(--color-success); }
.legend-dot--review { background: var(--color-review); }
.legend-dot--conquered { background: var(--color-conquered); border-color: var(--color-conquered); }
.journey-grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #aaa69d; border-left: 1px solid #aaa69d; }
.journey-item { position: relative; min-height: 210px; padding: 1rem; overflow: hidden; display: flex; flex-direction: column; border-right: 1px solid #aaa69d; border-bottom: 1px solid #aaa69d; background: rgba(244,241,232,.48); }
.journey-head { display: flex; justify-content: space-between; font-family: monospace; font-size: .68rem; text-transform: uppercase; }
.journey-item > strong { max-width: 13rem; margin-top: auto; font-family: var(--font-display); font-size: 1.55rem; line-height: 1; text-transform: uppercase; }
.journey-item time { margin-top: .5rem; font-size: .65rem; }
.journey-index { position: absolute; right: -.08em; bottom: -.28em; color: rgba(17,17,15,.04); font-family: var(--font-display); font-size: 8rem; font-weight: 900; }
.journey-item--conquered { background: var(--color-primary); }
.journey-item--locked { color: #5f5d57; background: #d7d3c8; }
.journey-item--review { background: #eee8d9; }
.stamp { position: absolute; top: 48%; right: .8rem; padding: .3rem .45rem; border: 2px solid var(--color-secondary); transform: rotate(-8deg); font-family: var(--font-display); font-size: .68rem; font-weight: 900; letter-spacing: .08em; }
.review-mark { color: #805f1c; font-size: .7rem; text-transform: uppercase; }

.validation-grid { display: grid; grid-template-columns: 4fr 5fr 3fr; gap: 4rem; align-items: end; }
.validation-grid h2 { font-size: clamp(3rem, 5vw, 6rem); }
.validation-receipt { padding: 2rem; background: var(--color-bg-light); box-shadow: 14px 14px 0 rgba(11,11,10,.16); }
.receipt-head, .receipt-result { display: flex; justify-content: space-between; font-size: .65rem; font-weight: 800; letter-spacing: .12em; }
.validation-receipt h3 { margin: 2.5rem 0 1.5rem; font-size: 3rem; }
.validation-receipt ul { margin: 0; padding: 0; list-style: none; }
.validation-receipt li { display: flex; justify-content: space-between; padding: .7rem 0; border-top: 1px solid var(--color-border); font-size: .76rem; }
.receipt-result { margin-top: 2rem; padding-top: 1rem; border-top: 3px solid var(--color-secondary); flex-direction: column; gap: .5rem; }
.receipt-result strong { font-family: var(--font-display); font-size: 1.4rem; }
.validation-copy p { max-width: 18rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 900; line-height: 1.05; text-transform: uppercase; }

.membership-intro { display: grid; grid-template-columns: 2fr 7fr 3fr; gap: 2rem; align-items: start; margin-bottom: 5rem; }
.membership-intro h2 { margin-top: 0; }
.membership-intro p { color: #aaa79e; }
.membership-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #44443f; }
.membership-compare article { min-height: 520px; padding: 3rem; background: #151513; display: flex; flex-direction: column; align-items: flex-start; }
.membership-compare h3 { margin: 2rem 0 .5rem; font-size: 3rem; }
.membership-compare article > strong { color: #8e8c84; font-family: monospace; }
.membership-compare ul { width: 100%; margin: 3rem 0; padding: 0; list-style: none; }
.membership-compare li { padding: .7rem 0; border-top: 1px solid #393935; }
.membership-compare .button { margin-top: auto; }
.membership-compare small { margin-top: 1rem; color: #7d7b74; }
.plan-label { color: var(--color-primary); font-size: .65rem; font-weight: 800; letter-spacing: .16em; }
.plan-premium { outline: 1px solid var(--color-primary); outline-offset: -1px; }

.symbol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--color-border); }
.symbol-grid article { padding: 3rem; background: var(--color-bg-light); }
.symbol-grid h3 { margin: 2rem 0 .8rem; font-size: 2rem; }
.symbol-grid p { color: var(--color-text-secondary); }
.passport-visual, .patch-visual, .pin-visual { height: 280px; background: var(--color-secondary); color: var(--color-bg-light); display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--font-display); text-transform: uppercase; }
.passport-visual { align-items: flex-start; padding: 2rem; border-left: 8px solid var(--color-primary); }
.passport-visual strong { margin-block: auto; color: var(--color-primary); font-size: 7rem; line-height: .8; }
.patch-visual { width: 250px; max-width: 100%; margin: auto; border: 3px solid var(--color-primary); border-radius: 50%; }
.patch-visual strong { color: var(--color-primary); font-size: 6rem; line-height: .85; }
.pin-visual { background: transparent; }
.pin-visual span { width: 180px; height: 180px; display: grid; place-items: center; border: 4px solid var(--color-primary); border-radius: 50%; color: var(--color-secondary); font-size: 3.5rem; font-weight: 900; }

.hall { background: #dedacf; }
.finisher-list { border-top: 2px solid var(--color-secondary); }
.finisher-list article { display: grid; grid-template-columns: .5fr 2fr 1fr 2fr 2fr; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid #a6a298; align-items: center; }
.finisher-list strong { font-family: var(--font-display); font-size: 1.5rem; text-transform: uppercase; }
.finisher-list span { font-size: .75rem; }
.final-cta h2 { max-width: 1000px; margin-bottom: 3rem; }

.site-footer { background: var(--color-bg-dark); color: var(--color-bg-light); }
.footer-skyline { position: relative; height: clamp(180px, 28vw, 400px); background: white; overflow: hidden; }
.skyline-image { object-fit: contain; object-position: center bottom; }
.footer-grid { width: min(calc(100% - 48px), var(--max-width)); margin: auto; padding: 4rem 0; display: grid; grid-template-columns: 5fr 2fr 2fr 3fr; gap: 2rem; }
.wordmark--footer { margin-bottom: 1.5rem; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
.footer-label { margin-bottom: .7rem; color: #aaa79e; font-size: .62rem; letter-spacing: .15em; text-transform: uppercase; }
.footer-label--social { margin-top: 1.1rem; }
.footer-grid a { min-height: 36px; display: inline-flex; align-items: center; font-size: .8rem; }
.footer-coordinate span { font-family: var(--font-display); font-size: 1.8rem; font-weight: 900; }
.footer-coordinate small { color: var(--color-primary); }
.footer-bottom { width: min(calc(100% - 48px), var(--max-width)); margin: auto; padding: 1.25rem 0; display: flex; justify-content: space-between; border-top: 1px solid #353531; color: #aaa79e; font-size: .67rem; text-transform: uppercase; }

.subhero { min-height: 700px; background: var(--color-secondary); color: var(--color-bg-light); }
.subhero-grid { min-height: 610px; display: grid; grid-template-columns: 2fr 7fr 3fr; gap: 2rem; align-items: center; }
.subhero-grid h1 { margin: 0; font-size: clamp(4rem, 9vw, 10rem); }
.subhero-grid p { align-self: end; margin-bottom: 6rem; color: #aaa79e; }
.rule-intro { display: grid; grid-template-columns: 7fr 5fr; gap: 4rem; }
.rule-intro h2 { font-size: clamp(3rem, 6vw, 7rem); }
.rule-intro > div:last-child { padding-top: 3rem; }
.callout { margin-top: 2rem; padding: 1.5rem; border-left: 5px solid var(--color-primary); background: #e7e3d8; font-weight: 700; }
.rules-list { padding-bottom: var(--space-7); }
.rules-list article { display: grid; grid-template-columns: 1fr 10fr 1fr; align-items: center; gap: 1rem; min-height: 96px; border-top: 1px solid var(--color-border); }
.rules-list article:last-child { border-bottom: 1px solid var(--color-border); }
.rules-list span { font-family: monospace; color: var(--color-text-secondary); }
.rules-list p { margin: 0; font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 2rem); font-weight: 900; text-transform: uppercase; }
.rules-list i { width: 30px; height: 30px; display: grid; place-items: center; background: var(--color-primary); border-radius: 50%; font-style: normal; }
.flow-steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid #41413d; }
.flow-steps li { min-height: 180px; padding: 1rem; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid #41413d; font-family: var(--font-display); font-weight: 900; text-transform: uppercase; }
.flow-steps li:last-child { border: 0; }
.flow-steps span { color: var(--color-primary); font-family: monospace; font-size: .7rem; }
.result-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.result-card { padding: 2.5rem; border: 1px solid var(--color-border); }
.result-card--success { border-top: 8px solid var(--color-primary); }
.result-card h3 { margin: 2rem 0; font-size: 3.5rem; }
.result-card dl div { display: flex; justify-content: space-between; padding: .65rem 0; border-top: 1px solid var(--color-border); }
.result-card dd { margin: 0; font-weight: 700; }
.result-card > strong { display: block; margin-top: 2rem; font-family: var(--font-display); font-size: 1.5rem; }
.result-card > p { margin-top: 1rem; color: var(--color-text-secondary); }

.dashboard { min-height: 100vh; background: var(--color-secondary); color: var(--color-bg-light); }
.dashboard-shell { width: min(calc(100% - 48px), var(--max-width)); margin: auto; }
.dashboard-welcome { padding: 4.5rem 0 3rem; display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.dashboard-welcome h1 { margin: 1rem 0 .5rem; font-size: clamp(3.5rem, 7vw, 7.5rem); }
.dashboard-welcome p { color: #9a9890; }
.dashboard-actions { display: flex; gap: .75rem; }
.future-label { padding-left: .75rem; color: #aaa79e; font-size: .55rem; }
.dashboard-overview { display: grid; grid-template-columns: 4fr 8fr; border: 1px solid #3b3b37; }
.dashboard-progress { padding: 2.5rem; display: flex; flex-direction: column; }
.panel-label { color: #aaa79e; }
.progress-lockup { margin-block: auto; }
.progress-value { display: flex; align-items: end; gap: 1rem; font-family: var(--font-display); }
.progress-value strong { color: var(--color-primary); font-size: clamp(8rem, 14vw, 16rem); line-height: .72; letter-spacing: -.07em; }
.progress-value span { padding-bottom: 1rem; font-size: 2rem; font-weight: 900; }
.progress-track { height: 6px; margin-top: 2.5rem; background: #3c3c38; }
.progress-track span { display: block; height: 100%; background: var(--color-primary); }
.progress-caption { display: flex; justify-content: space-between; margin-top: .75rem; color: #aaa79e; font-size: .66rem; text-transform: uppercase; }
.last-conquest { margin-top: 4rem; padding-top: 1rem; display: grid; grid-template-columns: 1fr auto; border-top: 1px solid #3b3b37; }
.last-conquest span { grid-column: 1 / -1; color: #aaa79e; font-size: .62rem; }
.last-conquest strong { font-family: var(--font-display); font-size: 1.2rem; }
.last-conquest time { font-size: .65rem; }
.dashboard-map { position: relative; padding-top: 2.5rem; border-left: 1px solid #3b3b37; }
.dashboard-map > .panel-label { display: block; margin: 0 2.5rem 1rem; }
.dashboard-map .map-module { border: 0; }
.dashboard-panels { display: grid; grid-template-columns: 4fr 8fr; border: 1px solid #3b3b37; border-top: 0; }
.dashboard-panels article { padding: 2.5rem; }
.next-parish { position: relative; border-right: 1px solid #3b3b37; }
.next-number { position: absolute; top: 1rem; right: 1.5rem; color: #252522; font-family: var(--font-display); font-size: 10rem; font-weight: 900; line-height: 1; }
.next-parish .status { margin-top: 4rem; }
.next-parish h2 { position: relative; margin: 1rem 0; font-size: 4rem; }
.next-parish p { position: relative; max-width: 26rem; color: #9a9890; }
.next-parish .text-action { color: var(--color-primary); }
.panel-heading { display: flex; justify-content: space-between; align-items: end; }
.panel-heading button, .panel-heading a { border: 0; background: none; color: var(--color-primary); font-size: .7rem; text-transform: uppercase; cursor: pointer; }
.activity-list { margin-top: 2rem; border-top: 1px solid #3b3b37; }
.activity-list > div { min-height: 82px; display: grid; grid-template-columns: .8fr 2fr 1fr 1.2fr; align-items: center; gap: 1rem; border-bottom: 1px solid #3b3b37; }
.activity-list time, .activity-list span { color: #aaa79e; font-size: .7rem; }
.activity-list strong { font-family: var(--font-display); font-size: 1.2rem; text-transform: uppercase; }
.dashboard-journey { padding: 5rem 0; }
.dashboard-journey .panel-heading { margin-bottom: 2rem; }
.dashboard-journey h2 { margin: .5rem 0 0; font-size: 3rem; }
.dashboard-journey .journey-grid { border-color: #3b3b37; }
.dashboard-journey .journey-item { border-color: #3b3b37; background: #151513; }
.dashboard-journey .journey-item--conquered { background: var(--color-primary); color: var(--color-secondary); }
.dashboard-journey .journey-item--locked { background: #20201d; }
.dashboard-journey .journey-item--locked { color: #b7b4ac; }
.dashboard-journey .journey-item--review { background: #2c2a23; }
.dashboard-footer { padding: 1.5rem 0; display: flex; justify-content: space-between; border-top: 1px solid #3b3b37; color: #aaa79e; font-size: .68rem; }

.design-system { min-height: 100vh; }
.ds-shell { padding-block: 6rem; }
.ds-shell > header { display: grid; grid-template-columns: 2fr 7fr 3fr; gap: 2rem; align-items: end; padding-bottom: 5rem; }
.ds-shell h1 { margin: 0; font-size: clamp(6rem, 15vw, 15rem); }
.ds-shell > header p { color: var(--color-text-secondary); }
.ds-section { padding: 3rem 0 5rem; border-top: 1px solid var(--color-border); }
.ds-section > h2 { margin: 0 0 2rem; font-size: 1rem; letter-spacing: .1em; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); }
.swatch { min-height: 190px; padding: 1rem; display: flex; flex-direction: column; justify-content: space-between; font-size: .7rem; }
.swatch--ink { background: var(--color-secondary); color: white; }
.swatch--paper { background: var(--color-bg-light); border: 1px solid var(--color-border); }
.swatch--yellow { background: var(--color-primary); }
.swatch--grey { background: var(--color-text-secondary); color: white; }
.type-specimen strong { display: block; font-family: var(--font-display); font-size: clamp(5rem, 13vw, 14rem); line-height: .8; }
.type-specimen h3 { margin: 2rem 0; font-size: 3rem; }
.type-specimen p { max-width: 40rem; }
.type-specimen small { font-family: monospace; letter-spacing: .15em; }
.component-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.ds-progress { max-width: 600px; padding: 3rem; background: var(--color-secondary); color: var(--color-bg-light); }
.form-specimen { max-width: 760px; }
.form-specimen label { display: block; margin-bottom: .5rem; font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.input-row { display: flex; }
.input-row input { flex: 1; min-width: 0; border: 1px solid var(--color-border); border-right: 0; border-radius: 0; background: transparent; padding: 1rem; }
.alert { margin-top: 1rem; padding: 1rem; display: flex; flex-direction: column; border-left: 5px solid; background: #e4e0d5; }
.alert--success { border-color: var(--color-success); }
.alert--warning { border-color: var(--color-alert); }
.alert ul { margin: .5rem 0 0; padding-left: 1.25rem; }
.alert li + li { margin-top: .3rem; }

.skyline-image { width: 100%; height: 100%; display: block; object-fit: contain; object-position: center bottom; }
.nav-form { margin: 0; }
.nav-form .nav-cta { border: 0; cursor: pointer; font: inherit; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
button:disabled, input:disabled { cursor: not-allowed; opacity: .62; }
.empty-state, .panel-empty { padding: 2.5rem; display: flex; flex-direction: column; gap: .5rem; border: 1px dashed var(--color-border); }
.empty-state strong, .panel-empty strong { font-family: var(--font-display); font-size: 1.5rem; text-transform: uppercase; }
.empty-state span, .panel-empty span { color: var(--color-text-secondary); }
.activity-panel .panel-empty { margin-top: 2rem; border-color: #3b3b37; }
.activity-panel .panel-empty span { color: #8d8b84; }

.auth-page { background: var(--color-bg-light); }
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 7fr) minmax(420px, 5fr); }
.auth-brand { min-height: 100vh; display: flex; flex-direction: column; background-color: var(--color-secondary); color: var(--color-bg-light); background-image: linear-gradient(#232320 1px, transparent 1px), linear-gradient(90deg, #232320 1px, transparent 1px); background-size: 16.666% 100%, 100% 96px; }
.auth-brand .site-header { width: min(calc(100% - 48px), 900px); }
.auth-brand-copy { width: min(calc(100% - 48px), 900px); margin: auto; padding: 4rem 0; }
.auth-brand-copy h1 { margin: 1.5rem 0 2rem; font-size: clamp(4rem, 8vw, 9rem); }
.auth-brand-copy p { max-width: 30rem; color: #aaa79e; font-size: 1.05rem; }
.auth-panel { display: grid; place-items: center; padding: 4rem clamp(1.5rem, 5vw, 6rem); }
.auth-form-wrap { width: min(100%, 560px); }
.auth-form-wrap h2 { margin: 1.25rem 0 3rem; font-size: clamp(3.5rem, 7vw, 7rem); }
.auth-form { display: grid; gap: .65rem; }
.auth-form > label:not(.check-field) { margin-top: .85rem; display: flex; justify-content: space-between; gap: 1rem; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.auth-form label small { color: var(--color-text-secondary); font-weight: 400; letter-spacing: 0; text-transform: none; }
.auth-form input:not([type="checkbox"]) { width: 100%; min-height: 54px; padding: .85rem 1rem; border: 1px solid var(--color-border); border-radius: 0; background: #fffdf7; color: var(--color-text); }
.auth-form .button { margin-top: 1.5rem; width: 100%; }
.check-field { margin-top: 1rem; display: grid; grid-template-columns: 24px 1fr; gap: .7rem; align-items: start; font-size: .82rem; }
.check-field input { width: 20px; height: 20px; accent-color: var(--color-primary); }
.check-field a, .auth-switch a { border-bottom: 1px solid currentColor; font-weight: 700; }
.auth-switch { margin-top: 2rem; color: var(--color-text-secondary); }
.auth-switch a { color: var(--color-text); }

.upload-shell { padding-bottom: 6rem; }
.upload-placeholder { max-width: 900px; padding: 3rem; border: 1px solid #3b3b37; }
.upload-placeholder h2 { font-size: clamp(3.5rem, 7vw, 7rem); }
.upload-placeholder > p { max-width: 46rem; color: #aaa79e; }
.upload-drop { min-height: 220px; margin-top: 2.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; border: 1px dashed #66645d; color: #8d8b84; text-align: center; }
.upload-drop strong { color: var(--color-bg-light); font-family: var(--font-display); font-size: 1.5rem; text-transform: uppercase; }
.upload-placeholder .alert { color: var(--color-secondary); }

.legal-page { max-width: 900px; }
.legal-page h1 { margin: 2rem 0 4rem; font-size: clamp(4rem, 9vw, 9rem); }
.legal-page h2 { margin-top: 4rem; font-size: clamp(2rem, 4vw, 4rem); }
.legal-page > p:not(.callout) { max-width: 46rem; color: var(--color-text-secondary); }

@media (hover: hover) {
  .nav a:not(.nav-cta):hover, .footer-grid a:hover { color: var(--color-primary); }
  .button:hover { filter: brightness(.92); }
  .topology-cell:hover { background: var(--color-secondary); color: var(--color-primary); }
}

@media (max-width: 1050px) {
  :root { --space-7: 5rem; }
  .page-shell, .site-header, .dashboard-shell, .footer-grid, .footer-bottom { width: min(calc(100% - 32px), var(--max-width)); }
  .site-header { height: 72px; }
  .menu-toggle { display: block; color: inherit; }
  .nav { display: none; position: absolute; top: 72px; left: -16px; right: -16px; padding: 1rem 16px 1.5rem; flex-direction: column; align-items: stretch; gap: 0; background: var(--color-bg-light); color: var(--color-secondary); border-bottom: 1px solid var(--color-border); }
  .site-header--dark .nav { background: var(--color-secondary); color: var(--color-bg-light); border-color: #3b3b37; }
  .nav--open { display: flex; }
  .nav a { padding: 1rem 0 !important; border-bottom: 1px solid var(--color-border); }
  .language-switch { padding: .85rem 0; }
  .language-switch a { min-width: 44px; min-height: 44px; border: 0; padding: .25rem !important; }
  .nav-cta { margin-top: .75rem; padding-inline: 1rem !important; border: 0 !important; text-align: center; }
  .nav-form { margin-top: .75rem; }
  .nav-form .nav-cta { width: 100%; margin: 0; padding: 1rem !important; }
  .hero { min-height: 760px; }
  .hero-grid { min-height: 688px; grid-template-columns: 1fr; align-content: center; gap: 2rem; padding-block: 3rem; }
  .hero-copy h1 strong { font-size: clamp(12rem, 55vw, 18rem); }
  .hero-copy h1 span { font-size: clamp(3rem, 14vw, 5rem); }
  .hero-statement { align-self: auto; padding: 0; }
  .hero-statement > p { font-size: 2.1rem; }
  .route-line { display: none; }
  .hero-coordinates { right: 0; }
  .manifesto, .section-heading, .membership-intro, .validation-grid, .subhero-grid, .rule-intro, .ds-shell > header { grid-template-columns: 1fr; }
  .manifesto-title { margin-block: 1.5rem; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .map-module { grid-template-columns: 1fr; }
  .map-stage { min-height: 500px; padding: 3rem 1rem; border-right: 0; border-bottom: 1px solid var(--color-border); }
  .parish-topology { height: 370px; }
  .map-disclaimer { left: 1rem; }
  .map-detail { min-height: 430px; }
  .journey-grid { grid-template-columns: repeat(2, 1fr); }
  .validation-grid { align-items: stretch; }
  .membership-compare, .symbol-grid, .result-columns { grid-template-columns: 1fr; }
  .finisher-list article { grid-template-columns: .5fr 2fr 1fr; }
  .finisher-list article span:nth-last-child(-n+2) { grid-column: 2 / -1; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-coordinate { grid-column: 1 / -1; }
  .subhero { min-height: 610px; }
  .subhero-grid { min-height: 538px; align-content: center; }
  .subhero-grid p { align-self: auto; margin: 0; }
  .flow-steps { grid-template-columns: repeat(3, 1fr); }
  .flow-steps li:nth-child(3) { border-right: 0; }
  .flow-steps li:nth-child(-n+3) { border-bottom: 1px solid #41413d; }
  .dashboard-welcome { align-items: flex-start; flex-direction: column; }
  .dashboard-overview, .dashboard-panels { grid-template-columns: 1fr; }
  .dashboard-progress { min-height: 570px; }
  .dashboard-map, .next-parish { border-left: 0; border-right: 0; border-top: 1px solid #3b3b37; }
  .swatches { grid-template-columns: 1fr 1fr; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-brand { min-height: 620px; }
  .auth-brand-copy { padding-block: 5rem; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .section { padding-block: 4rem; }
  h2 { font-size: clamp(2.8rem, 16vw, 4.7rem); }
  .hero { min-height: 720px; }
  .hero-copy h1 strong { font-size: 11rem; }
  .hero-copy h1 span { font-size: 2.8rem; }
  .hero-slogan { font-size: 1.1rem; }
  .hero-actions .button { width: 100%; }
  .hero-coordinates span:nth-child(2) { display: none; }
  .section-heading { margin-bottom: 2.5rem; gap: 1rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid li { min-height: 145px; }
  .parish-topology { height: 360px; grid-template-columns: repeat(4, 1fr); }
  .topology-cell:nth-child(6n) { border-right: 1px solid #9e9b92; }
  .topology-cell:nth-child(4n) { border-right: 0; }
  .topology-cell:nth-last-child(-n+6) { border-bottom: 1px solid #9e9b92; }
  .topology-cell:nth-last-child(-n+4) { border-bottom: 0; }
  .map-module--compact .parish-topology { height: 360px; }
  .journey-item { min-height: 170px; }
  .journey-item > strong { font-size: 1.15rem; }
  .stamp { display: none; }
  .validation-receipt { padding: 1.25rem; box-shadow: 8px 8px 0 rgba(11,11,10,.16); }
  .membership-compare article, .symbol-grid article { padding: 1.5rem; }
  .membership-compare article { min-height: 480px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child, .footer-coordinate { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: .3rem; }
  .flow-steps { grid-template-columns: 1fr 1fr; }
  .flow-steps li:nth-child(3) { border-right: 1px solid #41413d; }
  .flow-steps li:nth-child(2n) { border-right: 0; }
  .flow-steps li:nth-child(-n+4) { border-bottom: 1px solid #41413d; }
  .rules-list article { grid-template-columns: .8fr 5fr .7fr; }
  .result-card { padding: 1.5rem; }
  .dashboard-welcome { padding-top: 3rem; }
  .dashboard-actions { width: 100%; flex-direction: column; }
  .dashboard-actions .button { width: 100%; }
  .dashboard-progress, .dashboard-panels article { padding: 1.5rem; }
  .progress-value strong { font-size: 9rem; }
  .activity-list > div { grid-template-columns: 1fr 2fr; padding: 1rem 0; }
  .swatches { grid-template-columns: 1fr; }
  .component-row .button { width: 100%; }
  .input-row { flex-direction: column; }
  .input-row input { border-right: 1px solid var(--color-border); border-bottom: 0; }
  .auth-brand { min-height: 560px; }
  .auth-panel { padding-block: 4rem; }
  .auth-brand-copy h1 { font-size: clamp(3.6rem, 18vw, 5.5rem); }
  .upload-placeholder { padding: 1.5rem; }
}

@media (max-width: 390px) {
  .page-shell, .site-header, .dashboard-shell, .footer-grid, .footer-bottom { width: min(calc(100% - 24px), var(--max-width)); }
  .hero-copy h1 strong { font-size: 9.25rem; }
  .hero-copy h1 span { font-size: 2.25rem; }
  .hero-statement > p { font-size: 1.75rem; }
  .parish-topology, .map-module--compact .parish-topology { height: 330px; }
  .map-detail { padding: 2rem 1.25rem; }
  .progress-value strong { font-size: 7.4rem; }
  .progress-value span { font-size: 1.35rem; }
  .auth-brand-copy h1 { font-size: 3.35rem; }
  .footer-coordinate span { font-size: 1.45rem; }
}

@media (forced-colors: active) {
  .topology-cell--conquered, .journey-item--conquered, .status--conquered { border: 3px solid CanvasText; }
  .legend-dot--conquered { outline: 2px solid CanvasText; }
}

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