/* DeltaDevz — agency site */

:root {
  --bg: #07080c;
  --bg-2: #0d0f15;
  --surface: #12151d;
  --surface-2: #181c26;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eef0f5;
  --muted: #9aa1b2;
  --dim: #6b7285;
  --accent: #c8ff3d;
  --accent-ink: #0b0d06;
  --violet: #8f7bff;
  --grad: linear-gradient(100deg, #c8ff3d 0%, #6ef2c4 45%, #8f7bff 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font: 600 15px/1 var(--body); border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, border-color .25s, box-shadow .25s;
}
.btn span { transition: transform .25s var(--ease); }
.btn:hover span { transform: translateX(3px); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { box-shadow: 0 10px 40px -10px rgba(200, 255, 61, .55); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(7, 8, 12, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 20px/1 var(--display); letter-spacing: -0.02em; }
.brand b { font-weight: 700; color: var(--accent); }
.brand-mark { width: 28px; height: 28px; color: var(--accent); }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a { padding: 10px 14px; border-radius: 999px; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-links .nav-cta-mobile { display: none; }
.menu-btn { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; padding: 120px 0 90px; overflow: hidden;
  isolation: isolate;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-glow {
  position: absolute; z-index: -2; width: 900px; height: 900px; right: -260px; top: -200px;
  background: radial-gradient(closest-side, rgba(143, 123, 255, .22), transparent 70%),
              radial-gradient(closest-side at 30% 70%, rgba(200, 255, 61, .10), transparent 70%);
  filter: blur(10px);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 20%, transparent 75%);
  opacity: .5;
}
.hero-inner { position: relative; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px;
  font: 500 12px/1.3 var(--mono); color: var(--muted); letter-spacing: .02em;
  background: rgba(13, 15, 21, .6);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(200, 255, 61, .6); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(200, 255, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(200, 255, 61, 0); } }
.hero-title { font-size: clamp(42px, 7.2vw, 94px); margin: 26px 0 24px; letter-spacing: -0.04em; line-height: .98; }
.hero-sub { max-width: 560px; font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 14px 48px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 620px; }
.hero-stats li { display: flex; align-items: center; gap: 14px; }
.hero-stats b { font: 700 44px/1 var(--display); letter-spacing: -0.03em; }
.hero-stats span { font-size: 13px; line-height: 1.35; color: var(--muted); }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid var(--line-2); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding: 22px 0; }
.marquee-track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font: 600 clamp(20px, 2.4vw, 30px)/1 var(--display); letter-spacing: -0.02em; white-space: nowrap; }
.marquee i { font-style: normal; color: var(--accent); font: 700 22px/1 var(--display); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.sec-head { margin-bottom: clamp(40px, 6vw, 64px); }
.sec-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.sec-head-row .sec-lead { max-width: 400px; margin: 0; }
.label { font: 500 13px/1 var(--mono); color: var(--accent); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 20px; }
.sec-title { font-size: clamp(34px, 5.4vw, 64px); letter-spacing: -0.035em; }
.sec-lead { color: var(--muted); font-size: 17px; max-width: 540px; margin-top: 22px; }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc {
  position: relative; padding: 30px 28px 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .3s, transform .35s var(--ease), background-color .3s;
  overflow: hidden;
}
.svc::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(200, 255, 61, .09), transparent 60%);
}
.svc:hover { border-color: var(--line-2); transform: translateY(-4px); }
.svc:hover::before { opacity: 1; }
.svc-ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: rgba(200, 255, 61, .1); color: var(--accent); margin-bottom: 26px; }
.svc-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc h3 { font-size: 23px; margin-bottom: 10px; }
.svc p { color: var(--muted); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.tags li { font: 500 12px/1 var(--mono); color: var(--muted); padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; }

/* ---------- work ---------- */
.work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s, transform .35s var(--ease); }
.card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 22px 24px 26px; }
.card-tag { font: 500 12px/1 var(--mono); color: var(--accent); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .04em; }
.card h3 { font-size: 22px; margin-bottom: 8px; }
.card-body > p:last-child { color: var(--muted); font-size: 15px; }

/* ---------- stack ---------- */
.stack { padding: 56px 0; border-bottom: 1px solid var(--line); }
.stack-inner { display: flex; align-items: center; gap: 32px; }
.stack .label { margin: 0; flex: none; }
.logos { display: flex; flex-wrap: wrap; gap: 10px; }
.logos li { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; color: var(--muted); }
.logos img { width: 20px; height: 20px; }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 26px 22px 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.step::after {
  content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 2px; border-radius: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease) .2s;
}
.step.is-in::after { transform: scaleX(1); }
.step-n { font: 500 13px/1 var(--mono); color: var(--dim); }
.step h3 { font-size: 22px; margin: 34px 0 10px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- team ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.member { padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: border-color .3s, transform .35s var(--ease); }
.member:hover { border-color: var(--line-2); transform: translateY(-4px); }
.avatar {
  --h: 76;
  position: relative; width: 100%; aspect-ratio: 1; border-radius: 14px; margin-bottom: 22px; overflow: hidden;
  display: grid; place-items: center;
  background:
    radial-gradient(120% 90% at 20% 10%, hsl(var(--h) 90% 60% / .35), transparent 60%),
    radial-gradient(120% 90% at 90% 100%, hsl(calc(var(--h) + 60) 80% 55% / .3), transparent 60%),
    var(--surface-2);
}
.avatar::before {
  content: ""; position: absolute; width: 70%; aspect-ratio: 1.15; opacity: .14;
  clip-path: polygon(50% 0, 100% 100%, 0 100%); background: hsl(var(--h) 90% 70%);
}
.avatar span { position: relative; font: 700 clamp(36px, 4vw, 52px)/1 var(--display); letter-spacing: -0.03em; }
.avatar-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; transition: transform .6s var(--ease); }
.member:hover .avatar-img { transform: scale(1.04); }
.member h3 { font-size: 20px; margin-bottom: 6px; }
.member-role { color: var(--muted); font-size: 14.5px; }
.member-link { display: inline-block; margin-top: 14px; font: 500 13px/1 var(--mono); color: var(--accent); }
.member-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- contact ---------- */
.contact { position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; left: -200px; bottom: -300px; width: 700px; height: 700px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(200, 255, 61, .09), transparent 70%);
}
.contact-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-list { margin-top: 40px; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.ci { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); color: var(--accent); }
.ci svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.contact-list small { display: block; font: 500 12px/1.4 var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .04em; }
.contact-list a, .contact-list span { font-size: 17px; font-weight: 500; }
.contact-list a:hover { color: var(--accent); }

.form { padding: clamp(24px, 3.4vw, 36px); border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--surface); display: grid; gap: 20px; }
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-size: 14px; font-weight: 500; padding: 0; margin-bottom: 0; }
.field legend { margin-bottom: 8px; }
.opt { color: var(--dim); font-weight: 400; }
.field input[type="text"], .field textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--text); font: 400 15px/1.5 var(--body); resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200, 255, 61, .15); }
.field [aria-invalid="true"] { border-color: #ff6b6b; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { position: relative; cursor: pointer; }
.pills input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pills span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--muted); transition: all .2s; user-select: none; }
.pills label:hover span { border-color: var(--text); color: var(--text); }
.pills input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.pills input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-error { color: #ff8f8f; font-size: 14px; }
.form-note { font-size: 13px; color: var(--dim); text-align: center; margin-top: -6px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 22px; margin-left: auto; }
.footer-links a { color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.copy { width: 100%; color: var(--dim); font-size: 13px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .services, .work { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .stack-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
}
@media (max-width: 820px) {
  .nav-cta { display: none; }
  .menu-btn {
    display: grid; place-content: center; gap: 6px; margin-left: auto;
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; cursor: pointer;
  }
  .menu-btn span { display: block; width: 18px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease); }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav-links {
    position: fixed; inset: 72px 0 auto; flex-direction: column; gap: 0; margin: 0;
    padding: 12px var(--gutter) 24px; background: rgba(7, 8, 12, .97); border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 16px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 18px; color: var(--text); }
  .nav-links .nav-cta-mobile { display: block; border: 0; margin-top: 16px; text-align: center; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; padding: 15px; }
  .nav.menu-open { background: rgba(7, 8, 12, .97); }
}
@media (max-width: 640px) {
  .services, .work, .steps { grid-template-columns: 1fr; }
  .team { gap: 12px; }
  .member { padding: 16px; }
  .member h3 { font-size: 16px; }
  .member-role { font-size: 13px; }
  .avatar { margin-bottom: 14px; }
  .hero { padding-top: 104px; }
  .hero-stats { gap: 20px; }
  .hero-stats li { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hero-stats b { font-size: 34px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .kicker-extra { display: none; }
  .step h3 { margin-top: 18px; }
  .footer-links { margin-left: 0; width: 100%; }
  .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
