:root {
  --bg: #080a0d;
  --panel: #10151b;
  --panel-soft: #151b22;
  --text: #f3f0e8;
  --muted: #a7adb5;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #79f0c6;
  --accent-2: #ffcf5a;
  --danger: #ff625f;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(121, 240, 198, 0.14), transparent 34rem),
    linear-gradient(180deg, #080a0d 0%, #0d1015 48%, #090b0e 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

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

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

.topbar {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(8, 10, 13, 0.78);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  justify-content: space-between;
  left: 0;
  min-height: 70px;
  padding: 0 32px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 15px;
  font-weight: 800;
  gap: 10px;
  letter-spacing: 0;
}

.brand-mark {
  border-radius: 6px;
  display: block;
  height: 28px;
  object-fit: contain;
  width: 28px;
}

.nav {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: center;
}

.nav a {
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  padding: 8px 12px;
}

.nav a:hover,
.nav a:focus-visible {
  border-color: var(--line);
  color: var(--text);
  outline: none;
}

.audio-control {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-self: end;
}

.audio-toggle {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  padding: 0;
  width: 36px;
}

.audio-toggle:hover,
.audio-toggle:focus-visible,
.audio-toggle.is-playing {
  border-color: rgba(255, 255, 255, 0.34);
  outline: none;
}

.audio-icon {
  border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor;
  border-top: 6px solid transparent;
  display: block;
  margin-left: 2px;
}

.audio-toggle.is-playing .audio-icon {
  border: 0;
  height: 12px;
  margin-left: 0;
  position: relative;
  width: 10px;
}

.audio-toggle.is-playing .audio-icon::before,
.audio-toggle.is-playing .audio-icon::after {
  background: currentColor;
  content: "";
  height: 12px;
  position: absolute;
  top: 0;
  width: 3px;
}

.audio-toggle.is-playing .audio-icon::before {
  left: 0;
}

.audio-toggle.is-playing .audio-icon::after {
  right: 0;
}

.volume-control {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  text-transform: uppercase;
}

.volume-slider {
  accent-color: var(--accent);
  cursor: pointer;
  width: 92px;
}

.hero {
  display: grid;
  min-height: 92vh;
  overflow: hidden;
  padding: 118px 32px 72px;
  place-items: end start;
  position: relative;
}

.hero-media {
  inset: 0;
  position: absolute;
}

.hero-media::after {
  background:
    linear-gradient(90deg, rgba(8, 10, 13, 0.88) 0%, rgba(8, 10, 13, 0.55) 48%, rgba(8, 10, 13, 0.2) 100%),
    linear-gradient(180deg, rgba(8, 10, 13, 0.22) 0%, rgba(8, 10, 13, 0.92) 100%);
  content: "";
  inset: 0;
  position: absolute;
}

.hero-media video {
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  width: 100%;
}

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

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1,
h2 {
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0;
}

h1 {
  font-size: clamp(64px, 13vw, 164px);
  max-width: 900px;
}

h2 {
  font-size: clamp(36px, 7vw, 92px);
}

.lead {
  color: #d6d5cf;
  font-size: clamp(18px, 2vw, 24px);
  margin: 24px 0 0;
  max-width: 680px;
}

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

.button {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
}

.button:hover,
.button:focus-visible {
  border-color: rgba(255, 255, 255, 0.32);
  outline: none;
  transform: translateY(-1px);
}

.button.primary {
  background: var(--text);
  border-color: var(--text);
  color: #0b0d10;
}

.strip {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.strip div {
  min-height: 132px;
  padding: 28px 32px;
}

.strip div + div {
  border-left: 1px solid var(--line);
}

.strip strong {
  display: block;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.strip span {
  color: var(--muted);
  display: block;
  margin-top: 8px;
}

.section {
  padding: 92px 32px 106px;
}

.section-alt {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    #0b0f13;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.section-heading {
  align-items: end;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr);
  margin: 0 auto 36px;
  max-width: 1280px;
}

.section-heading p:last-child {
  color: var(--muted);
  font-size: 16px;
  margin: 0;
}

.tabs {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto 38px;
  max-width: 420px;
  padding: 5px;
}

.tab {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  min-height: 44px;
  padding: 0 18px;
}

.tab.is-active {
  background: var(--text);
  color: #0b0d10;
}

.tab:focus-visible {
  outline: 2px solid rgba(121, 240, 198, 0.48);
  outline-offset: 3px;
}

.tab-panel {
  display: none;
  margin: 0 auto;
  max-width: 1280px;
}

.tab-panel.is-active {
  display: block;
}

#panel-vfx.is-active {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#panel-vfx .work-group {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018));
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  padding: 16px;
  position: relative;
}

#panel-vfx .work-group::before {
  background: linear-gradient(90deg, transparent, rgba(121, 240, 198, 0.5), rgba(255, 207, 90, 0.2), transparent);
  content: "";
  height: 2px;
  left: 24px;
  opacity: 0.72;
  position: absolute;
  right: 24px;
  top: 0;
}

#panel-vfx .work-group + .work-group {
  margin-top: 0;
}

#panel-vfx .grid {
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.work-group + .work-group {
  margin-top: 64px;
}

.group-heading {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 0 0 18px;
}

.group-heading .eyebrow {
  margin-bottom: 10px;
}

.group-title {
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1;
  margin: 0;
}

.group-count {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 11px;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.work-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
  cursor: pointer;
  min-width: 0;
  overflow: hidden;
  position: relative;
  transform: translateY(0) scale(1);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
  will-change: transform;
}

.work-card::after {
  background: linear-gradient(135deg, rgba(121, 240, 198, 0.18), transparent 45%);
  content: "";
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 220ms ease;
}

.work-card:focus-visible {
  border-color: var(--accent);
  outline: 2px solid rgba(121, 240, 198, 0.4);
  outline-offset: 3px;
}

.work-card:hover {
  border-color: rgba(121, 240, 198, 0.42);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(121, 240, 198, 0.08);
  transform: translateY(-5px) scale(1.018);
  z-index: 2;
}

.work-card:hover::after {
  opacity: 1;
}

.work-preview {
  aspect-ratio: 16 / 9;
  background: #121920;
  overflow: hidden;
  position: relative;
}

.work-preview video,
.work-preview img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: filter 260ms ease, transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
  width: 100%;
}

.work-card:hover .work-preview video,
.work-card:hover .work-preview img {
  filter: saturate(1.16) contrast(1.06);
  transform: scale(1.085);
}

.work-preview::after {
  background: linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.28) 100%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.about {
  align-items: start;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 0.78fr) minmax(280px, 0.62fr);
  margin: 0 auto;
  max-width: 1280px;
  padding: 94px 32px 112px;
}

.about p:last-child {
  color: #d1d0ca;
  font-size: clamp(18px, 2vw, 24px);
  margin: 0;
}

.lightbox {
  align-items: center;
  background: rgba(2, 3, 5, 0.92);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 72px 26px 32px;
  position: fixed;
  z-index: 40;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-close {
  background: var(--text);
  border: 0;
  border-radius: 999px;
  color: #07090c;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  min-height: 42px;
  padding: 0 16px;
  position: fixed;
  right: 24px;
  top: 20px;
}

.lightbox-inner {
  max-height: 86vh;
  max-width: min(1180px, 100%);
  width: 100%;
}

.lightbox video,
.lightbox img {
  background: #000;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: none;
  max-height: 78vh;
  object-fit: contain;
  width: 100%;
}

.footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  min-height: 78px;
  padding: 0 32px;
}

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

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

.project-label {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
}

.discord-link {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.discord-link svg {
  fill: currentColor;
  height: 20px;
  width: 20px;
}

@media (max-width: 980px) {
  .section-heading,
  .about {
    grid-template-columns: 1fr;
  }

  #panel-vfx.is-active {
    grid-template-columns: 1fr;
  }

  #panel-vfx .work-group + .work-group {
    margin-top: 0;
  }

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

@media (max-width: 720px) {
  .topbar {
    grid-template-columns: auto 1fr auto;
    min-height: 64px;
    padding: 0 16px;
  }

  .nav {
    gap: 2px;
  }

  .nav a {
    font-size: 13px;
    padding: 7px 8px;
  }

  .audio-control {
    gap: 7px;
  }

  .audio-toggle {
    height: 34px;
    width: 34px;
  }

  .volume-control span {
    display: none;
  }

  .volume-slider {
    width: 64px;
  }

  .hero {
    min-height: 88vh;
    padding: 104px 18px 54px;
  }

  .hero-media::after {
    background:
      linear-gradient(90deg, rgba(8, 10, 13, 0.86), rgba(8, 10, 13, 0.52)),
      linear-gradient(180deg, rgba(8, 10, 13, 0.2), rgba(8, 10, 13, 0.94));
  }

  h1 {
    font-size: clamp(54px, 18vw, 92px);
  }

  .lead {
    font-size: 18px;
  }

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

  .strip div {
    min-height: 104px;
    padding: 22px 18px;
  }

  .strip div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .section,
  .about {
    padding-left: 18px;
    padding-right: 18px;
  }

  .tabs {
    margin-bottom: 34px;
    max-width: none;
  }

  .group-heading {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }

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

  #panel-vfx .grid {
    grid-template-columns: 1fr;
  }

  .footer {
    padding: 0 18px;
  }

  .footer-links {
    gap: 12px;
  }

  .project-label {
    display: none;
  }

  .discord-link span {
    display: none;
  }
}
