:root {
  --bg: #0c1219;
  --panel: #121a24;
  --muted: #c5d0dc;
  --text: #e6edf5;
  --accent: #f0a500;
  --accent-2: #46c2ff;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at 20% 20%, rgba(70, 194, 255, 0.06), transparent 30%),
              radial-gradient(circle at 80% 0%, rgba(240, 165, 0, 0.08), transparent 30%),
              var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.no-scroll {
  overflow: hidden;
}

a {
  color: var(--accent-2);
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius);
}

.hero {
  position: relative;
  min-height: 90vh;
  padding: 32px clamp(20px, 6vw, 80px) 120px;
  background: linear-gradient(120deg, rgba(12, 18, 25, 0.9), rgba(12, 18, 25, 0.6));
  color: var(--text);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: heroFade 24s infinite ease-in-out;
  will-change: opacity;
}

.hero-bg-1 { background-image: url('img/hero-structure.jpg'); animation-delay: 0s; }
.hero-bg-2 { background-image: url('img/hero-rigging.jpg'); animation-delay: 8s; }
.hero-bg-3 { background-image: url('img/hero-grid.jpg'); animation-delay: 16s; }

@keyframes heroFade {
  0% { opacity: 0; }
  5% { opacity: 1; }
  25% { opacity: 1; }
  35% { opacity: 0; }
  100% { opacity: 0; }
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(70, 194, 255, 0.25), transparent 50%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(12, 18, 25, 0.9) 80%);
  z-index: 1;
}

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 44px;
  width: auto;
  display: block;
}

nav a {
  margin-left: 18px;
  color: var(--muted);
  font-weight: 500;
}

nav a:hover {
  color: var(--text);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin-top: 100px;
}

h1 {
  font-size: clamp(32px, 4vw, 52px);
  margin: 12px 0;
  line-height: 1.1;
}

h2 {
  font-size: clamp(26px, 3vw, 40px);
  margin: 12px 0;
}

h3 {
  margin: 0 0 8px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-2);
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-size: 13px;
}

.eyebrow::before {
  content: '';
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin: 20px 0 10px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  transition: 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #0b0f15;
  border: none;
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(70, 194, 255, 0.35);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.06);
}

.btn.large {
  padding: 14px 24px;
}

.meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent-2);
}

.section {
  padding: 90px clamp(20px, 6vw, 80px);
}

.section-head {
  max-width: 760px;
  margin-bottom: 40px;
}

.section-intro {
  color: var(--muted);
}

.services {
  background: linear-gradient(180deg, #0d141c 0%, #0f1722 100%);
}

.service-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.service-card {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.service-card ul {
  padding-left: 18px;
  color: var(--muted);
  margin: 12px 0 0;
}

.service-card p {
  color: var(--muted);
  margin: 6px 0 10px;
}

.projects {
  background: #0a0f16;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.project-card figcaption {
  padding: 14px 16px;
  color: var(--muted);
  margin-top: auto;
}

.project-thumb {
  appearance: none;
  border: none;
  padding: 0;
  background: none;
  display: block;
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3 / 4;
  cursor: pointer;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.project-thumb:hover img,
.project-thumb:focus-visible img {
  transform: scale(1.03);
  filter: brightness(1.05);
}

.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  padding: 20px;
  z-index: 999;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-content {
  position: relative;
  max-width: min(900px, 90vw);
  max-height: 90vh;
  background: #0b1119;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 12px 12px 16px;
}

.lightbox img {
  width: 100%;
  height: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox figcaption {
  margin-top: 10px;
  color: var(--muted);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  padding: 6px 10px;
  cursor: pointer;
}

.highlights {
  background: linear-gradient(135deg, #0f1722, #0c1219);
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.highlight {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: var(--shadow);
}

.highlight p {
  color: var(--muted);
  margin: 6px 0 0;
}

.team {
  background: #0a0f16;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.person {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
  padding: 18px 18px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 100%;
}

.avatar {
  width: 140px;
  height: 140px;
  min-width: 140px;
  border-radius: 28px;
  background: linear-gradient(160deg, var(--accent), var(--accent-2));
  border: 1px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.person h3 {
  margin: 0;
}

.person p {
  margin: 2px 0 0;
}

.person a {
  margin-top: 6px;
  word-break: break-word;
}

.person p {
  margin: 4px 0;
  color: var(--muted);
}

.cta {
  background: linear-gradient(160deg, #0c1219, #0f1824);
}

.cta-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
  align-items: center;
  box-shadow: var(--shadow);
}

.hiring {
  background: linear-gradient(180deg, #0c1219 0%, #0d141c 100%);
}

.hiring-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: radial-gradient(circle at 12% 20%, rgba(70, 194, 255, 0.06), transparent 30%), rgba(255, 255, 255, 0.03);
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: start;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hiring-left {
  display: grid;
  gap: 12px;
}

.hiring-overview {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hiring-overview h3 {
  margin: 0 0 8px;
}

.hiring-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.hiring-feature {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #0b0f15;
  font-weight: 700;
  margin-bottom: 10px;
}

.hiring-feature h4 {
  margin: 0 0 6px;
}

.hiring-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 4px);
  padding: 14px 14px 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
}

.hiring-cta .btn {
  width: 100%;
  justify-content: center;
  padding-left: 38px;
}

.hiring-cta-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.jobs-block {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.jobs-header {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.job-pill {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.job-pill .icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #0b0f15;
  font-weight: 700;
}

.job-pill p {
  margin: 2px 0 0;
  color: var(--muted);
}

.jobs-table {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.02);
}

.jobs-head,
.jobs-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
}

.jobs-head {
  font-weight: 700;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.jobs-row + .jobs-row {
  border-top: 1px solid var(--border);
}

.jobs-row {
  background: rgba(255, 255, 255, 0.01);
}

.badge-status {
  justify-self: start;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(70, 194, 255, 0.12);
  color: var(--text);
  border: 1px solid rgba(70, 194, 255, 0.4);
  font-weight: 600;
}

.badge-status.urgent {
  background: rgba(240, 165, 0, 0.12);
  border-color: rgba(240, 165, 0, 0.4);
  color: var(--text);
}

.badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.badge img {
  height: 34px;
  width: auto;
  display: block;
}

.legal-page {
  background: #0c1219;
  color: var(--text);
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  margin: 0;
}

.legal-hero {
  background: linear-gradient(140deg, rgba(12, 18, 25, 0.92), rgba(12, 18, 25, 0.6));
  padding: 20px clamp(16px, 6vw, 80px) 40px;
  border-bottom: 1px solid var(--border);
}

.legal-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.legal-nav .logo-link img {
  height: 44px;
  width: auto;
  display: block;
}

.legal-home {
  color: var(--accent-2);
  font-weight: 600;
}

.legal-hero-content {
  margin-top: 24px;
}

.legal-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 24px;
}

.legal-container h1 {
  margin-top: 0;
}

.legal-container h2 {
  margin: 20px 0 8px;
}

.legal-container p,
.legal-container ul {
  color: var(--muted);
}

.legal-container ul {
  padding-left: 18px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.label {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.4px;
  color: var(--muted);
}

.cta p {
  color: var(--muted);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-end;
}

.footer {
  padding: 28px clamp(20px, 6vw, 80px);
  border-top: 1px solid var(--border);
  color: var(--muted);
  background: #080c12;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

@media (max-width: 800px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }
  nav a {
    margin: 0 12px 0 0;
  }
  .hero-content {
    margin-top: 60px;
  }
  .cta-card {
    grid-template-columns: 1fr;
  }
}
