:root {
  --bg: #07090d;
  --bg-soft: #0c1017;
  --panel: rgba(255,255,255,.045);
  --line: rgba(255,255,255,.12);
  --text: #f4f6f8;
  --muted: #9da6b5;
  --accent: #7c5cff;
  --accent-2: #28d7d0;
  --max-width: 1320px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 72% 10%, rgba(124,92,255,.14), transparent 28rem),
    radial-gradient(circle at 15% 42%, rgba(40,215,208,.07), transparent 26rem),
    var(--bg);
  font-family: "DM Sans", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  z-index: -2;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.noise {
  position: fixed;
  inset: 0;
  opacity: .035;
  pointer-events: none;
  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='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,92,255,.11), transparent 68%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
  transition: opacity .25s;
}

.site-header {
  width: min(calc(100% - 48px), var(--max-width));
  height: 92px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -.03em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.75);
  font-size: 14px;
}

.brand-name {
  font-size: 15px;
  letter-spacing: .16em;
}

.nav {
  display: flex;
  gap: 34px;
  color: var(--muted);
  font-size: 14px;
}

.nav a,
.social-links a,
footer > a:last-child {
  transition: color .2s ease;
}

.nav a:hover,
.social-links a:hover,
footer > a:last-child:hover {
  color: var(--text);
}

.header-cta {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.header-cta span,
.project-arrow,
.contact-link span {
  transition: transform .2s ease;
}

.header-cta:hover span,
.contact-link:hover span {
  transform: translate(3px, -3px);
}

.hero {
  width: min(calc(100% - 48px), var(--max-width));
  min-height: calc(100vh - 92px);
  margin: auto;
  padding: 12vh 0 10vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow,
.section-label {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 18px var(--accent-2);
}

.hero h1 {
  max-width: 980px;
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(4rem, 8vw, 8.6rem);
  line-height: .92;
  letter-spacing: -.065em;
  font-weight: 600;
}

.gradient-text {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, #fff 0%, #a99aff 44%, #4de5dd 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy {
  max-width: 610px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 38px;
}

.button {
  min-height: 52px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border: 1px solid var(--line);
  font-size: 14px;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.35);
}

.button-primary {
  background: var(--text);
  color: #090b10;
  border-color: var(--text);
}

.button-primary:hover {
  background: #dfe3e8;
}

.button-secondary {
  background: rgba(255,255,255,.025);
  backdrop-filter: blur(10px);
}

.signal-card {
  position: absolute;
  right: 0;
  bottom: 11%;
  width: 310px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(7,9,13,.66);
  backdrop-filter: blur(18px);
  transform: rotate(-2deg);
}

.signal-top,
.signal-bottom {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .16em;
}

.signal-grid {
  height: 120px;
  margin: 18px 0;
  display: grid;
  grid-template-columns: repeat(6,1fr);
  gap: 6px;
}

.signal-grid i {
  background: linear-gradient(to top, rgba(124,92,255,.28), rgba(40,215,208,.9));
  transform-origin: bottom;
  animation: pulse 2.4s ease-in-out infinite;
}

.signal-grid i:nth-child(2n) { animation-delay: -.7s; }
.signal-grid i:nth-child(3n) { animation-delay: -1.2s; }
.signal-grid i:nth-child(4n) { animation-delay: -1.8s; }

@keyframes pulse {
  0%,100% { transform: scaleY(.25); opacity: .5; }
  50% { transform: scaleY(1); opacity: 1; }
}

.scroll-cue {
  position: absolute;
  left: 0;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.scroll-cue i {
  width: 48px;
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--text);
  transform: translateX(-100%);
  animation: scan 2s infinite;
}

@keyframes scan {
  to { transform: translateX(100%); }
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  width: 520px;
  height: 520px;
  right: -150px;
  top: 5%;
}

.orbit-two {
  width: 360px;
  height: 360px;
  right: -70px;
  top: 16%;
}

.statement,
.projects-section,
.contact-section {
  width: min(calc(100% - 48px), var(--max-width));
  margin: auto;
  padding: 130px 0;
  border-top: 1px solid var(--line);
}

.statement-grid,
.contact-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(50px, 8vw, 140px);
}

.statement h2,
.section-heading h2,
.contact-section h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.7rem, 5vw, 5.4rem);
  line-height: 1;
  letter-spacing: -.055em;
  font-weight: 600;
}

.statement-grid > div > p,
.section-heading > p,
.contact-panel > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.75;
}

.capabilities {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.capabilities span {
  padding: 10px 13px;
  border: 1px solid var(--line);
  color: #c9ced7;
  font-size: 13px;
}

.section-heading {
  margin: 44px 0 58px;
  display: grid;
  grid-template-columns: 1.1fr .6fr;
  gap: 60px;
  align-items: end;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.project-card {
  min-width: 0;
}

.project-featured {
  grid-column: 1 / -1;
}

.project-visual {
  min-height: 400px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  transition: transform .35s ease, border-color .35s ease;
}

.project-featured .project-visual {
  min-height: 580px;
}

.project-card:hover .project-visual {
  transform: scale(.992);
  border-color: rgba(255,255,255,.3);
}

.project-index {
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 2;
  color: rgba(255,255,255,.5);
  font-size: 11px;
  letter-spacing: .2em;
}

.visual-one {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(124,92,255,.25), transparent 42%),
    linear-gradient(315deg, rgba(40,215,208,.16), transparent 50%),
    #0a0d13;
}

.visual-one::before {
  content: "";
  position: absolute;
  width: 36%;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.3);
  transform: rotate(45deg);
}

.visual-word {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(7rem, 18vw, 17rem);
  letter-spacing: -.12em;
  color: rgba(255,255,255,.96);
  position: relative;
  z-index: 1;
  mix-blend-mode: screen;
}

.visual-lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 11%, rgba(255,255,255,.035) 11% calc(11% + 1px));
}

.visual-two {
  background:
    radial-gradient(circle at 25% 75%, rgba(124,92,255,.45), transparent 25%),
    #10141c;
}

.visual-circle {
  position: absolute;
  width: 350px;
  height: 350px;
  right: -55px;
  top: -60px;
  border-radius: 50%;
  border: 60px solid rgba(255,255,255,.08);
  box-shadow: 0 0 0 1px rgba(255,255,255,.16);
}

.visual-label {
  position: absolute;
  left: 28px;
  bottom: 28px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: .9;
  letter-spacing: -.06em;
}

.visual-three {
  background:
    linear-gradient(135deg, rgba(40,215,208,.15), transparent),
    #0d1217;
}

.waveform {
  position: absolute;
  inset: 20% 12%;
  display: flex;
  align-items: center;
  gap: 12px;
}

.waveform i {
  flex: 1;
  height: 22%;
  background: linear-gradient(to top, var(--accent), var(--accent-2));
  animation: wave 2.3s ease-in-out infinite;
}

.waveform i:nth-child(2n) { animation-delay: -.3s; }
.waveform i:nth-child(3n) { animation-delay: -.7s; }
.waveform i:nth-child(4n) { animation-delay: -1.1s; }

@keyframes wave {
  50% { height: 84%; }
}

.project-info {
  padding: 20px 4px 8px;
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.project-info p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
}

.project-info h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 23px;
  letter-spacing: -.025em;
}

.project-arrow {
  font-size: 22px;
}

.project-card:hover .project-arrow {
  transform: translate(4px, -4px);
}

.manifesto {
  padding: 46px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.marquee-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 32px;
  animation: marquee 28s linear infinite;
}

.marquee span {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.6rem, 6vw, 6.3rem);
  letter-spacing: -.055em;
  white-space: nowrap;
}

.marquee i {
  width: 11px;
  height: 11px;
  background: var(--accent-2);
  border-radius: 50%;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.contact-section h2 span {
  color: var(--muted);
}

.contact-panel {
  align-self: end;
}

.contact-link {
  margin-top: 34px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.7rem);
  letter-spacing: -.04em;
}

.social-links {
  margin-top: 26px;
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
}

footer {
  width: min(calc(100% - 48px), var(--max-width));
  min-height: 118px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  color: var(--text);
}

footer > a:last-child {
  justify-self: end;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav { display: none; }

  .signal-card {
    position: relative;
    right: auto;
    bottom: auto;
    margin: 70px 0 30px auto;
  }

  .hero {
    padding-top: 10vh;
  }

  .statement-grid,
  .contact-grid,
  .section-heading {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .section-heading > p {
    max-width: 620px;
  }

  .project-featured .project-visual,
  .project-visual {
    min-height: 430px;
  }
}

@media (max-width: 680px) {
  .site-header,
  .hero,
  .statement,
  .projects-section,
  .contact-section,
  footer {
    width: min(calc(100% - 30px), var(--max-width));
  }

  .site-header {
    height: 78px;
  }

  .brand-name { display: none; }

  .header-cta {
    font-size: 13px;
  }

  .hero {
    min-height: calc(100svh - 78px);
    padding: 12vh 0 8vh;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 17vw, 5.2rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button { width: 100%; }

  .signal-card {
    width: 100%;
    margin-top: 55px;
  }

  .scroll-cue { display: none; }

  .statement,
  .projects-section,
  .contact-section {
    padding: 88px 0;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-featured {
    grid-column: auto;
  }

  .project-featured .project-visual,
  .project-visual {
    min-height: 360px;
  }

  .visual-word {
    font-size: 8rem;
  }

  .contact-link {
    font-size: 1.45rem;
  }

  footer {
    padding: 28px 0;
    grid-template-columns: 1fr auto;
  }

  footer p {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
  }
}

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