/* Better Tomorrow Foundation — futuristic theme: light by default, dark via the header toggle. No frameworks; animations use only transform/opacity. */
:root {
  --bg: #05070d;
  --bg-2: #0a0e18;
  --panel: rgba(255, 255, 255, .03);
  --panel-hi: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .09);
  --line-hi: rgba(255, 255, 255, .22);
  --text: #eef2f8;
  --muted: #8d99ad;
  --orange: #ff8a2b;
  --cyan: #3fd0ff;
  --blue: #2f6bff;
  --grad: linear-gradient(100deg, var(--orange) 0%, #ff5e7e 45%, var(--cyan) 100%);
  --radius: 6px;
  --max: 1200px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text-2: #d5dce8;
  --accent-text: var(--orange);
  --on-accent: #05070d;
  --header-bg: rgba(5, 7, 13, .72);
  --menu-bg: #05070d;
  --soft: rgba(255, 255, 255, .018);
  --form-bg: rgba(10, 14, 24, .7);
  --field-bg: rgba(255, 255, 255, .03);
  --footer-bg: rgba(0, 0, 0, .3);
  --ok-fg: #7dffb0;
  --err-fg: #ff9c9c;
  --glow-a: rgba(47, 107, 255, .14);
  --glow-b: rgba(255, 138, 43, .08);
  --grid-opacity: .45;
  color-scheme: dark;
}

/* Light theme is the default; dark applies only when data-theme="dark" (header toggle, saved per visitor) */
:root:not([data-theme="dark"]) {
  --bg: #f5f7fb;
  --bg-2: #ffffff;
  --panel: rgba(255, 255, 255, .75);
  --panel-hi: #ffffff;
  --line: rgba(12, 22, 44, .09);
  --line-hi: rgba(12, 22, 44, .2);
  --text: #0b1220;
  --text-2: #273244;
  --muted: #566176;
  --cyan: #0b84b8;
  --grad: linear-gradient(100deg, #e5670b 0%, #e0336b 45%, #0b84b8 100%);
  --accent-text: #b8520a;
  --header-bg: rgba(245, 247, 251, .78);
  --menu-bg: #f5f7fb;
  --soft: rgba(12, 22, 44, .025);
  --form-bg: rgba(255, 255, 255, .85);
  --field-bg: #ffffff;
  --footer-bg: rgba(12, 22, 44, .03);
  --ok-fg: #13703a;
  --err-fg: #b3261e;
  --glow-a: rgba(47, 107, 255, .10);
  --glow-b: rgba(255, 138, 43, .10);
  --grid-opacity: .6;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 85% -10%, var(--glow-a), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, var(--glow-b), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
/* faint technical grid over the whole page */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
  opacity: var(--grid-opacity);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); }
::selection { background: var(--orange); color: #000; }

h1, h2, h3 { font-family: var(--display); line-height: 1.02; margin: 0 0 .5em; letter-spacing: -.035em; font-weight: 700; }
h1 { font-size: clamp(2.6rem, 8vw, 5.6rem); }
h2 { font-size: clamp(1.9rem, 4.6vw, 3.2rem); }
h3 { font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.2; }
p { margin: 0 0 1em; }

.grad { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; color: #000; padding: 8px 12px; z-index: 100; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -.01em; }
.brand img { width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line-hi), 0 0 24px rgba(255, 138, 43, .35); }
.brand small { display: block; font: 500 .66rem/1.4 ui-monospace, "SF Mono", Menlo, monospace; color: var(--muted); letter-spacing: .22em; text-transform: uppercase; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem; padding: 10px 14px; display: block; position: relative; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--grad); }
.btn.nav-cta { display: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  position: relative; width: 44px; height: 44px; border-radius: var(--radius); cursor: pointer;
  border: 1px solid var(--line-hi); background: var(--panel); color: var(--text); display: grid; place-items: center; overflow: hidden;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.theme-toggle:hover { border-color: var(--cyan); box-shadow: 0 0 22px -6px var(--cyan); }
.theme-toggle svg { grid-area: 1 / 1; transition: transform .5s var(--ease), opacity .35s; }
/* dark theme shows the sun (switch to light); light theme shows the moon */
.theme-toggle .moon { opacity: 0; transform: rotate(-90deg) scale(.4); }
:root:not([data-theme="dark"]) .theme-toggle .sun { opacity: 0; transform: rotate(90deg) scale(.4); }
:root:not([data-theme="dark"]) .theme-toggle .moon { opacity: 1; transform: none; }
/* smooth colour cross-fade while switching */
.theme-fade, .theme-fade *, .theme-fade *::before, .theme-fade *::after {
  transition: background-color .45s ease, color .45s ease, border-color .45s ease, fill .45s ease !important;
}
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line-hi); border-radius: var(--radius); background: transparent; cursor: pointer;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after { content: ""; display: block; width: 18px; height: 1.5px; background: var(--text); position: relative; transition: transform .3s var(--ease), opacity .2s; }
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after { position: absolute; top: 6px; }
.nav-open .menu-btn span { background: transparent; }
.nav-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }
.nav-open .nav-links {
  display: block; position: absolute; top: 68px; left: 0; right: 0;
  background: var(--menu-bg); border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
  animation: drop .35s var(--ease);
}
@keyframes drop { from { transform: translateY(-8px); } }
.nav-open .nav-links a:not(.btn) { font-family: var(--display); font-size: 1.5rem; color: var(--text); padding: 12px 0; border-bottom: 1px solid var(--line); }
.nav-open .nav-links .btn { margin-top: 16px; width: 100%; }
.nav-links a.btn { display: flex; color: var(--on-accent); }
@media (min-width: 960px) {
  .menu-btn { display: none; }
  .nav-links, .nav-open .nav-links { display: flex; position: static; border: 0; padding: 0; align-items: center; background: none; animation: none; }
  .nav-links .mobile-only { display: none; }
  .btn.nav-cta { display: inline-flex; }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 26px; border-radius: var(--radius); border: 1px solid transparent;
  font: 600 .95rem/1 var(--display); letter-spacing: .01em; text-decoration: none; cursor: pointer; text-align: center;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, border-color .25s, color .25s;
}
.btn::after { content: "→"; transition: transform .25s var(--ease); }
.btn:hover::after { transform: translateX(4px); }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: var(--on-accent); box-shadow: 0 0 0 1px rgba(255, 138, 43, .5), 0 8px 30px -8px rgba(255, 138, 43, .6); }
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(255, 138, 43, .8), 0 12px 40px -6px rgba(255, 138, 43, .85); }
/* light sweep across primary buttons */
.btn-primary::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg); animation: sweep 4.5s var(--ease) infinite;
}
@keyframes sweep { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.btn-secondary { background: var(--text); color: var(--bg); }
.btn-secondary:hover { box-shadow: 0 10px 34px -10px rgba(63, 208, 255, .7); }
.btn-ghost, .btn-outline { border-color: var(--line-hi); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover, .btn-outline:hover { border-color: var(--cyan); color: var(--text); box-shadow: 0 0 0 1px var(--cyan) inset, 0 0 28px -6px rgba(63, 208, 255, .6); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 3px;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .btn-row .btn { flex: 1 1 100%; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--line); isolation: isolate;
  /* always dark, whatever the page theme */
  --bg: #05070d; --text: #eef2f8; --muted: #8d99ad; --line: rgba(255, 255, 255, .09); --line-hi: rgba(255, 255, 255, .22);
  --cyan: #3fd0ff; --grad: linear-gradient(100deg, #ff8a2b 0%, #ff5e7e 45%, #3fd0ff 100%);
  color: var(--text); background: var(--bg); color-scheme: dark;
  /* photo overlay: dark on the text side, light over the rest of the photo */
  --hero-wash:
    linear-gradient(180deg, rgba(5, 7, 13, .1) 0%, rgba(5, 7, 13, .45) 70%, var(--bg) 100%),
    linear-gradient(100deg, rgba(5, 7, 13, .82) 0%, rgba(5, 7, 13, .5) 45%, rgba(5, 7, 13, .1) 85%);
}
/* on phones the text covers the whole photo, so keep the wash even there */
@media (max-width: 767px) {
  .hero { --hero-wash: linear-gradient(180deg, rgba(5, 7, 13, .55), rgba(5, 7, 13, .7) 75%, var(--bg)); }
}
.hero > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  filter: grayscale(.25) contrast(1.05) brightness(.92);
  animation: kenburns 24s ease-in-out infinite alternate;
}
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
/* colour wash + scan lines + drifting light orbs */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--hero-wash), repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 4px);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; width: 70vmax; height: 70vmax; right: -25vmax; top: -30vmax;
  background: radial-gradient(circle, rgba(255, 138, 43, .30), transparent 55%), radial-gradient(circle at 30% 70%, rgba(63, 208, 255, .22), transparent 50%);
  filter: blur(20px); animation: drift 18s ease-in-out infinite alternate; pointer-events: none;
}
@keyframes drift { to { transform: translate(-12vmax, 10vmax) rotate(40deg); } }
.hero .container { position: relative; padding-top: 88px; padding-bottom: 88px; }
.hero h1 { max-width: 13ch; }
.hero p { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 38ch; color: #c9d2e0; }
@media (min-width: 768px) { .hero .container { padding-top: 150px; padding-bottom: 150px; } }
.hero-small .container { padding-top: 64px; padding-bottom: 64px; }
.hero-small h1 { font-size: clamp(2.3rem, 6.5vw, 4.4rem); max-width: 16ch; }
@media (min-width: 768px) { .hero-small .container { padding-top: 110px; padding-bottom: 110px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font: 500 .74rem/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .24em; text-transform: uppercase; color: var(--cyan);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 12px var(--orange); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.7); } }

/* ---------- Sections ---------- */
.section { padding: 72px 0; position: relative; }
@media (min-width: 768px) { .section { padding: 120px 0; } }
.section-soft { background: linear-gradient(180deg, transparent, var(--soft) 20%, var(--soft) 80%, transparent); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .eyebrow { justify-content: center; }

.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* Panels (cards / options) with a pointer-tracking glow border */
.card, .option, .area-link, .steps li, .form {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  --mx: 50%; --my: 50%;
}
.card::before, .option::before, .area-link::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(63, 208, 255, .75), rgba(255, 138, 43, .35) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s;
}
.card:hover::before, .option:hover::before, .area-link:hover::before { opacity: 1; }

.card { overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .35s var(--ease), background-color .3s; }
.card:hover { transform: translateY(-4px); background: var(--panel-hi); }
.card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; filter: grayscale(1) contrast(1.05) brightness(.8); transition: filter .6s var(--ease), transform .8s var(--ease); }
.card:hover img { filter: none; transform: scale(1.05); }
.card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); }
.card-link { margin-top: auto; font: 500 .8rem/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); }
.card-link::after { content: " →"; }

/* Focus-area link list (Our Work page) */
.area-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: area; }
.area-link {
  display: grid; grid-template-columns: 84px 1fr auto; align-items: center; gap: 18px;
  padding: 14px; text-decoration: none; color: var(--text); overflow: hidden;
  transition: background-color .3s, transform .35s var(--ease);
}
.area-link:hover { background: var(--panel-hi); transform: translateX(6px); }
.area-link img { width: 84px; height: 84px; object-fit: cover; border-radius: 4px; filter: grayscale(1) brightness(.85); transition: filter .5s; }
.area-link:hover img { filter: none; }
.area-link h3 { margin: 0 0 4px; font-size: clamp(1.15rem, 2.6vw, 1.9rem); }
.area-link p { margin: 0; color: var(--muted); font-size: .95rem; }
.area-link .arrow { font-size: 1.6rem; color: var(--muted); padding-right: 8px; transition: transform .35s var(--ease), color .3s; }
.area-link:hover .arrow { transform: translateX(6px); color: var(--accent-text); }
.area-num { font: 500 .74rem/1 ui-monospace, "SF Mono", Menlo, monospace; color: var(--cyan); letter-spacing: .2em; display: block; margin-bottom: 8px; }
.area-num::after { content: " / 05"; color: var(--muted); }
@media (min-width: 768px) {
  .area-link { grid-template-columns: 200px 1fr auto; padding: 20px; gap: 32px; }
  .area-link img { width: 200px; height: 120px; }
}

/* Split layout */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } }
.split > img { border-radius: var(--radius); border: 1px solid var(--line); filter: saturate(.8) contrast(1.05); }

.checklist { list-style: none; padding: 0; margin: 0 0 28px; border-top: 1px solid var(--line); }
.checklist li { padding: 14px 0 14px 34px; position: relative; border-bottom: 1px solid var(--line); color: var(--text-2); }
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  border: 1.5px solid var(--orange); transform: rotate(45deg); box-shadow: 0 0 10px rgba(255, 138, 43, .6);
}

.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); max-width: 900px; }
.gallery img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border: 1px solid var(--line); filter: grayscale(.6); transition: filter .5s; }
.gallery img:hover { filter: none; }

.values { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.values li { border: 1px solid var(--line-hi); padding: 6px 14px; border-radius: var(--radius); font: 500 .85rem/1.4 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .04em; color: var(--text-2); }
.values li a { color: inherit; text-decoration: none; }
.values li:hover { border-color: var(--cyan); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; padding: 28px 24px; overflow: hidden; }
.steps li::before { content: "0" counter(step); display: block; font: 700 3rem/1 var(--display); letter-spacing: -.04em; margin-bottom: 18px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Get involved options */
.option { padding: 28px; display: flex; flex-direction: column; transition: background-color .3s; }
.option:hover { background: var(--panel-hi); }
.option .icon {
  width: 52px; height: 52px; border-radius: var(--radius); display: grid; place-items: center; margin-bottom: 20px;
  color: var(--cyan); border: 1px solid rgba(63, 208, 255, .35); background: rgba(63, 208, 255, .06);
  box-shadow: 0 0 24px -6px rgba(63, 208, 255, .5) inset;
}
.option p { color: var(--muted); }
.option .btn { margin-top: auto; align-self: flex-start; }

.partners { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: center; }
.partners img { height: 84px; width: auto; object-fit: contain; background: #fff; padding: 12px 18px; border-radius: var(--radius); opacity: .85; transition: opacity .3s, transform .3s var(--ease); }
.partners img:hover { opacity: 1; transform: translateY(-3px); }

/* CTA band */
.cta-band { text-align: center; overflow: hidden; border-top: 1px solid var(--line); }
.cta-band::before {
  content: ""; position: absolute; left: 50%; top: 100%; width: 1100px; height: 700px; transform: translate(-50%, -45%); pointer-events: none; z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 138, 43, .35), rgba(63, 208, 255, .12) 60%, transparent);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: translate(-50%, -40%) scale(1.08); opacity: .75; } }
.cta-band { isolation: isolate; }
.cta-band h2 { font-size: clamp(2.2rem, 6vw, 4.2rem); max-width: 16ch; margin-left: auto; margin-right: auto; }
.cta-band p { font-size: 1.15rem; max-width: 40ch; margin: 0 auto 32px; color: var(--muted); }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn-secondary { background: var(--orange); box-shadow: 0 8px 30px -8px rgba(255, 138, 43, .7); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; padding: 28px; background: var(--form-bg); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
@media (min-width: 640px) { .form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } }
.field { display: grid; gap: 8px; }
.field label { font: 500 .74rem/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--text); padding: 12px 14px; border: 1px solid var(--line-hi); border-radius: var(--radius);
  background: var(--field-bg); width: 100%; min-height: 50px; transition: border-color .2s, box-shadow .2s;
}
.field select option { background: var(--bg-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(63, 208, 255, .18); }
.field textarea { min-height: 120px; resize: vertical; }
.field .error { color: var(--err-fg); font-size: .85rem; }
.field [aria-invalid="true"] { border-color: var(--err-fg); }
.form-status { padding: 12px 14px; border-radius: var(--radius); font-weight: 600; display: none; }
.form-status.ok { display: block; background: rgba(46, 204, 113, .12); color: var(--ok-fg); border: 1px solid rgba(46, 204, 113, .4); }
.form-status.err { display: block; background: rgba(255, 90, 90, .1); color: var(--err-fg); border: 1px solid rgba(255, 90, 90, .4); }
.form .btn { justify-self: start; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); padding: 64px 0 28px; font-size: .95rem; background: var(--footer-bg); }
.site-footer a { color: var(--text); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--accent-text); }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h4 { color: var(--text); margin: 0 0 16px; font: 500 .74rem/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .2em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px; font: .78rem/1.4 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .06em; }

/* Sticky mobile action bar */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--header-bg); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.mobile-cta .btn { flex: 1; min-height: 46px; padding: 10px 12px; }
.mobile-cta .btn::after { content: none; }
body { padding-bottom: 72px; }
@media (min-width: 960px) { .mobile-cta { display: none; } body { padding-bottom: 0; } }

/* ---------- Scroll reveal (classes added by main.js) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
/* hero headline words rise in */
.js .hero h1 .w { display: inline-block; opacity: 0; transform: translateY(.5em); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + 100ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
.js .hero .eyebrow, .js .hero p, .js .hero .btn-row { opacity: 0; animation: rise .9s var(--ease) forwards; transform: translateY(14px); }
.js .hero .eyebrow { animation-delay: 0s; }
.js .hero p { animation-delay: .45s; }
.js .hero .btn-row { animation-delay: .6s; }

/* scroll progress line under header */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 60; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .hero h1 .w, .js .hero .eyebrow, .js .hero p, .js .hero .btn-row { opacity: 1; transform: none; }
}
