/* Layout concept: a dark "command center": status panels, monospace data labels, one muted-gold accent for actions, oxblood for live signals */
:root {
  --black: #000000;
  --bg: #0a0a0a;
  --panel: #1a1a1a;
  --panel-2: #141414;
  --line: #2b2b2b;
  --line-soft: #202020;
  --text: #ece8df;
  --muted: #9b968c;
  --gold: #c6a15b;
  --gold-soft: rgba(198, 161, 91, .14);
  --oxblood: #8e2a35;
  --oxblood-bright: #c0485a;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 6px;
  --max: 1200px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 150px; background: var(--black); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--black); }
img { max-width: 100%; display: block; }
a { color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.025em; color: #fff; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Language toggle: English primary, Swedish secondary */
html[data-lang="en"] body [lang="sv"],
html[data-lang="sv"] body [lang="en"] { display: none !important; }

.wrap {
  max-width: var(--max); margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.mono, .label { font-family: var(--mono); }
.label {
  display: inline-flex; align-items: center; gap: 10px; font-size: .74rem; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
}
.label::before { content: "//"; color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.section { padding-block: 104px; border-top: 1px solid var(--line-soft); }
.section-head { max-width: 780px; margin-bottom: 52px; }

/* Draft bar */
.draft-bar { background: var(--panel-2); border-bottom: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.draft-bar .wrap { display: flex; gap: 12px; align-items: center; justify-content: center; padding-block: 8px; text-align: center; }
.draft-bar button { background: none; border: 0; color: var(--muted); font-size: 1.1rem; cursor: pointer; }
.tag-draft { font: 600 .68rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--black); background: var(--gold); padding: 2px 7px; border-radius: 3px; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(0, 0, 0, .86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft);
}
.site-header > .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand img { width: 40px; height: 40px; }
.brand-name { font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; line-height: 1.1; }
.brand-sub { display: block; font: 500 .62rem var(--mono); letter-spacing: .22em; color: var(--gold); margin-top: 3px; }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 500; }
.nav a:hover { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.lang-toggle button { background: transparent; border: 0; padding: 6px 10px; font: 600 .74rem var(--mono); letter-spacing: .06em; color: var(--muted); cursor: pointer; }
.lang-toggle button[aria-pressed="true"] { background: var(--gold); color: var(--black); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 4px; width: 40px; height: 40px; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--text); margin: 4px auto; }

/* Reading progress: headline markers along a rail, gold fill shows how much has been read */
.progress { border-top: 1px solid var(--line-soft); background: rgba(0, 0, 0, .9); }
.progress-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; height: 40px; }
.progress-current { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); min-width: 92px; }
.progress-pct { font-size: .7rem; color: var(--muted); min-width: 64px; text-align: right; font-variant-numeric: tabular-nums; }
.progress-rail { position: relative; height: 40px; min-width: 0; }
.progress-track { position: absolute; left: 0; right: 0; top: 12px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), #e2c27f); transition: width .12s linear; }
.progress-marks { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.progress-marks li { position: absolute; top: 0; transform: translateX(-50%); }
.progress-marks li:first-child { transform: none; }
.progress-marks li:last-child { transform: translateX(-100%); }
.progress-marks a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 8px; text-decoration: none; font: 500 .62rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.progress-marks li:first-child a { align-items: flex-start; }
.progress-marks li:last-child a { align-items: flex-end; }
.progress-marks a::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--black); border: 2px solid var(--line); transition: border-color .2s, background .2s; }
.progress-marks li.done a::before { border-color: var(--gold); background: var(--gold); }
.progress-marks li.active a { color: #fff; }
.progress-marks li.active a::before { border-color: var(--gold); background: var(--black); box-shadow: 0 0 0 4px var(--gold-soft); }
.progress-marks a:hover { color: var(--gold); }
@media (max-width: 1080px) { .progress-marks a span { display: none; } .progress-marks a { padding-top: 7px; } }
@media (max-width: 680px) { .progress-inner { gap: 10px; } .progress-current { min-width: 0; font-size: .62rem; } .progress-pct { min-width: 0; } .progress-marks a::before { width: 7px; height: 7px; border-width: 1.5px; } .progress-track { top: 10px; } }
@media (prefers-reduced-motion: reduce) { .progress-fill { transition: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 4px; border: 1px solid transparent;
  font: 600 .93rem var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: #d8b56f; }
.btn-line { border-color: var(--line); color: var(--text); background: transparent; }
.btn-line:hover { border-color: var(--gold); color: #fff; }
.btn-sm { padding: 9px 15px; font-size: .84rem; }
.arrow { font-family: var(--mono); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--black); padding-block: 72px 0; }
#netCanvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; pointer-events: none; }
.hero .wrap { position: relative; }
.hero .hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 .dim { color: var(--muted); font-weight: 500; }
.hero .lead { color: #bdb8ad; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 0; }
.hero-figure { position: relative; margin: 0; }
.hero-photo { width: 100%; height: auto; aspect-ratio: 4/5; max-height: 600px; object-fit: cover; filter: grayscale(1) contrast(1.08); border-radius: var(--radius); }
.hero-figure::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius); pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.85)); box-shadow: inset 0 0 0 1px var(--line);
}
.corner { position: absolute; width: 18px; height: 18px; border-color: var(--gold); border-style: solid; z-index: 2; }
.corner.tl { top: -6px; left: -6px; border-width: 2px 0 0 2px; }
.corner.br { bottom: -6px; right: -6px; border-width: 0 2px 2px 0; }
.hero-id { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; font-family: var(--mono); font-size: .76rem; color: var(--muted); }
.hero-id strong { display: block; font-family: var(--sans); font-size: 1.15rem; color: #fff; letter-spacing: -.01em; }

.status-strip {
  position: relative; margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(10,10,10,.8);
}
.status-strip > div { padding: 18px 22px; border-right: 1px solid var(--line); min-width: 0; }
.status-strip > div:last-child { border-right: 0; }
.status-strip dt { font: 500 .68rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.status-strip dd { margin: 0; font-size: .93rem; color: var(--text); }
.live { display: inline-flex; align-items: center; gap: 8px; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--oxblood-bright); box-shadow: 0 0 0 4px rgba(192,72,90,.18); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(192,72,90,0); } }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.project { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.project-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.project .icon { width: 44px; height: 44px; color: var(--gold); }
.project .tag { font: 500 .7rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 3px 8px; border-radius: 3px; white-space: nowrap; }
.project .tag.hot { color: var(--oxblood-bright); border-color: rgba(192,72,90,.45); }
.project h3 { font-size: 1.45rem; margin: 0; }
.project p { color: var(--muted); margin: 0; }
.project ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; font-size: .92rem; }
.project li { color: var(--text); }
.project li::before { content: "› "; color: var(--gold); font-family: var(--mono); }
.project .links { margin-top: auto; padding-top: 10px; display: flex; gap: 18px; flex-wrap: wrap; }
.project .links a { font: 500 .82rem var(--mono); text-decoration: none; letter-spacing: .03em; }
.project .links a:hover { text-decoration: underline; }
.project.featured { background: linear-gradient(135deg, #1a1508 0%, var(--panel-2) 60%); }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service-cta { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; border-color: rgba(198,161,91,.45); background: var(--gold-soft); }
.service-cta p { flex: 1; }
@media (max-width: 1080px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .services { grid-template-columns: 1fr; } }
.service { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--panel-2); }
.service svg { width: 26px; height: 26px; color: var(--gold); margin-bottom: 14px; }
.service h3 { font-size: 1.02rem; margin-bottom: 6px; }
.service p { color: var(--muted); font-size: .93rem; margin: 0; }

/* Photo band */
.photo-band { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1px; background: var(--line); }
.photo-band figure { margin: 0; position: relative; overflow: hidden; }
.photo-band img { width: 100%; height: 320px; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(.85); }
.photo-band figcaption { position: absolute; left: 14px; bottom: 12px; font: 500 .7rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.7); padding: 4px 8px; border-radius: 3px; }

/* Mission */
.mission-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: start; }
.mission-statement { font-size: clamp(1.45rem, 2.5vw, 2rem); line-height: 1.3; color: #fff; font-weight: 600; letter-spacing: -.02em; margin-bottom: 24px; }
.mission-statement em { font-style: normal; color: var(--gold); }
.quotes { display: grid; gap: 14px; margin-top: 72px; }
.quote { border-left: 2px solid var(--gold); padding: 6px 0 6px 20px; }
.quote blockquote { margin: 0 0 6px; font-size: 1.08rem; color: var(--text); font-style: italic; }
.quote cite { font: normal 500 .72rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.diff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 72px; }
.diff { border-top: 1px solid var(--line); padding-top: 22px; }
.diff .k { font: 500 .72rem var(--mono); color: var(--oxblood-bright); letter-spacing: .12em; text-transform: uppercase; display: block; margin-bottom: 10px; }
.diff p { color: var(--muted); font-size: .96rem; }

/* Alliances */
.alliances { background: var(--black); }
.alliance-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: end; margin-bottom: 56px; }
.manifesto { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.08; color: #fff; margin: 0 0 18px; }
.manifesto em { color: var(--gold); font-style: normal; }
.featured-ally {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 28px 32px; margin-bottom: 40px;
  border: 1px solid rgba(198,161,91,.45); border-radius: var(--radius); background: linear-gradient(90deg, rgba(198,161,91,.1), transparent 70%);
}
.featured-ally .shield { width: 56px; height: 56px; color: var(--gold); }
.featured-ally h3 { font-size: 1.35rem; margin-bottom: 4px; }
.featured-ally p { color: var(--muted); margin: 0; max-width: 64ch; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-2); padding: 30px; min-width: 0; }
.panel h3 { font-size: 1.05rem; margin-bottom: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.panel h3 .mono { font-size: .7rem; color: var(--muted); font-weight: 500; letter-spacing: .1em; }
.panel ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.panel li strong { display: block; color: #fff; font-weight: 600; }
.panel li span { color: var(--muted); font-size: .93rem; }
.values { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.values span { font-size: .86rem; padding: 7px 12px; border: 1px solid var(--line); border-radius: 3px; color: var(--text); }
.values span::before { content: "✓ "; color: var(--gold); }
.prricm-note { margin-top: 40px; display: flex; gap: 32px; align-items: center; padding: 28px 32px; border: 1px solid rgba(198,161,91,.45); border-radius: var(--radius); background: linear-gradient(135deg, #1a1508 0%, var(--panel-2) 70%); }
.prricm-note img { height: 96px; width: auto; background: #fff; padding: 10px 16px; border-radius: 4px; flex: none; }
.prricm-note p { margin: 0; color: var(--text); font-size: 1.08rem; line-height: 1.55; }

/* Organisation */
.org-map { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 16px; }
.org-node { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--panel-2); min-width: 0; }
.org-node .role { font: 500 .68rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 8px; }
.org-node h3 { font-size: 1.02rem; margin-bottom: 6px; }
.org-node p { font-size: .9rem; color: var(--muted); margin: 0; }
.org-core { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border-color: rgba(198,161,91,.45); background: radial-gradient(circle at 50% 30%, #1d1709, var(--panel-2) 70%); padding: 34px; }
.org-core img { width: 104px; margin-bottom: 16px; }
.org-core h3 { font-size: 1.4rem; }
.focus-list { list-style: none; padding: 0; margin: 16px 0 0; text-align: left; display: grid; gap: 8px; font-size: .88rem; color: var(--text); }
.focus-list li::before { content: "› "; color: var(--gold); font-family: var(--mono); }
.logo-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 48px; }
.logo-row img { height: 58px; width: auto; background: #fff; padding: 8px 12px; border-radius: 4px; filter: grayscale(1); opacity: .85; transition: filter .2s, opacity .2s; }
.logo-row img:hover { filter: none; opacity: 1; }
.logo-note { text-align: center; color: var(--muted); font: .76rem var(--mono); margin-top: 14px; }

/* Foundation + funding */
.foundation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.foundation-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.foundation-photos img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); filter: grayscale(1) contrast(1.05); }
.foundation-photos .tall { grid-row: span 2; aspect-ratio: 3 / 4.6; }
.foundation-photos .sq { aspect-ratio: 1; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.pillar { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: var(--panel-2); }
.pillar h4 { font-size: .98rem; margin-bottom: 4px; }
.pillar p { margin: 0; color: var(--muted); font-size: .88rem; }
.funding-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 64px; }
.fund { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; background: var(--panel-2); }
.fund .k { font: 500 .7rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.fund h3 { font-size: 1.08rem; }
.fund p { color: var(--muted); font-size: .93rem; flex: 1; }
.fund a { font: 500 .82rem var(--mono); text-decoration: none; }

/* Contact / alliance form */
.contact { background: var(--black); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; }
.contact-info { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 16px; }
.contact-info li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.contact-info .k { font: 500 .7rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.intro-box { margin-top: 30px; padding: 22px; border: 1px solid rgba(198,161,91,.45); border-radius: var(--radius); background: var(--gold-soft); }
.intro-box h3 { font-size: 1.05rem; margin-bottom: 6px; }
.intro-box p { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
form.alliance { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-2); padding: 34px; }
.form-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.form-head h3 { margin: 0; font-size: 1.15rem; }
.form-head .mono { font-size: .7rem; color: var(--muted); letter-spacing: .1em; }
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label, .field-label { font: 500 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
input, select, textarea {
  font: inherit; font-size: .97rem; color: var(--text); background: var(--black); border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; width: 100%;
}
input::placeholder, textarea::placeholder { color: #5f5b55; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
textarea { min-height: 120px; resize: vertical; }
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.area { position: relative; }
.area input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.area .box { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; transition: border-color .15s, background .15s; height: 100%; }
.area .box svg { width: 22px; height: 22px; color: var(--gold); }
.area .box strong { color: #fff; font-family: var(--sans); font-size: .95rem; text-transform: none; letter-spacing: 0; }
.area .box small { color: var(--muted); font-family: var(--sans); font-size: .8rem; text-transform: none; letter-spacing: 0; line-height: 1.4; }
.area input:checked + .box { border-color: var(--gold); background: var(--gold-soft); }
.area input:focus-visible + .box { outline: 2px solid var(--gold); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font: .93rem var(--sans); text-transform: none; letter-spacing: 0; color: var(--text); cursor: pointer; margin-bottom: 18px; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--gold); flex: none; }
.intro-fields[hidden] { display: none; }
.form-success { display: none; margin-top: 16px; padding: 14px 16px; border-left: 2px solid var(--gold); background: var(--gold-soft); font-size: .93rem; }
.form-success.show { display: block; }
.form-note { font: .74rem var(--mono); color: var(--muted); margin-top: 12px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--black); color: var(--muted); padding-block: 60px 28px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { font: 500 .7rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-brand img { width: 230px; margin-bottom: 16px; }
.footer-motto { font-style: italic; color: var(--text); }
.footer-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font: .76rem var(--mono); }

/* Reveal: content is visible at rest, only a small lift animates */
.reveal { transition: transform .7s ease; }
.reveal:not(.in) { transform: translateY(14px); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal:not(.in) { transform: none; transition: none; }
  .live::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .nav.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 16px; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--black); border-bottom: 1px solid var(--line);
    padding: 18px max(24px, env(safe-area-inset-right, 0px)) 24px max(24px, env(safe-area-inset-left, 0px));
  }
  .header-actions .btn { display: none; }
  .hero .hero-grid, .mission-grid, .alliance-hero, .cols, .foundation-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-figure { max-width: 440px; }
  .status-strip { grid-template-columns: 1fr 1fr; }
  .status-strip > div:nth-child(2) { border-right: 0; }
  .status-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .org-map { grid-template-columns: 1fr 1fr; }
  .org-core { grid-column: 1 / -1; grid-row: auto; }
  .diff-grid, .funding-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .section { padding-block: 72px; }
  .hero { padding-block: 40px 0; }
  .projects { grid-template-columns: 1fr; }
  .project { padding: 26px 22px; }
  .photo-band { grid-template-columns: 1fr 1fr; }
  .photo-band figure:first-child { grid-column: 1 / -1; }
  .photo-band img { height: 210px; }
  .featured-ally { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
  .org-map, .pillars, .field-row, .footer-grid, .areas { grid-template-columns: 1fr; }
  .prricm-note { flex-direction: column; align-items: flex-start; }
  form.alliance, .panel { padding: 22px; }
  .contact-info li { grid-template-columns: 1fr; gap: 2px; }
  .brand-name { font-size: .95rem; }
}

/* Nov 2026 meeting changes */
.hero-title-row { display: block; margin-top: 6px; font: 600 .78rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.panel li.sub-ally { margin-left: 18px; padding-left: 14px; border-left: 2px solid var(--gold-soft); }
.panel li.sub-ally strong::before { content: "↳ "; color: var(--gold); font-family: var(--mono); }
.intro-questions .field select, .intro-questions .field textarea { width: 100%; }

/* Animated org links */
.org-map { position: relative; gap: 32px 96px; }
.org-links .flow, .org-links .base { vector-effect: non-scaling-stroke; }
.org-links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.org-map > .org-node { position: relative; z-index: 1; }
.org-links .base { fill: none; stroke: rgba(198,161,91,.22); stroke-width: 1.5; }
.org-links .flow { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 16; animation: orgFlow 1.6s linear infinite; opacity: .85; }
.org-exchange .chip circle { stroke-width: 1.5; }
.org-links .pulse { fill: var(--gold); filter: drop-shadow(0 0 6px rgba(198,161,91,.9)); }
.org-exchange .chip-back circle { fill: #0b0b0b; stroke: #f2ede3; filter: drop-shadow(0 0 6px rgba(242,237,227,.35)); }
.org-exchange .chip-back g { stroke: #f2ede3; }
.org-node.linked { border-color: rgba(198,161,91,.35); transition: border-color .4s; }
@keyframes orgFlow { to { stroke-dashoffset: -18; } }
@media (max-width: 1080px) { .org-map { gap: 40px 28px; } }
@media (max-width: 680px) { .org-map { gap: 36px; } }
@media (prefers-reduced-motion: reduce) { .org-links .flow { animation: none; } .org-links .pulse, .org-exchange { display: none; } }
@media (max-width: 680px) { .projects { gap: 18px; } .quotes { margin-top: 0; } .prricm-note { padding: 22px; gap: 18px; } .prricm-note img { height: 72px; } .prricm-note p { font-size: 1rem; } }

/* Exchange: partner badges + legend */
.gives-badge { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(242,237,227,.35); color: #f2ede3; background: #0b0b0b; flex: none; }
.org-node > .gives-badge { position: absolute; top: 16px; right: 16px; }
.org-node[data-gives] { padding-right: 60px; }
.exchange-legend { margin-top: 40px; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; background: var(--panel-2); }
.exchange-intro { margin: 0 0 16px; color: var(--muted); font-size: .95rem; }
.exchange-intro .k { display: block; font: 500 .7rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.exchange-legend ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 20px; }
.exchange-legend li { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--text); }
.exchange-legend li[data-icon="coordination"] .gives-badge { background: var(--gold); color: #0b0b0b; border-color: var(--gold); }
@media (max-width: 680px) { .exchange-legend { padding: 20px; } .exchange-legend ul { grid-template-columns: 1fr; } }

/* Header titles glow for the section in view */
.nav a { position: relative; transition: color .25s, text-shadow .25s; }
.nav a::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: -8px; height: 2px; border-radius: 2px; background: var(--gold); box-shadow: 0 0 10px 1px rgba(198,161,91,.8); opacity: 0; transform: scaleX(.3); transition: opacity .25s, transform .25s; }
.nav a.is-active { color: #fff; text-shadow: 0 0 10px rgba(226,194,127,.95), 0 0 22px rgba(198,161,91,.6); }
.nav a.is-active::after { opacity: 1; transform: scaleX(1); }
@media (max-width: 1080px) { .nav a::after { display: none; } .nav.open a.is-active { color: var(--gold); } }

/* Project pages: framed tabs hanging below the header */
.project-tabs { position: absolute; left: 0; right: 0; top: 100%; pointer-events: none; }
.tabs-frame { pointer-events: auto; margin-left: auto; width: max-content; max-width: 100%; display: flex; align-items: stretch; background: rgba(0,0,0,.92); backdrop-filter: blur(12px); border: 1px solid rgba(198,161,91,.55); border-top: 0; border-radius: 0 0 10px 10px; box-shadow: 0 10px 28px rgba(0,0,0,.55); overflow: hidden; }
.tabs-frame .tabs-k { display: flex; align-items: center; padding: 0 14px; font: 500 .62rem var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); border-right: 1px solid var(--line); }
.tabs-frame a { display: flex; align-items: center; padding: 9px 16px; font: 500 .74rem var(--mono); letter-spacing: .04em; color: var(--text); text-decoration: none; white-space: nowrap; transition: background .2s, color .2s; }
.tabs-frame a + a { border-left: 1px solid var(--line); }
.tabs-frame a:hover, .tabs-frame a:focus-visible { background: var(--gold); color: #000; }
.tabs-frame .short { display: none; }
@media (max-width: 680px) {
  .tabs-frame { margin-right: auto; }
  .tabs-frame .long { display: none; } .tabs-frame .short { display: inline; }
  .tabs-frame a { padding: 8px 12px; font-size: .7rem; } .tabs-frame .tabs-k { padding: 0 10px; }
}
.sub-link { margin-top: 24px; }
.sub-link-inline { display: inline-block; margin-top: 10px; font: 500 .8rem var(--mono); letter-spacing: .03em; text-decoration: none; }
.sub-link-inline:hover { text-decoration: underline; }

.org-exchange { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 3; }

/* Homepage booking widget (GoHighLevel) */
.contact .booking-shell { min-width: 0; overflow: hidden; background: #fff; border-radius: 6px; box-shadow: 0 18px 55px rgba(0,0,0,.28); scroll-margin-top: 96px; }
.contact .booking-shell iframe { display: block; width: 100%; min-height: 680px; }
@media (max-width: 700px) { .contact .booking-shell iframe { min-height: 760px; } }
