/* switch.kg v2 — "night facade": dark cinematic showcase + light reading sections. See DESIGN.md. */
:root {
  --night: #060B18;
  --night-2: #0C1428;
  --night-3: #141E38;
  --paper: #F4F2EC;
  --paper-2: #EAE7DE;
  --ink: #0B0F1A;
  --ink-2: #3B4152;
  --muted: #6F7383;
  --on-night: #EEF0F6;
  --on-night-2: #A5ADC4;
  --rule: rgba(11, 15, 26, .14);
  --rule-n: rgba(238, 240, 246, .14);
  --amber: #FFB547;          /* lit windows */
  --accent: #FF5A1F;         /* the switch */
  --free: #3DDC84; --booked: #FFB547; --sold: #5B6478;
  --display: "Unbounded", "Arial Black", sans-serif;
  --sans: "Onest", system-ui, sans-serif;
  --mono: "Onest", system-ui, sans-serif;   /* labels: same family as text, no typewriter look */
  --wrap: 1360px;
  --gut: clamp(16px, 3vw, 40px);
  --gap: clamp(88px, 11vw, 160px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

h1, h2, h3 { margin: 0; font-weight: 600; }
h1, h2, .display { font-family: var(--display); letter-spacing: -.03em; }
h1 { font-size: clamp(36px, 5vw, 76px); line-height: 1.04; }
h2 { font-size: clamp(30px, 3.8vw, 58px); line-height: 1.05; }
h3 { font-family: var(--sans); font-size: 22px; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0 0 1em; max-width: 66ch; }
.lead { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.55; max-width: 48ch; }
.eyebrow { font: 600 14px/1.4 var(--mono); letter-spacing: 0; display: inline-flex; gap: 10px; align-items: center; }
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--accent); }
.mono { font-family: var(--mono); }

/* ---------- dark surfaces ---------- */
.night { background: var(--night); color: var(--on-night); }
.night .lead, .night p { color: var(--on-night-2); }
.night .eyebrow { color: var(--on-night-2); }

/* ---------- header ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 30; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; color: var(--on-night); }
.top.solid { background: rgba(6, 11, 24, .82); backdrop-filter: blur(12px) saturate(1.3); border-bottom-color: var(--rule-n); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { width: 34px; height: 20px; }
.logo span { font: 600 20px/1 var(--display); letter-spacing: -.02em; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; padding: 8px 12px; color: var(--on-night-2); border-radius: 999px; transition: color .2s, background .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--on-night); background: rgba(255, 255, 255, .08); }
.menu { display: none; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; font: 500 14px var(--mono); padding: 10px 0; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; left: 0; right: 0; top: 72px; background: var(--night); border-bottom: 1px solid var(--rule-n); padding: 8px var(--gut) 24px; display: grid; }
.menu nav a { text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--rule-n); font: 600 22px var(--display); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; cursor: pointer; border: 0;
  font: 600 16px/1 var(--sans); padding: 18px 26px; border-radius: 999px; transition: transform .2s, background .2s, color .2s, box-shadow .2s; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -10px rgba(255, 90, 31, .7); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(255, 90, 31, .85); }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(4px); }
.btn--sm { padding: 12px 18px; font-size: 15px; }

/* ---------- HERO: night facade with live шахматка ---------- */
.hero { position: relative; min-height: max(720px, 100svh); overflow: hidden; background: #071026; isolation: isolate; }
.hero { background: radial-gradient(120% 90% at 70% 40%, #0B1D4A 0%, #071026 55%, #050A18 100%); }
.hero-art { position: absolute; top: 0; bottom: 0; right: 0; left: 40%; width: 60%; height: 100%; z-index: -1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%); mask-image: linear-gradient(90deg, transparent 0, #000 14%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 9, 22, .75) 0, rgba(4, 9, 22, 0) 140px),
              linear-gradient(0deg, rgba(4, 9, 22, .85) 0%, rgba(4, 9, 22, 0) 22%); }
.hero .wrap { position: relative; min-height: max(720px, 100svh); display: flex; flex-direction: column; justify-content: center; padding-top: 110px; padding-bottom: 120px; pointer-events: none; }
.hero-copy { max-width: min(560px, 38vw); pointer-events: auto; }
.hero h1 { color: #fff; margin: 22px 0 26px; font-size: clamp(36px, 4.3vw, 66px); }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lead { color: #C6CCDD; margin-bottom: 34px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-foot { position: absolute; left: 0; right: 0; bottom: 28px; pointer-events: none; }
.hero-foot .wrap { min-height: 0; padding: 0 var(--gut); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.hero-legend { display: flex; gap: 18px; font: 500 12.5px var(--mono); color: #AEB6CC; pointer-events: auto; }
.hero-legend span { display: inline-flex; gap: 8px; align-items: center; }
.hero-legend i { width: 10px; height: 10px; border-radius: 2px; }
.hero-note { font: 500 12px var(--mono); color: #7F89A6; }

/* overlay cells */
.apt { fill: transparent; stroke: transparent; stroke-width: 2; transition: fill .25s, stroke .25s; cursor: pointer; }
.floor-band { fill: transparent; transition: fill .3s; pointer-events: none; }
.floor-band.on { fill: rgba(255, 181, 71, .10); }
.apt.on, .apt:hover { stroke-width: 3; }
.apt.free.on, .apt.free:hover { fill: rgba(61, 220, 132, .28); stroke: var(--free); }
.apt.booked.on, .apt.booked:hover { fill: rgba(255, 181, 71, .30); stroke: var(--booked); }
.apt.sold.on, .apt.sold:hover { fill: rgba(91, 100, 120, .45); stroke: #8C95AB; }
.floor-tag { font: 600 22px var(--mono); fill: rgba(255, 255, 255, 0); transition: fill .3s; }
.floor-tag.on { fill: var(--amber); }

/* floating apartment card */
.apt-card { position: absolute; z-index: 3; width: 248px; padding: 16px 18px 18px; border-radius: 16px; color: var(--on-night);
  background: rgba(10, 16, 34, .86); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); opacity: 0; transform: translateY(8px) scale(.98);
  transition: opacity .25s, transform .25s; pointer-events: none; }
.apt-card.show { opacity: 1; transform: none; }
.apt-card .k { font: 500 11.5px var(--mono); color: #8E97B0; }
.apt-card .t { font: 600 20px/1.2 var(--display); letter-spacing: -.02em; margin: 2px 0 10px; }
.apt-card dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0 0 12px; font-size: 14px; }
.apt-card dt { color: #8E97B0; } .apt-card dd { margin: 0; font-weight: 600; }
.apt-card .price { font: 600 22px var(--display); color: var(--amber); letter-spacing: -.02em; }
.apt-card .st { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; margin-top: 8px; }
.apt-card .st i { width: 9px; height: 9px; border-radius: 50%; }

/* AI chat bubbles over the hero */
.chat { position: absolute; z-index: 2; right: clamp(16px, 4vw, 64px); bottom: 92px; width: min(360px, 80vw); display: grid; gap: 10px; pointer-events: none; }
.bubble { padding: 12px 16px; border-radius: 18px; font-size: 15px; line-height: 1.45; max-width: 92%; opacity: 0; transform: translateY(10px);
  transition: opacity .35s, transform .35s; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8); }
.bubble.show { opacity: 1; transform: none; }
.bubble.me { justify-self: end; background: #DCF8C6; color: #0B141A; border-bottom-right-radius: 6px; }
.bubble.ai { justify-self: start; background: rgba(255, 255, 255, .95); color: #0B141A; border-bottom-left-radius: 6px; }
.bubble.ai b { display: block; font: 600 11.5px var(--mono); color: #0E8F5C; margin-bottom: 2px; }
.bubble.typing { display: inline-flex; gap: 5px; padding: 16px 18px; }
.bubble.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9AA3B5; animation: dot 1s infinite; }
.bubble.typing i:nth-child(2) { animation-delay: .15s; } .bubble.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--rule-n); background: var(--night); color: var(--on-night); padding: 26px 0; }
.marquee .track { display: flex; gap: 56px; width: max-content; animation: slide 40s linear infinite; }
.marquee span { font: 600 clamp(22px, 2.6vw, 36px)/1 var(--display); letter-spacing: -.02em; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.marquee span::after { content: ""; width: 12px; height: 12px; background: var(--accent); transform: rotate(45deg); }
.marquee span.dim { color: transparent; -webkit-text-stroke: 1px rgba(238, 240, 246, .55); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.sec { padding: var(--gap) 0; position: relative; }
.sec-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-bottom: clamp(48px, 5vw, 80px); align-items: end; }
.sec-head .eyebrow { grid-column: 1 / -1; color: var(--muted); }
.sec-head h2 { grid-column: 1 / span 8; }
.sec-head .aside { grid-column: 9 / -1; color: var(--ink-2); font-size: 17px; margin: 0; }
.night .sec-head .eyebrow { color: var(--on-night-2); }
.night .sec-head .aside { color: var(--on-night-2); }

/* flow diagram: channels → CRM → outcomes */
.flow { position: relative; display: grid; grid-template-columns: minmax(0, 300px) 1fr minmax(0, 300px); align-items: center; gap: 24px; min-height: 460px; }
.flow svg.wires { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; overflow: visible; }
.wires path { fill: none; stroke: rgba(165, 173, 196, .28); stroke-width: 1.5; stroke-dasharray: 3 5; }
.wires .pulse { r: 5; fill: var(--amber); filter: drop-shadow(0 0 6px rgba(255, 181, 71, .9)); }
.wires .pulse.o { fill: var(--accent); filter: drop-shadow(0 0 6px rgba(255, 90, 31, .9)); }
.flow-col { position: relative; z-index: 1; display: grid; gap: 14px; }
.node { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px; background: var(--night-2); border: 1px solid var(--rule-n); }
.node .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; font: 700 13px var(--mono); color: #fff; }
.node b { display: block; font-size: 16px; }
.node small { color: var(--on-night-2); font-size: 13px; }
.hub { position: relative; z-index: 1; justify-self: center; width: min(320px, 100%); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at 50% 40%, #1B2A52 0%, #0C1428 62%); border: 1px solid rgba(255, 181, 71, .35);
  box-shadow: 0 0 0 14px rgba(255, 181, 71, .04), 0 0 0 30px rgba(255, 181, 71, .025), 0 0 80px rgba(255, 181, 71, .12); }
.hub .display { font-size: clamp(22px, 2.2vw, 30px); color: #fff; }
.hub p { font-size: 14px; margin: 8px auto 0; max-width: 22ch; }

/* services: big interactive rows */
.svc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.svc a { position: relative; display: grid; grid-template-columns: 90px minmax(0, 1.1fr) minmax(0, 1fr) 210px; gap: 24px; align-items: center;
  padding: 30px 28px; border-radius: 18px; border-bottom: 1px solid var(--rule); text-decoration: none; overflow: hidden; isolation: isolate; }
.svc a::before { content: ""; position: absolute; inset: 0; border-radius: 18px; background: var(--ink); transform: scaleY(0); transform-origin: bottom;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1); z-index: -1; }
.svc a:hover::before { transform: none; }
.svc a:hover { color: var(--paper); }
.svc .n { font: 500 14px var(--mono); color: var(--muted); }
.svc h3 { font: 600 clamp(22px, 2.4vw, 34px)/1.12 var(--display); letter-spacing: -.025em; }
.svc p { margin: 0; color: var(--ink-2); font-size: 16px; transition: color .3s; }
.svc a:hover p, .svc a:hover .n { color: #D4D9E6; }
.svc .go { justify-self: end; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid currentColor; transition: background .3s, border-color .3s, transform .3s; }
.svc a:hover .go { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(-45deg); }

/* product showcase in perspective */
.stage { perspective: 1800px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px 24px; align-items: center; }
.shot { margin: 0; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08);
  transform-style: preserve-3d; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.shot img, .shot video { display: block; width: 100%; height: auto; }
.stage .s12 { grid-column: 1 / -1; }
.shot.vid { background: #F7F8FA; }
.shot.tilt-l { transform: rotateY(12deg) rotateX(4deg); }
.shot.tilt-r { transform: rotateY(-12deg) rotateX(4deg); }
.shot:hover { transform: none; }
.stage .s7 { grid-column: span 7; }
.stage .txt { grid-column: span 5; }
.stage .txt h3 { font: 600 clamp(24px, 2.4vw, 34px)/1.1 var(--display); letter-spacing: -.025em; margin-bottom: 14px; color: #fff; }
.cap { font: 500 12.5px var(--mono); color: var(--on-night-2); margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 26px; padding: 0; list-style: none; }
.chips li { font-size: 14px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--rule-n); color: var(--on-night); }

/* projects */
.proj { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.proj article { position: relative; padding: 32px; border-radius: 20px; background: #fff; border: 1px solid var(--rule); min-height: 260px; display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s; }
.proj article:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(11, 15, 26, .35); }
.proj .k { font: 500 13px var(--mono); color: var(--accent); margin-bottom: auto; }
.proj h3 { font: 600 clamp(24px, 2.2vw, 32px)/1.1 var(--display); letter-spacing: -.025em; margin: 28px 0 12px; }
.proj p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* process with progress line */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--rule); }
.steps::after { content: ""; position: absolute; left: 0; top: 23px; height: 2px; width: var(--p, 0%); background: var(--accent); transition: width 1.6s cubic-bezier(.2, .7, .2, 1); }
.steps li { position: relative; padding-right: 22px; }
.steps .n { position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--ink);
  font: 600 14px var(--mono); margin-bottom: 22px; }
.steps h3 { font-size: 20px; margin-bottom: 8px; }
.steps p { font-size: 15px; color: var(--ink-2); margin: 0; }

/* cells (why, industries) */
.cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cells > div { padding: 28px; border-radius: 18px; background: #fff; border: 1px solid var(--rule); }
.cells h3 { margin-bottom: 8px; }
.cells p { font-size: 15.5px; color: var(--ink-2); margin: 0; }
.night .cells > div { background: var(--night-2); border-color: var(--rule-n); }
.night .cells p { color: var(--on-night-2); }

/* FAQ */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 40px; gap: 24px; align-items: center; padding: 24px 0; font: 600 21px/1.3 var(--sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; font: 400 22px/1 var(--mono); transition: transform .25s, background .25s, color .25s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--ink); color: var(--paper); }
.faq details p { color: var(--ink-2); padding-bottom: 24px; margin: 0; }

/* spec blocks on inner pages */
.spec { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding: 48px 0; border-top: 1px solid var(--rule); scroll-margin-top: 90px; }
.spec .n { grid-column: 1 / span 1; font: 500 14px var(--mono); color: var(--accent); padding-top: 10px; }
.spec .what { grid-column: 2 / span 5; }
.spec .what h3 { font: 600 clamp(26px, 2.6vw, 38px)/1.08 var(--display); letter-spacing: -.025em; margin-bottom: 16px; }
.spec .what p { color: var(--ink-2); }
.spec .result { font: 500 14px/1.5 var(--mono); padding: 14px 16px; border-radius: 12px; background: var(--paper-2); margin-top: 18px; max-width: 46ch; }
.spec ul { grid-column: 7 / -1; }
.ticks-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 28px; }
.ticks-list li { break-inside: avoid; padding: 10px 0 10px 26px; border-bottom: 1px solid var(--rule); position: relative; font-size: 16px; }
.ticks-list li::before { content: ""; position: absolute; left: 0; top: 19px; width: 12px; height: 2px; background: var(--accent); }
.ticks-list.one { columns: 1; }
.night .ticks-list li { border-color: var(--rule-n); color: var(--on-night); }

/* inner page head (night) */
.page-head { padding: 170px 0 96px; position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; width: 900px; height: 900px; right: -260px; top: -380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 181, 71, .16), rgba(255, 181, 71, 0) 62%); pointer-events: none; }
.page-head h1 { color: #fff; max-width: 18ch; margin: 22px 0 26px; }

/* contact */
.contact { background: var(--accent); color: #fff; position: relative; overflow: hidden; }
.contact::before { content: "switch"; position: absolute; right: -2vw; bottom: -6vw; font: 700 26vw/1 var(--display); letter-spacing: -.06em; color: rgba(255, 255, 255, .08); pointer-events: none; }
.contact .eyebrow { color: rgba(255, 255, 255, .85); } .contact .eyebrow::before { background: #fff; }
.contact h2 { color: #fff; }
.contact-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; position: relative; }
.contact-side { grid-column: 1 / span 4; }
.contact-side p { color: rgba(255, 255, 255, .9); }
.direct { list-style: none; margin: 32px 0 0; padding: 0; }
.direct li { padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .35); }
.direct span { display: block; font: 500 12px var(--mono); color: rgba(255, 255, 255, .78); }
.direct a, .direct b { font: 600 22px/1.25 var(--sans); text-decoration: none; }
.form { grid-column: 6 / -1; background: #fff; color: var(--ink); border-radius: 24px; padding: clamp(24px, 3vw, 40px); display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px;
  box-shadow: 0 40px 80px -30px rgba(80, 20, 0, .55); }
.field { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.field.full { grid-column: 1 / -1; }
.field label { font: 500 12px var(--mono); color: var(--muted); }
.field input, .field textarea { background: transparent; border: 0; color: var(--ink); font: 400 18px/1.4 var(--sans); padding: 4px 0; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; }
.field:focus-within { border-bottom-color: var(--accent); }
.form .send { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; padding-top: 26px; }
.form .note { font: 400 13px/1.5 var(--mono); color: var(--muted); margin: 0; }
.form .btn--primary { box-shadow: none; }

/* footer */
.foot { background: var(--night); color: var(--on-night-2); padding: 64px 0 40px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.foot .brand { grid-column: 1 / span 4; color: var(--on-night); }
.foot .brand p { color: var(--on-night-2); max-width: 34ch; margin-top: 16px; }
.foot nav { grid-column: 5 / span 3; display: grid; gap: 8px; align-content: start; }
.foot nav a { text-decoration: none; color: var(--on-night); } .foot nav a:hover { color: var(--amber); }
.req { grid-column: 8 / -1; margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; font: 400 13px/1.45 var(--mono); }
.req dt { color: #737C96; } .req dd { margin: 0; color: var(--on-night); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--rule-n); font: 400 12.5px var(--mono); }

/* figures on light pages */
.figs { display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px 24px; }
.fig { margin: 0; } .fig.w7 { grid-column: span 7; } .fig.w5 { grid-column: span 5; } .fig.w6 { grid-column: span 6; } .fig.w12 { grid-column: 1 / -1; }
.fig .pic { border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--rule); box-shadow: 0 30px 60px -36px rgba(11, 15, 26, .45); }
.fig img { width: 100%; height: auto; }
.fig figcaption { font: 500 12.5px var(--mono); color: var(--muted); padding-top: 12px; }
.fig-note { grid-column: span 5; align-self: center; }
.fig-note h3 { font: 600 clamp(24px, 2.2vw, 32px)/1.1 var(--display); letter-spacing: -.025em; margin-bottom: 14px; }
.fig-note p { color: var(--ink-2); }
.night .fig .pic { border-color: var(--rule-n); }
.night .fig figcaption { color: var(--on-night-2); }
.night .fig-note h3 { color: #fff; }

/* ---------- reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
  .js .rv.in { opacity: 1; transform: none; }
  .rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; }
  .hero-copy > * { animation: up .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-copy > *:nth-child(2) { animation-delay: .08s; } .hero-copy > *:nth-child(3) { animation-delay: .16s; } .hero-copy > *:nth-child(4) { animation-delay: .24s; }
  .hero-art { animation: zoom 14s ease-out both; }
  @keyframes up { from { opacity: 0; transform: translateY(24px); } }
  @keyframes zoom { from { transform: scale(1.06); } }
}
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .sec-head h2, .sec-head .aside { grid-column: 1 / -1; }
  .flow { grid-template-columns: 1fr; min-height: 0; }
  .flow svg.wires { display: none; }
  .hub { width: 260px; }
  .stage .s7, .stage .txt { grid-column: 1 / -1; }
  .shot.tilt-l, .shot.tilt-r { transform: none; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 36px 0; }
  .steps::before, .steps::after { display: none; }
  .contact-side, .form { grid-column: 1 / -1; }
  .spec .n, .spec .what, .spec ul { grid-column: 1 / -1; }
  .figs .fig.w7, .figs .fig.w5, .figs .fig.w6, .fig-note { grid-column: 1 / -1; }
  .foot .brand, .foot nav, .req { grid-column: 1 / -1; }
  .chat { display: none; }
}
@media (max-width: 1080px) {
  .hero-art { left: 0; width: 100%; -webkit-mask-image: none; mask-image: none; }
  .hero-copy { max-width: 640px; }
  .hero::after { background: linear-gradient(90deg, rgba(4, 9, 22, .9) 0%, rgba(4, 9, 22, .5) 60%, rgba(4, 9, 22, .2) 100%),
                 linear-gradient(0deg, rgba(4, 9, 22, .85) 0%, rgba(4, 9, 22, 0) 22%); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav, .top .cta-top { display: none; } .menu { display: block; }
  .hero::after { background: linear-gradient(0deg, rgba(4, 9, 22, .95) 0%, rgba(4, 9, 22, .75) 55%, rgba(4, 9, 22, .35) 100%); }
  .hero-legend { flex-wrap: wrap; gap: 10px 14px; }
  .hero-note { display: none; }
  .apt-card { display: none; }
  .svc a { grid-template-columns: 1fr 44px; gap: 8px 14px; padding: 22px 0; }
  .svc .n { grid-column: 1 / -1; }
  .svc p { grid-column: 1 / 2; }
  .svc .go { grid-row: 2 / span 2; grid-column: 2; width: 40px; height: 40px; }
  .proj, .cells { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .ticks-list { columns: 1; }
  .form { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; }
  .page-head { padding: 130px 0 64px; }
}

/* keep the 3D tilt after the scroll-in reveal */
@media (prefers-reduced-motion: no-preference) and (min-width: 1081px) {
  .js .shot.rv.in.tilt-l { transform: rotateY(12deg) rotateX(4deg); }
  .js .shot.rv.in.tilt-r { transform: rotateY(-12deg) rotateX(4deg); }
  .js .shot.rv.in:hover { transform: none; }
}

/* video: play button + lightbox */
.shot.vid { position: relative; }
.play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 16px; border: 0; cursor: pointer;
  background: linear-gradient(0deg, rgba(6, 11, 24, .55), rgba(6, 11, 24, .15)); color: #fff; font: 600 18px/1.25 var(--sans); text-align: left; }
.play[hidden] { display: none; }
.pb { width: 76px; height: 76px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-size: 26px; padding-left: 5px;
  box-shadow: 0 0 0 10px rgba(255, 90, 31, .25), 0 20px 40px -10px rgba(255, 90, 31, .7); transition: transform .2s; flex: none; }
.pb.sm { width: 28px; height: 28px; font-size: 11px; padding-left: 2px; box-shadow: none; display: inline-grid; }
.play:hover .pb { transform: scale(1.08); }
@media (prefers-reduced-motion: no-preference) { .play .pb { animation: ping 2.4s infinite; } }
@keyframes ping { 0%, 100% { box-shadow: 0 0 0 10px rgba(255, 90, 31, .25), 0 20px 40px -10px rgba(255, 90, 31, .7); } 50% { box-shadow: 0 0 0 20px rgba(255, 90, 31, .08), 0 20px 40px -10px rgba(255, 90, 31, .7); } }
.pl small { display: block; font: 500 14px var(--sans); color: #C6CCDD; margin-top: 4px; }
.lightbox { border: 0; padding: 0; background: transparent; width: min(1200px, 94vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(4, 8, 18, .88); backdrop-filter: blur(6px); }
.lightbox video { width: 100%; height: auto; max-height: 86vh; border-radius: 14px; background: #000; display: block; }
.lightbox .x { position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: transparent; color: #fff; font-size: 18px; cursor: pointer; }
.btn.watch { gap: 10px; }
@media (max-width: 760px) { .pb { width: 60px; height: 60px; font-size: 20px; } .play { font-size: 16px; gap: 12px; } .pl small { font-size: 13px; } }

.unmute { position: absolute; left: 14px; bottom: 14px; z-index: 2; border: 0; cursor: pointer; padding: 10px 14px; border-radius: 999px;
  background: rgba(6, 11, 24, .78); color: #fff; font: 600 14px var(--sans); backdrop-filter: blur(8px); transition: background .2s; }
.unmute:hover { background: var(--accent); }

/* phone hero: text first, then the building in its own frame with the same live demo */
@media (max-width: 760px) {
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero .wrap { order: 1; min-height: 0; padding-top: 104px; padding-bottom: 8px; justify-content: flex-start; }
  .hero-copy { max-width: none; }
  .hero h1 { margin: 16px 0 18px; }
  .hero .lead { margin-bottom: 24px; }
  .hero-art { position: relative; order: 2; left: 0; width: 100%; height: min(110vw, 540px); margin-top: 8px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%); mask-image: linear-gradient(180deg, transparent 0, #000 14%); }
  .hero::after { display: none; }
  .hero-foot { position: relative; order: 3; bottom: auto; padding: 12px 0 28px; }
  .apt-card { display: block; width: 188px; padding: 12px 14px 14px; border-radius: 14px; }
  .apt-card .t { font-size: 16px; margin-bottom: 6px; } .apt-card .price { font-size: 18px; }
  .apt-card dl { font-size: 12.5px; gap: 3px 10px; margin-bottom: 8px; } .apt-card .st { font-size: 12px; margin-top: 4px; }
  .chat { display: grid; left: 12px; right: 12px; width: auto; bottom: 64px; gap: 8px; }
  .bubble { font-size: 13.5px; padding: 10px 13px; }
}

/* WhatsApp phone with a live AI dialog */
.wa-wrap { display: grid; justify-items: center; }
.phone { position: relative; width: min(360px, 100%); height: 680px; border-radius: 46px; padding: 12px; background: #0E1220;
  box-shadow: 0 0 0 2px #2A3150, 0 50px 90px -30px rgba(0, 0, 0, .85), 0 0 120px rgba(37, 211, 102, .08); display: flex; flex-direction: column; overflow: hidden; }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 96px; height: 26px; margin-left: -48px; border-radius: 20px; background: #000; z-index: 3; }
.wa-top { display: flex; align-items: center; gap: 10px; padding: 46px 14px 12px; background: #008069; color: #fff; border-radius: 36px 36px 0 0; }
.wa-back { font-size: 26px; line-height: 1; opacity: .9; }
.wa-ava { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font: 700 16px var(--display); }
.wa-who b { display: block; font: 600 15px/1.2 var(--sans); }
.wa-who small { font-size: 12.5px; color: #D7F1E8; transition: color .2s; }
.wa-who small.typing { color: #fff; font-style: italic; }
.wa-feed { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 12px 10px; overflow: hidden; transition: opacity .5s;
  background-color: #EFEAE2; background-image: radial-gradient(rgba(0, 0, 0, .045) 1px, transparent 1px); background-size: 14px 14px; }
.wa-feed.fade { opacity: 0; }
.wa-msg { position: relative; max-width: 82%; padding: 7px 10px 18px; border-radius: 10px; font: 400 14.5px/1.38 var(--sans); color: #111B21;
  box-shadow: 0 1px .5px rgba(11, 20, 26, .13); opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .3s, transform .3s; }
.wa-msg.in { opacity: 1; transform: none; }
.wa-msg.me { align-self: flex-end; background: #D9FDD3; border-top-right-radius: 3px; }
.wa-msg.ai { align-self: flex-start; background: #fff; border-top-left-radius: 3px; }
.wa-meta { position: absolute; right: 8px; bottom: 3px; font-size: 11px; color: #667781; }
.ticks { font-style: normal; color: #8696A0; letter-spacing: -3px; margin-left: 2px; transition: color .3s; }
.ticks.read { color: #53BDEB; }
.wa-msg.img { padding: 4px 4px 20px; max-width: 78%; }
.wa-msg .pic { display: block; border-radius: 8px; overflow: hidden; position: relative; }
.wa-msg .pic img { display: block; width: 100%; transition: filter .6s; }
.wa-msg .pic.loading img { filter: blur(10px) brightness(.9); }
.wa-msg .pic.loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cap2 { display: block; padding: 6px 6px 0; font-size: 13.5px; }
.wa-msg.doc { padding: 6px 6px 20px; }
.doc { display: flex; gap: 10px; align-items: center; background: #F5F6F6; border-radius: 8px; padding: 10px; }
.doc .pdf { width: 34px; height: 42px; border-radius: 4px; background: #E5484D; color: #fff; font: 700 10px var(--sans); display: grid; place-items: center; flex: none; }
.doc b { display: block; font: 500 13.5px/1.25 var(--sans); }
.doc small { font-size: 12px; color: #667781; }
.wa-bar { display: flex; gap: 8px; align-items: center; padding: 8px 8px 14px; background: #EFEAE2; border-radius: 0 0 36px 36px; }
.wa-input { flex: 1; min-height: 40px; border-radius: 22px; background: #fff; padding: 9px 14px; font: 400 14.5px/1.35 var(--sans); color: #111B21; }
.wa-ph { color: #8696A0; }
.wa-typed:not(:empty)::after { content: ""; display: inline-block; width: 2px; height: 16px; background: #00A884; margin-left: 1px; vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.wa-send { width: 42px; height: 42px; border-radius: 50%; background: #00A884; color: #fff; display: grid; place-items: center; font-size: 16px; flex: none; }
.stage .s7 .wa-wrap { justify-items: center; }
@media (max-width: 760px) { .phone { height: 600px; border-radius: 40px; } .wa-top { border-radius: 30px 30px 0 0; } .wa-bar { border-radius: 0 0 30px 30px; } }

/* readability on dark sections */
.night .fig-note p, .night .stage .txt p { color: #C9CFDF; font-size: 17.5px; line-height: 1.65; }
.night .sec-head .aside, .night .lead { color: #C9CFDF; }
.night .fig figcaption, .night .cap { color: #9AA3BC; }
@media (max-width: 760px) { .svc a { padding: 22px 18px; } }

/* generated imagery */
.svc .thumb { position: absolute; right: 96px; top: 50%; width: 132px; height: 132px; margin-top: -66px; border-radius: 20px; object-fit: cover;
  opacity: 0; transform: translateY(14px) rotate(-6deg) scale(.85); transition: opacity .35s, transform .45s cubic-bezier(.2, .7, .2, 1); pointer-events: none;
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .7); }
.svc a:hover .thumb { opacity: 1; transform: none; }
.spec .tile { width: 132px; height: 132px; border-radius: 22px; margin-bottom: 22px; box-shadow: 0 24px 50px -24px rgba(11, 15, 26, .6); }
.page-head.has-bg { background-image: linear-gradient(90deg, var(--night) 0%, rgba(6, 11, 24, .92) 32%, rgba(6, 11, 24, .35) 70%, rgba(6, 11, 24, .15) 100%),
  linear-gradient(0deg, var(--night) 0%, rgba(6, 11, 24, 0) 30%), var(--bg); background-size: cover; background-position: center right; }
.page-head.has-bg::before { display: none; }
@media (max-width: 1080px) { .svc .thumb { display: none; } .svc a { grid-template-columns: 70px minmax(0, 1.1fr) minmax(0, 1fr) 56px; } }
@media (max-width: 760px) { .page-head.has-bg { background-image: linear-gradient(0deg, var(--night) 10%, rgba(6, 11, 24, .78) 60%, rgba(6, 11, 24, .55) 100%), var(--bg); } .spec .tile { width: 96px; height: 96px; } }
