@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg: #02040a;
  --bg-2: #060912;
  --panel: rgba(9, 14, 25, .72);
  --text: #edf3f7;
  --muted: #778696;
  --cyan: #28d7e8;
  --cyan-soft: rgba(40, 215, 232, .18);
  --purple: #8c63ff;
  --line: rgba(111, 143, 164, .18);
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 70% 12%, rgba(52, 47, 118, .18), transparent 30%),
    radial-gradient(circle at 15% 45%, rgba(0, 150, 180, .07), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  overflow-x: hidden;
}

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

button { font: inherit; }

.stars {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: .65;
  background-image:
    radial-gradient(circle at 12% 17%, rgba(255,255,255,.8) 0 1px, transparent 1.5px),
    radial-gradient(circle at 33% 11%, rgba(40,215,232,.65) 0 1px, transparent 1.5px),
    radial-gradient(circle at 62% 25%, rgba(255,255,255,.6) 0 1px, transparent 1.5px),
    radial-gradient(circle at 83% 15%, rgba(140,99,255,.7) 0 1px, transparent 1.5px),
    radial-gradient(circle at 73% 55%, rgba(255,255,255,.55) 0 1px, transparent 1.5px),
    radial-gradient(circle at 21% 72%, rgba(40,215,232,.5) 0 1px, transparent 1.5px),
    radial-gradient(circle at 91% 83%, rgba(255,255,255,.5) 0 1px, transparent 1.5px);
  background-size: 330px 290px, 410px 370px, 520px 450px, 630px 510px, 710px 620px, 440px 380px, 760px 680px;
}

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

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  width: 100%;
  height: 78px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(140, 160, 180, .10);
  background: rgba(2,4,10,.64);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 3px;
}

.brand span span, .footer-brand span, .video-center-label strong span {
  color: var(--cyan);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(40,215,232,.65);
  color: var(--cyan);
  font: 700 10px "Space Mono", monospace;
  box-shadow: inset 0 0 14px rgba(40,215,232,.08);
}

.nav {
  display: flex;
  gap: 34px;
  color: #92a0ad;
  font: 11px "Space Mono", monospace;
  letter-spacing: 1.5px;
}

.nav a { transition: color .25s ease; }
.nav a:hover { color: var(--cyan); }

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 150px 7vw 90px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  width: 800px;
  height: 800px;
  right: -300px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(55, 40, 145, .17), transparent 65%);
  filter: blur(5px);
}

.hero-copy { position: relative; z-index: 2; max-width: 760px; }

.eyebrow {
  margin-bottom: 22px;
  color: #80909e;
  font: 700 10px "Space Mono", monospace;
  letter-spacing: 2.4px;
}

.eyebrow span {
  display: inline-block;
  width: 22px;
  height: 1px;
  margin-right: 10px;
  vertical-align: middle;
  background: var(--cyan);
  box-shadow: 0 0 9px var(--cyan);
}

.hero h1 {
  font-size: clamp(58px, 9vw, 132px);
  line-height: .86;
  letter-spacing: -7px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 strong {
  font-weight: 800;
  background: linear-gradient(90deg, #f4f6f7 0%, #9da9b5 65%, #5d6876 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-description {
  max-width: 560px;
  margin: 32px 0;
  color: #7e8d9c;
  font-size: 15px;
  line-height: 1.9;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 48px;
  padding: 0 19px;
  font: 700 10px "Space Mono", monospace;
  letter-spacing: 1.5px;
  border: 1px solid var(--line);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.btn i { font-style: normal; font-size: 16px; }

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

.btn-primary {
  background: var(--cyan);
  color: #001015;
  border-color: var(--cyan);
  box-shadow: 0 0 30px rgba(40,215,232,.13);
}

.btn-primary:hover { background: #6ceaf3; }

.btn-ghost { color: #a5b0ba; }
.btn-ghost:hover { border-color: rgba(40,215,232,.45); color: var(--cyan); }

.hero-orbit {
  position: absolute;
  right: 4vw;
  top: 50%;
  width: min(42vw, 560px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  opacity: .72;
}

.orbit {
  position: absolute;
  inset: 13%;
  border: 1px solid rgba(40,215,232,.16);
  border-radius: 50%;
  transform: rotate(-25deg) scaleY(.38);
}

.orbit-1 { box-shadow: 0 0 70px rgba(40,215,232,.05); }
.orbit-2 { inset: 1%; transform: rotate(40deg) scaleY(.38); border-color: rgba(140,99,255,.15); }

.core {
  position: absolute;
  inset: 42%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(40,215,232,.6);
  border-radius: 50%;
  color: var(--cyan);
  font: 700 16px "Space Mono", monospace;
  box-shadow: 0 0 45px rgba(40,215,232,.14), inset 0 0 25px rgba(40,215,232,.08);
}

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 7vw;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #586674;
  font: 9px "Space Mono", monospace;
  letter-spacing: 1.7px;
}

.scroll-cue b { color: var(--cyan); font-size: 15px; animation: float 1.7s infinite; }

@keyframes float {
  50% { transform: translateY(5px); }
}

.video-section, .lab-section, .projects-section {
  max-width: var(--max);
  margin: auto;
  padding: 120px 30px;
}

.section-label {
  margin-bottom: 55px;
  color: #4f5d6b;
  font: 10px "Space Mono", monospace;
  letter-spacing: 2px;
}

.section-heading h2, .lab-intro h2, .contact-box h2 {
  font-size: clamp(38px, 6vw, 74px);
  line-height: .95;
  letter-spacing: -3px;
  font-weight: 800;
}

.section-heading h2 em, .lab-intro h2 em, .contact-box h2 em {
  color: var(--cyan);
  font-style: normal;
}

.video-frame {
  margin-top: 55px;
  position: relative;
  padding: 1px;
  background: linear-gradient(120deg, rgba(40,215,232,.45), rgba(140,99,255,.22), rgba(40,215,232,.06));
}

.video-placeholder {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 48%, rgba(40,215,232,.07), transparent 23%),
    linear-gradient(135deg, #02060b, #080b16 60%, #09051a);
}

.video-grid {
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image:
    linear-gradient(rgba(40,215,232,.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40,215,232,.13) 1px, transparent 1px);
  background-size: 50px 50px;
  transform: perspective(500px) rotateX(55deg) scale(1.5);
  transform-origin: center bottom;
}

.scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 48%, rgba(40,215,232,.045) 50%, transparent 52%);
  background-size: 100% 9px;
  pointer-events: none;
}

.play-btn {
  position: absolute;
  z-index: 3;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(40,215,232,.65);
  border-radius: 50%;
  background: rgba(3,9,15,.65);
  color: var(--cyan);
  cursor: pointer;
  box-shadow: 0 0 45px rgba(40,215,232,.12);
  transition: transform .25s ease, background .25s ease;
}

.play-btn:hover { transform: scale(1.08); background: rgba(40,215,232,.12); }
.play-btn span { margin-left: 3px; }

.video-center-label { text-align: center; z-index: 2; }
.video-center-label small {
  display: block;
  margin-bottom: 10px;
  color: #596a78;
  font: 9px "Space Mono", monospace;
  letter-spacing: 2px;
}
.video-center-label strong {
  display: block;
  font-size: clamp(30px, 6vw, 70px);
  line-height: 1;
  letter-spacing: 6px;
}
.video-center-label p {
  margin-top: 10px;
  color: #6f7f8d;
  font: 10px "Space Mono", monospace;
  letter-spacing: 2px;
}

.video-meta {
  position: absolute;
  bottom: 15px;
  color: #51616e;
  font: 8px "Space Mono", monospace;
  letter-spacing: 1px;
}
.video-meta-left { left: 18px; }
.video-meta-right { right: 18px; color: var(--cyan); }

.video-note {
  margin-top: 16px;
  color: #566674;
  font: 10px "Space Mono", monospace;
}
code { color: #778b9a; }

.lab-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.lab-intro {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 65px;
}

.lab-intro > p {
  color: #71808e;
  font-size: 14px;
  line-height: 2;
  max-width: 390px;
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.lab-card {
  position: relative;
  min-height: 300px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(8,14,23,.7), rgba(2,5,10,.4));
  transition: background .3s ease;
}

.lab-card:hover { background: rgba(40,215,232,.035); }

.card-number {
  position: absolute;
  right: 20px;
  top: 22px;
  color: #354350;
  font: 9px "Space Mono", monospace;
}

.card-icon {
  margin: 15px 0 55px;
  color: var(--cyan);
  font-size: 25px;
}

.lab-card h3 {
  margin-bottom: 13px;
  font-size: 13px;
  letter-spacing: 2px;
}

.lab-card p {
  color: #657583;
  font-size: 12px;
  line-height: 1.8;
}

.card-line {
  position: absolute;
  left: 28px;
  bottom: 28px;
  width: 30px;
  height: 1px;
  background: var(--cyan);
}

.project-list { margin-top: 55px; border-top: 1px solid var(--line); }

.project {
  display: grid;
  grid-template-columns: 130px 1fr 30px;
  gap: 30px;
  align-items: center;
  padding: 30px 5px;
  border-bottom: 1px solid var(--line);
  transition: padding .25s ease, color .25s ease;
}

.project:hover { padding-left: 18px; color: var(--cyan); }

.project-id {
  color: #43515e;
  font: 9px "Space Mono", monospace;
  letter-spacing: 1px;
}

.project h3 {
  margin-bottom: 5px;
  font-size: 16px;
  letter-spacing: 1px;
}

.project p { color: #657583; font-size: 12px; }

.project > span { color: #647481; font-size: 20px; }

.contact-section {
  max-width: var(--max);
  margin: auto;
  padding: 30px 30px 130px;
}

.contact-box {
  position: relative;
  overflow: hidden;
  padding: 80px;
  border: 1px solid rgba(40,215,232,.17);
  background:
    radial-gradient(circle at 90% 10%, rgba(140,99,255,.12), transparent 32%),
    radial-gradient(circle at 10% 90%, rgba(40,215,232,.08), transparent 30%),
    #050912;
}

.contact-box::after {
  content: "TL";
  position: absolute;
  right: -30px;
  bottom: -110px;
  color: rgba(255,255,255,.015);
  font-size: 320px;
  font-weight: 900;
  pointer-events: none;
}

.contact-box > p:not(.eyebrow) {
  max-width: 470px;
  margin: 25px 0 30px;
  color: #71808e;
  line-height: 1.9;
  font-size: 13px;
}

footer {
  min-height: 150px;
  padding: 45px 7vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: #4f5d69;
  font: 9px "Space Mono", monospace;
  letter-spacing: 1.5px;
}

.footer-brand {
  color: #b4bec7;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 3px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(10px);
}

.modal.active { display: flex; }

.modal-inner {
  position: relative;
  width: min(1100px, 95vw);
  box-shadow: 0 0 80px rgba(40,215,232,.08);
}

.modal video {
  width: 100%;
  display: block;
  background: #000;
  border: 1px solid rgba(40,215,232,.25);
}

.modal-close {
  position: absolute;
  right: 0;
  top: -44px;
  width: 35px;
  height: 35px;
  border: 1px solid rgba(255,255,255,.2);
  background: #080c14;
  color: #fff;
  cursor: pointer;
  font-size: 22px;
}

@media (max-width: 900px) {
  .hero-orbit { opacity: .25; right: -15vw; width: 65vw; }
  .lab-grid { grid-template-columns: repeat(2, 1fr); }
  .lab-intro { grid-template-columns: 1fr; gap: 25px; }
}

@media (max-width: 680px) {
  .site-header { height: 68px; }
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    width: 100%;
    padding: 25px;
    flex-direction: column;
    background: rgba(2,4,10,.96);
    border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .menu-toggle { display: block; }
  .hero { padding: 130px 6vw 100px; }
  .hero h1 { letter-spacing: -4px; font-size: clamp(48px, 14vw, 78px); }
  .hero-orbit { display: none; }
  .video-section, .lab-section, .projects-section { padding: 90px 20px; }
  .lab-grid { grid-template-columns: 1fr; }
  .lab-card { min-height: 250px; }
  .project { grid-template-columns: 1fr 30px; gap: 8px; }
  .project-id { grid-column: 1 / -1; }
  .contact-section { padding: 20px 20px 90px; }
  .contact-box { padding: 45px 25px; }
  footer { flex-direction: column; gap: 18px; text-align: center; }
}
