/* ihavepower.org — investigative / industrial advocacy microsite.
   Direction: editorial alarm. Stormy dark field, alarm-red accent (matched to
   the drone lights and the dial needle), condensed display type for urgency,
   serif body for journalistic credibility. */

:root {
  /* Palette — storm + alarm */
  --storm-900: #0a0c10;
  --storm-800: #0f131a;
  --storm-700: #161b24;
  --storm-600: #1f2630;
  --storm-500: #2c343f;
  --ash: #9aa3af;
  --ash-dim: #6b7480;
  --paper: #eef1f4;
  --paper-dim: #c4cad2;

  --alarm: #e0241a;
  --alarm-bright: #ff3b2f;
  --alarm-glow: rgba(224, 36, 26, 0.45);

  /* Type */
  --font-display: "Anton", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;

  --text-hero: clamp(3rem, 1rem + 7vw, 10rem);
  --text-h2: clamp(2rem, 1rem + 4vw, 4.5rem);
  --text-stat: clamp(3.5rem, 1rem + 12vw, 11rem);
  --text-lead: clamp(1.25rem, 1rem + 1vw, 1.8rem);
  --text-body: clamp(1.05rem, 0.98rem + 0.4vw, 1.25rem);

  /* Rhythm */
  --space-section: clamp(5rem, 3rem + 5vw, 11rem);
  --measure: 38ch;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 800ms;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--storm-900);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient grain + vignette over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(120% 90% at 50% 0%, transparent 55%, rgba(0, 0, 0, 0.55) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

a { color: var(--alarm-bright); }

img { display: block; max-width: 100%; height: auto; }

.wrap {
  width: min(1180px, 92vw);
  margin-inline: auto;
}

.narrow { max-width: 62ch; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  transition: background var(--dur) var(--ease-out-expo),
    backdrop-filter var(--dur) var(--ease-out-expo);
}
.topbar.scrolled {
  background: rgba(10, 12, 16, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--storm-600);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--paper);
  font-size: 1.15rem;
  text-transform: uppercase;
}
.brand .dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--alarm);
  box-shadow: 0 0 0 0 var(--alarm-glow);
  animation: pulse 2.4s var(--ease-out-expo) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--alarm-glow); }
  70% { box-shadow: 0 0 0 0.7rem rgba(224, 36, 26, 0); }
  100% { box-shadow: 0 0 0 0 rgba(224, 36, 26, 0); }
}
.topbar .nav-cta {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--storm-900);
  background: var(--alarm);
  padding: 0.5rem 1rem;
  border-radius: 2px;
  transition: transform 200ms var(--ease-out-expo), background 200ms;
}
.topbar .nav-cta:hover { transform: translateY(-2px); background: var(--alarm-bright); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 clamp(3rem, 6vw, 6rem);
  isolation: isolate;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
  filter: saturate(0.9) contrast(1.05);
  transform: scale(1.06);
  animation: slowzoom 18s ease-out forwards;
}
@keyframes slowzoom { to { transform: scale(1); } }
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 12, 16, 0.55) 0%, rgba(10, 12, 16, 0.2) 35%, rgba(10, 12, 16, 0.85) 80%, var(--storm-900) 100%),
    linear-gradient(90deg, rgba(10, 12, 16, 0.6) 0%, transparent 60%);
}
.hero__inner { position: relative; }
.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: clamp(0.7rem, 0.6rem + 0.4vw, 0.95rem);
  color: var(--alarm-bright);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.eyebrow::before {
  content: "";
  width: clamp(1.5rem, 4vw, 3.5rem);
  height: 2px;
  background: var(--alarm);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-hero);
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0 0 1.4rem;
  max-width: 16ch;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}
.hero h1 .kill { color: var(--alarm); }
.hero__lead {
  font-size: var(--text-lead);
  max-width: 52ch;
  color: var(--paper-dim);
  line-height: 1.5;
  margin: 0;
}
.hero__lead strong { color: var(--paper); font-weight: 600; }

.scroll-cue {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ash);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}
.scroll-cue span { animation: bob 2s var(--ease-out-expo) infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- Sections ---------- */
section { position: relative; z-index: 2; }
.section { padding-block: var(--space-section); }

.section-tag {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.85rem;
  color: var(--alarm-bright);
  margin: 0 0 1.5rem;
}

.lede {
  font-size: var(--text-lead);
  line-height: 1.5;
  max-width: 24ch;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

p { max-width: 60ch; }
.section p + p { margin-top: 1.2rem; }

/* The money / stakes block */
.stakes {
  background:
    radial-gradient(80% 60% at 80% 0%, rgba(224, 36, 26, 0.12), transparent 70%),
    var(--storm-800);
  border-top: 1px solid var(--storm-600);
  border-bottom: 1px solid var(--storm-600);
}
.stakes__grid {
  display: grid;  
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.stat {
  font-family: var(--font-display);
  font-size: var(--text-stat);
  line-height: 0.85;
  color: var(--paper);
  letter-spacing: 0.01em;
  margin: 0;
}
.stat .unit {
  display: block;
  font-size: clamp(1.1rem, 0.8rem + 1.5vw, 2rem);
  letter-spacing: 0.18em;
  color: var(--alarm-bright);
  margin-top: 0.6rem;
}
.stat__note {
  margin: 1.4rem 0 0;
  color: var(--ash);
  font-size: 0.95rem;
  max-width: 30ch;
}
.stakes__body p { color: var(--paper-dim); }
.inline-learn {
  color: var(--alarm-bright);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--alarm);
  padding-bottom: 1px;
  transition: background 200ms;
}
.inline-learn:hover { background: rgba(224, 36, 26, 0.15); }
.rhetoric {
  margin-top: 2rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.3rem, 0.9rem + 2vw, 2.6rem);
  line-height: 1.05;
  color: var(--paper);
  max-width: 16ch;
}

/* The turning point — power */
.power { text-align: center; }
.power__kicker {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--ash);
  font-size: 0.85rem;
  margin: 0 0 1rem;
}
.power h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: var(--text-h2);
  line-height: 0.95;
  margin: 0 auto 1.5rem;
  max-width: 18ch;
}
.power h2 em { font-style: normal; color: var(--alarm); }
.power__sub {
  margin: 0 auto;
  max-width: 46ch;
  color: var(--paper-dim);
  font-size: var(--text-lead);
}

/* Switch / dial showcase + CTA */
.switch {
  /* display: grid; */
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-top: clamp(3rem, 6vw, 5rem);
}
.dial {
  position: relative;
  background: radial-gradient(circle at 50% 45%, rgba(224, 36, 26, 0.14), transparent 65%);
  border-radius: 50%;
  padding: 1.5rem;
}
.dial img { margin-inline: auto; filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.5)); }

.switch__panel h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 1rem + 2vw, 2.4rem);
  margin: 0 0 0.4rem;
  letter-spacing: 0.02em;
}
.switch__panel p.hint { color: var(--ash); margin: 0 0 1.6rem; }

.options { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
  color: var(--paper);
  background: var(--storm-700);
  border: 1px solid var(--storm-500);
  border-left: 3px solid var(--alarm);
  padding: 0.95rem 1.2rem;
  border-radius: 3px;
  transition: transform 220ms var(--ease-out-expo), background 220ms, border-color 220ms;
}
.option:hover {
  transform: translateX(6px);
  background: var(--storm-600);
  border-left-color: var(--alarm-bright);
}
.option .name { font-family: var(--font-display); letter-spacing: 0.03em; font-size: 1.15rem; }
.option .go { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ash); }
.option:hover .go { color: var(--alarm-bright); }

.avoid {
  margin-top: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--ash-dim);
}
.avoid s { color: var(--ash); text-decoration-color: var(--alarm); text-decoration-thickness: 2px; }

/* Mechanism — why it works */
.mechanism { background: var(--storm-800); border-top: 1px solid var(--storm-600); }
.mech-card {
  border: 1px solid var(--storm-600);
  background: linear-gradient(180deg, var(--storm-700), var(--storm-800));
  border-radius: 6px;
  padding: clamp(1.8rem, 4vw, 3rem);
  max-width: 720px;
}
.mech-card h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 1rem + 2.5vw, 3rem);
  margin: 0 0 1.2rem;
}
.mech-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin: 1.8rem 0 0;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mech-flow .node {
  padding: 0.6rem 1rem;
  border: 1px solid var(--storm-500);
  border-radius: 3px;
  background: var(--storm-700);
  font-size: 0.95rem;
}
.mech-flow .node.bad { border-color: var(--alarm); color: var(--alarm-bright); }
.mech-flow .arrow { color: var(--ash-dim); }

/* Final CTA */
.final {
  text-align: center;
  background:
    radial-gradient(70% 80% at 50% 120%, rgba(224, 36, 26, 0.22), transparent 70%),
    var(--storm-900);
}
.final h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: var(--text-h2);
  line-height: 0.95;
  margin: 0 auto 2rem;
  max-width: 16ch;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.btn {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 0.95rem 1.8rem;
  border-radius: 3px;
  font-size: 1.05rem;
  transition: transform 200ms var(--ease-out-expo), box-shadow 200ms, background 200ms;
}
.btn--primary {
  background: var(--alarm);
  color: var(--storm-900);
  box-shadow: 0 0 0 0 var(--alarm-glow);
}
.btn--primary:hover { transform: translateY(-3px); background: var(--alarm-bright); box-shadow: 0 14px 36px var(--alarm-glow); }
.btn--ghost { border: 1px solid var(--storm-500); color: var(--paper); }
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--alarm); }

/* Footer */
footer {
  border-top: 1px solid var(--storm-600);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  color: var(--ash-dim);
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; align-items: flex-start; }
footer a { color: var(--ash); text-decoration: none; border-bottom: 1px solid var(--storm-500); }
footer a:hover { color: var(--alarm-bright); border-color: var(--alarm); }
footer .foot-brand { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; color: var(--paper); font-size: 1.1rem; }
footer p { max-width: 48ch; margin: 0.4rem 0 0; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur) var(--ease-out-expo), transform var(--dur) var(--ease-out-expo);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* Hero stacked: image on top, text below — no overlap.
     The image fades into the dark background for a smooth handoff. */
.hero {
display: flex;
flex-direction: column;
align-items: stretch;
min-height: 0;
height: auto;
padding: 0 0 clamp(2.5rem, 9vw, 4rem);
}
.hero__media {
position: relative;
inset: auto;
z-index: 0;
width: 100%;
}
.hero__media img {
width: 100%;
height: auto;
object-fit: contain;
transform: none;
animation: none;
/* Feather the lower ~quarter so the photo dissolves into the page. */
-webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
}
.hero__scrim { display: none; }
.hero__inner {
/* Overlap the text up by 45% of the image height. The image is 1600x1435
    and spans the full hero width, so its rendered height is 1435/1600 of
    the width. CSS % margins resolve against the containing block width, so
    45% of height = 0.45 * (1435/1600) = 40.36% of width. */
margin-top: -40.36%;
z-index: 1;
animation: heroTextRise var(--dur) var(--ease-out-expo) both;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .stakes__grid,
  .switch { grid-template-columns: 1fr; }
  .stakes__grid { gap: 2.5rem; }
  .dial { max-width: 320px; margin-inline: auto; }

  
  
  .hero h1 { max-width: 100%; }
}

@keyframes heroTextRise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__media img { transform: none; }
}
