/* ==========================================================
   WebsByIb — high-tech dark theme
   ========================================================== */
@font-face { font-family: "Space Grotesk"; src: url("assets/fonts/SpaceGrotesk-400-700.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/JetBrainsMono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/JetBrainsMono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --bg: #04070a;
  --bg-2: #071015;
  --surface: rgba(12, 22, 28, 0.72);
  --surface-solid: #0b161c;
  --line: rgba(120, 255, 230, 0.12);
  --line-strong: rgba(120, 255, 230, 0.28);
  --text: #e8f3f1;
  --muted: #93a9a6;
  --cyan: #2ee6d6;
  --lime: #c6ff3d;
  --violet: #8b74ff;
  --danger: #ff6b7a;
  --success: #5dffa8;
  --on-accent: #02110f;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.7, 0, .2, 1);
  --dur-fast: 180ms;
  --dur-med: 420ms;
  --dur-slow: 900ms;

  --z-bg: 0;
  --z-content: 10;
  --z-nav: 40;
  --z-progress: 50;
  --z-intro: 1000;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.intro-active { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.08; margin: 0; letter-spacing: -0.02em; font-weight: 600; }
p { margin: 0; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
::selection { background: var(--cyan); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 2000;
  background: var(--lime); color: var(--on-accent); padding: 10px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none; transition: top var(--dur-fast);
}
.skip-link:focus { top: 16px; }

/* ---------- background layers ---------- */
#net { position: fixed; inset: 0; width: 100%; height: 100%; z-index: var(--z-bg); }
.scanlines {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(46, 230, 214, .10), transparent 60%),
    radial-gradient(ellipse at 100% 100%, rgba(139, 116, 255, .08), transparent 55%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px);
}
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: var(--z-progress); }
.progress span {
  display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  box-shadow: 0 0 12px var(--cyan);
}
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 420px; height: 420px; margin: -210px 0 0 -210px;
  border-radius: 50%; pointer-events: none; z-index: 2; opacity: 0;
  background: radial-gradient(circle, rgba(46, 230, 214, .10), transparent 65%);
  transition: opacity var(--dur-med);
}
@media (pointer: fine) { .cursor-glow.on { opacity: 1; } }

/* ==========================================================
   INTRO
   ========================================================== */
#intro {
  position: fixed; inset: 0; z-index: var(--z-intro);
  display: grid; place-items: center;
  background: radial-gradient(ellipse at center, rgba(4, 7, 10, .2), rgba(4, 7, 10, .85) 75%);
  transition: opacity 600ms ease, visibility 600ms;
  overflow: hidden;
}
#intro.done { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-hud {
  position: absolute; top: 20px; left: 24px; right: 24px;
  display: flex; justify-content: space-between;
  font: 500 12px/1 var(--font-mono); letter-spacing: .14em; color: var(--muted);
}
.hud-blink { color: var(--lime); animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .3; } }

.laptop {
  position: relative; width: min(860px, 88vw, 115vh);
  transform-origin: 50% 40%;
  will-change: transform;
  animation: laptopIn 1.1s var(--ease-out) both;
}
@keyframes laptopIn {
  from { opacity: 0; transform: translateY(40px) scale(.92) rotateX(10deg); }
  to   { opacity: 1; transform: none; }
}
.lid {
  position: relative;
  padding: 2.2% 2.2% 2.6%;
  border-radius: 18px 18px 6px 6px;
  background: linear-gradient(180deg, #1c2328, #0d1216);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06),
    0 0 0 2px #05080a,
    0 0 60px rgba(46, 230, 214, .18),
    0 40px 80px rgba(0,0,0,.6);
}
.cam {
  position: absolute; top: .8%; left: 50%; width: 6px; height: 6px; margin-left: -3px;
  border-radius: 50%; background: #2a3a40; box-shadow: 0 0 0 2px #0a0f12;
}
.screen {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(46, 230, 214, .16), transparent 55%),
    radial-gradient(ellipse at 80% 90%, rgba(198, 255, 61, .10), transparent 50%),
    linear-gradient(180deg, #061015, #03070a);
  display: flex; flex-direction: column;
}
.screen::before { /* tech grid on the screen */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(46,230,214,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,230,214,.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.screen-glare {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.07) 0%, transparent 35%);
}
.os-bar {
  position: relative; display: flex; justify-content: space-between; align-items: center;
  padding: 6px 12px; font: 500 clamp(9px, 1.1vw, 12px)/1 var(--font-mono);
  color: var(--muted); border-bottom: 1px solid var(--line); background: rgba(0,0,0,.3);
}
.os-logo { color: var(--cyan); }
.os-body { position: relative; flex: 1; display: grid; place-items: center; padding: 3%; }
.boot {
  position: absolute; top: 5%; left: 4%; margin: 0;
  font: 400 clamp(8px, 1.1vw, 12.5px)/1.7 var(--font-mono); color: rgba(46, 230, 214, .85);
  white-space: pre-wrap; text-shadow: 0 0 8px rgba(46,230,214,.5);
}
.boot .ok { color: var(--lime); }
.launch {
  position: relative; display: grid; justify-items: center; gap: 6px;
  padding: 18px 26px; border-radius: 16px; cursor: pointer;
  background: rgba(46, 230, 214, .06); color: var(--text);
  border: 1px solid var(--line-strong);
  font-family: var(--font-display);
  opacity: 0; transform: scale(.9);
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out),
              background var(--dur-fast), box-shadow var(--dur-fast);
}
.launch.show { opacity: 1; transform: none; }
.launch:hover, .launch.hover { background: rgba(46, 230, 214, .14); box-shadow: 0 0 30px rgba(46, 230, 214, .35); }
.launch.pressed { transform: scale(.94); }
.launch-icon {
  width: clamp(44px, 7vw, 72px); height: clamp(44px, 7vw, 72px); display: grid; place-items: center;
  border-radius: 14px; color: var(--on-accent);
  background: linear-gradient(135deg, var(--cyan), var(--lime));
  box-shadow: 0 0 24px rgba(46, 230, 214, .55);
}
.launch-icon svg { width: 62%; }
.launch-label { font-weight: 600; font-size: clamp(12px, 1.5vw, 16px); }
.launch-hint { font: 400 clamp(9px, 1vw, 11px)/1 var(--font-mono); color: var(--muted); letter-spacing: .08em; }

.base {
  position: relative; height: clamp(10px, 1.8vw, 18px); margin: 0 -6%;
  border-radius: 2px 2px 14px 14px;
  background: linear-gradient(180deg, #3a4448, #1a2124 60%, #0c1012);
  box-shadow: 0 1px 0 rgba(255,255,255,.15) inset;
}
.notch {
  position: absolute; top: 0; left: 50%; width: 16%; height: 40%; transform: translateX(-50%);
  border-radius: 0 0 8px 8px; background: #12181b;
}
.laptop-shadow {
  position: absolute; left: 0; right: 0; bottom: -30px; height: 40px;
  background: radial-gradient(ellipse at center, rgba(46,230,214,.25), transparent 70%);
  filter: blur(8px);
}

/* zoom-into-screen state */
.laptop.zooming { transition: transform 1500ms var(--ease-in-out); animation: none; }
.laptop.zooming .lid, .laptop.zooming .base, .laptop.zooming .laptop-shadow { transition: opacity 900ms ease 500ms; }
.laptop.zooming .base, .laptop.zooming .laptop-shadow { opacity: 0; }
.laptop.zooming .os-body > *, .laptop.zooming .os-bar { transition: opacity 500ms ease 300ms; opacity: 0; }

.fake-cursor {
  position: fixed; left: 0; top: 0; width: 26px; height: 26px; z-index: 5;
  pointer-events: none; opacity: 0;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)) drop-shadow(0 0 8px rgba(46,230,214,.5));
  will-change: transform;
}
.fake-cursor.show { opacity: 1; transition: opacity 300ms; }
.fake-cursor svg { width: 100%; height: 100%; }
.click-ring {
  position: absolute; left: 4px; top: 2px; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border-radius: 50%; border: 2px solid var(--lime); opacity: 0; transform: scale(.3);
}
.fake-cursor.clicking .click-ring { animation: ring 600ms var(--ease-out); }
@keyframes ring { 0% { opacity: 1; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.8); } }

.skip-intro {
  position: absolute; right: 24px; bottom: 24px; z-index: 6;
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line-strong); cursor: pointer;
  background: rgba(4,7,10,.6); color: var(--text); font: 500 14px var(--font-display);
  backdrop-filter: blur(8px); transition: background var(--dur-fast), border-color var(--dur-fast);
}
.skip-intro:hover { background: rgba(46,230,214,.12); border-color: var(--cyan); }
.skip-intro kbd {
  font: 500 11px var(--font-mono); padding: 2px 6px; border-radius: 4px;
  border: 1px solid var(--line-strong); color: var(--muted);
}

/* ==========================================================
   NAV
   ========================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 4vw, 40px);
  transition: background var(--dur-med), border-color var(--dur-med), transform var(--dur-med) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(4, 7, 10, .72); backdrop-filter: blur(14px); border-color: var(--line); }
.nav.hidden, .intro-active .nav { transform: translateY(-100%); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  font: 500 13px var(--font-mono); color: var(--on-accent); padding: 6px 8px; border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--lime));
}
.logo-text { font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.logo-text b { color: var(--cyan); font-weight: 700; }
.nav nav { margin-left: auto; }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
  text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px;
  transition: color var(--dur-fast), background var(--dur-fast);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(46,230,214,.08); }
.nav-links a.active { color: var(--cyan); }
.menu-btn { display: none; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; cursor: pointer;
  font: 600 16px var(--font-display); text-decoration: none; border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast), background var(--dur-fast), border-color var(--dur-fast);
  touch-action: manipulation;
}
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-primary {
  color: var(--on-accent);
  background: linear-gradient(135deg, var(--cyan), var(--lime));
  box-shadow: 0 0 0 0 rgba(46,230,214,.0), 0 8px 30px rgba(46,230,214,.25);
}
.btn-primary:hover { box-shadow: 0 0 0 4px rgba(46,230,214,.18), 0 10px 40px rgba(46,230,214,.4); }
.btn-ghost { color: var(--text); background: rgba(255,255,255,.03); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--cyan); background: rgba(46,230,214,.08); }
.btn-block { width: 100%; }

/* ==========================================================
   HERO
   ========================================================== */
main { position: relative; z-index: var(--z-content); }
.hero {
  position: relative; min-height: 100vh; min-height: 100dvh;
  display: grid; align-items: center;
  padding: 120px clamp(16px, 6vw, 80px) 80px;
}
.hero-inner { max-width: 1040px; will-change: transform, opacity; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px;
  font: 500 13px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cyan);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); animation: blink 2s ease-in-out infinite; }
.eyebrow .mono { color: var(--lime); }
.hero-title { font-size: clamp(2.6rem, 8vw, 6.4rem); font-weight: 700; letter-spacing: -.035em; }
.hero-title .line { display: block; }
.grad {
  background: linear-gradient(90deg, var(--cyan), var(--lime) 60%, var(--cyan));
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 6s linear infinite;
}
@keyframes sheen { to { background-position: -200% 0; } }
.hero-sub { max-width: 600px; margin-top: 28px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.stats {
  display: grid; grid-template-columns: repeat(3, auto); gap: clamp(20px, 5vw, 64px);
  justify-content: start; margin: 56px 0 0;
}
.stats div { border-left: 1px solid var(--line-strong); padding-left: 16px; display: flex; flex-direction: column-reverse; }
.stats dt { font: 400 12px var(--font-mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.stats dd { margin: 0; font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 600; font-variant-numeric: tabular-nums; }
.scroll-hint {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 8px; text-decoration: none;
  font-size: 11px; letter-spacing: .2em; color: var(--muted);
}
.mouse { width: 24px; height: 38px; border: 1.5px solid var(--line-strong); border-radius: 14px; display: grid; justify-items: center; padding-top: 7px; }
.mouse span { width: 3px; height: 8px; border-radius: 2px; background: var(--cyan); animation: wheel 1.8s var(--ease-out) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }

/* ---------- marquee ---------- */
.marquee {
  position: relative; z-index: var(--z-content); overflow: hidden;
  border-block: 1px solid var(--line); background: rgba(4,7,10,.6); backdrop-filter: blur(6px);
  padding: 22px 0;
}
.marquee-track { display: flex; gap: 40px; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 600; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(232,243,241,.55); }
.marquee span:nth-of-type(odd) { color: var(--text); -webkit-text-stroke: 0; }
.marquee i { font-style: normal; color: var(--lime); align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================
   SECTIONS
   ========================================================== */
.section { padding: clamp(80px, 12vw, 160px) clamp(16px, 6vw, 80px); max-width: 1320px; margin: 0 auto; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2, .contact h2 { font-size: clamp(2.2rem, 5.5vw, 4.2rem); font-weight: 700; }
.section-head p.muted { margin-top: 20px; font-size: 1.1rem; max-width: 600px; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- WORK stacked cards ---------- */
.work-stack { display: grid; gap: 32px; }
.work-card {
  position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px);
  align-items: center; padding: clamp(20px, 3.5vw, 44px);
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(14, 28, 34, .92), rgba(6, 12, 16, .95));
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  transform-origin: 50% 0;
  overflow: hidden;
}
.work-card::before { /* accent edge */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, var(--accent, var(--cyan)), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: .7;
}
@media (min-width: 900px) {
  .work-card { position: sticky; top: calc(96px + var(--i) * 18px); min-height: min(620px, 78vh); }
}
.work-meta { display: flex; gap: 12px; align-items: center; font: 500 13px var(--font-mono); color: var(--muted); letter-spacing: .06em; }
.work-meta .idx { color: var(--accent, var(--cyan)); }
.work-card h3 { font-size: clamp(1.9rem, 3.8vw, 3rem); margin: 14px 0 14px; }
.work-card p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 30px; padding: 0; list-style: none; }
.tags li { font: 500 12px var(--font-mono); padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); }
.results { display: flex; gap: 28px; margin-bottom: 28px; }
.results b { display: block; font-size: 1.6rem; color: var(--accent, var(--cyan)); font-variant-numeric: tabular-nums; }
.results span { font: 400 12px var(--font-mono); color: var(--muted); }

.browser {
  display: block; color: inherit; text-decoration: none; cursor: pointer;
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line-strong);
  background: #050a0d; box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 40px color-mix(in srgb, var(--accent, var(--cyan)) 18%, transparent);
  transform: perspective(1200px) rotateY(var(--ry, -6deg)) rotateX(var(--rx, 3deg));
  transition: transform var(--dur-med) var(--ease-out);
}
.browser-bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.03); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a3439; }
.dots i:nth-child(1) { background: #ff5f57; } .dots i:nth-child(2) { background: #febc2e; } .dots i:nth-child(3) { background: #28c840; }
.url { flex: 1; font: 400 12px var(--font-mono); color: var(--muted); padding: 5px 12px; border-radius: 6px; background: rgba(0,0,0,.4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: radial-gradient(ellipse at 70% 40%, rgba(46,230,214,.25), transparent 60%), #0b161c; /* shows if a photo ever fails */
}
.shot img.failed { display: none; }
.shot img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.15); transition: scale 1.2s var(--ease-out); will-change: transform;
}
.work-card:hover .shot img { scale: 1.05; }
.site-ui {
  position: absolute; inset: 0; display: flex; flex-direction: column; padding: 4% 5%;
  background: linear-gradient(100deg, rgba(3,6,8,.88) 0%, rgba(3,6,8,.55) 45%, rgba(3,6,8,0) 75%);
  font-size: clamp(8px, 1.05vw, 13px);
}
.site-nav { display: flex; align-items: center; gap: 4%; }
.site-nav b { font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-right: auto; }
.site-nav span { width: 7%; height: 4px; border-radius: 2px; background: rgba(255,255,255,.45); }
.site-ui i { font-style: normal; font-weight: 600; padding: .5em 1.1em; border-radius: 999px; background: var(--accent, var(--cyan)); color: #050505; white-space: nowrap; }
.site-hero { margin-top: auto; margin-bottom: 4%; display: grid; justify-items: start; gap: .7em; max-width: 58%; }
.site-hero strong { font-size: 2.6em; line-height: 1; letter-spacing: -.03em; font-weight: 700; }
.site-hero span { height: 5px; width: 90%; border-radius: 3px; background: rgba(255,255,255,.35); }
.site-hero span + span { width: 65%; }
.site-hero i { margin-top: .6em; }

/* ---------- SERVICES ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; perspective: 1400px; }
.svc {
  position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: linear-gradient(170deg, rgba(14, 26, 32, .9), rgba(5, 10, 13, .95));
  backdrop-filter: blur(8px); overflow: hidden;
  transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
  transition: border-color var(--dur-fast), box-shadow var(--dur-med), transform var(--dur-med) var(--ease-out), opacity var(--dur-slow) var(--ease-out);
}
.svc.reveal:not(.in) { transform: translateY(28px); }
.svc.in { transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); }
.svc::before { /* holographic edge in the service's accent */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--spin, 0deg), transparent 0 60%, var(--accent) 75%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .35; animation: spin-edge 6s linear infinite;
}
.svc:hover { border-color: transparent; box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 50px color-mix(in srgb, var(--accent) 22%, transparent); }
.svc:hover::before { opacity: 1; }
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin-edge { to { --spin: 360deg; } }
.spot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity var(--dur-med);
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent, var(--cyan)) 16%, transparent), transparent 60%);
}
.spot:hover::after { opacity: 1; }

.svc-visual {
  position: relative; height: 268px; margin: 14px 14px 0; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); background: #03080b; background:
    radial-gradient(ellipse at 50% 120%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 100% 22px,
    #03080b;
  padding: 12px 14px;
}
.vis-head { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--muted); margin-bottom: 12px; }
.svc-body { padding: 24px 26px 30px; display: grid; gap: 12px; }
.svc-n { font-size: 12px; letter-spacing: .14em; color: var(--accent); }
.svc h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
.svc-body > p { color: var(--muted); }
.svc-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.svc-list li { display: flex; align-items: center; gap: 10px; font-size: .95rem; }
.svc-list li::before {
  content: ""; width: 14px; height: 14px; flex: none; border-radius: 4px;
  border: 1.5px solid var(--accent); box-shadow: inset 0 0 0 3px #04070a, inset 0 0 0 10px var(--accent);
}

/* -- build visual -- */
.code { margin: 0; font-size: 12.5px; line-height: 1.9; display: grid; }
.code span { opacity: 0; transform: translateX(-8px); white-space: nowrap; }
.code b { color: var(--violet); font-weight: 500; } .code em { color: var(--cyan); font-style: normal; } .code u { color: var(--lime); text-decoration: none; }
.build-bar { position: absolute; left: 14px; right: 14px; bottom: 44px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.build-bar span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--cyan), var(--lime)); box-shadow: 0 0 12px var(--cyan); }
.build-status { position: absolute; left: 14px; bottom: 14px; font-size: 12px; }
.build-status span { position: absolute; white-space: nowrap; transition: opacity 300ms; }
.st-run { color: var(--muted); } .st-ok { color: var(--lime); opacity: 0; }
.vis-build.run .code span { animation: type-in 400ms var(--ease-out) forwards; }
.vis-build.run .code span:nth-child(2) { animation-delay: 450ms; }
.vis-build.run .code span:nth-child(3) { animation-delay: 900ms; }
.vis-build.run .code span:nth-child(4) { animation-delay: 1350ms; }
.vis-build.run .build-bar span { animation: fill-bar 1.6s 1.6s var(--ease-in-out) forwards; }
.vis-build.run .st-run { animation: fade-out 1ms 3.2s forwards; }
.vis-build.run .st-ok { animation: fade-in 300ms 3.2s forwards; }
@keyframes type-in { to { opacity: 1; transform: none; } }
@keyframes fill-bar { to { transform: scaleX(1); } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-in { to { opacity: 1; } }

/* -- manage visual -- */
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(198,255,61,.6); animation: pulse-ring 1.6s infinite; }
@keyframes pulse-ring { 70% { box-shadow: 0 0 0 8px rgba(198,255,61,0); } 100% { box-shadow: 0 0 0 0 rgba(198,255,61,0); } }
.uptime { display: flex; gap: 24px; }
.uptime b { display: block; font-size: 22px; font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.uptime span { font-size: 10.5px; color: var(--muted); letter-spacing: .06em; }
.spark { width: 100%; height: 46px; margin: 8px 0 6px; color: var(--lime); filter: drop-shadow(0 0 6px rgba(198,255,61,.6)); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: 11.5px; }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.checks span { margin-left: auto; color: var(--lime); }

/* -- ads visual -- */
.vis-ads { display: grid; place-items: center; padding: 0; }
.orbit { position: relative; width: 210px; height: 210px; margin-top: -26px; }
.hub {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; text-align: center; font-size: 9.5px; line-height: 1.2; font-weight: 500;
  color: #fff; background: radial-gradient(circle at 35% 30%, #ff9cf0, var(--accent) 45%, #5a1050);
  box-shadow: 0 0 30px color-mix(in srgb, var(--accent) 60%, transparent);
  animation: hub-beat 2.4s ease-in-out infinite;
}
@keyframes hub-beat { 50% { transform: scale(1.07); } }
.ring { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1px dashed rgba(255,255,255,.18); animation: orbit 18s linear infinite; }
.ring.r1 { width: 140px; height: 140px; }
.ring.r2 { width: 210px; height: 210px; animation-duration: 26s; animation-direction: reverse; }
.ring span {
  position: absolute; left: 50%; top: 50%; font: 500 10px var(--font-mono); white-space: nowrap;
  padding: 4px 8px; border-radius: 999px; background: rgba(4,7,10,.9); border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  transform: rotate(var(--a)) translateY(calc(var(--r) * -1)) rotate(calc(var(--a) * -1)) translate(-50%, -50%);
}
.ring.r1 span { --r: 70px; } .ring.r2 span { --r: 105px; }
.ring.r1 span { animation: counter 18s linear infinite; }
.ring.r2 span { animation: counter 26s linear infinite reverse; }
@keyframes orbit { to { rotate: 360deg; } }
@keyframes counter { to { rotate: -360deg; } }
.ad-stats { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); background: rgba(3,8,11,.85); }
.ad-stats div { padding: 8px 10px; text-align: center; }
.ad-stats b { display: block; font-size: 15px; font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.ad-stats span { font-size: 10px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

/* -- bundle strip -- */
.svc-bundle {
  margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px;
  padding: 22px 26px; border-radius: var(--r-lg); border: 1px solid var(--line-strong);
  background: linear-gradient(90deg, rgba(46,230,214,.07), rgba(198,255,61,.05), rgba(255,79,216,.07));
}
.svc-bundle p { flex: 1 1 280px; color: var(--muted); }
.bundle-flow { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .14em; }
.bundle-flow span:nth-child(1) { color: var(--cyan); } .bundle-flow span:nth-child(3) { color: var(--lime); } .bundle-flow span:nth-child(5) { color: #ff4fd8; }
.bundle-flow i { position: relative; width: 34px; height: 1px; background: var(--line-strong); overflow: hidden; }
.bundle-flow i::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--text); animation: flow 1.4s linear infinite; }
@keyframes flow { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* ---------- PROCESS ---------- */
.timeline { position: relative; list-style: none; margin: 0; padding: 0 0 0 44px; display: grid; gap: 48px; max-width: 820px; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline::after { background: linear-gradient(var(--cyan), var(--lime)); transform-origin: 0 0; transform: scaleY(var(--p, 0)); box-shadow: 0 0 12px var(--cyan); }
.step { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 16px; }
.step::before {
  content: ""; position: absolute; left: -40px; top: 8px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line-strong); transition: background var(--dur-med), border-color var(--dur-med), box-shadow var(--dur-med);
}
.step.lit::before { background: var(--lime); border-color: var(--lime); box-shadow: 0 0 16px var(--lime); }
.step-n { font-size: 14px; color: var(--cyan); padding-top: 6px; }
.step h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 8px; }
.step p { color: var(--muted); max-width: 560px; }

/* ---------- CONTACT ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-copy { position: sticky; top: 120px; }
.contact-copy p.muted { margin-top: 20px; font-size: 1.1rem; }
.contact-points { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; }
.contact-points li { display: flex; align-items: center; gap: 12px; }
.contact-points svg { width: 22px; height: 22px; color: var(--lime); flex: none; }

.direct-email {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 32px; padding: 14px 20px 14px 16px;
  border-radius: var(--r-md); border: 1px solid var(--line-strong); text-decoration: none;
  background: rgba(46,230,214,.05); transition: border-color var(--dur-fast), background var(--dur-fast);
}
.direct-email:hover { border-color: var(--cyan); background: rgba(46,230,214,.1); }
.direct-email svg { width: 28px; height: 28px; color: var(--cyan); flex: none; }
.direct-email span { display: grid; font-weight: 600; font-size: 1.05rem; overflow-wrap: anywhere; }
.direct-email small { font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

.form-shell {
  position: relative; border-radius: var(--r-lg); border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, rgba(14, 28, 34, .9), rgba(6, 12, 16, .95));
  box-shadow: 0 30px 80px rgba(0,0,0,.4), 0 0 60px rgba(46,230,214,.08);
  padding: clamp(20px, 3.5vw, 40px);
}
.form-head { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; margin: 0 0 20px; border: 0; padding: 0; min-width: 0; }
label, legend { font-weight: 500; font-size: 15px; padding: 0; }
.req { color: var(--lime); }
.opt { color: var(--muted); font-weight: 400; font-size: 13px; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line-strong); background: rgba(0,0,0,.35); color: var(--text);
  font: 400 16px var(--font-display); transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393a9a6' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
select option { background: var(--surface-solid); }
textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(46,230,214,.2); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.error { color: var(--danger); font-size: 14px; min-height: 0; }
.error:empty { display: none; }
.helper { color: var(--muted); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); font-size: 14px; transition: all var(--dur-fast);
}
.chip:hover span { border-color: var(--cyan); }
.chip input:checked + span { background: rgba(46,230,214,.14); border-color: var(--cyan); color: var(--cyan); }
.chip input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(2,17,15,.3); border-top-color: var(--on-accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn.loading { pointer-events: none; opacity: .85; }
.btn.loading .spinner { display: inline-block; }
.form-status { margin-top: 14px; font-size: 14px; text-align: center; }
.form-status.err { color: var(--danger); }

.form-success { text-align: center; padding: 40px 10px; display: grid; justify-items: center; gap: 14px; }
.form-success[hidden] { display: none; }
.form-success:focus { outline: none; }
.success-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; color: var(--on-accent); background: linear-gradient(135deg, var(--cyan), var(--lime)); box-shadow: 0 0 40px rgba(46,230,214,.5); animation: pop 600ms var(--ease-out); }
.success-icon svg { width: 36px; }
.form-success h3 { font-size: 1.8rem; }
.form-success p { color: var(--muted); max-width: 380px; }
.form-success b { color: var(--text); overflow-wrap: anywhere; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

/* ---------- FOOTER ---------- */
.footer {
  position: relative; z-index: var(--z-content);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 32px clamp(16px, 6vw, 80px); border-top: 1px solid var(--line); background: rgba(4,7,10,.7);
}
.footer p { font-size: 14px; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1080px) {
  .svc-grid { grid-template-columns: 1fr; max-width: 640px; }
  .svc { flex-direction: row; }
  .svc-visual { flex: 0 0 46%; margin: 14px 0 14px 14px; height: auto; min-height: 268px; }
}
@media (max-width: 899px) {
  .work-card { grid-template-columns: 1fr; }
  .work-card .browser { order: -1; --ry: 0deg; --rx: 0deg; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-copy { position: static; }
}
@media (max-width: 760px) {
  .nav { gap: 12px; }
  .nav-cta { display: none; }
  .menu-btn {
    display: grid; place-content: center; gap: 6px; margin-left: auto;
    width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line-strong);
    background: rgba(4,7,10,.6); cursor: pointer;
  }
  .menu-btn span { display: block; width: 20px; height: 2px; background: var(--text); transition: transform var(--dur-fast); }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav nav { position: absolute; top: 100%; left: 0; right: 0; margin: 0; }
  .nav-links {
    flex-direction: column; gap: 4px; padding: 12px 16px 20px;
    background: rgba(4,7,10,.96); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity var(--dur-fast), transform var(--dur-fast), visibility var(--dur-fast);
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { min-height: 48px; font-size: 18px; width: 100%; }
  .svc { flex-direction: column; }
  .svc-visual { flex: none; margin: 14px 14px 0; height: 268px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .stats div { padding-left: 10px; }
  .step { grid-template-columns: 1fr; gap: 4px; }
  .results { gap: 18px; }
  .skip-intro { right: 16px; bottom: 16px; }
  .scroll-hint { display: none; }
}

/* ==========================================================
   REDUCED MOTION
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
