:root {
  --bg: #030403;
  --text: #f3f4ee;
  --muted: rgba(243, 244, 238, 0.68);
  --soft: rgba(243, 244, 238, 0.12);
  --panel: rgba(4, 5, 4, 0.56);
  --accent: #72f8bd;
  --accent-deep: #14c985;
  --radius: 18px;
  --max: 1480px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", "Arial Nova", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0;
}

body.is-loading {
  overflow: hidden;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 22px;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 38%, rgba(114, 248, 189, 0.13), transparent 30rem),
    #030403;
  color: var(--text);
  transition: opacity 650ms ease, visibility 650ms ease;
}

body:not(.is-loading) .loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  width: 72px;
  height: 72px;
  border: 1px solid rgba(243, 244, 238, 0.18);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 46px rgba(114, 248, 189, 0.24);
}

.loader-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.loader-copy {
  display: grid;
  gap: 8px;
  text-align: center;
}

.loader-copy span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.loader-copy strong {
  font-size: clamp(28px, 5vw, 58px);
  line-height: 0.95;
}

.loader-bar {
  width: min(460px, 82vw);
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(243, 244, 238, 0.12);
}

.loader-bar span {
  display: block;
  width: var(--loader-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  box-shadow: 0 0 24px rgba(114, 248, 189, 0.54);
  transition: width 220ms ease;
}

.loader-percent {
  color: var(--muted);
  font-size: 13px;
}

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

button {
  font: inherit;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  animation: progress-grow linear both;
  animation-timeline: scroll(root);
}

@keyframes progress-grow {
  to {
    transform: scaleX(1);
  }
}

.stage {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #030403;
}

.video-layer {
  position: absolute;
  inset: -4vh -4vw;
  opacity: 0;
  transform: scale(1.08);
  filter: blur(20px) saturate(0.82) brightness(0.76);
  transition:
    opacity 1500ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 2200ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 1800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.video-layer.active {
  opacity: 1;
  transform: scale(1);
  filter: blur(0) saturate(1.04);
}

.video-layer.exiting {
  opacity: 0;
  transform: scale(1.035);
  filter: blur(12px) saturate(0.9) brightness(0.84);
}

.video-layer video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.video-layer.mirror video {
  transform: scaleX(-1);
}

.stage-grade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 42%, rgba(3, 4, 3, 0.08), rgba(3, 4, 3, 0.72) 58%, rgba(3, 4, 3, 0.94)),
    linear-gradient(90deg, rgba(3, 4, 3, 0.88), rgba(3, 4, 3, 0.38) 46%, rgba(3, 4, 3, 0.84)),
    linear-gradient(180deg, rgba(3, 4, 3, 0.42), rgba(3, 4, 3, 0.18) 42%, rgba(3, 4, 3, 0.95));
}

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(var(--max), calc(100% - 40px));
  height: 78px;
  transform: translateX(-50%);
  border-bottom: 1px solid var(--soft);
  background: rgba(3, 4, 3, 0.42);
  backdrop-filter: blur(20px);
}

.brand,
.main-nav,
.language-switch {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-size: 15px;
  font-weight: 800;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(243, 244, 238, 0.18);
  border-radius: 10px;
  overflow: hidden;
  background: #060706;
  box-shadow: 0 0 26px rgba(114, 248, 189, 0.2);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-nav {
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

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

.language-switch {
  justify-content: flex-end;
  gap: 4px;
}

.lang-button {
  min-width: 42px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.lang-button.active,
.lang-button:hover {
  border-color: rgba(114, 248, 189, 0.38);
  background: rgba(114, 248, 189, 0.12);
  color: var(--text);
}

.story {
  position: relative;
}

.chapter {
  display: grid;
  align-items: start;
  min-height: 145dvh;
  padding: 116px max(20px, calc((100vw - var(--max)) / 2)) 86px;
}

.hero-chapter {
  min-height: 125dvh;
}

.chapter.left {
  justify-items: start;
}

.chapter.right {
  justify-items: end;
}

.chapter-copy {
  position: sticky;
  top: clamp(118px, 24vh, 230px);
  width: min(650px, 100%);
  opacity: 0;
  transform: translateY(32px);
  filter: blur(8px);
  transition:
    opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.chapter.active .chapter-copy {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.hero-copy {
  width: min(960px, 100%);
}

.kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chapter-index {
  display: inline-flex;
  margin-bottom: 30px;
  color: rgba(243, 244, 238, 0.54);
  font-size: 13px;
  font-weight: 850;
}

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

h1 {
  max-width: 980px;
  margin-bottom: 26px;
  font-size: clamp(68px, 11vw, 168px);
  font-weight: 680;
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(46px, 6vw, 92px);
  font-weight: 660;
  line-height: 0.92;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(24px, 2.2vw, 36px);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: 0;
}

.chapter-copy p:not(.kicker),
.section-heading p:not(.kicker),
.proof-item p,
.player-copy p,
.vertical-player p,
.music-section p,
.automation-card p,
.site-footer {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.chapter-copy p:not(.kicker) {
  max-width: 620px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 20px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
  transition: transform 160ms ease, background 160ms ease;
}

.button:active {
  transform: translateY(1px) scale(0.99);
}

.button.primary {
  background: var(--accent);
  color: #03100a;
}

.proof,
.portfolio,
.contact,
.site-footer {
  position: relative;
  z-index: 5;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.proof {
  padding: 150px 0;
}

.portfolio {
  padding: 40px 0 150px;
}

.portfolio > .section-heading {
  max-width: 820px;
  margin-bottom: 40px;
}

.portfolio > .section-heading h2 {
  font-size: clamp(36px, 4.4vw, 68px);
}

.section-heading {
  max-width: 900px;
  margin-bottom: 58px;
}

.section-heading h2,
.contact h2 {
  font-size: clamp(40px, 5vw, 82px);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--soft);
  border-radius: var(--radius);
  background: var(--soft);
}

.proof-item {
  min-height: 330px;
  padding: 30px;
  background: rgba(3, 4, 3, 0.72);
  backdrop-filter: blur(20px);
}

.proof-item span {
  display: block;
  margin-bottom: 76px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.reel-card,
.music-section,
.automation-card {
  border: 1px solid var(--soft);
  border-radius: var(--radius);
  background: rgba(3, 4, 3, 0.72);
  backdrop-filter: blur(22px);
}

.reel-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.7fr) minmax(360px, 1.4fr) minmax(170px, 0.7fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 24px;
}

.reel-card {
  padding: 10px;
}

.automation-card span,
.track-item span {
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.portfolio-video {
  display: block;
  width: 100%;
  border: 1px solid rgba(243, 244, 238, 0.12);
  border-radius: calc(var(--radius) - 6px);
  background:
    radial-gradient(circle at 50% 38%, rgba(114, 248, 189, 0.12), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 40%),
    #050605;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.landscape-video,
.automation-card .portfolio-video {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.portrait-video {
  aspect-ratio: 9 / 16;
  width: 100%;
  height: auto;
  object-fit: cover;
  justify-self: center;
}

.music-section {
  padding: 22px;
  margin-bottom: 24px;
}

.section-heading.compact {
  max-width: 760px;
  margin-bottom: 22px;
}

.section-heading.compact h2 {
  font-size: clamp(28px, 3vw, 46px);
}

.track-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 8px;
}

.track-item {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 120px;
  padding: 12px;
  border: 1px solid var(--soft);
  border-radius: calc(var(--radius) - 6px);
  background:
    linear-gradient(135deg, rgba(114, 248, 189, 0.08), transparent 58%),
    rgba(255, 255, 255, 0.032);
}

.track-item span {
  margin-bottom: 4px;
}

.track-item strong {
  display: block;
  font-size: 15px;
}

.track-item audio {
  width: 100%;
  height: 32px;
}

.automation-reels {
  display: grid;
  gap: 18px;
}

.automation-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.46fr) minmax(420px, 1fr);
  gap: 24px;
  align-items: center;
  padding: 22px;
}

.automation-card.reverse {
  grid-template-columns: minmax(420px, 1fr) minmax(260px, 0.46fr);
}

.automation-card.reverse > div {
  order: 2;
}

.mirror-player {
  transform: scaleX(-1);
}

.contact {
  margin-bottom: 96px;
  padding: 56px;
  border: 1px solid rgba(114, 248, 189, 0.28);
  border-radius: var(--radius);
  background: rgba(3, 4, 3, 0.68);
  backdrop-filter: blur(22px);
}

.contact h2 {
  max-width: 1020px;
  margin-bottom: 20px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 42px;
  border-top: 1px solid var(--soft);
  font-size: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .main-nav {
    display: none;
  }

  .chapter,
  .chapter.left,
  .chapter.right {
    justify-items: start;
  }

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

  .featured-player,
  .vertical-showcase,
  .vertical-player,
  .reel-row,
  .automation-card,
  .automation-card.reverse,
  .track-item {
    grid-template-columns: 1fr;
  }

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

  .automation-card.reverse > div {
    order: 0;
  }

  .portrait-video {
    width: min(100%, 420px);
    justify-self: center;
  }
}

@media (max-width: 680px) {
  .site-header,
  .proof,
  .portfolio,
  .contact,
  .site-footer {
    width: calc(100% - 28px);
  }

  .site-header {
    height: 68px;
  }

  .brand span:last-child {
    display: none;
  }

  .chapter {
    min-height: 135dvh;
    padding: 96px 18px 72px;
  }

  .chapter-copy {
    top: 112px;
  }

  h1 {
    font-size: clamp(48px, 15vw, 78px);
  }

  h2 {
    font-size: clamp(38px, 11vw, 60px);
  }

  .chapter-copy p:not(.kicker),
  .section-heading p:not(.kicker),
  .proof-item p,
  .music-section p,
  .automation-card p {
    font-size: 16px;
  }

  .proof {
    padding: 110px 0;
  }

  .portfolio {
    padding: 20px 0 110px;
  }

  .proof-item {
    min-height: 260px;
    padding: 24px;
  }

  .reel-card,
  .music-section,
  .automation-card,
  .vertical-player {
    padding: 18px;
  }

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

  .proof-item span {
    margin-bottom: 46px;
  }

  .contact {
    padding: 30px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

  .chapter-copy,
  .reveal {
    opacity: 1;
    transform: none;
  }
}
