:root {
  --bg: #0b0f0a;
  --bg-soft: #11160f;
  --surface: #161c13;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f3f6ef;
  --muted: #9aa394;
  --accent: #c6f24e;
  --accent-2: #6ee7a8;
  --accent-glow: rgba(198, 242, 78, 0.5);
  --radius: 18px;
  --radius-lg: 28px;
  --max: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .nav__brand, .stat__num {
  font-family: "Space Grotesk", system-ui, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

::selection { background: var(--accent); color: var(--bg); }

.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s var(--ease), opacity 0.25s;
  mix-blend-mode: difference;
}
.cursor.is-hover { width: 64px; height: 64px; background: var(--accent); }

.container { width: min(100% - 44px, var(--max)); margin-inline: auto; }

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(22px, 5vw, 56px);
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), backdrop-filter 0.4s;
}
.nav.is-scrolled {
  padding: 14px clamp(22px, 5vw, 56px);
  background: rgba(11, 15, 10, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
}
.nav__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent-glow);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.7); opacity: 0.6; } }

.nav__links { display: flex; gap: 34px; }
.nav__links a {
  position: relative;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.3s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.35s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }

.nav__cta {
  padding: 11px 22px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.nav__cta:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__burger span {
  width: 26px;
  height: 2px;
  background: var(--text);
  transition: transform 0.35s var(--ease), opacity 0.3s;
}
.nav.is-open .nav__burger span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.is-open .nav__burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: circle(0% at 100% 0%);
  transition: clip-path 0.6s var(--ease);
}
.menu.is-open { clip-path: circle(150% at 100% 0%); }
.menu__links { display: flex; flex-direction: column; gap: 18px; text-align: center; }
.menu__links a {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 9vw, 3.4rem);
  font-weight: 600;
  color: var(--text);
  transition: color 0.3s, transform 0.3s;
}
.menu__links a:hover { color: var(--accent); transform: translateX(8px); }

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px clamp(22px, 5vw, 56px) 0;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 60vw;
  height: 60vw;
  max-width: 760px;
  max-height: 760px;
  background: radial-gradient(circle, rgba(198, 242, 78, 0.16), transparent 62%);
  filter: blur(20px);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; max-width: 920px; }
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 30px;
}
.hero__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 12px var(--accent-2);
  animation: pulse 1.8s infinite;
}
.hero__title {
  font-size: clamp(2.6rem, 8vw, 6rem);
  font-weight: 700;
}
.hero__title .line { display: block; overflow: hidden; }
.line--accent {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  max-width: 560px;
  margin: 30px 0 40px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 100px;
  font-size: 0.98rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}
.btn svg { transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--accent); color: var(--bg); }
.btn--primary:hover { box-shadow: 0 14px 40px -12px var(--accent-glow); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--full { width: 100%; justify-content: center; margin-top: 8px; }

.marquee {
  position: relative;
  z-index: 2;
  margin-top: clamp(60px, 9vw, 110px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  gap: 30px;
  align-items: center;
  will-change: transform;
}
.marquee__track span {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: min(100% - 44px, var(--max));
  margin: clamp(70px, 10vw, 120px) auto;
}
.stat { display: flex; flex-direction: column; align-items: flex-start; }
.stat__num {
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 700;
  background: linear-gradient(180deg, var(--text), var(--muted));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__plus { font-family: "Space Grotesk"; font-size: 2rem; color: var(--accent); margin-top: -10px; }
.stat p { color: var(--muted); font-size: 0.95rem; margin-top: 6px; }

section.services, section.work, section.process, section.about {
  width: min(100% - 44px, var(--max));
  margin: clamp(80px, 11vw, 150px) auto;
}

.section__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 70px); }
.section__kicker {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.section__title {
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 600;
}

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  position: relative;
  padding: 38px 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.4s, transform 0.4s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(198, 242, 78, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.card:hover { border-color: rgba(198, 242, 78, 0.35); }
.card:hover::before { opacity: 1; }
.card__index {
  font-family: "Space Grotesk";
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.card h3 { font-size: 1.5rem; margin: 16px 0 12px; }
.card p { color: var(--muted); margin-bottom: 20px; }
.card ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.card ul li {
  font-size: 0.82rem;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--muted);
}

.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.project {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease);
}
.project__media {
  aspect-ratio: 16 / 11;
  transition: transform 0.7s var(--ease);
}
.project__media--1 { background: linear-gradient(135deg, #1d2a17, #3c5a2a 55%, #c6f24e); }
.project__media--2 { background: linear-gradient(135deg, #14231d, #1f6b4c 60%, #6ee7a8); }
.project__media--3 { background: linear-gradient(135deg, #161a23, #2a3d6b 60%, #7aa2ff); }
.project__media--4 { background: linear-gradient(135deg, #2a1722, #6b2a4d 55%, #ff8fc4); }
.project:hover .project__media { transform: scale(1.06); }
.project__meta {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 26px;
  background: linear-gradient(0deg, rgba(11, 15, 10, 0.9), transparent);
}
.project__meta h3 { font-size: 1.4rem; }
.project__meta span { color: var(--muted); font-size: 0.88rem; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step {
  padding: 32px 26px;
  border-top: 2px solid var(--line);
  transition: border-color 0.4s;
}
.step:hover { border-color: var(--accent); }
.step__num {
  font-family: "Space Grotesk";
  font-size: 2.4rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.12);
}
.step h3 { font-size: 1.3rem; margin: 14px 0 10px; }
.step p { color: var(--muted); font-size: 0.95rem; }

.about {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.about__lead { color: var(--muted); margin: 24px 0 28px; font-size: 1.1rem; }
.about__list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.about__list li { display: flex; gap: 12px; color: var(--text); }
.about__list span { color: var(--accent); }
.about__card {
  position: relative;
  padding: 44px 38px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.about__glow {
  position: absolute;
  top: -40%;
  right: -20%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(110, 231, 168, 0.22), transparent 65%);
  filter: blur(10px);
}
.about__quote {
  position: relative;
  font-family: "Space Grotesk";
  font-size: 1.6rem;
  line-height: 1.3;
  margin-bottom: 30px;
}
.about__sign { display: flex; align-items: center; gap: 14px; }
.about__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.about__sign strong { display: block; }
.about__sign small { color: var(--muted); }

.contact {
  position: relative;
  margin-top: clamp(80px, 11vw, 150px);
  padding: clamp(70px, 10vw, 130px) clamp(22px, 5vw, 56px);
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.contact__glow {
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 60vw;
  max-width: 900px;
  max-height: 700px;
  background: radial-gradient(circle, rgba(198, 242, 78, 0.12), transparent 60%);
  filter: blur(20px);
  pointer-events: none;
}
.contact__inner { position: relative; z-index: 2; max-width: 720px; margin-inline: auto; text-align: center; }
.contact__title { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 700; }
.contact__lead { color: var(--muted); margin: 18px 0 44px; font-size: 1.15rem; }

.form { text-align: left; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { position: relative; margin-bottom: 18px; }
.field input, .field textarea {
  width: 100%;
  padding: 20px 18px 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  resize: none;
  transition: border-color 0.3s, background 0.3s;
}
.field textarea { padding-top: 24px; }
.field label {
  position: absolute;
  left: 18px;
  top: 16px;
  color: var(--muted);
  font-size: 1rem;
  pointer-events: none;
  transition: transform 0.25s var(--ease), color 0.25s, font-size 0.25s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-12px);
  font-size: 0.72rem;
  color: var(--accent);
}
.form__status {
  margin-top: 14px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--accent-2);
  min-height: 22px;
}

.contact__info {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  text-align: left;
}
.info {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s var(--ease), background 0.3s;
}
.info:hover { border-color: var(--accent); transform: translateY(-4px); background: var(--surface); }
.info__label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.info__value { color: var(--text); font-size: 1rem; line-height: 1.5; }

.footer {
  border-top: 1px solid var(--line);
  padding: clamp(50px, 7vw, 80px) clamp(22px, 5vw, 56px) 40px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk";
  font-weight: 700;
  font-size: 1.4rem;
}
.footer__top p { color: var(--muted); max-width: 420px; justify-self: end; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 30px;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer__social { display: flex; gap: 22px; }
.footer__social a { transition: color 0.3s; }
.footer__social a:hover { color: var(--accent); }

[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 30px 24px; }
  .cards, .projects { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__top p { justify-self: start; }
}

@media (max-width: 600px) {
  .cursor { display: none; }
  .form__row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .contact__info { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
