/* ============================================================================
   Home (index.html). Page-local styles. Shared tokens/components: forge.css.
   Anchors vary on purpose: hero lead, mess lead, rail, hush bottom-lead,
   agents split, tools lead, contract split, pricing lead, faq split, close centre.
   ========================================================================== */

/* ---------------------------------------------------------------- hero -- */
/* Giant type, one glass object passing through it. Depth comes from layer order and rates:
   far film (slowest) < line A < object < line B front copy < app window < events (fastest). */
.hero { position: relative; height: 230vh; }
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; isolation: isolate; }
.hero__far { position: absolute; inset: -5%; z-index: 0; will-change: transform; opacity: 0.38; }
:root[data-theme="light"] .hero__far { opacity: 0.7; }
.hero__far .vid { position: absolute; inset: 0; background: var(--bg); }
.hero__far .vid > img, .hero__far .vid > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(60% 55% at 64% 46%, color-mix(in oklab, var(--accent) 16%, transparent), transparent 70%), linear-gradient(0deg, var(--bg) 0%, color-mix(in oklab, var(--bg) 0%, transparent) 34%); }

/* the giant type. Both copies share every metric so the front copy sits exactly on the back one. */
.hero__type { position: absolute; inset: 0; z-index: 2; margin: 0; pointer-events: none;
  font-family: var(--f-display); font-weight: 640; font-size: clamp(3rem, 0.6rem + 9.3vw, 15rem); line-height: 1; letter-spacing: -0.045em; color: var(--ink); }
.hero__type--front { z-index: 5; }
.hero__line { position: absolute; display: block; white-space: nowrap; will-change: transform; }
.hero__line em { font-style: normal; font-weight: 300; letter-spacing: -0.04em; }
.hero__line--a { left: var(--gutter); top: calc(var(--nav-h) + 7vh); }
.hero__line--b { right: var(--gutter); top: calc(var(--nav-h) + 7vh + 1.04em); }
.hero__type--front .hero__line--a { visibility: hidden; }


/* the object: a cut-out glass contract (alpha, no box), with a soft contact shadow under it */
.hero__obj { position: absolute; left: 50%; top: 50%; z-index: 4; width: clamp(240px, 34vw, 980px); margin-left: calc(clamp(240px, 34vw, 980px) / -2); margin-top: calc(clamp(240px, 34vw, 980px) * -0.46); will-change: transform; pointer-events: none; }
.hero__objspin { will-change: transform; transform-origin: 50% 55%; }
.hero__objspin img { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgb(30 18 90 / 0.45)); }
:root[data-theme="light"] .hero__objspin img { filter: drop-shadow(0 30px 40px rgb(60 40 160 / 0.28)); }
.hero__objshadow { position: absolute; left: 18%; right: 18%; bottom: -8%; height: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgb(80 60 220 / 0.38), transparent); filter: blur(10px); z-index: -1; }

.hero__foot { position: absolute; left: 0; right: 0; max-width: none; bottom: clamp(28px, 7vh, 72px); z-index: 6; display: grid; justify-items: start; will-change: transform, opacity; }
.hero__foot .lede { max-width: 38ch; color: var(--ink-2); }
.hero__foot .btn-row { margin-top: var(--s-5); }
.hero__fine { margin-top: var(--s-4); font-size: var(--t-xs); font-family: var(--f-mono); letter-spacing: 0.04em; color: var(--ink-3); }
.hero__mid { position: absolute; left: 50%; top: 0; z-index: 3; width: min(1180px, 80vw); will-change: transform; transform: translate3d(-50%, 110vh, 0); transform-origin: 50% 0; }
.hero__app { margin: 0; }
.hero__app img { width: 100%; }
.hero__near { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.ev { position: absolute; display: flex; align-items: center; gap: 12px; padding: 11px 16px 11px 11px; border-radius: var(--r-md); background: var(--glass-strong); border: 1px solid var(--line-2); box-shadow: var(--e2), var(--edge); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); will-change: transform, opacity; white-space: nowrap; }
.ev b { display: block; font-size: var(--t-sm); font-weight: 600; color: var(--ink); line-height: 1.3; }
.ev small { display: block; font-size: 0.8125rem; color: var(--ink-3); }
.ev__ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent-text); }
.ev__ico--hot { background: color-mix(in oklab, var(--hot) 18%, transparent); color: var(--hot); }
.ev__ico--ok { background: color-mix(in oklab, var(--ok) 18%, transparent); color: var(--ok); }
.ev__ico .i { width: 18px; height: 18px; }
.ev--a { right: calc(var(--gutter) + 2vw); bottom: clamp(40px, 12vh, 120px); }
.ev--b { left: 8vw; top: 62vh; opacity: 0; }
.ev--c { right: 10vw; top: 58vh; opacity: 0; }

/* tablet: type steps down a rung, the object sits lower so line one stays clear */
@media (min-width: 761px) and (max-width: 1100px) {
  .hero__type { font-size: 10.4vw; }
  .hero__line--a { top: calc(var(--nav-h) + 5vh); }
  .hero__line--b { top: calc(var(--nav-h) + 5vh + 1.04em); }
  .hero__obj { --ow: 40vw; width: 40vw; margin-left: -20vw; margin-top: -14vw; }
}
/* phone: composed, not shrunk. Lines stack at the left, the object floats between line B and the
   copy, and the travel is shorter. */
@media (max-width: 760px) {
  .hero { height: 190vh; }
  .hero__type { font-size: clamp(2.6rem, 13.6vw, 4.2rem); line-height: 1.02; letter-spacing: -0.04em; }
  .hero__line--a { left: var(--gutter); top: calc(var(--nav-h) + 3.5vh); }
  .hero__line--b { left: var(--gutter); right: auto; top: calc(var(--nav-h) + 3.5vh + 1.02em); white-space: normal; width: 7.2em; }
  .hero__obj { width: 68vw; margin-left: -34vw; margin-top: -32vw; top: 48%; }
  .hero__foot { bottom: 84px; }
  .hero__foot .lede { font-size: var(--t-base); max-width: 34ch; }
  .hero__foot .btn-row { margin-top: var(--s-4); }
  .hero__foot .btn--lg { --h: 50px; padding: 0 1.1em; font-size: var(--t-sm); }
  .hero__fine { display: none; }
  .hero__mid { width: 94vw; }
  .ev { padding: 8px 12px 8px 8px; gap: 9px; }
  .ev__ico { width: 30px; height: 30px; }
  .ev b { font-size: 0.8125rem; } .ev small { font-size: 0.75rem; }
  .ev--a { display: none; }
  .ev--b { left: 3vw; top: 70vh; }
  .ev--c { display: none; }
}
@media (max-height: 700px) and (min-width: 761px) { .hero__fine { display: none; } }

/* ---------------------------------------------------------------- mess -- */
.mess__stage { overflow: hidden; background: var(--bg); }
.mess__film { position: absolute; inset: 0; z-index: 0; will-change: opacity, transform; }
.mess__film > img, .mess__film > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mess__scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgb(8 7 15 / 0.9) 0%, rgb(8 7 15 / 0.6) 42%, rgb(8 7 15 / 0.2) 70%, rgb(8 7 15 / 0.7) 100%); }
:root[data-theme="light"] .mess__scrim { background: linear-gradient(180deg, rgb(8 7 15 / 0.82) 0%, rgb(8 7 15 / 0.45) 42%, rgb(8 7 15 / 0.2) 70%, rgb(8 7 15 / 0.7) 100%); }
.mess__copy { position: absolute; left: 0; right: 0; top: calc(var(--nav-h) + 5vh); z-index: 3; display: grid; }
.mess__line { grid-area: 1 / 1; max-width: 19ch; color: #efecf7; }
.mess__line--b { max-width: 16ch; }
/* pause control for the pinned film: top right under the nav, so the fixed Ask Forge button never covers it */
.mess__stage > .vid-ctl { bottom: auto; top: calc(var(--nav-h) + 16px); z-index: 4; }
@media (max-width: 760px) { .mess__film > img, .mess__film > video { object-position: 38% 50%; } }
.mess__field { position: absolute; inset: 0; z-index: 2; }
.board { position: absolute; left: 50%; bottom: 6vh; width: min(1100px, calc(100vw - var(--gutter) * 2)); height: 46vh; transform: translateX(-50%); display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; opacity: 0; will-change: opacity; }
.board__col { border-radius: var(--r-md); background: rgb(19 17 31 / 0.72); border: 1px solid rgb(239 236 247 / 0.1); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 12px; }
.board__col span { font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: var(--track-label); text-transform: uppercase; color: #8a85a3; }
.frag { position: absolute; left: 0; top: 0; width: 230px; display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; font-size: 0.8125rem; line-height: 1.35; color: #16131f; box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.6); will-change: transform; }
.frag b { font-weight: 600; } .frag small { color: #6b6680; font-size: 0.75rem; }
.frag i { font-style: normal; font-family: var(--f-mono); font-size: 0.6875rem; color: #55506b; }
.frag--dm { background: #ffffff; }
.frag--sheet { background: #e8f4ea; grid-template-columns: auto 1fr; column-gap: 8px; font-family: var(--f-mono); font-size: 0.75rem; }
.frag--note { background: #fde68a; font-weight: 500; }
.frag--cal { background: #dbeafe; grid-template-columns: auto 1fr; column-gap: 8px; }
.frag--doc { background: #f1eff7; grid-template-columns: auto 1fr; column-gap: 8px; }
.frag.is-filed { background: #1b1829; color: #efecf7; box-shadow: none; border: 1px solid rgb(239 236 247 / 0.1); transition: background-color 380ms var(--ease-out), color 380ms var(--ease-out); }
.frag.is-filed small, .frag.is-filed i { color: #8a85a3; }
/* tablet: keep the headline in the left half so the scraps on the right never cover it */
@media (min-width: 761px) and (max-width: 1100px) {
  .mess__line, .mess__line--b { max-width: 12ch; font-size: clamp(2rem, 4.6vw, 2.9rem); }
}
@media (max-width: 760px) {
  .mess__line { max-width: 14ch; font-size: clamp(1.9rem, 8.2vw, 2.4rem); }
  .board { height: 48vh; bottom: 4vh; gap: 6px; }
  .board__col { padding: 8px 6px; }
  .board__col span { font-size: 0.625rem; letter-spacing: 0.05em; }
  .frag { width: 150px; padding: 7px 9px; font-size: 0.6875rem; }
  .frag small { display: none; }
}

/* -------------------------------------------------------------- stages -- */
.stages__stage { display: flex; align-items: center; overflow: hidden; background: var(--bg-dusk); }
.stages__rail { display: flex; align-items: stretch; gap: clamp(16px, 2vw, 28px); padding: calc(var(--nav-h) + 2vh) var(--gutter) 4vh; }
.stages__lead { flex: 0 0 auto; width: clamp(280px, 30vw, 440px); align-self: center; padding-right: 2vw; }
.stages__lead .body { margin-top: var(--s-5); }
.stage { flex: 0 0 auto; width: clamp(280px, 27vw, 400px); display: flex; flex-direction: column; }
.stage .stage__media { opacity: 0.5; transition: opacity 500ms var(--ease-out); }
.stage.is-on .stage__media { opacity: 1; }
.stage__media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.stage__media > img, .stage__media > video, .stage__media.vid > img { width: 100%; height: 100%; object-fit: cover; }
.stage__verb { margin-top: var(--s-5); font-family: var(--f-display); font-weight: 600; font-size: var(--t-2xl); letter-spacing: -0.04em; line-height: 1; }
.stage p { margin-top: var(--s-3); color: var(--ink-2); font-size: var(--t-sm); max-width: 36ch; }
.stage__split, .stage__paid { display: grid; place-content: center; padding: 10%; background: radial-gradient(120% 90% at 50% 100%, color-mix(in oklab, var(--accent) 22%, transparent), transparent 70%), var(--surface); }
.mini-split { display: flex; gap: 4px; width: min(300px, 60vw); height: 54px; }
.mini-split i { display: block; width: var(--w); background: var(--c); border-radius: 6px; transition: width var(--d-3) var(--ease-out); }
.mini-split__nums { margin-top: 14px; text-align: center; font-family: var(--f-display); font-weight: 600; font-size: var(--t-xl); letter-spacing: -0.03em; color: var(--ink); }
.paid { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 22px 26px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: var(--e2); }
.paid b { font-family: var(--f-display); font-weight: 600; font-size: var(--t-xl); letter-spacing: -0.03em; }
.paid small { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-size: var(--t-sm); font-weight: 600; }
.paid .i { width: 16px; height: 16px; }
.stages__end { flex: 0 0 auto; width: clamp(260px, 24vw, 360px); align-self: center; padding: 0 4vw 0 2vw; }
@media (max-width: 760px) {
  .stages__lead { width: 80vw; }
  .stage { width: 76vw; }
  .stages__end { width: 72vw; }
}

/* ---------------------------------------------------------------- hush -- */
.hush { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--bg); }
.hush__film { position: absolute; inset: 0; z-index: 0; }
.hush__film > img, .hush__film > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.hush__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgb(8 7 15 / 0.95) 0%, rgb(8 7 15 / 0.55) 38%, rgb(8 7 15 / 0) 70%), linear-gradient(90deg, rgb(8 7 15 / 0.6), rgb(8 7 15 / 0) 60%); }
.hush__copy { position: relative; z-index: 2; padding-bottom: clamp(5.5rem, 12vh, 7rem); color: #efecf7; }
.hush__copy .d-2 { max-width: 18ch; color: #efecf7; }
.hush__time { font-family: var(--f-mono); font-size: var(--t-sm); letter-spacing: 0.08em; color: #a396ff; margin-bottom: var(--s-4); }

/* -------------------------------------------------------------- agents -- */
.agents__stage { display: flex; align-items: center; background: var(--bg); overflow: hidden; }
.agents__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: center; padding-top: var(--nav-h); }
.agents__label { display: flex; align-items: center; gap: var(--s-4); margin-bottom: var(--s-5); }
.agents__live { display: inline-flex; align-items: center; gap: 8px; color: var(--signal); }
.agents__live i { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 color-mix(in oklab, var(--signal) 60%, transparent); animation: live 1.8s infinite var(--ease-out); }
@keyframes live { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.steps { display: grid; gap: 2px; margin: 0; padding: 0; }
.step { position: relative; padding: 12px 0 12px 30px; border-top: 1px solid var(--line); }
.step b, .step span { transition: color 360ms var(--ease-out); }
.step::before { content: ""; position: absolute; left: 4px; top: 19px; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ink-3); transition: background-color 300ms var(--ease-out), border-color 300ms var(--ease-out); }
.step b { display: block; font-size: var(--t-lg); font-weight: 600; letter-spacing: -0.015em; color: var(--ink-3); }
.step span { display: block; margin-top: 2px; font-size: var(--t-sm); color: var(--ink-3); max-width: 44ch; }
.step.is-done::before { background: var(--ink-3); border-color: var(--ink-3); }
.step.is-on b { color: var(--ink); } .step.is-on span { color: var(--ink-2); }
.step.is-on::before { background: var(--accent-text); border-color: var(--accent-text); }
.agents__more { margin-top: var(--s-5); }
.agents__surface { position: relative; padding-bottom: 40px; }
.surface { position: relative; max-width: 600px; margin-left: auto; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--e3), var(--edge); overflow: hidden; }
.surface__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.surface__who { display: flex; align-items: center; gap: 10px; line-height: 1.25; }
.surface__who b { display: block; font-size: var(--t-sm); }
.surface__who small { color: var(--ink-3); font-size: 0.75rem; }
.av { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: linear-gradient(140deg, #f6b38d, #c97a9b); color: #2a1220; font-size: 0.75rem; font-weight: 700; }
.av--sm { width: 30px; height: 30px; font-size: 0.6875rem; }
.surface__sort { display: flex; gap: 6px; }
.surface__sort .chip { opacity: 0; transform: scale(0.95); transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }
.agents__stage:not([data-step="0"]) .surface__sort .chip { opacity: 1; transform: none; }
.surface__thread { display: grid; gap: 10px; padding: 18px; }
.bub { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: var(--t-sm); line-height: 1.5; }
.bub small { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; font-size: 0.6875rem; color: var(--ink-3); }
.bub--me { justify-self: end; background: var(--surface-2); border-bottom-right-radius: 6px; }
.bub--them { justify-self: start; background: color-mix(in oklab, var(--accent) 16%, var(--surface)); border-bottom-left-radius: 6px; }
.bub--draft { justify-self: end; background: transparent; border: 1px dashed color-mix(in oklab, var(--accent-text) 60%, transparent); border-bottom-right-radius: 6px; }
.draft-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }
.typed { white-space: pre-wrap; }
.sorter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sorter__lbl { font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-right: 4px; }
.sorter .chip { transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out); }
.agents__stage[data-step="1"] .sorter .chip { animation: sort 1.4s var(--ease-out) both; }
.agents__stage[data-step="1"] .sorter .chip:nth-child(3) { animation-delay: 0.15s; } .agents__stage[data-step="1"] .sorter .chip:nth-child(4) { animation-delay: 0.3s; } .agents__stage[data-step="1"] .sorter .chip:nth-child(5) { animation-delay: 0.45s; }
@keyframes sort { 0% { opacity: 0.3; } 30% { opacity: 1; } 100% { opacity: 1; } }
.agents__stage:not([data-step="0"]):not([data-step="1"]) .sorter .chip--warm, .agents__stage:not([data-step="0"]):not([data-step="1"]) .sorter .chip--cold { opacity: 0.25; }
.approve { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.approve__mode { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; font-size: 0.75rem; color: var(--ink-3); }
.approve__mode i { width: 26px; height: 15px; border-radius: 10px; background: var(--accent); position: relative; }
.approve__mode i::after { content: ""; position: absolute; right: 2px; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; }
.approve__btn { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: var(--r-sm); background: var(--accent); color: var(--accent-ink); font-size: 0.8125rem; font-weight: 600; transition: transform 160ms var(--ease-out), opacity 300ms var(--ease-out); }
.approve__sent { display: none; align-items: center; gap: 6px; height: 34px; font-size: 0.8125rem; font-weight: 600; color: var(--ok); }
.approve__sent .i { width: 16px; height: 16px; }
.agents__stage[data-step="3"] .approve__btn { animation: press 1.1s var(--ease-out) 0.5s both; }
@keyframes press { 40% { transform: scale(0.95); } 60% { transform: none; } 100% { transform: none; opacity: 1; } }
.agents__stage.is-sent .approve__btn { display: none; }
.agents__stage.is-sent .approve__sent { display: inline-flex; }
.booking { display: flex; align-items: center; gap: 12px; margin: 0 18px 18px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.booking__ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent-text); flex: none; }
.booking__txt { margin-right: auto; line-height: 1.3; }
.booking b { display: block; font-size: var(--t-sm); }
.booking small { color: var(--ink-3); font-size: 0.75rem; }
[data-at] { transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out); }
.agents__stage [data-at].is-wait { opacity: 0; transform: translateY(10px); }
.alarm { position: absolute; right: -2%; bottom: -6%; z-index: 4; transform-origin: 80% 100%; }
.alarm .phone { width: 220px; border-radius: 36px; padding: 8px; transform: rotate(5deg); }
.alarm .phone__screen { border-radius: 29px; }
.agents__stage .alarm.is-wait { opacity: 0; transform: translateY(60px) scale(0.96); }
.agents__stage[data-step="5"] .alarm { opacity: 0.0; transform: translateY(40px) scale(0.96); }
.alarm__call { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: 64px 18px 26px; text-align: center; background: radial-gradient(120% 70% at 50% 0%, #2c2160, #0a0914 70%); }
.alarm__ring { position: relative; display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 14px; border-radius: 50%; background: rgb(255 255 255 / 0.06); }
.alarm__ring .mark { width: 40px; height: 40px; color: #b7adff; }
.alarm__ring i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgb(183 173 255 / 0.6); animation: ring 1.6s infinite var(--ease-out); }
.alarm__ring i:nth-child(2) { animation-delay: 0.5s; }
@keyframes ring { from { transform: scale(1); opacity: 0.9; } to { transform: scale(1.9); opacity: 0; } }
.alarm__call b { font-size: 1.25rem; color: #efecf7; }
.alarm__call small { font-size: 0.75rem; color: #a7a1c0; }
.alarm__call p { margin-top: 18px; font-size: 0.8125rem; line-height: 1.45; color: #d7d2ea; }
.alarm__btns { display: flex; gap: 36px; margin-top: auto; }
.alarm__btns i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: #fff; }
.alarm__btns .no { background: #e5484d; } .alarm__btns .yes { background: #30a46c; }
.alarm__btns .i { width: 20px; height: 20px; }
@media (max-width: 860px) {
  .agents__grid { grid-template-columns: 1fr; gap: 14px; align-content: start; padding-top: calc(var(--nav-h) + 8px); }
  .agents__label { margin-bottom: 8px; }
  .steps .step { display: none; border-top: 0; padding: 0 0 0 22px; }
  .steps .step.is-on { display: block; }
  .step::before { top: 8px; left: 2px; }
  .step b { font-size: var(--t-base); }
  .agents__more { display: none; }
  .surface { margin: 0; border-radius: var(--r-lg); }
  .surface__head { padding: 10px 12px; }
  .surface__thread { padding: 12px; gap: 8px; }
  .bub { font-size: 0.8125rem; padding: 8px 11px; }
  .agents__stage:not([data-step="0"]):not([data-step="1"]) .bub--me { display: none; }
  .booking { margin: 0 12px 12px; }
  .alarm { right: -2%; bottom: -2%; }
  .alarm .phone { width: 150px; border-radius: 26px; padding: 6px; }
  .alarm .phone__screen { border-radius: 21px; }
  .alarm__call { padding: 38px 10px 14px; }
  .alarm__ring { width: 48px; height: 48px; margin-bottom: 8px; } .alarm__ring .mark { width: 28px; height: 28px; }
  .alarm__call p { margin-top: 8px; font-size: 0.6875rem; }
  .alarm__btns i { width: 34px; height: 34px; } .alarm__btns { gap: 20px; }
}

/* ---------------------------------------------------------------- crew -- */
.crew { padding: calc(var(--section) * 0.7) 0 var(--section); }
.crew__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-7); align-items: start; }
.crew__title { max-width: 18ch; }
/* the agent clip under the crew title: chat bubbles read by the orb, then the approve check */
.crew__film { position: relative; margin-top: var(--s-6); aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--e2), var(--edge); background: #0b0a14; }
.crew__film .vid { position: absolute; inset: 0; background: transparent; }
.crew__film .vid > img, .crew__film .vid > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.crew__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-6); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.crew__list li { display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.crew__list b { font-weight: 600; color: var(--ink); }
.crew__list span:not(.crew__ico) { grid-column: 2; color: var(--ink-2); font-size: var(--t-sm); }
.crew__ico { grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent-text); }
.crew__ico .i { width: 18px; height: 18px; }
@media (max-width: 860px) { .crew__grid { grid-template-columns: 1fr; } .crew__list { grid-template-columns: 1fr; } .crew__film { max-width: 520px; aspect-ratio: 16 / 9; } }

/* ------------------------------------------------------------ products -- */
.products { padding-block: var(--section) calc(var(--section) * 0.75); }
.products__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--s-5) var(--s-7); margin-bottom: var(--s-7); }
.products__title { max-width: 13ch; }
.products__head .body { max-width: 38ch; }
.prod-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-4); }
.prod--app { grid-column: 1 / 8; grid-row: 1 / 3; }
.prod--rooms { grid-column: 8 / 13; grid-row: 1; }
.prod--ext { grid-column: 8 / 13; grid-row: 2; }
.prod--comm { grid-column: 1 / -1; grid-row: 3; }
.prod--app .card__media { flex: 1; aspect-ratio: auto; min-height: 320px; }
.prod--app .card__body { flex: none; }
.prod--app .card__media > img { position: absolute; inset: 22px 0 0 22px; width: calc(100% - 22px); height: calc(100% - 22px); object-fit: cover; object-position: left top; border-radius: 10px 0 0 0; }
.prod--app .card__title { font-size: var(--t-2xl); line-height: 1.04; letter-spacing: -0.03em; }
.prod--rooms .card__media, .prod--ext .card__media { --card-ar: 16 / 8.2; }
.prod--comm .card__media { min-height: clamp(260px, 22vw, 400px); }
.prod--comm .card__title { font-size: var(--t-2xl); line-height: 1.04; letter-spacing: -0.03em; }
.card .frame__note { z-index: 2; }
@media (max-width: 980px) {
  .prod--app .card__media > img { position: relative; inset: auto; width: 100%; height: auto; border-radius: 10px 10px 0 0; }
  .prod--app, .prod--rooms, .prod--ext, .prod--comm { grid-column: 1 / -1; grid-row: auto; }
  .prod--app .card__media { flex: none; min-height: 0; }
}
@media (min-width: 640px) and (max-width: 980px) { .prod--rooms { grid-column: 1 / 7; } .prod--ext { grid-column: 7 / -1; } }

/* ------------------------------------------------------------ contract -- */
.contract { padding-block: calc(var(--section) * 0.85) var(--section); }
.contract__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-5) var(--s-8); align-items: end; margin-bottom: var(--s-7); }
.contract__head .d-1 { max-width: 15ch; line-height: 1.02; }
.contract__head .body { max-width: 40ch; }
.contract__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 3.4vw, 56px); align-items: start; }
.splitcard { padding: clamp(20px, 2.4vw, 34px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--e2), var(--edge); }
.splitcard__head { display: flex; gap: 14px; align-items: flex-start; padding-bottom: var(--s-5); margin-bottom: var(--s-5); border-bottom: 1px solid var(--line); }
.splitcard__head b { display: block; font-family: var(--f-display); font-weight: 560; font-size: var(--t-lg); letter-spacing: -0.015em; color: var(--ink); }
.splitcard__head small { display: block; margin-top: 2px; color: var(--ink-2); font-size: var(--t-sm); }
.splitcard__n { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-family: var(--f-mono); font-size: 0.75rem; font-weight: 600; }
.splitcard .calc__head { display: none; } /* the card header names it */
.splitcard .calc__track { margin-top: 0; }
.contract__doc { position: sticky; top: calc(var(--nav-h) + 32px); }
.contract__arrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: var(--s-4); font-weight: 600; font-size: var(--t-sm); color: var(--ink); }
.doc { position: relative; padding: clamp(24px, 3.2vw, 44px); border-radius: var(--r-md); background: #ffffff; color: var(--paper-ink); border: 1px solid var(--paper-line);
  box-shadow: 0 2px 4px rgb(40 30 90 / 0.05), 0 30px 60px -24px rgb(40 30 90 / 0.28), 18px 18px 0 -8px #ece9f5, 18px 18px 0 -7px var(--paper-line); }
.doc__head { display: flex; gap: var(--s-4); align-items: center; padding-bottom: var(--s-4); border-bottom: 1px solid var(--paper-line); }
.doc__head .label { margin-right: auto; color: #625d77; }
.doc__status { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--r-pill); background: rgb(15 122 82 / 0.1); color: #0f7a52; font-size: 0.75rem; font-weight: 600; }
.doc__status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.doc__title { margin-top: var(--s-5); font-family: var(--f-display); font-weight: 600; font-size: var(--t-xl); letter-spacing: -0.025em; line-height: 1.15; }
.doc__p { margin-top: var(--s-3); color: var(--paper-ink-2); font-size: var(--t-sm); }
.doc__table { width: 100%; margin-top: var(--s-5); border-collapse: collapse; }
.doc__table th, .doc__table td { padding: 12px 0; border-top: 1px solid var(--paper-line); text-align: left; font-weight: 500; font-size: var(--t-sm); }
.doc__table th { position: relative; padding-left: 22px; }
.doc__table th i { position: absolute; left: 0; top: 18px; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.doc__table [data-k="creator"] { --c: var(--seg-creator); } .doc__table [data-k="monetized"] { --c: var(--seg-monetized); } .doc__table [data-k="scout"] { --c: var(--seg-scout); } .doc__table [data-k="forgeos"] { --c: var(--seg-forgeos); }
.doc__table th small { display: block; color: #625d77; font-weight: 400; font-size: 0.75rem; }
.doc__table td { text-align: right; font-family: var(--f-display); font-weight: 600; font-size: var(--t-xl); letter-spacing: -0.025em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.doc__table td span { display: inline-block; padding: 0 4px; border-radius: 6px; transition: background-color 700ms var(--ease-out); }
.doc__table td span.is-flash { background: rgb(91 69 240 / 0.18); transition-duration: 0ms; }
.doc__fine { display: flex; gap: 8px; margin-top: var(--s-5); font-size: 0.75rem; line-height: 1.5; color: #625d77; }
.doc__fine .i { width: 14px; height: 14px; flex: none; margin-top: 2px; color: #5b45f0; }
.doc__sigs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); margin-top: var(--s-6); }
.sig { padding-top: 6px; border-top: 1px solid var(--paper-ink); }
.sig i { display: block; height: 36px; font-family: var(--f-display); font-style: normal; font-weight: 300; font-size: 1.6rem; line-height: 36px; letter-spacing: -0.04em; color: #2d2a6e; transform: skewX(-14deg); transform-origin: 0 100%; opacity: 0.18; white-space: nowrap; }
.sig.is-signed i { opacity: 1; }
.sig--wait { border-top-style: dashed; border-top-color: #9f99b5; }
.sig small { display: block; margin-top: 4px; font-size: 0.6875rem; color: #625d77; }
.contract__facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: var(--s-5) 0 0; padding: 0; list-style: none; color: var(--paper-ink-2); font-size: var(--t-sm); }
.contract__facts li { display: flex; align-items: center; gap: 8px; }
.contract__facts .i { width: 17px; height: 17px; color: #5b45f0; }
@media (max-width: 900px) { .contract__head, .contract__grid { grid-template-columns: 1fr; } .contract__doc { position: static; } .doc { box-shadow: 0 2px 4px rgb(40 30 90 / 0.05), 0 30px 60px -24px rgb(40 30 90 / 0.28); } }
@media (max-width: 480px) { .doc__sigs { grid-template-columns: 1fr 1fr; } .doc__head .tag-example { display: none; } }

/* ------------------------------------------------------------- pricing -- */
.pricing__head { display: flex; justify-content: space-between; align-items: end; gap: var(--s-6); flex-wrap: wrap; margin-bottom: var(--s-7); }
.pricing__head .body { max-width: 38ch; }
.plan--lead { transform: translateY(-10px); }
.pricing__more { margin-top: var(--s-6); color: var(--ink-3); }
.pricing__more a { color: var(--ink); }
@media (max-width: 860px) { .plan--lead { transform: none; } }

/* ----------------------------------------------------------------- faq -- */
.faqs__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s-7); }
.faqs__side .body { margin-top: var(--s-4); }
.faqs__side a { color: var(--ink); }
@media (max-width: 860px) { .faqs__grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- close -- */
.close { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden; padding-block: calc(var(--nav-h) + 4vh) 8vh; text-align: center; }
.close__orb { position: absolute; left: 50%; top: 50%; width: min(1200px, 160vw); aspect-ratio: 16 / 9; transform: translate(-50%, -38%); z-index: 0; background: transparent; -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%); mask-image: radial-gradient(closest-side, #000 55%, transparent 100%); opacity: 0.85; }
:root:not([data-theme="light"]) .close__orb { mix-blend-mode: screen; }
:root[data-theme="light"] .close__orb { opacity: 0.9; }
.close__inner { position: relative; z-index: 1; display: grid; justify-items: center; }
.close__title { max-width: 20ch; }
.close__slot { margin: var(--s-8) 0 var(--s-6); width: min(420px, 100%); min-height: 150px; }
.close__fine { margin-top: var(--s-5); color: var(--ink-2); text-shadow: 0 0 14px var(--bg), 0 0 4px var(--bg); } /* sits over the orb */

/* ---------------------------------------------------- signature: ticket -- */
.ticket { width: 300px; padding: 12px 14px 12px; border-radius: var(--r-md); background: var(--glass-strong); border: 1px solid var(--line-2); box-shadow: var(--e3), var(--edge); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); text-align: left; font-size: var(--t-sm); }
.ticket__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ticket__who { display: flex; align-items: center; gap: 9px; line-height: 1.2; }
.ticket__who b { display: block; font-size: 0.8125rem; color: var(--ink); }
.ticket__who small { font-size: 0.6875rem; color: var(--ink-3); }
.ticket__pips { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 12px 0 10px; padding: 0; list-style: none; }
.ticket__pips a, .ticket__pips span { display: block; height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; color: transparent; font-size: 0; text-decoration: none; transition: background-color 400ms var(--ease-out), transform 400ms var(--ease-out); }
.ticket__pips a.is-done { background: var(--accent-text); }
.ticket__pips a.is-now { background: var(--accent-text); transform: scaleY(1.5); }
.ticket__pips a:focus-visible { outline-offset: 2px; }
.ticket__now { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 0.75rem; color: var(--ink-2); }
.ticket__now span:first-child { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.ticket__now .i { width: 15px; height: 15px; color: var(--ok); }
.ticket__split { font-family: var(--f-mono); font-size: 0.6875rem; color: var(--ink-3); white-space: nowrap; }
.ticket--float { position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 50; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity 400ms var(--ease-out), visibility 0s linear 400ms; will-change: transform, opacity; transform-origin: 50% 50%; }
.ticket--float.is-shown { opacity: 1; visibility: visible; transition-delay: 0s; transform: none; }
.ticket--final { width: 100%; padding: 16px 18px; opacity: 0; transition: opacity 300ms var(--ease-out); }
.ticket--final.is-landed { opacity: 1; }
.ticket--final .ticket__pips { gap: 6px; margin: 16px 0 12px; }
.ticket--final .ticket__pips span { height: auto; background: none; overflow: visible; color: var(--ink-3); font-size: 0.625rem; line-height: 1.2; text-align: center; white-space: nowrap; }
.ticket--final .ticket__pips span::before { content: ""; display: block; height: 6px; margin-bottom: 6px; border-radius: 3px; background: var(--accent-text); }
.ticket--final .ticket__now { font-size: var(--t-sm); }
@media (max-width: 760px) {
  .ticket--float { width: min(260px, calc(100vw - 92px)); padding: 9px 11px; left: 12px; bottom: 12px; }
  .ticket--float .ticket__top .tag-example { display: none; }
  .ticket--float .ticket__pips { margin: 8px 0 6px; }
}

/* ---------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero { height: auto; }
  .hero__stage { position: relative; height: 100svh; }
  /* the engine turns the rail into a native horizontal scroller; drop the pinned travel so there is no dead scroll */
  .stages[data-sc-act] { height: auto !important; }
  .stages__stage { position: relative !important; height: auto !important; min-height: 100svh; }
  .hero__foot, .hero__far, .hero__mid, .ev, .hero__obj, .hero__objspin, .hero__line { will-change: auto; }
  .hero__mid { display: none; }
  .agents__live i, .alarm__ring i { animation: none; }
  .agents__stage[data-step="1"] .sorter .chip, .agents__stage[data-step="3"] .approve__btn { animation: none; }
  [data-at], .stage, .ticket--float, .ticket--final { transition-duration: 160ms; }
  .agents__stage [data-at].is-wait, .agents__stage .alarm.is-wait { transform: none; }
}
