
:root {
  --bg: #050806;
  --panel: rgba(15, 25, 19, .62);
  --green: #8cffb0;
  --green-bright: #b4ffca;
  --muted: #89968d;
  --line: rgba(172, 255, 195, .13);
  --font: "Manrope", sans-serif;
  --display: "Space Grotesk", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: #f1f7f2;
  background: var(--bg);
  font-family: var(--font);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .17;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.17'/%3E%3C/svg%3E");
}

#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.ambient {
  position: fixed;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: -2;
  opacity: .14;
}
.ambient-one { background: #00d95f; top: 5%; left: -250px; }
.ambient-two { background: #087e48; right: -260px; top: 48%; }

.site-header {
  width: min(1380px, calc(100% - 64px));
  height: 86px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.07);
  position: relative;
  z-index: 20;
}
.logo {
  font: 700 27px var(--display);
  letter-spacing: -1.8px;
}
.logo span { color: var(--green); }

.nav, .header-right, .language-switch {
  display: flex;
  align-items: center;
}
.nav { gap: 30px; }
.nav a {
  font-size: 12px;
  color: #9ba79e;
  transition: color .25s;
}
.nav a:hover, .nav a.active { color: var(--green-bright); }
.header-right { gap: 22px; }
.language-switch {
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255,255,255,.035);
}
.lang {
  border: 0;
  color: #8b998f;
  background: transparent;
  padding: 6px 8px;
  font-size: 10px;
  cursor: pointer;
  border-radius: 20px;
  transition: .25s;
}
.lang.active {
  color: #07110a;
  background: var(--green);
}
.header-contact {
  font-size: 11px;
  padding: 12px 17px;
  border-radius: 30px;
  border: 1px solid rgba(140,255,176,.3);
  transition: .3s;
}
.header-contact:hover {
  background: var(--green);
  color: #07110a;
  box-shadow: 0 0 25px rgba(140,255,176,.25);
}
.menu-toggle { display: none; }

.hero {
  width: min(1380px, calc(100% - 64px));
  min-height: 590px;
  margin: auto;
  padding: 95px 0 65px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-topline, .visual-top, .project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hero-topline {
  width: min(540px, 100%);
  font-size: 10px;
  letter-spacing: 2px;
  color: #91a096;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
  margin-right: 10px;
}
.hero-topline span:nth-child(2) { margin-right: auto; }
.hero-index { color: #627168; }

.hero h1 {
  font: 600 clamp(52px, 7.8vw, 112px)/.99 var(--display);
  letter-spacing: -7px;
  margin: 38px 0 30px;
  position: relative;
  z-index: 2;
}
.gradient-text {
  color: transparent;
  background: linear-gradient(100deg, #eaffef 0%, #8cffb0 45%, #3e9d67 100%);
  background-clip: text;
  -webkit-background-clip: text;
}
.hero-bottom {
  width: min(590px, 100%);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  position: relative;
  z-index: 2;
}
.hero-bottom p {
  max-width: 360px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}
.scroll-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--green);
  font-size: 11px;
  white-space: nowrap;
}
.scroll-arrow {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: .3s;
}
.scroll-link:hover .scroll-arrow {
  background: var(--green);
  color: #061009;
  transform: translateY(4px);
}

.hero-orb {
  width: 340px;
  height: 340px;
  position: absolute;
  right: 6%;
  top: 105px;
  display: grid;
  place-items: center;
  pointer-events: none;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb-glass {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(220,255,229,.8), transparent 8%),
    radial-gradient(circle at 35% 30%, rgba(108,255,155,.75), transparent 30%),
    radial-gradient(circle at 65% 75%, #07552e, #03190e 65%, #020704);
  box-shadow: inset -15px -20px 45px #020a05, inset 10px 10px 35px rgba(255,255,255,.2), 0 0 90px rgba(42,255,117,.2);
  animation: orbPulse 5s ease-in-out infinite;
}
.orb-glow {
  position: absolute;
  width: 260px;
  height: 70px;
  bottom: 35px;
  border-radius: 50%;
  background: #00ed6b;
  filter: blur(55px);
  opacity: .2;
}
.orb-ring {
  position: absolute;
  border: 1px solid rgba(146,255,179,.25);
  border-radius: 50%;
  transform: rotate(-25deg);
}
.ring-one { width: 310px; height: 120px; }
.ring-two { width: 360px; height: 155px; transform: rotate(55deg); border-color: rgba(146,255,179,.12); }
.floating-word {
  position: absolute;
  color: rgba(187,255,204,.35);
  font: 600 10px var(--display);
  letter-spacing: 3px;
}
.word-one { right: 4%; top: 100px; }
.word-two { right: 0; bottom: 130px; }
.word-three { right: 28%; top: 115px; }

.work-section {
  width: min(1380px, calc(100% - 64px));
  margin: 20px auto 150px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding-bottom: 30px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.section-kicker {
  color: var(--green);
  font: 600 10px var(--display);
  letter-spacing: 2.5px;
}
.section-heading h2, .end-panel h2 {
  font: 600 clamp(34px, 5vw, 62px)/1.1 var(--display);
  letter-spacing: -3px;
  margin: 14px 0 0;
}
.section-heading h2 span { color: var(--green); }
.section-heading > p {
  text-align: right;
  color: #829087;
  font-size: 11px;
  line-height: 1.8;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
}
.project-card {
  min-width: 0;
  border: 1px solid rgba(182,255,199,.12);
  background: linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.018));
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 18px 55px rgba(0,0,0,.18);
  transition: border-color .4s, box-shadow .4s, transform .4s;
  transform-style: preserve-3d;
}
.project-card:hover {
  border-color: rgba(140,255,176,.42);
  box-shadow: 0 25px 75px rgba(0,0,0,.35), 0 0 35px rgba(39,255,111,.08);
}
.project-card.featured { grid-column: span 1; }
.project-info { padding: 25px 28px 28px; }
.project-meta {
  color: #718078;
  font: 9px var(--display);
  letter-spacing: 1.5px;
}
.project-info h3 {
  font: 600 clamp(20px, 2.4vw, 28px) var(--display);
  letter-spacing: -.8px;
  margin: 17px 0 10px;
}
.project-info p {
  min-height: 48px;
  max-width: 470px;
  color: #94a097;
  font-size: 12px;
  line-height: 1.8;
  margin: 0 0 23px;
}
.project-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--green);
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 17px;
  font-size: 11px;
  transition: .3s;
}
.project-link span:last-child { font-size: 17px; transition: transform .3s; }
.project-link:hover span:last-child { transform: translate(4px,-4px); }

.end-panel {
  width: min(1380px, calc(100% - 64px));
  margin: 0 auto 100px;
  padding: 75px 8%;
  border: 1px solid rgba(140,255,176,.2);
  border-radius: 26px;
  background:
    radial-gradient(ellipse at 85% 20%, rgba(49,190,99,.18), transparent 45%),
    linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.018));
  backdrop-filter: blur(25px);
  position: relative;
  overflow: hidden;
}
.end-panel::after {
  content: "Q";
  position: absolute;
  right: 8%;
  top: -80px;
  font: 700 300px var(--display);
  color: rgba(140,255,176,.035);
  pointer-events: none;
}
.end-panel h2 { margin: 22px 0 15px; }
.end-panel p { color: #93a197; font-size: 13px; }
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 35px;
  margin-top: 22px;
  padding: 16px 22px;
  border-radius: 40px;
  color: #06110a;
  background: var(--green);
  font-size: 12px;
  font-weight: 800;
  transition: .3s;
}
.cta-button:hover { transform: translateY(-4px); box-shadow: 0 12px 35px rgba(140,255,176,.2); }

.footer {
  width: min(1380px, calc(100% - 64px));
  min-height: 100px;
  margin: auto;
  border-top: 1px solid rgba(255,255,255,.09);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.footer > span, .footer > a:last-child {
  color: #718078;
  font-size: 10px;
  letter-spacing: 1px;
}

.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes orbFloat { 0%,100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-18px) rotate(5deg); } }
@keyframes orbPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes carHover { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .nav { gap: 15px; }
  .nav a { font-size: 10px; }
  .header-contact { display: none; }
  .hero-orb { right: 0; opacity: .65; transform: scale(.8); }
  .hero h1 { letter-spacing: -4px; }
}

@media (max-width: 680px) {
  .site-header, .hero, .work-section, .footer, .end-panel {
    width: calc(100% - 36px);
  }

  .site-header { height: 72px; }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 0;
    background: transparent;
    padding: 10px;
    z-index: 25;
  }

  .menu-toggle span { width: 23px; height: 1px; background: var(--green); }

  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    padding: 22px;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(5,12,8,.96);
    backdrop-filter: blur(25px);
  }

  .nav.open { display: flex; }
  .nav a { font-size: 13px; }
  .header-right { margin-left: auto; margin-right: 12px; }

  .hero { min-height: 560px; padding-top: 90px; }
  .hero h1 { font-size: clamp(48px, 12vw, 72px); letter-spacing: -3px; }

  .hero-orb { width: 220px; height: 220px; top: 240px; right: -35px; opacity: .45; }
  .orb-glass { width: 125px; height: 125px; }
  .ring-one { width: 210px; height: 85px; }
  .ring-two { width: 240px; height: 105px; }

  .word-one { top: 220px; right: 4%; }
  .word-two { bottom: 80px; right: 0; }
  .word-three { display: none; }

  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-bottom p { font-size: 12px; }

  .section-heading { align-items: flex-start; gap: 15px; }
  .section-heading h2 { font-size: 34px; letter-spacing: -2px; }
  .section-heading > p { font-size: 9px; }

  .project-grid { grid-template-columns: 1fr; gap: 18px; }
  .project-info { padding: 22px; }
  .project-info p { min-height: 0; }

  .end-panel { padding: 48px 25px; }
  .end-panel h2 { font-size: 39px; letter-spacing: -2px; }

  .footer { flex-wrap: wrap; padding: 25px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
