:root {
  --bg: #07080a;
  --bg-2: #0c0e11;
  --line: rgba(255, 255, 255, 0.09);
  --text: #eceef0;
  --muted: #8d939b;
  --neon: #dcff1e;
  --neon-glow: rgba(220, 255, 30, 0.35);
  --glass: rgba(18, 21, 25, 0.55);
  --radius: 18px;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; margin: 0; line-height: 1.05; }
em { font-style: normal; color: var(--neon); }
::selection { background: var(--neon); color: #000; }

.container { width: min(1200px, 100% - 48px); margin: 0 auto; }

/* ---------- frosted glass ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 20px 60px rgba(0, 0, 0, 0.35);
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 16px 16px auto 16px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 10px 10px 20px;
  border-radius: 999px;
  background: rgba(10, 12, 14, 0.5);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}
.brand { font-family: var(--display); font-weight: 700; letter-spacing: 0.08em; font-size: 15px; display: inline-flex; align-items: center; gap: 10px; }
.brand-slash { color: var(--neon); margin: 0 1px; }
.brand-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 12px var(--neon-glow), 0 0 2px var(--neon); }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-neon { background: var(--neon); color: #0a0b05; box-shadow: 0 0 0 0 var(--neon-glow); }
.btn-neon:hover { transform: translateY(-1px); box-shadow: 0 0 28px var(--neon-glow); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.22); color: var(--text); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { border-color: var(--neon); color: var(--neon); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neon);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 10px var(--neon); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }

/* ---------- scroll scrub ---------- */
.scrub { position: relative; height: var(--scrub-height, 300vh); }
.scrub-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.scrub-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background-size: cover;
  background-position: center;
}
.scrub-shade { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(7, 8, 10, 0.75) 100%), linear-gradient(to bottom, rgba(7, 8, 10, 0.55), transparent 22%, transparent 70%, var(--bg)); }
.scrub-hero .scrub-shade { background: linear-gradient(90deg, rgba(7, 8, 10, 0.82) 0%, rgba(7, 8, 10, 0.45) 30%, transparent 55%), radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(7, 8, 10, 0.75) 100%), linear-gradient(to bottom, rgba(7, 8, 10, 0.55), transparent 22%, transparent 70%, var(--bg)); }
.scrub-shade-left { background: linear-gradient(90deg, rgba(7, 8, 10, 0.5) 0%, rgba(7, 8, 10, 0.12) 34%, transparent 52%), linear-gradient(to bottom, var(--bg), transparent 6%, transparent 92%, var(--bg)); }

.overlay {
  position: absolute;
  z-index: 2;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.35s ease, transform 0.6s cubic-bezier(.2, .7, .2, 1);
  pointer-events: none;
}
.overlay.is-on { opacity: 1; transform: none; pointer-events: auto; }
.overlay-hero { left: max(24px, calc((100vw - 1200px) / 2)); bottom: 15vh; max-width: 620px; }
.overlay-hero h1 { font-size: clamp(42px, 5.6vw, 84px); }
.lede { font-size: clamp(17px, 1.4vw, 20px); color: #c4c9cf; max-width: 520px; margin: 24px 0 32px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.overlay-side { left: max(24px, calc((100vw - 1200px) / 2)); top: 50%; transform: translateY(-40%); max-width: 400px; }
.overlay-side.is-on { transform: translateY(-50%); }
.overlay-side h2 { font-size: clamp(34px, 3.8vw, 56px); margin-bottom: 18px; }
.overlay-side p:not(.eyebrow) { color: #b9bfc6; margin: 0; }
.overlay-right { left: auto; right: max(24px, calc((100vw - 1200px) / 2)); text-align: right; }

.hud {
  position: absolute;
  z-index: 2;
  top: 96px;
  right: max(24px, calc((100vw - 1200px) / 2));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}
.hud-frame b { color: var(--neon); font-weight: 500; }
.scrub-progress { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, 0.06); }
.scrub-progress span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: var(--neon); box-shadow: 0 0 12px var(--neon-glow); }
.scroll-hint {
  position: absolute;
  z-index: 2;
  bottom: 28px;
  right: max(24px, calc((100vw - 1200px) / 2));
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: opacity 0.4s;
}
.scroll-hint span { display: inline-block; color: var(--neon); animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }

/* ---------- sections ---------- */
.section { padding: clamp(96px, 14vh, 160px) 0; position: relative; }
.section-title { font-size: clamp(36px, 4.6vw, 64px); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 48px; }
.section-note { color: var(--muted); max-width: 380px; margin: 0; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.card { border-radius: var(--radius); padding: 32px 28px 36px; position: relative; overflow: hidden; transition: border-color 0.3s, transform 0.3s; }
.card::after { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 70%; background: radial-gradient(closest-side, var(--neon-glow), transparent); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.card:hover { border-color: rgba(220, 255, 30, 0.35); transform: translateY(-3px); }
.card:hover::after { opacity: 0.35; }
.card-index { font-family: var(--mono); font-size: 12px; color: var(--neon); letter-spacing: 0.1em; }
.card h3 { font-size: 26px; margin: 48px 0 12px; }
.card p { color: var(--muted); margin: 0; }

.section-work { padding-top: 40px; }
.work { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; }
.work video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.work-wide { margin-bottom: 20px; }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.work-cap {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  border-radius: 14px;
  max-width: calc(100% - 32px);
  font-size: 14px;
  color: var(--muted);
}
.work-cap strong { color: var(--text); font-family: var(--display); font-size: 18px; font-weight: 600; }
.tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--neon); }

.process-panel {
  position: absolute;
  z-index: 2;
  left: max(24px, calc((100vw - 1200px) / 2));
  top: 50%;
  transform: translateY(-50%);
  width: min(440px, calc(100vw - 48px));
  padding: 32px 32px 36px;
  border-radius: 22px;
}
.steps { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.step { display: flex; gap: 18px; opacity: 0.32; transition: opacity 0.4s; }
.step.is-on { opacity: 1; }
.step-n { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 4px; transition: color 0.4s; }
.step.is-on .step-n { color: var(--neon); text-shadow: 0 0 12px var(--neon-glow); }
.step h3 { font-size: 22px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.scrub-progress-inline { position: relative; margin-top: 28px; border-radius: 2px; }

.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; border-radius: 28px; padding: clamp(32px, 5vw, 64px); position: relative; overflow: hidden; }
.pricing::before { content: ""; position: absolute; width: 520px; height: 520px; left: -160px; top: -260px; background: radial-gradient(closest-side, rgba(220, 255, 30, 0.16), transparent); pointer-events: none; }
.price { margin: 0; display: flex; flex-direction: column; }
.price-from { font-family: var(--mono); font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.price-num { font-family: var(--display); font-weight: 700; font-size: clamp(80px, 11vw, 160px); line-height: 0.95; letter-spacing: -0.04em; color: var(--neon); text-shadow: 0 0 40px rgba(220, 255, 30, 0.25); }
.pricing-copy p { color: #c4c9cf; font-size: 19px; margin: 0 0 28px; }

.section-contact { text-align: left; padding-bottom: 120px; }
.mail {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 40px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(30px, 5.5vw, 76px);
  letter-spacing: -0.03em;
  color: var(--neon);
  border-bottom: 2px solid rgba(220, 255, 30, 0.35);
  padding-bottom: 6px;
  transition: border-color 0.3s, text-shadow 0.3s;
}
.mail span { transition: transform 0.3s; }
.mail:hover { border-color: var(--neon); text-shadow: 0 0 30px var(--neon-glow); }
.mail:hover span { transform: translateX(8px); }

.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 13px; color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.brand-sm { font-size: 13px; color: var(--text); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .cards, .work-grid, .pricing { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .overlay-hero { bottom: 9vh; right: 24px; }
  .overlay-side, .overlay-right { left: 24px; right: 24px; top: auto; bottom: 10vh; transform: translateY(24px); text-align: left; max-width: none; }
  .overlay-side.is-on { transform: none; }
  .hud { top: 84px; }
  .scroll-hint { display: none; }
  .process-panel { top: auto; bottom: 20px; transform: none; padding: 22px 22px 24px; }
  .steps { gap: 14px; }
  .step:not(.is-on) { display: none; }
  .scrub-hero .scrub-shade { background: linear-gradient(90deg, rgba(7, 8, 10, 0.82) 0%, rgba(7, 8, 10, 0.45) 30%, transparent 55%), radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(7, 8, 10, 0.75) 100%), linear-gradient(to bottom, rgba(7, 8, 10, 0.55), transparent 22%, transparent 70%, var(--bg)); }
.scrub-shade-left { background: linear-gradient(to bottom, var(--bg), transparent 14%, transparent 45%, rgba(7, 8, 10, 0.85) 100%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .overlay, .step, .card { transition: none; }
  .pulse, .scroll-hint span { animation: none; }
}

@media (max-width: 900px) {
  .work-cap { left: 10px; bottom: 10px; padding: 10px 14px; border-radius: 12px; }
  .work-cap strong { font-size: 16px; }
  .work-cap span:last-child { display: none; }
}
