/* Medtax explainer deck. Every page is laid out on a fixed 1920 x 1080 stage
   that is scaled to fit the window, so it looks the same on any screen share. */

:root {
  --bg: #EDECF1;
  --plate: #EFEEF3;
  --ink: #3B4160;
  --text: #5C6280;
  --muted: #8C90A8;
  --faint: #B0B3C5;
  --icon: #666D88;
  --line: rgba(120, 126, 155, .28);
  --accent: #058CB6;
  --navy: #3D4766;
  --payable: #EE5D97;
  --credit: #48BDE8;
  --bar-top: #22D3E6;
  --bar-bottom: #1C80E3;

  --raise: -12px -12px 28px rgba(255, 255, 255, .95), 14px 16px 34px rgba(146, 152, 178, .38), inset 0 1px 0 rgba(255, 255, 255, .9);
  --raise-sm: -6px -6px 14px rgba(255, 255, 255, .95), 7px 8px 18px rgba(146, 152, 178, .36), inset 0 1px 0 rgba(255, 255, 255, .9);
  --inset: inset 5px 5px 10px rgba(146, 152, 178, .38), inset -5px -5px 10px rgba(255, 255, 255, .95);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Poppins', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.is-idle { cursor: none; }

button { font: inherit; color: inherit; }

/* ---------- Stage ---------- */

/* clip (not hidden) so clicking a button low on a slide can never scroll the slide */
.viewport { position: fixed; inset: 0; overflow: hidden; overflow: clip; }

.stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1920px;
  height: 1080px;
  transform: translate(-50%, -50%) scale(var(--s, .5));
}

.page {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(60px);
  transition: opacity .45s var(--ease), transform .55s var(--ease), visibility 0s .55s;
}
.page.is-before { transform: translateX(-60px); }
.page.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .45s var(--ease), transform .55s var(--ease), visibility 0s;
}

.copyright {
  position: absolute;
  left: 80px;
  bottom: 30px;
  margin: 0;
  font-size: 16px;
  color: #B4B7C7;
}

/* Anything with data-part stays hidden until it's revealed */
[data-part] {
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .4s var(--ease), transform .5s var(--ease);
}
[data-part].is-shown {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* Typewriter text: a reveal that holds typed text shows at once (no slide up),
   then each letter appears at its own time, set by the script as --d. */
.page [data-part].tw-host,
.page [data-tab].tw-host { transform: none; transition: opacity 0s; }
/* These wait for their line to draw before they show */
.page .deadline.tw-host.is-shown { transition-delay: .4s; }
.page .fgroup.tw-host.is-shown { transition-delay: .25s; }

/* Sequential card effect: each click brings in the next card in reading order
   (left to right, then top to bottom). The card rises softly into place and
   its text types out. Use: class="seq-card" with data-part and data-typewriter. */
.page .seq-card[data-part] { transform: translateY(16px) scale(.97); transition: opacity .35s var(--ease), transform .45s var(--ease); }
.page .seq-card[data-part].is-shown { transform: none; }

.tw-char,
[data-typewriter] li { opacity: 0; transition: opacity 0s; }
.is-shown .tw-on-reveal .tw-char,
.tw-on-reveal.is-shown .tw-char,
.is-shown .tw-on-reveal li,
.tw-on-reveal.is-shown li,
.page.is-active .tw-on-enter .tw-char,
.page.is-active .tw-on-enter li { opacity: 1; transition: opacity .08s linear var(--d); }
/* Text that types on page entry stays put while the page fades away */
.page:not(.is-active) .tw-on-enter .tw-char,
.page:not(.is-active) .tw-on-enter li { transition: opacity 0s .6s; }

@media (prefers-reduced-motion: reduce) {
  .tw-char, [data-typewriter] li { transition-delay: 0s !important; }
}

/* ---------- Shared pieces ---------- */

.pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 460px;
  padding: 30px 60px;
  border: 0;
  border-radius: 999px;
  background: var(--plate);
  box-shadow: var(--raise-sm);
  color: var(--accent);
  font-size: 46px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}
button.pill { cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
button.pill:hover { transform: translateY(-3px); }
button.pill:active { transform: translateY(1px); box-shadow: var(--inset); }

.pill-sub small {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 500;
}

.vs {
  color: var(--muted);
  font-size: 34px;
  font-weight: 700;
  text-transform: uppercase;
}

.plate {
  position: absolute;
  left: 50%;
  top: 70px;
  translate: -50% 0;
  width: max-content;
  min-width: 1040px;
  max-width: 1800px;
  margin: 0;
  padding: 36px 80px;
  border-radius: 30px;
  background: var(--plate);
  box-shadow: var(--raise);
  color: var(--accent);
  font-size: 60px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}
.plate-short { top: 46px; padding: 26px 80px; font-size: 54px; }

.title {
  position: absolute;
  left: 0;
  right: 0;
  top: 120px;
  margin: 0;
  color: var(--accent);
  font-size: 58px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.panel {
  position: absolute;
  left: 260px;
  right: 260px;
  top: 380px;
  height: 540px;
  border-radius: 36px;
  background: var(--plate);
  box-shadow: var(--raise);
  display: flex;
  align-items: center;
  justify-content: center;
}

.plate-sm {
  display: inline-block;
  padding: 30px 64px;
  border-radius: 20px;
  background: var(--plate);
  box-shadow: var(--raise-sm);
  color: var(--muted);
  font-size: 38px;
  font-weight: 500;
  white-space: nowrap;
}

.dots {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text);
  font-size: 34px;
  line-height: 1.5;
}
.dots li { position: relative; padding-left: 34px; }
.dots li + li { margin-top: 8px; }
.dots li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: .62em;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
}

[data-icon] { display: block; }
[data-icon] svg { display: block; width: 100%; height: 100%; }

/* Arrows drawn in SVG. JS adds the arrowheads. */
.wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.wires .stroke {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset .7s var(--ease) .1s;
}
.wires .head {
  fill: var(--accent);
  opacity: 0;
  transition: opacity .2s .6s;
}
.wires .plain .stroke { stroke: #5C9FBF; stroke-width: 3; }
.wires .plain .head { display: none; }
.wires [data-part] { transform: none; opacity: 1; }
.wires [data-part].is-shown .stroke { stroke-dashoffset: 0; }
.wires [data-part].is-shown .head { opacity: 1; }

/* ---------- Opener (slide 23) ---------- */

/* Rings (from the Neumorphic deck): each ring glides in a small circle. The x and
   y movements run a quarter turn apart, which traces the circle; .is-reverse sends
   a ring the other way round. A slow sway adds a little turn on top. */
.rings { position: absolute; inset: 0; pointer-events: none; }
.ring-art { position: absolute; left: 26px; top: 0; width: 1920px; height: 1080px; overflow: visible; } /* the art is centred 26px left of the slide's middle */
.ring-sway { transform-box: view-box; transform-origin: 934px 540px; animation: ring-sway var(--s) ease-in-out infinite alternate; }
.ring-x { animation: ring-x var(--t) ease-in-out infinite alternate; }
.ring-y { animation: ring-y var(--t) ease-in-out infinite alternate calc(var(--t) * -.5); }
.ring-y.is-reverse { animation-delay: calc(var(--t) * -1.5); }
.page:not(.is-active) .rings * { animation-play-state: paused; }
@keyframes ring-x { from { transform: translateX(calc(var(--r) * -1)); } to { transform: translateX(var(--r)); } }
@keyframes ring-y { from { transform: translateY(calc(var(--r) * -1)); } to { transform: translateY(var(--r)); } }
@keyframes ring-sway { from { transform: rotate(calc(var(--a) * -1)); } to { transform: rotate(var(--a)); } }

.orb {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 300px;
  height: 300px;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #ffffff 0%, #F5F5F8 35%, #E3E4EB 75%, #D7D8E1 100%);
  box-shadow: 0 34px 60px -14px rgba(120, 126, 165, .5), inset -12px -16px 30px rgba(160, 166, 195, .35), inset 10px 10px 20px rgba(255, 255, 255, .8);
}

.opener-title {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  translate: 0 -50%;
  margin: 0;
  color: #fff;
  font-size: 132px;
  font-weight: 800;
  text-align: center;
  letter-spacing: -1px;
  text-shadow: 0 6px 26px rgba(30, 60, 110, .45), 0 2px 4px rgba(30, 60, 110, .35);
}

/* ---------- Overview (slide 24) ---------- */

.overview {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 90px;
}
.ov-row {
  display: grid;
  grid-template-columns: 520px 150px 520px;
  align-items: center;
  justify-items: center;
  padding: 22px 30px;
  border: 0;
  border-radius: 999px;
  background: none;
  cursor: pointer;
}
.ov-row .pill { min-width: 520px; transition: transform .2s var(--ease); }
.ov-row:hover .pill { transform: translateY(-4px); }

/* ---------- Tax Filing vs Tax Payment (slides 25, 26) ---------- */

.fp {
  position: absolute;
  inset: 100px 110px 120px;
  display: grid;
  grid-template-columns: 1fr 160px 1fr;
}
.fp-side { display: flex; flex-direction: column; align-items: center; }
.fp-desc {
  width: 640px;
  min-height: 160px;
  margin: 60px 0 0;
  color: var(--text);
  font-size: 36px;
  line-height: 1.45;
}
.fp-mid { display: flex; flex-direction: column; align-items: center; }
.fp-mid .vs { height: 132px; display: grid; place-items: center; font-size: 40px; }
.fp-divider { flex: 1; width: 4px; margin: 30px 0 10px; border-radius: 2px; background: var(--line); }

.flow { margin-top: auto; width: 100%; display: flex; align-items: flex-end; }
.actor { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.actor [data-icon] { width: 150px; height: 150px; color: var(--icon); }
.actor figcaption { color: var(--accent); font-size: 40px; font-weight: 500; }

.carry { flex: 1; position: relative; height: 230px; margin: 0 6px 66px; }
.carry-item { position: absolute; left: 50%; top: 0; translate: -50% 0; width: 104px; height: 104px; color: var(--icon); }
.carry-item [data-icon] { width: 100%; height: 100%; }
.carry-item.money { width: 128px; height: 128px; top: -10px; }
.doc b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-top: 14px;
  font-size: 22px;
  font-weight: 600;
}
.carry-line {
  position: absolute;
  left: 8%;
  right: 12%;
  top: 136px;
  height: 5px;
  border-radius: 3px;
  background: var(--accent);
  transform-origin: left center;
}
.carry-line::after {
  content: '';
  position: absolute;
  right: -18px;
  top: 50%;
  translate: 0 -50%;
  border-left: 22px solid var(--accent);
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
}
.carry-label {
  position: absolute;
  left: -20px;
  right: -20px;
  top: 160px;
  color: var(--text);
  font-size: 28px;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
}

.page.is-active .fp-side:not([data-part]) .carry-item,
.page.is-active .fp-side.is-shown .carry-item { animation: carry 1.2s var(--ease) .35s both; }
.page.is-active .fp-side:not([data-part]) .carry-line,
.page.is-active .fp-side.is-shown .carry-line { animation: grow .7s var(--ease) .2s both; }
@keyframes carry { from { transform: translateX(-130px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: none; } }

/* ---------- Income Tax vs Withholding Tax (slides 27 to 29) ---------- */

.duo {
  position: absolute;
  left: 0;
  right: 0;
  top: 360px;
  display: grid;
  grid-template-columns: 1fr 180px 1fr;
  padding: 0 200px;
}
.duo-col { display: flex; flex-direction: column; align-items: center; gap: 60px; }
.duo .vs { height: 134px; display: grid; place-items: center; font-size: 40px; }
.duo .dots { width: 640px; }

/* ---------- Tax Payable or Tax Credit (slides 30 to 33) ---------- */

.bars-card {
  position: absolute;
  left: 50%;
  top: 80px;
  width: 960px;
  height: 790px;
  translate: -50% 0;
  border-radius: 40px;
  background: var(--plate);
  box-shadow: var(--raise);
}
.bars { position: absolute; left: 170px; top: 60px; width: 700px; height: 680px; }
.bar { position: absolute; top: 0; width: 200px; display: flex; flex-direction: column; align-items: center; }
.bar[data-bar="it"] { left: 0; }
.bar[data-bar="wt"] { left: 200px; }
.track {
  position: relative;
  width: 30px;
  height: 520px;
  border-radius: 15px;
  background: var(--plate);
  box-shadow: var(--inset);
}
.bar[data-bar="wt"] .track { cursor: ns-resize; touch-action: none; }
.fill {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border-radius: 11px;
  background: linear-gradient(to bottom, var(--bar-top), var(--bar-bottom));
  transition: height .7s var(--ease);
}
.knob {
  position: absolute;
  left: 50%;
  top: -14px;
  width: 40px;
  height: 40px;
  translate: -50% 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(40, 70, 120, .3), inset 0 0 0 6px var(--bar-top);
  opacity: 0;
  transition: opacity .2s;
}
.bar[data-bar="wt"] .track:hover .knob,
.bars.is-dragging .knob { opacity: 1; }
.bars.is-dragging .fill,
.bars.is-dragging .bracket,
.bars.is-dragging .gap-label,
.bars.is-dragging .gap-link { transition: none; }
.bar-label {
  margin-top: 26px;
  color: var(--text);
  font-size: 32px;
  line-height: 1.25;
  text-align: center;
}

.gap-link, .bracket, .gap-label {
  position: absolute;
  opacity: 0;
  transition: opacity .35s var(--ease), top .7s var(--ease), height .7s var(--ease);
}
.gap-link { left: 115px; width: 180px; height: 0; border-top: 3px dotted var(--muted); }
.bracket {
  left: 340px;
  width: 30px;
  border: 3px solid var(--muted);
  border-left: 0;
  border-radius: 0 6px 6px 0;
}
.gap-label {
  left: 400px;
  translate: 0 -50%;
  color: var(--ink);
  font-size: 46px;
  font-weight: 700;
  white-space: nowrap;
}
.gap-label .payable { color: var(--payable); }
.gap-label .credit { color: var(--credit); }
.page[data-kind="payable"] .gap-label .credit,
.page[data-kind="credit"] .gap-label .payable { display: none; }
.page:not([data-state="0"]) .gap-link,
.page:not([data-state="0"]) .bracket,
.page:not([data-state="0"]) .gap-label { opacity: 1; }

.seg {
  position: absolute;
  left: 50%;
  top: 920px;
  translate: -50% 0;
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: var(--plate);
  box-shadow: var(--inset);
}
.seg button {
  padding: 16px 40px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font-size: 28px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.seg button[aria-pressed="true"] { background: var(--plate); color: var(--accent); box-shadow: var(--raise-sm); }

/* ---------- Withholding Tax headline (slide 34) ---------- */

.headline {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.headline h1 { margin: 0; color: var(--accent); font-size: 108px; font-weight: 800; line-height: 1.1; }
.headline p { margin: 6px 0 0; color: var(--muted); font-size: 86px; font-weight: 700; line-height: 1.15; }

/* ---------- Withholding Tax flow (slides 35 to 39) ---------- */

.node, .hex {
  position: absolute;
  left: var(--x);
  top: var(--y);
  translate: -50% -50%;
}
.node {
  min-width: 330px;
  padding: 24px 46px;
  border-radius: 999px;
  background: var(--plate);
  box-shadow: var(--raise-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--accent);
}
.node b { font-size: 40px; font-weight: 500; letter-spacing: 1px; line-height: 1.15; }
.node small { margin-top: 4px; font-size: 20px; font-weight: 700; line-height: 1.25; }

.hex {
  width: 200px;
  height: 176px;
  filter: drop-shadow(-6px -6px 9px rgba(255, 255, 255, .95)) drop-shadow(8px 10px 12px rgba(146, 152, 178, .4));
}
.hex span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background: var(--plate);
  color: var(--accent);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
}

.flow-notes { position: absolute; left: 70px; top: 492px; width: 470px; font-size: 30px; }

/* ---------- EOPT and matching (slides 40, 41) ---------- */

.eopt { gap: 60px; }
.big-arrow { position: relative; width: 150px; height: 18px; border-radius: 4px; background: var(--accent); margin-right: 24px; }
.big-arrow::after {
  content: '';
  position: absolute;
  right: -30px;
  top: 50%;
  translate: 0 -50%;
  border-left: 34px solid var(--accent);
  border-top: 24px solid transparent;
  border-bottom: 24px solid transparent;
}

.match { gap: 70px; }

/* Matching slides (41 and 72): raised blocks start outside the card and drop
   into pressed slots inside it */
.match-card { position: absolute; left: 520px; top: 320px; width: 880px; height: 560px; border-radius: 36px; background: var(--plate); box-shadow: var(--raise); }
.slot { position: absolute; border-radius: 22px; box-shadow: var(--inset); }
.match-eq { position: absolute; left: 940px; top: 600px; translate: -50% -50%; color: var(--accent); font-size: 110px; font-weight: 700; line-height: 1; }
.piece {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: var(--plate);
  box-shadow: var(--raise-sm);
  color: var(--muted);
  font-weight: 500;
  text-align: center;
  rotate: var(--tilt, 0deg);
  cursor: grab;
  touch-action: none;
  user-select: none;
  transition: left .45s var(--ease), top .45s var(--ease), rotate .45s var(--ease), scale .2s var(--ease), box-shadow .2s var(--ease);
}
.piece.is-placed { rotate: 0deg; }
.piece.is-dragging {
  z-index: 2;
  scale: 1.04;
  cursor: grabbing;
  box-shadow: 0 30px 50px -18px rgba(90, 96, 130, .5), inset 0 1px 0 rgba(255, 255, 255, .9);
  transition: rotate .2s var(--ease), scale .2s var(--ease), box-shadow .2s var(--ease);
}
.piece-form { width: 300px; height: 340px; font-size: 48px; font-weight: 600; }
.piece-inv { width: 360px; height: 96px; font-size: 32px; }
.plate-big {
  display: grid;
  place-items: center;
  width: 440px;
  height: 400px;
  border-radius: 30px;
  background: var(--plate);
  box-shadow: var(--raise-sm);
  color: var(--muted);
  font-size: 56px;
  font-weight: 600;
}
.equals { color: var(--accent); font-size: 120px; font-weight: 700; line-height: 1; }
.inv-stack { display: flex; flex-direction: column; gap: 26px; }
.inv-stack .plate-sm { width: 520px; text-align: center; font-size: 34px; padding: 26px 40px; }
.inv-stack > * { opacity: 0; transform: translateX(-24px); transition: opacity .4s var(--ease), transform .5s var(--ease); }
.inv-stack.is-shown > * { opacity: 1; transform: none; }
.inv-stack.is-shown > :nth-child(2) { transition-delay: .12s; }
.inv-stack.is-shown > :nth-child(3) { transition-delay: .24s; }

/* ---------- Gross, Net and Withholding (slides 42 to 44) ---------- */

.form-card {
  position: absolute;
  left: 70px;
  top: 220px;
  width: 1040px;
  margin: 0;
  padding: 20px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--raise-sm);
  --k: .8467; /* 1000px shown / 1181px image */
}
.crop { position: relative; width: 1000px; overflow: hidden; }
.crop-head { height: calc(97px * var(--k)); }
.crop-body { height: calc(573px * var(--k)); margin-top: 14px; }
.crop-inner {
  position: absolute;
  left: 0;
  width: 1181px;
  height: 1061px;
  transform: scale(var(--k));
  transform-origin: 0 0;
}
.crop-head .crop-inner { top: calc(-80px * var(--k)); }
.crop-body .crop-inner { top: calc(-488px * var(--k)); }
.crop-inner img { display: block; width: 1181px; height: 1061px; }

.patch {
  position: absolute;
  padding-right: 8px;
  background: #E3F3FA;
  color: #000;
  font: 15px/1 Arial, Helvetica, sans-serif;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity .25s;
}
.page.is-changed .patch { opacity: 1; }

.ring {
  position: absolute;
  border: 4px solid var(--accent);
  border-radius: 6px;
  opacity: .9;
  transition: box-shadow .2s, opacity .2s;
}
.ring.is-hot { box-shadow: 0 0 0 8px rgba(5, 140, 182, .2); }

.rate {
  position: absolute;
  left: 1180px;
  top: 300px;
  width: 520px;
  height: 100px;
  padding: 0 14px 0 40px;
  border-radius: 20px;
  background: var(--accent);
  box-shadow: 0 14px 30px -10px rgba(5, 110, 150, .55);
  color: #fff;
  font-size: 38px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 16px;
}
.rate button {
  padding: 10px 22px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 38px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.rate button:last-child { margin-right: 6px; }
.rate button[aria-pressed="true"] { background: #fff; color: var(--accent); }

.figures {
  position: absolute;
  left: 1180px;
  top: 500px;
  width: 640px;
  margin: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, .55);
  box-shadow: var(--raise-sm);
  overflow: hidden;
}
.fig-row {
  height: 84px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .2s;
}
.fig-row + .fig-row { border-top: 1px solid var(--line); }
.fig-row.is-hot { background: rgba(5, 140, 182, .08); }
.fig-row dt { color: var(--text); font-size: 40px; }
.fig-row dd { margin: 0; color: var(--ink); font-size: 44px; font-weight: 500; font-variant-numeric: tabular-nums; }
.gross-input {
  width: 300px;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 3px dashed transparent;
  background: none;
  color: var(--ink);
  font: inherit;
  font-variant-numeric: tabular-nums;
  text-align: right;
  outline: none;
  transition: border-color .2s;
}
.gross-input:hover { border-bottom-color: rgba(5, 140, 182, .35); }
.gross-input:focus { border-bottom-color: var(--accent); }

.receive {
  position: absolute;
  left: 1180px;
  top: 855px;
  padding: 18px 46px;
  border-radius: 18px;
  background: var(--navy);
  color: #fff;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

/* ---------- Engagement Types (slide 45) ---------- */

.eng-wrap {
  position: absolute;
  left: 80px;
  right: 80px;
  top: 196px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--plate);
  box-shadow: var(--raise-sm);
}
.eng {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: var(--text);
  font-size: 23px;
  line-height: 1.3;
}
.eng col.el { width: 340px; }
.eng th {
  padding: 16px 24px;
  background: #8C91AE;
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  text-align: left;
  transition: background .25s, opacity .25s;
}
.eng td { padding: 11px 24px; vertical-align: top; transition: opacity .25s; }
.eng tbody tr:nth-child(odd) td { background: rgba(255, 255, 255, .5); }
.eng td[data-col="el"] { color: var(--ink); font-weight: 600; }
.eng ul { margin: 0; padding-left: 1.1em; }
.col-btn { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }

.eng[data-focus="self"] [data-col]:not([data-col="el"]):not([data-col="self"]),
.eng[data-focus="emp"] [data-col]:not([data-col="el"]):not([data-col="emp"]),
.eng[data-focus="mixed"] [data-col]:not([data-col="el"]):not([data-col="mixed"]) { opacity: .28; }
.eng[data-focus="self"] th[data-col="self"],
.eng[data-focus="emp"] th[data-col="emp"],
.eng[data-focus="mixed"] th[data-col="mixed"] { background: var(--accent); }

/* ---------- Shared bits used across the rest of the deck ---------- */

.abs { position: absolute; display: block; margin: 0; }
.page.is-white { background: #fff; }
.is-dim { color: var(--faint); }

.opener-title.is-blue {
  color: var(--accent);
  font-size: 130px;
  line-height: 1.08;
  text-shadow: 0 6px 24px rgba(255, 255, 255, .8), 0 3px 14px rgba(30, 60, 110, .22);
}

.plate.is-muted { color: var(--muted); }
.plate.is-light { font-weight: 500; }
.plate-wide { min-width: 1700px; }
.plate-left { left: 77px; translate: none; min-width: 0; text-align: left; padding: 36px 70px; }

.title-sm { font-size: 50px; }

.wires .line { fill: none; stroke: #9AA8C4; stroke-width: 2.5; stroke-linecap: round; }
.wires .line[data-part],
.wires .line[data-tab] { opacity: 0; transition: opacity .45s var(--ease); }
.wires .line[data-part].is-shown,
.wires .line[data-tab].is-shown { opacity: 1; }
/* Lines that draw themselves outward when revealed */
.wires .line.draw { opacity: 1; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .45s var(--ease); }
.wires .line.draw.is-shown { stroke-dashoffset: 0; }

/* One at a time pages (slides 10 to 13 and 63 to 66) */
[data-tab] { opacity: 0; pointer-events: none; transition: opacity .45s var(--ease); }
[data-tab].is-shown { opacity: 1; pointer-events: auto; }

/* ---------- Topnotch logo (slide 3) ---------- */
/* The logo plays in each time the page opens: the emblem rises, a light sweeps
   across it, the wordmark wipes in, then the two lines underneath settle in. */

.topnotch { position: absolute; left: 543px; top: 123px; width: 834px; height: 834px; --k: .61369; /* 834px shown / 1359px image */ }
.tn-part {
  position: absolute;
  left: 0;
  width: 100%;
  top: calc(var(--y0) * var(--k) * 1px);
  height: calc((var(--y1) - var(--y0)) * var(--k) * 1px);
  overflow: hidden;
}
.tn-part img { position: absolute; left: 0; top: calc(var(--y0) * var(--k) * -1px); width: 100%; }
.tn-emblem { transform-origin: 50% 85%; }
.tn-emblem::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .7) 50%, transparent 62%);
  transform: translateX(-110%);
}

.page.is-active .tn-emblem { animation: tn-rise .9s var(--ease) .15s both; }
.page.is-active .tn-emblem::after { animation: tn-shine 1.2s var(--ease-in-out) .9s both; }
.page.is-active .tn-word { animation: tn-wipe .8s var(--ease) .5s both; }
.page.is-active .tn-sub { animation: tn-up .6s var(--ease) .9s both; }
.page.is-active .tn-tag { animation: tn-up .6s var(--ease) 1.05s both; }

@keyframes tn-rise { from { opacity: 0; transform: translateY(28px) scale(.94); } }
@keyframes tn-shine { from { transform: translateX(-110%); } to { transform: translateX(110%); } }
@keyframes tn-wipe { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes tn-up { from { opacity: 0; transform: translateY(14px); } }
@keyframes tn-fade { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .page.is-active .tn-part { animation: tn-fade .4s var(--ease) both !important; }
  .page.is-active .tn-emblem::after { animation: none !important; }
}

/* ---------- What you'll learn (slide 4) ---------- */

.kicker { position: absolute; left: 246px; top: 96px; margin: 0; color: var(--muted); font-size: 32px; font-weight: 700; letter-spacing: 1px; }
.agenda {
  position: absolute;
  left: 270px;
  top: 200px;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(3, auto);
  grid-template-columns: 720px 720px;
  gap: 26px 70px;
}
.agenda-item {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  padding: 16px 20px;
  border: 0;
  border-radius: 28px;
  background: none;
  text-align: left;
  cursor: pointer;
  transition: background .2s var(--ease);
}
.agenda-item:hover { background: rgba(255, 255, 255, .45); }
.agenda-num {
  flex: none;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--plate);
  box-shadow: var(--raise-sm);
  color: var(--muted);
  font-size: 34px;
  font-weight: 700;
}
.agenda-item b { display: block; margin-top: 18px; color: var(--text); font-size: 38px; font-weight: 600; }
.agenda-item small { display: block; margin-top: 4px; color: var(--muted); font-size: 23px; }
.agenda-item ul { margin: 6px 0 0; padding-left: 1.1em; color: var(--muted); font-size: 23px; line-height: 1.45; }
.agenda-hand { left: auto; right: -120px; bottom: -210px; width: 540px; opacity: .9; }

/* Agenda cards: the number circle settles in before the card's text types out */
.agenda-num { transition: opacity .3s var(--ease), transform .35s var(--ease); }
.agenda-item[data-part]:not(.is-shown) .agenda-num { opacity: 0; transform: scale(.9); }

/* ---------- Why understanding taxes matters (slide 6) ---------- */

.two-col { position: absolute; left: 170px; right: 170px; top: 300px; display: grid; grid-template-columns: 1fr 1fr; gap: 120px; }
.col-head { margin: 0 0 26px; color: var(--muted); font-size: 28px; font-weight: 700; letter-spacing: 1px; }
.two-col .dots { font-size: 30px; }
.two-col .dots li + li { margin-top: 18px; }
.closing-line { position: absolute; left: 0; right: 0; top: 830px; margin: 0; color: var(--muted); font-size: 32px; font-weight: 600; text-align: center; line-height: 1.45; }

/* ---------- National Internal Revenue Code (slide 8) ---------- */

.code-row {
  position: absolute;
  left: 110px;
  right: 100px;
  height: 290px;
  padding: 0 70px 0 50px;
  display: flex;
  align-items: center;
  gap: 64px;
  border-radius: 34px;
  background: var(--plate);
  box-shadow: var(--raise);
}
.code-tag {
  flex: none;
  width: 540px;
  padding: 44px 0;
  border-radius: 26px;
  background: var(--plate);
  box-shadow: var(--raise-sm);
  color: var(--accent);
  font-size: 52px;
  font-weight: 600;
  text-align: center;
}
.code-row p { margin: 0; color: var(--text); font-size: 31px; line-height: 1.5; }
.code-row u { color: var(--accent); font-weight: 700; text-underline-offset: 6px; }

/* ---------- Registration requirements (slides 10 to 13) ---------- */

.req { position: absolute; inset: 0; }
.req-icon { position: absolute; left: 370px; top: 429px; width: 180px; }
.req-icon span {
  width: 180px;
  height: 180px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--plate);
  box-shadow: var(--raise);
}
.req-icon span img { width: 108px; }
.req-icon i {
  position: relative;
  display: block;
  width: 0;
  height: 90px;
  margin: 10px auto 0;
  border-left: 3px dotted var(--faint);
}
.req-icon i::after {
  content: '';
  position: absolute;
  left: -11px;
  bottom: -20px;
  width: 14px;
  height: 14px;
  border: 3px solid var(--faint);
  border-radius: 50%;
}
.req-name, .req-alt { position: absolute; left: 160px; width: 600px; margin: 0; text-align: center; }
.req-name { top: 752px; color: var(--accent); font-size: 40px; font-weight: 500; line-height: 1.2; }
.req-alt { top: 812px; color: var(--text); font-size: 28px; }
.req[data-tab="3"] .req-alt { top: 862px; }
.id-list {
  position: absolute;
  left: 832px;
  top: 341px;
  width: 620px;
  height: 662px;
  margin: 0;
  padding: 56px 70px;
  list-style: none;
  border-radius: 28px;
  background: #E5E4EB;
  color: var(--text);
  font-size: 30px;
  line-height: 1.62;
}
.id-list li::before { content: '▸'; margin-right: 14px; color: var(--accent); }

/* ---------- Process and What's Next (slides 14 to 18) ---------- */

.step-box {
  position: absolute;
  width: 352px;
  height: 202px;
  padding: 20px 30px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: var(--plate);
  box-shadow: var(--raise-sm);
  color: var(--muted);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}
.step-box-sm { width: 363px; }
.step-arrow { position: absolute; background: var(--faint); }
.step-arrow.right { width: 28px; height: 3px; }
.step-arrow.down { width: 3px; height: 16px; }
.step-arrow::after { content: ''; position: absolute; border: 7px solid transparent; }
.step-arrow.right::after { right: -10px; top: -5.5px; border-left: 9px solid var(--faint); border-right: 0; }
.step-arrow.down::after { left: -5.5px; bottom: -10px; border-top: 9px solid var(--faint); border-bottom: 0; }

.detail, .next-panel {
  position: absolute;
  left: 1203px;
  width: 615px;
  height: 202px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  border-radius: 26px;
  background: #E6E5EC;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
  color: var(--accent);
}
.detail { font-size: 23px; line-height: 1.35; }
.detail ul { margin: 0; padding-left: 1.1em; }
.detail ul ul { padding-left: 1.2em; }
.detail-split { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 20px; }
.detail-split b { display: block; margin-bottom: 4px; }
.days-bracket {
  position: absolute;
  left: 1836px;
  top: 568px;
  width: 22px;
  height: 434px;
  border: 3px solid var(--accent);
  border-left: 0;
  border-radius: 0 8px 8px 0;
}
.days-bracket > span {
  position: absolute;
  left: 32px;
  top: 50%;
  translate: 0 -50%;
  writing-mode: vertical-rl;
  color: var(--accent);
  font-size: 20px;
  white-space: nowrap;
}
.next-panel { font-size: 32px; font-weight: 500; }

/* ---------- Tax Index (slides 19 and 74) ---------- */

.tax-index { position: absolute; left: 290px; right: 290px; top: 218px; display: flex; flex-direction: column; gap: 28px; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, .55);
  box-shadow: var(--raise-sm);
  color: var(--text);
  font-size: 21px;
  line-height: 1.3;
}
.data-table th { padding: 9px 18px; background: #8C91AE; color: #fff; font-size: 20px; font-weight: 600; text-align: left; }
.data-table th.group { background: #DFE2EC; color: var(--accent); font-weight: 700; letter-spacing: 1px; text-align: center; }
.data-table td { padding: 8px 18px; border-bottom: 1px solid var(--line); transition: background .15s; }
.data-table td.type { color: var(--ink); font-weight: 600; vertical-align: middle; }
.data-table tr.group-start td { border-top: 2px solid rgba(120, 126, 155, .4); }
.data-table tbody tr:hover td:not(.type) { background: rgba(5, 140, 182, .07); }

/* ---------- Tax schedules (slide 20) ---------- */

.banner {
  position: absolute;
  left: 0;
  right: 0;
  top: 64px;
  height: 104px;
  margin: 0;
  padding: 0 60px;
  display: flex;
  align-items: center;
  background: #1D2B64;
  color: #fff;
  font-family: 'Bebas Neue', 'Poppins', sans-serif;
  font-size: 66px;
  font-weight: 400;
  letter-spacing: 1px;
  white-space: nowrap;
}
.banner span { margin-left: 16px; color: #7FD3EE; }
.timeline { position: absolute; inset: 0; color: #1D2B64; }
.timeline::after { content: ''; position: absolute; left: 0; right: 0; top: 990px; height: 14px; background: #1D2B64; }
.deadline { position: absolute; left: calc(88.5px + var(--m) * 158px); top: 220px; padding-left: 22px; }
.deadline.is-low { top: 410px; }
.deadline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20px;
  height: calc(715px - 220px - 20px);
  border-left: 3px dotted #9AA0B8;
}
.deadline.is-low::before { height: calc(715px - 410px - 20px); }
.deadline::after { content: ''; position: absolute; left: -5px; top: 14px; width: 13px; height: 13px; border-radius: 50%; background: #9AA0B8; }
.deadline b { display: block; font-family: 'Bebas Neue', 'Poppins', sans-serif; font-size: 62px; font-weight: 400; line-height: 1; }
.deadline p { margin: 14px 0 0; display: flex; align-items: center; gap: 14px; font-size: 34px; font-weight: 500; line-height: 1.02; }
.deadline i {
  flex: none;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #8FD6EA;
  font-family: 'Bebas Neue', 'Poppins', sans-serif;
  font-size: 44px;
  font-style: normal;
  line-height: 1;
}
.months { position: absolute; left: 90px; top: 704px; width: 1738px; display: flex; justify-content: space-between; }
.months::before { content: ''; position: absolute; left: 0; right: 0; top: 10px; border-top: 3px dotted #9AA0B8; }
.months span {
  position: relative;
  width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #7FCFE8;
  font-family: 'Bebas Neue', 'Poppins', sans-serif;
  font-size: 50px;
  line-height: 1;
  white-space: nowrap;
}
.months span::before { content: ''; flex: none; width: 24px; height: 24px; margin-bottom: 16px; border-radius: 50%; background: #8FD6EA; box-shadow: 0 0 0 4px #EDECF1; }
.quarters { position: absolute; left: 66px; top: 812px; width: 1786px; display: grid; grid-template-columns: repeat(4, 1fr); }
.quarters span { display: block; color: #8FD6EA; font-family: 'Bebas Neue', 'Poppins', sans-serif; font-size: 50px; line-height: 1; text-align: center; }
.quarters span::before { content: ''; display: block; height: 18px; margin: 0 22px 14px; border: 3px solid #A7DCEC; border-top: 0; }
.quarters sup { font-size: .55em; }

/* Building it left to right: the dotted line draws out to the end of each
   quarter, then that quarter's months, label and deadlines follow in order. */
.months::before { clip-path: inset(0 100% 0 0); transition: clip-path .7s var(--ease); }
.page[data-shown~="q1"] .months::before { clip-path: inset(0 77.3% 0 0); }
.page[data-shown~="q2"] .months::before { clip-path: inset(0 50% 0 0); }
.page[data-shown~="q3"] .months::before { clip-path: inset(0 22.7% 0 0); }
.page[data-shown~="q4"] .months::before { clip-path: inset(0 0 0 0); }
.months span.is-shown:nth-child(3n + 2) { transition-delay: .12s; }
.months span.is-shown:nth-child(3n) { transition-delay: .24s; }
.quarters span.is-shown { transition-delay: .3s; }
.deadline.is-shown { transition-delay: .4s; }
.deadline.is-low.is-shown { transition-delay: .55s; }

/* ---------- What if I opt not to register (slides 21, 22) ---------- */

.opt-plate { top: 60px; transition: opacity .4s var(--ease), translate .5s var(--ease); }
.notice {
  position: absolute;
  left: 705px;
  top: 283px; /* equal space above (under the title) and below */
  width: 509px;
  box-shadow: 0 20px 40px -16px rgba(60, 70, 100, .4);
  transition: left .7s var(--ease), top .7s var(--ease), width .7s var(--ease);
}
.notice-zoom { left: 679px; top: 147px; width: 1228px; box-shadow: 0 24px 50px -16px rgba(60, 70, 100, .45); }
.page[data-shown~="zoom"] .opt-plate { opacity: 0; translate: -50% -30px; }
.page[data-shown~="zoom"] .notice { left: 13px; top: 0; width: 771px; }

/* ---------- Tax regimes (slides 47, 50 to 54) ---------- */

.regimes {
  position: absolute;
  width: 600px;
  height: 600px;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--plate);
  box-shadow: var(--raise);
}
.regimes-sm { width: 520px; height: 520px; }

/* Anchored pages share one circle that sits above them. The pages fade without
   sliding, and the circle only fades when you arrive from or leave for a page
   that doesn't share it. */
.page[data-anchor] { transform: none; }
.anchor-circle { opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s .45s; }
.anchor-circle.is-on { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
.regimes .rknob {
  position: absolute;
  width: 12.6%;
  height: 12.6%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff, #E4E4EB);
  box-shadow: var(--raise-sm);
}
.rknob.k1 { left: 13.7%; top: 13.7%; }
.rknob.k2 { right: 13.7%; top: 13.7%; }
.rknob.k3 { left: 13.7%; bottom: 13.7%; }
.rknob.k4 { right: 13.7%; bottom: 13.7%; }
.regimes-core {
  position: absolute;
  inset: 18%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 50%;
  background: var(--plate);
  box-shadow: var(--inset);
}
.regimes-core [data-icon] { width: 74px; height: 74px; color: var(--muted); }
.regimes-core b { color: var(--accent); font-size: 40px; font-weight: 700; }
.regimes-sm .regimes-core b { font-size: 36px; }


/* Fixed heights keep each underline at an exact spot (54.75px below the group's
   top), so the connecting lines on slide 54 always meet it. */
.fgroup { position: absolute; width: 540px; }
.fgroup.is-shown { transition-delay: .25s; }
.fgroup h3 { height: 56px; margin: 0 0 18px; padding: 0; border-bottom: 2.5px solid #9AA8C4; color: var(--accent); font-size: 34px; font-weight: 700; line-height: 50px; }
.fgroup.is-right h3 { text-align: right; }
.fgroup ul { margin: 0; padding-left: 1.1em; color: var(--text); font-size: 25px; line-height: 1.5; }
.fgroup.is-right ul { width: fit-content; margin-left: auto; }
.fcard {
  height: 112px;
  margin-bottom: 18px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 60px;
  background: var(--plate);
  box-shadow: var(--raise-sm);
  color: var(--text);
  text-align: center;
}
.fcard small { display: block; color: var(--muted); font-size: 19px; font-weight: 700; }
.fcard p { margin: 4px 0 0; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 24px; }
.fcard p > span { display: inline-block; font-size: 20px; line-height: 1.15; }
.fcard i { font-size: 54px; font-style: normal; font-weight: 200; line-height: 1; color: var(--muted); }

/* ---------- Pop-ups (the Graduated Tax Table on slide 54) ---------- */

.pop-btn {
  position: absolute; /* each button sets its own spot inline */
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 32px;
  border: 0;
  border-radius: 999px;
  background: var(--plate);
  box-shadow: var(--raise-sm);
  color: var(--accent);
  font-size: 24px;
  font-weight: 600;
  cursor: pointer;
}
.pop-btn svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.pop-btn:active { box-shadow: var(--inset); }
@media (hover: hover) and (pointer: fine) { .pop-btn.is-shown:hover { transform: translateY(-2px); } }

.popup {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background: rgba(40, 46, 70, .28);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease), visibility 0s .25s;
}
.popup.is-open { opacity: 1; visibility: visible; transition: opacity .25s var(--ease); }
.popup .sheet { position: relative; width: 1660px; transform: scale(.96); transition: transform .3s var(--ease); }
.popup.is-open .sheet { transform: none; }
/* A whole slide shown inside a pop-up, laid out on its own 1920 x 1080 canvas */
.pop-slide {
  position: relative;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  border-radius: 34px;
  background: var(--bg);
  box-shadow: 0 40px 90px -30px rgba(30, 40, 80, .55);
  transform: scale(.84);
  transition: transform .3s var(--ease);
}
.popup.is-open .pop-slide { transform: scale(.88); }
.pop-slide .pop-close { z-index: 1; right: 40px; top: 40px; }
.pop-close {
  position: absolute;
  right: 28px;
  top: 28px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--plate);
  box-shadow: var(--raise-sm);
  color: var(--text);
  cursor: pointer;
}
.pop-close svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ---------- Graduated tax table ---------- */

.sheet { padding: 50px 60px 60px; border-radius: 12px; background: #fff; box-shadow: var(--raise-sm); }
.sheet-title { margin: 0 0 30px; color: var(--accent); font-size: 38px; font-weight: 700; }
.grid-table { width: 100%; border-collapse: collapse; color: #333; font-size: 28px; }
.grid-table th, .grid-table td { padding: 20px 28px; border: 1.5px solid #9A9A9A; }
.grid-table th { font-weight: 600; text-align: center; }
.grid-table tbody tr:nth-child(odd) td { background: #F4F4F4; }
.grid-table td:last-child { width: 55%; }
.grid-table tbody tr:hover td { background: rgba(5, 140, 182, .08); }

/* ---------- Expense and VAT (slide 49) ---------- */

.receipt { overflow: hidden; }
.receipt img { width: 100%; height: 100%; object-fit: cover; }
.receipt-mark { position: absolute; left: 24px; top: 380px; width: 388px; height: 128px; border: 4px solid var(--accent); border-radius: 8px; }
.tag {
  position: absolute;
  min-width: 358px;
  padding: 22px 30px;
  border-radius: 18px;
  background: #8E94B8;
  box-shadow: var(--raise-sm);
  color: #fff;
  font-size: 34px;
  font-weight: 600;
  text-align: center;
}
.tag-lg { font-size: 48px; padding: 18px 30px; }

/* ---------- 8% formula (slides 55, 56) ---------- */

.formula-card {
  position: absolute;
  left: 124px;
  top: 196px;
  width: 1664px;
  height: 470px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 235px;
  background: var(--plate);
  box-shadow: var(--raise);
}
.formula-card h2 { margin: 0 0 34px; color: var(--accent); font-size: 80px; font-weight: 700; }
.formula { margin: 0; display: flex; align-items: baseline; gap: 14px; color: var(--muted); font-size: 46px; white-space: nowrap; }
.formula-input {
  width: 7ch;
  padding: 0;
  border: 0;
  border-bottom: 3px dashed transparent;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: center;
  outline: none;
  transition: border-color .2s;
}
.formula-input::placeholder { color: var(--muted); opacity: 1; }
.formula-input:hover { border-bottom-color: rgba(5, 140, 182, .35); }
.formula-input:focus { border-bottom-color: var(--accent); }
.formula-result.has-value { color: var(--accent); font-weight: 600; }
.note-pill {
  position: absolute;
  top: 764px;
  width: 785px;
  height: 222px;
  display: grid;
  place-items: center;
  border-radius: 111px;
  background: var(--plate);
  box-shadow: var(--raise-sm);
  color: var(--accent);
  font-size: 36px;
  font-weight: 500;
}

.duo-high { top: 250px; }

/* ---------- Withholding tax rate (slides 59 to 62) ---------- */

.rate-bar { position: absolute; left: 383px; top: 427px; width: 10px; height: 542px; border-radius: 5px; background: linear-gradient(to bottom, var(--bar-top), var(--bar-bottom)); }
.rate-mark { position: absolute; left: 348px; height: 80px; translate: 0 -50%; display: flex; align-items: center; }
.rate-mark > span {
  flex: none;
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--plate);
  box-shadow: var(--raise-sm);
  color: var(--muted);
  font-size: 22px;
  font-weight: 700;
}
.rate-mark i { width: 130px; margin: 0 20px; border-top: 3px dashed var(--faint); }
.rate-mark p { margin: 0; color: var(--text); font-size: 38px; white-space: nowrap; }
.gap-bracket {
  position: absolute;
  left: 290px;
  top: 427px;
  width: 30px;
  height: 158px;
  border: 3px solid var(--payable);
  border-right: 0;
  border-radius: 8px 0 0 8px;
}
.gap-bracket span { position: absolute; left: -74px; top: 50%; translate: 0 -50%; rotate: -90deg; color: var(--payable); font-size: 42px; font-weight: 700; }

/* ---------- Sworn declaration (slides 63 to 67) ---------- */

.scan { position: absolute; left: 665px; top: 0; width: 686px; height: 1080px; object-fit: cover; box-shadow: 0 20px 40px -16px rgba(60, 70, 100, .4); transition: left .7s var(--ease); }
.page:not([data-current="0"]) .scan { left: 82px; }
.zoom-card { border-radius: 6px; box-shadow: 0 24px 50px -16px rgba(60, 70, 100, .45); }

.quote-title { position: absolute; left: 0; right: 0; top: 100px; margin: 0; color: var(--text); font-size: 40px; font-weight: 700; text-align: center; }
.quote-title small { display: block; margin-top: 4px; color: var(--muted); font-size: 24px; font-weight: 400; }
.quote { position: absolute; left: 170px; right: 170px; top: 250px; margin: 0; color: var(--muted); font-size: 22px; line-height: 1.6; text-align: justify; }
.quote b { color: var(--text); font-weight: 600; }
.key-box {
  position: absolute;
  left: 141px;
  width: 1638px;
  top: 555px;
  height: 450px;
  padding: 56px 72px;
  border-radius: 32px;
  background: var(--accent);
  box-shadow: 0 24px 50px -20px rgba(5, 110, 150, .55);
  color: #fff;
  font-size: 46px;
  line-height: 1.55;
}
.key-box p { margin: 0; }
.key-head { margin-bottom: 14px !important; }
.key-box u { text-underline-offset: 8px; }

/* ---------- Complications (slide 69): hub and spokes ---------- */

/* Thin blue outline icons, the Neumorphic template's main motif */
.ic { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.hub {
  position: absolute;
  left: 960px;
  top: 540px;
  width: 340px;
  height: 340px;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--plate);
  box-shadow: var(--raise);
}
.hub-core { width: 250px; height: 250px; display: grid; place-items: center; border-radius: 50%; box-shadow: var(--inset); text-align: center; }
.hub-core b { color: var(--accent); font-size: 32px; font-weight: 700; line-height: 1.2; }
.hub-node {
  position: absolute;
  width: 160px;
  height: 160px;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--plate);
  box-shadow: var(--raise);
}
.hub-node .ic { width: 70px; height: 70px; }
.page .hub-node.seq-card.is-shown { transition-delay: .3s; } /* lands once its spoke has drawn */
.hub-label { position: absolute; margin: 0; translate: 0 -50%; color: var(--text); font-size: 34px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.hub-label.left { translate: -100% -50%; text-align: right; }
.wires .knob-dot { fill: var(--plate); stroke: #C3C8D8; stroke-width: 2; }
.wires .knob-dot[data-part] { opacity: 0; transition: opacity .3s var(--ease); }
.wires .knob-dot[data-part].is-shown { opacity: 1; }

/* ---------- Recommendations (slides 71 to 80) ---------- */

.orb-big {
  position: absolute;
  width: 560px;
  height: 560px;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff, #EEEEF3 55%, #DADBE5);
  box-shadow: 0 40px 80px -30px rgba(120, 130, 170, .5);
  text-align: center;
}
.orb-big b { color: var(--accent); font-size: 48px; font-weight: 700; line-height: 1.2; }
.icon-disc {
  position: absolute;
  width: 200px;
  height: 200px;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--plate);
  box-shadow: var(--raise);
}
.icon-disc img { width: 118px; }

.inv-stack.is-static > * { opacity: 1; transform: none; }

.side-word { position: absolute; top: 515px; margin: 0; color: var(--muted); font-size: 42px; font-weight: 600; }
.portfolio-note { position: absolute; left: 0; right: 0; top: 800px; margin: 0; color: var(--muted); font-size: 32px; line-height: 1.5; text-align: center; }
.portfolio-note b { color: var(--text); }

.shot { position: absolute; padding: 24px; border-radius: 20px; background: #fff; box-shadow: var(--raise-sm); }
.shot img { display: block; width: 100%; }
.question { position: absolute; left: 239px; top: 850px; width: 1440px; margin: 0; color: var(--muted); font-size: 36px; font-weight: 600; }

.plot-card {
  position: absolute;
  left: 538px;
  top: 256px;
  width: 1344px;
  height: 747px;
  padding: 44px;
  display: flex;
  align-items: center;
  gap: 40px;
  border-radius: 40px;
  background: var(--plate);
  box-shadow: var(--raise);
}
.plot-cor, .plot-cal { height: 660px; border-radius: 30px; background: var(--plate); box-shadow: var(--raise-sm); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.plot-cor { width: 540px; gap: 34px; }
.plot-cor img { width: 180px; }
.plot-cor b { color: var(--accent); font-size: 36px; font-weight: 700; text-align: center; line-height: 1.25; }
.plot-arrow { position: relative; flex: none; width: 110px; height: 3px; background: var(--muted); }
.plot-arrow::after { content: ''; position: absolute; right: -12px; top: -7.5px; border-left: 14px solid var(--muted); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.plot-cal { flex: 1; gap: 24px; }
.plot-cal b { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; color: var(--accent); font-size: 38px; font-weight: 700; }
.plot-cal b img { width: 64px; }
.plot-cal span { width: 72%; padding: 18px; border-radius: 18px; background: var(--plate); box-shadow: var(--raise-sm); color: var(--muted); font-size: 30px; font-weight: 600; text-align: center; }

.tip {
  position: absolute;
  height: 330px;
  padding: 0 80px;
  display: flex;
  align-items: center;
  border-radius: 165px;
  background: var(--plate);
  box-shadow: var(--raise);
  color: var(--accent);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.3;
}
.tip-icon {
  position: absolute;
  top: 50%;
  width: 170px;
  height: 170px;
  padding: 38px;
  translate: 0 -50%;
  border-radius: 50%;
  background: var(--plate);
  box-shadow: var(--raise-sm);
  color: var(--accent);
}
.tip-note { position: absolute; width: 760px; margin: 0; color: var(--muted); font-size: 30px; line-height: 1.45; }

.thanks {
  position: absolute;
  left: 102px;
  right: 102px;
  top: 431px;
  height: 210px;
  margin: 0;
  display: grid;
  place-items: center;
  border-radius: 32px;
  background: var(--plate);
  box-shadow: var(--raise);
  color: var(--accent);
  font-size: 66px;
  font-weight: 400;
  letter-spacing: 1px;
}

/* ---------- FAQs and Medtax (slides 83 to 101) ---------- */

.qr { position: absolute; top: 336px; width: 310px; display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; }
.qr img { width: 310px; height: 310px; }
.qr b { margin-top: 40px; color: var(--accent); font-size: 32px; font-weight: 500; }
.qr small { margin-top: 12px; color: var(--muted); font-size: 22px; white-space: nowrap; }
a.qr:hover b { text-decoration: underline; }

.diamonds .dia {
  position: absolute;
  width: 150px;
  height: 150px;
  translate: -50% -50%;
  isolation: isolate;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}
.diamonds .dia::before {
  content: '';
  position: absolute;
  inset: 20px;
  z-index: -1;
  transform: rotate(45deg);
  border-radius: 18px;
  background: var(--plate);
  box-shadow: var(--raise-sm);
}
.diamonds .dia-lg { width: 200px; height: 200px; font-size: 28px; }
.diamonds .dia img { width: 56px; }
.sys-caption { position: absolute; left: 190px; top: 870px; width: 440px; margin: 0; color: var(--muted); font-size: 24px; line-height: 1.5; }
.sys-arrow { position: absolute; left: 568px; top: 618px; width: 70px; height: 4px; margin: 0; }
.sys-arrow::after { right: -14px; border-left-width: 16px; border-top-width: 10px; border-bottom-width: 10px; }
.sys-hub { position: absolute; left: 667px; top: 440px; width: 400px; height: 400px; display: grid; place-items: center; border-radius: 50%; background: var(--plate); box-shadow: var(--raise); }
.sys-phone { width: 150px; height: 250px; display: grid; place-items: center; border: 6px solid #D9DAE3; border-radius: 24px; background: #fff; }
.sys-phone img { width: 112px; }
.sys-card {
  position: absolute;
  left: 1203px;
  width: 590px;
  height: 235px;
  padding: 0 46px 0 34px;
  display: flex;
  align-items: center;
  gap: 30px;
  border-radius: 118px;
  background: var(--plate);
  box-shadow: var(--raise);
  color: var(--accent);
  font-size: 21px;
  line-height: 1.45;
}
.sys-card > span { flex: none; width: 140px; height: 140px; display: grid; place-items: center; border-radius: 50%; background: var(--plate); box-shadow: var(--raise-sm); }
.sys-card > span img { width: 72px; }
.sys-card b { display: block; margin-bottom: 6px; font-size: 30px; font-weight: 700; }
.sys-mid { position: absolute; left: 1250px; top: 590px; width: 540px; margin: 0; color: var(--muted); font-size: 24px; line-height: 1.6; }

.price {
  position: absolute;
  top: 363px;
  width: 563px;
  height: 576px;
  padding: 60px 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 40px;
  background: var(--plate);
  box-shadow: var(--raise);
  color: var(--accent);
  text-align: center;
}
.price small { font-size: 28px; font-weight: 700; }
.price b { margin: 34px 0 38px; font-size: 76px; font-weight: 700; }
.price ul { margin: 0; padding-left: 1.1em; font-size: 25px; line-height: 1.45; text-align: left; }
.price li + li { margin-top: 8px; }
.price-or { position: absolute; left: 943px; top: 640px; translate: -50% -50%; color: var(--accent); font-size: 46px; font-weight: 700; }

.cost-card { position: absolute; left: 354px; width: 1208px; top: 290px; padding: 46px 90px 44px; border-radius: 32px; background: var(--plate); box-shadow: var(--raise); color: var(--accent); }
.cost-table { width: 100%; border-collapse: collapse; font-size: 27px; }
.cost-table th { padding-bottom: 10px; font-weight: 700; }
.cost-table td { padding: 7px 0; }
.cost-table th:nth-child(1), .cost-table td:nth-child(1) { text-align: left; }
.cost-table th:nth-child(2), .cost-table td:nth-child(2) { text-align: center; }
.cost-table th:nth-child(3), .cost-table td:nth-child(3) { text-align: right; }
.cost-table tr.total td { padding-top: 14px; font-weight: 700; }
.other-costs { margin-top: 28px; font-size: 21px; line-height: 1.45; }
.other-costs ul { margin: 6px 0 0; padding-left: 1.2em; }
.fine-print { position: absolute; left: 0; right: 0; top: 960px; margin: 0; color: var(--accent); font-size: 21px; text-align: center; }

.faq-title { position: absolute; left: 130px; top: 86px; margin: 0; color: var(--muted); font-size: 34px; font-weight: 700; }
.faq { position: absolute; left: 130px; right: 130px; top: 170px; margin: 0; font-size: 27px; line-height: 1.4; }
.faq dt { color: var(--text); }
.faq dd { margin: 2px 0 22px; color: var(--accent); }
.faq-dense { font-size: 24px; }
.faq-dense dd { margin-bottom: 18px; }
.faq-note { position: absolute; left: 130px; top: 930px; margin: 0; color: var(--muted); font-size: 25px; }
.faq-full { top: 76px; font-size: 25px; }
.faq-full dt { color: var(--accent); font-weight: 600; }
.faq-full dd { margin-bottom: 18px; }
.faq-more { position: absolute; left: 130px; top: 940px; margin: 0; color: var(--accent); font-size: 25px; }

.app-title { position: absolute; left: 205px; top: 120px; margin: 0; color: var(--accent); font-size: 48px; font-weight: 700; }
.app-text { position: absolute; margin: 0; color: var(--muted); font-size: 27px; line-height: 1.55; }
.thin-arrow { position: absolute; height: 3px; background: var(--accent); }
.thin-arrow::after { content: ''; position: absolute; right: -12px; top: -7.5px; border-left: 15px solid var(--accent); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }

/* ---------- Magnifier lens ---------- */

.lens {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  width: 400px;
  height: 400px;
  margin: -200px 0 0 -200px;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 6px #fff, 0 0 0 8px rgba(5, 140, 182, .55), 0 26px 60px -12px rgba(30, 40, 80, .5);
  pointer-events: none;
  opacity: 0;
  transform: scale(.92);
  transition: opacity .15s var(--ease), transform .2s var(--ease);
}
.lens.is-on { opacity: 1; transform: none; }
.lens img { position: absolute; max-width: none; }
.stage.is-lensing { cursor: none; }

/* ---------- Spotlight: dims everything except a circle around the mouse ---------- */

.spot {
  position: fixed;
  inset: 0;
  z-index: 8;
  background: radial-gradient(circle var(--r, 200px) at var(--x, 50%) var(--y, 50%), transparent calc(100% - 14px), rgba(16, 20, 36, .62) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s var(--ease);
}
.spot.is-on { opacity: 1; }

/* ---------- Phone readability (version 2) ----------
   Most of the audience joins Zoom on a phone, where the 1920 x 1080 slide shows at
   about 40% of its size. Nothing meant to be read goes below 30px here (about 13px on
   a phone); titles keep their sizes. Dense slides get layouts that fit the bigger text. */

/* Body text and labels */
.two-col .dots, .code-row p, .flow-notes, .app-text { font-size: 34px; }
.col-head, .seg button, .hex span, .price small, .quote-title small { font-size: 30px; }
.step-box, .req-alt, .id-list, .carry-label, .tip-note, .plot-cal span, .cost-table, .grid-table, .fgroup ul { font-size: 32px; }
.agenda-item small, .agenda-item ul, .detail, .price ul, .other-costs, .sys-mid, .sys-caption { font-size: 30px; }
.node small, .rate-mark > span, .days-bracket > span, .diamonds .dia { font-size: 26px; }
.pill-sub small { font-size: 24px; }
.diamonds .dia-lg { font-size: 30px; }
.qr small, .fine-print, .pop-btn { font-size: 28px; }
.qr b { font-size: 34px; }
.flow-notes { left: 60px; }

/* What you'll learn (slide 4): three columns, two rows, still read 01 to 06 */
.kicker { top: 60px; }
.agenda { left: 100px; right: 100px; top: 150px; grid-auto-flow: row; grid-template-rows: none; grid-template-columns: repeat(3, 1fr); gap: 46px 24px; }
.agenda-item { gap: 24px; padding: 12px 14px; }
.agenda-item b { margin-top: 16px; font-size: 36px; }

/* Process (slides 14, 15): narrower steps, wider details, rows sized to their content */
.step-box { padding: 16px 28px; }
.page[data-slide="14, 15"] .step-box { width: 300px; }
.detail { left: 1030px; width: 810px; padding: 0 40px; }
.detail-split { grid-template-columns: auto auto; justify-content: start; gap: 60px; }
.days-bracket { left: 1852px; top: 500px; height: 540px; }
.days-bracket > span { left: 30px; }
.next-panel { font-size: 34px; }

/* Tax Index (slides 19, 74) */
.page .plate.plate-tight { top: 34px; padding: 22px 70px; font-size: 52px; }
.tax-index { left: 70px; right: 70px; top: 162px; gap: 22px; }
.data-table { font-size: 30px; line-height: 1.25; }
.data-table th { padding: 8px 18px; font-size: 28px; }
.data-table td { padding: 6px 18px; }

/* Engagement Types (slide 45) */
.plate-short { top: 26px; padding: 18px 70px; font-size: 48px; }
.eng-wrap { top: 132px; }
.eng { font-size: 29px; line-height: 1.25; }
.eng col.el { width: 360px; }
.eng th { padding: 12px 22px; font-size: 30px; }
.eng td { padding: 8px 22px; }

/* Tax regimes formulas (slide 54): each formula reads as one line of text */
.fcard { height: auto; min-height: 112px; padding: 14px 26px; }
.fcard small { font-size: 26px; }
.fcard p { display: block; margin-top: 2px; font-size: 28px; line-height: 1.3; }
.fcard p > span { display: inline; font-size: inherit; line-height: inherit; }

/* Sworn declaration quote (slide 67) */
.quote-title { top: 52px; }
.quote { top: 180px; font-size: 30px; line-height: 1.5; }
.key-box { top: 700px; height: 330px; padding: 46px 70px; font-size: 42px; }

/* How our system works (slide 85) */
.sys-card { width: 640px; height: 260px; font-size: 28px; line-height: 1.4; }
.sys-card b { font-size: 32px; }
.sys-mid { top: 548px; width: 580px; }
.sys-caption { top: 836px; width: 450px; }

/* Registration costs (slide 88) */
.cost-card { top: 236px; padding: 40px 90px; }
.fine-print { top: 984px; }

/* FAQs (slides 90, 91, 100) */
.faq-title { top: 52px; font-size: 38px; }
.faq { top: 128px; font-size: 32px; line-height: 1.35; }
.faq dd { margin-bottom: 18px; }
.faq-dense { font-size: 30px; }
.faq-dense dd { margin-bottom: 14px; }
.faq-full { top: 70px; font-size: 32px; }
.faq-note, .faq-more { top: auto; bottom: 66px; font-size: 30px; }

/* ---------- Controls (outside the stage, so they stay the same size) ---------- */

.hud {
  position: fixed;
  left: 50%;
  bottom: 18px;
  translate: -50% 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -10px rgba(40, 50, 90, .35);
  font-size: 13px;
  transition: opacity .3s var(--ease), translate .3s var(--ease);
}
.hud.is-idle { opacity: 0; translate: -50% 8px; pointer-events: none; }
.hud-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--text);
  cursor: pointer;
}
.hud-btn:hover { background: rgba(5, 140, 182, .1); color: var(--accent); }
.hud-btn[aria-pressed="true"] { background: rgba(5, 140, 182, .16); color: var(--accent); }
.hud-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hud-mid { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
.hud-title { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-weight: 500; }
.hud-count { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hud-pips { display: flex; gap: 2px; }
.hud-pips:empty { display: none; }
.hud-pips button {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.hud-pips button::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  transition: background .2s;
}
.hud-pips button[aria-pressed="true"]::before { background: var(--accent); }
.hud-sep { width: 1px; height: 20px; margin: 0 4px; background: var(--line); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(40, 46, 70, .35);
  backdrop-filter: blur(6px);
}
.menu[hidden] { display: none; }
.menu-panel {
  width: min(560px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 22px;
  border-radius: 22px;
  background: #F6F6F9;
  box-shadow: 0 30px 60px -20px rgba(30, 40, 80, .45);
}
.menu-section { margin: 4px 8px 8px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.menu-section:not(:first-child) { margin-top: 18px; }
.menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--ink);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.menu-item:hover { background: rgba(5, 140, 182, .08); }
.menu-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.menu-item[aria-current="true"] { background: rgba(5, 140, 182, .12); color: var(--accent); font-weight: 600; }
.menu-item span { width: 24px; color: var(--muted); font-variant-numeric: tabular-nums; }
.menu-item em { margin-left: auto; padding-left: 12px; color: var(--muted); font-size: 12px; font-style: normal; white-space: nowrap; }
.menu-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 18px 8px 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
kbd {
  display: inline-block;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .12);
  color: var(--ink);
  font: inherit;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
