:root {
  --bg: #070a14;
  --panel: #0e1324;
  --panel-2: #151b2f;
  --ink: #f5efe3;
  --muted: rgba(245, 239, 227, 0.66);
  --faint: rgba(245, 239, 227, 0.38);
  --line: rgba(245, 239, 227, 0.13);
  --strong: rgba(245, 239, 227, 0.28);
  --moon: #c9b8d4;
  --warm: #c8704a;
  --green: #86c486;
  --sky: #7da3c4;
  --font: "Geist", system-ui, sans-serif;
  --display: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(201,184,212,0.18), transparent 34rem),
    radial-gradient(circle at 10% 25%, rgba(125,163,196,0.12), transparent 26rem),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
.site { min-height: 100vh; }
.nav {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 20px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 10, 20, 0.82);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-size: 24px;
}
.mark {
  width: 22px;
  height: 22px;
  border: 1px solid currentColor;
  border-radius: 50%;
  position: relative;
}
.mark:after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: currentColor;
  clip-path: polygon(58% 0, 100% 0, 100% 100%, 58% 100%, 79% 76%, 90% 50%, 79% 24%);
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav a {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.nav a:hover, .nav a.active { color: var(--ink); }
.nav .meta { justify-self: end; color: var(--faint); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; }
.container {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 56px);
}
.hero {
  min-height: 96vh;
  display: grid;
  align-items: center;
  padding: 130px 0 72px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 86px);
}
.rail {
  border-right: 1px solid var(--line);
  padding-right: 24px;
  display: grid;
  gap: 32px;
  align-content: start;
}
.label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}
.rail strong {
  display: block;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 400;
  margin-top: 6px;
}
.display {
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: 0;
}
.hero h1 {
  font-size: clamp(66px, 13vw, 218px);
  margin: 24px 0 0;
}
.hero h1 em { color: var(--moon); }
.hero-copy {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 44px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
p { color: var(--muted); line-height: 1.66; }
.hero-copy p { max-width: 560px; margin: 0; font-size: 17px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn:hover { border-color: var(--ink); }
.section { padding: clamp(72px, 10vw, 132px) 0; border-bottom: 1px solid var(--line); }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
  padding-bottom: 22px;
  margin-bottom: 46px;
  border-bottom: 1px solid var(--line);
}
.section-head h2 {
  margin: 0;
  font-size: clamp(42px, 7vw, 96px);
}
.services {
  display: grid;
  grid-template-columns: 80px 1fr 1.4fr 160px;
  border-top: 1px solid var(--line);
}
.service-row { display: contents; }
.service-row > * {
  padding: 28px 20px 28px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.service-row h3 {
  margin: 0;
  font-size: clamp(32px, 4vw, 58px);
}
.service-row p { margin: 0; }
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
}
.work-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
}
.work-shot {
  min-height: 460px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.work-shot:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  background: radial-gradient(circle at 50% 100%, var(--shot, var(--moon)), transparent 68%);
  opacity: 0.22;
}
.phone {
  width: 218px;
  aspect-ratio: 1320 / 2868;
  border: 8px solid #05070d;
  border-radius: 36px;
  background: #efe8dc;
  box-shadow: 0 28px 90px rgba(0,0,0,0.42);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mock-screen {
  width: 240px;
  aspect-ratio: 9 / 19.5;
  border: 8px solid #05070d;
  border-radius: 36px;
  background: #0b2016;
  box-shadow: 0 28px 90px rgba(0,0,0,0.42);
  padding: 22px;
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  gap: 16px;
}
.leaf-logo {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background: linear-gradient(135deg, #c6f59b, #3fa968);
  margin-bottom: auto;
  position: relative;
}
.leaf-logo:after {
  content: "";
  position: absolute;
  width: 26px;
  height: 46px;
  border-radius: 100% 0 100% 0;
  background: #082116;
  left: 24px;
  top: 13px;
  transform: rotate(18deg);
}
.progress-bars { display: grid; gap: 10px; }
.progress-bars span {
  height: 12px;
  border-radius: 999px;
  background: rgba(198,245,155,0.22);
}
.progress-bars span:nth-child(2) { width: 72%; }
.progress-bars span:nth-child(3) { width: 48%; }
.work-info { padding-top: 22px; }
.work-info h3 { margin: 0 0 8px; font-size: 44px; }
.work-info p { margin: 0; max-width: 520px; }
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(36px, 8vw, 100px);
}
.principles {
  display: grid;
  gap: 24px;
}
.principle {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.principle h3 { margin: 0 0 6px; font-size: 30px; }
.principle p { margin: 0; }
.project-hero {
  padding: 130px 0 82px;
  border-bottom: 1px solid var(--line);
}
.project-grid {
  display: grid;
  grid-template-columns: 1fr 440px;
  align-items: center;
  gap: clamp(36px, 8vw, 96px);
}
.project-hero h1 {
  font-size: clamp(68px, 11vw, 160px);
  margin: 22px 0 30px;
}
.project-hero h1 em { color: var(--app-accent, var(--moon)); }
.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.meta-grid strong {
  display: block;
  margin-top: 6px;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 400;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.feature {
  padding: 34px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature h3 { margin: 10px 0; font-size: 30px; }
.legal {
  max-width: 920px;
  padding: 130px clamp(18px, 4vw, 56px) 80px;
  margin: 0 auto;
}
.legal h1 { font-size: clamp(54px, 9vw, 116px); margin: 18px 0 28px; }
.legal h2 { font-family: var(--display); font-size: 36px; font-weight: 400; margin: 46px 0 12px; }
.legal p, .legal li { color: var(--muted); line-height: 1.72; }
.legal ul { padding-left: 20px; }
.legal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: rgba(255,255,255,0.025);
}
.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.footer {
  padding: 58px clamp(18px, 4vw, 56px) 34px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-end;
}
.footer h2 {
  font-size: clamp(44px, 7vw, 92px);
  margin: 0;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  margin-top: 58px;
  border-top: 1px solid var(--line);
  color: var(--faint);
}
@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr; gap: 14px; }
  .nav-links { overflow-x: auto; gap: 18px; padding-bottom: 2px; }
  .nav .meta { justify-self: start; }
  .hero-grid, .project-grid, .split, .contact-card { grid-template-columns: 1fr; }
  .rail { grid-template-columns: repeat(2, 1fr); border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 24px; }
  .hero-copy { align-items: flex-start; flex-direction: column; }
  .services { grid-template-columns: 1fr; }
  .service-row { display: block; border-bottom: 1px solid var(--line); padding: 24px 0; }
  .service-row > * { border-bottom: 0; padding: 4px 0; }
  .work-grid, .feature-grid { grid-template-columns: 1fr; }
  .meta-grid { grid-template-columns: repeat(2, 1fr); }
  .project-hero { padding-top: 172px; }
  .hero { padding-top: 180px; }
  .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Template celestial graphics restored for production */
.celestial {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  color: var(--moon);
}
.celestial-warm { color: var(--warm); }
.celestial-green { color: var(--green); }
.celestial + .container,
.celestial + .label,
.legal > .celestial ~ * { position: relative; z-index: 1; }
.hero > .container,
.section > .container,
.project-hero > .container { position: relative; z-index: 1; }
.star-field { position: absolute; inset: 0; }
.star {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: currentColor;
  opacity: 0.28;
  animation: twinkle 4.8s ease-in-out infinite;
  animation-delay: var(--d);
}
@keyframes twinkle {
  0%, 100% { opacity: 0.12; transform: scale(0.72); }
  50% { opacity: 0.64; transform: scale(1.2); }
}
.planet {
  position: absolute;
  display: block;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.82), color-mix(in srgb, currentColor 70%, #1b1730) 45%, #141726 78%);
  box-shadow: inset -18px -26px 60px rgba(0,0,0,0.62), 0 0 60px color-mix(in srgb, currentColor 34%, transparent);
  opacity: 0.72;
}
.planet:after {
  content: "";
  position: absolute;
  inset: 12% -34%;
  border: 1px solid currentColor;
  border-radius: 50%;
  transform: rotate(-18deg);
  opacity: 0.42;
}
.planet-a { width: 120px; height: 120px; right: 8%; top: 18%; }
.planet-b { width: 58px; height: 58px; left: 9%; bottom: 14%; opacity: 0.54; }
.orbit-system {
  position: absolute;
  width: 420px;
  height: 420px;
  right: -150px;
  bottom: -120px;
  border: 1px solid color-mix(in srgb, currentColor 34%, transparent);
  border-radius: 50%;
  opacity: 0.5;
  animation: slow-spin 46s linear infinite;
}
.orbit-system:before,
.orbit-system:after {
  content: "";
  position: absolute;
  border: 1px dashed color-mix(in srgb, currentColor 38%, transparent);
  border-radius: 50%;
}
.orbit-system:before { inset: 56px; }
.orbit-system:after { inset: 128px; border-style: solid; opacity: 0.55; }
.orbit-system i,
.orbit-system b,
.orbit-system em {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 18px currentColor;
}
.orbit-system i { width: 10px; height: 10px; top: 50%; left: -5px; }
.orbit-system b { width: 8px; height: 8px; right: 66px; top: 62px; }
.orbit-system em { width: 6px; height: 6px; left: 49%; bottom: 124px; }
@keyframes slow-spin { to { transform: rotate(360deg); } }
.constellation-a {
  position: absolute;
  width: 210px;
  height: 175px;
  left: 48%;
  top: 18%;
  color: currentColor;
  opacity: 0.55;
}
.constellation-a path { stroke: currentColor; stroke-width: 0.7; opacity: 0.58; }
.constellation-a circle { fill: currentColor; }
.comet {
  position: absolute;
  width: 160px;
  height: 2px;
  left: 18%;
  top: 28%;
  opacity: 0;
  background: linear-gradient(90deg, transparent, currentColor);
  animation: comet-fly 9s ease-in infinite;
}
.comet:after {
  content: "";
  position: absolute;
  right: 0;
  top: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 16px currentColor;
}
@keyframes comet-fly {
  0%, 78%, 100% { opacity: 0; transform: translate3d(-40px, -20px, 0) rotate(18deg); }
  9%, 34% { opacity: 0.74; }
  45% { opacity: 0; transform: translate3d(240px, 86px, 0) rotate(18deg); }
}
.celestial-section .planet-a,
.celestial-about .planet-a,
.celestial-legal .planet-a { right: -42px; top: 42px; width: 180px; height: 180px; opacity: 0.34; }
.celestial-section .orbit-system,
.celestial-about .orbit-system { left: -210px; right: auto; bottom: 12%; opacity: 0.36; }
.celestial-work .constellation-a { left: auto; right: 8%; top: 10%; }
.work-shot .celestial { z-index: 0; }
.work-shot .planet-a { width: 95px; height: 95px; right: 8%; top: 10%; opacity: 0.48; }
.work-shot .planet-b { width: 38px; height: 38px; left: 12%; bottom: 12%; }
.work-shot .orbit-system { width: 310px; height: 310px; right: -120px; bottom: -130px; opacity: 0.42; }
.work-shot .constellation-a { width: 130px; height: 110px; left: 10%; top: 12%; }
.work-shot .comet { left: 20%; top: 22%; width: 120px; }
.project-hero .planet-a { width: 190px; height: 190px; right: 5%; top: 16%; opacity: 0.44; }
.project-hero .orbit-system { width: 560px; height: 560px; right: -220px; bottom: -210px; opacity: 0.38; }
.legal { position: relative; overflow: hidden; }
.legal .celestial { position: fixed; opacity: 0.8; }
.legal .orbit-system { right: -230px; top: 160px; bottom: auto; opacity: 0.25; }
.legal .constellation-a { left: auto; right: 12%; top: 22%; opacity: 0.28; }
@media (max-width: 900px) {
  .planet-a { width: 92px; height: 92px; right: -20px; top: 130px; }
  .planet-b { display: none; }
  .orbit-system { width: 280px; height: 280px; right: -170px; bottom: -90px; }
  .constellation-a { width: 140px; height: 120px; left: auto; right: 10px; top: 42%; opacity: 0.36; }
  .comet { width: 100px; }
}
