/* LeadHim public site. The admin dashboard also loads this file and overrides it in admin/admin.css. */

/* ------------------------------------------------------------------ tokens */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f6f4ef;
  --heading: #0f1b35;
  --text: #2b3243;
  --muted: #5f6778;
  --line: #e7e3da;
  --accent: #d6a243;
  --accent-text: #98680f;
  --accent-soft: #fbf3e2;
  --deep: #0f1b35;
  --deep-2: #182a4f;
  --on-deep: #ffffff;
  --on-deep-muted: #b6bfd2;
  --btn-bg: #0f1b35;
  --btn-fg: #ffffff;
  --btn-hover: #1c3060;
  --ghost-hover: rgba(15, 27, 53, .05);
  --nav-bg: rgba(255, 255, 255, .92);
  --footer-bg: #0b1428;
  --warn-bg: #fff6e5;
  --warn-line: #f0d6a6;
  --warn-text: #7a4f0a;
  --err-bg: #fdecee;
  --danger: #b4232c;
  --ok: #1f7a4d;
  --ok-bg: #e5f4eb;
  --tag-bg: #f1ede4;
  --tag-fg: #243865;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 53, .06);
  --shadow: 0 1px 2px rgba(15, 27, 53, .04), 0 8px 24px rgba(15, 27, 53, .07);
  --shadow-lg: 0 24px 48px -12px rgba(15, 27, 53, .22);
  --display: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a101e;
  --surface: #111a2d;
  --surface-alt: #0d1526;
  --heading: #f3efe7;
  --text: #d5dae4;
  --muted: #97a1b5;
  --line: #222d45;
  --accent: #e0ac4c;
  --accent-text: #ebbb64;
  --accent-soft: #221b0e;
  --deep: #121d36;
  --deep-2: #1a2847;
  --on-deep: #ffffff;
  --on-deep-muted: #a5afc4;
  --btn-bg: #e0ac4c;
  --btn-fg: #0f1b35;
  --btn-hover: #ecbb60;
  --ghost-hover: rgba(255, 255, 255, .06);
  --nav-bg: rgba(10, 16, 30, .9);
  --footer-bg: #060a15;
  --warn-bg: #2a2111;
  --warn-line: #5a4519;
  --warn-text: #f3d7a5;
  --err-bg: #3a161b;
  --danger: #ff7b84;
  --ok: #4cc98a;
  --ok-bg: #12301f;
  --tag-bg: #1d2a46;
  --tag-fg: #ebbb64;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 8px 24px rgba(0, 0, 0, .3);
  --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, .55);
}

/* -------------------------------------------------------------------- base */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font: 400 1rem/1.65 var(--sans); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; transition: background .25s, color .25s; }
img { max-width: 100%; display: block; }
a { color: var(--accent-text); }
h1, h2, h3, h4 { font-family: var(--display); color: var(--heading); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.85rem, 3.3vw, 2.6rem); letter-spacing: -.02em; }
h3 { font-size: 1.2rem; letter-spacing: -.005em; }
.wrap { width: min(1180px, 90vw); margin: 0 auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font: 600 .72rem var(--sans); color: var(--accent-text); margin: 0 0 .9rem; display: inline-flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.dialog-head .eyebrow::before { display: none; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 38em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-box { width: 48px; height: 48px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); display: inline-grid; place-items: center; flex: none; }
.ico-box .ico { width: 24px; height: 24px; }

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bg);
  height: 46px; padding: 0 1.35em; border-radius: 8px; font: 600 .94rem var(--sans); letter-spacing: .005em;
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s, transform .15s; white-space: nowrap;
}
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); box-shadow: var(--shadow); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid rgba(214, 162, 67, .5); outline-offset: 2px; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #0f1b35; }
.btn-accent:hover { background: #e2b25a; border-color: #e2b25a; }
.btn-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--heading); border-color: var(--line); }
.btn-ghost:hover { background: var(--ghost-hover); border-color: var(--heading); box-shadow: none; }
.btn-sm { height: 38px; padding: 0 1em; font-size: .86rem; }
.btn .ico { width: 18px; height: 18px; }
.icon-btn { background: none; border: 0; font-size: 1.1rem; cursor: pointer; color: var(--muted); width: 36px; height: 36px; border-radius: 8px; display: inline-grid; place-items: center; }
.icon-btn:hover { background: var(--surface-alt); color: var(--heading); }

.theme-toggle {
  width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface);
  color: var(--heading); cursor: pointer; display: inline-grid; place-items: center; transition: border-color .15s, background .15s;
}
.theme-toggle:hover { border-color: var(--heading); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }

/* ------------------------------------------------------------------ topbar */
.topbar { background: var(--deep); color: var(--on-deep-muted); font-size: .8rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; height: 38px; }
.topbar-tag { letter-spacing: .04em; }
.topbar-links { display: flex; align-items: center; gap: 1.4rem; }
.topbar a { color: var(--on-deep-muted); text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar-help { display: inline-flex; align-items: center; gap: .4rem; background: none; border: 0; padding: 0; font: 600 .8rem var(--sans); color: var(--accent); cursor: pointer; }
.topbar-help:hover { color: #f0c470; }

/* --------------------------------------------------------------------- nav */
.nav { position: sticky; top: 0; z-index: 20; background: var(--nav-bg); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font: 700 1.4rem var(--display); color: var(--heading); text-decoration: none; letter-spacing: -.01em; }
.brand b { color: var(--accent-text); font-weight: 700; }
.brand-mark { width: 36px; height: 36px; border-radius: 8px; background: var(--deep); color: var(--accent); display: grid; place-items: center; font-size: 1.15rem; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; order: 1; margin-left: auto; margin-right: 1.25rem; }
.nav-links a:not(.btn) { position: relative; color: var(--text); text-decoration: none; font-weight: 500; font-size: .92rem; padding: .3rem 0; }
.nav-links a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .2s; }
.nav-links a:not(.btn):hover { color: var(--heading); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.nav-links .btn { margin-left: .4rem; }
.nav-right { display: flex; align-items: center; gap: .5rem; order: 2; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); width: 38px; height: 38px; border-radius: 8px; cursor: pointer; color: var(--heading); place-items: center; }

/* -------------------------------------------------------------------- hero */
.hero { position: relative; isolation: isolate; min-height: min(640px, 82vh); display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 30%; z-index: -2; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(9, 17, 36, .94) 0%, rgba(9, 17, 36, .82) 40%, rgba(9, 17, 36, .35) 75%, rgba(9, 17, 36, .2) 100%); }
.hero-inner { padding: 5rem 0 7rem; }
.hero .eyebrow { color: var(--accent); }
.hero h1 { color: #fff; max-width: 10.5em; font-size: clamp(2.4rem, 4.6vw, 3.7rem); }
.hero .lead { color: rgba(255, 255, 255, .8); max-width: 31em; }
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2rem; }

/* pillars strip overlapping the hero */
.pillars { position: relative; z-index: 2; margin-top: -3.5rem; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.pillar { display: flex; align-items: center; gap: .9rem; padding: 1.4rem 1.5rem; }
.pillar + .pillar { border-left: 1px solid var(--line); }
.pillar b { display: block; font: 600 1.05rem var(--display); color: var(--heading); }
.pillar span:not(.ico-box) { font-size: .85rem; color: var(--muted); }
.pillar .ico-box { width: 44px; height: 44px; }

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-tint { background: var(--surface-alt); }
.section-dark { background: var(--deep); color: var(--on-deep-muted); }
.section-dark h2 { color: var(--on-deep); }
.section-dark .eyebrow { color: var(--accent); }
.section-title { max-width: 44rem; margin-bottom: 2.75rem; }
.section-title h2 { margin-bottom: .4em; }
.section-title .lead { margin: 0; }
.section-title .lead:empty { display: none; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.section-head h2 { margin: 0; }
.section-head .muted { max-width: 26em; margin: 0; font-size: .95rem; }

/* about */
.two-col { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.about-media { position: relative; }
.about-img { border-radius: var(--radius); aspect-ratio: 4 / 4.2; width: 100%; object-fit: cover; box-shadow: var(--shadow); }
.about-quote { position: absolute; right: -1.25rem; bottom: 1.75rem; max-width: 290px; background: var(--deep); color: #fff; border-radius: 10px; padding: 1.2rem 1.35rem; font: 500 1.02rem/1.45 var(--display); box-shadow: var(--shadow-lg); border-left: 3px solid var(--accent); }
.prose p { margin: 0 0 1rem; font-size: 1.04rem; color: var(--text); }
.values { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.5rem; }
.values li { display: flex; align-items: center; gap: .55rem; font-weight: 600; color: var(--heading); }
.values .ico { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); stroke-width: 2.6; box-sizing: content-box; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { margin: 1.1rem 0 .45rem; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }
.card-action { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.card-action img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card-action .card-body { padding: 1.5rem 1.6rem 1.6rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.card-action h3 { margin-top: 0; }
button.link { display: inline-flex; align-items: center; gap: .4rem; background: none; border: 0; padding: 1.1rem 0 0; margin-top: auto; font: 600 .95rem var(--sans); color: var(--heading); cursor: pointer; text-align: left; align-self: flex-start; }
button.link .ico { color: var(--accent-text); transition: transform .2s; }
button.link:hover .ico { transform: translateX(4px); }
.link-inline { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-text); text-decoration: underline; cursor: pointer; font-weight: 600; }

/* gallery */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 230px 230px; gap: 1rem; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); }
.gallery figure:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.1rem .9rem; color: #fff; font-weight: 600; font-size: .9rem;
  background: linear-gradient(transparent, rgba(5, 10, 22, .75));
}

/* ------------------------------------------------------------------ events */
.event-list { display: grid; gap: 1rem; }
.event {
  display: grid; grid-template-columns: 88px 1fr auto; gap: 1.75rem; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.75rem;
  transition: box-shadow .2s, border-color .2s;
}
.event:hover { box-shadow: var(--shadow); border-color: transparent; }
.event-date { text-align: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.event-date .m { display: block; background: var(--deep); color: var(--accent); text-transform: uppercase; font-size: .72rem; letter-spacing: .14em; font-weight: 700; padding: .35rem 0; }
.event-date .d { display: block; font: 600 2rem/1.15 var(--display); color: var(--heading); padding-top: .35rem; }
.event-date .w { display: block; font-size: .72rem; color: var(--muted); padding-bottom: .5rem; text-transform: uppercase; letter-spacing: .08em; }
.event h3 { margin: .45rem 0 .35rem; font-size: 1.3rem; }
.event p { margin: 0; color: var(--muted); font-size: .96rem; }
.event-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-size: .88rem; color: var(--text); margin-top: .8rem; }
.event-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.event-meta .ico { color: var(--accent-text); width: 16px; height: 16px; }
.tag { display: inline-block; background: var(--tag-bg); color: var(--tag-fg); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: .3em .75em; border-radius: 6px; }
.event-side { text-align: right; display: grid; gap: .6rem; justify-items: end; }
.spots { font-size: .84rem; font-weight: 600; color: var(--ok); display: inline-flex; align-items: center; gap: .4rem; }
.spots::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.spots.low { color: var(--accent-text); }
.spots.full { color: var(--danger); }
.event-details { display: flex; flex-wrap: wrap; gap: .4rem .5rem; margin-top: .8rem; }
.event-details .detail { font-size: .8rem; background: var(--surface-alt); border: 1px solid var(--line); border-radius: 6px; padding: .2rem .6rem; color: var(--text); }
.event-details b { color: var(--heading); font-weight: 600; }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 2.5rem; text-align: center; color: var(--muted); }

/* ----------------------------------------------------------------- stories */
.stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.stories blockquote { position: relative; margin: 0; background: var(--deep-2); border: 1px solid rgba(255, 255, 255, .07); border-radius: var(--radius); padding: 2.4rem 1.75rem 1.6rem; display: flex; flex-direction: column; }
.stories blockquote::before { content: '“'; position: absolute; top: .4rem; left: 1.5rem; font: 700 3.6rem/1 var(--display); color: var(--accent); opacity: .9; }
.stories p { margin: 0 0 1.25rem; font: 500 1.08rem/1.55 var(--display); color: var(--on-deep); }
.stories cite { margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .1); font-style: normal; font-size: .82rem; color: var(--on-deep-muted); }

/* ------------------------------------------------------------ support band */
.support-band { background: var(--accent-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 2.75rem 0; }
.support-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 1.75rem; align-items: center; }
.support-inner .ico-box { width: 56px; height: 56px; background: var(--surface); box-shadow: var(--shadow-sm); }
.support-inner h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin: 0 0 .35rem; }
.support-inner p { margin: 0; color: var(--muted); font-size: .95rem; max-width: 46em; }

/* ----------------------------------------------------------------- news */
.news-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; align-items: start; }
.news-list { display: grid; gap: 1rem; }
.news-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.6rem; }
.news-item time { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.news-item h3 { margin: .35rem 0 .55rem; font-size: 1.3rem; }
.news-body p { margin: 0 0 .6rem; color: var(--text); }
.news-body p:last-child { margin-bottom: 0; }
.subscribe-card { background: var(--deep); color: var(--on-deep); border-radius: var(--radius); padding: 2rem; position: sticky; top: 96px; box-shadow: var(--shadow-lg); }
.subscribe-card .ico-box { background: rgba(214, 162, 67, .15); color: var(--accent); }
.subscribe-card h3 { color: #fff; margin: 1rem 0 .4rem; font-size: 1.4rem; }
.subscribe-card p { color: var(--on-deep-muted); font-size: .93rem; margin: 0 0 1.25rem; }
.subscribe-card form { display: grid; gap: .6rem; }
.subscribe-card input { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); color: #fff; }
.subscribe-card input::placeholder { color: rgba(255, 255, 255, .5); }
.subscribe-card input:focus { border-color: var(--accent); }
.subscribe-card .form-error, .subscribe-card .form-ok { margin: 0; }

/* ----------------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 2rem; align-items: start; }
.contact-info { display: grid; gap: .75rem; }
.contact-item {
  display: flex; gap: 1rem; align-items: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem 1.2rem; color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s;
}
a.contact-item:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.contact-item b { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.ci-icon { flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; }
.ci-icon svg { width: 20px; height: 20px; }
.socials { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .6rem .2rem 0; font-weight: 600; color: var(--heading); font-size: .92rem; }
.socials div { display: flex; gap: .5rem; }
.socials a { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--heading); display: grid; place-items: center; transition: border-color .15s, color .15s; }
.socials a:hover { border-color: var(--accent); color: var(--accent-text); }
.socials svg { width: 18px; height: 18px; }
.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.85rem; box-shadow: var(--shadow); display: grid; gap: 1rem; }
.contact-form .grid-2 { margin-bottom: 0; }
.contact-form .btn { justify-self: start; }
.form-ok { background: var(--ok-bg); color: var(--ok); border-radius: 8px; padding: .7rem 1rem; font-size: .9rem; margin: 0; font-weight: 600; }

/* ------------------------------------------------------------------ footer */
.footer { background: var(--footer-bg); color: #9aa4ba; padding: 4rem 0 1.75rem; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand p { margin: 1rem 0 0; max-width: 22rem; line-height: 1.6; }
.brand-light { color: #fff; }
.brand-light b { color: var(--accent); }
.footer h4 { font: 600 .75rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: .4rem 0 1.1rem; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: .65rem; }
.footer-col a, .footer-col button { color: #c4cbd9; text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left; }
.footer-col a:hover, .footer-col button:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 3rem; padding-top: 1.4rem; font-size: .82rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom a { color: #9aa4ba; }

/* ---------------------------------------------------------- dialog & forms */
dialog { border: 1px solid var(--line); border-radius: 14px; padding: 0; width: min(720px, 94vw); max-height: 92vh; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); background: var(--surface); color: var(--text); }
dialog::backdrop { background: rgba(5, 10, 22, .6); backdrop-filter: blur(2px); }
dialog form, .success { padding: 1.75rem 2rem 2rem; }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.dialog-head h3 { font-size: 1.5rem; margin: 0; }
.dialog-head .eyebrow { margin-bottom: .3rem; }
.dialog-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
label { display: grid; gap: .4rem; font-size: .88rem; font-weight: 600; color: var(--heading); }
input, select, textarea {
  font: 400 .95rem var(--sans); padding: .7em .85em; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--text); width: 100%; transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: #cfc8b9; }
[data-theme="dark"] input:hover, [data-theme="dark"] select:hover, [data-theme="dark"] textarea:hover { border-color: #34405c; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(214, 162, 67, .2); }
textarea { resize: vertical; }
label.check { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; font-size: .86rem; color: var(--muted); margin-top: 1rem; }
label.check input { width: auto; margin-top: .25rem; accent-color: var(--accent); }
.span-2 { grid-column: 1 / -1; }
.help { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); }
fieldset.choice { border: 1px solid var(--line); border-radius: 10px; padding: .75rem 1rem .85rem; margin: 0; display: flex; flex-wrap: wrap; gap: .45rem 1.3rem; }
fieldset.choice legend { font-size: .88rem; font-weight: 600; color: var(--heading); padding: 0 .3rem; }
fieldset.choice .help { flex-basis: 100%; }
label.opt { display: inline-flex; align-items: center; gap: .45rem; font-weight: 400; color: var(--text); }
label.opt input { width: auto; accent-color: var(--accent); }
#reg-fields label.check, #inq-fields label.check { margin-top: 0; }
.guardian { border: 1px solid var(--warn-line); background: var(--warn-bg); border-radius: 10px; padding: 1rem 1rem .2rem; margin: 0 0 1rem; }
.guardian legend { font-size: .82rem; font-weight: 700; color: var(--accent-text); padding: 0 .4rem; }
.form-error { background: var(--err-bg); color: var(--danger); border-radius: 8px; padding: .7rem 1rem; font-size: .9rem; margin: 1rem 0 0; }
.hp { position: absolute; left: -9999px; }
.success { text-align: center; padding: 2.75rem 2rem; }
.success-mark { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; background: var(--ok); color: #fff; font-size: 2rem; display: grid; place-items: center; }
.success.waitlist .success-mark { background: var(--accent); }
.ref { background: var(--surface-alt); display: inline-block; padding: .5rem 1rem; border-radius: 8px; }

/* request dialog */
#inq-dialog .inq-intro { color: var(--muted); margin: 0 0 1.1rem; font-size: .95rem; }
.private-note { display: flex; gap: .7rem; align-items: flex-start; background: var(--surface-alt); border: 1px solid var(--line); border-radius: 10px; padding: .85rem 1rem; margin-bottom: 1.1rem; font-size: .88rem; }
.private-note svg { flex: none; width: 20px; height: 20px; color: var(--accent-text); margin-top: .1rem; }

/* -------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .nav-links { gap: 1.1rem; }
  .nav-links a:not(.btn) { font-size: .88rem; }
}
@media (max-width: 960px) {
  .two-col, .contact-grid, .news-grid { grid-template-columns: 1fr; }
  .about-quote { right: 1rem; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar:nth-child(3) { border-left: 0; }
  .pillar:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cards, .stories { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 180px 180px; }
  .gallery figure:first-child { grid-column: span 2; grid-row: auto; }
  .subscribe-card { position: static; }
  .support-inner { grid-template-columns: auto 1fr; }
  .support-inner .btn { grid-column: 1 / -1; justify-self: start; }
  .nav-toggle { display: inline-grid; }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; margin: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem 5vw 1.25rem; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .btn { margin: 1rem 0 0; }
}
@media (max-width: 640px) {
  .topbar-tag, .topbar-links a { display: none; }
  .topbar-inner { justify-content: center; }
  .hero { min-height: 0; }
  .hero-inner { padding: 3.5rem 0 6rem; }
  .hero::before { background: linear-gradient(180deg, rgba(9, 17, 36, .7) 0%, rgba(9, 17, 36, .92) 100%); }
  .hero-cta .btn { flex: 1 1 100%; }
  .pillars { grid-template-columns: 1fr; }
  .pillar + .pillar { border-left: 0; border-top: 1px solid var(--line); }
  .cards, .stories, .grid-2, .values { grid-template-columns: 1fr; }
  .about-quote { position: static; margin-top: -2rem; margin-left: 1rem; margin-right: 1rem; position: relative; max-width: none; }
  .event { grid-template-columns: 72px 1fr; gap: 1.1rem; padding: 1.25rem; }
  .event-side { grid-column: 1 / -1; justify-items: stretch; text-align: left; }
  .event-side .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  dialog form, .success { padding: 1.3rem 1.15rem; }
}
