/* =========================================================
   IGY6; Foundation — "Night Ops" design
   Every color and font comes from Admin → Site-Wide Settings
   (Colors / Fonts) as CSS variables. The defaults below are
   only a fallback.
   ========================================================= */
:root {
  --bg: #12140F; --surface: #1B1E17; --deep: #0B0C09; --text: #EFEBE1; --muted: #B9B4A6;
  --paper: #F3F0E8; --ink: #12140F; --card: #FFFFFF; --label: #8B2F2F;
  --accent: #A8382B; --on-accent: #FFFFFF; --hl: #A9B86E; --on-hl: #12140F; --star: #E8B923; --discord: #2B2F6B;
  --f-head: 'Anton', Impact, sans-serif; --f-body: 'Instrument Sans', system-ui, sans-serif; --f-mono: 'JetBrains Mono', ui-monospace, monospace;
  --head-case: uppercase; --hs: 1;
  --line: color-mix(in srgb, var(--text) 13%, transparent);
  --line-ink: color-mix(in srgb, var(--ink) 13%, transparent);
  --ink-soft: color-mix(in srgb, var(--ink) 78%, var(--paper));
  --radius: 22px; --maxw: 1280px; --header-h: 76px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--f-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--hl); text-underline-offset: 3px; }
a:hover { color: var(--text); }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.2; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
button { font: inherit; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: 24px; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.sr, .skip:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 999; background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--hl); outline-offset: 3px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.stack { display: flex; flex-direction: column; gap: 28px; }
.sec-pad { padding-block: 92px; }
.sec-pad-sm { padding-block: 48px; }
.bordered-top { border-top: 1px solid var(--line); }
.semi { color: var(--accent); }

/* ---------------- Type ---------------- */
.display { font-family: var(--f-head); font-weight: 400; text-transform: var(--head-case); letter-spacing: .005em; line-height: .96; margin: 0; font-size: calc(clamp(40px, 5.4vw, 76px) * var(--hs)); }
.display.xl { font-size: calc(clamp(48px, 7vw, 104px) * var(--hs)); line-height: .93; }
.display.sm { font-size: calc(clamp(28px, 3vw, 44px) * var(--hs)); line-height: 1; }
.hero-title { font-size: calc(clamp(54px, 8.4vw, 124px) * var(--hs)); line-height: .92; }
.eyebrow { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); line-height: 1.5; }
.eyebrow.hl { color: var(--hl); }
.light-sec .eyebrow, .eyebrow.label { color: var(--label); }
.lead { font-size: 19px; line-height: 1.6; color: color-mix(in srgb, var(--text) 86%, var(--bg)); }
.rich ul, .rich ol { padding-left: 1.3em; }
.sec-head { margin-bottom: 8px; }
.sec-head.left { text-align: left; }
.sec-head.center { text-align: center; }
.divider { display: flex; align-items: center; gap: 6px; max-width: 520px; margin: 14px auto 0; }
.sec-head.left .divider { margin-left: 0; }
.divider span { flex: 1; height: 1px; background: currentColor; opacity: .25; }
.sec-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; }
.sec-intro { max-width: 480px; color: var(--muted); }
.arrow-link { font-weight: 700; color: inherit; text-decoration: underline; text-underline-offset: 5px; }
.arrow-link:hover { color: var(--accent); }
.stars { color: var(--star); letter-spacing: 2px; }

/* ---------------- Buttons ---------------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-row.center { justify-content: center; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .2s, filter .2s, background .2s; line-height: 1.2; text-align: center; }
.pill:hover { transform: translateY(-2px); }
.pill.small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.pill-2 { flex-direction: column; gap: 1px; padding-block: 8px; }
.pill .p-sub { font-family: var(--f-mono); font-size: 10.5px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.pill-accent { background: var(--accent); color: var(--on-accent); }
.pill-accent:hover { color: var(--on-accent); filter: brightness(1.1); }
.pill-hl { background: var(--hl); color: var(--on-hl); }
.pill-hl:hover { color: var(--on-hl); filter: brightness(1.08); }
.pill-ghost { background: transparent; color: var(--text); border-color: color-mix(in srgb, var(--text) 38%, transparent); }
.pill-ghost:hover { color: var(--text); border-color: var(--text); }
.pill-dark { background: var(--ink); color: var(--paper); }
.pill-dark:hover { color: var(--paper); filter: brightness(1.25); }
.pill-outline { background: transparent; color: var(--ink); border-color: var(--line-ink); }
.pill-outline:hover { color: var(--ink); border-color: var(--ink); }
.pill-white { background: #fff; color: var(--discord); }
.pill-white:hover { color: var(--discord); }
.pill-light { background: var(--paper); color: var(--ink); }

/* ---------------- Top bar & header ---------------- */
.topbar { background: var(--deep); border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.topbar-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-block: 9px; }
.topbar a { color: var(--text); font-weight: 600; }
.marquee { background: var(--accent); color: var(--on-accent); font-size: 14px; padding: 6px 0; overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: scroll var(--marquee-speed, 100s) linear infinite; }
.marquee-run { display: flex; white-space: nowrap; }
.marquee-run span { padding-right: 1.6em; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.logo { text-decoration: none; color: var(--text); flex: 0 0 auto; }
.logo-img { height: 52px; width: auto; }
.wordmark { display: inline-flex; align-items: baseline; gap: 10px; color: var(--text); }
.wm-main { font-family: var(--f-head); font-size: 34px; line-height: 1; letter-spacing: .02em; }
.wm-sub { font-family: var(--f-mono); font-size: 11px; letter-spacing: .22em; color: var(--muted); }
.wordmark.big .wm-main { font-size: 60px; }
.main-nav { flex: 1; display: flex; justify-content: center; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 26px; }
.main-nav .menu a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15.5px; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav .menu a:hover { color: var(--hl); }
.main-nav .menu a.current { border-bottom-color: var(--accent); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .pill { min-height: 44px; padding: 0 20px; font-size: 15px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--text); }
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { border-top: 1px solid var(--line); padding: 8px 0 20px; background: var(--bg); }
.mobile-nav .menu { flex-direction: column; gap: 0; }
.mobile-nav .menu a { display: block; color: var(--text); text-decoration: none; padding: 13px 0; border-bottom: 1px solid var(--line); font-family: var(--f-head); text-transform: var(--head-case); font-size: 24px; }
.mobile-nav .menu a.current { color: var(--hl); }
.mobile-nav .social { margin-top: 18px; }
.social { display: flex; gap: 8px; flex-wrap: wrap; }
.social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); color: var(--text); display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s; }
.social a:hover { background: var(--hl); color: var(--on-hl); border-color: var(--hl); }

/* ---------------- Hero (home) ---------------- */
.hero { padding: 64px 0 44px; }
.hero-grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: stretch; }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.hero-sub { max-width: 580px; font-size: 20px; line-height: 1.55; color: color-mix(in srgb, var(--text) 86%, var(--bg)); }
.hero-sub strong { color: var(--text); }
.paths { display: flex; flex-wrap: wrap; gap: 14px; }
.path { flex: 1 1 240px; display: flex; flex-direction: column; gap: 3px; padding: 18px 20px; border-radius: 18px; text-decoration: none; transition: transform .2s; }
.path:hover { transform: translateY(-3px); }
.path .eyebrow { font-size: 11.5px; color: inherit; opacity: .75; }
.path-title { font-weight: 700; font-size: 19px; }
.path-sub { font-size: 14px; opacity: .85; }
.path-light { background: var(--paper); color: var(--ink); }
.path-light:hover { color: var(--ink); }
.path-accent { background: var(--accent); color: var(--on-accent); }
.path-accent:hover { color: var(--on-accent); }
.endorse-line { display: flex; align-items: center; gap: 14px; font-size: 14.5px; line-height: 1.45; color: color-mix(in srgb, var(--text) 86%, var(--bg)); }
.endorse-line img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: 0 0 52px; background: var(--surface); border: 2px solid var(--line); }
.endorse-line strong { color: var(--text); }
.collage { flex: 1 1 460px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 300px 240px; gap: 14px; }
.collage > div { border-radius: var(--radius); overflow: hidden; position: relative; background: var(--surface); }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.c-big { grid-row: span 2; }
.badge { position: absolute; top: 16px; left: 16px; background: var(--ink); color: var(--paper); border-radius: 999px; padding: 7px 14px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; }
.badge.glass { background: color-mix(in srgb, var(--deep) 78%, transparent); color: var(--text); border: 1px solid var(--line); backdrop-filter: blur(6px); }
.c-tile { background: var(--hl) !important; color: var(--on-hl); padding: 20px; display: flex; flex-direction: column; justify-content: space-between; }
.c-tile .eyebrow { color: inherit; opacity: .8; }
.c-tile .display { font-size: calc(clamp(30px, 3vw, 42px) * var(--hs)); line-height: 1; }
.c-tile .semi { color: inherit; }

/* ---------------- Logo strip ---------------- */
.logo-strip { border-block: 1px solid var(--line); padding: 22px 0 26px; overflow: hidden; }
.logo-strip .eyebrow { margin-bottom: 14px; }
.logo-slider { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.logo-track { display: flex; width: max-content; animation: scroll 70s linear infinite; }
.logo-slider:hover .logo-track, .logo-slider:focus-within .logo-track { animation-play-state: paused; }
.logo-run { display: flex; gap: 14px; padding-right: 14px; }
.chip { display: flex; align-items: center; justify-content: center; width: 150px; height: 72px; padding: 10px 14px; border-radius: 14px; background: var(--paper); }
.chip img { max-width: 100%; max-height: 52px; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .25s, opacity .25s; }
.chip:hover img { filter: none; opacity: 1; }

/* ---------------- Stats ---------------- */
.stats { display: flex; flex-wrap: wrap; gap: 14px; padding-block: 52px; }
.stat { flex: 1 1 220px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; }
.stat-num { font-family: var(--f-head); font-size: calc(54px * var(--hs)); line-height: 1; color: var(--hl); }
.stat-label { margin-top: 8px; color: var(--muted); }

/* ---------------- Light sections ---------------- */
.light-sec { background: var(--paper); color: var(--ink); }
.light-sec > .wrap.stack { padding-block: 88px; }
.light-sec.bordered { border-top: 1px solid var(--line-ink); }
.light-sec.bordered > .wrap.stack { padding-top: 64px; }
.light-sec a:not(.pill) { color: var(--ink); }
.light-sec .lead, .light-sec .sec-intro { color: var(--ink-soft); }
.muted-ink { color: var(--ink-soft); }

/* Spotlight event */
.spotlight { display: flex; flex-wrap: wrap; background: var(--card); color: var(--ink); border-radius: 26px; overflow: hidden; box-shadow: 0 30px 60px -32px rgba(0,0,0,.4); }
.spot-img { flex: 1 1 420px; min-height: 380px; position: relative; background: var(--line-ink); }
.spot-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spot-body { flex: 1 1 480px; min-width: 0; padding: 40px 44px; display: flex; flex-direction: column; gap: 16px; }
.spot-body .display { font-size: calc(clamp(36px, 4vw, 54px) * var(--hs)); line-height: 1; }
.status { color: var(--label); font-weight: 700; margin: 0; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.facts div { background: var(--paper); border-radius: 12px; padding: 11px 14px; }
.facts dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 700; }
.facts a { color: var(--ink); }
.spot-desc { color: var(--ink-soft); }
.spot-cta { font-family: var(--f-head); text-transform: var(--head-case); font-size: 22px; color: var(--label); margin: 0; }
.small-note { font-size: 14px; color: var(--ink-soft); }
.mini-row { display: flex; flex-wrap: wrap; gap: 16px; }
.mini { flex: 1 1 440px; display: flex; gap: 18px; align-items: center; background: var(--card); color: var(--ink); border-radius: 20px; padding: 16px; }
.mini img { width: 120px; height: 120px; flex: 0 0 120px; object-fit: cover; border-radius: 14px; }
.mini h3 { font-size: 21px; margin: 4px 0; }
.mini .status { font-size: 14px; }
.notify { flex: 1 1 360px; background: var(--bg); color: var(--text); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.notify h3 { font-size: 20px; margin: 0; }
.notify p { color: var(--muted); margin: 0 0 6px; }

/* How it works */
.steps { display: flex; flex-wrap: wrap; gap: 24px; }
.step { flex: 1 1 260px; border-top: 3px solid var(--ink); padding-top: 18px; }
.step-n { font-family: var(--f-mono); font-size: 13px; color: var(--label); }
.step h3 { font-size: 23px; margin: 6px 0; }
.step p { color: var(--ink-soft); margin: 0; }
.how-note { font-size: 15px; color: var(--ink-soft); }
.how-note a { font-weight: 700; }

/* ---------------- Programs ---------------- */
.bento { display: flex; flex-wrap: wrap; gap: 16px; }
.tile { flex: 1 1 400px; min-height: 360px; position: relative; overflow: hidden; border-radius: 24px; background: var(--surface); color: var(--text); text-decoration: none; display: flex; }
.tile.wide { flex: 2 1 600px; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.82) 100%); }
.tile:hover img { transform: scale(1.05); }
.tile:hover { color: var(--text); }
.tile-body { position: relative; z-index: 1; margin-top: auto; padding: 28px; display: flex; flex-direction: column; gap: 6px; color: #fff; }
.tile-body .eyebrow { color: var(--hl); }
.tile-title { font-family: var(--f-head); text-transform: var(--head-case); font-size: calc(clamp(34px, 3.4vw, 48px) * var(--hs)); line-height: 1; }
.tile-desc { color: rgba(255,255,255,.85); max-width: 540px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.card figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.card figure img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; align-items: flex-start; }
.card-body h3 { font-family: var(--f-head); text-transform: var(--head-case); font-weight: 400; font-size: 30px; line-height: 1; margin: 0; }
.card-body p { color: var(--muted); font-size: 15px; flex: 1; }
.card-body .eyebrow { color: var(--hl); }

/* ---------------- Stories ---------------- */
.big-quote { margin: 0; font-size: calc(clamp(34px, 4.4vw, 62px) * var(--hs)); line-height: 1.04; max-width: 1120px; }
.quote-by { display: flex; align-items: center; gap: 14px; }
.quote-by img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--surface); }
.quotes { display: flex; flex-wrap: wrap; gap: 16px; }
.qcard { flex: 1 1 320px; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.qcard blockquote { margin: 0; color: color-mix(in srgb, var(--text) 88%, var(--bg)); flex: 1; }
.qcard figcaption { display: flex; align-items: center; gap: 10px; }
.qcard figcaption img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: 0 0 40px; background: var(--deep); }
.qcard figcaption span span { color: var(--muted); }
.qcard-light { background: var(--paper); color: var(--ink); border-color: transparent; }
.qcard-light blockquote { color: var(--ink); }
.qcard-light figcaption span span { color: var(--ink-soft); }

/* ---------------- Highlight (semicolon) section ---------------- */
.hl-sec { background: var(--hl); color: var(--on-hl); }
.hl-sec .eyebrow { color: inherit; opacity: .75; }
.hl-sec .lead, .hl-sec .rich { color: inherit; }
.hl-sec a:not(.pill) { color: inherit; }
.semi-grid { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-block: 88px; }
.semi-grid > .stack { flex: 1 1 520px; min-width: 0; gap: 18px; }
.semi-mark { flex: 0 1 300px; font-family: var(--f-head); font-size: 360px; line-height: .8; text-align: center; }
.semi-mark.small { font-size: 160px; color: var(--accent); flex: none; }
.semi-quote { margin: 0; }

/* ---------------- Donate ---------------- */
.give { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.give-copy { flex: 1 1 460px; min-width: 0; gap: 20px; }
.give-side { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; }
.tiers { list-style: none; margin: 0; padding: 0; }
.tiers li { display: flex; gap: 16px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tiers li:last-child { border-bottom: 0; }
.tiers strong { font-family: var(--f-head); font-weight: 400; font-size: 28px; color: var(--hl); min-width: 96px; }
.tiers span { color: var(--muted); }
.give-box { flex: 1 1 420px; min-width: 0; background: var(--paper); color: var(--ink); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.give-box fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.give-box input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.freq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; background: var(--line-ink); border-radius: 999px; padding: 5px; }
.freq span { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 999px; font-weight: 600; cursor: pointer; }
.freq input:checked + span { background: var(--ink); color: var(--paper); font-weight: 700; }
.amounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; }
.amounts span { display: flex; align-items: center; justify-content: center; min-height: 54px; border-radius: 14px; border: 1px solid var(--line-ink); background: var(--card); font-size: 18px; font-weight: 600; cursor: pointer; transition: border-color .15s; }
.amounts span:hover { border-color: var(--ink); }
.amounts input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); font-weight: 700; }
.give-box input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.other { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.other input { min-height: 48px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line-ink); background: var(--card); color: var(--ink); font: inherit; }
.give-btn { min-height: 58px; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 18px; font-weight: 700; cursor: pointer; transition: filter .2s; }
.give-btn:hover { filter: brightness(1.1); }
.give-note { font-size: 13px; color: var(--ink-soft); text-align: center; margin: 0; }
.chosen { display: flex; flex-direction: column; gap: 4px; padding: 20px 24px; border: 1px solid var(--hl); border-radius: 18px; }
.trust-row { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 15px; }
.donate-embed { background: var(--card); border-radius: 24px; padding: 12px; min-height: 300px; }
.donate-embed iframe { width: 100%; border: 0; min-height: 700px; }

/* ---------------- Community ---------------- */
.duo { display: flex; flex-wrap: wrap; gap: 16px; }
.duo-card { flex: 1 1 460px; border-radius: 26px; padding: 36px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.discord-card { background: var(--discord); color: #fff; }
.discord-card .semi { color: inherit; }
.discord-logo svg { width: 48px; height: 48px; }
.help-card { background: var(--surface); border: 1px solid var(--line); }
.help-card p { color: var(--muted); }
.help-ico { color: var(--hl); }
.newsletter { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 32px; color: var(--text); }
.news-copy { flex: 1 1 300px; display: flex; flex-direction: column; gap: 10px; }
.news-copy p { color: var(--muted); }
.news-form { flex: 2 1 420px; min-width: 0; background: #fff; border-radius: 18px; overflow: hidden; }
.news-form iframe { width: 100%; height: 360px; border: 0; display: block; }
.discord-band { background: var(--discord); color: #fff; padding: 72px 0; }
.discord-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.discord-grid.no-widget { grid-template-columns: 1fr; text-align: center; max-width: 860px; }
.discord-copy { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.no-widget .discord-copy { align-items: center; }
.discord-copy .lead { color: rgba(255,255,255,.85); }
.discord-copy .semi { color: inherit; }
.discord-widget iframe { width: 100%; height: 420px; border: 0; border-radius: 14px; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--deep); border-top: 1px solid var(--line); color: var(--text); }
.footer-top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; padding-block: 60px 40px; }
.f-brand { flex: 1 1 300px; display: flex; flex-direction: column; gap: 12px; }
.f-logo { color: var(--text); text-decoration: none; }
.f-logo .logo-img { height: 80px; }
.f-tag { font-size: 18px; margin: 0; }
.f-contact { color: var(--muted); font-size: 15px; }
.f-contact a { color: var(--muted); }
.f-nav { flex: 1 1 340px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-content: start; }
.f-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.f-menu a { color: var(--text); text-decoration: none; }
.f-menu a:hover, .f-menu a.current { color: var(--hl); }
.f-logos { flex: 1 1 240px; display: flex; flex-direction: column; gap: 12px; }
.f-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.f-badges .chip { width: 104px; height: 80px; }
.f-badges .chip img { filter: none; opacity: 1; max-height: 64px; }
.f-label { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 6px 0 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 18px 28px; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.footer-bottom a { color: var(--muted); }
.to-top { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; display: flex; align-items: center; justify-content: center; font-size: 20px; opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 40; }
.to-top.show { opacity: 1; pointer-events: auto; }
body.has-chat .to-top { bottom: 88px; }

/* ---------------- Inner pages ---------------- */
.page-hero { position: relative; padding: 96px 0 76px; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.page-hero .lead { max-width: 720px; }
.ph-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.page-hero.has-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 30%, transparent), var(--bg)); }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split-copy { flex: 1.4 1 480px; min-width: 0; }
.split-img { flex: 1 1 340px; }
.split-img img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; }
.lead-ish { font-size: 18px; color: color-mix(in srgb, var(--text) 88%, var(--bg)); }
.band { position: relative; background: var(--surface); overflow: hidden; }
.band > .wrap { position: relative; z-index: 1; align-items: center; }
.hl-text { color: var(--hl); }
.founder { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; background: var(--card); border-radius: 26px; padding: 32px; }
.founder .member { flex: 0 1 240px; }
.founder-msg { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 32px; }
.member { text-align: center; }
.member img { width: 200px; height: 200px; object-fit: cover; border-radius: 50%; margin: 0 auto 14px; background: var(--line-ink); }
.member h3 { font-size: 20px; margin: 0 0 2px; }
.member .eyebrow { margin: 0; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; margin-top: 24px; }
.faq { background: var(--card); color: var(--ink); border-radius: 16px; margin-bottom: 10px; border: 1px solid var(--line-ink); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 22px; font-weight: 700; font-size: 17.5px; position: relative; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; color: var(--label); }
.faq[open] summary::after { content: '–'; }
.faq-a { padding: 0 22px 20px; color: var(--ink-soft); }
.form-card { background: var(--card); color: var(--ink); border-radius: 24px; padding: 30px; }
.form-title { font-family: var(--f-head); font-weight: 400; text-transform: var(--head-case); font-size: calc(36px * var(--hs)); line-height: 1; margin: 0 0 18px; }
.contact-form form { display: flex; flex-direction: column; gap: 12px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form textarea { width: 100%; font: inherit; font-size: 16px; padding: 14px 16px; border: 1px solid var(--line-ink); background: var(--paper); border-radius: 14px; color: var(--ink); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hl) 45%, transparent); }
.f-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.captcha { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.captcha input { width: 72px !important; text-align: center; padding: 10px !important; }
.btn-submit { min-height: 52px; padding: 0 30px; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 16px; cursor: pointer; }
.btn-submit:hover { filter: brightness(1.1); }
.hp { position: absolute; left: -9999px; }
.alert { padding: 14px 18px; border-radius: 14px; margin-bottom: 14px; }
.alert.ok { background: #e7f2da; color: #2c4a10; }
.alert.err { background: #f8e1df; color: #7a1f1f; }
.contact-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.contact-grid > .stack { flex: 1 1 380px; gap: 16px; }
.contact-grid > .form-card { flex: 1.4 1 480px; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.info-card a { color: var(--text); }
.help-card-hl { background: var(--hl); color: var(--on-hl); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.help-card-hl a:not(.pill) { color: inherit; font-weight: 700; }
.funders { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 24px; }
.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 24px; }
.logo-card { display: flex; align-items: center; justify-content: center; background: var(--card); border: 1px solid var(--line-ink); border-radius: 16px; padding: 16px; min-height: 120px; transition: transform .2s, border-color .2s; }
.logo-card:hover { transform: translateY(-3px); border-color: var(--ink); }
.logo-card img { max-height: 88px; object-fit: contain; }
.logo-card.big { min-height: 180px; }
.logo-card.big img { max-height: 140px; }
.endorse { display: flex; align-items: center; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.endorse-photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: 0 0 84px; }
.endorse-text { font-size: 17px; margin-top: 4px; }
.events { display: flex; flex-direction: column; gap: 24px; }

/* Blog */
.empty-state { text-align: center; padding: 10px 0 30px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s; }
.post-card:hover { transform: translateY(-4px); }
.pc-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--deep); }
.pc-img img { width: 100%; height: 100%; object-fit: cover; }
.pc-ph { display: flex; height: 100%; align-items: center; justify-content: center; }
.pc-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; align-items: flex-start; }
.pc-body h2 { font-size: 22px; line-height: 1.25; margin: 0; }
.pc-body h2 a { color: var(--text); text-decoration: none; }
.pc-body h2 a:hover { color: var(--hl); }
.pc-body p { color: var(--muted); font-size: 15px; flex: 1; }
.pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 40px; flex-wrap: wrap; color: var(--muted); }
.preview-bar { background: var(--star); color: #1a1400; text-align: center; padding: 10px; font-size: 14px; }
.post-head { padding: 64px 0 36px; }
.post-head .wrap { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.post-crumb a { color: var(--hl); font-weight: 700; text-decoration: none; font-size: 14px; }
.post-meta { color: var(--muted); font-size: 15px; font-family: var(--f-mono); letter-spacing: .04em; }
.post-cover { max-width: 1080px; }
.post-cover img { width: 100%; border-radius: var(--radius); max-height: 580px; object-fit: cover; }
.prose { font-size: 18px; line-height: 1.85; color: color-mix(in srgb, var(--text) 90%, var(--bg)); padding: 44px 0 10px; }
.prose h2, .prose h3 { font-family: var(--f-head); font-weight: 400; text-transform: var(--head-case); line-height: 1.05; color: var(--text); }
.prose h2 { font-size: calc(40px * var(--hs)); margin: 1.4em 0 .4em; }
.prose h3 { font-size: calc(30px * var(--hs)); margin: 1.3em 0 .4em; }
.prose h4 { font-size: 20px; margin: 1.2em 0 .4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose img { border-radius: 16px; margin: 1.4em auto; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--hl); font-family: var(--f-head); text-transform: var(--head-case); font-size: calc(28px * var(--hs)); line-height: 1.15; color: var(--text); }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.2em 0; }
.prose a { color: var(--hl); }
.share { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 22px 0; border-block: 1px solid var(--line); margin: 24px 0; font-size: 14px; }
.share span { font-family: var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.share a, .share button { background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; text-decoration: none; color: var(--text); font-size: 14px; cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--text); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 64px; }
.post-nav a { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--text); font-weight: 700; }
.post-nav a:hover { border-color: var(--hl); }
.post-nav small { display: block; color: var(--hl); font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 400; }
.pn-next { text-align: right; grid-column: 2; }

/* Resources */
.crisis { background: var(--accent); color: var(--on-accent); padding: 16px 0; }
.crisis .wrap { display: flex; gap: 14px; align-items: center; }
.crisis-ico { font-size: 24px; }
.crisis a { color: inherit; font-weight: 700; }
.res-tools { position: sticky; top: var(--header-h); z-index: 5; background: color-mix(in srgb, var(--paper) 95%, transparent); backdrop-filter: blur(6px); padding: 14px 0; margin-bottom: 10px; }
.res-search input { width: 100%; font: inherit; font-size: 16px; padding: 14px 18px; border: 1px solid var(--line-ink); border-radius: 999px; background: var(--card); color: var(--ink); }
.res-search input:focus { outline: none; border-color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip-btn, .chips .chip { width: auto; height: auto; background: var(--card); border: 1px solid var(--line-ink); color: var(--ink); border-radius: 999px; padding: 7px 15px; font-size: 14px; cursor: pointer; }
.chips .chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.res-cat { margin-top: 40px; }
.res-cat-title { font-family: var(--f-head); font-weight: 400; text-transform: var(--head-case); font-size: calc(34px * var(--hs)); line-height: 1; padding-bottom: 10px; border-bottom: 2px solid var(--line-ink); margin-bottom: 18px; }
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 18px; }
.res-card { background: var(--card); border: 1px solid var(--line-ink); border-radius: 20px; padding: 24px; position: relative; display: flex; flex-direction: column; }
.res-card.featured { border: 2px solid var(--hl); }
.res-badge { position: absolute; top: -12px; right: 18px; background: var(--hl); color: var(--on-hl); font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: 999px; }
.res-card h3 { font-size: 21px; margin-bottom: 4px; }
.res-card h3 a { text-decoration: none; }
.res-card h3 a:hover { text-decoration: underline; }
.res-area { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.res-desc { font-size: 15.5px; flex: 1; color: var(--ink-soft); }
.res-note { margin-top: 12px; background: color-mix(in srgb, var(--star) 16%, var(--card)); border-left: 4px solid var(--star); padding: 10px 14px; font-size: 15px; border-radius: 0 10px 10px 0; }
.res-actions { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 14px; font-size: 15px; }
.res-phone a { font-weight: 700; }
.res-link { font-weight: 700; color: var(--label) !important; }
.tips-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.tip { margin: 0 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.tip blockquote { margin: 0 0 8px; }
.tip figcaption { font-size: 14px; color: var(--muted); }
.tip-reply { margin-top: 10px; background: color-mix(in srgb, var(--hl) 18%, var(--surface)); border-left: 4px solid var(--hl); padding: 8px 12px; font-size: 14.5px; border-radius: 0 10px 10px 0; }
.small-lead { font-size: 15px; margin-bottom: 14px; color: var(--ink-soft); }
.kind-row { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
.kind-row label { display: flex; gap: 6px; align-items: center; cursor: pointer; }

/* ---------------- Live chat widget ---------------- */
.chat-fab { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; align-items: center; gap: 10px; background: var(--accent); color: var(--on-accent); border: 0; border-radius: 999px; padding: 14px 20px 14px 16px; font-weight: 700; font-size: 15px; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .2s; }
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab svg { width: 22px; height: 22px; }
.chat-fab .cf-dot { width: 10px; height: 10px; border-radius: 50%; background: #9aa0a6; border: 2px solid var(--on-accent); }
.chat-fab.online .cf-dot { background: #3cb043; }
.chat-fab .cf-count { background: var(--on-accent); color: var(--accent); border-radius: 10px; font-size: 12px; padding: 0 7px; }
.chat-win { position: fixed; right: 20px; bottom: 88px; z-index: 91; width: 380px; max-width: calc(100vw - 24px); height: 560px; max-height: calc(100vh - 110px); background: var(--paper); color: var(--ink); border-radius: 20px; box-shadow: 0 24px 70px rgba(0,0,0,.45); display: flex; flex-direction: column; overflow: hidden; font-size: 15px; }
.cw-head { background: var(--deep); color: var(--text); padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.cw-head img { width: 40px; height: 40px; border-radius: 50%; background: #fff; object-fit: contain; }
.cw-title { font-weight: 700; line-height: 1.2; }
.cw-status { font-size: 12.5px; opacity: .85; display: flex; align-items: center; gap: 6px; }
.cw-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #9aa0a6; }
.chat-win.online .cw-status::before { background: #3cb043; }
.cw-close { margin-left: auto; background: none; border: 0; color: var(--text); font-size: 26px; cursor: pointer; line-height: 1; padding: 4px; }
.cw-crisis { background: var(--accent); color: var(--on-accent); font-size: 12.5px; padding: 6px 14px; text-align: center; }
.cw-crisis a { color: inherit; font-weight: 700; }
.cw-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.cw-msg { max-width: 82%; padding: 9px 13px; border-radius: 16px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.cw-msg.admin, .cw-msg.welcome { background: var(--card); border: 1px solid var(--line-ink); align-self: flex-start; border-bottom-left-radius: 4px; }
.cw-msg.visitor { background: var(--ink); color: var(--paper); align-self: flex-end; border-bottom-right-radius: 4px; }
.cw-msg.visitor a { color: inherit; }
.cw-msg.system { align-self: center; background: none; color: var(--ink-soft); font-size: 13px; font-style: italic; text-align: center; }
.cw-msg small { display: block; font-size: 11px; opacity: .65; margin-top: 2px; }
.cw-typing { font-size: 12.5px; color: var(--ink-soft); padding: 0 14px 6px; }
.cw-start { padding: 14px; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line-ink); }
.cw-start input, .cw-start textarea, .cw-send textarea { width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--line-ink); border-radius: 12px; resize: none; background: var(--card); color: var(--ink); }
.cw-start input:focus, .cw-start textarea:focus, .cw-send textarea:focus { outline: none; border-color: var(--ink); }
.cw-err { color: #9b1c1c; font-size: 13px; }
.cw-btn { background: var(--accent); color: var(--on-accent); border: 0; border-radius: 12px; padding: 12px; font-weight: 700; cursor: pointer; }
.cw-btn:disabled { opacity: .6; cursor: default; }
.cw-send { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line-ink); align-items: flex-end; }
.cw-send textarea { min-height: 44px; max-height: 120px; }
.cw-send .cw-btn { padding: 12px 14px; }
.cw-foot { font-size: 11.5px; color: var(--ink-soft); text-align: center; padding: 0 10px 8px; }
.cw-foot button { background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1180px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .header-in { justify-content: space-between; }
}
@media (max-width: 900px) {
  .sec-pad { padding-block: 64px; }
  .light-sec > .wrap.stack { padding-block: 64px; }
  .semi-grid { padding-block: 64px; }
  .semi-mark { font-size: 200px; flex-basis: 100%; }
  .faq-grid, .tips-grid, .discord-grid { grid-template-columns: 1fr; }
  .collage { grid-template-rows: 240px 180px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 18px; }
  .hero { padding-top: 36px; }
  .hide-sm { display: none !important; }
  .header-cta .pill { padding: 0 16px; }
  .wm-main { font-size: 28px; }
  .wm-sub { display: none; }
  .collage { grid-template-rows: 200px 150px; gap: 10px; }
  .stat { flex: 1 1 140px; padding: 18px; }
  .stat-num { font-size: calc(40px * var(--hs)); }
  .badge { font-size: 10px; padding: 5px 10px; top: 10px; left: 10px; }
  .spot-img { min-height: 240px; }
  .spot-body { padding: 26px 22px; }
  .facts { grid-template-columns: 1fr; }
  .mini { flex-direction: column; align-items: flex-start; }
  .mini img { width: 100%; height: 160px; }
  .f-row { grid-template-columns: 1fr; }
  .give-box, .form-card, .duo-card, .newsletter { padding: 22px; }
  .founder { padding: 22px; }
  .post-nav { grid-template-columns: 1fr; }
  .pn-next { grid-column: 1; text-align: left; }
  .res-tools { position: static; }
  .res-grid { grid-template-columns: 1fr; }
  .chat-fab .cf-label { display: none; }
  .chat-fab { padding: 15px; }
  .chat-win { right: 0; bottom: 0; width: 100vw; max-width: 100vw; height: 100%; max-height: 100%; border-radius: 0; }
  .topbar-in { justify-content: center; text-align: center; }
  .topbar-in span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .logo-track { animation: none; }
  .logo-slider { overflow-x: auto; }
  * { transition: none !important; }
}
.img-missing { visibility: hidden !important; }
