/* variables and base */
:root {
  --pad: 4vw;
  --size: clamp(4rem, 18vw, 35rem);
  --line: 0.9;
  --caret-w: 0.06em;
  --blink: 0.9s;
  --red: #C8102E;
}
html, body { height: 100%; }
body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

/* ====== LAYOUT ====== */
.wrap {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: var(--pad);
  box-sizing: border-box;
}
h1 {
  margin: 0;
  font-weight: 800;
  font-size: var(--size);
  line-height: var(--line);
  letter-spacing: -0.02em;
  word-break: break-word;
  white-space: pre-wrap;
}
h1.intro{
  font-size: calc(var(--size) * 0.7);
}

/* Typewriter caret */
.caret::after {
  content: "";
  display: inline-block;
  width: var(--caret-w);
  height: 0.9em;
  margin-left: 0.05em;
  background: currentColor;
  transform: translateY(0.12em);
  animation: blink var(--blink) steps(1, end) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* CTA arrows + hover */
.cta-arrow { font-size: 0.7em; line-height: 1; color: inherit; transition: color .15s linear; position: absolute; left: 0; top: 0.25em; }
a:hover .cta-arrow { color: var(--red); }
a { text-decoration: none; color: inherit; }
a:hover .hover-red { color: var(--red); transition: color .15s linear; }

/* Scroll cue */
.scroll-arrow {
  position: absolute;
  bottom: 6vh;
  left: 50%;
  transform: translateX(-50%);
  color: var(--red);
  font-size: calc(var(--size) * 0.3);
  line-height: 1;
  animation: scroll-bounce 2s ease-in-out infinite;
  text-align: center;
}
@keyframes scroll-bounce {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, 0.4em); }
  60% { transform: translate(-50%, 0.2em); }
}

/* ====== WHITE SECTION ====== */
.section-white {
  background: #fff; color: #000; width: 100%; padding: var(--pad);
  box-sizing: border-box; display: flex; flex-direction: column;
  align-items: flex-start; justify-content: flex-start; gap: 1.5em;
}
.body-copy { font-size: calc(var(--size) * 0.12); line-height: 1.35; margin: 0 0 1em 0; font-weight: 400; max-width: 45ch; color:#000; }
.riding { font-weight: 900; font-size: calc(var(--size) * 0.16); line-height: var(--line); letter-spacing: -0.02em; white-space: pre-wrap; margin: 0; padding: 0; color: var(--red); }
.recall-link { font-weight: 800; font-size: calc(var(--size) * 0.4); line-height: var(--line); letter-spacing: -0.02em; white-space: pre-wrap; display: block; margin: 0; padding: 0 0 0 1em; position: relative; }

/* ====== RED SECTION (Education vs UCP) ====== */
.section-red {
  background: var(--red);
  color: #000;
  width: 100%;
  padding: calc(var(--pad)*2) var(--pad);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
}
.red-head { margin: 0; font-weight: 900; font-size: var(--size); line-height: var(--line); letter-spacing: -0.02em; white-space: pre-wrap; }
.red-head .vs { color: #fff; text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.08em; }
.red-sub { margin: 1.4em 0 0 0; font-weight: 400; font-size: calc(var(--size) * 0.14); max-width: 45ch; line-height: 1.35; }

/* Accordion framed with black rules */
.accordion {
  width:100%;
  border-top:1px solid #000;
  border-bottom:1px solid #000;
  padding:0.8em 0;
  margin-top:1.2em;
}
.accordion-trigger {
  -webkit-appearance: none; appearance: none; background: transparent; background-color: transparent;
  border: none; outline: none; box-shadow: none; color: inherit; font: inherit;
  -webkit-tap-highlight-color: transparent;
  display: block; width: 100%; text-align: left; cursor: pointer; position: relative;
  font-weight: 900; font-size: calc(var(--size) * 0.4); letter-spacing: -0.02em; line-height: var(--line);
  padding: 0.35em 0 0.35em 2.2em; /* left gutter reserved for icon */
  transition: color .2s ease;
}
.accordion-trigger:hover { color:#fff !important; }

/* Plus/X icon via pseudo elements, perfectly centered */
.accordion-trigger::before,
.accordion-trigger::after {
  content: "";
  position: absolute;
  left: 1.1em; /* center of the reserved gutter */
  top: 50%;
  width: 1.1em;
  height: 7px; /* icon stroke */
  background: currentColor;
  transform-origin: 50% 50%;
  transition: transform .25s ease, color .2s ease;
}
/* Plus state */
.accordion-trigger::before { transform: translate(-50%, -50%) rotate(0deg); }
.accordion-trigger::after  { transform: translate(-50%, -50%) rotate(90deg); }
/* X state when expanded */
.accordion-trigger[aria-expanded="true"]::before { transform: translate(-50%, -50%) rotate(45deg); }
.accordion-trigger[aria-expanded="true"]::after  { transform: translate(-50%, -50%) rotate(-45deg); }

/* Accordion content default closed + animated open */
.accordion-content { color:#fff; margin-left: 1em; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s ease, opacity .35s ease; }
.accordion-content.open { max-height: 1200px; opacity: 1; }

/* ====== BLACK IMPACT SECTION ====== */
.section-black-center { background:#000; color:#fff; width:100%; padding: calc(var(--pad) * 2) var(--pad); box-sizing:border-box; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; }
.leaf { display:block; width: calc(var(--size) * 0.4); margin: 0 auto 0.25em auto; color: var(--red); }
.forever { font-weight: 900; font-size: calc(var(--size) * 0.3); line-height: 1; letter-spacing: -0.02em; margin: 0 0 0.2em 0; color: var(--red); }
.big-number { font-weight: 800; font-size: var(--size); line-height: var(--line); letter-spacing: -0.02em; margin: 0; }
.support-line { font-weight: 400; font-size: calc(var(--size) * 0.113); line-height: 1.35; margin: 0.6em; max-width: 48ch; text-align: center; }

/* Footer */
footer { background: var(--red); color: #000; width: 100%; padding: calc(var(--pad) * 0.6) calc(var(--pad) * 0.5); box-sizing: border-box; display: flex; align_items: center; justify-content: space-between; }
#footer-phrase { font-weight: 800; font-size: calc(var(--size) * 0.14); line-height: var(--line); letter-spacing: -0.02em; white-space: pre-wrap; margin: 0; display:inline-block; }
.footer-mail { font-weight: 800; font-size: calc(var(--size) * 0.14); line_height: var(--line); letter-spacing: -0.02em; color: inherit; text-decoration: underline; text-decoration-thickness: 0.5px; text-underline-offset: 0.12em; }
.footer-mail:hover {color: #8e0000;}

/* Buttons/links inside white/black sections */
.recall-help-button { display:inline-block; padding:0.5em 1.1em; font-weight:900 !important; font-size: calc(var(--size) * 0.16); line-height:1; color:#fff !important; background:var(--red); border-radius:0.4em; text-decoration:none; transition:background 0.2s ease, color 0.2s ease; }
.recall-help-button:hover { background:#a50d24; color:#fff !important; }
.recall-help { font-weight:900; font-size: calc(var(--size) * 0.16); line-height:1.3; max-width:30ch; margin-top:2em; margin-bottom:0.2em; color:#000; }

.citizen-head { font-weight: 900; font-size: calc(var(--size) * 0.28); line-height: var(--line); letter-spacing: -0.02em; white-space: pre-wrap; margin-top: 1.6em; margin-bottom: 0em; padding: 0; color: var(--red); }
.citizen-copy { font-size: calc(var(--size) * 0.12); line-height: 1.35; font-weight: 400; max-width: 45ch; margin: 0.5em 0 2em 0; color: #000; }

/* Mobile tweaks */
@media (max-width: 600px) {
  html, body { overflow-x:hidden; }
  .citizen-head { font-size: calc(var(--size) * 0.4) !important; }
  .journey-button, .recall-help-button {
    display:block;
    width:100%;
    box-sizing:border-box;
    text-align:center;
    font-size: calc(var(--size) * 0.22) !important;
    padding: 1em 1.2em;
    margin-left:0;
    margin-right:0;
  }
  .body-copy { font-size: calc(var(--size) * 0.25) !important; line-height: 1.55; }
  .scroll-arrow { font-size: calc(var(--size) * 0.5) !important; bottom: 10vh;}
  .citizen-copy { font-size: calc(var(--size) * 0.25) !important; line-height: 1.55 !important; }
  .support-line { font-size: calc(var(--size) * 0.189) !important; line-height: 1.45 !important; }
  .recall-help { font-size: calc(var(--size) * 0.25) !important; line-height: 1.45 !important; }
  #footer-phrase, .footer-mail { font-size: calc(var(--size) * 0.282) !important; }
}

/* reveal animation for By The Numbers */
@keyframes bySlideUp { 0% { opacity: 0.01; transform: translateY(0.35em); } 100% { opacity: 1; transform: translateY(0); } }
.by-num { opacity: 0; transform: translateY(0.35em); }
.by-num.reveal { animation: bySlideUp 1.4s cubic-bezier(0.16, 0.84, 0.44, 1) forwards; animation-delay: var(--delay, 0ms); }

@media (prefers-reduced-motion: reduce) {
  .by-num { opacity: 1; transform: none; }
  .by-num.reveal { animation: none; }
}