/* =========================================================
   Roboscope IoT Solutions — design system
   Direction: dark-first engineered, logo-red signal glow.
   Rebrand by editing the tokens in :root.
   ========================================================= */
:root {
  --bg-0: #08080a;
  --bg-1: #0e0e11;
  --bg-2: #141418;
  --bg-3: #1c1c21;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f2f2f4;
  --text-2: #a9a9b3;
  --text-3: #71717c;

  --brand: #ce1417;            /* exact logo red — fills, buttons */
  --brand-rgb: 206, 20, 23;
  --accent: #ff3b3f;           /* logo red, lifted for text/glow on dark (AA) */
  --accent-rgb: 255, 59, 63;
  --accent-ink: #ffffff;
  --cool: #5ad1e6;             /* secondary data signal, used sparingly */
  --cool-rgb: 90, 209, 230;
  --ok: #3ee08f;

  --f-display: "Google Sans Flex", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Google Sans Flex", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 30px;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 140px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --t-fast: 140ms;
  --t-med: 260ms;
  --t-slow: 700ms;

  --wrap: 1240px;
  --nav-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text);
  font: 400 16px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: var(--brand); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 999; background: var(--brand); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 16px; }

/* ---------- Background texture ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: .45;
}
.bg-noise {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .07), transparent 60%);
  transform: translate3d(var(--mx, -999px), var(--my, -999px), 0);
  transition: opacity var(--t-med);
}

/* ---------- Layout ---------- */
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
section { position: relative; }
.section { padding-block: clamp(80px, 11vw, var(--s-10)); }
.section-tight { padding-block: clamp(56px, 7vw, var(--s-9)); }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; letter-spacing: -.025em; line-height: 1.05; margin: 0; }
.h-hero { font-size: clamp(44px, 8.2vw, 112px); letter-spacing: -.045em; line-height: .95; }
.h-1 { font-size: clamp(36px, 5.4vw, 72px); letter-spacing: -.035em; }
.h-2 { font-size: clamp(28px, 3.6vw, 46px); }
.h-3 { font-size: clamp(20px, 1.8vw, 24px); letter-spacing: -.015em; line-height: 1.2; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--text-2); max-width: 62ch; }
p { margin: 0; color: var(--text-2); }
.muted { color: var(--text-3); }
.accent { color: var(--accent); }
.grad-text {
  background: linear-gradient(100deg, var(--text) 10%, var(--accent) 55%, var(--text) 95%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 8s var(--ease-in-out) infinite;
}
.grad-text .w > span { background: inherit; background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 8s var(--ease-in-out) infinite; }
@keyframes sheen { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--text-2);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--brand); box-shadow: 0 0 12px rgba(var(--accent-rgb), .8); }
.mono { font-family: var(--f-mono); font-size: 13px; letter-spacing: .02em; }
.section-head { display: grid; gap: var(--s-4); margin-bottom: clamp(40px, 5vw, 72px); max-width: 820px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* ---------- Buttons ---------- */
.btn {
  --bx: 0px; --by: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font: 600 15px/1 var(--f-body); letter-spacing: -.01em; white-space: nowrap;
  transform: translate3d(var(--bx), var(--by), 0);
  transition: transform var(--t-med) var(--ease-out), background var(--t-fast), box-shadow var(--t-med), border-color var(--t-fast), color var(--t-fast);
  isolation: isolate; overflow: hidden;
}
.btn svg { width: 18px; height: 18px; transition: transform var(--t-med) var(--ease-out); }
.btn:hover svg.arrow { transform: translateX(4px); }
.btn-primary { background: var(--brand); color: var(--accent-ink); box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .4), 0 10px 30px -10px rgba(var(--accent-rgb), .6); }
.btn-primary:hover { box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .14), 0 16px 40px -12px rgba(var(--accent-rgb), .8); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 700ms var(--ease-out);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { border: 1px solid var(--line-2); background: rgba(255,255,255,.02); color: var(--text); }
.btn-ghost:hover { border-color: rgba(var(--accent-rgb), .5); background: rgba(var(--accent-rgb), .06); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn:active { transform: translate3d(var(--bx), var(--by), 0) scale(.97); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); }
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--t-med) var(--ease-out); }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Chips / pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.03);
  font: 500 12px/1 var(--f-mono); letter-spacing: .04em; color: var(--text-2);
}
.pill svg, .kiosk-badge svg, .float-card .v svg, .tag svg { width: 16px; height: 16px; flex: none; }
.kiosk-badge svg, .float-card .v svg { color: var(--accent); }
.dot-live { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(62,224,143,.6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(62,224,143,.55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(62,224,143,0); } }
.tag { font: 500 11px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: 6px; background: rgba(255,255,255,.05); color: var(--text-2); border: 1px solid var(--line); }
.tag.lime { background: rgba(var(--accent-rgb), .1); color: var(--accent); border-color: rgba(var(--accent-rgb), .25); }
.tag.cool { background: rgba(var(--cool-rgb), .1); color: var(--cool); border-color: rgba(var(--cool-rgb), .25); }

/* ---------- Loader (boot sequence) ---------- */
.boot {
  position: fixed; inset: 0; z-index: 1000; background: var(--bg-0);
  display: grid; place-items: center; transition: opacity 500ms var(--ease-out), visibility 500ms;
}
.boot.done { opacity: 0; visibility: hidden; }
.boot-inner { width: min(360px, 80vw); font: 500 12px/1.9 var(--f-mono); color: var(--text-3); }
.boot-inner .ok { color: var(--accent); }
.boot-bar { height: 2px; background: var(--line); margin-top: 16px; overflow: hidden; border-radius: 2px; }
.boot-bar i { display: block; height: 100%; width: 0; background: var(--brand); box-shadow: 0 0 12px var(--accent); transition: width 900ms var(--ease-out); }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--accent), var(--cool)); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 12px 0 auto; z-index: 100;
  transition: transform var(--t-med) var(--ease-out);
}
.nav.hide { transform: translateY(-120%); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  height: 60px; padding: 0 10px 0 18px; border-radius: 999px;
  border: 1px solid transparent; transition: background var(--t-med), border-color var(--t-med), backdrop-filter var(--t-med);
}
.nav.scrolled .nav-inner { background: rgba(12, 15, 20, .72); border-color: var(--line); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; }
.brand-text { display: grid; line-height: 1; }
.brand-text b { font: 700 17px/1 var(--f-display); letter-spacing: -.02em; }
.brand-text small { font: 500 9.5px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); margin-top: 4px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a, .nav-links button.dd-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; color: var(--text-2); transition: color var(--t-fast), background var(--t-fast);
}
.nav-links a:hover, .nav-links button.dd-btn:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,.05); }
.dd { position: relative; }
.dd-btn svg { width: 14px; height: 14px; transition: transform var(--t-med); }
.dd:hover .dd-btn svg, .dd.open .dd-btn svg { transform: rotate(180deg); }
.dd-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; width: 340px; padding: 8px;
  border-radius: var(--r-lg); background: rgba(18, 22, 29, .92); border: 1px solid var(--line-2);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: all var(--t-med) var(--ease-out);
}
.dd:hover .dd-menu, .dd.open .dd-menu, .dd:focus-within .dd-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dd-menu a { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; }
.dd-menu a:hover { background: rgba(255,255,255,.05); }
.dd-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(var(--accent-rgb), .1); color: var(--accent); }
.dd-ico svg { width: 20px; height: 20px; }
.dd-menu b { display: block; color: var(--text); font-size: 14.5px; }
.dd-menu small { color: var(--text-3); font-size: 12.5px; }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); place-items: center; }
.burger span { display: block; width: 18px; height: 1.5px; background: var(--text); position: relative; transition: transform var(--t-med); }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--text); transition: transform var(--t-med) var(--ease-out); }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: rgba(7, 9, 12, .96); backdrop-filter: blur(10px);
  padding: 110px 24px 40px; display: flex; flex-direction: column; gap: 4px;
  opacity: 0; visibility: hidden; transition: opacity var(--t-med), visibility var(--t-med);
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a { font: 600 30px/1.2 var(--f-display); letter-spacing: -.02em; padding: 10px 0; border-bottom: 1px solid var(--line); transform: translateY(20px); opacity: 0; transition: transform 500ms var(--ease-out), opacity 500ms; }
.menu-open .mobile-menu a { transform: none; opacity: 1; }
.mobile-menu a:nth-child(2) { transition-delay: 40ms; } .mobile-menu a:nth-child(3) { transition-delay: 80ms; }
.mobile-menu a:nth-child(4) { transition-delay: 120ms; } .mobile-menu a:nth-child(5) { transition-delay: 160ms; }
.mobile-menu a:nth-child(6) { transition-delay: 200ms; } .mobile-menu a:nth-child(7) { transition-delay: 240ms; }
.mobile-menu .btn { margin-top: 24px; }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: grid; align-items: center; padding: calc(var(--nav-h) + 60px) 0 80px; overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .9; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 220px; background: linear-gradient(transparent, var(--bg-0)); z-index: -1; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero-copy { display: grid; gap: 28px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 14px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-meta div { display: grid; gap: 4px; }
.hero-meta b { font: 600 28px/1 var(--f-display); letter-spacing: -.03em; }
.hero-meta div > span { font: 500 11.5px/1.3 var(--f-mono); color: var(--text-3); text-transform: uppercase; letter-spacing: .1em; }

/* split-text reveal */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 55ms + 150ms); }
.split.in .w > span { transform: none; }

/* hero device */
.hero-visual { position: relative; aspect-ratio: 1 / 1.08; perspective: 1400px; }
.device-stage { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 8deg)) rotateY(var(--ry, -14deg)); transition: transform 600ms var(--ease-out); }
.chip-board {
  position: absolute; inset: 8% 6%; border-radius: 28px;
  background:
    radial-gradient(circle at 30% 20%, rgba(var(--accent-rgb), .12), transparent 50%),
    linear-gradient(160deg, #141a22, #0b0e13);
  border: 1px solid var(--line-2);
  box-shadow: 0 60px 120px -40px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
}
.chip-board svg.traces { position: absolute; inset: 0; width: 100%; height: 100%; }
.traces path { fill: none; stroke: rgba(var(--accent-rgb), .22); stroke-width: 1.4; }
.traces path.flow { stroke: var(--accent); stroke-width: 1.8; stroke-dasharray: 6 220; animation: flow 3.6s linear infinite; filter: drop-shadow(0 0 6px var(--accent)); }
.traces path.flow.d2 { animation-delay: -1.2s; animation-duration: 4.4s; }
.traces path.flow.d3 { animation-delay: -2.4s; stroke: var(--cool); filter: drop-shadow(0 0 6px var(--cool)); }
@keyframes flow { to { stroke-dashoffset: -226; } }
.mcu {
  position: absolute; left: 50%; top: 50%; width: 38%; aspect-ratio: 1; transform: translate(-50%, -50%) translateZ(60px);
  border-radius: 14px; background: linear-gradient(145deg, #1d232d, #0f1318);
  border: 1px solid var(--line-2); display: grid; place-items: center; text-align: center;
  box-shadow: 0 0 0 1px rgba(0,0,0,.5), 0 30px 60px -20px rgba(0,0,0,.9), 0 0 60px -10px rgba(var(--accent-rgb), .35);
}
.mcu::before { content: ""; position: absolute; inset: -9px; border-radius: 18px; background:
  repeating-linear-gradient(90deg, transparent 0 9px, #8a929e 9px 12px) top / 100% 6px no-repeat,
  repeating-linear-gradient(90deg, transparent 0 9px, #8a929e 9px 12px) bottom / 100% 6px no-repeat,
  repeating-linear-gradient(0deg, transparent 0 9px, #8a929e 9px 12px) left / 6px 100% no-repeat,
  repeating-linear-gradient(0deg, transparent 0 9px, #8a929e 9px 12px) right / 6px 100% no-repeat; opacity: .5; z-index: -1; }
.mcu b { font: 700 clamp(14px, 1.6vw, 20px)/1 var(--f-mono); letter-spacing: .04em; }
.mcu small { display: block; margin-top: 8px; font: 500 10px/1 var(--f-mono); color: var(--text-3); letter-spacing: .16em; }
.mcu .led { position: absolute; top: 12px; right: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 10px var(--accent); animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.float-card {
  position: absolute; padding: 14px 16px; border-radius: 16px; min-width: 190px;
  background: rgba(18, 22, 29, .72); border: 1px solid var(--line-2);
  backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.7);
  animation: bob 6s var(--ease-in-out) infinite;
}
.float-card .k { font: 500 10.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.float-card .v { font: 600 15px/1.3 var(--f-display); margin-top: 6px; display: flex; align-items: center; gap: 8px; }
.fc-1 { top: 2%; left: -6%; transform: translateZ(120px); }
.fc-2 { top: 40%; right: -8%; transform: translateZ(140px); animation-delay: -2s; }
.fc-3 { bottom: 1%; left: 8%; transform: translateZ(100px); animation-delay: -4s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.bars { display: flex; gap: 3px; align-items: flex-end; height: 18px; }
.bars i { width: 4px; background: var(--brand); border-radius: 2px; animation: eq 1.2s ease-in-out infinite; }
.bars i:nth-child(2) { animation-delay: -.3s; } .bars i:nth-child(3) { animation-delay: -.6s; } .bars i:nth-child(4) { animation-delay: -.9s; }
@keyframes eq { 0%, 100% { height: 30%; } 50% { height: 100%; } }
.term { font: 500 11.5px/1.6 var(--f-mono); color: var(--text-2); margin-top: 6px; }
.term .ok { color: var(--accent); }

.scroll-hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; font: 500 10.5px/1 var(--f-mono); letter-spacing: .2em; color: var(--text-3); }
.scroll-hint i { width: 1px; height: 44px; background: linear-gradient(var(--accent), transparent); animation: drip 2s var(--ease-in-out) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--bg-1); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 14px; font: 600 clamp(18px, 2vw, 26px)/1 var(--f-display); letter-spacing: -.02em; color: var(--text-2); white-space: nowrap; }
.marquee-item svg { width: 18px; height: 18px; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--d, 0) * 70ms); }
.reveal.in { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(.94); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); }
.reveal-scale.in { opacity: 1; transform: none; }

/* ---------- Cards ---------- */
.card {
  position: relative; border-radius: var(--r-lg); background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line); padding: clamp(22px, 2.4vw, 32px); overflow: hidden; isolation: isolate;
  transition: border-color var(--t-med), transform var(--t-med) var(--ease-out);
}
.card::before { /* spotlight */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity var(--t-med);
  background: radial-gradient(420px circle at var(--cx, 50%) var(--cy, 50%), rgba(var(--accent-rgb), .09), transparent 45%);
}
.card::after { /* border light */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity var(--t-med);
  background: radial-gradient(300px circle at var(--cx, 50%) var(--cy, 50%), rgba(var(--accent-rgb), .55), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.card:hover::before, .card:hover::after { opacity: 1; }
.card:hover { border-color: var(--line-2); }
.ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(var(--accent-rgb), .08); border: 1px solid rgba(var(--accent-rgb), .2); color: var(--accent); margin-bottom: 22px; }
.ico svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 10px; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.b-hero { grid-column: span 3; grid-row: span 2; display: flex; flex-direction: column; min-height: 480px; }
.b-2 { grid-column: span 3; }
.b-3 { grid-column: span 2; }
.b-hero .viz { flex: 1; margin-top: 28px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-0); position: relative; overflow: hidden; min-height: 220px; }
.viz-signal { position: absolute; inset: 0; }
.viz-signal svg { width: 100%; height: 100%; }
.viz-signal path { fill: none; stroke: var(--accent); stroke-width: 2; filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), .7)); stroke-dasharray: 1200; stroke-dashoffset: 1200; }
.in .viz-signal path, .viz-signal.in path { animation: draw 2.4s var(--ease-out) forwards; }
.viz-signal path.p2 { stroke: var(--cool); opacity: .7; filter: none; animation-delay: .4s !important; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.viz-label { position: absolute; left: 16px; top: 14px; font: 500 11px/1 var(--f-mono); color: var(--text-3); letter-spacing: .1em; }
.viz-readout { position: absolute; right: 16px; top: 12px; font: 600 13px/1 var(--f-mono); color: var(--accent); }

/* ---------- Products ---------- */
.prod { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; padding: clamp(28px, 4vw, 56px); border-radius: var(--r-xl); }
.prod + .prod { margin-top: 20px; }
.prod.rev .prod-visual { order: -1; }
.prod-copy { display: grid; gap: 20px; }
.prod-list { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 10px; }
.prod-list li { display: flex; gap: 12px; color: var(--text-2); }
.prod-list svg { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.prod-visual { position: relative; display: grid; place-items: center; min-height: 420px; }
.prod-visual::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(var(--accent-rgb), .18), transparent 65%); filter: blur(20px); }
.prod-visual.cool::before { background: radial-gradient(circle, rgba(var(--cool-rgb), .2), transparent 65%); }

/* kiosk mockup */
.kiosk { position: relative; width: min(250px, 62%); transform: rotateY(-14deg) rotateX(4deg); transform-style: preserve-3d; transition: transform 800ms var(--ease-out); }
.prod:hover .kiosk, .tilt:hover .kiosk { transform: rotateY(-4deg) rotateX(2deg) translateY(-6px); }
.kiosk-frame { position: relative; aspect-ratio: 9 / 16; border-radius: 22px; padding: 10px; background: linear-gradient(150deg, #2a313c, #0d1015); border: 1px solid var(--line-2); box-shadow: 0 50px 80px -30px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.12); }
.kiosk-screen { position: relative; height: 100%; border-radius: 14px; overflow: hidden; background: #000; }
.kiosk-screen img, .kiosk-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 900ms ease, transform 4.5s linear; }
.kiosk-screen .on { opacity: 1; transform: scale(1); }
.kiosk-slide { display: grid; place-content: center; text-align: center; padding: 18px; }
.kiosk-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; z-index: 2; }
.kiosk-dots i { width: 5px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.4); transition: width var(--t-med), background var(--t-med); }
.kiosk-dots i.on { width: 16px; background: #fff; }
.kiosk-stand { width: 46%; height: 40px; margin: -2px auto 0; background: linear-gradient(#1c2129, #0d1014); clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%); border-radius: 0 0 6px 6px; }
.kiosk-shadow { width: 80%; height: 20px; margin: 6px auto 0; border-radius: 50%; background: radial-gradient(rgba(0,0,0,.7), transparent 70%); }
.kiosk-badge { position: absolute; z-index: 3; padding: 10px 14px; border-radius: 14px; background: rgba(18, 22, 29, .8); backdrop-filter: blur(12px); border: 1px solid var(--line-2); font-size: 13px; display: flex; gap: 10px; align-items: center; animation: bob 5s var(--ease-in-out) infinite; }
.kiosk-badge.kb-1 { left: 4%; top: 18%; }
.kiosk-badge.kb-2 { right: 2%; bottom: 20%; animation-delay: -2.5s; }

/* event table display */
.table-card { width: min(300px, 74%); aspect-ratio: 4 / 3; border-radius: 18px; padding: 10px; background: linear-gradient(150deg, #2a313c, #0d1015); border: 1px solid var(--line-2); box-shadow: 0 50px 80px -30px rgba(0,0,0,.9); transform: rotateX(18deg) rotateZ(-4deg); transition: transform 800ms var(--ease-out); }
.prod:hover .table-card { transform: rotateX(8deg) rotateZ(-1deg) translateY(-6px); }
.table-screen { position: relative; height: 100%; border-radius: 10px; overflow: hidden; background: radial-gradient(circle at 50% 40%, #3b2a1f, #120c08); display: grid; place-content: center; text-align: center; }
.table-screen .ts { position: absolute; inset: 0; display: grid; place-content: center; opacity: 0; transition: opacity 900ms; padding: 12px; }
.table-screen .ts.on { opacity: 1; }
.ts-script { font: italic 500 clamp(18px, 2.2vw, 26px)/1.1 Georgia, "Times New Roman", serif; color: #f7e3c8; }
.ts-num { font: 700 44px/1 var(--f-display); color: #f7e3c8; letter-spacing: -.02em; }
.ts-sub { font: 500 10px/1 var(--f-mono); letter-spacing: .3em; color: rgba(247, 227, 200, .6); margin-top: 10px; text-transform: uppercase; }
.bokeh { position: absolute; border-radius: 50%; background: rgba(255, 196, 120, .35); filter: blur(6px); animation: bob 7s ease-in-out infinite; }

/* ---------- Portfolio ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.work { padding: 0; display: flex; flex-direction: column; }
.work-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-0); }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.work:hover .work-media img, .work:hover .work-media .art { transform: scale(1.05); }
.work-media .art { position: absolute; inset: 0; display: grid; place-items: center; transition: transform 1.2s var(--ease-out); }
.work-body { padding: 26px 28px 30px; display: grid; gap: 10px; }
.work-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.work-num { font: 500 12px/1 var(--f-mono); color: var(--text-3); }

/* mini-device art (pure CSS) */
.mini-screen { width: 46%; aspect-ratio: 4/3; border-radius: 12px; padding: 7px; background: linear-gradient(150deg, #2a313c, #0d1015); border: 1px solid var(--line-2); box-shadow: 0 30px 50px -20px rgba(0,0,0,.9); }
.mini-screen > div { height: 100%; border-radius: 7px; overflow: hidden; position: relative; }
.ms-focus { background: linear-gradient(160deg, #0f1a10, #081008); display: grid; place-content: center; text-align: center; }
.ms-focus b { font: 600 34px/1 var(--f-mono); color: var(--accent); letter-spacing: .02em; }
.ms-focus small { font: 500 9px/1 var(--f-mono); color: var(--text-3); letter-spacing: .2em; margin-top: 8px; }
.ring { position: absolute; inset: 14%; border-radius: 50%; border: 2px solid rgba(var(--accent-rgb), .15); border-top-color: var(--accent); animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ms-aqua { background: linear-gradient(180deg, #06324a, #021624); }
.fish { position: absolute; width: 22px; height: 11px; border-radius: 50% 40% 40% 50%; background: var(--cool); animation: swim 9s linear infinite; }
.fish::after { content: ""; position: absolute; right: -8px; top: 1px; border-left: 9px solid var(--cool); border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.fish.f2 { top: 55%; background: #ffd25e; animation-duration: 12s; animation-delay: -4s; transform: scale(.8); }
.fish.f2::after { border-left-color: #ffd25e; }
.fish.f3 { top: 30%; background: #6fe3ff; animation-duration: 15s; animation-delay: -9s; }
.fish.f3::after { border-left-color: #6fe3ff; }
@keyframes swim { 0% { left: 110%; top: 40%; } 50% { top: 48%; } 100% { left: -20%; top: 38%; } }
.bubble { position: absolute; bottom: -10px; width: 6px; height: 6px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); animation: rise 5s linear infinite; }
@keyframes rise { to { transform: translateY(-140px); opacity: 0; } }
.weed { position: absolute; bottom: 0; width: 6px; border-radius: 6px 6px 0 0; background: #1f8a4c; transform-origin: bottom; animation: sway 4s ease-in-out infinite; }
@keyframes sway { 50% { transform: rotate(8deg); } }
.ms-voice { background: radial-gradient(circle at 50% 50%, #1a1410, #0b0806); display: grid; place-content: center; gap: 10px; justify-items: center; }
.wave { display: flex; gap: 4px; align-items: center; height: 40px; }
.wave i { width: 4px; border-radius: 3px; background: var(--cool); animation: eq 1s ease-in-out infinite; }
.wave i:nth-child(odd) { animation-duration: .8s; } .wave i:nth-child(3n) { animation-delay: -.4s; }
.ms-voice small { font: 500 9px/1 var(--f-mono); color: rgba(var(--cool-rgb), .8); letter-spacing: .2em; }

/* ---------- Why / stats ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why-num { font: 600 clamp(48px, 5vw, 64px)/1 var(--f-display); letter-spacing: -.04em; margin-bottom: 14px; }
.why-num sup { font-size: .45em; color: var(--accent); vertical-align: top; margin-left: 2px; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; position: relative; counter-reset: step; }
.process-line { position: absolute; top: 46px; left: 8%; right: 8%; height: 1px; background: var(--line-2); overflow: hidden; }
.process-line i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent), var(--cool)); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease-out); }
.process.in .process-line i { transform: scaleX(1); }
.step { position: relative; }
.step-dot { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 24px; background: var(--bg-0); border: 1px solid var(--line-2); font: 600 15px/1 var(--f-mono); color: var(--accent); position: relative; z-index: 1; }
.step-dot::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; border: 1px dashed rgba(var(--accent-rgb), .35); animation: spin 18s linear infinite; }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; border-radius: var(--r-xl); overflow: hidden; padding: 0; }
.calc-in { padding: clamp(24px, 3.4vw, 48px); display: grid; gap: 22px; }
.calc-out { padding: clamp(24px, 3.4vw, 48px); background: radial-gradient(circle at 70% 20%, rgba(var(--accent-rgb), .16), transparent 60%), var(--bg-0); border-left: 1px solid var(--line); display: grid; align-content: center; gap: 12px; }
.calc-big { font: 600 clamp(44px, 5.6vw, 76px)/1 var(--f-display); letter-spacing: -.04em; color: var(--accent); font-variant-numeric: tabular-nums; }
.field { display: grid; gap: 8px; }
.field label, .field .lbl { font: 500 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); display: flex; justify-content: space-between; }
.field output { color: var(--text); }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; border-radius: var(--r-md);
  background: var(--bg-0); border: 1px solid var(--line-2); color: var(--text); outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a6aebb' stroke-width='1.6'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.select option { background: var(--bg-2); }
.input:focus, .select:focus, .textarea:focus { border-color: rgba(var(--accent-rgb), .6); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .12); }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--accent) var(--fill, 50%), var(--bg-3) var(--fill, 50%)); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--text); border: 4px solid var(--accent); box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .15); cursor: grab; }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--text); border: 4px solid var(--accent); cursor: grab; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); font: 500 13px/1 var(--f-mono); color: var(--text-2); transition: all var(--t-fast); }
.seg button[aria-pressed=true] { background: var(--brand); color: var(--accent-ink); border-color: var(--brand); }

/* ---------- Comparison ---------- */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.compare th, .compare td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; }
.compare thead th { font: 500 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); background: var(--bg-1); }
.compare td { color: var(--text-2); background: var(--bg-1); }
.compare td:first-child { color: var(--text); font-weight: 500; }
.compare .hl { background: rgba(var(--accent-rgb), .06); color: var(--text); }
.compare thead .hl { color: var(--accent); }
.compare tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-lg); }

/* ---------- Sizes ---------- */
.sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: end; }
.size { text-align: left; }
.size-frame { margin: 0 auto 22px; border-radius: 10px; padding: 5px; background: linear-gradient(150deg, #2a313c, #0d1015); border: 1px solid var(--line-2); transition: transform var(--t-med) var(--ease-out); }
.size:hover .size-frame { transform: translateY(-8px); }
.size-frame > i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(160deg, rgba(var(--accent-rgb), .35), rgba(var(--cool-rgb), .25) 60%, #111); }
.size b { font: 600 34px/1 var(--f-display); letter-spacing: -.03em; display: block; margin-bottom: 8px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure { margin: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); position: relative; aspect-ratio: 3/4; background: var(--bg-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 900px; margin-inline: auto; }
.faq details { border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg-1); transition: border-color var(--t-med), background var(--t-med); }
.faq details[open] { border-color: rgba(var(--accent-rgb), .3); background: var(--bg-2); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; display: flex; justify-content: space-between; gap: 16px; align-items: center; font-weight: 500; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transition: transform var(--t-med) var(--ease-out), background var(--t-med); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--text); transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform var(--t-med); }
.faq details[open] summary i { background: var(--brand); border-color: var(--brand); }
.faq details[open] summary i::before { background: var(--accent-ink); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); background: var(--accent-ink); }
.faq .ans { padding: 0 22px 22px; color: var(--text-2); max-width: 70ch; }

/* ---------- CTA ---------- */
.cta { position: relative; border-radius: var(--r-xl); padding: clamp(48px, 7vw, 100px) clamp(24px, 5vw, 80px); overflow: hidden; text-align: center; border: 1px solid var(--line-2);
  background: radial-gradient(ellipse 60% 80% at 50% 120%, rgba(var(--accent-rgb), .28), transparent 60%), radial-gradient(ellipse 40% 50% at 90% 0%, rgba(var(--cool-rgb), .14), transparent 60%), var(--bg-1); }
.cta .h-1 { max-width: 16ch; margin: 18px auto 20px; }
.cta .lead { margin: 0 auto 34px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.orbit { position: absolute; border: 1px solid var(--line); border-radius: 50%; left: 50%; top: 100%; transform: translate(-50%, -50%); pointer-events: none; }
.orbit::after { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 14px var(--accent); }
.orbit.o1 { width: 700px; height: 700px; animation: spin 26s linear infinite; }
.orbit.o2 { width: 1000px; height: 1000px; animation: spin 40s linear infinite reverse; }
.orbit.o2::after { background: var(--cool); box-shadow: 0 0 14px var(--cool); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: calc(var(--nav-h) + 90px) 0 clamp(60px, 7vw, 100px); position: relative; overflow: hidden; }
.page-hero .glow { position: absolute; width: 900px; height: 600px; left: 50%; top: -260px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(var(--accent-rgb), .14), transparent 60%); pointer-events: none; z-index: -1; }
.page-hero .glow.cool { background: radial-gradient(ellipse, rgba(var(--cool-rgb), .16), transparent 60%); }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.crumbs { font: 500 12px/1 var(--f-mono); color: var(--text-3); letter-spacing: .08em; margin-bottom: 26px; display: flex; gap: 10px; }
.crumbs a:hover { color: var(--accent); }

/* ---------- Grids ---------- */
.g-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.g-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.g-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.sticky { position: sticky; top: 110px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; color: var(--text-2); }
.checklist svg { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }
.price-card { display: flex; flex-direction: column; gap: 18px; }
.price-card.featured { border-color: rgba(var(--accent-rgb), .4); background: linear-gradient(180deg, rgba(var(--accent-rgb), .07), var(--bg-1) 50%); }
.timeline { display: grid; gap: 0; border-left: 1px solid var(--line-2); margin-left: 8px; }
.tl-item { position: relative; padding: 0 0 30px 30px; }
.tl-item::before { content: ""; position: absolute; left: -6px; top: 4px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg-0); border: 2px solid var(--accent); }
.tl-item b { font: 500 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.tl-item p { margin-top: 8px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 13.5px; color: var(--text-3); }
.form-status { display: none; padding: 14px 16px; border-radius: var(--r-md); font-size: 14.5px; }
.form-status.ok { display: block; background: rgba(62,224,143,.1); border: 1px solid rgba(62,224,143,.3); color: #b6f5d4; }
.form-status.err { display: block; background: rgba(255,90,90,.1); border: 1px solid rgba(255,90,90,.3); color: #ffc2c2; }
.hp { position: absolute; left: -9999px; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.contact-card { display: grid; gap: 14px; }
.contact-line { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg-1); transition: border-color var(--t-med), transform var(--t-med) var(--ease-out); }
.contact-line:hover { border-color: rgba(var(--accent-rgb), .4); transform: translateX(4px); }
.contact-line .ico { margin: 0; flex: none; }
.contact-line b { display: block; }
.contact-line small { color: var(--text-3); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 80px 0 32px; margin-top: 40px; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { font: 500 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--text-2); transition: color var(--t-fast); }
.footer ul a:hover { color: var(--accent); }
.footer-big { font: 700 clamp(60px, 15vw, 220px)/.8 var(--f-display); letter-spacing: -.06em; margin-top: 60px; color: transparent; -webkit-text-stroke: 1px var(--line-2); user-select: none; white-space: nowrap; text-align: center; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text-3); }

/* =========================================================
   Chat assistant
   ========================================================= */
.chat-launch {
  position: fixed; right: 22px; bottom: 22px; z-index: 300;
  width: 64px; height: 64px; border-radius: 50%; background: var(--brand); color: var(--accent-ink);
  display: grid; place-items: center; box-shadow: 0 16px 40px -10px rgba(var(--accent-rgb), .7);
  transition: transform var(--t-med) var(--ease-out);
}
.chat-launch:hover { transform: scale(1.06); }
.chat-launch svg { width: 26px; height: 26px; transition: transform var(--t-med) var(--ease-out), opacity var(--t-fast); position: absolute; }
.chat-launch .i-close { opacity: 0; transform: rotate(-90deg); }
.chat-open .chat-launch .i-chat { opacity: 0; transform: rotate(90deg); }
.chat-open .chat-launch .i-close { opacity: 1; transform: none; }
.chat-launch::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); animation: halo 2.6s var(--ease-out) infinite; }
.chat-open .chat-launch::before { display: none; }
@keyframes halo { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
.chat-unread { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--cool); color: #fff; font: 700 11px/18px var(--f-body); text-align: center; border: 2px solid var(--bg-0); }
.chat-teaser {
  position: fixed; right: 22px; bottom: 100px; z-index: 299; max-width: 290px;
  padding: 14px 40px 14px 16px; border-radius: 18px 18px 4px 18px;
  background: rgba(18, 22, 29, .94); border: 1px solid var(--line-2); backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -15px rgba(0,0,0,.7); font-size: 14.5px; color: var(--text);
  opacity: 0; transform: translateY(10px) scale(.96); transform-origin: bottom right; pointer-events: none;
  transition: opacity var(--t-med), transform var(--t-med) var(--ease-out);
}
.chat-teaser.show { opacity: 1; transform: none; pointer-events: auto; cursor: pointer; }
.chat-teaser button { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; color: var(--text-3); font-size: 18px; line-height: 1; }
.chat-teaser button:hover { color: var(--text); background: rgba(255,255,255,.06); }

.chat {
  position: fixed; right: 22px; bottom: 100px; z-index: 301;
  width: min(400px, calc(100vw - 32px)); height: min(640px, calc(100svh - 130px));
  display: flex; flex-direction: column; border-radius: 24px; overflow: hidden;
  background: rgba(12, 15, 20, .94); border: 1px solid var(--line-2);
  backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(0,0,0,.4);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.96); transform-origin: bottom right;
  transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out), visibility var(--t-med);
}
.chat-open .chat { opacity: 1; visibility: visible; transform: none; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(var(--accent-rgb), .06), transparent); }
.bot-av { position: relative; width: 42px; height: 42px; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--line-2); display: grid; place-items: center; flex: none; }
.bot-av svg { width: 24px; height: 24px; color: var(--accent); }
.bot-av::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 11px; height: 11px; border-radius: 50%; background: var(--ok); border: 2px solid var(--bg-1); }
.chat-head b { display: block; font: 600 15.5px/1.2 var(--f-display); }
.chat-head small { font: 500 11px/1 var(--f-mono); color: var(--text-3); letter-spacing: .04em; }
.chat-head .grow { flex: 1; min-width: 0; }
.chat-icon-btn { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--text-3); transition: background var(--t-fast), color var(--t-fast); }
.chat-icon-btn:hover { background: rgba(255,255,255,.06); color: var(--text); }
.chat-icon-btn svg { width: 18px; height: 18px; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; overscroll-behavior: contain; }
.chat-body::-webkit-scrollbar { width: 6px; } .chat-body::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 6px; }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.55; animation: msgIn 380ms var(--ease-out) both; word-wrap: break-word; }
.msg p { color: inherit; } .msg p + p, .msg ul { margin-top: 8px; }
.msg ul { padding-left: 18px; margin-bottom: 0; } .msg li + li { margin-top: 3px; }
.msg a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.msg strong { color: var(--text); }
.msg.bot { align-self: flex-start; background: var(--bg-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--text-2); }
.msg.user { align-self: flex-end; background: var(--brand); color: var(--accent-ink); border-bottom-right-radius: 4px; font-weight: 500; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 14px 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: tdot 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tdot { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; animation: msgIn 380ms var(--ease-out) both; }
.chips button { padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(var(--accent-rgb), .35); color: var(--accent); font-size: 13px; font-weight: 500; background: rgba(var(--accent-rgb), .05); transition: background var(--t-fast), transform var(--t-fast); }
.chips button:hover { background: rgba(var(--accent-rgb), .14); transform: translateY(-1px); }
.chat-cta { display: flex; flex-wrap: wrap; gap: 6px; animation: msgIn 380ms var(--ease-out) both; }
.chat-cta a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; background: #1fa855; color: #fff; font-size: 13.5px; font-weight: 600; }
.chat-cta a.alt { background: var(--bg-3); border: 1px solid var(--line-2); }
.chat-cta svg { width: 16px; height: 16px; }
.lead-form { align-self: stretch; display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: var(--bg-2); border: 1px solid rgba(var(--accent-rgb), .25); animation: msgIn 380ms var(--ease-out) both; }
.lead-form .input { min-height: 44px; padding: 10px 12px; font-size: 14px; border-radius: 10px; }
.lead-form .btn { min-height: 42px; }
.chat-foot { padding: 12px; border-top: 1px solid var(--line); }
.chat-input { display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 16px; background: var(--bg-0); border: 1px solid var(--line-2); transition: border-color var(--t-fast); }
.chat-input:focus-within { border-color: rgba(var(--accent-rgb), .5); }
.chat-input textarea { flex: 1; background: none; border: 0; outline: none; resize: none; max-height: 110px; padding: 9px 0; font-size: 14.5px; line-height: 1.45; }
.chat-send { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: var(--accent-ink); display: grid; place-items: center; flex: none; transition: transform var(--t-fast), opacity var(--t-fast); }
.chat-send:disabled { opacity: .35; }
.chat-send svg { width: 18px; height: 18px; }
.chat-legal { font: 500 10.5px/1.4 var(--f-mono); color: var(--text-3); text-align: center; margin-top: 8px; letter-spacing: .02em; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .burger { display: grid; }
  .hero-grid, .page-hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; width: 100%; margin: 20px auto 0; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .b-hero, .b-2 { grid-column: span 2; }
  .b-3 { grid-column: span 1; }
  .why-grid, .g-4, .sizes { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: span 2; }
}
@media (max-width: 820px) {
  .prod, .calc, .split-2 { grid-template-columns: 1fr; }
  .prod.rev .prod-visual { order: 0; }
  .prod-visual { min-height: 340px; }
  .calc-out { border-left: 0; border-top: 1px solid var(--line); }
  .work-grid, .g-3, .g-2, .gallery { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .process-line { display: none; }
  .sticky { position: static; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .bento, .why-grid, .g-4 { grid-template-columns: 1fr; }
  .b-hero, .b-2, .b-3 { grid-column: span 1; }
  .b-hero { min-height: 0; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .fc-1 { left: 0; } .fc-2 { right: 0; }
  .float-card { min-width: 0; padding: 10px 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: span 1; }
  .chat { right: 16px; bottom: 92px; }
  .chat-launch { right: 16px; bottom: 16px; }
  .chat-teaser { right: 16px; bottom: 92px; }
  .compare th, .compare td { padding: 14px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-scale, .split .w > span { opacity: 1; transform: none; }
  .viz-signal path { stroke-dashoffset: 0; }
  #hero-canvas { display: none; }
}

/* =========================================================
   FX LAYER — concept: signal flows through a circuit and
   powers the page on. Preloader, scope cursor, circuit spine,
   variable-font "power-up" type, exploded build, reviews.
   ========================================================= */
html:not(.js) .reveal, html:not(.js) .reveal-scale { opacity: 1; transform: none; }
html:not(.js) .split .w > span { transform: none; }
html:not(.js) .pl { display: none; }

/* ---------- Type: Google Sans Flex tuning ---------- */
h1, h2, h3, h4 { font-weight: 640; font-variation-settings: "wdth" 100, "ROND" 0; letter-spacing: -.03em; }
.h-hero { font-weight: 680; letter-spacing: -.05em; }
body { font-variation-settings: "wdth" 100; }
.btn { font-weight: 600; }
.split .w > span {
  font-variation-settings: "wght" var(--wg, 680), "wdth" var(--wd, 100);
  transition: transform 1s var(--ease-out), font-variation-settings 1.1s var(--ease-out);
  transition-delay: calc(var(--i) * 55ms + 150ms);
}
.split:not(.in) .w > span { --wg: 120; --wd: 30; }                 /* powered-off: thin + condensed */
.split.in.live .w > span { transition-delay: 0s; transition-duration: .35s, .35s; }  /* kinetic hover */
.h-1.split .w > span { --wg: 640; }
.h-1.split:not(.in) .w > span { --wg: 120; --wd: 30; }

/* ---------- Preloader ---------- */
.pl { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; pointer-events: none; }
.pl-half { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--bg-0); transition: transform 700ms cubic-bezier(.77, 0, .18, 1); }
.pl-top { top: 0; border-bottom: 1px solid rgba(var(--accent-rgb), .0); }
.pl-bot { bottom: 0; }
.pl-half::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--accent); box-shadow: 0 0 18px 2px var(--accent); transform: scaleX(0); transition: transform 380ms var(--ease-out); }
.pl-top::after { bottom: 0; } .pl-bot::after { top: 0; }
.pl-core { position: relative; z-index: 2; display: grid; justify-items: center; gap: 18px; width: min(340px, 78vw); transition: opacity 280ms, transform 500ms var(--ease-out); }
.pl-scope { position: relative; width: 120px; height: 140px; display: grid; place-items: center; }
.pl-scope .br { position: absolute; width: 16px; height: 16px; border: 2px solid var(--accent); transition: inset 600ms var(--ease-out); }
.br.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; } .br.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.br.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; } .br.brr { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.pl-logo { width: 74px; height: auto; overflow: visible; }
.pl-stroke { fill: none; stroke: var(--accent); stroke-width: 5; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 8px rgba(var(--accent-rgb), .9)); animation: plDraw 700ms var(--ease-out) forwards; }
.pl-s2 { animation-delay: 250ms; }
.pl-fill { fill: var(--brand); opacity: 0; animation: plFill 260ms ease-out 760ms forwards; }
@keyframes plDraw { to { stroke-dashoffset: 0; } }
@keyframes plFill { 0% { opacity: 0; } 40% { opacity: 1; filter: brightness(2.2) drop-shadow(0 0 30px var(--accent)); } 100% { opacity: 1; } }
.pl-scan { position: absolute; left: -10px; right: -10px; height: 2px; top: 0; background: linear-gradient(90deg, transparent, var(--accent), transparent); box-shadow: 0 0 14px var(--accent); animation: plScan 900ms var(--ease-in-out) infinite alternate; opacity: .8; }
@keyframes plScan { to { top: 100%; } }
.pl-word { font: 500 13px/1 var(--f-mono); letter-spacing: .5em; padding-left: .5em; color: var(--text); }
.pl-meta { width: 100%; display: flex; justify-content: space-between; font: 500 10.5px/1 var(--f-mono); letter-spacing: .14em; color: var(--text-3); }
.pl-meta b { color: var(--accent); font-weight: 600; }
.pl-bar { width: 100%; height: 2px; background: var(--line); overflow: hidden; }
.pl-bar i { display: block; height: 100%; width: 100%; background: var(--accent); box-shadow: 0 0 10px var(--accent); transform-origin: left; transform: scaleX(var(--pp, 0)); }
.pl.out .pl-core { opacity: 0; transform: scale(.92); }
.pl.out .pl-half::after { transform: scaleX(1); }
.pl.open .pl-top { transform: translateY(-100%); }
.pl.open .pl-bot { transform: translateY(100%); }
.pl.gone { display: none; }
.pl-quick .pl-core { display: none; }
.pl-quick .pl-half { transition-duration: 520ms; }

/* ---------- Page-leave wipe ---------- */
.wipe { position: fixed; inset: 0; z-index: 1900; pointer-events: none; background: var(--brand); display: grid; place-items: center; clip-path: circle(0% at var(--wx, 50%) var(--wy, 50%)); transition: clip-path 520ms cubic-bezier(.77, 0, .18, 1); }
.wipe svg { width: 64px; opacity: 0; transform: scale(.6); transition: all 300ms var(--ease-out) 180ms; }
.wipe.on { clip-path: circle(150% at var(--wx, 50%) var(--wy, 50%)); }
.wipe.on svg { opacity: 1; transform: none; }

/* ---------- Scope reticle cursor ---------- */
.reticle { position: fixed; left: 0; top: 0; z-index: 1500; pointer-events: none; width: 34px; height: 34px; transform: translate3d(-100px, -100px, 0); opacity: 0; transition: width 280ms var(--ease-out), height 280ms var(--ease-out), opacity 200ms; }
.has-reticle .reticle { opacity: 1; }
.reticle .br { position: absolute; width: 9px; height: 9px; border: 1.5px solid var(--accent); }
.reticle b { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); transition: transform 200ms; }
.reticle span { position: absolute; left: calc(100% + 8px); top: 100%; white-space: nowrap; font: 500 9.5px/1 var(--f-mono); letter-spacing: .1em; color: rgba(var(--accent-rgb), .75); transition: opacity 200ms; }
.reticle.lock b { transform: scale(0); }
.reticle.lock span { opacity: 0; }
.reticle.lock .br { border-color: #fff; }
.reticle.down { transform-origin: center; }
@media (pointer: fine) {
  .has-reticle, .has-reticle a, .has-reticle button, .has-reticle summary, .has-reticle label { cursor: none; }
}

/* ---------- Circuit spine (scroll-linked) ---------- */
.spine { position: fixed; left: 22px; top: 110px; bottom: 40px; z-index: 50; width: 140px; pointer-events: none; display: none; }
@media (min-width: 1380px) { .spine { display: block; } }
.spine-track { position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.spine-track i { position: absolute; inset: 0; background: linear-gradient(var(--accent), var(--brand)); transform-origin: top; transform: scaleY(var(--sp, 0)); box-shadow: 0 0 10px rgba(var(--accent-rgb), .6); }
.spine-pulse { position: absolute; left: 50%; top: calc(var(--sp, 0) * 100%); width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .35), 0 0 18px var(--accent); }
.spine-node { position: absolute; left: 0; display: flex; align-items: center; gap: 10px; transform: translateY(-50%); }
.spine-node::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--line-2); background: var(--bg-0); transition: all 300ms; }
.spine-node span { font: 500 9.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); opacity: 0; transform: translateX(-6px); transition: all 300ms var(--ease-out); }
.spine-node.on::before { border-color: var(--accent); background: var(--brand); box-shadow: 0 0 12px var(--accent); }
.spine-node.cur span { opacity: 1; transform: none; color: var(--accent); }

/* ---------- Card scan sweep on reveal ---------- */
.card.reveal.in { animation: none; }
.card > .scanline { position: absolute; left: 0; right: 0; top: 0; height: 40%; pointer-events: none; z-index: 2; background: linear-gradient(transparent, rgba(var(--accent-rgb), .10) 85%, rgba(var(--accent-rgb), .55) 99%, transparent); transform: translateY(-110%); }
.card.in > .scanline { animation: sweep 1.1s var(--ease-out) forwards; animation-delay: calc(var(--d, 0) * 70ms + 150ms); }
@keyframes sweep { to { transform: translateY(260%); opacity: 0; } }

/* ---------- Button pointer-light ---------- */
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity 200ms; background: radial-gradient(120px circle at var(--lx, 50%) var(--ly, 50%), rgba(255,255,255,.28), transparent 60%); }
.btn:hover::before { opacity: 1; }
.btn-primary { background: linear-gradient(180deg, #e01a1e, var(--brand)); }

/* ---------- Glitch on brand hover ---------- */
.brand:hover .brand-text b { animation: glitch 420ms steps(2) 1; }
@keyframes glitch {
  0% { text-shadow: 2px 0 var(--accent), -2px 0 var(--cool); transform: translateX(1px); }
  33% { text-shadow: -2px 0 var(--accent), 2px 0 var(--cool); transform: translateX(-1px); clip-path: inset(10% 0 40% 0); }
  66% { text-shadow: 1px 0 var(--accent), -1px 0 var(--cool); clip-path: inset(50% 0 5% 0); }
  100% { text-shadow: none; transform: none; clip-path: none; }
}
.brand-mark { flex: none; width: 26px; height: 38px; filter: drop-shadow(0 0 10px rgba(var(--brand-rgb), .45)); transition: transform 500ms var(--ease-out); }
.brand:hover .brand-mark { transform: rotateY(180deg); }

/* ---------- Scroll-lit statement ---------- */
.statement { padding-block: clamp(80px, 12vw, 180px); }
.lit { font: 560 clamp(28px, 4.4vw, 60px)/1.14 var(--f-display); letter-spacing: -.035em; color: var(--text); max-width: 22ch; margin: 0 auto; text-align: center; }
.lit .lw { opacity: .14; transition: opacity 260ms linear, color 260ms; }
.lit .lw.on { opacity: 1; }
.lit em { font-style: normal; }
.lit em .lw.on { color: var(--accent); text-shadow: 0 0 28px rgba(var(--accent-rgb), .5); }

/* ---------- Exploded build ---------- */
.build { position: relative; height: 340vh; }
.build-sticky { position: sticky; top: 0; height: 100svh; display: grid; align-items: center; overflow: hidden; }
.build-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.build-copy { display: grid; gap: 22px; }
.build-steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.build-steps li { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; border: 1px solid transparent; opacity: .35; transition: all 400ms var(--ease-out); }
.build-steps li b { font: 600 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.build-steps li span { color: var(--text-2); font-size: 15px; }
.build-steps li.on { opacity: 1; border-color: rgba(var(--accent-rgb), .3); background: rgba(var(--accent-rgb), .05); transform: translateX(8px); }
.build-steps li.on b { color: var(--accent); }
.build-meter { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; font-size: 11px; color: var(--text-3); letter-spacing: .14em; }
.build-meter i { height: 2px; background: var(--line); }
.build-meter em { display: block; height: 100%; background: var(--accent); box-shadow: 0 0 10px var(--accent); transform-origin: left; transform: scaleX(var(--bp, 0)); }
.build-meter b { color: var(--accent); font-weight: 600; min-width: 4ch; text-align: right; }
.build-stage { position: relative; height: min(620px, 72svh); perspective: 1800px; display: grid; place-items: center; }
.stack { position: relative; width: min(360px, 80%); aspect-ratio: 3 / 2; transform-style: preserve-3d;
  transform: translateY(calc(var(--e, 0) * 70px)) rotateX(calc(58deg - var(--face, 0) * 58deg)) rotateZ(calc(-34deg + var(--face, 0) * 34deg)) scale(calc(1 + var(--face, 0) * .12)); transition: transform 120ms linear; }
.layer { position: absolute; inset: 0; border-radius: 18px; transform-style: preserve-3d;
  transform: translateZ(calc(var(--i) * (8px + var(--e, 0) * 95px))); transition: transform 120ms linear, box-shadow 400ms, border-color 400ms;
  border: 1px solid var(--line-2); box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); }
.layer.on { border-color: rgba(var(--accent-rgb), .8); box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .4), 0 0 50px -6px rgba(var(--accent-rgb), .55); }
.l-tag { position: absolute; right: -10px; top: -12px; font: 600 10px/1 var(--f-mono); letter-spacing: .14em; padding: 6px 9px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text-2); opacity: calc(var(--e, 0) * 1.4); transform: rotateZ(calc(34deg - var(--face, 0) * 34deg)); }
.layer.on .l-tag { color: var(--accent); border-color: rgba(var(--accent-rgb), .5); }
.l-pcb { background: radial-gradient(circle at 30% 30%, #18331f, #0b1a10 70%); }
.pcb-traces { position: absolute; inset: 0; width: 100%; height: 100%; }
.pcb-traces path { fill: none; stroke: rgba(212, 175, 90, .55); stroke-width: 2; }
.l-chip { position: absolute; left: 50%; top: 50%; width: 32%; aspect-ratio: 1; transform: translate(-50%, -50%) translateZ(6px); display: grid; place-items: center; border-radius: 8px; background: #15171b; border: 1px solid #3a3f48; font: 700 11px/1 var(--f-mono); color: var(--text-2); }
.l-fw { background: rgba(14, 14, 17, .82); backdrop-filter: blur(4px); display: grid; place-items: center; }
.l-fw pre { margin: 0; font: 500 12px/1.55 var(--f-mono); color: var(--cool); text-shadow: 0 0 10px rgba(var(--cool-rgb), .5); }
.l-ui { background: linear-gradient(160deg, #1d0a0b, #0b0b0e); display: grid; place-items: center; }
.ui-mock { display: grid; justify-items: center; gap: 6px; }
.ui-mock b { font: 300 46px/1 var(--f-display); font-variation-settings: "wght" 300; color: #fff; }
.ui-mock small { font: 500 9px/1 var(--f-mono); letter-spacing: .2em; color: var(--text-3); }
.ui-mock i { display: inline-block; width: 46px; height: 5px; border-radius: 3px; background: var(--line-2); margin-top: 4px; }
.ui-mock i:first-of-type { background: var(--accent); width: 70px; }
.l-case { background: linear-gradient(150deg, rgba(60, 60, 68, .55), rgba(20, 20, 24, .35)); border: 2px solid rgba(255,255,255,.22); display: grid; place-items: end start; padding: 16px; }
.case-logo { width: 22px; height: auto; }
.build-shadow { position: absolute; bottom: 4%; width: 60%; height: 40px; border-radius: 50%; background: radial-gradient(rgba(var(--brand-rgb), .35), transparent 70%); filter: blur(10px); }

/* ---------- Reviews ---------- */
.rv-head { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: end; margin-bottom: 48px; }
.rv-score { display: grid; gap: 14px; }
.rv-big { display: flex; align-items: center; gap: 16px; }
.rv-big b { font: 600 64px/1 var(--f-display); letter-spacing: -.04em; }
.rv-stars { display: inline-flex; gap: 3px; color: #ffb02e; }
.rv-stars svg { width: 20px; height: 20px; fill: currentColor; filter: drop-shadow(0 0 6px rgba(255, 176, 46, .4)); }
.rv-stars.sm svg { width: 15px; height: 15px; }
.in .rv-stars svg, .rv-card .rv-stars svg { animation: starPop 500ms var(--ease-out) both; }
.rv-stars svg:nth-child(2) { animation-delay: 80ms; } .rv-stars svg:nth-child(3) { animation-delay: 160ms; } .rv-stars svg:nth-child(4) { animation-delay: 240ms; } .rv-stars svg:nth-child(5) { animation-delay: 320ms; }
@keyframes starPop { from { transform: scale(0) rotate(-60deg); opacity: 0; } }
.rv-bars { display: grid; gap: 6px; }
.rv-bar { display: grid; grid-template-columns: 28px 1fr 34px; gap: 10px; align-items: center; font: 500 11px/1 var(--f-mono); color: var(--text-3); }
.rv-bar span:last-child { text-align: right; }
.rv-bar i { height: 6px; border-radius: 6px; background: var(--bg-3); overflow: hidden; }
.rv-bar em { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: 6px; transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease-out) .3s; }
.rv-score.in .rv-bar em { transform: scaleX(1); }
.rv-scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.rv-scores b { display: block; font: 600 20px/1 var(--f-display); color: var(--accent); }
.rv-scores small { font-size: 12px; color: var(--text-3); line-height: 1.3; display: block; margin-top: 4px; }

.rv { --per: 3; --gap: 16px; position: relative; }
.rv-viewport { overflow: hidden; margin: -30px -16px; padding: 30px 16px; mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); touch-action: pan-y; }
.rv-track { display: flex; gap: var(--gap); will-change: transform; cursor: grab; user-select: none; }
.rv-track.drag { cursor: grabbing; }
.rv-track.anim { transition: transform 700ms cubic-bezier(.22, 1, .36, 1); }
.rv-card {
  flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); position: relative;
  display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); border: 1px solid var(--line);
  transition: transform 600ms var(--ease-out), opacity 600ms, border-color 400ms, filter 600ms;
  opacity: .45; transform: scale(.94); filter: saturate(.4);
}
.rv-card.vis { opacity: 1; transform: none; filter: none; }
.rv-card.vis:hover { border-color: rgba(var(--accent-rgb), .35); transform: translateY(-6px); }
.rv-top { display: flex; justify-content: space-between; align-items: center; }
.rv-q { font: 700 64px/.5 var(--f-display); color: rgba(var(--accent-rgb), .35); margin-top: 18px; }
.rv-text { margin: 0; color: var(--text); font-size: 16.5px; line-height: 1.6; flex: 1; }
.rv-text.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.rv-text.open { -webkit-line-clamp: unset; display: block; }
.rv-more { justify-self: start; align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--accent); }
.rv-who { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.rv-av { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; font: 700 16px/1 var(--f-display); color: #fff; background: linear-gradient(135deg, var(--brand), #6e0b0d); }
.rv-who b { display: block; font-size: 15px; }
.rv-who small { color: var(--text-3); font-size: 12.5px; }
.rv-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.rv-meta span { font-size: 10.5px; padding: 5px 8px; border-radius: 6px; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--text-3); }
.rv-ctrl { display: flex; align-items: center; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.rv-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text); transition: all 200ms; }
.rv-btn:hover { border-color: var(--accent); background: rgba(var(--accent-rgb), .1); color: var(--accent); }
.rv-btn svg { width: 18px; height: 18px; }
.rv-btn[data-prev] svg { transform: scaleX(-1); }
.rv-dots { display: flex; gap: 8px; align-items: center; }
.rv-dots button { position: relative; width: 28px; height: 4px; border-radius: 4px; background: var(--bg-3); overflow: hidden; }
.rv-dots button::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.rv-dots button[aria-selected=true] { width: 54px; }
.rv-dots button[aria-selected=true]::after { animation: dotFill var(--dur, 6s) linear forwards; }
.rv.paused .rv-dots button[aria-selected=true]::after { animation-play-state: paused; }
@keyframes dotFill { to { transform: scaleX(1); } }
.rv-src { margin-left: auto; font-size: 14px; }
.rv-src svg { width: 14px; height: 14px; }

/* ---------- Tilt ---------- */
[data-tilt] { transform: perspective(1000px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform 400ms var(--ease-out), border-color var(--t-med); }
[data-tilt].reveal:not(.in) { transform: translateY(28px); }

/* ---------- Digit flicker for counters ---------- */
[data-count].ticking { color: var(--accent); text-shadow: 0 0 18px rgba(var(--accent-rgb), .6); }

@media (max-width: 1080px) {
  .build { height: auto; }
  .build-sticky { position: static; height: auto; padding: 90px 0; }
  .build-grid { grid-template-columns: 1fr; }
  .build-steps li { opacity: 1; }
  .build-stage { height: 440px; }
  .rv-head { grid-template-columns: 1fr; }
  .rv { --per: 2; }
}
@media (max-width: 680px) {
  .rv { --per: 1; }
  .rv-card { padding: 22px; }
  .rv-src { margin-left: 0; width: 100%; }
  .build-stage { height: 360px; }
}
@media (prefers-reduced-motion: reduce) {
  .pl { display: none; } .reticle { display: none; } .build { height: auto; } .build-sticky { position: static; height: auto; padding: 90px 0; }
  .lit .lw { opacity: 1; } .rv-card { opacity: 1; transform: none; filter: none; }
}
