:root {
  --ink: #171714;
  --paper: #f2eee4;
  --paper-deep: #e5dfd2;
  --red: #c83d31;
  --red-dark: #8f251e;
  --green: #375b46;
  --green-light: #dce6d8;
  --gold: #d8b14a;
  --line: rgba(23, 23, 20, 0.2);
  --muted: #67645e;
  --shadow: 0 24px 80px rgba(41, 35, 28, 0.12);
  --radius: 22px;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 4%, rgba(200, 61, 49, 0.09), transparent 25rem),
    linear-gradient(180deg, #f8f5ed 0, var(--paper) 38rem, #ece6db 100%);
  font-family: var(--sans);
  line-height: 1.5;
}

a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
img, video, iframe { max-width: 100%; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 1000;
  padding: .8rem 1rem;
  background: var(--ink);
  color: white;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: rgba(248, 245, 237, 0.9);
  backdrop-filter: blur(16px);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: .18em;
  text-decoration: none;
  font-size: 1.15rem;
  letter-spacing: -0.05em;
}
.wordmark span { font-weight: 500; }
.wordmark strong { color: var(--red); font-size: 1.28em; }
.site-header nav { display: flex; gap: 1.4rem; }
.site-header nav a { text-decoration: none; font-size: .86rem; font-weight: 700; }
.site-header nav a:hover { color: var(--red-dark); }

main { overflow: clip; }
.hero,
.action-section,
.record-section,
.tracker-section,
.closing-cta {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: clamp(330px, 36vw, 430px);
  margin-top: clamp(.85rem, 1.5vw, 1.35rem);
  margin-bottom: clamp(.85rem, 1.5vw, 1.35rem);
  overflow: hidden;
  border-radius: 24px;
  background: #171714;
  color: white;
  box-shadow: var(--shadow);
  transition: min-height .35s ease;
}
.hero-track {
  position: absolute;
  inset: 0;
  display: flex;
  width: 200%;
  height: 100%;
  transform: translateX(0);
  transition: transform .5s cubic-bezier(.22, .72, .22, 1);
}
.hero[data-slide="archive"] .hero-track { transform: translateX(-50%); }
.hero-panel {
  position: relative;
  flex: 0 0 50%;
  min-width: 0;
  height: 100%;
}
.hero-video-media,
.hero-video-shade {
  position: absolute;
  inset: 0;
}
.hero-video-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .58;
  filter: grayscale(1) contrast(.96) brightness(.9);
}
.hero-video-shade {
  background:
    linear-gradient(90deg, rgba(12,12,11,.84) 0%, rgba(12,12,11,.63) 48%, rgba(12,12,11,.12) 100%),
    linear-gradient(0deg, rgba(12,12,11,.2), transparent 55%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: inherit;
  max-width: 800px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.6rem, 4vw, 3.3rem);
}
.hero .eyebrow { margin-bottom: .75rem; color: #ff9e8f; }
.hero h1 { max-width: 15ch; font-size: clamp(2.7rem, 5.3vw, 5rem); }
.hero .dek { max-width: 58ch; color: rgba(255,255,255,.88); }
.hero .button-primary {
  border-color: #f1ede5;
  background: #f1ede5;
  color: var(--ink);
}
.hero .button-primary:hover {
  border-color: white;
  background: white;
}
.hero-context {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: clamp(4rem, 7vw, 6rem);
  max-width: 170px;
  margin: 0;
  padding: .65rem .8rem;
  border-left: 2px solid #ff9e8f;
  background: rgba(13,13,12,.56);
  color: rgba(255,255,255,.9);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.35;
  text-transform: uppercase;
  transform: translateY(-50%);
  transition: opacity .18s ease;
}
.hero-context.is-changing { opacity: 0; }
.hero-history-tab {
  position: absolute;
  z-index: 4;
  top: 50%;
  right: 0;
  max-width: 40px;
  padding: .8rem .62rem;
  border: 0;
  border-radius: 13px 0 0 13px;
  background: var(--red);
  color: white;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.3;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
  transition: opacity .2s ease, background .2s ease;
}
.hero-history-tab:hover { background: #e15145; }
.hero[data-slide="archive"] .hero-history-tab { opacity: 0; pointer-events: none; }
.hero-panel-archive {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(360px, 1fr);
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: center;
  padding: clamp(1.4rem, 3vw, 2.7rem);
  background:
    radial-gradient(circle at 85% 20%, rgba(200,61,49,.19), transparent 24rem),
    #211e1b;
}
.archive-copy { max-width: 560px; }
.archive-copy .eyebrow { color: #ff9e8f; }
.archive-copy h2 {
  margin: 0;
  font: 500 clamp(2rem, 3.7vw, 3.8rem)/.98 var(--serif);
  letter-spacing: -.045em;
}
.archive-copy > p:not(.eyebrow) { color: rgba(255,255,255,.72); }
.archive-back {
  padding: .6rem 0;
  border: 0;
  background: transparent;
  color: white;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.archive-video-wrap {
  justify-self: end;
  width: min(100%, 480px);
}
.archive-video-wrap video {
  display: block;
  width: 100%;
  aspect-ratio: 960 / 734;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 15px;
  background: #080808;
  box-shadow: 0 20px 70px rgba(0,0,0,.4);
}
.archive-video-wrap p {
  margin: .45rem 0 0;
  color: rgba(255,255,255,.58);
  font-size: .65rem;
  text-align: right;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--red-dark);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1, h2, h3, p { text-wrap: pretty; }
h1 {
  margin: 0;
  max-width: 18ch;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 4.4vw, 4.4rem);
  font-weight: 500;
  line-height: .96;
  letter-spacing: -.055em;
}
.dek { max-width: 78ch; margin: .9rem 0 0; font-size: clamp(.96rem, 1.2vw, 1.08rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.fine-print { color: var(--muted); font-size: .76rem; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.1rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 800;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--red); border-color: var(--red); color: white; }
.button-primary:hover { background: var(--red-dark); }
.button-quiet { background: transparent; color: var(--ink); }
.button-quiet:hover { background: var(--ink); color: white; }

.context-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
  background: rgba(255,255,255,.26);
}
.context-band article { padding: clamp(1.4rem, 2.5vw, 2.4rem); border-right: 1px solid var(--line); }
.context-band article:last-child { border-right: 0; }
.context-band .stat { margin: 0; font: 500 clamp(2.25rem, 3.5vw, 3.7rem)/1 var(--serif); color: var(--red-dark); }
.context-band p:not(.stat) { max-width: 38ch; margin: .65rem 0; font-size: .92rem; }
.context-band a { font-size: .78rem; font-weight: 800; }

.action-section, .record-section, .tracker-section { padding: clamp(2.75rem, 5vw, 4.5rem) 0; }
.action-section { padding: clamp(1.25rem, 2vw, 1.8rem) 0 clamp(1.25rem, 2vw, 2rem); }
.action-section + .tracker-section { padding-top: clamp(1.25rem, 2vw, 2rem); }
.context-band + .record-section { padding-top: clamp(1.75rem, 2.5vw, 2.5rem); }
.section-heading { max-width: 900px; margin-bottom: 1rem; }
.section-heading h2, .closing-cta h2 { margin: 0; font: 500 clamp(1.9rem, 3vw, 3.2rem)/1 var(--serif); letter-spacing: -.04em; }
.section-heading > p:last-child { max-width: 68ch; margin-bottom: 0; font-size: .98rem; }
.split-heading { max-width: none; display: grid; grid-template-columns: 1fr .7fr; gap: 3rem; align-items: end; }
.split-heading > p { margin: 0; }

.action-shell {
  padding: clamp(1rem, 2vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255,255,255,.62);
  box-shadow: var(--shadow);
}
.action-form { max-width: 900px; margin: 0 auto; }
.form-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.state-row label { font-size: clamp(1.5rem, 3vw, 2.5rem); font-family: var(--serif); }
select, input, textarea {
  border: 1px solid rgba(23,23,20,.3);
  border-radius: 12px;
  background: #fbfaf6;
  color: var(--ink);
}
select, input { width: 100%; min-width: 0; min-height: 48px; padding: .65rem .8rem; }
select {
  appearance: none;
  padding-right: 2.8rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23171714' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 1rem;
}
.state-row select { min-width: 240px; }
.text-button { padding: .25rem; border: 0; color: var(--red-dark); background: transparent; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.privacy-note { margin: .65rem 0 1rem; color: var(--muted); font-size: .72rem; }
.results-empty, .no-targets { padding: 1.8rem 1rem; border-block: 1px dashed var(--line); text-align: center; color: var(--muted); }
.no-targets h3 { color: var(--ink); font-family: var(--serif); font-size: 1.8rem; }

.senator-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin: 1rem 0; }
.senator-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8f5ed;
  cursor: pointer;
}
.senator-card:has(input:checked) { border-color: var(--red); background: #fff8f3; box-shadow: inset 0 0 0 1px var(--red); }
.senator-card input { width: 20px; min-height: 20px; accent-color: var(--red); }
.senator-card h3 { margin: 0; font: 600 1.25rem/1.2 var(--serif); }
.senator-card p { margin: .25rem 0 0; color: var(--muted); font-size: .78rem; }
.position-badge { display: inline-flex; padding: .4rem .65rem; border-radius: 999px; font-size: .7rem; font-weight: 800; white-space: nowrap; }
.status-undecided, .status-no-statement { background: #f5e6ae; color: #6c5210; }
.status-schumer { background: #dbe3ee; color: #244a77; }
.status-van-hollen { background: #e9d6d4; color: #7b2a25; }
.impact-note { margin: .4rem 0 0; color: var(--red-dark) !important; font-weight: 800; }

.compose { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid label { display: grid; grid-template-rows: auto 48px; gap: .4rem; min-width: 0; font-size: .78rem; font-weight: 800; }
.field-title { color: var(--ink); font-weight: 800; }
.field-title em { color: var(--muted); font-style: normal; font-weight: 500; }
.channel-heading { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; font-size: .82rem; }
.channel-heading span { color: var(--red-dark); font-weight: 800; }
.channel-tabs { display: flex; gap: .5rem; margin: .55rem 0; }
.channel-tabs button { padding: .65rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-size: .78rem; font-weight: 800; }
.channel-tabs button.is-active { background: var(--ink); color: white; }
.channel-note { margin: 0 0 .75rem; color: var(--muted); font-size: .76rem; }
.generated-message { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fbfaf6; }
.message-topline { display: flex; justify-content: space-between; padding: .7rem 1rem; border-bottom: 1px solid var(--line); }
textarea { display: block; width: 100%; resize: vertical; padding: 1rem; border: 0; border-radius: 0; line-height: 1.55; }
.contact-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: .85rem; }
.contact-plan { display: grid; gap: .7rem; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; background: #f8f5ed; }
.contact-plan-head { display: flex; align-items: start; justify-content: space-between; gap: .8rem; }
.contact-plan-head strong { font-family: var(--serif); font-size: 1.15rem; }
.contact-plan-head span { color: var(--muted); font-size: .7rem; text-align: right; }
.contact-plan p { margin: 0; color: var(--muted); font-size: .75rem; }
.contact-plan .button { width: 100%; min-height: 44px; }
.contact-plan .preview-button { justify-self: start; }
.outreach-note { margin: .8rem 0 0; }
.outreach-note a { font-weight: 800; }
.status-message { min-height: 1.2rem; margin: .6rem 0 0; text-align: center; color: var(--green); font-size: .78rem; font-weight: 800; }

.record-section { border-top: 1px solid var(--line); }
.record-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.record-card {
  grid-column: span 6;
  position: relative;
  min-height: 310px;
  padding: clamp(1.25rem, 2.4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.5);
}
.record-card-featured { grid-column: span 7; color: white; background: var(--red-dark); }
.record-card:nth-child(2) { grid-column: span 5; }
.record-number { position: absolute; right: 1.2rem; top: .8rem; font: 600 4rem/1 var(--serif); opacity: .13; }
.tag { color: var(--red-dark); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.record-card-featured .tag { color: #ffd9bf; }
.record-card h3 { margin: 1.1rem 0 .8rem; max-width: 20ch; font: 500 clamp(1.7rem, 2.5vw, 2.55rem)/1.03 var(--serif); letter-spacing: -.035em; }
.record-card p:not(.tag) { max-width: 64ch; }
.source-list { display: grid; gap: .45rem; padding: 0; margin: 1.5rem 0 0; list-style: none; }
.source-list a { font-size: .75rem; font-weight: 800; }
.method-note { padding: .8rem; border-left: 3px solid var(--gold); color: var(--muted); font-size: .78rem; }
.record-card-featured .method-note { color: #f2e4d9; }

.video-card { display: grid; grid-template-columns: .7fr 1.3fr; gap: 2rem; align-items: center; margin-top: 1rem; padding: clamp(1.3rem, 3vw, 2.3rem); border: 1px solid var(--line); border-radius: var(--radius); background: #1c1c19; color: white; }
.video-card h3 { margin: 0; font: 500 clamp(2rem, 3vw, 3rem)/1 var(--serif); }
.video-frame { aspect-ratio: 16/9; overflow: hidden; border-radius: 14px; background: black; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }

.tracker-section { border-top: 1px solid var(--line); }
.tracker-frame { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: var(--shadow); }
.tracker-frame iframe { display: block; width: 100%; height: min(760px, 76vh); min-height: 580px; border: 0; }
.tracker-credit { margin: .7rem 0 0; color: var(--muted); font-size: .72rem; text-align: right; }

.closing-cta { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem 2rem; padding: clamp(1.75rem, 2.5vw, 2.5rem) 0; text-align: left; }
.closing-cta .eyebrow { grid-column: 1 / -1; margin-bottom: -.5rem; }
.closing-cta h2 { max-width: 22ch; font-size: clamp(2rem, 3vw, 3rem); }
.closing-cta .button { margin: 0; }

footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  padding: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  background: #1b1b18;
  color: #e9e4d9;
}
.footer-wordmark { color: white; }
footer p { max-width: 65ch; color: #b9b5ad; font-size: .78rem; }
.footer-links { display: grid; align-content: start; gap: .6rem; }
.footer-links a { font-size: .78rem; font-weight: 800; }

.document-page { width: min(880px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(4rem, 8vw, 8rem) 0; }
.document-page h1 { max-width: 14ch; }
.document-page h2 { margin-top: 3rem; font: 500 2rem/1.1 var(--serif); }
.document-page li { margin-bottom: .65rem; }
.document-page .source-entry { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.document-page .source-entry p { margin: .35rem 0; color: var(--muted); }

@media (max-width: 900px) {
  .site-header nav a:nth-child(2), .site-header nav a:nth-child(3) { display: none; }
  .hero { min-height: 350px; }
  .hero-video-shade { background: linear-gradient(90deg, rgba(12,12,11,.82), rgba(12,12,11,.32)); }
  .hero-context { right: 3.25rem; max-width: 145px; }
  .hero[data-slide="archive"] { min-height: 560px; }
  .hero-panel-archive { grid-template-columns: 1fr; align-content: center; }
  .archive-video-wrap { justify-self: stretch; width: min(100%, 430px); }
  .context-band { grid-template-columns: 1fr; }
  .context-band article { border-right: 0; border-bottom: 1px solid var(--line); }
  .split-heading, .video-card { grid-template-columns: 1fr; }
  .record-card, .record-card-featured, .record-card:nth-child(2) { grid-column: 1 / -1; }
  footer { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-header { padding-inline: .75rem; }
  .site-header nav { gap: .7rem; }
  .site-header nav a { font-size: .74rem; }
  .wordmark { font-size: 1rem; }
  h1 { font-size: clamp(2.6rem, 11vw, 3.3rem); }
  .hero { width: calc(100% - 1rem); min-height: 330px; margin-block: .5rem 1rem; border-radius: 18px; }
  .hero-copy { padding: 1.35rem; }
  .hero .dek { font-size: .94rem; }
  .hero-actions .button { width: 100%; }
  .hero-context {
    display: block;
    top: 43%;
    right: 2.7rem;
    max-width: 110px;
    padding: .45rem .55rem;
    font-size: .55rem;
  }
  .hero[data-slide="archive"] { min-height: 610px; }
  .hero-panel-archive { gap: 1rem; padding: 1.25rem; }
  .archive-copy h2 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .archive-copy > p:not(.eyebrow) { margin-bottom: .3rem; }
  .hero-history-tab { max-width: 34px; padding-inline: .5rem; font-size: .58rem; }
  .state-row { align-items: stretch; }
  .state-row label { width: 100%; }
  .state-row select { width: 100%; }
  .state-row > span { align-self: center; }
  .senator-results, .contact-actions { grid-template-columns: 1fr; }
  .senator-card { grid-template-columns: auto 1fr; }
  .senator-card .position-badge { grid-column: 2; justify-self: start; }
  .form-grid { grid-template-columns: 1fr; }
  .channel-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .channel-heading { align-items: end; }
  .tracker-frame iframe { min-height: 760px; height: 80vh; }
  .closing-cta { grid-template-columns: 1fr; text-align: center; }
  .closing-cta .eyebrow { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .hero-video-media { display: none; }
  .hero-panel-campaign { background: #171714 url('/hero-loop-poster.jpg') center / cover no-repeat; }
}

