
:root {
  --bg: #09090a;
  --panel: #111214;
  --panel-2: #151619;
  --text: #f5f5f3;
  --muted: #9b9da3;
  --line: rgba(255,255,255,.11);
  --accent: #8aa4ff;
  --max: 1240px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

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

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: .025;
  z-index: 50;
  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='.7'/%3E%3C/svg%3E");
}

.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(120px);
  opacity: .15;
  pointer-events: none;
}
.ambient-one { width: 480px; height: 480px; background: var(--accent); right: -180px; top: 15vh; }
.ambient-two { width: 360px; height: 360px; background: #6454d7; left: -220px; top: 68vh; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 82px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(9,9,10,.82), rgba(9,9,10,.2));
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(9,9,10,.8); }

.brand {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: .22em;
  font-size: 20px;
}

.nav { display: flex; gap: 32px; }
.nav a {
  font-size: 13px;
  color: #c6c7cb;
  transition: color .2s ease;
}
.nav a:hover { color: #fff; }

.menu-toggle { display: none; }

.section {
  width: min(var(--max), 92vw);
  margin: 0 auto;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 100px;
  isolation: isolate;
}

.hero-grid {
  position: absolute;
  inset: 0 -20vw;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 68%, transparent 95%);
}

.hero-content { position: relative; z-index: 2; max-width: 780px; }

.eyebrow, .section-label {
  font-size: 11px;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: #8f9198;
  font-weight: 600;
}

.hero h1 {
  margin: 24px 0 22px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(84px, 12vw, 180px);
  line-height: .78;
  letter-spacing: -.075em;
  font-weight: 600;
}
.hero h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.82);
}

.hero-sub {
  margin: 0 0 18px;
  max-width: 610px;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.25;
  letter-spacing: -.025em;
}

.hero-copy {
  max-width: 650px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  margin: 0 0 34px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: #f2f2ef; color: #111; }
.button.ghost { border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.button.ghost:hover { border-color: rgba(255,255,255,.25); }

.hero-orbit {
  position: absolute;
  right: -30px;
  width: min(40vw, 500px);
  aspect-ratio: 1;
  opacity: .8;
  z-index: 0;
}
.orbital-ring {
  position: absolute;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
}
.ring-a { inset: 3%; animation: spin 30s linear infinite; border-style: dashed; }
.ring-b { inset: 17%; animation: spinReverse 24s linear infinite; }
.ring-c { inset: 32%; border-color: rgba(138,164,255,.35); }
.orbit-core {
  position: absolute;
  inset: 40%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  display: grid;
  place-items: center;
  font-family: "Space Grotesk";
  font-size: 38px;
  color: rgba(255,255,255,.85);
  box-shadow: 0 0 80px rgba(138,164,255,.12);
}
.ring-a:before, .ring-b:before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  left: 50%;
  top: -4px;
  box-shadow: 0 0 20px var(--accent);
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 0;
  color: #6f7177;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.scroll-cue span { margin-left: 8px; }

.statement {
  min-height: 80vh;
  display: grid;
  grid-template-columns: 1fr 3fr;
  align-items: start;
  padding: 150px 0;
  border-top: 1px solid var(--line);
}
.statement-copy h2,
.section-heading h2,
.about h2,
.contact h2 {
  font-family: "Space Grotesk";
  font-size: clamp(52px, 7vw, 96px);
  line-height: .95;
  letter-spacing: -.06em;
  margin: 0;
  font-weight: 600;
}
.statement-copy p {
  margin: 48px 0 0;
  max-width: 760px;
  color: #b6b7bb;
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.6;
}

.projects { padding: 140px 0; border-top: 1px solid var(--line); }

.section-heading {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 64px;
}
.section-heading .section-label { margin-bottom: 24px; }
.section-heading p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 420px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.project-card {
  min-height: 350px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: rgba(255,255,255,.012);
  transition: background .35s ease, transform .35s ease;
}
.project-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(138,164,255,.12), transparent 38%);
  opacity: 0;
  transition: opacity .4s ease;
}
.project-card:hover { background: rgba(255,255,255,.035); }
.project-card:hover:before { opacity: 1; }
.card-index {
  font-family: "Space Grotesk";
  font-size: 12px;
  color: #686a70;
  letter-spacing: .1em;
}
.card-icon {
  position: absolute;
  right: 28px;
  top: 25px;
  font-size: 28px;
  color: #656871;
  transition: transform .3s ease, color .3s ease;
}
.project-card:hover .card-icon { transform: translate(3px,-3px); color: #c7cee6; }
.card-content { position: relative; z-index: 2; max-width: 500px; }
.category {
  display: block;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8d9098;
  margin-bottom: 14px;
}
.card-content h3 {
  font-family: "Space Grotesk";
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -.04em;
  margin: 0 0 14px;
}
.card-content p {
  margin: 0;
  color: #8d9096;
  line-height: 1.65;
  font-size: 14px;
}
.project-card.future {
  background:
    linear-gradient(135deg, rgba(138,164,255,.06), transparent 45%),
    rgba(255,255,255,.012);
}

.manifesto {
  padding: 120px 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.manifesto-line {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  white-space: nowrap;
  font-family: "Space Grotesk";
  font-size: clamp(34px, 6vw, 82px);
  font-weight: 600;
  letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.28);
}

.about {
  padding: 150px 0;
  border-top: 1px solid var(--line);
}
.about > .section-label { margin-bottom: 70px; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
}
.about-copy {
  max-width: 600px;
  color: #92949a;
  line-height: 1.8;
  font-size: 15px;
}
.about-copy .lead {
  color: #d3d4d7;
  font-size: 20px;
  line-height: 1.55;
  margin-top: 0;
}
.about-copy p + p { margin-top: 24px; }

.contact {
  padding: 170px 0 130px;
  border-top: 1px solid var(--line);
}
.contact-inner {
  background:
    radial-gradient(circle at 75% 20%, rgba(138,164,255,.16), transparent 34%),
    var(--panel);
  padding: clamp(40px, 7vw, 90px);
  border: 1px solid var(--line);
}
.contact h2 { margin: 24px 0; }
.contact p { color: var(--muted); margin: 0 0 42px; }
.contact-link {
  display: inline-flex;
  gap: 24px;
  align-items: center;
  font-size: clamp(18px, 2.4vw, 28px);
  border-bottom: 1px solid rgba(255,255,255,.25);
  padding-bottom: 5px;
}
.contact-link span { color: var(--accent); }

.footer {
  width: min(var(--max), 92vw);
  margin: 0 auto;
  padding: 58px 0 48px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  color: #72747a;
  font-size: 12px;
}
.footer-brand { color: #f4f4f2; display: inline-block; margin-bottom: 18px; }
.footer p { margin: 0; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a:hover { color: #fff; }
.copyright { text-align: right; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .75s cubic-bezier(.2,.7,.2,1), transform .75s cubic-bezier(.2,.7,.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

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

@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: 82px;
    right: 4vw;
    left: 4vw;
    padding: 22px;
    background: rgba(15,15,17,.96);
    border: 1px solid var(--line);
    border-radius: 12px;
    flex-direction: column;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: .25s ease;
  }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .menu-toggle {
    border: 0;
    background: transparent;
    display: grid;
    gap: 6px;
    padding: 8px;
  }
  .menu-toggle span { width: 22px; height: 1px; background: white; display: block; }

  .hero { align-items: flex-end; padding-bottom: 110px; }
  .hero-orbit { width: 70vw; right: -22vw; top: 18vh; opacity: .45; }
  .hero h1 { font-size: clamp(76px, 22vw, 130px); }
  .statement { grid-template-columns: 1fr; gap: 45px; }
  .section-heading { grid-template-columns: 1fr; gap: 28px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 300px; }
  .about-grid { grid-template-columns: 1fr; gap: 52px; }
  .manifesto-line { overflow: hidden; gap: 36px; }
  .footer { grid-template-columns: 1fr 1fr; }
  .copyright { text-align: left; }
}

@media (max-width: 560px) {
  .site-header { height: 72px; }
  .nav { top: 72px; }
  .hero-copy { max-width: 90%; }
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 240px; }
  .statement, .projects, .about { padding: 100px 0; }
  .contact { padding: 100px 0 80px; }
  .manifesto { padding: 80px 0; }
  .footer { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
