:root {
  --bg: #050a18;
  --bg-soft: #0a1226;
  --ink: #eaf1fb;
  --muted: #9db0ca;
  --blue: #2e5fae;
  --blue-light: #6ea8ff;
  --green: #8dc63f;
  --green-soft: rgba(141, 198, 63, 0.14);
  --card: rgba(13, 22, 44, 0.55);
  --line: rgba(148, 180, 255, 0.14);
  --radius: 18px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

#space-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.space-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(5, 10, 24, 0) 40%, rgba(3, 6, 15, 0.55) 100%),
    linear-gradient(180deg, rgba(5, 10, 24, 0.35) 0%, rgba(5, 10, 24, 0) 22%, rgba(5, 10, 24, 0) 70%, rgba(3, 6, 15, 0.6) 100%);
}

main, .nav, .footer { position: relative; z-index: 2; }

.container {
  width: min(1180px, 92vw);
  margin-inline: auto;
}

h1, h2, h3, .brand-name {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3rem, 8.5vw, 6.4rem);
  font-weight: 700;
}

h1 em {
  font-style: italic;
  background: linear-gradient(100deg, var(--green) 10%, var(--blue-light) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 600;
  margin-bottom: 1.2rem;
  max-width: 22ch;
}

h3 { font-size: 1.2rem; font-weight: 600; }

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 1rem;
}

.lead, .section-lead {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  max-width: 56ch;
}

.section { padding: clamp(90px, 12vh, 150px) 0; }

.section-lead { margin-bottom: 3rem; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.8rem;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(141, 198, 63, 0.45);
  box-shadow: 0 18px 50px -22px rgba(46, 95, 174, 0.55);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  background: linear-gradient(120deg, var(--green), #6fb32a);
  color: #08130a;
  box-shadow: 0 10px 34px -12px rgba(141, 198, 63, 0.65);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(141, 198, 63, 0.8);
}

.btn-ghost {
  border-color: rgba(110, 168, 255, 0.4);
  color: var(--ink);
  background: rgba(46, 95, 174, 0.12);
}

.btn-ghost:hover {
  border-color: var(--blue-light);
  background: rgba(46, 95, 174, 0.25);
  transform: translateY(-2px);
}

.btn-sm { padding: 0.6rem 1.3rem; font-size: 0.88rem; }

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(5, 10, 24, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav-inner {
  width: min(1180px, 92vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark { width: 38px; height: 38px; }

.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.7rem;
}

.nav-links a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.25s ease;
}

.nav-links a:not(.btn):hover { color: var(--green); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 120px 0 80px;
}

.hero-inner { text-align: left; }

.hero .lead { margin: 1.6rem 0 2.4rem; }

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  width: 26px;
  height: 44px;
  border: 1.5px solid rgba(157, 176, 202, 0.5);
  border-radius: 999px;
  display: flex;
  justify-content: center;
}

.scroll-hint-line {
  width: 3px;
  height: 9px;
  margin-top: 7px;
  border-radius: 3px;
  background: var(--green);
  animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(16px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.about-copy p + p { margin-top: 1.1rem; }

.about-copy p { color: var(--muted); font-size: 1.06rem; }

.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.pillar { position: relative; overflow: hidden; }

.pillar-index {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: rgba(110, 168, 255, 0.16);
}

.pillar h3 { margin-bottom: 0.5rem; color: var(--ink); }

.pillar p { color: var(--muted); font-size: 0.95rem; }

.pillar::after {
  content: "";
  position: absolute;
  left: 1.8rem;
  bottom: 0;
  width: 34px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--green), transparent);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.service h3 { margin: 1.1rem 0 0.55rem; }

.service p { color: var(--muted); font-size: 0.96rem; }

.service-orbit {
  position: relative;
  display: block;
  width: 46px;
  height: 46px;
  border: 1.5px solid rgba(110, 168, 255, 0.45);
  border-radius: 50%;
}

.service-orbit::before {
  content: "";
  position: absolute;
  inset: 32%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #b8e07e, var(--green) 60%, #4d7d12);
}

.service-orbit i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  margin: -4.5px;
  border-radius: 50%;
  background: var(--blue-light);
  animation: orbitSpin 5s linear infinite;
}

@keyframes orbitSpin {
  from { transform: rotate(0deg) translateX(23px); }
  to { transform: rotate(360deg) translateX(23px); }
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.1rem;
}

.shot {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  isolation: isolate;
  cursor: pointer;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.shot:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(141, 198, 63, 0.5);
  box-shadow: 0 22px 60px -24px rgba(46, 95, 174, 0.7);
}

.shot {
  background:
    radial-gradient(90% 80% at 20% 15%, var(--glow-a) 0%, transparent 60%),
    radial-gradient(80% 80% at 85% 85%, var(--glow-b) 0%, transparent 62%),
    linear-gradient(160deg, #0b1430 0%, #060b1c 100%);
}

.shot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  transition: transform 0.6s ease, opacity 0.4s ease;
}

.shot:hover .shot-img { transform: scale(1.06); }

.shot-num {
  position: absolute;
  top: 0.7rem;
  right: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.6rem;
  color: rgba(234, 241, 251, 0.14);
}

.shot-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.1rem 1.2rem;
  background: linear-gradient(180deg, transparent, rgba(4, 8, 18, 0.85));
}

.shot-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid rgba(141, 198, 63, 0.4);
  border-radius: 999px;
  padding: 0.18rem 0.65rem;
  margin-bottom: 0.45rem;
}

.shot-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 5vh 5vw;
  background: rgba(3, 6, 15, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.open { opacity: 1; pointer-events: auto; }

.lightbox figure { max-width: 100%; max-height: 100%; }

.lightbox img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 90px -30px rgba(0, 0, 0, 0.85);
}

.lightbox figcaption {
  margin-top: 0.9rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(13, 22, 44, 0.7);
  color: var(--ink);
  font-size: 1.05rem;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.lightbox-close:hover {
  border-color: rgba(141, 198, 63, 0.5);
  color: var(--green);
  transform: rotate(90deg);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.testimonial { display: flex; flex-direction: column; }

.stars {
  color: var(--green);
  letter-spacing: 0.25em;
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}

.testimonial blockquote {
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}

.t-brand {
  margin-top: 1.3rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--green);
}

.t-name { font-weight: 600; font-size: 0.92rem; margin-top: 0.15rem; }

.t-role { color: var(--muted); font-size: 0.82rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  align-items: flex-start;
}

.contact-mail {
  color: var(--blue-light);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(110, 168, 255, 0.35);
  padding-bottom: 2px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.contact-mail:hover { color: var(--green); border-color: var(--green); }

.contact-note { color: var(--green); font-size: 0.92rem; }

.contact-form { display: flex; flex-direction: column; gap: 1.05rem; }

.contact-form h3 { font-size: 1.35rem; }

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.contact-form input {
  font: inherit;
  color: var(--ink);
  background: rgba(5, 10, 24, 0.6);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-form input::placeholder { color: rgba(157, 176, 202, 0.5); }

.contact-form input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(141, 198, 63, 0.18);
}

.contact-form input.invalid {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15);
}

.btn-submit { align-self: flex-start; }

.arrow { transition: transform 0.25s ease; }

.btn-submit:hover .arrow { transform: translateX(4px); }

.footer {
  border-top: 1px solid var(--line);
  background: rgba(4, 8, 18, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 3.5rem 0 2rem;
  margin-top: 4rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-brand .brand-mark { width: 46px; height: 46px; }

.footer-tag {
  font-family: var(--font-display);
  font-weight: 600;
  margin-top: 0.8rem;
}

.footer-city { color: var(--muted); font-size: 0.9rem; }

.footer-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.footer-social, .footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: flex-start;
}

.footer-social a, .footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  transition: color 0.25s ease;
}

.footer-social a:hover, .footer-nav a:hover { color: var(--green); }

.footer-copy {
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  background: linear-gradient(120deg, rgba(141, 198, 63, 0.95), rgba(111, 179, 42, 0.95));
  color: #08130a;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.95rem 1.4rem;
  border-radius: 14px;
  box-shadow: 0 18px 44px -16px rgba(141, 198, 63, 0.7);
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2), opacity 0.45s ease;
  pointer-events: none;
}

.toast.show { transform: translateY(0); opacity: 1; }

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s ease var(--d, 0s), transform 0.8s cubic-bezier(0.2, 0.7, 0.3, 1) var(--d, 0s);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 960px) {
  .services-grid, .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .burger { display: flex; }

  .nav-links {
    position: fixed;
    inset: 0 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.3rem;
    padding: 6.5rem 8vw 2.5rem;
    background: rgba(5, 10, 24, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1);
  }

  .nav-links.open { transform: translateY(0); }

  .nav-links a:not(.btn) { font-size: 1.15rem; }

  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .pillars, .services-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  h2 { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .service-orbit i, .scroll-hint-line { animation: none; }
}
