/* ==========================================================================
   STRATA — realtor growth system
   ========================================================================== */

@font-face { font-family: "Reckless"; src: url(../assets/fonts/reckless.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "STK Miso"; src: url(../assets/fonts/stkmiso-regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "STK Miso"; src: url(../assets/fonts/stkmiso-medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Rollerscript"; src: url(../assets/fonts/rollerscript.woff2) format("woff2"); font-display: swap; }

:root {
  --ink: #171412;
  --mahogany: #1f1b18;
  --ash: #3b3734;
  --cream: #fdfaf8;
  --card: #fcf7f4;
  --sand: #efe8e1;
  --line: #ddd5ce;
  --muted: #a19a94;
  --muted-2: #75706b;
  --lavender: #c9b1ff;
  --mint: #a8ddd0;
  --live: #2f9e6b;

  --serif: "Reckless", "Iowan Old Style", Georgia, serif;
  --sans: "STK Miso", "Helvetica Neue", Arial, sans-serif;
  --script: "Rollerscript", cursive;

  --pad: clamp(16px, 3.9vw, 56px);
  --max: 1440px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
::selection { background: var(--lavender); color: var(--ink); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.dark { background: var(--cream); color: var(--ink); }
.light { background: #fff; color: var(--ink); }
.light-cream { background: var(--cream); color: var(--ink); }

/* ---------- type ---------- */
.display, .h1, .h2, .h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.02em; }
.display { font-size: clamp(42px, 4.6vw, 66px); line-height: 0.98; }
.h1 { font-size: clamp(40px, 4.8vw, 72px); line-height: 1; }
.h2 { font-size: clamp(32px, 3vw, 44px); line-height: 1.08; }
.h3 { font-size: clamp(22px, 1.8vw, 26px); line-height: 1.2; letter-spacing: -0.01em; }
.center { text-align: center; }
.eyebrow { display: block; font-size: 13px; color: var(--muted-2); margin-bottom: 14px; }
.eyebrow-dark { color: var(--muted-2); }

.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line > span { display: block; will-change: transform; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 14px; border-radius: 6px;
  font-size: 15px; font-weight: 400; white-space: nowrap;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-sm { height: 38px; font-size: 14px; }
.btn-lg { height: 50px; padding: 0 22px; font-size: 16px; }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-outline-light { border: 1px solid rgba(253, 250, 248, 0.45); color: var(--cream); }
.btn-outline-light:hover { border-color: var(--cream); background: rgba(253, 250, 248, 0.08); }
.btn-dark { background: var(--mahogany); color: var(--cream); }
.btn-dark:hover { background: var(--ink); }
.btn-outline-dark { border: 1px solid var(--line); color: var(--ink); background: #fff; }
.btn-outline-dark:hover { border-color: var(--ink); }

/* ---------- preloader ---------- */
.loader { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: var(--cream); }
.loader-mark { width: 84px; height: auto; overflow: visible; color: var(--ink); }
.loader-mark .draw { fill: none; stroke: var(--ink); stroke-width: 7; stroke-linejoin: round; }
.loader-mark .fill { fill: var(--ink); opacity: 0; }

/* ---------- header ---------- */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; color: var(--ink); background: var(--cream); transition: background-color .35s, color .35s, box-shadow .35s; }
.header.is-light { background: #fff; color: var(--ink); box-shadow: 0 1px 0 rgba(23, 20, 18, 0.06); }
.header-row { max-width: var(--max); margin: 0 auto; height: 86px; padding: 0 var(--pad); display: flex; align-items: center; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 28px; height: auto; transition: transform .8s var(--ease); }
.brand:hover .brand-mark { transform: rotate(120deg); }
.brand-word { width: 92px; height: auto; }
.nav { display: flex; gap: 40px; font-size: 16px; }
.nav a { position: relative; transition: opacity .25s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.link-quiet { font-size: 16px; }
.btn-cta { background: var(--mahogany); color: var(--cream); }
.header.is-light .btn-cta { background: var(--mahogany); color: var(--cream); }
.menu-btn { display: none; width: 40px; height: 40px; position: relative; }
.menu-btn span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.menu-btn span:first-child { top: 16px; } .menu-btn span:last-child { top: 23px; }
.menu-open .menu-btn span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--cream); color: var(--ink);
  padding: 110px var(--pad) 32px; display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease); pointer-events: none;
}
.menu-open .mobile-menu { clip-path: inset(0); pointer-events: auto; }
.menu-open .header { background: var(--cream) !important; color: var(--ink) !important; box-shadow: none; }
.mobile-menu nav { display: grid; gap: 8px; }
.mobile-menu nav a { font-family: var(--serif); font-size: 44px; line-height: 1.1; }
@media (max-width: 1080px) { .nav { gap: 24px; font-size: 15px; } .link-quiet { display: none; } }
@media (max-width: 900px) {
  .nav, .header-cta .btn-cta { display: none; }
  .menu-btn { display: block; }
  .header-row { height: 68px; }
}

/* ---------- hero ---------- */
.hero { padding-top: 86px; }
.hero-card {
  position: relative; margin: 0 24px; border-radius: 12px; overflow: hidden;
  height: clamp(560px, calc(100svh - 190px), 760px);
  display: flex; align-items: center; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -3; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; transform-origin: 60% 50%; }
.hero-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(23,20,18,.82) 0%, rgba(23,20,18,.6) 32%, rgba(23,20,18,.12) 62%, rgba(23,20,18,0) 80%), linear-gradient(0deg, rgba(23,20,18,.35), rgba(23,20,18,0) 40%); }
.halftone { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url(../assets/halftone.png) repeat; background-size: 4px; opacity: .22; mix-blend-mode: multiply; }
.hero-scraps { position: absolute; left: -60px; bottom: -96px; width: min(320px, 34vw); z-index: 1; pointer-events: none; }
.hero-content { position: relative; z-index: 2; padding: 0 32px; max-width: 700px; }
.case-pill { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 26px; font-size: 15px; color: rgba(253,250,248,.9); max-width: 100%; }
.case-tag { padding: 3px 7px; border: 1px solid rgba(253,250,248,.55); border-radius: 4px; flex: none; }
.case-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-pill svg { width: 15px; flex: none; transition: transform .4s var(--ease); }
.case-pill:hover svg { transform: translateX(4px); }
.hero h1 { color: var(--cream); max-width: 15ch; }
.hero-sub { margin: 26px 0 0; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.45; color: rgba(253,250,248,.9); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.trust { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: center; padding: 26px var(--pad) 30px; max-width: var(--max); margin: 0 auto; }
.trust p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ash); }
.trust-list { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.trust-list li { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 21px; color: var(--ink); letter-spacing: -0.01em; }
.trust-list svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .hero-card { margin: 0 12px; height: auto; min-height: 640px; align-items: flex-end; }
  .hero-media img { object-position: 70% 30%; }
  .hero-shade { background: linear-gradient(180deg, rgba(23,20,18,.1) 0%, rgba(23,20,18,.55) 40%, rgba(23,20,18,.92) 70%); }
  .hero-content { padding: 220px 20px 40px; }
  .case-text { white-space: normal; }
  .hero-scraps { display: none; }
  .trust { grid-template-columns: 1fr; gap: 18px; }
  .trust-list { justify-content: flex-start; gap: 14px 22px; }
  .trust-list li { font-size: 17px; }
}

/* ---------- how (sticky features) ---------- */
.how { padding: clamp(80px, 9vw, 130px) 0 clamp(60px, 8vw, 120px); }
.how-title { max-width: 620px; }
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); margin-top: clamp(60px, 9vw, 140px); }
.how-item { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 48px 0; border-top: 1px solid var(--sand); max-width: 470px; opacity: .35; transition: opacity .6s var(--ease); }
.how-item:first-child { border-top: 0; }
.how-item.is-active { opacity: 1; }
.how-item .h3 { color: var(--ink); }
.how-item p { margin: 14px 0 0; font-size: 18px; line-height: 1.45; color: var(--ash); }
.how-item .btn { align-self: flex-start; margin-top: 28px; }
.how-stage { position: sticky; top: calc(50vh - min(33vh, 300px)); height: min(66vh, 600px); border-radius: 12px; overflow: hidden; }
.how-photo { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .8s var(--ease); }
.how-photo.is-active { opacity: 1; }
.how-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.6s var(--ease); }
.how-photo.is-active img { transform: scale(1); }
.how-photo .ui-float { position: absolute; left: 24px; bottom: 24px; opacity: 0; transform: translateY(16px); transition: opacity .6s .25s var(--ease), transform .8s .25s var(--ease); }
.how-photo.is-active .ui-float { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .how-grid { grid-template-columns: 1fr; margin-top: 40px; }
  .how-stage { display: none; }
  .how-item { min-height: 0; opacity: 1; padding: 36px 0; }
  .how-item::before { content: ""; display: block; aspect-ratio: 16/11; border-radius: 10px; margin-bottom: 26px; background: var(--img) center/cover; }
  .how-item[data-feature="0"] { --img: url(../assets/img/feat-desk-sm.jpg); }
  .how-item[data-feature="1"] { --img: url(../assets/img/feat-handshake-sm.jpg); }
  .how-item[data-feature="2"] { --img: url(../assets/img/feat-signing-sm.jpg); }
  .how-item[data-feature="3"] { --img: url(../assets/img/feat-home-sm.jpg); }
}

/* ---------- UI mock cards (shared) ---------- */
.ui { background: #fff; color: var(--ink); border-radius: 10px; box-shadow: 0 1px 0 rgba(23,20,18,.04), 0 20px 50px -12px rgba(23,20,18,.35); font-size: 13px; line-height: 1.35; }
.ui-float { width: min(320px, calc(100% - 48px)); padding: 14px 16px; }
.ui-head, .ui-row-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; color: var(--muted-2); }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px; border-radius: 4px; background: var(--sand); color: var(--mahogany); font-size: 11px; font-weight: 500; white-space: nowrap; }
.tag-live { background: #e3f3ea; color: #1f6b47; }
.tag-live::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.tag-warm { background: #fdeee2; color: #a2541c; }
.tag-lav { background: #efe7ff; color: #5b3fae; }
.ui-bar-row { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 10px; margin-top: 8px; color: var(--muted-2); }
.ui-bar { display: block; height: 6px; border-radius: 9px; background: var(--sand); overflow: hidden; }
.ui-bar i { display: block; height: 100%; width: var(--w); background: var(--mahogany); border-radius: inherit; }
.msg { margin: 8px 0 0; padding: 8px 11px; border-radius: 14px; max-width: 88%; font-size: 13px; }
.msg-ai { background: var(--sand); border-bottom-left-radius: 4px; }
.msg-lead { margin-left: auto; background: #2f7cf6; color: #fff; border-bottom-right-radius: 4px; width: max-content; }
.ui-qual dl { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ui-qual dl div { background: var(--card); border: 1px solid var(--sand); border-radius: 8px; padding: 8px; }
.ui-qual dt { color: var(--muted-2); font-size: 11px; }
.ui-qual dd { margin: 3px 0 0; font-weight: 500; }
.ui-book { display: flex; align-items: center; gap: 12px; }
.ui-book b { display: block; font-weight: 500; font-size: 14px; }
.ui-book small { color: var(--muted-2); }
.ui-icon { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #e3f3ea; color: #1f6b47; }
.ui-icon svg { width: 16px; }

/* ---------- results ---------- */
.results { padding: clamp(80px, 9vw, 130px) 0; overflow: hidden; }
.results-grid { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: clamp(32px, 6vw, 96px); }
.results-left { display: flex; flex-direction: column; justify-content: space-between; gap: 60px; }
.results-left .h2 { max-width: 300px; }
.stat-slides { display: grid; }
.stat-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; }
.stat-slide.is-active { opacity: 1; visibility: visible; }
.stat-big { font-family: var(--serif); font-size: clamp(60px, 5.5vw, 80px); line-height: 1; letter-spacing: -0.03em; display: flex; }
.stat-big .col { display: inline-block; height: 1.05em; overflow: hidden; }
.stat-big .col > span { display: block; }
.stat-big .col > span > span { display: block; height: 1.05em; }
.stat-slide p { margin: 22px 0 0; font-size: 18px; color: var(--ash); max-width: 230px; line-height: 1.4; }
.dots { display: flex; gap: 6px; margin-top: 34px; }
.dots button { width: 6px; height: 6px; border-radius: 9px; background: var(--line); transition: width .4s var(--ease), background-color .3s; }
.dots button.is-active { width: 20px; background: var(--mahogany); }
.cards-viewport { overflow: hidden; cursor: grab; padding-right: var(--pad); touch-action: pan-y; }
.cards-viewport.is-drag { cursor: grabbing; }
.cards-track { display: flex; gap: 24px; width: max-content; will-change: transform; }
.vcard { width: clamp(280px, 38vw, 544px); aspect-ratio: 544 / 572; border-radius: 12px; background: var(--cream); padding: 32px; display: flex; flex-direction: column; justify-content: flex-end; user-select: none; }
.vcard-art { flex: 1; display: grid; place-items: center; }
.vcard h3 { margin: 0; font-family: var(--sans); font-weight: 500; font-size: 20px; }
.vcard p { margin: 10px 0 0; color: var(--muted-2); font-size: 16px; max-width: 400px; }
.cutout { width: 58%; aspect-ratio: 1; overflow: hidden; filter: grayscale(.35) contrast(1.08); pointer-events: none; }
.cutout img { width: 100%; height: 100%; object-fit: cover; }
.cutout-circle { clip-path: polygon(50% 0%, 61% 2%, 70% 5%, 80% 11%, 87% 18%, 93% 27%, 97% 37%, 100% 48%, 99% 58%, 96% 67%, 91% 76%, 84% 84%, 76% 91%, 66% 96%, 55% 99%, 45% 100%, 35% 97%, 26% 93%, 17% 86%, 10% 78%, 5% 69%, 2% 59%, 0% 49%, 2% 39%, 5% 30%, 10% 21%, 18% 13%, 27% 7%, 37% 2%); }
.cutout-tilt { aspect-ratio: 4/3; width: 70%; transform: rotate(-6deg); -webkit-mask: url(../assets/torn-mask-bottom.svg) center/100% 100%; mask: url(../assets/torn-mask-bottom.svg) center/100% 100%; }
@media (max-width: 900px) {
  .results-grid { grid-template-columns: 1fr; }
  .results-left { padding-right: var(--pad); gap: 32px; }
  .results-left .h2 { max-width: none; }
  .vcard { width: 78vw; padding: 22px; }
}

/* ---------- quote ---------- */
.quote { padding: clamp(80px, 9vw, 130px) 0; }
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.quote-mark { display: flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--mahogany); }
.quote-mark svg { width: 26px; }
.quote-text { margin: 34px 0 0; font-family: var(--serif); font-size: clamp(26px, 2.4vw, 34px); line-height: 1.18; letter-spacing: -0.01em; max-width: 560px; }
.signature { font-family: var(--script); font-size: 30px; margin: 26px 0 30px; color: var(--mahogany); }
.quote-photo { margin: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 628 / 520; }
.quote-photo img { width: 100%; height: 115%; object-fit: cover; object-position: 50% 25%; }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; } .quote-photo { order: -1; } }

/* ---------- system (pinned tabs) ---------- */
.system { padding-top: clamp(90px, 10vw, 150px); }
.system-intro { text-align: center; padding: 0 var(--pad); }
.split-fade span { display: block; }
.split-fade span + span { color: var(--line); }
.system-pin { height: 100vh; display: flex; align-items: center; }
.system-grid { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.sys-tabs { list-style: none; margin: 0; padding: 0; display: grid; gap: 42px; }
.sys-tabs button { text-align: left; font-family: var(--serif); font-size: clamp(24px, 2.2vw, 32px); line-height: 1.12; letter-spacing: -0.01em; color: var(--line); transition: color .5s var(--ease); max-width: 260px; }
.sys-tabs li.is-active button { color: var(--ink); }
.sys-tabs button:hover { color: var(--muted-2); }
.sys-visuals { position: relative; aspect-ratio: 450 / 600; max-height: 72vh; width: 100%; justify-self: center; }
.sys-vis { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; }
.sys-vis.is-active { opacity: 1; visibility: visible; }
.torn-photo { position: absolute; inset: 0 0 18% 0; overflow: hidden; -webkit-mask: url(../assets/torn-mask-bottom.svg) center/100% 100%; mask: url(../assets/torn-mask-bottom.svg) center/100% 100%; }
.torn-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.sys-vis::before { content: ""; position: absolute; left: 8%; right: -6%; top: 58%; bottom: 0; background: var(--sand); z-index: -1; -webkit-mask: url(../assets/torn-mask-top.svg) center/100% 100%; mask: url(../assets/torn-mask-top.svg) center/100% 100%; }
.sys-vis:nth-child(2)::before { background: #f6c9b0; }
.sys-vis:nth-child(3)::before { background: #e8d9cf; }
.sys-vis:nth-child(4)::before { background: var(--lavender); }
.ui-panel { position: absolute; left: -8%; right: 12%; bottom: 4%; padding: 14px 16px; }
.ui-panel.ui-wide { right: -10%; }
.ui-row { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid var(--sand); }
.ui-ic { color: var(--muted-2); }
.ui-total { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 10px; border-radius: 8px; background: var(--card); font-weight: 500; }
.ui-logo { width: 28px; height: 28px; border-radius: 7px; background: var(--ink); color: var(--cream); display: grid; place-items: center; flex: none; }
.ui-logo svg { width: 15px; }
.ui-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.ui-kpis > div { background: var(--card); border: 1px solid var(--sand); border-radius: 8px; padding: 9px 10px; }
.ui-kpis small { display: block; color: var(--muted-2); font-size: 11px; }
.ui-kpis b { display: block; font-family: var(--serif); font-weight: 400; font-size: 20px; margin-top: 4px; }
.ui-kpis em { font-style: normal; font-size: 11px; color: var(--muted-2); }
.ui-table > div, .ui-list > div { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 8px; align-items: center; padding: 8px 2px; border-top: 1px solid var(--sand); }
.ui-table .th, .ui-list .th { border-top: 0; color: var(--muted-2); font-size: 11px; }
.ui-timeline { list-style: none; margin: 4px 0 0; padding: 0 0 0 16px; border-left: 1.5px solid var(--sand); display: grid; gap: 12px; }
.ui-timeline li { position: relative; }
.ui-timeline li::before { content: ""; position: absolute; left: -21px; top: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--lavender); box-shadow: 0 0 0 3px #fff; }
.ui-timeline b { display: block; font-weight: 500; }
.ui-timeline small { color: var(--muted-2); }
.sys-desc { position: relative; display: grid; }
.sys-desc p { grid-area: 1 / 1; margin: 0; font-size: 16px; line-height: 1.5; color: var(--ash); max-width: 300px; opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.sys-desc p.is-active { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .system-pin { height: auto; padding: 40px 0 80px; }
  .system-grid { grid-template-columns: 1fr; gap: 28px; }
  .sys-tabs { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; order: -1; }
  .sys-tabs button { white-space: nowrap; font-size: 22px; max-width: none; }
  .sys-visuals { max-width: 400px; max-height: none; }
  .ui-panel { left: 0; right: 0; }
  .ui-panel.ui-wide { right: 0; }
}

/* ---------- live demo ---------- */
.demo { padding: clamp(80px, 9vw, 130px) 0; }
.demo-grid { display: grid; grid-template-columns: 1fr minmax(320px, 400px); gap: clamp(32px, 6vw, 110px); align-items: center; }
.demo-copy .h2 { max-width: 560px; }
.demo-lede { margin: 22px 0 0; font-size: 18px; color: var(--ash); max-width: 540px; }
.demo-panels { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; margin-top: 40px; }
.demo-panel { background: #fff; border: 1px solid var(--sand); border-radius: 12px; padding: 20px; min-width: 0; }
.demo-panel h4 { margin: 0 0 14px; font-family: var(--sans); font-weight: 500; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.stages li { display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-radius: 8px; font-size: 15px; color: var(--muted); transition: background-color .4s, color .4s; }
.stages .num { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font-size: 12px; transition: all .4s var(--ease); }
.stages li.current { color: var(--ink); background: var(--card); }
.stages li.current .num { background: var(--mahogany); border-color: var(--mahogany); color: var(--cream); }
.stages li.done { color: var(--ash); }
.stages li.done .num { background: #e3f3ea; border-color: #e3f3ea; color: #1f6b47; }
.thoughts { height: 236px; overflow-y: auto; display: grid; align-content: start; gap: 10px; padding-right: 4px; scrollbar-width: thin; }
.thought { font-size: 14px; line-height: 1.45; color: var(--ash); padding: 10px 12px; border-radius: 8px; background: var(--card); border-left: 2px solid var(--lavender); }
.thought b { font-weight: 500; color: var(--mahogany); }

.phone-wrap { justify-self: center; width: 100%; max-width: 380px; }
.phone {
  position: relative; height: 720px; max-height: 82vh; min-height: 560px; border-radius: 52px; background: #fff;
  border: 10px solid #161412; box-shadow: 0 0 0 1.5px #3d3935, 0 50px 90px -30px rgba(23,20,18,.55);
  display: flex; flex-direction: column; overflow: hidden;
}
.phone-notch { position: absolute; top: 9px; left: 50%; width: 104px; height: 30px; margin-left: -52px; border-radius: 20px; background: #161412; z-index: 3; }
.phone-status { display: flex; justify-content: space-between; align-items: center; padding: 14px 26px 0; font-size: 14px; font-weight: 500; height: 44px; }
.phone-icons { display: flex; gap: 4px; }
.phone-icons i { width: 16px; height: 9px; border-radius: 2px; background: var(--ink); }
.phone-icons i:first-child { width: 14px; clip-path: polygon(0 100%, 100% 0, 100% 100%); border-radius: 0; }
.phone-icons i:nth-child(2) { width: 12px; border-radius: 50% 50% 0 0; }
.phone-head { text-align: center; padding: 6px 0 10px; border-bottom: 1px solid #eee; background: rgba(250,248,247,.95); }
.phone-avatar { width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 6px; background: var(--ink); color: var(--cream); display: grid; place-items: center; }
.phone-avatar svg { width: 22px; }
.phone-head b { display: block; font-weight: 500; font-size: 13px; }
.phone-head small { font-size: 11px; color: var(--muted-2); }
.thread { flex: 1; overflow-y: auto; padding: 12px 12px 8px; display: flex; flex-direction: column; gap: 4px; scrollbar-width: none; overscroll-behavior: contain; }
.thread::-webkit-scrollbar { display: none; }
.thread-time { text-align: center; font-size: 11px; color: var(--muted-2); margin: 2px 0 8px; }
.bubble { max-width: 78%; padding: 8px 12px; border-radius: 18px; font-size: 15px; line-height: 1.32; overflow-wrap: anywhere; }
.bubble.ai { align-self: flex-start; background: #e9e9eb; color: #111; border-bottom-left-radius: 5px; }
.bubble.user { align-self: flex-end; background: #1f8bff; color: #fff; border-bottom-right-radius: 5px; }
.bubble.ai + .bubble.user, .bubble.user + .bubble.ai, .delivered + .bubble.ai { margin-top: 6px; }
.delivered { align-self: flex-end; font-size: 11px; color: var(--muted-2); margin: 0 4px 2px; }
.typing { display: flex; gap: 4px; padding: 12px 14px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: #9a9a9e; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }
.sys-note { align-self: center; text-align: center; margin: 10px 8px 4px; padding: 10px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--sand); font-size: 12px; color: var(--ash); }
.sys-note a { display: block; margin-top: 4px; color: #1f8bff; font-weight: 500; }
.composer input:disabled { background: #f5f5f6; }
.quick { display: flex; gap: 6px; padding: 0 10px 8px; overflow-x: auto; scrollbar-width: none; }
.quick::-webkit-scrollbar { display: none; }
.quick button { flex: none; padding: 7px 12px; border-radius: 99px; border: 1px solid #d8d8dc; font-size: 13px; color: #1f8bff; background: #fff; transition: background-color .2s; }
.quick button:hover { background: #f2f7ff; }
.quick.is-hidden { display: none; }
.composer { display: flex; align-items: center; gap: 8px; padding: 8px 10px 22px; border-top: 1px solid #f0f0f0; }
.composer input { flex: 1; min-width: 0; height: 36px; border-radius: 18px; border: 1px solid #d8d8dc; padding: 0 14px; font: inherit; font-size: 16px; outline: none; color: #111; background: #fff; }
.composer input:focus { border-color: #1f8bff; }
.composer button { width: 32px; height: 32px; border-radius: 50%; background: #1f8bff; color: #fff; display: grid; place-items: center; flex: none; transition: opacity .2s, transform .2s; }
.composer button svg { width: 16px; }
.composer button:disabled { opacity: .35; cursor: default; }
.demo-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; font-size: 13px; color: var(--muted-2); }
.mode-note { display: inline-flex; align-items: center; gap: 8px; }
.mode-note::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px rgba(47,158,107,.18); }
.mode-note.is-fallback::before { background: #d98a3a; box-shadow: 0 0 0 3px rgba(217,138,58,.2); }
.reset { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 960px) {
  .demo-grid { grid-template-columns: 1fr; }
  .demo-panels { grid-template-columns: 1fr; }
  .thoughts { height: 160px; }
}
@media (max-width: 420px) { .phone { border-width: 8px; border-radius: 44px; height: 640px; } }

/* ---------- process (dark card) ---------- */
.process { padding: clamp(40px, 5vw, 80px) 0; }
.process-card { border-radius: 12px; border: 1px solid var(--sand); display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; overflow: hidden; }
.process-copy { padding: clamp(32px, 4.5vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.process-copy .h2 { max-width: 420px; }
.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; gap: 4px; }
.steps li { position: relative; padding: 12px 0 14px; }
.steps button { display: flex; align-items: baseline; gap: 18px; font-family: var(--serif); font-size: clamp(22px, 1.8vw, 26px); color: var(--muted); transition: color .4s; text-align: left; }
.step-n { font-family: var(--sans); font-size: 14px; width: 26px; }
.steps li.is-active button { color: var(--ink); }
.step-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.step-body > div { overflow: hidden; }
.step-body p { margin: 0; padding: 10px 0 0 44px; color: var(--ash); font-size: 16px; max-width: 420px; }
.steps li.is-active .step-body { grid-template-rows: 1fr; }
.step-bar { position: absolute; left: 44px; right: 0; bottom: 0; height: 1px; background: var(--line); opacity: 0; }
.steps li.is-active .step-bar { opacity: 1; }
.step-bar i { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.process-media { position: relative; margin: 14px; border-radius: 10px; overflow: hidden; isolation: isolate; }
.process-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.process-ui { position: absolute; right: 22px; bottom: 22px; width: 260px; }
.p-track { height: 4px; border-radius: 9px; background: var(--sand); overflow: hidden; }
.p-track::after { content: ""; display: block; height: 100%; width: var(--p, 25%); background: var(--mahogany); transition: width .6s var(--ease); }
@media (max-width: 900px) { .process-card { grid-template-columns: 1fr; } .process-media { min-height: 340px; order: -1; } }

/* ---------- platform (bento) ---------- */
.platform { padding: clamp(80px, 9vw, 130px) 0 clamp(40px, 5vw, 60px); }
.platform .h2 { max-width: 560px; margin: 0 auto; }
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(40px, 5vw, 64px); }
.bento-card { position: relative; border-radius: 12px; background: var(--cream); overflow: hidden; display: flex; flex-direction: column; min-height: 440px; }
.bento-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.6fr; min-height: 420px; }
.bento-wide .bento-copy { order: -1; align-self: end; }
.bento-ui { flex: 1; position: relative; padding: 32px 32px 0; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.bento-wide .bento-ui { padding: 40px 0 0 0; justify-content: flex-start; }
.bento-wide .bento-ui::before { content: ""; position: absolute; right: -40px; top: -30px; width: 340px; height: 160px; background: url(../assets/torn-scraps.svg) center/contain no-repeat; transform: rotate(180deg); opacity: .9; }
.bento-copy { padding: 28px 32px 32px; }
.bento-copy h3 { margin: 0; font-family: var(--sans); font-weight: 500; font-size: 18px; }
.bento-copy p { margin: 8px 0 0; color: var(--muted-2); font-size: 15px; max-width: 420px; }
.ui-dash { width: 100%; max-width: 720px; padding: 18px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; position: relative; }
.ui-dash-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.ui-dash-head b { display: block; font-family: var(--serif); font-weight: 400; font-size: 20px; }
.ui-dash-head small { color: var(--muted-2); }
.ui-dash .ui-kpis { grid-template-columns: repeat(4, 1fr); }
.ui-bars { display: grid; gap: 10px; padding-top: 6px; }
.ui-bars > div { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 12px; color: var(--muted-2); }
.ui-list { width: 100%; max-width: 420px; padding: 14px 16px 6px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.ui-week { width: 100%; max-width: 440px; padding: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.ui-week > div { border: 1px solid var(--sand); border-radius: 8px; padding: 8px; display: grid; align-content: start; gap: 6px; min-height: 170px; }
.ui-week small { color: var(--muted-2); font-size: 11px; }
.ui-week i { font-style: normal; font-size: 11px; padding: 6px 7px; border-radius: 6px; background: var(--mahogany); color: var(--cream); }
.ui-week i.alt { background: var(--lavender); color: var(--ink); }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .bento-wide { grid-template-columns: 1fr; }
  .bento-wide .bento-copy { order: 0; }
  .bento-wide .bento-ui { padding: 32px 20px 0; }
  .ui-dash .ui-kpis { grid-template-columns: repeat(2, 1fr); }
  .bento-card { min-height: 0; }
}

/* ---------- tools ---------- */
.tools { padding: clamp(24px, 3vw, 40px) 0 clamp(80px, 9vw, 130px); }
.tools-card { border-radius: 12px; border: 1px solid var(--sand); padding: clamp(32px, 4.5vw, 56px); }
.tools-card .h2 { max-width: 440px; }
.tool-grid { list-style: none; margin: clamp(48px, 7vw, 90px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tool-grid li { display: grid; justify-items: center; gap: 18px; font-size: 15px; color: var(--ink); text-align: center; }
.tool-ic { width: 68px; height: 68px; border-radius: 10px; display: grid; place-items: center; background: #fff; border: 1px solid var(--sand); transition: transform .5s var(--ease), background-color .3s; }
.tool-ic svg { width: 28px; height: 28px; }
.tool-grid li:hover .tool-ic { transform: translateY(-6px); background: var(--ink); color: var(--cream); }
@media (max-width: 760px) { .tool-grid { grid-template-columns: repeat(3, 1fr); row-gap: 32px; } }

/* ---------- FAQ ---------- */
.faq { padding: 0 0 clamp(80px, 9vw, 130px); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); border-top: 1px solid var(--sand); padding-top: clamp(60px, 7vw, 100px); }
.faq-list { border-top: 1px solid var(--sand); }
.faq-item { border-bottom: 1px solid var(--sand); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; text-align: left; font-size: 19px; }
.faq-q i { width: 26px; height: 26px; flex: none; position: relative; border-radius: 50%; border: 1px solid var(--line); transition: transform .5s var(--ease), background-color .3s; }
.faq-q i::before, .faq-q i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.4px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .5s var(--ease); }
.faq-q i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.is-open .faq-q i { transform: rotate(180deg); background: var(--mahogany); border-color: var(--mahogany); }
.faq-item.is-open .faq-q i::before, .faq-item.is-open .faq-q i::after { background: var(--cream); }
.faq-item.is-open .faq-q i::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 50px 24px 0; color: var(--ash); font-size: 16px; max-width: 620px; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } .faq-a p { padding-right: 0; } }

/* ---------- CTA ---------- */
.cta { padding: 0 0 clamp(80px, 9vw, 130px); }
.cta-grid { display: grid; grid-template-columns: minmax(280px, .8fr) 1.2fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.cta-copy { position: sticky; top: 130px; }
.cta-copy .h1 { max-width: 560px; }
.cta-copy p { margin: 24px 0 0; font-size: 18px; color: var(--ash); max-width: 460px; }
.cta-actions { display: flex; gap: 10px; margin-top: 28px; }
.booking { background: var(--ink); color: var(--cream); border: 1px solid var(--ink); border-radius: 12px; padding: clamp(16px, 2.4vw, 28px); min-width: 0; }
.booking-head { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; margin-bottom: 14px; border-bottom: 1px solid rgba(253,250,248,.12); }
.booking-head .ui-logo { width: 36px; height: 36px; border-radius: 9px; background: var(--cream); color: var(--ink); }
.booking-head .ui-logo svg { width: 18px; }
.booking-head b { display: block; font-family: var(--serif); font-weight: 400; font-size: 22px; }
.booking-head small { color: rgba(253,250,248,.65); font-size: 14px; }
.booking iframe { display: block; min-height: 640px; border-radius: 8px; }
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; } .cta-copy { position: static; } }

/* ---------- footer ---------- */
.footer { position: relative; overflow: hidden; padding: clamp(56px, 6vw, 80px) 0 0; border-top: 1px solid var(--sand); }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-logo svg { width: 40px; color: var(--ink); }
.footer-cols { display: flex; gap: clamp(32px, 6vw, 90px); flex-wrap: wrap; }
.footer h5 { margin: 0 0 18px; font-weight: 400; font-size: 15px; color: var(--muted-2); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 15px; }
.footer ul a:hover { color: var(--mahogany); text-decoration: underline; text-underline-offset: 3px; }
.disclaimer { margin: clamp(48px, 6vw, 80px) 0 0; font-size: 13px; line-height: 1.55; color: var(--ash); max-width: 620px; }
.footer-bottom { display: flex; align-items: center; gap: 24px 48px; flex-wrap: wrap; margin-top: 22px; padding-bottom: 28px; font-size: 13px; color: var(--ash); }
.legal { display: flex; gap: 20px; }
.legal a:hover { text-decoration: underline; }
.footer-art { color: var(--ink); padding: 10px var(--pad) 0; margin-bottom: -1.5%; }
.footer-art svg { width: 100%; height: auto; }

/* ---------- motion defaults ---------- */
.no-motion [data-hero] { opacity: 1; }
.no-motion .loader { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
