:root {
  --background-deep: #07172d;
  --background-blue: #0b2d55;
  --surface-blue: #123e70;
  --surface-ink: #0a2342;
  --surface-light: #f4f1e7;
  --surface-warm: #ebe5d5;
  --text-primary-light: #f8f7f2;
  --text-primary-dark: #102443;
  --text-muted: #a8b8ce;
  --text-muted-dark: #51657d;
  --accent-gold: #d6ad61;
  --accent-gold-soft: rgba(214, 173, 97, 0.34);
  --border-light: rgba(248, 247, 242, 0.16);
  --border-dark: rgba(16, 36, 67, 0.18);
  --focus: #f0c56f;
  --font-brand: "Terra Medium", "Avenir Next", "Segoe UI", sans-serif;
  --max-width: 1180px;
  --shadow-tile: 0 10px 24px rgba(3, 13, 28, 0.34), inset 0 1px rgba(255,255,255,0.8);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text-primary-light); background: var(--background-deep); font-family: var(--font-brand); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .28; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, black, transparent 72%); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; } }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
img { display: block; max-width: 100%; }
.wrap { width: min(var(--max-width), calc(100% - 48px)); margin: 0 auto; }
.kicker { margin: 0 0 17px; color: var(--accent-gold); font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.045em; line-height: 1.02; font-weight: 700; }
h1 { font-size: clamp(3.5rem, 8vw, 7.6rem); margin-bottom: 24px; }
h2 { color: var(--text-primary-light); font-size: clamp(2.45rem, 5vw, 5.2rem); margin-bottom: 22px; }
h2 em, h1 em { color: var(--accent-gold); font-style: normal; }
.section { position: relative; padding: 132px 0; }
.section-lede { max-width: 540px; color: var(--text-muted); font-size: 1.06rem; }
.section-lede.narrow { max-width: 310px; margin-bottom: 0; }
.section-intro { margin-bottom: 56px; }
.row-between { display: flex; align-items: end; justify-content: space-between; gap: 32px; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--border-light); background: rgba(7, 23, 45, .88); backdrop-filter: blur(16px); }
.nav-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text-primary-light); font-size: 1.04rem; font-weight: 700; letter-spacing: .02em; }
.brand-logo { display: block; width: auto; height: 46px; max-width: 128px; padding: 3px 8px; background: var(--surface-light); border-radius: 3px; object-fit: contain; }
.brand-mark { width: 31px; height: 31px; display: inline-grid; place-items: center; border: 1px solid var(--accent-gold); color: var(--accent-gold); font-size: .7rem; letter-spacing: -.08em; transform: rotate(45deg); }
.brand-mark::first-letter { transform: rotate(-45deg); }
.nav-links { display: flex; align-items: center; gap: 26px; color: var(--text-muted); font-size: .9rem; }
.nav-links a { transition: color .2s ease; }
.nav-links a:hover { color: var(--text-primary-light); }
.nav-cta { border: 1px solid var(--accent-gold-soft); padding: 9px 14px; color: var(--accent-gold); }
.nav-cta:hover { border-color: var(--accent-gold); }
.mobile-menu-toggle { display: none; border: 1px solid var(--border-light); background: transparent; color: var(--text-primary-light); padding: 9px 13px; font: inherit; }

/* Buttons and links */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 18px; border: 1px solid transparent; font-size: .94rem; font-weight: 700; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-gold { background: var(--accent-gold); color: var(--text-primary-dark); }
.button-gold:hover { background: #edc77e; }
.button-quiet { border-color: var(--border-light); color: var(--text-primary-light); }
.button-quiet:hover { border-color: var(--accent-gold); color: var(--accent-gold); }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--accent-gold); font-weight: 700; border-bottom: 1px solid var(--accent-gold-soft); padding-bottom: 5px; }
.text-link:hover { border-color: var(--accent-gold); }
.calculator-learn-link { margin-top: 16px; }

/* SEO editorial pages */
.seo-hero { padding: 112px 0 96px; border-bottom: 1px solid var(--border-light); background: var(--background-blue); }
.seo-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); align-items: end; gap: 72px; }
.seo-hero h1 { max-width: 760px; margin-bottom: 22px; font-size: clamp(3.25rem, 7vw, 6.6rem); }
.seo-hero h1 em { display: block; }
.seo-hero-lede { max-width: 560px; margin-bottom: 32px; color: var(--text-muted); font-size: 1.15rem; }
.seo-hero-aside { border-left: 1px solid var(--accent-gold-soft); padding: 10px 0 10px 28px; color: var(--text-muted); }
.seo-hero-aside strong { display: block; margin-bottom: 12px; color: var(--text-primary-light); font-size: 1.15rem; }
.seo-section { padding: 108px 0; }
.seo-section-light { background: var(--surface-light); color: var(--text-primary-dark); }
.seo-section-light h2, .seo-section-light h3 { color: var(--text-primary-dark); }
.seo-section-light p, .seo-section-light li { color: var(--text-muted-dark); }
.seo-section-blue { background: var(--background-blue); }
.seo-section h2 { max-width: 700px; margin-bottom: 24px; font-size: clamp(2.35rem, 5vw, 4.6rem); }
.seo-section-intro { max-width: 660px; margin-bottom: 48px; color: var(--text-muted); font-size: 1.08rem; }
.seo-section-light .seo-section-intro { color: var(--text-muted-dark); }
.seo-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
.seo-columns h3 { margin-bottom: 14px; color: var(--accent-gold); font-size: 1.25rem; letter-spacing: -.02em; }
.seo-columns p { max-width: 520px; }
.seo-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.seo-list li { padding: 16px 0 16px 24px; border-top: 1px solid var(--border-light); color: var(--text-muted); }
.seo-list li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 14px 2px -21px; background: var(--accent-gold); transform: rotate(45deg); }
.seo-section-light .seo-list li { border-color: var(--border-dark); color: var(--text-muted-dark); }
.seo-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.seo-step { padding-top: 20px; border-top: 2px solid var(--accent-gold); }
.seo-step-number { display: block; margin-bottom: 20px; color: var(--accent-gold); font-size: .76rem; font-weight: 700; letter-spacing: .18em; }
.seo-step h3 { margin-bottom: 12px; font-size: 1.35rem; }
.seo-step p { color: var(--text-muted-dark); }
.seo-terms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.seo-term { padding: 22px 0 0; border-top: 1px solid var(--border-light); }
.seo-term dt { margin-bottom: 10px; color: var(--accent-gold); font-weight: 700; }
.seo-term dd { margin: 0; color: var(--text-muted); font-size: .94rem; }
.seo-cta { padding: 96px 0; background: var(--surface-ink); text-align: center; }
.seo-cta h2 { margin-left: auto; margin-right: auto; }
.seo-cta p { max-width: 520px; margin: 0 auto 28px; color: var(--text-muted); }
.seo-cta-note { margin-top: 16px; color: var(--text-muted); font-size: .82rem; }

/* Hero */
.hero { position: relative; min-height: 88svh; display: flex; align-items: end; overflow: hidden; padding: 0 0 76px; background: #071827; }
.hero-content { position: relative; z-index: 2; width: min(var(--max-width), calc(100% - 48px)); }
.hero-copy { max-width: 560px; padding-top: 150px; opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity .55s ease, transform .65s cubic-bezier(.22, .61, .36, 1), visibility 0s linear .65s; }
.hero-copy > * { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .6s cubic-bezier(.22, .61, .36, 1); }
.hero-copy > :nth-child(1) { transition-delay: 0ms; }
.hero-copy > :nth-child(2) { transition-delay: 100ms; }
.hero-copy > :nth-child(3) { transition-delay: 250ms; }
.hero-copy > :nth-child(4) { transition-delay: 400ms; }
.hero-copy > :nth-child(5) { transition-delay: 520ms; }
.hero-copy-visible .hero-copy { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0ms; }
.hero-copy-visible .hero-copy > * { opacity: 1; transform: translateY(0); }
.hero-lede { max-width: 470px; margin-bottom: 32px; color: var(--text-muted); font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 20px 0 0; color: var(--text-muted); font-size: .78rem; letter-spacing: .03em; }
.hero-webgl { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; overflow: hidden; background: #071827; }
.hero-webgl canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-webgl-fallback { position: absolute; inset: 0; background: radial-gradient(circle at 56% 46%, #102a40 0 26%, #0a2033 62%, #071827 100%); }
.hero-webgl:not(.is-fallback) .hero-webgl-fallback { opacity: 0; }
.hero-webgl.is-fallback canvas { display: none; }
.hero-scrim { position: absolute; z-index: 1; inset: 0; pointer-events: none; opacity: .06; background: linear-gradient(90deg, rgba(7, 24, 39, .92) 0%, rgba(7, 24, 39, .66) 34%, rgba(7, 24, 39, .12) 70%, rgba(7, 24, 39, .18) 100%), linear-gradient(0deg, rgba(7, 24, 39, .82) 0%, transparent 48%); transition: opacity .5s ease; }
.hero-dimmed .hero-scrim { opacity: 1; }
.hero-fallback .hero-scrim { opacity: 1; }

/* Calculator */
.calculator-section { background: var(--surface-light); color: var(--text-primary-dark); }
.calculator-section h2 { color: var(--text-primary-dark); }
.calculator-section .section-lede { color: var(--text-muted-dark); }
.calculator-copy { display: grid; align-content: center; }
.calculator-brand-plaque { width: min(100%, 410px); margin-bottom: 28px; padding: 18px 22px; border: 1px solid rgba(16, 36, 67, .16); background: #ede8d9; box-shadow: 12px 12px 0 rgba(16, 36, 67, .09); }
.calculator-brand-plaque img { width: 100%; height: auto; }
.split-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(350px, .9fr); gap: clamp(48px, 8vw, 120px); align-items: center; }
.split-grid > * { min-width: 0; }
.capability-list { margin-top: 44px; border-top: 1px solid var(--border-dark); }
.capability-list div { display: grid; grid-template-columns: 132px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--border-dark); }
.capability-list b { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.capability-list span { color: var(--text-muted-dark); font-size: .9rem; }
.panel-top { display: flex; justify-content: space-between; color: #bcd0e6; font-size: .67rem; font-weight: 700; letter-spacing: .14em; }
.panel-status { color: var(--accent-gold); }
.builder-panel { position: relative; min-width: 0; min-height: 390px; padding: 28px; color: var(--text-primary-light); background: var(--surface-blue); box-shadow: 24px 24px 0 var(--surface-warm); }
.builder-tray-wrap { margin: 32px 0 18px; padding: 14px 0 16px; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.builder-label { display: flex; justify-content: space-between; margin-bottom: 12px; color: #bcd0e6; font-size: .73rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.builder-tray { display: flex; min-height: 86px; align-items: end; gap: 10px; overflow-x: auto; padding: 3px 2px 4px; }
.builder-empty { align-self: center; color: #bcd0e6; font-size: .8rem; }
.builder-selected-tile, .builder-tile { position: relative; display: grid; flex: 0 0 52px; width: 52px; min-width: 52px; max-width: 52px; height: 72px; min-height: 72px; max-height: 72px; place-items: center; padding: 5px 6px; border: 1px solid #d4c9b1; border-radius: 4px; background: #f4f1e7; box-shadow: 0 5px 12px rgba(3, 13, 28, .28), inset 0 1px rgba(255,255,255,.9); cursor: pointer; }
.builder-selected-tile img, .builder-tile img { width: auto; height: auto; max-width: 100%; max-height: 100%; border-radius: 2px; object-fit: contain; }
.builder-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 17px 0 15px; }
.builder-tab { flex: 0 0 auto; padding: 8px 9px; border: 1px solid var(--border-light); background: transparent; color: #bcd0e6; font: inherit; font-size: .72rem; cursor: pointer; }
.builder-tab.is-active { border-color: var(--accent-gold); color: var(--accent-gold); }
.builder-tiles { display: flex; gap: 10px; overflow-x: auto; padding: 3px 2px 8px; }
.builder-tile span { position: absolute; right: 0; bottom: 0; min-width: 15px; min-height: 15px; padding: 1px 3px; border-radius: 50%; background: var(--accent-gold); color: var(--text-primary-dark); font-size: .62rem; font-weight: 700; }
.builder-tile:disabled { cursor: not-allowed; opacity: .35; }
.builder-calculate { width: 100%; min-height: 45px; margin-top: 24px; border: 1px solid var(--accent-gold); background: var(--accent-gold); color: var(--text-primary-dark); font: inherit; font-weight: 700; cursor: pointer; }
.calculator-handoff { position: absolute; z-index: 5; inset: 0; display: grid; place-items: center; padding: 32px 24px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .26s ease, visibility 0s linear .26s; }
.calculator-handoff[hidden] { display: none; }
.calculator-handoff.is-open, .calculator-handoff.is-closing { visibility: visible; opacity: 1; }
.calculator-handoff.is-open { pointer-events: auto; }
.calculator-handoff-backdrop { position: absolute; inset: 0; background: rgba(5, 18, 31, .78); opacity: 0; transition: opacity .26s ease; }
.calculator-handoff-panel { position: relative; width: min(100%, 520px); display: grid; gap: 22px; padding: 34px; border: 1px solid rgba(214, 173, 97, .42); background: rgba(10, 35, 66, .96); box-shadow: 0 24px 70px rgba(3, 13, 28, .4); opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease; }
.calculator-handoff-copy { display: grid; gap: 7px; padding-right: 28px; }
.calculator-handoff-copy strong { color: var(--text-primary-light); font-size: clamp(1.45rem, 3vw, 2rem); }
.calculator-handoff-copy span { color: #bcd0e6; font-size: .95rem; }
.calculator-handoff-close { position: absolute; top: 10px; right: 12px; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--border-light); background: transparent; color: var(--text-primary-light); font: inherit; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.calculator-handoff-close:hover { border-color: var(--accent-gold); color: var(--accent-gold); }
.calculator-handoff-cta { justify-self: start; }
.calculator-handoff.is-open .calculator-handoff-backdrop { opacity: 1; }
.calculator-handoff.is-open .calculator-handoff-panel { opacity: 1; transform: translateY(0); }
.calculator-handoff.is-closing .calculator-handoff-backdrop { opacity: 0; transition-duration: .22s; }
.calculator-handoff.is-closing .calculator-handoff-panel { opacity: 0; transform: translateY(8px); transition-duration: .22s; }
.app-note { display: flex; align-items: center; gap: 16px; justify-content: center; margin-top: 90px; color: var(--text-muted-dark); font-size: .84rem; text-align: center; }
.platform-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px; }
.platform-note b { color: var(--text-primary-dark); }
.app-note b { color: var(--text-primary-dark); }
.rule { width: 56px; height: 1px; background: var(--border-dark); }

/* Events */
.events-section { background: var(--background-blue); }
.next-event { display: grid; grid-template-columns: minmax(160px, .34fr) 1fr minmax(180px, .35fr); min-height: 260px; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.event-date { display: flex; flex-direction: column; justify-content: center; padding: 30px; border-right: 1px solid var(--border-light); }
.event-date .month { color: var(--accent-gold); font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.event-date strong { color: var(--text-primary-light); font-size: clamp(4rem, 8vw, 7rem); line-height: .85; letter-spacing: -.09em; }
.event-content { display: flex; flex-direction: column; justify-content: center; padding: 34px 42px; }
.event-content h3 { margin-bottom: 12px; color: var(--text-primary-light); font-size: clamp(1.7rem, 3vw, 2.7rem); }
.event-content p { max-width: 540px; color: var(--text-muted); }
.event-meta { display: grid; align-content: center; gap: 10px; padding: 30px; border-left: 1px solid var(--border-light); color: var(--text-muted); font-size: .85rem; }
.event-meta b { display: block; color: var(--text-primary-light); font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; }
.event-meta a { color: var(--accent-gold); }
.event-stamp { color: var(--accent-gold); font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; }
.upcoming-events { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 22px; }
.event-card { padding: 20px; border: 1px solid var(--border-light); }
.event-card h3 { margin: 8px 0; font-size: 1.35rem; }
.event-card p { margin: 0; color: var(--text-muted); font-size: .9rem; }
.empty-events { margin-top: 22px; color: var(--text-muted); font-size: .88rem; }

/* Club / gallery / brand story */
.club-section { background: var(--surface-light); color: var(--text-primary-dark); }
.club-section h2 { color: var(--text-primary-dark); }
.club-section .section-lede { color: var(--text-muted-dark); }
.club-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); align-items: center; gap: clamp(42px, 6vw, 80px); }
.club-poster-frame { width: min(100%, 470px); padding: 10px; border: 1px solid rgba(16, 36, 67, .14); background: #f8f5ec; box-shadow: 12px 12px 0 rgba(16, 36, 67, .08); }
.club-poster { display: block; width: 100%; height: auto; }
.club-copy { max-width: 620px; }
.club-copy .kicker { color: var(--accent-gold); }
.club-copy h2 { margin-bottom: 24px; }
.club-body { display: grid; gap: 18px; max-width: 600px; color: var(--text-muted-dark); font-size: 1.06rem; line-height: 1.7; }
.club-body p { margin: 0; }
.club-emphasis { margin: 30px 0 0; color: var(--accent-gold); font-size: clamp(1.25rem, 2.3vw, 1.75rem); font-weight: 700; line-height: 1.25; }
.club-closing { margin: 28px 0 0; color: var(--text-primary-dark); font-size: clamp(1.7rem, 3.5vw, 3rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; }
.club-copy .orphan-grid { margin-top: 32px; }
.gallery-section { background: #091d37; }
.gallery-empty { display: grid; grid-template-columns: 75px 1fr auto; gap: 30px; align-items: center; min-height: 170px; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.gallery-index { color: var(--accent-gold); font-size: 2.2rem; font-weight: 700; }
.gallery-empty b { font-size: 1.4rem; }
.gallery-empty p { max-width: 500px; margin: 8px 0 0; color: var(--text-muted); }
.gallery-tile { width: 84px; padding: 11px; background: var(--surface-light); box-shadow: var(--shadow-tile); transform: rotate(6deg); }
.orphan-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 9px; align-items: end; }
.orphan-grid img { width: 100%; border-radius: 3px; box-shadow: var(--shadow-tile); }
.orphan-grid img:nth-child(7n+1), .orphan-grid img:nth-child(7n+2) { transform: translateY(14px); }
.orphan-grid img:nth-child(7n+3), .orphan-grid img:nth-child(7n+4) { transform: translateY(7px); }

/* Footer */
.footer { padding: 58px 0 26px; border-top: 1px solid var(--border-light); background: var(--background-deep); }
.footer-grid { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 32px; align-items: start; }
.footer-brand-logo { height: 52px; max-width: 145px; }
.footer-note { margin: 15px 0 0; color: var(--text-muted); font-size: .8rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 9px 22px; color: var(--text-muted); font-size: .85rem; }
.footer-links a:hover { color: var(--text-primary-light); }
.footer-contact { display: grid; gap: 5px; justify-items: end; color: var(--text-muted); font-size: .78rem; }
.footer-contact a { color: var(--accent-gold); font-size: .82rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 58px; padding-top: 20px; border-top: 1px solid var(--border-light); color: var(--text-muted); font-size: .72rem; }

/* Legal/support shell */
.doc { width: min(780px, calc(100% - 48px)); margin: 0 auto; padding: 100px 0 130px; }
.doc h1 { font-size: clamp(3rem, 7vw, 5.8rem); }
.doc h2 { margin-top: 52px; color: var(--accent-gold); font-size: 1.7rem; letter-spacing: -.02em; }
.doc p, .doc li { color: var(--text-muted); }
.doc .updated { display: block; margin-bottom: 44px; color: var(--text-muted); font-size: .8rem; }
.doc .callout { padding: 20px; border-left: 2px solid var(--accent-gold); background: var(--surface-ink); color: var(--text-muted); }
.doc .callout strong { color: var(--text-primary-light); }
.doc a { color: var(--accent-gold); }
.doc ul { padding-left: 21px; }
.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 34px 0; }
.support-item { padding: 24px; border: 1px solid var(--border-light); background: var(--surface-ink); }
.support-item h3 { color: var(--text-primary-light); font-size: 1.2rem; }
.faq details { padding: 17px 0; border-bottom: 1px solid var(--border-light); }
.faq summary { cursor: pointer; color: var(--text-primary-light); font-weight: 700; }
.faq p { margin: 12px 0 0; }

@media (max-width: 980px) {
  .split-grid { grid-template-columns: 1fr; }
  .hero { min-height: 86svh; }
  .hero-copy { max-width: 640px; }
  .split-grid { gap: 56px; }
  .club-grid { gap: 42px; }
  .builder-tray { gap: 8px; min-height: 82px; }
  .builder-tiles { gap: 8px; }
  .builder-selected-tile, .builder-tile { flex-basis: 48px; width: 48px; min-width: 48px; max-width: 48px; height: 68px; min-height: 68px; max-height: 68px; padding: 5px; }
  .next-event { grid-template-columns: 150px 1fr; }
  .event-meta { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border-light); border-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-contact { justify-items: start; }
}
@media (max-width: 720px) {
  .wrap { width: min(var(--max-width), calc(100% - 32px)); }
  .nav-inner { min-height: 68px; }
  .mobile-menu-toggle { display: block; }
  .brand-logo { height: 40px; max-width: 112px; padding: 3px 6px; }
  .nav-links { position: absolute; top: 68px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; border-bottom: 1px solid var(--border-light); background: rgba(7,23,45,.98); }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 13px 0; }
  .nav-cta { padding: 12px 0; border-width: 0 0 1px; }
  .section { padding: 88px 0; }
  .hero { min-height: 94svh; padding: 0 0 34px; }
  h1 { font-size: clamp(3.3rem, 18vw, 5.5rem); }
  h2 { font-size: clamp(2.45rem, 13vw, 4rem); }
  .hero-content { width: min(var(--max-width), calc(100% - 32px)); }
  .hero-copy { max-width: 100%; padding-top: 210px; }
  .hero-scrim { background: linear-gradient(0deg, rgba(7, 24, 39, .96) 0%, rgba(7, 24, 39, .78) 34%, rgba(7, 24, 39, .1) 76%), linear-gradient(90deg, rgba(7, 24, 39, .48), transparent 72%); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .capability-list div { grid-template-columns: 1fr; gap: 4px; }
  .builder-panel { min-height: 340px; padding: 20px; box-shadow: 12px 12px 0 var(--surface-warm); }
  .calculator-brand-plaque { width: min(100%, 330px); margin-bottom: 24px; padding: 14px 16px; box-shadow: 8px 8px 0 rgba(16, 36, 67, .09); }
  .builder-tray { gap: 6px; min-height: 74px; }
  .builder-tiles { gap: 6px; }
  .builder-selected-tile, .builder-tile { flex-basis: 44px; width: 44px; min-width: 44px; max-width: 44px; height: 60px; min-height: 60px; max-height: 60px; padding: 4px; border-radius: 3px; }
  .platform-note { display: grid; gap: 4px; }
  .app-note { margin-top: 60px; }
  .rule { width: 24px; }
  .row-between { display: block; }
  .section-intro .narrow { margin-top: 18px; }
  .seo-hero { padding: 78px 0 72px; }
  .seo-hero-grid, .seo-columns, .seo-steps { grid-template-columns: 1fr; gap: 38px; }
  .seo-hero h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .seo-hero-aside { padding-left: 20px; }
  .seo-section { padding: 78px 0; }
  .seo-terms { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
  .seo-cta { padding: 78px 0; }
  .next-event { display: block; }
  .event-date { border-right: 0; border-bottom: 1px solid var(--border-light); }
  .event-content { padding: 28px 22px; }
  .event-meta { display: grid; grid-template-columns: 1fr; padding: 22px; }
  .upcoming-events { grid-template-columns: 1fr; }
  .club-grid { grid-template-columns: 1fr; gap: 42px; }
  .club-poster-frame { width: min(100%, 470px); margin: 0 auto; }
  .club-copy { max-width: none; }
  .gallery-empty { grid-template-columns: 44px 1fr; gap: 16px; padding: 24px 0; }
  .gallery-tile { display: none; }
  .orphan-grid { gap: 5px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-contact { justify-items: start; }
  .footer-brand-logo { height: 44px; max-width: 120px; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-top: 8px; }
  .doc { width: min(100% - 32px, 780px); padding: 70px 0 90px; }
  .seo-terms { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .builder-panel { padding: 20px 2px; }
  .builder-tray { display: grid; grid-template-columns: repeat(7, 44px); justify-content: center; align-items: stretch; gap: 5px; min-height: 0; overflow: visible; padding: 3px 0 4px; }
  .builder-empty { grid-column: 1 / -1; min-height: 60px; display: grid; place-items: center; }
  .builder-tiles { display: grid; grid-template-columns: repeat(5, 44px); justify-content: center; gap: 7px 5px; overflow: visible; padding: 3px 0 8px; }
  .calculator-handoff { padding: 20px 12px; }
  .calculator-handoff-panel { padding: 30px 22px 24px; }
  .calculator-handoff-cta { width: 100%; }
}
