:root {
  --ink: #f8f5ef;
  --paper: #fff9f0;
  --muted: #a6a19a;
  --charcoal: #151515;
  --charcoal-2: #20201e;
  --line: rgba(255, 255, 255, 0.13);
  --orange: #e94817;
  --orange-dark: #bb3510;
  --gold: #d6a73a;
  --cream: #f4eadc;
  --green: #67d391;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--charcoal);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 84% 8%, rgba(233, 72, 23, 0.34), transparent 27rem),
    radial-gradient(circle at 10% 100%, rgba(214, 167, 58, 0.18), transparent 24rem),
    #151515;
  background-size: 28px 28px, 28px 28px, auto, auto, auto;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(1120px, 100%);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 460px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.16)),
    rgba(28, 28, 27, 0.92);
  box-shadow: var(--shadow);
}

.brand-bar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.18), transparent),
    var(--orange);
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.16);
}

.eyebrow,
.status-kicker {
  margin: 0 0 4px;
  color: #b7c1ca;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(28px, 8vw, 64px);
  font-weight: 900;
}

h2 {
  font-size: 28px;
  font-weight: 900;
}

.hero-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.record {
  position: absolute;
  right: -72px;
  top: -96px;
  width: clamp(170px, 32vw, 310px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, #f6eee1 0 12%, #1b1b1b 12.5% 17%, transparent 17.5%),
    repeating-radial-gradient(circle, rgba(0, 0, 0, 0.28) 0 2px, rgba(255, 255, 255, 0.04) 3px 5px),
    var(--orange);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.36);
}

.burst {
  position: absolute;
  width: 150px;
  aspect-ratio: 1;
  background: var(--gold);
  clip-path: polygon(50% 0, 60% 34%, 92% 18%, 72% 48%, 100% 62%, 65% 64%, 78% 98%, 50% 76%, 22% 98%, 35% 64%, 0 62%, 28% 48%, 8% 18%, 40% 34%);
  opacity: 0.92;
}

.burst-one {
  right: 10%;
  top: 26%;
  transform: rotate(20deg);
  background: var(--orange);
}

.burst-two {
  left: 9%;
  top: 12%;
  width: 90px;
  transform: rotate(-14deg);
}

.cassette {
  position: absolute;
  right: 9%;
  bottom: 16%;
  width: 100px;
  height: 58px;
  border-radius: 6px;
  transform: rotate(-12deg);
  background:
    radial-gradient(circle at 30% 50%, #20201e 0 9px, #dfd4c2 10px 16px, transparent 17px),
    radial-gradient(circle at 70% 50%, #20201e 0 9px, #dfd4c2 10px 16px, transparent 17px),
    linear-gradient(#dfd4c2 0 42%, #b6aa95 43% 100%);
  border: 2px solid rgba(0, 0, 0, 0.24);
  opacity: 0.7;
}

.player-frame {
  position: relative;
  z-index: 3;
  width: min(var(--player-max-width, 780px), 100%);
  margin: 54px auto 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #080808;
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.46);
  aspect-ratio: var(--video-aspect, 16 / 9);
}

.vimeo-player,
.vimeo-player iframe {
  width: 100%;
  height: 100%;
}

.player-shade {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  align-items: start;
  min-height: 36%;
  padding: 18px;
  pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, 0.72), transparent);
  transition: opacity 180ms ease;
}

.player-shade.is-hidden {
  opacity: 0;
}

#overlay-status {
  margin: 0;
  font-size: clamp(22px, 6vw, 42px);
  font-weight: 900;
}

.control-dock {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.sync-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 18px;
  color: #171717;
  background: rgba(255, 249, 240, 0.96);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.16);
}

.primary-card {
  background:
    linear-gradient(135deg, rgba(233, 72, 23, 0.12), transparent 45%),
    var(--paper);
}

.listener-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px 18px;
}

.listener-card .fine-print {
  grid-column: 1 / -1;
}

.meter-row,
.time-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sync-orb {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #252525;
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.08);
}

.sync-orb span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(233, 72, 23, 0.5);
}

.is-listening .sync-orb span {
  animation: pulse 1.3s infinite;
  background: var(--gold);
}

.is-synced .sync-orb span {
  background: var(--green);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(214, 167, 58, 0.52);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(214, 167, 58, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(214, 167, 58, 0);
  }
}

.sync-copy,
.fine-print,
.project-description,
.confidence-line {
  color: #57514b;
  line-height: 1.45;
}

.sync-copy {
  margin: 12px 0 8px;
  font-size: 15px;
}

.confidence-line {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 800;
}

.fine-print {
  margin: 0;
  font-size: 13px;
}

.project-description {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}

.meter {
  overflow: hidden;
  width: 100%;
  height: 10px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: #dfd5c7;
}

.meter span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  transition: width 90ms linear;
}

.main-action,
.tool-button,
.host-link {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
}

.main-action {
  width: 100%;
  color: #fff;
  background: linear-gradient(180deg, #f05a22, var(--orange-dark));
  box-shadow: 0 12px 24px rgba(233, 72, 23, 0.28);
}

.main-action:disabled {
  cursor: not-allowed;
  opacity: 0.64;
}

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

.button-grid.compact .tool-button {
  min-height: 38px;
  font-size: 13px;
}

.anchor-sync {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

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

.anchor-button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  color: #191919;
  font-size: 12px;
  font-weight: 900;
  background: #eee2d1;
}

.tool-button,
.host-link {
  display: inline-grid;
  place-items: center;
  color: #191919;
  background: #eee2d1;
}

.play-button {
  color: #fff;
  background: #191919;
}

.host-link {
  justify-self: end;
  padding: 0 18px;
  background: #191919;
  color: #fff;
}

.time-row {
  color: #5e574f;
  font-size: 13px;
  font-weight: 800;
}

.scrubber {
  width: 100%;
  margin: 12px 0 2px;
  accent-color: var(--orange);
}

@media (max-width: 760px) {
  .app-shell {
    padding-inline: 10px;
  }

  .hero-panel {
    min-height: auto;
    padding: 14px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .player-frame {
    margin-top: 36px;
  }

  .record {
    right: -64px;
    top: -70px;
  }

  .burst-one {
    right: -16px;
    top: 34%;
    width: 110px;
  }

  .burst-two,
  .cassette {
    display: none;
  }

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

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

  .host-link {
    justify-self: stretch;
  }
}
