/* ============ Z2 Automation — styles (v2: monochrome editorial) ============ */
:root {
  --bg: #07080C;
  --bg-2: #0C0E15;
  --ink: #ECEBE6;
  --ink-2: rgba(236, 235, 230, 0.62);
  --ink-3: rgba(236, 235, 230, 0.38);
  --line: rgba(236, 235, 230, 0.12);
  --line-2: rgba(236, 235, 230, 0.26);
  --fill: rgba(236, 235, 230, 0.03);
  --fill-2: rgba(236, 235, 230, 0.06);
  --accent: #4D8BFF;
  --accent-2: #8FB4FF;
  --font-display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --container: 1240px;
  --gutter: clamp(18px, 4vw, 56px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-2: cubic-bezier(0.76, 0, 0.24, 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; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
main { overflow-x: clip; }
body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: rgba(77, 139, 255, 0.4); color: #fff; }
em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent-2); letter-spacing: 0; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; }
.dim { color: var(--ink-3); }

/* ---------- Scene, grain, flash ---------- */
.scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.scene-fallback {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; display: none;
  background: radial-gradient(60% 50% at 70% 30%, rgba(77, 139, 255, 0.18), transparent 60%), linear-gradient(180deg, var(--bg-2), var(--bg));
}
body.no-webgl .scene { display: none; }
body.no-webgl .scene-fallback { display: block; }
.grain { position: fixed; inset: -50%; z-index: 2; pointer-events: none; opacity: 0.055; mix-blend-mode: screen; background-repeat: repeat; background-size: 180px; animation: grain 0.9s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); } 60% { transform: translate(-4%, -2%); } 80% { transform: translate(3%, 4%); } 100% { transform: translate(-1%, 1%); } }
.flash { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: #fff; opacity: 0; }

.scrim { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(60% 60% at 40% 50%, rgba(7, 8, 12, 0.6), rgba(7, 8, 12, 0) 100%); }
.scrim--hero { background: radial-gradient(50% 45% at 50% 32%, rgba(7, 8, 12, 0.78), rgba(7, 8, 12, 0) 100%); }
.scrim--contact { background: linear-gradient(180deg, rgba(7, 8, 12, 0) 0%, rgba(7, 8, 12, 0.6) 35%, rgba(7, 8, 12, 0.92) 100%); }

/* ---------- Type ---------- */
.eyebrow { display: flex; align-items: center; gap: 14px; color: var(--ink-2); margin: 0 0 22px; }
.eyebrow span { color: var(--accent-2); }
.eyebrow::after { content: ''; flex: 0 0 48px; height: 1px; background: var(--line-2); }
.h2 { font-weight: 500; letter-spacing: -0.045em; line-height: 0.98; font-size: clamp(38px, 5.6vw, 76px); margin: 0 0 22px; color: var(--ink); max-width: 15ch; text-wrap: balance; }
.h2--xl { font-size: clamp(44px, 7.2vw, 108px); max-width: 12ch; }
.lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--ink-2); max-width: 52ch; margin: 0 0 44px; }
.lead.mono { font-size: 11px; max-width: none; }
h3 { font-weight: 500; letter-spacing: -0.02em; }
.sec-head { position: relative; padding-top: 28px; margin-bottom: 56px; }
.sec-head::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }

/* reveals */
.reveal { opacity: 0; transform: translateY(26px); clip-path: inset(0 0 100% 0); will-change: transform, opacity, clip-path; }
.reveal.is-in { opacity: 1; transform: none; clip-path: inset(-10% 0 -15% 0); transition: opacity 0.9s var(--ease), transform 1.2s var(--ease), clip-path 1.2s var(--ease); }
.fly { opacity: 0; transform: translateY(40px); will-change: transform, opacity; }

/* ---------- Panels ---------- */
.panel { position: relative; padding: 36px 30px 32px; border: 1px solid var(--line); background: var(--fill); transition: border-color 0.5s, background 0.5s; }
.panel:hover { border-color: var(--line-2); background: var(--fill-2); }
.panel__idx, .feat__idx { display: block; color: var(--accent-2); margin-bottom: 44px; }
.panel h3, .feat h3 { font-size: 22px; margin: 0 0 10px; }
.panel p, .feat p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* ---------- Logo ---------- */
.z2-logo { display: inline-block; overflow: visible; flex: 0 0 auto; user-select: none; filter: drop-shadow(0 0 18px rgba(77, 139, 255, 0.25)); }
.z2-logo--xs { width: 30px; height: 30px; filter: none; }
.z2-logo--sm { width: 34px; height: 34px; }
.z2-logo--lg { width: 96px; height: 96px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 18px 28px; border-radius: 999px; font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); white-space: nowrap; border: 1px solid var(--line-2); background: transparent; isolation: isolate;
  transition: transform 0.4s var(--ease), background 0.4s, color 0.4s, border-color 0.4s, box-shadow 0.4s; will-change: transform;
}
.btn--sm { padding: 12px 18px; font-size: 10px; }
.btn--primary { background: var(--ink); color: #0A0B10; border-color: var(--ink); }
.btn--primary:hover { box-shadow: 0 0 0 1px rgba(236, 235, 230, 0.2), 0 10px 40px rgba(77, 139, 255, 0.35); }
.btn--ghost:hover { background: var(--fill-2); border-color: var(--ink-2); }
.btn::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(60% 100% at 50% 0%, rgba(255, 255, 255, 0.25), transparent 70%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.btn--primary:hover::after { opacity: 1; }

/* ---------- Cursor ---------- */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 9999; display: none; }
body.has-cursor .cursor { display: block; }
.cursor__dot { position: absolute; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: var(--ink); }
.cursor__ring { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 1px solid rgba(236, 235, 230, 0.5); transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), border-color 0.3s, background 0.3s; }
.cursor.is-hover .cursor__ring { width: 58px; height: 58px; margin: -29px 0 0 -29px; border-color: var(--accent-2); background: rgba(77, 139, 255, 0.08); }

/* ---------- Nav / HUD ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 22px 0; transition: padding 0.5s var(--ease), background 0.5s, border-color 0.5s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { padding: 12px 0; background: rgba(7, 8, 12, 0.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav__inner { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand { display: inline-flex; align-items: center; gap: 12px; }
.nav__links { display: flex; gap: 32px; color: var(--ink-2); }
.nav__links a { position: relative; transition: color 0.3s; padding: 4px 0; }
.nav__links a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--ink); transition: right 0.4s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { right: 0; }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav__burger span { width: 16px; height: 1px; background: var(--ink); transition: transform 0.4s var(--ease); }
.nav__burger.is-open span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

.hud { position: fixed; bottom: 26px; z-index: 50; color: var(--ink-3); display: flex; align-items: center; gap: 14px; pointer-events: none; transition: opacity 0.5s; }
body.at-end .hud { opacity: 0; }
.hud--bl { left: var(--gutter); }
.hud--br { right: calc(var(--gutter) + 230px); }
.hud__bar { width: 120px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.hud__bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--ink); }
#hudIndex, #hudName { color: var(--ink-2); }

.mmenu { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: grid; place-items: center; }
.mmenu__bg { position: absolute; inset: 0; background: rgba(7, 8, 12, 0.96); clip-path: circle(0% at calc(100% - 44px) 44px); transition: clip-path 0.8s var(--ease-2); }
.mmenu.is-open { pointer-events: auto; }
.mmenu.is-open .mmenu__bg { clip-path: circle(150% at calc(100% - 44px) 44px); }
.mmenu__links { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 0; width: min(420px, 86vw); }
.mmenu__links > a:not(.btn) { display: flex; align-items: baseline; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 30px; font-weight: 500; letter-spacing: -0.03em; opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--ease), transform 0.7s var(--ease); }
.mmenu.is-open .mmenu__links > a { opacity: 1; transform: none; }
.mmenu.is-open .mmenu__links > a:nth-child(1) { transition-delay: 0.15s; }
.mmenu.is-open .mmenu__links > a:nth-child(2) { transition-delay: 0.2s; }
.mmenu.is-open .mmenu__links > a:nth-child(3) { transition-delay: 0.25s; }
.mmenu.is-open .mmenu__links > a:nth-child(4) { transition-delay: 0.3s; }
.mmenu.is-open .mmenu__links > a:nth-child(5) { transition-delay: 0.35s; }
.mmenu__links .btn { margin-top: 26px; opacity: 0; transition: opacity 0.5s 0.45s; }
.mmenu.is-open .mmenu__links .btn { opacity: 1; }
.mmenu__meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--ink-3); margin-top: 22px; opacity: 0; transition: opacity 0.5s 0.55s; }
.mmenu.is-open .mmenu__meta { opacity: 1; }

/* ---------- Sections ---------- */
main { position: relative; z-index: 1; }
.section { position: relative; padding: clamp(100px, 13vw, 180px) 0; }
.section > .container { position: relative; z-index: 1; }

/* Hero */
.hero { min-height: 100svh; display: flex; align-items: center; padding-top: 112px; padding-bottom: 70px; }
.hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; }
.hero__copy { max-width: 900px; display: flex; flex-direction: column; align-items: center; }
.hero__media { position: relative; display: grid; justify-items: center; gap: 12px; perspective: 1600px; opacity: 0; transform: translateY(30px); }
.hero__phone { position: relative; width: min(200px, 19.5svh, 60vw); aspect-ratio: 1080 / 1920; border-radius: 44px; background: #07080C; padding: 9px; border: 1px solid rgba(236, 235, 230, 0.22); box-shadow: 0 60px 140px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(7, 8, 12, 0.8); transform: rotateY(-12deg) rotateX(4deg); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: rotateY(-12deg) rotateX(4deg) translateY(0); } 50% { transform: rotateY(-9deg) rotateX(2deg) translateY(-14px); } }
.hero__notch { position: absolute; top: 18px; left: 50%; width: 88px; height: 24px; margin-left: -44px; border-radius: 12px; background: #07080C; z-index: 2; }
.hero__video { width: 100%; height: 100%; object-fit: cover; border-radius: 36px; background: #0b1230; }
.hero__sound { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(7, 8, 12, 0.6); border: 1px solid rgba(236, 235, 230, 0.25); color: var(--ink); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 10px; z-index: 3; transition: background 0.3s, border-color 0.3s; }
.hero__sound:hover { background: rgba(7, 8, 12, 0.85); border-color: var(--ink-2); }
.hero__sound i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }
.hero__sound.is-on i { background: var(--accent-2); box-shadow: 0 0 10px var(--accent); }
.hero__caption { }
.hero__kicker { color: var(--ink-3); margin: 0 0 22px; opacity: 0; }
.hero__title { font-weight: 500; letter-spacing: -0.05em; line-height: 0.92; font-size: clamp(40px, 5.1vw, 76px); margin: 0 0 20px; color: var(--ink); }
.hero__title .line { display: block; overflow: hidden; padding: 0.04em 0 0.22em; margin: -0.04em 0 -0.22em; } /* room below for g/y/p tails */
.hero__title .line__in { display: block; transform: translateY(135%); will-change: transform; }
.hero__title em { font-size: 1.04em; }
.hero__sub { font-size: clamp(16px, 1.3vw, 18px); color: var(--ink-2); max-width: 60ch; margin: 0 0 22px; opacity: 0; transform: translateY(16px); }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 18px; opacity: 0; transform: translateY(16px); }
.hero__meta { color: var(--ink-3); margin: 0; opacity: 0; }

/* Marquee */
.marquee { position: relative; z-index: 1; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; overflow: hidden; background: rgba(7, 8, 12, 0.35); }
.marquee__track { display: flex; align-items: center; gap: 34px; width: max-content; color: var(--ink-2); animation: marquee 48s linear infinite; }
.marquee__track i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Problem */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 1px; }
.cards3 .panel { border: 0; background: var(--bg); }
.cards3 .panel:hover { background: var(--bg-2); }
.stat { display: flex; align-items: center; gap: 40px; padding: 40px 36px; border: 1px solid var(--line); background: var(--bg); }
.stat__num { font-weight: 500; font-size: clamp(64px, 9vw, 120px); letter-spacing: -0.06em; line-height: 0.9; color: var(--ink); }
.stat__plus { font-size: 0.45em; color: var(--accent-2); margin-left: 4px; }
.stat__text p { margin: 0 0 8px; font-size: clamp(18px, 2vw, 24px); letter-spacing: -0.02em; }
.stat__text small { color: var(--ink-3); }

/* How it works */
.how { padding: 0; }
.how__pin { min-height: 100svh; display: flex; align-items: center; padding: clamp(100px, 12vh, 140px) 0; }
.how__grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: clamp(30px, 6vw, 100px); align-items: center; }
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.step { display: flex; gap: 22px; padding: 18px 0; border-bottom: 1px solid var(--line); transition: opacity 0.5s; opacity: 0.35; }
.step.is-active { opacity: 1; }
.step__n { color: var(--accent-2); padding-top: 6px; }
.step h3 { font-size: 20px; margin: 0 0 4px; }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; }
.how__progress { height: 1px; background: var(--line); margin-top: 28px; overflow: hidden; }
.how__progress div { height: 100%; width: 0; background: var(--ink); }

.how__phoneWrap { perspective: 1400px; display: grid; place-items: center; }
.phone3d { position: relative; width: min(320px, 78vw); aspect-ratio: 9 / 18.6; transform-style: preserve-3d; transform: rotateY(-14deg) rotateX(6deg); transition: transform 1.4s var(--ease); }
.phone3d__body { position: absolute; inset: 0; border-radius: 42px; background: #101217; border: 1px solid rgba(236, 235, 230, 0.2); box-shadow: 0 50px 120px rgba(0, 0, 0, 0.7), inset 0 0 0 6px #07080C; padding: 12px; overflow: hidden; }
.phone3d__notch { position: absolute; top: 18px; left: 50%; width: 90px; height: 24px; margin-left: -45px; border-radius: 12px; background: #07080C; z-index: 3; }
.phone3d__screen { position: absolute; inset: 12px; border-radius: 32px; background: #fff; color: #0b1230; overflow: hidden; display: flex; flex-direction: column; font-family: 'Inter', 'Inter Tight', system-ui, sans-serif; }
.chat__head { display: flex; align-items: center; gap: 8px; padding: 50px 16px 12px; border-bottom: 1px solid rgba(11, 18, 48, 0.08); font-size: 13px; }
.chat__head .z2-logo--xs { background: #07080C; border-radius: 50%; }
.chat__head strong { display: block; font-size: 14px; }
.chat__head small { color: #6b7390; font-size: 11px; display: flex; align-items: center; gap: 5px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; display: inline-block; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); }
.chat__head.is-morning .dot { background: #f5b731; box-shadow: 0 0 0 3px rgba(245, 183, 49, 0.2); }
.chat { flex: 1; padding: 14px 14px 8px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden; }
.bubble { max-width: 82%; padding: 10px 13px; border-radius: 16px; font-size: 13.5px; line-height: 1.35; position: relative; display: none; }
.bubble.is-in, .summary.is-in { display: block; animation: bubbleIn 0.6s var(--ease) both; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }
.bubble--in { align-self: flex-start; background: #eef1f7; color: #1b2240; border-bottom-left-radius: 6px; }
.bubble--out { align-self: flex-end; background: #2F7BFF; color: #fff; border-bottom-right-radius: 6px; }
.bubble--ok { background: #16a34a; }
.chat__time { display: block; font-size: 10px; color: #8a92ad; margin-bottom: 3px; }
.summary { position: relative; margin-top: auto; background: #f5f7fb; border: 1px solid rgba(11, 18, 48, 0.08); border-radius: 16px; padding: 14px; display: none; }
.chat.is-summary { justify-content: center; }
.chat.is-summary .bubble { display: none; }
.chat.is-summary .summary { display: block; margin-top: 0; }
.summary small { display: block; color: #6b7390; font-size: 11px; }
.summary strong { display: block; font-size: 20px; letter-spacing: -0.02em; margin: 2px 0; color: #0b1230; }
.summary__time { position: absolute; right: 14px; font-size: 11px; color: #6b7390; }
.summary ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 12px; color: #4b536f; }
.summary li b { color: #0b1230; margin-right: 6px; }
.chat__input { margin: 0 12px 14px; padding: 10px 14px; border-radius: 999px; background: #eef1f7; color: #8a92ad; font-size: 13px; }

/* Demo */
.demo__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: center; }
.demo__controls { display: flex; gap: 10px; flex-wrap: wrap; }
.demo__phoneWrap { position: relative; perspective: 1600px; display: grid; place-items: center; }
.demo__halo { position: absolute; width: 130%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(77, 139, 255, 0.35), rgba(77, 139, 255, 0.08) 50%, transparent 72%); filter: blur(30px); }
.demo__phone { position: relative; width: min(340px, 82vw); aspect-ratio: 1080 / 1920; border-radius: 44px; background: #07080C; padding: 10px; border: 1px solid rgba(236, 235, 230, 0.22); box-shadow: 0 60px 140px rgba(0, 0, 0, 0.7); transform: rotateY(-24deg) rotateX(8deg) translateZ(-60px); transform-style: preserve-3d; }
.demo__notch { position: absolute; top: 20px; left: 50%; width: 96px; height: 26px; margin-left: -48px; border-radius: 13px; background: #07080C; z-index: 2; }
.demo__video { width: 100%; height: 100%; object-fit: cover; border-radius: 36px; background: #0b1230; }
.ic-play, #playBtn.is-paused .ic-pause { display: none; }
#playBtn.is-paused .ic-play { display: block; }
#muteBtn.is-unmuted .ic-x { display: none; }
#muteBtn .ic-wave { display: none; }
#muteBtn.is-unmuted .ic-wave { display: block; }

/* Services */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.svc { padding: 40px 32px 36px; background: var(--bg); transition: background 0.5s; display: flex; flex-direction: column; }
.svc:hover { background: var(--bg-2); }
.svc__idx { display: block; color: var(--accent-2); margin-bottom: 56px; }
.svc h3 { font-size: clamp(24px, 2.2vw, 30px); margin: 0 0 14px; letter-spacing: -0.03em; line-height: 1.1; }
.svc p { margin: 0 0 26px; color: var(--ink-2); font-size: 15.5px; }
.svc ul { list-style: none; margin: auto 0 0; padding: 0; border-top: 1px solid var(--line); }
.svc li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 10.5px; display: flex; gap: 12px; }
.svc li::before { content: '→'; color: var(--accent-2); }

/* Work (horizontal) */
.work { padding: 0; }
.work__pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: clamp(90px, 12vh, 130px) 0 70px; overflow: hidden; }
.work__head { margin-bottom: 40px; }
.work__track { display: flex; gap: 20px; padding-left: max(var(--gutter), calc((100% - var(--container)) / 2)); padding-right: var(--gutter); will-change: transform; width: max-content; }
.wcard { position: relative; width: clamp(320px, 38vw, 520px); flex: 0 0 auto; display: flex; flex-direction: column; gap: 18px; transform-style: preserve-3d; transition: transform 0.3s ease-out; }
.wcard__img { aspect-ratio: 3 / 2; overflow: hidden; background: linear-gradient(135deg, var(--bg-2), #141827); display: grid; place-items: center; font-weight: 500; font-size: 44px; letter-spacing: -0.04em; color: var(--ink-2); border: 1px solid var(--line); transform: translateZ(30px); }
.wcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter 0.6s; filter: saturate(0.85) contrast(1.02); }
.wcard:hover .wcard__img img { transform: scale(1.04); filter: saturate(1); }
.wcard__img.is-missing img { display: none; }
.wcard__body { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: baseline; padding-top: 16px; border-top: 1px solid var(--line); transform: translateZ(20px); }
.wcard__tag { color: var(--accent-2); }
.wcard h3 { font-size: 24px; margin: 0 0 6px; }
.wcard p { margin: 0; color: var(--ink-2); font-size: 15px; }
.wcard__link { position: absolute; inset: 0; }
.only-touch { display: none; }
.work__dots { display: none; }
.wcard__arrow { color: var(--ink-3); font-family: var(--font-mono); font-size: 14px; transition: color 0.3s, transform 0.4s var(--ease); }
.wcard:hover .wcard__arrow { color: var(--ink); transform: translate(3px, -3px); }

/* Quotes */
.quotes__list { border-top: 1px solid var(--line); }
.quote { margin: 0; display: grid; grid-template-columns: 60px 1fr 260px; gap: 24px; align-items: start; padding: 34px 0; border-bottom: 1px solid var(--line); }
.quote p { margin: 0; font-size: clamp(18px, 2vw, 26px); letter-spacing: -0.02em; line-height: 1.3; color: var(--ink); }
.quote footer { display: flex; flex-direction: column; gap: 6px; }
.quote footer strong { font-weight: 500; }

/* Offer */
.offer__card { padding: clamp(40px, 8vw, 120px) 0; text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.offer__card .eyebrow { justify-content: center; }
.offer__card .eyebrow::after { display: none; }
.offer__card .h2, .offer__card .lead { margin-inline: auto; }
.offer__steps { list-style: none; margin: 0 auto 36px; padding: 0; max-width: 560px; text-align: left; border-top: 1px solid var(--line); }
.offer__steps li { display: grid; grid-template-columns: 70px 1fr; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--ink); }
.offer__steps .mono { color: var(--accent-2); }
.offer__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.offer__sign { margin: 40px 0 0; }

/* Contact */
.contact { padding-bottom: clamp(70px, 8vw, 120px); }
.contact__intro { margin-bottom: 44px; }
.contact__intro .lead { margin-bottom: 0; }
/* One grid for both columns: the left options and the form fields share rows, so their lines meet. */
.contact__table { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto repeat(4, minmax(112px, auto)) auto; column-gap: clamp(30px, 6vw, 110px); }
.contact__table .contact__alts, .contact__table .contact__form { grid-row: 1 / -1; display: grid; grid-template-rows: subgrid; gap: 0; } /* no own gap, or rows shrink and lines drift */
.contact__alts { grid-column: 1; }
.contact__form { grid-column: 2; }
.contact__colhead { margin: 0; padding: 0 0 16px; border-bottom: 1px solid var(--line-2); display: flex; align-items: flex-end; gap: 14px; color: var(--ink); font-size: 11px; }
.contact__colhead span { color: var(--accent-2); }
.contact__form .field { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--line-2); transition: border-color 0.3s; }
.contact__form .field:focus-within { border-bottom-color: var(--ink); }
.contact__form .field input, .contact__form .field textarea { border-bottom: 0; padding: 6px 0; }
.contact__form .field textarea { resize: none; }
.cform__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; padding-top: 26px; }
.contact__form .cform__done { grid-row: 2 / span 4; align-self: start; }
.alt--info strong { color: var(--ink-2); }
.alt { display: grid; grid-template-columns: 110px 1fr auto; gap: 6px 16px; align-content: center; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-2); transition: padding 0.4s var(--ease); }
.alt__hint { grid-column: 1 / -1; font-size: 13px; color: var(--ink-3); }
.cform__title { margin: 0 0 18px; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
a.alt:hover { padding-left: 8px; }
.alt strong { font-weight: 500; font-size: 20px; letter-spacing: -0.02em; }
.alt__email { font-size: 16px !important; word-break: break-all; }
.alt i { font-style: normal; font-family: var(--font-mono); color: var(--ink-3); transition: color 0.3s, transform 0.4s var(--ease); }
.alt:hover i { color: var(--ink); transform: translateX(4px); }
.cform { display: grid; gap: 22px; position: relative; }
.field { display: grid; gap: 10px; }
.field label { color: var(--ink-3); }
.field input, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; color: var(--ink); padding: 12px 0; font: inherit; font-size: 18px; letter-spacing: -0.01em; transition: border-color 0.3s; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.field input.is-bad { border-bottom-color: #ff6b6b; }
.cform .btn { justify-self: start; margin-top: 6px; }
.cform__done { padding: 18px 0; border-top: 1px solid var(--line-2); color: var(--ink); }
.cform__note { margin: 0; font-size: 14px; color: var(--ink-2); }
.cform.is-done .field, .cform.is-done .btn, .cform.is-done .cform__note, .cform.is-done .cform__actions { display: none; }

/* Footer */
.footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 30px 0 90px; background: var(--bg); color: var(--ink-3); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 12px; color: var(--ink-2); }
.footer__links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer__links a { transition: color 0.3s; }
.footer__links a:hover { color: var(--ink); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; pointer-events: none; opacity: 0; transition: opacity 0.4s; }
.modal.is-open { pointer-events: auto; opacity: 1; }
.modal__bg { position: absolute; inset: 0; background: rgba(7, 8, 12, 0.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.modal__card { position: relative; width: min(540px, 100%); max-height: calc(100svh - 40px); overflow: auto; padding: 36px; background: var(--bg); border: 1px solid var(--line-2); transform: translateY(24px); transition: transform 0.6s var(--ease); }
.modal.is-open .modal__card { transform: none; }
.modal__card h3 { font-size: 34px; letter-spacing: -0.04em; margin: 0 0 26px; }
.modal__close { position: absolute; top: 16px; right: 18px; width: 40px; height: 40px; border-radius: 50%; font-size: 24px; line-height: 1; color: var(--ink-2); border: 1px solid var(--line); }
.modal__close:hover { color: var(--ink); border-color: var(--ink-2); }
.modal__alts { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-2); }
.modal__alts a:hover { color: var(--ink); }

/* Sound toggle */
.sound { position: fixed; right: calc(var(--gutter) + 72px); bottom: 24px; z-index: 150; height: 48px; padding: 0 18px 0 15px; border-radius: 999px; display: inline-flex; align-items: center; gap: 9px; color: var(--ink); background: rgba(7, 8, 12, 0.72); border: 1px solid var(--line-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: box-shadow 0.5s, transform 0.4s var(--ease), border-color 0.4s, background 0.4s; }
.sound:hover { transform: translateY(-2px); border-color: var(--ink-2); }
.sound__label { font-size: 10px; letter-spacing: 0.14em; white-space: nowrap; }
.sound__waves, .sound.is-on .sound__x { display: none; }
.sound.is-on .sound__waves { display: inline; }
.sound.is-on { border-color: var(--accent-2); background: rgba(20, 32, 70, 0.75); box-shadow: 0 0 30px rgba(77, 139, 255, 0.35); }
.sound__eq { display: none; align-items: flex-end; gap: 2px; height: 12px; }
.sound.is-on .sound__eq { display: flex; }
.sound__eq i { width: 2px; height: 3px; background: var(--accent-2); }
.sound.is-on .sound__eq i { animation: eq 0.9s ease-in-out infinite alternate; }
.sound.is-on .sound__eq i:nth-child(1) { animation-duration: 0.8s; }
.sound.is-on .sound__eq i:nth-child(2) { animation-duration: 1.1s; }
.sound.is-on .sound__eq i:nth-child(3) { animation-duration: 0.7s; }
.sound.is-on .sound__eq i:nth-child(4) { animation-duration: 1s; }
@keyframes eq { from { height: 3px; } to { height: 14px; } }

/* Chat assistant */
.chatw { position: fixed; right: var(--gutter); bottom: 20px; z-index: 160; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; pointer-events: none; } /* the closed panel must not block taps on the page */
.chatw__launcher, .chatw.is-open .chatw__panel { pointer-events: auto; }
.chatw__launcher { position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #0A0B10; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(236, 235, 230, 0.15); transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.chatw__launcher:hover { transform: scale(1.06); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(77, 139, 255, 0.4); }
.chatw__launcher .ic-x, .chatw.is-open .chatw__launcher .ic-chat { display: none; }
.chatw.is-open .chatw__launcher .ic-x { display: block; }
.chatw__launcher::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(77, 139, 255, 0.6); opacity: 0; }
.chatw.is-nudge .chatw__launcher::after { animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(0.9); opacity: 0.8; } 100% { transform: scale(1.7); opacity: 0; } }
.chatw__nudge { position: absolute; right: 0; bottom: 68px; padding: 10px 14px; background: var(--bg); border: 1px solid var(--line-2); color: var(--ink); white-space: nowrap; opacity: 0; transform: translateX(8px); transition: opacity 0.5s, transform 0.5s var(--ease); pointer-events: none; }
.chatw.is-nudge:not(.is-open) .chatw__nudge { opacity: 1; transform: none; }
.chatw__panel { width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100svh - 120px)); display: flex; flex-direction: column; background: rgba(7, 8, 12, 0.92); border: 1px solid var(--line-2); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6); opacity: 0; transform: translateY(16px) scale(0.98); pointer-events: none; transition: opacity 0.35s, transform 0.5s var(--ease); transform-origin: bottom right; }
.chatw.is-open .chatw__panel { opacity: 1; transform: none; pointer-events: auto; }
.chatw__head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px; border-bottom: 1px solid var(--line); }
.chatw__head strong { display: block; font-weight: 500; font-size: 15px; }
.chatw__head small { display: flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 10px; }
.chatw__head .z2-logo--xs { filter: none; }
.chatw__close { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink-2); font-size: 20px; line-height: 1; }
.chatw__close:hover { color: var(--ink); border-color: var(--ink-2); }
.chatw__log { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; }
.chat__msg { max-width: 86%; padding: 11px 14px; font-size: 14.5px; line-height: 1.45; letter-spacing: 0; }
.chat__msg--bot { align-self: flex-start; background: var(--fill-2); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; }
.chat__msg--me { align-self: flex-end; background: var(--ink); color: #0A0B10; border-radius: 16px 16px 4px 16px; }
.chat__typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; background: var(--fill-2); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; }
.chat__typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-2); animation: blink 1s infinite; }
.chat__typing i:nth-child(2) { animation-delay: 0.15s; } .chat__typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.chatw__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.chat__chip { padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); font-size: 10px; transition: color 0.3s, border-color 0.3s, background 0.3s; }
.chat__chip:hover { color: var(--ink); border-color: var(--ink); background: var(--fill-2); }
.chatw__form { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.chatw__form input { flex: 1; background: var(--fill); border: 1px solid var(--line); border-radius: 999px; color: var(--ink); padding: 11px 16px; font: inherit; font-size: 14px; }
.chatw__form input:focus { outline: none; border-color: var(--ink-2); }
.chatw__form button { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #0A0B10; display: grid; place-items: center; flex: 0 0 auto; }
.chatw__form .chatw__mic { background: transparent; color: var(--ink-2); border: 1px solid var(--line-2); position: relative; transition: color 0.3s, border-color 0.3s, background 0.3s; }
.chatw__form .chatw__mic:hover { color: var(--ink); border-color: var(--ink); }
.chatw__form .chatw__mic.is-listening { color: #0A0B10; background: var(--accent-2); border-color: var(--accent-2); }
.chatw__form .chatw__mic.is-listening::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--accent-2); animation: ping 1.4s ease-out infinite; }
.chatw__form input.is-listening { border-color: var(--accent-2); }
.hp { display: none; }

/* Loader */
.loader { position: fixed; inset: 0; z-index: 1000; }
.loader__half { position: absolute; left: 0; right: 0; height: 50%; background: var(--bg); transition: transform 1s var(--ease-2); }
.loader__half--top { top: 0; }
.loader__half--bottom { bottom: 0; }
.loader__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; transition: opacity 0.35s; }
.loader__count { font-weight: 500; font-size: clamp(48px, 8vw, 96px); letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
.loader__bar { width: 200px; height: 1px; background: var(--line); overflow: hidden; }
.loader__fill { height: 100%; width: 0; background: var(--ink); transition: width 0.4s var(--ease); }
.loader__label { color: var(--ink-3); }
.loader.is-done { pointer-events: none; }
.loader.is-done .loader__center { opacity: 0; }
.loader.is-done .loader__half--top { transform: translateY(-101%); }
.loader.is-done .loader__half--bottom { transform: translateY(101%); }
.loader.is-gone { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__actions .btn { display: none; }
  .cards3 { grid-template-columns: repeat(2, 1fr); }
  .cards3 .panel:nth-child(3) { grid-column: 1 / -1; }
  .grid3 { grid-template-columns: 1fr; }
  .hud--br { display: none; }
  .quote { grid-template-columns: 40px 1fr; }
  .quote footer { grid-column: 2; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .cards3, .grid3 { grid-template-columns: 1fr; }
  .cards3 .panel:nth-child(3) { grid-column: auto; }
  .hero__inner { gap: 30px; }
  .hero__phone { width: min(200px, 24svh, 56vw); }
  .how__grid, .demo__inner { grid-template-columns: 1fr; }
  .contact__table { grid-template-columns: 1fr; grid-template-rows: none; }
  .contact__table .contact__alts, .contact__table .contact__form { grid-row: auto; grid-column: 1; grid-template-rows: none; }
  .contact__form { margin-top: 48px; }
  .contact__form .field, .alt { min-height: 96px; }
  .how__pin { padding: 84px 0 30px; align-items: flex-start; }
  .how__grid { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
  .how__text { display: contents; }
  .how__text .eyebrow { order: 0; margin-bottom: 4px; }
  .how__text .h2 { order: 1; font-size: 30px; margin-bottom: 6px; }
  .how__phoneWrap { order: 2; }
  .steps { order: 3; margin-top: 4px; border-top: 0; }
  .how__progress { order: 4; margin-top: 10px; }
  .phone3d { width: min(230px, 23svh); }
  .step { display: none; padding: 12px 0; }
  .step.is-active { display: flex; }
  .step h3 { font-size: 17px; }
  .step p { font-size: 14px; }
  .demo__phoneWrap { order: 2; }
  .demo__phone { transform: rotateY(-12deg) rotateX(4deg); width: min(100%, 360px); }
  .stat { flex-direction: column; align-items: flex-start; gap: 10px; padding: 28px; }
  .work__pin { min-height: 0; padding: 90px 0 50px; }
  .only-desk { display: none; }
  .only-touch { display: inline; color: var(--ink); }
  .work__dots { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
  .work__dots button { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); transition: background 0.3s, width 0.3s; }
  .work__dots button.is-on { width: 22px; border-radius: 4px; background: var(--ink); }
  .work__track { touch-action: pan-x pan-y; overscroll-behavior-x: contain; scroll-padding-inline: var(--gutter); overflow-x: auto; width: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 10px; scrollbar-width: none; }
  .work__track::-webkit-scrollbar { display: none; }
  .wcard { scroll-snap-align: start; width: min(320px, 82vw); }
  .wcard__body { grid-template-columns: auto 1fr; }
  .wcard__arrow { display: none; }
  .alt { grid-template-columns: 1fr auto; }
  .alt small { grid-column: 1 / -1; }
  .offer__steps li { grid-template-columns: 60px 1fr; font-size: 16px; }
  .hud--bl { display: none; }
  .sound { right: 78px; bottom: 19px; width: 46px; height: 46px; padding: 0; justify-content: center; gap: 0; }
  .sound__label, .sound.is-on .sound__eq { display: none; }
  .hero { padding-top: 120px; min-height: 92svh; }
  .offer__card { text-align: left; }
  .offer__card .eyebrow { justify-content: flex-start; }
  .offer__card .h2, .offer__card .lead { margin-inline: 0; }
  .offer__cta { justify-content: flex-start; }
  .footer { padding-bottom: 90px; }
  .chatw { right: 16px; bottom: 16px; }
  .chatw__launcher { width: 50px; height: 50px; }
  .chatw__panel { width: calc(100vw - 32px); height: min(540px, calc(100svh - 100px)); }
  .chatw__nudge { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .scene, .grain, .flash { display: none; }
  .scene-fallback { display: block; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal, .fly, .hero__kicker, .hero__sub, .hero__cta, .hero__meta { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .hero__title .line__in { transform: none !important; }
  .bubble.is-in, .summary.is-in { animation: none; }
  .demo__phone, .phone3d { transform: none !important; }
  .loader { display: none; }
}
