:root {
  color-scheme: light;
  --art: url("campaign-art-light.png");
  --ink: #151413;
  --paper: #eeeae1;
  --button: #ce080d;
  --red: #c80910;
  --muted: #4c4741;
  --line: #26231f;
  --text: "Segoe UI", Arial, sans-serif;
  --head: Impact, "Arial Narrow", "Segoe UI", sans-serif;
  font-family: var(--text);
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
html { scrollbar-width: none; }
body { margin: 0; color: var(--ink); background: var(--paper); }
[hidden] { display: none !important; }
a { text-decoration: none; color: inherit; }
button { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible, .flip-card:focus-visible, .track:focus-visible {
  outline: 2px solid var(--red); outline-offset: 2px;
}
p, h1, h2, h3 { margin: 0; }
.accent { color: var(--red); }
.frame { max-width: 1440px; margin: auto; container-type: inline-size; }
.track { display: flex; align-items: flex-start; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.flip-card {
  flex-shrink: 0; min-width: 0; padding: 0; border: 0; background: none; color: var(--ink);
  text-align: left; cursor: pointer; perspective: 900px; user-select: text;
}
.flip-card:focus-visible { outline-offset: -3px; }
.reason-rotor {
  display: grid; min-height: var(--card-height);
  transform-style: preserve-3d;
  transition: transform .58s cubic-bezier(.25,.75,.25,1), min-height .24s ease;
}
.flip-card[aria-expanded="true"] .reason-rotor { transform: rotateY(180deg); }
.reason-front, .reason-back {
  display: flex; flex-direction: column; justify-content: center;
  grid-area: 1 / 1; min-width: 0; padding: var(--card-padding);
  border: 1px solid var(--line); border-radius: var(--card-radius, 0);
  background: linear-gradient(115deg,#f0ece3,#ede9e0);
  backface-visibility: hidden; transition: border-color .24s ease;
}
.reason-front {
  font: 400 var(--title-size)/1.08 var(--head);
  text-transform: uppercase; letter-spacing: -.016em;
}
.reason-back {
  transform: rotateY(180deg); pointer-events: none;
  background: linear-gradient(130deg,#f9f4eb,#eee7dc);
  border-color: var(--red);
  font: 400 var(--description-size)/1.42 var(--text);
}
.flip-card[aria-expanded="true"] .reason-front { pointer-events: none; }
.flip-card[aria-expanded="true"] .reason-back { pointer-events: auto; }
@media (hover: hover) and (pointer: fine) {
  .reason:hover .reason-rotor { min-height: calc(var(--card-height) + var(--card-growth)); }
  .flip-card:hover :is(.reason-front, .reason-back) { border-color: var(--red); }
}
@media (prefers-reduced-motion: reduce) {
  .reason-rotor, .reason-front, .reason-back, .initiative-card { transition: none; }
}
.arrow { cursor: pointer; border: 0; background: none; }
.arrow:disabled { cursor: default; }
.hero-visual { position: relative; isolation: isolate; align-self: end; overflow-x: clip; }
.hero-visual::before {
  content: ""; position: absolute; z-index: -1; width: 71%; aspect-ratio: 1;
  top: 5%; right: 13%; border-radius: 50%; background: #e20a13;
}
.hero-visual img { display: block; position: relative; width: 100%; height: auto; transform: scale(1.022); transform-origin: center bottom; }
.hero-action {
  min-height: 44px; padding: .65em 1.3em; color: #fff; background: var(--button);
  font-weight: 750; text-align: center;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.team-intro { margin: 14px 0 0; max-width: 75ch; line-height: 1.55; }
.team-quote { margin: 0; color: var(--ink); font-style: italic; line-height: 1.4; overflow-wrap: break-word; }
.action { display: inline-flex; justify-content: center; align-items: center; border: 0; cursor: pointer; }
.program-grid {
  --card-height: clamp(156px, 19cqi, 250px);
  --card-padding: clamp(13px, 2.1cqi, 30px);
  --title-size: clamp(1.25rem, 3.45cqi, 3.1rem);
  --description-size: clamp(.875rem, 1.48cqi, 1.2rem);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2cqi, 28px);
}
.initiative-card { min-height: 0; position: relative; display: grid; transition: scale .25s ease; }
.initiative-card .reason-front { text-align: center; }
.initiative-card .reason-back { gap: .75em; overflow-wrap: anywhere; }
.initiative-card .reason-back strong { display: block; color: var(--red); margin-bottom: .2em; }
@media (hover: hover) and (pointer: fine) {
  .initiative-card:hover { scale: 1.024; z-index: 2; }
}
@media (max-width: 600px) {
  .program-grid { grid-template-columns: 1fr; }
}
@media (min-width: 761px) {
  .scene {
    --unit: .09765625cqi;
    position: relative;
    block-size: calc(var(--h) * var(--unit));
    background: var(--art) 0 calc(var(--y) * var(--unit) * -1) / 100% auto no-repeat;
  }
  .masthead { --y: 0; --h: 65; }
  .hero {
    --y: 65; --h: 573;
    display: grid; grid-template-columns: 44% 56%; align-items: center;
    padding-left: 4.15%; background: var(--paper);
  }
  .hero-copy { position: relative; z-index: 1; padding-bottom: 1.4cqi; }
  .hero-visual { min-height: 93%; align-content: end; }
  .hero-visual::before { width: 80%; top: 5%; right: 13%; }
  .election { --y: 638; --h: 116; }
  .reasons { --y: 754; --h: 259; }
  .program { --y: 1013; height: auto; padding: 9.3cqi 3.6cqi 2.7cqi; background: var(--paper); }
  .program::before {
    content: ""; position: absolute; inset: 0 0 auto; height: 9.3cqi; pointer-events: none;
    background: var(--art) 0 calc(-1013 * var(--unit)) / 100% auto no-repeat;
    mask-image: linear-gradient(#000 85%, transparent);
  }
  .team { --y: 1300; block-size: auto; padding: 7.2cqi 0 3.1cqi; background: linear-gradient(110deg, #f0ece3, #ece8df); }
  .team::before, .team-grid::before {
    content: ""; position: absolute; inset-inline: 0; pointer-events: none;
    background-image: var(--art); background-repeat: no-repeat; background-size: 100cqi auto;
  }
  .team::before {
    top: 0; height: calc(60 * var(--unit)); background-position: 0 calc(-1300 * var(--unit));
    mask-image: linear-gradient(#000 92%, transparent);
  }
  .team-grid::before {
    top: 0; height: calc(44 * var(--unit)); background-position: 0 calc(-1359 * var(--unit));
    mask-image: linear-gradient(transparent, #000 12%, #000 92%, transparent);
  }
  .ideas { --y: 1450; --h: 86; }
  .scene .art-text, .scene .art-text .accent { color: transparent; }
  .masthead a, .idea-action, .carousel-controls, .track, .clock, .election-status { position: absolute; }
  .art-line {
    position: absolute; z-index: 1;
    left: calc(var(--x) * var(--unit)); top: calc(var(--y-text) * var(--unit));
    width: calc(var(--w) * var(--unit)); height: calc(var(--h-text) * var(--unit));
    overflow: clip; cursor: text; user-select: text;
    font: 400 calc(var(--h-text) * 1.27 * var(--unit))/calc(var(--h-text) * var(--unit)) var(--head);
  }
  .art-fit { display: inline-block; white-space: nowrap; transform-origin: left center; transform: scaleX(var(--fit, 1)); }
  .art-fit::selection { color: transparent; background-color: #296bde66; }
  .brand .art-line, .masthead nav .art-line, .hero-action .art-line, .idea-action .art-line { cursor: inherit; }
  .brand .art-line, .masthead nav .art-line, .reasons .art-line, .program .art-line, .election .art-line, .team h2 .art-line, .team h3 .art-line { text-transform: uppercase; }
  .team-intro { margin: 0 5.37% 2cqi; font-size: clamp(.95rem, 1.72cqi, 1.35rem); }
  .team-grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .team-grid::after {
    content: ""; position: absolute; left: 49.95%; top: calc(41 * var(--unit));
    bottom: 0; width: 1px; background: var(--line); pointer-events: none;
  }
  .team-grid article { padding: calc(49 * var(--unit)) 5.1cqi 0 5.37cqi; }
  .team-grid article + article { padding-left: 4.4cqi; }
  .team-quote { font-size: 1.8cqi; }
  .after-countdown .election-info { display: none; }
  .brand { left: 4.4%; top: 24%; width: 22%; height: 69%; }
  .masthead nav a { top: 18%; height: 57%; }
  .nav-program { left: 74%; width: 11.7%; }
  .nav-team { left: 89.55%; width: 7.6%; }
  .hero h1 {
    color: var(--ink); font: 400 13.8cqi/.88 var(--head);
    letter-spacing: -.022em; text-transform: uppercase;
    width: 110%;
  }
  .hero h1 > span { display: block; white-space: nowrap; }
  .hero h1 .slogan-word { display: inline-block; transform-origin: left center; transform: scaleX(.79); }
  .hero h1 > span:last-child .slogan-word { transform: scaleX(.64); }
  .candidate-name { margin-top: 2.1cqi; font: 800 5.3cqi/1.08 var(--text); letter-spacing: -.045em; }
  .candidate-role { margin-top: .6cqi; font-size: max(13px, 1.85cqi); }
  .hero-action { margin-top: 2.9cqi; font-size: max(14px, 1.98cqi); }
  .clock {
    inset: 10% auto auto 61.3%; width: 33.25%; height: 49%;
    display: flex; align-items: center; justify-content: center;
    background: transparent;
    color: #111111;
    font: 800 5.25cqi/.94 var(--head);
    letter-spacing: .01em; white-space: nowrap;
    font-variant-numeric: tabular-nums;
  }
  .clock::before {
    content: ""; position: absolute; inset: -6px -7px;
    background: radial-gradient(ellipse at 50% 22%, #eeebe4, transparent 76%), linear-gradient(180deg,#eeeae3,#ebe7df);
    mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent),
      linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
    mask-composite: intersect;
  }
  .clock span { position: relative; }
  .election-status { inset: 10% 4.2% 14%; display: grid; place-items: center; background: var(--paper); color: var(--red); font: 800 3.7cqi/1 var(--text); border-radius: 13px; }
  .carousel-controls { top: 55.2%; left: 3.95%; right: 4%; height: 19%; display: flex; justify-content: space-between; pointer-events: none; }
  .arrow { width: 5.15%; height: 100%; pointer-events: auto; border-radius: 50%; }
  .track {
    --card-height: calc(123 * var(--unit));
    --card-growth: calc(12 * var(--unit));
    --card-padding: calc(10 * var(--unit)) calc(24 * var(--unit)) calc(10 * var(--unit)) calc(34 * var(--unit));
    --title-size: 3.55cqi;
    --description-size: clamp(.83rem, 1.63cqi, 1.4rem);
    top: calc(105 * var(--unit)); left: 11.03515625%; width: 78.02734375%;
    gap: calc(23 * var(--unit)); position: absolute; background: var(--paper);
  }
  .reason { flex: 0 0 calc((100% - 23 * var(--unit))/2); }
  .ideas h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); user-select: none; }
  .idea-action { left: 33%; top: 20%; width: 34%; height: 68%; }
}
@media (max-width: 760px) {
  .frame { padding: 0 clamp(15px, 4.5vw, 31px); background: radial-gradient(ellipse at 20% 7%, #f8f5ee, transparent 65%); }
  .masthead { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .brand { font: 700 clamp(.98rem, 4.4vw, 1.8rem)/1 var(--head); text-transform: uppercase; }
  .masthead nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px clamp(8px, 3vw, 20px); }
  .masthead nav a { font: 600 clamp(.66rem, 2.45vw, .92rem)/1.2 var(--text); text-transform: uppercase; }
  .hero { position: relative; display: grid; padding-top: 16px; }
  .hero-copy { position: relative; z-index: 1; }
  .hero h1 { font: 850 clamp(2.7rem, 13vw, 5.4rem)/.91 var(--head); text-transform: uppercase; }
  .hero h1 > span { display: block; }
  .candidate-name { font-size: 1.6rem; font-weight: 700; margin-top: 14px; }
  .candidate-role { color: var(--muted); margin: 3px 0 15px; font-size: .95rem; }
  .action { padding: 12px 17px; border-radius: 6px; min-height: 44px; color: #fff; background: var(--button); font-size: .93rem; font-weight: 650; text-align: center; }
  .hero-visual { margin-top: 8px; }
  .hero-visual::before { top: auto; bottom: 6%; }
  .election { display: flex; align-items: center; justify-content: space-evenly; gap: 10px; min-height: 63px; border: 1px solid #838282; border-radius: 10px; background: #f7f3ec88; padding: 8px; }
  .election-info { text-transform: uppercase; }
  .election-label { font-size: .7rem; letter-spacing: .13em; }
  .election-date, .election-status { color: var(--red); font-weight: 750; }
  .clock { border-left: 1px solid var(--line); padding-left: clamp(9px, 4vw, 24px); font: 700 clamp(1.05rem, 5vw, 2.15rem)/1 "Bahnschrift", Consolas, monospace; white-space: nowrap; }
  .after-countdown .election-info { display: none; }
  .scene:not(.masthead, .hero, .election) { padding: 21px 0; }
  .scene h2 { font-size: clamp(1.25rem, 5.25vw, 2.35rem); text-transform: uppercase; line-height: 1.06; letter-spacing: -.018em; }
  .reasons { position: relative; }
  .reasons h2 { padding-right: 59px; }
  .carousel-controls { position: absolute; top: 16px; right: 0; display: flex; justify-content: space-between; gap: 4px; }
  .arrow { min-width: 25px; min-height: 34px; font-size: 1.5rem; line-height: 1; }
  .arrow:disabled { opacity: .5; }
  .track {
    --card-height: 132px; --card-growth: 10px; --card-radius: 8px; --card-padding: 15px;
    --title-size: clamp(1.1rem, 5vw, 1.65rem); --description-size: .95rem;
    gap: 12px; margin-top: 13px;
  }
  .reason { flex: 0 0 83%; }
  .program, .team { border-top: 1px solid var(--line); }
  .program-grid { --card-radius: 8px; margin-top: 15px; }
  .team-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); margin-top: 15px; gap: 11px; }
  .scene h3 { font-size: clamp(.97rem, 4vw, 1.5rem); font-weight: 600; }
  .scene.team { padding-block: 29px 34px; }
  .team-grid { margin-top: 23px; }
  .team-quote { margin-top: 9px; font-size: .9rem; }
  .team-grid article + article { border-left: 1px solid var(--line); padding-left: 12px; }
  .scene.ideas { display: grid; justify-content: center; padding: 18px 0 25px; border-top: 1px solid var(--line); }
  .ideas h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); user-select: none; }
  .ideas .action { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }
