/* ==========================================================================
   Miss New Story 2027 — design system
   ========================================================================== */

:root {
  --ink: #1e0d12;
  --ink-soft: #2c121a;
  --ink-3: #3f1924;
  --cream: #f7efe4;
  --paper: #fdf9f3;
  --paper-2: #efe3d2;
  --paper-3: #e4d4be;
  --gold: #c89d54;
  --gold-light: #ebd6a7;
  --gold-ink: #7d5822;
  --gold-deep: #5c3e14;
  --rose: #c98276;
  --sage: #b48b7d;
  --wine: #7d1d2c;
  --crimson: #942234;
  --text: #2a181d;
  --muted: #6f5c60;
  --muted-dark: #bda9ad;
  --line: rgba(30, 13, 18, 0.14);
  --line-light: rgba(247, 239, 228, 0.17);
  --serif: "Cormorant Garamond", "Bodoni MT", Didot, Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --container: min(100% - 80px, 1320px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 30px 80px rgba(30, 13, 18, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body:has(dialog[open]) {
  overflow: hidden;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

h1,
h2,
h3,
h4,
p,
figure,
dl,
dd {
  margin: 0;
}

ol,
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--cream);
  font-size: 12px;
  letter-spacing: 0.08em;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(88px, 11vw, 168px) 0;
}

.display {
  font-family: var(--serif);
  font-size: clamp(52px, 6.4vw, 92px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.035em;
}

.display em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-ink);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow-line {
  display: inline-block;
  width: 30px;
  height: 1px;
  flex: none;
  background: currentColor;
  opacity: 0.65;
}

.eyebrow-light {
  color: var(--gold-light);
}

.eyebrow-light em,
.eyebrow-light .eyebrow-line {
  color: var(--gold);
}

.status-dot {
  position: relative;
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: #8fbd96;
  box-shadow: 0 0 0 3px rgba(143, 189, 150, 0.12);
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(143, 189, 150, 0.55);
  border-radius: 50%;
  animation: pulse 2.8s ease-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.7);
    opacity: 0.9;
  }
  70%,
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.lock-mini {
  display: inline-block;
  width: 11px;
  height: 11px;
  flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.8' d='M6 10V7a6 6 0 0 1 12 0v3M4.5 10h15v11h-15z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.8' d='M6 10V7a6 6 0 0 1 12 0v3M4.5 10h15v11h-15z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Buttons / links ---------- */

.btn {
  --btn-bg: transparent;
  --btn-color: var(--ink);
  --btn-border: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 13px 24px;
  border: 1px solid var(--btn-border);
  border-radius: 0;
  background: var(--btn-bg);
  color: var(--btn-color);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
  transition:
    background 0.3s var(--ease),
    color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.btn span[aria-hidden] {
  font-size: 14px;
  line-height: 1;
  transition: transform 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:hover span[aria-hidden] {
  transform: translate(2px, -2px);
}

.btn-primary {
  --btn-bg: var(--ink);
  --btn-color: var(--cream);
  --btn-border: var(--ink);
}

.btn-primary:hover {
  --btn-bg: var(--gold);
  --btn-color: var(--ink);
  --btn-border: var(--gold);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--muted);
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.btn-gold {
  --btn-bg: var(--gold);
  --btn-color: var(--ink);
  --btn-border: var(--gold);
}

.btn-gold:hover {
  --btn-bg: var(--cream);
  --btn-border: var(--cream);
}

.btn-small {
  min-height: 40px;
  padding: 10px 18px;
  font-size: 9px;
}

.btn-large {
  min-height: 56px;
  padding: 17px 30px;
}

.btn-full {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.55;
  transform: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(30, 13, 18, 0.3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    gap 0.25s ease;
}

.text-link:hover {
  color: var(--gold-ink);
  border-color: var(--gold-ink);
  gap: 12px;
}

.text-link-light {
  color: var(--gold-light);
  border-color: rgba(231, 211, 168, 0.4);
}

.text-link-light:hover {
  color: var(--paper);
  border-color: var(--paper);
}

/* ---------- Top bar ---------- */

.topbar {
  position: relative;
  z-index: 60;
  background: var(--ink);
  color: var(--cream);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 36px;
  padding-block: 8px;
}

.topbar p {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.topbar .status-dot {
  width: 5px;
  height: 5px;
}

.topbar-divider {
  width: 1px;
  height: 10px;
  background: var(--line-light);
}

.topbar-muted {
  color: rgba(244, 238, 225, 0.55);
}

.topbar-muted time {
  color: inherit;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  white-space: nowrap;
}

.topbar-link:hover {
  color: var(--paper);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 238, 225, 0.9);
  border-bottom: 1px solid rgba(30, 13, 18, 0.09);
  backdrop-filter: blur(16px);
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(251, 247, 239, 0.97);
  box-shadow: 0 10px 40px rgba(30, 13, 18, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(200, 157, 84, 0.55);
  box-shadow: 0 4px 14px rgba(30, 13, 18, 0.12);
  color: var(--gold);
  transition: transform 0.35s var(--ease), border-color 0.35s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.06);
  border-color: var(--gold);
}

.brand-type {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

.brand-year {
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 42px);
  margin-left: auto;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 1px;
  width: 100%;
  height: 1px;
  background: var(--gold-ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 17px;
  height: 1px;
  margin: 5px auto;
  background: var(--ink);
  transition:
    transform 0.3s var(--ease),
    opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  padding: 20px 32px 30px;
  background: var(--ink);
  color: var(--cream);
  border-top: 1px solid var(--line-light);
  box-shadow: 0 30px 50px rgba(22, 8, 13, 0.25);
}

.mobile-nav a {
  padding: 16px 0;
  border-bottom: 1px solid var(--line-light);
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
}

.mobile-nav .mobile-nav-cta {
  margin-top: 18px;
  padding: 16px;
  border: 0;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 32%, rgba(200, 157, 84, 0.18), transparent 34%),
    radial-gradient(circle at 22% 18%, rgba(125, 29, 44, 0.06), transparent 38%),
    linear-gradient(180deg, var(--cream) 0%, #fbf5eb 72%, var(--cream) 100%);
  border-bottom: 1px solid var(--line);
}

.hero-texture,
.finale-texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: clamp(30px, 5vw, 84px);
  padding-top: clamp(45px, 6vw, 86px);
  padding-bottom: clamp(50px, 6vw, 80px);
}

.hero-copy {
  position: relative;
  z-index: 3;
  padding-bottom: 16px;
}

.hero-copy .eyebrow {
  margin-bottom: clamp(24px, 3.4vw, 44px);
}

.hero h1 {
  max-width: 760px;
  font-family: var(--serif);
  font-size: clamp(68px, 8.1vw, 128px);
  font-weight: 500;
  line-height: 0.82;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero h1 em {
  display: inline-block;
  font-weight: 400;
  font-style: italic;
  color: var(--gold-ink);
  padding-right: 0.03em;
}

.hero-lead {
  max-width: 468px;
  margin-top: clamp(26px, 3vw, 40px);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 38px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 520px;
  margin-top: clamp(44px, 5.5vw, 72px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hero-stats dt {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-stats dd {
  margin-top: 7px;
  font-family: var(--serif);
  font-size: clamp(23px, 2.4vw, 31px);
  line-height: 1;
  white-space: nowrap;
}

.hero-visual {
  position: relative;
  min-height: clamp(500px, 50vw, 690px);
}

.hero-sun {
  position: absolute;
  top: 4%;
  right: 2%;
  width: 76%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 161, 91, 0.22), rgba(198, 161, 91, 0.03) 58%, transparent 70%);
}

.hero-arch {
  position: absolute;
  overflow: hidden;
  border-radius: 50% 50% 2px 2px / 34% 34% 2px 2px;
  background: var(--paper-2);
  box-shadow: var(--shadow);
}

.hero-arch::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(251, 247, 239, 0.34);
  border-radius: inherit;
  pointer-events: none;
}

.hero-arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}

.hero-arch:hover img {
  transform: scale(1.025);
}

.hero-arch figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 38px 18px 16px;
  background: linear-gradient(transparent, rgba(20, 7, 12, 0.7));
  color: var(--paper);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-arch figcaption span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(244, 238, 225, 0.55);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0;
}

.hero-arch-main {
  top: 0;
  right: 3%;
  z-index: 2;
  width: 57%;
  aspect-ratio: 4 / 5;
  border: 10px solid var(--paper);
  outline: 1px solid rgba(124, 92, 40, 0.27);
  outline-offset: -11px;
}

.hero-arch-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 18px 56px;
  background:
    radial-gradient(circle at 50% 22%, rgba(200, 157, 84, 0.25), transparent 60%),
    linear-gradient(155deg, #2b1118 0%, #1e0d12 65%, #3d1521 100%);
  color: var(--cream);
  text-align: center;
}

.hero-arch-kicker,
.hero-arch-year {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.hero-arch-text em {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 38px);
  font-style: italic;
  line-height: 1.05;
  color: var(--paper);
}

.hero-arch-line {
  width: 36px;
  height: 1px;
  background: rgba(200, 157, 84, 0.55);
}

.hero-arch-secondary {
  left: 1%;
  bottom: 1%;
  z-index: 3;
  width: 39%;
  aspect-ratio: 4 / 4.6;
  border: 8px solid var(--paper);
  outline: 1px solid rgba(200, 157, 84, 0.42);
  outline-offset: -9px;
  transform: rotate(-2deg);
}

.hero-crest-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  background:
    radial-gradient(circle at 50% 22%, rgba(200, 157, 84, 0.25), transparent 60%),
    linear-gradient(155deg, #2b1118 0%, #1e0d12 65%, #3d1521 100%);
  color: var(--cream);
  text-align: center;
}

.hero-crest-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.hero-crest-crown {
  font-size: 24px;
  line-height: 1;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

.hero-crest-title {
  margin-top: 6px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.hero-crest-inner em {
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 34px);
  font-style: italic;
  line-height: 1;
  color: var(--paper);
}

.hero-crest-line {
  width: 36px;
  height: 1px;
  margin-block: 6px;
  background: rgba(200, 157, 84, 0.55);
}

.hero-crest-inner small {
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 239, 228, 0.65);
}

.hero-seal {
  position: absolute;
  top: 5%;
  left: 24%;
  z-index: 4;
  width: clamp(112px, 11vw, 154px);
  aspect-ratio: 1;
  color: var(--gold-ink);
}

.hero-seal svg {
  width: 100%;
  height: 100%;
  animation: spin 46s linear infinite;
}

.hero-seal text {
  fill: currentColor;
  font-family: var(--sans);
  font-size: 7.6px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-seal > span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  /* Le petit couronnement de l'écusson occupe le centre : on descend l'année
     sous la couronne pour qu'elle ne soit plus masquée (« 2♛7 »). */
  padding-top: 36%;
  font-family: var(--serif);
  font-size: clamp(20px, 2.1vw, 29px);
  letter-spacing: 0.02em;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hero-vote-tag {
  position: absolute;
  right: 0;
  bottom: 10%;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 18px;
  background: var(--paper);
  border: 1px solid rgba(124, 92, 40, 0.25);
  box-shadow: 0 16px 40px rgba(30, 13, 18, 0.1);
  font-size: 8.5px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-vote-tag strong {
  font-weight: 600;
  color: var(--ink);
}

.hero-side-note {
  position: absolute;
  top: 47%;
  right: -38px;
  z-index: 5;
  writing-mode: vertical-rl;
  font-size: 8px;
  line-height: 1.8;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-side-note span {
  color: var(--gold-ink);
}

.hero-bottom {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
}

.hero-bottom-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 54px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-bottom-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.hero-bottom-edition {
  color: var(--gold-ink);
}

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  padding: 13px 0;
  background: var(--ink);
  color: var(--gold-light);
  border-block: 1px solid rgba(198, 161, 91, 0.2);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 44s linear infinite;
}

.marquee span {
  display: block;
  padding-right: 42px;
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.marquee i {
  padding: 0 22px;
  font-size: 10px;
  font-style: normal;
  color: var(--gold);
  vertical-align: 2px;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Concept ---------- */

.concept {
  background: var(--cream);
}

.concept-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(40px, 7vw, 110px);
}

.concept-aside {
  position: relative;
  padding-top: 8px;
}

.outline-number {
  margin-top: 30px;
  font-family: var(--serif);
  font-size: clamp(96px, 11vw, 170px);
  line-height: 0.7;
  color: transparent;
  -webkit-text-stroke: 1px rgba(124, 92, 40, 0.4);
}

.concept-note {
  max-width: 200px;
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  line-height: 1.45;
}

.concept-content .display {
  max-width: 780px;
}

.concept-copy {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(30px, 5vw, 80px);
  margin-top: 48px;
  padding-bottom: 54px;
}

.concept-copy .lead {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 31px);
  line-height: 1.35;
  color: var(--text);
}

.concept-copy p:not(.lead) {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.85;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 42px);
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.pillar {
  position: relative;
  padding-right: 18px;
}

.pillar-index {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--gold-ink);
}

.pillar h3 {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
}

.pillar p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
}

/* ---------- Section header ---------- */

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(44px, 5vw, 68px);
}

.section-header > div:first-child .eyebrow {
  margin-bottom: 22px;
}

.section-header .display {
  font-size: clamp(48px, 6vw, 84px);
}

.section-intro {
  max-width: 370px;
  padding-bottom: 5px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.live-total {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  padding-bottom: 6px;
}

.live-total-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.live-total-top strong {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  line-height: 0.8;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.live-total-sub {
  font-size: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

/* ---------- Candidates ---------- */

.candidates-section {
  background:
    linear-gradient(180deg, rgba(251, 247, 239, 0.55), transparent 20%),
    var(--paper-2);
  border-block: 1px solid rgba(30, 13, 18, 0.08);
}

.vote-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: -18px 0 36px;
  padding: 14px 20px;
  background: rgba(198, 161, 91, 0.1);
  border: 1px solid rgba(124, 92, 40, 0.28);
  color: var(--gold-deep);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.vote-banner strong {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.candidates-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 30px);
}

.candidate-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--paper);
  border: 1px solid rgba(30, 13, 18, 0.1);
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease),
    border-color 0.3s ease;
}

.candidate-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 92, 40, 0.32);
  box-shadow: 0 26px 50px rgba(30, 13, 18, 0.09);
}

.candidate-card.is-voted {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold) inset;
}

.candidate-crest {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(200, 157, 84, 0.22), transparent 55%),
    linear-gradient(145deg, #2b1119 0%, #1e0d12 72%, #3a1420 100%);
  border-bottom: 1px solid rgba(200, 157, 84, 0.35);
  color: var(--cream);
}

.candidate-crest::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(235, 214, 167, 0.16);
  pointer-events: none;
}

.candidate-crest-button {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 20px 20px 18px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.candidate-number-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.candidate-kicker {
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(235, 214, 167, 0.72);
}

.candidate-number {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--gold-light);
}

.candidate-monogram {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(200, 157, 84, 0.52);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 157, 84, 0.18), rgba(30, 13, 18, 0.65));
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.35s var(--ease), border-color 0.35s ease;
}

.candidate-card:hover .candidate-monogram {
  transform: scale(1.06);
  border-color: var(--gold-light);
}

.candidate-crown {
  font-size: 11px;
  line-height: 1;
  margin-bottom: 1px;
}

.candidate-initials {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--paper);
}

.candidate-rank {
  position: absolute;
  top: 10px;
  right: 84px;
  z-index: 2;
  padding: 4px 9px;
  background: var(--gold);
  color: var(--ink);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.candidate-voted {
  position: absolute;
  left: 20px;
  bottom: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border: 1px solid rgba(200, 157, 84, 0.55);
  background: rgba(253, 249, 243, 0.95);
  color: var(--ink);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
}

.candidate-voted::before {
  content: "✓";
  font-size: 8.5px;
  color: var(--gold-ink);
}

.candidate-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 20px 20px;
}

.candidate-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.candidate-name {
  display: block;
  width: fit-content;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--serif);
  font-size: clamp(26px, 2.3vw, 33px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-align: left;
  transition: color 0.25s ease;
}

.candidate-name em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-ink);
}

.candidate-name:hover {
  color: var(--gold-ink);
}

.candidate-quote {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 11px;
  padding-left: 11px;
  border-left: 2px solid rgba(200, 157, 84, 0.55);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16.5px;
  font-style: italic;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.candidate-bio-preview {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.candidate-meter {
  margin-top: auto;
  padding-top: 17px;
}

.candidate-meter-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.candidate-meter-head strong {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
}

.candidate-meter-head span:last-child {
  font-variant-numeric: tabular-nums;
  color: var(--gold-ink);
}

.meter {
  overflow: hidden;
  height: 2px;
  margin-top: 8px;
  background: rgba(30, 13, 18, 0.12);
}

.meter-fill {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--gold);
  transition: width 0.9s var(--ease);
}

.candidate-actions {
  display: flex;
  gap: 7px;
  margin-top: 15px;
}

.btn-card {
  flex: 1;
  min-height: 38px;
  padding: 9px 12px;
  border-color: rgba(30, 13, 18, 0.25);
  font-size: 8.5px;
  letter-spacing: 0.12em;
}

.btn-card:hover:not(:disabled) {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.btn-card[disabled] {
  opacity: 1;
  border-color: rgba(30, 13, 18, 0.1);
  background: rgba(30, 13, 18, 0.035);
  color: var(--muted);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  min-height: 38px;
  flex: none;
  padding: 0;
  border: 1px solid rgba(30, 13, 18, 0.25);
  background: transparent;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.icon-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.icon-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.candidate-skeleton {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 0 20px;
  background: rgba(251, 247, 239, 0.6);
  border: 1px solid rgba(30, 13, 18, 0.07);
}

.candidate-skeleton > div {
  height: 92px;
}

.candidate-skeleton > span {
  display: block;
  height: 9px;
  margin: 0 18px;
}

.candidate-skeleton > span:nth-child(3) {
  width: 52%;
}

.candidate-skeleton > div,
.candidate-skeleton > span {
  background: linear-gradient(100deg, rgba(198, 161, 91, 0.08) 20%, rgba(198, 161, 91, 0.22) 40%, rgba(198, 161, 91, 0.08) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.8s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

.grid-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.grid-footer p {
  font-size: 10.5px;
  color: var(--muted);
}

.grid-footer .text-link {
  margin-left: 8px;
  font-size: 9px;
}

.grid-footer-note {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 8.5px !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-ink) !important;
}

.noscript-note {
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--paper);
  text-align: center;
}

.grid-error {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: clamp(40px, 7vw, 80px) 26px;
  border: 1px solid rgba(124, 92, 40, 0.3);
  background:
    radial-gradient(circle at 50% 0%, rgba(198, 161, 91, 0.16), transparent 55%),
    var(--paper);
  text-align: center;
}

.grid-error > span {
  font-size: 20px;
  color: var(--gold-ink);
}

.grid-error h3 {
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 500;
  line-height: 1;
}

.grid-error p {
  max-width: 460px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
}

.grid-error .btn {
  margin-top: 14px;
}

/* ---------- Leaderboard ---------- */

.leaderboard-section {
  background:
    radial-gradient(circle at 22% 35%, rgba(200, 157, 84, 0.14), transparent 32%),
    radial-gradient(circle at 82% 75%, rgba(125, 29, 44, 0.25), transparent 40%),
    linear-gradient(150deg, #17090e, #2b1119 58%, #1e0d12);
  color: var(--cream);
}

.leaderboard-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
  gap: clamp(44px, 7vw, 110px);
}

.leaderboard-intro .display {
  margin-top: 26px;
  color: var(--cream);
}

.leaderboard-intro .display em {
  color: var(--gold-light);
}

.leaderboard-intro > p {
  max-width: 330px;
  margin-top: 30px;
  color: var(--muted-dark);
  font-size: 13.5px;
  line-height: 1.8;
}

.leaderboard-meta {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 36px 0;
  padding: 20px 0;
  border-block: 1px solid var(--line-light);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.leaderboard-meta span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.leaderboard-panel {
  border: 1px solid rgba(198, 161, 91, 0.25);
  background: rgba(251, 247, 239, 0.025);
  padding: 0 26px;
}

.leaderboard-head {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 72px;
  gap: 16px;
  padding: 18px 0 12px;
  border-bottom: 1px solid var(--line-light);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(231, 211, 168, 0.62);
}

.leaderboard-head span:last-child {
  text-align: right;
}

.leaderboard-list {
  counter-reset: rank;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-light);
  transition: background 0.25s ease;
}

.leaderboard-row:hover {
  background: rgba(198, 161, 91, 0.04);
}

.leaderboard-rank {
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1;
  color: rgba(244, 238, 225, 0.48);
  font-variant-numeric: tabular-nums;
}

.leaderboard-row.is-top .leaderboard-rank {
  color: var(--gold-light);
}

.leaderboard-row.is-first .leaderboard-rank::after {
  content: " ✦";
  font-size: 9px;
  vertical-align: 4px;
  color: var(--gold);
}

.leaderboard-candidate {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.leaderboard-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  overflow: hidden;
  border: 1px solid rgba(200, 157, 84, 0.45);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 157, 84, 0.18), var(--ink-soft));
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--gold-light);
}

.leaderboard-info {
  min-width: 0;
  flex: 1;
}

.leaderboard-name {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1;
  color: var(--cream);
}

.leaderboard-name em {
  font-weight: 400;
  font-style: italic;
  color: rgba(244, 238, 225, 0.7);
}

.leaderboard-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 238, 225, 0.42);
}

.leaderboard-mini-meter {
  width: 100%;
  height: 1px;
  margin-top: 7px;
  background: rgba(244, 238, 225, 0.11);
}

.leaderboard-mini-meter span {
  display: block;
  height: 100%;
  background: var(--gold);
}

.leaderboard-votes {
  text-align: right;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}

.leaderboard-votes span {
  display: block;
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 238, 225, 0.38);
}

.leaderboard-loading {
  padding: 32px 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted-dark);
}

.leaderboard-empty {
  padding: 28px 0;
  border-bottom: 1px solid var(--line-light);
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  color: var(--gold-light);
  text-align: center;
}

.leaderboard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  font-size: 8px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(244, 238, 225, 0.42);
}

.leaderboard-foot span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.leaderboard-foot span:last-child {
  color: var(--gold-light);
}

/* ---------- Process ---------- */

.process-section {
  background: var(--cream);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 50px);
}

.process-card {
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.process-num {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--gold-ink);
}

.process-icon {
  width: 48px;
  height: 48px;
  margin-top: clamp(34px, 4vw, 60px);
  color: var(--gold-ink);
}

.process-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
}

.process-card h3 {
  margin-top: 24px;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
}

.process-card p {
  max-width: 300px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
}

.security-panel {
  position: relative;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 150px;
  align-items: center;
  gap: clamp(26px, 4vw, 55px);
  margin-top: clamp(64px, 8vw, 110px);
  padding: clamp(30px, 4.5vw, 58px);
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 25%, rgba(198, 161, 91, 0.16), transparent 35%),
    var(--ink);
  border: 1px solid rgba(198, 161, 91, 0.32);
  color: var(--cream);
}

.security-panel::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(244, 238, 225, 0.08);
  pointer-events: none;
}

.security-mark {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border: 1px solid rgba(198, 161, 91, 0.4);
  border-radius: 50%;
  color: var(--gold-light);
}

.security-mark svg {
  width: 33px;
  height: 33px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
}

.security-copy {
  position: relative;
  z-index: 1;
}

.security-copy .eyebrow {
  margin-bottom: 16px;
}

.security-copy h3 {
  max-width: 680px;
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 500;
  line-height: 1;
}

.security-copy h3 em {
  color: var(--gold-light);
  font-weight: 400;
}

.security-copy > p {
  max-width: 650px;
  margin-top: 16px;
  color: var(--muted-dark);
  font-size: 12.5px;
  line-height: 1.8;
}

.security-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin: 22px 0 26px;
}

.security-list li {
  position: relative;
  padding-left: 14px;
  font-size: 10px;
  color: rgba(244, 238, 225, 0.72);
}

.security-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-size: 7px;
}

.security-list code {
  font-family: inherit;
  color: var(--gold-light);
}

.security-stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 132px;
  border: 1px solid rgba(198, 161, 91, 0.45);
  border-radius: 50%;
  color: var(--gold-light);
  text-align: center;
  transform: rotate(7deg);
}

.security-stamp span:first-child {
  font-family: var(--serif);
  font-size: 45px;
  line-height: 0.85;
}

.security-stamp span:last-child {
  margin-top: 5px;
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ---------- Finale ---------- */

.finale {
  position: relative;
  overflow: hidden;
  padding: clamp(90px, 11vw, 150px) 0;
  background:
    radial-gradient(circle at 50% 36%, rgba(200, 157, 84, 0.2), transparent 36%),
    radial-gradient(circle at 20% 80%, rgba(125, 29, 44, 0.26), transparent 42%),
    linear-gradient(145deg, #17090e, #2d121a 60%, #1e0d12);
  color: var(--cream);
  text-align: center;
}

.finale::before {
  content: "";
  position: absolute;
  top: 12%;
  left: 50%;
  width: min(900px, 82vw);
  aspect-ratio: 1;
  border: 1px solid rgba(198, 161, 91, 0.13);
  border-radius: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.finale-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.finale .eyebrow {
  justify-content: center;
}

.finale h2 {
  margin-top: 24px;
  font-size: clamp(58px, 8vw, 112px);
  line-height: 0.86;
  color: var(--cream);
}

.finale h2 em {
  color: var(--gold-light);
}

.finale-copy {
  max-width: 430px;
  margin-top: 26px;
  color: var(--muted-dark);
  font-size: 13px;
  line-height: 1.8;
}

.countdown-large {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(12px, 2.4vw, 32px);
  margin: clamp(36px, 4.5vw, 58px) 0;
}

.countdown-large div {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: clamp(58px, 7vw, 90px);
}

.countdown-large strong {
  font-family: var(--serif);
  font-size: clamp(42px, 5.6vw, 74px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}

.countdown-large span {
  margin-top: 9px;
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 238, 225, 0.48);
}

.countdown-large i {
  font-family: var(--serif);
  font-style: normal;
  font-size: clamp(26px, 3.4vw, 46px);
  line-height: 1;
  color: var(--gold);
  opacity: 0.6;
}

.finale-fine {
  margin-top: 20px;
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 238, 225, 0.42);
}

.finale-fine time {
  color: var(--gold-light);
}

/* ---------- FAQ ---------- */

.faq {
  background: var(--paper);
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(44px, 7vw, 120px);
}

.faq-intro .display {
  margin-top: 24px;
}

.faq-intro > p {
  max-width: 300px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
}

.faq-intro .text-link {
  display: inline;
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: none;
}

.accordion {
  border-bottom: 1px solid var(--line);
}

.accordion details {
  border-top: 1px solid var(--line);
}

.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 25px 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion-icon {
  position: relative;
  width: 17px;
  height: 17px;
  flex: none;
}

.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 17px;
  height: 1px;
  background: var(--gold-ink);
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
}

.accordion-icon::after {
  transform: rotate(90deg);
}

.accordion details[open] .accordion-icon::after {
  transform: rotate(0);
  opacity: 0;
}

.accordion details > div {
  max-width: 650px;
  padding: 0 38px 26px 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.85;
}

.accordion details > div p + p {
  margin-top: 10px;
}

.accordion details a {
  color: var(--gold-ink);
  border-bottom: 1px solid rgba(124, 92, 40, 0.3);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding-top: clamp(60px, 8vw, 100px);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.8fr 0.9fr;
  gap: clamp(32px, 5vw, 80px);
  padding-bottom: 64px;
}

.brand-footer .brand-mark {
  color: var(--gold);
}

.brand-footer .brand-name {
  color: var(--cream);
}

.brand-footer .brand-year {
  color: rgba(244, 238, 225, 0.5);
}

.footer-brand > p {
  max-width: 290px;
  margin-top: 24px;
  color: var(--muted-dark);
  font-size: 12px;
  line-height: 1.8;
}

.footer-year {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: 64px;
  line-height: 0.8;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(198, 161, 91, 0.35);
}

.footer-col h2 {
  margin-bottom: 21px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.footer-col a,
.footer-col p {
  display: block;
  margin-bottom: 9px;
  color: rgba(244, 238, 225, 0.62);
  font-size: 11.5px;
  line-height: 1.7;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--gold-light);
}

.footer-col time {
  color: rgba(244, 238, 225, 0.82);
}

.footer-admin {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  width: fit-content;
  margin-top: 14px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(198, 161, 91, 0.3);
  color: var(--gold-light) !important;
  font-size: 9px !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0 26px;
  border-top: 1px solid var(--line-light);
  color: rgba(244, 238, 225, 0.4);
  font-size: 8.5px;
  letter-spacing: 0.05em;
}

.footer-security {
  display: flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-bottom a {
  color: rgba(244, 238, 225, 0.65);
}

.footer-bottom a:hover {
  color: var(--gold-light);
}

/* ---------- Mobile vote bar ---------- */

.mobile-vote-bar {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 45;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  background: rgba(30, 13, 18, 0.96);
  border: 1px solid rgba(198, 161, 91, 0.4);
  color: var(--cream);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
}

.mobile-vote-bar > div {
  min-width: 0;
}

.mobile-vote-bar span {
  display: block;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.mobile-vote-bar p {
  overflow: hidden;
  margin-top: 3px;
  font-size: 9.5px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(244, 238, 225, 0.7);
}

.mobile-vote-bar .btn {
  flex: none;
  min-width: 124px;
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

.mobile-vote-bar.is-cooldown .btn {
  background: transparent;
  color: var(--gold-light);
}

/* ---------- Dialogs ---------- */

.dialog {
  width: min(1040px, calc(100% - 40px));
  max-width: 1040px;
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}

.dialog::backdrop {
  background: rgba(18, 6, 11, 0.76);
  backdrop-filter: blur(7px);
}

.dialog[open] {
  animation: dialog-in 0.4s var(--ease) both;
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.dialog-shell {
  position: relative;
  max-height: calc(100dvh - 40px);
  overflow: auto;
  background: var(--paper);
  border: 1px solid rgba(198, 161, 91, 0.4);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.3);
}

.dialog-close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(30, 13, 18, 0.22);
  border-radius: 50%;
  background: rgba(251, 247, 239, 0.85);
  color: var(--ink);
  backdrop-filter: blur(8px);
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.dialog-close:hover {
  background: var(--gold);
  transform: rotate(90deg);
}

.dialog-close svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.profile-dialog {
  width: min(1010px, calc(100% - 40px));
}

.profile-dialog .dialog-shell {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
}

.profile-media {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  padding: 40px 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 30%, rgba(200, 157, 84, 0.24), transparent 62%),
    linear-gradient(155deg, #2b1119 0%, #1e0d12 65%, #3a1420 100%);
  color: var(--cream);
  text-align: center;
}

.profile-media::before,
.vote-media::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(235, 214, 167, 0.22);
  pointer-events: none;
}

.modal-crest {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.modal-crest-crown {
  font-size: 32px;
  line-height: 1;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

.modal-crest-kicker {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.profile-number,
.modal-crest-initials {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  margin-block: 6px;
  border: 1px solid rgba(200, 157, 84, 0.55);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 157, 84, 0.2), rgba(30, 13, 18, 0.72));
  color: var(--paper);
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.04em;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
}

.modal-crest-line {
  width: 48px;
  height: 1px;
  background: rgba(200, 157, 84, 0.5);
}

.modal-crest-motto {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 239, 228, 0.65);
}

.profile-voted {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 2;
  padding: 7px 14px;
  background: var(--gold);
  color: var(--ink);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.profile-content {
  padding: 52px clamp(30px, 4.2vw, 55px) 38px;
}

.profile-content h2 {
  margin-top: 13px;
  font-family: var(--serif);
  font-size: clamp(40px, 4.6vw, 56px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.profile-quote {
  margin-top: 20px;
  color: var(--gold-ink);
  font-family: var(--serif);
  font-size: 23px;
  font-style: italic;
  line-height: 1.3;
}

.profile-bio {
  margin-top: 18px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.85;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 26px;
  padding: 18px 0;
  border-block: 1px solid var(--line);
}

.profile-stats dt {
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.profile-stats dd {
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
}

.profile-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 26px;
}

.profile-actions .text-link {
  font-size: 9px;
}

.fineprint {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.6;
}

.fineprint a {
  color: var(--gold-ink);
  border-bottom: 1px solid rgba(124, 92, 40, 0.3);
}

.vote-dialog {
  width: min(890px, calc(100% - 40px));
}

.vote-dialog .dialog-shell {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
}

.vote-media {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  padding: 36px 24px 110px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 28%, rgba(200, 157, 84, 0.24), transparent 62%),
    linear-gradient(155deg, #2b1119 0%, #1e0d12 65%, #3a1420 100%);
  color: var(--cream);
  text-align: center;
}

.vote-candidate-label {
  position: absolute;
  right: 22px;
  bottom: 24px;
  left: 22px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid rgba(235, 214, 167, 0.2);
  color: var(--paper);
  text-align: center;
}

.vote-candidate-label span:first-child {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.vote-candidate-label strong {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
}

.vote-candidate-label span:last-child {
  margin-top: 5px;
  font-size: 8px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(244, 238, 225, 0.65);
}

.vote-content {
  padding: 42px clamp(28px, 4vw, 48px) 32px;
}

.vote-content .eyebrow {
  margin-bottom: 16px;
}

.vote-content h2 {
  font-family: var(--serif);
  font-size: clamp(40px, 4.7vw, 54px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.035em;
}

.vote-content h2 em {
  color: var(--gold-ink);
  font-weight: 400;
}

.vote-content > p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.vote-rules {
  margin: 20px 0 22px;
  border-top: 1px solid var(--line);
}

.vote-rules li {
  position: relative;
  padding: 9px 0 9px 17px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  color: var(--text);
}

.vote-rules li::before {
  content: "✦";
  position: absolute;
  top: 9px;
  left: 0;
  color: var(--gold-ink);
  font-size: 7px;
}

.form-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(162, 49, 49, 0.28);
  background: rgba(162, 49, 49, 0.07);
  color: #8a2f2f;
  font-size: 10.5px;
  line-height: 1.5;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.vote-content .btn-full + .btn-full {
  margin-top: 8px;
}

.turnstile-slot {
  margin-bottom: 14px;
}

.success-dialog {
  width: min(560px, calc(100% - 30px));
}

.success-shell {
  position: relative;
  overflow: hidden;
  padding: 50px clamp(25px, 5vw, 48px) 36px;
  background:
    radial-gradient(circle at 50% 8%, rgba(198, 161, 91, 0.22), transparent 30%),
    var(--ink);
  border: 1px solid rgba(198, 161, 91, 0.4);
  color: var(--cream);
  text-align: center;
}

.success-shell .dialog-close-light {
  border-color: rgba(244, 238, 225, 0.22);
  background: transparent;
  color: var(--cream);
}

.success-shell .eyebrow {
  justify-content: center;
  margin-top: 18px;
}

.success-seal {
  width: 76px;
  height: 76px;
  margin: 0 auto;
  color: var(--gold-light);
}

.success-seal svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
}

.success-seal path {
  stroke: var(--gold-light);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  animation: draw 1s 0.25s var(--ease) both;
}

@keyframes draw {
  from {
    stroke-dashoffset: 60;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.success-shell h2 {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 54px;
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.035em;
}

.success-shell h2 em {
  font-weight: 400;
  color: var(--gold-light);
}

.success-copy {
  max-width: 360px;
  margin: 18px auto 0;
  color: var(--muted-dark);
  font-size: 11.5px;
  line-height: 1.75;
}

.success-copy strong {
  color: var(--cream);
  font-weight: 600;
}

.receipt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  padding: 12px 14px;
  border: 1px dashed rgba(198, 161, 91, 0.4);
  font-size: 8px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(244, 238, 225, 0.48);
}

.receipt strong {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.13em;
  color: var(--gold-light);
}

.receipt-copy {
  padding: 2px 0;
  border: 0;
  border-bottom: 1px solid rgba(198, 161, 91, 0.42);
  background: transparent;
  color: var(--gold-light);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.next-vote {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 20px 0;
  padding: 14px 0;
  border-block: 1px solid rgba(244, 238, 225, 0.13);
}

.next-vote span {
  font-size: 7.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 238, 225, 0.44);
}

.next-vote strong {
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}

.btn-text {
  display: inline-block;
  margin-top: 15px;
  padding: 4px;
  border: 0;
  background: transparent;
  color: rgba(244, 238, 225, 0.6);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(244, 238, 225, 0.2);
}

.btn-text:hover {
  color: var(--gold-light);
}

.fineprint-light {
  justify-content: center;
  color: rgba(244, 238, 225, 0.35);
  font-size: 7.5px;
  text-align: center;
}

.success-confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti-dot {
  position: absolute;
  top: -12px;
  width: 4px;
  height: 8px;
  background: var(--gold);
  opacity: 0;
  animation: confetti-fall 2.2s var(--ease) forwards;
}

@keyframes confetti-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, -10px, 0) rotate(0);
  }
  10% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift, 20px), 440px, 0) rotate(240deg);
  }
}

/* ---------- Toasts ---------- */

.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(360px, calc(100% - 40px));
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 13px 16px;
  border: 1px solid rgba(198, 161, 91, 0.4);
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  font-size: 11px;
  line-height: 1.5;
  animation: toast-in 0.35s var(--ease) both;
}

.toast.is-error {
  border-color: rgba(199, 104, 93, 0.55);
}

.toast.is-success {
  border-color: rgba(143, 189, 150, 0.5);
}

.toast strong {
  display: block;
  margin-bottom: 3px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.toast.is-error strong {
  color: #e0a49b;
}

.toast.is-success strong {
  color: #a9c9ad;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .candidates-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero h1 {
    font-size: clamp(68px, 8.6vw, 102px);
  }

  .hero-arch-main {
    width: 62%;
  }

  .hero-arch-secondary {
    width: 40%;
  }

  .leaderboard-grid {
    gap: 50px;
  }

  .footer-top {
    grid-template-columns: 1.4fr 0.8fr 0.8fr 0.9fr;
  }
}

@media (max-width: 980px) {
  :root {
    --container: min(100% - 52px, 1320px);
  }

  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-inner {
    min-height: 74px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
    padding-top: 54px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero h1 {
    font-size: clamp(66px, 11.5vw, 105px);
  }

  .hero-visual {
    min-height: 640px;
    max-width: 650px;
    width: 100%;
    margin-inline: auto;
  }

  .hero-arch-main {
    width: 55%;
  }

  .hero-arch-secondary {
    width: 34%;
  }

  .hero-seal {
    left: 22%;
    width: 136px;
  }

  .hero-side-note {
    display: none;
  }

  .concept-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .concept-aside {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 30px;
  }

  .outline-number {
    margin-top: 0;
    font-size: 92px;
  }

  .concept-note {
    max-width: 360px;
    margin-top: 0;
  }

  .candidates-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .candidate-name {
    font-size: 33px;
  }

  .leaderboard-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .leaderboard-intro > p {
    max-width: 460px;
  }

  .leaderboard-meta {
    flex-direction: row;
    justify-content: space-between;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .process-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    column-gap: 24px;
    padding: 26px 0;
    border-bottom: 1px solid var(--line);
  }

  .process-card:first-child {
    border-top: 1px solid var(--line);
  }

  .process-num {
    grid-row: 1 / 4;
    padding-top: 4px;
  }

  .process-icon {
    grid-row: 1 / 4;
    width: 44px;
    height: 44px;
    margin-top: 0;
  }

  .process-card h3 {
    margin-top: 0;
  }

  .process-card p {
    max-width: 500px;
  }

  .security-panel {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .security-mark {
    width: 70px;
    height: 70px;
  }

  .security-stamp {
    display: none;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .faq-intro > p {
    max-width: 500px;
  }

  .footer-top {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
  }

  .footer-edition {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 36px;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--line-light);
  }

  .footer-edition h2 {
    width: 100%;
    margin-bottom: 0;
  }

  .footer-edition p {
    margin-bottom: 0;
  }

  .footer-admin {
    margin-top: 0;
    margin-left: auto;
  }

  .mobile-vote-bar {
    display: flex;
  }
}

@media (max-width: 720px) {
  :root {
    --container: min(100% - 36px, 1320px);
  }

  body {
    font-size: 15px;
  }

  .topbar-inner {
    min-height: 32px;
    gap: 12px;
  }

  .topbar p {
    gap: 8px;
    font-size: 8px;
    letter-spacing: 0.1em;
  }

  .topbar-divider,
  .topbar-muted,
  .topbar-link {
    display: none;
  }

  .nav-inner {
    min-height: 66px;
  }

  .brand-mark {
    width: 26px;
    height: 26px;
  }

  .brand-name {
    font-size: 21px;
  }

  .brand-year {
    font-size: 6.5px;
  }

  .header-vote {
    display: none;
  }

  .hero-grid {
    padding-top: 40px;
    padding-bottom: 54px;
    gap: 44px;
  }

  .hero h1 {
    font-size: clamp(58px, 15vw, 82px);
    line-height: 0.85;
  }

  .hero-lead {
    margin-top: 26px;
    font-size: 12.5px;
  }

  .hero-cta {
    gap: 20px;
    margin-top: 28px;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-stats {
    gap: 10px;
    margin-top: 38px;
  }

  .hero-stats dd {
    font-size: 21px;
  }

  .hero-stats dt {
    font-size: 7px;
    letter-spacing: 0.12em;
  }

  .hero-visual {
    min-height: 480px;
  }

  .hero-arch-main {
    width: 61%;
    right: 0;
    border-width: 7px;
  }

  .hero-arch-secondary {
    width: 42%;
    left: 0;
    border-width: 6px;
  }

  .hero-seal {
    top: 2%;
    left: 24%;
    width: 104px;
  }

  .hero-vote-tag {
    right: 0;
    bottom: 0;
    padding: 10px 12px;
    font-size: 7.5px;
  }

  .hero-bottom-inner {
    min-height: 46px;
    font-size: 7px;
  }

  .marquee {
    padding: 10px 0;
  }

  .marquee span {
    font-size: 15px;
  }

  .section {
    padding: 76px 0;
  }

  .display {
    font-size: clamp(43px, 12vw, 64px);
  }

  .section-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 36px;
  }

  .section-header .display {
    font-size: clamp(43px, 12vw, 64px);
  }

  .section-intro {
    font-size: 12px;
  }

  .live-total {
    align-items: flex-start;
  }

  .concept-aside {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .outline-number {
    display: none;
  }

  .concept-note {
    max-width: 100%;
    font-size: 17px;
  }

  .concept-copy {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
    padding-bottom: 36px;
  }

  .concept-copy .lead {
    font-size: 21px;
  }

  .pillars {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .pillar {
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
  }

  .pillar:last-child {
    border-bottom: 0;
  }

  .pillar h3 {
    margin-top: 8px;
  }

  .candidates-grid {
    grid-template-columns: 1fr;
  }

  .candidate-media {
    aspect-ratio: 4 / 4.8;
  }

  .candidate-name {
    font-size: 36px;
  }

  .candidate-quote {
    font-size: 18px;
  }

  .vote-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    margin-top: -8px;
    font-size: 10px;
  }

  .grid-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .grid-footer .text-link {
    margin-left: 0;
  }

  .leaderboard-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .leaderboard-panel {
    padding: 0 14px;
  }

  .leaderboard-head,
  .leaderboard-row {
    grid-template-columns: 34px minmax(0, 1fr) 55px;
    gap: 10px;
  }

  .leaderboard-avatar {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .leaderboard-name {
    flex-direction: column;
    gap: 1px;
    font-size: 18px;
  }

  .leaderboard-sub span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .leaderboard-votes {
    font-size: 20px;
  }

  .leaderboard-foot {
    font-size: 7px;
  }

  .process-card {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 24px 0;
  }

  .process-num,
  .process-icon {
    grid-row: auto;
  }

  .process-icon {
    width: 38px;
    height: 38px;
    margin-top: 18px;
  }

  .process-card h3 {
    margin-top: 14px;
  }

  .security-panel {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 30px 24px;
  }

  .security-mark {
    width: 56px;
    height: 56px;
  }

  .security-mark svg {
    width: 24px;
    height: 24px;
  }

  .security-list {
    flex-direction: column;
    gap: 7px;
  }

  .security-panel::before {
    inset: 8px;
  }

  .finale {
    padding: 85px 0 90px;
  }

  .finale h2 {
    font-size: clamp(52px, 15vw, 76px);
  }

  .countdown-large {
    gap: 6px;
  }

  .countdown-large div {
    min-width: 54px;
  }

  .countdown-large strong {
    font-size: clamp(36px, 10vw, 50px);
  }

  .countdown-large i {
    font-size: 24px;
    padding-top: 2px;
  }

  .countdown-large span {
    font-size: 6.5px;
    letter-spacing: 0.13em;
  }

  .finale .btn {
    width: 100%;
  }

  .accordion summary {
    padding: 20px 0;
    font-size: 14px;
  }

  .accordion details > div {
    padding-right: 18px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    padding-bottom: 44px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand > p {
    max-width: 420px;
  }

  .footer-year {
    display: none;
  }

  .footer-edition {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 88px;
  }

  .dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
  }

  .dialog-shell {
    max-height: calc(100dvh - 16px);
  }

  .profile-dialog .dialog-shell,
  .vote-dialog .dialog-shell {
    display: block;
    overflow-y: auto;
  }

  .profile-media,
  .vote-media {
    min-height: 220px;
    padding: 28px 20px;
  }

  .profile-number,
  .modal-crest-initials {
    width: 76px;
    height: 76px;
    font-size: 32px;
  }

  .profile-content,
  .vote-content {
    padding: 30px 24px 26px;
  }

  .profile-content h2 {
    font-size: 44px;
  }

  .profile-quote {
    font-size: 21px;
  }

  .profile-stats {
    margin-top: 20px;
  }

  .profile-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .vote-content h2 {
    font-size: 42px;
  }

  .vote-media {
    padding-bottom: 96px;
  }

  .vote-candidate-label {
    right: 16px;
    bottom: 14px;
    left: 16px;
  }

  .vote-candidate-label strong {
    font-size: 28px;
  }

  .success-shell {
    padding: 42px 22px 30px;
  }

  .success-shell h2 {
    font-size: 46px;
  }

  .receipt {
    flex-wrap: wrap;
    gap: 5px 9px;
  }

  .toast-stack {
    right: 12px;
    bottom: 82px;
    left: 12px;
    width: auto;
  }

  .mobile-vote-bar {
    right: 8px;
    bottom: 8px;
    left: 8px;
  }

  .mobile-vote-bar .btn {
    min-width: 104px;
  }
}

@media (max-width: 400px) {
  .hero h1 {
    font-size: 56px;
  }

  .hero-stats dd {
    font-size: 18px;
  }

  .candidate-name {
    font-size: 32px;
  }

  .countdown-large {
    gap: 2px;
  }

  .countdown-large strong {
    font-size: 34px;
  }

  .countdown-large i {
    display: none;
  }

  .countdown-large div {
    min-width: 0;
    flex: 1;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-edition {
    grid-column: auto;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .marquee-track {
    animation: none;
  }

  .revive,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Print ---------- */

@media print {
  .topbar,
  .site-header,
  .hero-visual,
  .marquee,
  .mobile-vote-bar,
  .dialog,
  .toast-stack {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
