/* PitchAI Agent Engine — scroll story.
   Warm paper, pale oak, terracotta and sage, taken from the film itself. */

.film-root {
  --ink: #1b1916;
  --ink-2: #5d564d;
  --ink-3: #928a7f;
  --paper: #f6f3ee;
  --cream: #ede7df;
  --terra: #c0623a;
  --terra-2: #de8a5e;
  --terra-soft: #f4e2d6;
  --oak: #c6a275;
  --sage: #6f8a62;
  --sage-soft: #e3eadb;
  --gold: #b99e6a;
  --glass: rgba(255, 253, 250, .74);
  --glass-2: rgba(255, 255, 255, .55);
  --glass-line: rgba(255, 255, 255, .75);
  --line: rgba(44, 34, 22, .09);
  --shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 40px 80px -30px rgba(70, 48, 26, .32), 0 12px 28px -14px rgba(70, 48, 26, .18);
  --scrim: rgba(238, 233, 226, .72);
  --shadow-sm: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 10px 24px -12px rgba(70, 48, 26, .28);
  --bg: #ebe6df;
  --on-ink: #f6f2eb;
  --sans: "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Clash Display", "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Fraunces Film", "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-in: cubic-bezier(.5, 0, .75, 0);
  --spring: cubic-bezier(.34, 1.4, .5, 1);
  --gx: clamp(20px, 5.2vw, 88px);
  --navh: 64px;
  color-scheme: light;
}

.film-root[data-theme="night"] {
  --on-ink: #16181f;
  --ink: #f6f2eb;
  --ink-2: rgba(246, 242, 235, .74);
  --ink-3: rgba(246, 242, 235, .5);
  --glass: rgba(22, 27, 40, .62);
  --glass-2: rgba(255, 255, 255, .06);
  --glass-line: rgba(255, 255, 255, .12);
  --line: rgba(255, 255, 255, .1);
  --shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 40px 80px -30px rgba(0, 0, 0, .6), 0 12px 28px -14px rgba(0, 0, 0, .4);
  --scrim: rgba(18, 23, 36, .55);
  --shadow-sm: 0 10px 24px -12px rgba(0, 0, 0, .55);
  --terra-soft: rgba(222, 138, 94, .18);
  --sage-soft: rgba(143, 176, 126, .16);
  color-scheme: dark;
}

:where(.film-root, .film-root *) { box-sizing: border-box; }
.film-root { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
.film-root {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.5 var(--sans); letter-spacing: 0;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  transition: color .8s var(--ease);
}
:where(.film-root) a { color: inherit; }
:where(.film-root) :is(button, input, textarea) { font: inherit; color: inherit; letter-spacing: inherit; }
.i { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -.14em; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }

/* ---------- stage ---------- */
.stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--bg); }
/* The stage is as tall as the large viewport, so mobile URL bars never resize the canvas. */
.stage { bottom: auto; height: 100vh; height: 100lvh; contain: strict; }
.stage canvas, .stage .poster, .stage .poster img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage .poster img { object-fit: cover; }
.stage .poster { transition: opacity .5s; }
.stage.live .poster { opacity: 0; }
@media (max-aspect-ratio: 31/50) { .stage .poster { left: -14px; width: calc(100% + 28px); } }
.stage .film-video { position: absolute; width: 2px; height: 2px; opacity: 0; pointer-events: none; }
.vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 55% 55%, transparent 55%, rgba(60, 44, 28, .10)); }
.film-root[data-theme="night"] .vignette { background: radial-gradient(120% 90% at 55% 55%, transparent 50%, rgba(5, 8, 18, .35)); }

.story { position: relative; z-index: 1; pointer-events: none; }
.overlay { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.pins { position: fixed; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }

/* ---------- nav ---------- */
.nav {
  position: fixed; z-index: 20; top: env(safe-area-inset-top, 0px); left: 0; right: 0; height: var(--navh);
  display: flex; align-items: center; gap: 24px; padding: 0 var(--gx);
  transition: background .5s, box-shadow .5s, color .8s;
}
.nav.solid { background: transparent; box-shadow: none !important; }
.nav.after-mode { background: var(--glass); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.brand .word em { font-style: normal; font-weight: 500; color: var(--ink-3); margin-left: 2px; }
.mark { width: 22px; height: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 2.5px; transform: rotate(45deg) scale(.86); }
.mark i { border-radius: 3px; background: var(--ink); }
.mark i:nth-child(2) { background: var(--terra); }
.mark i:nth-child(3) { background: var(--oak); }
.mark i:nth-child(4) { background: var(--sage); }
.nav-end { margin-left: auto; }
.links { display: none; }
.links a { text-decoration: none; font-size: 14px; color: var(--ink-2); padding: 7px 12px; border-radius: 99px; transition: background .25s, color .25s; }
.links a:hover, .links a.cur { color: var(--ink); background: var(--glass-2); }
.nav-end { display: flex; align-items: center; gap: 10px; }
.lang { border: 0; background: transparent; font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 7px 10px; border-radius: 99px; cursor: pointer; }
.lang:hover { background: var(--glass-2); color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  --bgc: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer;
  padding: 15px 24px; border-radius: 99px; background: var(--bgc); color: var(--fg); text-decoration: none;
  font-weight: 600; font-size: 15.5px; letter-spacing: -.01em;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 12px 26px -12px rgba(30, 20, 10, .5);
  transition: transform .35s var(--spring), box-shadow .35s, background .3s; pointer-events: auto;
}
.btn .i { transition: transform .35s var(--spring); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 18px 34px -14px rgba(30, 20, 10, .55); }
.btn:hover .i { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn.ghost { --bgc: var(--glass); --fg: var(--ink); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 0 0 1px var(--line) inset; }
.btn-small { padding: 10px 17px; font-size: 14px; }
.film-root[data-theme="night"] .btn:not(.ghost) { --bgc: #f6f2eb; --fg: #16181f; }

/* ---------- reveal choreography ---------- */
.ch { position: absolute; inset: 0; visibility: hidden; }
.ch.active { visibility: visible; }
.ch [data-on] { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.ch [data-on].on { opacity: 1; transform: none; }
.ch [data-on].past { opacity: 0; transform: translate3d(0, -10px, 0); transition-duration: .45s, .6s; }
.ch:not(.active) [data-on] { transition: none; }

/* ---------- corner copy ---------- */
.tl { position: absolute; left: var(--gx); top: calc(var(--navh) + 5vh); max-width: min(34rem, 44vw); }
.tl::before { content: ""; position: absolute; inset: -40% -30% -40% -50%; z-index: -1; background: radial-gradient(closest-side, var(--scrim) 30%, transparent); pointer-events: none; transition: background .8s; }
.bl { position: absolute; left: var(--gx); bottom: calc(4.5vh + env(safe-area-inset-bottom, 0px)); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 12.5px; font-weight: 600; letter-spacing: .01em; color: var(--ink-2); }
.eyebrow i { width: 18px; height: 1.5px; background: var(--terra); border-radius: 2px; }
/* titles: a composition of weights, faces and entrances */
.title { margin: 0; font: 600 clamp(2.3rem, 3.9vw, 4.1rem)/1.0 var(--display); letter-spacing: -.02em; }
/* Fraunces, soft and a little wonky: the warm counterpoint to Clash Display. */
.title .w.serif, .sub, .task blockquote, .ask textarea, .ask textarea::placeholder { font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 72; }
.title[data-on] { opacity: 1; transform: none; }
.title .ln { display: block; white-space: nowrap; }
.title .ln.sm { font-family: var(--sans); font-size: .42em; font-weight: 500; letter-spacing: -.01em; line-height: 1.25; color: var(--ink-2); margin-bottom: .18em; }
.title .w { display: inline-block; position: relative; vertical-align: baseline; }

/* plain words rise out of a mask */
.title .w.plain { overflow: hidden; padding: .06em .02em .12em; margin: -.06em -.02em -.12em; vertical-align: bottom; }
.title .w.plain > span { display: inline-block; transform: translate3d(0, 112%, 0) rotate(4deg); transform-origin: 0 100%; transition: transform .95s var(--ease); }
.title.on .w.plain > span { transform: none; transition-delay: var(--d); }

/* lead-in lines drift in from the left with loose tracking */
.title .ln.sm .w.plain { overflow: visible; }
.title .ln.sm .w.plain > span { transform: translate3d(-.6em, 0, 0); opacity: 0; letter-spacing: .12em; transition: transform .9s var(--ease), opacity .7s, letter-spacing 1.1s var(--ease); }
.title.on .ln.sm .w.plain > span { transform: none; opacity: 1; letter-spacing: -.01em; transition-delay: var(--d); }

/* italic serif, letter by letter, out of a soft blur */
.title .w.serif { font-family: var(--serif); font-style: italic; font-weight: 420; font-size: 1.06em; letter-spacing: -.025em; color: var(--terra); line-height: .9; }
.film-root[data-theme="night"] .title .w.serif { color: var(--terra-2); }
.title .w.serif .c { display: inline-block; opacity: 0; filter: blur(8px); transform: translate3d(0, .32em, 0) rotate(10deg) scale(.9); transition: opacity .6s, filter .8s var(--ease), transform 1s var(--ease); }
.title.on .w.serif .c { opacity: 1; filter: none; transform: none; transition-delay: var(--d); }

/* the punch word: heavy, wiped in and settling with a spring */
.title .w.punch { font-weight: 700; letter-spacing: -.025em; font-size: 1.1em; }
.title .w.punch > span { display: inline-block; padding-right: .06em; background: linear-gradient(100deg, var(--ink) 45%, var(--terra) 130%); -webkit-background-clip: text; background-clip: text; color: transparent;
  clip-path: inset(0 100% 0 0); transform: scale(.72) translate3d(-.1em, .05em, 0); transform-origin: 0 80%; transition: clip-path .75s var(--ease), transform 1.1s var(--spring); }
.title.on .w.punch > span { clip-path: inset(-.2em -.2em -.3em -.2em); transform: none; transition-delay: var(--d); }
.film-root[data-theme="night"] .title .w.punch > span { background-image: linear-gradient(100deg, var(--ink) 45%, var(--terra-2) 130%); }

/* underlined word: rises, then a hand-drawn stroke draws beneath it */
.title .w.under > span { display: inline-block; opacity: 0; transform: translate3d(0, .3em, 0); transition: opacity .6s, transform .9s var(--ease); }
.title.on .w.under > span { opacity: 1; transform: none; transition-delay: var(--d); }
.title .w.under svg { position: absolute; left: -.04em; right: -.04em; bottom: -.12em; width: calc(100% + .08em); height: .3em; overflow: visible; }
.title .w.under path { fill: none; stroke: var(--terra); stroke-width: 3.2; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 260; stroke-dashoffset: 260; transition: stroke-dashoffset .9s var(--ease); }
.title.on .w.under path { stroke-dashoffset: 0; transition-delay: calc(var(--d) + 380ms); }

/* the "old way": quiet, light, and then crossed out */
.title .w.ghost { font-family: var(--sans); font-weight: 400; color: var(--ink-3); letter-spacing: -.01em; }
.title .w.ghost > span { display: inline-block; opacity: 0; filter: blur(6px); transition: opacity .8s, filter .9s var(--ease); }
.title.on .w.ghost > span { opacity: 1; filter: none; transition-delay: var(--d); }
.title .w.ghost::after { content: ""; position: absolute; left: -.05em; right: -.05em; top: 55%; height: .06em; min-height: 1.5px; border-radius: 1px; background: var(--terra); transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s var(--ease); }
.title.on .w.ghost::after { transform: scaleX(1); transition-delay: calc(var(--d) + 700ms); }

/* leaving: everything lifts away quickly, no waiting */
.title.past .w > span, .title.past .w .c { opacity: 0 !important; transform: translate3d(0, -.4em, 0) !important; transition: opacity .35s, transform .5s var(--ease-in) !important; transition-delay: 0s !important; }
.title.past .w.ghost::after { transform: scaleX(0); transition-delay: 0s; }

.sub { margin: 14px 0 0; font: italic 400 clamp(1.3rem, 1.9vw, 1.9rem)/1.15 var(--serif); letter-spacing: -.01em; color: var(--terra); text-wrap: balance; }
.ch .sub[data-on] { opacity: 0; transform: translate3d(0, 10px, 0); filter: blur(6px); transition: opacity .8s, transform 1s var(--ease), filter 1s var(--ease); }
.ch .sub[data-on].on { opacity: 1; transform: none; filter: none; transition-delay: var(--d, 0ms); }
.ch .sub[data-on].past { opacity: 0; transition-delay: 0s; }
.film-root[data-theme="night"] .sub { color: var(--terra-2); }
.eyebrow span { display: inline-block; }
.ch .eyebrow[data-on] i { transform: scaleX(0); transform-origin: 0 50%; transition: transform .8s var(--ease); }
.ch .eyebrow[data-on].on i { transform: none; }
.terms { margin: 14px 0 0; font-size: 13px; font-weight: 500; color: var(--ink-2); }

/* hero */
.hero { top: calc(var(--navh) + 7vh); max-width: min(40rem, 60vw); }
.display { font-size: clamp(3rem, 6.2vw, 6.4rem); }
.hero .sub { font-size: clamp(1.7rem, 2.8vw, 2.8rem); }
.film-root.intro .hero .lede, .film-root.intro .hero .btn, .film-root.intro .hero .eyebrow { animation: fadeUp 1.1s var(--ease) both; }
.film-root.intro .hero .eyebrow { animation-delay: .05s; } .film-root.intro .hero .lede { animation-delay: 1.45s; } .film-root.intro .hero .btn { animation-delay: 1.6s; }
.hero .lede { margin: 20px 0 26px; max-width: 26rem; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.hero .btn { pointer-events: auto; }
@keyframes rise { from { transform: translate3d(0, 108%, 0); } }
@keyframes fadeUp { from { opacity: 0; transform: translate3d(0, 14px, 0); } }
.scrollhint { position: absolute; left: 50%; bottom: 4vh; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.scrollhint i { width: 1.5px; height: 34px; background: linear-gradient(var(--ink-3), transparent); position: relative; overflow: hidden; }
.scrollhint i::after { content: ""; position: absolute; left: 0; top: -12px; width: 100%; height: 12px; background: var(--terra); animation: drop 1.8s var(--ease) infinite; }
@keyframes drop { to { transform: translateY(46px); } }

/* shared small card */
.card { background: var(--glass); border: 1px solid var(--glass-line); border-radius: 16px; box-shadow: var(--shadow-sm); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); }
.stack { display: grid; gap: 8px; justify-items: start; }

.steps { list-style: none; margin: 0; padding: 8px 14px 8px 8px; border-radius: 99px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow-sm); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); display: flex; gap: 18px; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.steps li { display: flex; align-items: center; gap: 8px; }
.steps li b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; box-shadow: 0 0 0 1px var(--ink-3) inset; transition: background .5s, color .5s, box-shadow .5s; }
.steps li.on { color: var(--ink); }
.steps li.on b { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.ch .steps li[data-on] { opacity: 1; transform: none; }

.night-card { padding: 12px 16px; max-width: 22rem; }
.clock { display: flex; align-items: center; gap: 12px; }
.clock b { font: 600 2rem/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.night-card p { margin: 8px 0 0; display: flex; gap: 8px; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
.night-card p .i { color: var(--sage); flex: none; margin-top: 2px; }
.sunmoon { position: relative; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, #f7d59b, #eeaa6a); color: #fff; transition: background 1s; }
.ch .sunmoon[data-on] { opacity: 1; transform: none; }
.sunmoon .i { position: absolute; font-size: 16px; transition: transform .8s var(--ease), opacity .5s; }
.sunmoon .i:last-child { opacity: 0; transform: rotate(-60deg) scale(.6); }
.sunmoon.b { background: linear-gradient(145deg, #3c4a6e, #1d2540); }
.sunmoon.b .i:first-child { opacity: 0; transform: rotate(60deg) scale(.6); }
.sunmoon.b .i:last-child { opacity: 1; transform: none; color: #f3e3bd; }

.receipt { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.receipt small, .region small { display: block; font-size: 11px; color: var(--ink-3); font-weight: 500; }
.receipt b { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.receipt b .i { color: var(--terra-2); }
.receipt .arrow { color: var(--terra-2); }
.region { display: flex; align-items: center; gap: 9px; padding: 9px 12px; font-size: 12.5px; }
.region b { font-weight: 600; }
.toggle { width: 32px; height: 19px; border-radius: 99px; background: var(--line); position: relative; transition: background .4s; margin-left: 4px; }
.toggle i { position: absolute; top: 2.5px; left: 2.5px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .5s var(--spring); }
.toggle.on { background: var(--sage); } .toggle.on i { transform: translateX(13px); }
.ch .toggle[data-on] { opacity: 1; transform: none; }

.bill { padding: 12px 14px; min-width: 20rem; }
.bh { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.bh .i { color: var(--terra-2); }
.price { margin-left: auto; display: grid; overflow: hidden; font-size: 13px; }
.ch .price[data-on] { opacity: 1; transform: none; }
.price > * { grid-area: 1/1; transition: transform .6s var(--ease), opacity .4s; font-style: normal; text-align: right; }
.price em { color: var(--ink-3); }
.price strong { transform: translateY(110%); opacity: 0; color: var(--terra-2); }
.price.b em { transform: translateY(-110%); opacity: 0; }
.price.b strong { transform: none; opacity: 1; }
.price.zero strong { transform: none; opacity: 1; color: var(--ink-3); font-weight: 600; }
.track { list-style: none; margin: 10px 0 0; padding: 0; display: flex; gap: 14px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.track li { display: flex; align-items: center; gap: 6px; }
.ch .track li[data-on] { opacity: 1; transform: none; }
.track i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: transparent; box-shadow: 0 0 0 1.5px var(--line) inset; transition: background .5s, color .5s, transform .5s var(--spring); }
.track li.on { color: var(--ink); }
.track li.on i { background: var(--sage); color: #fff; box-shadow: none; transform: scale(1.1); }
.track li:last-child.on i { background: var(--terra); }
.bill.muted .bh .i { color: var(--ink-3); }

/* "Describe once, it keeps running": the central statement above the office */
.tl.center { left: 50%; right: auto; transform: translateX(-50%); top: calc(var(--navh) + 3.5vh); max-width: none; width: max-content; text-align: center; }
.tl.center::before { inset: -35% -25% -45%; background: radial-gradient(closest-side, var(--scrim) 55%, transparent); }
.tl.center .eyebrow { justify-content: center; }
.tl.center .title { font-size: clamp(3.2rem, 7vw, 7.4rem); line-height: .95; }
.tl.center .title .ln.sm { font-size: .36em; margin-bottom: .1em; }
.tl.center .sub { font-size: clamp(1.8rem, 3.2vw, 3.2rem); margin-top: 6px; }
.tl.center .steps { position: static; display: inline-flex; margin-top: 22px; }

/* ---------- pins on the desks ---------- */
.pin { position: absolute; left: 0; top: 0; transform-origin: 0 0; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s .5s; will-change: transform; }
.pin.on { opacity: 1; visibility: visible; transition: opacity .5s var(--ease); }
.wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wires line { stroke: var(--terra); stroke-width: 1.2; stroke-dasharray: 2 5; opacity: 0; animation: flow 1.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -14; } }

/* task definition → pinned card → compact desk chip */
.pin.task { width: min(27rem, calc(100vw - 28px)); }
.task .full { background: var(--glass); border: 1px solid var(--glass-line); border-radius: 20px; padding: 16px 18px 18px; box-shadow: var(--shadow); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5); }
.th { display: flex; align-items: center; gap: 9px; font-size: 12.5px; }
.th b { font-weight: 600; color: var(--ink-2); }
.badge { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; background: linear-gradient(145deg, var(--terra-2), var(--terra)); color: #fff; font-size: 14px; }
.status { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 99px; font-size: 11px; font-weight: 600; background: var(--terra-soft); color: var(--terra); white-space: nowrap; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.task[data-status="1"] .status { background: var(--line); color: var(--ink-2); }
.task[data-status="2"] .status { background: var(--sage-soft); color: var(--sage); }
.task[data-status="2"] .status i { animation: pulse 1.4s infinite; }
.task[data-status="3"] .status { background: var(--sage); color: #fff; }
.film-root[data-theme="night"] .task[data-status="2"] .status { color: #a9c79a; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(111, 138, 98, .55); } 70% { box-shadow: 0 0 0 7px rgba(111, 138, 98, 0); } 100% { box-shadow: 0 0 0 0 rgba(111, 138, 98, 0); } }
.task blockquote { margin: 12px 0 0; font: italic 400 1.62rem/1.25 var(--serif); letter-spacing: -.008em; color: var(--ink); text-wrap: pretty; }
.task .mini { display: none; }
.pin.task.compact { width: auto; }
.task.compact .full { display: none; }
.task.compact .mini { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 5px; border-radius: 99px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow-sm); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font-size: 12px; white-space: nowrap; }
.mini .badge { width: 22px; height: 22px; border-radius: 50%; font-size: 12px; }
.mini > b { font-weight: 600; }
.mini .done { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--sage); color: #fff; font-size: 10px; }
.mini .cnt, .mini .perm { display: none; }
.task.counting .mini .done, .task.perms .mini .done { display: none; }
.task.counting .mini .cnt { display: inline-flex; align-items: center; gap: 6px; }
.cnt > b { font-variant-numeric: tabular-nums; color: var(--sage); }
.film-root[data-theme="night"] .cnt > b { color: #a9c79a; }
.cnt .lock { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; color: var(--ink-3); font-weight: 500; }
.cnt .ping { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; background: var(--terra); color: #fff; font-size: 10px; transform: scale(.6); opacity: .35; }
.cnt .ping.go { animation: ping .9s var(--spring); }
@keyframes ping { 0% { transform: scale(.4) translateY(-8px); opacity: 0; } 40% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(.6); opacity: .35; } }
.task.perms .mini .perm { display: inline-flex; gap: 3px; }
.perm i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; transition: background .5s, color .5s, opacity .5s; }
.perm i.yes { background: #8fb07e; color: #fff; box-shadow: 0 0 0 3px rgba(143, 176, 126, .25); }
.perm i.no { color: var(--ink-3); opacity: .35; box-shadow: 0 0 0 1px var(--line) inset; }
.task.finished .mini .done { display: grid; }
.task.quiet .mini > b { display: none; }
.task.quiet .mini { padding-right: 5px; gap: 4px; }
.tl::before { background: radial-gradient(closest-side, var(--scrim) 45%, transparent); }

/* inputs & outcomes: tiny annotated icons beside the monitors */
.io { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 5px; border-radius: 99px; white-space: nowrap; font-size: 12px; font-weight: 500; color: var(--ink); background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow-sm); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); }
.io > .i { width: 20px; height: 20px; padding: 4px; border-radius: 50%; background: var(--terra-soft); color: var(--terra); }
.io.in > .i { background: var(--line); color: var(--ink-2); }
.io.out.flying { box-shadow: 0 10px 24px -10px rgba(192, 98, 58, .6); border-color: var(--terra-2); }
.io.ok > .i { background: var(--sage); color: #fff; }
.io.warn > .i { background: var(--terra); color: #fff; }
.io.auto { background: var(--ink); color: var(--on-ink); border-color: transparent; }
.io.auto > .i { background: var(--terra); color: #fff; }
.pin.io:not(.on) { transform-origin: 50% 50%; }
.mini-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 20px; padding: 0 2px 0 4px; }
.mini-bars i { width: 4px; height: calc(var(--a) * .2px); border-radius: 1.5px; background: var(--sage); }
.mini-bars i:first-child { background: var(--terra); }

/* real system logos in a small white disc */
.logo { width: 20px; height: 20px; flex: none; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 1px rgba(44, 34, 22, .1); overflow: hidden; }
.logo img { width: 13px; height: 13px; object-fit: contain; display: block; }
.node .logo { width: 22px; height: 22px; } .node .logo img { width: 14px; height: 14px; }
.perm i .logo { width: 18px; height: 18px; box-shadow: none; } .perm i .logo img { width: 11px; height: 11px; }
.perm i.no .logo { filter: grayscale(1); opacity: .6; }
.logo.wide { width: auto; min-width: 20px; padding: 0 6px; border-radius: 10px; }
.logo.wide img { width: auto; height: 8px; max-width: 58px; }
.node .logo.wide img { height: 9px; max-width: 64px; }
.perm i .logo.wide { padding: 0 3px; } .perm i .logo.wide img { height: 6px; max-width: 26px; }
.io.ok > .logo, .io.warn > .logo { box-shadow: 0 0 0 2px var(--sage); }
.io.warn > .logo { box-shadow: 0 0 0 2px var(--terra); }

/* integrations */
.node { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 5px; border-radius: 99px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow-sm); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.node .i { width: 20px; height: 20px; padding: 4px; border-radius: 50%; background: var(--terra-soft); color: var(--terra); }
.node.mine { background: var(--ink); color: var(--on-ink); }
.node.mine .i { background: var(--terra); color: #fff; }
.core { display: inline-flex; align-items: center; gap: 8px; padding: 11px 17px; border-radius: 16px; background: var(--ink); color: var(--on-ink); font-weight: 600; font-size: 14px; box-shadow: 0 0 0 8px rgba(192, 98, 58, .10), 0 0 0 20px rgba(192, 98, 58, .05), 0 24px 50px -20px rgba(40, 20, 10, .5); }
.core .i { color: var(--terra-2); }

/* first-task invitation */
.here span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: var(--ink); color: var(--on-ink); font-size: 12.5px; font-weight: 600; box-shadow: 0 0 0 6px rgba(192, 98, 58, .18); animation: breathe 2.4s ease-in-out infinite; }
.here .i { color: var(--terra-2); }
@keyframes breathe { 50% { box-shadow: 0 0 0 12px rgba(192, 98, 58, .06); } }
.pin.ask { pointer-events: auto; width: min(22rem, calc(100vw - 28px)); }
.ask form { display: grid; gap: 10px; padding: 16px; border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5); }
.ask label { font: 600 1rem/1.25 var(--display); letter-spacing: -.02em; }
.ask textarea { resize: none; border: 0; outline: 0; border-radius: 12px; padding: 11px 13px; background: var(--glass-2); box-shadow: 0 0 0 1px var(--line) inset; font: italic 400 1.1rem/1.3 var(--serif); transition: box-shadow .3s; }
.ask textarea:focus { box-shadow: 0 0 0 2px var(--terra) inset; }
.ask textarea::placeholder { color: var(--ink-3); }
.ask .btn { width: 100%; padding: 13px 18px; font-size: 14.5px; }
.ask small { text-align: center; font-size: 11.5px; color: var(--ink-3); }

/* ---------- chapter rail & buffer ---------- */
.rail { position: fixed; right: 18px; top: 50%; translate: 0 -50%; z-index: 10; display: grid; gap: 9px; }
.rail a { display: block; position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); opacity: .5; transition: opacity .3s, transform .4s var(--spring), background .3s; }
.rail a:hover, .rail a.cur { opacity: 1; background: var(--terra); transform: scale(1.4); }
.rail a span { position: absolute; right: 16px; top: 50%; translate: 0 -50%; white-space: nowrap; font-size: 11.5px; font-weight: 600; color: var(--ink-2); opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .3s; pointer-events: none; }
.rail a:hover span { opacity: 1; transform: none; }
.buffer { position: fixed; left: 18px; bottom: 16px; z-index: 10; display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); opacity: 0; pointer-events: none; transition: opacity .3s; }
/* Shown only while the reader has outrun the film for a moment. */
.buffer.on { opacity: 1; transition-delay: .1s; }
.buffer.on svg { animation: buffer-spin .9s linear infinite; }
@keyframes buffer-spin { to { transform: rotate(270deg); } }
.buffer svg { width: 16px; height: 16px; transform: rotate(-90deg); }
.buffer circle { fill: none; stroke: var(--line); stroke-width: 2.5; }
.buffer .arc { stroke: var(--terra); stroke-dasharray: 50.3; stroke-dashoffset: 36; stroke-linecap: round; }
.rail.gone, .overlay.gone, .pins.gone { opacity: 0; pointer-events: none; transition: opacity .4s; }
.rail, .overlay { transition: opacity .4s; }

/* ---------- after the story ---------- */
.after iframe { display: block; width: 100%; height: 100vh; border: 0; }
.after { position: relative; z-index: 5; background: #fff; color: #1b1916; --ink: #1b1916; --ink-2: #5d564d; --ink-3: #928a7f; --glass: #fff; --glass-2: #faf7f3; --line: rgba(44, 34, 22, .09); --terra-soft: #f4e2d6; --sage-soft: #e3eadb; }
.after::before { content: ""; position: absolute; left: 0; right: 0; top: -30vh; height: 30vh; background: linear-gradient(to bottom, transparent, var(--paper)); pointer-events: none; }
.sec { padding: clamp(80px, 12vh, 140px) var(--gx); max-width: 1240px; margin: 0 auto; }
.sec h2 { margin: 0; font: 600 clamp(2rem, 3.8vw, 3.4rem)/1.04 var(--display); letter-spacing: -.04em; text-wrap: balance; }
.sec .lede { color: var(--ink-2); }
.roi { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.sliders { display: grid; gap: 22px; margin-top: 36px; }
.sl label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 500; color: var(--ink-2); margin-bottom: 10px; }
.sl label b { color: var(--ink); font-variant-numeric: tabular-nums; }
.sl input { width: 100%; accent-color: var(--terra); height: 4px; }
.roi-card { background: #1b1916; color: #f6f2eb; border-radius: 28px; padding: 30px; box-shadow: 0 40px 80px -40px rgba(40, 20, 10, .6); position: sticky; top: calc(var(--navh) + 30px); }
.roi-card .row { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 14.5px; color: rgba(246, 242, 235, .7); }
.roi-card .row b { font: 600 1.4rem/1 var(--display); color: #fff; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.roi-card .big { padding: 22px 0 6px; border: 0; }
.roi-card .big b { font-size: clamp(3rem, 6vw, 4.6rem); color: var(--terra-2); letter-spacing: -.05em; }
.roi-card small { display: block; margin-top: 14px; font-size: 12px; color: rgba(246, 242, 235, .5); line-height: 1.5; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 44px; }
.plan { background: #fff; border-radius: 26px; padding: 26px; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgba(60, 40, 20, .35); display: flex; flex-direction: column; gap: 6px; transition: transform .5s var(--spring), box-shadow .5s; }
.plan:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 40px 70px -40px rgba(60, 40, 20, .45); }
.plan h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.plan .pr { font: 650 2.4rem/1 var(--display); letter-spacing: -.04em; margin-top: 14px; }
.plan .un { font-size: 13px; color: var(--ink-3); }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.plan li { display: flex; gap: 8px; } .plan li .i { color: var(--sage); margin-top: 3px; }
.plan .btn { margin-top: auto; --bgc: var(--cream); --fg: var(--ink); box-shadow: none; }
.plan.featured { background: #1b1916; color: #f6f2eb; }
.plan.featured h3, .plan.featured .un, .plan.featured ul { color: rgba(246, 242, 235, .7); }
.plan.featured .btn { --bgc: var(--terra); --fg: #fff; }
.ideas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.idea-col { background: #fff; border-radius: 24px; padding: 24px; box-shadow: 0 0 0 1px var(--line); }
.idea-col h3 { margin: 0 0 12px; font-size: 15px; }
.idea-col button { display: flex; width: 100%; text-align: left; gap: 10px; align-items: center; border: 0; background: transparent; padding: 11px 10px; margin: 0 -10px; width: calc(100% + 20px); border-radius: 12px; font-size: 14px; color: var(--ink-2); cursor: pointer; transition: background .25s, color .25s; }
.idea-col button .i { margin-left: auto; opacity: 0; transition: opacity .25s, transform .3s var(--spring); color: var(--terra); }
.idea-col button:hover { background: var(--terra-soft); color: var(--ink); }
.idea-col button:hover .i { opacity: 1; transform: translateX(2px); }
.faq { margin-top: 30px; max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-size: 18px; font-weight: 600; letter-spacing: -.02em; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { transition: transform .4s var(--spring); color: var(--terra); flex: none; margin-top: 4px; }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq p { margin: 0 0 22px; color: var(--ink-2); max-width: 44em; }
.final { text-align: center; }
.final h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.final .actions { margin-top: 34px; }
footer { padding: 40px var(--gx) 50px; display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: space-between; font-size: 13px; color: var(--ink-3); border-top: 1px solid var(--line); max-width: 1240px; margin: 0 auto; }
footer a { color: var(--ink-2); text-decoration: none; } footer a:hover { color: var(--terra); }
footer .brand { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .rail { display: none; }
}
@media (max-width: 1000px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px), (max-aspect-ratio: 1/1) {
  .film-root { --navh: 56px; --gx: 16px; }
  .nav { gap: 10px; }
  .brand .word em { display: none; }
  #navCta { padding: 9px 14px; font-size: 13px; }
  .tl { top: calc(var(--navh) + 8px); max-width: none; right: var(--gx); }
  .tl.center { width: auto; left: var(--gx); right: var(--gx); transform: none; }
  .tl.center .title { font-size: clamp(2.6rem, 13vw, 3.6rem); }
  .tl.center .sub { font-size: 1.6rem; }
  .tl.center .steps { gap: 8px; font-size: 11px; }
  .tl::before { inset: -30% -20% -40%; }
  .title { font-size: clamp(1.9rem, 8.6vw, 2.6rem); }
  .sub { font-size: 1.2rem; }
  .eyebrow { margin-bottom: 6px; font-size: 11.5px; }
  .hero { top: calc(var(--navh) + 3vh); }
  .display { font-size: clamp(2.6rem, 13vw, 3.6rem); }
  .hero .sub { font-size: 1.7rem; }
  .hero .lede { font-size: 14.5px; margin: 12px 0 18px; }
  .bl { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); right: var(--gx); }
  .steps { gap: 12px; font-size: 12px; }
  .bill { min-width: 0; }
  .receipt { flex-wrap: wrap; gap: 6px 10px; }
  .task blockquote { font-size: 1.15rem; }
  .io, .node { font-size: 11px; }
  .buffer { bottom: auto; top: calc(var(--navh) + 4px); left: auto; right: 14px; }
  .buffer span { display: none; }
  .roi, .ideas-grid { grid-template-columns: 1fr; }
  .roi-card { position: static; }
  .plans { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}

/* Performance A/B: no live background blur (html.noblur) */
.film-root.noblur * { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

/* model-agnostic chapter: the AI each desk was given, above its monitors */
.io.model { gap: 8px; padding: 5px 12px 5px 5px; }
.io.model .logo { width: 26px; height: 26px; } .io.model .logo img { width: 17px; height: 17px; }
.io.model small { display: block; font-size: 10px; font-weight: 500; color: var(--ink-3); line-height: 1.1; }
.io.model b { display: block; font-size: 13px; font-weight: 600; line-height: 1.2; }
.io.model .stack { display: inline-flex; }
.io.model .stack .logo + .logo { margin-left: -8px; }

/* ---- the opening, pre-rendered into the page (declarative shadow DOM) ----
   It is in its "on" state from the first paint and plays the same entrance as
   keyframe animations: they start with the first paint, without any script
   (transitions in a pre-rendered shadow root would wait for one). Fill mode
   "backwards": once played, the regular styles (scrolling out included) rule. */
.ch-promise[data-pre] .title.on .w.plain > span { animation: pre-rise .95s var(--ease) var(--d, 0ms) backwards; }
.ch-promise[data-pre] .title.on .ln.sm .w.plain > span { animation: pre-lead .9s var(--ease) var(--d, 0ms) backwards; }
.ch-promise[data-pre] .title.on .w.serif .c { animation: pre-letter 1s var(--ease) var(--d, 0ms) backwards; }
.ch-promise[data-pre] .title.on .w.punch > span { animation: pre-punch 1.1s var(--spring) var(--d, 0ms) backwards; }
.ch-promise[data-pre] .sub[data-on].on { animation: pre-sub .9s var(--ease) var(--d, 0ms) backwards; }
@keyframes pre-rise { from { transform: translate3d(0, 112%, 0) rotate(4deg); } }
@keyframes pre-lead { from { transform: translate3d(-.6em, 0, 0); opacity: 0; letter-spacing: .12em; } }
@keyframes pre-letter { from { opacity: 0; filter: blur(8px); transform: translate3d(0, .32em, 0) rotate(10deg) scale(.9); } }
@keyframes pre-punch { from { clip-path: inset(0 100% 0 0); transform: scale(.72) translate3d(-.1em, .05em, 0); } }
@keyframes pre-sub { from { transform: translate3d(0, 12px, 0); } } /* no fade: visible from the first paint (it is the largest text) */

/* ---- interleaved page: the film lives inside a full-screen fixed layer ---- */
.film-root { position: absolute; inset: 0; overflow: hidden; }
.film-root .nav, .film-root .rail, .film-root .story, .film-root .after, .film-root .skip { display: none !important; }
.film-root { --navh: 72px; }
/* ---- pre-rendered opening: entrance delays ---- */
.ch-promise [data-css="--d:0ms"] { --d: 0ms; }
.ch-promise [data-css="--d:45ms"] { --d: 45ms; }
.ch-promise [data-css="--d:230ms"] { --d: 230ms; }
.ch-promise [data-css="--d:400ms"] { --d: 400ms; }
.ch-promise [data-css="--d:450ms"] { --d: 450ms; }
.ch-promise [data-css="--d:580ms"] { --d: 580ms; }
.ch-promise [data-css="--d:608ms"] { --d: 608ms; }
.ch-promise [data-css="--d:636ms"] { --d: 636ms; }
/* ---- end of entrance delays ---- */
