:root {
  /* Campaign colors from logo.svg, trojka.svg, and zaokruz.svg. */
  --navy: #213a77;
  --red: #c82a32;
  --yellow: #efbb00;
  --white: #ffffff;
  /* Minimal neutrals for text and borders only. */
  --ink: #262626;
  --muted: #595959;
  --line: #d5d3d3;
  --font: 'Montserrat', Arial, sans-serif;
  --space: clamp(20px, 4.8vw, 72px);
  --section-space: clamp(64px, 8vw, 112px);
  --content-width: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body.dialog-open { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 6px; }
button:focus-visible, .button:focus-visible { outline-color: var(--yellow); }
.container { width: min(var(--content-width), calc(100% - var(--space) * 2)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; top: 12px; left: 12px; transform: translateY(-180%); padding: 14px 20px; background: var(--navy); color: var(--white); }
.skip-link:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 5; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { flex-shrink: 0; }
.brand img { width: 242px; height: auto; }
.navigation { display: flex; align-items: center; gap: 32px; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--navy); font-size: 14px; font-weight: 600; white-space: nowrap; }
.nav-link:hover { color: var(--red); }
.header-cta { white-space: nowrap; }
.site-header .header-cta { min-height: 46px; padding: 12px 22px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 38px; min-height: 52px; padding: 14px 24px; border: 0; font-size: 14px; font-weight: 700; transition: background .2s, transform .2s; }
.button span { font-size: 24px; font-weight: 500; line-height: 1; }
.button:hover { transform: translateY(-2px); }
.button-red { background: var(--red); color: var(--white); }
.button-red:hover { background: var(--navy); }
.button-navy { background: var(--navy); color: var(--white); }
.button-navy:hover { background: var(--red); }
.menu-toggle { display: none; }
.hero { position: relative; overflow: clip; background: var(--white); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-top: 36px; padding-bottom: clamp(100px, 10vw, 150px); }
.hero-copy { position: relative; z-index: 2; min-width: 0; }
/* Both marks are transparent SVGs; no card, background, or recoloring. */
.hero-artwork { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .46fr); align-items: center; gap: 12px; max-width: 580px; margin: 12px 0 28px; }
.hero-script, .hero-number { width: 100%; height: auto; }
.hero-script { transform: translateX(-3%) scale(1.17); transform-origin: right center; }
.hero-number { position: relative; z-index: 10; scale: 1.23; transform-origin: left center; }
.hero-message { position: relative; top: -55px; z-index: 1; }
.hero h1 { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.2; font-weight: 800; letter-spacing: -.04em; margin: 0; max-width: 590px; color: var(--navy); overflow-wrap: break-word; }
.hero-date { display: flex; align-items: center; gap: 14px; margin: 25px 0 0; color: var(--navy); font-size: 15px; font-weight: 600; line-height: 1.5; }
.hero-date::before { content: ''; flex: 0 0 32px; height: 3px; background: var(--red); }
/* A single angled collage, with open color fields for future photography. */
.hero-composition { height: clamp(310px, 28vw, 400px); position: relative; width: calc(100% + var(--space)); }
.panel { position: absolute; }
.panel-navy { inset: 0 0 8% 5%; background: var(--navy); clip-path: polygon(19% 0, 100% 7%, 82% 100%, 0 89%); }
.panel-red { inset: 63% 44% -4% -3%; background: var(--red); clip-path: polygon(14% 0, 100% 12%, 87% 100%, 0 87%); }
.panel-yellow { inset: 15% -5% 58% 73%; background: var(--yellow); clip-path: polygon(20% 0, 100% 9%, 81% 100%, 0 89%); }
.hero-symbol { position: absolute; top: 34%; left: 45%; width: clamp(190px, 21vw, 300px); height: auto; transform: translate(-50%, -50%); }
.hero-bottom-art { position: absolute; inset: auto 0 0; z-index: 1; display: block; width: 100%; height: auto; pointer-events: none; }
.candidates-section { padding-top: var(--section-space); padding-bottom: var(--section-space); }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 26px; margin-bottom: 38px; }
.section-heading h2 { min-width: 0; color: var(--navy); font-size: clamp(38px, 5vw, 64px); line-height: 1.08; letter-spacing: -.055em; margin: 0; font-weight: 800; }
.section-heading .heading-line { display: block; }
.section-heading .heading-number { color: var(--red); }
.section-heading .heading-subline { margin-top: clamp(12px, 1.5vw, 20px); font-size: clamp(22px, 3vw, 38px); line-height: 1.2; letter-spacing: -.035em; }
.section-mark { flex: none; width: clamp(100px, 10vw, 140px); height: auto; }
.section-mark img { display: block; width: 100%; height: auto; }
.candidate-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 28px; }
.candidate-closing-slogan { grid-column: 2 / span 2; align-self: center; min-width: 0; margin: 0; padding-left: 28px; color: var(--navy); font-size: clamp(41px, 5.15vw, 75px); font-weight: 800; line-height: 1.15; letter-spacing: -.04em; overflow-wrap: break-word; }
.candidate-closing-slogan[hidden] { display: none; }
.candidate-closing-slogan span { display: block; }
.candidate-closing-slogan span:nth-child(2) { color: var(--red); }
.candidate-card { min-width: 0; scroll-margin-top: 120px; }
.candidate-button { border: 0; padding: 0; width: 100%; height: 100%; background: none; color: inherit; text-align: left; display: flex; flex-direction: column; }
.candidate-photo { width: 100%; aspect-ratio: 4 / 5; position: relative; overflow: hidden; background: var(--white); }
.candidate-photo > img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; transition: transform .35s; }
.candidate-button:hover .candidate-photo > img { transform: scale(1.035); }
.candidate-number { position: absolute; left: 0; bottom: 0; width: 58px; height: 58px; display: grid; place-items: center; background: var(--navy); color: var(--white); font-size: 22px; font-weight: 700; }
.candidate-card:nth-child(3n + 2) .candidate-number { background: var(--red); }
.candidate-card:nth-child(3n) .candidate-number { background: var(--yellow); color: var(--navy); }
.card-arrow { position: absolute; bottom: 0; right: 0; width: 48px; height: 48px; background: var(--white); color: var(--navy); display: grid; place-items: center; font-size: 26px; transition: background .2s; }
.card-arrow svg { width: 20.8px; height: 20.8px; }
.candidate-button:hover .card-arrow { background: var(--yellow); }
.candidate-copy { padding-top: 21px; }
.candidate-name { margin: 0 0 10px; color: var(--navy); font-size: clamp(18px, 1.7vw, 24px); line-height: 1.25; font-weight: 700; letter-spacing: -.025em; }
.candidate-profession { margin: 0 0 12px; font-size: 16.1px; line-height: 1.6; }
.candidate-location { color: var(--red); font-size: 13.8px; font-weight: 700; line-height: 1.5; margin: 0; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; }
.location-pin { flex: none; fill: var(--red); }
.candidate-location .location-pin { width: 20px; height: 21.25px; }
.location-pin circle { fill: var(--white); }
.view-all-wrap { margin-top: 48px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.candidate-count { font-size: 12px; letter-spacing: .12em; color: var(--muted); }
.view-all-wrap .button { width: 190px; max-width: 100%; gap: 20px; font-size: 17.5px; }
.summary-section { overflow-x: clip; overflow-y: visible; background: var(--navy); color: var(--white); padding-block: clamp(56px, 6vw, 88px); }
.summary-inner { display: grid; grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); gap: 40px; align-items: start; }
.summary-inner h2 { margin: 0; color: var(--white); font-size: clamp(32px, 3.5vw, 52px); font-weight: 800; line-height: 1.18; letter-spacing: -.04em; overflow-wrap: break-word; }
.summary-artwork { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .72fr); align-items: center; gap: 0; width: min(100%, 590px); margin-top: clamp(24px, 3vw, 40px); }
.summary-artwork img { width: 100%; height: auto; filter: brightness(0) invert(1); }
.summary-wordmark { position: relative; display: grid; min-width: 0; }
.summary-wordmark img { grid-area: 1 / 1; position: relative; top: -50px; transform: scale(1.2); transform-origin: right center; }
.summary-program { grid-area: 1 / 1; justify-self: start; align-self: end; position: relative; top: 64px; border-radius: 0; white-space: nowrap; transition: background-color 180ms ease; }
.summary-program:hover { transform: none; }
.summary-program:disabled { background: var(--red); color: var(--white); cursor: default; opacity: 1; }
.summary-program:not(:disabled):hover { background: var(--yellow); color: var(--navy); }
.summary-program:not(:disabled):active { background: #a32229; color: var(--white); }
@media (min-width: 801px) {
  .summary-artwork { container-type: inline-size; }
  /* Reserve the painted SVG bounds (y=7.996, height=65.113 of 267 units).
     The existing first column is 1 / 1.72 of the artwork, rendered at 120%. */
  .summary-wordmark { grid-template-rows: calc(100cqw / 1.72 * 1.2 * 65.113 / 267) 52px; row-gap: 22px; }
  .summary-wordmark img { justify-self: end; align-self: start; width: 120%; max-width: none; top: calc(-100cqw / 1.72 * 1.2 * 7.996 / 267 - 38px); transform: none; }
  .summary-program { grid-area: 2 / 1; align-self: start; top: auto; }
}
.summary-artwork > img { position: relative; z-index: 1; filter: url(#summary-number-colors); }
.summary-color-filter { position: absolute; width: 0; height: 0; overflow: hidden; }
.summary-copy { min-width: 0; max-width: 62ch; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.65; }
.summary-copy p { margin: 0; text-wrap: balance; }
.summary-copy p + p { margin-top: 26px; }
.summary-copy strong { font-weight: 700; }
.summary-copy p:last-child { font-weight: 700; }
.summary-lead-initial { color: var(--red); }
.testimonials-section { position: relative; background: var(--white); padding-block: calc(6.4453125vw + 32px) clamp(56px, 6vw, 84px); }
.summary-bottom-art { position: absolute; top: 0; left: 0; display: block; width: 100%; height: auto; transform: translateY(-45%); pointer-events: none; }
.testimonial-heading { position: relative; }
.testimonial-crest { display: none; }
@media (min-width: 1200px) {
  .testimonial-crest { display: block; position: absolute; left: calc(clamp(572px, 66vw, 880px) + 64px); top: calc(50% - 11px); transform: translateY(-50%); height: 148px; width: auto; }
}
.testimonials-section h2 { max-width: 22em; text-wrap: balance; margin: 0 0 clamp(28px, 3vw, 44px); color: var(--navy); font-size: clamp(26px, 3vw, 40px); font-weight: 500; line-height: 1.13; letter-spacing: -.035em; overflow-wrap: break-word; }
.testimonials-section h2::after { content: ''; display: block; width: 68px; height: 4px; margin-top: 18px; background: var(--red); }
.testimonial-slide { display: grid; grid-template-columns: minmax(0, 30%) minmax(0, 1fr); align-items: center; gap: clamp(60px, 4.5vw, 70px); }
.testimonial-photo { position: relative; min-width: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--white); }
.testimonial-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.testimonial-copy { min-width: 0; max-width: 65ch; }
.testimonial-text-stack { display: grid; }
/* All six entries size the shared row, including at narrow widths and after font loading. */
.testimonial-text { grid-area: 1 / 1; min-width: 0; }
.testimonial-layer { opacity: 0; pointer-events: none; }
.testimonial-layer.is-active { opacity: 1; pointer-events: auto; }
.testimonial-name { margin: 0 0 12px; color: var(--navy); font-size: clamp(32px, 3.5vw, 48px); font-weight: 800; line-height: 1.12; letter-spacing: -.035em; }
.testimonial-role { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; font-weight: 600; }
.testimonial-quote { margin: clamp(26px, 3vw, 40px) 0 28px; color: var(--ink); font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; text-wrap: pretty; }
.testimonial-profile { min-height: 48px; max-width: 100%; padding: 8px 0; border: 0; border-bottom: 3px solid var(--red); border-radius: 0; background: transparent; color: var(--navy); font-size: 18.4px; font-weight: 700; cursor: pointer; transition: color 180ms ease; }
.testimonial-profile-arrow { display: inline-block; margin-left: 6px; vertical-align: -.08em; transition: transform 180ms ease; }
@media (hover: hover) and (pointer: fine) { .testimonial-profile:hover .testimonial-profile-arrow { transform: translate(2px, -2px); } }
@media (prefers-reduced-motion: reduce) { .testimonial-profile-arrow { transition: none; } .testimonial-profile:hover .testimonial-profile-arrow { transform: none; } }
@media (hover: hover) and (pointer: fine) {
  .testimonial-profile:hover { color: var(--red); }
}
.testimonial-profile:active { color: var(--red); }
.testimonial-actions { display: flex; flex-direction: column; align-items: stretch; align-self: flex-start; width: fit-content; gap: 22px; }
.testimonial-actions .testimonial-profile { flex: none; white-space: nowrap; }
.testimonial-actions .testimonial-controls { flex: none; width: 100%; }
.testimonial-controls { position: relative; display: flex; justify-content: space-between; direction: ltr; align-items: center; min-height: 48px; }
.testimonial-dot { position: absolute; top: 0; width: 48px; height: 48px; padding: 0; border: 0; background: transparent; transform: translateX(-50%); cursor: pointer; }
.testimonial-dot::after { content: ''; position: absolute; left: calc(50% - 8px); top: 16px; width: 16px; height: 16px; border-radius: 50%; background: var(--navy); }
.testimonial-dot.is-covered::after { visibility: hidden; }
.testimonial-indicator { position: absolute; left: 0; top: 16px; width: 16px; height: 16px; border-radius: 999px; background: #F5B800; pointer-events: none; }
.testimonial-dot:focus-visible { outline: none; }
.testimonial-dot:focus-visible::after, .testimonial-profile:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.campaign-section { background: var(--red); padding-block: clamp(80px, 6vw, 100px); }
.campaign-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 260px) minmax(0, 1fr); align-items: center; gap: clamp(24px, 3vw, 44px); }
.campaign-number { display: grid; place-items: center; }
.campaign-number-art { position: relative; }
.campaign-number img { width: clamp(200px, 18vw, 260px); height: auto; filter: url(#campaign-number-colors); }
.campaign-circle-trace { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.campaign-circle-trace path { fill: none; stroke: var(--white); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; }
.campaign-color-filter { position: absolute; width: 0; height: 0; overflow: hidden; }
.campaign-statement { position: relative; }
.campaign-statement h2 { font-size: clamp(30px, 3.2vw, 48px); line-height: 1.2; letter-spacing: -.04em; color: var(--white); font-weight: 800; margin: 0; }
.campaign-script-state { position: absolute; top: 50%; left: 0; width: min(100%, 360px); height: auto; opacity: 0; visibility: hidden; transform: translateY(calc(-50% + 16px)); filter: brightness(0) invert(1); pointer-events: none; }
@media (min-width: 701px) {
  .campaign-script-state { width: min(120%, 432px, calc(100% + clamp(20px, calc(10vw - 57px), 80px))); }
}
.campaign-logo { justify-self: end; width: clamp(216px, 19.2vw, 270px); height: auto; }
@media (prefers-reduced-motion: no-preference) {
  .campaign-statement h2 { animation: campaign-slogan 5s ease-in-out infinite; }
  .campaign-script-state { animation: campaign-script 5s ease-in-out infinite; }
  .campaign-circle-trace path { animation: campaign-trace 5s linear infinite; }
}
@keyframes campaign-slogan {
  0%, 53.333% { opacity: 1; transform: translateY(0); }
  59.167%, 91.667% { opacity: 0; transform: translateY(-16px); }
  97.5%, 100% { opacity: 1; transform: translateY(0); }
}
@keyframes campaign-script {
  0%, 53.333% { opacity: 0; visibility: hidden; transform: translateY(calc(-50% + 16px)); }
  59.167%, 85.833% { opacity: 1; visibility: visible; transform: translateY(-50%); }
  91.667%, 100% { opacity: 0; visibility: hidden; transform: translateY(calc(-50% - 16px)); }
}
@keyframes campaign-trace {
  0%, 53.333% { stroke-dashoffset: 100; opacity: 0; }
  54% { opacity: .8; }
  67.333% { stroke-dashoffset: 0; opacity: .8; }
  76%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
.site-footer { background: var(--navy); color: var(--white); }
.footer-brand-band { background: var(--white); padding-block: 36px; }
.footer-socials { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px clamp(40px, 8vw, 100px); }
.footer-social-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--navy); font-size: 16px; font-weight: 700; transition: color .2s; }
.footer-social-link:hover { color: var(--red); }
.footer-social-link svg { flex: none; }
.footer-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-copyright { margin: 0; color: var(--white); font-size: 13px; font-weight: 500; line-height: 1.4; opacity: .85; }
.footer-top { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border: 1px solid var(--white); border-radius: 50%; font-size: 23px; }
.footer-top:hover { background: var(--yellow); color: var(--navy); }
.program-page main { container-type: inline-size; }
.program-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, min(800px, 100%)) minmax(0, 1fr); width: min(1100px, calc(100% - var(--space) * 2)); margin-inline: auto; padding-block: clamp(64px, 7vw, 104px) clamp(72px, 9vw, 128px); }
.program-intro { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; padding-bottom: clamp(28px, 4vw, 48px); }
.program-intro-copy { grid-column: 2; padding-left: 68px; }
.program-intro-mark { grid-column: 3; justify-self: end; width: 300px; max-width: none; height: auto; }
.program-intro h1 { margin: 0; color: var(--navy); font-size: clamp(38px, 5vw, 64px); font-weight: 800; line-height: 1.1; letter-spacing: -.045em; }
.program-intro h1::after { content: ''; display: block; width: 72px; height: 5px; margin-top: 24px; background: var(--red); }
.program-intro p { margin: 28px 0 0; color: var(--navy); font-size: clamp(22px, 3vw, 30px); font-weight: 700; line-height: 1.35; }
.program-sections { grid-column: 2; width: 100%; margin: 0; padding: 0; list-style: none; counter-reset: program-section; }
.program-sections li { position: relative; padding: clamp(42px, 5vw, 60px) 0 clamp(42px, 5vw, 60px) 68px; border-bottom: 1px solid var(--line); counter-increment: program-section; }
.program-sections li::before { content: counter(program-section, decimal-leading-zero); position: absolute; top: clamp(42px, 5vw, 60px); left: 0; color: var(--red); font-size: 20px; font-weight: 800; line-height: 1.3; }
.program-sections h2 { margin: 0 0 22px; color: var(--navy); font-size: clamp(25px, 3vw, 34px); font-weight: 800; line-height: 1.2; letter-spacing: -.025em; }
.program-sections p { margin: 0; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.85; overflow-wrap: break-word; }
.program-ornament { grid-column: 1 / -1; justify-self: center; display: flex; justify-content: center; width: 100cqw; }
.program-ornament img { flex: none; width: 100%; max-width: none; height: auto; }
@media (min-width: 701px) and (max-width: 1000px) {
  .program-intro-mark { width: 200px; }
}
@media (max-width: 700px) {
  .program-content { grid-template-columns: minmax(0, 1fr); padding-block: 52px 72px; }
  .program-intro { grid-column: 1; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: 28px; }
  .program-intro-copy, .program-intro-mark, .program-sections { grid-column: 1; }
  .program-intro-copy { padding-left: 44px; }
  .program-intro-mark { justify-self: end; width: min(40vw, 160px); }
  .program-sections li { padding: 38px 0 42px 44px; }
  .program-sections li::before { top: 38px; }
  .program-sections h2 { margin-bottom: 16px; }
  .program-ornament { overflow: hidden; }
  .program-ornament img { width: 300vw; }
}
.candidate-dialog { padding: 0; border: 0; border-radius: 10px; width: min(1210px, calc(100% - 48px)); max-height: 90dvh; color: var(--ink); background: var(--white); box-shadow: 0 24px 70px rgb(0 0 0 / .22); overflow-y: auto; overscroll-behavior: contain; }
.candidate-dialog::backdrop { background: rgb(33 58 119 / .66); backdrop-filter: blur(3px); }
.dialog-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 14px clamp(30px, 4vw, 56px) 0; position: sticky; top: 0; background: var(--white); z-index: 3; }
.dialog-toolbar > span { font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.icon-button { width: 44px; height: 44px; border: 0; color: var(--navy); background: var(--white); font-size: 30px; line-height: 1; }
.icon-button:hover { background: var(--yellow); }
.detail-layout { padding: 20px clamp(30px, 4vw, 56px) 32px; display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr); gap: clamp(32px, 4.5vw, 64px); align-items: start; }
.detail-photo-wrap { position: relative; overflow: hidden; aspect-ratio: 4 / 5; min-width: 0; }
.detail-photo-wrap > #detail-photo { width: 100%; height: 100%; object-fit: contain; }
.detail-photo-wave { position: absolute; left: calc(50% + var(--wave-offset, 0%)); bottom: -1px; width: 235%; max-width: none; height: auto; transform: translateX(-50%); pointer-events: none; }
.detail-copy { min-width: 0; padding-top: 18px; }
.detail-number { display: inline-grid; place-items: center; min-width: 38px; height: 38px; background: var(--yellow); color: var(--navy); font-size: 14px; font-weight: 800; margin-bottom: 18px; }
.detail-copy h2 { margin: 0 0 16px; font-size: clamp(30px, 3.25vw, 46px); line-height: 1.13; letter-spacing: -.04em; color: var(--navy); }
.detail-profession { font-size: 16px; line-height: 1.6; margin: 0 0 10px; font-weight: 600; }
.detail-location { display: flex; align-items: center; gap: 6px; font-size: 14px; line-height: 1.6; color: var(--red); font-weight: 700; margin: 0; }
.detail-location .location-pin { flex: 0 0 16px; }
.detail-biography { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: break-word; max-width: 62ch; }
.detail-navigation { position: sticky; bottom: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px clamp(30px, 4vw, 56px) 18px; border-top: 1px solid var(--line); background: var(--white); }
.detail-nav-button { display: inline-flex; align-items: center; gap: 14px; min-height: 56px; padding: 4px 16px 4px 4px; border: 1px solid var(--navy); border-radius: 999px; background: var(--white); color: var(--navy); font-size: 16px; font-weight: 700; transition: background .2s, color .2s, box-shadow .2s; }
#next-candidate { padding: 4px 4px 4px 16px; }
.detail-nav-number { min-width: 2ch; text-align: center; font-variant-numeric: tabular-nums; }
.detail-nav-arrow { display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--white); transition: background .2s; }
.detail-nav-arrow svg { display: block; transition: transform .2s; }
.detail-nav-button:hover { background: var(--navy); color: var(--white); box-shadow: 0 5px 12px rgb(33 58 119 / .18); }
.detail-nav-button:hover .detail-nav-arrow { background: var(--red); }
#previous-candidate:hover svg { transform: translateX(-3px); }
#next-candidate:hover svg { transform: translateX(3px); }
.detail-nav-button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
@media (max-width: 1000px) {
  .candidate-closing-slogan { grid-column: 1 / -1; padding-left: 0; }
  .hero-message { top: -45px; }
  .brand img { width: 218px; }
  .navigation { gap: 22px; }
  .nav-link { font-size: 13px; }
  .site-header .header-cta { padding-inline: 18px; font-size: 13px; }
  .candidate-grid { gap: 36px 20px; }
  .campaign-inner { gap: 24px; grid-template-columns: minmax(0, 1fr) minmax(170px, 220px) minmax(0, 1fr); }
}
@media (max-width: 800px) {
  .summary-desktop-break { display: none; }
  .candidate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .summary-inner h2 { font-size: clamp(30px, 5.5vw, 42px); }
  .summary-artwork { width: min(100%, 520px); margin-top: 28px; }
}
@media (max-width: 767px) {
  .candidate-dialog { width: calc(100% - 12px); max-height: calc(100dvh - 12px); min-height: calc(100dvh - 12px); }
  .dialog-toolbar { padding: max(8px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left)); }
  .detail-layout { grid-template-columns: 1fr; gap: 24px; padding: 10px max(18px, env(safe-area-inset-right)) 24px max(18px, env(safe-area-inset-left)); }
  .detail-photo-wrap { width: min(100%, 370px); margin-inline: auto; }
  .detail-copy { padding-top: 0; }
  .detail-copy h2 { font-size: clamp(28px, 6vw, 36px); }
  .detail-navigation { padding: 8px max(18px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); }
}
@media (max-width: 700px) {
  .testimonial-slide { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .testimonial-photo { width: min(100%, 460px); margin-inline: auto; }
  .testimonial-copy { max-width: none; padding-top: 0; }
  .testimonials-section h2 { font-size: clamp(24px, 5.5vw, 32px); }
  .hero-message { position: static; z-index: auto; }
  html { scroll-padding-top: 96px; }
  .header-inner { min-height: 72px; }
  .brand img { width: min(207px, calc(100vw - 108px)); }
  .menu-toggle:not([hidden]) { width: 44px; height: 44px; padding: 10px; display: flex; flex-direction: column; justify-content: center; gap: 7px; border: 0; background: var(--white); }
  .menu-toggle span { width: 24px; height: 2px; background: var(--navy); transition: transform .2s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .menu-toggle:not([hidden]) + .navigation { display: none; }
  .menu-toggle:not([hidden]) + .navigation.is-open { display: flex; }
  .navigation { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; padding: 20px var(--space) 24px; gap: 20px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 8px 12px transparent; }
  .nav-link { font-size: 15px; }
  .hero-inner { padding-top: 28px; padding-bottom: 36px; grid-template-columns: 1fr; gap: clamp(18px, 4vw, 26px); }
  .hero-artwork { grid-template-columns: minmax(0, 1fr) minmax(0, .52fr); gap: 8px; max-width: 460px; margin: 0 0 18px; }
  .hero-script { transform: none; }
  .hero-number { position: static; z-index: auto; scale: 1; }
  .hero h1 { font-size: clamp(28px, 6.6vw, 38px); max-width: 510px; }
  .hero-date { margin-top: 20px; font-size: 14px; }
  .hero-composition { display: none; }
  .hero-bottom-frame, .summary-bottom-frame { display: flex; justify-content: center; overflow: hidden; }
  .hero-bottom-art, .summary-bottom-art { position: static; z-index: auto; flex: none; width: 300vw; max-width: none; height: auto; }
  .summary-section { padding-bottom: calc(15.8203125vw + 26px); }
  .summary-bottom-frame { position: absolute; top: 0; left: 0; right: 0; transform: translateY(-45%); }
  .summary-bottom-art { transform: none; }
  .testimonials-section { padding-top: calc(19.3359375vw + 32px); }
  .summary-artwork { width: min(100%, 440px); grid-template-columns: minmax(0, 1fr) clamp(95px, 30vw, 125px); gap: 12px; margin-inline: 0; }
  .summary-wordmark img { top: -32px; left: -18px; transform: none; }
  .summary-artwork { padding-bottom: 40px; }
  .candidates-section { padding-top: 48px; }
  .section-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; justify-content: normal; align-items: center; gap: 12px; margin-inline: 4px; padding-bottom: 22px; margin-bottom: 28px; }
  .section-heading h2 { grid-column: 1; grid-row: 1; font-size: clamp(23px, 6.6vw, 30px); }
  .section-heading .heading-intro, .section-heading .heading-subject, .section-heading .heading-subline-first, .section-heading .heading-subline-last { display: block; }
  .section-heading .heading-subline { font-size: clamp(16px, 4.65vw, 21px); }
  .section-mark { grid-column: 2; grid-row: 1; justify-self: end; align-self: center; position: relative; top: -8px; width: clamp(73px, 20vw, 88px); }
  .campaign-section { padding-block: 44px; }
  .campaign-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 16px 12px; }
  .campaign-statement { grid-column: 1; grid-row: 1; min-width: 0; }
  .campaign-statement h2 { font-size: clamp(17px, 5.35vw, 24px); }
  .campaign-number { grid-column: 2; grid-row: 1; }
  .campaign-number img { width: clamp(103px, 32.4vw, 138px); }
  .campaign-logo { grid-column: 1; grid-row: 2; justify-self: start; width: clamp(150px, 42vw, 170px); }
  .footer-brand-band { padding-block: 32px; }
  .footer-inner { min-height: 72px; gap: 12px; }
}
@media (max-width: 520px) {
  .summary-artwork { margin-top: 24px; }
  .candidate-closing-slogan { font-size: clamp(28px, 8.5vw, 40px); }
  .testimonial-name { font-size: 30px; }
  .testimonial-quote { margin-block: 26px; }
  .candidate-grid { grid-template-columns: 1fr; gap: 36px; }
  .candidate-photo { aspect-ratio: 4 / 4.6; }
  .candidate-name { font-size: 23px; }
  .candidate-copy { padding-top: 18px; }
  .candidate-profession { font-size: 16.1px; }
}
@media (max-width: 340px) {
  .campaign-statement h2 { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
