:root {
  color-scheme: dark;
  --bg: #070912;
  --panel: rgba(15, 20, 35, 0.78);
  --panel-strong: rgba(20, 25, 43, 0.92);
  --line: rgba(255, 255, 255, 0.12);
  --line-bright: rgba(116, 218, 255, 0.36);
  --text: #f6f8ff;
  --muted: #aeb8cf;
  --soft: #76819b;
  --cyan: #5ee7ff;
  --blue: #497bff;
  --red: #ff4264;
  --gold: #ffce66;
  --green: #45f0ae;
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.46);
  --radius: 8px;
  --max: 1180px;
  --squid-cursor: url("squid-cursor.png") 16 16, auto;
}

* {
  box-sizing: border-box;
  cursor: var(--squid-cursor) !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(73, 123, 255, 0.2), transparent 34rem),
    radial-gradient(circle at top right, rgba(255, 66, 100, 0.16), transparent 32rem),
    linear-gradient(180deg, #080a14 0%, #090b15 45%, #05060d 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 74%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background: linear-gradient(115deg, transparent, rgba(94, 231, 255, 0.08), transparent);
  animation: sweep 10s linear infinite;
}

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

img,
video {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.cursor-glow {
  position: fixed;
  left: var(--cursor-x, 50%);
  top: var(--cursor-y, 20%);
  z-index: -1;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(94, 231, 255, 0.16), transparent 64%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: opacity 180ms ease;
}

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

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  display: flex;
  width: min(calc(100% - 32px), var(--max));
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 11, 21, 0.72);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-right: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(94, 231, 255, 0.38);
}

.top-nav {
  display: flex;
  gap: 4px;
}

.top-nav a {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease;
}

.top-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.section {
  width: min(calc(100% - 36px), var(--max));
  margin-inline: auto;
  padding: 104px 0;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  align-items: center;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(34px, 6vw, 84px);
  padding-top: 148px;
}

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

.grid-plane {
  position: absolute;
  right: -8%;
  bottom: 8%;
  width: min(58vw, 760px);
  height: 420px;
  background-image:
    linear-gradient(rgba(94, 231, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 231, 255, 0.18) 1px, transparent 1px);
  background-size: 34px 34px;
  transform: perspective(800px) rotateX(68deg) rotateZ(-8deg);
  transform-origin: center;
  mask-image: radial-gradient(ellipse, black, transparent 70%);
  animation: floatGrid 8s ease-in-out infinite;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.75;
}

.orb-cyan {
  right: 12%;
  top: 18%;
  width: 260px;
  height: 260px;
  background: rgba(94, 231, 255, 0.22);
}

.orb-red {
  right: 38%;
  bottom: 18%;
  width: 220px;
  height: 220px;
  background: rgba(255, 66, 100, 0.18);
}

.eyebrow,
.section-kicker,
.role-label {
  margin: 0 0 16px;
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(5rem, 17vw, 12.5rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.82;
  text-shadow:
    0 0 40px rgba(94, 231, 255, 0.35),
    0 0 110px rgba(73, 123, 255, 0.4);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 5.2vw, 4.7rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.96;
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.05;
}

.hero-text {
  max-width: 650px;
  margin-bottom: 30px;
  color: #d5ddf2;
  font-size: clamp(1.04rem, 1.8vw, 1.28rem);
}

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

.button {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 800;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

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

.button-primary {
  border-color: rgba(94, 231, 255, 0.55);
  background: linear-gradient(135deg, rgba(94, 231, 255, 0.95), rgba(73, 123, 255, 0.92));
  color: #04101c;
  box-shadow: 0 20px 60px rgba(73, 123, 255, 0.35);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.08);
}

.button-ghost {
  color: var(--muted);
}

.hero-visual {
  position: relative;
  min-height: 620px;
}

.orbit-shell {
  position: absolute;
  inset: 8% 3% auto auto;
  width: min(42vw, 510px);
  aspect-ratio: 1;
  border-radius: 50%;
}

.orbit-shell span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(94, 231, 255, 0.16);
  border-radius: inherit;
  animation: spin 16s linear infinite;
}

.orbit-shell span:nth-child(2) {
  inset: 12%;
  border-color: rgba(255, 66, 100, 0.18);
  animation-duration: 20s;
  animation-direction: reverse;
}

.orbit-shell span:nth-child(3) {
  inset: 24%;
  border-color: rgba(255, 206, 102, 0.18);
  animation-duration: 12s;
}

.developer-console {
  position: absolute;
  top: 16%;
  right: 10%;
  width: min(430px, 74vw);
  padding: 18px;
  border: 1px solid rgba(94, 231, 255, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(18, 25, 43, 0.92), rgba(8, 12, 23, 0.9)),
    radial-gradient(circle at top, rgba(94, 231, 255, 0.2), transparent);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(22px);
}

.console-top {
  display: flex;
  gap: 7px;
  margin-bottom: 22px;
}

.console-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
}

.console-top span:nth-child(2) {
  background: var(--gold);
}

.console-top span:nth-child(3) {
  background: var(--green);
}

.console-logo {
  width: 188px;
  margin: 0 auto 28px;
  filter: drop-shadow(0 0 40px rgba(94, 231, 255, 0.35));
  animation: levitate 4s ease-in-out infinite;
}

.console-lines {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.console-lines span {
  width: var(--w);
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(94, 231, 255, 0.45), rgba(255, 255, 255, 0.08));
}

.console-metric {
  display: grid;
  gap: 2px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.console-metric strong {
  font-size: 2rem;
  line-height: 1;
}

.console-metric span {
  color: var(--muted);
  font-size: 0.93rem;
}

.floating-shot {
  position: absolute;
  margin: 0;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  background: rgba(9, 12, 24, 0.78);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
}

.floating-shot img {
  border-radius: 5px;
}

.shot-one {
  right: 34%;
  bottom: 11%;
  width: min(390px, 54vw);
  transform: rotate(-4deg);
}

.shot-two {
  right: 0;
  bottom: 0;
  width: min(330px, 44vw);
  transform: rotate(5deg);
}

.intro-grid {
  display: grid;
  align-items: stretch;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 18px;
}

.intro-panel,
.stat-strip,
.contact-panel,
.project-card,
.testimonial,
.role-card,
.system-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.intro-panel {
  padding: clamp(28px, 5vw, 54px);
}

.intro-panel p {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.stat-strip {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.stat-strip div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.stat-strip span {
  display: block;
  margin-bottom: 4px;
  color: var(--cyan);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}

.stat-strip p {
  margin: 0;
  color: var(--muted);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 36px;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.role-card {
  position: relative;
  display: grid;
  min-height: 390px;
  overflow: hidden;
  grid-template-rows: 190px 1fr;
}

.role-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle at 50% 0%, var(--accent), transparent 58%);
  opacity: 0.22;
  pointer-events: none;
}

.accent-gold {
  --accent: rgba(255, 206, 102, 0.85);
}

.accent-blue {
  --accent: rgba(94, 231, 255, 0.75);
}

.role-media {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.role-media img {
  width: min(210px, 50%);
  max-height: 170px;
  object-fit: contain;
  filter: drop-shadow(0 22px 44px rgba(0, 0, 0, 0.42));
  transition: transform 240ms ease;
}

.role-card:hover .role-media img {
  transform: scale(1.05);
}

.role-content {
  position: relative;
  padding: 28px;
}

.role-content p:not(.role-label),
.project-copy p {
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--cyan);
  font-weight: 800;
}

.feature-quote {
  position: relative;
  display: grid;
  align-items: center;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 24px;
  margin: 18px 0 0;
  padding: clamp(26px, 4vw, 42px);
}

.quote-avatar {
  width: 112px;
  height: 112px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 36px rgba(255, 206, 102, 0.18);
}

.feature-quote span {
  position: absolute;
  top: -22px;
  right: 28px;
  color: rgba(94, 231, 255, 0.24);
  font-size: 8rem;
  font-weight: 900;
  line-height: 1;
}

.feature-quote p {
  max-width: 920px;
  margin-bottom: 14px;
  font-size: clamp(1.25rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.12;
}

.feature-quote cite {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

.project-card {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 0.84fr) minmax(360px, 1.16fr);
  gap: 24px;
  overflow: hidden;
  padding: clamp(24px, 4vw, 44px);
}

.project-copy h3 {
  font-size: clamp(2rem, 4vw, 4.1rem);
}

.project-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.project-metrics span {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #dce5ff;
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.86rem;
  font-weight: 800;
}

.project-showcase {
  display: grid;
  gap: 16px;
  perspective: 900px;
}

.project-showcase img {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.44);
}

.project-showcase img:first-child {
  transform: rotateX(8deg) rotateY(-10deg);
}

.project-showcase img:last-child {
  margin-left: 12%;
  transform: rotateX(8deg) rotateY(8deg);
}

.showcase-section {
  width: min(calc(100% - 24px), 1380px);
}

.command-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 14px;
}

.command-card {
  display: grid;
  place-items: center;
  min-height: 168px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(12, 16, 30, 0.86);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.command-card:hover {
  border-color: var(--line-bright);
  box-shadow: 0 25px 70px rgba(45, 92, 255, 0.2);
  transform: translateY(-5px);
}

.command-card img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.command-card.wide {
  grid-column: span 2;
}

.command-card.tall {
  grid-row: span 2;
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.system-card {
  overflow: hidden;
}

.system-card video,
.system-card img {
  cursor: var(--squid-cursor) !important;
}

.system-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #05070e;
  border-bottom: 1px solid var(--line);
}

.system-card div {
  padding: 22px;
}

.system-card .role-label {
  margin-bottom: 8px;
}

.system-card h3 {
  margin: 0;
}

.contact-panel {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 30px;
  padding: clamp(28px, 5vw, 58px);
  background:
    radial-gradient(circle at top left, rgba(94, 231, 255, 0.16), transparent 42%),
    var(--panel-strong);
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-links a {
  display: grid;
  align-items: center;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  min-height: 70px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #dce5ff;
  background: rgba(255, 255, 255, 0.055);
  font-weight: 800;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.contact-links a:hover {
  border-color: var(--line-bright);
  background: rgba(94, 231, 255, 0.1);
  transform: translateY(-3px);
}

.contact-links img {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.contact-links span {
  overflow-wrap: anywhere;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 54px);
  background:
    radial-gradient(circle at 50% 20%, rgba(94, 231, 255, 0.16), transparent 38rem),
    rgba(3, 5, 12, 0.82);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(0);
  transition: opacity 220ms ease, backdrop-filter 220ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
  backdrop-filter: blur(18px);
}

.lightbox.is-closing {
  opacity: 0;
  backdrop-filter: blur(0);
}

.lightbox-frame {
  display: grid;
  place-items: center;
  width: min(1180px, 100%);
  max-height: min(82vh, 820px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(8, 12, 24, 0.9);
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.62);
  transform: scale(0.9) translateY(24px);
  opacity: 0;
  transition: transform 260ms cubic-bezier(0.2, 0.9, 0.2, 1), opacity 220ms ease;
}

.lightbox.is-open .lightbox-frame {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.lightbox.is-closing .lightbox-frame {
  transform: scale(0.92) translateY(18px);
  opacity: 0;
}

.lightbox-frame img,
.lightbox-frame video {
  width: auto;
  max-width: 100%;
  max-height: min(82vh, 820px);
  object-fit: contain;
}

.lightbox-frame video {
  width: min(1180px, 100%);
}

.lightbox-close {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 2;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(15, 20, 35, 0.78);
  font: inherit;
  font-weight: 800;
  backdrop-filter: blur(14px);
}

.lightbox-close:hover {
  border-color: var(--line-bright);
}

.site-footer {
  width: min(calc(100% - 36px), var(--max));
  margin: 0 auto;
  padding: 0 0 46px;
  color: var(--soft);
  font-size: 0.92rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes sweep {
  0% {
    transform: translateX(-30%);
  }
  100% {
    transform: translateX(30%);
  }
}

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

@keyframes levitate {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes floatGrid {
  0%,
  100% {
    transform: perspective(800px) rotateX(68deg) rotateZ(-8deg) translateY(0);
  }
  50% {
    transform: perspective(800px) rotateX(68deg) rotateZ(-8deg) translateY(-18px);
  }
}

@media (max-width: 980px) {
  .top-nav {
    display: none;
  }

  .hero,
  .intro-grid,
  .project-card,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 140px;
  }

  .hero-visual {
    min-height: 560px;
  }

  .developer-console {
    right: 50%;
    transform: translateX(50%);
  }

  .role-grid,
  .systems-grid {
    grid-template-columns: 1fr;
  }

  .command-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .section {
    width: min(calc(100% - 24px), var(--max));
    padding: 72px 0;
  }

  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  h1 {
    font-size: clamp(4.2rem, 25vw, 7rem);
  }

  h2 {
    font-size: clamp(2rem, 12vw, 3.2rem);
  }

  .hero-actions,
  .contact-links {
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 470px;
  }

  .developer-console {
    width: min(100%, 370px);
  }

  .shot-one {
    right: 18%;
    width: 78vw;
  }

  .shot-two {
    width: 64vw;
  }

  .role-card {
    grid-template-rows: 160px 1fr;
  }

  .role-content {
    padding: 22px;
  }

  .feature-quote {
    grid-template-columns: 1fr;
  }

  .quote-avatar {
    width: 82px;
    height: 82px;
  }

  .command-wall {
    grid-template-columns: 1fr;
  }

  .command-card.wide,
  .command-card.tall {
    grid-column: auto;
    grid-row: auto;
  }

  .contact-links {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
