@font-face {
  font-family: Manrope;
  src: url("assets/manrope-cyrillic.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope;
  src: url("assets/manrope-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Cormorant;
  src: url("assets/cormorant-cyrillic-normal.woff2") format("woff2");
  font-weight: 600 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Cormorant;
  src: url("assets/cormorant-latin-normal.woff2") format("woff2");
  font-weight: 600 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212;
}
@font-face {
  font-family: Cormorant;
  src: url("assets/cormorant-cyrillic-italic.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Cormorant;
  src: url("assets/cormorant-latin-italic.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212;
}
:root {
  --black: #0b1812;
  --pine: #10261b;
  --ivory: #f9efdb;
  --paper: #f0e7d4;
  --ink: #17281f;
  --sage: #bbcbbd;
  --bronze: #7a4522;
  --gold: #f1c686;
  --edge: #e8c1814d;
  --serif: Cormorant, Georgia, serif;
  font-family: Manrope, system-ui, sans-serif;
  font-synthesis: none;
  color: var(--ivory);
  background: var(--black);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, blockquote, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #edaa64; outline-offset: 5px; }
.wrap { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.skip { position: fixed; z-index: 20; top: 11px; left: 10px; transform: translateY(-160%); padding: 12px; background: var(--ivory); color: var(--ink); }
.skip:focus { transform: none; }
.reading-progress { position: fixed; z-index: 15; inset: 0 0 auto; height: 2px; pointer-events: none; transform: scaleX(var(--reading, 0)); transform-origin: left; background: linear-gradient(90deg, #8d4826, #f1c686); }

.hero {
  --hero-travel: 0px;
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: clip;
  background: #0b2117;
}
.hero-image, .hero-shade, .hero-sparks { position: absolute; inset: 0; pointer-events: none; }
.hero-image {
  z-index: -3;
  container-type: size;
  transform: translateY(var(--hero-travel)) scale(1.04);
  animation: first-light 1.35s ease both;
}
.hero-frame {
  position: absolute;
  container-type: inline-size;
  left: 50%;
  top: 49%;
  width: max(100cqw, calc(100cqh * 1672 / 941));
  aspect-ratio: 1672 / 941;
  transform: translate(-50%, -49%);
}
.hero-frame img { width: 100%; height: 100%; }
.oak-chain { position: absolute; inset: 0; }
/* Both masks follow the links in the original photograph. Scale across each run. */
.oak-chain-piece {
  position: absolute;
  inset: 0;
  isolation: isolate;
  background: url("assets/lukomorye.jpg") center / 100% 100% no-repeat;
  filter: hue-rotate(12deg) saturate(1.14) brightness(1.12);
  transform: rotate(var(--chain-angle)) scaleY(1.19) rotate(calc(-1 * var(--chain-angle)));
}
.oak-chain-upper {
  --chain-angle: -36deg;
  --glint-from: 40%;
  --glint-to: 15%;
  transform-origin: 91% 17%;
  clip-path: polygon(80.62% 26.46%, 82.42% 24.44%, 84.63% 22.95%, 86.42% 20.83%,
    88.94% 19.02%, 91.15% 16.37%, 93.42% 13.18%, 95.33% 11.16%, 96.95% 7.76%,
    98.50% 5.53%, 100% 1.28%, 100% 5.31%, 98.56% 8.29%, 97.19% 10.41%, 95.75% 12.96%,
    93.78% 15.62%, 91.99% 17.85%, 90.13% 19.98%, 88.40% 21.68%, 86.66% 23.49%,
    85.23% 24.55%, 83.37% 26.25%, 81.46% 28.16%, 80.74% 28.27%);
  mask-image: linear-gradient(90deg, transparent 80.63%, #000 82%, #000 99.5%, transparent);
}
.oak-chain-lower {
  --chain-angle: -40deg;
  --glint-from: 55%;
  --glint-to: 42%;
  transform-origin: 54% 47%;
  clip-path: polygon(48.86% 55.69%, 49.76% 53.35%, 50.96% 51.22%, 51.97% 49.10%,
    53.23% 47.08%, 54.55% 45.80%, 56.10% 43.36%, 57.89% 41.87%, 58.19% 43.36%,
    56.64% 45.48%, 55.20% 47.29%, 53.83% 48.25%, 52.45% 50.37%, 51.02% 52.50%,
    50.18% 54.30%, 49.34% 56.64%);
  mask-image: linear-gradient(90deg, transparent 48.86%, #000 50.1%, #000 57.05%, transparent 58.19%);
}
.oak-chain-piece::after {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  filter: brightness(1.43) contrast(1.1);
  mix-blend-mode: screen;
  mask: linear-gradient(120deg, transparent 47%, #000 50%, transparent 53%) var(--glint-from) 50% / 270% 100% no-repeat;
  opacity: .52;
  animation: chain-glint 3.2s ease-in-out infinite;
}
.oak-chain-lower::after { animation-delay: -.8s; }
@keyframes chain-glint {
  0%, 15% { mask-position: var(--glint-from) 50%; }
  65%, 100% { mask-position: var(--glint-to) 50%; }
}
.paused .oak-chain-piece::after, .hero-offscreen .oak-chain-piece::after { animation-play-state: paused; }
.blink-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  mask-image:
    radial-gradient(ellipse 3.25% 4.4% at 66.65% 32.2%, black 76%, transparent 100%),
    radial-gradient(ellipse 3.1% 4.35% at 75.45% 31.9%, black 74%, transparent 100%);
}
.blink-ready .blink-layer { animation: blinking 9s linear infinite; }
@keyframes blinking {
  0%, 24%, 26.5%, 74%, 76.3%, 100% { opacity: 0; }
  25%, 25.65%, 74.85%, 75.45% { opacity: 1; }
}
.notebook-foil {
  position: absolute;
  color: transparent;
  background: linear-gradient(174deg, #f4d896 12%, #d4a65e 43%, #a97c43 56%, #ebc27c 74%, #ae7f43 95%);
  background-clip: text;
  filter: drop-shadow(0 .045em .025em #0a1e13bd) drop-shadow(0 -.025em .02em #f6d0935c);
  transform: translate(-50%, -50%) rotate(-9deg);
}
.notebook-title {
  top: 58.9%;
  left: 70.4%;
  font-size: 1.24cqw;
  font-weight: 800;
  letter-spacing: .08em;
  white-space: nowrap;
}
.notebook-cover {
  position: absolute;
  inset: 0;
  /* Follow the visible leather between the paws in the original hero frame. */
  clip-path: polygon(
    65.19% 59.51%, 75.12% 58.66%, 75.42% 61.42%, 74.58% 62.38%, 73.74% 63.02%,
    73.27% 63.76%, 72.79% 64.72%, 72.55% 65.78%, 72.37% 66.84%, 72.13% 67.69%,
    72.07% 68.76%, 72.25% 70.03%, 72.61% 71.09%, 73.09% 72.26%, 74.16% 73.43%,
    75.06% 75.03%, 74.46% 76.94%, 67.22% 79.28%, 65.91% 75.24%, 66.03% 72.90%,
    67.05% 71.20%, 67.58% 70.03%, 68.06% 69.08%, 68.24% 68.01%, 68.42% 66.84%,
    68.30% 65.46%, 68.06% 64.29%, 67.46% 63.12%, 66.57% 62.17%, 65.37% 61.11%
  );
}
.notebook-dollar {
  top: 67.4%;
  left: 70.3%;
  font: 700 9cqw/.9 var(--serif);
  background-image: linear-gradient(116deg, #9b672d 8%, #ebc47b 26%, #bd8a44 39%, #fff2c6 49%,
    #fbe0a1 53%, #b4803e 64%, #e5b767 79%, #9b672d 94%);
  background-size: 230% 100%;
  animation: foil-shine 5s ease-in-out infinite;
}
@keyframes foil-shine {
  0%, 22% { background-position: 100% 0; }
  65%, 100% { background-position: 0 0; }
}
.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, #06140ee8 0%, #06140ec5 25%, #06140e4f 52%, transparent 72%),
    linear-gradient(180deg, #07130eb3 0%, transparent 22%, transparent 74%, #091911e0 100%);
}
@keyframes first-light { from { opacity: .45; } to { opacity: 1; } }
.masthead { height: 87px; display: flex; justify-content: space-between; align-items: center; gap: 14px; border-bottom: 1px solid #f1d4a633; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #fcf2dc; font-size: 19px; font-weight: 800; letter-spacing: -.04em; white-space: nowrap; }
.brand b { color: #e0bb81; font-weight: inherit; }
.brand img { border: 1px solid #efd09b55; border-radius: 11px; }
.login { display: flex; align-items: center; gap: 15px; padding: 11px 15px; border: 1px solid #f1d4a66b; border-radius: 5px; background: #142219a3; font-size: 13px; font-weight: 800; white-space: nowrap; }
.login:hover { color: var(--gold); border-color: var(--gold); }
.login span { color: var(--gold); }
.hero-inner { display: flex; align-items: center; padding-block: 55px 47px; }
.hero-copy { position: relative; max-width: 720px; }
.overline { display: flex; align-items: center; gap: 11px; font-size: 11px; line-height: 1.55; letter-spacing: .15em; text-transform: uppercase; font-weight: 800; color: #e7c58c; }
.overline > span { width: 7px; height: 7px; flex: 0 0 7px; border: 1px solid currentColor; transform: rotate(45deg); }
.hero-copy .overline { animation: intro .65s .14s both; }
.hero h1, .chapter h2, .finale h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -.052em; line-height: .86; text-wrap: balance; }
.hero h1 { margin-top: 23px; font-size: clamp(66px, 8.55vw, 133px); text-shadow: 0 3px 36px #050e0aaa; animation: intro .85s .23s both; }
.hero h1 em, .chapter h2 em, .finale h2 em { color: var(--gold); font-weight: 600; }
.hero blockquote {
  position: relative;
  margin-top: 31px;
  padding: 3px 0 4px 19px;
  border-left: 1px solid #e7c28582;
  color: #f1e4c9;
  font: italic 600 clamp(23px, 2.2vw, 34px)/1.09 var(--serif);
  text-shadow: 0 2px 13px #06130a;
  animation: intro .9s .49s both;
}
@keyframes intro { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.hero-foot { min-height: 79px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #f1d4a63b; color: #f0d8a8; }
.scroll-cue { display: inline-flex; gap: 11px; align-items: center; font-size: 12px; font-weight: 800; }
.scroll-cue span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #f6d29770; color: var(--gold); font-size: 17px; animation: pulse-down 2.9s infinite ease-in-out; }
.scroll-cue:hover span { background: #ddad6233; border-color: #f6d297; }
@keyframes pulse-down { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.mascot-credit { font: italic 600 24px/1 var(--serif); color: #ffe3af; }
.hero-foot-end { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 32px); }
.motion-toggle {
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: #f0d8a8;
  font-size: 11px;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.motion-toggle:hover { color: #fff4dc; }
.paused .hero-sparks i, .paused .scroll-cue span, .hero-offscreen .hero-sparks i,
.hero-offscreen .blink-layer, .paused .blink-layer,
.hero-offscreen .notebook-dollar, .paused .notebook-dollar { animation-play-state: paused; }
.paused .blink-layer { visibility: hidden; }
.hero-sparks { z-index: -1; }
.hero-sparks i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #ffdaa4; box-shadow: 0 0 12px 4px #e7a74f66; opacity: 0; animation: drift 7s ease-in-out both infinite; }
.hero-sparks i:nth-child(1) { right: 14%; bottom: 36%; animation-delay: -.4s; }
.hero-sparks i:nth-child(2) { right: 21%; bottom: 29%; animation-delay: -5.2s; }
.hero-sparks i:nth-child(3) { right: 34%; bottom: 47%; animation-delay: -3.1s; }
.hero-sparks i:nth-child(4) { right: 8%; bottom: 58%; animation-delay: -5.8s; }
.hero-sparks i:nth-child(5) { right: 42%; bottom: 33%; animation-delay: -1s; }
.hero-sparks i:nth-child(6) { right: 28%; bottom: 68%; animation-delay: -4.6s; }
.hero-sparks i:nth-child(7) { right: 32%; bottom: 63%; animation-delay: -2.2s; }
@keyframes drift {
  0% { transform: translate(0, 12px); opacity: 0; }
  34% { opacity: .8; }
  67% { opacity: .4; }
  100% { transform: translate(28px, -60px); opacity: 0; }
}
.chapter-nav {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  justify-content: safe center;
  overflow-x: auto;
  gap: clamp(13px, 2.55vw, 38px);
  align-items: stretch;
  min-height: 59px;
  background: #14241a;
  border-bottom: 1px solid #d8ae7540;
  color: #d9dfd3;
}
.chapter-nav a { position: relative; display: flex; align-items: center; gap: 7px; white-space: nowrap; padding: 0 1px; font-size: 12px; font-weight: 750; }
.chapter-nav a span { color: #e5ad70; font-size: 10px; }
.chapter-nav a:hover, .chapter-nav a[aria-current] { color: #fff4d7; }
.chapter-nav a[aria-current]::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: #e9b779; }
.chapter {
  position: relative;
  isolation: isolate;
  overflow: clip;
  scroll-margin-top: 58px;
  border-bottom: 1px solid #b9aa7833;
}
.chapter-inner { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: clamp(38px, 7vw, 115px); align-items: center; min-height: 590px; padding-block: clamp(70px, 9vw, 122px); }
:is(.summary, .dashboard, .finance, .ads) .chapter-inner { min-height: 560px; padding-block: clamp(64px, 8vw, 109px); }
.chapter-copy { position: relative; z-index: 1; }
.chapter h2 { margin-block: 20px 23px; font-size: clamp(48px, 6.9vw, 100px); }
.chapter-copy > p:last-child { max-width: 428px; font-size: clamp(14px, 1.34vw, 17px); line-height: 1.7; color: var(--sage); }
.chapter-art { min-width: 0; position: relative; }
.motion .reveal { opacity: 0; transform: translateY(28px); }
.motion .entered .reveal { animation: scene-in .8s cubic-bezier(.2,.76,.3,1) both; }
.motion .entered .chapter-art { animation-delay: .12s; }
@keyframes scene-in { to { transform: translateY(0); opacity: 1; } }
.summary {
  background: radial-gradient(ellipse at 78% 55%, #28513a 0%, #142d20 42%, #0f2016 74%);
}
.summary-backplate { position: absolute; z-index: -1; inset: -37px -24px -22px 45px; border: 1px solid #bc90516b; border-radius: 8px; transform: rotate(-5deg); background: linear-gradient(125deg, #27563d7a, #0e20195c); }
.summary-backplate::before, .summary-backplate::after { position: absolute; content: ""; inset: 13px; border: 1px solid #bd956344; }
.summary-backplate::after { inset: 23px; }
.motion .summary.entered .summary-backplate { animation: sheet-fan 1.05s .27s cubic-bezier(.2,.76,.3,1) both; }
@keyframes sheet-fan { from { transform: translate(-14px, 13px) rotate(0); opacity: .2; } to { transform: rotate(-5deg); opacity: 1; } }
.data-panel { border-radius: 8px; padding: clamp(16px, 3vw, 29px); background: #fcf6e9; color: var(--ink); box-shadow: 0 25px 65px #07181062; border: 1px solid #fff3d5; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 7px 12px; }
.panel-heading p { color: #4f6354; font-size: 11px; font-weight: 700; }
.panel-heading h3 { margin-top: 3px; font-size: clamp(17px, 2vw, 26px); font-weight: 800; letter-spacing: -.052em; line-height: 1.13; }
.demo-tag { background: #e8eddf; color: #3a5945; padding: 4px 7px; border-radius: 4px; font-size: 10px; font-weight: 800; }
.panel-metrics { margin-top: 19px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.panel-metrics div { min-width: 0; background: #e7eddf; border-radius: 5px; padding: 10px; }
.panel-metrics div:nth-child(2) { background: #e2edd7; }
.panel-metrics span, .price-results span { display: block; color: #40594a; font-size: 10px; font-weight: 800; }
.panel-metrics strong, .price-results strong { display: block; margin-top: 5px; white-space: nowrap; color: #173e2a; font-size: clamp(13px, 1.86vw, 25px); letter-spacing: -.057em; font-variant-numeric: tabular-nums; }
.data-table { width: 100%; border-collapse: collapse; margin-top: 17px; font-size: clamp(10px, 1.1vw, 13px); font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table :is(th, td) { text-align: right; padding: 8px 6px; }
.data-table tr > :first-child { text-align: left; }
.data-table thead { color: #4b6050; border-bottom: 1px solid #cbd6c6; }
.data-table tbody tr + tr { border-top: 1px solid #e2ded0; }
.data-table i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #a68149; margin-right: 4px; }
.float-note { position: absolute; right: -17px; bottom: -24px; display: flex; gap: 12px; align-items: center; padding: 11px 15px; border: 1px solid #ebc182; background: #f1dbb0; color: #4b2b16; border-radius: 5px; box-shadow: 0 12px 26px #0d1a0e5e; font-size: 11px; font-weight: 800; }
.float-note strong { font-size: 15px; }
.dashboard { background: radial-gradient(ellipse at 72% 52%, #375849, #19382b 49%, #10271d 82%); }
.dashboard-panel { background: #f5f6ef; border-color: #f6f5e7; }
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.15fr .84fr 1fr;
  grid-template-areas: "sales cost result" "sales tax fees";
  gap: 8px;
  margin-top: 15px;
}
.dashboard-card { padding: 9px; background: #fffef7; border: 1px solid #dadfd2; border-radius: 5px; }
.dashboard-sales { grid-area: sales; }
.dashboard-cost { grid-area: cost; }
.dashboard-tax { grid-area: tax; }
.dashboard-result { grid-area: result; }
.dashboard-fees { grid-area: fees; }
.dashboard-card h4 { margin: 0 0 7px; font-size: clamp(10px, 1.03vw, 14px); line-height: 1.15; }
.dashboard-card dl { display: grid; gap: 6px; }
.dashboard-card dl > div { padding-top: 5px; border-top: 1px solid #e6e9df; }
.dashboard-card dt { color: #476053; font-size: 9px; }
.dashboard-card dd { margin-top: 2px; color: #235941; font-size: clamp(11px, 1.07vw, 14px); font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dashboard-rate { padding: 1px 4px; border-radius: 3px; background: #d8ead1; color: #28583b; }
.light { color: var(--ink); }
.light .overline { color: #74421f; }
.light .chapter-copy > p:last-child { color: #42574a; }
.light h2 em { color: #8a4f27; }
.finance {
  background: radial-gradient(ellipse at 30% 53%, #fff5df, #eee4cf 70%);
}
.finance .chapter-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.finance .chapter-art { grid-column: 1; grid-row: 1; }
.finance .chapter-copy { grid-column: 2; grid-row: 1; }
.folio {
  position: relative;
  padding: clamp(18px, 3.8vw, 40px);
  background: #fff9e9;
  border: 1px solid #b9a881;
  outline: 7px solid #e5d7b37a;
  box-shadow: 0 22px 46px #50391f20;
}
.folio::before { position: absolute; inset: 7px; border: 1px solid #b694563b; content: ""; pointer-events: none; }
.motion .finance.entered .folio::before { animation: trace-page .9s .24s ease-out both; }
@keyframes trace-page { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
.weekly-period { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 10px; font-size: 10px; font-weight: 800; }
.weekly-period span { padding: 4px 7px; border: 1px solid #e0d7c3; border-radius: 4px; background: #faf4e7; color: #496052; }
.weekly-period span:last-child { background: #e9efdf; border-color: #d9e4d0; }
.weekly-scroll { overflow: auto; scrollbar-width: thin; }
.weekly-table { width: 100%; min-width: 330px; border-collapse: collapse; font-size: clamp(9px, 1vw, 12px); font-weight: 750; font-variant-numeric: tabular-nums; }
.weekly-table :is(th, td) { padding: 7px 6px; border-bottom: 1px solid #e7dfce; text-align: right; }
.weekly-table :is(th, td):first-child { text-align: left; }
.weekly-table td { white-space: nowrap; }
.weekly-table thead { background: #ebe9df; color: #405148; }
.weekly-table thead th { white-space: nowrap; }
.weekly-table th small { display: block; margin-top: 2px; color: #55635a; font-size: .85em; font-weight: 700; }
.weekly-table :is(.weekly-revenue,.weekly-profit) { background: #e5eddd; color: #244d37; }
.weekly-table .weekly-profit td { font-weight: 800; }
.weekly-storage { background: #f5e9d3; color: #79401c; }
.weekly-storage button { padding: 0; border: 0; background: transparent; color: inherit; font-weight: 800; }
.weekly-storage button::before, .routes summary span::before { display: inline-block; content: "›"; margin-right: 6px; color: #a15b31; font-size: 15px; line-height: .8; transition: transform .2s; }
.weekly-storage button[aria-expanded="true"]::before, details[open] summary span::before { transform: rotate(90deg); }
.weekly-detail { color: #675543; font-size: .9em; background: #faf2df; }
.routes summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.detail-content { padding: 9px 10px; font-size: 11px; line-height: 1.6; }
details[open] .detail-content { animation: detail-in .28s ease-out both; }
@keyframes detail-in { from { opacity: .1; transform: translateY(-5px); } }
.ads { background: radial-gradient(ellipse at 75% 42%, #293529, #111a18 56%, #101717); }
.ad-panel { padding: clamp(16px, 3.5vw, 30px); border: 1px solid #75856a73; border-radius: 9px; background: #19291f; box-shadow: 0 21px 60px #0003; }
.ad-panel .panel-heading p, .ad-foot span { color: #b5c9b8; }
.ad-panel .demo-tag { background: #303f30; color: #e5e9d7; }
.ad-total { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ad-total > strong { font-family: var(--serif); color: #ffe0a5; font-size: clamp(34px, 5.4vw, 62px); line-height: .95; font-variant-numeric: tabular-nums; letter-spacing: -.06em; }
.ad-switch { display: flex; gap: 3px; background: #0e1d14; border: 1px solid #607660; border-radius: 5px; padding: 3px; }
.ad-switch button { padding: 6px 8px; border: 0; border-radius: 3px; color: #d8e5d7; background: transparent; font-size: 10px; font-weight: 800; }
.ad-switch button[aria-pressed="true"] { background: #e3c28a; color: #2f2114; }
.chart { position: relative; margin-top: 15px; padding: 0 9px; }
.chart::before { position: absolute; content: ""; inset: 0 0 23px; background: repeating-linear-gradient(to top, #b1c0a43b 0 1px, transparent 1px 25%); }
.chart-bars { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; min-height: 150px; }
.chart-bars div { display: grid; grid-template-rows: 1fr 23px; justify-items: center; align-items: end; }
.chart-bars i { display: block; width: min(58%, 36px); height: var(--h); background: linear-gradient(#c6df9d, #538b61); border-radius: 3px 3px 0 0; transform-origin: bottom; transition: height .5s cubic-bezier(.2,.8,.3,1), background .3s; }
.chart[data-variant="orders"] i { background: linear-gradient(#f6ca86, #aa6539); }
.motion .ads:not(.entered) .chart-bars i { transform: scaleY(0); }
.motion .ads.entered .chart-bars i { animation: grow .65s calc(.18s + var(--i) * 55ms) both; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.chart-bars span { align-self: end; color: #c3d2bf; font-size: 9px; white-space: nowrap; }
.ad-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 13px; padding-top: 10px; border-top: 1px solid #54745b63; font-size: 12px; }
.ad-foot strong { color: #f1c686; }
.figure-updated { animation: figure-in .5s ease-out both; }
@keyframes figure-in { from { opacity: .62; } to { opacity: 1; } }
.supply { background: #14261a; }
.supply-image {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, #12251bf8 0%, #12251bb8 38%, #0d1c126b 65%, #0d1c123d),
    url("assets/fulfillment.jpg") 55% 55% / cover no-repeat;
}
.route-card { padding: clamp(16px, 3.6vw, 31px); border: 1px solid #edd3a67a; border-radius: 8px; background: #121f17f5; box-shadow: 0 30px 55px #0c160e86; }
.route-card .panel-heading p { color: #c4d5c2; }
.route-card .demo-tag { background: #384934; color: #e3ead9; }
.routes { margin-top: 16px; }
.routes details { border-top: 1px solid #90ac8848; }
.routes summary, .route-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 7px; font-size: 14px; font-weight: 800; }
.routes summary span::before { color: #ffc181; }
.routes .detail-content { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding-left: 20px; color: #c8d5c6; }
.route-foot { border-top: 1px solid #9a8a6180; color: var(--gold); }
.price { background: linear-gradient(112deg, #f2e4c9, #fff3d8 72%); }
.price .chapter-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.price .chapter-art { grid-column: 1; grid-row: 1; }
.price .chapter-copy { grid-column: 2; grid-row: 1; }
.price-panel { padding: clamp(17px, 3.7vw, 36px); border: 1px solid #d4b783; border-radius: 8px; background: #fffaeb; box-shadow: 0 22px 42px #74562420; }
.price-value { display: flex; align-items: center; gap: 7px 12px; justify-content: space-between; margin-top: 21px; font-size: 12px; font-weight: 800; }
.price-value output { font-family: var(--serif); line-height: 1; font-size: clamp(32px, 4.5vw, 59px); color: #8a4f27; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.price-panel input { display: block; width: 100%; margin: 15px 0 5px; height: 27px; accent-color: #8d4b21; cursor: ew-resize; }
.price-limits { display: flex; justify-content: space-between; gap: 6px; font-size: 10px; font-weight: 800; color: #4a5d50; }
.price-results { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 20px; }
.price-results > div { border: 1px solid #cedcc9; border-radius: 5px; background: #e9efdf; padding: 10px 11px; }
.price-results strong { font-size: clamp(16px, 2.5vw, 32px); }
.rules { background: radial-gradient(ellipse at 72% 45%, #214439, transparent 62%), #101f18; }
.rules .chapter-inner { gap: clamp(31px, 5.2vw, 83px); }
.rule-demo { min-width: 0; padding: clamp(16px, 3.5vw, 32px); border: 1px solid #587b64; border-radius: 12px; background: #152b23; color: #f3ebd9; box-shadow: 0 22px 60px #060f0bc2; }
.rule-demo-head { display: flex; align-items: center; gap: 12px; }
.rule-demo-head p { margin: 0 0 3px; color: #a7c6b4; font-size: 11px; font-weight: 700; }
.rule-demo-head h3 { margin: 0; font-size: clamp(16px, 2vw, 25px); line-height: 1.15; }
.rule-demo-head .demo-tag { margin-left: auto; }
.rule-ai-badge { position: relative; flex: none; display: grid; place-items: center; width: 39px; height: 39px; border-radius: 50%; background: radial-gradient(circle at 38% 30%, #275bd2, #111b65 70%); color: #fff; font: 800 14px/1 var(--sans); box-shadow: 0 0 14px #32d8ff5c; }
.rule-ai-badge::before { content: ""; position: absolute; inset: 1px; border-radius: 50%; background: conic-gradient(from 25deg, #70f5ff, #3973ff 35%, #c8ffff 50%, #2867e9 73%, #70f5ff); mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px)); animation: rule-orbit 6s linear infinite paused; }
@keyframes rule-orbit { to { transform: rotate(1turn); } }
.rule-demo-modes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.rule-demo-modes button { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 6px 10px; border: 1px solid #617d6b; border-radius: 6px; background: transparent; color: #dde9dd; font-size: 12px; font-weight: 800; }
.rule-demo-modes button:hover, .rule-demo-modes button[aria-pressed="true"] { background: #dbebd7; color: #19392d; border-color: #c1ddbb; }
.voice-mic { flex: none; width: 19px; height: 19px; fill: #f59a53; }
.rule-demo-modes button .voice-mic { width: 15px; height: 15px; }
.rule-demo-input { display: flex; align-items: center; min-height: 64px; color: #cfe1d2; font-size: 12px; line-height: 1.52; }
.rule-demo-input p { margin: 0; }
.rule-demo[data-mode="graph"] .rule-mode-voice, .rule-demo[data-mode="voice"] .rule-mode-graph { display: none; }
.rule-mode-voice { display: flex; align-items: center; gap: 9px; }
.rule-voice-wave { flex: none; display: flex; align-items: center; gap: 2px; height: 19px; }
.rule-voice-wave i { width: 2px; height: 75%; border-radius: 3px; background: #ffad70; transform: scaleY(.5); animation: voice-wave .9s ease-in-out infinite alternate paused; }
.rule-voice-wave i:nth-child(2n) { animation-delay: -.37s; }
.rule-voice-wave i:nth-child(3n) { animation-delay: -.66s; }
@keyframes voice-wave { to { transform: scaleY(1.2); } }
.rule-demo-graph { --node-gap: 12px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 var(--node-gap); padding: 12px; border: 1px solid #416854; border-radius: 8px; background: radial-gradient(circle, #87b39a3b 1px, transparent 1.4px) 0 0 / 13px 13px, #101f1a; }
.rule-node, .rule-result { position: relative; display: grid; gap: 4px; padding: 9px 11px; border: 1px solid #79a78e; border-radius: 7px; background: #244238; animation: rule-signal 2.5s ease-in-out infinite paused; }
.rule-node { transition: translate .48s cubic-bezier(.3,.65,.28,1); }
.rule-node-second { animation-delay: .22s; }
.rule-node-check { background: #23392f; border-color: #618777; transition-delay: .14s; }
.rule-nodes-swapped .rule-node-first { translate: calc(100% + var(--node-gap)) 0; }
.rule-nodes-swapped .rule-node-second { translate: calc(-100% - var(--node-gap)) 0; }
.rule-node span, .rule-result span { color: #bbd4c2; font-size: 11px; }
.rule-node strong, .rule-result strong { font-size: clamp(12px, 1.4vw, 16px); line-height: 1.3; }
.rule-join { grid-column: 1/-1; position: relative; display: grid; place-items: center; height: 49px; isolation: isolate; }
.rule-join::before { position: absolute; content: ""; inset: 0 24% auto; height: 25px; border: 1px solid #7ea890; border-top: 0; border-radius: 0 0 7px 7px; z-index: -1; }
.rule-join::after { position: absolute; content: ""; inset: 25px 24% 0; border: 1px solid #7ea890; border-bottom: 0; border-radius: 7px 7px 0 0; z-index: -1; }
.rule-join span { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: #b6d6b9; color: #1a402d; font-size: 11px; font-weight: 850; }
.rule-result { grid-column: 1/-1; justify-self: center; width: min(100%, 300px); margin-top: 21px; text-align: center; border-color: #c5a064; background: #353b29; animation-delay: .55s; }
.rule-result::before { position: absolute; content: ""; height: 21px; bottom: 100%; left: 50%; border-left: 1px solid #7ea890; }
.rules-playing .rule-ai-badge::before, .rules-playing :is(.rule-voice-wave i,.rule-node,.rule-result) { animation-play-state: running; }
@keyframes rule-signal { 0%, 35%, 100% { box-shadow: none; } 13% { box-shadow: 0 0 14px #99dcad57; } }
.team { background: #131f15; }
.team .chapter-inner { position: relative; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: end; gap: 32px; min-height: 690px; padding-bottom: 58px; }
.team .chapter-copy { align-self: center; }
.team-image {
  z-index: -1;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #0c1b12f7, #0c1b12d4 24%, #0c1b1245 58%, transparent 83%),
    linear-gradient(0deg, #0b1a12 0%, transparent 46%),
    url("assets/revisor-desk.jpg") right 46% / cover no-repeat;
}
.task-card { max-width: 450px; margin-left: auto; padding: clamp(16px, 2.8vw, 25px); background: #f9f0dccf; color: var(--ink); border: 1px solid #f8dcb2; border-radius: 8px; box-shadow: 0 22px 47px #0c180a68; backdrop-filter: blur(16px); }
.task-card h3 { font-size: clamp(17px, 1.6vw, 24px); }
.task-card > p { margin-top: 12px; font-size: 12px; line-height: 1.55; }
.task-meta { display: grid; grid-template-columns: 1.15fr 1fr; gap: 8px; margin-top: 12px; }
.task-meta div { padding: 8px; border-radius: 4px; background: #fff9e9a8; }
.task-meta dt { color: #53614c; font-size: 10px; font-weight: 750; }
.task-meta dd { font-size: 11px; font-weight: 800; margin-top: 2px; }
.task-footer { display: flex; align-items: center; gap: 7px 9px; justify-content: space-between; flex-wrap: wrap; margin-top: 11px; font-size: 11px; font-weight: 800; }
.task-footer label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.task-footer input { accent-color: #2e6242; }
.task-footer span { padding: 4px 7px; border-radius: 3px; background: #f6d9b6; color: #773a15; }
.task-footer span.done { background: #daeccb; color: #28533a; }
.support { background: radial-gradient(ellipse at 75% 50%, #243827, #11241a 58%, #0e1d15); }
.support .chapter-inner { min-height: auto; padding-block: clamp(64px, 8vw, 104px); }
.support .chapter-copy { max-width: 420px; }
.support-voice { display: flex; align-items: flex-start; gap: 9px; margin: 8px 0 14px; }
.support-voice .voice-mic { width: 24px; height: 24px; }
.support-voice strong, .support-voice span { display: block; }
.support-voice strong { color: #f4cf9a; font-size: 14px; }
.support-voice span { margin-top: 4px; color: var(--sage); font-size: 13px; line-height: 1.45; }
.support-art {
  container-type: inline-size;
  margin: 0;
  width: min(100%, 500px);
  justify-self: end;
  isolation: isolate;
  border: 1px solid #d3b27a68;
  border-radius: 9px;
  box-shadow: 0 23px 60px #060e095e;
}
.support-art img { width: 100%; height: auto; border-radius: inherit; }
.support-screen {
  --lid-scale: .3242;
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.support-code-window {
  position: absolute;
  inset: 0 auto auto 0;
  width: 244px;
  height: 320px;
  overflow: hidden;
  transform-origin: top left;
  /* Projects the code plane onto the four inner corners of the photographed lid. */
  transform: scale(var(--lid-scale)) matrix3d(
    .547025649, -.455256073, 0, -.000732791,
    .367609181, .938449849, 0, .000074018,
    0, 0, 1, 0,
    342, 534, 0, 1
  );
  background: linear-gradient(120deg, #b6e5cf26, #67af9810 37%, #c2eed524 66%, #508c7513);
  border-radius: 8px;
  mask-image: linear-gradient(transparent, #000 10%, #000 89%, transparent);
}
.support-code-track pre {
  margin: 0;
  padding: 0 10px .6em;
  color: #d1eae0;
  font: 500 16px/1.42 ui-monospace, SFMono-Regular, Consolas, monospace;
  text-shadow: 0 0 .42em #62bfa980;
}
.support-code-track :is(b, i, em) { font-style: normal; font-weight: inherit; }
.support-code-track b { color: #e2a9e9; }
.support-code-track i { color: #ffd28a; }
.support-code-track em { color: #91d8f1; }
.support-code-track span { color: #95d6a6; }
.support-code-track { opacity: .86; filter: blur(.85px); animation: screen-scroll 13s linear infinite paused; }
.support-playing .support-code-track { animation-play-state: running; }
@keyframes screen-scroll {
  from { transform: translateY(-50%); }
  to { transform: translateY(0); }
}
.finale {
  position: relative;
  isolation: isolate;
  overflow: clip;
  text-align: center;
  background: radial-gradient(ellipse at 50% 62%, #315139, #12291b 45%, #0e1d14 71%);
  scroll-margin-top: 58px;
}
.finale::before, .finale::after { position: absolute; content: ""; pointer-events: none; z-index: -1; top: 50%; left: 50%; width: min(80vw, 860px); aspect-ratio: 1.25; border: 1px solid #daaf6d51; border-radius: 50%; transform: translate(-50%, -50%) rotate(-15deg); outline: 1px solid #daaf6d34; outline-offset: 22px; }
.finale::after { width: min(65vw, 655px); transform: translate(-50%, -50%) rotate(22deg); border-color: #daaf6d31; }
.finale-calcs { position: absolute; z-index: -1; inset: 0; width: min(79%, 1080px); margin-inline: auto; display: flex; justify-content: space-between; overflow: hidden; pointer-events: none; mask: linear-gradient(transparent, #000 15%, #000 85%, transparent); }
.calc-column { flex: 0 0 min(43%, 330px); min-width: 0; color: #e6d6b7; background: #0b1b1455; opacity: .46; }
.calc-column:first-child { mask: linear-gradient(90deg, #000 20%, #000b 64%, transparent); }
.calc-column:last-child { mask: linear-gradient(270deg, #000 20%, #000b 64%, transparent); text-align: right; }
.calc-track { animation: screen-scroll 24s linear infinite paused; }
.calc-column:last-child .calc-track { animation-direction: reverse; animation-duration: 28s; }
.finale-playing .calc-track { animation-play-state: running; }
.calc-set { display: grid; gap: 18px; min-height: max(480px, 54vh); padding: 9px clamp(6px, 1.5vw, 24px); align-content: space-around; }
.calc-set div { display: grid; gap: 4px; }
.calc-set span { font: 650 10px/1.2 var(--sans); color: #c0d8c5; }
.calc-set code { font: 500 clamp(11px, 1.35vw, 19px)/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; color: #ffe3b3; font-variant-numeric: tabular-nums; }
.finale-inner { padding-block: clamp(78px, 11vw, 149px); }
.finale-mark { margin: 0 auto 15px; border: 1px solid #e8c18168; border-radius: 18px; }
.finale h2 { font-size: clamp(70px, 10vw, 140px); }
.finale p { margin: 20px auto 0; max-width: 410px; color: var(--sage); font-size: 15px; line-height: 1.65; }
.gold-button, .ghost-button { display: inline-flex; gap: 15px; align-items: center; justify-content: center; min-height: 49px; border-radius: 5px; padding: 8px 17px; font-size: 13px; font-weight: 800; transition: transform .2s, background .2s; }
.gold-button { border: 1px solid #efb275; color: #2d1c10; background: linear-gradient(120deg, #f6ca8d, #e9a56b); }
.gold-button:hover { transform: translateY(-2px); background: #ffcf97; }
.ghost-button { border: 1px solid #a47f4f; background: transparent; color: #50311b; }
.ghost-button:hover { background: #ecddc3; }
.finale .gold-button { margin-top: 24px; }
.footer { min-height: 83px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--edge); color: #dbcbab; font-size: 12px; font-weight: 700; }
.footer .brand { font-size: 16px; }
.footer .brand img { border-radius: 8px; }
.footer > a:last-child:hover { color: #fff2d6; }
dialog { width: min(450px, calc(100vw - 30px)); padding: 0; border-radius: 9px; color: var(--ink); background: #f7edd8; border: 1px solid #b28d52; box-shadow: 0 22px 80px #0006; }
dialog::backdrop { background: #07130ecf; }
.dialog-content { position: relative; padding: 28px; }
.dialog-content h2 { font: 700 40px/.93 var(--serif); max-width: 87%; letter-spacing: -.04em; }
.dialog-content p { margin: 13px 0 16px; color: #435848; font-size: 13px; line-height: 1.55; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dialog-login { display: inline-block; margin-top: 16px; font-size: 12px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.close { position: absolute; top: 11px; right: 11px; width: 32px; height: 32px; border: 1px solid #9b865f; border-radius: 5px; color: #482817; background: #f7ead1; font-size: 22px; }
@media (max-width: 1040px) {
  .wrap { width: calc(100% - 70px); }
  .chapter-inner { gap: 45px; min-height: 510px; }
  :is(.summary, .dashboard, .finance, .ads) .chapter-inner { min-height: 490px; }
  .hero h1 { font-size: clamp(64px, 9.3vw, 104px); }
  .chapter h2 { font-size: clamp(48px, 7.8vw, 80px); }
}
@media (max-width: 730px) {
  .wrap { width: calc(100% - 38px); }
  .hero { min-height: 100svh; }
  .masthead { height: 64px; }
  .brand { font-size: 16px; gap: 7px; }
  .masthead .brand img { width: 36px; height: 36px; border-radius: 8px; }
  .login { gap: 7px; padding: 8px; font-size: 11px; }
  .hero-frame { width: calc(75cqh * 1672 / 941); left: 83%; top: 0; transform: translateX(-83%); }
  .hero-shade {
    background:
      linear-gradient(180deg, #08150d95 0%, transparent 18%, #0b211736 36%, #0b2117fa 66%, #0b2117 100%),
      linear-gradient(90deg, #08150d5b, transparent 77%);
  }
  .hero-inner { align-items: end; padding-block: clamp(216px, 46svh, 410px) 26px; }
  .hero h1 { font-size: clamp(51px, 11.3vw, 80px); margin-top: 13px; text-wrap: initial; line-height: .89; }
  .hero blockquote { font-size: clamp(23px, 5.7vw, 30px); margin-top: 18px; }
  .hero-foot { min-height: 58px; }
  .overline { font-size: 9px; }
  .mascot-credit { display: none; }
  .chapter-nav { min-height: 49px; overflow-x: auto; justify-content: start; scrollbar-width: thin; gap: 16px; padding-inline: 18px; }
  .chapter-nav a { font-size: 10px; }
  .chapter-nav a span { font-size: 9px; }
  .chapter, .finale { scroll-margin-top: 49px; }
  .chapter .chapter-inner { grid-template-columns: minmax(0, 1fr); min-height: auto; gap: 24px; padding-block: 58px 67px; align-items: center; }
  :is(.summary, .dashboard, .finance, .ads) .chapter-inner { gap: 21px; padding-block: 52px 59px; }
  .chapter .chapter-art, .chapter .chapter-copy { grid-column: auto; grid-row: auto; }
  .chapter h2 { font-size: clamp(52px, 12vw, 76px); margin-block: 11px 15px; text-wrap: initial; }
  .chapter-copy > p:last-child { line-height: 1.6; }
  .summary-backplate { inset: -13px -9px -8px 19px; }
  .float-note { right: -5px; bottom: -23px; font-size: 10px; padding: 8px; gap: 7px; }
  .float-note strong { font-size: 12px; }
  .dashboard-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "sales sales" "cost result" "tax fees"; }
  .dashboard-sales dl { grid-template-columns: 1fr 1fr; }
  .weekly-table :is(th,td) { padding-inline: 4px; }
  .ad-total > strong { font-size: 44px; }
  .team .chapter-inner { padding-top: 245px; }
  .team-image {
    background:
      linear-gradient(180deg, #101d147a, transparent 16%, #101d144f 29%, #101d14 57%),
      url("assets/revisor-desk.jpg") right top / auto 63% no-repeat;
  }
  .task-card { max-width: none; margin-left: 0; }
  .support-art { justify-self: start; }
  .finale-calcs { width: 86%; }
  .calc-column { flex-basis: 46%; opacity: .29; }
  .finale h2 { font-size: clamp(68px, 15vw, 102px); }
}
@media (max-width: 370px) {
  .wrap { width: calc(100% - 28px); }
  .hero h1 { font-size: clamp(43px, 12.5vw, 51px); }
  .chapter h2 { font-size: 49px; }
  .panel-metrics { gap: 5px; }
  .panel-metrics div { padding-inline: 5px; }
  .data-table :is(th, td) { padding-inline: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .motion .reveal { opacity: 1; transform: none; }
  .hero-image { transform: none; }
  .hero-sparks, .motion-toggle { display: none; }
}
