/* Kraft.Dev — studio site. Brand: white paper, near-black ink, signal orange. */
:root {
  --paper: #f2f1ee;
  --white: #ffffff;
  --ink: #0d0c0b;
  --graphite: #6e6a64;
  --line: rgba(13, 12, 11, 0.12);
  --orange: #e86624;
  --orange-deep: #c9521a;
  --paid: #22a06b;

  --f: "Commissioner", ui-sans-serif, system-ui, sans-serif;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --max: 88rem;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --r-lg: 1.75rem;
  --r-md: 1rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.is-loading { overflow: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f); font-size: 1.0625rem; line-height: 1.55; font-weight: 400; -webkit-font-smoothing: antialiased; }
main { overflow-x: clip; }
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.skip { position: fixed; left: 1rem; top: 1rem; z-index: 300; padding: 0.75rem 1.25rem; border-radius: 99px; background: var(--ink); color: #fff; transform: translateY(-200%); }
.skip:focus { transform: none; }

[data-reveal].rv-pending, .split-word.rv-pending { opacity: 0; }

/* ── curtain ─────────────────────────────────────────────────────────────── */
.curtain { position: fixed; inset: 0; z-index: 200; background: var(--ink); color: #fff; pointer-events: none; }
.curtain-brand { position: absolute; left: var(--pad); top: 2rem; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.curtain-brand span, .nav-logo span, .foot-logo span { color: var(--orange); }
.curtain-count { position: absolute; left: var(--pad); right: var(--pad); bottom: 2rem; height: clamp(5rem, 14vw, 12rem); overflow: hidden; }
.curtain-count span { position: absolute; bottom: 0; left: 0; font-size: clamp(5rem, 14vw, 12rem); line-height: 0.85; font-weight: 100; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; white-space: nowrap; }

.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 120; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; background: var(--orange); transform: scaleX(0); transform-origin: 0 50%; }

/* ── nav ─────────────────────────────────────────────────────────────────── */
.nav-wrap { position: fixed; top: 1rem; left: 50%; transform: translateX(-50%); z-index: 100; width: min(calc(100% - 2rem), 64rem); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 3.5rem; padding: 0 0.375rem 0 1.25rem; border-radius: 99px; background: rgba(255, 255, 255, 0.7); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset, 0 10px 30px -18px rgba(13, 12, 11, 0.35); }
.nav { transition: background 400ms var(--ease), color 400ms var(--ease), box-shadow 400ms var(--ease); }
/* Over dark chapters the bar turns dark too, instead of greying out. */
.nav-wrap.is-dark .nav { background: rgba(28, 26, 24, 0.72); color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset, 0 10px 30px -18px rgba(0,0,0,0.6); }
.nav-wrap.is-dark .nav-links { color: rgba(255,255,255,0.6); }
.nav-wrap.is-dark .nav-links a:hover { color: #fff; }
.nav-wrap.is-dark .nav-cta, .nav-wrap.is-dark .burger { background: var(--orange); }
.nav-logo { font-weight: 700; font-size: 1.125rem; letter-spacing: -0.03em; }
.nav-links { display: flex; gap: 1.75rem; font-size: 0.9375rem; color: var(--graphite); }
.nav-links a { transition: color 200ms var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: inline-flex; align-items: center; height: 2.75rem; padding: 0 1.25rem; border-radius: 99px; background: var(--ink); color: #fff; font-size: 0.9375rem; font-weight: 500; transition: background 200ms var(--ease); }
.nav-cta:hover { background: var(--orange); }
.burger { display: none; position: relative; width: 2.75rem; height: 2.75rem; border-radius: 99px; background: var(--ink); }
.burger i { position: absolute; left: 50%; top: 50%; width: 1.1rem; height: 1.5px; margin-left: -0.55rem; background: #fff; transition: transform 200ms var(--ease); }
.burger i:first-child { transform: translateY(-3px); }
.burger i:last-child { transform: translateY(3px); }
.burger[aria-expanded="true"] i:first-child { transform: rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { transform: rotate(-45deg); }

/* ── buttons ─────────────────────────────────────────────────────────────── */
.btn { position: relative; display: inline-flex; align-items: center; gap: 0.75rem; height: 3.5rem; padding: 0 1.75rem; border-radius: 99px; font-weight: 500; overflow: hidden; isolation: isolate; transition: transform 300ms var(--ease), color 300ms var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform 450ms var(--ease); }
.btn:hover::before { transform: none; }
.btn:active { transform: scale(0.98); }
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid::before { background: var(--orange); }
.btn-line { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line::before { background: var(--ink); }
.btn-line:hover { color: #fff; }
.btn-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--orange); transition: background 300ms; }
.btn-solid:hover .btn-dot { background: #fff; }
.btn-big { height: 4.5rem; padding: 0 2.5rem; font-size: 1.25rem; background: var(--orange); color: #fff; }
.btn-big::before { background: #fff; }
.btn-big:hover { color: var(--ink); }
.btn-big .btn-dot { background: #fff; }
.btn-big:hover .btn-dot { background: var(--orange); }

/* ── hero ────────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; padding: 8.5rem var(--pad) 0; overflow: hidden; display: flex; flex-direction: column; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 6rem); align-items: center; max-width: var(--max); width: 100%; margin: 0 auto; flex: 1; padding-bottom: 15vw; }
.hero-kicker { font-size: 1rem; color: var(--graphite); display: flex; align-items: center; gap: 0.6rem; }
.hero-kicker::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(232, 102, 36, 0.5); animation: ping 2.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(232, 102, 36, 0.45); } 70%, 100% { box-shadow: 0 0 0 0.9rem rgba(232, 102, 36, 0); } }
.hero-h1 { margin-top: 1.25rem; font-size: clamp(2.75rem, 6.4vw, 6.75rem); line-height: 0.98; font-weight: 500; letter-spacing: -0.045em; max-width: 12ch; }
.hero-sub { margin-top: 1.75rem; max-width: 34rem; font-size: clamp(1.0625rem, 1.3vw, 1.25rem); color: var(--graphite); line-height: 1.5; }
.hero-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* The giant wordmark at the foot of the hero; letters climb at different rates on scroll. */
.wordmark { position: absolute; left: 0; right: 0; bottom: 0.04em; z-index: 1; display: flex; justify-content: center; font-size: 14vw; line-height: 1; font-weight: 100; letter-spacing: -0.06em; color: var(--ink); pointer-events: none; user-select: none; white-space: nowrap; }
.wm-l { display: inline-block; will-change: transform; }
.wm-dot { color: var(--orange); font-weight: 300; }

/* the live chat demo */
.demo { position: relative; justify-self: end; width: min(100%, 25rem); }
.chat { border-radius: var(--r-lg); background: #fff; box-shadow: 0 40px 80px -40px rgba(13, 12, 11, 0.45), 0 0 0 1px var(--line); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); font-size: 0.9375rem; line-height: 1.2; }
.chat-head small { display: block; color: var(--graphite); font-size: 0.8125rem; }
.chat-ava { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--ink); color: var(--orange); font-weight: 700; }
.chat-log { position: relative; isolation: isolate; height: 23rem; padding: 1.25rem; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.6rem; overflow: hidden;
  /* Telegram's classic wallpaper: a four-point pastel gradient… */
  background:
    radial-gradient(circle at 12% 18%, #d6dcae 0%, transparent 55%),
    radial-gradient(circle at 88% 26%, #8dc49a 0%, transparent 55%),
    radial-gradient(circle at 22% 88%, #9fcf8e 0%, transparent 55%),
    radial-gradient(circle at 85% 85%, #dcdfa3 0%, transparent 60%),
    #b9d5a0; }
/* …with the doodle pattern laid over it, faint and slowly drifting. */
.chat-log::before { content: ""; position: absolute; inset: -125px 0 0 0; z-index: -1; background: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%22180%22%20height=%22180%22%20viewBox=%220%200%20180%20180%22%20fill=%22none%22%20stroke=%22%231f3b25%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%3E%20%3Cpath%20d=%22M14%2030%20L44%2018%20L36%2046%20L29%2036%20Z%20M29%2036%20L44%2018%22/%3E%20%3Cpath%20d=%22M120%2014%20l4%209%2010%201%20-7%207%202%2010%20-9%20-5%20-9%205%202%20-10%20-7%20-7%2010%20-1%20z%22/%3E%20%3Cpath%20d=%22M78%2070%20c0%20-6%208%20-9%2011%20-3%20c3%20-6%2011%20-3%2011%203%20c0%207%20-11%2013%20-11%2013%20s-11%20-6%20-11%20-13%20z%22/%3E%20%3Crect%20x=%22132%22%20y=%2270%22%20width=%2230%22%20height=%2220%22%20rx=%226%22/%3E%3Cpath%20d=%22M138%2090%20l-4%207%209%20-7%22/%3E%20%3Ccircle%20cx=%2230%22%20cy=%22110%22%20r=%2210%22/%3E%3Cpath%20d=%22M26%20108%20h.1%20M34%20108%20h.1%20M26%20114%20q4%203%208%200%22/%3E%20%3Cpath%20d=%22M92%20128%20q8%20-14%2016%200%20q8%2014%2016%200%22/%3E%20%3Cpath%20d=%22M150%20140%20l12%20-4%20-4%2012%20-3%20-5%20z%22/%3E%20%3Cpath%20d=%22M18%20160%20h16%20M26%20152%20v16%22/%3E%20%3Cpath%20d=%22M70%2020%20a8%208%200%201%200%200.1%200%22/%3E%20%3Cpath%20d=%22M60%20150%20l8%20-14%208%2014%20z%22/%3E%20%3C/svg%3E") 0 0 / 125px 125px repeat; opacity: 0.17; mix-blend-mode: multiply; animation: wall-drift 60s linear infinite; }
@keyframes wall-drift { to { transform: translateY(125px); } }
.msg-bot, .msg-keys span, .msg-typing { box-shadow: 0 1px 1.5px rgba(31, 59, 37, 0.18); }
.msg-me { background: #e2f7c8; color: #13230f; }
.msg-ok { background: #ffffff; color: #0e5d3c; }
.msg { max-width: 85%; padding: 0.7rem 0.95rem; border-radius: 1.1rem; font-size: 0.9375rem; line-height: 1.4; animation: msg-in 450ms var(--ease) both; }
.msg-bot { align-self: flex-start; background: #fff; border-bottom-left-radius: 0.35rem; box-shadow: 0 1px 2px rgba(13,12,11,0.08); }
.msg-me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 0.35rem; }
.msg-ok { align-self: flex-start; background: #e9f7f0; color: #0e5d3c; border-bottom-left-radius: 0.35rem; }
.msg small { display: block; margin-top: 0.25rem; font-size: 0.75rem; opacity: 0.6; }
.msg-keys { align-self: flex-start; display: flex; gap: 0.4rem; animation: msg-in 450ms var(--ease) both; }
.msg-keys span { padding: 0.55rem 0.9rem; border-radius: 0.8rem; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 0.875rem; font-weight: 500; transition: background 250ms, color 250ms, transform 250ms; }
.msg-keys span.is-tap { background: var(--orange); color: #fff; transform: scale(0.96); }
.msg-typing { align-self: flex-start; display: flex; gap: 0.25rem; padding: 0.85rem 1rem; border-radius: 1.1rem; background: #fff; animation: msg-in 300ms var(--ease) both; }
.msg-typing i { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--graphite); animation: dot 1s infinite; }
.msg-typing i:nth-child(2) { animation-delay: 0.15s; }
.msg-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 60%, 100% { opacity: 0.25; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
.notify { position: absolute; left: -2.5rem; bottom: -1.75rem; display: grid; gap: 0.1rem; padding: 1rem 1.25rem; border-radius: var(--r-md); background: var(--ink); color: #fff; min-width: 13rem; box-shadow: 0 24px 50px -20px rgba(13,12,11,0.6); opacity: 0; transform: translateY(14px) scale(0.96); transition: opacity 450ms var(--ease), transform 450ms var(--ease); }
.notify.is-on { opacity: 1; transform: none; }
.notify-title { font-size: 0.8125rem; color: rgba(255,255,255,0.6); }
.notify-sum { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.03em; color: var(--orange); }
.notify-total { font-size: 0.8125rem; color: rgba(255,255,255,0.75); }
.notify-total b { color: #fff; font-variant-numeric: tabular-nums; }

/* ── marquee ─────────────────────────────────────────────────────────────── */
.marquee { background: var(--ink); color: #fff; overflow: hidden; padding: 1.4rem 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 2.5rem; padding-right: 2.5rem; font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 200; letter-spacing: -0.03em; white-space: nowrap; }
.marquee-track span::after { content: ""; width: 0.6rem; height: 0.6rem; background: var(--orange); transform: rotate(45deg); }
.marquee.is-paused .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── sections shared ─────────────────────────────────────────────────────── */
section { position: relative; }
.services, .platform, .process, .faq { padding: clamp(5rem, 11vw, 10rem) var(--pad); max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto; }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.sec-h2 { font-size: clamp(2.5rem, 5.4vw, 5.25rem); line-height: 0.98; font-weight: 500; letter-spacing: -0.045em; }
.sec-lede { max-width: 30rem; color: var(--graphite); font-size: 1.125rem; }
[data-split].is-split { display: flex; flex-wrap: wrap; column-gap: 0.24em; }
.split-word { display: inline-block; will-change: transform; }

/* ── services ────────────────────────────────────────────────────────────── */
.svc-groups { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.svc-gname { font-size: 1rem; font-weight: 500; color: var(--graphite); padding-bottom: 1rem; }
.svc-gname-2 { margin-top: 3rem; }
.svc { border-top: 1px solid var(--line); }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc-row { position: relative; width: 100%; display: grid; grid-template-columns: 1fr auto 1.5rem; align-items: center; gap: 1.25rem; padding: 1.35rem 0; text-align: left; }
.svc-row::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--orange); transform: scaleX(0); transform-origin: 0 50%; transition: transform 500ms var(--ease); }
.svc-row:hover::after, .svc-row[aria-expanded="true"]::after { transform: none; }
.svc-name { font-size: clamp(1.25rem, 1.8vw, 1.6rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; transition: transform 400ms var(--ease); }
.svc-row:hover .svc-name { transform: translateX(0.5rem); }
.svc-meta { text-align: right; line-height: 1.2; }
.svc-meta b { display: block; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.svc-meta small { color: var(--graphite); font-size: 0.875rem; }
.svc-plus { position: relative; width: 1.25rem; height: 1.25rem; }
.svc-plus::before, .svc-plus::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px; background: currentColor; transition: transform 400ms var(--ease); }
.svc-plus::after { transform: rotate(90deg); }
.svc-row[aria-expanded="true"] .svc-plus::after { transform: rotate(0deg); }
.svc-row[aria-expanded="true"] .svc-plus { color: var(--orange); }
.svc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 500ms var(--ease); }
.svc-body > p { overflow: hidden; color: var(--graphite); max-width: 34rem; }
.svc.is-open .svc-body { grid-template-rows: 1fr; }
.svc.is-open .svc-body > p { padding-bottom: 1.5rem; }

/* ── difference: pinned dark chapter ─────────────────────────────────────── */
.diff { background: var(--ink); color: #fff; height: 520vh; }
.diff-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 6rem); align-items: center; padding: 6rem var(--pad) 3rem; max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto; }
.diff-h2 { font-size: clamp(2.25rem, 4.4vw, 4.25rem); line-height: 1; font-weight: 500; letter-spacing: -0.045em; max-width: 12ch; }
.diff-index { margin-top: 3rem; display: grid; gap: 0.5rem; font-size: 1.0625rem; }
.diff-index li { display: flex; align-items: center; gap: 0.85rem; color: rgba(255,255,255,0.35); transition: color 400ms var(--ease); }
.diff-index li::before { content: ""; width: 1.5rem; height: 1px; background: currentColor; transition: width 400ms var(--ease), background 400ms; }
.diff-index li.is-on { color: #fff; }
.diff-index li.is-on::before { width: 3rem; background: var(--orange); }
.diff-stage { position: relative; height: min(32rem, 62vh); }
.diff-card { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(1.75rem, 3vw, 3rem); border-radius: var(--r-lg); background: linear-gradient(160deg, #1d1b19, #141210); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); overflow: hidden; opacity: 0; transform: translateY(8%) scale(0.96); transition: opacity 600ms var(--ease), transform 700ms var(--ease); }
.diff-card.is-on { opacity: 1; transform: none; }
.diff-card.is-past { opacity: 0; transform: translateY(-6%) scale(0.98); }
.diff-card h3 { position: relative; font-size: clamp(1.6rem, 2.6vw, 2.5rem); line-height: 1.05; font-weight: 500; letter-spacing: -0.035em; max-width: 18ch; }
.diff-card p { position: relative; margin-top: 1.1rem; color: rgba(255,255,255,0.68); max-width: 36rem; }
/* With particles on (desktop), the card turns into a caption under the shape. */
.diff.has-particles .diff-stage { height: min(42rem, 76vh); }
.diff-particles { position: absolute; left: -10%; top: -10%; height: 84%; width: 120%; pointer-events: none; }
.diff.has-particles .diff-card { background: none; box-shadow: none; padding: 0; overflow: visible; }
.diff.has-particles .diff-glyph { display: none; }
.diff-glyph { position: absolute; right: clamp(1.5rem, 3vw, 3rem); top: clamp(1.25rem, 2.5vw, 2.5rem); font-size: clamp(5rem, 10vw, 10rem); font-weight: 100; letter-spacing: -0.06em; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(232, 102, 36, 0.55); }

/* ── platform ────────────────────────────────────────────────────────────── */
.platform { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 5vw, 5rem); row-gap: 2.5rem; align-items: center; }
.platform-copy { grid-row: 1; grid-column: 1; }
/* The platform is a dark chapter now, so the particle tree can glow. */
.platform { isolation: isolate; color: #fff; }
.platform::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw);
  /* the studio demo's steel-blue light, falling off to dark at the edges */
  background: url("assets/rays.webp") 84% 20% / min(95vw, 1300px) no-repeat,
    radial-gradient(40% 45% at 18% 105%, rgba(124, 92, 214, 0.22), transparent 70%),
    radial-gradient(65% 80% at 72% 45%, #5f6a76 0%, #434c57 34%, #242a32 70%, #121418 100%);
  background-blend-mode: screen, normal, normal; }
.platform .sec-lede, .platform .platform-note { color: rgba(255,255,255,0.88); }
.platform .sec-lede, .platform .platform-note p { text-shadow: 0 1px 12px rgba(0,0,0,0.35); }
.platform .feat li { color: rgba(255,255,255,0.88); }
.platform-note { border-top-color: rgba(255,255,255,0.12) !important; }
.platform .btn-solid { background: var(--orange); }
.platform .btn-solid::before { background: #fff; }
.platform .btn-solid:hover { color: var(--ink); }
.platform .btn-solid .btn-dot { background: #fff; }
.platform .btn-solid:hover .btn-dot { background: var(--orange); }
.platform-mark { grid-row: 1; grid-column: 2; }
.platform-copy .sec-lede { margin-top: 1.5rem; }
.feat { margin-top: 2rem; display: grid; gap: 0.75rem; }
.feat li { display: grid; grid-template-columns: 1.25rem 1fr; gap: 0.75rem; align-items: start; }
.feat li::before { content: ""; margin-top: 0.55rem; width: 0.6rem; height: 0.6rem; background: var(--orange); transform: rotate(45deg); }
.platform-mark { position: relative; justify-self: center; width: min(100%, 42rem); aspect-ratio: 5 / 6; pointer-events: none; z-index: 0; }
.platform-mark canvas { display: block; width: 100% !important; height: 100% !important; }
.tiers { grid-column: 1 / -1; position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
.tier { position: relative; display: grid; grid-template-columns: 1fr auto auto; align-items: baseline; column-gap: 0.4rem; padding: 1.5rem 1.75rem; border-radius: var(--r-lg); background: rgba(255,255,255,0.55); -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.9), 0 30px 60px -40px rgba(13,12,11,0.5); transition: transform 400ms var(--ease); }
.tier:hover { transform: translateY(-4px); }
.tier-main { box-shadow: inset 0 0 0 1.5px var(--orange), 0 30px 60px -36px rgba(232,102,36,0.55); }
.tier-name { font-weight: 500; }
.tier-price { font-size: clamp(2rem, 3vw, 2.75rem); font-weight: 300; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.tier-cur { font-size: 1.25rem; color: var(--graphite); }
.tier p { grid-column: 1 / -1; margin-top: 0.5rem; color: var(--graphite); font-size: 0.9375rem; }
.platform-note { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding-top: 2.5rem; border-top: 1px solid var(--line); color: var(--graphite); }
.platform-note p { max-width: 40rem; }

/* ── works: horizontal pinned gallery ────────────────────────────────────── */
.works { background: var(--white); }
.works-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 6rem 0 2.5rem; }
.works-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; padding: 0 var(--pad); margin-bottom: 2.5rem; }
.works-track { display: flex; gap: clamp(1rem, 2vw, 2rem); padding: 0 var(--pad); width: max-content; will-change: transform; }
.work { width: clamp(18rem, 40vw, 40rem); }
.work a { display: block; }
.work-img { display: block; aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.work-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.work a:hover .work-img img { transform: scale(1.05); }
.work-meta { display: flex; flex-direction: column; gap: 0.25rem; padding: 1.1rem 0.25rem 0; }
.work-meta b { font-size: 1.375rem; font-weight: 500; letter-spacing: -0.025em; }
.work-meta small { color: var(--graphite); font-size: 0.9375rem; }
.works-bar { margin: 2.5rem var(--pad) 0; height: 2px; background: var(--line); }
.works-bar i { display: block; height: 100%; background: var(--orange); transform: scaleX(0); transform-origin: 0 50%; }

/* ── process ─────────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.5vw, 2.5rem); }
.step-n { display: block; font-size: clamp(4rem, 7vw, 7rem); line-height: 1; font-weight: 100; letter-spacing: -0.05em; color: var(--orange); }
.step h3 { margin-top: 1.25rem; font-size: 1.375rem; font-weight: 500; letter-spacing: -0.02em; }
.step p { margin-top: 0.6rem; color: var(--graphite); }
.steps-line { margin-top: 3rem; height: 2px; background: var(--line); }
.steps-line i { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; }

/* ── faq ─────────────────────────────────────────────────────────────────── */
.qa { max-width: 60rem; margin-left: auto; }
.qa details { border-top: 1px solid var(--line); }
.qa details:last-child { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.5rem 0; font-size: clamp(1.125rem, 1.6vw, 1.4rem); font-weight: 500; letter-spacing: -0.02em; cursor: pointer; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); background: linear-gradient(currentColor, currentColor) center / 0.9rem 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 0.9rem no-repeat; transition: transform 400ms var(--ease), background-color 300ms; }
.qa details[open] summary::after { transform: rotate(45deg); background-color: var(--orange); color: #fff; box-shadow: none; }
.qa details > div { overflow: hidden; }
.qa details p { padding-bottom: 1.5rem; color: var(--graphite); max-width: 44rem; }

/* ── contact ─────────────────────────────────────────────────────────────── */
.contact { background: var(--ink); color: #fff; padding: clamp(6rem, 13vw, 12rem) var(--pad) 2rem; display: flex; flex-direction: column; align-items: flex-start; gap: 2rem; }
.contact-h2 { font-size: clamp(3rem, 9vw, 9.5rem); line-height: 0.95; font-weight: 400; letter-spacing: -0.055em; max-width: 12ch; }
.contact-sub { color: rgba(255,255,255,0.65); font-size: 1.25rem; max-width: 30rem; }
.foot { width: 100%; margin-top: clamp(4rem, 9vw, 8rem); padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: rgba(255,255,255,0.55); font-size: 0.9375rem; }
.foot-logo { color: #fff; font-weight: 700; }
.foot a:hover { color: #fff; }

/* ── responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: block; }
  .hero { padding-top: 7rem; }
  .hero-grid { grid-template-columns: 1fr; padding-bottom: 20vw; }
  .demo { justify-self: center; margin-bottom: 2.5rem; }
  .notify { left: -0.75rem; }
  .sec-head, .svc-groups, .platform { grid-template-columns: 1fr; }
  .platform-copy, .platform-mark { grid-column: 1; grid-row: auto; }
  .platform-mark { width: min(100%, 24rem); }
  .tiers { grid-template-columns: 1fr; margin-top: 0; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 3rem; }
  .steps-line { display: none; }
  /* Phones get the same pinned chapters as desktop, laid out in one column. */
  .diff { height: 560svh; }
  .diff-pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: stretch; gap: 0.5rem; padding: 5.5rem var(--pad) 1.5rem; }
  .diff-h2 { font-size: clamp(1.75rem, 8vw, 2.5rem); max-width: none; }
  .diff-index { display: flex; gap: 0.4rem; margin-top: 1rem; }
  .diff-index li { flex: 1; height: 3px; font-size: 0; border-radius: 3px; background: rgba(255,255,255,0.18); overflow: hidden; }
  .diff-index li::before { display: none; }
  .diff-index li.is-on { background: var(--orange); }
  .diff-stage { height: auto; min-height: 0; }
  .diff-card { padding: 1.5rem; }
  .diff-card h3 { font-size: clamp(1.4rem, 6.4vw, 1.9rem); }
  .diff-card p { font-size: 0.975rem; }
  .diff.has-particles .diff-stage { height: auto; }
  .diff.has-particles .diff-particles { left: -6%; width: 112%; top: 0; height: 58%; }
  .works-pin { padding: 5.5rem 0 1.5rem; }
  .works-head { flex-direction: column; align-items: flex-start; gap: 0.75rem; margin-bottom: 1.5rem; }
  .works-head .sec-lede { font-size: 1rem; }
  .work { width: 80vw; }
}
@media (max-width: 599px) {
  body { font-size: 1rem; }
  .hero-h1 { font-size: 2.75rem; }
  .chat-log { height: 19rem; }
  .steps { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: 1fr 1.25rem; }
  .svc-meta { grid-column: 1; grid-row: 2; text-align: left; display: flex; gap: 0.75rem; align-items: baseline; }
  .svc-plus { grid-column: 2; grid-row: 1; }
  .tier { padding: 1.25rem; }
  .btn { height: 3.25rem; padding: 0 1.4rem; }
  .btn-big { height: 4rem; font-size: 1.0625rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .marquee-track { animation: none; }
}
.svc-more { display: inline-block; margin-top: 0.6rem; color: var(--ink); border-bottom: 1.5px solid var(--orange); font-weight: 500; }
.svc-more:hover { color: var(--orange); }

/* ── mobile menu: a full-screen sheet poured from the burger ─────────────── */
.mnav { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; justify-content: center; gap: 1.5rem; padding: 6.5rem var(--pad) calc(2rem + env(safe-area-inset-bottom)); background: var(--paper); clip-path: circle(0 at var(--mx, 90%) var(--my, 2.5rem)); visibility: hidden; transition: clip-path 650ms var(--ease), visibility 0s linear 650ms; }
.mnav[hidden] { display: flex; }
.mnav.is-open { clip-path: circle(150vmax at var(--mx, 90%) var(--my, 2.5rem)); visibility: visible; transition: clip-path 750ms var(--ease), visibility 0s; }
.mnav-list { display: flex; flex-direction: column; }
.mnav-list li { position: relative; }
.mnav-list li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transform: scaleX(0); transform-origin: 0 50%; transition: transform 700ms var(--ease); }
.mnav-list li:last-child::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); transform: scaleX(0); transform-origin: 0 50%; transition: transform 700ms var(--ease); }
.mnav-list a { display: grid; grid-template-columns: 3.25rem 1fr; align-items: baseline; padding: 0.95rem 0; }
.mnav-n { font-size: 0.9375rem; letter-spacing: 0.08em; color: var(--orange); font-variant-numeric: tabular-nums; opacity: 0; transition: opacity 400ms var(--ease); }
.mnav-clip { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.mnav-t { display: block; font-size: clamp(2.1rem, 10vw, 3.25rem); line-height: 1.02; font-weight: 500; letter-spacing: -0.045em; transform: translateY(110%); transition: transform 600ms var(--ease), color 200ms; }
.mnav-list a:active .mnav-t, .mnav-list a:hover .mnav-t { color: var(--orange); }
.mnav-cta { display: flex; align-items: center; justify-content: center; gap: 0.75rem; height: 4rem; border-radius: 99px; background: var(--orange); color: #fff; font-size: 1.125rem; font-weight: 500; box-shadow: 0 18px 40px -16px rgba(232, 102, 36, 0.7); opacity: 0; transform: translateY(1.5rem); transition: opacity 500ms var(--ease), transform 600ms var(--ease); }
.mnav-cta::after { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #fff; }
.mnav-foot { text-align: center; font-size: 0.875rem; color: var(--graphite); opacity: 0; transition: opacity 500ms var(--ease); }
/* open: everything arrives in sequence */
.mnav.is-open .mnav-list li::before, .mnav.is-open .mnav-list li:last-child::after { transform: none; }
.mnav.is-open .mnav-t { transform: none; }
.mnav.is-open .mnav-n, .mnav.is-open .mnav-foot { opacity: 1; }
.mnav.is-open .mnav-cta { opacity: 1; transform: none; }
.mnav.is-open li:nth-child(1) * , .mnav.is-open li:nth-child(1)::before { transition-delay: 180ms; }
.mnav.is-open li:nth-child(2) * , .mnav.is-open li:nth-child(2)::before { transition-delay: 240ms; }
.mnav.is-open li:nth-child(3) * , .mnav.is-open li:nth-child(3)::before { transition-delay: 300ms; }
.mnav.is-open li:nth-child(4) * , .mnav.is-open li:nth-child(4)::before { transition-delay: 360ms; }
.mnav.is-open li:nth-child(5) * , .mnav.is-open li:nth-child(5)::before, .mnav.is-open li:last-child::after { transition-delay: 420ms; }
.mnav.is-open .mnav-cta { transition-delay: 480ms; }
.mnav.is-open .mnav-foot { transition-delay: 560ms; }
/* while open, the bar dissolves into the sheet; the burger turns into an X */
body.menu-open .nav-wrap .nav { background: transparent !important; box-shadow: none !important; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--ink) !important; }
body.menu-open .nav-wrap .burger { background: var(--ink) !important; box-shadow: 0 12px 30px -12px rgba(13,12,11,0.6); }
body.menu-open .nav-wrap .nav-logo span { color: var(--orange); }
.nav-wrap { z-index: 100; }
@media (min-width: 1024px) { .mnav { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .mnav, .mnav * { transition-duration: 0.01ms !important; transition-delay: 0s !important; } }
