/* Brothers in Need: cinematic one-page site. Colours come from the logo: black, electric blue, cyan. */

@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --ink: #05070a;
  --navy: #081728;
  --blue: #0879ff;
  --cyan: #20c7ff;
  --white: #f7fbff;
  --text: #e6eef6;
  --muted: #c0cfdd;
  --gold: #ffc56e;
  --rose: #ff8a6b;
  --danger: #ff6b5e;
  --glass: rgba(12, 28, 50, .55);
  --glass-line: rgba(130, 190, 255, .16);
  --radius: 20px;
  --gutter: clamp(16px, 5vw, 64px);
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; scroll-padding-bottom: 80px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.65 var(--body);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
.hill, .trees, .river, .path-bank { max-width: none; }
.trees .ridge { stroke: none; }
.ridge { stroke: rgba(150, 205, 255, .22); stroke-width: 1.4; vector-effect: non-scaling-stroke; paint-order: stroke; }
.hill-front path:first-child { stroke: rgba(150, 205, 255, .3); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
a { color: var(--cyan); }
h1, h2, h3 { font-family: var(--display); color: var(--white); margin: 0; letter-spacing: -.02em; }
h2 { text-shadow: 0 2px 24px rgba(4, 14, 30, .35); }
h2 { font-size: clamp(2.2rem, 5.2vw, 4.4rem); line-height: 1; font-weight: 850; font-stretch: 88%; text-transform: uppercase; }
h3 { font-size: 1.35rem; font-weight: 800; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.kicker { display: inline-block; font: 800 .78rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: #8fe0ff; margin-bottom: 18px; padding: 8px 14px; border-radius: 999px; background: rgba(5, 18, 36, .45); border: 1px solid rgba(143, 224, 255, .25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); text-shadow: none !important; }
.grad { background: linear-gradient(100deg, var(--cyan), var(--blue) 60%, #6aa8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.warm { color: #fff; text-shadow: 0 0 28px rgba(255, 196, 110, .95), 0 0 70px rgba(255, 170, 90, .6), 0 2px 18px rgba(70, 30, 0, .3); }
section p:not(.glass p) { text-shadow: 0 1px 14px rgba(4, 14, 30, .35); }
.sub { color: var(--muted); font-size: 1.1rem; max-width: 560px; }

/* ---------- Sky backdrop ---------- */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.sky-layer { position: absolute; inset: 0; }
.sky { --sky-top: #06152b; --sky-mid: #0a2445; --sky-hor: #123a66; --sky-glow: 0; }
.sky-film { background:
  radial-gradient(ellipse 90% 60% at 70% -10%, rgba(120, 180, 255, .16), transparent 60%),
  linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 58%, var(--sky-hor) 100%); }
.sky-sunglow { background: radial-gradient(ellipse 80% 55% at 50% 105%, rgba(255, 196, 120, .75), rgba(255, 150, 110, .25) 45%, transparent 70%); opacity: var(--sky-glow); }
.stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.grain { position: absolute; inset: -50%; opacity: .06; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-4%, 3%); } 66% { transform: translate(3%, -5%); } 100% { transform: translate(-2%, 2%); } }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--blue), var(--cyan), var(--gold)); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px var(--gutter);
  transition: background .4s, backdrop-filter .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(5, 9, 15, .72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); padding-block: 8px; border-color: var(--glass-line); }
.nav-brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; font: 850 1rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.nav-brand img { width: 56px; height: auto; filter: drop-shadow(0 0 12px rgba(8, 121, 255, .5)); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(32, 199, 255, .1); }
.nav-links .nav-help { color: var(--ink); background: linear-gradient(135deg, var(--cyan), var(--blue)); margin-left: 8px; }
.nav-links .nav-help:hover { color: var(--ink); background: linear-gradient(135deg, #5fd8ff, var(--blue)); }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer;
  font: 750 1rem/1 var(--body); text-decoration: none; color: #00101f;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 10px 30px rgba(8, 121, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .35);
  white-space: nowrap;
  transition: transform .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(8, 121, 255, .5), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-ghost { background: rgba(255, 255, 255, .04); color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1.5px #fff; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.glass {
  background: linear-gradient(160deg, rgba(24, 50, 84, .66), rgba(10, 22, 40, .58));
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .06);
}

/* ---------- Scenes with parallax layers ---------- */
[data-scene] { position: relative; overflow: hidden; isolation: isolate; }
.hill { position: absolute; left: -2%; width: 104%; bottom: -2px; height: 46%; pointer-events: none; will-change: transform; }
.fog { position: absolute; left: -30%; width: 160%; height: 40%; pointer-events: none; filter: blur(30px); opacity: .55; }
.fog-1 { bottom: 14%; background: radial-gradient(ellipse 30% 50% at 30% 60%, rgba(120, 170, 230, .22), transparent 70%), radial-gradient(ellipse 25% 40% at 75% 50%, rgba(120, 170, 230, .18), transparent 70%); animation: drift 40s linear infinite alternate; }
.fog-2 { bottom: -4%; z-index: 3; background: radial-gradient(ellipse 35% 45% at 60% 70%, rgba(140, 190, 240, .16), transparent 70%), radial-gradient(ellipse 25% 40% at 15% 60%, rgba(140, 190, 240, .14), transparent 70%); animation: drift 55s linear infinite alternate-reverse; }
@keyframes drift { from { transform: translateX(-6%); } to { transform: translateX(6%); } }

/* Hero */
.hero { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; padding: 120px var(--gutter) 22vh; }
.hero .hill { height: 52%; -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 96%); mask-image: linear-gradient(180deg, #000 45%, transparent 96%); }
.hero-copy { position: relative; z-index: 4; max-width: 720px; }
.hero .eyebrow { font: 800 .85rem/1 var(--body); letter-spacing: .28em; text-transform: uppercase; color: var(--cyan); display: inline-flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.hero .eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.hero-title { font-size: clamp(3rem, 7.4vw, 7rem); line-height: .92; font-weight: 900; font-stretch: 85%; text-transform: uppercase; margin-bottom: 28px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .line > span { display: inline-block; }
.js .hero-title .line > span { transform: translateY(105%); transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.hero-title .line:nth-child(2) > span { transition-delay: .15s; }
.js.loaded .hero-title .line > span { transform: none; }
.hero-title em { font-style: normal; background: linear-gradient(100deg, var(--cyan), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 30px rgba(32, 199, 255, .35)); }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--text); max-width: 600px; }
.hero-logo { position: relative; z-index: 2; justify-self: center; width: min(100%, 560px); }
.hero-logo::before { content: ""; position: absolute; inset: 10%; background: radial-gradient(circle, rgba(8, 121, 255, .55), transparent 65%); filter: blur(50px); animation: pulse 6s ease-in-out infinite; }
.hero-logo img { position: relative; width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .8)); }
.js .hero-logo img { opacity: .01; transform: scale(.92) translateY(20px); transition: opacity 1.2s ease .2s, transform 1.6s cubic-bezier(.2, .8, .2, 1) .2s; }
.js.loaded .hero-logo img { opacity: 1; transform: none; }
@keyframes pulse { 0%, 100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
.moon { position: absolute; top: 12%; right: 12%; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle at 38% 38%, #f4f8ff, #c9dcf2 55%, #8fb0d6); box-shadow: 0 0 70px 24px rgba(170, 210, 255, .35), 0 0 260px 90px rgba(90, 150, 255, .2); opacity: .95; z-index: 0; }
.horizon-glow { position: absolute; left: 0; right: 0; bottom: 18%; height: 45%; background: radial-gradient(ellipse 60% 45% at 50% 72%, rgba(32, 160, 255, .45), transparent 70%); z-index: 0; }
.hill-front { z-index: 3; height: 34%; -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent); mask-image: linear-gradient(180deg, #000 78%, transparent); }
.brothers { filter: drop-shadow(0 0 6px rgba(150, 205, 255, .35)); }
.brothers { transform-box: fill-box; }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; z-index: 5; width: 28px; height: 46px; margin-left: -14px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 20px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 9px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* ---------- Manifesto (pinned) ---------- */
[data-pin] { position: relative; }
.manifesto { padding: 22vh 0 14vh; }
.manifesto-text { font: 800 clamp(1.9rem, 4.6vw, 4.2rem)/1.12 var(--display); font-stretch: 92%; letter-spacing: -.02em; color: var(--white); margin: 0; }
.manifesto-text .w { opacity: .14; transition: opacity .3s, color .3s, text-shadow .3s; }
.manifesto-text .w.on { opacity: 1; }
.manifesto-text .w.hi { color: var(--cyan); text-shadow: 0 0 30px rgba(32, 199, 255, .45); }

/* ---------- Pillars ---------- */
.pillars { padding: 0 0 12vh; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar { padding: 40px 34px 36px; position: relative; overflow: hidden; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2, .8, .2, 1), border-color .3s; }
.pillar::after { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(32, 199, 255, .14), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.pillar:hover { border-color: rgba(32, 199, 255, .4); }
.pillar:hover::after { opacity: 1; }
.pillar svg, .step svg { width: 54px; height: 54px; fill: none; stroke: var(--cyan); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 26px; filter: drop-shadow(0 0 12px rgba(32, 199, 255, .5)); }
.pillar h3 { font-size: 2rem; text-transform: uppercase; font-stretch: 90%; margin-bottom: 10px; }
.pillar p { color: var(--muted); margin: 0; }

/* ---------- Wellbeing: sideways scroll ---------- */
.wellbeing { padding: 8vh 0 14vh; }
.wellbeing-head { margin-bottom: 44px; }
.wellbeing-head h2 { margin-bottom: 18px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.step { padding: 30px 26px; position: relative; transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .3s, opacity 1s ease; }
.step:hover { transform: translateY(-6px); border-color: rgba(32, 199, 255, .4); }
.steps-more { margin-top: 30px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.step .num { position: absolute; top: 18px; right: 22px; font: 900 3.4rem/1 var(--display); font-stretch: 80%; color: transparent; -webkit-text-stroke: 1.5px rgba(32, 199, 255, .35); }
.step h3 { font-size: 1.35rem; margin-bottom: 10px; }
.step p { color: var(--muted); margin: 0; }

/* ---------- Walk & Talk scene ---------- */
.walk { min-height: 110vh; display: flex; align-items: flex-start; padding: 14vh 0 50vh; }
.walk-scene { position: absolute; inset: 0; z-index: -1; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 82%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 82%, transparent 100%); }
.walk-scene::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, rgba(18, 64, 111, .35) 55%, rgba(255, 150, 90, .12) 72%, transparent 80%); }
.walk .hill { height: 55%; bottom: 22%; }
.trees { position: absolute; left: -2%; width: 104%; bottom: 22%; height: 40%; will-change: transform; }
.lamps { position: absolute; left: 0; right: 0; bottom: 22%; height: 30%; background:
  radial-gradient(circle at 12% 18%, rgba(255, 200, 120, .55) 0 3px, rgba(255, 190, 110, .18) 4px, transparent 60px),
  radial-gradient(circle at 38% 22%, rgba(255, 200, 120, .55) 0 3px, rgba(255, 190, 110, .18) 4px, transparent 60px),
  radial-gradient(circle at 64% 18%, rgba(255, 200, 120, .55) 0 3px, rgba(255, 190, 110, .18) 4px, transparent 60px),
  radial-gradient(circle at 88% 22%, rgba(255, 200, 120, .55) 0 3px, rgba(255, 190, 110, .18) 4px, transparent 60px); }
.river { position: absolute; left: 0; width: 100%; bottom: 0; height: 18%; }
.shimmer { animation: shimmer 6s ease-in-out infinite alternate; }
@keyframes shimmer { from { transform: translateX(-20px); opacity: .15; } to { transform: translateX(20px); opacity: .45; } }
.path-bank { position: absolute; left: 0; width: 100%; bottom: 16%; height: 6%; }
.river-mist { position: absolute; left: -10%; right: -10%; bottom: 10%; height: 16%; background: radial-gradient(ellipse 40% 50% at 30% 50%, rgba(140, 190, 240, .14), transparent 70%), radial-gradient(ellipse 35% 45% at 75% 60%, rgba(140, 190, 240, .12), transparent 70%); filter: blur(18px); animation: drift 30s linear infinite alternate; }
.reflections { position: absolute; left: 0; right: 0; bottom: 0; height: 15%; background:
  radial-gradient(ellipse 1.2% 60% at 12% 30%, rgba(255, 196, 120, .35), transparent),
  radial-gradient(ellipse 1.2% 60% at 38% 34%, rgba(255, 196, 120, .3), transparent),
  radial-gradient(ellipse 1.2% 60% at 64% 30%, rgba(255, 196, 120, .35), transparent),
  radial-gradient(ellipse 1.2% 60% at 88% 34%, rgba(255, 196, 120, .3), transparent); filter: blur(3px); animation: shimmer 5s ease-in-out infinite alternate; }
.walkers { position: absolute; bottom: calc(17% + 3%); left: 0; width: clamp(280px, 32vw, 460px); will-change: transform; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)) brightness(.92) saturate(.9); }
.walkers svg { overflow: visible; }
.walkers .bob { animation: bob .45s ease-in-out infinite; }
.walkers .leg, .walkers .arm { transform-box: fill-box; transform-origin: 50% 0; animation: swing .9s ease-in-out infinite alternate; }
.walkers .leg-b, .walkers .arm-f { animation-direction: alternate-reverse; }
.walkers .arm { animation-name: swing-arm; }
.walkers .dog { animation: bob .3s ease-in-out infinite; }
.walkers .paw { transform-box: fill-box; transform-origin: 50% 0; animation: swing .3s ease-in-out infinite alternate; }
.walkers .p2, .walkers .p3 { animation-direction: alternate-reverse; }
.walkers .tail { transform-box: fill-box; transform-origin: 100% 100%; animation: wag .35s ease-in-out infinite alternate; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes swing { from { transform: rotate(24deg); } to { transform: rotate(-24deg); } }
@keyframes swing-arm { from { transform: rotate(28deg); } to { transform: rotate(-28deg); } }
@keyframes wag { from { transform: rotate(-14deg); } to { transform: rotate(18deg); } }
.walk-copy { position: relative; z-index: 2; }
.walk-copy > p { max-width: 560px; font-size: 1.12rem; }
.walk-copy h2 { margin-bottom: 22px; font-size: clamp(2.6rem, 6.5vw, 5.6rem); }
.walk-card { margin-top: 34px; padding: 30px; max-width: 620px; display: grid; grid-template-columns: auto 1fr; gap: 20px 32px; align-items: center; }
.when { display: flex; flex-direction: column; padding-right: 32px; border-right: 1px solid var(--glass-line); }
.when .big { font: 900 3.4rem/1 var(--display); font-stretch: 85%; color: var(--white); }
.when span:last-child { color: var(--cyan); font-weight: 700; }
.where { display: flex; flex-direction: column; }
.where strong { color: var(--white); }
.walk-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; }
.walk-card .note { grid-column: 1 / -1; margin: 0; color: var(--muted); }

/* ---------- Events carousel ---------- */
.events { padding: 16vh 0 12vh; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.tabs { display: inline-flex; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--glass-line); }
.tabs button { border: 0; background: none; color: var(--muted); font: 700 .95rem/1 var(--body); padding: 11px 18px; border-radius: 999px; cursor: pointer; transition: color .2s, background .2s; }
.tabs button[aria-selected="true"] { color: var(--ink); background: linear-gradient(135deg, var(--cyan), var(--blue)); }
.tabs button[data-tab="now"]::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3cff8f; margin-right: 8px; box-shadow: 0 0 10px #3cff8f; animation: pulse 1.6s infinite; }
.carousel { position: relative; }
.car-track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 2px 24px; scrollbar-width: none; }
.car-track::-webkit-scrollbar { display: none; }
.car-btn { position: absolute; top: 40%; z-index: 2; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--glass-line); background: rgba(8, 18, 32, .85); color: var(--white); font-size: 1.8rem; line-height: 1; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: opacity .2s, transform .2s; }
.car-btn:hover { transform: scale(1.08); }
.car-btn[disabled] { opacity: 0; pointer-events: none; }
.car-btn.prev { left: -22px; } .car-btn.next { right: -22px; }
.event { scroll-snap-align: start; flex: none; width: min(380px, 84vw); overflow: hidden; display: flex; flex-direction: column; animation: rise .6s cubic-bezier(.2, .8, .2, 1) both; }
.event-media { position: relative; aspect-ratio: 16 / 10; background: radial-gradient(circle at 70% 30%, #1a5aa0, #0a1f38 60%, #050c17); overflow: hidden; }
.event-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.event:hover .event-media img { transform: scale(1.06); }
.event-media .ph { position: absolute; inset: 0; display: grid; place-items: center; }
.event-media .ph svg { width: 70px; fill: var(--cyan); opacity: .7; filter: drop-shadow(0 0 20px var(--cyan)); }
.date-badge { position: absolute; left: 16px; top: 16px; background: rgba(5, 9, 15, .82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--glass-line); border-radius: 14px; padding: 8px 12px; text-align: center; line-height: 1; }
.date-badge b { display: block; font: 900 1.7rem/1 var(--display); color: var(--white); }
.date-badge span { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.status { position: absolute; right: 14px; top: 16px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: #3cff8f; color: #002611; }
.status.past { background: rgba(255, 255, 255, .14); color: var(--text); }
.event-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.event-body h3 { font-size: 1.4rem; }
.event-meta { color: var(--cyan); font-weight: 600; font-size: .92rem; }
.event-body p { color: var(--muted); margin: 0; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.event-body .more { margin-top: auto; padding-top: 10px; font-weight: 700; text-decoration: none; }
.car-empty { color: var(--muted); font-size: 1.1rem; padding: 40px; text-align: center; border: 1px dashed var(--glass-line); border-radius: var(--radius); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Community ---------- */
.community { padding: 10vh 0 14vh; }
.fb-panel { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; padding: clamp(30px, 5vw, 64px); position: relative; overflow: hidden; }
.fb-panel::before { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -160px; background: radial-gradient(circle, rgba(8, 121, 255, .35), transparent 65%); filter: blur(30px); }
.fb-copy { position: relative; }
.fb-copy h2 { margin-bottom: 20px; }
.fb-copy p { font-size: 1.1rem; max-width: 520px; }
.btn-fb { background: #1877f2; color: #fff; box-shadow: 0 12px 30px rgba(24, 119, 242, .4); margin-top: 10px; }
.btn-fb:hover { box-shadow: 0 18px 40px rgba(24, 119, 242, .55); }
.fb-visual { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.bubble { align-self: flex-start; max-width: 300px; padding: 14px 18px; border-radius: 20px 20px 20px 6px; background: rgba(255, 255, 255, .08); border: 1px solid var(--glass-line); color: var(--white); font-weight: 500; animation: float 7s ease-in-out infinite; }
.bubble.b2 { align-self: flex-end; border-radius: 20px 20px 6px 20px; background: linear-gradient(135deg, rgba(32, 199, 255, .25), rgba(8, 121, 255, .3)); animation-delay: -2.5s; }
.bubble.b3 { margin-left: 30px; animation-delay: -5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.posts-wrap { margin-top: 12vh; }
.posts-note { color: var(--muted); font-size: .9rem; margin: 0; }
.posts { columns: 3 300px; column-gap: 22px; }
.post { break-inside: avoid; margin-bottom: 22px; padding: 24px; animation: rise .6s cubic-bezier(.2, .8, .2, 1) both; }
.post-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font: 800 1.1rem/1 var(--display); color: var(--ink); background: linear-gradient(135deg, var(--cyan), var(--blue)); flex: none; }
.post-head b { color: var(--white); display: block; line-height: 1.2; }
.post-head small { color: var(--muted); }
.post p { margin: 0; white-space: pre-line; color: var(--text); }
.post img { width: 100%; border-radius: 12px; margin-top: 14px; }
.post a { display: inline-block; margin-top: 14px; font-weight: 700; text-decoration: none; }

/* ---------- Support ---------- */
.support { padding: 12vh 0; }
.support h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); max-width: 900px; margin-bottom: 40px; }
.crisis { display: flex; gap: 18px; align-items: flex-start; padding: 22px 26px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(255, 107, 94, .16), rgba(255, 107, 94, .06)); border: 1px solid rgba(255, 107, 94, .45); color: var(--white); font-size: 1.08rem; margin-bottom: 34px; }
.crisis a { color: #fff; font-weight: 800; }
.crisis-icon { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--danger); color: #fff; font: 900 1.2rem/1 var(--display); }
.orgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.org { display: flex; flex-direction: column; gap: 8px; padding: 28px; text-decoration: none; color: var(--text); position: relative; overflow: hidden; transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .3s; }
.org::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--cyan), var(--blue)); }
.org:hover { transform: translateY(-6px); border-color: rgba(32, 199, 255, .45); }
.org-name { font: 900 1.7rem/1.05 var(--display); font-stretch: 88%; color: var(--white); text-transform: uppercase; }
.org-desc { color: var(--muted); }
.org-contact { font-weight: 800; color: var(--white); font-size: 1.1rem; }
.org-go { margin-top: auto; padding-top: 8px; color: var(--cyan); font-weight: 700; }
.disclaimer { margin-top: 34px; color: var(--text); font-size: .95rem; max-width: 820px; }

/* ---------- Dawn finale ---------- */
.dawn { min-height: 125vh; display: flex; align-items: flex-start; padding: 14vh 0 46vh; text-align: center; }
.dawn .hill { height: 40%; }

.sun { position: absolute; left: 50%; bottom: -4%; width: 320px; height: 320px; margin-left: -160px; border-radius: 50%; background: radial-gradient(circle, #fff6dc 0%, #ffd38a 30%, #ff9f5a 58%, rgba(255, 140, 80, 0) 72%); filter: blur(2px); z-index: -1; }
.sun::after { content: ""; position: absolute; inset: -80%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 190, 120, .35), transparent 60%); }
.dawn-copy { position: relative; z-index: 4; display: flex; flex-direction: column; align-items: center; }
.dawn-copy h2 { font-size: clamp(2.4rem, 6vw, 5.4rem); margin-bottom: 20px; text-shadow: 0 2px 24px rgba(0, 0, 0, .55); }
.dawn-copy > p { font-size: 1.4rem; font-weight: 600; color: var(--white); text-shadow: 0 1px 14px rgba(0, 0, 0, .5); }
.contact { margin-top: 40px; padding: 36px; max-width: 680px; text-align: left; background: linear-gradient(160deg, rgba(8, 20, 36, .78), rgba(5, 12, 22, .7)); }
.contact h3 { font-size: 1.6rem; margin-bottom: 10px; }
.contact .cta { margin-top: 20px; }

/* ---------- Footer ---------- */
.footer { background: linear-gradient(180deg, #040b14, #020407 40%); margin-top: -1px; padding: 54px 0 120px; }
.footer-in { display: flex; gap: 36px; align-items: center; }
.footer img { width: 140px; flex: none; }
.footer-tag { font: 800 1.2rem/1.2 var(--display); color: var(--white); text-transform: uppercase; letter-spacing: .04em; }
.small { font-size: .88rem; color: var(--muted); margin-bottom: .5em; }

/* ---------- Help button & dialog ---------- */
.help-fab { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 55; padding: 13px 20px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(10, 18, 30, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--white); font: 700 .95rem/1 var(--body); cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); display: flex; align-items: center; gap: 10px; }
.help-fab::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 0 rgba(255, 107, 94, .7); animation: ring 2s infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(255, 107, 94, .6); } 100% { box-shadow: 0 0 0 12px rgba(255, 107, 94, 0); } }
.help-dialog { width: min(480px, calc(100% - 32px)); border: 1px solid var(--glass-line); border-radius: 24px; padding: 30px; background: #08121f; color: var(--text); box-shadow: 0 40px 80px rgba(0, 0, 0, .7); }
.help-dialog::backdrop { background: rgba(2, 5, 9, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.help-dialog h2 { font-size: 1.7rem; text-transform: none; margin-bottom: 18px; line-height: 1.15; }
.help-dialog ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.help-dialog li a { display: flex; flex-direction: column; padding: 14px 18px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--glass-line); text-decoration: none; color: var(--muted); }
.help-dialog li a:hover { border-color: var(--cyan); }
.help-dialog li strong { color: var(--white); font-size: 1.2rem; }
.help-dialog .btn { width: 100%; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s ease, transform 1s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero .reveal { transition-delay: calc(.5s + var(--d, 0s)); }

/* ---------- Smaller screens ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 100px; gap: 10px; }
  .hero-copy { margin: 0 auto; order: 2; }
  .hero .eyebrow::before { display: none; }
  .lede { margin-inline: auto; }
  .hero .cta { justify-content: center; }
  .hero-logo { width: min(78%, 420px); order: 1; }
  .moon { width: 70px; height: 70px; top: 14%; right: 8%; }
  .cards-3, .orgs { grid-template-columns: 1fr 1fr; }
  .fb-panel { grid-template-columns: 1fr; }
  .fb-visual { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-toggle { display: grid; place-content: center; gap: 6px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--glass-line); background: rgba(8, 16, 28, .7); cursor: pointer; }
  .nav-toggle span:not(.sr) { width: 20px; height: 2px; background: #fff; transition: transform .3s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .nav-links { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 10px; background: rgba(3, 7, 12, .96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .nav-links.open { opacity: 1; visibility: visible; }
  .nav-links a { font: 800 1.6rem/1 var(--display); text-transform: uppercase; padding: 14px 24px; }
  .nav-links .nav-help { margin: 14px 0 0; }
  .nav-brand span { display: none; }
  .hero { padding-bottom: 34vh; }
  .hero .hill { height: 34%; }
  .hill-front { height: 26%; }
  .moon { width: 46px; height: 46px; top: 96px; right: auto; left: 8%; }
  .hero-title { font-size: clamp(2.6rem, 12vw, 4rem); }
  .hero .cta .btn { width: 100%; }
  .cards-3, .orgs { grid-template-columns: 1fr; }
  .walk { padding-bottom: 36vh; }
  .walk-card { grid-template-columns: 1fr; }
  .when { border-right: 0; padding-right: 0; border-bottom: 1px solid var(--glass-line); padding-bottom: 16px; }
  .car-btn { display: none; }
  .footer-in { flex-direction: column; text-align: center; }
  .help-fab { padding: 12px 16px; font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .hero-title .line > span, .js .hero-logo img { opacity: 1; transform: none; }
  .car-track { scroll-behavior: auto; }
  .manifesto-text .w { opacity: 1; }
}

/* 404 page */
.not-found main { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 18px; padding: 24px var(--gutter); }
.not-found img { width: 240px; height: auto; }
.not-found h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); text-transform: uppercase; font-stretch: 88%; }

/* Phones/tablets: skip live background blur on cards (it re-renders every frame behind animations). */
@media (hover: none) {
  .glass { backdrop-filter: none; -webkit-backdrop-filter: none; background: linear-gradient(160deg, rgba(24, 50, 84, .9), rgba(10, 22, 40, .88)); }
}
