/* ==========================================================================
   FrontDesk JA — site styles
   Black and white is the site. Color is a signal layer, not decoration (spec §6a):
   lime is the one FrontDesk accent and marks interaction (button/nav states, chips,
   the scene-change flash on the eyebrow rule). Cyan, amber and coral are rare and
   functional: cyan only while AI is actively working, amber only on a booking
   confirmation, coral only on escalation to a person or a failure. All solid, never
   a wash, never on body text, one at a time. No glow, no decorative gradients.
   ========================================================================== */

/* Self-hosted variable fonts (latin subset, SIL Open Font License) */
@font-face {
  font-family: "Archivo"; font-style: normal; font-display: swap;
  font-weight: 100 900; font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat"; font-style: normal; font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
}

/* Animatable pieces of the 3D card transform */
@property --rx { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --ry { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --sc { syntax: "<number>"; inherits: false; initial-value: 1; }
@property --dy { syntax: "<length>"; inherits: false; initial-value: 0px; }

/* Layout: copy column left, photograph/demo right; one full-screen moment per page. */
:root {
  --ink: #0a0a0a;
  --ink-2: #3a3a3a;
  --ink-3: #707070;
  --line: #e3e3e3;
  --paper: #ffffff;
  --paper-2: #F5F5F2;   /* off-white */
  --graphite: #171717;
  --silver: #A6A6A6;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 12px 32px -12px rgba(0,0,0,.18);
  --shadow-lift: 0 2px 4px rgba(0,0,0,.06), 0 22px 44px -16px rgba(0,0,0,.26);

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 5vw, 104px);
  --top: clamp(76px, 10vh, 108px);
  --copy-w: min(calc(44vw - var(--gutter)), 620px);

  /* signal layer (spec §6a; proposals, swap freely) */
  --lime: #C8FF00;    /* tier 2: FrontDesk interaction signal */
  --cyan: #57E6FF;    /* tier 3: AI actively working */
  --amber: #FFB547;   /* tier 3: needs action / booking confirmed */
  --coral: #FF6B5E;   /* tier 3: escalation to a person / failure */

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.7, 0, .84, 0);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; text-decoration: none;
}
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Story stage (set by main.js when motion is allowed and every page fits): pages are
   slides stacked on a fixed stage. Switching is an instant cut; only content animates. */
html.staged, html.staged body { height: 100%; overflow: hidden; overscroll-behavior: none; }
html.staged { scroll-behavior: auto; }
.staged [data-stop] { position: fixed; inset: 0; height: 100vh; height: 100svh; min-height: 0; visibility: hidden; z-index: 1; }
.staged [data-stop].is-current { visibility: visible; z-index: 2; }
.staged [data-stop].is-leaving { visibility: visible; z-index: 3; pointer-events: none; }
.no-anim, .no-anim *, .no-anim *::before, .no-anim *::after { transition: none !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Brand ---------- */
.brand, .footer__brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 44px; height: 31px; flex: none; color: currentColor; }
.brand__text { display: flex; flex-direction: column; gap: 3px; }
.brand__word {
  font-family: var(--f-display); font-stretch: 112%; font-weight: 300;
  font-size: 20px; line-height: 1; letter-spacing: -.01em; white-space: nowrap;
}
.brand__word b { font-weight: 800; }
.brand__word small { font-size: .5em; font-weight: 600; margin-left: .35em; letter-spacing: .02em; }
.brand__tag { font-size: 6.5px; letter-spacing: .36em; text-transform: uppercase; font-weight: 500; color: var(--ink-2); white-space: nowrap; }

/* ---------- Floating pill nav ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 16px var(--gutter) 0;
  pointer-events: none;
}
.pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: 6px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 6px 6px 18px;
  transition: box-shadow .4s var(--ease-out), border-color .4s;
}
.pill--actions { padding: 6px; }
body.is-scrolled .pill { box-shadow: var(--shadow); border-color: transparent; }


.burger {
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 0; margin-left: 10px;
  display: grid; place-content: center; gap: 6px; border-radius: 50%;
  transition: background .25s;
}
.burger:hover { background: var(--lime); }
.burger span { display: block; width: 22px; height: 1.6px; background: var(--ink); transition: transform .5s var(--ease-out), opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.6px) rotate(-45deg); }

/* ---------- Menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 50;
  background: var(--paper);
  display: grid; grid-template-rows: 1fr auto;
  padding: calc(var(--top) + 32px) var(--gutter) 40px;
  overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu__list, .menu__sub { list-style: none; margin: 0; padding: 0; }
.menu__list > li { border-top: 1px solid var(--line); padding: 14px 0; }
.menu__list > li:last-child { border-bottom: 1px solid var(--line); }
.menu__link, .menu__label {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--f-display); font-weight: 800; font-stretch: 112%;
  font-size: clamp(28px, 5.2vw, 64px); line-height: 1; letter-spacing: -.02em; text-transform: uppercase;
  text-decoration: none;
}
a.menu__link { transition: opacity .25s; }
a.menu__link:hover { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: .14em; text-underline-offset: .12em; }
.menu__link.is-soon { color: #b9b9b9; cursor: default; }
.tag {
  font-style: normal; font-family: var(--f-body); font-size: 11px; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink); border: 1px solid var(--ink); border-radius: 999px; padding: 5px 10px 4px;
}
.menu__sub { display: grid; gap: 4px; margin-top: 14px; padding-left: clamp(0px, 4vw, 64px); }
.menu__sub a { display: flex; align-items: baseline; gap: 18px; text-decoration: none; padding: 6px 0; font-size: clamp(15px, 1.4vw, 18px); }
.menu__sub a span { font-weight: 600; letter-spacing: .2em; text-transform: uppercase; min-width: 11em; }
.menu__sub a em { font-style: normal; color: var(--ink-3); }
.menu__sub a em::before { content: "→ "; }
.menu__sub a:hover span { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.menu__foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 32px; }
.menu__foot p { margin: 0; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-3); }
@media (prefers-reduced-motion: no-preference) {
  .menu:not([hidden]) .menu__list > li, .menu:not([hidden]) .menu__foot { animation: menu-in .7s var(--ease-out) both; }
  .menu .menu__list > li:nth-child(2) { animation-delay: .05s; }
  .menu .menu__list > li:nth-child(3) { animation-delay: .1s; }
  .menu .menu__list > li:nth-child(4) { animation-delay: .15s; }
  .menu .menu__list > li:nth-child(5) { animation-delay: .2s; }
  .menu .menu__foot { animation-delay: .25s; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(24px); } }

body.is-locked { overflow: hidden; }

/* ---------- Buttons & lift ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 22px;
  background: var(--ink); color: var(--paper); text-decoration: none; white-space: nowrap;
  border: 1px solid var(--ink); border-radius: 999px; cursor: pointer;
  padding: clamp(13px, 1.9vh, 16px) 28px clamp(13px, 1.9vh, 16px) 44px; font-size: 17px; font-weight: 500;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), background .25s, color .25s;
}
.btn svg { width: 22px; height: 22px; transition: transform .4s var(--ease-out); }
.btn:hover, .btn:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow-lift); background: var(--lime); color: var(--ink); border-color: var(--lime); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(0) scale(.98); box-shadow: none; }
.btn--sm { padding: 10px 16px 10px 22px; font-size: 14.5px; gap: 12px; }
.btn--sm svg { width: 18px; height: 18px; }
.btn--invert { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--ghost { background: var(--paper); color: var(--ink); }
.btn--ghost:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }

.lift { transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s; }
.lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: transparent; }

/* ==========================================================================
   Pages
   ========================================================================== */
.page {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--top) + 16px) var(--gutter) 48px;
  overflow: hidden;
  isolation: isolate;
}
.page__copy { position: relative; z-index: 2; width: var(--copy-w); }

.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); margin-right: 10px; vertical-align: .05em; flex: none; }

/* the thin rule: one structural device, used everywhere */
.eyebrow {
  display: flex; align-items: center; gap: 16px;
  margin: 0 0 clamp(14px, 2.6vh, 28px);
  font-size: 12px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 42px; height: 1.4px; background: currentColor; flex: none; transform-origin: left; }

.headline {
  --fit: 5.9; --cap: 11vh;
  margin: 0; font-family: var(--f-display); font-weight: 900;
  text-transform: uppercase; line-height: .86; letter-spacing: -.035em;
  /* sized to the copy column: --fit is the widest line in ems; --cap keeps short screens in check */
  font-size: max(38px, min(calc(var(--copy-w) / var(--fit)), var(--cap), 150px));
}
.headline--wide { font-stretch: 118%; }
.headline--semi { font-stretch: 92%; letter-spacing: -.045em; }
.headline--condensed { font-stretch: 62%; line-height: .9; letter-spacing: -.02em; }
#h-solution { --fit: 5.95; --cap: 11.5vh; }
#h-aeo { --fit: 4.8; --cap: 12.5vh; }
#h-assistant { --fit: 5.8; --cap: 12.5vh; }
#h-receptionist { --fit: 3.2; --cap: 12.5vh; }
#h-payoff { --fit: 5; --cap: 9vh; }
.headline .ln { display: block; }
.headline .ln > span { display: inline-block; white-space: nowrap; }
.headline .w { display: inline-block; }
.headline .ln--light { font-weight: 300; letter-spacing: .04em; font-size: .42em; line-height: 1.1; margin-top: .25em; }
#h-payoff .ln--light { font-size: .72em; letter-spacing: -.01em; line-height: .96; margin-top: .06em; }

.subhead { margin: .5em 0 0; font-weight: 300; text-transform: uppercase; font-size: clamp(22px, min(2.6vw, 4.6vh), 44px); line-height: 1.08; }
.kicker { margin: 1.1em 0 0; font-size: 12px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-2); }
.body {
  margin: clamp(14px, 2.4vh, 24px) 0 clamp(20px, 3.4vh, 34px);
  max-width: 34em; font-size: clamp(15px, min(1.3vw, 2.3vh), 20px); line-height: 1.45; color: var(--ink-2);
}

.trio { list-style: none; margin: 0 0 clamp(18px, 3.2vh, 34px); padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.trio a {
  display: flex; flex-direction: column; gap: 2px; text-decoration: none; background: var(--paper);
  border: 1px solid var(--line); border-radius: 14px; padding: clamp(7px, 1.1vh, 10px) 16px;
}
.trio b { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; }
.trio span { font-size: 14px; color: var(--ink-3); }

.gains { list-style: none; margin: 0 0 clamp(18px, 3.2vh, 34px); padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 34em; }
.gains li {
  display: flex; align-items: flex-end; min-height: clamp(72px, 11vh, 104px);
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px;
  font-family: var(--f-display); font-stretch: 100%; font-weight: 700; font-size: clamp(15px, min(1.3vw, 2.3vh), 19px); line-height: 1.12; letter-spacing: -.01em;
}

/* ---------- Visuals ---------- */
.visual {
  position: absolute; z-index: 1; margin: 0;
  top: var(--top); right: 0; bottom: 0;
  width: min(56vw, calc((100svh - var(--top)) * 1.22));
  pointer-events: none;
}
.visual__motion { position: absolute; inset: 0; }
/* "develop" layer: a paper wash that clears as the image settles */
.visual__motion::after { content: ""; position: absolute; inset: 0; background: var(--paper); opacity: 0; pointer-events: none; }
.visual__img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%;
  background: transparent; color: transparent; /* never paint a broken-image box or alt text */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%), linear-gradient(to top, transparent 0, #000 10%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mask-image: linear-gradient(to right, transparent 0, #000 16%), linear-gradient(to top, transparent 0, #000 10%);
}
.visual--trap { width: min(54vw, calc((100svh - var(--top)) * 1.09)); }
.visual--trap .visual__img {
  object-position: 60% 40%; transform-origin: 55% 45%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 94%, transparent), linear-gradient(to bottom, transparent 0, #000 12%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 94%, transparent), linear-gradient(to bottom, transparent 0, #000 12%, #000 94%, transparent);
}
.visual--receptionist { width: min(58vw, calc((100svh - var(--top)) * 1.36)); }

/* Pillar cards: solid white, soft shadow, real weight. Their transform is built from
   registered properties so entrance (tilt + scale) and idle mouse-tilt both animate. */
.card-float {
  position: absolute; z-index: 2;
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
}
.card-float, .settle {
  --cx: 0%;
  transform: translateX(var(--cx)) perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) scale(var(--sc)) translateY(var(--dy));
  transform-style: preserve-3d;
}

.record { left: 5%; bottom: 7%; width: min(290px, 60%); border-radius: 20px; padding: 14px 18px 16px; }
.record__title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.record__title svg { width: 20px; height: 14px; }
.record dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; }
.record dt { color: var(--ink-3); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; padding-top: 2px; }
.record dd { margin: 0; font-weight: 500; }
.caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -.15em; background: var(--ink); }

.live-chat { right: 5%; bottom: calc(6% + 64px); width: min(300px, 62%); border-radius: 22px; padding: 14px 14px 12px; }
.live-chat__head { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; padding: 2px 4px 10px; border-bottom: 1px solid var(--line); }
.live-chat__head svg { width: 22px; height: 16px; }
.live-chat__head i { margin-left: auto; font-style: normal; font-weight: 500; color: var(--ink-3); }
.live-chat__body { display: flex; flex-direction: column; gap: 7px; padding-top: 10px; height: 176px; overflow: hidden; justify-content: flex-end; }
.bubble { max-width: 84%; font-size: 13px; line-height: 1.35; padding: 8px 12px; border-radius: 16px; }
.bubble--them { align-self: flex-end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 5px; }
.bubble--us { align-self: flex-start; background: var(--paper-2); border-bottom-left-radius: 5px; }
.bubble--booked { align-self: stretch; max-width: none; text-align: center; background: var(--paper); border: 1.5px solid var(--amber); font-weight: 600; font-size: 12.5px; } /* amber: booking confirmed */
.bubble--booked::before { content: "✓  "; }
.bubble--typing { display: inline-flex; gap: 4px; padding: 11px 13px; }
.bubble--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); } /* cyan: AI working */

.live-calls {
  --cx: -50%; left: 50%; bottom: 6%;
  display: flex; align-items: center; gap: 12px; white-space: nowrap;
  border-radius: 999px; padding: 11px 18px; font-size: 13px; color: var(--ink-2);
}
.live-calls b { color: var(--ink); font-weight: 700; }
.live-calls__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.live-calls__esc { display: none; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.live-calls__esc i { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); } /* coral: handed to a person */
.live-calls.is-escalating .live-calls__esc { display: inline-flex; }
.live-calls__sep { width: 1px; height: 14px; background: var(--line); }
.live-calls__wave { display: inline-flex; align-items: center; gap: 2.5px; height: 18px; }
.live-calls__wave i { width: 2px; height: 100%; background: var(--ink); border-radius: 2px; transform: scaleY(.45); }

/* ---------- Page 6: the desk clears ---------- */
.visual--settle { width: min(50vw, calc(100svh - var(--top))); }
.settle { position: absolute; inset: 0 var(--gutter) 92px 12%; container-type: size; }
.settle__mark {
  position: absolute; left: 50%; top: 46%; width: min(34cqw, 200px); aspect-ratio: 61 / 43;
  transform: translate(-50%, -50%) scale(.92); opacity: .07; color: var(--ink);
  transition: opacity 1.6s var(--ease-out), transform 1.8s var(--ease-out);
}
.settle__mark svg { width: 100%; height: 100%; }
.settle.is-clear .settle__mark { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.settle__tiles { list-style: none; margin: 0; padding: 0; }
.settle__tiles li {
  --x: calc(var(--mx) * 1cqw); --y: calc(var(--my) * 1cqh); --r: var(--mr);
  position: absolute; left: 50%; top: 46%; width: min(80cqw, 360px);
  display: flex; align-items: center; gap: 12px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px;
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%) translate(var(--x), var(--y)) rotate(var(--r));
  transition: transform 1.2s var(--ease-io), opacity .9s var(--ease-out), box-shadow .6s;
}
.settle__tiles li.is-done { --x: 0px; --y: calc((var(--i) - 2) * min(15.5cqh, 74px)); --r: 0deg; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.settle__tiles svg { width: 22px; height: 22px; flex: none; color: var(--ink); }
.settle__tiles span { display: flex; flex-direction: column; min-width: 0; }
.settle__tiles b { font-size: 14.5px; font-weight: 600; }
.settle__tiles em { font-style: normal; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tick {
  margin-left: auto; flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.4px solid var(--line);
  display: grid; place-items: center; transition: background .35s, border-color .35s;
}
.tick::after {
  content: ""; width: 9px; height: 5px; border: solid var(--paper); border-width: 0 0 1.8px 1.8px;
  transform: translateY(-1px) rotate(-45deg) scale(.4); opacity: 0; transition: transform .45s var(--ease-out), opacity .3s;
}
.is-done .tick { background: var(--ink); border-color: var(--ink); }
.is-done .tick::after { opacity: 1; transform: translateY(-1px) rotate(-45deg) scale(1); }
.settle.is-clear .settle__tiles li { opacity: 0; --y: calc((var(--i) - 2) * min(15.5cqh, 70px) - 40px); transition-delay: calc(var(--i) * 90ms); }

.settle__status {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); margin: 0;
  font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; white-space: nowrap;
  display: flex; align-items: center; gap: 14px;
}
.settle__status::before { content: ""; width: 42px; height: 1.4px; background: currentColor; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; z-index: 3; width: 26px; height: 42px;
  border: 1.4px solid var(--ink); border-radius: 999px; transform: translateX(-50%);
}
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding: clamp(56px, 10vh, 120px) var(--gutter) 36px; }
.staged .footer--story { display: flex; flex-direction: column; justify-content: space-between; padding-top: calc(var(--top) + clamp(24px, 8vh, 96px)); }
.footer--story .footer__grid { margin-top: 32px; }
.footer .eyebrow { color: #cfcfcf; }
.footer__line {
  margin: 0 0 32px; max-width: 18ch;
  font-family: var(--f-display); font-weight: 800; font-stretch: 110%; text-transform: uppercase;
  font-size: clamp(30px, 4.6vw, 72px); line-height: .95; letter-spacing: -.03em;
}
.footer__grid {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px 40px;
  margin-top: clamp(48px, 9vh, 104px); padding-top: 28px; border-top: 1px solid #2a2a2a;
}
.footer__grid:first-child { margin-top: 0; }
.footer .brand__tag { color: #9a9a9a; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: center; }
.footer__nav a { text-decoration: none; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: #cfcfcf; }
.footer__nav a[aria-current] { color: var(--paper); }
.footer__nav a:hover { color: var(--lime); }
.footer__small { margin: 0; font-size: 12px; color: #8a8a8a; }

/* ==========================================================================
   Pricing
   ========================================================================== */
.pricing, .hub, .about { padding: calc(var(--top) + clamp(32px, 7vh, 80px)) var(--gutter) clamp(64px, 12vh, 140px); }
.pricing__intro, .hub__intro, .about__intro { max-width: 980px; margin-bottom: clamp(36px, 7vh, 72px); }
.pricing__intro .headline, .hub__intro .headline, .about__intro .headline { --copy-w: min(calc(100vw - 2 * var(--gutter)), 980px); --fit: 7.6; --cap: 999px; }
.pricing__intro .headline, .hub__intro .headline, .about__intro .headline { font-size: max(30px, min(calc(var(--copy-w) / var(--fit)), 130px)); }
.pricing__intro .headline .ln > span, .hub__intro .headline .ln > span, .about__intro .headline .ln > span { white-space: normal; }
.pricing__intro .headline .ln--light, .hub__intro .headline .ln--light { font-size: .5em; }
.pricing__intro .body { margin-bottom: 0; }

/* three cards, same treatment, no tier is flagged */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column; gap: 20px; min-width: 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: 26px; padding: clamp(22px, 2.4vw, 34px);
}
.plan:hover { border-color: var(--ink); }
.plan__head { display: grid; gap: 6px; }
.plan__kicker { margin: 0; display: flex; align-items: center; font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); }
.plan__kicker::before { content: ""; width: 18px; height: 1.4px; background: currentColor; margin-right: 10px; }
.plan__name { margin: 0; font-family: var(--f-display); font-stretch: 100%; font-weight: 900; text-transform: uppercase; font-size: clamp(26px, 2.5vw, 40px); overflow-wrap: anywhere; line-height: .95; letter-spacing: -.03em; }
.plan__price { margin: 10px 0 0; display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.plan__price b { font-family: var(--f-display); font-stretch: 100%; font-weight: 800; font-size: clamp(40px, 4.4vw, 64px); letter-spacing: -.035em; line-height: 1; }
.plan__price span { font-size: 15px; color: var(--ink-3); }
.plan__price--soon { font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.plan__pitch { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; max-width: 40em; }
.plan__pitch strong { color: var(--ink); font-weight: 600; }
.plan__list { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 14.5px; }
.plan__list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.plan__list b { font-weight: 600; }
.plan__loop { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 4px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.plan__loop li { display: flex; align-items: center; gap: 4px; }
.plan__loop li + li::before { content: "→"; color: var(--ink-3); letter-spacing: 0; }
.plan__plus { margin: 0; font-size: 14px; font-weight: 600; }
.plan__fine { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.plan__try { margin: 0; font-size: 14px; color: var(--ink-2); }
.linklike:hover { text-decoration-color: var(--lime); text-decoration-thickness: 3px; }
.linklike { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.plan__list svg { width: 20px; height: 20px; }
.plan__office { background: var(--paper-2); border-radius: 16px; padding: 16px 18px; font-size: 14px; color: var(--ink-2); }
.plan__office p { margin: 0; }
.plan__office-title { font-weight: 600; color: var(--ink); margin-bottom: 4px !important; }
.plan__cta { align-self: flex-start; margin-top: auto; max-width: 100%; white-space: normal; text-align: left; }

/* ==========================================================================
   Ask FrontDesk hub + articles
   ========================================================================== */
.hub__intro .btn { margin-top: 4px; }
.hub__group {
  display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 24px 48px; align-items: start;
  padding-top: clamp(28px, 5vh, 48px); margin-top: clamp(28px, 5vh, 48px); border-top: 1px solid var(--line);
}
.hub__group .eyebrow { margin-bottom: 12px; }
.hub__group-intro { margin: 0; color: var(--ink-2); font-size: 15px; max-width: 30ch; }
.hub__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.article-card {
  height: 100%; display: flex; flex-direction: column; gap: 10px; text-decoration: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 22px 24px;
}
/* hover/focus: the lime interaction signal (spec §12), same for every pillar —
   a solid ring on the card edge and a lime underline on the title, never a fill */
.article-card:hover, .article-card:focus-visible {
  border-color: var(--lime); outline: none;
  box-shadow: 0 0 0 1px var(--lime), var(--shadow-lift);
}
.article-card:hover .article-card__title, .article-card:focus-visible .article-card__title {
  text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: .14em; text-underline-offset: .14em;
}
.article-card__meta, .article__meta { display: flex; align-items: center; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.article-card__title { font-family: var(--f-display); font-stretch: 100%; font-weight: 800; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; }
.article-card__summary { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.article-card__go { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; }
.article-card__go svg { width: 18px; height: 18px; transition: transform .4s var(--ease-out); }
.article-card:hover .article-card__go svg { transform: translateX(4px); }

.article { padding: calc(var(--top) + clamp(40px, 8vh, 96px)) var(--gutter) clamp(64px, 12vh, 140px); }
.article > article, .article__ask { max-width: 720px; margin-left: auto; margin-right: auto; }
.article__crumbs { display: flex; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.article__crumbs a { color: var(--ink); text-decoration: none; }
.article__crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.article__title {
  margin: .5em 0 .45em; font-family: var(--f-display); font-stretch: 100%; font-weight: 800;
  font-size: clamp(34px, 5vw, 64px); line-height: 1.02; letter-spacing: -.035em; text-wrap: balance;
}
.article__body { margin-top: clamp(28px, 5vh, 48px); }
.article__body p { margin: 0 0 1.25em; font-size: clamp(17px, 1.25vw, 19px); line-height: 1.7; color: var(--ink-2); max-width: 65ch; }
.article__body p:first-child { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.55; color: var(--ink); }
.article__ask { margin-top: clamp(40px, 8vh, 72px); display: grid; gap: 10px; justify-items: start; background: var(--paper-2); border-radius: 24px; padding: clamp(22px, 3vw, 36px); }
.article__ask p { margin: 0; color: var(--ink-2); max-width: 50ch; }
.article__ask .article__ask-title { font-family: var(--f-display); font-stretch: 100%; font-weight: 800; font-size: 22px; letter-spacing: -.01em; color: var(--ink); }
.article__ask .btn { margin-top: 8px; }
.article__related { max-width: 1100px; margin: clamp(56px, 10vh, 112px) auto 0; }

/* ==========================================================================
   About
   ========================================================================== */
.about__intro { margin-bottom: 0; }
#h-about { --fit: 11; }
.about__tag span { display: block; }
.about__lede { margin: clamp(20px, 4vh, 36px) 0 0; max-width: 34ch; font-size: clamp(20px, 1.8vw, 28px); line-height: 1.35; text-wrap: pretty; }
.about__belief {
  margin: clamp(64px, 12vh, 140px) 0; padding-top: clamp(28px, 5vh, 48px); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px 56px; align-items: center;
}
.about__belief-text {
  margin: 0; max-width: 30ch; font-family: var(--f-display); font-stretch: 100%; font-weight: 600;
  font-size: clamp(24px, 2.8vw, 42px); line-height: 1.15; letter-spacing: -.02em; text-wrap: balance;
}

/* Motion 0 — the old desk gives way to a floating system of four shapes */
.belief-scene { position: relative; height: clamp(300px, 40vh, 420px); perspective: 900px; }
.belief-old {
  position: absolute; left: 50%; top: 50%; width: min(62%, 280px); color: var(--silver);
  transform: translate(-50%, -50%); transition: opacity 1s var(--ease-out), transform 1.4s var(--ease-out);
}
.belief-scene.is-shift .belief-old { opacity: 0; transform: translate(-50%, -50%) scale(.86); }
.belief-node {
  --px: 0px; --py: 0px; --rx: 0deg; --ry: 0deg;
  position: absolute; left: var(--x); top: var(--y); width: 40%;
  transform: translate3d(var(--px), var(--py), 0) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease-out);
  z-index: calc(var(--d) * 10);
}
.belief-node__body {
  display: flex; align-items: center; gap: 14px; padding: 20px 22px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 calc(var(--d) * 22px) calc(var(--d) * 40px) -18px rgba(0,0,0,.28);
  transform: scale(calc(.82 + var(--d) * .14));
  transition: border-color .25s, box-shadow .25s;
}
.belief-node__body svg { width: 38px; height: 38px; flex: none; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.belief-node__body span { font-size: 16px; font-weight: 600; letter-spacing: .02em; }
.belief-node:hover .belief-node__body { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime), 0 calc(var(--d) * 22px) calc(var(--d) * 40px) -18px rgba(0,0,0,.28); }

/* Motion 1 — layered planes beside the "first layer" passage */
.about__layer-text { display: grid; gap: 20px; }
.layers-motif { position: relative; height: clamp(240px, 32vh, 340px); perspective: 1000px; }
.layers-motif i {
  position: absolute; left: 50%; top: calc(-6% + var(--n) * 14%); width: min(64%, 280px); aspect-ratio: 1;
  margin-left: max(-32%, -140px); border-radius: 18px;
  background: var(--paper); border: 1.4px solid var(--silver);
  transform: rotateX(62deg) rotateZ(45deg); transform-origin: 50% 50%;
  z-index: calc(10 - var(--n));
}
.layers-motif i:first-child { border-color: var(--ink); }

.about__three { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.about__pillar {
  height: 100%; display: flex; flex-direction: column; gap: 14px; text-decoration: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 2.4vw, 34px);
}
.about__pillar h2 { margin: 0; font-family: var(--f-display); font-stretch: 112%; font-weight: 900; text-transform: uppercase; font-size: clamp(28px, 3vw, 48px); line-height: .95; letter-spacing: -.03em; }
.about__pillar p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.about__pillar:hover h2, .about__pillar:focus-visible h2 { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: .1em; text-underline-offset: .1em; }
.about__layer { margin: clamp(64px, 12vh, 140px) 0; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px 56px; align-items: center; }
.about__layer p { margin: 0; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.6; color: var(--ink-2); max-width: 60ch; }
.about__layer p:first-child { color: var(--ink); }
.about__manifesto { padding-top: clamp(28px, 5vh, 48px); border-top: 1px solid var(--line); }
.about__big {
  margin: 0 0 .5em; max-width: 24ch; font-family: var(--f-display); font-stretch: 100%; font-weight: 800;
  font-size: clamp(28px, 4vw, 60px); line-height: 1.04; letter-spacing: -.035em; text-wrap: balance;
}
.about__less { list-style: none; margin: clamp(28px, 5vh, 48px) 0 0; padding: 0; max-width: 760px; }
.about__less li { padding: 14px 0; border-top: 1px solid var(--line); font-size: clamp(17px, 1.4vw, 21px); color: var(--ink-2); }
.about__less li:last-child { border-bottom: 1px solid var(--line); }
.about__close { margin-top: clamp(80px, 14vh, 160px); display: grid; justify-items: start; gap: 14px; }
.about__sign { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; display: flex; align-items: center; gap: 16px; }
.about__sign::before { content: ""; width: 42px; height: 1.4px; background: currentColor; }
.about__tag { margin: 0 0 12px; font-family: var(--f-display); font-stretch: 118%; font-weight: 900; text-transform: uppercase; font-size: clamp(34px, 6vw, 96px); line-height: .92; letter-spacing: -.035em; text-wrap: balance; }

/* ==========================================================================
   Ask FrontDesk — the floating live Assistant
   ========================================================================== */
.ask__fab {
  position: fixed; right: max(16px, calc(var(--gutter) - 24px)); bottom: 20px; z-index: 45;
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  background: var(--paper); color: var(--ink); border: 1px solid var(--ink); border-radius: 999px;
  padding: 6px 18px 6px 6px; font-size: 14.5px; font-weight: 600; box-shadow: var(--shadow);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.ask__fab:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.ask__fab-icon, .ask__avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; flex: none; }
.ask__fab-icon svg, .ask__avatar svg { width: 18px; height: 13px; }
.ask.is-open .ask__fab { opacity: 0; pointer-events: none; }
body.is-locked .ask__fab { visibility: hidden; }

.ask__panel {
  position: fixed; right: max(16px, calc(var(--gutter) - 24px)); bottom: 20px; z-index: 55;
  width: min(390px, calc(100vw - 32px)); height: min(620px, calc(100svh - 110px));
  display: grid; grid-template-rows: auto 1fr auto auto;
  background: var(--paper); border: 1px solid var(--line); border-radius: 26px; overflow: hidden;
  box-shadow: 0 30px 80px -24px rgba(0,0,0,.35);
}
.ask__panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .ask__panel:not([hidden]) { animation: rise .45s var(--ease-out) both; transform-origin: bottom right; }
  .ask__msg { animation: bubble-in .4s var(--ease-out) both; }
  .ask__msg--typing i { animation: dots 1.1s infinite; }
  .ask.is-thinking .ask__avatar::after { animation: pulse-dot 1.2s ease-in-out infinite; }
  @keyframes pulse-dot { 50% { transform: scale(.6); opacity: .5; } }
  .ask__msg--typing i:nth-child(2) { animation-delay: .15s; }
  .ask__msg--typing i:nth-child(3) { animation-delay: .3s; }
}
.ask__head { display: flex; align-items: center; gap: 12px; padding: 16px 14px 14px 18px; border-bottom: 1px solid var(--line); }
.ask__who { min-width: 0; flex: 1; }
.ask__title { margin: 0; font-weight: 600; font-size: 15px; }
.ask__sub { margin: 0; font-size: 12px; color: var(--ink-3); }
.ask__close { width: 40px; height: 40px; border: 0; background: none; border-radius: 50%; cursor: pointer; display: grid; place-items: center; flex: none; }
.ask__close:hover { background: var(--paper-2); }
.ask__close svg { width: 22px; height: 22px; }
.ask__log { overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; }
.ask__msg { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; }
.ask__msg--bot { align-self: flex-start; background: var(--paper-2); border-bottom-left-radius: 6px; }
.ask__msg--user { align-self: flex-end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 6px; }
.ask__msg a { color: inherit; font-weight: 600; text-underline-offset: 3px; }
.ask__msg--typing { display: inline-flex; gap: 4px; padding: 13px 15px; }
.ask__msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); } /* cyan: AI working */
.ask__avatar { position: relative; }
.ask.is-thinking .ask__avatar::after { /* cyan: live pulse while the Assistant is working */
  content: ""; position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--cyan); border: 2px solid var(--paper);
}
.ask__msg--error::before, .ask__note--escalate::before, .intake__error:not(:empty)::before { /* coral: failure or human handoff */
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); margin-right: 8px; vertical-align: .08em;
}
.ask__note--escalate { color: var(--ink-2); font-weight: 600; }
.ask__note { align-self: center; margin: 2px 0; font-size: 12px; color: var(--ink-3); }
.ask__suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px; }
.ask__suggest:not(:empty) { padding-bottom: 10px; }
.ask__chip { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 7px 12px; font-size: 13px; cursor: pointer; transition: border-color .2s; }
.ask__chip:hover { background: var(--lime); border-color: var(--lime); }
.ask__form { display: flex; align-items: flex-end; gap: 8px; margin: 0 12px 12px; padding: 6px 6px 6px 16px; border: 1px solid var(--line); border-radius: 24px; }
.ask__form:focus-within { border-color: var(--ink); }
.ask__input { flex: 1; min-width: 0; border: 0; outline: 0; resize: none; font: inherit; font-size: 16px; line-height: 1.4; padding: 9px 0; background: transparent; max-height: 120px; }
.ask__send { width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; background: var(--ink); color: var(--paper); cursor: pointer; display: grid; place-items: center; }
.ask__send svg { width: 20px; height: 20px; }
.ask__send:disabled { opacity: .35; cursor: default; }

/* ==========================================================================
   Motion — three discrete states per page, toggled by IntersectionObserver.
   Hidden starting states only exist when JS runs and motion is allowed;
   with reduced motion everything is simply visible at rest.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* Entrance — headline: blur-to-sharp, word by word, landing in solid black */
  .js [data-page] .headline .w {
    opacity: 0; filter: blur(14px); transform: translateY(.06em);
    transition: opacity .8s var(--ease-out), filter 1.1s var(--ease-out), transform 1.1s var(--ease-out);
    transition-delay: calc(var(--i) * 110ms + 260ms);
  }
  .js [data-page].is-in .headline .w { opacity: 1; filter: blur(0); transform: none; }
  .js [data-page].is-idle .headline .w { filter: none; }

  /* Entrance — supporting text and CTA: rise + fade, a beat behind */
  .js [data-page] .r, .js [data-page] .eyebrow { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform 1s var(--ease-out); }
  .js [data-page] .eyebrow::before { transform: scaleX(0); transition: transform 1s var(--ease-out) .1s; }
  .js [data-page].is-in .eyebrow, .js [data-page].is-in .r { opacity: 1; transform: none; }
  .js [data-page].is-in .eyebrow::before { transform: none; }
  /* scene-change signal: the rule draws in lime, then settles to black */
  .staged [data-page].is-in .eyebrow::before { animation: signal 1.6s var(--ease-out) both; }
  @keyframes signal { 0%, 45% { background: var(--lime); } 100% { background: var(--ink); } }
  /* the footer slide fades in over the stage and out again */
  .staged .footer--story { opacity: 0; transition: opacity .6s var(--ease-out); }
  .staged .footer--story.is-in { opacity: 1; }
  .staged .footer--story.is-leaving { opacity: 0; transition: opacity .45s var(--ease-in); }
  .js [data-page].is-in .headline ~ .r { transition-delay: .55s; }
  .js [data-page].is-in .headline ~ .body { transition-delay: .65s; }
  .js [data-page].is-in .headline ~ .body ~ .r { transition-delay: .78s; }
  .js [data-page].is-in .scroll-cue { transition-delay: 1.2s; }
  .js [data-page] .scroll-cue { transform: translateX(-50%) translateY(10px); }
  .js [data-page].is-in .scroll-cue { transform: translateX(-50%); }

  /* Staggered card entrance, left to right */
  .js [data-page] .gains li { opacity: 0; transform: translateX(-16px); transition: opacity .7s var(--ease-out), transform .9s var(--ease-out), box-shadow .45s var(--ease-out); }
  .js [data-page].is-in .gains li { opacity: 1; transform: none; }
  .js [data-page].is-in .gains li:nth-child(1) { transition-delay: .85s; }
  .js [data-page].is-in .gains li:nth-child(2) { transition-delay: 1.05s; }
  .js [data-page].is-in .gains li:nth-child(3) { transition-delay: 1.25s; }
  .js [data-page].is-idle .gains li { transition-delay: 0s; }
  .js [data-page].is-idle .gains li:hover { transform: translateY(-3px); }
  .js [data-page].is-in .gains ~ .r { transition-delay: 1.4s; }

  /* Entrance — depth: the photo settles first from slightly further away, then the type
     sharpens in (above), then the pillar card swings in (below). Each layer travels a
     different distance on its own beat. */

  /* Entrance — photo/panel: appears washed out, then develops to full contrast */
  .js [data-page] .visual__motion { opacity: 0; transform: translateY(28px) scale(1.04); transition: opacity 1s var(--ease-out) .12s, transform 1.8s var(--ease-out) .12s; }
  .js [data-page] .visual__motion::after { opacity: .62; transition: opacity 2.2s var(--ease-out) .35s; }
  .js [data-page].is-in .visual__motion { opacity: 1; transform: none; }
  .js [data-page].is-in .visual__motion::after { opacity: 0; }

  /* Capability pages: copy holds, the panel slides in laterally */
  .js .page--cap .visual__motion { transform: translateX(9%); }
  .js .page--cap.is-in .visual__motion { transform: none; }
  /* Pillar card: the page's one big move. Tilted, small and low, it swings flat and
     up to full size. */
  .js [data-page] .card-float, .js [data-page] .settle {
    opacity: 0; --sc: .84; --dy: 44px; --rx: 18deg; --ry: -14deg;
    transition: opacity .9s var(--ease-out) .85s, --sc 1.7s var(--ease-out) .85s, --dy 1.7s var(--ease-out) .85s,
                --rx 1.7s var(--ease-out) .85s, --ry 1.7s var(--ease-out) .85s, box-shadow .45s;
  }
  .js [data-page].is-in .card-float, .js [data-page].is-in .settle { opacity: 1; --sc: 1; --dy: 0px; --rx: 0deg; --ry: 0deg; }
  .js [data-page].is-idle .card-float, .js [data-page].is-idle .settle {
    transition: opacity .6s var(--ease-out), --sc .9s var(--ease-out), --dy .9s var(--ease-out),
                --rx .6s var(--ease-out), --ry .6s var(--ease-out), box-shadow .45s;
  }

  /* Idle — slow, near-imperceptible drift on the photography */
  [data-page].is-idle .visual__img { animation: drift 30s ease-in-out infinite alternate; }
  .page--hero.is-idle .visual__img { animation: drift-trap 22s ease-in-out infinite alternate; }
  @keyframes drift { from { transform: scale(1); } to { transform: scale(1.05) translate3d(-1%, -.8%, 0); } }
  @keyframes drift-trap { from { transform: scale(1) rotate(0); } to { transform: scale(1.04) rotate(-.6deg); } }

  /* Idle — one living detail per capability page */
  .page--aeo.is-idle .caret { animation: blink 1.05s steps(1) infinite; }
  .bubble--typing i { animation: dots 1.1s infinite; }
  .bubble--typing i:nth-child(2) { animation-delay: .15s; }
  .bubble--typing i:nth-child(3) { animation-delay: .3s; }
  .page--receptionist.is-idle .live-calls__wave i { animation: wave .9s var(--ease-io) infinite alternate; }
  .live-calls__wave i:nth-child(2) { animation-delay: -.2s; }
  .live-calls__wave i:nth-child(3) { animation-delay: -.5s; }
  .live-calls__wave i:nth-child(4) { animation-delay: -.1s; }
  .live-calls__wave i:nth-child(5) { animation-delay: -.65s; }
  .live-calls__wave i:nth-child(6) { animation-delay: -.3s; }
  .live-calls__wave i:nth-child(7) { animation-delay: -.8s; }
  .live-calls__wave i:nth-child(8) { animation-delay: -.4s; }
  .live-calls__wave i:nth-child(9) { animation-delay: -.15s; }
  .bubble { animation: bubble-in .5s var(--ease-out) both; }
  .scroll-cue span { animation: cue 1.8s var(--ease-io) infinite; }
  .settle.is-clear .settle__mark svg { animation: breathe 5s ease-in-out infinite; }
  @keyframes blink { 50% { opacity: 0; } }
  @keyframes dots { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
  @keyframes wave { from { transform: scaleY(.2); } to { transform: scaleY(1); } }
  @keyframes bubble-in { from { opacity: 0; transform: translateY(10px) scale(.97); } }
  @keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
  @keyframes breathe { 50% { transform: scale(1.035); } }

  /* Exit — lift, fade and recede as the next page enters underneath */
  .js [data-page].is-leaving .visual__motion { opacity: 0; transform: translateY(-8%) scale(.96); transition: opacity .5s var(--ease-out), transform .9s var(--ease-io); }
  .js .page--hero.is-leaving .visual__motion { transform: translate(6%, -24%) rotate(-11deg) scale(.9); transition: opacity .7s var(--ease-out) .1s, transform .9s var(--ease-io); }
  .js [data-page] .page__copy { transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); }
  .js [data-page].is-leaving .page__copy { opacity: 0; transform: translateY(-36px); transition: opacity .35s var(--ease-out), transform .7s var(--ease-io); }
  .js [data-page].is-leaving .card-float, .js [data-page].is-leaving .settle { opacity: 0; --dy: -56px; --sc: 1.06; }
}

/* About motion (spec §13): entrances play once in view; idle drift is time-based. */
@media (prefers-reduced-motion: no-preference) {
  /* 0 — shapes drift in after the desk dissolves, then float at their own pace */
  .js [data-reveal] .belief-node__body { opacity: 0; transform: translateY(28px) scale(.72); transition: opacity .9s var(--ease-out), transform 1.4s var(--ease-out), border-color .25s, box-shadow .25s; }
  .js [data-reveal] .belief-old { opacity: 0; }
  .js [data-reveal].is-in .belief-old { opacity: 1; }
  .js [data-reveal].is-in .belief-scene.is-shift .belief-old { opacity: 0; }
  .js [data-reveal] .belief-scene.is-shift .belief-node__body { opacity: 1; transform: scale(calc(.82 + var(--d) * .14)); transition-delay: calc(var(--i) * 180ms + 250ms), calc(var(--i) * 180ms + 250ms), 0s, 0s; }
  .belief-scene.is-shift .belief-node { animation: float calc(6s + var(--i) * 1.7s) ease-in-out calc(1.8s + var(--i) * -.9s) infinite alternate; }
  @keyframes float { from { translate: 0 -6px; } to { translate: 0 8px; } }

  /* 1 — planes rise into their stack, then drift slowly at different speeds */
  .js [data-reveal] .layers-motif i { opacity: 0; translate: 0 50px; transition: opacity .9s var(--ease-out), translate 1.6s var(--ease-out); transition-delay: calc(var(--n) * 160ms); }
  .js [data-reveal].is-in .layers-motif i { opacity: 1; translate: 0 0; }
  .js [data-reveal].is-in .layers-motif i { animation: plane calc(7s + var(--n) * 2.2s) ease-in-out calc(1.8s + var(--n) * .4s) infinite alternate; }
  @keyframes plane { from { translate: 0 0; } to { translate: 0 calc(-6px - var(--n) * 3px); } }
  .js [data-reveal] .about__layer-text { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); }
  .js .about__layer.is-in .about__layer-text { opacity: 1; transform: none; }

  /* 2 — "less time" lines float in one by one */
  .js [data-reveal] .about__less li { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-out), transform 1.1s var(--ease-out); }
  .js [data-reveal].is-in .about__less li { opacity: 1; transform: none; }
  .js [data-reveal].is-in .about__less li:nth-child(1) { transition-delay: .1s; }
  .js [data-reveal].is-in .about__less li:nth-child(2) { transition-delay: .55s; }
  .js [data-reveal].is-in .about__less li:nth-child(3) { transition-delay: 1s; }
}
@media (prefers-reduced-motion: reduce) {
  .belief-old { display: none; }
}

/* ==========================================================================
   Intake (conversational, opened from a package on the Pricing page)
   ========================================================================== */
.intake {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .86);
  padding: 24px;
}
.intake[hidden] { display: none; }
.intake__panel {
  position: relative; width: min(560px, 100%); height: min(720px, 100%);
  display: grid; grid-template-rows: auto 1fr auto auto auto;
  background: var(--paper); border-radius: 28px; border: 1px solid var(--line);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.35);
  overflow: hidden;
}
@media (prefers-reduced-motion: no-preference) {
  .intake:not([hidden]) { animation: fade .35s ease both; }
  .intake:not([hidden]) .intake__panel { animation: rise .55s var(--ease-out) both; }
  .msg { animation: bubble-in .45s var(--ease-out) both; }
  .msg--typing i { animation: dots 1.1s infinite; }
  .msg--typing i:nth-child(2) { animation-delay: .15s; }
  .msg--typing i:nth-child(3) { animation-delay: .3s; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(30px) scale(.98); } }

.intake__head { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 16px 22px; border-bottom: 1px solid var(--line); }
.intake__who { display: flex; align-items: center; gap: 12px; }
.intake__title { margin: 0; font-weight: 600; font-size: 15px; }
.intake__status { margin: 0; font-size: 12px; color: var(--ink-3); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; flex: none; }
.avatar svg { width: 18px; height: 13px; }
.intake__close { width: 40px; height: 40px; border: 0; background: none; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.intake__close:hover { background: var(--paper-2); }
.intake__close svg { width: 22px; height: 22px; }
.intake__progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.intake__progress span { display: block; height: 100%; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }

.intake__log { overflow-y: auto; padding: 22px 20px 10px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.msg { max-width: 84%; padding: 11px 15px; border-radius: 18px; font-size: 15px; line-height: 1.42; overflow-wrap: anywhere; }
.msg--bot { align-self: flex-start; background: var(--paper-2); border-bottom-left-radius: 6px; }
.msg--user { align-self: flex-end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 6px; }
.msg--typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }
.summary { align-self: stretch; max-width: none; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; font-size: 14px; }
.summary dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.summary dt { color: var(--ink-3); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; padding-top: 2px; }
.summary dd { margin: 0; overflow-wrap: anywhere; }

.intake__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px; }
.intake__chips:not(:empty) { padding-bottom: 12px; }
.chip { border: 1px solid var(--ink); background: var(--paper); border-radius: 999px; cursor: pointer; padding: 8px 14px; font-size: 13.5px; transition: background .2s, color .2s, transform .3s var(--ease-out); }
.chip:hover, .chip:focus-visible { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.chip:active { transform: scale(.96); }

.intake__form { display: flex; align-items: center; gap: 8px; margin: 0 16px 6px; padding: 6px 6px 6px 18px; border: 1px solid var(--line); border-radius: 999px; }
.intake__form:focus-within { border-color: var(--ink); }
.intake__form[hidden] { display: none; }
.intake__input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; padding: 8px 0; background: transparent; }
.intake__send { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--ink); color: var(--paper); cursor: pointer; display: grid; place-items: center; }
.intake__send svg { width: 22px; height: 22px; }
.intake__send:disabled { opacity: .35; cursor: default; }
.intake__skip { border: 0; background: none; cursor: pointer; font-size: 13px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; padding: 6px; }
.intake__error { min-height: 18px; margin: 0 0 12px; padding: 0 28px; font-size: 12.5px; font-weight: 600; }
.intake__done { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 20px 18px; }
.intake__done .btn { padding: 12px 22px; font-size: 15px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) and (min-width: 900px) {
  :root { --copy-w: calc(48vw - var(--gutter)); }
}
@media (max-width: 1080px) {
  .plans { grid-template-columns: minmax(0, 640px); justify-content: center; }
  .hub__group { grid-template-columns: 1fr; }
  .about__three, .about__layer, .about__belief { grid-template-columns: 1fr; }
  .belief-scene { height: 300px; }
  .belief-node { width: 47%; }
  .belief-node:nth-of-type(2), .belief-node:nth-of-type(4) { --x: 50% !important; }
  .belief-node__body { padding: 11px 12px; gap: 8px; border-radius: 16px; }
  .belief-node__body svg { width: 24px; height: 24px; }
  .belief-node__body span { font-size: 12.5px; }
  .layers-motif { height: 300px; }
}

@media (max-width: 899px) {
  :root { --top: 76px; --copy-w: calc(100vw - 2 * var(--gutter)); }
  .topbar { padding-top: 12px; }
  .pill { padding-left: 14px; }
  .brand__mark { width: 36px; height: 26px; }
  .brand__word { font-size: 17px; }
  .brand__tag { display: none; }
  .burger { margin-left: 4px; }

  /* Phone: the photo runs full-bleed from the top edge; the copy sits on it at the
     bottom with a short paper scrim, so image and text always touch. */
  .page { flex-direction: column; align-items: stretch; padding: 0; }
  .page__copy { order: 1; width: 100%; margin-top: -56px; padding: 56px var(--gutter) 24px; background: linear-gradient(rgba(255,255,255,0), var(--paper) 56px); }
  .visual, .visual--trap, .visual--receptionist, .visual--settle {
    order: 0; position: relative; inset: auto; width: 100%; margin: 0;
    flex: 1 1 auto; height: auto; min-height: 30svh;
  }
  .visual__img { -webkit-mask-image: none; mask-image: none; }
  .visual--trap .visual__img { -webkit-mask-image: none; mask-image: none; }
  .visual--trap .visual__img { object-position: 50% 40%; }
  .visual--atrium .visual__img { object-position: 30% 50%; }
  .visual--aeo .visual__img { object-position: 40% 50%; }
  .visual--assistant .visual__img { object-position: 38% 50%; }
  .settle { inset: calc(var(--top) + 4px) var(--gutter) 64px; }
  .settle__status { bottom: -28px; }
  /* three items read clearly at phone size */
  .settle__tiles li:nth-child(n+4) { display: none; }
  .settle__tiles li { width: min(84cqw, 300px); padding: 8px 12px; gap: 10px; border-radius: 14px; }
  .settle__tiles li.is-done, .settle.is-clear .settle__tiles li { --y: calc((var(--i) - 1) * min(30cqh, 60px)); }
  .settle.is-clear .settle__tiles li { --y: calc((var(--i) - 1) * min(30cqh, 60px) - 30px); }
  .settle__tiles b { font-size: 13px; }
  .settle__tiles em { font-size: 11.5px; }
  .settle__tiles li:nth-child(1) { --mx: -8 !important; --my: -22 !important; }
  .settle__tiles li:nth-child(2) { --mx: 8 !important; --my: 0 !important; }
  .settle__tiles li:nth-child(3) { --mx: -4 !important; --my: 22 !important; }

  .headline { --cap: 200px; }
  .headline .ln--light { font-size: .5em; }
  #h-payoff .ln--light { font-size: .7em; }
  .subhead { font-size: clamp(18px, 5.2vw, 28px); }
  .body { font-size: 15.5px; margin: 12px 0 18px; }
  .eyebrow { margin-bottom: 12px; }
  .trio { display: none; } /* the menu and the next three pages cover these */
  #h-receptionist { --fit: 4.3; }
  #h-solution { --fit: 6.6; }
  .scroll-cue { display: none; }
  #h-payoff { --fit: 6.2; }
  .gains { gap: 6px; }
  .gains li { min-height: 0; padding: 10px 12px; font-size: 13.5px; border-radius: 12px; }

  .record { left: auto; right: var(--gutter); bottom: 84px; width: min(250px, 70%); padding: 10px 14px 12px; }
  .record dl { font-size: 12px; gap: 4px 12px; }
  .live-chat { right: var(--gutter); bottom: 84px; width: min(270px, 72%); padding: 10px 10px 9px; border-radius: 18px; }
  .live-chat__body { height: 150px; }
  .bubble { font-size: 12px; padding: 7px 10px; }
  .live-calls { bottom: 88px; padding: 9px 14px; font-size: 12px; gap: 9px; }

  .ask__fab { right: 12px; bottom: 12px; padding: 5px; }
  .ask__fab-label { display: none; }
  .ask__fab-icon { width: 42px; height: 42px; }
  .ask__panel { inset: 0; width: 100%; height: 100%; border-radius: 0; border: 0; z-index: 75; }

  .plans { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__nav { justify-content: flex-start; }

  .intake { padding: 0; }
  .intake__panel { width: 100%; height: 100%; border-radius: 0; border: 0; }
}

/* Short phones (iPhone SE-class, ~667px tall and under): the payoff page's
   copy stack (eyebrow + wide 4-line headline + body + 3 gains tiles + CTA)
   is the tallest in the deck and was the one page tipping allFit() to false,
   which silently dropped the whole site out of staged/transition mode. Trim
   its vertical rhythm just enough to fit so transitions stay on. */
@media (max-width: 899px) and (max-height: 700px) {
  .eyebrow { margin-bottom: 8px; }
  .body { margin: 8px 0 12px; }
  .gains { margin-bottom: 12px; }
  #h-payoff { --cap: 7.6vh; }
}

@media (max-width: 480px) {
  .topbar { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .pill { padding-left: 12px; }
  .brand { gap: 8px; }
  .brand__mark { width: 30px; height: 21px; }
  .brand__word { font-size: 15px; }
  .burger { margin-left: 0; }
  .btn--sm { padding: 10px 16px; font-size: 13.5px; }
  .btn--sm svg { display: none; }
}
@media (max-width: 380px) {
  .brand__text { display: none; }
}
@media (max-width: 400px) {
  .brand__word { font-size: 14px; }
  .btn:not(.btn--sm) { padding: 14px 22px 14px 32px; font-size: 16px; }
}
