:root {
  color-scheme: dark;
  --gold: #e7bd72;
  --stage-time: 4.2s;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  overflow-x: hidden;
  color: var(--gold);
  background:
    radial-gradient(circle at 50% 34%, rgba(175, 75, 24, .2), transparent 36rem),
    linear-gradient(145deg, #050403, #110b07 56%, #040303);
  font-family: Arial, Helvetica, sans-serif;
}

body::before,
body::after {
  position: fixed;
  z-index: 0;
  inset: -14vmax;
  content: "";
  pointer-events: none;
  will-change: transform, opacity;
}

body::before {
  background:
    radial-gradient(circle at 28% 30%, rgba(178, 71, 21, .12) 0, transparent 28%),
    radial-gradient(circle at 74% 67%, rgba(111, 43, 16, .11) 0, transparent 31%);
  filter: blur(18px);
  animation: ambient-drift-warm 30s ease-in-out infinite;
}

body::after {
  background:
    radial-gradient(ellipse at 52% 48%, rgba(231, 165, 80, .075) 0, transparent 31%),
    radial-gradient(ellipse at 38% 78%, rgba(129, 55, 22, .08) 0, transparent 27%);
  filter: blur(24px);
  animation: ambient-drift-gold 38s ease-in-out infinite;
}

button, input { font: inherit; }

.landing {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(1.4rem, 4vh, 3.2rem) 0;
}

.phone-layout {
  width: min(94vw, 1100px);
  display: grid;
  justify-items: center;
  gap: clamp(1rem, 2.5vh, 1.8rem);
  text-align: center;
}

.phone-stage {
  position: relative;
  isolation: isolate;
  padding: 0 18px 64px;
}

.phone-stage::before {
  position: absolute;
  z-index: -2;
  right: 50%;
  bottom: 4px;
  width: 162%;
  height: 122px;
  border: 1px solid rgba(227, 171, 86, .12);
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255, 220, 158, .06), transparent 35%),
    radial-gradient(ellipse at center, rgba(245, 201, 132, .24) 0, rgba(106, 50, 22, .19) 38%, rgba(9, 6, 4, 0) 73%);
  content: "";
  filter: blur(2.5px);
  transform: translateX(50%) perspective(280px) rotateX(61deg);
}

.floor-reflection {
  position: absolute;
  z-index: -1;
  top: calc(100% - 56px);
  right: 50%;
  width: calc(100% - 36px);
  aspect-ratio: 402 / 92;
  background: url("phone-reflection.svg") center top / 100% 100% no-repeat;
  content: "";
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .48));
  opacity: .72;
  transform: translateX(50%) scaleY(.72);
  transform-origin: center top;
  pointer-events: none;
}

.phone-shell {
  position: relative;
  width: min(88vw, 402px);
  aspect-ratio: .51;
  padding: 4px;
  border-radius: 66px;
  background:
    linear-gradient(105deg, #4a2812 0, #d49b4c 5%, #ffe2a1 13%, #7b421a 27%, #edbd69 50%, #5a2d13 70%, #f5ca78 87%, #6b3516 100%);
  box-shadow:
    0 42px 80px rgba(0, 0, 0, .72),
    0 0 54px rgba(190, 77, 22, .22),
    inset 0 0 0 1px rgba(255, 239, 195, .72),
    inset 0 0 0 3px rgba(72, 35, 14, .62);
}

.phone-shell::after {
  position: absolute;
  z-index: 3;
  inset: 7px;
  border: 1px solid rgba(255, 234, 189, .24);
  border-radius: 59px;
  box-shadow: inset 1px 0 rgba(255, 255, 255, .16), inset -1px 0 rgba(93, 44, 16, .56);
  content: "";
  pointer-events: none;
}

.side-button {
  position: absolute;
  z-index: -1;
  width: 8px;
  border: 1px solid rgba(255, 219, 155, .42);
  background: linear-gradient(180deg, #6b421e, #e0b56d 35%, #78471f 70%, #d7a65a);
  box-shadow: 0 4px 8px rgba(0, 0, 0, .65), inset 0 0 1px rgba(255, 239, 199, .8);
}

.side-button-left {
  left: -6px;
  border-radius: 5px 0 0 5px;
}

.side-button-right {
  right: -6px;
  border-radius: 0 5px 5px 0;
}

.side-volume-up { top: 22%; height: 62px; }
.side-volume-down { top: 33.5%; height: 62px; }
.side-power { top: 27%; height: 101px; }

.phone {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 3px solid #120d09;
  border-radius: 61px;
  background: linear-gradient(145deg, #050505, #000 58%, #090604);
  box-shadow:
    inset 0 0 0 1px rgba(255, 224, 167, .2),
    inset 0 0 25px rgba(174, 85, 29, .08);
}

.phone::before {
  position: absolute;
  z-index: 4;
  inset: 3px;
  border-radius: 56px;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, .16) 0, rgba(255, 255, 255, .055) 16%, transparent 31%, transparent 69%, rgba(241, 178, 89, .035) 100%);
  content: "";
  pointer-events: none;
}

.phone::after {
  position: absolute;
  z-index: 4;
  inset: 0;
  border-radius: 58px;
  box-shadow: inset 9px 0 18px rgba(255, 255, 255, .025), inset -10px 0 20px rgba(0, 0, 0, .72);
  content: "";
  pointer-events: none;
}

.speaker {
  position: absolute;
  z-index: 5;
  top: 13px;
  left: 50%;
  width: 34%;
  height: 24px;
  border-radius: 0 0 18px 18px;
  background: #030303;
  transform: translateX(-50%);
}

.screen {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto auto;
  gap: 14px;
  padding: 38px 20px 24px;
}

.media-window {
  position: relative;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  background: transparent;
  box-shadow: none;
}

.media-window::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.055), transparent 24%, transparent 72%, rgba(237,175,83,.035));
  content: "";
}

.media-window img,
.media-window video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-window img.is-logo {
  object-fit: contain;
  padding: 11%;
  filter: drop-shadow(0 0 28px rgba(220, 84, 24, .35));
}

.media-window img.is-breathing,
.media-window video.is-breathing {
  animation: stage-breath var(--stage-time) ease-in-out both;
}

.play-badge {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: 78px;
  height: 84px;
  pointer-events: none;
  filter: drop-shadow(0 8px 11px rgba(0, 0, 0, .7)) drop-shadow(0 0 13px rgba(235, 171, 78, .35));
  opacity: .86;
  transform: translate(-50%, -50%);
  transition: opacity .3s ease, transform .3s ease;
}

.play-badge[hidden] { display: none !important; }

.play-badge::before {
  position: absolute;
  inset: 4px 0 4px 10px;
  background:
    linear-gradient(115deg, rgba(255, 245, 199, .92) 0, rgba(230, 175, 83, .86) 34%, rgba(117, 58, 20, .8) 69%, rgba(255, 218, 139, .9) 100%);
  clip-path: polygon(8% 0, 100% 50%, 8% 100%);
  content: "";
}

.play-badge::after {
  position: absolute;
  inset: 8px 6px 8px 15px;
  border: 1px solid rgba(255, 241, 199, .5);
  background: linear-gradient(135deg, rgba(255, 255, 255, .23), transparent 48%);
  clip-path: polygon(8% 0, 100% 50%, 8% 100%);
  content: "";
}

.play-badge.is-hidden {
  opacity: 0;
  transform: translate(-50%, -50%) scale(.78);
}

.play-badge.is-paused {
  width: 62px;
  height: 72px;
  opacity: .79;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .74)) drop-shadow(0 0 11px rgba(231, 171, 82, .3));
}

.play-badge.is-paused::before,
.play-badge.is-paused::after {
  top: 4px;
  bottom: 4px;
  width: 19px;
  border: 1px solid rgba(255, 231, 171, .55);
  border-radius: 7px;
  background:
    linear-gradient(105deg, rgba(94, 43, 15, .9), rgba(229, 170, 79, .92) 24%, rgba(255, 232, 167, .96) 46%, rgba(183, 111, 42, .9) 72%, rgba(85, 38, 13, .9));
  clip-path: none;
  box-shadow:
    inset 2px 0 3px rgba(255, 247, 213, .35),
    inset -3px 0 4px rgba(64, 27, 8, .55),
    0 5px 9px rgba(0, 0, 0, .38);
}

.play-badge.is-paused::before { right: auto; left: 5px; }
.play-badge.is-paused::after { right: 5px; left: auto; }

.kind-badge {
  position: absolute;
  z-index: 3;
  top: 17px;
  right: 17px;
  min-width: 0;
  height: auto;
  padding: .48rem .58rem .45rem .72rem;
  border: 1px solid rgba(255, 217, 151, .48);
  border-radius: 999px;
  color: #f8cf83;
  background: rgba(20, 12, 7, .7);
  box-shadow: 0 5px 18px rgba(0, 0, 0, .35);
  font-size: .52rem;
  font-weight: 800;
  letter-spacing: .2em;
  line-height: 1;
}

.media-message {
  position: absolute;
  z-index: 6;
  top: 22px;
  right: 18px;
  left: 18px;
  min-height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dfbd82;
  font-size: .91rem;
  font-weight: 800;
  letter-spacing: .24em;
  line-height: 1;
  text-align: center;
  text-shadow: 0 2px 7px #000;
  text-transform: uppercase;
  white-space: pre-line;
  pointer-events: none;
}

.media-message.is-status {
  top: 14px;
  min-height: 24px;
  font-size: .5rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.3;
}

.release-copy { min-width: 0; }

.release-copy p,
.release-copy h1 { margin: 0; }

.release-copy p {
  color: #916d45;
  font-size: .57rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
}

.release-copy h1 {
  width: 100%;
  min-width: 0;
  height: 2.55rem;
  margin-top: 4px;
  padding: 0 .25rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f1c984;
  font-size: clamp(.82rem, 3vw, 1rem);
  letter-spacing: .25em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
  white-space: normal;
}

.release-copy h1.is-long-title {
  font-size: clamp(.68rem, 2.4vw, .78rem);
  letter-spacing: .16em;
}

.progress-row {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  gap: 8px;
  color: #745737;
  font-size: .58rem;
}

.progress-row input {
  width: 100%;
  height: 3px;
  margin: 0;
  cursor: pointer;
  accent-color: #e9bd70;
}

.release-dots {
  min-height: 14px;
  display: flex;
  justify-content: center;
  gap: 9px;
}

.release-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: #4e3622;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

.release-dot.is-active {
  background: #f0c46f;
  box-shadow: 0 0 13px rgba(244, 184, 85, .9);
  transform: scale(1.25);
}

.wordmark-link {
  display: inline-block;
  width: min(94vw, 900px);
  line-height: 0;
}

.wordmark {
  width: 100%;
  filter: drop-shadow(0 15px 32px rgba(0, 0, 0, .58));
}

.impressum-link {
  position: absolute;
  z-index: 5;
  bottom: 76px;
  left: 10px;
  color: #c5a16a;
  font-size: .54rem;
  font-weight: 700;
  letter-spacing: .3em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transform: rotate(-90deg);
  transform-origin: left bottom;
  transition: color .2s ease, filter .2s ease;
}

.impressum-link:hover,
.impressum-link:focus-visible {
  color: #f2cf91;
  filter: drop-shadow(0 0 5px rgba(235, 181, 92, .5));
}

@keyframes stage-breath {
  0% { opacity: 0; transform: scale(.82); }
  16% { opacity: 1; }
  52% { opacity: 1; transform: scale(1.055); }
  84% { opacity: 1; }
  100% { opacity: 0; transform: scale(.84); }
}

@keyframes ambient-drift-warm {
  0%, 100% {
    opacity: .42;
    transform: translate3d(-1.2%, -.6%, 0) scale(1);
  }
  50% {
    opacity: .64;
    transform: translate3d(1.4%, 1%, 0) scale(1.035);
  }
}

@keyframes ambient-drift-gold {
  0%, 100% {
    opacity: .34;
    transform: translate3d(1%, -.8%, 0) scale(1.02);
  }
  50% {
    opacity: .52;
    transform: translate3d(-1.1%, 1.2%, 0) scale(.985);
  }
}

@media (max-width: 520px) {
  .landing { align-items: start; }
  .phone-stage { transform: translateX(6px); }
  .phone-shell { width: min(90vw, 392px); }
  .wordmark-link { width: 96vw; }
  .screen { padding-right: 16px; padding-left: 16px; }
}

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