/**
 * Homepage – matches tvorchestvo.bg (Elementor page 42)
 */
body[data-page="home"] {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--color-muted);
  overflow-x: clip;
}

body[data-page="home"] .site-wrap {
  width: min(1140px, calc(100% - 2rem));
  max-width: 100%;
  box-sizing: border-box;
}

/* Hero banner — full-bleed strip (paler pink) */
body[data-page="home"] .hero-banner {
  background: #fff6f6;
  border: none;
  box-shadow: none;
  padding: 1.15rem 0;
  text-align: center;
  width: 100%;
}

body[data-page="home"] .hero-banner::before {
  display: none;
}

body[data-page="home"] .hero-banner .site-wrap {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  max-width: min(760px, calc(100% - 2rem));
}

body[data-page="home"] .hero-banner-title {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

body[data-page="home"] .hero-banner-title-text {
  display: block;
  margin: 0 auto;
  max-width: min(42rem, 100%);
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--color-primary, #a81c44);
  text-align: center;
  text-wrap: balance;
  -webkit-font-smoothing: antialiased;
}

body[data-page="home"] .hero-banner-title-img {
  display: none;
}

body[data-page="home"] .hero-banner img {
  margin-inline: auto;
  max-width: 710px;
  width: 100%;
  filter: none;
}

body[data-page="home"] .hero-section {
  padding: 0 0 4rem;
  background: transparent;
}

body[data-page="home"] .hero-grid {
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

body[data-page="home"] .hero-text {
  text-align: center;
  margin: 1.5rem 0 0;
  padding: 0 1rem;
}

body[data-page="home"] .hero-intro {
  max-width: 34em;
  margin: 0.8cm auto 1rem;
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--color-muted);
  line-height: 1.72;
  letter-spacing: 0.012em;
  text-align: center;
}

body[data-page="home"] .hero-intro p {
  margin: 0 0 0.85em;
}

body[data-page="home"] .hero-intro p:last-child {
  margin-bottom: 0;
}

body[data-page="home"] .hero-intro-hook {
  font-size: clamp(1.18rem, 1.9vw, 1.42rem);
  line-height: 1.45;
  color: var(--color-text);
  font-weight: 500;
}

body[data-page="home"] .hero-intro-hook .hero-line {
  display: block;
  white-space: nowrap;
}

body[data-page="home"] .hero-intro-invite {
  margin-top: 0.85em;
  font-size: clamp(1.18rem, 1.9vw, 1.42rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--color-text);
}

body[data-page="home"] .hero-intro-label {
  display: inline-block;
  margin-bottom: 0.15em;
  font-weight: 600;
  color: var(--color-primary, #a81c44);
}

body[data-page="home"] .hero-intro-moment {
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

/* Keep the red book title on a single line on all viewports */
body[data-page="home"] .hero-intro strong,
body[data-page="home"] .hero-book-title-inline {
  color: var(--color-primary, #a81c44);
  font-weight: 700;
}

body[data-page="home"] .hero-book-title-inline {
  white-space: nowrap !important;
  display: inline;
  word-break: keep-all;
  hyphens: none;
  overflow-wrap: normal;
}

body[data-page="home"] .hero-intro--mobile {
  display: none;
}

body[data-page="home"] .hero-book-mobile {
  display: none;
  margin: 0 0 1rem;
  text-align: center;
}

body[data-page="home"] .hero-book-img {
  width: 80%;
  max-width: 100%;
  margin-inline: auto;
  border-radius: 18px;
  box-shadow: none;
  animation: none;
}

body[data-page="home"] .book-showcase::after {
  display: none;
}

body[data-page="home"] .hero-book-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  body[data-page="home"] .hero-book-link {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
  }

  body[data-page="home"] .hero-book-link:hover {
    opacity: 1;
    transform: translateY(-4px);
  }
}

body[data-page="home"] .hero-image-desktop {
  text-align: center;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  align-self: start;
  /* Match hero-text top margin so cover top aligns with first text line */
  padding-top: 1.5rem;
  margin-top: 0;
}

body[data-page="home"] .hero-book-stack {
  display: flex;
  justify-content: center;
  width: 100%;
}

body[data-page="home"] .hero-book-panel {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: min(490px, 90%);
  max-width: 100%;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

body[data-page="home"] .hero-book-panel .hero-book-link {
  display: block;
  width: 100%;
  line-height: 0;
}

body[data-page="home"] .hero-image-desktop .hero-book-img,
body[data-page="home"] .hero-book-panel .hero-book-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  display: block;
}

body[data-page="home"] .hero-book-panel .btn-home {
  width: auto;
  min-width: 0;
  margin: 0;
}

body[data-page="home"] .hero-book-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  min-height: 44px;
  margin-bottom: 1.5rem;
}

body[data-page="home"] .hero-book-actions .btn-home,
body[data-page="home"] .hero-book-actions .btn-home-mobile {
  flex-shrink: 0;
  margin-left: 0;
  margin-right: 0.85rem; /* леко по-вляво от геометричния център */
}

body[data-page="home"] .btn-hero-audio {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: #a81c44;
  cursor: pointer;
  flex-shrink: 0;
  overflow: visible;
  box-shadow: 0 5px 18px rgba(168, 28, 68, 0.3);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

body[data-page="home"] .btn-hero-audio-staff {
  width: 100%;
  height: 100%;
  display: block;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

body[data-page="home"] .btn-hero-audio-pause {
  position: absolute;
  inset: 0;
  width: 24px;
  height: 24px;
  margin: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

body[data-page="home"] .btn-hero-audio-pause rect {
  fill: #fff;
}

body[data-page="home"] .btn-hero-audio .staff-lines line {
  stroke: rgba(255, 255, 255, 0.82);
  stroke-width: 1;
}

body[data-page="home"] .btn-hero-audio .staff-note ellipse {
  fill: #fff;
}

body[data-page="home"] .btn-hero-audio .staff-note line {
  stroke: #fff;
  stroke-width: 1.35;
  stroke-linecap: round;
}

body[data-page="home"] .btn-hero-audio .staff-note path {
  fill: #fff;
}

body[data-page="home"] .btn-hero-audio .staff-note {
  animation: staff-note-travel 3.4s linear infinite;
  will-change: transform;
}

body[data-page="home"] .btn-hero-audio .staff-label {
  display: none;
}

body[data-page="home"] .btn-hero-audio .staff-note-2 {
  animation-delay: -1.15s;
}

body[data-page="home"] .btn-hero-audio .staff-note-3 {
  animation-delay: -2.3s;
}

@media (hover: hover) {
  body[data-page="home"] .btn-hero-audio:not(.is-playing):hover .staff-note {
    animation-duration: 1.7s;
  }
}

body[data-page="home"] .btn-hero-audio.is-playing .btn-hero-audio-staff {
  opacity: 0;
  visibility: hidden;
}

body[data-page="home"] .btn-hero-audio.is-playing .staff-note,
body[data-page="home"] .btn-hero-audio.is-playing .staff-label {
  animation-play-state: paused;
}

body[data-page="home"] .btn-hero-audio.is-playing .btn-hero-audio-pause {
  opacity: 1;
  visibility: visible;
}

body[data-page="home"] .btn-hero-audio:hover,
body[data-page="home"] .btn-hero-audio.is-playing {
  background: #8a1738;
  transform: scale(1.05);
  box-shadow: 0 10px 28px rgba(168, 28, 68, 0.45);
}

@keyframes staff-note-travel {
  0% {
    transform: translateX(-8px);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  92% {
    opacity: 1;
  }
  100% {
    transform: translateX(92px);
    opacity: 0;
  }
}

@keyframes staff-stream-mobile {
  0% {
    transform: translateX(-8px);
    opacity: 0;
  }
  4% {
    opacity: 1;
  }
  46% {
    opacity: 1;
  }
  50% {
    transform: translateX(92px);
    opacity: 0;
  }
  100% {
    transform: translateX(92px);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .btn-hero-audio .staff-note,
  body[data-page="home"] .btn-hero-audio .staff-label {
    animation: none;
    transform: translateX(44px);
    opacity: 1;
  }

  body[data-page="home"] .btn-hero-audio .staff-label {
    display: none;
  }
}

body[data-page="home"] .btn-hero-audio-tip {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  background: #8a1738;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(168, 28, 68, 0.28);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 2;
}

body[data-page="home"] .btn-hero-audio-tip::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-bottom-color: #8a1738;
}

body[data-page="home"] .btn-hero-audio:hover .btn-hero-audio-tip,
body[data-page="home"] .btn-hero-audio:focus-visible .btn-hero-audio-tip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}


body[data-page="home"] .hero-actions,
body[data-page="home"] .btn-desktop {
  display: none !important;
}

body[data-page="home"] .btn-home-mobile {
  display: none;
}

body[data-page="home"] .btn-home {
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  padding: 0.62rem 1.45rem;
  border-radius: 999px;
  border: none;
  background: #a81c44;
  color: #fff;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  text-shadow: none;
  box-shadow: none;
  transform: none !important;
  animation: none;
  filter: none;
  transition: background 0.2s ease, color 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

@media (hover: hover) and (pointer: fine) {
  body[data-page="home"] .btn-home:hover {
    color: #fff;
    background: #8a1738;
    filter: none;
    box-shadow: none;
  }
}

body[data-page="home"] .btn-home:active {
  background: #8a1738;
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .carousel-shell > .carousel-btn {
    animation: none;
  }
}

/* Carousel in hero */
body[data-page="home"] .hero-carousel {
  width: 100%;
  margin: calc(1.75rem + 2cm) auto 0;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
}

body[data-page="home"] .hero-text .carousel-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.25rem;
  max-width: 100%;
  margin: 0;
}

body[data-page="home"] .hero-carousel .carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 0.65rem;
  padding: 0;
}

/* Carousel (shared) */
body[data-page="home"] .carousel-section {
  padding: 0;
}

body[data-page="home"] .carousel-section .site-wrap {
  max-width: 1140px;
}

body[data-page="home"] .carousel-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  max-width: 780px;
  margin: 0 auto;
}

body[data-page="home"] .carousel {
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: hidden;
  position: relative;
  background: #fff;
  border: 1px solid rgba(168, 28, 68, 0.1);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(168, 28, 68, 0.08);
}

body[data-page="home"] .carousel-track {
  display: flex;
  width: 100%;
  align-items: stretch;
  will-change: transform;
}

body[data-page="home"] .carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  min-height: 128px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.35rem 1.5rem;
  box-sizing: border-box;
  overflow: hidden;
  text-align: center;
}

body[data-page="home"] .carousel-slide-content {
  width: 100%;
  max-width: 100%;
}

body[data-page="home"] .carousel-slide-title {
  margin: 0 0 0.45rem;
  min-height: 1.35em;
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 4.8vw, 1.65rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-primary);
  letter-spacing: 0.015em;
}

body[data-page="home"] .carousel-slide-text {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 3.4vw, 1.22rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--color-text);
}

body[data-page="home"] .carousel-slide img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
  border-radius: 6px;
  display: block;
}

body[data-page="home"] .carousel-shell > .carousel-btn {
  position: static;
  transform: none;
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  font-size: 28px;
  line-height: 1;
  background: #fff;
  border: 1px solid rgba(168, 28, 68, 0.15);
  color: #a81c44;
  box-shadow: 0 4px 12px rgba(168, 28, 68, 0.1);
  border-radius: 50%;
  flex-shrink: 0;
  animation: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

body[data-page="home"] .carousel-shell > .carousel-btn:hover,
body[data-page="home"] .carousel-shell > .carousel-btn:focus-visible {
  animation: none;
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  body[data-page="home"] .carousel-shell > .carousel-btn:hover,
  body[data-page="home"] .carousel-shell > .carousel-btn:focus-visible {
    transform: scale(1.08);
  }

  body[data-page="home"] .carousel-shell > .carousel-btn:hover {
    background: #fff8fa;
    color: #8a1738;
    box-shadow: 0 6px 16px rgba(168, 28, 68, 0.14);
  }
}

body[data-page="home"] .carousel-section > .site-wrap > .carousel-dots,
body[data-page="home"] .carousel-section .carousel-dots,
body[data-page="home"] .hero-carousel .carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 0.65rem;
  padding: 0;
}

body[data-page="home"] .carousel-dot {
  width: 7px;
  height: 7px;
  background: #ddd;
}

body[data-page="home"] .carousel-dot.active {
  background: #a81c44;
}

body[data-page="home"] .feature-section {
  padding: 0;
  background: #fff;
}

body[data-page="home"] .feature-section:nth-child(even) {
  background: #fff;
}

body[data-page="home"] .feature-grid {
  gap: 0;
  align-items: center;
}

body[data-page="home"] .feature-text {
  text-align: center;
  padding: 100px 1.5rem 2rem;
}

body[data-page="home"] .feature-text h2 {
  font-family: var(--font-body);
  font-weight: 500;
  color: #a81c44;
  font-size: 1.75rem;
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

body[data-page="home"] .feature-text p {
  color: var(--color-muted);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
}

body[data-page="home"] .feature-image {
  overflow: visible;
  border-radius: 0;
  padding: 1rem 1.5rem 2rem;
}

body[data-page="home"] .feature-image img {
  border-radius: 32px;
  box-shadow: none;
  width: 100%;
  max-width: 100%;
}

body[data-page="home"] .feature-image:hover img {
  transform: none;
  box-shadow: none;
}

body[data-page="home"] .feature-image-mobile {
  display: none;
  padding: 0 1rem 1rem;
}

body[data-page="home"] .feature-image-mobile img {
  border-radius: 32px;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
}

/* Footer info */
body[data-page="home"] .footer-info {
  background: #ffe9e9;
  padding: 2.5rem 0 1rem;
}

body[data-page="home"] .footer-info-grid {
  gap: 0;
  text-align: center;
}

body[data-page="home"] .footer-info h2 {
  font-family: var(--font-body);
  font-weight: 500;
  color: #a81c44;
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
}

body[data-page="home"] .footer-info h3 {
  font-family: var(--font-body);
  font-weight: 500;
  margin: 0.5rem 0;
}

body[data-page="home"] .footer-info h3 a {
  color: #a81c44;
}

body[data-page="home"] .footer-info h5 {
  font-family: var(--font-body);
  font-weight: 500;
  margin: 0.5rem 0;
}

body[data-page="home"] .footer-info h5 a {
  color: var(--color-muted);
  display: inline-block;
}
body[data-page="home"] .footer-info h5 a:hover {
  color: var(--color-text);
}

body[data-page="home"] .footer-info .email {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--color-muted);
  font-size: 1rem;
  margin-top: -0.5rem;
}

body[data-page="home"] .footer-info .email a {
  color: var(--color-muted);
}

body[data-page="home"] .accordion-item {
  border: 1px solid #a81c44;
  border-radius: 18px;
  background: #ffe9e9;
  box-shadow: 0 4px 14px rgba(168, 28, 68, 0.08);
  margin: 0 auto 0.5rem;
  max-width: 100%;
  overflow: hidden;
}

body[data-page="home"] .accordion-header {
  text-align: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 500;
  padding: 0.85rem 1rem;
}

body[data-page="home"] .accordion-header::after {
  display: none;
}

body[data-page="home"] .footer-social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  justify-items: center;
  align-items: center;
  max-width: 120px;
  margin: 0.75rem auto 0;
}

body[data-page="home"] .footer-social img {
  width: 53px;
  height: 53px;
}

body[data-page="home"] .footer-logo-row {
  text-align: center;
  padding: 0.75rem 0 1.25rem;
  max-width: 320px;
  margin: 0 auto;
}

body[data-page="home"] .footer-logo-row img {
  width: auto;
  max-width: 260px;
  height: auto;
  margin-inline: auto;
  display: block;
}

/* Welcome strip */
body[data-page="home"] .footer-welcome {
  background: #a81c44;
  padding: 1.5rem 0;
  text-align: center;
}

body[data-page="home"] .footer-welcome p {
  max-width: 700px;
  margin: 0 auto;
  color: #fff;
  font-weight: 400;
  line-height: 1.6;
}

body[data-page="home"] .footer-about {
  display: none;
}

body[data-page="home"] .site-footer {
  padding: 1.25rem 1rem;
  font-size: 14pt;
  color: var(--color-muted);
  background: #fff;
}

/* Contact form on home — glass fields inherit from style.css footer rules */
body[data-page="home"] #contact-form .form-group label {
  font-size: 14px;
}

body[data-page="home"] #contact-form input,
body[data-page="home"] #contact-form textarea {
  font-size: 14px;
  padding: 9px;
}

body[data-page="home"] #contact-form .btn-primary {
  font-size: 14px;
  font-weight: 500;
  width: 100%;
}

@media (min-width: 901px) {
  body[data-page="home"] .hero-image-desktop .hero-book-actions {
    position: relative;
    justify-content: center;
    gap: 0;
    padding-left: 0;
    padding-right: 0;
  }

  body[data-page="home"] .hero-image-desktop .hero-book-actions .btn-home {
    margin-left: 0;
    margin-right: 0.85rem;
  }
}

@media (max-width: 900px) {
  /* Crisp live text instead of scaled PNG (avoids soft/blurry title on retina) */
  body[data-page="home"] .hero-banner.reveal,
  body[data-page="home"] .hero-banner.reveal.is-visible {
    opacity: 1;
    transform: none !important;
    filter: none !important;
    transition: none;
    will-change: auto;
  }

  body[data-page="home"] .site-wrap {
    width: 100%;
    max-width: 100%;
    padding-inline: max(0.85rem, env(safe-area-inset-left, 0px)) max(0.85rem, env(safe-area-inset-right, 0px));
  }

  body[data-page="home"] .hero-banner {
    padding: 0.95rem max(0.75rem, env(safe-area-inset-left, 0px));
  }

  body[data-page="home"] .hero-banner .site-wrap {
    max-width: 100%;
    width: 100%;
    padding-inline: 0;
  }

  body[data-page="home"] .hero-banner-title-img,
  body[data-page="home"] .hero-banner img.hero-banner-title-img {
    display: none !important;
  }

  body[data-page="home"] .hero-banner-title-text {
    display: block;
    margin: 0 auto;
    max-width: 22rem;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 6.2vw, 1.95rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #a81c44;
    text-align: center;
    text-wrap: balance;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
    transform: none;
    filter: none;
  }

  body[data-page="home"] .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    width: 100%;
  }

  body[data-page="home"] .hero-section {
    padding-bottom: 3.25rem;
    overflow-x: clip;
  }

  body[data-page="home"] .hero-section .site-wrap {
    padding-inline: max(0.75rem, env(safe-area-inset-left, 0px)) max(0.75rem, env(safe-area-inset-right, 0px));
  }

  body[data-page="home"] .hero-text {
    margin: 0;
    text-align: center;
    padding: 0.65rem 0 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  body[data-page="home"] .hero-intro--desktop {
    display: none;
  }

  body[data-page="home"] .hero-intro--mobile {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
    max-width: min(34rem, 100%);
    margin: 0.8cm auto 1rem;
    padding: 0;
    box-sizing: border-box;
    text-align: center;
  }

  body[data-page="home"] .hero-intro--mobile p {
    margin: 0;
    max-width: 100%;
    overflow-wrap: normal;
    word-break: keep-all;
  }

  /* Lock poetic line breaks on every mobile width */
  body[data-page="home"] .hero-intro--mobile .hero-line {
    display: block;
    white-space: nowrap;
    max-width: 100%;
    letter-spacing: -0.005em;
  }

  body[data-page="home"] .hero-intro-hook {
    font-size: clamp(1.1rem, 4.4vw, 1.28rem);
    line-height: 1.42;
  }

  body[data-page="home"] .hero-intro-invite {
    margin-top: 0.75em;
    font-size: clamp(1.1rem, 4.4vw, 1.28rem);
    line-height: 1.42;
  }

  body[data-page="home"] .hero-intro-invite .hero-line {
    white-space: normal;
  }

  body[data-page="home"] .hero-intro-invite .hero-book-title-inline {
    white-space: nowrap !important;
  }

  body[data-page="home"] .hero-intro-scene,
  body[data-page="home"] .hero-intro-moment,
  body[data-page="home"] .hero-intro-close {
    font-size: clamp(0.92rem, 3.85vw, 1.08rem);
    line-height: 1.52;
  }

  body[data-page="home"] .hero-book-title-inline {
    display: inline;
    margin: 0;
    white-space: nowrap !important;
    font-size: inherit;
    line-height: inherit;
    letter-spacing: -0.01em;
  }

  body[data-page="home"] .hero-book-mobile {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 0.15rem;
    padding-inline: 0;
  }

  body[data-page="home"] .hero-image-desktop {
    display: none;
  }

  body[data-page="home"] .hero-book-mobile .hero-book-panel {
    width: min(88vw, 360px);
    max-width: 100%;
    margin-inline: auto;
    padding: 0;
    border-radius: 0;
    gap: 0.7rem;
    box-sizing: border-box;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  body[data-page="home"] .hero-book-mobile .hero-book-panel .hero-book-link,
  body[data-page="home"] .hero-book-mobile .hero-book-panel .hero-book-img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  body[data-page="home"] .hero-book-img {
    border-radius: clamp(12px, 3.5vw, 18px);
  }

  body[data-page="home"] .btn-home-mobile {
    display: inline-flex;
    width: auto;
    max-width: min(100%, 20rem);
    margin: 0;
    font-size: clamp(0.95rem, 3.8vw, 1.05rem);
    padding: 0.62rem 1.25rem;
  }

  body[data-page="home"] .hero-book-mobile .hero-book-actions {
    gap: 0;
    justify-content: center;
    margin-bottom: 0.5rem;
    width: 100%;
  }

  body[data-page="home"] .hero-carousel {
    width: 100%;
    max-width: 100%;
    margin: calc(1.25rem + 0.5cm) auto 0;
    overflow: hidden;
  }

  body[data-page="home"] .carousel-shell {
    width: 100%;
    max-width: 100%;
    gap: 0.15rem;
  }

  body[data-page="home"] .carousel {
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
  }

  body[data-page="home"] .carousel-slide {
    min-height: 8.5rem;
    padding: 1.1rem 0.65rem;
  }

  body[data-page="home"] .carousel-slide-title {
    font-size: clamp(1.05rem, 4.8vw, 1.45rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  body[data-page="home"] .carousel-slide-text {
    font-size: clamp(0.9rem, 3.6vw, 1.1rem);
    line-height: 1.45;
  }

  body[data-page="home"] .carousel-shell > .carousel-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    font-size: 26px;
  }

  body[data-page="home"] .btn-hero-audio {
    width: 80px;
    height: 38px;
  }

  body[data-page="home"] .hero-book-mobile .btn-hero-audio {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
  }

  body[data-page="home"] .hero-book-mobile .btn-hero-audio:focus {
    outline: none;
  }

  body[data-page="home"] .hero-book-mobile .btn-hero-audio:not(.is-playing):hover {
    background: #a81c44;
    transform: none;
    box-shadow: 0 5px 18px rgba(168, 28, 68, 0.3);
  }

  body[data-page="home"] .hero-book-mobile .btn-hero-audio .staff-note,
  body[data-page="home"] .hero-book-mobile .btn-hero-audio .staff-label {
    animation: staff-stream-mobile 6.8s linear infinite;
    will-change: transform;
  }

  body[data-page="home"] .hero-book-mobile .btn-hero-audio .staff-note-2 {
    animation-delay: -0.85s;
  }

  body[data-page="home"] .hero-book-mobile .btn-hero-audio .staff-note-3 {
    animation-delay: -1.7s;
  }

  body[data-page="home"] .hero-book-mobile .btn-hero-audio .staff-label {
    display: block;
    animation-delay: -3.825s;
  }

  body[data-page="home"] .hero-book-mobile .btn-hero-audio .staff-label text {
    fill: #fff;
    stroke: rgba(90, 12, 36, 0.9);
    stroke-width: 0.55px;
    paint-order: stroke fill;
    font-family: var(--font-body, sans-serif);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.06em;
    filter: drop-shadow(0 0 1.2px rgba(0, 0, 0, 0.35));
  }

  body[data-page="home"] .hero-image-desktop .hero-book-img {
    max-width: 88%;
  }

  body[data-page="home"] .carousel-slide {
    min-height: 108px;
    padding: 4mm;
  }

  body[data-page="home"] .carousel-slide-title {
    font-size: clamp(1.15rem, 5vw, 1.45rem);
    margin-bottom: 0.35rem;
  }

  body[data-page="home"] .carousel-slide-text {
    font-size: clamp(0.98rem, 3.8vw, 1.12rem);
    line-height: 1.32;
  }

  body[data-page="home"] .feature-grid .feature-image-desktop {
    display: none !important;
  }

  body[data-page="home"] .feature-grid .feature-text {
    order: 1 !important;
    padding: 0 0 0.5rem;
    text-align: center;
  }

  body[data-page="home"] .feature-grid .feature-image-mobile {
    display: block;
    order: 2 !important;
  }

  body[data-page="home"] .carousel-shell {
    max-width: 100%;
  }

  body[data-page="home"] .carousel {
    border-width: 8px;
    border-radius: 12px;
  }

  body[data-page="home"] .carousel-shell > .carousel-btn {
    font-size: 28px;
    min-width: 22px;
  }

  body[data-page="home"] .footer-info-grid > div {
    margin-bottom: 1.5rem;
  }

  body[data-page="home"] .footer-logo-row {
    max-width: 280px;
  }

  body[data-page="home"] .footer-logo-row img {
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  body[data-page="home"] .hero-banner {
    padding: 0.8rem max(0.55rem, env(safe-area-inset-left, 0px));
  }

  body[data-page="home"] .hero-banner-title-text {
    font-size: clamp(1.28rem, 7vw, 1.7rem);
    line-height: 1.15;
    max-width: 100%;
  }

  body[data-page="home"] .hero-banner .site-wrap {
    border-radius: 0;
    padding: 0;
  }

  body[data-page="home"] .hero-book-mobile .hero-book-panel {
    width: min(90vw, 320px);
    padding: 0;
  }

  body[data-page="home"] .hero-book-mobile .hero-book-img {
    width: 100%;
    max-width: 100%;
  }

  body[data-page="home"] .hero-book-mobile .btn-home-mobile,
  body[data-page="home"] .hero-book-mobile .btn-home {
    font-size: 0.95rem;
    padding: 0.55rem 1.1rem;
  }

  body[data-page="home"] .hero-intro--mobile {
    max-width: 100%;
    margin-bottom: 0.85rem;
    gap: 0.8rem;
  }

  body[data-page="home"] .hero-intro-hook {
    font-size: clamp(1.05rem, 4.3vw, 1.2rem);
  }

  body[data-page="home"] .hero-intro-invite {
    font-size: clamp(1.05rem, 4.3vw, 1.2rem);
  }

  body[data-page="home"] .hero-intro-scene,
  body[data-page="home"] .hero-intro-moment,
  body[data-page="home"] .hero-intro-close {
    font-size: clamp(0.86rem, 3.6vw, 1.02rem);
    line-height: 1.5;
  }

  body[data-page="home"] .hero-book-title-inline {
    font-size: inherit;
    letter-spacing: -0.015em;
  }

  body[data-page="home"] .carousel-slide {
    min-height: 8rem;
    padding: 1rem 0.45rem;
  }

  body[data-page="home"] .carousel-shell > .carousel-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 24px;
  }

  body[data-page="home"] .feature-text h2 {
    font-size: 1.15rem;
  }
}

@media (max-width: 360px) {
  body[data-page="home"] .hero-intro-hook {
    font-size: clamp(1rem, 4.2vw, 1.12rem);
  }

  body[data-page="home"] .hero-intro-invite {
    font-size: clamp(1rem, 4.2vw, 1.12rem);
  }

  body[data-page="home"] .hero-intro-scene,
  body[data-page="home"] .hero-intro-moment,
  body[data-page="home"] .hero-intro-close {
    font-size: clamp(0.8rem, 3.4vw, 0.92rem);
    line-height: 1.48;
    letter-spacing: -0.01em;
  }

  body[data-page="home"] .hero-book-title-inline {
    font-size: inherit;
    letter-spacing: -0.02em;
  }

  body[data-page="home"] .hero-banner-title-text {
    font-size: clamp(1.15rem, 6.8vw, 1.45rem);
  }

  body[data-page="home"] .hero-book-mobile .hero-book-panel {
    width: min(92vw, 300px);
  }
}
