@font-face {
  font-family: "Bitter";
  src: url("assets/bitter.woff") format("woff");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --night: #171410;
  --night-text: #f9f2e7;
  --night-muted: #e0cfc0;
  --paper: #f7f4ee;
  --ink: #271f1a;
  --muted: #60544a;
  --line: #ded3c4;
  --copper: #e9b38c;
  --copper-dark: #835238;
  --header-height: 65px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 10px); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font); line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button:not(:disabled) { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #a2542e; outline-offset: 4px; }
.site-header :focus-visible, .hero :focus-visible, .footer :focus-visible { outline-color: var(--copper); }
.shell { width: min(100% - 112px, 1280px); margin-inline: auto; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 20; transform: translateY(-160%); padding: 8px 14px; background: var(--paper); color: var(--ink); }
.skip:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 8; color: var(--night-text); background: #171410; border-bottom: 1px solid #fff1; }
.header-inner { height: calc(var(--header-height) - 1px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 27px; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; width: fit-content; font-size: 1.35rem; font-weight: 690; letter-spacing: -.06em; line-height: 1; }
.wordmark span span { color: var(--copper); }
.wordmark img { flex: 0 0 auto; }
.navigation, .footer nav { display: flex; align-items: center; gap: 31px; color: var(--night-muted); font-size: .88rem; }
.navigation a, .footer nav a, .scroll-link { transition: color .18s ease-out; }
.header-inner > .button { justify-self: end; }
.page-progress { position: absolute; inset: auto 0 -1px; height: 2px; background: var(--copper); transform: scaleX(var(--page-progress, 0)); transform-origin: left center; pointer-events: none; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 49px; padding: 0 18px; border: 1px solid transparent; border-radius: 6px; font-size: .9rem; font-weight: 670; line-height: 1.18; text-align: center; transition: background-color .18s ease-out, border-color .18s ease-out, transform .2s var(--ease); }
.button-small { min-height: 36px; padding-inline: 14px; }
.button:not(:disabled):active { transform: scale(.98); }
.button-copper { background: var(--copper); color: #28170e; }
.button-outline { border-color: #fff4; color: var(--night-text); background: #15100b33; }

.hero { position: relative; z-index: 0; display: flex; flex-direction: column; isolation: isolate; overflow: hidden; min-height: min(765px, max(635px, calc(100svh - var(--header-height)))); color: var(--night-text); background: #17120f; }
.hero-image, .hero-lines { position: absolute; z-index: -1; pointer-events: none; }
.hero-image { inset: -45px -2% -54px 0; background: radial-gradient(ellipse at 68% 48%, #9f613639, transparent 62%), linear-gradient(90deg, #17120f 13%, #17120f25 60%, #17120f00 80%), url("assets/case-pages.webp") center right / cover no-repeat, #17120f; transform: translateY(var(--hero-image-y, 0px)) scale(1.035); }
.hero-lines { inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 1px), #ecd2ac10 calc(12.5% - 1px) 12.5%); mask-image: linear-gradient(90deg, transparent 6%, #000 50%, #000); }
.hero-content { flex: 1; display: grid; grid-template-columns: minmax(0, .97fr) minmax(0, 1.03fr); align-items: center; gap: clamp(30px, 4vw, 65px); padding-block: 94px 81px; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--copper-dark); font-size: .76rem; font-weight: 730; letter-spacing: .12em; line-height: 1.35; text-transform: uppercase; }
.eyebrow > span { width: 23px; height: 1px; flex: 0 0 auto; background: currentColor; }
.hero .eyebrow, .privacy .eyebrow { color: #edb58e; }
.hero-copy .eyebrow { animation: emerge .6s var(--ease) both; }
.hero h1 { margin-top: 21px; font-size: clamp(3rem, 5.65vw, 5.85rem); font-weight: 650; letter-spacing: -.075em; line-height: .995; }
.hero h1 > span { display: block; animation: emerge .7s .08s var(--ease) both; }
.hero h1 > span + span { margin-top: .06em; color: var(--copper); animation-delay: .17s; }
.hero-description { max-width: 440px; margin-top: 23px; color: var(--night-muted); font-size: clamp(1.05rem, 1.4vw, 1.21rem); line-height: 1.57; animation: emerge .7s .22s var(--ease) both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 27px; animation: emerge .7s .28s var(--ease) both; }
.hero-figure { position: relative; z-index: 0; min-width: 0; margin-right: 14px; transform: translateY(var(--hero-figure-y, 0px)); }
.hero-figure::before, .hero-figure::after { content: ""; position: absolute; z-index: -1; pointer-events: none; border: 1px solid #f1c39b54; border-radius: 15px; }
.hero-figure::before { inset: 14px -17px 39px 24px; background: #b6754a25; transform: rotate(4deg); }
.hero-figure::after { inset: 24px -35px 52px 63px; transform: rotate(8deg); }
.hero-figure figcaption { margin-top: 19px; color: #e8cdb7; font-size: .79rem; text-align: right; animation: emerge .65s .32s var(--ease) both; }
.hero-window { position: relative; overflow: hidden; border: 1px solid #9b765b; border-radius: 14px; color: #30251d; background: #f8f2e9; box-shadow: 0 27px 60px #0806049c, 0 0 0 4px #f4cba113; transform: rotate(-1.9deg); animation: window-in .82s .16s var(--ease) both; }
.app-toolbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 39px; padding-inline: 13px; border-bottom: 1px solid #e6d9c9; color: #716052; background: #ece1d4; font-size: .72rem; font-weight: 680; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #b76d57; }
.window-dots i:nth-child(2) { background: #bd9460; }
.window-dots i:nth-child(3) { background: #87946d; }
.app-layout { display: grid; grid-template-columns: 58px minmax(0, 1fr); min-height: 300px; }
.app-sidebar { display: grid; justify-items: center; align-content: start; gap: 13px; padding: 12px 5px; border-right: 1px solid #e4d7c7; background: #f0e7dc; }
.sidebar-tools { display: grid; gap: 5px; }
.sidebar-tools > span { display: grid; place-items: center; width: 33px; height: 33px; }
.sidebar-tools > .sidebar-active { border: 1px solid #ddc5af; border-radius: 6px; background: #ebd8c6; }
.app-main { min-width: 0; padding: 18px 17px 19px; }
.app-title { display: flex; justify-content: space-between; align-items: center; gap: 7px; margin-bottom: 11px; }
.app-title p { margin-bottom: 2px; color: #805337; font-size: .7rem; font-weight: 680; }
.app-title h2 { font-size: clamp(1rem, 1.69vw, 1.46rem); line-height: 1.1; font-weight: 690; letter-spacing: -.045em; }
.local-status { padding: 3px 6px; border: 1px solid #c8d0b8; border-radius: 4px; background: #e7ecdc; color: #3e4d30; font-size: .7rem; font-weight: 650; white-space: nowrap; }
.app-audio { display: flex; align-items: center; gap: 9px; min-height: 49px; padding: 6px 8px; border: 1px solid #dfcfbe; border-radius: 7px; background: #f3eadf; }
.play { display: grid; flex: 0 0 33px; place-items: center; width: 33px; height: 33px; padding: 0; border: 0; border-radius: 50%; background: #945c3c; color: #fff5e9; transition: background-color .18s ease-out; }
.hero .play:focus-visible { outline-color: #a2542e; }
.play > span { border: solid transparent; border-width: 5px 0 5px 7px; border-left-color: currentColor; margin-left: 2px; }
.play[aria-pressed="true"] span { width: 8px; height: 10px; border: 0; border-inline: 2px solid currentColor; margin: 0; }
.wave { position: relative; display: flex; flex: 1 1 0; align-items: center; gap: clamp(1px, .34vw, 5px); min-width: 0; height: 32px; }
.wave > i { flex: 1 1 0; max-width: 3px; min-width: 1px; height: calc(var(--h) * 1px); border-radius: 3px; background: #a76843; opacity: .73; }
.wave-position { position: absolute; z-index: 1; inset: 0 auto 0 0; width: 2px; border-radius: 2px; color: #6a402b; background: currentColor; transform: translateX(var(--wave-x, 0px)); pointer-events: none; }
.app-clock, .transcript-row time, .speech-row time { color: #805337; font: 600 .68rem ui-monospace, SFMono-Regular, Consolas, monospace; font-variant-numeric: tabular-nums; white-space: nowrap; }
.app-transcript { display: grid; gap: 4px; margin-top: 7px; }
.transcript-row { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 7px; align-items: start; min-height: 40px; padding: 5px 6px; border: 1px solid transparent; border-bottom-color: #e9ded1; border-radius: 5px; transition: background-color .2s ease-out, border-color .2s ease-out; }
.transcript-row.is-current { border-color: #ddbea5; background: #edddce; }
.transcript-row strong { display: block; font-size: .72rem; line-height: 1.25; }
.transcript-row p { margin-top: 2px; color: #5a4a3e; font-size: .71rem; line-height: 1.3; }
.hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 17px; min-height: 67px; padding-block: 12px; border-top: 1px solid #ead3b62b; color: #e0c9b6; font-size: .84rem; }
.scroll-link { display: inline-flex; align-items: center; gap: 10px; }
.scroll-link > span { position: relative; width: 2px; height: 19px; flex: 0 0 auto; border-radius: 3px; background: #f3d9b746; overflow: hidden; }
.scroll-link > span::after { content: ""; position: absolute; inset: 0; background: #f3d9b7; transform: translateY(-100%); animation: scroll-cue 1s .75s var(--ease) 2; }

.story { position: relative; padding-top: 96px; padding-bottom: 90px; background: var(--paper); }
.story-intro { padding-bottom: 35px; border-bottom: 1px solid var(--line); }
.story-intro h2, .privacy h2, .download h2 { font-size: clamp(2.5rem, 6.08vw, 6rem); font-weight: 640; letter-spacing: -.075em; line-height: 1; }
.story-intro h2 { margin-top: 17px; }
.story-intro h2 em { color: var(--copper-dark); font-style: normal; }
.story-track { --scene-step: clamp(320px, 54svh, 510px); --pin-height: min(736px, calc(100svh - var(--header-height))); }
.story-pin { display: grid; grid-template-columns: minmax(190px, .55fr) minmax(0, 1.45fr); align-items: start; gap: clamp(23px, 8vw, 107px); padding-block: 38px 0; }
.story-nav { position: relative; display: grid; gap: 4px; padding-left: 13px; }
.story-rail { position: absolute; inset: 6px auto 6px 0; width: 2px; background: #d7c9b9; border-radius: 2px; overflow: hidden; }
.story-rail span { display: block; width: 100%; height: 100%; background: #a96542; transform: scaleY(var(--story-progress, 0)); transform-origin: top; }
.story-link { display: grid; grid-template-columns: 33px minmax(0, 1fr); align-items: center; gap: 9px; min-height: 65px; padding: 8px 10px; border: 1px solid transparent; border-radius: 6px; transition: background-color .18s ease-out, border-color .18s ease-out; }
.story-link img { filter: grayscale(.85); opacity: .76; }
.story-link strong, .story-link small { display: block; overflow-wrap: anywhere; }
.story-link strong { font-size: 1.14rem; font-weight: 680; line-height: 1.25; letter-spacing: -.026em; }
.story-link small { color: var(--muted); font-size: .88rem; line-height: 1.32; margin-top: 4px; }
.story-link[aria-current="true"] { border-color: #d9c5b2; background: #eee2d5; }
.story-link[aria-current="true"] img { filter: none; opacity: 1; }

.scene-deck { min-width: 0; }
.scene { --first: 1; --second: 1; --third: 1; --art-y: 0px; min-width: 0; }
.scene + .scene { margin-top: 58px; }
.scene-copy { padding: 0 0 20px; }
.scene-name { color: var(--copper-dark); font-size: .83rem; font-weight: 700; }
.scene h3 { margin-top: 4px; font-size: clamp(1.64rem, 3.35vw, 3.28rem); font-weight: 650; letter-spacing: -.067em; line-height: 1.04; }
.scene-copy > p:last-child { max-width: 520px; margin-top: 11px; color: var(--muted); font-size: 1.04rem; line-height: 1.5; }
.scene-art { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 560px); place-content: center; min-height: clamp(250px, 35svh, 350px); padding: 26px; border: 1px solid #ded0c0; border-radius: 12px; }
.art-replika { background: radial-gradient(ellipse at 70% 8%, #fff8f1, transparent 68%), #e9d8c7; }
.scene-window { width: min(100%, 560px); padding: 13px 15px 14px; border: 1px solid #ddcebd; border-radius: 9px; color: #33271f; background: #fffdf9; box-shadow: 0 13px 26px #49352524; transform: translateY(var(--art-y)); }
.scene-window-title { display: flex; align-items: center; gap: 7px; min-height: 29px; padding-bottom: 8px; border-bottom: 1px solid #e8ddd0; font-size: .9rem; }
.scene-window-title > span { margin-left: auto; color: #695747; font-size: .75rem; text-align: right; white-space: nowrap; }
.scene-window-title > img { flex: 0 0 auto; filter: grayscale(.7); }
.scene-audio { display: flex; align-items: center; gap: 12px; margin-block: 9px 5px; color: #765039; font-size: .72rem; font-weight: 660; }
.scene-audio .wave { height: 29px; }
.scene-audio .wave > i { height: calc(var(--h) * .75px); }
.speech-row { display: grid; grid-template-columns: 97px minmax(0, 1fr); gap: 7px; padding: 7px 6px; border-left: 2px solid #e2c8b0; background: #f3e7d8; font-size: .81rem; line-height: 1.37; }
.speech-row + .speech-row { margin-top: 5px; }
.speech-row strong { font-size: .75rem; }
.speech-first { opacity: calc(.44 + var(--second) * .56); transform: translateY(calc((1 - var(--second)) * 7px)); }
.speech-second { opacity: calc(.44 + var(--third) * .56); transform: translateY(calc((1 - var(--third)) * 7px)); }

.art-scan { grid-template-columns: minmax(135px, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(12px, 3.5vw, 44px); padding-inline: clamp(15px, 5.3vw, 85px); background: radial-gradient(#a3887129 1px, transparent 1px) 0 0 / 13px 13px, linear-gradient(130deg, #e1ccba, #f8efe2); }
.scan-visual { position: relative; width: min(100%, 212px); height: clamp(154px, 24svh, 212px); justify-self: center; }
.scan-sheet { position: absolute; inset: 5px 19px 2px; display: block; border: 1px solid #bba58c; border-radius: 6px; box-shadow: 0 12px 21px #54341929; }
.scan-sheet-back { background: #c9ad93; transform: translateX(calc(-5px - (1 - var(--first)) * 28px)) rotate(calc(-7deg - (1 - var(--first)) * 15deg)); }
.scan-sheet-mid { background: #e8d7c1; transform: translateX(calc(5px + (1 - var(--first)) * 25px)) rotate(calc(5deg + (1 - var(--first)) * 12deg)); }
.scan-sheet-top { background: #fffaf0; overflow: hidden; transform: translateY(calc((1 - var(--first)) * 10px)) rotate(calc((1 - var(--first)) * 7deg)); }
.paper-content { position: absolute; inset: 18% 14%; display: grid; grid-auto-rows: 2px; gap: clamp(8px, 1.4svh, 14px); }
.paper-content i, .paper-content span, .paper-rules i { background: #c6ad96; border-radius: 2px; }
.paper-content span { width: 60%; height: 4px; background: #ae8361; }
.paper-content i:nth-child(4n) { width: 71%; }
.scan-beam { position: absolute; inset: 16% 7% 84%; height: 2px; border-radius: 4px; background: #a66a43; box-shadow: 0 -3px 13px 3px #bf8d6a86; transform: translateY(var(--beam-y, 0px)); opacity: var(--beam-opacity, 0); }
.scan-file { display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid #dac6b3; border-radius: 7px; background: #fff9ee; box-shadow: 0 9px 21px #65412514; opacity: calc(.52 + var(--third) * .48); transform: translateY(calc((1 - var(--third)) * 9px)); }
.scan-file img { flex: 0 0 auto; }
.scan-file strong { display: block; font-size: .89rem; overflow-wrap: anywhere; }
.scan-file p { color: var(--muted); font-size: .76rem; margin-top: 2px; }

.art-mask { background: radial-gradient(ellipse at 88% 8%, #6d4c37, transparent 74%), linear-gradient(125deg,#2c231e,#47362a); border-color: #6e503d; }
.masked-document { min-width: 0; }
.mask-text { display: grid; }
.mask-text > div { grid-area: 1 / 1; min-width: 0; }
.mask-text p { margin-top: 9px; color: #4a3a2f; font-size: .9rem; }
.mask-original { clip-path: inset(0 0 0 calc(var(--second) * 100%)); }
.mask-result { clip-path: inset(0 calc((1 - var(--second)) * 100%) 0 0); }
.mask-result mark { padding: 1px 5px; border-radius: 3px; background: #30241d; color: #ffebd9; font: 650 .77rem ui-monospace, SFMono-Regular, Consolas, monospace; line-height: 1.6; white-space: nowrap; }
.paper-rules { display: grid; grid-template-rows: repeat(3, 2px); gap: 8px; margin-top: 13px; opacity: .44; }
.paper-rules i:nth-child(2n) { width: 79%; }

.art-search { background: radial-gradient(ellipse at 30% 16%, #eef0e5, transparent 70%), linear-gradient(135deg,#d9dfcf,#bdc6b0); border-color: #c2cbb8; }
.search-window { border-color: #cbd1c1; }
.search-query { padding: 8px; border: 1px solid #d6ddcd; border-radius: 5px; background: #f0f3ea; }
.search-query strong { clip-path: inset(0 calc((1 - var(--first)) * 100%) 0 0); }
.result { margin-top: 7px; padding: 5px 6px; border-left: 2px solid #a6b492; color: #343c2e; background: #f0f2e9; font-size: .82rem; line-height: 1.38; }
.result strong { font-size: .84rem; }
.result p { color: #4e5547; }
.result-first { opacity: calc(.38 + var(--second) * .62); transform: translateY(calc((1 - var(--second)) * 6px)); }
.result-second { opacity: calc(.38 + var(--third) * .62); transform: translateY(calc((1 - var(--third)) * 6px)); }
.result mark { color: #333d2b; background: linear-gradient(90deg, #d6e0bf calc(var(--second) * 100%), transparent 0); }
.result-second mark { background: linear-gradient(90deg, #d6e0bf calc(var(--third) * 100%), transparent 0); }

.scrollytelling .story { padding-bottom: 0; }
.scrollytelling .story-track { min-height: calc(var(--pin-height) + var(--scene-step) * 3.55); }
.scrollytelling .story-pin { position: sticky; top: var(--header-height); min-height: var(--pin-height); align-items: center; padding-block: 19px; }
.scrollytelling .scene-deck { display: grid; }
.scrollytelling .scene { grid-area: 1 / 1; margin: 0; visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .16s ease-out, visibility 0s .16s, transform .25s var(--ease); }
.scrollytelling .scene.is-current { position: relative; z-index: 1; visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0); transition: opacity .28s ease-out, visibility 0s, transform .35s var(--ease); }

.scrollytelling .instant-jump .scene { transition: none; }

.privacy {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top: 1px solid #e8c1a124;
  color: var(--night-text);
  background: #211a15;
}

.privacy-image, .privacy-shade { position: absolute; z-index: -1; pointer-events: none; }
.privacy-image {
  inset: -52px 0 -48px 27%;
  background: url("assets/private-folders.webp") center 58% / cover no-repeat;
  transform: translateY(var(--privacy-image-y, 0px)) scale(1.035);
  opacity: .46;
}
.privacy-shade {
  inset: 0;
  background: radial-gradient(ellipse at 75% 54%, #8a513064, transparent 53%), linear-gradient(90deg, #211a15 15%, #211a15cc 36%, #211a1533 72%, #211a1573), linear-gradient(0deg,#211a15ab,transparent 58%);
}
.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(24px, 5vw, 77px);
  min-height: clamp(480px, 64svh, 625px);
  padding-block: 60px 64px;
}
.privacy-content { min-width: 0; }
.privacy h2 { margin-top: 21px; font-size: clamp(2.5rem, 5.25vw, 5.08rem); }
.privacy h2 em { color: var(--copper); font-style: normal; }
.privacy-content > p:last-child { max-width: 435px; margin-top: 22px; color: #f0ddcb; font-size: clamp(1.04rem, 1.5vw, 1.19rem); }

.emblem {
  --emblem-ink: 1;
  --emblem-type: 1;
  --emblem-shine: 100%;
  --emblem-glow: 0;
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  min-width: 0;
  padding: 20px 14px 14px;
}
.emblem-halo {
  position: absolute;
  z-index: -1;
  inset: 0 4% 5%;
  max-width: 451px;
  margin-inline: auto;
  border: 1px solid #dba77d6e;
  border-radius: 50% 50% 18% 18% / 48% 48% 13% 13%;
  background: radial-gradient(ellipse at 50% 49%, #c1815352, transparent 69%);
  mask-image: linear-gradient(180deg, #000 21%, #0009 69%, transparent 98%);
  opacity: calc(.22 + var(--emblem-ink) * .78);
}
.emblem-art {
  position: relative;
  width: min(100%, 380px);
  clip-path: inset(0 0 calc((1 - var(--emblem-ink)) * 100%) 0);
  opacity: calc(.22 + var(--emblem-ink) * .78);
  transform: translateY(calc((1 - var(--emblem-ink)) * 13px));
}
.emblem-art > img { width: 100%; height: auto; }
.emblem-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(107deg, transparent 37%, #ffda9d 50%, transparent 63%) var(--emblem-shine) center / 230% 100% no-repeat;
  -webkit-mask: url("assets/themis-dark.webp") center / contain no-repeat;
  mask: url("assets/themis-dark.webp") center / contain no-repeat;
  mix-blend-mode: screen;
  opacity: var(--emblem-glow);
}
.emblem-name {
  margin-top: .08em;
  color: #fbefe0;
  font-family: "Bitter", Georgia, serif;
  font-size: clamp(3.02rem, 5.55vw, 4.65rem);
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: 1.02;
  opacity: var(--emblem-type);
  transform: translateY(calc((1 - var(--emblem-type)) * 9px));
}
.emblem-name::after {
  content: "";
  display: block;
  width: 41%;
  height: 1px;
  margin: 11px auto 0;
  background: #d29d75;
  transform: scaleX(var(--emblem-type));
  transform-origin: left center;
}

.download { padding-block: 94px; background: #f2ebe1; }
.download-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 29px; }
.download h2 { margin-top: 16px; }
.release-card { display: flex; align-items: flex-start; gap: 15px; justify-self: stretch; min-width: 0; padding: clamp(15px, 2.6vw, 30px); border: 1px solid #ddcbbb; border-radius: 10px; background: #faf4eb; box-shadow: 0 17px 45px #6042240a; }
.release-icon { flex: 0 0 auto; border-radius: 14px; }
.release-body { min-width: 0; }
.release-body h3 { font-size: 1.25rem; font-weight: 680; line-height: 1.2; letter-spacing: -.035em; }
.release-body p { margin-top: 5px; color: var(--muted); font-size: .91rem; }
.button-download { min-height: 43px; margin-top: 13px; background: #33231b; color: #fff6eb; }
.button-download:disabled { border-color: #dccbb9; background: #ebdfd0; color: #615145; }
.release-body .release-state { margin-top: 8px; font-size: .83rem; }
.footer { color: var(--night-text); background: var(--night); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 77px; }

.reveal-ready .reveal { opacity: 0; transform: translateY(19px); transition: opacity .58s var(--ease), transform .65s var(--ease); }
.reveal-ready .reveal.in-view, .reveal-ready .reveal:focus-within { opacity: 1; transform: none; }

@keyframes emerge { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes window-in { from { opacity: 0; transform: translateY(25px) rotate(2deg) scale(.98); } to { opacity: 1; transform: translateY(0) rotate(-1.9deg) scale(1); } }
@keyframes scroll-cue { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

@media (hover: hover) and (pointer: fine) {
  .navigation a:hover, .footer nav a:hover, .scroll-link:hover { color: #fff6eb; }
  .button-copper:hover { background: #f4c6a5; }
  .button-outline:hover { background: #ffffff19; border-color: #ffffff68; }
  .button-download:not(:disabled):hover { background: #5f3d29; }
  .story-link:hover { background: #eee2d5; }
  .play:hover { background: #74442d; }
}

@media (max-width: 1190px) {
  .shell { width: calc(100% - 76px); }
  .hero-content { gap: 33px; }
  .hero h1 { font-size: clamp(2.8rem, 5.85vw, 4.65rem); }
  .story-pin { gap: 37px; }
}

@media (max-width: 979px) {
  .shell { width: calc(100% - 52px); }
  .hero { min-height: 570px; }
  .hero-content { gap: 23px; padding-block: 66px 56px; }
  .hero h1 { font-size: clamp(2.48rem, 5.62vw, 3.6rem); }
  .hero-figure { margin-right: 6px; }
  .hero-figure::after { inset-inline-end: -23px; }
  .app-layout { grid-template-columns: 39px minmax(0, 1fr); min-height: 0; }
  .app-sidebar { padding-inline: 2px; }
  .app-main { padding: 12px 10px; }
  .hero-actions .button { padding-inline: 12px; }
  .story { padding-block: 72px; }
  .story-pin { grid-template-columns: minmax(176px, .47fr) minmax(0, 1.53fr); gap: 21px; }
  .story-nav { position: sticky; top: calc(var(--header-height) + 16px); }
}

@media (max-width: 740px) {
  :root { --header-height: 58px; }
  .shell { width: calc(100% - 42px); }
  .header-inner { grid-template-columns: 1fr auto; gap: 10px; }
  .navigation { display: none; }
  .hero { min-height: 0; }
  .hero-content { grid-template-columns: 1fr; gap: 33px; padding-block: 47px 25px; }
  .hero h1 { font-size: clamp(2.45rem, 9.5vw, 4.3rem); margin-top: 18px; }
  .hero-description { margin-top: 15px; }
  .hero-actions { margin-top: 20px; }
  .hero-figure { width: min(calc(100% - 8px), 540px); }
  .hero-figure::before { inset: 12px -11px 43px 16px; }
  .hero-figure::after { inset: 20px -18px 56px 33px; }
  .hero-figure figcaption { margin-top: 16px; text-align: left; }
  .hero-image { inset: -33px -11% -55px -17%; background-position: center right; background-size: cover; background-image: linear-gradient(180deg, #17120f31 0%, #17120f73 45%, transparent 85%), linear-gradient(90deg, #17120fdb 0%, #17120f88 46%, #17120f4a 100%), url("assets/case-pages.webp"); }
  .hero-foot { flex-wrap: wrap; gap: 6px 15px; min-height: 66px; padding-block: 10px; }
  .hero-foot p, .scroll-link { font-size: .78rem; }
  .story { padding-block: 59px 69px; }
  .story-intro { padding-bottom: 19px; }
  .story-intro h2 { margin-top: 12px; }
  .story-pin { grid-template-columns: 1fr; gap: 29px; padding-top: 12px; }
  .story-nav { position: relative; top: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-left: 0; gap: 5px; }
  .story-rail { display: none; }
  .story-link { border-bottom-color: var(--line); }
  .scene + .scene { margin-top: 48px; }
  .scene-copy { padding-bottom: 14px; }
  .scene h3 { font-size: clamp(1.65rem, 6.3vw, 2.75rem); }
  .scene-art { min-height: 243px; padding: 15px; }
  .art-scan { grid-template-columns: minmax(90px, .85fr) minmax(0, 1.15fr); }
  .privacy-grid { grid-template-columns: 1fr; gap: 29px; min-height: 0; padding-block: 53px 45px; }
  .privacy-image { inset-inline: 0 -21%; opacity: .35; }
  .privacy-shade { background: radial-gradient(ellipse at 56% 67%, #8a513079, transparent 54%), linear-gradient(180deg, #211a15da, #211a1533 62%, #211a15b3); }
  .emblem { justify-self: center; width: min(100%, 385px); }
  .emblem-art { width: min(85%, 290px); }
  .emblem-name { font-size: clamp(2.55rem, 9.3vw, 3.42rem); }
  .download { padding-block: 62px; }
  .download-grid { grid-template-columns: 1fr; gap: 24px; }
  .download h2 br { display: none; }
  .footer-inner { flex-wrap: wrap; padding-block: 18px; gap: 13px; }
  .footer nav { flex-wrap: wrap; gap: 8px 16px; }
}

@media (max-width: 420px) {
  .shell { width: calc(100% - 34px); }
  .hero h1 { font-size: clamp(2.14rem, 9.35vw, 2.52rem); }
  .hero-actions .button { flex: 1 1 128px; padding-inline: 8px; font-size: .83rem; }
  .app-layout { grid-template-columns: 1fr; }
  .app-sidebar { display: none; }
  .wave { gap: 2px; }
  .story-link { grid-template-columns: 23px minmax(0, 1fr); padding-inline: 5px; gap: 7px; }
  .story-link strong { font-size: 1rem; }
  .story-link small { font-size: .76rem; }
  .scene-window { padding: 10px 8px; }
  .scene-window-title { font-size: .83rem; }
  .scene-window-title > span { font-size: .65rem; }
  .speech-row { grid-template-columns: 1fr; gap: 1px; }
  .art-scan { gap: 7px; }
  .scan-sheet { inset-inline: 11px; }
  .scan-file { padding: 7px 5px; gap: 4px; }
  .scan-file img { width: 21px; height: 21px; }
  .scan-file strong { font-size: .8rem; }
  .release-icon { width: 54px; height: 54px; border-radius: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .reveal-ready .reveal { opacity: 1; transform: none; }
  .hero-figure, .hero-image, .privacy-image { transform: none; }
  .wave-position, .scroll-link > span { visibility: hidden; }
  .emblem { --emblem-ink: 1 !important; --emblem-type: 1 !important; --emblem-glow: 0 !important; }
}
