/* Look Good Tools — round 3 "combo". Base layer from round 2 "transformation"; sections.css and variants.css sit on top. */

@font-face { font-family: "LG Bricolage"; src: url("fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "LG Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "LG Fraunces"; src: url("fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "LG Fraunces"; src: url("fonts/fraunces-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "LG Mono"; src: url("fonts/mono.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "LG Mono"; src: url("fonts/mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

.lgt {
  --gut: clamp(16px, 4.4vw, 64px);
  --max: 1440px;
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --display: "LG Bricolage", "LG Inter", system-ui, sans-serif;
  --sans: "LG Inter", system-ui, sans-serif;
  --mono: "LG Mono", ui-monospace, Menlo, monospace;
  background: var(--lg-paper);
  color: var(--lg-ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  position: relative;
}
.lgt *, .lgt *::before, .lgt *::after { box-sizing: border-box; }
/* v9 vertical rhythm (DS spacing tokens, 4px unit). One rule everywhere:
   label or heading -> its card: --rh-label · card -> its caption: --rh-caption ·
   caption -> next block: --rh-block · eyebrow -> heading: --rh-eyebrow · chart title -> chart body: --rh-title */
.lgt { --rh-eyebrow: var(--ds-space-3); --rh-label: var(--ds-space-4); --rh-caption: var(--ds-space-3); --rh-title: var(--ds-space-4); --rh-block: var(--ds-space-10); }
@media (min-width: 900px) { .lgt { --rh-label: var(--ds-space-5); --rh-caption: var(--ds-space-4); --rh-title: var(--ds-space-5); --rh-block: var(--ds-space-12); } }
/* v9: the reset is one class strong (.lgt :where), so a component's own margin wins. As .lgt :is(...) it
   outranked every single-class margin on a p or heading, which is why captions and headings sat flush. */
.lgt :where(h1, h2, h3, p, ul, ol, dl, dd, figure) { margin: 0; }
.lgt :where(ul, ol) { padding: 0; list-style: none; }
.lgt a { color: inherit; }
.lgt :focus-visible { outline: 3px solid var(--lg-cobalt); outline-offset: 3px; border-radius: 6px; }
.lgt [data-mode="dark"] :focus-visible { outline-color: var(--lg-butter); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--lg-ink); color: var(--lg-paper); padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }

/* paper grain: one fixed SVG noise layer, very quiet. Not on touch (v9): a fixed multiply-blended layer is
   re-blended over everything on every scrolled frame. */
@media (hover: none), (pointer: coarse) { .lgt::before { display: none; } }
.lgt::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .32; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.08  0 0 0 0 0.07  0 0 0 0 0.06  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.lgt > * { position: relative; z-index: 1; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; font: 600 15px/1 var(--sans); text-decoration: none; padding: 0 22px; height: 46px; border: 0; cursor: pointer; transition: transform .25s var(--ease-spring), background-color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn--lg { height: 64px; padding: 0 34px; font-size: 18px; }
.lgt .btn--ink { background: var(--lg-ink); color: var(--lg-paper); }
.lgt .btn--blaze { background: var(--lg-blaze); color: var(--lg-ink); }

.eyebrow { font: 500 13px/1.3 var(--mono); letter-spacing: .02em; color: var(--lg-stone); display: flex; align-items: center; gap: 10px; }
[data-mode="dark"] .eyebrow { color: var(--lg-line); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot--cobalt { background: var(--lg-cobalt); } .dot--butter { background: var(--lg-butter); } .dot--blaze { background: var(--lg-blaze); }
.h2 { font: 760 clamp(40px, 5.6vw, 84px)/.95 var(--display); font-variation-settings: "opsz" 96, "wdth" 100; letter-spacing: -.035em; text-wrap: balance; }
.h2--xl { font-size: clamp(44px, 6.6vw, 104px); }
.h2--lg { font-size: clamp(36px, 4.6vw, 68px); }

/* ---------------------------------------------------------------- nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px var(--gut); max-width: var(--max); margin: 0 auto; position: relative; z-index: 20; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 780 19px/1 var(--display); font-variation-settings: "opsz" 24, "wdth" 92; letter-spacing: -.02em; }
.wordmark__mark { width: 28px; height: 28px; }
/* the eyes mark (Jack, 2026-10-19): butter eyes, ink outline on light, white outline on dark */
.wordmark__eye { fill: var(--lg-butter); stroke: var(--lg-ink); stroke-width: 1.6; }
.wordmark__pupil { fill: var(--lg-ink); }
.nav__links { display: flex; gap: 6px; }
.nav__links a, .nav__signin { text-decoration: none; font: 500 15px/1 var(--sans); padding: 10px 14px; border-radius: 999px; transition: background-color .2s; }
.nav__links a:hover, .nav__signin:hover { background: var(--lg-card); }
.nav__end { display: flex; align-items: center; gap: 8px; }

/* ================================================================ HERO */
.hero { max-width: var(--max); margin: 0 auto; padding: clamp(8px, 2vw, 28px) var(--gut) 72px; position: relative; }
.hero__head { position: relative; z-index: 6; }
.hero__title { font: 780 clamp(54px, 10.4vw, 152px)/.86 var(--display); letter-spacing: -.034em; margin-left: -.04em; min-height: 1.75em; }
@media (min-width: 900px) { .hero__title { min-height: .98em; white-space: nowrap; } }
.hero__letters { display: inline-block; }
.hero__letters .w { display: inline-block; white-space: nowrap; }
.hero__letters .l {
  display: inline-block; --w: 780; --d: 100; --o: 96; --s: 1; --y: 0em; --r: 0deg; --x: 0em;
  font-variation-settings: "wght" var(--w), "wdth" var(--d), "opsz" var(--o);
  transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(var(--s));
  transform-origin: 50% 70%; will-change: transform;
}
.hero__letters .sp { display: inline-block; width: .22em; }
.hero__letters .l--dot { color: var(--lg-blaze); }
.hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: clamp(18px, 2.4vw, 34px); }
.hero__sub { max-width: 30ch; font: 450 clamp(17px, 1.45vw, 21px)/1.4 var(--sans); color: var(--lg-ink); }
.hero__action { position: relative; display: grid; justify-items: end; gap: 10px; min-height: 92px; align-content: end; }

/* the magic button */
.magic {
  --brush: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 40 40'><path d='M7 33c3.5.6 7.6-.4 9.6-2.9 2.1-2.6 1.4-6-1.3-7.2-2.8-1.2-5.6.6-6.1 3.6-.4 2.6-.7 4.6-2.2 6.5z' fill='%23FF4F23' stroke='%2314120F' stroke-width='2'/><path d='M17.4 22.3L33.6 6.1c.9-.9 2.4-.9 3.3 0s.9 2.4 0 3.3L20.7 25.6' fill='%23FFFCF5' stroke='%2314120F' stroke-width='2'/></svg>") 4 30, pointer;
  position: relative; display: inline-flex; align-items: center; gap: 14px; height: 76px; padding: 0 34px 0 22px; border: 0; border-radius: 999px;
  background: var(--lg-ink); color: var(--lg-paper); font: 700 21px/1 var(--sans); letter-spacing: -.01em; cursor: var(--brush); overflow: hidden; isolation: isolate;
  box-shadow: 0 1px 0 rgba(20,18,15,.2), 0 18px 40px -18px rgba(20,18,15,.6);
  /* hover uses the individual translate/rotate/scale properties: GSAP owns transform (the hide and return scale) */
  transition: translate .35s var(--ease-spring), rotate .35s var(--ease-spring), scale .2s var(--ease-spring);
}
.magic:hover { translate: 0 -3px; rotate: -1deg; }
.magic:active { scale: .96; }
.magic__fill { position: absolute; inset: 0; z-index: -1; background: var(--lg-blaze); clip-path: circle(0% at 30px 50%); transition: clip-path .55s cubic-bezier(.2,.8,.2,1); }
.magic:hover .magic__fill, .magic:focus-visible .magic__fill { clip-path: circle(140% at 30px 50%); }
.magic:hover, .magic:focus-visible { color: var(--lg-ink); }
.magic__brush { width: 40px; height: 40px; flex: none; transition: rotate .5s var(--ease-spring), translate .5s var(--ease-spring); }
.magic:hover .magic__brush { rotate: -18deg; translate: -2px 2px; }
.magic__bristle { fill: var(--lg-blaze); stroke: currentColor; stroke-width: 2; }
.magic:hover .magic__bristle, .magic:focus-visible .magic__bristle { fill: var(--lg-butter); }
.magic__handle { fill: var(--lg-card); stroke: currentColor; stroke-width: 2; }
.hero[data-state="good"] .magic, .hero[data-state="busy"] .magic { pointer-events: none; }
.magic.is-gone { visibility: hidden; }

.stamp { position: absolute; right: 0; bottom: 34px; display: inline-flex; align-items: center; gap: 14px; height: 76px; padding: 0 30px 0 14px; border-radius: 999px; background: var(--lg-cobalt); color: var(--lg-paper); font: 760 26px/1 var(--display); font-variation-settings: "opsz" 48, "wdth" 96; letter-spacing: -.02em; opacity: 0; pointer-events: none; transform-origin: 80% 50%; }
.stamp__check { width: 52px; height: 52px; flex: none; }
.stamp__ring { fill: none; stroke: var(--lg-paper); stroke-width: 3; opacity: .9; }
.stamp__tick { fill: none; stroke: var(--lg-butter); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.undo { justify-self: end; background: none; border: 0; padding: 6px 2px; font: 500 15px/1 var(--sans); color: var(--lg-ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; cursor: pointer; opacity: 0; visibility: hidden; }
.undo:hover { color: var(--lg-blaze); }
.hero[data-state="good"] .undo { visibility: visible; }

/* ---------------- stage */
.stage {
  --chart-w: 372px; --slide-w: 560px; --report-w: 344px;
  margin-top: clamp(32px, 4vw, 56px);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  position: relative; z-index: 3;
}
.art { position: relative; flex: none; }
.art__window { position: relative; overflow: hidden; border-radius: 18px; height: var(--hg, auto); }
.hero[data-state="ugly"] .art__window { height: var(--hu, auto); }
.hero[data-state="busy"] .art__label { opacity: 0; }
.art--chart { width: var(--chart-w); }
.art--slide { width: var(--slide-w); }
.art--report { width: var(--report-w); }
.art__good { position: absolute; left: 0; top: 0; z-index: 1; }
.hero[data-state="good"] .art__good { width: 100% !important; }
.art__ugly { position: absolute; left: 0; top: 0; z-index: 2; }
.art__ugly > * { pointer-events: none; }
.art__label { margin-top: 16px; }
.art__label a { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 12px; text-decoration: none; padding: 10px 2px; border-top: 1.5px solid var(--lg-ink); }
.art__label b { font: 760 22px/1.1 var(--display); font-variation-settings: "opsz" 32, "wdth" 94; letter-spacing: -.02em; }
.art__label span { font: 450 14px/1.3 var(--sans); color: var(--lg-stone); grid-column: 1; }
.art__label i { font-style: normal; grid-row: 1 / span 2; grid-column: 2; justify-self: end; align-self: center; font-size: 22px; transition: transform .35s var(--ease-spring); }
.art__label a:hover i { transform: translateX(6px); }
.art__label a:hover b { color: var(--lg-cobalt); }

/* UGLY geometry: the messy desk. Good geometry is the default above. */
.hero[data-state="ugly"] .stage { justify-content: center; gap: 0; padding-top: 18px; }
.hero[data-state="ugly"] .art--chart { width: 404px; transform: rotate(-4.5deg) translate(30px, 34px); z-index: 3; }
.hero[data-state="ugly"] .art--slide { width: 452px; transform: rotate(2.2deg) translate(-6px, -8px); z-index: 2; }
.hero[data-state="ugly"] .art--report { width: 312px; transform: rotate(5.5deg) translate(-40px, 22px); z-index: 1; }
.hero[data-state="ugly"] .art__window { border-radius: 2px; box-shadow: 5px 6px 0 rgba(0,0,0,.28); }
.hero[data-state="ugly"] .art__label { opacity: 0; visibility: hidden; }

/* GOOD artefacts */
.card { background: var(--lg-card); border-radius: 18px; padding: 22px 22px 18px; box-shadow: 0 1px 0 var(--lg-line), 0 30px 60px -38px rgba(20,18,15,.45); }
.card .ds-chart[data-charts] { background: transparent; padding: 0; }
.card .ds-chart__title { font: 740 21px/1.08 var(--display) !important; font-variation-settings: "opsz" 32, "wdth" 94; letter-spacing: -.02em; }

.slide { aspect-ratio: 16 / 9; background: var(--lg-ink); color: var(--lg-paper); border-radius: 18px; display: grid; grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 4px; padding: 24px 24px 16px 26px; box-shadow: 0 30px 60px -34px rgba(20,18,15,.7); overflow: hidden; position: relative; }
.slide::after { content: ""; position: absolute; left: 28px; top: 0; width: 42px; height: 6px; background: var(--lg-blaze); border-radius: 0 0 4px 4px; }
.slide__text { display: grid; grid-template-columns: 1fr auto; column-gap: 20px; min-width: 0; }
.slide__text .slide__kicker { grid-column: 1 / -1; }
.slide__kicker { font: 500 11.5px/1.3 var(--mono); color: var(--lg-butter); }
.slide__title { font: 740 25px/1.02 var(--display); font-variation-settings: "opsz" 48, "wdth" 92; letter-spacing: -.03em; margin-top: 8px; text-wrap: balance; max-width: 20ch; }
.slide__foot { position: absolute; right: 24px; top: 26px; display: flex; gap: 14px; font: 400 11px/1 var(--mono); color: var(--lg-line); }
.slide__chart { min-width: 0; align-self: end; }
.slide__chart .ds-chart[data-charts] { background: transparent !important; padding: 0 !important; }

.page { background: var(--lg-card); border-radius: 18px; padding: 22px 22px 16px; box-shadow: 0 1px 0 var(--lg-line), 0 30px 60px -38px rgba(20,18,15,.45); }
.page__mast { display: flex; justify-content: space-between; align-items: center; font: 500 11px/1 var(--mono); color: var(--lg-stone); padding-bottom: 12px; border-bottom: 1.5px solid var(--lg-ink); }
.page__mast > span:first-child { font: 780 15px/1 var(--display); color: var(--lg-ink); letter-spacing: -.01em; }
.page__live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lg-cobalt); margin-right: 6px; vertical-align: 1px; }
.page__title { font: 740 21px/1.08 var(--display); font-variation-settings: "opsz" 32, "wdth" 94; letter-spacing: -.02em; margin-top: 14px; text-wrap: balance; }
.page__kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 6px; }
.page__kpis p { background: var(--lg-paper); border-radius: 12px; padding: 10px 12px; display: grid; }
.page__kpis b { font: 760 24px/1.05 var(--display); font-variation-settings: "opsz" 48, "wdth" 90; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.page__kpis p:last-child b { color: var(--lg-cobalt); }
.page__kpis span { font: 400 12px/1.3 var(--sans); color: var(--lg-stone); }
.page__chart .ds-chart[data-charts] { padding: 0; background: transparent; }
.page__chart .ds-chart__head { display: none; }

/* ---------------- UGLY artefacts (hand-made defaults, deliberately) */
.u-font { font-family: Calibri, Carlito, Arial, "Liberation Sans", Helvetica, sans-serif; }
.ug-chart { width: 404px; height: 352px; background: #fff; border: 1px solid #868686; position: relative; color: #000; }
.ug-chart svg { display: block; }
.ug-slide { width: 452px; height: 339px; background: #fff; position: relative; overflow: hidden; color: #000; border: 1px solid #b7b7b7; }
.ug-slide__band { position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: linear-gradient(#e8eef8, #a7bfde); border-top: 1px solid #4f81bd; }
.ug-slide__title { position: absolute; left: 0; right: 0; top: 16px; text-align: center; font: bold 27px/1 Impact, "Arial Black", "Liberation Sans", sans-serif; letter-spacing: .5px; padding: 0 22px;
  background: linear-gradient(180deg, #ffe600 0%, #ff9a00 48%, #ff3d00 52%, #ffcf00 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1px #7a2c00; filter: drop-shadow(3px 3px 0 #9a9a9a); transform: perspective(300px) rotateX(14deg); }
.ug-slide ul { position: absolute; left: 26px; right: 18px; top: 92px; list-style: disc; padding-left: 18px; margin: 0; }
.ug-slide li { font-size: 15px; line-height: 1.22; margin-bottom: 2px; }
.ug-slide li:nth-child(2) { font-size: 17px; color: #c00000; font-weight: bold; }
.ug-slide li:nth-child(3) { margin-left: 22px; list-style: circle; font-size: 13px; }
.ug-slide li:nth-child(4) { text-decoration: underline; color: #0070c0; }
.ug-slide li:nth-child(5) { margin-left: 22px; list-style: square; font-style: italic; }
.ug-slide li:nth-child(6) { font-size: 19px; background: #ffff00; display: list-item; }
.ug-slide li:nth-child(7) { font-size: 14px; }
.ug-slide li:nth-child(8) { margin-left: 22px; font-size: 13px; color: #7030a0; }
.ug-slide li:nth-child(9) { font-size: 16px; font-weight: bold; }
.ug-slide__pie { position: absolute; right: 12px; bottom: 30px; width: 132px; }
.ug-slide__num { position: absolute; right: 8px; bottom: 6px; font-size: 11px; color: #fff; }
.ug-report { width: 312px; height: 440px; background: #fff; color: #000; font-family: "Times New Roman", "Liberation Serif", Times, serif; padding: 18px 16px; position: relative; overflow: hidden; border: 1px solid #c8c8c8; }
.ug-report h3 { font-size: 15px; line-height: 1.15; font-weight: bold; text-decoration: underline; margin: 0 0 8px; text-align: center; }
.ug-report p { font-size: 10.5px; line-height: 1.12; text-align: justify; margin: 0 0 6px; }
.ug-report table { border-collapse: collapse; width: 100%; font-size: 10.5px; margin-bottom: 8px; }
.ug-report td, .ug-report th { border: 1px solid #000; padding: 1px 3px; text-align: left; }
.ug-report th { background: #c0c0c0; }
.ug-report tr:nth-child(3) td:nth-child(3) { background: #ffff00; }
.ug-report .ug-clip { width: 100%; height: 96px; border: 1px dashed #808080; display: grid; place-items: center; }

/* ---------------- sweep (the brush stroke) */
.sweep { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 40; pointer-events: none; opacity: 0; }
.sweep svg { position: absolute; top: 0; left: 0; overflow: visible; max-width: none; max-height: none; transform-origin: 50% 50%; will-change: transform; }
.sweep path { fill: var(--lg-blaze); }
.flyers { position: absolute; inset: 0; z-index: 41; pointer-events: none; }
.flyer { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; border-radius: 1px; }

/* ================================================================ STORY */
.story { padding-top: clamp(64px, 8vw, 120px); position: relative; }
.story__intro { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px 24px; }
.story__intro .eyebrow { grid-column: 1 / -1; }
.story__skip { font: 500 15px/1 var(--sans); text-decoration: underline; text-underline-offset: 4px; padding: 10px 0; }
.story__pin { height: 100vh; min-height: 640px; display: grid; grid-template-columns: minmax(260px, 30%) 1fr; gap: 4vw; max-width: var(--max); margin: 0 auto; padding: 72px var(--gut) 40px; align-items: center; position: relative; }
.story__steps { display: grid; gap: 6px; counter-reset: s; }
.step { padding: 16px 0 16px 20px; border-left: 2px solid var(--lg-line); transition: border-color .3s, color .3s; }
/* v8 a11y: the steps not yet reached were dimmed with opacity (1.7:1); stone on paper keeps the dim and reads at 4.7:1 */
.step:not(.is-on) :is(.step__name, .step__line) { color: var(--lg-stone); }
.step.is-on { border-color: var(--lg-ink); opacity: 1; }
.step__n { font: 500 12px/1 var(--mono); color: var(--lg-stone); }
.step__name { font: 760 30px/1.05 var(--display); font-variation-settings: "opsz" 48, "wdth" 94; letter-spacing: -.025em; margin-top: 6px; }
.step__line { font: 400 15px/1.4 var(--sans); color: var(--lg-stone); margin-top: 6px; max-width: 36ch; }
.step.is-on .step__line { color: var(--lg-ink); }
.story__canvas { position: relative; height: min(76vh, 680px); }
.sc { position: absolute; }
.sc--table { z-index: 1; } .sc--chartcard { z-index: 1; } .sc--report { z-index: 2; } .sc--slide { z-index: 3; }
.sc--table { background: var(--lg-card); border-radius: 18px; padding: 26px 30px; box-shadow: 0 1px 0 var(--lg-line), 0 30px 60px -38px rgba(20,18,15,.45); }
.dtable { width: 100%; border-collapse: collapse; font: 450 18px/1 var(--sans); font-variant-numeric: tabular-nums; }
.dtable caption { text-align: left; font: 500 12px/1 var(--mono); color: var(--lg-stone); padding-bottom: 14px; }
.dtable th { text-align: left; font: 600 13px/1 var(--sans); color: var(--lg-stone); padding: 0 0 10px; border-bottom: 1.5px solid var(--lg-ink); }
.dtable td { padding: 10px 0; border-bottom: 1px solid var(--lg-line); }
.dtable :is(th, td):not(:first-child) { text-align: right; }
/* v9.1: numeric columns carry their own gap (they ran together on phone), never wrap, and use tabular figures */
.dtable :is(th, td):not(:first-child) { padding-left: var(--ds-space-4); white-space: nowrap; }
.dtable td:first-child { padding-right: var(--ds-space-2); }
@media (max-width: 899px) { .dtable { font-size: 16px; } .dtable :is(th, td):not(:first-child) { padding-left: var(--ds-space-3); } }
@media (max-width: 359px) { .dtable { font-size: 14px; } }
.dtable td.num span { color: transparent; }
.sc--chartcard { background: var(--lg-card); border-radius: 22px; box-shadow: 0 1px 0 var(--lg-line), 0 40px 70px -40px rgba(20,18,15,.5); }
.sc__slot { position: absolute; display: block; }
.sc--chartcard [data-slot="title-1"] { left: 6%; top: 7%; width: 66%; height: 15%; }
.sc--chartcard [data-slot="chart-1"] { left: 6%; top: 25%; width: 88%; height: 64%; }
.sc__src { position: absolute; left: 6%; bottom: 4.5%; font: 400 12px/1 var(--mono); color: var(--lg-stone); }
.sc--slide { background: var(--lg-ink); border-radius: 22px; overflow: hidden; box-shadow: 0 40px 70px -36px rgba(20,18,15,.75); }
.sc--slide::after { content: ""; position: absolute; left: 5%; top: 0; width: 7%; height: 2.2%; background: var(--lg-blaze); border-radius: 0 0 4px 4px; }
.sc__kick { position: absolute; left: 5%; top: 11%; font: 500 13px/1 var(--mono); color: var(--lg-butter); }
.sc--slide [data-slot="title-2"] { left: 5%; top: 19%; width: 34%; height: 50%; }
.sc--slide [data-slot="chart-2"] { left: 41%; top: 12%; width: 56%; height: 80%; }
.sc__pg { position: absolute; right: 4%; bottom: 6%; font: 400 12px/1 var(--mono); color: var(--lg-line); }
.sc--report { background: var(--lg-card); border-radius: 18px; box-shadow: 0 1px 0 var(--lg-line), 0 40px 70px -40px rgba(20,18,15,.5); padding: 4% 5%; }
.rp__mast { display: flex; justify-content: space-between; align-items: center; font: 500 12px/1 var(--mono); color: var(--lg-stone); padding-bottom: 14px; border-bottom: 1.5px solid var(--lg-ink); }
.rp__mast span:first-child { font: 780 18px/1 var(--display); color: var(--lg-ink); }
.rp__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 16px; }
.rp__kpis p { background: var(--lg-paper); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; }
.rp__kpis b { font: 760 26px/1 var(--display); font-variation-settings: "opsz" 48, "wdth" 90; letter-spacing: -.03em; }
.rp__kpis p:nth-child(2) b { color: var(--lg-cobalt); }
.rp__kpis span { font: 400 12px/1.3 var(--sans); color: var(--lg-stone); }
.sc--report [data-slot="slide-3"] { position: relative; display: block; width: 100%; aspect-ratio: 16/9; }
.sc--report .rp__chart { aspect-ratio: auto; min-height: 0; }
.rp__chart #sc-rchart { position: relative; }
.rp__chart #sc-rchart .ds-chart[data-charts] { background: transparent !important; padding: 0 !important; box-shadow: none !important; border: 0 !important; }
.sc--report { display: flex; flex-direction: column; }
.lgt .rp__foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--lg-line); display: flex; justify-content: space-between; font: 400 12px/1 var(--mono); color: var(--lg-stone); }
.lgt .rp__text { margin: 16px 0 0; font: 400 14px/1.5 var(--sans); color: var(--lg-stone); max-width: 62ch; }
.actor { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; z-index: 5; }
.actor--title { width: 420px; font: 760 34px/1.02 var(--display); font-variation-settings: "opsz" 48, "wdth" 94; letter-spacing: -.03em; text-wrap: balance; }
.actor--chart { width: 640px; }
.actor--chart .ds-chart[data-charts] { padding: 0; background: transparent !important; }
.actor--chart * { transition: fill .35s, stroke .35s, color .35s, background-color .35s; }
.story__nums { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.num-fly { position: absolute; left: 0; top: 0; font: 450 17px/1 var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; will-change: transform; }
.num-fly .b { position: absolute; left: 0; top: 0; opacity: 0; font-weight: 600; }
.story__stack { display: none; }

/* phone story: stacked panels */
.sp { margin-top: var(--rh-block); }
.sp:first-child { margin-top: 0; }
.sp__tag { display: flex; gap: 10px; align-items: baseline; margin-bottom: var(--rh-label); }
.sp__tag b { font: 760 24px/1 var(--display); letter-spacing: -.02em; }
.sp__tag span { font: 500 12px/1 var(--mono); color: var(--lg-stone); }
.sp__line { font: 400 15px/1.4 var(--sans); color: var(--lg-stone); margin-top: var(--rh-caption); }
.sp__panel { background: var(--lg-card); border-radius: 18px; padding: 18px; box-shadow: 0 1px 0 var(--lg-line), 0 24px 50px -34px rgba(20,18,15,.45); }
.sp__panel .ds-chart[data-charts] { padding: 0; background: transparent; }
.sp__slide { aspect-ratio: auto; background: var(--lg-ink); color: var(--lg-paper); border-radius: 18px; padding: 18px; }
.sp__slide .ds-chart[data-charts] { padding: 0; background: transparent !important; }
.sp__st { font: 740 22px/1.05 var(--display); letter-spacing: -.025em; margin: 6px 0 10px; }
.sp__arrow { display: grid; place-items: center; height: 46px; margin-top: var(--ds-space-4); font-size: 22px; color: var(--lg-stone); }

/* ================================================================ PRODUCTS */
.product { padding: clamp(80px, 10vw, 150px) 0; position: relative; }
.product[data-mode="dark"] { background: var(--lg-ink); color: var(--lg-paper); }
.product__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.product__grid--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.product__grid--flip .product__copy { order: 2; }
.product__copy .h2 { margin-top: 18px; }
.inout { margin-top: 34px; display: grid; gap: 0; border-top: 1.5px solid currentColor; }
.inout > div { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--lg-line); }
[data-mode="dark"] .inout > div { border-color: var(--lg-stone); }
.inout dt { font: 500 12px/1.6 var(--mono); color: var(--lg-stone); }
[data-mode="dark"] .inout dt { color: var(--lg-line); }
.inout dd { font: 500 18px/1.4 var(--sans); }
.facts { margin-top: 22px; display: grid; gap: 10px; }
.facts li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; font: 450 16px/1.45 var(--sans); }
.facts li::before { content: ""; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--lg-cobalt) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M5.5 10.4l3 3 6-6.4' fill='none' stroke='%23F3EEE4' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/100% no-repeat; }
[data-mode="dark"] .facts li::before { background-color: var(--lg-blaze); }
.go { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; font: 600 17px/1 var(--sans); text-decoration: none; padding: 14px 22px; border-radius: 999px; border: 1.5px solid currentColor; transition: background-color .2s, color .2s; }
.go:hover { background: var(--lg-ink); color: var(--lg-paper); }
[data-mode="dark"] .go:hover { background: var(--lg-paper); color: var(--lg-ink); }

.tiltset { position: relative; perspective: 1400px; min-height: 560px; }
.tile { position: absolute; background: var(--lg-card); border-radius: 20px; padding: 24px; box-shadow: 0 1px 0 var(--lg-line), 0 40px 80px -46px rgba(20,18,15,.55); transform-style: preserve-3d; transition: transform .6s var(--ease-spring); }
.tile .ds-chart[data-charts] { padding: 0; background: transparent; }
.tile .ds-chart__title { font: 740 22px/1.08 var(--display) !important; letter-spacing: -.02em; }
.tile--a { left: 0; top: 0; width: 78%; z-index: 1; }
.tile--b { right: 0; top: 180px; width: 62%; z-index: 2; }

.fan { position: relative; aspect-ratio: 16 / 11; }
.fan__slide { position: absolute; left: 8%; top: 14%; width: 80%; transition: transform .7s var(--ease-spring); }
.fan__slide[data-i="0"] { transform: translate(-10%, -12%) rotate(-8deg); }
.fan__slide[data-i="1"] { transform: translate(2%, 0%) rotate(-2deg); }
.fan__slide[data-i="2"] { transform: translate(14%, 16%) rotate(4deg); }
.fan:hover .fan__slide[data-i="0"] { transform: translate(-16%, -18%) rotate(-11deg); }
.fan:hover .fan__slide[data-i="2"] { transform: translate(20%, 22%) rotate(7deg); }
.fs { aspect-ratio: 16 / 9; background: var(--lg-card); color: var(--lg-ink); border-radius: 16px; padding: 4.2% 4.6% 3.4%; display: grid; grid-template-rows: auto 1fr auto; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); overflow: hidden; }
.fs--cobalt { background: var(--lg-cobalt); color: var(--lg-paper); }
.fs__t { font: 740 clamp(16px, 1.9vw, 28px)/1.04 var(--display); letter-spacing: -.025em; max-width: 24ch; }
.fs__c { min-height: 0; overflow: hidden; margin-top: 10px; }
.fs__c .ds-chart[data-charts] { padding: 0; background: transparent !important; }
.fs__f { display: flex; justify-content: space-between; font: 400 11px/1 var(--mono); opacity: .8; padding-top: 6px; }

.report { background: var(--lg-card); border-radius: 22px; padding: clamp(18px, 3vw, 36px); box-shadow: 0 1px 0 var(--lg-line), 0 50px 90px -50px rgba(20,18,15,.6); display: grid; gap: 22px; }
.report__mast { display: flex; justify-content: space-between; align-items: center; border-bottom: 1.5px solid var(--lg-ink); padding-bottom: 14px; }
.report__brand { font: 780 20px/1 var(--display); letter-spacing: -.02em; }
.report__live { font: 500 12px/1 var(--mono); color: var(--lg-stone); display: inline-flex; gap: 8px; align-items: center; }
.report__live i { width: 8px; height: 8px; border-radius: 50%; background: var(--lg-cobalt); box-shadow: 0 0 0 0 var(--lg-cobalt); animation: live 2.4s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(51,70,255,.45); } 70% { box-shadow: 0 0 0 10px rgba(51,70,255,0); } 100% { box-shadow: 0 0 0 0 rgba(51,70,255,0); } }
.report .ds-chart[data-charts] { padding: 0; background: transparent; }
.report .ds-chart__title { font: 740 22px/1.1 var(--display) !important; letter-spacing: -.02em; }
.report__two { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; padding-top: 18px; border-top: 1px solid var(--lg-line); }
.report__two .ds-chart__title { font-size: 17px !important; }

/* ================================================================ KIT */
.kit { padding: clamp(80px, 10vw, 150px) 0; }
.kit__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 28px; }
.kit__head .h2 { max-width: 12ch; }
.kit__picker { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.kchip { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px 0 8px; border-radius: 999px; border: 1.5px solid var(--lg-ink); background: transparent; font: 600 14px/1 var(--sans); color: var(--lg-ink); cursor: pointer; transition: background-color .2s, color .2s, transform .3s var(--ease-spring); }
.kchip:hover { transform: translateY(-2px); }
.kchip[aria-checked="true"] { background: var(--lg-ink); color: var(--lg-paper); }
.kchip__sw { display: inline-flex; }
.kchip__sw i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--lg-paper); margin-right: -8px; }
.kchip__sw i:last-child { margin-right: 0; }
.kit__trio { margin-top: 48px; display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 20px; align-items: start; }
.kt { position: relative; }
.kt__tag { display: inline-block; font: 500 12px/1 var(--mono); padding: 8px 12px; border-radius: 999px; background: var(--lg-card); margin-bottom: var(--rh-label); }
.kt__body, .kt__page { background: var(--lg-card); border-radius: 18px; padding: 20px; box-shadow: 0 30px 60px -40px rgba(20,18,15,.5); transition: background-color .5s; }
.kt__slide { aspect-ratio: 16/10; border-radius: 18px; padding: 20px; background: var(--kp, var(--lg-ink)); color: #fff; display: grid; grid-template-rows: auto 1fr; gap: 6px; overflow: hidden; transition: background-color .5s; box-shadow: 0 30px 60px -36px rgba(20,18,15,.7); }
.kt__st { font: 740 20px/1.05 var(--kfont, var(--display)); letter-spacing: -.02em; max-width: 22ch; }
.kt__slide .ds-chart[data-charts] { padding: 0 !important; background: transparent !important; }
.kt .ds-chart[data-charts] { padding: 0; }
.kt__pm { font: 780 14px/1 var(--kfont, var(--display)); padding-bottom: 10px; border-bottom: 2px solid var(--kp, var(--lg-ink)); }
.kt__page .kt__pt { font: 740 19px/1.1 var(--kfont, var(--display)); letter-spacing: -.02em; margin: 12px 0 14px; }
.kt__page .ds-chart__head { display: none; }

/* ================================================================ LOGIN */
.login { background: var(--lg-ink); color: var(--lg-paper); padding: clamp(80px, 9vw, 130px) 0; overflow: hidden; }
.login__grid { display: grid; grid-template-columns: 1fr 1.3fr; align-items: center; gap: 40px; }
.login__map { position: relative; height: 300px; }
.login__wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.login__wires path { fill: none; stroke: var(--lg-stone); stroke-width: 1.5; stroke-dasharray: 4 6; vector-effect: non-scaling-stroke; }
.lm { position: absolute; font: 500 14px/1 var(--mono); padding: 12px 16px; border-radius: 999px; background: var(--lg-night); border: 1px solid var(--lg-stone); translate: -50% -50%; white-space: nowrap; }
.lm--1 { left: 15%; top: 13%; } .lm--2 { left: 50%; top: 13%; } .lm--3 { left: 85%; top: 13%; }
.lm--key { left: 50%; top: 50%; display: inline-flex; align-items: center; gap: 10px; background: var(--lg-paper); color: var(--lg-ink); font: 700 18px/1 var(--sans); padding: 14px 24px 14px 14px; border: 0; }
.lm--key svg { width: 30px; height: 30px; }
.login__note { grid-column: 1 / -1; font: 450 17px/1.5 var(--sans); color: var(--lg-line); }
.login__note span { font-family: var(--mono); font-size: 14px; margin-left: 8px; color: var(--lg-butter); }

/* ================================================================ BEAT */
.beat { padding: clamp(80px, 10vw, 150px) 0; overflow: hidden; }
.beat__status { display: inline-flex; align-items: center; gap: 18px; padding: 14px 32px 14px 14px; border-radius: 999px; background: var(--lg-card); box-shadow: 0 1px 0 var(--lg-line), 0 24px 50px -30px rgba(20,18,15,.5); transition: background-color .45s, color .45s; }
.beat__icon svg { width: 56px; height: 56px; display: block; }
.bi__ring { fill: var(--lg-butter); stroke: none; transition: fill .45s; }
.bi__dot { fill: none; stroke: var(--lg-ink); stroke-width: 4.5; stroke-linecap: round; transition: opacity .3s; }
.bi__tick { fill: none; stroke: var(--lg-butter); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; transition: stroke-dashoffset .6s .25s cubic-bezier(.6,0,.2,1); }
.beat__text { display: grid; font: 760 clamp(24px, 3.6vw, 52px)/1.05 var(--display); font-variation-settings: "opsz" 64, "wdth" 92; letter-spacing: -.03em; }
.beat__text > span { grid-area: 1 / 1; transition: opacity .35s, transform .5s var(--ease-spring); }
.beat__done { opacity: 0; transform: translateY(60%); }
.beat__status[data-state="done"] { background: var(--lg-cobalt); color: var(--lg-paper); }
.beat__status[data-state="done"] .bi__ring { fill: var(--lg-ink); }
.beat__status[data-state="done"] .bi__dot { opacity: 0; }
.beat__status[data-state="done"] .bi__tick { stroke-dashoffset: 0; }
.beat__status[data-state="done"] .beat__pending { opacity: 0; transform: translateY(-60%); }
.beat__status[data-state="done"] .beat__done { opacity: 1; transform: none; }
.deck { margin-top: 44px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.th { aspect-ratio: 16/9; border-radius: 12px; background: var(--lg-card); position: relative; padding: 9% 9%; box-shadow: 0 1px 0 var(--lg-line), 0 20px 40px -30px rgba(20,18,15,.5); outline: 3px solid transparent; outline-offset: 4px; transition: outline-color .4s; }
.th--ink { background: var(--lg-ink); }
.th i { display: block; height: 9%; border-radius: 3px; background: var(--lg-ink); width: 70%; }
.th--ink i { background: var(--lg-paper); }
.th i + i { margin-top: 5%; width: 45%; opacity: .35; }
.th b { position: absolute; left: 9%; right: 9%; bottom: 12%; height: 44%; display: flex; align-items: flex-end; gap: 6%; }
.th b span { flex: 1; background: var(--lg-cobalt); border-radius: 2px 2px 0 0; transition: height .7s var(--ease-spring), background-color .5s; }
.th--ink b span { background: var(--lg-butter); }
.th.is-flag { outline-color: var(--lg-blaze); }
.th.is-flag i:first-child { transform: rotate(-4deg) translate(6%, 30%); width: 96%; transition: transform .7s var(--ease-spring), width .7s var(--ease-spring); }
.th.is-flag b span { background: var(--lg-blaze); }
.th.is-flag b span:nth-child(2) { height: 140% !important; }
.th::after { content: ""; position: absolute; right: -9px; top: -9px; width: 22px; height: 22px; border-radius: 50%; background: var(--lg-blaze); transform: scale(0); transition: transform .4s var(--ease-spring); }
.th.is-flag::after { transform: scale(1); }
.th i:first-child { transition: transform .7s var(--ease-spring), width .7s var(--ease-spring); }

/* ================================================================ AUDIENCES */
.aud { padding: 0 0 clamp(80px, 10vw, 150px); }
.aud__list { border-top: 1.5px solid var(--lg-ink); }
.aud__list li { display: grid; grid-template-columns: 64px 1fr; align-items: baseline; gap: 16px; padding: clamp(14px, 1.8vw, 26px) 0; border-bottom: 1px solid var(--lg-line); }
.aud__n { font: 500 13px/1 var(--mono); color: var(--lg-stone); }
.aud__t { font: 740 clamp(30px, 5vw, 76px)/1 var(--display); letter-spacing: -.035em; --aw: 92; font-variation-settings: "opsz" 96, "wdth" var(--aw); transition: font-variation-settings .6s var(--ease-spring), color .3s; }
.aud__list li:hover .aud__t { --aw: 75; color: var(--lg-cobalt); }

/* ================================================================ BUNDLE */
.bundle { padding: clamp(60px, 8vw, 120px) 0 clamp(80px, 10vw, 150px); }
.bundle__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.bundle__grid .h2 { margin-top: 16px; }
/* v9: a flow stack, not absolute offsets, so nothing can land on anything at any width. The gap clears
   the tilt: a 6deg turn on a ~300px chip lifts its ends by about 16px. */
.bundle__box { position: relative; display: flex; flex-direction: column; gap: var(--ds-space-10); padding-block: var(--ds-space-8); }
.bb { position: relative; margin-inline: 10%; height: 64px; flex: none; border-radius: 16px; display: flex; align-items: center; padding: 0 22px; font: 760 24px/1 var(--display); letter-spacing: -.02em; transition: transform .7s var(--ease-spring); }
.bb--1 { background: var(--lg-cobalt); color: var(--lg-paper); transform: rotate(-6deg) translateX(-8%); }
.bb--2 { background: var(--lg-ink); color: var(--lg-paper); transform: rotate(3deg) translateX(6%); }
.bb--3 { background: var(--lg-blaze); color: var(--lg-ink); transform: rotate(-2deg) translateX(-3%); }
.bb__lid { position: relative; margin: var(--ds-space-4) 6% 0; height: 74px; flex: none; border-radius: 20px; background: var(--lg-card); border: 1.5px solid var(--lg-ink); display: flex; align-items: center; justify-content: center; gap: 12px; font: 780 22px/1 var(--display); letter-spacing: -.02em; }
.bb__lid svg { width: 30px; height: 30px; }
.bundle__box.is-packed .bb { transform: none; }

/* ================================================================ CLOSE + FOOT */
.close { background: var(--lg-ink); color: var(--lg-paper); padding: clamp(100px, 13vw, 200px) 0; text-align: center; overflow: hidden; }
.close__title { font: 780 clamp(56px, 13vw, 200px)/.86 var(--display); letter-spacing: -.05em; font-variation-settings: "opsz" 96, "wdth" 100; margin-bottom: 0; padding-bottom: .22em; }
.close .btn { margin-top: 28px; }
.close .btn:hover { background: var(--lg-butter); }
.foot { background: var(--lg-ink); color: var(--lg-paper); border-top: 1px solid var(--lg-stone); padding: 48px 0 40px; }
.foot__grid { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; }
.foot .wordmark__eye { stroke: #fff; }
.foot__line { margin-top: 12px; color: var(--lg-line); }
.foot nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 32px; }
.foot nav a { text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--lg-night); font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.foot nav a span { font: 400 13px/1.6 var(--mono); color: var(--lg-line); }
.foot nav a:hover { color: var(--lg-butter); }
.foot__small { grid-column: 1 / -1; font: 400 13px/1 var(--mono); color: var(--lg-line); padding-top: 18px; }

/* ================================================================ TABLET / PHONE */
@media (max-width: 1240px) {
  .stage { --chart-w: 31%; --slide-w: 38%; --report-w: 27%; }
  .slide__title { font-size: 22px; }
  .hero[data-state="ugly"] .art--chart { width: 340px; }
  .hero[data-state="ugly"] .art--slide { width: 400px; }
  .hero[data-state="ugly"] .art--report { width: 280px; }
}
@media (max-width: 1100px) {
  .stage { flex-wrap: wrap; justify-content: center; --chart-w: 46%; --slide-w: 100%; --report-w: 46%; }
  .art--slide { order: -1; }
  .slide__title { font-size: 30px; }
  .hero[data-state="ugly"] .stage { flex-wrap: wrap; }
}
@media (max-width: 899px) {
  .nav__links, .nav__cta { display: none; }
  .hero { padding-bottom: 40px; }
  .hero__title { font-size: clamp(54px, 15.6vw, 110px); line-height: .9; }
  .hero__row { flex-direction: column; align-items: stretch; gap: 22px; }
  .hero__action { justify-items: stretch; min-height: 0; }
  .magic { width: 100%; justify-content: center; height: 68px; font-size: 19px; }
  .stamp { position: relative; bottom: auto; right: auto; justify-content: center; height: 68px; display: none; }
  .hero[data-state="good"] .stamp, .hero[data-state="busy"] .stamp { display: inline-flex; }
  .hero[data-state="good"] .magic, .hero[data-state="busy"] .magic.is-gone { display: none; }
  .undo { justify-self: center; }
  .stage { flex-direction: column; align-items: stretch; gap: 30px; --chart-w: 100%; --slide-w: 100%; --report-w: 100%; margin-top: 34px; }
  .art { width: 100% !important; }
  .hero[data-state="ugly"] .stage { gap: 0; align-items: center; padding-top: 0; }
  .hero[data-state="ugly"] .art--slide { width: 330px !important; transform: rotate(-2.5deg) translate(-10px, 0); z-index: 3; }
  .hero[data-state="ugly"] .art--chart { width: 330px !important; transform: rotate(3deg) translate(8px, -14px); }
  .hero[data-state="ugly"] .art--report { width: 300px !important; transform: rotate(-3.5deg) translate(-4px, -30px); }
  .slide { grid-template-columns: 1fr; grid-template-rows: auto 1fr; aspect-ratio: auto; padding: 22px 18px 16px; }
  .slide__title { font-size: 25px; }
  .slide__foot { position: absolute; left: 18px; right: 18px; top: auto; bottom: 14px; justify-content: space-between; }
  .slide { padding-bottom: 36px; }
  .slide__chart { padding-bottom: 16px; }

  .story__pin { display: none; }
  .story__stack { display: block; }
  .story__intro { grid-template-columns: 1fr; }

  .product__grid, .product__grid--flip { grid-template-columns: 1fr; }
  .product__grid--flip .product__copy { order: 0; }
  .inout > div { grid-template-columns: 1fr; gap: 6px; }
  .tiltset { min-height: 0; display: grid; gap: 16px; }
  .tile { position: relative; width: 100% !important; top: auto !important; padding: 18px; }
  .fan { aspect-ratio: auto; display: grid; gap: 14px; }
  .fan__slide { position: relative; left: auto; top: auto; width: 100%; transform: none !important; }
  .fs { aspect-ratio: auto; min-height: 220px; padding: 18px; }
  .fs__t { font-size: 20px; }
  .report__two { grid-template-columns: 1fr; }

  .kit__head { grid-template-columns: 1fr; }
  .kit__picker { justify-content: flex-start; }
  .kit__trio { grid-template-columns: 1fr; }
  .kt__slide { aspect-ratio: auto; }
  .login__grid { grid-template-columns: 1fr; }
  .login__map { height: 240px; }
  .lm { font-size: 11px; padding: 9px 10px; }
  .lm--1 { left: 21%; top: 10%; } .lm--2 { left: 50%; top: 30%; } .lm--3 { left: 79%; top: 10%; }
  .lm--key { top: 70%; font-size: 16px; }
  .login__wires { display: none; }
  .beat__status { padding: 10px 22px 10px 10px; gap: 12px; border-radius: 28px; }
  .beat__icon svg { width: 44px; height: 44px; }
  .deck { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .aud__list li { grid-template-columns: 34px 1fr; }
  .bundle__grid { grid-template-columns: 1fr; }
  .bundle__box { gap: var(--ds-space-7); padding-block: var(--ds-space-4); }
  .bb { font-size: 20px; height: 56px; }
  .bb__lid { height: 64px; font-size: 20px; }
  .foot__grid { grid-template-columns: 1fr; }
  .foot nav { grid-template-columns: 1fr; }
}

/* Reduced motion: no springs, no sweeps; state changes are instant. */
@media (prefers-reduced-motion: reduce) {
  .lgt *, .lgt *::before, .lgt *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* DS paints every [data-mode] island with its ground; these islands keep their own fill */
.lgt .fs[data-mode] { background: var(--lg-card); color: var(--lg-ink); }
.lgt .fs--cobalt[data-mode] { background: var(--lg-cobalt); color: var(--lg-paper); }
.lgt .kt__slide[data-mode] { background: var(--kp, var(--lg-ink)); color: #fff; }
.lgt .actor--chart[data-mode] { background: transparent; }

/* v8 phone pass: the engine's numbered event badge is 10px; at phone it reads at 11 */
@media (max-width: 899px) {
  .lgt .ds-chart__num { font-size: 11px; min-width: 16px; height: 16px; }
}

/* v8 a11y: instrument's tick labels on ink were a derived grey at 3.1:1; the palette's line colour reads */
.lgt .ds-chart[data-style="instrument"] :is(.ds-chart__y, .ds-chart__x) span { color: var(--lg-line); }

/* v9 rhythm, applied: eyebrows sit a step above their heading; every chart's title block sits a step above its plot */
.lgt .eyebrow { margin-bottom: var(--rh-eyebrow); }
.lgt .ds-chart[data-charts] > .ds-chart__head { margin-bottom: var(--rh-title); }
