html,
body {
  min-height: 100%;
}

body.ag-site {
  --ag-bg-ink: 31, 25, 30;
  margin: 0;
  min-height: 100svh;
  overflow-x: clip;
  color: rgba(var(--ag-bg-ink), .92);
  background: #fff;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.ag-site__video-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  opacity: .96;
  background: #fff url("../assets/agni-video-poster.jpg") center / cover no-repeat;
}

body.ag-site.ag-video-fallback .ag-site__video-bg,
body.ag-site.ag-video-slow .ag-site__video-bg {
  opacity: .96;
}

.ag-site__stage {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  place-items: start center;
  isolation: isolate;
}

.auricle-v11,
.auricle-v11 * {
  box-sizing: border-box;
}

.auricle-v11 {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 34px 0 24px;
  overflow: visible;
  color: rgba(var(--av11-ink), .92);
}

.auricle-v11__space {
  position: relative;
  width: min(100%, 620px);
  overflow: visible;
  isolation: isolate;
  padding: 8px 22px 16px;
}

.auricle-v11__scene {
  position: relative;
  z-index: 2;
  height: 340px;
  overflow: visible;
}

.auricle-v11__canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.auricle-v11__core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 124px;
  height: 184px;
  border: 0;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  color: inherit;
  background: radial-gradient(circle at 50% 42%, rgba(255,255,255,.95), rgba(255, 216, 248, .42) 48%, rgba(112, 236, 224, .18) 72%, transparent 100%);
  box-shadow: 0 18px 80px rgba(255,255,255,.44), 0 0 54px rgba(112, 236, 224, .16);
}

.auricle-v11__orb,
.auricle-v11__orb-layer,
.auricle-v11__orb-shine,
.auricle-v11__voice-rays,
.auricle-v11__play-mark {
  pointer-events: none;
}

.auricle-v11__play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,.62);
}

.auricle-v11__play-mark::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 16px;
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 17px solid rgba(146, 102, 218, .92);
}

.auricle-v11__loader {
  position: absolute;
  left: 50%;
  top: calc(50% + 88px);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
  padding: 5px 10px;
  border-radius: 999px;
  color: rgba(58, 53, 68, .66);
  background: rgba(255, 255, 255, .42);
  transform: translateX(-50%);
  pointer-events: none;
}

.auricle-v11__loader-mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(112, 236, 224, .82);
  box-shadow: 0 0 10px rgba(112, 236, 224, .32);
  animation: av11LoaderPulse 1.2s ease-in-out infinite;
}

.auricle-v11__loader-text {
  font-size: 11px;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

.auricle-v11[data-audio-state="metadata"] .auricle-v11__loader,
.auricle-v11[data-audio-state="ready"] .auricle-v11__loader,
.auricle-v11[data-audio-state="missing"] .auricle-v11__loader,
.auricle-v11[data-audio-state="error"] .auricle-v11__loader {
  display: none;
}

@keyframes av11LoaderPulse {
  0%, 100% {
    opacity: .45;
    transform: scale(.86);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.auricle-v11__meta {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: -6px;
  text-align: center;
}

.auricle-v11__subtitle {
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(64, 58, 74, .62);
}

.auricle-v11__title {
  max-width: min(520px, 88vw);
  font-size: clamp(26px, 5vw, 40px);
  line-height: 1.08;
  font-weight: 420;
  color: rgba(42, 38, 50, .84);
}

.auricle-v11__progress {
  position: relative;
  width: min(420px, 78vw);
  height: 24px;
  margin-top: 12px;
}

.auricle-v11__progress-track,
.auricle-v11__progress-light {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  border-radius: 999px;
}

.auricle-v11__progress-track {
  background: rgba(58, 53, 68, .16);
}

.auricle-v11__progress-light {
  right: auto;
  width: calc(var(--av11-progress) * 100%);
  background: linear-gradient(90deg, rgba(255, 142, 210, .68), rgba(74, 218, 210, .70));
}

.auricle-v11__progress-spark {
  position: absolute;
  left: calc(var(--av11-progress) * 100%);
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: white;
  box-shadow: 0 0 12px rgba(84, 255, 238, .24);
}

.auricle-v11__time,
.auricle-v11__status {
  min-height: 18px;
  font-size: 12px;
  color: rgba(58, 53, 68, .62);
}

.ag-theme-toggle {
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 10;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.48);
  cursor: pointer;
}

@supports not (min-height: 100svh) {
  body.ag-site,
  .ag-site__stage {
    min-height: 100vh;
  }
}
