:root {
  --bg: #02070c;
  --text: #f5f7fa;
  --muted: #8f9aa7;
  --line: rgba(255,255,255,.14);
  --panel: rgba(7, 13, 20, .66);
  --accent: #cce7ff;
  --accent2: #ffa36c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

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

#universe {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: radial-gradient(circle at center, #08131e 0%, #03090e 38%, #010408 72%, #000 100%);
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at center, transparent 25%, rgba(0,0,0,.12) 55%, rgba(0,0,0,.63) 100%),
    linear-gradient(to bottom, rgba(0,0,0,.3), transparent 18%, transparent 78%, rgba(0,0,0,.4));
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 2;
  opacity: .035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

.nav-wrap {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 20px 4.5vw;
  background: linear-gradient(to bottom, rgba(0, 5, 9, .72), rgba(0, 5, 9, 0));
  backdrop-filter: blur(2px);
}

.brand {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
}

.nav-links { display: flex; gap: 34px; font-size: 14px; }
.nav-links a { opacity: .78; transition: opacity .25s, transform .25s; }
.nav-links a:hover { opacity: 1; transform: translateY(-2px); }

.nav-cta {
  justify-self: end;
  padding: 11px 18px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  font-size: 14px;
}

main { position: relative; z-index: 5; }
.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 110px 7vw 70px;
}

.side-title {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(46px, 5vw, 88px);
  font-weight: 400;
  letter-spacing: -.045em;
  text-shadow: 0 0 32px rgba(0,0,0,.55);
}
.left-title { left: 3.7vw; --name-entry-x: 100vw; }
.right-title { right: 3.7vw; --name-entry-x: -100vw; }

.side-title {
  animation: nameSlideIn 3.2s .35s cubic-bezier(.22, .61, .36, 1) both;
}

@keyframes nameSlideIn {
  from { translate: var(--name-entry-x) 0; opacity: 0; }
  to { translate: 0 0; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .side-title { animation: none; }
}

.hero-center {
  width: min(760px, 54vw);
  text-align: center;
  opacity: 0;
  transform: translateY(18px);
  animation: heroIn 1.1s .35s forwards ease-out;
}

@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }

.eyebrow,
.section-kicker,
.project-index {
  margin: 0 0 18px;
  font-size: 11px;
  letter-spacing: .24em;
  color: #b6c3cf;
}

.hero h1,
.content-section h2 {
  margin: 0;
  font-weight: 430;
  letter-spacing: -.055em;
  line-height: .98;
}

.hero h1 { font-size: clamp(48px, 6vw, 96px); }
.hero h1 span, .content-section em { font-style: normal; color: #a9cfff; }

.hero-copy {
  width: min(610px, 90%);
  margin: 24px auto 0;
  color: #aab4be;
  font-size: clamp(15px, 1.3vw, 19px);
  line-height: 1.7;
}

.hero-actions { display: flex; justify-content: center; gap: 12px; margin-top: 30px; }
.button {
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  border: 1px solid rgba(255,255,255,.2);
  transition: transform .25s, background .25s;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: #f5f7fa; color: #03080d; }
.button.ghost { background: rgba(3,8,13,.42); backdrop-filter: blur(9px); }

.scroll-hint {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  color: #7f8b96;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.scroll-hint span { width: 32px; height: 1px; background: currentColor; position: relative; overflow: hidden; }
.scroll-hint span::after {
  content: ""; position: absolute; inset: 0; background: white;
  animation: scan 2s infinite ease-in-out;
}
@keyframes scan { 0% { transform: translateX(-110%);} 70%,100% { transform: translateX(110%);} }

.content-section {
  min-height: 82vh;
  padding: 125px 7vw;
  background: linear-gradient(to bottom, rgba(2,7,12,.28), rgba(2,7,12,.88) 16%, rgba(2,7,12,.95) 84%, rgba(2,7,12,.5));
  border-top: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(4px);
  position: relative;
}

.section-number {
  position: absolute;
  top: 42px;
  right: 7vw;
  color: rgba(255,255,255,.33);
  font-size: 13px;
  letter-spacing: .18em;
}

.section-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 8vw;
  align-items: start;
}
.content-section h2 { font-size: clamp(46px, 6vw, 94px); max-width: 900px; }
.section-copy { max-width: 650px; color: #a8b0b8; font-size: 18px; line-height: 1.8; }
.section-copy p { margin: 0 0 22px; }

.section-heading-row {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  margin-bottom: 55px;
}
.muted { color: #6f7a84; font-size: 14px; }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project-card {
  min-height: 410px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.018));
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: end;
  transition: transform .35s ease, border-color .35s ease, background .35s ease;
}
.project-card:hover {
  transform: translateY(-9px);
  border-color: rgba(190,225,255,.32);
  background: linear-gradient(145deg, rgba(174,215,255,.09), rgba(255,255,255,.02));
}
.project-card h3 { margin: 0 0 12px; font-size: 34px; font-weight: 500; letter-spacing: -.04em; }
.project-card > p:not(.project-index) { color: #a8b0b8; line-height: 1.6; margin: 0; }
.project-index { position: absolute; top: 28px; left: 28px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tags span { font-size: 11px; padding: 6px 9px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; color: #b7c2cc; }
.project-orbit {
  position: absolute;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(175,215,255,.22);
  border-radius: 50%;
  top: 70px;
  right: -35px;
  transform: rotate(28deg) scaleY(.34);
  box-shadow: 0 0 30px rgba(123,183,229,.08);
}
.project-orbit::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d7edff;
  box-shadow: 0 0 15px #d7edff;
  left: 20px;
  top: 37px;
  animation: orbitDot 4.5s linear infinite;
  transform-origin: 74px 58px;
}
@keyframes orbitDot { to { transform: rotate(360deg); } }

.skill-cloud { display: flex; flex-wrap: wrap; gap: 12px; align-content: start; }
.skill-cloud span {
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  color: #c2cbd3;
  transition: background .25s, color .25s, transform .25s;
}
.skill-cloud span:hover { background: #f4f7f9; color: #02070c; transform: translateY(-3px); }

.contact-section { min-height: 88vh; display: flex; flex-direction: column; justify-content: center; }
.big-link {
  width: fit-content;
  margin-top: 48px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255,255,255,.45);
  font-size: clamp(20px, 2vw, 30px);
}
.big-link span { display: inline-block; margin-left: 10px; transition: transform .25s; }
.big-link:hover span { transform: translate(5px,-5px); }
.footer-note { color: #66717c; margin-top: 80px; font-size: 12px; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-wrap { grid-template-columns: 1fr 1fr; }
  .side-title { font-size: clamp(34px, 8vw, 54px); top: auto; bottom: 80px; transform: none; }
  .left-title { left: 6vw; }
  .right-title { right: 6vw; }
  .hero-center { width: min(760px, 90vw); transform: translateY(-5vh); }
  .section-grid { grid-template-columns: 1fr; gap: 40px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 320px; }
}

@media (max-width: 620px) {
  .nav-wrap { padding: 15px 20px; }
  .nav-cta { font-size: 12px; padding: 9px 13px; }
  .hero { padding-left: 20px; padding-right: 20px; }
  .side-title { bottom: 65px; font-size: 30px; }
  .hero h1 { font-size: clamp(46px, 14vw, 68px); }
  .hero-copy { font-size: 14px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .button { width: min(270px, 100%); }
  .content-section { padding: 105px 22px 85px; }
  .content-section h2 { font-size: clamp(42px, 14vw, 66px); }
  .section-number { right: 22px; }
  .section-heading-row { align-items: start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
.nav-cta.connect-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 10px 18px;

  border: 1px solid rgba(255,255,255,.25);
  border-radius: 30px;

  background: rgba(255,255,255,.08);
  color: white;

  cursor: pointer;

  font: inherit;
  text-decoration: none;

  backdrop-filter: blur(10px);

  transition: .25s ease;
}

.nav-cta.connect-trigger:hover {
  background: white;
  color: black;
}
