/* Cantal Insights — redesign 3 "motion & play". Self-contained: no external fonts or assets. */
:root {
  --paper: #fff7ec;
  --paper-2: #ffeed8;
  --card: #ffffff;
  --ink: #1b1b2f;
  --ink-2: #4a4a63;
  --red: rgb(220, 38, 38);
  --red-dark: #b91c1c;
  --red-soft: #ffe3df;
  --blue: #1e40af;
  --blue-soft: #dfe8ff;
  --sun: #ffc83d;
  --sun-dark: #8a5a00;
  --mint: #c9efd9;
  --green: #166534;
  --shadow: 4px 4px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --r: 18px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper);
  font-size: 17px; line-height: 1.55; overflow-x: hidden;
  background-image: radial-gradient(rgba(27, 27, 47, .07) 1.2px, transparent 1.3px); background-size: 22px 22px;
}
h1, h2, h3 { line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 900; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 6.2vw, 4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--red-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
img, svg, canvas { max-width: 100%; }
.num { font-variant-numeric: tabular-nums; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; color: #fff; }
[hidden] { display: none !important; }

/* scroll progress: a little leaf walking the border */
.progress { position: fixed; inset: 0 0 auto 0; height: 5px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; background: repeating-linear-gradient(90deg, var(--red) 0 14px, transparent 14px 22px); transform-origin: 0 50%; transform: scaleX(0); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 247, 236, .94); border-bottom: 2px solid var(--ink); }
@supports (backdrop-filter: blur(6px)) { .site-header { backdrop-filter: blur(6px); } }
.site-header .wrap { display: flex; align-items: center; gap: 14px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.brand .leaf { width: 34px; height: 34px; padding: 6px; background: var(--red); border: 2px solid var(--ink); border-radius: 11px; box-shadow: 2px 2px 0 var(--ink); transition: transform .4s var(--spring); }
.brand:hover .leaf { transform: rotate(-14deg) scale(1.08); }
.brand small { font-weight: 700; color: var(--ink-2); font-size: .8rem; display: block; line-height: 1; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 800; padding: 8px 12px; border-radius: 999px; border: 2px solid transparent; }
.nav a:hover { background: var(--paper-2); }
.nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.cur { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 800; }
.cur select { font: inherit; font-weight: 800; padding: 7px 8px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; color: var(--ink); }
.cur .rate { color: var(--ink-2); font-weight: 600; }
.btn.menu-btn { display: none; margin-left: auto; }
@media (max-width: 900px) {
  .btn.menu-btn { display: inline-flex; }
  .nav { display: none; width: 100%; margin: 0; flex-direction: column; align-items: stretch; padding: 6px 0 10px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .site-header .cur .rate { display: none; }
}

/* buttons, chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 900; padding: 12px 20px; min-height: 46px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); color: var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn.red { background: var(--red); color: #fff; }
.btn.red:hover { color: #fff; background: var(--red-dark); }
.btn.sun { background: var(--sun); }
.btn.ink { background: var(--ink); color: #fff; }
.btn.small { padding: 6px 14px; min-height: 38px; font-size: .9rem; box-shadow: 2px 2px 0 var(--ink); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; box-shadow: none; transform: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: .92rem; font-weight: 800; padding: 8px 13px; min-height: 40px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); cursor: pointer; transition: transform .2s var(--spring), background .15s, box-shadow .15s; box-shadow: 2px 2px 0 var(--ink); }
.chip:hover { transform: translateY(-2px) rotate(-1.5deg); background: var(--sun); }
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"], .chip.on { background: var(--ink); color: #fff; }
.chip[aria-disabled="true"] { background: transparent; color: var(--ink-2); border-style: dashed; box-shadow: none; cursor: not-allowed; }
.chip[aria-disabled="true"]:hover { transform: none; background: transparent; }
.chip[draggable="true"] { cursor: grab; }
.chip.pop { animation: pop .45s var(--spring); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
@keyframes pop { 0% { transform: scale(.6); } 100% { transform: scale(1); } }

/* segmented radios */
.seg { border: 0; padding: 0; margin: 0; min-width: 0; }
.seg legend, .field > label, .field > .label { font-weight: 900; font-size: .9rem; margin-bottom: 6px; display: block; padding: 0; }
.seg .opts { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 15px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font-weight: 800; cursor: pointer; transition: transform .2s var(--spring), background .15s; }
.seg label:hover { background: var(--sun); }
.seg input:checked + label { background: var(--ink); color: #fff; transform: translateY(-2px); box-shadow: 0 3px 0 var(--red); }
.seg input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 3px; }
.seg input:disabled + label { border-style: dashed; color: var(--ink-2); background: transparent; cursor: not-allowed; text-decoration: line-through; }

/* form fields */
.field { margin-bottom: 16px; }
.field .hint { font-size: .86rem; color: var(--ink-2); margin: 4px 0 0; }
.field .opt { font-weight: 600; color: var(--ink-2); }
input[type="text"], input[type="email"], input[type="search"], select.input, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 11px 13px; min-height: 46px;
}
textarea { resize: vertical; min-height: 110px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
[aria-invalid="true"] { border-color: var(--red-dark) !important; background: #fff5f4 !important; }
.err { color: var(--red-dark); font-weight: 800; font-size: .9rem; margin: 5px 0 0; }
.err::before { content: "↳ "; }

/* cards & layout */
.card { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); padding: clamp(16px, 3vw, 26px); }
.card.tilt { transform: rotate(-.6deg); }
.section { padding: clamp(40px, 7vw, 84px) 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; background: var(--sun); border: 2px solid var(--ink); border-radius: 999px; padding: 4px 12px; margin-bottom: 14px; }
.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--ink-2); max-width: 60ch; }
.grid2 { display: grid; gap: clamp(18px, 3vw, 34px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .grid2 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } .grid2.even { grid-template-columns: 1fr 1fr; } }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.note { font-size: .88rem; color: var(--ink-2); }
.us-c { color: var(--blue); } .ca-c { color: var(--red-dark); }
.tag { display: inline-block; font-size: .75rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; border: 1.5px solid var(--ink); background: var(--paper-2); }
.tag.illus { background: repeating-linear-gradient(45deg, #fff 0 5px, var(--paper-2) 5px 10px); }
mark.hl { background: linear-gradient(transparent 58%, var(--sun) 58%); color: inherit; padding: 0 2px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px) rotate(.4deg); transition: opacity .6s ease, transform .7s var(--spring); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* border scene */
.scene { position: relative; padding: 0; overflow: hidden; }
.scene canvas { display: block; width: 100%; height: 440px; touch-action: pan-y; }
@media (max-width: 600px) { .scene canvas { height: 400px; } }
.scene-bar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 10px 14px; border-top: 2px solid var(--ink); background: var(--paper-2); font-size: .88rem; }
.scene-bar .spacer { flex: 1; }
.scene.dragover { outline: 4px dashed var(--red); outline-offset: -8px; }
.result { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 18px; }
.stat { border: 2px solid var(--ink); border-radius: 14px; padding: 12px 14px; background: #fff; }
.stat.us { background: var(--blue-soft); } .stat.ca { background: var(--red-soft); } .stat.gap { background: var(--sun); }
.stat .k { font-size: .78rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.stat .v { font-size: clamp(1.35rem, 3.4vw, 1.8rem); font-weight: 900; line-height: 1.15; font-variant-numeric: tabular-nums; display: block; }
.stat .s { font-size: .82rem; color: var(--ink); display: block; }
.stat .s a { color: var(--ink); }

/* scoreboard tiles */
.tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tile .big { font-size: 3.2rem; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.dots { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; transform: scale(0); transition: transform .4s var(--spring), background .3s; transition-delay: calc(var(--i) * 40ms); }
.in .dots i { transform: scale(1); background: var(--red); }
.in .dots i.higher { background: var(--blue); }

/* ranked bars */
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.bars li { display: grid; gap: 4px; }
.bars .lbl { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-weight: 800; }
.bars .track { position: relative; height: 22px; border: 2px solid var(--ink); border-radius: 999px; background: var(--blue-soft); overflow: hidden; }
.bars .fill { position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--red); border-right: 2px solid var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1s var(--spring); transition-delay: calc(var(--i) * 90ms); }
.in .bars .fill, .bars.in .fill { transform: scaleX(1); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .88rem; font-weight: 800; }
.legend i { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--ink); border-radius: 4px; vertical-align: -2px; margin-right: 5px; }

/* salary table */
.toolbar { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); align-items: end; margin-bottom: 18px; }
.toolbar .field { margin: 0; }
.table-wrap { padding: 0; overflow: hidden; overflow: clip; }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.data caption { text-align: left; padding: 12px 16px; font-size: .88rem; color: var(--ink-2); border-bottom: 2px solid var(--ink); background: var(--paper-2); }
table.data th, table.data td { text-align: left; padding: 12px 14px; vertical-align: top; border-bottom: 1.5px solid #e5dccb; }
table.data thead th { background: var(--ink); color: #fff; position: sticky; top: 62px; z-index: 2; padding: 6px 8px; border: 0; vertical-align: middle; }
table.data thead th:not([data-sort]) { padding: 12px 14px; }
.sortbtn { font: inherit; font-weight: 900; color: #fff; background: none; border: 0; padding: 8px 8px; border-radius: 8px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; min-height: 40px; text-align: left; }
.sortbtn:hover { background: rgba(255, 255, 255, .16); }
.sortbtn:focus-visible { outline-color: var(--sun); }
.sortbtn .ar { display: inline-block; transition: transform .35s var(--spring); opacity: .7; }
th[aria-sort="ascending"] .ar { transform: rotate(180deg); opacity: 1; color: var(--sun); }
th[aria-sort="descending"] .ar { opacity: 1; color: var(--sun); }
table.data tbody tr { background: #fff; transition: background .2s; }
table.data tbody tr:hover { background: #fffaf0; }
table.data tbody tr.flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 40% { background: var(--sun); } }
table.data tbody th { font-weight: 900; }
table.data small { display: block; color: var(--ink-2); font-size: .8rem; font-weight: 600; }
table.data small a { color: var(--ink-2); }
table.data .amt { font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data .na { color: var(--ink-2); font-style: italic; }
.gapbar { position: relative; height: 10px; width: 100%; min-width: 110px; max-width: 220px; margin-top: 6px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--blue-soft); overflow: hidden; }
.gapbar i { position: absolute; inset: 0 auto 0 0; background: var(--red); width: var(--w); transition: width .7s var(--spring); }
.lvl { text-transform: capitalize; }
@media (max-width: 760px) {
  table.data thead { position: absolute; left: -9999px; }
  table.data, table.data tbody, table.data tr, table.data th, table.data td { display: block; }
  table.data tbody tr { border-bottom: 2px solid var(--ink); padding: 10px 0; }
  table.data caption { display: block; }
  table.data th, table.data td { border: 0; padding: 4px 16px; }
  table.data td::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
  .mobile-sort { display: block !important; }
}
.mobile-sort { display: none; }

/* compare: dumbbells */
.dumb { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.dumb li { display: grid; gap: 6px; }
.dumb .head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.dumb .head b { font-size: 1.05rem; }
.dumb .rail { position: relative; height: 34px; margin-inline: 14px; }
.dumb .rail::before { content: ""; position: absolute; left: -14px; right: -14px; top: 15px; height: 4px; border-radius: 4px; background: repeating-linear-gradient(90deg, #d9cfbd 0 8px, transparent 8px 14px); }
.dumb .seg-gap { position: absolute; top: 11px; height: 12px; left: var(--ca); width: calc(var(--us) - var(--ca)); background: var(--sun); border-block: 2px solid var(--ink); transition: left .8s var(--spring), width .8s var(--spring), opacity .3s; }
.dumb .dot { position: absolute; top: 3px; width: 28px; height: 28px; margin-left: -14px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-size: .62rem; font-weight: 900; color: #fff; transition: left .8s var(--spring), opacity .3s, transform .4s var(--spring); }
.dumb .dot.us { left: var(--us); background: var(--blue); }
.dumb .dot.ca { left: var(--ca); background: var(--red); }
.dumb li.na .dot, .dumb li.na .seg-gap { opacity: 0; transform: scale(.3); }
.dumb .vals { font-size: .88rem; display: grid; gap: 2px; }
.dumb .vals a { color: var(--ink-2); }
.dumb .gaptxt { font-weight: 900; font-variant-numeric: tabular-nums; }
.pick { max-height: 400px; overflow: auto; padding: 6px 4px 6px 2px; }

/* calculator */
.team-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.team-list li { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; border: 2px solid var(--ink); border-radius: 14px; padding: 10px 12px; background: #fff; animation: slidein .45s var(--spring); }
@keyframes slidein { from { transform: translateX(-24px) rotate(-2deg); opacity: 0; } }
.team-list .who { flex: 1 1 180px; font-weight: 900; }
.team-list .who small { display: block; font-weight: 600; color: var(--ink-2); }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper button { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); background: var(--sun); font: inherit; font-weight: 900; font-size: 1.2rem; cursor: pointer; line-height: 1; }
.stepper button:hover { background: #fff; }
.stepper output { min-width: 2ch; text-align: center; font-weight: 900; font-variant-numeric: tabular-nums; }
.xbtn { border: 0; background: none; font: inherit; color: var(--red-dark); font-weight: 800; text-decoration: underline; cursor: pointer; min-height: 40px; padding: 0 6px; }
.empty { border: 2px dashed var(--ink); border-radius: 14px; padding: 18px; text-align: center; color: var(--ink-2); font-weight: 700; }
.capture { background: var(--mint); }
.stamp { display: inline-block; border: 4px double var(--red-dark); color: var(--red-dark); font-weight: 900; letter-spacing: .12em; text-transform: uppercase; padding: 10px 18px; border-radius: 12px; transform: rotate(-7deg); animation: stamp .5s cubic-bezier(.2, 1.8, .4, 1) both; margin: 6px 0 18px; }
@keyframes stamp { 0% { transform: rotate(-20deg) scale(3); opacity: 0; } 100% { transform: rotate(-7deg) scale(1); opacity: 1; } }
.success h2 { margin-top: 0; }
pre.payload { background: var(--ink); color: #f6efe2; padding: 14px; border-radius: 12px; font: .78rem/1.5 var(--mono); overflow: auto; max-height: 260px; white-space: pre-wrap; word-break: break-word; }

/* suggestion box */
.suggest { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 860px) { .suggest { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.boxart { position: relative; height: 230px; max-width: 300px; margin-inline: auto; width: 100%; }
.boxart .body { position: absolute; inset: 70px 20px 0 20px; background: var(--red); border: 3px solid var(--ink); border-radius: 16px 16px 10px 10px; box-shadow: var(--shadow); display: grid; place-items: center; color: #fff; font-weight: 900; text-align: center; padding: 26px 10px 8px; line-height: 1.15; }
.boxart .slot { position: absolute; left: 50%; top: 86px; width: 150px; height: 12px; margin-left: -75px; background: var(--ink); border-radius: 8px; z-index: 2; }
.boxart .slip { position: absolute; left: 50%; top: 0; width: 120px; height: 84px; margin-left: -60px; background: #fff; border: 2px solid var(--ink); border-radius: 6px; padding: 8px; font-size: .68rem; font-weight: 800; line-height: 1.25; overflow: hidden; z-index: 1; transform: rotate(-5deg); transition: transform .4s var(--spring); clip-path: inset(0 0 0 0); }
.boxart .slip::after { content: ""; display: block; margin-top: 6px; height: 22px; background: repeating-linear-gradient(#cfc6b4 0 2px, transparent 2px 7px); }
.boxart.drop .slip { animation: slipin 1s cubic-bezier(.6, -.3, .7, 1) forwards; }
@keyframes slipin { 30% { transform: rotate(0) translateY(-10px); clip-path: inset(0 0 0 0); } 100% { transform: rotate(0) translateY(92px); clip-path: inset(0 0 100% 0); } }
.boxart.drop .body { animation: wiggle .5s .9s ease; }
@keyframes wiggle { 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }

/* CTA band + footer */
.band { background: var(--ink); color: #fff; border-block: 2px solid var(--ink); }
.band h2 { color: #fff; }
.band p { color: #e9e2d3; }
.band a:not(.btn) { color: #fff; }
.band .card a:not(.btn) { color: var(--red-dark); }
.band .card .note a:not(.btn) { color: var(--ink-2); }
.band .card p, .band .card .note { color: var(--ink-2); }
.band .btn { box-shadow: 3px 3px 0 var(--sun); border-color: #fff; }
.site-footer { padding: 34px 0 44px; font-size: .92rem; border-top: 2px solid var(--ink); background: var(--paper-2); }
.site-footer .wrap { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--ink); font-weight: 700; }
.proud { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px 6px 8px; background: #fff; }
.proud svg { width: 22px; height: 22px; animation: sway 3.5s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes sway { 50% { transform: rotate(12deg); } }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 90; }
.live { min-height: 1.2em; }

/* static, still-informative version */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .dots i { transform: scale(1); background: var(--red); }
  .dots i.higher { background: var(--blue); }
  .bars .fill { transform: scaleX(1); }
  .progress { display: none; }
  .boxart.drop .slip { transform: translateY(92px); clip-path: inset(0 0 100% 0); }
}
@media print { .site-header, .progress, .scene-bar { display: none; } .reveal { opacity: 1; transform: none; } }

@media (min-width: 960px) { .stick { position: sticky; top: 84px; } }

/* mobile tally: keeps the result in view while tapping chips below the scene */
.tally { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: flex; gap: 10px; align-items: center; justify-content: space-between; background: var(--sun); border: 2px solid var(--ink); border-radius: 16px; box-shadow: var(--shadow-sm); padding: 8px 12px; font-weight: 900; font-size: .92rem; }
.tally a { color: var(--ink); white-space: nowrap; }
.tally.bump { animation: pop .4s var(--spring); }
@media (min-width: 960px) { .tally { display: none; } }
@media (max-width: 959px) { body.has-tally { padding-bottom: 76px; } }

/* honeypot (off-screen, not display:none so naive bots still fill it) */
.hp{position:absolute!important;left:-10000px!important;top:auto;width:1px;height:1px;overflow:hidden}
.form-err{margin:10px 0}

/* ---- Report page (report.html) ---- */
.report h2 { margin-top: 44px; }
.rhero { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 860px) { .rhero { grid-template-columns: 1.1fr 1fr; } }
.rsave { font-size: 1.15rem; margin: 6px 0 8px; }
.rsave strong { display: block; font-size: clamp(2.2rem, 6vw, 3.2rem); font-weight: 900; line-height: 1.05; color: var(--red, #dc2626); font-variant-numeric: tabular-nums; }
.report .data td small, .report .data th small { display: block; font-size: .78rem; font-weight: 500; color: #4b4b6b; }
.data td.num, .data th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rtable .barcell { min-width: 150px; }
.rbar { display: grid; gap: 3px; }
.rbar i, .rkey i { display: block; height: 8px; border-radius: 2px; }
.rbar .u, .rkey .u { background: #1a1a40; } .rbar .c, .rkey .c { background: #dc2626; }
.rkey { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: .78rem; }
.rkey i { width: 12px; height: 8px; }
.rsum { display: grid; gap: 12px; padding-left: 1.3em; max-width: 72ch; }
.remp h3 { margin: 6px 0; font-size: 1.05rem; }
.rterms { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.rterms li { display: grid; grid-template-columns: 11rem 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(26, 26, 64, .18); }
.rterms span { color: #4b4b6b; }
.rcta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 26px; }
.rcta h2 { margin: 0 0 6px; }
@media (max-width: 560px) { .rterms li { grid-template-columns: 1fr; gap: 2px; } }

/* Trends over time (markup from reports/fall-2026/trends_web.py) */
.tw-card { padding: clamp(18px, 3vw, 28px); }
.tw-caveat { border-left: 4px solid var(--ink); padding: 12px 16px; background: var(--paper); border-radius: 0 12px 12px 0; color: var(--ink-2); margin: 0 0 18px; max-width: 90ch; }
.tw-caveat b { color: var(--ink); }
.tw-key { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .9rem; color: var(--ink-2); margin: 0 0 12px; }
.tw-key span { display: inline-flex; align-items: center; gap: 8px; }
.tw-k { display: inline-block; width: 11px; height: 11px; border-radius: 50%; }
.tw-k--est { border: 2px solid #5a5f99; background: #fff; } .tw-k--now { background: var(--red); }
.tw-grid-panels { display: grid; gap: 18px 22px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-bottom: 24px; }
.tw-panel { margin: 0; border-top: 2px solid var(--ink); padding-top: 8px; }
.tw-panel figcaption b { display: block; }
.tw-panel figcaption small { display: block; font-size: .8rem; color: var(--ink-2); }
.tw-panel svg { width: 100%; height: auto; display: block; margin-top: 4px; overflow: visible; }
.tw-grid { stroke: #e6dccd; stroke-width: 1; }
.tw-lab { fill: var(--ink-2); font-size: 10px; font-family: var(--font); }
.tw-val { fill: var(--ink-2); font-size: 11px; font-weight: 700; font-family: var(--font); }
.tw-val--now { fill: var(--ink); font-weight: 800; }
.tw-est-line { stroke: #5a5f99; stroke-width: 2; fill: none; }
.tw-dash { stroke-dasharray: 4 3; }
.tw-range { stroke: #5a5f99; stroke-width: 6; stroke-linecap: round; opacity: .3; }
.tw-est { fill: #fff; stroke: #5a5f99; stroke-width: 2; }
.tw-now { fill: var(--red); }
.tw-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tw-table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: .9rem; }
.tw-table th, .tw-table td { padding: 9px 8px; border-bottom: 1px solid #e6dccd; text-align: left; vertical-align: top; }
.tw-table thead th { font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); vertical-align: bottom; }
.tw-table thead tr:last-child th { border-bottom: 2px solid var(--ink); }
.tw-table th:first-child, .tw-table td:first-child { padding-left: 0; }
.tw-table tbody th { white-space: nowrap; }
.tw-num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tw-src { font-size: .85rem; color: var(--ink-2); }
.tw-note { font-size: .875rem; color: var(--ink-2); margin-top: 12px; max-width: 90ch; }
.tw-two { display: grid; gap: 18px 40px; grid-template-columns: minmax(0, 1fr); margin-top: 20px; }
@media (min-width: 880px) { .tw-two { grid-template-columns: 1fr 1fr; } }
.tw-two h3 { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 8px; }
.tw-two p { margin: 0; color: var(--ink-2); }
.tw-lvl { white-space: nowrap; }
