/* KI-Belegtrennung – styles */

@font-face { font-family: "Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --ink: #141415;
  --ink-2: #1c1d20;
  --ink-3: #26272b;
  --paper: #f6f4f0;
  --paper-2: #eeebe5;
  --white: #fff;
  --line: #e2ded7;
  --line-dark: rgba(255, 255, 255, .12);
  --text: #19191a;
  --muted: #5d5b57;
  --muted-light: rgba(255, 255, 255, .68);
  --red: #d31238;
  --red-hover: #b50f30;
  --red-soft: #fbeaee;
  --green: #2c7446;
  --green-soft: #e7f2ea;

  --font: "Plex Sans", "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Plex Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(20, 20, 21, .06), 0 8px 24px rgba(20, 20, 21, .06);
  --shadow-lg: 0 2px 6px rgba(20, 20, 21, .08), 0 24px 60px rgba(20, 20, 21, .14);
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--red); }
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -.02em; line-height: 1.12; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
.mono { font-family: var(--mono); letter-spacing: .01em; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 3px; }
.section-dark :focus-visible, .hero :focus-visible, .site-header :focus-visible, .contact :focus-visible, .scene :focus-visible { outline-color: #ff6b88; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--white); color: var(--ink); padding: .75rem 1rem; border-radius: var(--radius);
  font-weight: 500; box-shadow: var(--shadow-lg);
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .75rem;
  min-height: 48px; padding: .75rem 1.25rem;
  border-radius: 6px; border: 1px solid transparent;
  font-size: 1rem; font-weight: 500; line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn .icon { width: 20px; height: 20px; transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-hover); color: var(--white); }
.btn-ghost-light { color: var(--white); border-color: rgba(255, 255, 255, .28); }
.btn-ghost-light:hover { color: var(--white); border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .05); }
.btn-sm { min-height: 40px; padding: .5rem 1rem; font-size: .9375rem; }
.btn-lg { min-height: 56px; padding: 1rem 1.5rem; font-size: 1.0625rem; }

/* Eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: .75rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.25rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--red); border-radius: 2px; }
.eyebrow-light { color: var(--muted-light); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 20, 21, .92);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-dark);
  color: var(--white);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: inherit; }
.brand:hover { color: inherit; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 500; font-size: 1rem; letter-spacing: -.005em; }
.brand-sub { font-size: .75rem; color: var(--muted-light); }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav ul { display: flex; gap: 1.75rem; }
.site-nav ul a { color: var(--muted-light); text-decoration: none; font-size: .9375rem; padding: .5rem 0; transition: color .2s; }
.site-nav ul a:hover { color: var(--white); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-dark); background: transparent; border-radius: var(--radius); cursor: pointer; position: relative; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  position: absolute; left: 50%; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px;
  transform: translateX(-50%); transition: transform .25s, opacity .25s;
}
.nav-toggle-bars { top: 50%; }
.nav-toggle-bars::before { content: ""; top: -6px; }
.nav-toggle-bars::after { content: ""; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translate(-50%, 6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translate(-50%, -6px) rotate(-45deg); }

@media (max-width: 1080px) { .brand-sub { display: none; } }
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 1rem var(--gutter) 1.5rem;
    background: var(--ink); border-bottom: 1px solid var(--line-dark);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--line-dark); font-size: 1.0625rem; }
  .no-js .site-nav { position: static; display: flex; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink); color: var(--white);
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3.5rem, 7vw, 6rem);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 8% 100%, rgba(211, 18, 56, .28), transparent 70%),
    radial-gradient(40% 40% at 95% 0%, rgba(255, 255, 255, .05), transparent 70%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, #121213, #19191b);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2.5rem, 4.5vw, 4rem); align-items: center; }
.hero h1 {
  font-size: clamp(2.625rem, 5.2vw, 4.5rem);
  font-weight: 400; letter-spacing: -.04em; line-height: 1.02;
  margin-bottom: 1.75rem;
}
.hero-lead { font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); color: rgba(255, 255, 255, .78); max-width: 36rem; font-weight: 300; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .875rem; margin-top: 2.25rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2.25rem; font-size: .9375rem; color: rgba(255, 255, 255, .8); }
.hero-points li { display: inline-flex; align-items: center; gap: .55rem; }
.hero-points li::before {
  content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%;
  background: rgba(211, 18, 56, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23ff5c7c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
}

/* Story animation */
.hero-visual { margin: 0; }
.story {
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .025));
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: clamp(.75rem, 2vw, 1.25rem);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.story-stage {
  position: relative; aspect-ratio: 100 / 78; container-type: inline-size;
  overflow: hidden; border-radius: 10px;
  background: radial-gradient(90% 80% at 50% 30%, rgba(255, 255, 255, .05), transparent 70%);
  transition: opacity .45s ease;
}
.story.is-fading .story-stage { opacity: 0; }
.story.no-anim .sheet, .story.no-anim .tag, .story.no-anim .bin, .story.no-anim .scanline { transition: none !important; }

.sheet {
  --x: calc(39cqw + var(--i) * .7cqw);
  --y: calc(15cqw - var(--i) * .7cqw);
  --r: calc((var(--i) - 3.5) * .5deg);
  --s: 1;
  position: absolute; left: 0; top: 0;
  width: 22cqw; height: 30cqw;
  padding: 3cqw 2.6cqw;
  display: flex; flex-direction: column; gap: 1.5cqw;
  background: #faf9f6;
  border-radius: 1cqw;
  box-shadow: 0 .3cqw .8cqw rgba(0, 0, 0, .25), 0 0 0 1px rgba(0, 0, 0, .04);
  z-index: calc(20 - var(--i));
  transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(var(--s));
  transform-origin: 0 0;
  transition: transform .95s cubic-bezier(.65, 0, .35, 1), opacity .6s ease, box-shadow .4s;
}
.sheet .bar { display: block; width: 45%; height: 1.6cqw; background: var(--red); border-radius: .3cqw; margin-bottom: .8cqw; }
.sheet .ln { display: block; height: .8cqw; background: #d9d5ce; border-radius: .3cqw; }
.sheet .ln.s { width: 62%; }
.sheet .ln.m { width: 34%; margin-left: auto; margin-top: auto; background: #9d9a94; }

.story[data-state="split"] .sheet,
.story[data-state="tagged"] .sheet {
  --x: calc(4.5cqw + var(--g) * 34.5cqw + var(--k) * 1.8cqw);
  --y: calc(5cqw + var(--k) * 1.8cqw);
  --r: 0deg;
  transition-delay: calc(var(--i) * 70ms);
}
.story[data-state="split"] .sheet.blank,
.story[data-state="tagged"] .sheet.blank {
  --x: calc(41cqw + var(--k) * 9.5cqw);
  --y: calc(58cqw + var(--k) * 1cqw);
  --r: calc(-6deg + var(--k) * 11deg);
  --s: .4;
  opacity: .45;
}

.scanline {
  position: absolute; left: 36cqw; width: 30cqw; top: 8cqw; height: .5cqw; z-index: 40;
  background: linear-gradient(90deg, transparent, #ff3d64 20%, #ff3d64 80%, transparent);
  box-shadow: 0 0 2.4cqw 1cqw rgba(255, 61, 100, .45);
  border-radius: 1cqw; opacity: 0;
  transition: opacity .3s;
}
.story[data-state="scan"] .scanline { opacity: 1; animation: scan 1.25s ease-in-out infinite alternate; }
@keyframes scan { from { transform: translateY(0); } to { transform: translateY(34cqw); } }
.story.is-paused .scanline { animation-play-state: paused; }
.story[data-state="scan"] .sheet.first .bar { box-shadow: 0 0 0 .5cqw rgba(211, 18, 56, .25); }

.tag {
  position: absolute; left: calc(4.5cqw + var(--g) * 34.5cqw); top: 42cqw; width: 26cqw;
  display: flex; flex-direction: column; gap: .3cqw;
  padding: 1.6cqw 1.8cqw;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 1.2cqw;
  font-size: max(9px, 2.1cqw); line-height: 1.3; color: rgba(255, 255, 255, .72);
  opacity: 0; transform: translateY(2cqw);
  transition: opacity .5s ease, transform .5s ease;
  transition-delay: calc(var(--g) * 120ms);
}
.tag b { color: var(--white); font-weight: 500; display: flex; align-items: center; gap: 1cqw; }
.tag b::after { content: "Hoch"; font-size: .78em; font-weight: 500; color: #7fd49b; background: rgba(76, 175, 110, .16); padding: .1em .5em; border-radius: 99px; margin-left: auto; }
.tag span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag em { font-style: normal; font-family: var(--mono); font-size: .88em; letter-spacing: -.02em; color: rgba(255, 255, 255, .55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story[data-state="tagged"] .tag { opacity: 1; transform: none; }

.bin {
  position: absolute; left: 0; right: 0; top: 71.5cqw; text-align: center;
  font-size: max(9px, 1.9cqw); color: rgba(255, 255, 255, .55); letter-spacing: .02em;
  opacity: 0; transition: opacity .5s ease .5s;
}
.story[data-state="split"] .bin, .story[data-state="tagged"] .bin { opacity: 1; }

.story-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-top: .9rem; counter-reset: st; }
.story-steps li {
  counter-increment: st; position: relative;
  font-size: .8125rem; color: rgba(255, 255, 255, .45); padding-top: .75rem;
  transition: color .3s;
}
.story-steps li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .12); transition: background .3s; }
.story[data-state="stack"] [data-step="stack"],
.story[data-state="scan"] [data-step="scan"],
.story[data-state="split"] [data-step="split"],
.story[data-state="tagged"] [data-step="tagged"] { color: var(--white); }
.story[data-state="stack"] [data-step="stack"]::before,
.story[data-state="scan"] [data-step="scan"]::before,
.story[data-state="split"] [data-step="split"]::before,
.story[data-state="tagged"] [data-step="tagged"]::before { background: var(--red); }

.hero-visual figcaption { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .9rem; font-size: .8125rem; color: rgba(255, 255, 255, .5); }
.story-toggle {
  background: none; border: 1px solid var(--line-dark); color: rgba(255, 255, 255, .75);
  border-radius: 99px; padding: .35rem .85rem; font-size: .8125rem; cursor: pointer; min-height: 32px;
}
.story-toggle:hover { color: var(--white); border-color: rgba(255, 255, 255, .4); }
.no-js .story-toggle { display: none; }

/* Sections */
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section-paper { background: var(--paper); }
.section-dark { background: var(--ink); color: var(--white); }
.section-head { max-width: 52rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head h2 {
  font-size: clamp(2.6rem, 5.6vw, 4.75rem);
  font-weight: 500;
  letter-spacing: -.046em;
  line-height: .98;
  max-width: 14ch;
}
.section-lead { margin-top: 1.35rem; font-size: clamp(1.125rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--muted); max-width: 38rem; }

/* Problem / compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.compare-col { border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.25rem); }
.compare-before { background: var(--white); border: 1px solid var(--line); }
.compare-after { background: var(--ink); color: var(--white); }
.compare-col h3 { font-size: clamp(1.45rem, 2.2vw, 1.9rem); font-weight: 500; letter-spacing: -.025em; margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.compare-label { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--muted); }
.compare-after .compare-label { color: #ff6b88; }
.flow { counter-reset: f; display: grid; gap: .25rem; }
.flow li {
  counter-increment: f; position: relative;
  padding: .8rem 0 .8rem 2.75rem; border-top: 1px solid var(--line);
}
.compare-after .flow li { border-top-color: var(--line-dark); }
.flow li::before {
  content: counter(f); position: absolute; left: 0; top: .8rem;
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: .8125rem;
  border: 1px solid var(--line); color: var(--muted);
}
.compare-after .flow li::before { border-color: var(--line-dark); color: var(--muted-light); }
.flow li span { display: block; font-size: .875rem; margin-top: .15rem; }
.flow-pain { color: var(--text); font-weight: 500; }
.flow-pain::before { background: var(--red-soft); border-color: transparent !important; color: var(--red) !important; }
.flow-pain span { color: var(--red); font-weight: 400; }
.flow-gain { font-weight: 500; }
.flow-gain::before { background: var(--red); border-color: transparent !important; color: var(--white) !important; }
.flow-gain span { color: var(--muted-light); font-weight: 400; }

.pullquote { margin: clamp(3.5rem, 7vw, 6rem) 0 0; max-width: 46rem; padding-left: clamp(1.25rem, 3vw, 2rem); border-left: 2px solid var(--red); }
.pullquote p { font-size: clamp(1.6rem, 3vw, 2.45rem); line-height: 1.22; letter-spacing: -.03em; font-weight: 400; }
.pullquote footer { margin-top: 1rem; font-size: .9375rem; color: var(--muted); }

@media (max-width: 800px) { .compare { grid-template-columns: 1fr; } }

/* Signals */
.signals-band { background: var(--white); color: var(--text); padding: clamp(4.5rem, 9vw, 8rem) 0; }
.signals {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.signals-copy h2 {
  font-size: clamp(2.4rem, 4.8vw, 4rem);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1;
  max-width: 14ch;
}
.signals-copy > p { color: var(--muted); margin: 1rem 0 1.75rem; }
.signal-list { display: grid; gap: 1.1rem; }
.signal-list li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; color: var(--muted); }
.signal-list strong { display: block; color: var(--text); font-weight: 500; }
.marker {
  display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none;
  border-radius: 50%; background: var(--red); color: var(--white);
  font-family: var(--mono); font-size: .8125rem; font-weight: 500;
  box-shadow: 0 0 0 4px rgba(211, 18, 56, .15);
}
.signals-art { position: relative; padding: 1.5rem 2rem 2.5rem 1rem; }
.paper {
  position: relative; z-index: 2;
  aspect-ratio: 1 / 1.3; max-width: 440px; margin-left: auto;
  background: var(--white); border-radius: 6px; box-shadow: var(--shadow-lg);
  padding: 9% 9% 7%;
  display: flex; flex-direction: column; gap: 7%;
  font-size: clamp(.625rem, 1.1vw, .78rem); color: #3a3936;
}
.paper-behind { position: absolute; z-index: 1; inset: 3rem 0 1rem 3rem; aspect-ratio: auto; max-width: none; transform: rotate(3deg); box-shadow: var(--shadow); }
.paper-head, .paper-address, .paper-meta, .paper-foot { position: relative; }
/* rows are 82 % of the paper width (9 % padding each side): -10.98 % puts the marker centre on the paper edge */
.paper .marker { position: absolute; top: 50%; right: calc(-10.98% - 13px); transform: translateY(-50%); }
.paper-head { display: flex; align-items: center; gap: 6%; }
.p-logo { width: 18%; aspect-ratio: 1; border-radius: 4px; background: var(--ink-2); }
.p-lines { flex: 1; display: grid; gap: 6px; }
.p-lines i, .paper-address i, .paper-table i { display: block; height: 7px; border-radius: 2px; background: #d7d3cc; }
.p-lines i:first-child { background: #3a3936; width: 70%; height: 9px; }
.p-lines i.s, .paper-table i.s { width: 55%; }
.paper-address { display: grid; gap: 7px; padding: 4% 0; }
.paper-address i { width: 48%; }
.paper-address i.s { width: 30%; }
.paper-meta { padding: 3% 0; border-top: 1px solid #ebe8e2; border-bottom: 1px solid #ebe8e2; }
.paper-table { display: grid; gap: 10px; flex: 1; align-content: start; }
.paper-foot { color: #6b6964; }

@media (max-width: 860px) {
  .signals { grid-template-columns: 1fr; }
  .paper { margin: 0 auto; }
  .signals-art { padding: 1rem 2.5rem 2rem 1rem; }
}

.mode { display: grid; gap: 1.25rem; }
.mode-switch { display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 99px; background: rgba(255, 255, 255, .08); border: 1px solid var(--line-dark); font-size: .9375rem; }
.mode-switch span { text-align: center; padding: .55rem .75rem; border-radius: 99px; color: var(--muted-light); }
.mode-switch .is-on { background: var(--white); color: var(--ink); font-weight: 500; }
.mode-list { margin: 0; display: grid; gap: .75rem; }
.mode-list div { display: grid; grid-template-columns: 4.5rem 1fr; gap: .75rem; padding-top: .75rem; border-top: 1px solid var(--line-dark); font-size: .9375rem; }
.mode-list dt { color: var(--white); font-weight: 500; }
.mode-list dd { margin: 0; color: var(--muted-light); }

.fields { margin: .5rem 0 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .9375rem; }
.fields div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem .85rem; }
.fields div + div { border-top: 1px solid var(--line); }
.fields dt { color: var(--muted); }
.fields dd { margin: 0; font-weight: 500; text-align: right; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .5rem; }
.chips li { font-size: .875rem; padding: .35rem .75rem; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); }

.levels { display: flex; gap: .5rem; margin-top: auto; padding-top: .5rem; }
.levels li { font-size: .8125rem; font-weight: 500; padding: .25rem .7rem; border-radius: 99px; display: inline-flex; align-items: center; gap: .4rem; }
.levels li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.lv-high { background: var(--green-soft); color: var(--green); }
.lv-low { background: var(--red-soft); color: var(--red); }

.pages { display: flex; gap: .4rem; margin-top: auto; padding-top: .75rem; }
.pages li {
  flex: 1; aspect-ratio: 1 / 1.35; max-width: 34px; border-radius: 3px; position: relative;
  background: var(--white); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(0, 0, 0, .06);
  display: grid; place-items: end center; padding-bottom: 2px;
  font-family: var(--mono); font-size: .625rem; color: var(--muted);
}
.pages li::before { content: ""; position: absolute; left: 20%; right: 20%; top: 18%; height: 22%; background: repeating-linear-gradient(180deg, #d9d5ce 0 2px, transparent 2px 5px); }
.pages .pg-blank { background: var(--paper); opacity: .6; box-shadow: 0 0 0 1px var(--line) inset; }
.pages .pg-blank::before { background: none; }
.pages .pg-blank::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top right, transparent calc(50% - 1px), var(--red) calc(50% - 1px), var(--red) calc(50% + 1px), transparent calc(50% + 1px));
}

.chat { display: grid; gap: .6rem; font-size: .9375rem; }
.chat p { padding: .7rem .95rem; border-radius: 12px; max-width: 92%; }
.chat-q { justify-self: end; background: var(--paper); border: 1px solid var(--line); color: var(--text) !important; border-bottom-right-radius: 4px; }
.chat-a { justify-self: start; background: var(--ink); color: rgba(255, 255, 255, .88) !important; border-bottom-left-radius: 4px; }
.chat .chat-note { padding: 0; font-size: .75rem; color: var(--muted); justify-self: end; }

/* DMS pipeline */
.dms { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.dms h2 { font-size: clamp(2.6rem, 5.4vw, 4.5rem); font-weight: 500; letter-spacing: -.045em; line-height: .98; margin-bottom: 1.25rem; max-width: 12ch; }
.dms-copy p:not(.eyebrow) { color: var(--muted-light); font-size: 1.125rem; }
.pipeline { display: grid; gap: 0; }
.pipeline li {
  position: relative; display: grid; grid-template-columns: 7rem 1fr; column-gap: 1.25rem; row-gap: .15rem;
  padding: 1.35rem 1.5rem; border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .03);
}
.pipeline li + li { margin-top: 2.25rem; }
.pipeline li + li::before {
  content: ""; position: absolute; left: 50%; top: -2.25rem; height: 2.25rem; border-left: 1.5px dashed rgba(255, 255, 255, .25);
}
.pipeline li + li::after {
  content: ""; position: absolute; left: calc(50% - 4px); top: -9px; width: 8px; height: 8px;
  border-right: 1.5px solid rgba(255, 255, 255, .45); border-bottom: 1.5px solid rgba(255, 255, 255, .45); transform: rotate(45deg);
}
.pipe-kicker { grid-row: span 2; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-light); padding-top: .2rem; }
.pipeline strong { font-weight: 500; font-size: 1.125rem; }
.pipeline li > span:last-child { color: var(--muted-light); font-size: .9375rem; }
.pipe-core { background: var(--red) !important; border-color: var(--red) !important; box-shadow: 0 20px 50px rgba(211, 18, 56, .3); }
.pipe-core .pipe-kicker, .pipe-core > span:last-child { color: var(--white) !important; }

@media (max-width: 860px) { .dms { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .pipeline li { grid-template-columns: 1fr; } .pipe-kicker { grid-row: auto; } }

/* Audience */
.roster { display: grid; }
.roster li {
  padding: clamp(1.5rem, 3vw, 2.15rem) 0; border-top: 1px solid var(--line);
}
.roster li:last-child { border-bottom: 1px solid var(--line); }
.roster h3 { font-size: clamp(1.55rem, 2.5vw, 2.2rem); font-weight: 500; letter-spacing: -.03em; margin-bottom: .45rem; }
.roster p { color: var(--muted); max-width: 42rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.shot { display: flex; flex-direction: column; gap: .85rem; }
.shot-lead { grid-column: 1 / -1; }
.shot-btn {
  display: block; width: 100%; padding: 0; border: 1px solid var(--line); background: var(--white);
  border-radius: var(--radius-lg); overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow);
  transition: box-shadow .25s, transform .25s;
}
.shot-lead .shot-btn { box-shadow: var(--shadow-lg); }
.shot-btn:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.shot-btn img { width: 100%; aspect-ratio: 1600 / 1042; object-fit: cover; object-position: top left; background: var(--paper-2); }
.shot-caption { font-size: .9375rem; color: var(--muted); }
.shot-caption strong { display: block; color: var(--text); font-weight: 500; }
.shot-lead .shot-caption { max-width: 40rem; }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr; } }

/* Portrait explainer */
.explainer {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 380px);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.explainer h2 {
  font-size: clamp(2.2rem, 3.6vw, 3.35rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .98;
}
.explainer-copy p:not(.eyebrow) {
  margin-top: 1.25rem;
  color: var(--muted-light);
  font-size: 1.125rem;
  max-width: 34rem;
}
.phone { margin: 0; width: 100%; max-width: 380px; justify-self: end; }
.phone-shell {
  position: relative;
  padding: 1.7rem .72rem .78rem;
  background: linear-gradient(180deg, #f7f5f1, #e6e2da);
  border-radius: 2.5rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .7),
    0 24px 64px rgba(0, 0, 0, .4);
}
.phone-shell::before {
  content: "";
  position: absolute;
  top: .68rem;
  left: 50%;
  width: 3.4rem;
  height: .28rem;
  transform: translateX(-50%);
  border-radius: 99px;
  background: rgba(20, 20, 21, .22);
}
.phone-screen {
  overflow: hidden;
  border-radius: 1.7rem;
  background: #d7dde3;
  line-height: 0;
}
.phone-screen video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 720 / 1224;
  object-fit: contain;
  background: #d7dde3;
}
.phone figcaption {
  margin-top: .9rem;
  font-size: .875rem;
  line-height: 1.45;
  color: var(--muted-light);
}
@media (max-width: 860px) {
  .explainer { grid-template-columns: 1fr; }
  .phone { justify-self: center; max-width: 340px; margin-inline: auto; }
}

.lightbox {
  width: min(96vw, 1600px); max-height: 94vh; padding: 0; border: 0; border-radius: var(--radius-lg);
  background: var(--ink); color: var(--white); box-shadow: 0 40px 120px rgba(0, 0, 0, .5); overflow: auto;
}
.lightbox::backdrop { background: rgba(10, 10, 11, .82); }
.lightbox img { width: 100%; height: auto; }
.lightbox p { padding: 1rem 1.25rem 1.25rem; font-size: .9375rem; color: var(--muted-light); }
.lightbox form { position: sticky; top: 0; height: 0; z-index: 2; }
.lightbox-close {
  position: absolute; right: .75rem; top: .75rem; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(20, 20, 21, .85); color: var(--white); font-size: 1.75rem; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { background: var(--red); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 2rem); margin-bottom: 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1.4rem 3rem 1.4rem 0; font-size: clamp(1.15rem, 1.6vw, 1.35rem); font-weight: 500; letter-spacing: -.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .25rem; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  background:
    linear-gradient(var(--text), var(--text)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--text), var(--text)) center / 1.5px 12px no-repeat;
  border: 1px solid var(--line); border-radius: 50%;
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--red); }
.faq details p { padding: 0 3rem 1.5rem 0; color: var(--muted); }
@media (max-width: 860px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid .section-head { position: static; }
}

/* Contact */
.contact {
  background: var(--ink); color: var(--white); position: relative; overflow: hidden; isolation: isolate;
}
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 80% at 100% 100%, rgba(211, 18, 56, .3), transparent 70%);
}
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact h2 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); font-weight: 500; letter-spacing: -.045em; line-height: .98; max-width: 12ch; }
.contact-lead { margin-top: 1.25rem; color: var(--muted-light); font-size: 1.125rem; max-width: 36rem; }
.contact-mail { margin-top: 1.25rem; font-size: .9375rem; color: var(--muted-light); }
.contact-mail a { color: var(--white); }
.contact-mail a:hover { color: #ff8aa2; }
.contact-form { display: grid; gap: .85rem; }
.contact-form label { display: grid; gap: .4rem; font-size: .875rem; color: rgba(255, 255, 255, .72); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 0; border-radius: 8px; padding: .8rem .95rem; width: 100%; min-height: 48px;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form button { justify-self: start; margin-top: .15rem; }
.contact-form button:disabled { opacity: .65; cursor: progress; }
.form-note { margin: 0; font-size: .8125rem; color: rgba(255, 255, 255, .62); }
.form-note a { color: #fff; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-size: .9375rem; min-height: 1.5em; color: rgba(255, 255, 255, .8); }
.form-status.ok { color: #8ddeaf; }
.form-status.err { color: #ffb0a1; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: #0f0f10; color: var(--muted-light); padding: 3rem 0; font-size: .9375rem; }
.footer-inner { display: grid; grid-template-columns: 1.5fr auto auto; gap: 2rem 3rem; align-items: center; }
.footer-brand .brand { color: var(--white); margin-bottom: .75rem; }
.footer-brand p { max-width: 28rem; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }

/* Legal pages */
.legal { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 7rem); background: var(--paper); }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -.035em; margin-bottom: 2.5rem; }
.legal section { padding: 1.75rem 0; border-top: 1px solid var(--line); }
.legal h2 { font-size: 1.375rem; font-weight: 500; letter-spacing: -.01em; margin-bottom: .85rem; }
.legal p + p { margin-top: .85rem; }
.legal address { font-style: normal; }
.legal a { color: var(--red); }
.legal a:hover { color: var(--red-hover); }
.back-link { display: inline-flex; align-items: center; gap: .5rem; font-size: .9375rem; color: var(--muted); text-decoration: none; margin-bottom: 1.5rem; }
.back-link:hover { color: var(--red); }
.back-link svg { width: 18px; height: 18px; transform: rotate(180deg); }
.legal-note { font-size: .9375rem; color: var(--muted); }

/* Full-viewport scroll scene */
.scene { background: #1b1612; color: #fff; }
.scene-track { position: relative; }
.scene-stage { position: relative; }
.scene-beat {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: #1b1612;
}
.scene-beat picture { position: absolute; inset: 0; z-index: 0; display: block; overflow: hidden; }
.scene-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; max-width: none;
  object-fit: cover;
  object-position: var(--focus, 50% 40%);
}
.scene-beat:nth-child(1) .scene-bg { --focus: 56% 40%; }
.scene-beat:nth-child(2) .scene-bg { --focus: 62% 40%; }
.scene-beat:nth-child(3) .scene-bg { --focus: 52% 40%; }
.scene-beat:nth-child(4) .scene-bg,
.scene-beat:nth-child(5) .scene-bg { --focus: 22% 42%; }
.scene-beat:nth-child(6) .scene-bg { --focus: 52% 40%; }
.scene-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(27, 20, 15, .82) 0%, rgba(27, 20, 15, .58) 30%, rgba(27, 20, 15, .12) 56%, transparent 70%),
    linear-gradient(180deg, rgba(27, 20, 15, .35) 0%, transparent 22%, transparent 70%, rgba(27, 20, 15, .6) 100%);
}
.scene-foreground {
  position: relative; z-index: 2;
  width: min(1120px, calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  padding: calc(var(--header-h) + 1.5rem) 0 calc(2.25rem + env(safe-area-inset-bottom));
  display: grid;
  gap: 1.25rem;
  align-items: end;
}
.scene-kicker {
  display: flex; align-items: center; gap: .7rem;
  margin: 0 0 .85rem;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: #ffd5de;
}
.scene-kicker::before { content: ""; width: 1.35rem; height: 2px; background: var(--red); border-radius: 2px; }
.scene-copy h3 {
  font-size: clamp(2.4rem, 4.8vw, 4.4rem);
  font-weight: 500; letter-spacing: -.045em; line-height: .98;
  max-width: 12ch;
  text-shadow: 0 2px 24px rgba(27, 20, 15, .55);
}
.scene-lead {
  margin-top: 1rem;
  max-width: 32ch;
  font-size: clamp(1.02rem, 1.35vw, 1.2rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, .9);
  text-shadow: 0 2px 16px rgba(27, 20, 15, .7);
}
.scene-card {
  margin: 0;
  width: fit-content;
  max-width: 100%;
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(27, 20, 15, .4);
  overflow: hidden;
}
.scene-chip { padding: 14px 18px; }
.scene-chip strong { display: block; font-weight: 500; font-size: .98rem; letter-spacing: -.01em; }
.scene-chip span { display: block; margin-top: .2rem; font-size: .84rem; color: var(--muted); }
.scene-count { display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 14px; max-width: 300px; }
.scene-count-num {
  flex: none; min-width: 2.2ch;
  font-family: var(--mono); font-size: 2.1rem; line-height: 1; font-weight: 500; letter-spacing: -.02em;
  color: #9a7400;
}
.scene-count-label { font-size: .84rem; line-height: 1.35; color: var(--muted); }
.scene-docs { padding: 14px 18px 12px; min-width: 230px; }
.scene-card-label {
  margin: 0 0 8px;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red);
}
.scene-docs ul { display: grid; gap: 8px; }
.scene-docs li { display: grid; gap: 1px; }
.scene-docs b { font-weight: 500; font-size: .92rem; }
.scene-docs span { font-size: .78rem; color: var(--muted); }
.scene-card-note { margin: 10px 0 0; font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

.scene-strip { padding: 14px 18px 12px; --pw: 42px; --gap: 6px; --open: 26px; }
.strip {
  position: relative;
  width: calc(8 * var(--pw) + 7 * var(--gap) + 2 * var(--open));
  height: calc(var(--pw) * 1.41 + 34px);
  margin-top: 28px;
}
.strip i {
  position: absolute; top: 0;
  left: calc(var(--i) * (var(--pw) + var(--gap)) + var(--g) * var(--open) * var(--split));
  width: var(--pw); height: calc(var(--pw) * 1.41);
  border-radius: 3px;
  background:
    linear-gradient(var(--line), var(--line)) 18% 22% / 50% 3px no-repeat,
    linear-gradient(var(--line), var(--line)) 18% 38% / 64% 3px no-repeat,
    linear-gradient(var(--line), var(--line)) 18% 50% / 56% 3px no-repeat,
    linear-gradient(var(--line), var(--line)) 18% 62% / 64% 3px no-repeat,
    #fff;
  box-shadow: 0 0 0 1px #d9d4cc, 0 3px 8px rgba(27, 20, 15, .08);
}
.strip i.g0 { box-shadow: 0 0 0 1px #d9d4cc, inset 0 3px 0 calc(var(--split) * 3px) rgba(211, 18, 56, calc(var(--split))); }
.strip i.g1:not(.blank) { box-shadow: 0 0 0 1px #d9d4cc, inset 0 3px 0 calc(var(--split) * 3px) rgba(44, 116, 70, calc(var(--split))); }
.strip i.g2:not(.blank) { box-shadow: 0 0 0 1px #d9d4cc, inset 0 3px 0 calc(var(--split) * 3px) rgba(154, 116, 0, calc(var(--split))); }
.strip i.blank {
  background: #fff;
  left: calc(var(--i) * (var(--pw) + var(--gap)) + (var(--g) - .5) * var(--open) * var(--split));
  transform: translateY(calc(var(--split) * 30px)) rotate(calc(var(--split) * -8deg));
  opacity: calc(1 - var(--split) * .75);
  border: 1px dashed rgba(93, 91, 87, calc(var(--split)));
}
.strip-scan {
  position: absolute; z-index: 2; top: -6px;
  left: calc(var(--scan) * 100%);
  width: 2px; height: calc(var(--pw) * 1.41 + 12px);
  background: var(--red);
  box-shadow: 0 0 14px 3px rgba(211, 18, 56, .45);
  opacity: calc(1 - var(--split));
}
.strip b {
  position: absolute; top: -26px;
  left: calc(var(--c) * (var(--pw) + var(--gap)) + var(--g) * var(--open));
  transform: translate(-50%, calc((1 - var(--tag)) * 6px));
  opacity: var(--tag);
  padding: 2px 8px; border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: .72rem; font-weight: 500; white-space: nowrap;
}
.scene-nav, .scene-meter { display: none; }

html.is-scrub:not(.no-js) .scene-track { height: 660vh; height: 660svh; }
html.is-scrub:not(.no-js) .scene-stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
}
html.is-scrub:not(.no-js) .scene-beat {
  position: absolute; inset: 0;
  min-height: 0; height: 100%;
  display: block;
  pointer-events: none;
  background: transparent;
}
html.is-scrub:not(.no-js) .scene-beat:nth-child(1) { z-index: 1; }
html.is-scrub:not(.no-js) .scene-beat:nth-child(2) { z-index: 2; }
html.is-scrub:not(.no-js) .scene-beat:nth-child(3) { z-index: 3; }
html.is-scrub:not(.no-js) .scene-beat:nth-child(4) { z-index: 4; }
html.is-scrub:not(.no-js) .scene-beat:nth-child(5) { z-index: 5; }
html.is-scrub:not(.no-js) .scene-beat:nth-child(6) { z-index: 6; }
html.is-scrub:not(.no-js) .scene-bg,
html.is-scrub:not(.no-js) .scene-veil { opacity: 0; }
html.is-scrub:not(.no-js) .scene-beat:first-child .scene-bg,
html.is-scrub:not(.no-js) .scene-beat:first-child .scene-veil { opacity: 1; }
html.is-scrub:not(.no-js) .scene-foreground {
  position: absolute; inset: 0;
  width: auto; margin: 0; padding: 0;
  display: block;
}
html.is-scrub:not(.no-js) .scene-copy,
html.is-scrub:not(.no-js) .scene-card {
  position: absolute;
  opacity: 0;
  will-change: opacity, transform;
}
html.is-scrub:not(.no-js) .scene-beat:first-child .scene-copy { opacity: 1; transform: none; }
html.is-scrub:not(.no-js) .scene-copy {
  top: calc(var(--header-h) + 8svh);
  left: max(var(--gutter), calc((100% - 1160px) / 2));
  max-width: min(34rem, 44vw);
}
html.is-scrub:not(.no-js) .scene-card {
  left: max(var(--gutter), calc((100% - 1160px) / 2));
  bottom: calc(5.5rem + env(safe-area-inset-bottom));
}
html.is-scrub:not(.no-js) .scene-meter {
  display: block;
  position: absolute; z-index: 8;
  left: max(var(--gutter), calc((100% - 1160px) / 2));
  right: max(var(--gutter), calc((100% - 1160px) / 2));
  bottom: calc(3.35rem + env(safe-area-inset-bottom));
  height: 2px;
  background: rgba(255, 255, 255, .25);
  border-radius: 2px;
}
html.is-scrub:not(.no-js) .scene-meter span {
  display: block; height: 100%; width: 0; background: var(--red); border-radius: 2px;
}
html.is-scrub:not(.no-js) .scene-nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .6rem;
  position: absolute; z-index: 9;
  left: max(var(--gutter), calc((100% - 1160px) / 2));
  right: max(var(--gutter), calc((100% - 1160px) / 2));
  bottom: calc(.7rem + env(safe-area-inset-bottom));
  margin: 0; padding: 0;
  list-style: none;
  pointer-events: auto;
}
.scene-nav button {
  appearance: none; background: none; border: 0;
  border-top: 2px solid rgba(255, 255, 255, .3);
  color: rgba(255, 255, 255, .78);
  text-align: left; padding: .55rem 0 0; cursor: pointer;
  font-size: .78rem; width: 100%;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .65);
}
.scene-nav button[aria-current="step"] { color: #fff; border-top-color: var(--red); }
.scene-nav button:hover { color: #fff; }

@media (max-width: 800px) {
  .scene-veil {
    background:
      linear-gradient(180deg, rgba(27, 20, 15, .9) 0%, rgba(27, 20, 15, .8) 36%, rgba(27, 20, 15, .22) 56%, rgba(27, 20, 15, .2) 72%, rgba(27, 20, 15, .8) 100%);
  }
  .scene-beat:nth-child(4) .scene-bg,
  .scene-beat:nth-child(5) .scene-bg { --focus: 60% 42%; }
  .scene-copy h3 { font-size: clamp(2rem, 9vw, 2.6rem); max-width: 13ch; }
  .scene-strip { --pw: 29px; --gap: 4px; --open: 16px; }
  html.is-scrub:not(.no-js) .scene-copy {
    left: max(1.1rem, env(safe-area-inset-left));
    right: max(1.1rem, env(safe-area-inset-right));
    top: calc(var(--header-h) + 1.25rem);
    max-width: none;
  }
  html.is-scrub:not(.no-js) .scene-lead { font-size: 1rem; max-width: 36ch; }
  html.is-scrub:not(.no-js) .scene-card {
    left: max(1rem, env(safe-area-inset-left));
    right: auto;
    max-width: calc(100% - 2rem);
    bottom: calc(4.6rem + env(safe-area-inset-bottom));
  }
  html.is-scrub:not(.no-js) .scene-nav { gap: .3rem; }
  html.is-scrub:not(.no-js) .scene-nav button { font-size: .66rem; padding-top: .45rem; }
  html.is-scrub:not(.no-js) .scene-meter {
    left: 1.1rem; right: 1.1rem;
    bottom: calc(3.15rem + env(safe-area-inset-bottom));
  }
}
@media (max-height: 700px) {
  html.is-scrub:not(.no-js) .scene-copy { top: calc(var(--header-h) + 1rem); }
  html.is-scrub:not(.no-js) .scene-copy h3 { font-size: clamp(1.8rem, 4.2vw, 2.5rem); }
  html.is-scrub:not(.no-js) .scene-lead {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  html.is-scrub:not(.no-js) .scene-card { bottom: calc(4.2rem + env(safe-area-inset-bottom)); }
  html.is-scrub:not(.no-js) .scene-card-note { display: none; }
}

/* Scroll reveals */
html.js-reveal:not(.no-js) .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.22, .8, .2, 1), transform .7s cubic-bezier(.22, .8, .2, 1);
}
html.js-reveal:not(.no-js) .reveal.is-in { opacity: 1; transform: none; }
.compare .reveal:nth-child(2),
.signals .reveal + .reveal,
.contact-grid .reveal + .reveal { transition-delay: .1s; }
.gallery .reveal:nth-child(2) { transition-delay: .08s; }
.gallery .reveal:nth-child(3) { transition-delay: .16s; }
.gallery .reveal:nth-child(4) { transition-delay: .24s; }

/* Feature rhythm */
.statement {
  display: grid; grid-template-columns: 1.15fr .9fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  background: var(--ink); color: #fff; border-radius: 22px;
  padding: clamp(1.75rem, 4vw, 3.25rem);
  margin-bottom: clamp(1rem, 3vw, 2rem);
}
.statement h3 {
  font-size: clamp(2rem, 3.6vw, 3.15rem);
  font-weight: 500; letter-spacing: -.04em; line-height: 1;
  margin: .35rem 0 1rem;
}
.statement p { color: rgba(255, 255, 255, .74); max-width: 40rem; }
.feature-kicker {
  font-family: var(--mono); font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--red);
}
.statement .feature-kicker { color: #ff6b88; }
.feature-list { display: grid; }
.feature-list article {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(220px, .85fr);
  gap: clamp(1.25rem, 4vw, 3.5rem); align-items: center;
  padding: clamp(1.85rem, 3.5vw, 2.75rem) 0;
  border-top: 1px solid var(--line);
}
.feature-list article:last-child { border-bottom: 1px solid var(--line); }
.feature-list h3 {
  font-size: clamp(1.7rem, 2.8vw, 2.45rem);
  font-weight: 500; letter-spacing: -.035em; line-height: 1.05;
  margin: .4rem 0 .65rem;
}
.feature-list p { color: var(--muted); max-width: 40rem; }
.feature-solo { grid-template-columns: 1fr !important; }
.feature-list .chips, .feature-list .levels, .feature-list .pages { margin-top: 0; }
.feature-list .pages { max-width: 340px; }
@media (max-width: 800px) {
  .statement, .feature-list article { grid-template-columns: 1fr; }
}

/* Legal iframe */
.frame {
  padding: 0; border: 0; border-radius: 20px;
  width: min(1180px, 96vw); height: min(92svh, 1100px);
  max-width: none; max-height: none;
  background: #fff; color: var(--ink); overflow: hidden;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6);
}
.frame[open] { display: flex; flex-direction: column; }
.frame::backdrop { background: rgba(8, 12, 22, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.frame-head {
  display: flex; align-items: center; gap: 16px;
  padding: 8px 10px 8px 20px; border-bottom: 1px solid var(--line); font-size: 15px;
}
.frame-head strong { margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame-head a { font-size: 14px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.frame-head a:hover { color: var(--ink); }
.frame-close {
  width: 40px; height: 40px; flex: none; border-radius: 50%; border: 0;
  background: var(--paper); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer;
}
.frame-close:hover { background: var(--paper-2); }
.frame iframe { flex: 1; border: 0; width: 100%; background: #fff; }
@media (max-width: 640px) {
  .frame { width: 100vw; height: 100svh; max-height: none; border-radius: 0; }
  .frame-head a { display: none; }
}
html.embedded .site-header,
html.embedded .site-footer,
html.embedded .skip-link,
html.embedded .back-link { display: none; }
html.embedded body,
html.embedded .legal { background: #fff; }
html.embedded .legal { padding-top: 1.25rem; }

/* Person */
.person-grid { display: grid; grid-template-columns: minmax(160px, 240px) minmax(0, 1fr); gap: clamp(1.75rem, 5vw, 4rem); align-items: center; }
.person-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.person h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 500; letter-spacing: -.04em; }
.person-role { margin-top: .35rem; color: var(--muted); }
.person-text { margin-top: 1.1rem; max-width: 40rem; font-size: 1.125rem; }
.person-text a { color: var(--red); }
@media (max-width: 640px) {
  .person-grid { grid-template-columns: 1fr; }
  .person-photo { width: 180px; }
}

/* Footer button */
.footer-btn { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.footer-btn:hover { color: var(--white); text-decoration: underline; }

/* Mobile quick access */
.dock { display: none; }
@media (max-width: 860px) {
  .dock {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
    position: fixed; z-index: 45;
    left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
    padding: 6px; border-radius: 18px;
    background: rgba(20, 20, 21, .9);
    -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px);
    box-shadow: 0 18px 40px -10px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .1);
    transition: transform .3s, opacity .3s;
  }
  .dock a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 54px; border-radius: 12px;
    color: #fff; font-size: .78rem; font-weight: 500; text-decoration: none;
  }
  .dock a:hover { color: #fff; }
  .dock svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .dock .dock-main { background: var(--red); }
  .dock.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
  .site-footer { padding-bottom: calc(3rem + 84px); }
  html.is-scrub:not(.no-js) .scene-nav { bottom: calc(86px + env(safe-area-inset-bottom)); }
  html.is-scrub:not(.no-js) .scene-meter { bottom: calc(86px + 2.45rem + env(safe-area-inset-bottom)); }
  html.is-scrub:not(.no-js) .scene-card { bottom: calc(86px + 3.9rem + env(safe-area-inset-bottom)); }
}

/* Signals walkthrough */
.paper [data-sig] { isolation: isolate; }
.paper [data-sig]::before {
  content: ""; position: absolute; z-index: -1; inset: -6px -4% -6px -4%;
  border-radius: 6px; background: rgba(211, 18, 56, .07); box-shadow: inset 0 0 0 1.5px rgba(211, 18, 56, .45);
  opacity: 0; transition: opacity .35s;
}
.paper [data-sig].is-current::before { opacity: 1; }
.signal-list li { transition: opacity .5s, transform .5s; }
.signal-list li.is-current strong { color: var(--red); }
.signals.is-anim .signal-list li:not(.is-on) { opacity: .28; transform: translateX(-6px); }
.paper .marker { transition: transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.signals.is-anim .paper [data-sig]:not(.is-on) .marker { transform: translateY(-50%) scale(0); }
.signals-band.is-pinned { height: 240vh; height: 240svh; padding: 0; }
.signals-band.is-pinned > .container {
  position: sticky; top: var(--header-h);
  height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column; justify-content: center;
}

/* Cookie note */
.cookie-note {
  position: fixed; z-index: 60; left: 16px; bottom: 16px;
  width: min(380px, calc(100% - 32px));
  display: grid; gap: .8rem;
  padding: 16px 18px; border-radius: var(--radius-lg);
  background: #fff; color: var(--ink); font-size: .9rem; line-height: 1.45;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35), 0 0 0 1px rgba(20, 20, 21, .08);
}
.cookie-note[hidden] { display: none; }
.cookie-note p { margin: 0; }
.cookie-title { font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; }
.cookie-note a { color: var(--red); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.btn-outline { color: var(--ink); border-color: #cfcac2; background: #fff; }
.btn-outline:hover { color: var(--ink); border-color: var(--ink); }
@media (max-width: 860px) {
  .cookie-note { left: 10px; right: 10px; width: auto; bottom: calc(88px + env(safe-area-inset-bottom)); }
}

/* Accessibility dialog */
.a11y {
  width: min(440px, calc(100% - 32px)); padding: 0; border: 0; border-radius: var(--radius-lg);
  background: #fff; color: var(--ink); box-shadow: 0 40px 120px rgba(0, 0, 0, .55);
}
.a11y::backdrop { background: rgba(10, 10, 12, .7); }
.a11y form { padding: 22px 24px 20px; }
.a11y h2 { font-size: 1.4rem; font-weight: 500; letter-spacing: -.02em; margin-bottom: .35rem; }
.a11y-intro { color: var(--muted); font-size: .95rem; margin-bottom: .9rem; }
.a11y-opt {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: center;
  padding: 14px 0; border-top: 1px solid var(--line); font-weight: 500; cursor: pointer;
}
.a11y-opt small { grid-column: 1; font-weight: 400; font-size: .875rem; color: var(--muted); }
.a11y-opt input {
  grid-column: 2; grid-row: 1 / 3; appearance: none; -webkit-appearance: none; position: relative;
  width: 48px; height: 28px; margin: 0; border-radius: 999px; background: #c9c5be; cursor: pointer;
}
.a11y-opt input::after {
  content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s;
}
.a11y-opt input:checked { background: var(--red); }
.a11y-opt input:checked::after { transform: translateX(20px); }
.a11y-hint { margin-top: .75rem; font-size: .85rem; color: var(--muted); }
.a11y-row { display: flex; justify-content: flex-end; margin-top: 1rem; }

/* High contrast */
html.hc {
  --muted: #2f2e2c;
  --muted-light: rgba(255, 255, 255, .92);
  --line: #a9a39a;
  --line-dark: rgba(255, 255, 255, .35);
}
html.hc .scene-veil { background: linear-gradient(90deg, rgba(20, 15, 11, .9) 0%, rgba(20, 15, 11, .76) 42%, rgba(20, 15, 11, .2) 70%, rgba(20, 15, 11, .1) 100%); }
@media (max-width: 800px) {
  html.hc .scene-veil { background: linear-gradient(180deg, rgba(20, 15, 11, .94) 0%, rgba(20, 15, 11, .86) 40%, rgba(20, 15, 11, .25) 60%, rgba(20, 15, 11, .85) 100%); }
}
html.hc .form-note, html.hc .contact-form label { color: rgba(255, 255, 255, .92); }
html.hc .scene-nav button { color: #fff; }

/* Calm mode chosen in the accessibility dialog */
html.calm { scroll-behavior: auto; }
html.calm *, html.calm *::before, html.calm *::after { animation: none !important; transition: none !important; }
html.calm .reveal, html.calm [data-reveal] { opacity: 1 !important; transform: none !important; }


/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  html.js-reveal .reveal,
  html.js-reveal:not(.no-js) .reveal { opacity: 1 !important; transform: none !important; }
}
