:root {
  --bg: #050506;
  --ink: #f5f0e8;
  --muted: rgba(245, 240, 232, 0.72);
  --quiet: rgba(245, 240, 232, 0.52);
  --line: rgba(245, 240, 232, 0.16);
  --red: #e71919;
  --red-dark: #8f1111;
  --gold: #d7b66a;
  --panel: rgba(10, 10, 12, 0.74);
  --panel-solid: #111114;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
  --header-h: 68px;
  --font-main: "Trebuchet MS", Arial, Helvetica, sans-serif;
  --font-display: "Trebuchet MS", Arial, Helvetica, sans-serif;
}

@font-face {
  font-family: "Zull Wettis KejC";
  src: url("../assets/fonts/zull/Zull Wettis Cyrillic Script.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "MADE Winter KejC";
  src: url("../assets/fonts/made-winter/Made_Winter_Solid_PERSONAL_USE_0.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Monimer Serif KejC";
  src: url("../assets/fonts/monimer/MonimerSerif_PERSONAL_USE_ONLY.otf") format("opentype");
  font-display: swap;
}

body.font-2 {
  --font-main: "Segoe UI", Arial, Helvetica, sans-serif;
  --font-display: "Segoe UI", Arial, Helvetica, sans-serif;
}

body.font-3 {
  --font-main: "Trebuchet MS", Arial, Helvetica, sans-serif;
  --font-display: "Trebuchet MS", Arial, Helvetica, sans-serif;
}

body.font-4 {
  --font-main: "Monimer Serif KejC", Georgia, serif;
  --font-display: "Monimer Serif KejC", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-main);
  line-height: 1.48;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
  padding: 14px clamp(16px, 4vw, 54px);
  background: linear-gradient(180deg, rgba(5, 5, 6, 0.96), rgba(5, 5, 6, 0.55));
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 260ms ease, transform 260ms ease, visibility 0s linear 260ms;
}

.site-header.is-scrolled {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

.brand {
  justify-self: start;
  width: 76px;
  opacity: 1;
  visibility: visible;
  transform: none;
}

.brand img {
  width: 100%;
  height: auto;
}

.site-header.is-scrolled .brand {
  opacity: 1;
}

.nav-links {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.hero-plans {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.7fr) minmax(560px, 1.3fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: stretch;
  padding: calc(var(--header-h) + 24px) clamp(18px, 4vw, 56px) 34px;
  overflow: hidden;
}

.parallax-bg,
.section-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.parallax-bg {
  position: fixed;
  background: url("../assets/kejc-hero-left-extended.jpg?ver15") center / cover no-repeat;
  transform: none;
  will-change: auto;
}

.hero-copy,
.plans-stack {
  position: relative;
  z-index: 1;
}

.hero-copy {
  min-height: calc(100vh - var(--header-h) - 58px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 0;
  text-align: left;
  animation: hero-copy-in 900ms ease-out 120ms both;
}

.kicker,
.section-label {
  margin: 0 0 12px;
  padding: 0;
  color: var(--gold);
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.kicker {
  font-size: 16px;
}

.section-label {
  font-size: 20px;
}

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

h1 {
  display: block;
  margin: 0 0 34px;
  padding: 0;
  color: var(--red);
  font-size: clamp(78px, 10vw, 150px);
  line-height: 0.86;
  letter-spacing: 0;
  font-family: var(--font-display);
  font-style: italic;
}

.hero-logo-title {
  width: min(340px, 62vw);
}

.hero-logo-title img {
  width: 100%;
  height: auto;
}

blockquote {
  position: relative;
  max-width: 560px;
  margin: 0 0 34px;
  padding: 22px 24px 24px;
  border-radius: 28px 28px 28px 6px;
  color: #08090b;
  background: rgba(245, 240, 232, 0.5);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
  font-size: clamp(22px, 2.1vw, 34px);
  font-weight: 800;
  line-height: 1.12;
  font-family: var(--font-display);
  font-style: italic;
}

body.font-4 blockquote {
  font-family: "Zull Wettis KejC", var(--font-display);
  font-weight: 400;
}

.together {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(18px, 1.65vw, 26px);
  font-weight: 900;
  letter-spacing: 0;
  font-family: var(--font-display);
  font-style: italic;
}

body.font-4 .together {
  font-family: "MADE Winter KejC", var(--font-display);
  font-weight: 400;
}

.plans-stack {
  display: grid;
  gap: 16px;
  padding-top: 0;
  align-content: center;
  min-height: calc(100vh - var(--header-h) - 58px);
}

.plan-card {
  height: 300px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  backdrop-filter: none;
  opacity: 0;
  transform: translateY(18px);
  animation:
    plan-card-in 900ms ease-out both,
    plan-card-breathe 5200ms ease-in-out infinite;
  transition: opacity 220ms ease, transform 220ms ease;
  will-change: opacity, transform;
}

.plan-card-inner {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  height: 100%;
  overflow: hidden;
  animation: plan-card-drift 7200ms ease-in-out infinite;
  will-change: transform;
}

.plan-card-primary {
  min-height: 0;
  animation-delay: 1100ms, 2300ms;
}

.plan-card:not(.plan-card-primary) {
  animation-delay: 1450ms, 2650ms;
}

.plan-card-primary .plan-card-inner {
  animation-delay: 2300ms;
}

.plan-card:not(.plan-card-primary) .plan-card-inner {
  animation-delay: 3150ms;
}

.plan-card:hover,
.plan-card:focus-within {
  opacity: 1;
  transform: translateY(-2px);
  background: transparent;
  box-shadow: none;
  animation-play-state: paused;
}

.plan-card:hover .plan-card-inner,
.plan-card:focus-within .plan-card-inner {
  animation-play-state: paused;
}

.plan-media {
  min-height: 100%;
  background: #0e0e10;
}

.plan-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(0.15) contrast(1.12);
}

.plan-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.42fr);
  gap: clamp(18px, 2vw, 28px);
  padding: 20px 22px;
  background: rgba(5, 5, 6, 0.46);
  backdrop-filter: blur(10px);
}

.plan-text ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.34;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.88);
}

.plan-text h2 {
  margin: 0 0 6px;
  font-size: 24px;
  font-style: italic;
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.88);
}

.plan-text .section-label {
  margin-bottom: 7px;
}

.plan-buy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  border-left: 0;
  padding-left: 0;
}

.subtitle {
  margin: -2px 0 8px;
  color: var(--gold);
  font-size: 18px;
  font-style: italic;
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.88);
}

.price {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.88);
}

.buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  min-height: 48px;
  border-radius: 6px;
  padding: 13px 18px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease;
}

button.buy-btn {
  appearance: none;
  border: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  cursor: pointer;
}

.buy-btn:hover {
  transform: translateY(-2px);
  background: #ff2a2a;
}

.media-section {
  position: relative;
  overflow: hidden;
  padding: clamp(70px, 9vw, 124px) clamp(16px, 4vw, 54px);
}

.media-section .section-inner,
.footer-music,
.footer-bottom,
.socials {
  animation: section-soft-in 700ms ease-out both;
}

.media-bg {
  background:
    linear-gradient(90deg, rgba(5, 5, 6, 0.94), rgba(5, 5, 6, 0.7)),
    url("../assets/kejc-quote.jpg") center / cover no-repeat;
  opacity: 0.72;
}

.section-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 6vw, 84px);
}

.media-section h2,
.footer-music h2 {
  margin: 0 0 24px;
  font-size: clamp(30px, 4vw, 58px);
  line-height: 1;
  font-family: var(--font-display);
}

.link-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.link-cloud a,
.link-cloud span,
.footer-links a,
.footer-bottom a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-weight: 800;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.link-cloud a:hover,
.footer-links a:hover,
.footer-bottom a:hover {
  border-color: rgba(245, 240, 232, 0.34);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.placeholder-link {
  cursor: default;
}

.music-box {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
}

.audio-wrap {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.wave {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  align-items: end;
  gap: 8px;
  height: 72px;
  margin-bottom: 16px;
}

.wave span {
  min-height: 16px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--red), var(--gold));
  transform-origin: bottom;
  opacity: 0.72;
}

.wave span:nth-child(1) { height: 35%; }
.wave span:nth-child(2) { height: 74%; }
.wave span:nth-child(3) { height: 48%; }
.wave span:nth-child(4) { height: 92%; }
.wave span:nth-child(5) { height: 42%; }
.wave span:nth-child(6) { height: 82%; }
.wave span:nth-child(7) { height: 55%; }
.wave span:nth-child(8) { height: 96%; }
.wave span:nth-child(9) { height: 40%; }
.wave span:nth-child(10) { height: 62%; }

.audio-wrap.is-playing .wave span {
  animation: wave-pulse 760ms ease-in-out infinite alternate;
}

.audio-wrap.is-playing .wave span:nth-child(2n) {
  animation-duration: 610ms;
}

.audio-wrap.is-playing .wave span:nth-child(3n) {
  animation-duration: 920ms;
}

audio {
  width: 100%;
  accent-color: var(--red);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 46px clamp(16px, 4vw, 54px);
  background:
    radial-gradient(circle at 80% 12%, rgba(231, 25, 25, 0.13), transparent 30%),
    #050506;
}

.socials,
.footer-bottom,
.footer-music {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.socials p {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
}

.footer-links,
.footer-bottom,
.footer-bottom div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom {
  justify-content: space-between;
  margin-top: 34px;
}

.footer-music {
  margin-top: 34px;
  padding: 30px 0 0;
}

.footer-music .music-box {
  padding-top: 30px;
}

.legal-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(5, 5, 6, 0.86), #050506 34%),
    url("../assets/kejc-quote.jpg") center top / cover no-repeat fixed;
}

.legal-page .site-header {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.legal-main {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: calc(var(--header-h) + 58px) clamp(16px, 4vw, 54px) 70px;
}

.legal-content {
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 8, 10, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.legal-content h1 {
  margin-bottom: 10px;
  font-size: clamp(42px, 7vw, 76px);
}

.legal-content h2 {
  margin: 34px 0 10px;
  color: var(--ink);
  font-size: clamp(22px, 3vw, 31px);
  line-height: 1.1;
  font-family: var(--font-display);
}

.legal-content p,
.legal-content li,
.company-details {
  color: var(--muted);
  font-size: 18px;
}

.legal-updated {
  margin-bottom: 32px;
  color: var(--quiet);
}

.text-link {
  color: var(--gold);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.company-details {
  display: grid;
  gap: 14px;
  margin: 0;
}

.company-details div {
  display: grid;
  grid-template-columns: minmax(130px, 0.3fr) minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.company-details dt {
  color: var(--gold);
  font-weight: 900;
}

.company-details dd {
  margin: 0;
}

@keyframes wave-pulse {
  from {
    opacity: 0.45;
    transform: scaleY(0.5);
  }
  to {
    opacity: 0.96;
    transform: scaleY(1.08);
  }
}

@keyframes hero-copy-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes plan-card-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 0.9;
    transform: translateY(0);
  }
}

@keyframes plan-card-breathe {
  0%, 100% {
    opacity: 0.9;
  }
  50% {
    opacity: 0.68;
  }
}

@keyframes plan-card-drift {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-10px, 0, 0);
  }
}

@keyframes section-soft-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .plan-card {
    opacity: 0.9;
    transform: none;
  }
}

@media (max-width: 1120px) {
  .hero-plans {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 82px;
  }

  .hero-copy {
    min-height: auto;
    justify-content: flex-start;
    max-width: 760px;
  }

  .plans-stack {
    padding-top: 0;
    min-height: 0;
  }

  .plan-card-primary {
    min-height: 0;
  }
}

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

  .nav-links {
    display: none;
  }

  .hero-plans {
    padding-top: 74px;
  }

  .parallax-bg {
    background-image: url("../assets/kejc-hero-left-extended-mob.jpg?ver15");
    background-position: center center;
    animation: mobile-bg-pan 14000ms ease-in-out infinite alternate;
    will-change: background-position;
  }

  .hero-copy {
    gap: 0;
  }

  h1 {
    margin-bottom: 12px;
    font-size: clamp(58px, 20vw, 100px);
  }

  blockquote {
    max-width: 620px;
    margin-bottom: 14px;
    padding: 18px 20px 20px;
    font-size: clamp(20px, 5.3vw, 30px);
  }

  .together {
    margin-bottom: 0;
    font-size: 18px;
  }

  .plan-card,
  .plan-card-inner,
  .plan-content,
  .two-columns,
  .music-box {
    grid-template-columns: 1fr;
  }

  .plan-card {
    height: auto;
  }

  .plan-card-inner {
    animation: none;
    transform: none;
  }

  .plan-media {
    display: block;
    width: 200px;
    height: 200px;
    max-height: 200px;
    min-height: 0;
    margin: auto;
    border-radius: 100%;
    overflow: hidden;
  }

  .plan-content {
    gap: 18px;
  }

  .plan-buy {
    border-left: 0;
    border-top: 0;
    padding: 0;
  }

  .price {
    margin-top: 8px;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 12px 14px;
  }

  .brand {
    width: 64px;
  }

  .hero-plans {
    gap: 14px;
    padding: 66px 12px 34px;
  }

  .kicker {
    max-width: 280px;
    margin-bottom: 6px;
  }

  blockquote {
    margin-bottom: 10px;
    padding: 16px 17px 18px;
    font-size: 20px;
    line-height: 1.12;
  }

  .together {
    font-size: 16px;
  }

  .plan-card {
    border-radius: 0;
  }

  .plan-media {
    display: block;
    width: 200px;
    height: 200px;
    max-height: 200px;
    margin: auto;
    border-radius: 100%;
    overflow: hidden;
  }

  .plan-content {
    padding: 16px;
  }

  .plan-text ul {
    gap: 7px;
    line-height: 1.34;
  }

  .plan-text h2 {
    font-size: 24px;
  }

  .price {
    margin-bottom: 14px;
    font-size: 24px;
  }

  .buy-btn {
    width: 100%;
  }

  .media-section {
    padding-inline: 14px;
  }

}

@keyframes mobile-bg-pan {
  from {
    background-position: 48% center;
  }
  to {
    background-position: 54% center;
  }
}
