/* ------------------------------------------------------------------
   vanoo.dev — tokens
------------------------------------------------------------------ */
:root {
  --bg: #070b14;
  --bg-2: #0d1322;
  --bg-3: #131b2e;
  --line: #1c2740;
  --line-2: #2a3752;
  --text: #edf1f8;
  --muted: #8d9bb8;
  --accent: #6cf0d8;
  --accent-ink: #052119;
  --accent-dim: color-mix(in oklch, var(--accent) 35%, transparent);
  --gold: #e9b85a;
  --gold-soft: #ffe3a3;
  --gold-dim: color-mix(in oklch, var(--gold) 30%, transparent);

  --f-display: "Inter Tight", "Noto Sans Georgian", system-ui, sans-serif;
  --f-serif: "Instrument Serif", "Noto Sans Georgian", Georgia, serif;
  --f-body: "Inter Tight", "Noto Sans Georgian", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Noto Sans Georgian", monospace;

  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-md: 1.0625rem;
  --t-lg: 1.375rem;
  --t-xl: clamp(1.9rem, 1.3rem + 2vw, 2.9rem);
  --t-2xl: clamp(2.9rem, 1.6rem + 5.2vw, 5.6rem);

  --gutter: 16px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
:root[lang="ka"] { --f-display: "Noto Sans Georgian", "Inter Tight", sans-serif; --f-serif: "Noto Sans Georgian", serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--t-md)/1.65 var(--f-body);
  overflow-x: clip;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--f-mono); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; z-index: 100; border-radius: 4px; }
.skip:focus { left: 8px; }

/* quiet background: fixed grain + one slow radial glow */
.grain { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 70% -10%, color-mix(in oklch, var(--accent) 14%, transparent), transparent 70%),
    radial-gradient(40% 40% at 10% 110%, color-mix(in oklch, var(--accent) 6%, transparent), transparent 70%);
  animation: drift 40s linear infinite alternate; }
@keyframes drift { to { transform: translate3d(0, -3%, 0) scale(1.04); } }
main, header, footer { position: relative; z-index: 1; }

/* ---------------- header ---------------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 16px; min-height: 58px; }
.brand { display: flex; align-items: center; gap: 9px; font: 700 1.1rem var(--f-display); color: var(--text); text-decoration: none; margin-right: auto; letter-spacing: -.02em; }
.brand img { width: 26px; height: 26px; }
.brand span { margin-left: -1px; }
.brand span { color: var(--accent); }
.top nav { display: flex; gap: 22px; }
.top nav a { color: var(--muted); text-decoration: none; font-size: var(--t-sm); }
.top nav a:hover { color: var(--text); }
.lang { display: flex; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.lang[hidden] { display: none; }
.lang button { background: none; border: 0; color: var(--muted); font: 500 var(--t-xs) var(--f-mono); padding: 6px 10px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 600px) { .top nav { display: none; } }

/* ---------------- hero ---------------- */
.hero { padding: 56px 0 24px; }
.hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: var(--t-xs); margin: 0 0 20px; letter-spacing: .04em; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent-dim); animation: ping 2.4s ease-out infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
h1 { font: 700 var(--t-2xl)/.95 var(--f-display); letter-spacing: -.035em; margin: 0; }
h1 em { font: italic 400 1.02em var(--f-serif); color: var(--accent); letter-spacing: 0; }
.role { margin: 14px 0 0; color: var(--muted); font: 500 var(--t-sm) var(--f-mono); }
.lede { max-width: 62ch; font-size: var(--t-lg); line-height: 1.5; margin: 26px 0 0; text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }
.btn { display: inline-block; padding: 12px 22px; border: 1px solid var(--line-2); border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: var(--t-sm); transition: border-color .25s, background .25s, transform .25s var(--ease); }
.btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: 0 8px 30px -10px var(--accent-dim); }
.avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line-2); margin-top: 12px; }
@media (max-width: 600px) { .hero-grid { grid-template-columns: 1fr; } .avatar { width: 72px; height: 72px; order: -1; margin: 0; } }

/* ---------------- pipeline timeline ----------------
   Vertical spine, cards tilt in (3D) as they scroll into view.
   Spine fill uses scroll-driven animation where supported; JS adds .in per card.
----------------------------------------------------- */
.tl-wrap { margin: 64px 0 0; padding: 0; }
.tl-wrap figcaption { color: var(--muted); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .1em; margin: 0 0 28px; }
.tl { position: relative; list-style: none; margin: 0; padding: 8px 0 8px; perspective: 1200px; }
.tl::before, .tl::after { content: ""; position: absolute; left: 19px; top: 0; bottom: 0; width: 2px; border-radius: 2px; }
.tl::before { background: var(--line-2); }
.tl::after { background: var(--accent); transform-origin: top; transform: scaleY(0); box-shadow: 0 0 16px var(--accent-dim); }
@supports (animation-timeline: view()) {
  .tl::after { animation: fill linear both; animation-timeline: view(); animation-range: entry 10% exit 60%; }
  @keyframes fill { to { transform: scaleY(1); } }
}
.tl-item { position: relative; padding: 0 0 28px 56px; transform-style: preserve-3d; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: 11px; top: 26px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); transition: border-color .4s, box-shadow .4s; }
.tl-dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--accent); opacity: 0; transition: opacity .4s; }
.tl-card {
  position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; row-gap: 2px; align-items: center;
  padding: 18px 20px; max-width: 560px;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 7%, transparent), 0 20px 40px -24px #000;
  transform-origin: left center;
}
.tl-step { position: absolute; top: -10px; right: 16px; padding: 2px 8px; font-size: 11px; color: var(--accent); background: var(--bg); border: 1px solid var(--line-2); border-radius: 99px; }
.tl-card svg { grid-row: 1 / 3; width: 26px; height: 26px; fill: var(--accent); }
.tl-card svg.stroke { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.tl-card b { font: 600 17px/1.2 var(--f-display); letter-spacing: -.01em; }
.tl-card small { font: 400 12px/1.4 var(--f-mono); color: var(--muted); }
/* 3D entry: card lies back and swings up as it enters */
.js .tl-item .tl-card { opacity: 0; transform: rotateX(-55deg) translateY(28px) translateZ(-60px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.js .tl-item.in .tl-card { opacity: 1; transform: none; }
.tl-item.in .tl-dot { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-dim); }
.tl-item.in .tl-dot::after { opacity: 1; }
@media (min-width: 760px) {
  .tl::before, .tl::after { left: 50%; margin-left: -1px; }
  .tl-item { padding-left: 0; width: 50%; }
  .tl-item:nth-child(odd) { padding-right: 44px; }
  .tl-item:nth-child(odd) .tl-card { margin-left: auto; transform-origin: right center; }
  .tl-item:nth-child(even) { margin-left: 50%; padding-left: 44px; }
  .tl-dot { left: auto; right: -9px; }
  .tl-item:nth-child(even) .tl-dot { right: auto; left: -9px; }
  .js .tl-item:nth-child(odd) .tl-card { transform: rotateY(35deg) rotateX(-30deg) translateY(24px) translateZ(-60px); }
  .js .tl-item:nth-child(even) .tl-card { transform: rotateY(-35deg) rotateX(-30deg) translateY(24px) translateZ(-60px); }
  .js .tl-item.in .tl-card { transform: none; }
}

/* ---------------- observer ----------------
   The one place the palette goes warm. Orbits rotate slowly; the signal line
   pulses from the outer planet to the centre. */
.observer { margin: 96px 0 0; padding: 72px 0; position: relative;
  background:
    radial-gradient(60% 80% at 20% 50%, color-mix(in oklch, var(--gold) 12%, transparent), transparent 70%),
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg-2) 60%, transparent) 30%, transparent); }
.observer::before, .observer::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-dim), transparent); }
.observer::before { top: 0; } .observer::after { bottom: 0; }
.obs-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 820px) { .obs-grid { grid-template-columns: 5fr 6fr; gap: 56px; } }
.orbit svg { width: min(100%, 420px); margin: 0 auto; overflow: visible; }
.orbit .stars circle { fill: var(--gold-soft); opacity: .7; }
.orbit .ring { fill: none; stroke: var(--gold); stroke-opacity: .28; stroke-width: 1; stroke-dasharray: 2 5; }
.orbit .sun { filter: drop-shadow(0 0 24px var(--gold-dim)); animation: breathe 6s ease-in-out infinite; transform-origin: 200px 200px; }
.orbit .pupil { fill: var(--bg); opacity: .85; }
.orbit .orb circle { fill: var(--gold-soft); }
.orbit .orb .moon { fill: var(--text); }
.orbit .orb { transform-origin: 200px 200px; animation: spin linear infinite; }
.orbit .o1 { animation-duration: 18s; }
.orbit .o2 { animation-duration: 32s; animation-direction: reverse; }
.orbit .o3 { animation-duration: 54s; }
.orbit .signal line { stroke: var(--gold-soft); stroke-width: 1.2; stroke-dasharray: 3 7; opacity: .6; animation: dash 3s linear infinite; }
.orbit .signal { transform-origin: 200px 200px; animation: spin 54s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.06); } }
@keyframes dash { to { stroke-dashoffset: -40; } }
.obs-copy p { max-width: 58ch; color: #d8dfee; margin: 0 0 14px; }
.obs-copy h2 { margin-bottom: 22px; }
.obs-copy h2::after { content: ""; display: block; width: 48px; height: 2px; margin-top: 16px; background: var(--gold); }
.kicker.gold { color: var(--gold); }
.obs-foot { color: var(--muted); font-size: var(--t-xs); margin-top: 22px; }
.contact { padding-top: 72px; }

/* ---------------- sections ---------------- */
.block { padding: 96px 0 0; }
.kicker { color: var(--accent); font-size: var(--t-xs); letter-spacing: .2em; margin: 0 0 10px; }
h2 { font: 700 var(--t-xl)/1.05 var(--f-display); letter-spacing: -.03em; margin: 0 0 36px; }
h3 { font: 600 var(--t-lg)/1.25 var(--f-display); letter-spacing: -.015em; margin: 0 0 8px; }

.services { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .services { grid-template-columns: 1fr 1fr; gap: 18px; } }
.services article { padding: 26px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; transition: border-color .3s; }
.services article:hover { border-color: var(--line-2); }
.services p { margin: 0 0 12px; max-width: 60ch; color: #cbd5e6; }
.services .tech { color: var(--muted); font-size: var(--t-xs); margin: 0; line-height: 1.6; }

/* cases */
.cases { display: grid; gap: 28px; }
.case { background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.case-head { padding: 28px 28px 0; }
.case-sub { margin: 0 0 16px; color: var(--muted); max-width: 60ch; }
.case-links { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 24px; }
.demo-note { color: var(--muted); font-size: var(--t-xs); }
.case-body { padding: 0 28px 28px; }
.case-body > p { margin: 0 0 14px; max-width: 65ch; color: #cbd5e6; }
.pwc { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .pwc { grid-template-columns: 1fr 1fr 1fr; gap: 28px; } }
.pwc h4 { margin: 0 0 8px; color: var(--accent); font-size: var(--t-xs); letter-spacing: .15em; text-transform: uppercase; font-weight: 500; }
.pwc p { margin: 0; color: #cbd5e6; font-size: var(--t-sm); line-height: 1.6; }
.shot { margin: 0 0 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.shot[hidden] { display: none; }
.shot-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.shot img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: top; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 22px 0 0; }
.tags li { font-size: var(--t-xs); color: var(--accent); border: 1px solid var(--line-2); padding: 3px 10px; border-radius: 99px; }
@media (max-width: 600px) { .case-head { padding: 22px 18px 0; } .case-body { padding: 0 18px 22px; } }

/* how */
.how { max-width: 66ch; list-style: none; padding: 0; margin: 0; counter-reset: how; }
.how li { position: relative; margin: 0 0 22px; padding-left: 52px; counter-increment: how; }
.how li::before { content: counter(how, decimal-leading-zero); position: absolute; left: 0; top: 2px; font: 500 var(--t-xs) var(--f-mono); color: var(--accent); }

.stack { padding: 64px 0 0; }
.stack p { margin: 0; color: var(--muted); font-size: var(--t-xs); line-height: 1.8; }

.contact { padding-bottom: 96px; }
.contact-line { font: italic 400 var(--t-xl)/1.2 var(--f-serif); max-width: 30ch; margin: 0 0 24px; letter-spacing: -.01em; }
.mail { margin: 0 0 22px; font: 600 clamp(1.3rem, 1rem + 2vw, 2rem) var(--f-display); letter-spacing: -.02em; overflow-wrap: anywhere; }
/* contact form */
.cform { max-width: 640px; margin: 0 0 28px; display: grid; gap: 14px; }
.cform-row { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .cform-row { grid-template-columns: 1fr 1fr; } }
.cform label { display: grid; gap: 6px; font-size: var(--t-xs); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; font-family: var(--f-mono); }
.cform input, .cform textarea { width: 100%; padding: 12px 14px; font: 400 var(--t-md)/1.5 var(--f-body); color: var(--text); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; transition: border-color .2s, box-shadow .2s; }
.cform textarea { resize: vertical; min-height: 130px; }
.cform input:focus, .cform textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.cform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cform-foot .btn { cursor: pointer; }
.cform-foot .btn[disabled] { opacity: .6; cursor: wait; }
.cform-status { margin: 0; font-size: var(--t-xs); color: var(--muted); }
.cform-status.ok { color: var(--accent); }
.cform-status.err { color: #ff9a8a; }
.links-row { display: flex; gap: 22px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }

footer { border-top: 1px solid var(--line); padding: 20px 0 28px; color: var(--muted); font-size: var(--t-xs); }
.foot { display: flex; justify-content: space-between; align-items: center; }
.egg { width: 14px; height: 14px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.egg[hidden] { display: none; }
.egg::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--line); }
.egg:hover::after, .egg:focus-visible::after { background: var(--muted); }

/* reveal on scroll (JS adds .in; without JS everything is visible) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* overlays */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(4, 7, 14, .94); display: flex; align-items: center; justify-content: center; padding: 56px var(--gutter) var(--gutter); }
.overlay[hidden] { display: none; }
.close { position: absolute; top: 8px; right: 12px; width: 44px; height: 44px; font-size: 2rem; line-height: 1; background: none; border: 0; color: var(--text); cursor: pointer; }
.modal-scroll { max-height: 100%; overflow: auto; max-width: min(1200px, 100%); }
.modal-scroll img { width: 100%; height: auto; border-radius: 8px; }
.universe { background: radial-gradient(ellipse at 50% 40%, #0f1a33 0%, #04070e 70%); }
.universe-in { max-width: 52ch; font: italic 400 var(--t-lg)/1.6 var(--f-serif); color: #d7def0; }
.universe-in .mono { font-style: normal; color: var(--accent); font-size: var(--t-xs); letter-spacing: .25em; text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .live-dot, .orbit .orb, .orbit .sun, .orbit .signal, .orbit .signal line { animation: none !important; }
  .tl::after { animation: none; transform: scaleY(1); }
  .js .tl-item .tl-card { opacity: 1; transform: none; transition: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
