* {
  box-sizing: border-box;
}

:root {
  --bg-deep: var(--cvt-color-surface-deep, #06131f);
  --bg-ink: var(--cvt-color-surface, #0b1a27);
  --bg-glow: var(--cvt-color-surface-strong, #0f2d40);
  --surface: color-mix(in srgb, var(--cvt-color-surface, #0b1a27) 78%, transparent);
  --surface-strong: color-mix(in srgb, var(--cvt-color-surface-strong, #0f2d40) 90%, transparent);
  --border: var(--cvt-color-border-hairline, rgba(140, 190, 220, 0.18));
  --text: var(--cvt-color-text, #e9f1ff);
  --muted: var(--cvt-color-text-muted, rgba(233, 241, 255, 0.7));
  --accent: var(--cvt-color-accent, #62c7ff);
  --accent-warm: var(--cvt-color-candle-glow, #f7b25a);
  --shadow: var(--cvt-color-shadow, rgba(0, 0, 0, 0.55));
  --radius: var(--cvt-shape-radius, 18px);
}

body {
  margin: 0;
  font-family: var(--cvt-font-family, "Manrope", "Segoe UI", sans-serif);
  color: var(--text);
  background: radial-gradient(circle at top, #133148 0%, var(--bg-ink) 45%, var(--bg-deep) 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(120deg, rgba(6, 12, 20, 0.78), rgba(8, 18, 28, 0.2)),
    url("../assets/pirate-ships-at-night.png");
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  z-index: -2;
}

html[data-cvt-theme=""] body:not(.the-kit-page)::before {
  background-image: none;
  opacity: 0;
}

html[data-cvt-theme="pirate"] body:not(.the-kit-page)::before {
  background-image:
    linear-gradient(120deg, rgba(6, 12, 20, 0.78), rgba(8, 18, 28, 0.2)),
    url("../assets/pirate-ships-at-night.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.45;
}

html[data-cvt-theme="space"] body:not(.the-kit-page)::before {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.48), rgba(4, 6, 10, 0.82)),
    url("../assets/space-enterprise-bridge.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.52;
}

html[data-cvt-theme="wotlk"] body:not(.the-kit-page)::before {
  background-image:
    linear-gradient(180deg, rgba(7, 17, 28, 0.5), rgba(3, 7, 16, 0.82)),
    url("../assets/cinematic_render_frostmourne_full.webp");
  background-size: cover;
  background-position: center 18%;
  background-repeat: no-repeat;
  opacity: 0.32;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 10%, rgba(98, 199, 255, 0.18), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(247, 178, 90, 0.12), transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(8, 16, 24, 0.75), transparent 60%);
  z-index: -1;
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(16px, 4vw, 48px);
  gap: 16px;
  background: rgba(7, 14, 22, 0.7);
  border-bottom: 1px solid rgba(140, 190, 220, 0.12);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.45));
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-title {
  font-family: var(--cvt-font-serif, "Cinzel", "Georgia", serif);
  font-size: 20px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 13px;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
}

.topbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px 16px;
}

.shell-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.shell-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.shell-control-label {
  font-family: var(--cvt-font-mono, "JetBrains Mono", Consolas, monospace);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text) 72%, var(--accent) 28%);
}

.shell-control-options {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(140, 190, 220, 0.28);
  background: rgba(7, 14, 22, 0.68);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
}

.shell-control-button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.045);
  color: color-mix(in srgb, var(--text) 92%, var(--accent) 8%);
  font: 600 12px/1 var(--cvt-font-family, "Manrope", "Segoe UI", sans-serif);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.shell-control-button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.085);
  box-shadow: inset 0 0 0 1px rgba(140, 190, 220, 0.22);
}

.shell-control-button[aria-pressed="true"] {
  background: color-mix(in srgb, var(--accent) 26%, rgba(255, 255, 255, 0.08));
  color: var(--text);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, rgba(255, 255, 255, 0.12));
}

.shell-control-options:hover,
.shell-control-options:focus-within {
  border-color: rgba(98, 199, 255, 0.35);
  background: rgba(14, 24, 38, 0.6);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.nav-link-new {
  border-color: rgba(247, 178, 90, 0.45);
  background: rgba(45, 24, 9, 0.28);
}

.badge-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #271303;
  background: linear-gradient(120deg, #ffd289, #f7b25a);
  border-radius: 999px;
  padding: 2px 8px;
}

.nav-link:hover {
  border-color: rgba(98, 199, 255, 0.35);
  background: rgba(14, 24, 38, 0.6);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px clamp(16px, 4vw, 48px) 90px;
}

.promo-strip {
  margin-bottom: 18px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(247, 178, 90, 0.42);
  background: linear-gradient(120deg, rgba(55, 30, 12, 0.72), rgba(21, 14, 9, 0.72));
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
  width: 100%;
}

.promo-strip p {
  margin: 0;
  color: #ffd9a5;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 34px;
  align-items: center;
}

.intro-copy {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.intro-copy h1 {
  font-family: "Cinzel", "Georgia", serif;
  font-size: clamp(34px, 5vw, 56px);
  margin: 8px 0 16px;
  line-height: 1.05;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 11px;
  color: var(--muted);
}

.lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 560px;
}

.feature-label {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 11px;
  color: var(--accent-warm);
}

.intro-portrait {
  position: relative;
  align-self: center;
  justify-self: end;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  min-height: 320px;
  max-width: 360px;
  width: 100%;
}

.intro-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.feature-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  margin: 60px 0 0;
}

.feature-band > .section {
  margin: 0;
  display: contents;
}

.feature-band .section-header {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin: 0;
}

.feature-band .section-header p {
  margin-bottom: 0;
}

#vision-teaser .section-header {
  grid-column: 1;
  grid-row: 1;
}

#vision-teaser .vision-teaser-card {
  grid-column: 1;
  grid-row: 2;
}

.featured-project-section .section-header {
  grid-column: 2;
  grid-row: 1;
}

.featured-project-section .featured-project {
  grid-column: 2;
  grid-row: 2;
}

.vision-teaser-card {
  border-left: 3px solid var(--accent-warm);
  max-width: none;
  height: 100%;
}

.featured-project {
  display: block;
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 28px;
}

.featured-project-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.featured-project-copy h3 {
  font-family: "Cinzel", "Georgia", serif;
  font-size: clamp(28px, 3vw, 38px);
  margin: 0;
}

.featured-project-copy p {
  margin: 0;
  max-width: 620px;
}

.featured-project-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}

.featured-project-section {
  display: flex;
  flex-direction: column;
}

.featured-project-section .featured-project {
  flex: 1;
}

.feature-link-inline {
  color: var(--text);
  font-weight: 700;
}

.portrait-note {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(10, 18, 28, 0.7);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.section {
  margin: 60px 0;
}

.section-header h2 {
  font-family: "Cinzel", "Georgia", serif;
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 8px;
}

.section-header p {
  color: var(--muted);
  max-width: 600px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: 0 18px 40px var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
  min-height: 140px;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 18px;
}

.card p {
  color: var(--muted);
  line-height: 1.6;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(98, 199, 255, 0.4);
}

.featured-project {
  background:
    linear-gradient(90deg, rgba(7, 15, 24, 0.94) 0%, rgba(7, 15, 24, 0.88) 42%, rgba(7, 15, 24, 0.72) 100%),
    url("../music-hero/assets/grok-image-ea9c56ad-df9d-4e62-91cc-23c9b532eb30.png");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

.project {
  position: relative;
}

.tag {
  display: inline-flex;
  margin-top: 18px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(98, 199, 255, 0.4);
  color: var(--accent);
}

.tag-new {
  border-color: rgba(247, 178, 90, 0.5);
  color: #ffcf84;
}

.spotlight {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
  align-items: center;
  background: var(--surface-strong);
  border-radius: calc(var(--radius) + 6px);
  padding: 26px;
  border: 1px solid rgba(98, 199, 255, 0.2);
}

.spotlight-media img {
  width: 100%;
  border-radius: calc(var(--radius) - 6px);
  display: block;
}

.spotlight-copy h2 {
  font-family: "Cinzel", "Georgia", serif;
  margin-top: 0;
}

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

.footer {
  border-top: 1px solid rgba(140, 190, 220, 0.12);
  padding: 26px clamp(16px, 4vw, 48px);
  background: rgba(6, 12, 18, 0.75);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

.reveal {
  animation: rise 0.6s ease forwards;
  opacity: 0;
  transform: translateY(16px);
}

.grid .reveal:nth-child(1) {
  animation-delay: 0.1s;
}

.grid .reveal:nth-child(2) {
  animation-delay: 0.2s;
}

.grid .reveal:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-right {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

  .nav {
    width: 100%;
  }

  .shell-controls {
    width: 100%;
    justify-content: flex-start;
  }

  .shell-control {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .shell-control-options {
    width: 100%;
    justify-content: flex-start;
  }

  .shell-control-button {
    flex: 1 1 calc(50% - 2px);
    text-align: center;
  }

  .promo-strip {
    border-radius: var(--radius);
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 26px;
  }

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

  .feature-band {
    grid-template-columns: 1fr;
    margin-top: 60px;
    gap: 32px;
  }

  .feature-band > .section {
    display: flex;
    flex-direction: column;
  }

  .featured-project {
    min-height: 220px;
    padding: 22px;
    background-position: center;
  }

  .intro-portrait {
    justify-self: stretch;
    max-width: none;
    min-height: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
