:root {
  --ink: #1f2e45;
  --gold: #c39c3f;
  --app-height: 100dvh;
  --gold-soft: #edd8a4;
  --paper: #f5edd7;
  --paper-dark: #e7dbc1;
  --blue-deep: #102b56;
  --blue-mid: #234c8e;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  background: #04070d;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  min-height: 100svh;
  min-height: var(--app-height, 100dvh);
  overflow-x: hidden;
  font-family: "Crimson Text", Georgia, serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 0%, rgba(35, 76, 142, 0.25), transparent 40%),
    radial-gradient(circle at 82% 12%, rgba(195, 156, 63, 0.24), transparent 45%),
    linear-gradient(165deg, #efe5cf 0%, #f8f1df 40%, #e8dcbf 100%);
}

.container {
  width: min(960px, 92%);
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 28vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(16, 43, 86, 0.95), rgba(30, 69, 131, 0.9)),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.02),
      rgba(255, 255, 255, 0.02) 8px,
      rgba(0, 0, 0, 0.04) 8px,
      rgba(0, 0, 0, 0.04) 16px
    );
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(237, 216, 164, 0.35), transparent 62%);
}

.hero-content {
  position: relative;
  color: #f8f3e9;
  padding: 24px 0;
  text-align: center;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-family: "Cinzel", Georgia, serif;
  color: var(--gold-soft);
}

h1 {
  margin: 8px 0 10px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-family: "Cinzel", Georgia, serif;
}

.sub {
  max-width: 60ch;
  line-height: 1.6;
}

.hero blockquote {
  margin: 14px auto 0;
  border-left: 4px solid var(--gold);
  padding: 12px 14px;
  background: rgba(6, 17, 37, 0.36);
  border-radius: 8px;
  max-width: 70ch;
}

.reading {
  margin-top: -10px;
  padding-bottom: 50px;
}

.control-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  background: linear-gradient(145deg, var(--paper), var(--paper-dark));
  border: 1px solid rgba(16, 43, 86, 0.22);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 16px 35px rgba(16, 43, 86, 0.2);
}

.audio-wrap h2 {
  margin: 0 0 8px;
  font-family: "Cinzel", Georgia, serif;
  color: var(--blue-deep);
}

.audio-note {
  margin: 8px 0 0;
  font-size: 0.95rem;
}

.audio-note a {
  color: #134189;
  font-weight: 700;
}

audio {
  width: 100%;
}

.tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.btn {
  border: 1px solid rgba(16, 43, 86, 0.24);
  background: linear-gradient(120deg, #1d4c95, #2f66bd);
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.cta-primary:focus-visible,
.cta-link:focus-visible {
  outline: 3px solid rgba(212, 176, 98, 0.9);
  outline-offset: 3px;
}

.story-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ppt-stage {
  margin-top: 18px;
  width: 100%;
  margin-left: 0;
  border-radius: 18px;
  border: 1px solid rgba(16, 43, 86, 0.22);
  background: linear-gradient(145deg, rgba(250, 245, 232, 0.96), rgba(233, 222, 197, 0.95));
  box-shadow: 0 18px 42px rgba(16, 43, 86, 0.22);
  min-height: 74vh;
  position: relative;
  overflow: hidden;
}

.ppt-slide {
  min-height: 74vh;
  padding: clamp(22px, 4vw, 44px);
  display: none;
  align-content: center;
  background:
    radial-gradient(circle at top right, rgba(35, 76, 142, 0.08), transparent 34%),
    radial-gradient(circle at bottom left, rgba(195, 156, 63, 0.1), transparent 34%);
}

.ppt-slide.is-active {
  display: grid;
  animation: slideIn 0.4s ease;
}

.ppt-slide h3 {
  margin: 0 0 12px;
  font-family: "Cinzel", Georgia, serif;
  color: var(--blue-deep);
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.ppt-slide p,
.ppt-slide li {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.75;
}

.ppt-slide ul {
  margin: 0;
  padding-left: 18px;
}

.slide-nav {
  margin-top: 14px;
  width: 100%;
  margin-left: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  border-radius: 14px;
  border: 1px solid rgba(16, 43, 86, 0.22);
  background: linear-gradient(145deg, var(--paper), var(--paper-dark));
  padding: 12px;
}

.slide-meta {
  text-align: center;
  color: var(--blue-deep);
}

.slide-meta strong {
  display: block;
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.02rem;
}

.slide-meta span {
  font-size: 0.95rem;
}

.panel {
  background: linear-gradient(145deg, rgba(248, 241, 223, 0.95), rgba(232, 219, 190, 0.94));
  border: 1px solid rgba(195, 156, 63, 0.5);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(16, 43, 86, 0.16);
  position: relative;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at top right, rgba(35, 76, 142, 0.08), transparent 30%),
    radial-gradient(circle at bottom left, rgba(195, 156, 63, 0.1), transparent 32%);
}

.panel h3 {
  margin: 0 0 8px;
  font-family: "Cinzel", Georgia, serif;
  color: var(--blue-deep);
  font-size: 1.15rem;
}

.panel p {
  margin: 0;
  line-height: 1.72;
  font-size: 1.08rem;
}

.panel p + p {
  margin-top: 10px;
}

.wide {
  grid-column: 1 / -1;
}

.reflection {
  margin-top: 16px;
  border-radius: 14px;
  border: 1px solid rgba(16, 43, 86, 0.28);
  background: linear-gradient(140deg, #0f2e60, #1d4e97);
  color: #f1f7ff;
  padding: 18px;
}

.reflection h2 {
  margin: 0 0 8px;
  font-family: "Cinzel", Georgia, serif;
}

.reflection ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.7;
}

.back-wrap {
  margin-top: 18px;
}

.back {
  display: inline-flex;
  background: linear-gradient(120deg, #b48d34, #d9bc73);
  color: #1a2b48;
  border-color: rgba(195, 156, 63, 0.6);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

body.alt-paper {
  background:
    radial-gradient(circle at 12% 10%, rgba(16, 43, 86, 0.18), transparent 45%),
    radial-gradient(circle at 88% 0%, rgba(195, 156, 63, 0.24), transparent 50%),
    linear-gradient(165deg, #f9f4e4 0%, #efe1c3 45%, #e3d2ac 100%);
}

body.is-fullscreen .ppt-stage {
  width: min(88vmin, 980px);
  aspect-ratio: 1 / 1;
  min-height: 0;
  margin: 18px auto 0;
}

body.is-fullscreen .ppt-slide {
  min-height: 100%;
  height: 100%;
  overflow: auto;
}

.ppt-stage:fullscreen {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  margin: 0;
  border-radius: 0;
  border: 0;
  box-shadow: none;
}

.ppt-stage:fullscreen .ppt-slide {
  min-height: 100vh;
  height: 100vh;
  padding: clamp(24px, 4vw, 60px);
}

@media (max-width: 900px) {
  .control-panel {
    grid-template-columns: 1fr;
  }

  .tools {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  .wide {
    grid-column: auto;
  }

  .ppt-stage,
  .ppt-slide {
    min-height: 66vh;
  }

  .slide-nav {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(96%, 620px);
  }

  .hero {
    min-height: 24vh;
  }

  .hero-content {
    padding: 18px 0;
  }

  h1 {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }

  .hero blockquote {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .control-panel {
    padding: 12px;
    text-align: center;
  }

  .audio-wrap h2 {
    text-align: center;
  }

  .tools {
    justify-content: center;
  }

  .ppt-stage {
    min-height: 72vh;
    border-radius: 14px;
  }

  .ppt-slide {
    min-height: 72vh;
    padding: 18px;
  }

  .ppt-slide h3 {
    text-align: center;
    font-size: clamp(1.2rem, 6vw, 1.6rem);
  }

  .ppt-slide p,
  .ppt-slide li {
    font-size: clamp(0.98rem, 3.7vw, 1.12rem);
    line-height: 1.65;
  }

  .slide-nav {
    gap: 8px;
    text-align: center;
  }

  .slide-nav .btn {
    width: 100%;
  }

  .back-wrap {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .reading {
    margin-top: -2px;
    padding-bottom: 28px;
  }

  .ppt-stage,
  .ppt-slide {
    min-height: 68vh;
  }

  .ppt-slide {
    padding: 14px;
  }

  .btn {
    padding: 9px 12px;
    font-size: 0.9rem;
  }
}

/* Cinematic mode inspired by the reference landing style */
:root {
  --bg-black: #04070d;
  --bg-deep: #0a1730;
  --brand-blue: #1f5fb8;
  --brand-blue-deep: #123a75;
  --brand-gold: #d4b062;
  --brand-gold-soft: #f2e2ba;
  --text-main: #f9fbff;
  --text-soft: #c2cad8;
  --line-soft: rgba(255, 255, 255, 0.16);
}

body {
  min-height: 100vh;
  color: var(--text-main);
  background:
    radial-gradient(circle at 14% 8%, rgba(31, 95, 184, 0.34), transparent 40%),
    radial-gradient(circle at 88% 10%, rgba(212, 176, 98, 0.24), transparent 38%),
    linear-gradient(170deg, #030610 0%, #0a1630 52%, #101e37 100%);
  -webkit-tap-highlight-color: transparent;
}

.cinematic-hero {
  position: relative;
  min-height: var(--app-height, 100dvh);
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 2rem 1.25rem 2.5rem;
  padding-top: max(2rem, env(safe-area-inset-top));
  padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, rgba(18, 58, 117, 0.5), rgba(7, 13, 30, 0.46) 42%, rgba(0, 0, 0, 0.74)),
    radial-gradient(circle at 50% -8%, rgba(255, 255, 255, 0.08), transparent 36%),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.015),
      rgba(255, 255, 255, 0.015) 2px,
      rgba(0, 0, 0, 0.01) 2px,
      rgba(0, 0, 0, 0.01) 4px
    );
}

.hero-overlay-dark {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.88));
}

.hero-overlay-radial {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 34%, rgba(0, 0, 0, 0.38) 92%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.055;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0.5px, transparent 0.5px);
  background-size: 3px 3px;
}

.hero-brand {
  position: absolute;
  top: 1.5rem;
  left: 1.25rem;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-line {
  width: 1px;
  height: 18px;
  background: rgba(201, 162, 75, 0.9);
}

.brand-name {
  font-family: "Cinzel", Georgia, serif;
  text-transform: uppercase;
  letter-spacing: 0.46em;
  font-size: 0.52rem;
  color: rgba(242, 226, 186, 0.9);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(860px, 100%);
  text-align: center;
  animation: fadeUp 700ms ease-out;
  transform: translateY(-20px);
}

.hero-tag {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--text-soft);
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.72rem;
}

.hero-tag-logo-wrap {
  width: min(220px, 48vw);
  margin: 0 auto 0.2rem;
}

.hero-tag-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35));
}

.hero-content h1 {
  margin: 0.35rem auto 1rem;
  color: #fff;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.75rem, 6vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  max-width: 16ch;
}

.hero-content h1 em {
  display: inline-block;
  font-style: normal;
  font-weight: 900;
  color: #dbeeff;
  background: linear-gradient(180deg, #f4fbff 0%, #d6eaff 34%, #7db9ff 70%, #2c74d6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 0 14px rgba(215, 236, 255, 0.5),
    0 0 30px rgba(74, 146, 233, 0.5),
    0 2px 10px rgba(0, 0, 0, 0.38);
  animation: phraseFloat 3.2s ease-in-out infinite;
}

.hero-verse {
  margin: 0 auto;
  max-width: 70ch;
  color: #e2e8f4;
  line-height: 1.65;
}

.video-gate {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  min-height: var(--app-height, 100dvh);
  place-items: center;
  padding: 0 max(0.5rem, env(safe-area-inset-right)) max(0.5rem, env(safe-area-inset-bottom)) max(0.5rem, env(safe-area-inset-left));
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.9)),
    radial-gradient(circle at 50% 0%, rgba(31, 95, 184, 0.25), transparent 36%);
}

.video-gate.is-visible {
  display: grid;
  animation: fadeUp 400ms ease;
}

.video-gate.is-exiting {
  animation: fadeOutGate 480ms ease forwards;
}

.story-experience {
  position: fixed;
  inset: 0;
  z-index: 91;
  display: none;
  min-height: var(--app-height, 100dvh);
  place-items: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  background:
    radial-gradient(circle at 12% 12%, rgba(74, 146, 233, 0.34), transparent 34%),
    radial-gradient(circle at 86% 8%, rgba(212, 176, 98, 0.3), transparent 38%),
    linear-gradient(170deg, #02050d 0%, #071427 52%, #0d1f3f 100%);
  overflow: hidden;
}

.story-experience.is-visible {
  display: grid;
  animation: fadeUp 400ms ease;
}

.story-bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.story-bg-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;
  height: 56.25vw;
  min-width: 100vw;
  min-height: 100vh;
  transform: translate(-50%, -50%);
  border: 0;
  opacity: 0.7;
  filter: saturate(1.1) contrast(1.03) brightness(0.72);
}

.story-experience::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 10%, rgba(18, 60, 126, 0.35), transparent 42%),
    linear-gradient(to bottom, rgba(2, 5, 13, 0.68), rgba(3, 8, 18, 0.84));
}

.story-experience.is-exiting {
  animation: fadeOutGate 420ms ease forwards;
}

.story-phone {
  width: min(420px, 100%);
  min-height: min(86vh, 760px);
  position: relative;
  z-index: 2;
  border-radius: 32px;
  border: 1px solid rgba(212, 176, 98, 0.5);
  padding: 1.2rem 1rem 1.1rem;
  background:
    linear-gradient(175deg, rgba(8, 22, 48, 0.48), rgba(5, 12, 28, 0.58)),
    radial-gradient(circle at 50% 0%, rgba(124, 174, 247, 0.22), transparent 48%);
  backdrop-filter: blur(4px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.6);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 1rem;
}

.story-head {
  text-align: center;
}

.story-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-family: "Cinzel", Georgia, serif;
  color: #d8c592;
  font-size: 0.68rem;
}

.story-head h2 {
  margin: 0.4rem 0 0;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.35rem, 6vw, 1.8rem);
  color: #f9fdff;
}

.story-intro {
  margin: 0.55rem auto 0;
  max-width: 29ch;
  line-height: 1.5;
  color: #dde8f7;
}

.story-line-wrap {
  display: grid;
  align-content: center;
  border-radius: 22px;
  border: 1px solid rgba(212, 176, 98, 0.2);
  background:
    radial-gradient(circle at 90% 20%, rgba(85, 151, 247, 0.1), transparent 42%),
    linear-gradient(145deg, rgba(12, 31, 66, 0.38), rgba(7, 18, 39, 0.44));
  padding: 1.2rem 1rem;
  min-height: 300px;
}

.story-line {
  margin: 0;
  font-size: clamp(1.2rem, 4.5vw, 1.55rem);
  line-height: 1.45;
  color: #f2f8ff;
  text-align: center;
  text-wrap: balance;
  animation: storyLineReveal 420ms ease;
}

.story-line.is-refreshing {
  animation: storyLineReveal 320ms ease;
}

.story-step-counter {
  margin: 0;
  text-align: center;
  color: #c9d8ee;
  font-family: "Cinzel", Georgia, serif;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
}

.story-actions {
  display: grid;
  gap: 0.6rem;
}

.story-next {
  width: 100%;
  min-height: 52px;
  letter-spacing: 0.18em;
}

.register-experience {
  min-height: var(--app-height, 100dvh);
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(1.25rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) max(1.25rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
  background:
    radial-gradient(circle at 10% 8%, rgba(31, 95, 184, 0.3), transparent 38%),
    radial-gradient(circle at 86% 12%, rgba(212, 176, 98, 0.28), transparent 36%),
    linear-gradient(170deg, #040812 0%, #0b1a34 55%, #0e2447 100%);
}

.register-experience[hidden] {
  display: none;
}

.register-card {
  width: min(520px, 100%);
  border-radius: 24px;
  border: 1px solid rgba(212, 176, 98, 0.62);
  background:
    radial-gradient(circle at 88% 0%, rgba(86, 132, 219, 0.22), transparent 34%),
    linear-gradient(165deg, rgba(8, 22, 48, 0.95), rgba(5, 12, 24, 0.98));
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.56);
  padding: 1.4rem 1.2rem 1.2rem;
  color: #eaf2ff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.register-card::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(93, 145, 235, 0.25);
}

.register-branding {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
}

.register-branding-logo {
  width: 66px;
  height: 66px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(10, 20, 37, 0.38));
}

.register-branding-line {
  width: 86px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #d7b86b, transparent);
}

.register-kicker {
  margin: 0;
  font-family: "Cinzel", Georgia, serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  color: #d9c48f;
}

.register-card h2 {
  margin: 0.5rem 0;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.3rem, 5vw, 1.9rem);
  color: #f9fdff;
}

.register-card p {
  margin: 0;
  line-height: 1.55;
  color: #d9e7fd;
}

.register-progress {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.65rem;
  margin: 0.95rem 0 0.8rem;
}

.register-spinner {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(208, 227, 255, 0.3);
  border-top-color: #d7b86b;
  animation: registerSpin 0.8s linear infinite;
}

.register-progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(214, 227, 248, 0.18);
  overflow: hidden;
}

.register-progress-fill {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2e68c7, #6a95dd, #d7b86b);
  transform-origin: left center;
  animation: registerFill 2.6s linear forwards;
}

.register-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
  text-align: left;
}

.register-form label {
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d4dff2;
}

.register-form input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(212, 176, 98, 0.42);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 0.75rem 0.8rem;
  font: inherit;
}

.register-form input:focus {
  outline: 2px solid rgba(90, 160, 255, 0.7);
  outline-offset: 1px;
}

.register-form .cta-primary {
  margin-top: 0.4rem;
}

.register-success {
  margin-top: 0.9rem;
  color: #d3f5e1;
  border: 1px solid rgba(109, 207, 156, 0.44);
  background: rgba(32, 108, 76, 0.28);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  text-wrap: balance;
}

.register-success strong {
  color: #ffffff;
}

@keyframes registerSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes registerFill {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

.video-shell {
  width: min(460px, 100%);
  min-height: 100dvh;
  border-radius: 0;
  padding: 1.3rem 1.1rem 1.5rem;
  border: 1px solid rgba(212, 176, 98, 0.52);
  background: linear-gradient(165deg, rgba(7, 20, 42, 0.92), rgba(5, 12, 24, 0.96));
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.video-logo-wrap {
  margin: 0 auto 0.75rem;
  width: min(130px, 40%);
}

.video-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
}

.video-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.video-brand-line {
  width: 1px;
  height: 14px;
  background: rgba(212, 176, 98, 0.8);
}

.video-top p {
  margin: 0;
  color: #d9c896;
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  font-family: "Cinzel", Georgia, serif;
}

.video-shell h2 {
  margin: 0;
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.42rem;
  color: #f2e2ba;
}

.video-frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(212, 176, 98, 0.48);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.38);
}

.video-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-minute {
  margin: 0.68rem 0 0;
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.74rem;
  letter-spacing: 0.15em;
  color: #c7d8f2;
}

.video-continue {
  margin-top: 0.85rem;
  width: 100%;
}

.video-continue-floating {
  position: absolute;
  left: 50%;
  top: 68%;
  transform: translate(-50%, -50%);
  width: min(82%, 320px);
  min-height: 52px;
  z-index: 6;
  letter-spacing: 0.16em;
  backdrop-filter: blur(2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212, 176, 98, 0.35);
  border-radius: 999px;
  padding: 0.6rem 1rem;
}

.video-continue-floating:not([hidden]) {
  animation: floatingCtaIn 320ms ease-out, floatingCtaPulse 1.8s ease-in-out 320ms infinite;
}

.video-continue:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.volume-row {
  margin-top: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.pulse-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: rgba(201, 162, 75, 0.75);
  box-shadow: 0 0 0 0 rgba(201, 162, 75, 0.55);
  animation: ring 1.8s infinite;
}

.divider {
  width: 1px;
  height: 0.85rem;
  background: rgba(212, 176, 98, 0.6);
}

.volume-text {
  text-transform: uppercase;
  letter-spacing: 0.34em;
  color: #d5deee;
  font-size: 0.65rem;
  font-family: "Cinzel", Georgia, serif;
}

.hero-actions {
  margin-top: 1.9rem;
  display: grid;
  gap: 0.75rem;
  justify-items: center;
}

.cta-primary,
.cta-link {
  font-family: "Cinzel", Georgia, serif;
  cursor: pointer;
  border: 0;
  touch-action: manipulation;
}

.cta-primary {
  width: min(100%, 460px);
  min-height: 50px;
  background: linear-gradient(120deg, var(--brand-blue-deep), var(--brand-blue));
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.23em;
  font-size: 0.74rem;
  font-weight: 700;
  border: 1px solid rgba(201, 162, 75, 0.75);
  box-shadow: 0 10px 28px rgba(9, 31, 68, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

#enterExperience {
  animation: ctaPulse 2s ease-in-out infinite;
}

.cta-primary:hover,
.cta-primary:focus-visible {
  background: linear-gradient(120deg, #1b4e9a, #2f70c7);
  box-shadow: 0 14px 34px rgba(9, 31, 68, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

#enterExperience:hover,
#enterExperience:focus-visible {
  animation-play-state: paused;
}

.cta-link {
  background: transparent;
  color: #d9c896;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.64rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cta-link:hover,
.cta-link:focus-visible {
  color: #f5e8c7;
}

.reading[hidden] {
  display: none;
}

.reading {
  margin-top: 0;
  padding: 1.2rem 0 3rem;
}

.control-panel,
.slide-nav {
  background: linear-gradient(145deg, rgba(9, 22, 45, 0.84), rgba(8, 14, 28, 0.92));
  border: 1px solid rgba(212, 176, 98, 0.56);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.audio-wrap h2,
.slide-meta,
.slide-meta strong {
  color: #f8fbff;
}

.slide-meta span {
  color: #d5deee;
}

.ppt-stage {
  border: 1px solid rgba(212, 176, 98, 0.56);
  background: linear-gradient(155deg, rgba(7, 20, 42, 0.94), rgba(6, 11, 24, 0.98));
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
}

.ppt-slide {
  background:
    radial-gradient(circle at top right, rgba(31, 95, 184, 0.25), transparent 40%),
    radial-gradient(circle at bottom left, rgba(212, 176, 98, 0.15), transparent 38%);
}

.ppt-slide h3 {
  color: var(--brand-gold-soft);
  text-shadow: 0 0 18px rgba(212, 176, 98, 0.2);
}

.ppt-slide p,
.ppt-slide li {
  color: #edf3ff;
}

.btn {
  border: 1px solid rgba(201, 162, 75, 0.6);
  background: linear-gradient(120deg, #153f7d, #1f5fb8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn:hover,
.btn:focus-visible {
  background: linear-gradient(120deg, #1a4b93, #2d6fc6);
}

.back {
  background: linear-gradient(120deg, #b9923f, #e1c278);
  color: #10233f;
  border-color: rgba(212, 176, 98, 0.78);
}

.cinematic-hero.is-exiting {
  animation: heroFadeOut 540ms ease forwards;
}

@keyframes ring {
  0% {
    box-shadow: 0 0 0 0 rgba(201, 162, 75, 0.55);
  }
  70% {
    box-shadow: 0 0 0 13px rgba(201, 162, 75, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(201, 162, 75, 0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes storyLineReveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes phraseFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
    text-shadow:
      0 0 14px rgba(215, 236, 255, 0.5),
      0 0 30px rgba(74, 146, 233, 0.5),
      0 2px 10px rgba(0, 0, 0, 0.38);
  }
  50% {
    transform: translateY(-5px) scale(1.03);
    text-shadow:
      0 0 18px rgba(231, 245, 255, 0.66),
      0 0 38px rgba(80, 160, 255, 0.7),
      0 4px 14px rgba(0, 0, 0, 0.42);
  }
}

@keyframes ctaPulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 10px 28px rgba(9, 31, 68, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  }
  50% {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 16px 34px rgba(9, 31, 68, 0.65), 0 0 0 8px rgba(212, 176, 98, 0.14),
      inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  }
}

@keyframes floatingCtaIn {
  from {
    opacity: 0;
    transform: translate(-50%, -44%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes floatingCtaPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212, 176, 98, 0.35);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.04);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.6), 0 0 0 8px rgba(212, 176, 98, 0.14);
  }
}

@keyframes heroFadeOut {
  to {
    opacity: 0;
    transform: scale(1.02);
    visibility: hidden;
  }
}

@keyframes ringPulse {
  0% {
    transform: scale(0.98);
    opacity: 0.75;
  }
  70% {
    transform: scale(1.02);
    opacity: 1;
  }
  100% {
    transform: scale(0.98);
    opacity: 0.75;
  }
}

@keyframes fadeOutGate {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@media (max-width: 768px) {
  .cinematic-hero {
    padding: 1rem 0.95rem 1.8rem;
  }

  .brand-name {
    letter-spacing: 0.3em;
    font-size: 0.5rem;
  }

  .hero-content h1 {
    max-width: 18ch;
  }

  .hero-content {
    transform: translateY(-10px);
  }

  .hero-verse {
    font-size: 0.95rem;
  }

  .cta-primary {
    letter-spacing: 0.16em;
    font-size: 0.69rem;
  }

  .video-shell {
    width: 100%;
    border-left: 0;
    border-right: 0;
  }

  .story-phone {
    min-height: min(88vh, 740px);
    border-radius: 26px;
  }

  .story-line-wrap {
    min-height: 270px;
  }
}

@media (max-width: 600px) {
  .hero-brand {
    top: 0.9rem;
    left: 0.85rem;
  }

  .brand-name {
    letter-spacing: 0.22em;
    font-size: 0.46rem;
  }

  .hero-content h1 {
    font-size: clamp(1.45rem, 8.2vw, 2rem);
    line-height: 1.12;
  }

  .hero-verse {
    font-size: 0.9rem;
    line-height: 1.52;
  }

  .volume-text {
    letter-spacing: 0.24em;
    font-size: 0.58rem;
  }

  .cta-primary {
    min-height: 52px;
    font-size: 0.66rem;
    letter-spacing: 0.13em;
    border-radius: 14px;
  }

  .cta-link {
    font-size: 0.6rem;
    letter-spacing: 0.17em;
  }

  .video-shell {
    padding: 0.95rem 0.85rem 1.15rem;
  }

  .video-shell h2 {
    font-size: 1.2rem;
  }

  .video-frame-wrap {
    border-radius: 12px;
  }

  .video-continue-floating {
    width: min(90%, 320px);
    min-height: 50px;
    top: 70%;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }

  .story-phone {
    min-height: auto;
    max-height: 86vh;
    padding: 0.95rem 0.8rem 0.9rem;
    border-radius: 22px;
    gap: 0.8rem;
    overflow: auto;
  }

  .story-intro {
    font-size: 0.92rem;
  }

  .story-line-wrap {
    min-height: 220px;
    padding: 0.95rem 0.85rem;
    border-radius: 18px;
  }

  .story-line {
    font-size: clamp(1rem, 4.6vw, 1.24rem);
    line-height: 1.42;
  }

  .register-experience {
    padding: 0.85rem;
  }

  .register-card {
    border-radius: 18px;
    padding: 1rem 0.85rem 0.95rem;
  }

  .register-card h2 {
    font-size: clamp(1.05rem, 6.6vw, 1.45rem);
    line-height: 1.2;
  }

  .register-card p,
  .register-success {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .register-progress {
    margin: 0.75rem 0 0.65rem;
  }

  .register-form input {
    min-height: 46px;
  }
}

@media (max-width: 420px), (max-height: 760px) {
  .cinematic-hero {
    padding: 0.75rem 0.7rem 1.15rem;
  }

  .hero-content {
    transform: translateY(-2px);
  }

  .hero-content h1 {
    font-size: clamp(1.24rem, 7.4vw, 1.6rem);
  }

  .hero-actions {
    margin-top: 1.2rem;
    gap: 0.55rem;
  }

  .story-phone {
    max-height: 84vh;
  }

  .story-line-wrap {
    min-height: 180px;
  }

  .register-card {
    padding: 0.9rem 0.75rem 0.85rem;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .cinematic-hero {
    min-height: 100dvh;
    padding-top: max(0.75rem, env(safe-area-inset-top));
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  }

  .hero-brand {
    top: 0.55rem;
  }

  .hero-content h1 {
    font-size: clamp(1.1rem, 4vw, 1.6rem);
    margin-bottom: 0.55rem;
  }

  .hero-verse {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .hero-actions {
    margin-top: 0.9rem;
    gap: 0.45rem;
  }

  .cta-primary {
    min-height: 44px;
    font-size: 0.62rem;
  }

  .video-shell {
    min-height: 100dvh;
    padding-top: max(0.8rem, env(safe-area-inset-top));
    padding-bottom: max(0.8rem, env(safe-area-inset-bottom));
  }

  .story-phone {
    max-height: 90vh;
    min-height: 0;
  }

  .story-line-wrap {
    min-height: 140px;
  }
}
