/* IRMÃOZÃO — styles
   Color rule: --red is reserved for "#ELENÃO". Nothing else uses it. */

:root {
  color-scheme: dark;
  --black: #080808;
  --white: #E8E6E0;
  --gray: #858585;
  --deep: #333333;
  --red: #E5242A;          /* #ELENÃO only */
  --ink-2: #1a1a1a;

  --f-display: "Anton", "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --f-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --rule: 1px solid rgba(232, 230, 224, 0.18);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--f-serif);
  font-size: clamp(16px, 1.05vw + 10px, 19px);
  line-height: 1.55;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.section--light :focus-visible, .interlude--light :focus-visible { outline-color: var(--black); }

.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--white); color: var(--black); padding: 8px 12px; z-index: 100; font-family: var(--f-mono); }
.skip:focus { top: 8px; }
.mono { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: .06em; text-transform: uppercase; }
.display { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; line-height: 1; letter-spacing: .005em; margin: 0; padding-top: .06em; }

/* Film grain overlay (static SVG noise, very light) */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ───────── Top bar ───────── */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 10px var(--gutter);
  background: rgba(8, 8, 8, .92); backdrop-filter: blur(6px);
  border-bottom: var(--rule);
}
.wordmark { font-family: var(--f-display); font-size: 1.6rem; text-decoration: none; letter-spacing: .01em; line-height: 1; }
.topbar nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.topbar nav a { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--white); opacity: .8; }
.topbar nav a:hover { opacity: 1; text-decoration: underline; }
.topsearch { margin-left: auto; }
.topsearch input {
  background: transparent; border: var(--rule); color: var(--white);
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; padding: 7px 10px; width: 190px;
}
@media (max-width: 920px) {
  .topbar nav { display: none; }
  .topsearch input { width: 150px; }
}

/* ───────── Hero ───────── */
.hero {
  position: relative;
  height: calc(100svh - 51px);
  min-height: 560px;
  overflow: hidden;
  background: var(--black);
  isolation: isolate;
}
.wall {
  position: absolute; inset: -0.2em -2em;
  display: flex; flex-direction: column; justify-content: center;
  font-family: var(--f-display);
  font-size: clamp(30px, 4.3vw, 64px);
  line-height: 1.08;
  user-select: none; -webkit-user-select: none;
  z-index: 0;
}
.wall__row { display: flex; white-space: nowrap; gap: .32em; }
.wall__row:nth-child(even) { transform: translateX(-2.1em); }
.wall__row:nth-child(3n) { transform: translateX(-1em); }
.w {
  position: relative;
  flex: 0 0 auto;
  width: 4.35em;               /* fixed cell → no reflow on reveal */
  text-align: center;
  border: 0; background: none; padding: 0; margin: 0; cursor: crosshair;
  font: inherit; line-height: inherit;
  color: var(--gray);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: color .08s linear, opacity .15s linear;
}
.wall__row:nth-child(odd) .w:nth-child(3n+1),
.wall__row:nth-child(even) .w:nth-child(4n+2) { color: var(--white); opacity: .82; }
.w > span { display: block; transition: transform .11s var(--ease), opacity .08s linear; }
.w .ele {
  position: absolute; inset: 0;
  color: var(--red);
  opacity: 0; transform: scaleY(.2);
  pointer-events: none;
}
.w.is-on { color: transparent; }
.w.is-on > .irm { opacity: 0; transform: scaleY(.2); }
.w.is-on > .ele { opacity: 1; transform: scaleY(1); }
/* neighbours recede: the "gap" opening in the pattern */
.wall.has-on .w:not(.is-on) { opacity: .55; }
.w:focus-visible { outline: 2px solid var(--white); outline-offset: -2px; }

.portrait {
  position: absolute; left: 50%; top: 50%;
  height: min(86%, 820px);
  aspect-ratio: 628 / 838;
  transform: translate(-50%, -48%);
  margin: 0; z-index: 2;
  pointer-events: none;
  filter: contrast(1.06) drop-shadow(0 30px 60px rgba(0,0,0,.65));
}
.portrait__stack { position: relative; width: 100%; height: 100%; }
.portrait__base { width: 100%; height: 100%; object-fit: contain; }
.eye { position: absolute; overflow: hidden; border-radius: 50%; }
.eye img { position: absolute; max-width: none; transform: translate3d(var(--dx, 0px), var(--dy, 0px), 0); will-change: transform; }
.eye--l { left: 24.52%; top: 43.08%; width: 12.58%; height: 4.42%; }
.eye--l img { left: 18.99%; top: -5.41%; width: 50.63%; height: 108.1%; }
.eye--r { left: 60.35%; top: 42.96%; width: 14.97%; height: 4.42%; }
.eye--r img { left: 20.21%; top: -5.41%; width: 42.55%; height: 108.1%; }

.hero__caption {
  position: absolute; z-index: 3; left: var(--gutter); bottom: 22px; right: var(--gutter);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; pointer-events: none;
}
.hero__quote {
  margin: 0; max-width: 30ch; font-style: italic; font-size: .92rem; line-height: 1.4;
  background: var(--black); padding: 10px 14px; border-left: 2px solid var(--white);
}
.hero__quote cite { display: block; font-style: normal; color: var(--gray); margin-top: 6px; }
.hero__hint { margin: 0; background: var(--black); border: var(--rule); padding: 8px 12px; }
.hint-touch { display: none; }
@media (hover: none) { .hint-hover { display: none; } .hint-touch { display: inline; } }
.hero__credit { position: absolute; z-index: 3; top: 12px; right: var(--gutter); margin: 0; color: var(--gray); font-size: .6rem; background: var(--black); padding: 4px 8px; max-width: 46ch; text-align: right; }

@media (max-width: 700px) {
  .hero { height: calc(100svh - 51px); min-height: 520px; }
  .wall { font-size: clamp(26px, 8.4vw, 40px); }
  .portrait { height: auto; width: min(80vw, 420px); top: 46%; }
  .hero__caption { flex-direction: column; align-items: stretch; bottom: 14px; }
  .hero__quote { max-width: none; font-size: .82rem; }
  .hero__hint { align-self: flex-start; }
  .hero__credit { left: var(--gutter); text-align: left; }
}

/* ───────── Interludes ───────── */
.interlude {
  padding: clamp(64px, 12vw, 160px) var(--gutter);
  background: var(--black); color: var(--white);
  border-top: var(--rule); border-bottom: var(--rule);
}
.interlude--light { background: var(--white); color: var(--black); }
.interlude blockquote { margin: 0 auto; max-width: var(--maxw); display: grid; grid-template-columns: 1fr minmax(180px, 240px); gap: clamp(24px, 5vw, 80px); align-items: end; }
.interlude q, .interlude .q {
  font-family: var(--f-serif); font-weight: 400; quotes: "“" "”";
  font-size: clamp(30px, 4.6vw, 72px); line-height: 1.06; letter-spacing: -.012em; display: block;
  text-wrap: balance;
}
.interlude footer { color: var(--gray); border-left: 1px solid currentColor; padding-left: 14px; }
.interlude--light footer { color: #5d5d5d; }
.interlude footer p { margin: 0 0 4px; }
.interlude .orig { font-family: var(--f-serif); font-style: italic; text-transform: none; letter-spacing: 0; font-size: .8rem; margin-top: 10px; }
@media (max-width: 760px) { .interlude blockquote { grid-template-columns: 1fr; } }

/* ───────── Sections ───────── */
.section { padding: clamp(64px, 9vw, 128px) var(--gutter); max-width: none; position: relative; }
.section > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section--light { background: var(--white); color: var(--black); }
.section__head { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; margin-bottom: clamp(36px, 6vw, 72px); }
.section__num { color: var(--gray); padding-top: .6em; grid-row: span 2; }
.section__head .display { font-size: clamp(44px, 7.4vw, 118px); max-width: 15ch; }
.lede { max-width: 52ch; color: var(--gray); font-size: 1.08em; margin: 18px 0 0; grid-column: 2; }
.section--light .lede { color: #4a4a4a; }
.kicker { color: var(--gray); margin: 0 0 12px; }
.section--light .kicker { color: #5d5d5d; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  padding: 10px 18px; border: 1px solid currentColor; background: var(--white); color: var(--black);
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; cursor: pointer;
}
.btn--ghost { background: transparent; color: inherit; }
.btn:hover { text-decoration: underline; }


.section__foot { margin-top: clamp(48px, 7vw, 88px); padding-top: 24px; border-top: var(--rule); display: flex; gap: 24px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.section--light .section__foot { border-top-color: rgba(8,8,8,.2); }
.section__foot--vote { max-width: var(--maxw); margin-inline: auto; }

.sources { flex: 1 1 560px; }
.sources h3 { margin: 0 0 12px; color: var(--gray); }
.section--light .sources .meta, .section--light .sources li::before, .section--light .sources h3 { color: #5d5d5d; }
.sources ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 8px; }
.sources li { counter-increment: s; display: grid; grid-template-columns: 2.4em 1fr; font-size: .86rem; line-height: 1.4; }
.sources li::before { content: "[" counter(s) "]"; font-family: var(--f-mono); font-size: .7rem; color: var(--gray); padding-top: .15em; }
.sources .meta { font-family: var(--f-mono); font-size: .66rem; color: var(--gray); letter-spacing: .04em; text-transform: uppercase; }
.vstatus { border: 1px solid currentColor; padding: 0 5px; margin-left: 6px; }
.vstatus--pending { border-style: dashed; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 18px 0 0; }
.tags li { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; border: 1px solid currentColor; padding: 3px 7px; color: var(--gray); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* ───────── 01 Case ───────── */
.case { display: grid; grid-template-columns: minmax(260px, 4fr) 8fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.case__story p { margin: 0 0 1em; }
.case__headline { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 3.2vw, 46px); line-height: 1; margin: 0 0 20px; }
.diptych { display: grid; grid-template-columns: 1fr 40px 0.86fr; align-items: start; }
.diptych__rule { align-self: stretch; display: flex; justify-content: center; position: relative; }
.diptych__rule::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: var(--rule); }
.diptych__rule span { position: sticky; top: 45%; writing-mode: vertical-rl; background: var(--black); padding: 8px 0; color: var(--gray); font-size: .6rem; }
.doc { margin: 0; }
.doc:last-child { margin-top: clamp(40px, 8vw, 120px); }
.doc__frame { background: #111; padding: 10px; border: var(--rule); }
.doc__frame img { width: 100%; height: auto; filter: grayscale(1) contrast(1.05); }
.doc figcaption { margin-top: 10px; font-size: .84rem; color: var(--gray); line-height: 1.4; }
.formula { grid-column: 1 / -1; list-style: none; margin: clamp(24px, 4vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: var(--rule); }
.formula li { padding: 22px 22px 0 0; font-family: var(--f-display); text-transform: uppercase; font-size: clamp(20px, 1.8vw, 28px); line-height: 1.05; }
.formula li + li { padding-left: 22px; border-left: var(--rule); }
.formula .mono { display: block; color: var(--gray); margin-bottom: 8px; font-family: var(--f-mono); }

/* Side labels: who is who */
.side-tag {
  display: inline-block; margin: 0 0 12px; padding: 7px 12px 6px;
  font-family: var(--f-display); font-size: clamp(22px, 2.2vw, 34px); line-height: 1; letter-spacing: .02em;
  background: var(--black); color: var(--white); border: 2px solid var(--black);
}
.side-tag--now { background: transparent; color: var(--black); }
.section:not(.section--light) .side-tag { border-color: var(--white); }
.section:not(.section--light) .side-tag--now { background: var(--white); color: var(--black); }

@media (max-width: 900px) {
  .case { grid-template-columns: 1fr; }
  .diptych { grid-template-columns: 1fr; gap: 28px; }
  .diptych__rule { display: none; }
  .doc:last-child { margin-top: 0; }
  .formula { grid-template-columns: 1fr; }
  .formula li + li { padding-left: 0; border-left: 0; border-top: var(--rule); margin-top: 18px; }
}

/* ───────── 02/03 Mirrors (news clippings) ───────── */
.mirrors { display: grid; gap: clamp(64px, 9vw, 120px); }
.mirror { border-top: 2px solid var(--black); padding-top: 18px; scroll-margin-top: 70px; }
.mirror__head { margin-bottom: 26px; }
.mirror__head .mono { color: #5d5d5d; display: block; margin-bottom: 6px; }
.mirror__title { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(32px, 4.4vw, 64px); line-height: 1; margin: 0; }
.mirror__pair { display: grid; grid-template-columns: 1fr 56px 1fr; align-items: start; }
.mirror__vs { font-family: var(--f-display); font-size: 48px; text-align: center; padding-top: 70px; color: var(--deep); }
.side { min-width: 0; }
.side--now { margin-top: clamp(0px, 4vw, 48px); }

/* Historical side: aged newsprint */
.paper {
  position: relative; background: #d9d5ca; color: #141414; padding: clamp(18px, 2.4vw, 30px);
  border: 1px solid #a9a598; box-shadow: 6px 8px 0 rgba(8,8,8,.85);
  transform: rotate(-.6deg);
  background-image: radial-gradient(rgba(60,50,30,.10) 1px, transparent 1px), linear-gradient(180deg, rgba(255,255,255,.18), rgba(0,0,0,.06));
  background-size: 3px 3px, 100% 100%;
}
.paper__mast { font-family: "Pirata One", var(--f-serif); font-weight: 400; font-size: clamp(30px, 3vw, 46px); line-height: 1; letter-spacing: .01em; text-align: center; margin: 0 0 8px; padding-bottom: 8px; border-bottom: 3px double #141414; overflow-wrap: anywhere; }
.paper__dateline { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; padding-bottom: 6px; border-bottom: 1px solid #141414; color: #3b3b3b; font-size: .6rem; }
.paper__headline { font-family: var(--f-serif); font-weight: 700; font-size: clamp(22px, 2.1vw, 30px); line-height: 1.08; margin: 0 0 14px; text-align: center; text-transform: uppercase; letter-spacing: -.005em; }
.paper img { width: 100%; height: clamp(150px, 18vw, 230px); object-fit: cover; filter: grayscale(1) contrast(1.15) sepia(.12); margin-bottom: 14px; border: 1px solid #141414; }
.paper__quote { margin: 0 0 12px; font-family: var(--f-serif); font-style: italic; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.25; }
.paper__body { margin: 0 0 14px; font-size: .9rem; line-height: 1.45; text-align: justify; hyphens: auto; }
.paper__link, .web__link { color: inherit; font-size: .62rem; }

/* Contemporary side: browser screenshot of an article */
.web { background: #fbfaf7; color: #111; border: 1px solid #111; box-shadow: 6px 8px 0 rgba(8,8,8,.85); transform: rotate(.5deg); }
.web__bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #e3e1db; border-bottom: 1px solid #111; }
.web__dots { width: 34px; height: 8px; background: radial-gradient(circle, #111 3px, transparent 3.5px) 0 0 / 12px 8px repeat-x; flex: none; }
.web__url { flex: 1; min-width: 0; background: #fbfaf7; border: 1px solid #bdbab2; padding: 3px 8px; font-size: .58rem; text-transform: none; letter-spacing: .02em; color: #444; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.web__page { padding: clamp(18px, 2.4vw, 30px); }
.web__outlet { margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid #ccc9c0; font-family: var(--f-mono); font-weight: 500; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; }
.web__headline { font-family: var(--f-serif); font-weight: 700; font-size: clamp(22px, 2.1vw, 30px); line-height: 1.12; margin: 0 0 10px; letter-spacing: -.01em; }
.web__byline { color: #666; font-size: .6rem; margin: 0 0 16px; }
.web__quote { margin: 0 0 14px; padding-left: 14px; border-left: 4px solid #111; font-family: var(--f-serif); font-size: clamp(19px, 1.7vw, 24px); line-height: 1.25; }
.web__body { margin: 0 0 14px; font-size: .92rem; line-height: 1.5; color: #333; }

.mirror__parallel { margin: clamp(28px, 4vw, 44px) 0 0; font-family: var(--f-display); text-transform: uppercase; font-size: clamp(24px, 2.8vw, 42px); line-height: 1.05; max-width: 26ch; }

@media (max-width: 860px) {
  .mirror__pair { grid-template-columns: 1fr; }
  .mirror__vs { padding: 18px 0 6px; }
  .side--now { margin-top: 0; }
  .paper, .web { transform: none; }
}

/* ───────── 04 Numbers ───────── */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(232,230,224,.18); border: var(--rule); }
.stat { margin: 0; background: var(--black); padding: clamp(20px, 2.6vw, 34px); display: flex; flex-direction: column; justify-content: flex-end; min-height: 230px; position: relative; overflow: hidden; }
.stat--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(.38); }
.stat > p, .stat > figcaption { position: relative; }
.stat__value { font-family: var(--f-display); font-size: clamp(48px, 5.6vw, 92px); line-height: .95; margin: 0 0 12px; padding-top: .06em; }
.stat__unit { font-size: .38em; vertical-align: .9em; color: var(--gray); }
.stat__label { color: #c9c7c1; font-size: .95rem; line-height: 1.35; max-width: 30ch; }
.stats__world { color: var(--gray); margin: 48px 0 14px; }
.stats--world .stat { min-height: 180px; }
.stats--world .stat__value { font-size: clamp(40px, 4.4vw, 72px); }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } .stat { min-height: 180px; } }

/* ───────── Footer with counter ───────── */
.vote { position: relative; overflow: hidden; background: var(--black); padding: clamp(72px, 10vw, 140px) var(--gutter) 32px; border-top: var(--rule); display: block; }
.vote__wall { position: absolute; inset: -10px -60px; font-family: var(--f-display); font-size: clamp(40px, 6vw, 96px); line-height: 1.08; color: #161616; white-space: nowrap; overflow: hidden; z-index: 0; pointer-events: none; }
.vote__inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; }
.vote__q { font-size: clamp(46px, 7.4vw, 124px); line-height: 1.02; max-width: 14ch; margin: 0 0 clamp(36px, 5vw, 64px); }
.vote__board { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 40px); }
.vote__col { display: flex; flex-direction: column; gap: 12px; }
.vote__btn {
  font-family: var(--f-display); font-size: clamp(40px, 7vw, 120px); line-height: 1; padding: .14em 0;
  background: var(--white); color: var(--black); border: 2px solid var(--white); cursor: pointer;
  transition: transform .12s var(--ease), background .12s linear;
}
.vote__btn:hover { background: #fff; }
.vote__btn:active { transform: scale(.98); }
.vote__btn--ele { background: var(--black); color: var(--red); border-color: var(--red); } /* #ELENÃO */
.vote__btn--ele:hover { background: #160505; }
.vote__count { font-family: var(--f-display); font-size: clamp(48px, 6vw, 96px); line-height: 1; display: block; font-variant-numeric: tabular-nums; }
.vote__count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 0% { transform: translateY(-14px); opacity: .2; } 100% { transform: none; opacity: 1; } }
.vote__foot { margin-top: clamp(64px, 9vw, 120px); padding-top: 24px; border-top: var(--rule); display: flex; gap: 16px 32px; align-items: center; flex-wrap: wrap; }
.vote__foot p { margin: 0; color: var(--gray); font-size: .9rem; flex: 1 1 260px; }
@media (prefers-reduced-motion: reduce) { .vote__count.bump { animation: none; } }

/* Takeovers */
.takeover { position: fixed; inset: 0; z-index: 80; background: var(--black); overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.takeover[hidden] { display: none; }
.takeover__wall { position: absolute; inset: -4vh -10vw; display: flex; flex-direction: column; justify-content: center; font-family: var(--f-display); line-height: 1.1; white-space: nowrap; }
.takeover__wall div { font-size: clamp(54px, 11vw, 190px); }
.takeover--sim .takeover__wall { color: var(--deep); }
.takeover--sim .takeover__wall div:nth-child(3n+2) { color: var(--white); }
.takeover--sim .takeover__wall div:nth-child(odd) { color: var(--gray); }
.takeover--nao .takeover__wall { color: var(--red); }  /* #ELENÃO */
.takeover--nao .takeover__wall div:nth-child(even) { transform: translateX(-1.4em); }
.takeover__panel { position: relative; z-index: 1; margin-bottom: max(5vh, 24px); }
@keyframes sweep { from { transform: translateX(-30%); opacity: 0; } to { opacity: 1; } }
@keyframes expand { from { letter-spacing: -.25em; transform: scaleX(.3); opacity: 0; } 60% { opacity: 1; } to { letter-spacing: 0; transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .takeover.play .takeover__wall div { animation: none; } }

/* ───────── Share dialog ───────── */
.share { padding: 0; border: 1px solid var(--white); background: var(--black); color: var(--white); width: min(560px, calc(100vw - 32px)); max-height: calc(100svh - 32px); }
.share::backdrop { background: rgba(8,8,8,.86); }
.share__inner { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.share__head { display: flex; justify-content: space-between; align-items: center; }
.share__head h2 { margin: 0; }
.share__x { background: none; border: 1px solid var(--deep); width: 44px; height: 44px; font-size: 1.4rem; cursor: pointer; }
.share__formats { display: flex; gap: 8px; flex-wrap: wrap; font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.share__formats label { border: var(--rule); padding: 8px 10px; cursor: pointer; display: flex; gap: 8px; align-items: center; min-height: 44px; }
.share__formats input { accent-color: var(--white); }
.share__preview { background: #111; display: flex; justify-content: center; padding: 10px; }
.share__preview canvas { max-width: 100%; max-height: 52svh; width: auto; height: auto; border: var(--rule); }
.share__url { color: var(--gray); text-transform: none !important; word-break: break-all; margin: 0; }
.share__status { margin: 0; min-height: 1em; }
.share__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ───────── Share buttons (one per subsection) ───────── */
.share-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; min-width: 44px; padding: 0 14px; flex: none;
  background: transparent; color: inherit; border: 1px solid currentColor; cursor: pointer;
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  transition: background-color .15s linear, color .15s linear;
}
.share-btn:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.section:not(.section--light) .share-btn:hover, .share-btn--dark:hover, .stat .share-btn:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.share-btn--compact { padding: 0; width: 44px; }
.share-btn svg { flex: none; }

.case__share { grid-column: 1 / -1; display: flex; justify-content: flex-end; }

.mirror__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.mirror__head > div { min-width: 0; }

/* Inline sources for one subsection */
.srcline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 18px 0 0; font-size: .64rem; }
.srcline span { color: #5d5d5d; }
.srcline a { color: inherit; }
.section:not(.section--light) .srcline span { color: var(--gray); }

.stat__foot { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 16px; }
.stat__foot .srcline { margin: 0; color: var(--gray); }
.stat__foot .srcline a { color: var(--white); }

/* ───────── Section sources: native accordion ───────── */
.section__foot { margin-top: clamp(40px, 6vw, 72px); padding-top: 0; border-top: 0; display: block; }
.sources { flex: none; }
.sources__acc { border-top: var(--rule); border-bottom: var(--rule); }
.section--light .sources__acc { border-color: rgba(8,8,8,.2); }
.sources__acc summary {
  list-style: none; cursor: pointer; min-height: 52px; display: flex; align-items: center; gap: 12px;
}
.sources__acc summary::-webkit-details-marker { display: none; }
.sources__acc summary::after { content: "+"; margin-left: auto; font-family: var(--f-mono); font-size: 1.1rem; line-height: 1; }
.sources__acc[open] summary::after { content: "−"; }
.sources__count { border: 1px solid currentColor; padding: 1px 7px; color: var(--gray); }
.section--light .sources__count { color: #5d5d5d; }
.sources__acc summary:hover .mono:first-child { text-decoration: underline; text-underline-offset: 3px; }
.sources__acc ol { padding: 4px 0 22px !important; columns: 2 320px; column-gap: 40px; display: block !important; }
.sources__acc li { break-inside: avoid; margin-bottom: 10px; }

@media (max-width: 560px) {
  .mirror__head { align-items: flex-start; flex-direction: column; }
}

/* Anchors land below the sticky top bar */
.sources, .stat, .mirror, .section { scroll-margin-top: 72px; }

/* Keep text readable over archival photos */
.stat--img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,8,8,.5), rgba(8,8,8,.9)); }
.stat > p, .stat > figcaption, .stat > .stat__foot { z-index: 1; }

/* ═══════════════ v13: sound, photos, big numbers, motion ═══════════════ */
:root { --expo: cubic-bezier(.16,1,.3,1); --pow3: cubic-bezier(.215,.61,.355,1); --in: cubic-bezier(.55,0,1,.45); }

/* ───────── Sound toggle ───────── */
.sound-btn {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px;
  background: transparent; color: var(--white); border: var(--rule); cursor: pointer;
}
.sound-btn:hover { border-color: var(--white); }
.sound-btn .sound-off, .sound-btn.is-muted .sound-on, .sound-btn.is-muted .sound-bars { display: none; }
.sound-btn.is-muted .sound-off { display: block; }
.sound-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.sound-bars i { width: 2px; height: 100%; background: currentColor; transform-origin: bottom; animation: bars 1.1s var(--pow3) infinite alternate; }
.sound-bars i:nth-child(2) { animation-delay: -.4s; } .sound-bars i:nth-child(3) { animation-delay: -.8s; }
@keyframes bars { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .sound-bars i { animation: none; transform: scaleY(.6); } }
.topbar nav { margin-left: auto; }
.topbar nav + .sound-btn { margin-left: 16px; }

/* ───────── Photos inside clippings ───────── */
.clip-photo { margin: 0 0 14px; }
.clip-photo__frame { overflow: hidden; border: 1px solid #141414; aspect-ratio: 16 / 10; background: #222; }
.clip-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.clip-photo--old img { filter: grayscale(1) contrast(1.15) sepia(.18); }
.clip-photo--web .clip-photo__frame { border-color: #ccc9c0; }
.clip-photo figcaption { margin-top: 5px; font-size: .55rem; letter-spacing: .03em; text-transform: none; opacity: .7; }
.clip-photo figcaption a { color: inherit; text-decoration: none; }
.clip-photo figcaption a:hover { text-decoration: underline; }
.paper img { height: auto; border: 0; margin: 0; } /* replaced by .clip-photo frame */

/* ───────── Big numbers ───────── */
.stats { grid-template-columns: repeat(6, 1fr); }
.stat { grid-column: span 2; min-height: 300px; }
.stat--lead { grid-column: span 4; grid-row: span 2; }
.stat__value { font-size: clamp(64px, 8vw, 150px); line-height: .9; letter-spacing: -.01em; font-variant-numeric: tabular-nums; transform: scale(var(--grow, 1)); transform-origin: left bottom; }
.stat--lead .stat__value { font-size: clamp(96px, 16vw, 280px); }
.stat__unit { font-size: .3em; vertical-align: 1.6em; }
.stat--img img { transform: scale(1.08); transition: transform 2.4s var(--expo); }
.stat.in img { transform: scale(1); }
.stats--world { grid-template-columns: repeat(3, 1fr); }
.stats--world .stat { grid-column: auto; grid-row: auto; }
.stats--world .stat__value { font-size: clamp(56px, 6vw, 110px); }
@media (max-width: 900px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat, .stat--lead { grid-column: span 1; grid-row: auto; }
  .stat--lead { grid-column: 1 / -1; }
  .stats--world { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .stats, .stats--world { grid-template-columns: 1fr; }
  .stat--lead .stat__value { font-size: clamp(88px, 30vw, 160px); }
}

/* ───────── Vote share ───────── */
.share-btn--vote { min-height: 48px; padding: 0 18px; border-color: var(--red); color: var(--white); }
.share-btn--vote:not(:disabled):hover { background: var(--red); border-color: var(--red); color: var(--black); } /* #ELENÃO */
.share-btn:disabled { opacity: .38; cursor: not-allowed; border-color: var(--gray); }

/* ───────── Motion (only when JS confirms motion is allowed) ───────── */
.motion [data-anim] { --d: 0ms; }

/* Section heads + headings: words rise out of a mask */
.w-mask { display: inline-block; overflow: hidden; vertical-align: bottom; padding-top: .25em; margin-top: -.25em; padding-bottom: .06em; margin-bottom: -.06em; }
.w-in { display: inline-block; }
.motion [data-anim=head] .w-in, .motion [data-anim=words] .w-in, .motion .case__headline .w-in {
  transform: translateY(105%); transition: transform .9s var(--expo); transition-delay: calc(var(--i) * 55ms);
}
.motion [data-anim=head].in .w-in, .motion .in [data-anim=words] .w-in, .motion [data-anim=words].in .w-in, .motion .in .case__headline .w-in, .motion .case__headline.in .w-in { transform: none; }
.motion [data-anim=head] .lede, .motion [data-anim=head] .section__num { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--pow3) .35s, transform .8s var(--expo) .35s; }
.motion [data-anim=head].in .lede, .motion [data-anim=head].in .section__num { opacity: 1; transform: none; }

/* Orwell interludes: words surface one by one, attribution follows */
.motion [data-anim=quote] .w-in { opacity: .08; transform: translateY(.35em); filter: blur(6px); transition: opacity .7s var(--pow3), transform 1s var(--expo), filter .9s var(--pow3); transition-delay: calc(var(--i) * 70ms); }
.motion [data-anim=quote].in .w-in { opacity: 1; transform: none; filter: none; }
.motion [data-anim=quote] footer { opacity: 0; transform: translateX(-12px); transition: opacity .8s var(--pow3) 1s, transform .9s var(--expo) 1s; }
.motion [data-anim=quote].in footer { opacity: 1; transform: none; }
.interlude .w-mask { overflow: visible; }

/* Generic rise */
.motion [data-anim=rise] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--pow3), transform 1s var(--expo); }
.motion [data-anim=rise].in { opacity: 1; transform: none; }

/* Clipping pairs: old paper slides in from the left, web print from the right, then they settle */
.motion [data-anim=mirror] .side--old { opacity: 0; transform: translateX(-60px) rotate(-3deg); transition: opacity .7s var(--pow3) .1s, transform 1.1s var(--expo) .1s; }
.motion [data-anim=mirror] .side--now { opacity: 0; transform: translateX(60px) rotate(3deg); transition: opacity .7s var(--pow3) .3s, transform 1.1s var(--expo) .3s; }
.motion [data-anim=mirror] .mirror__vs { opacity: 0; transform: scale(2.4) rotate(-90deg); transition: opacity .5s var(--pow3) .55s, transform .9s var(--expo) .55s; }
.motion [data-anim=mirror] .clip-photo__frame { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--expo) .55s; }
.motion [data-anim=mirror] .clip-photo img { transform: scale(1.15); transition: transform 1.8s var(--expo) .55s; }
.motion [data-anim=mirror] .mirror__parallel { clip-path: inset(-40px 100% -40px -20px); transition: clip-path 1s var(--expo) .9s; }
.motion [data-anim=mirror] .srcline { opacity: 0; transition: opacity .6s var(--pow3) 1.2s; }
.motion [data-anim=mirror].in .side--old, .motion [data-anim=mirror].in .side--now, .motion [data-anim=mirror].in .mirror__vs { opacity: 1; transform: none; }
.motion [data-anim=mirror].in .clip-photo__frame { clip-path: inset(0 0 0 0); }
.motion [data-anim=mirror].in .mirror__parallel { clip-path: inset(-40px -80px -40px -20px); }
.motion [data-anim=mirror].in .clip-photo img { transform: none; }
.motion [data-anim=mirror].in .srcline { opacity: 1; }

/* Stats */
.motion [data-anim=stat] { opacity: 0; transform: translateY(36px); transition: opacity .7s var(--pow3), transform 1s var(--expo); }
.motion [data-anim=stat].in { opacity: 1; transform: none; }
.motion [data-anim=stat] .stat__label, .motion [data-anim=stat] .stat__foot { opacity: 0; transition: opacity .8s var(--pow3) .9s; }
.motion [data-anim=stat].in .stat__label, .motion [data-anim=stat].in .stat__foot { opacity: 1; }

/* ───────── Vote takeover: plays and leaves on its own ───────── */
.takeover { cursor: pointer; }
.takeover.play { animation: take-in .35s var(--pow3) both; }
.takeover.leaving { animation: take-out .42s var(--in) both; }
@keyframes take-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes take-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: scale(1.04); } }
.takeover.play .takeover__wall div { animation: sweep .8s var(--expo) both; animation-delay: calc(var(--r) * 45ms); }
.takeover--nao.play .takeover__wall div { animation: expand 1s var(--expo) both; animation-delay: calc(var(--r) * 55ms); }
.takeover--sim.play .takeover__wall div:nth-child(even) { animation-name: sweep-r; }
@keyframes sweep-r { from { transform: translateX(30%); opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .takeover.play, .takeover.leaving, .takeover.play .takeover__wall div { animation: none; }
}

.nw { white-space: nowrap; }
.sound-btn:not(.is-playing) .sound-bars i { animation-play-state: paused; transform: scaleY(.3); }

/* Off-screen entrance offsets must never create horizontal scroll */
html { overflow-x: clip; }
.mirrors { overflow-x: clip; padding: 0 12px 12px; margin: 0 -12px; }
@media (max-width: 920px) { .topbar nav + .sound-btn { margin-left: auto; } }

/* ───────── Orwell in typewriter ───────── */
:root { --f-type: "Special Elite", "Courier New", ui-monospace, monospace; }
.interlude q, .interlude .q { font-family: var(--f-type); font-size: clamp(26px, 3.8vw, 58px); line-height: 1.18; letter-spacing: -.01em; }
.interlude .orig { font-family: var(--f-type); font-style: normal; }
.hero__quote { font-family: var(--f-type); font-style: normal; font-size: .86rem; line-height: 1.45; }

/* ───────── Resistance tapes ─────────
   Red here keeps its single meaning: resistance (#ELENÃO and its slogans). */
.tape-host { position: relative; cursor: crosshair; -webkit-tap-highlight-color: transparent; }
.tape {
  position: absolute; left: 50%; top: 50%; z-index: 3; pointer-events: none;
  min-width: max-content; padding: .28em .7em .22em;
  font-family: var(--f-display); font-weight: 400; font-size: clamp(18px, 1.6vw, 26px); line-height: 1; letter-spacing: .03em; text-transform: uppercase;
  color: var(--black); background: var(--red);
  clip-path: polygon(0 8%, 3% 0, 97% 6%, 100% 0, 99% 92%, 96% 100%, 4% 94%, 0 100%);
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
  transform: translate(-50%, -50%) rotate(-3deg) scaleX(0); transform-origin: 0 50%;
  transition: transform .45s var(--expo);
}
.mirror__parallel .tape { font-size: clamp(22px, 2.4vw, 36px); }
@media (prefers-reduced-motion: reduce) { .tape { transition: none; } }

/* Share preview shows a real image so it can be saved with the browser's own menu */
.share__preview img { max-width: 100%; max-height: 52svh; width: auto; height: auto; border: var(--rule); }
.share__preview canvas[hidden] { display: none; }
.share__hint { color: var(--soft, #c9c7c1); text-transform: none !important; margin: 0; }

/* ═══════════════ v24 ═══════════════ */

/* ───────── Resistance tapes, v2: clip wipe, no glyph stretching ───────── */
.tape {
  position: absolute; left: -.35em; top: 50%; z-index: 4; pointer-events: none;
  display: block; min-width: max-content; padding: .34em .75em .26em .7em;
  font-family: var(--f-display); font-weight: 400; font-size: clamp(18px, 1.5vw, 24px); line-height: 1; letter-spacing: .04em;
  text-transform: uppercase; color: var(--black);
  background-color: var(--red);
  background-image:
    repeating-linear-gradient(97deg, rgba(0,0,0,.06) 0 1px, transparent 1px 5px),
    linear-gradient(180deg, rgba(255,255,255,.12), rgba(0,0,0,.08));
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.55);
  transform: translateY(-50%) rotate(-3.2deg);
  /* closed, gathered at the leading edge */
  clip-path: polygon(0 6%, 0 0, 0 4%, 0 0, 0 52%, 0 100%, 0 95%, 0 100%, 0 94%, 0 48%);
  transition: none;
}
.tape__txt { display: inline-block; opacity: 0; transform: translateX(-.5em); }
.tape-host.is-in .tape {
  clip-path: polygon(0 6%, 3% 0, 97% 4%, 100% 0, 99.2% 52%, 100% 100%, 96% 95%, 4% 100%, 0 94%, .9% 48%);
  transform: translateY(-50%) rotate(-2deg);
  transition: clip-path .55s var(--expo), transform .8s var(--expo);
}
.tape-host.is-in .tape__txt { opacity: 1; transform: none; transition: opacity .25s linear .1s, transform .6s var(--expo) .1s; }
.tape-host.is-out .tape {
  /* leaves through the trailing edge */
  clip-path: polygon(100% 6%, 100% 0, 100% 4%, 100% 0, 100% 52%, 100% 100%, 100% 95%, 100% 100%, 100% 94%, 100% 48%);
  transform: translateY(-50%) rotate(-2deg);
  transition: clip-path .26s var(--in);
}
.tape-host.is-out .tape__txt { opacity: 1; transform: none; }
.mirror__parallel .tape { font-size: clamp(20px, 2.2vw, 34px); }
.side-tag .tape-host { display: inline-block; }
.side-tag .tape { font-size: .8em; left: -.5em; }
@media (prefers-reduced-motion: reduce) {
  .tape-host.is-in .tape, .tape-host.is-out .tape, .tape-host.is-in .tape__txt { transition: none; }
}
/* Parallel lines no longer use clip-path (it cut the tapes) */
.motion [data-anim=mirror] .mirror__parallel { clip-path: none; opacity: 0; transform: translateY(16px); transition: opacity .7s var(--pow3) .9s, transform .9s var(--expo) .9s; }
.motion [data-anim=mirror].in .mirror__parallel { clip-path: none; opacity: 1; transform: none; }
.mirror__parallel { position: relative; z-index: 2; }

/* ───────── 01 · Before/after compare ───────── */
.case { grid-template-columns: minmax(260px, 5fr) 7fr; }
.compare { margin: 0; min-width: 0; }
.compare__tags { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.compare__tags .side-tag { margin: 0 0 12px; }
.compare__frame {
  position: relative; aspect-ratio: 4 / 3; max-width: 100%; overflow: hidden;
  background: #111; border: 1px solid rgba(232,230,224,.35); touch-action: pan-y;
  --pos: 50%;
}
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.compare__img--then { object-position: 50% 18%; filter: grayscale(1) contrast(1.1); }
.compare__img--now { object-position: 40% 50%; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--white); box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 0 18px rgba(0,0,0,.6); pointer-events: none; }
.compare__knob {
  position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--white); color: var(--black); box-shadow: 0 6px 20px rgba(0,0,0,.5);
  transition: transform .3s var(--expo);
}
.compare__frame:hover .compare__knob { transform: scale(1.08); }
.compare__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none; background: transparent; touch-action: pan-y;
}
.compare__range::-webkit-slider-thumb { -webkit-appearance: none; width: 52px; height: 100vh; }
.compare__range::-moz-range-thumb { width: 52px; height: 100vh; border: 0; background: transparent; }
.compare__frame:has(.compare__range:focus-visible) { outline: 2px solid var(--white); outline-offset: 4px; }
.compare__frame:has(.compare__range:focus-visible) .compare__knob { transform: scale(1.12); }
.compare__cap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; color: var(--gray); text-transform: none !important; font-size: .64rem; }
.formula { margin-top: clamp(32px, 5vw, 56px); }
.case__share { margin-top: 8px; }
@media (max-width: 900px) { .case { grid-template-columns: 1fr; } }

.section__share { grid-column: 2; margin-top: 20px; }

/* ═══════════════ v26 ═══════════════ */

/* ───────── Tapes v3: crumpled vinyl texture (assets/img/tape-*.webp) ───────── */
.tape {
  background: url("../assets/img/tape-1.webp") center / 100% 100% no-repeat;
  box-shadow: none; filter: drop-shadow(0 7px 9px rgba(0,0,0,.32));
  padding: .5em 1.05em .42em 1em; color: #101010;
  clip-path: inset(-30% 100% -30% 0);
}
.tape--2 { background-image: url("../assets/img/tape-2.webp"); }
.tape--3 { background-image: url("../assets/img/tape-3.webp"); }
.tape-host.is-in .tape { clip-path: inset(-30% -4% -30% 0); }
.tape-host.is-out .tape { clip-path: inset(-30% -4% -30% 100%); }

/* ───────── Hover: quiet, physical ───────── */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .paper, .web { transition: transform .6s var(--expo), box-shadow .6s var(--expo); }
  .paper:hover { transform: rotate(-.2deg) translate(-3px, -6px); box-shadow: 10px 16px 0 rgba(8,8,8,.85); }
  .web:hover { transform: rotate(.15deg) translate(3px, -6px); box-shadow: 10px 16px 0 rgba(8,8,8,.85); }
  .clip-photo img { transition: transform 1.4s var(--expo); }
  .paper:hover .clip-photo img, .web:hover .clip-photo img { transform: scale(1.045); }
  .mirror__vs { transition: transform .7s var(--expo), color .3s linear; }
  .mirror:hover .mirror__vs { transform: rotate(90deg); color: var(--black); }
  .stat img { transition: transform 1.6s var(--expo), filter .6s linear; }
  .stat.in:hover img { transform: scale(1.06); }
  .stat__value { transition: transform .6s var(--expo); }
  .stat:hover .stat__value { transform: translateY(-4px) scale(var(--grow, 1)); }
  .share-btn svg, .totop svg { transition: transform .35s var(--expo); }
  .share-btn:hover svg { transform: translate(2px, -2px); }
  .totop:hover svg { transform: translateY(-3px); }
  .vote__btn:not(:disabled):hover { transform: translateY(-3px); }
  .topbar nav a { background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size .4s var(--expo), opacity .2s linear; }
  .topbar nav a:hover { text-decoration: none; background-size: 100% 1px; }
  .compare__frame { transition: border-color .3s linear; }
  .compare__frame:hover { border-color: var(--white); }
}

/* ───────── Vote: one per browser ───────── */
.vote__mine { visibility: hidden; color: var(--white); }
.vote__col.is-chosen .vote__mine { visibility: visible; }
.vote__col.is-chosen .vote__btn { outline: 3px solid var(--white); outline-offset: 4px; }
.vote__col.is-chosen .vote__btn--ele { outline-color: var(--red); }
.vote__col.is-other { opacity: .35; }
.vote__btn:disabled { cursor: default; }
.vote__note { color: var(--gray); margin: 18px 0 0; }

/* ───────── Back to top + legal ───────── */
.totop {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--deep); color: var(--white); text-decoration: none;
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
}
.totop:hover { border-color: var(--white); }
.legal { margin-top: 24px; padding-top: 18px; border-top: var(--rule); display: grid; gap: 6px; max-width: 80ch; }
.legal p { margin: 0; color: var(--gray); font-size: .78rem; line-height: 1.5; }

/* ═══════════════ v28 · faces aligned, mobile pass ═══════════════ */

/* Hero hint: touch wording on coarse pointers or after a real touch */
@media (hover: none), (pointer: coarse) { .hint-hover { display: none; } .hint-touch { display: inline; } }
.is-touch .hint-hover { display: none; }
.is-touch .hint-touch { display: inline; }

/* ───────── Compare: both faces centred, same size ─────────
   Frame 16:10. Eye line at 44% of the height, nose on the vertical centre,
   same head width for both images (Braschi scaled ×0.88 from the eye→chin match).
   PL image 1536×1075: eyes y=472, nose x=683, eye→chin 458px.
   Braschi crop 1200×1040 (×4 of the 1934 photo): eyes y=492, nose x=600, eye→chin 220px. */
.compare__frame { aspect-ratio: 16 / 10; }
.compare__img { inset: auto; object-fit: fill; max-width: none; }
.compare__img--now  { width: 114.03%; height: 127.7%;  left: -0.70%;  top: -12.06%; object-position: 0 0; }
.compare__img--then { width: 163.2%; height: 226.3%;  left: -31.6%; top: -63.06%; object-position: 0 0; filter: grayscale(1) contrast(1.12); }

/* Tags and captions: two fixed columns that never collide */
.compare__tags { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.compare__tags .side-tag:last-child { justify-self: end; }
.compare__cap { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.compare__cap span:last-child { text-align: right; }

/* ───────── Mobile ───────── */
@media (max-width: 700px) {
  :root { --gutter: 16px; }
  .section { padding-block: 56px; }
  .section__head { grid-template-columns: 1fr; row-gap: 6px; margin-bottom: 28px; }
  .section__num { grid-row: auto; padding-top: 0; }
  .section__head .display { font-size: clamp(38px, 11vw, 56px); }
  .lede, .section__share { grid-column: 1; }

  /* Share = icon button next to the title */
  .share-btn { width: 44px; padding: 0; flex: none; }
  .share-btn__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .mirror__head { flex-direction: row; align-items: flex-end; gap: 12px; }
  .mirror__title { font-size: clamp(28px, 8.4vw, 40px); }
  .section__share { margin-top: 8px; }
  .case__share { justify-content: flex-start; }
  .share-btn--vote { width: auto; padding: 0 14px; }
  .share-btn--vote .share-btn__txt { position: static; width: auto; height: auto; clip: auto; overflow: visible; }

  /* Compare */
  .compare__tags .side-tag { font-size: 15px; padding: 5px 8px 4px; margin-bottom: 8px; }
  .compare__cap { font-size: .58rem; }
  .compare__knob { width: 44px; height: 44px; margin: -22px 0 0 -22px; }

  /* Clippings */
  .side-tag { font-size: 20px; }
  .paper, .web { box-shadow: 4px 6px 0 rgba(8,8,8,.85); }
  .paper__mast { font-size: 28px; }
  .paper__headline, .web__headline { font-size: 20px; }
  .paper__quote, .web__quote { font-size: 18px; }
  .mirror__vs { font-size: 32px; padding: 10px 0 2px; }
  .mirror__parallel { font-size: 24px; }
  .mirrors { gap: 56px; }

  /* Interludes */
  .interlude { padding-block: 64px; }
  .interlude q, .interlude .q { font-size: clamp(24px, 7.4vw, 34px); }

  /* Numbers */
  .stat { min-height: 0; padding: 20px; }
  .stat--lead .stat__value { font-size: clamp(80px, 26vw, 128px); }
  .stat__value { font-size: clamp(52px, 15vw, 72px); }

  /* Vote */
  .vote { padding-block: 64px 24px; }
  .vote__q { font-size: clamp(34px, 10vw, 48px); }
  .vote__board { gap: 12px; }
  .vote__btn { font-size: clamp(30px, 10vw, 44px); }
  .vote__count { font-size: 44px; }
  .vote__foot { gap: 12px; }
  .vote__foot p { flex-basis: 100%; }
  .legal p { font-size: .72rem; }

  /* Hero caption stays readable without covering the face */
  .hero__quote { font-size: .78rem; }
  .hero__credit { font-size: .55rem; }
}

/* ═══════════════ v30 ═══════════════ */
/* Slider: the "now" layer is clipped by a frame-sized wrapper, so the cut follows the line exactly */
.compare__clip { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__img--now { clip-path: none; }
/* Tags keep their natural width (they were stretching to the column) */
.compare__tags .side-tag { justify-self: start; max-width: 100%; }
.compare__tags .side-tag:last-child { justify-self: end; }

/* Electoral blackout: static portrait, no eye layers, no "animated eyes" notes */
.eyes-off .eye, .eyes-off .eyes-note { display: none !important; }

/* Post-vote message */
.vote__msg { margin-top: 28px; padding: 24px 0 4px; border-top: var(--rule); max-width: 62ch; display: grid; gap: 14px; }
.vote__msg-text { margin: 0; font-family: var(--f-serif); font-weight: 600; font-size: clamp(20px, 2.2vw, 30px); line-height: 1.25; color: var(--soft, #c9c7c1); }
.vote__msg.is-ele .vote__msg-text { color: var(--red); }   /* #ELENÃO */
.vote__msg-quote { margin: 0; font-family: var(--f-type); font-size: clamp(17px, 1.6vw, 22px); line-height: 1.4; color: var(--white); }
.vote__msg-quote footer { margin-top: 10px; color: var(--gray); font-size: .62rem; text-transform: none; letter-spacing: .04em; }

/* Legal line: one small centred sentence */
.legal { display: block; max-width: 72ch; margin: 28px auto 0; padding-top: 16px; border-top: var(--rule); text-align: center; color: var(--gray); font-size: .66rem; line-height: 1.55; }
.legal a { color: var(--white); }

/* Nav never wraps; hides before it would */
.topbar nav a { white-space: nowrap; }
@media (max-width: 1100px) { .topbar nav { display: none; } .topbar nav + .sound-btn { margin-left: auto; } }

/* Legal line spans the full footer width */
.legal { max-width: none; width: 100%; margin: 28px 0 0; }

/* Share options + error alert */
.share__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.share__opts[hidden] { display: none; }
.share__opts a, .share__opts button { font: inherit; font-size: .8rem; padding: 8px 12px; border: 1px solid currentColor; background: transparent; color: inherit; text-decoration: none; cursor: pointer; }
.share__opts a:hover, .share__opts button:hover { text-decoration: underline; }
.alert { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #c8102e; background: rgba(200,16,46,.1); text-transform: none; }
.alert img { width: 32px; height: 32px; flex: none; object-fit: contain; }
.share__status:empty { display: none; }

/* ═══════════════ v30 · share dialog, vote share, back to top ═══════════════ */
.share { width: min(600px, calc(100vw - 24px)); }
.share__inner { padding: clamp(18px, 3vw, 28px); gap: 16px; }
.share__head { align-items: flex-start; gap: 16px; }
.share__titles { min-width: 0; display: grid; gap: 6px; }
.share__kicker { margin: 0; color: var(--gray); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.share__title { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 5vw, 42px); line-height: 1.05; letter-spacing: .01em; text-transform: uppercase; padding-top: .12em; text-wrap: balance; }
.share__lede { margin: 2px 0 0; color: var(--soft, #c9c7c1); font-size: .95rem; line-height: 1.45; max-width: 46ch; }
.share__x { flex: none; display: grid; place-items: center; color: var(--white); }
.share__x:hover, .share__x:focus-visible { border-color: var(--white); }
.share__formats { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--deep); }
.share__formats label { position: relative; justify-content: center; border: 0; min-height: 44px; color: var(--gray); transition: background-color .2s linear, color .2s linear; }
.share__formats label + label { border-left: 1px solid var(--deep); }
.share__formats input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.share__formats label:has(input:checked) { background: var(--white); color: var(--black); }
.share__formats label:has(input:focus-visible) { outline: 2px solid var(--white); outline-offset: 2px; }
.share__formats small { opacity: .7; margin-left: 4px; font-size: inherit; }
.share__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.share__act { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; }
.share__opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.share__opts a, .share__opts button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--deep); font-family: var(--f-mono); font-size: .74rem; letter-spacing: .04em; }
.share__opts a:hover, .share__opts button:hover, .share__opts a:focus-visible, .share__opts button:focus-visible { border-color: var(--white); text-decoration: none; }
.share__link { display: flex; align-items: center; gap: 8px; border: 1px solid var(--deep); padding: 4px 4px 4px 12px; }
.share__link .share__url { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; word-break: normal; font-size: .72rem; user-select: all; }
.share__copy { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; background: transparent; color: var(--white); border: 1px solid var(--deep); font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.share__copy:hover, .share__copy:focus-visible { border-color: var(--white); }
@media (max-width: 480px) { .share__actions { grid-template-columns: 1fr; } }

/* Numbers: share button beside the title */
.section__head--share { grid-template-columns: 56px 1fr auto; align-items: end; }
.section__head--share .section__share { grid-column: 3; grid-row: 1; margin: 0; align-self: end; }
@media (max-width: 700px) {
  .section__head--share { grid-template-columns: 1fr auto; }
  .section__head--share .section__num { grid-column: 1 / -1; }
  .section__head--share .display { grid-column: 1; }
  .section__head--share .section__share { grid-column: 2; grid-row: 2; }
}

/* Vote share: appears only after voting, in place of the note */
.vote__share {
  display: inline-flex; align-items: center; gap: 12px; margin: 22px 0 0; min-height: 56px; padding: 0 26px;
  background: var(--white); color: var(--black); border: 2px solid var(--white); cursor: pointer;
  font-family: var(--f-display); font-size: clamp(18px, 2.2vw, 24px); letter-spacing: .03em; text-transform: uppercase;
  transition: transform .3s var(--expo), background-color .2s linear;
}
.vote__share.is-ele { background: var(--red); border-color: var(--red); color: var(--black); }
.vote__share[hidden] { display: none; }
.vote__share:focus-visible { outline: 3px solid var(--white); outline-offset: 4px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .vote__share:hover { transform: translateY(-3px); } }
.vote__note[hidden] { display: none; }

/* Back to top: icon button on small screens */
@media (max-width: 700px) {
  .totop { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .totop__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
