:root {
  --color-teal-main: #025d74;
  --color-teal-bright: #087f91;
  --color-teal-dark: #01495b;
  --color-orange: #fab21e;
  --color-bg-pale-teal: #f1f8fa;
  --color-text: #24383f;
  --color-text-secondary: #66777d;
  --color-border: #dce9ec;
  --color-white: #ffffff;
  --header-height: 62px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

#story,
#quiet-peak,
#tension,
#about,
#flow,
#try {
  scroll-margin-top: calc(var(--header-height) + 18px);
}

#final-message {
  scroll-margin-top: 42svh;
}

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-white);
  font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
  line-height: 1.8;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(2, 93, 116, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.site-header.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.header-logo img {
  width: 104px;
  height: auto;
}

.menu-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  gap: 5px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  width: 22px;
  height: 2px;
  background: var(--color-teal-main);
  border-radius: 2px;
}

.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 48px 28px;
  background: rgba(241, 248, 250, 0.97);
  color: var(--color-teal-dark);
  font-size: clamp(22px, 6vw, 34px);
  font-weight: 600;
}

.menu-panel[hidden] {
  display: none;
}

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 64px 22px 36px;
  background: var(--color-white);
  text-align: center;
}

.hero-video-wrap {
  position: relative;
  width: min(70vw, 442px);
  min-width: 210px;
  margin: 0 auto 28px;
  overflow: hidden;
  background: var(--color-white);
}

.hero-video-wrap::before,
.hero-video-wrap::after {
  content: "";
  position: absolute;
  z-index: 2;
  background: var(--color-white);
  pointer-events: none;
}

.hero-video-wrap::before {
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
}

.hero-video-wrap::after {
  top: 0;
  right: 0;
  bottom: 0;
  width: 12px;
}

.hero-video {
  width: 100%;
  max-width: none;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  clip-path: inset(5px);
  transform: scale(1.06);
  transform-origin: center;
}

.hero-copy {
  width: min(100%, 720px);
  margin: 0 auto;
  display: grid;
  justify-items: center;
  text-align: center;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  color: var(--color-teal-main);
  font-weight: 700;
  line-height: 1.42;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(26px, 5.6vw, 46px);
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(26px, 5.6vw, 46px);
}

.hero-copy p,
.lead {
  color: var(--color-text-secondary);
  font-size: clamp(17px, 3.7vw, 21px);
}

.hero-copy h1,
.hero-copy p {
  opacity: 0;
  transform: translateY(18px);
  animation: heroTextFloatIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-copy h1 {
  animation-delay: 5.5s;
}

.hero-copy p {
  animation-delay: 6.3s;
}

.scroll-cue {
  margin-top: 28px;
  display: inline-grid;
  justify-items: center;
  gap: 2px;
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  opacity: 0;
}

.hero-scroll-cue {
  animation: scrollCueBlink 1s ease-in-out 7.3s infinite;
}

.scroll-arrow {
  color: var(--color-teal-main);
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0;
}

.pale-section {
  background: linear-gradient(
    180deg,
    #fff 0%,
    var(--color-bg-pale-teal) 12%,
    var(--color-bg-pale-teal) 82%,
    #fff 100%
  );
}

.story-screen {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: center;
  padding: 88px 22px;
}

.story-intro {
  grid-template-columns: minmax(180px, 0.45fr) minmax(0, 0.95fr);
  gap: clamp(28px, 6vw, 64px);
  width: min(1120px, 100%);
  margin: 0 auto;
}

.story-close {
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(32px, 7vw, 72px);
  width: min(1120px, 100%);
  margin: 0 auto;
}

.story-close {
  grid-template-columns: minmax(280px, 1.1fr) minmax(0, 0.9fr);
}

.copy-block {
  width: min(720px, 100%);
  margin: 0 auto;
  font-size: clamp(18px, 3.8vw, 22px);
}

.copy-block.narrow {
  width: min(680px, 100%);
}

.story-intro-media {
  width: 100%;
  justify-self: start;
}

.story-intro .story-image {
  width: min(100%, 280px);
}

.story-intro-copy {
  justify-self: start;
}

.story-intro-copy p {
  font-size: clamp(14px, 3vw, 17px);
}

.small-story-text {
  font-size: clamp(14px, 3vw, 17px);
}

.story-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 36px;
  margin-top: 0;
  transform: translateX(-50%);
}

.story-scroll-cue.reveal {
  transform: translate(-50%, 26px);
}

.story-scroll-cue.reveal.visible {
  transform: translate(-50%, 0);
}

.story-scroll-cue.visible span {
  animation: scrollCueBlink 1s ease-in-out 0.85s infinite;
}

.story-image {
  width: min(100%, 560px);
  border-radius: 6px;
}

.conversation {
  order: 0;
}

.emphasis {
  color: var(--color-teal-main);
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 700;
  line-height: 1.48;
}

.smaller-emphasis {
  font-size: clamp(22px, 4.8vw, 38px);
}

.quiet-peak,
.tension {
  text-align: left;
}

.question {
  color: var(--color-orange);
  font-size: clamp(30px, 8vw, 56px);
  font-weight: 700;
}

.tension-scene {
  text-align: left;
}

.tension-flow {
  display: grid;
  gap: 12px;
}

.tension-highlight {
  position: relative;
  isolation: isolate;
  width: fit-content;
  color: var(--color-text);
  font-size: clamp(22px, 4.8vw, 38px);
  font-weight: 700;
  line-height: 1.48;
}

.tension-highlight::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.12em;
  z-index: -1;
  height: 0.34em;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-orange) 62%, transparent);
  transform: scaleX(0);
  transform-origin: left center;
}

.tension-image {
  width: min(100%, 269px);
  justify-self: start;
}

.tension-step-1 {
  transition-delay: 0s;
}

.tension-step-2 {
  transition-delay: 0s;
}

.tension-step-3 {
  transform: none;
  transition: none;
}

.tension-step-4 {
  transition-delay: 0s;
}

.tension-step-5 {
  transition-delay: 0s;
}

.tension-step-origin {
  transition-delay: 0s;
}

.origin-link-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 18px;
  flex-wrap: wrap;
  text-align: left;
}

.origin-link-row p {
  margin-bottom: 0;
}

.origin-detail-link {
  font-size: inherit;
  font-weight: 600;
  margin-left: 2em;
}

.tension-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 36px;
  margin-top: 0;
  transform: translateX(-50%);
  animation: none;
}

.tension-scroll-cue.reveal {
  transform: translate(-50%, 26px);
}

.tension-scroll-cue.reveal.visible,
.tension-scene.is-active .tension-scroll-cue {
  transform: translate(-50%, 0);
}

.tension-scroll-cue.visible span {
  animation: scrollCueBlink 1s ease-in-out 0.85s infinite;
}

.tension-scene .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: none;
}

.tension-scene .tension-step-3 {
  transform: none;
}

.tension-scene.is-active .tension-step-1 {
  animation: realizationFloatIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

.tension-scene.is-active .tension-step-2 {
  animation: realizationFloatIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 1s forwards;
}

.tension-scene.is-active .tension-step-3 {
  animation: fadeOnly 1s ease 1.5s forwards;
}

.tension-scene.is-active .tension-step-3::after {
  animation: markerUnderline 0.3s ease-out 1.6s forwards;
}

.tension-scene.is-active .tension-step-4 {
  animation: realizationFloatIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 2.5s forwards;
}

.tension-scene.is-active .tension-step-origin {
  animation: realizationFloatIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 3.4s forwards;
}

.tension-scene.is-active .tension-step-5 {
  animation: realizationFloatIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 4.2s forwards;
}

.tension-scene.is-active .tension-scroll-cue span {
  animation: scrollCueBlink 1s ease-in-out 5.05s infinite;
}

.phrase-moment {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 48px);
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(220, 233, 236, 0.72);
  border-radius: 8px;
  box-shadow:
    0 0 26px rgba(90, 104, 110, 0.16),
    inset 0 0 18px rgba(255, 255, 255, 0.32);
}

.realization-screen {
  text-align: left;
}

.realization-flow {
  display: grid;
  gap: 24px;
}

.realization-flow .phrase-moment {
  margin: 0;
}

.realization-flow .phrase-lines {
  margin-top: 0;
  gap: 4px;
}

.realization-flow .earkana-text {
  font-family: "Klee One", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 400;
  letter-spacing: 0;
}

.realization-flow .local-text {
  font-family: "Patrick Hand", "Noto Serif JP", "Times New Roman", serif;
  font-size: clamp(18px, 4vw, 24px);
}

.realization-step-1 {
  margin-top: 1.8em;
  transition-delay: 0s;
}

.realization-step-2 {
  transition-delay: 0.5s;
}

.realization-step-3 {
  transition-delay: 1s;
}

.realization-card-step {
  transition-delay: 1.5s;
}

.realization-step-6 {
  transition-delay: 3.7s;
}

.realization-step-7 {
  transition-delay: 4.2s;
}

.type-line {
  display: block;
  width: 0;
  max-width: max-content;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
}

.phrase-moment.visible .type-local {
  animation: writeLine 1.2s steps(20, end) 2.1s forwards;
}

.phrase-moment.visible .type-earkana {
  animation: writeLine 1.6s steps(22, end) 2.9s forwards;
}

.inline-scroll-cue {
  justify-self: center;
  margin-top: 0;
  animation: none;
}

.inline-scroll-cue.visible span {
  animation: scrollCueBlink 1s ease-in-out 0.85s infinite;
}

.phrase-lines {
  margin-top: 34px;
  display: grid;
  gap: 14px;
}

.local-text,
.english {
  color: var(--color-text-secondary);
  font-size: clamp(18px, 4vw, 24px);
}

.earkana-text {
  color: var(--color-teal-dark);
  font-size: clamp(21px, 4.8vw, 34px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-teal-bright);
  font-weight: 600;
}

.text-link span {
  transition: transform 0.2s ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

.about-section {
  background: var(--color-white);
  padding: 72px 22px 56px;
}

.section-inner {
  width: min(840px, 100%);
  margin: 0 auto;
}

.comparison {
  margin: 0;
  display: grid;
  gap: 28px;
}

.example-card {
  width: min(680px, 100%);
  margin-top: 24px;
  padding: clamp(24px, 5vw, 38px);
  border: 1px solid rgba(2, 93, 116, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 0 26px rgba(90, 104, 110, 0.16),
    inset 0 0 18px rgba(255, 255, 255, 0.32);
  gap: 16px;
}

.comparison > div {
  display: grid;
  gap: 2px;
}

.example-card .label {
  font-size: clamp(8.4px, 1.8vw, 10.2px);
}

.example-card p {
  margin-bottom: 0;
}

.example-text {
  font-size: clamp(14px, 3vw, 17px);
}

.example-earkana {
  color: var(--color-orange);
  font-size: clamp(17px, 3.6vw, 20px);
}

.label {
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 500;
}

.audio-button {
  width: fit-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid rgba(2, 93, 116, 0.18);
  border-radius: 999px;
  color: var(--color-teal-main);
  background: transparent;
  cursor: pointer;
}

.example-card .audio-button {
  height: 35px;
  min-height: 35px;
  gap: 8px;
  padding: 0 13px;
  font-size: 80%;
  line-height: 1;
}

.example-card .audio-button span {
  display: inline-flex;
  align-items: center;
  height: 100%;
  line-height: 1;
  padding-top: 0;
}

.about-scroll-cue {
  display: grid;
  width: fit-content;
  margin: 6px auto 0;
  opacity: 1;
  transform: none;
}

.about-scroll-cue span {
  animation: scrollCueBlink 1s ease-in-out infinite;
}

.flow-section {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 110px 22px 76px;
  background: linear-gradient(
    180deg,
    var(--color-white) 0%,
    var(--color-white) 74%,
    var(--color-bg-pale-teal) 88%,
    var(--color-teal-main) 100%
  );
}

.flow-section .section-inner {
  display: grid;
  justify-items: stretch;
}

.flow-section .steps {
  justify-self: start;
  margin: 0 0 44px;
  text-align: left;
}

.flow-step {
  position: relative;
  display: block;
  width: fit-content;
  margin-left: 0;
  margin-right: auto;
  padding: 0 4px 4px;
  opacity: 0;
  transform: translateY(18px);
  isolation: isolate;
  transition: none;
  z-index: 0;
}

.flow-step::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.12em;
  z-index: -1;
  height: 0.34em;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-orange) 62%, transparent);
  transform: scaleX(0);
  transform-origin: left center;
}

.flow-section.is-active .flow-step::after {
  animation: markerUnderline 0.3s ease-out forwards;
}

.flow-section.is-active .flow-step-1 {
  animation: realizationFloatIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

.flow-section.is-active .flow-step-1::after {
  animation-delay: 1.8s;
}

.flow-section.is-active .flow-step-2 {
  animation: realizationFloatIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 1s forwards;
}

.flow-section.is-active .flow-step-2::after {
  animation-delay: 2.1s;
}

.flow-section.is-active .flow-step-3 {
  animation: realizationFloatIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 1.5s forwards;
}

.flow-section.is-active .flow-step-3::after {
  animation-delay: 2.4s;
}

.flow-link {
  justify-self: center;
  opacity: 0;
  transform: translateY(18px);
  transition: none;
}

.flow-section.is-active .flow-link {
  animation: realizationFloatIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) 2.7s forwards;
}

.flow-scroll-cue {
  display: grid;
  width: fit-content;
  margin: 48px auto 0;
  opacity: 0;
  transform: none;
}

.flow-section.is-active .flow-scroll-cue {
  animation: scrollCueBlink 1s ease-in-out 2.9s infinite;
}

.audio-button .wave {
  width: 22px;
  height: 12px;
  border-top: 2px solid var(--color-orange);
  border-bottom: 2px solid var(--color-orange);
  opacity: 0;
  transform: scaleX(0.6);
}

.audio-button.is-playing .wave {
  opacity: 1;
  animation: wavePulse 0.7s ease-in-out infinite alternate;
}

.steps {
  margin: 100px 0;
  display: grid;
  gap: 48px;
  color: var(--color-teal-dark);
  font-size: clamp(28px, 7vw, 50px);
  font-weight: 700;
  line-height: 1.4;
}

.try-section {
  min-height: 100svh;
  padding: 120px 22px 120px;
  color: var(--color-white);
  background: linear-gradient(
    180deg,
    var(--color-teal-main) 0%,
    var(--color-teal-dark) 24%,
    var(--color-teal-dark) 100%
  );
}

.try-section h2 {
  color: var(--color-white);
}

.trial-list {
  margin: 60px 0 0;
  display: grid;
  gap: 14px;
}

.try-scroll-cue {
  display: grid;
  width: fit-content;
  margin: 4px auto 0;
}

.try-scroll-cue.visible span {
  animation: scrollCueBlink 1s ease-in-out 0.85s infinite;
}

.trial-card {
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.trial-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 22px 0;
  color: var(--color-white);
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.trial-title {
  display: grid;
  gap: 3px;
}

.trial-lang {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.trial-source {
  font-size: clamp(19px, 4.8vw, 28px);
  font-weight: 700;
}

.trial-chevron {
  color: var(--color-orange);
  font-size: 24px;
}

.trial-panel {
  padding: 4px 0 34px;
}

.trial-panel[hidden] {
  display: none;
}

.trial-panel dl {
  margin: 0;
  display: grid;
  gap: 16px;
}

.trial-panel dt {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  font-weight: 500;
}

.trial-panel dd {
  margin: 0;
  font-size: clamp(17px, 4vw, 24px);
}

.trial-panel .earkana-text {
  color: var(--color-white);
}

.trial-panel .audio-button {
  margin-top: 24px;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.36);
}

.special-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: fit-content;
  margin: 32px auto 0;
  min-height: 52px;
  padding: 13px 22px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 999px;
  color: var(--color-white);
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.special-cta i {
  position: relative;
  width: 28px;
  height: 28px;
  border-right: 4px solid var(--color-orange);
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.special-cta i::before,
.special-cta i::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 5px;
  border-right: 4px solid var(--color-orange);
  border-radius: 50%;
  transform: translateY(-50%);
}

.special-cta i::before {
  width: 18px;
  height: 22px;
}

.special-cta i::after {
  width: 9px;
  height: 15px;
}

.special-cta:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
}

.special-cta:hover i {
  transform: scaleX(1.15);
}

.final-message {
  margin: 28vh 0 0;
  color: var(--color-white);
  text-align: center;
  font-size: clamp(28.8px, 8vw, 51.2px);
  font-weight: 700;
  line-height: 1.4;
}

.site-footer {
  margin: 72px auto 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 80%;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.footer-brand {
  color: var(--color-white);
  font-weight: 700;
}

.site-footer nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
}

.copyright {
  color: rgba(255, 255, 255, 0.56);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.18s;
}

.delay-2 {
  transition-delay: 0.34s;
}

.delay-3 {
  transition-delay: 0.5s;
}

.story-step-1 {
  transition-delay: 0s;
}

.story-step-2 {
  transition-delay: 0.5s;
}

.story-step-3 {
  transition-delay: 1s;
}

.story-step-4 {
  transition-delay: 1.5s;
}

.story-step-5 {
  transition-delay: 2s;
}

.realization-screen .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: none;
}

.realization-screen.is-active .realization-step-1 {
  animation: realizationFloatIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0s forwards;
}

.realization-screen.is-active .realization-step-2 {
  animation: realizationFloatIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

.realization-screen.is-active .realization-step-3 {
  animation: realizationFloatIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 1s forwards;
}

.realization-screen.is-active .realization-card-step {
  animation: realizationFloatIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 1.5s forwards;
}

.realization-screen.is-active .realization-step-6 {
  animation: realizationFloatIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 3.7s forwards;
}

.realization-screen.is-active .realization-step-7 {
  animation: realizationFloatIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 4.2s forwards;
}

.realization-screen.is-active .type-local {
  animation: writeLine 1.2s steps(20, end) 2.1s forwards;
}

.realization-screen.is-active .type-earkana {
  animation: writeLine 1.6s steps(22, end) 2.9s forwards;
}

.realization-screen.is-active .inline-scroll-cue span {
  animation: scrollCueBlink 1s ease-in-out 5.05s infinite;
}

.tension-scene .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: none;
}

.tension-scene .tension-step-3 {
  transform: none;
}

.tension-scene.is-active .tension-step-1 {
  animation: realizationFloatIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

.tension-scene.is-active .tension-step-2 {
  animation: realizationFloatIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 1s forwards;
}

.tension-scene.is-active .tension-step-3 {
  animation: fadeOnly 1s ease 1.5s forwards;
}

.tension-scene.is-active .tension-step-4 {
  animation: realizationFloatIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 2.5s forwards;
}

.tension-scene.is-active .tension-step-origin {
  animation: realizationFloatIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 3.4s forwards;
}

.tension-scene.is-active .tension-step-5 {
  animation: realizationFloatIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 4.2s forwards;
}

.tension-scene.is-active .tension-scroll-cue span {
  animation: scrollCueBlink 1s ease-in-out 5.05s infinite;
}

.tension-scene .tension-scroll-cue.reveal {
  transform: translate(-50%, 26px);
}

.tension-scene.is-active .tension-scroll-cue {
  animation: scrollFloatIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 4.2s forwards;
}

@keyframes wavePulse {
  from {
    transform: scaleX(0.6);
  }
  to {
    transform: scaleX(1.12);
  }
}

@keyframes heroTextFloatIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollCueBlink {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes markerUnderline {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes realizationFloatIn {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOnly {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scrollFloatIn {
  from {
    opacity: 0;
    transform: translate(-50%, 26px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes writeLine {
  from {
    width: 0;
    opacity: 1;
  }
  to {
    width: 100%;
    opacity: 1;
  }
}

@media (max-width: 760px) {
  .hero {
    padding-top: 58px;
  }

  .hero-video-wrap {
    width: min(88vw, 338px);
    margin-bottom: 20px;
  }

  .story-intro,
  .story-close {
    grid-template-columns: 1fr;
  }

  .story-close .story-image {
    order: -1;
  }

  .story-screen {
    min-height: auto;
    padding: 86px 22px;
  }

  .about-section,
  .try-section {
    padding-left: 22px;
    padding-right: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
