:root {
  --accent: #663ba9;
  --accent-end: #a34582;
  --focus: #6b3eb0;
  --wash: #eadff6;
  --primary: #202038;
  --primary-ink: #fff;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #151320;
  --white: #211d2e;
  --ink: #f8f0fc;
  --muted: #c8bed3;
  --line: #3c354b;
  --navy: #211b33;
  --accent: #d1a9ff;
  --accent-end: #ffa8cb;
  --focus: #d9b9ff;
  --wash: #302042;
  --primary: #e5cdff;
  --primary-ink: #29183c;
}

body {
  background: radial-gradient(ellipse at 80% 0%, var(--wash), transparent 70%) top / 100% 860px no-repeat var(--paper);
}

[hidden] {
  display: none !important;
}

.eyebrow,.person h3 span,.faq summary::after {
  color: var(--accent);
}

a:focus-visible,summary:focus-visible,button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.header-actions,.preferences {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-actions {
  gap: clamp(14px, 3vw, 36px);
}

.preferences {
  gap: 6px;
}

.preference,.story-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: 700 .81rem/1.2 system-ui,sans-serif;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}

.preference {
  gap: 7px;
}

.preference:hover,.story-controls button:hover,.button.ghost:hover {
  background: var(--wash);
}

.theme-icon {
  width: 12px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}

.hero {
  gap: clamp(24px, 5vw, 74px);
}

.hero-copy {
  animation: none;
}

.hero-copy > * {
  animation: rise .65s both;
}

.hero h1 {
  font-size: clamp(3.5rem, 7.6vw, 7.15rem);
  animation-delay: .08s;
}

.hero h1 .headline-first {
  color: var(--ink);
}

.hero h1 .headline-last {
  color: var(--accent);
  background: linear-gradient(110deg, var(--accent) 18%, var(--accent-end) 64%, var(--accent) 90%) 0 / 190% 100%;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: .065em;
  animation: headline-shade 3.5s .3s ease-in-out both;
}

html[lang="hi"] .hero h1 {
  font-size: clamp(2.7rem, 6.3vw, 6rem);
  letter-spacing: normal;
  line-height: 1.14;
}

html[lang="hi"] h2,html[lang="hi"] h3 {
  letter-spacing: normal;
  line-height: 1.2;
}

.hero-copy .lead {
  animation-delay: .16s;
}

.hero-copy .actions,.hero-copy .small {
  animation-delay: .24s;
}

.button {
  background: var(--primary);
  color: var(--primary-ink);
}

.button:hover {
  background: var(--accent);
}

:root[data-theme="dark"] .contact .button {
  color: #25152b;
}

.story {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  background: var(--white);
  box-shadow: 0 18px 64px #361a6d23;
  animation: rise .8s .12s both;
}

.story-viewport {
  position: relative;
  aspect-ratio: 4 / 3;
  isolation: isolate;
  overflow: hidden;
  border-radius: calc(var(--radius) - 9px);
  background: #372950;
}

.story-scene,.story-scene img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.story-scene {
  animation: scene-in .5s ease-out both;
}

.story-scene img {
  object-position: center 49%;
}

.story-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #16112246, transparent 30%, transparent 54%, #17102291);
  pointer-events: none;
}

.story-scene img {
  animation: scene-pan 5.2s ease-out both;
}

.story-label {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 14px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #1e172edb;
  color: #fff;
  font-size: .73rem;
  font-weight: 750;
}

.story-label::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: #ffc4a8;
  vertical-align: .1em;
}

.story-message {
  position: absolute;
  z-index: 1;
  left: 14px;
  bottom: 16px;
  max-width: calc(100% - 28px);
  width: max-content;
  padding: 8px 12px;
  border-radius: 13px 13px 13px 4px;
  background: #fff7ed;
  color: #2b1b2f;
  font-size: clamp(.79rem, 1.45vw, .98rem);
  font-weight: 700;
  box-shadow: 0 6px 18px #22123c24;
  animation: rise .45s .15s both;
}

#story-chat .story-message:first-of-type {
  bottom: 58px;
}

.story-message.story-reply {
  right: 14px;
  left: auto;
  border-radius: 13px 13px 4px 13px;
  background: #e9d8ff;
  animation-delay: .7s;
}

#story-ride .story-message {
  bottom: 38px;
}

.story-route {
  position: absolute;
  z-index: 1;
  inset: auto 26px 17px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 8px;
}

.story-route::before {
  content: "";
  position: absolute;
  inset: 3px 0;
  background: #f9ded4b3;
}

.story-route i,.story-route span {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}

.story-route span {
  position: absolute;
  left: 2%;
  width: 13px;
  height: 13px;
  background: #ffab83;
  box-shadow: 0 0 0 4px #ffab834c;
  animation: ride-path 4s .35s ease-in-out both;
}

.story-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 8px 4px 2px;
}

.story-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}

.story-controls button[aria-pressed="true"] {
  border-color: transparent;
  background: var(--primary);
  color: var(--primary-ink);
}

.story-controls .story-play {
  min-width: 44px;
}

.story-play span {
  width: 9px;
  height: 10px;
  border-inline: 3px solid currentColor;
}

.story-play[data-paused] span {
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-right: 0;
  border-left: 9px solid currentColor;
}

.story-description {
  color: var(--muted);
  font-size: .77rem;
  font-weight: 620;
}

.story[data-motion-paused] .story-scene,.story[data-motion-paused] .story-scene img,.story[data-motion-paused] .story-message,.story[data-motion-paused] .story-route span {
  animation-play-state: paused;
}

.contact-links a {
  overflow-wrap: anywhere;
}

@keyframes headline-shade {
  to { background-position: 100% 0; }
}

@keyframes scene-in {
  from { opacity: .35; }
  to { opacity: 1; }
}

@keyframes scene-pan {
  to { transform: scale(1.045); }
}

@keyframes ride-path {
  to { left: calc(100% - 13px); }
}

@media (max-width: 725px) {
  .top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
    padding-block: 10px;
  }

  .header-actions {
    display: contents;
  }

  .nav {
    grid-row: 2;
    grid-column: 1 / -1;
    min-height: 33px;
    gap: 18px;
  }
}

@media (max-width: 650px) {
  .preference {
    padding-inline: 10px;
  }
  .hero h1 {
    font-size: clamp(3.7rem, 14vw, 5.55rem);
  }
  html[lang="hi"] .hero h1 {
    font-size: clamp(2.8rem, 11vw, 4.7rem);
  }
}

@media (max-width: 360px) {
  .story-controls button {
    padding-inline: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-route span {
    left: calc(100% - 13px);
  }
}
