:root {
  color-scheme: dark;
  --ink: #f7f3e9;
  --muted: #b9c0c9;
  --panel: rgba(18, 22, 29, 0.72);
  --panel-strong: rgba(10, 13, 18, 0.9);
  --line: rgba(255, 255, 255, 0.16);
  --red: #f04f45;
  --amber: #d7c36a;
  --cyan: #58d0bf;
  --green: #82d86b;
  --bg: #090b10;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
}

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

#hero-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(rgba(9, 11, 16, 0.25), rgba(9, 11, 16, 0.84)),
    #0c1016;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: linear-gradient(rgba(7, 9, 14, 0.86), rgba(7, 9, 14, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: #11151b;
  background: linear-gradient(135deg, var(--red), var(--amber));
  font-size: 13px;
  letter-spacing: 0;
}

.brand-text {
  font-size: 18px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-size: 14px;
}

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

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: end;
  gap: clamp(28px, 6vw, 72px);
  min-height: 86vh;
  padding: 120px clamp(18px, 6vw, 88px) 9vh;
}

.hero::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28vh;
  content: "";
  pointer-events: none;
  background: linear-gradient(rgba(9, 11, 16, 0), rgba(9, 11, 16, 0.98));
}

.hero-copy,
.build-panel {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker,
.panel-label,
.status-pill {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 980px;
  margin-bottom: 18px;
  font-size: clamp(58px, 11vw, 152px);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 690px;
  color: #e2e5e9;
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.5;
}

.hero-actions,
.join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: #11151b;
  background: var(--red);
}

.button.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

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

.build-panel {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.build-panel div {
  padding: 18px;
  background: var(--panel);
  backdrop-filter: blur(16px);
}

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

.section-band {
  background: #0f131a;
}

.section-inner {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 86px 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 5vw, 62px);
  line-height: 1;
  letter-spacing: 0;
}

.split p:last-child,
.join p,
.project-info p,
.role-card p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.projects {
  background: linear-gradient(180deg, rgba(9, 11, 16, 0.98), #120e12);
}

.section-heading {
  margin-bottom: 34px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.project-visual {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: #07090e;
}

.horror-visual {
  background:
    linear-gradient(rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.52)),
    radial-gradient(circle at 70% 46%, rgba(240, 79, 69, 0.25), transparent 18%),
    linear-gradient(120deg, #0f1418, #08090d 62%, #181013);
}

.camera-frame,
.hallway,
.door-light,
.animatronic-shadow,
.static-lines,
.vignette {
  position: absolute;
  inset: 0;
}

.camera-frame {
  z-index: 5;
  border: 1px solid rgba(255, 255, 255, 0.22);
  margin: 18px;
  color: rgba(247, 243, 233, 0.82);
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
}

.rec-dot {
  position: absolute;
  top: 16px;
  left: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 18px rgba(240, 79, 69, 0.9);
}

.camera-label {
  position: absolute;
  top: 13px;
  left: 38px;
}

.camera-time {
  position: absolute;
  right: 18px;
  bottom: 14px;
}

.hallway {
  background:
    linear-gradient(90deg, transparent 0 21%, rgba(255, 255, 255, 0.06) 21.4% 22%, transparent 22.4%),
    linear-gradient(90deg, transparent 0 78%, rgba(255, 255, 255, 0.05) 78.4% 79%, transparent 79.4%),
    linear-gradient(105deg, transparent 0 32%, rgba(255, 255, 255, 0.05) 32.4% 33%, transparent 33.4%),
    linear-gradient(255deg, transparent 0 31%, rgba(255, 255, 255, 0.04) 31.4% 32%, transparent 32.4%),
    linear-gradient(#171b20, #08090d 68%);
}

.door-light {
  inset: 16% auto auto 51%;
  width: 17%;
  height: 55%;
  transform: skewY(-7deg);
  background: linear-gradient(90deg, rgba(215, 195, 106, 0.62), rgba(215, 195, 106, 0.08));
  filter: blur(1px);
  opacity: 0.7;
}

.animatronic-shadow {
  inset: auto 16% 10% auto;
  width: 122px;
  height: 225px;
  border-radius: 46px 46px 12px 12px;
  background: #030405;
  box-shadow:
    -42px 28px 0 -18px #030405,
    40px 28px 0 -18px #030405,
    0 0 64px rgba(0, 0, 0, 0.9);
}

.animatronic-shadow::before,
.animatronic-shadow::after {
  position: absolute;
  content: "";
  background: #030405;
}

.animatronic-shadow::before {
  top: -66px;
  left: 19px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
}

.animatronic-shadow::after {
  top: -35px;
  left: 27px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 48px 0 0 var(--red), 0 0 18px rgba(240, 79, 69, 0.9), 48px 0 18px rgba(240, 79, 69, 0.9);
}

.static-lines {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(88, 208, 191, 0.03) 0 1px, transparent 1px 19px);
  mix-blend-mode: screen;
  opacity: 0.55;
}

.vignette {
  box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.94);
}

.project-info {
  padding: clamp(24px, 4vw, 46px);
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.status-pill {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 10px;
  border: 1px solid rgba(130, 216, 107, 0.35);
  border-radius: 8px;
  color: var(--green);
  background: rgba(130, 216, 107, 0.1);
}

.project-info h3 {
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.project-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 30px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.project-stats div {
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
}

dt {
  color: var(--muted);
  font-size: 12px;
}

dd {
  margin: 4px 0 0;
  font-weight: 800;
}

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

.role-card {
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.role-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 34px;
  border-radius: 8px;
  color: #10151b;
  background: var(--cyan);
  font-weight: 900;
}

.role-card:nth-child(2) .role-icon {
  background: var(--amber);
}

.role-card:nth-child(3) .role-icon {
  background: var(--red);
}

.role-card:nth-child(4) .role-icon {
  background: var(--green);
}

.role-card h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.join {
  background:
    linear-gradient(rgba(20, 16, 23, 0.88), rgba(9, 11, 16, 0.94)),
    radial-gradient(circle at 18% 20%, rgba(240, 79, 69, 0.22), transparent 34%),
    radial-gradient(circle at 84% 38%, rgba(215, 195, 106, 0.14), transparent 28%);
}

.join-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 32px;
  align-items: end;
}

.join p {
  max-width: 720px;
  margin: 20px 0 0;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 4vw, 56px);
  color: var(--muted);
  background: #07090e;
  font-size: 14px;
}

@media (max-width: 900px) {
  .hero,
  .split,
  .project-card,
  .join-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 92vh;
    align-items: center;
    padding-top: 108px;
  }

  .build-panel {
    max-width: 520px;
  }

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

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    padding: 14px 14px 0;
  }

  .brand-text {
    display: none;
  }

  .nav {
    gap: 10px;
    font-size: 12px;
  }

  .hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-actions,
  .join-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .project-visual {
    min-height: 300px;
  }

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

  .footer {
    flex-direction: column;
  }
}
