:root {
  --background: 0 0% 10%;
  --foreground: 0 0% 96%;
  --primary: 119 99% 46%;
  --primary-foreground: 0 0% 4%;
  --secondary: 0 0% 18%;
  --muted: 0 0% 16%;
  --muted-foreground: 0 0% 60%;
  --border: 0 0% 20%;
  --nav-button: 0 0% 18%;
  --hero-bg: 0 0% 8%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: hsl(var(--hero-bg));
  color: hsl(var(--foreground));
  font-family: "Sora", sans-serif;
  overflow-x: hidden;
}

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

.site-shell {
  min-height: 100vh;
  background: hsl(var(--hero-bg));
}

.navbar {
  position: fixed;
  top: 16px;
  left: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 10px 12px;
  border: 1px solid hsl(var(--border) / 0.62);
  border-radius: 14px;
  background: hsl(var(--hero-bg) / 0.58);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
  pointer-events: none;
}

.navbar a {
  pointer-events: auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: hsl(var(--foreground));
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.logo img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border: 1px solid hsl(var(--primary) / 0.42);
  border-radius: 50%;
  box-shadow: 0 0 24px hsl(var(--primary) / 0.18);
}

.nav-center {
  display: flex;
  gap: 32px;
}

.nav-center a {
  color: hsl(var(--muted-foreground));
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.nav-center a:hover {
  color: hsl(var(--foreground));
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 8px;
  color: hsl(var(--foreground));
  background: hsl(var(--nav-button));
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: transform 160ms ease, background 160ms ease;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.lang-toggle {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid hsl(var(--border));
  border-radius: 8px;
  color: hsl(var(--primary));
  background: hsl(var(--nav-button));
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.lang-toggle:hover {
  background: hsl(0 0% 23%);
}

.lang-toggle:active {
  transform: scale(0.97);
}

.nav-cta:hover {
  background: hsl(0 0% 23%);
}

.nav-cta:active,
.primary-action:active,
.secondary-action:active {
  transform: scale(0.97);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: hsl(var(--hero-bg));
}

.spline-bg,
.fallback-grid,
.overlay {
  position: absolute;
  inset: 0;
}

.spline-bg {
  z-index: 1;
  opacity: 0.78;
  pointer-events: auto;
}

.hero.is-wheel-scrolling .spline-bg {
  pointer-events: none;
}

.spline-bg spline-viewer {
  display: block;
  width: 100%;
  height: 100%;
}

.fallback-grid {
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 34%, hsl(var(--primary) / 0.18), transparent 28%),
    radial-gradient(circle at 58% 60%, rgba(255,255,255,0.09), transparent 24%),
    linear-gradient(hsl(var(--border) / 0.22) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--border) / 0.18) 1px, transparent 1px);
  background-size: auto, auto, 58px 58px, 58px 58px;
}

.overlay {
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.84), rgba(0,0,0,0.28) 48%, rgba(0,0,0,0.46)),
    linear-gradient(0deg, rgba(0,0,0,0.72), transparent 42%);
}

.profile-orb {
  position: absolute;
  right: clamp(2rem, 8vw, 7rem);
  bottom: clamp(5rem, 11vw, 10rem);
  z-index: 4;
  pointer-events: none;
  width: clamp(150px, 17vw, 250px);
  aspect-ratio: 1;
  border: 1px solid hsl(var(--primary) / 0.38);
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 0 10px hsl(var(--primary) / 0.04),
    0 0 90px hsl(var(--primary) / 0.22);
}

.profile-orb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: min(90%, 780px);
  padding: 130px clamp(1.5rem, 4vw, 4rem) clamp(2.5rem, 5vw, 4rem);
  pointer-events: none;
}

.micro {
  margin: 0 0 16px;
  color: hsl(var(--primary));
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 14px;
  color: hsl(var(--foreground));
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

h1 span {
  color: hsl(var(--primary));
}

.subtitle {
  margin: 0 0 18px;
  color: hsl(var(--foreground) / 0.84);
  font-size: clamp(1.125rem, 2.5vw, 1.875rem);
  font-weight: 300;
}

.description {
  max-width: 650px;
  margin: 0 0 28px;
  color: hsl(var(--muted-foreground));
  font-size: clamp(0.875rem, 1.5vw, 1.25rem);
  font-weight: 300;
  line-height: 1.62;
}

.hero-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-weight: 700;
  pointer-events: auto;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 2px;
  font-size: 0.86rem;
  font-weight: 700;
  transition: filter 160ms ease, transform 160ms ease;
}

.primary-action {
  color: hsl(var(--primary-foreground));
  background: hsl(var(--primary));
}

.secondary-action {
  color: hsl(var(--background));
  background: #ffffff;
}

.primary-action:hover {
  filter: brightness(1.1);
}

.secondary-action:hover {
  filter: brightness(0.9);
}

.trust-line {
  margin: 20px 0 0;
  color: hsl(var(--muted-foreground) / 0.68);
  font-size: 0.76rem;
  font-weight: 300;
}

.animate-up {
  opacity: 0;
  animation: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.content-section {
  padding: clamp(5rem, 10vw, 9rem) clamp(1.5rem, 5vw, 4rem);
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--background));
}

.section-kicker {
  margin: 0 0 18px;
  color: hsl(var(--primary));
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.content-section h2 {
  max-width: 980px;
  margin: 0 0 34px;
  font-size: clamp(2.25rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.service-grid article,
.project-list article {
  min-height: 220px;
  padding: 24px;
  border: 1px solid hsl(var(--border));
  border-radius: 8px;
  background: hsl(var(--secondary));
}

.service-grid span {
  color: hsl(var(--primary));
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.service-grid strong {
  display: block;
  margin: 54px 0 12px;
  font-size: 1.25rem;
}

.service-grid p,
.split-section > p {
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 42px;
  align-items: center;
}

.project-list {
  display: grid;
  gap: 12px;
}

.project-list article {
  min-height: auto;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
}

.project-list span {
  color: hsl(var(--foreground));
  font-size: clamp(1.2rem, 2.4vw, 2rem);
  font-weight: 700;
}

.project-list strong {
  color: hsl(var(--muted-foreground));
  font-weight: 400;
}

.contact-section {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 780px) {
  .nav-center,
  .nav-cta {
    display: none;
  }

  .navbar {
    top: 12px;
    left: 12px;
    right: 12px;
    padding: 8px 10px;
  }

  .hero-content {
    max-width: 100%;
    padding-inline: 24px;
  }

  .profile-orb {
    right: 24px;
    top: 96px;
    bottom: auto;
    width: 118px;
  }

  .overlay {
    background:
      linear-gradient(0deg, rgba(0,0,0,0.82), rgba(0,0,0,0.28) 60%, rgba(0,0,0,0.56)),
      linear-gradient(90deg, rgba(0,0,0,0.7), rgba(0,0,0,0.2));
  }

  .service-grid,
  .split-section {
    grid-template-columns: 1fr;
  }

  .project-list article {
    align-items: flex-start;
    flex-direction: column;
  }
}
