:root {
  --bg: #0b0f10;
  --surface: #121719;
  --surface-2: #191f24;
  --line: rgba(248, 250, 252, 0.1);
  --line-strong: rgba(248, 250, 252, 0.18);
  --text: #f5f7fb;
  --muted: #b9c0d2;
  --soft: #7e879c;
  --indigo: #bfc2ff;
  --cyan: #7fe7f5;
  --lime: #b6f27a;
  --coral: #ff9b7a;
  --gold: #ffd36f;
  --shadow: rgba(0, 0, 0, 0.34);
  color-scheme: dark;
  font-family: "Geist", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(127, 231, 245, 0.08), transparent 320px),
    linear-gradient(120deg, rgba(255, 155, 122, 0.09), transparent 38%),
    linear-gradient(230deg, rgba(182, 242, 122, 0.07), transparent 34%),
    var(--bg);
  color: var(--text);
}

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

a {
  color: inherit;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  min-height: 72px;
  margin: 12px auto 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(12, 16, 18, 0.78);
  backdrop-filter: blur(18px);
}

.brand,
.site-header nav,
.header-cta,
.button,
.filters,
.tags,
.stage-tabs,
.pulse {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(127, 231, 245, 0.35);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(127, 231, 245, 0.15), rgba(255, 211, 111, 0.14));
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.site-header nav {
  justify-content: center;
  gap: 28px;
}

.site-header nav a,
.header-cta {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.site-header nav a:hover,
.header-cta:hover {
  color: var(--text);
}

.header-cta {
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 14px;
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(420px, 1.06fr);
  gap: 44px;
  align-items: center;
  min-height: calc(100vh - 84px);
  padding: 36px 0 72px;
}

.eyebrow,
.tiny-label,
.project-type,
.tags span {
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
}

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

h1,
h2 {
  font-family: "Bodoni Moda", Georgia, serif;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(46px, 8vw, 92px);
  line-height: 0.96;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.02;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.1;
}

.hero-lede,
.contact-section p,
.detail-panel p,
.section-head p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.hero-lede {
  max-width: 680px;
  margin-bottom: 32px;
}

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

.button {
  justify-content: center;
  min-height: 48px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  border: 1px solid rgba(191, 194, 255, 0.65);
  background: var(--indigo);
  color: #15123a;
  box-shadow: 0 0 38px rgba(191, 194, 255, 0.18);
}

.button.ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.hero-stage {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 24px 90px var(--shadow);
}

.stage-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 420ms ease, transform 700ms ease;
}

.stage-mock {
  object-fit: unset;
}

.stage-mock-inner {
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
}

.stage-image.active {
  opacity: 0.72;
  transform: scale(1);
}

.hero-stage::after,
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(11, 15, 16, 0.92), rgba(11, 15, 16, 0.2) 54%, rgba(11, 15, 16, 0.05));
}

.stage-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 78px;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: rgba(11, 15, 16, 0.66);
  backdrop-filter: blur(16px);
}

.tiny-label,
.project-type {
  display: block;
  color: var(--soft);
  font-size: 11px;
  font-weight: 700;
}

.stage-overlay strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

.signal-bars {
  display: flex;
  align-items: end;
  gap: 5px;
  height: 34px;
}

.signal-bars i {
  width: 8px;
  border-radius: 5px;
  background: var(--lime);
  animation: rise 1.4s ease-in-out infinite;
}

.signal-bars i:nth-child(1) { height: 16px; }
.signal-bars i:nth-child(2) { height: 28px; animation-delay: 120ms; }
.signal-bars i:nth-child(3) { height: 22px; animation-delay: 240ms; }
.signal-bars i:nth-child(4) { height: 34px; animation-delay: 360ms; }

@keyframes rise {
  50% { transform: scaleY(0.55); opacity: 0.62; }
}

.stage-tabs {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  gap: 8px;
}

.stage-tab,
.filter {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.stage-tab {
  flex: 1;
}

.stage-tab.active,
.filter.active {
  border-color: rgba(127, 231, 245, 0.55);
  color: var(--text);
  background: rgba(127, 231, 245, 0.12);
}

.ticker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}

.ticker div {
  min-height: 118px;
  padding: 22px;
  background: rgba(18, 23, 25, 0.88);
}

.ticker strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 34px;
}

.ticker span {
  color: var(--muted);
  font-weight: 700;
}

.work-section,
.lab-section,
.contact-section {
  padding: 110px 0 0;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 34px;
}

.section-head > div:first-child {
  max-width: 780px;
}

.filters {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter {
  padding: 0 12px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.project-card {
  position: relative;
  grid-column: span 4;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  cursor: pointer;
  transition: transform 240ms ease, border-color 240ms ease, opacity 240ms ease;
}

.project-card.large {
  grid-column: span 8;
}

.project-card:hover,
.project-card.selected {
  transform: translateY(-3px);
  border-color: rgba(191, 194, 255, 0.48);
}

.project-card.hidden {
  display: none;
}

.project-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
  filter: saturate(0.9) contrast(1.05);
  transition: opacity 260ms ease, transform 500ms ease;
}

.project-card:hover img {
  opacity: 0.68;
  transform: scale(1.03);
}

.hirelog-mock {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding: 22px;
  opacity: 0.62;
  background:
    linear-gradient(135deg, rgba(191, 194, 255, 0.16), transparent 42%),
    linear-gradient(225deg, rgba(127, 231, 245, 0.12), transparent 38%),
    #0d1217;
  transition: opacity 260ms ease, transform 500ms ease;
}

.project-card:hover .hirelog-mock {
  opacity: 0.82;
  transform: scale(1.02);
}

.hirelog-nav,
.hirelog-board,
.hirelog-stats span,
.hirelog-table i {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
}

.hirelog-nav {
  display: grid;
  align-content: start;
  gap: 14px;
  border-radius: 12px;
  padding: 14px;
}

.hirelog-nav b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: rgba(191, 194, 255, 0.14);
  color: var(--indigo);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.hirelog-nav span,
.hirelog-search {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.hirelog-board {
  display: grid;
  grid-template-rows: 34px 72px 1fr;
  gap: 14px;
  border-radius: 14px;
  padding: 16px;
}

.hirelog-search {
  width: 72%;
  height: 100%;
}

.hirelog-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.hirelog-stats span {
  border-radius: 10px;
}

.hirelog-table {
  display: grid;
  gap: 9px;
}

.hirelog-table i {
  border-radius: 9px;
}

.titan-mock {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  padding: 24px;
  opacity: 0.62;
  background:
    linear-gradient(135deg, rgba(127, 231, 245, 0.16), transparent 42%),
    linear-gradient(225deg, rgba(255, 211, 111, 0.13), transparent 38%),
    #0c1116;
  transition: opacity 260ms ease, transform 500ms ease;
}

.project-card:hover .titan-mock {
  opacity: 0.82;
  transform: scale(1.02);
}

.mock-sidebar,
.mock-main,
.mock-queue span {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.mock-sidebar {
  display: grid;
  align-content: start;
  gap: 12px;
  border-radius: 12px;
  padding: 14px;
}

.mock-sidebar b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: rgba(127, 231, 245, 0.12);
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.mock-sidebar span,
.mock-topline span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.mock-main {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 18px;
}

.mock-topline {
  display: grid;
  grid-template-columns: 1fr 0.72fr 0.44fr;
  gap: 10px;
  margin-bottom: 34px;
}

.mock-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: min(360px, 70%);
  aspect-ratio: 1;
  margin: 0 auto;
  border: 1px solid rgba(127, 231, 245, 0.28);
  border-radius: 50%;
}

.mock-orbit::before,
.mock-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(191, 194, 255, 0.18);
  border-radius: 50%;
}

.mock-orbit::before {
  inset: 16%;
}

.mock-orbit::after {
  inset: 31%;
}

.mock-orbit i {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--cyan);
  box-shadow: 0 0 28px rgba(127, 231, 245, 0.28);
}

.mock-orbit i:nth-child(1) {
  top: 18%;
  left: 20%;
}

.mock-orbit i:nth-child(2) {
  top: 32%;
  right: 12%;
  background: var(--gold);
}

.mock-orbit i:nth-child(3) {
  bottom: 16%;
  left: 45%;
  background: var(--lime);
}

.mock-orbit strong {
  font-size: 34px;
}

.mock-queue {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mock-queue span {
  border-radius: 9px;
  padding: 12px;
  color: var(--muted);
  font-weight: 800;
}

.project-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 24px;
}

.project-copy p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.55;
}

.tags {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tags span {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 9px;
  background: rgba(11, 15, 16, 0.72);
  color: var(--muted);
  font-size: 10px;
}

.lab-grid {
  display: grid;
  grid-template-columns: 1fr 0.78fr 0.92fr;
  gap: 16px;
}

.demo-panel {
  min-height: 340px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  background: rgba(18, 23, 25, 0.78);
}

.panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.panel-head strong {
  font-size: 18px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--cyan);
}

.preview-stack {
  position: relative;
  min-height: 220px;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.preview-stack img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-stack img:nth-child(2) {
  clip-path: inset(0 48% 0 0);
}

.pulse-list {
  display: grid;
  gap: 10px;
}

.pulse {
  justify-content: space-between;
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
}

.pulse span {
  color: var(--muted);
}

.pulse b {
  color: var(--lime);
}

.pulse.active {
  border-color: rgba(182, 242, 122, 0.45);
  background: rgba(182, 242, 122, 0.1);
}

.meter {
  height: 12px;
  margin-top: 22px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.meter i {
  display: block;
  width: 87%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--lime), var(--gold));
  transition: width 260ms ease;
}

.detail-panel {
  display: flex;
  flex-direction: column;
}

.detail-panel p {
  flex: 1;
}

.detail-panel a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 42px;
  border: 1px solid rgba(255, 155, 122, 0.45);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--coral);
  font-weight: 800;
  text-decoration: none;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  padding-bottom: 96px;
}

.contact-section > div {
  max-width: 760px;
}

.contact-button {
  min-width: 210px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 26px 0 34px;
  color: var(--soft);
  font-size: 14px;
}

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

  .site-header nav {
    display: none;
  }

  .hero,
  .section-head,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 480px;
  }

  .ticker {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-card,
  .project-card.large {
    grid-column: span 6;
  }

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

@media (max-width: 640px) {
  main,
  footer,
  .site-header {
    width: min(100% - 28px, 1180px);
  }

  .header-cta {
    display: none;
  }

  .hero {
    padding-top: 54px;
  }

  .hero-stage {
    min-height: 420px;
  }

  .ticker,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-card.large {
    grid-column: auto;
  }

  .project-card {
    min-height: 430px;
  }

  .work-section,
  .lab-section,
  .contact-section {
    padding-top: 72px;
  }

  .ticker div {
    min-height: 98px;
  }

  footer {
    flex-direction: column;
  }
}
