:root {
  --ink: #173e4c;
  --deep: #0f3441;
  --cyan: #35c6db;
  --sky: #bdeef4;
  --sun: #ffd461;
  --coral: #f26f54;
  --leaf: #74a75c;
  --cream: #fff9ec;
  --paper: #fffdf7;
  --muted: #5e747c;
  --line: rgba(23, 62, 76, 0.14);
  --shadow: 0 24px 60px rgba(23, 62, 76, 0.16);
  --radius-xl: 42px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --page-pad: clamp(22px, 4.5vw, 76px);
  --display: "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --body: "Trebuchet MS", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  overflow-x: hidden;
}

body::selection {
  color: white;
  background: var(--coral);
}

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

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

button {
  color: inherit;
  font: inherit;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(52px, 7vw, 104px);
}

h2 {
  font-size: clamp(38px, 5vw, 70px);
}

h3 {
  font-size: 28px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: white;
  background: var(--ink);
  border-radius: 10px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page {
  min-height: 100vh;
  overflow: hidden;
}

.site-header {
  position: relative;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  min-height: 72px;
  padding: 10px var(--page-pad);
  background: rgba(255, 253, 247, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
}

.brand-mark {
  display: block;
  width: 46px;
  height: 46px;
}

.brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-name {
  color: #000;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.site-header nav {
  display: flex;
  gap: 30px;
  font-size: 14px;
  font-weight: 700;
}

.site-header nav a {
  position: relative;
  padding: 8px 0;
}

.site-header nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--coral);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.site-header nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-header > .button {
  justify-self: end;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 11px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  place-items: center;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 99px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(23, 62, 76, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  box-shadow: 0 14px 28px rgba(23, 62, 76, 0.18);
  transform: translateY(-3px);
}

.button-small {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 14px;
}

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

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

.button-coral {
  color: white;
  background: var(--coral);
}

.button-cyan {
  color: var(--deep);
  background: var(--cyan);
}

.button-light {
  color: var(--deep);
  background: white;
}

.button-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.text-link span {
  font-size: 22px;
  transition: transform 180ms ease;
}

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

.eyebrow,
.edition-number {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-pad {
  padding: clamp(56px, 7vw, 105px) var(--page-pad);
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 60px;
  text-align: center;
}

.section-heading p {
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

.storybook-hero .reveal {
  opacity: 1;
  transform: none;
}

.character-float {
  animation: character-float 5s ease-in-out infinite;
}

.delay-one {
  animation-delay: -1.2s;
}

.delay-two {
  animation-delay: -2.4s;
}

.delay-three {
  animation-delay: -3.6s;
}

/* Final storybook homepage */

.storybook-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(500px, 1.1fr);
  align-items: center;
  min-height: calc(100svh - 128px);
  padding: 30px var(--page-pad) 34px;
  overflow: hidden;
  background: linear-gradient(180deg, #e9fbfd 0%, #bdeef4 var(--hero-band-start, 44%), #f6e5a8 var(--hero-band-start, 44%), #fbf2ce 100%);
}

.storybook-hero::before {
  position: absolute;
  top: -15vw;
  right: -10vw;
  width: 45vw;
  height: 45vw;
  background: rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 4;
  max-width: 660px;
  padding-bottom: 0;
}

.hero-copy h1 {
  margin-bottom: 20px;
  font-size: clamp(46px, 5.4vw, 78px);
}

.hero-copy h1 em {
  color: var(--coral);
  font-style: normal;
}

.hero-copy > p {
  max-width: 570px;
  margin-bottom: 24px;
  color: #365b67;
  font-size: clamp(17px, 1.35vw, 20px);
}

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  color: #4e6f77;
  font-size: 13px;
  font-weight: 700;
}

.storybook-stage {
  position: relative;
  z-index: 3;
  min-height: 500px;
  transform: translate3d(calc(var(--parallax-x, 0) * 1px), calc(var(--parallax-y, 0) * 1px), 0);
  transition: transform 250ms ease-out;
}

.sun-orbit {
  position: absolute;
  top: 8%;
  left: 15%;
  width: 72%;
  aspect-ratio: 1;
  border: 2px dashed rgba(23, 62, 76, 0.16);
  border-radius: 50%;
  animation: slow-spin 50s linear infinite;
}

.hero-cover {
  position: absolute;
  z-index: 5;
  top: 14%;
  left: 36%;
  width: min(31%, 290px);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(22, 68, 80, 0.3);
  transform: rotate(4deg);
  animation: cover-hover 6s ease-in-out infinite;
}

.hero-flow,
.hero-roo,
.hero-bao {
  position: absolute;
  z-index: 4;
  filter: drop-shadow(0 20px 15px rgba(23, 62, 76, 0.14));
  object-fit: contain;
}

.hero-flow {
  right: 0;
  bottom: -4%;
  width: 48%;
}

.hero-roo {
  bottom: 3%;
  left: 3%;
  width: 29%;
}

.hero-bao {
  top: 1%;
  left: 3%;
  width: 23%;
}

.spark {
  position: absolute;
  z-index: 7;
  color: var(--sun);
  filter: drop-shadow(0 5px 5px rgba(23, 62, 76, 0.12));
  animation: sparkle 2.6s ease-in-out infinite;
}

.spark-one {
  top: 17%;
  left: 31%;
  font-size: 36px;
}

.spark-two {
  top: 38%;
  right: 4%;
  color: var(--coral);
  font-size: 28px;
  animation-delay: -1s;
}

.spark-three {
  top: 6%;
  left: 47%;
  color: var(--cyan);
  font-size: 18px;
  animation-delay: -1.7s;
}

.cloud {
  position: absolute;
  z-index: 1;
  width: 180px;
  height: 55px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  animation: cloud-drift 25s linear infinite;
}

.cloud::before,
.cloud::after {
  position: absolute;
  bottom: 0;
  background: inherit;
  border-radius: 50%;
  content: "";
}

.cloud::before {
  left: 28px;
  width: 80px;
  height: 80px;
}

.cloud::after {
  right: 24px;
  width: 100px;
  height: 100px;
}

.cloud-one {
  top: 13%;
  left: -200px;
}

.cloud-two {
  top: 32%;
  left: -250px;
  opacity: 0.5;
  animation-delay: -11s;
  animation-duration: 33s;
  transform: scale(0.7);
}

.hero-hill {
  position: absolute;
  z-index: 2;
  right: -8%;
  bottom: -25%;
  width: 75%;
  height: 46%;
  background: #7aa85d;
  border-radius: 50% 50% 0 0;
  transform: rotate(-4deg);
}

.language-ribbon {
  overflow: hidden;
  color: white;
  background: var(--ink);
  border-block: 1px solid rgba(255, 255, 255, 0.1);
}

.marquee-track {
  display: flex;
  gap: 42px;
  width: max-content;
  padding: 15px 0;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  animation: marquee 34s linear infinite;
}

.marquee-track span::before {
  margin-right: 42px;
  color: var(--sun);
  content: "✦";
}

.story-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(55px, 8vw, 130px);
  background: var(--paper);
  isolation: isolate;
  overflow: hidden;
}

.story-section::before,
.journey-steps::before,
.cast-section::before,
.edition-section::before,
.cinema-section::before {
  position: absolute;
  z-index: 0;
  width: clamp(320px, 40vw, 620px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(53, 198, 219, 0.2), rgba(255, 212, 97, 0.1) 48%, transparent 70%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  animation: ambient-drift 11s ease-in-out infinite alternate;
}

.story-section::before {
  top: -18%;
  right: -12%;
}

.story-section > *,
.journey-steps > *,
.cast-section > *,
.edition-section > *,
.cinema-section > * {
  position: relative;
  z-index: 1;
}

.story-window {
  position: relative;
  display: grid;
  min-height: 620px;
  overflow: hidden;
  background: #d7f3f6;
  border: 14px solid white;
  border-radius: 48% 48% 34px 34px;
  box-shadow: var(--shadow);
  place-items: end center;
}

.world-scene,
.cinema-world {
  position: absolute;
  inset: 0;
  background-position: 50% 30%;
  background-size: cover;
  filter: saturate(0.82) brightness(1.08);
  transform: scale(1.05);
}

.world-scene {
  background-image: linear-gradient(rgba(215, 243, 246, 0.2), rgba(116, 167, 92, 0.2)), url("./assets/character-scenes/flow-sky.jpg");
}

.cinema-world {
  background-image: linear-gradient(rgba(189, 238, 244, 0.12), rgba(15, 52, 65, 0.16)), url("./assets/character-scenes/eliza-sky.jpg");
  background-position: 50% 24%;
}

.story-window img {
  position: relative;
  z-index: 2;
  width: min(74%, 480px);
  margin-bottom: -14%;
  filter: drop-shadow(0 18px 18px rgba(23, 62, 76, 0.15));
  animation: character-float 5s ease-in-out infinite;
}

.leaf {
  position: absolute;
  z-index: 3;
  color: var(--leaf);
  font-size: 28px;
  animation: leaf-sway 4s ease-in-out infinite;
}

.leaf-one {
  top: 18%;
  left: 10%;
}

.leaf-two {
  top: 30%;
  right: 9%;
  animation-delay: -2s;
}

.story-copy h2 {
  margin-bottom: 28px;
}

.story-copy > p {
  color: var(--muted);
  font-size: 19px;
}

.benefit-list {
  padding: 0;
  margin: 34px 0;
  list-style: none;
}

.benefit-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 18px;
  padding: 19px 0;
  border-top: 1px solid var(--line);
  font-weight: 700;
}

.benefit-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.benefit-icon {
  display: grid;
  width: 48px;
  height: 48px;
  color: var(--deep);
  border-radius: 16px;
  box-shadow: 0 9px 22px rgba(23, 62, 76, 0.12);
  place-items: center;
}

.benefit-icon svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.icon-language {
  background: var(--cyan);
  transform: rotate(-3deg);
}

.icon-reading {
  background: var(--sun);
  transform: rotate(2deg);
}

.icon-safety {
  color: white;
  background: var(--coral);
  transform: rotate(-2deg);
}

.cast-section {
  position: relative;
  background: #f1f8f4;
  isolation: isolate;
  overflow: hidden;
}

.cast-section::before {
  top: 4%;
  left: -12%;
  background: radial-gradient(circle, rgba(255, 212, 97, 0.24), rgba(242, 111, 84, 0.09) 48%, transparent 70%);
  animation-delay: -4s;
}

.cast-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.cast-card {
  position: relative;
  min-height: 500px;
  padding: 28px;
  overflow: hidden;
  background-color: #d9edf1;
  background-position: 50% 22%;
  background-size: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 35px rgba(23, 62, 76, 0.08);
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.cast-card::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 253, 247, 0.94) 0%, rgba(255, 253, 247, 0.72) 18%, rgba(255, 253, 247, 0.08) 55%, rgba(15, 52, 65, 0.16) 100%);
  content: "";
  pointer-events: none;
}

.cast-card::after {
  position: absolute;
  z-index: 1;
  right: -32%;
  bottom: -28%;
  width: 82%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 212, 97, 0.34), transparent 68%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  animation: color-breathe 7s ease-in-out infinite;
}

.cast-card:hover {
  z-index: 2;
  box-shadow: 0 22px 50px rgba(23, 62, 76, 0.15);
  transform: translateY(-12px) rotate(-1deg);
}

.cast-card h3 {
  position: relative;
  z-index: 3;
  margin: 3px 0;
}

.cast-card > span {
  position: relative;
  z-index: 3;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cast-card img {
  position: absolute;
  z-index: 2;
  right: -8%;
  bottom: -22%;
  width: 112%;
  max-width: none;
  transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cast-card:hover img {
  transform: translateY(-5%) scale(1.04);
}

.card-flow { background-image: url("./assets/character-scenes/flow-sky.jpg"); }
.card-roo { background-image: url("./assets/character-scenes/roo-sky.jpg"); }
.card-bao { background-image: url("./assets/character-scenes/bao-sky.jpg"); }
.card-zeek { background-image: url("./assets/character-scenes/zeek-sky.jpg"); }
.card-eliza { background-image: url("./assets/character-scenes/eliza-sky.jpg"); }
.card-wally { background-image: url("./assets/character-scenes/wally-sky.jpg"); }
.card-jed { background-image: url("./assets/character-scenes/jed-sky.jpg"); }
.card-dragon { background-image: url("./assets/character-scenes/dragon-sky.jpg"); }

.edition-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(450px, 1.05fr);
  align-items: center;
  gap: 70px;
  background: #fff5dd;
  isolation: isolate;
  overflow: hidden;
}

.edition-section::before {
  right: -8%;
  bottom: -18%;
  background: radial-gradient(circle, rgba(242, 111, 84, 0.18), rgba(255, 212, 97, 0.14) 50%, transparent 70%);
  animation-delay: -6s;
}

.edition-copy > p {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
}

.edition-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0;
}

.edition-pills button {
  padding: 10px 15px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 62, 76, 0.13);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.edition-pills button:hover,
.edition-pills button.is-active {
  color: white;
  background: var(--coral);
  transform: translateY(-2px);
}

.edition-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 30px;
}

.edition-product-button {
  min-width: 270px;
  box-shadow: 0 16px 34px rgba(242, 111, 84, 0.28);
}

.about-faq-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(500px, 1.15fr);
  align-items: start;
  gap: clamp(55px, 8vw, 120px);
  padding: clamp(60px, 7vw, 100px) var(--page-pad);
  background: #f1f8f4;
}

.about-ezflow-copy {
  position: sticky;
  top: 110px;
  max-width: 590px;
}

.about-ezflow-copy h2,
.faq-panel h2 {
  margin-bottom: 24px;
  font-size: clamp(38px, 4vw, 58px);
}

.about-ezflow-copy p {
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 18px;
}

.faq-panel details {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.faq-panel details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-panel summary {
  cursor: pointer;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  list-style-position: outside;
}

.faq-panel details p {
  max-width: 660px;
  margin: 14px 0 0;
  color: var(--muted);
}

.product-stage {
  position: relative;
  display: grid;
  min-height: 690px;
  place-items: center;
}

.cover-glow {
  position: absolute;
  width: 72%;
  aspect-ratio: 1;
  background: radial-gradient(circle, white 0, rgba(255, 255, 255, 0.2) 57%, transparent 58%);
  border: 2px dashed rgba(23, 62, 76, 0.17);
  border-radius: 50%;
  animation: slow-spin 42s linear infinite reverse;
}

.edition-page-shell {
  position: relative;
  z-index: 2;
  width: min(60%, 410px);
  aspect-ratio: 910 / 965.25;
  overflow: hidden;
  background: white;
  border: 6px solid white;
  border-radius: 9px;
  box-shadow: 0 28px 75px rgba(23, 62, 76, 0.25);
  transform: rotate(-3deg);
  transition: opacity 180ms ease, transform 180ms ease;
}

.edition-page-shell::after {
  position: absolute;
  inset: -40% -75%;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.4) 50%, transparent 58%);
  content: "";
  pointer-events: none;
  transform: translateX(-38%);
  animation: page-sheen 7.5s ease-in-out infinite;
}

.edition-page-shell.is-switching {
  opacity: 0;
  transform: rotate(-3deg) scale(0.96);
}

.edition-page-preview {
  display: block;
  width: 100%;
  height: auto;
}

.edition-zoom-lens {
  position: absolute;
  z-index: 3;
  display: none;
  width: 138px;
  height: 138px;
  pointer-events: none;
  background-color: white;
  background-origin: border-box;
  background-position: center;
  background-repeat: no-repeat;
  border: 5px solid white;
  border-radius: 50%;
  box-shadow: 0 16px 38px rgba(23, 62, 76, 0.3);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 140ms ease, transform 140ms ease;
  will-change: left, top, background-position;
}

@media (hover: hover) and (pointer: fine) {
  .edition-page-shell {
    cursor: zoom-in;
  }

  .edition-zoom-lens {
    display: block;
  }

  .edition-page-shell.is-magnifying .edition-zoom-lens {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.preview-labels {
  position: absolute;
  z-index: 4;
  top: 4%;
  left: 2%;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 9px;
}

.product-guide {
  position: absolute;
  z-index: 3;
  right: -2%;
  bottom: -14%;
  width: min(48%, 380px);
  filter: drop-shadow(0 20px 18px rgba(23, 62, 76, 0.16));
}

.format-chip {
  padding: 12px 17px;
  color: white;
  background: var(--ink);
  border-radius: 999px;
  font-weight: 900;
  transform: rotate(-7deg);
}

.edition-preview-label {
  padding: 9px 14px;
  color: var(--deep);
  background: var(--sun);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(23, 62, 76, 0.14);
  transform: rotate(3deg);
}

.journey-steps {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  isolation: isolate;
  overflow: hidden;
}

.journey-steps::before {
  top: 18%;
  right: -14%;
  background: radial-gradient(circle, rgba(242, 111, 84, 0.13), rgba(53, 198, 219, 0.1) 48%, transparent 70%);
  animation-delay: -2s;
}
.step-line {
  position: absolute;
  top: 400px;
  bottom: 200px;
  left: 50%;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--coral) 0 12px, transparent 12px 26px);
}

.journey-step {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(50px, 8vw, 130px);
  margin: 56px 0 98px;
}

.journey-step > div:not(.step-art) {
  max-width: 470px;
}

.journey-step > div > span {
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.journey-step h3 {
  margin: 10px 0 18px;
  font-size: clamp(34px, 4vw, 56px);
}

.journey-step p {
  color: var(--muted);
  font-size: 18px;
}

.step-art {
  position: relative;
  display: grid;
  min-height: 500px;
  overflow: hidden;
  border-radius: 50% 50% 28px 28px;
  place-items: end center;
}

.step-art img {
  width: 78%;
  margin-bottom: -17%;
  filter: drop-shadow(0 20px 15px rgba(23, 62, 76, 0.14));
  transition: transform 350ms ease;
}

.step-art:hover img {
  transform: translateY(-3%) scale(1.03);
}

.step-art.sunny { background: #fae7a8; }
.step-art.blue { background: #c6e9ef; }
.step-art.coral { background: #f7c4b5; }

.cinema-section {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(50px, 8vw, 130px);
  padding: clamp(56px, 6.3vw, 91px) var(--page-pad);
  color: white;
  background: var(--deep);
  isolation: isolate;
  overflow: hidden;
}

.cinema-section::before {
  top: -32%;
  right: -12%;
  background: radial-gradient(circle, rgba(53, 198, 219, 0.24), rgba(255, 212, 97, 0.06) 48%, transparent 70%);
  animation-delay: -8s;
}

.cinema-frame {
  position: relative;
  display: grid;
  min-height: 620px;
  overflow: hidden;
  background: #bdeef4;
  border: 8px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  place-items: end center;
}

.cinema-frame::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15, 52, 65, 0.24));
  content: "";
}

.cinema-frame img {
  position: relative;
  z-index: 3;
  width: min(72%, 520px);
  margin-bottom: -11%;
  animation: character-float 5s ease-in-out infinite;
}

.cinema-copy p {
  margin-bottom: 34px;
  color: #c6d7dc;
  font-size: 18px;
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 50px var(--page-pad) 38px;
  color: white;
  background: var(--ink);
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-logo-frame {
  display: block;
  width: 116px;
  height: 116px;
}

.footer-logo-frame svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: brightness(0) invert(1);
}

.footer-brand strong {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 0.14em;
}

.site-footer p {
  margin: 0;
  color: #bcd1d6;
  font-size: 14px;
}

.site-footer .footer-line {
  margin-top: 8px;
  color: white;
  font-size: 17px;
  font-weight: 800;
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  padding-top: 28px;
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-socials a {
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  place-items: center;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.footer-socials svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.footer-socials .icon-fill,
.footer-socials .icon-solid {
  fill: currentColor;
  stroke: none;
}

.site-footer .private-preview-note {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.footer-socials a:hover {
  color: var(--deep);
  background: var(--sun);
  transform: translateY(-2px);
}

@keyframes character-float {
  0%, 100% { transform: translateY(0) rotate(-0.4deg); }
  50% { transform: translateY(-12px) rotate(0.6deg); }
}

@keyframes cover-hover {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

@keyframes sparkle {
  0%, 100% { opacity: 0.55; transform: scale(0.8) rotate(0); }
  50% { opacity: 1; transform: scale(1.15) rotate(12deg); }
}

@keyframes slow-spin {
  to { rotate: 360deg; }
}

@keyframes cloud-drift {
  to { translate: calc(100vw + 420px) 0; }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@keyframes leaf-sway {
  0%, 100% { transform: translateY(0) rotate(-12deg); }
  50% { transform: translateY(14px) rotate(18deg); }
}

@keyframes ambient-drift {
  0% { opacity: 0.55; transform: translate3d(-3%, -2%, 0) scale(0.94); }
  100% { opacity: 0.9; transform: translate3d(7%, 5%, 0) scale(1.08); }
}

@keyframes color-breathe {
  0%, 100% { opacity: 0.35; transform: scale(0.86); }
  50% { opacity: 0.78; transform: scale(1.12); }
}

@keyframes page-sheen {
  0%, 72% { opacity: 0; transform: translateX(-38%); }
  82% { opacity: 0.65; }
  100% { opacity: 0; transform: translateX(38%); }
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .storybook-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 48px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .storybook-stage {
    min-height: 520px;
  }

  .cast-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-section,
  .edition-section,
  .cinema-section,
  .about-faq-section {
    grid-template-columns: 1fr;
  }

  .about-ezflow-copy {
    position: static;
  }

  .product-stage {
    min-height: 620px;
  }

  .product-guide {
    right: 7%;
  }

}

@media (max-width: 760px) {
  :root {
    --radius-xl: 28px;
    --radius-lg: 22px;
  }

  .site-header {
    min-height: 72px;
    padding-block: 12px;
  }

  .site-header > .button {
    display: none;
  }

  .menu-toggle {
    display: grid;
    justify-self: end;
  }

  .site-header nav.is-open {
    position: absolute;
    top: calc(100% + 1px);
    right: var(--page-pad);
    left: var(--page-pad);
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 2px;
    padding: 12px;
    background: rgba(255, 253, 247, 0.98);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 20px 48px rgba(23, 62, 76, 0.2);
    backdrop-filter: blur(18px);
  }

  .site-header nav.is-open a {
    padding: 12px 14px;
    border-radius: 11px;
  }

  .site-header nav.is-open a:hover {
    background: #edf7f8;
  }

  .site-header nav.is-open a::after {
    display: none;
  }

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

  .storybook-hero {
    grid-template-rows: auto 1fr;
    height: calc(100svh - 120px);
    min-height: 470px;
    padding: 20px var(--page-pad) 10px;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero-copy .eyebrow {
    margin-bottom: 8px;
  }

  .hero-copy > p {
    margin-bottom: 14px;
    font-size: 15px;
    line-height: 1.35;
  }

  .storybook-stage {
    min-height: 0;
    height: 100%;
  }

  .hero-copy h1 {
    margin-bottom: 12px;
    font-size: 40px;
  }

  .button-row {
    gap: 12px;
  }

  .button-row .button {
    min-height: 46px;
    padding: 11px 18px;
    font-size: 14px;
  }

  .button-row .text-link {
    font-size: 14px;
  }

  .trust-line {
    display: none;
  }

  .marquee-track {
    padding-block: 12px;
    font-size: 13px;
  }

  .hero-cover {
    top: 12%;
    left: 15%;
    width: auto;
    height: 150px;
  }

  .hero-flow {
    right: 5%;
    bottom: 0;
    width: auto;
    height: 205px;
  }

  .hero-roo,
  .hero-bao {
    display: none;
  }

  .edition-page-shell {
    width: min(72%, 360px);
  }

  .preview-labels {
    top: 2%;
    left: 0;
  }

  .edition-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .edition-product-button {
    width: 100%;
    min-width: 0;
  }

  .story-window,
  .cinema-frame {
    min-height: 470px;
  }

  .cast-grid {
    grid-template-columns: 1fr;
  }

  .cast-card {
    min-height: 410px;
  }

  .cast-card img {
    right: 50%;
    bottom: -9%;
    width: auto;
    max-width: none;
    height: 108%;
    translate: 50% 0;
  }

  .journey-step {
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 42px 0 70px;
  }

  .journey-step.step-two > div:first-child {
    order: 2;
  }

  .step-line {
    display: none;
  }

  .step-art {
    min-height: 430px;
  }

  .site-footer {
    padding-top: 41px;
  }

  .about-faq-section {
    gap: 48px;
    padding: 56px var(--page-pad);
  }

  .faq-panel {
    width: 100%;
  }

  .faq-panel h2 {
    font-size: 38px;
  }

  .faq-panel details,
  .faq-panel details:last-child {
    padding: 0;
    margin-bottom: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    border-radius: 18px;
  }

  .faq-panel summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    list-style: none;
  }

  .faq-panel summary::-webkit-details-marker {
    display: none;
  }

  .faq-panel summary::after {
    display: grid;
    width: 32px;
    height: 32px;
    color: white;
    background: var(--ink);
    border-radius: 50%;
    content: "+";
    flex: 0 0 auto;
    font-family: var(--body);
    font-size: 21px;
    place-items: center;
  }

  .faq-panel details[open] summary::after {
    content: "−";
  }

  .faq-panel details p {
    max-width: none;
    padding: 0 18px 18px;
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
