/* =========================================================
   PRIVA SOLUTIONS LLC — v2 · Light · Scroll-morphing 3D
   ========================================================= */
:root {
  --bg: #f7f8fb;
  --surface: rgba(255, 255, 255, 0.72);
  --ink: #0a0f1f;
  --ink-2: #1e2538;
  --muted: #5b6477;
  --line: rgba(10, 15, 31, 0.08);
  --teal: #0d9488;
  --blue: #2563eb;
  --indigo: #4f46e5;
  --pink: #db2777;
  --grad: linear-gradient(95deg, var(--teal), var(--blue) 40%, var(--indigo) 70%, var(--pink));
  --sans: "Inter Tight", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --r: 24px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 1px 2px rgba(10, 15, 31, .04), 0 24px 60px -32px rgba(10, 15, 31, .28);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans); color: var(--ink); line-height: 1.55; overflow-x: hidden;
  background:
    radial-gradient(1100px 700px at 100% 0%, rgba(79, 70, 229, .07), transparent 60%),
    radial-gradient(900px 700px at 0% 30%, rgba(13, 148, 136, .06), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
::selection { background: var(--indigo); color: #fff; }

.wrap { width: min(1240px, 90vw); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.035em; line-height: 1.02; }
h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); }
h2 .serif { font-size: 1.08em; }

.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); margin-bottom: 22px; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(13, 148, 136, .5); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 10px rgba(13, 148, 136, 0); } 100% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0); } }

/* ---------- Scene ---------- */
#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
main, .footer, .nav { position: relative; z-index: 2; }
.scene-label {
  position: fixed; left: 28px; bottom: 26px; z-index: 3; color: var(--muted);
  display: flex; align-items: center; gap: 10px; font-size: .68rem;
  padding: 8px 14px; border-radius: 100px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.scene-label span { width: 6px; height: 6px; border-radius: 50%; background: var(--indigo); }
.scene-label b { color: var(--ink); font-weight: 500; }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 999; background: var(--bg); display: grid; place-content: center; justify-items: center; gap: 18px; transition: clip-path 1s var(--ease); clip-path: inset(0 0 0 0); }
.loader.out { clip-path: inset(0 0 100% 0); }
.loader-word { font-size: clamp(3rem, 10vw, 7rem); font-weight: 700; letter-spacing: -.05em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.loader-bar { width: 220px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .2s; }
.loader p { color: var(--muted); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(1240px, 94vw); display: flex; align-items: center; gap: 28px;
  padding: 10px 10px 10px 20px; border-radius: 100px;
  background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .8);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 10px 40px -20px rgba(10, 15, 31, .25);
  transition: transform .5s var(--ease);
}
.nav.hide { transform: translate(-50%, -140%); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 28px; height: 28px; position: relative; }
.brand-mark i { position: absolute; inset: 0; border-radius: 8px; background: var(--grad); transform: rotate(45deg) scale(.72); }
.brand-mark i + i { background: var(--bg); transform: rotate(45deg) scale(.34); }
.brand-name { font-weight: 700; letter-spacing: .02em; font-size: 1.05rem; display: flex; align-items: baseline; gap: 6px; }
.brand-name em { font-style: normal; font-weight: 400; font-size: .78rem; color: var(--muted); letter-spacing: 0; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: 100px; font-size: .92rem; color: var(--ink-2); transition: background .3s; }
.nav-links a:hover { background: rgba(10, 15, 31, .05); }
.burger { display: none; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: #fff; transition: .3s; }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 24px; }
.burger.open span:first-child { top: 20px; transform: rotate(45deg); }
.burger.open span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 100px; font-weight: 500; font-size: .96rem; transition: transform .35s var(--ease), box-shadow .35s, background .35s; will-change: transform; }
.btn-sm { padding: 10px 18px; font-size: .88rem; }
.btn-wide { width: 100%; justify-content: center; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--indigo); }
.btn-grad { color: #fff; background: var(--grad); background-size: 180% 100%; box-shadow: 0 14px 34px -14px rgba(79, 70, 229, .7); }
.btn-grad:hover { background-position: 100% 0; box-shadow: 0 18px 40px -12px rgba(219, 39, 119, .5); }
.btn-line { border: 1px solid rgba(10, 15, 31, .15); background: rgba(255, 255, 255, .6); backdrop-filter: blur(8px); }
.btn-line:hover { border-color: var(--ink); }
.arr { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translate(3px, -1px); }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 130px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; flex: 1; }
.hero-title { font-size: clamp(2.6rem, 5.4vw, 5rem); margin-bottom: 26px; }
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-title .ln > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.hero-title .serif { font-size: 1.12em; }
.ready .hero-title .ln > span { transform: none; }
.ready .hero-title .ln:nth-child(2) > span { transition-delay: .1s; }
.ready .hero-title .ln:nth-child(3) > span { transition-delay: .2s; }
.hero-lead { font-size: 1.12rem; color: var(--muted); max-width: 520px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-copy > :not(h1) { opacity: 0; transform: translateY(20px); transition: 1s var(--ease); }
.ready .hero-copy > :not(h1) { opacity: 1; transform: none; }
.ready .hero-copy > .hero-lead { transition-delay: .35s; }
.ready .hero-copy > .hero-actions { transition-delay: .5s; }

.hero-float { position: relative; height: 520px; perspective: 1200px; }
.fcard {
  position: absolute; padding: 16px 18px; border-radius: 18px; min-width: 220px;
  background: rgba(255, 255, 255, .78); border: 1px solid rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -30px rgba(10, 15, 31, .35);
  opacity: 0; transition: opacity 1s var(--ease), transform .3s ease-out;
  animation: drift 7s ease-in-out infinite;
}
.ready .fcard { opacity: 1; }
.fc1 { top: 8%; right: 4%; transition-delay: .7s; }
.fc2 { top: 46%; left: 2%; transition-delay: .9s; animation-delay: -2s; }
.fc3 { bottom: 4%; right: 12%; transition-delay: 1.1s; animation-delay: -4s; max-width: 250px; }
@keyframes drift { 50% { translate: 0 -12px; } }
.fc-head { display: flex; align-items: center; gap: 8px; color: var(--muted); margin-bottom: 10px; }
.fc-head .mono { font-size: .62rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.g { background: var(--teal); } .dot.b { background: var(--indigo); } .dot.p { background: var(--pink); }
.fc-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; font-size: .95rem; }
.ok { color: var(--teal); font-size: .7rem; }
.fc-progress { height: 4px; border-radius: 4px; background: rgba(10, 15, 31, .06); margin-top: 12px; overflow: hidden; }
.fc-progress i { display: block; height: 100%; background: var(--grad); animation: prog 3.2s var(--ease) infinite; }
@keyframes prog { 0% { width: 0; } 70%, 100% { width: 100%; } }
.spark { width: 180px; height: 56px; }
.spark-line { stroke-dasharray: 240; stroke-dashoffset: 240; animation: draw 3s var(--ease) infinite; }
@keyframes draw { 60%, 100% { stroke-dashoffset: 0; } }
.fc3 p { font-size: .92rem; color: var(--ink-2); margin-bottom: 8px; }
.typing { display: flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--pink); animation: type 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes type { 30% { transform: translateY(-4px); opacity: 1; } 0%, 60%, 100% { opacity: .35; transform: none; } }

.hero-foot { display: grid; grid-template-columns: repeat(3, auto) 1fr; gap: 48px; align-items: end; padding-top: 30px; border-top: 1px solid var(--line); margin-top: 40px; }
.hf-item { display: flex; flex-direction: column; gap: 4px; }
.hf-item .mono { color: var(--muted); font-size: .64rem; }
.hf-item b { font-weight: 500; }
.scroll-hint { justify-self: end; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .66rem; }
.scroll-hint span { width: 40px; height: 1px; background: var(--ink); position: relative; overflow: hidden; }
.scroll-hint span::after { content: ""; position: absolute; inset: 0; background: var(--indigo); transform: translateX(-100%); animation: hint 2s var(--ease) infinite; }
@keyframes hint { to { transform: translateX(100%); } }

/* ---------- Ticker ---------- */
.ticker { padding: 46px 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ticker-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: tick 45s linear infinite; }
.ticker-track span { font-size: 2rem; font-weight: 500; letter-spacing: -.03em; color: rgba(10, 15, 31, .28); }
.ticker-track i { font-style: normal; color: var(--indigo); opacity: .5; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about { padding: 140px 0 120px; }
.about-grid { max-width: 1060px; }
.manifesto { font-size: clamp(1.6rem, 3.2vw, 2.8rem); line-height: 1.22; letter-spacing: -.03em; font-weight: 500; margin-bottom: 70px; }
.manifesto .w { color: rgba(10, 15, 31, .14); transition: color .4s; }
.manifesto .w.on { color: var(--ink); }
.about-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ap { padding: 26px; border-radius: var(--r); background: var(--surface); border: 1px solid rgba(255, 255, 255, .9); backdrop-filter: blur(14px); box-shadow: var(--shadow); }
.ap b { display: block; font-size: 2.2rem; margin-bottom: 8px; color: var(--indigo); }
.ap span { color: var(--muted); }

/* ---------- Services bento ---------- */
.services { padding: 120px 0; }
.sec-head { margin-bottom: 56px; max-width: 760px; }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: 18px; perspective: 1400px; }
.tile {
  position: relative; border-radius: var(--r); padding: 28px; overflow: hidden;
  background: rgba(255, 255, 255, .78); border: 1px solid rgba(255, 255, 255, .95);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow);
  transform-style: preserve-3d; transition: transform .6s var(--ease), box-shadow .4s;
  display: flex; flex-direction: column;
}
.tile:hover { box-shadow: 0 40px 80px -40px rgba(79, 70, 229, .45); }
.tile::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(79, 70, 229, .08), transparent 40%); opacity: 0; transition: opacity .3s; }
.tile:hover::after { opacity: 1; }
.tag { color: var(--indigo); margin-bottom: 10px; display: block; font-size: .64rem; }
.tile h3 { font-size: 1.4rem; margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: .96rem; max-width: 380px; }
.t-a { grid-column: span 2; grid-row: span 2; justify-content: space-between; }
.t-d, .t-g { grid-column: span 2; flex-direction: row; gap: 20px; align-items: stretch; }
.t-d .tile-txt, .t-g .tile-txt { flex: 1; }

.code-win { border-radius: 16px; background: #0d1224; color: #c9d1e8; box-shadow: 0 30px 60px -30px rgba(10, 15, 31, .6); transform: translateZ(40px) rotateX(6deg); transform-origin: bottom; overflow: hidden; }
.cw-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.cw-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.cw-bar i:nth-child(2) { background: #febc2e; } .cw-bar i:nth-child(3) { background: #28c840; }
.cw-bar span { margin-left: 10px; color: #7c86a3; font-size: .62rem; }
.code-win pre { padding: 18px; font-size: .78rem; line-height: 1.75; text-transform: none; letter-spacing: 0; white-space: pre-wrap; }
.k { color: #c792ea; } .f { color: #82aaff; } .s { color: #c3e88d; } .n { color: #f78c6c; }
.caret { display: inline-block; width: 7px; height: 1em; background: currentColor; vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.phone { margin: auto auto -70px; width: 120px; height: 220px; border-radius: 24px; background: var(--ink); padding: 8px; transform: rotateX(18deg) rotateZ(-8deg) translateZ(30px); box-shadow: 20px 30px 50px -20px rgba(10, 15, 31, .5); transition: transform .6s var(--ease); }
.tile:hover .phone { transform: rotateX(8deg) rotateZ(-2deg) translateZ(50px) translateY(-10px); }
.phone-screen { height: 100%; border-radius: 18px; background: linear-gradient(160deg, #e0e7ff, #f5f3ff); padding: 14px 10px; display: grid; gap: 8px; align-content: start; }
.phone-screen i { height: 26px; border-radius: 8px; background: #fff; box-shadow: 0 4px 10px -6px rgba(79, 70, 229, .4); }
.phone-screen i:first-child { height: 50px; background: var(--grad); }

.ai-orb { margin: auto; width: 130px; height: 130px; position: relative; transform-style: preserve-3d; transform: translateZ(30px); }
.ai-orb span { position: absolute; inset: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #c7d2fe 30%, var(--indigo) 70%, #312e81); box-shadow: 0 0 40px rgba(79, 70, 229, .45); animation: breathe 3s ease-in-out infinite; }
.ai-orb i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(79, 70, 229, .35); transform: rotateX(70deg); animation: orb 6s linear infinite; }
.ai-orb i::after { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); }
.ai-orb i:nth-child(3) { transform: rotateY(70deg); animation-duration: 8s; border-color: rgba(13, 148, 136, .35); }
.ai-orb i:nth-child(3)::after { background: var(--teal); }
.ai-orb i:nth-child(4) { transform: rotateX(70deg) rotateY(60deg); animation-duration: 10s; animation-direction: reverse; }
@keyframes orb { to { rotate: z 360deg; } }
@keyframes breathe { 50% { transform: scale(1.08); } }

.bars { flex: 1; display: flex; align-items: flex-end; gap: 10px; padding-top: 30px; }
.bars i { flex: 1; height: var(--h); border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, var(--indigo), rgba(79, 70, 229, .15)); transform-origin: bottom; transform: scaleY(.2); transition: transform 1.2s var(--ease); }
.bars i:last-child { background: var(--grad); }
.in .bars i { transform: scaleY(1); }
.bars i:nth-child(2) { transition-delay: .05s; } .bars i:nth-child(3) { transition-delay: .1s; } .bars i:nth-child(4) { transition-delay: .15s; } .bars i:nth-child(5) { transition-delay: .2s; } .bars i:nth-child(6) { transition-delay: .25s; } .bars i:nth-child(7) { transition-delay: .3s; }

.serp { margin-top: auto; display: grid; gap: 10px; transform: translateZ(30px); }
.serp-bar { padding: 12px 16px; border-radius: 100px; background: #fff; border: 1px solid var(--line); text-transform: none; font-size: .76rem; color: var(--ink-2); box-shadow: 0 10px 20px -14px rgba(10, 15, 31, .3); }
.serp-res { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 14px; background: linear-gradient(90deg, rgba(13, 148, 136, .1), transparent); font-weight: 500; }
.serp-res b { color: var(--teal); }

.iso { margin: auto; width: 120px; height: 120px; position: relative; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-45deg) translateY(10px); }
.iso i { position: absolute; inset: 0; border-radius: 14px; background: linear-gradient(135deg, #fff, #e0e7ff); border: 1px solid rgba(79, 70, 229, .25); box-shadow: 0 0 0 1px rgba(255, 255, 255, .8) inset, -10px 10px 20px -6px rgba(10, 15, 31, .25); transition: transform .6s var(--ease); }
.iso i:nth-child(1) { transform: translateZ(0); }
.iso i:nth-child(2) { transform: translateZ(24px); background: linear-gradient(135deg, #fff, #ccfbf1); }
.iso i:nth-child(3) { transform: translateZ(48px); background: var(--grad); border: 0; }
.tile:hover .iso i:nth-child(2) { transform: translateZ(40px); }
.tile:hover .iso i:nth-child(3) { transform: translateZ(80px); }

.swatches { flex: 1; display: flex; align-items: center; justify-content: center; perspective: 600px; }
.swatches i { width: 70px; height: 120px; border-radius: 14px; margin-left: -26px; box-shadow: -8px 10px 24px -10px rgba(10, 15, 31, .35); transform: rotateY(28deg); transition: transform .6s var(--ease), margin .6s var(--ease); }
.swatches i:nth-child(1) { background: var(--teal); margin-left: 0; } .swatches i:nth-child(2) { background: var(--blue); } .swatches i:nth-child(3) { background: var(--indigo); } .swatches i:nth-child(4) { background: var(--pink); } .swatches i:nth-child(5) { background: var(--ink); }
.tile:hover .swatches i { margin-left: -6px; transform: rotateY(10deg) translateY(-6px); }
.tile:hover .swatches i:nth-child(1) { margin-left: 0; }

/* ---------- Stats ---------- */
.stats { padding: 40px 0 60px; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(10, 15, 31, .12); }
.stat { padding: 34px 24px 0 0; display: grid; gap: 6px; }
.stat b { font-size: clamp(2.8rem, 5.6vw, 5rem); font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.stat span { color: var(--muted); }

/* ---------- Process stack ---------- */
.process { padding: 120px 0 80px; }
.stack { display: grid; gap: 26px; padding-bottom: 60px; }
.scard {
  position: sticky; top: calc(110px + var(--i) * 22px);
  display: grid; grid-template-columns: 120px 1fr 260px; gap: 34px; align-items: center;
  min-height: 300px; padding: 40px; border-radius: 30px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 -10px 50px -30px rgba(10, 15, 31, .25), var(--shadow);
  transform-origin: top center; will-change: transform;
}
.sc-num { font-size: 5.4rem; line-height: 1; color: var(--indigo); }
.sc-body h3 { font-size: 2rem; margin-bottom: 10px; }
.sc-body p { color: var(--muted); font-size: 1.05rem; max-width: 520px; margin-bottom: 18px; }
.sc-body ul { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; }
.sc-body li { padding: 6px 12px; border-radius: 100px; border: 1px solid var(--line); font-size: .62rem; color: var(--muted); }
.sc-art { height: 200px; border-radius: 22px; position: relative; overflow: hidden; }
.a1 { background: radial-gradient(circle at 30% 30%, #ccfbf1, #f0fdfa); }
.a2 { background: radial-gradient(circle at 70% 30%, #e0e7ff, #f5f3ff); }
.a3 { background: radial-gradient(circle at 30% 70%, #dbeafe, #eff6ff); }
.a4 { background: radial-gradient(circle at 60% 60%, #fce7f3, #fdf2f8); }
.sc-art::before, .sc-art::after { content: ""; position: absolute; border-radius: 50%; }
.a1::before { inset: 40px 70px; border: 2px dashed var(--teal); animation: orb 14s linear infinite; }
.a1::after { width: 26px; height: 26px; background: var(--teal); top: 50%; left: 50%; translate: -50% -50%; box-shadow: 0 0 0 14px rgba(13, 148, 136, .15); }
.a2::before { inset: 30px 60px; border-radius: 18px; background: #fff; box-shadow: 0 20px 40px -20px rgba(79, 70, 229, .5); transform: rotate(-8deg); }
.a2::after { width: 80px; height: 80px; border-radius: 16px; background: var(--indigo); right: 40px; bottom: 26px; transform: rotate(12deg); opacity: .85; }
.a3::before { left: 30px; right: 30px; top: 50%; height: 4px; border-radius: 4px; background: repeating-linear-gradient(90deg, var(--blue) 0 30px, transparent 30px 44px); animation: dash 1.6s linear infinite; }
.a3::after { width: 40px; height: 40px; background: var(--blue); top: 50%; left: 40px; translate: 0 -50%; animation: run 3s var(--ease) infinite alternate; }
@keyframes dash { to { background-position: 44px 0; } }
@keyframes run { to { left: calc(100% - 80px); } }
.a4::before { width: 120px; height: 120px; background: conic-gradient(var(--pink), var(--indigo), var(--teal), var(--pink)); top: 50%; left: 50%; translate: -50% -50%; animation: orb 6s linear infinite; filter: blur(2px); }
.a4::after { width: 90px; height: 90px; background: #fdf2f8; top: 50%; left: 50%; translate: -50% -50%; }

/* ---------- Work (horizontal) ---------- */
.work { position: relative; }
.work-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 46px; }
.work-head { width: min(1240px, 90vw); }
.work-head h2 { margin: 0; }
.work-track { display: flex; gap: 26px; padding-left: max(5vw, calc((100vw - 1240px) / 2)); padding-right: 5vw; width: max-content; will-change: transform; perspective: 1600px; }
.wcard { flex: 0 0 auto; width: clamp(300px, 34vw, 460px); border-radius: 28px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); transition: box-shadow .4s; transform-style: preserve-3d; }
.wcard:hover { box-shadow: 0 40px 80px -40px rgba(79, 70, 229, .5); }
.w-art { height: clamp(220px, 30vh, 320px); display: grid; place-items: center; overflow: hidden; perspective: 600px; }
.w1 .w-art { background: radial-gradient(circle at 30% 30%, #dbeafe, #eef2ff); }
.w2 .w-art { background: radial-gradient(circle at 70% 40%, #fae8ff, #f5f3ff); }
.w3 .w-art { background: radial-gradient(circle at 40% 70%, #ccfbf1, #f0fdfa); }
.w4 .w-art { background: radial-gradient(circle at 60% 30%, #e0e7ff, #f8fafc); }
.w5 .w-art { background: radial-gradient(circle at 50% 50%, #fce7f3, #fff7ed); }
.w-info { padding: 22px 26px 26px; }
.w-info .mono { color: var(--indigo); font-size: .64rem; }
.w-info h3 { font-size: 1.45rem; margin-top: 8px; }
.w-orb { width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fff, #93c5fd 25%, var(--blue) 60%, #1e3a8a); box-shadow: 0 40px 60px -20px rgba(37, 99, 235, .55); animation: drift 5s ease-in-out infinite; }
.w-rings { width: 190px; height: 190px; position: relative; transform-style: preserve-3d; transform: rotateX(65deg); }
.w-rings i { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--pink); animation: lift 3s ease-in-out infinite; }
.w-rings i:nth-child(2) { inset: 28px; border-color: var(--indigo); animation-delay: .3s; }
.w-rings i:nth-child(3) { inset: 56px; border-color: var(--teal); animation-delay: .6s; }
@keyframes lift { 50% { transform: translateZ(40px); } }
.w-cubes { display: grid; grid-template-columns: repeat(2, 60px); gap: 14px; transform: rotateX(55deg) rotateZ(45deg); transform-style: preserve-3d; }
.w-cubes i { height: 60px; border-radius: 10px; background: var(--teal); box-shadow: -8px 8px 0 #0f766e; animation: hop 2.4s var(--ease) infinite; }
.w-cubes i:nth-child(2) { background: #14b8a6; animation-delay: .2s; } .w-cubes i:nth-child(3) { background: #2dd4bf; animation-delay: .4s; } .w-cubes i:nth-child(4) { background: var(--indigo); box-shadow: -8px 8px 0 #3730a3; animation-delay: .6s; }
@keyframes hop { 50% { transform: translateZ(24px); } }
.w-wave { display: flex; gap: 8px; align-items: center; height: 120px; }
.w-wave i { width: 12px; height: 30%; border-radius: 10px; background: var(--grad); animation: wave 1.6s ease-in-out infinite; }
.w-wave i:nth-child(2) { animation-delay: .1s; } .w-wave i:nth-child(3) { animation-delay: .2s; } .w-wave i:nth-child(4) { animation-delay: .3s; } .w-wave i:nth-child(5) { animation-delay: .4s; } .w-wave i:nth-child(6) { animation-delay: .5s; } .w-wave i:nth-child(7) { animation-delay: .6s; } .w-wave i:nth-child(8) { animation-delay: .7s; }
@keyframes wave { 50% { height: 100%; } }
.w-pyr { width: 0; height: 0; border-left: 80px solid transparent; border-right: 80px solid transparent; border-bottom: 140px solid var(--pink); filter: drop-shadow(0 30px 30px rgba(219, 39, 119, .35)); animation: spinY 6s linear infinite; }
@keyframes spinY { to { transform: rotateY(360deg); } }

/* ---------- Contact ---------- */
.contact { padding: 140px 0 120px; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: start; }
.contact-copy > p:not(.kicker) { color: var(--muted); font-size: 1.1rem; margin: 22px 0 36px; max-width: 440px; }
.c-lines { display: grid; gap: 12px; }
.c-lines a { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: 18px; background: var(--surface); border: 1px solid rgba(255, 255, 255, .9); backdrop-filter: blur(12px); font-size: 1.05rem; transition: transform .35s var(--ease), box-shadow .35s; }
.c-lines a:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.c-lines .mono { color: var(--muted); width: 54px; font-size: .62rem; }
.cform { padding: 36px; border-radius: 30px; background: rgba(255, 255, 255, .85); border: 1px solid rgba(255, 255, 255, .95); backdrop-filter: blur(18px); box-shadow: var(--shadow); display: grid; gap: 20px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fld { display: grid; gap: 8px; }
.fld > span { font-size: .84rem; font-weight: 500; color: var(--ink-2); }
.fld input, .fld textarea { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: #f8fafc; font: inherit; color: var(--ink); outline: none; resize: vertical; transition: border-color .3s, box-shadow .3s, background .3s; }
.fld input:focus, .fld textarea:focus { border-color: var(--indigo); background: #fff; box-shadow: 0 0 0 4px rgba(79, 70, 229, .1); }
.fld.err input, .fld.err textarea { border-color: #e11d48; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills b { display: inline-block; padding: 9px 16px; border-radius: 100px; border: 1px solid var(--line); font-weight: 500; font-size: .86rem; background: #fff; cursor: pointer; transition: .25s; }
.pills b:hover { border-color: rgba(10, 15, 31, .3); }
.pills input:checked + b { background: var(--ink); color: #fff; border-color: var(--ink); }
.fstatus { min-height: 1em; text-align: center; color: var(--teal); text-transform: none; font-size: .78rem; }

/* ---------- Footer ---------- */
.footer { padding: 90px 0 30px; background: rgba(255, 255, 255, .8); backdrop-filter: blur(20px); border-top: 1px solid var(--line); }
.f-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.f-brand p { color: var(--muted); margin-top: 18px; max-width: 320px; }
.f-col { display: grid; gap: 10px; align-content: start; }
.f-col .mono { color: var(--muted); font-size: .64rem; margin-bottom: 6px; }
.f-col a { color: var(--ink-2); transition: color .3s; }
.f-col a:hover { color: var(--indigo); }
.f-giant { margin: 70px 0 30px; font-size: clamp(4rem, 15vw, 14rem); font-weight: 700; letter-spacing: -.06em; line-height: .85; display: flex; align-items: baseline; gap: .12em; flex-wrap: wrap; }
.f-giant em { font-size: .5em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.f-bottom { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .64rem; }
.f-bottom a:hover { color: var(--ink); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px) scale(.98); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.bento .reveal:nth-child(2), .about-points .reveal:nth-child(2), .stats-row .reveal:nth-child(2) { transition-delay: .08s; }
.bento .reveal:nth-child(3), .about-points .reveal:nth-child(3), .stats-row .reveal:nth-child(3) { transition-delay: .16s; }
.bento .reveal:nth-child(4), .stats-row .reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-float { height: 340px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .t-a { grid-row: span 2; }
  .scard { grid-template-columns: 90px 1fr; }
  .sc-art { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav { gap: 10px; }
  .nav-cta { display: none; }
  .burger { display: block; margin-left: auto; }
  .nav-links { position: fixed; top: 70px; left: 0; right: 0; flex-direction: column; padding: 10px; border-radius: 24px; background: rgba(255, 255, 255, .96); border: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .3s var(--ease); }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 14px 16px; font-size: 1.05rem; }
  .hero { padding-top: 120px; }
  .hero-float { display: none; }
  .hero-foot { grid-template-columns: 1fr 1fr; gap: 20px; }
  .scroll-hint { display: none; }
  .about-points, .stats-row { grid-template-columns: 1fr 1fr; }
  .about-points { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .tile, .t-a, .t-d, .t-g { grid-column: auto; grid-row: auto; min-height: 240px; }
  .t-d, .t-g { flex-direction: column; }
  .phone { margin-bottom: -90px; }
  .scard { grid-template-columns: 1fr; padding: 28px; top: calc(90px + var(--i) * 14px); gap: 10px; min-height: 0; }
  .sc-num { font-size: 3.4rem; }
  .work-pin { position: relative; height: auto; padding: 100px 0 40px; }
  .work-track { overflow-x: auto; width: 100%; padding-bottom: 20px; scroll-snap-type: x mandatory; }
  .wcard { width: 82vw; scroll-snap-align: start; }
  .row2 { grid-template-columns: 1fr; }
  .cform { padding: 24px; }
  .f-top { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
  .scene-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
