:root {
  --bg: #07140f;
  --bg-2: #0d2419;
  --ink: #f3f7f4;
  --muted: #a8bdb0;
  --accent: #00a65a;
  --accent-2: #7dffb3;
  --line: rgba(243, 247, 244, 0.12);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(0, 166, 90, 0.28), transparent 55%),
    radial-gradient(900px 500px at -10% 30%, rgba(125, 255, 179, 0.08), transparent 50%),
    linear-gradient(165deg, var(--bg) 0%, #05110c 45%, var(--bg-2) 100%);
  overflow-x: hidden;
}

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

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.brand span {
  color: var(--accent-2);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  font-size: 0.9rem;
  color: var(--muted);
}

.site-header nav a:hover {
  color: var(--ink);
}

.nav-cta {
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--line);
  color: var(--ink) !important;
  transition: border-color 160ms ease, background 160ms ease;
}

.nav-cta:hover {
  border-color: var(--accent);
  background: rgba(0, 166, 90, 0.12);
}

.hero {
  position: relative;
  min-height: calc(100vh - 5rem);
  display: grid;
  align-items: end;
  padding: clamp(2rem, 8vh, 5rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 8vh, 5rem);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: -10% 0 0 35%;
  background-image:
    linear-gradient(rgba(243, 247, 244, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 247, 244, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 60% 40%, black 20%, transparent 70%);
  transform: perspective(900px) rotateY(-18deg) rotateX(8deg);
  animation: drift 18s linear infinite;
}

.hero-glow {
  position: absolute;
  width: min(70vw, 640px);
  aspect-ratio: 1;
  right: -8%;
  top: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 166, 90, 0.45), transparent 65%);
  filter: blur(10px);
  animation: pulse 6s ease-in-out infinite;
}

.hero-orbit {
  position: absolute;
  width: min(48vw, 420px);
  aspect-ratio: 1;
  right: 8%;
  top: 22%;
  border: 1px solid rgba(125, 255, 179, 0.25);
  border-radius: 50%;
  animation: spin 28s linear infinite;
}

.hero-orbit::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-2);
  top: 50%;
  left: -5px;
  box-shadow: 0 0 18px var(--accent-2);
}

.hero-copy {
  max-width: 42rem;
  animation: rise 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand-mark {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.lede {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.55;
  max-width: 36rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.2rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #04110b;
}

.btn-primary:hover {
  background: #12bf6d;
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: rgba(125, 255, 179, 0.45);
}

.work {
  padding: clamp(3.5rem, 10vh, 6rem) clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
}

.work-intro {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.work-intro h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}

.work-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.work-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.work-list li {
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.35rem 2rem;
}

@media (min-width: 720px) {
  .work-list li {
    grid-template-columns: 14rem 1fr;
    align-items: baseline;
  }
}

.work-list h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.work-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.site-footer {
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0.2rem 0;
}

.site-footer strong {
  color: var(--ink);
  font-family: var(--font-display);
}

.site-footer a:hover {
  color: var(--accent-2);
}

@media (max-width: 720px) {
  .site-header nav a:not(.nav-cta) {
    display: none;
  }

  .hero {
    align-items: center;
  }

  .hero-grid,
  .hero-orbit {
    opacity: 0.55;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: perspective(900px) rotateY(-18deg) rotateX(8deg) translateY(0);
  }
  to {
    transform: perspective(900px) rotateY(-18deg) rotateX(8deg) translateY(-56px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .hero-grid,
  .hero-glow,
  .hero-orbit {
    animation: none;
  }
}
