:root {
  --blue: #071f5c;
  --blue-2: #12377f;
  --blue-light: #1e4a9a;
  --gold: #c9a227;
  --gold-light: #e8d9a8;
  --rose: #8b6f8e;
  --amber: #b87333;
  --slate: #5a6b7d;
  --cream: #faf8f3;
  --paper: #f0ede6;
  --ink: #111426;
  --muted: #596174;
  --line: rgba(7, 31, 92, .14);
  --shadow: 0 18px 40px rgba(7, 31, 92, .08);
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", "Helvetica Neue", sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Legacy aliases for gradual reference */
  --acid: var(--gold);
  --pink: var(--rose);
  --orange: var(--amber);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body); line-height: 1.55; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 99; padding: .8rem 1rem; border-radius: 8px; background: var(--cream); }
.skip-link:focus { top: 1rem; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.kicker { margin: 0 0 .8rem; color: var(--blue-2); font-size: .82rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.title { max-width: 850px; margin: 0; color: var(--blue); font-family: var(--display); font-size: clamp(3.2rem, 8vw, 7.4rem); font-weight: 900; line-height: .84; letter-spacing: -.045em; text-transform: uppercase; }
.lede { max-width: 720px; margin: 1.4rem 0 0; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.35rem); }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: .55rem; padding: .78rem 1.2rem; border: 2px solid var(--blue); border-radius: 999px; background: var(--blue); color: #fff; font-weight: 850; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(7, 31, 92, .18); }
.button--acid { background: var(--gold); border-color: var(--gold); color: var(--blue); }
.button--acid:hover { background: var(--gold-light); border-color: var(--gold-light); }
.button--cream { background: var(--cream); color: var(--blue); }
.button--outline { background: transparent; color: var(--blue); }

header { position: sticky; top: 0; z-index: 30; border-top: 4px solid var(--gold); border-bottom: 1px solid rgba(255, 255, 255, .12); background: var(--blue); }
.nav { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .72rem; color: #fff; text-decoration: none; }
.brand-check { display: grid; place-items: center; width: 48px; height: 48px; border: 2px solid var(--gold); border-radius: 8px; background: var(--gold); color: var(--blue); font-size: 1.65rem; font-weight: 950; transform: rotate(-3deg); box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
.brand-copy { display: flex; flex-direction: column; line-height: .9; }
.brand-copy strong { font-family: var(--display); font-size: 2rem; letter-spacing: .02em; text-transform: uppercase; }
.brand-copy small { margin-top: .42rem; color: var(--gold-light); font-size: .67rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
nav ul { display: flex; align-items: center; gap: 1.4rem; margin: 0; padding: 0; list-style: none; }
nav a { color: rgba(255, 255, 255, .88); font-size: .94rem; font-weight: 800; text-decoration: none; transition: color .18s ease; }
nav a:not(.button):hover,
nav a:not(.button).is-active { color: var(--gold-light); }
header .button { border-color: var(--gold); background: var(--gold); color: var(--blue); }

.poster-hero { padding: 26px 0 80px; overflow: hidden; }
.poster { position: relative; min-height: 690px; overflow: hidden; border: 1px solid rgba(7, 31, 92, .2); border-radius: 24px; background: linear-gradient(135deg, var(--cream) 0%, var(--gold-light) 100%); box-shadow: var(--shadow); }
.poster::before { content: ""; position: absolute; left: -105px; top: -8%; width: 190px; height: 116%; border-radius: 45%; background: var(--blue); transform: rotate(3deg); }
.poster::after { content: ""; position: absolute; inset: 0; opacity: .04; background-image: radial-gradient(var(--blue) 1.3px, transparent 1.3px); background-size: 16px 16px; pointer-events: none; }
.hero-copy { position: relative; z-index: 3; width: 64%; padding: 62px 40px 42px 112px; }
.ballot { display: inline-flex; align-items: center; gap: .7rem; margin: 0; padding: .5rem .8rem; border: 1px solid rgba(7, 31, 92, .25); background: #fff; color: var(--blue); font-size: .8rem; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; transform: rotate(-1deg); }
.ballot span { display: grid; place-items: center; width: 25px; height: 25px; background: var(--blue); color: #fff; border-radius: 5px; }
h1 { max-width: 720px; margin: 1.25rem 0 .8rem; color: var(--blue); font-family: var(--display); font-size: clamp(4.6rem, 10vw, 9.2rem); line-height: .78; letter-spacing: -.055em; text-transform: uppercase; }
h1 mark { display: inline-block; padding: .02em .1em .06em; background: var(--blue); color: var(--gold-light); transform: rotate(-2deg); }
.hero-sub { max-width: 530px; margin: 1.5rem 0 0; color: var(--blue-2); font-size: clamp(1.15rem, 2.1vw, 1.55rem); font-weight: 780; line-height: 1.35; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; }
.portrait { position: absolute; z-index: 2; right: -1%; bottom: 0; width: 48%; height: 92%; object-fit: contain; object-position: bottom right; filter: drop-shadow(-10px 10px 24px rgba(7, 31, 92, .12)); }

.quick-id { margin-top: -30px; padding: 0 0 92px; }
.id-card { position: relative; z-index: 6; display: grid; grid-template-columns: .72fr 1.28fr; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--cream); box-shadow: var(--shadow); }
.id-heading { padding: clamp(32px, 5vw, 64px); background: var(--blue); color: #fff; }
.id-heading .kicker { color: var(--gold-light); }
.id-heading h2 { margin: 0; font-family: var(--display); font-size: clamp(3.2rem, 6vw, 5.8rem); line-height: .86; letter-spacing: -.035em; text-transform: uppercase; }
.id-heading p { max-width: 380px; color: rgba(255,255,255,.78); font-size: 1.08rem; }
.id-facts { display: grid; grid-template-columns: repeat(2, 1fr); align-content: stretch; }
.fact { min-height: 190px; padding: 28px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact:nth-child(3), .fact:nth-child(4) { border-bottom: 0; }
.fact .number { display: block; color: var(--gold); font-family: var(--display); font-size: 3rem; line-height: 1; }
.fact h3 { margin: .65rem 0 .4rem; color: var(--blue); font-size: 1.25rem; }
.fact p { margin: 0; color: var(--muted); }

section { padding: 100px 0; }
.promise { background: var(--cream); }
.promise-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(34px, 7vw, 90px); align-items: center; }
.letter-preview { position: relative; padding: clamp(36px, 6vw, 70px); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); transform: rotate(-1deg); }
.letter-preview::before { content: "Dear Cupertino,"; display: block; margin-bottom: 1.5rem; color: var(--blue); font-family: Georgia, serif; font-size: 2rem; font-style: italic; }
.letter-preview p { font-family: Georgia, serif; font-size: 1.1rem; line-height: 1.7; }
.signature { margin: 1.7rem 0 0; color: var(--blue); font-family: "Brush Script MT", cursive; font-size: 2.7rem; line-height: 1; }
.promise-copy .title { font-size: clamp(3.5rem, 7vw, 6.5rem); }
.promise-copy .button { margin-top: 1.5rem; }

.priorities { background: var(--blue); color: #fff; }
.priorities .kicker { color: var(--gold-light); }
.priorities .title { color: #fff; }
.priorities .lede { color: rgba(255, 255, 255, .78); }
.priority-list { display: grid; gap: 14px; margin-top: 46px; }
.priority { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 26px; padding: 25px 28px; border: 1px solid rgba(255,255,255,.2); border-radius: 14px; background: rgba(255, 255, 255, .04); transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease; }
.priority:hover { background: rgba(255, 255, 255, .1); border-color: var(--gold); transform: translateX(6px); }
.priority-num { font-family: var(--display); font-size: 3rem; color: var(--gold); }
.priority h3 { margin: 0 0 .25rem; font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.05; }
.priority p { max-width: 750px; margin: 0; color: rgba(255,255,255,.72); }
.priority:hover p { color: rgba(255, 255, 255, .9); }
.priority-arrow { font-size: 2rem; color: var(--gold-light); }

.service { background: linear-gradient(180deg, #e8e4db 0%, var(--paper) 100%); }
.service-top { display: grid; grid-template-columns: 1fr .8fr; gap: 50px; align-items: end; }
.service .lede { color: var(--slate); }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 50px; }
.moment { min-height: 270px; padding: 25px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.moment span { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--blue); color: var(--gold-light); font-weight: 950; }
.moment h3 { margin: 2.2rem 0 .65rem; color: var(--blue); font-size: 1.25rem; line-height: 1.1; }
.moment p { margin: 0; color: var(--muted); }

.join { background: linear-gradient(135deg, var(--blue-2) 0%, var(--blue) 100%); color: #fff; }
.join-panel { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.join .kicker { color: var(--gold-light); }
.join .title { color: #fff; }
.join .lede { color: rgba(255, 255, 255, .82); }
.join-actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.join-actions .button { width: 100%; min-height: 58px; }
.join-actions .button--acid { background: var(--gold); border-color: var(--gold); color: var(--blue); }

footer { padding: 38px 0; background: var(--blue); color: rgba(255,255,255,.75); scroll-snap-align: none; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
footer strong { color: #fff; }
footer p { margin: .4rem 0 0; }
footer a { color: #fff; text-underline-offset: 3px; }
.legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.18); font-size: .82rem; }

/* Full-page scroll (index only, desktop+) */
html.fullpage-active {
  scroll-snap-type: y proximity;
  scroll-padding-top: 0;
}

html.fullpage-active main > section {
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 6vh, 80px) 0;
}

html.fullpage-active .poster-hero {
  margin-top: 0;
  padding: clamp(24px, 3vh, 40px) 0;
}

html.fullpage-active .quick-id {
  margin-top: 0;
  padding: 0;
}

html.fullpage-active .poster {
  min-height: min(620px, calc(100dvh - 180px));
}

html.fullpage-active .priority-list {
  margin-top: clamp(24px, 4vh, 46px);
}

html.fullpage-active .timeline {
  margin-top: clamp(28px, 4vh, 50px);
}

html.fullpage-active .moment {
  min-height: 220px;
}

/* The closing invitation should feel concise, not like a full blank slide. */
html.fullpage-active main > section.join {
  min-height: 460px;
  padding: 64px 0;
  scroll-snap-stop: normal;
}

/* Letter page */
.letter-body { background: var(--paper); }
.letter-hero { padding: 70px 0 36px; }
.letter-hero .title { max-width: 980px; }
.letter-meta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.letter-meta span { padding: .45rem .75rem; border: 1px solid rgba(7, 31, 92, .2); border-radius: 999px; background: var(--gold-light); color: var(--blue); font-size: .83rem; font-weight: 900; }
.letter-sheet { width: min(840px, calc(100% - 32px)); margin: 0 auto 90px; padding: clamp(34px, 7vw, 88px); border: 1px solid var(--line); background: #fffef9; box-shadow: var(--shadow); }
.letter-sheet p { margin: 0 0 1.35rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.07rem, 2vw, 1.23rem); line-height: 1.78; }
.letter-sheet .opening { color: var(--blue); font-size: clamp(1.8rem, 4vw, 2.6rem); font-style: italic; }
.letter-sheet h2 { margin: 3.1rem 0 1rem; color: var(--blue); font-family: var(--display); font-size: clamp(2rem, 5vw, 3.6rem); line-height: .95; text-transform: uppercase; }
.letter-sheet blockquote { margin: 2.4rem 0; padding: 1.4rem 1.6rem; border-left: 4px solid var(--gold); background: var(--cream); color: var(--blue); font-family: var(--display); font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1; text-transform: uppercase; }
.letter-close { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.letter-close .signature { margin-top: .6rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.fullpage-active { scroll-snap-type: none; }
  *, *::before, *::after { transition: none !important; }
}

/* V4 rebuild: distinct message and portrait columns; no floating overlays. */
.poster-hero { padding: 26px 0 64px; }
.poster {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, .82fr);
  min-height: 620px;
  background: var(--cream);
}
.poster::before { left: -122px; width: 176px; }
.poster::after { z-index: 0; }
.hero-copy {
  position: relative;
  z-index: 3;
  width: auto;
  padding: clamp(44px, 5.2vw, 68px) clamp(34px, 4vw, 58px) 44px clamp(76px, 8vw, 112px);
}
.hero-eyebrow {
  margin: 1.05rem 0 0;
  color: var(--blue-2);
  font-size: clamp(.84rem, 1.2vw, 1rem);
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.poster h1 {
  max-width: 680px;
  margin: .45rem 0 0;
  color: var(--blue);
  font-size: clamp(3.65rem, 5.4vw, 5.45rem);
  line-height: .84;
  letter-spacing: -.052em;
}
.running-for {
  display: block;
  margin: 0 0 .32em;
  color: var(--blue-2);
  font-family: var(--body);
  font-size: .22em;
  font-weight: 950;
  line-height: 1;
  letter-spacing: .15em;
}
.poster h1 mark {
  display: inline;
  padding: 0 .06em .035em;
  background: linear-gradient(transparent 58%, var(--gold-light) 58%);
  color: var(--blue);
  transform: none;
}
.movement-slogan {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 1.15rem 0 0;
  color: var(--blue);
  font-family: Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.15;
}
.movement-slogan span { width: 38px; height: 3px; background: var(--gold); }
.hero-sub { max-width: 610px; margin-top: 1rem; font-size: clamp(1rem, 1.55vw, 1.24rem); line-height: 1.42; }
.hero-buttons { margin-top: 1.35rem; }
.hero-principle {
  margin: 1.25rem 0 0;
  color: var(--blue-2);
  font-size: .84rem;
  font-weight: 780;
  letter-spacing: .025em;
}
.hero-principle strong { color: var(--blue); }
.portrait-panel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  border-left: 1px solid rgba(7,31,92,.13);
  background: linear-gradient(155deg, #f3e9ca 0%, #e4d39c 100%);
}
.portrait-frame { position: relative; min-height: 0; overflow: hidden; }
.portrait-halo {
  position: absolute;
  top: 12%;
  left: 50%;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--blue);
  transform: translateX(-50%);
  opacity: .96;
}
.portrait {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(-8px 10px 18px rgba(7,31,92,.14));
}
.credentials {
  position: relative;
  z-index: 3;
  padding: 18px 22px 20px;
  background: var(--blue);
  color: #fff;
}
.credentials p { margin: 0 0 .7rem; color: var(--gold-light); font-size: .73rem; font-weight: 950; letter-spacing: .13em; text-transform: uppercase; }
.credentials ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .42rem 1rem; margin: 0; padding: 0; list-style: none; }
.credentials li { display: flex; align-items: center; gap: .45rem; font-size: .79rem; font-weight: 800; line-height: 1.2; }
.credentials li::before { content: ""; flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

@media (max-width: 959px) {
  nav ul li:not(:last-child) { display: none; }
  .poster-hero { padding-top: 18px; }
  .poster {
    grid-template-columns: 1fr;
    min-height: 0;
    overflow: hidden;
  }
  html.fullpage-active .poster { min-height: 0; }
  .poster::before {
    left: -150px;
    width: 160px;
    top: -4%;
    height: 62%;
  }
  .hero-copy { padding: 42px 28px 36px 64px; }
  .poster h1 {
    max-width: 100%;
    font-size: clamp(3.2rem, 9vw, 5.2rem);
    overflow-wrap: anywhere;
  }
  .running-for { font-size: .26em; }
  .portrait-panel {
    grid-template-rows: minmax(360px, 52vw) auto;
    border-top: 1px solid rgba(7,31,92,.13);
    border-left: 0;
  }
  .portrait {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
  }
  .portrait-halo { top: 7%; width: min(56%, 450px); }
  .id-card, .promise-grid, .service-top, .join-panel { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .title { font-size: clamp(2.8rem, 9vw, 5rem); }
  .promise-copy .title { font-size: clamp(2.8rem, 9vw, 5rem); }
}

@media (max-width: 620px) {
  .wrap { width: min(100% - 24px, 1180px); }
  .nav { min-height: 72px; gap: .8rem; }
  .brand-check { width: 38px; height: 38px; font-size: 1.25rem; flex-shrink: 0; }
  .brand-copy strong { font-size: 1.45rem; }
  .brand-copy small { max-width: 150px; font-size: .55rem; }
  nav .button { min-height: 42px; padding: .6rem .85rem; white-space: nowrap; }
  .poster-hero { padding-top: 10px; padding-bottom: 42px; }
  .poster { border-radius: 18px; }
  .poster::before {
    left: -148px;
    width: 150px;
    height: 48%;
  }
  .hero-copy { padding: 28px 16px 28px 40px; }
  .ballot {
    gap: .45rem;
    padding: .42rem .55rem;
    font-size: .61rem;
    letter-spacing: .085em;
    max-width: 100%;
  }
  .ballot span { width: 22px; height: 22px; }
  .hero-eyebrow { margin-top: .9rem; font-size: .72rem; }
  .poster h1 {
    margin-top: .4rem;
    font-size: clamp(2.55rem, 12vw, 3.6rem);
    line-height: .88;
    letter-spacing: -.04em;
  }
  .running-for { font-size: .28em; letter-spacing: .12em; }
  .movement-slogan { margin-top: .95rem; font-size: 1.1rem; }
  .movement-slogan span { width: 28px; }
  .hero-sub { max-width: 100%; margin-top: .85rem; font-size: .98rem; }
  .hero-buttons { flex-wrap: wrap; gap: .65rem; margin-top: 1.1rem; }
  .hero-buttons .button {
    min-height: 46px;
    padding: .65rem 1rem;
    font-size: .88rem;
  }
  .hero-principle { margin-top: 1rem; font-size: .73rem; }
  .portrait-panel { grid-template-rows: min(390px, 70vw) auto; }
  .portrait-halo { top: 10%; width: 82%; }
  .credentials { padding: 16px 18px 18px; }
  .credentials ul { gap: .42rem .7rem; }
  .credentials li { font-size: .72rem; }
  .id-facts { grid-template-columns: 1fr; }
  .fact { border-left: 0; }
  .fact, .fact:nth-child(3) { border-bottom: 1px solid var(--line); }
  .fact:last-child { border-bottom: 0; }
  .title { font-size: clamp(2.4rem, 12vw, 3.6rem); }
  .promise-copy .title { font-size: clamp(2.4rem, 12vw, 3.6rem); }
  section { padding: 64px 0; }
  .letter-preview { transform: none; }
  .priority { grid-template-columns: 56px 1fr; gap: 12px; padding: 20px 16px; }
  .priority-arrow { display: none; }
  .priority-num { font-size: 2rem; }
  .timeline { grid-template-columns: 1fr; }
  .moment { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .letter-hero { padding: 48px 0 24px; }
  .letter-sheet { width: min(100% - 24px, 840px); padding: 28px 20px; }
  .letter-sheet blockquote {
    font-size: clamp(1.35rem, 6vw, 2rem);
    padding: 1rem 1.1rem;
  }
}

@media (max-width: 390px) {
  .hero-copy { padding-left: 34px; padding-right: 14px; }
  .poster h1 { font-size: clamp(2.35rem, 13.5vw, 3.2rem); }
  .portrait-panel { grid-template-rows: 320px auto; }
  .credentials ul { grid-template-columns: 1fr; }
}

@media (max-width: 959px) and (orientation: landscape) {
  .poster::before { display: none; }
  .hero-copy { padding: 28px 24px 20px; }
  .poster h1 { font-size: clamp(2.4rem, 6.5vw, 3.6rem); }
  .portrait-panel { grid-template-rows: min(280px, 55vh) auto; }
}
