/* The refresh page owns the left studio rail. The legacy layout keeps its
   section dots for all other pages, but never renders them on this page. */
#main-content[data-homepage-refresh] {
  --rail-width: 0px;
  /* Keep the header and every homepage section on one shell, with 10px
     more breathing room on both sides than the previous layout. */
  --shell: min(1180px, calc(100vw - 84px));
}

/* Mobile header v27: render the hamburger as one atomic icon. */
@media (max-width: 767px) {
    body.homepage-refresh-page .header_right_block_menu_button_58f7bdc3 {
        position: relative !important;
        display: block !important;
        width: 34px !important;
        height: 20px !important;
        overflow: visible !important;
    }

    body.homepage-refresh-page .header_right_block_menu_button_58f7bdc3 > div {
        display: none !important;
    }

    body.homepage-refresh-page .header_right_block_menu_button_58f7bdc3::before {
        content: "" !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        display: block !important;
        width: 34px !important;
        height: 2px !important;
        border-radius: 2px !important;
        background: #ffffff !important;
        box-shadow: 0 9px 0 #ffffff, 0 18px 0 #ffffff !important;
    }

    body.homepage-refresh-page .header_right_block_menu_button_58f7bdc3::after {
        content: none !important;
        display: none !important;
    }
}

#main-content[data-homepage-refresh] .studio-rail {
  z-index: 40;
  width: 86px;
}

#main-content[data-homepage-refresh] .studio-rail-track nav a {
  text-decoration: none;
}

@media (max-width: 700px) {
  #main-content[data-homepage-refresh] {
    --shell: calc(100% - 48px);
  }

  /* On mobile do not show the rail at all. */
  #main-content[data-homepage-refresh] > section {
    padding-left: 0 !important;
  }

  #main-content[data-homepage-refresh] .studio-rail,
  #main-content[data-homepage-refresh] .studio-rail-track,
  #main-content[data-homepage-refresh] .studio-rail-console,
  #main-content[data-homepage-refresh] .studio-rail-counter {
    display: none !important;
  }

  /* Stack the portfolio as compact white cards against a neutral mobile
     canvas, with wrapped category pills and a peek of the next book card. */
  #main-content[data-homepage-refresh] #portfolio.portfolio_section___ftkn {
    padding: 42px 0 58px;
    background: #b8b8b8;
  }

  #main-content[data-homepage-refresh] #portfolio .portfolio_inner__avJXX {
    width: auto;
    max-width: none;
    margin: 0 16px;
    padding: 24px 16px 18px;
    background: #fff;
  }

  #main-content[data-homepage-refresh] #portfolio .portfolio_section___ftkn h2,
  #main-content[data-homepage-refresh] #portfolio h2 {
    margin-bottom: 18px;
    font-size: 26px;
    line-height: 1.12;
    text-align: left;
  }

  #main-content[data-homepage-refresh] #portfolio .portfolio_tabs__Dj_8c {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 20px;
    overflow: visible;
    padding: 0;
  }

  #main-content[data-homepage-refresh] #portfolio .portfolio_tabs__Dj_8c button {
    min-height: 26px;
    padding: 4px 8px;
    gap: 4px;
    font-size: 10px;
    line-height: 1.1;
  }

  #main-content[data-homepage-refresh] #portfolio .portfolio_tabs__Dj_8c button svg {
    width: 12px;
    height: 12px;
  }

  #main-content[data-homepage-refresh] #portfolio .portfolio_landscapeGrid__pk8Pz,
  #main-content[data-homepage-refresh] #portfolio .portfolio_posterGrid__sE5tO {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #main-content[data-homepage-refresh] #portfolio .portfolio_videoCard__94xS3 {
    border-radius: 16px;
  }

  #main-content[data-homepage-refresh] #portfolio .portfolio_landscapeGrid__pk8Pz .portfolio_media__tUKxq {
    aspect-ratio: .86 / 1;
  }

  #main-content[data-homepage-refresh] #portfolio .portfolio_mediaPlay__1Rruo {
    width: 58px;
    height: 58px;
  }

  #main-content[data-homepage-refresh] #portfolio .portfolio_cardBody__OrHdf {
    min-height: 0;
    padding: 14px 12px 18px;
  }

  #main-content[data-homepage-refresh] #portfolio .portfolio_cardBody__OrHdf h3 {
    font-size: 17px;
  }

  #main-content[data-homepage-refresh] #portfolio .portfolio_cardBody__OrHdf p {
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.35;
  }

  #main-content[data-homepage-refresh] #portfolio .portfolio_audioGrid__hUSpg {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #main-content[data-homepage-refresh] #portfolio .portfolio_audioCard__VP5pw {
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 128px;
    column-gap: 12px;
    padding: 14px;
    border-radius: 16px;
  }

  #main-content[data-homepage-refresh] #portfolio .portfolio_audioCard__VP5pw button.portfolio_audioPlay__Khmm2 {
    width: 44px;
    height: 44px;
  }

  #main-content[data-homepage-refresh] #portfolio .portfolio_audioCopy__C1xQd h3 {
    font-size: 16px;
  }

  #main-content[data-homepage-refresh] #portfolio .portfolio_audioCopy__C1xQd p {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.35;
  }

  #main-content[data-homepage-refresh] #portfolio .portfolio_editorialGrid___dZcC {
    display: flex;
    gap: 12px;
    margin-right: -16px;
    overflow-x: auto;
    padding-right: 16px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  #main-content[data-homepage-refresh] #portfolio .portfolio_editorialGrid___dZcC::-webkit-scrollbar {
    display: none;
  }

  #main-content[data-homepage-refresh] #portfolio .portfolio_editorialCard__wpYTu {
    flex: 0 0 82%;
    scroll-snap-align: start;
    border-radius: 16px;
  }

  #main-content[data-homepage-refresh] #portfolio .portfolio_editorialBody__x4u78 {
    min-height: 0;
    padding: 14px 12px 16px;
  }

  #main-content[data-homepage-refresh] #portfolio .portfolio_editorialBody__x4u78 h3 {
    font-size: 17px;
  }

  #main-content[data-homepage-refresh] #portfolio .portfolio_editorialBody__x4u78 p,
  #main-content[data-homepage-refresh] #portfolio .portfolio_voiceLine__mLeKS {
    font-size: 12px;
  }

  #main-content[data-homepage-refresh] #portfolio .portfolio_controls__2QRhP {
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    padding-right: 0;
  }

  #main-content[data-homepage-refresh] #portfolio .portfolio_controls__2QRhP button {
    width: 28px;
    height: 28px;
  }

  #main-content[data-homepage-refresh] .hero-product {
    min-height: auto;
  }

  #main-content[data-homepage-refresh] .hero-product-grid,
  #main-content[data-homepage-refresh] .hero-product-copy {
    min-width: 0;
  }
}

@media (min-width: 701px) and (max-width: 1100px) {
  #main-content[data-homepage-refresh] {
    --shell: min(calc(100% - 64px), 960px);
  }
}

@media (min-width: 701px) and (max-width: 820px) {
  #main-content[data-homepage-refresh] {
    --shell: calc(100% - 54px);
  }
}

/* Keep the section titles lighter than the opening hero claim. Card headings
   and the hero heading keep their existing weights. */
#main-content[data-homepage-refresh] > section:not(#start) h2 {
  font-weight: 600;
}

/* Balance the service cards: their titles should not overpower the copy. */
#main-content[data-homepage-refresh] .services-stage .service-copy h3 {
  font-size: clamp(2.5rem, 3.8vw, 4.25rem);
}

#main-content[data-homepage-refresh] .services-stage .service-copy p {
  font-size: clamp(0.98rem, 1.1vw, 1.15rem);
  line-height: 1.55;
}

#main-content[data-homepage-refresh] .services-stage .service-item h3 {
  font-size: clamp(1.75rem, 2.5vw, 2.9rem);
  line-height: 0.95;
}

#main-content[data-homepage-refresh] .services-stage .service-item p {
  font-size: clamp(0.92rem, 1vw, 1.05rem);
  line-height: 1.45;
}

@media (max-width: 700px) {
  #main-content[data-homepage-refresh] .services-stage .service-copy h3 {
    font-size: clamp(2.1rem, 9vw, 3.2rem);
  }

  #main-content[data-homepage-refresh] .services-stage .service-copy p {
    font-size: 0.95rem;
  }

  #main-content[data-homepage-refresh] .services-stage .service-item h3 {
    font-size: clamp(1.65rem, 7.2vw, 2.3rem);
  }

  #main-content[data-homepage-refresh] .services-stage .service-item p {
    font-size: 0.92rem;
  }
}

/* Keep the portfolio content aligned with the same desktop shell as the
   surrounding homepage sections. */
@media (min-width: 701px) {
  #main-content[data-homepage-refresh] #portfolio .portfolio_inner__avJXX {
    width: var(--shell);
    max-width: var(--shell);
    margin-inline: auto;
  }
}

/* Replace the abrupt portfolio panel swap with a short, restrained entrance. */
@keyframes portfolio-panel-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#main-content[data-homepage-refresh] #portfolio .portfolio_panel__TuOSH.is-entering {
  animation: portfolio-panel-enter 460ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  #main-content[data-homepage-refresh] #portfolio .portfolio_panel__TuOSH.is-entering {
    animation: none;
  }
}

/* Homepage alignment with the approved speaker pages. */
body.homepage-refresh-page {
  color: #3b4173;
  background: #f6f6f7;
  font-family: "Roboto", sans-serif;
}

#main-content[data-homepage-refresh] {
  --brand-accent: #c1492e;
  --brand-accent-rgb: 193, 73, 46;
  --brand-accent-hover: #a93d28;
  --header-rust: #c1492e;
  --accent: #c1492e;
  --accent-on-light: #c1492e;
  --accent-on-dark: #c1492e;
  --accent-rgb: 193, 73, 46;
  --page: #f6f6f7;
  --paper: #fff;
  --ink: #3b4173;
  --muted: #3b4173;
  --body: "Roboto", sans-serif;
  --display: "Roboto", sans-serif;
  --shell: min(1480px, calc(100vw - 64px));
  color: #3b4173;
  background: #f6f6f7;
  font-family: "Roboto", sans-serif;
}

#main-content[data-homepage-refresh] :is(h1, h2, h3, h4, p, li, a, button, input, textarea) {
  font-family: "Roboto", sans-serif;
}

#main-content[data-homepage-refresh] :is(h1, h2, h3, h4),
#main-content[data-homepage-refresh] .hero-product.hero-product-cinema .hero-product-title,
#main-content[data-homepage-refresh] .hero-product.hero-product-cinema .hero-title-main,
#main-content[data-homepage-refresh] .hero-product.hero-product-cinema .hero-title-accent {
  color: #3b4173;
}

/* Use the same canvas and vertical rhythm as the speaker page. */
#main-content[data-homepage-refresh] > section:not(#start),
#main-content[data-homepage-refresh] #portfolio {
  margin: 0 !important;
  padding-top: 54px !important;
  padding-bottom: 54px !important;
  background-color: #f6f6f7 !important;
}

#main-content[data-homepage-refresh] .section-heading {
  margin-bottom: 30px;
}

/* Remove the oversized opening gap while preserving the hero composition. */
@media (min-width: 901px) {
  #main-content[data-homepage-refresh] .hero-product.hero-product-cinema {
    min-height: 760px !important;
    margin-top: -92px;
    padding: 166px 0 54px !important;
    background: #f6f6f7 !important;
  }

  #main-content[data-homepage-refresh] .hero-product.hero-product-cinema .hero-product-grid {
    transform: none !important;
  }

  #main-content[data-homepage-refresh] .hero-product.hero-product-cinema .hero-sound-art {
    top: 110px;
    bottom: auto;
    height: 600px;
    transform: none;
  }
}

#main-content[data-homepage-refresh] .hero-product.hero-product-cinema .hero-product-title {
  max-width: 13ch;
  font-family: "Roboto", sans-serif;
  font-size: clamp(52px, 5.2vw, 78px);
  font-weight: 600;
  line-height: .96;
}

#main-content[data-homepage-refresh] .hero-product.hero-product-cinema .top-kicker,
#main-content[data-homepage-refresh] .hero-product.hero-product-cinema .hero-product-lead,
#main-content[data-homepage-refresh] .hero-production-steps span {
  color: #3b4173;
}

/* Compact service cards: same content, roughly half the former visual weight. */
#main-content[data-homepage-refresh] .services-stage .service-feature {
  min-height: 255px;
  border-radius: 20px;
}

#main-content[data-homepage-refresh] .services-stage .service-copy {
  min-height: 0;
  padding: 26px 30px;
}

#main-content[data-homepage-refresh] .services-stage .service-copy h3 {
  margin-top: 12px;
  font-size: clamp(34px, 3.3vw, 50px);
  line-height: 1;
}

#main-content[data-homepage-refresh] .services-stage .service-copy p {
  margin: 12px 0 16px;
  font-size: 15px;
  line-height: 1.45;
}

#main-content[data-homepage-refresh] .services-stage .service-columns {
  gap: 12px;
  margin-top: 12px;
}

#main-content[data-homepage-refresh] .services-stage .service-item,
#main-content[data-homepage-refresh] .services-stage .service-priority-high,
#main-content[data-homepage-refresh] .services-stage .service-priority-medium,
#main-content[data-homepage-refresh] .services-stage .service-priority-compact {
  min-height: 180px;
  gap: 7px 16px;
  padding: 18px 20px;
  border-radius: 18px;
}

#main-content[data-homepage-refresh] .services-stage .service-item h3,
#main-content[data-homepage-refresh] .services-stage .service-priority-high h3,
#main-content[data-homepage-refresh] .services-stage .service-priority-medium h3,
#main-content[data-homepage-refresh] .services-stage .service-priority-compact h3 {
  margin-top: 5px;
  font-size: clamp(25px, 2.2vw, 34px);
  line-height: 1;
}

#main-content[data-homepage-refresh] .services-stage .service-item p {
  font-size: 14px;
  line-height: 1.4;
}

#main-content[data-homepage-refresh] .services-stage .service-item:before {
  width: 140px;
  height: 140px;
}

/* Shared button treatment already used across the redesigned pages. */
#main-content[data-homepage-refresh] :is(.studio-cta, .figma-voices-cta, .figma-voice-contact, .ai-services_cta__3igjU),
.homepage-refresh-page :is(.button, button.button) {
  color: #fff !important;
  border: 1px solid #c1492e !important;
  border-radius: 15px !important;
  background: #c1492e !important;
  box-shadow: none !important;
  font-family: "Roboto", sans-serif !important;
}

#main-content[data-homepage-refresh] :is(.studio-cta, .figma-voices-cta, .figma-voice-contact, .ai-services_cta__3igjU):is(:hover, :focus-visible),
.homepage-refresh-page :is(.button, button.button):is(:hover, :focus-visible) {
  color: #fff !important;
  border-color: #a93d28 !important;
  background: #a93d28 !important;
}

#main-content[data-homepage-refresh] :is(.voice-play, .figma-voices-deck-actions button, .portfolio_controls__2QRhP button, .portfolio_audioPlay__Khmm2, .portfolio_smallPlay__P5peR) {
  border-color: #c1492e;
  color: #fff;
  background: #c1492e;
}

#main-content[data-homepage-refresh] :is(.kicker, .service-number, .service-type, .service-price, .service-action, .ai-services_kicker__2nISF) {
  color: #c1492e;
}

/* Legacy homepage sections below the refreshed area follow the same shell and spacing. */
.homepage-refresh-page :is(
  .s-about__container,
  .s-calc-cost__container,
  .s-advantages__container,
  .s-stages__container,
  .s-guarantees__container,
  .s-reviews__container,
  .s-clients__container
) {
  width: min(1480px, calc(100vw - 64px)) !important;
  max-width: none !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

.homepage-refresh-page :is(.s-about, .s-calc-cost, .s-advantages, .s-stages, .s-guarantees, .s-reviews, .s-clients) {
  margin: 0 !important;
  padding-top: 54px !important;
  padding-bottom: 54px !important;
}

.homepage-refresh-page :is(.headers__title, .headers__subtitle, .s-about__text, .advantages-main__caption, .advantages-main__text) {
  color: #3b4173 !important;
  font-family: "Roboto", sans-serif !important;
}

@media (max-width: 900px) {
  #main-content[data-homepage-refresh] {
    --shell: calc(100% - 48px);
  }

  .homepage-refresh-page :is(
    .s-about__container,
    .s-calc-cost__container,
    .s-advantages__container,
    .s-stages__container,
    .s-guarantees__container,
    .s-reviews__container,
    .s-clients__container
  ) {
    width: calc(100% - 48px) !important;
  }

  #main-content[data-homepage-refresh] > section:not(#start),
  #main-content[data-homepage-refresh] #portfolio,
  .homepage-refresh-page :is(.s-about, .s-calc-cost, .s-advantages, .s-stages, .s-guarantees, .s-reviews, .s-clients) {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }

  #main-content[data-homepage-refresh] .services-stage .service-feature,
  #main-content[data-homepage-refresh] .services-stage .service-item,
  #main-content[data-homepage-refresh] .services-stage .service-priority-high,
  #main-content[data-homepage-refresh] .services-stage .service-priority-medium,
  #main-content[data-homepage-refresh] .services-stage .service-priority-compact {
    min-height: 230px;
  }
}
/* Final homepage alignment fixes for the preproduction review. */
#main-content[data-homepage-refresh] .studio-rail,
#main-content[data-homepage-refresh] .studio-rail-track,
#main-content[data-homepage-refresh] .studio-rail-console,
#main-content[data-homepage-refresh] .studio-rail-counter {
    display: none !important;
}

body,
#main-content[data-homepage-refresh],
#main-content[data-homepage-refresh] .hero-product,
#main-content[data-homepage-refresh] .talent-stage,
#main-content[data-homepage-refresh] .services-stage,
#main-content[data-homepage-refresh] .portfolio_section {
    background-color: #f6f6f7 !important;
}

#main-content[data-homepage-refresh] .hero-product.hero-product-cinema::before,
#main-content[data-homepage-refresh] .hero-product.hero-product-cinema::after {
    background: none !important;
}
/* Review pass: hero actions. */
body.homepage-refresh-page .hero-actions .studio-cta {
    font-family: Roboto, sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
}

body.homepage-refresh-page .hero-actions .studio-cta--secondary span {
    display: block;
    text-transform: lowercase;
}

body.homepage-refresh-page .hero-actions .studio-cta--secondary span::first-letter {
    text-transform: uppercase;
}

body.homepage-refresh-page .hero-actions .studio-cta-icon {
    display: none !important;
}

body.homepage-refresh-page .hero-actions .studio-cta--order,
body.homepage-refresh-page .hero-actions .studio-cta--secondary {
    grid-template-columns: 1fr !important;
}

/* Review pass: speaker carousel footer. */
body.homepage-refresh-page .figma-voices-panel {
    position: relative;
}

body.homepage-refresh-page .figma-voices-footer {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 52px;
}

body.homepage-refresh-page .figma-voices-deck-controls {
    position: absolute !important;
    right: 0 !important;
    bottom: 0 !important;
    display: flex !important;
    width: auto !important;
    gap: 12px !important;
}

body.homepage-refresh-page .figma-voices-deck-status {
    display: none !important;
}

body.homepage-refresh-page .figma-voice-card .figma-voice-body,
body.homepage-refresh-page .figma-voice-card.is-active .figma-voice-body {
    background: #ffffff !important;
}

/* Review pass: reduce the services cards and the directory footprint. */
body.homepage-refresh-page .service-feature {
    min-height: 250px !important;
    grid-template-columns: 48% 52% !important;
}

body.homepage-refresh-page .service-feature .service-copy {
    padding: 22px 28px !important;
}

body.homepage-refresh-page .service-feature h3 {
    font-size: clamp(36px, 3.4vw, 48px) !important;
    line-height: .95 !important;
}

body.homepage-refresh-page .service-feature p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    line-height: 1.35 !important;
}

body.homepage-refresh-page .service-columns {
    gap: 10px !important;
}

body.homepage-refresh-page .service-item {
    min-height: 150px !important;
    padding: 14px 16px !important;
    gap: 4px 12px !important;
}

body.homepage-refresh-page .service-item h3 {
    font-size: clamp(25px, 2.2vw, 34px) !important;
    line-height: .98 !important;
}

body.homepage-refresh-page .service-item p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-height: 1.3 !important;
}

body.homepage-refresh-page .service-index {
    grid-template-columns: 280px minmax(0, 1fr) !important;
    gap: 40px !important;
    padding-top: 36px !important;
    align-items: start !important;
}

body.homepage-refresh-page .service-index-heading {
    align-self: start !important;
    height: auto !important;
}

body.homepage-refresh-page .service-index-heading h3 {
    font-size: clamp(38px, 4vw, 54px) !important;
    line-height: 1.02 !important;
}

body.homepage-refresh-page .service-index-groups {
    align-items: start !important;
}

body.homepage-refresh-page .service-index-groups > div {
    display: flex !important;
    flex-direction: column !important;
    gap: 9px !important;
    min-height: 0 !important;
    padding: 14px 22px 18px 0 !important;
}

body.homepage-refresh-page .service-index-groups h4,
body.homepage-refresh-page .service-index-groups a {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* All standard homepage copy uses the established blue instead of black/gray. */
body.homepage-refresh-page .s-about,
body.homepage-refresh-page .s-about *,
body.homepage-refresh-page .s-advantages,
body.homepage-refresh-page .s-advantages *,
body.homepage-refresh-page .s-stages,
body.homepage-refresh-page .s-stages *,
body.homepage-refresh-page .s-guarantees,
body.homepage-refresh-page .s-guarantees *,
body.homepage-refresh-page [class*="portfolio_"] p {
    color: #3b4173 !important;
}

body.homepage-refresh-page .mark,
body.homepage-refresh-page .s-advantages a,
body.homepage-refresh-page .s-about a,
body.homepage-refresh-page .headers__pretitle,
body.homepage-refresh-page .advantages-main__item::marker {
    color: #c1492e !important;
}

body.homepage-refresh-page .s-stages [class*="number"],
body.homepage-refresh-page .s-guarantees [class*="number"] {
    color: #c1492e !important;
    border-color: #c1492e !important;
}

/* Cost banner: header color background and white copy. */
body.homepage-refresh-page .s-calc-cost {
    background: #c1492e !important;
}

body.homepage-refresh-page .s-calc-cost,
body.homepage-refresh-page .s-calc-cost *,
body.homepage-refresh-page .s-calc-cost .headers__title,
body.homepage-refresh-page .s-calc-cost .headers__subtitle,
body.homepage-refresh-page .s-calc-cost .headers__pretitle {
    color: #ffffff !important;
}

body.homepage-refresh-page .s-calc-cost .button {
    background: #3b4173 !important;
    color: #ffffff !important;
}

@media (max-width: 767px) {
    body.homepage-refresh-page .figma-voices-footer {
        justify-content: flex-start !important;
        padding-right: 116px;
    }

    body.homepage-refresh-page .service-index {
        grid-template-columns: 1fr !important;
        gap: 22px !important;
        padding-top: 28px !important;
    }

    body.homepage-refresh-page .service-index-groups {
        grid-template-columns: 1fr !important;
    }
}

/* Homepage polish v23: consistent service typography and interaction. */
body.homepage-refresh-page #services :is(.service-feature, .service-item) h3 {
    font-size: clamp(20px, 1.7vw, 26px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.025em !important;
}

body.homepage-refresh-page #services :is(.service-feature, .service-item),
body.homepage-refresh-page #services :is(.service-feature, .service-item):hover,
body.homepage-refresh-page #services :is(.service-feature, .service-item) :is(a, h3, p, span),
body.homepage-refresh-page #services :is(.service-feature, .service-item):hover :is(a, h3, p, span) {
    text-decoration: none !important;
}

/* Match the legacy questions banner to the header instead of the bright red overlay. */
body.homepage-refresh-page .s-questions {
    position: relative;
    isolation: isolate;
    background-color: #b8432d !important;
    background-blend-mode: multiply !important;
}

body.homepage-refresh-page .s-questions::after {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    background: rgba(64, 24, 18, 0.18);
}

body.homepage-refresh-page .s-questions > * {
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    /* The first production step used to touch the decorative wave. */
    body.homepage-refresh-page .hero-production-steps li:first-child :is(strong, span) {
        position: relative;
        top: 4px;
    }
}

@media (max-width: 767px) {
    /* Keep one compact hamburger and suppress decorations inherited from the old header. */
    body.homepage-refresh-page .header_right_block_menu_58f7bdc3::before,
    body.homepage-refresh-page .header_right_block_menu_58f7bdc3::after {
        content: none !important;
        display: none !important;
    }

    body.homepage-refresh-page .header_right_block_menu_button_58f7bdc3 {
        width: 34px !important;
        min-width: 34px !important;
        max-width: 34px !important;
        background-image: none !important;
        box-shadow: none !important;
    }

    body.homepage-refresh-page .header_right_block_menu_button_58f7bdc3 > * {
        width: 34px !important;
        max-width: 34px !important;
        box-shadow: none !important;
    }

    /* The feature image no longer reserves a second, empty mobile row. */
    body.homepage-refresh-page #services .service-feature {
        display: block !important;
    }

    body.homepage-refresh-page #services .service-feature .service-visual {
        display: none !important;
    }

    body.homepage-refresh-page #services .service-feature .service-copy {
        padding: 20px 20px 22px !important;
    }

    body.homepage-refresh-page #services :is(.service-feature, .service-item) h3 {
        font-size: 1.28rem !important;
        line-height: 1.08 !important;
    }

    /* With display:contents the intro items participate in the panel flex layout;
       explicit insets keep every line safely inside the rounded frame. */
    body.homepage-refresh-page [class*="ai-services_kicker"],
    body.homepage-refresh-page [class*="ai-services_intro"] > h2,
    body.homepage-refresh-page [class*="ai-services_description"] {
        box-sizing: border-box !important;
        width: calc(100% - 40px) !important;
        max-width: none !important;
        margin-left: 20px !important;
        margin-right: 20px !important;
    }

    body.homepage-refresh-page [class*="ai-services_kicker"] {
        margin-top: 28px !important;
        margin-bottom: 22px !important;
    }

    body.homepage-refresh-page [class*="ai-services_description"] {
        margin-top: 18px !important;
    }

    body.homepage-refresh-page [class*="ai-services_cta"] {
        box-sizing: border-box !important;
        width: calc(100% - 40px) !important;
        max-width: none !important;
        margin: 26px 20px 0 !important;
    }

    body.homepage-refresh-page [class*="ai-services_directory"] {
        box-sizing: border-box !important;
        width: 100% !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    body.homepage-refresh-page .ai-services_fish__OwwrM {
        box-sizing: border-box !important;
        width: calc(100% - 40px) !important;
        max-width: none !important;
        grid-template-columns: 52px minmax(0, 1fr) !important;
        gap: 14px !important;
        margin: 18px 20px 22px !important;
        padding-top: 20px !important;
    }

    body.homepage-refresh-page .ai-services_fish__OwwrM > span:last-child {
        min-width: 0 !important;
        grid-column: 2 !important;
        grid-row: 1 !important;
    }

    body.homepage-refresh-page [class*="ai-services_fishWave"] {
        width: 52px !important;
        grid-column: 1 !important;
        grid-row: 1 !important;
    }
}

/* Production handoff: use the same 1268px frame as the current production header. */
body.homepage-refresh-page .header_container_58f7bdc3 {
    box-sizing: border-box !important;
    width: calc(100% - 24px) !important;
    max-width: 1268px !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

@media (min-width: 901px) {
    #main-content[data-homepage-refresh] {
        --shell: min(1268px, calc(100% - 24px));
    }

    #main-content[data-homepage-refresh] .shell {
        width: min(1268px, calc(100% - 24px)) !important;
    }

    .homepage-refresh-page :is(
        .s-about__container,
        .s-calc-cost__container,
        .s-advantages__container,
        .s-stages__container,
        .s-guarantees__container,
        .s-reviews__container,
        .s-clients__container
    ) {
        width: min(1268px, calc(100% - 24px)) !important;
    }
}

/* Labels stay in the top-right corner without shifting the card copy. */
body.homepage-refresh-page #services .service-item .service-type {
    position: absolute !important;
    top: 14px !important;
    right: 16px !important;
    z-index: 2;
}

/* Services: make the featured voice card one large link and remove card counters. */
body.homepage-refresh-page #services .service-feature {
    position: relative !important;
    cursor: pointer;
}

body.homepage-refresh-page #services .service-feature .service-copy {
    position: static !important;
    z-index: auto !important;
}

body.homepage-refresh-page #services .service-feature .service-visual {
    pointer-events: none !important;
}

body.homepage-refresh-page #services .service-feature .service-copy > a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    border-radius: inherit;
}

body.homepage-refresh-page #services .service-feature .service-copy > a {
    position: static !important;
}

body.homepage-refresh-page #services .service-number {
    display: none !important;
}

body.homepage-refresh-page #services .service-item-books .service-type {
    display: none !important;
}

body.homepage-refresh-page #services :is(.service-type, .service-price, .service-action) {
    font-style: normal !important;
}

body.homepage-refresh-page #services .service-item h3 {
    align-self: start !important;
}

body.homepage-refresh-page .hero-production-steps strong {
    font-weight: 700 !important;
}
/* Final color normalization for every standard text block on the homepage. */
body.homepage-refresh-page #start :where(h1, h2, h3, h4, p, li, strong, small, label),
body.homepage-refresh-page #voices :where(h1, h2, h3, h4, p, li, strong, small, label),
body.homepage-refresh-page #services :where(h1, h2, h3, h4, p, li, strong, small, label),
body.homepage-refresh-page #portfolio :where(h1, h2, h3, h4, p, li, strong, small, label),
body.homepage-refresh-page .s-about :where(h1, h2, h3, h4, p, li, strong, small, label, div),
body.homepage-refresh-page .s-advantages :where(h1, h2, h3, h4, p, li, strong, small, label, div),
body.homepage-refresh-page .s-stages :where(h1, h2, h3, h4, p, li, strong, small, label, div),
body.homepage-refresh-page .s-guarantees :where(h1, h2, h3, h4, p, li, strong, small, label, div),
body.homepage-refresh-page .s-reviews :where(h1, h2, h3, h4, p, li, strong, small, label, div),
body.homepage-refresh-page .s-clients :where(h1, h2, h3, h4, p, li, strong, small, label, div) {
    color: #3b4173 !important;
}

body.homepage-refresh-page :where(.top-kicker, .kicker, .service-number, .service-type, .service-price, .service-action, .mark, .headers__pretitle),
body.homepage-refresh-page #services a,
body.homepage-refresh-page .s-about a,
body.homepage-refresh-page .s-advantages a {
    color: #c1492e !important;
    border-color: #c1492e !important;
}

body.homepage-refresh-page :where(.studio-cta, .figma-voices-cta, .figma-voice-contact, .button),
body.homepage-refresh-page :where(.studio-cta, .figma-voices-cta, .figma-voice-contact, .button) *,
body.homepage-refresh-page .s-calc-cost,
body.homepage-refresh-page .s-calc-cost * {
    color: #ffffff !important;
}

body.homepage-refresh-page :where(.studio-cta, .figma-voices-cta, .figma-voice-contact, .button),
body.homepage-refresh-page .voice-play,
body.homepage-refresh-page .figma-voices-deck-actions button,
body.homepage-refresh-page [class*="portfolio_controls"] button,
body.homepage-refresh-page [class*="portfolio_audioPlay"],
body.homepage-refresh-page [class*="portfolio_smallPlay"],
body.homepage-refresh-page [class*="portfolio_mediaPlay"] {
    background-color: #c1492e !important;
    border-color: #c1492e !important;
}
/* Fixed carousel controls: tab content changes must never move the arrows. */
body.homepage-refresh-page #portfolio [class*="portfolio_inner"] {
    position: relative !important;
    min-height: 760px !important;
    padding-bottom: 92px !important;
}

body.homepage-refresh-page #portfolio [class*="portfolio_controls"] {
    position: absolute !important;
    right: 0 !important;
    bottom: 24px !important;
    margin: 0 !important;
}

/* Use the readable body-copy size everywhere previously rendered too small. */
body.homepage-refresh-page .content p,
body.homepage-refresh-page .content small,
body.homepage-refresh-page .hero-production-steps span,
body.homepage-refresh-page .hero-production-steps strong,
body.homepage-refresh-page .figma-voice-role,
body.homepage-refresh-page .figma-voice-description,
body.homepage-refresh-page .figma-voice-price,
body.homepage-refresh-page [class*="ai-services_"] small,
body.homepage-refresh-page [class*="portfolio_"] p {
    font-size: 16px !important;
    line-height: 1.45 !important;
}

body.homepage-refresh-page .figma-voice-contact span[aria-hidden="true"] {
    display: none !important;
}

body.homepage-refresh-page .s-questions .headers__subtitle,
body.homepage-refresh-page .s-questions .headers__title,
body.homepage-refresh-page .s-questions .headers__pretitle,
body.homepage-refresh-page .s-questions a,
body.homepage-refresh-page .s-questions p {
    color: #ffffff !important;
}

body.homepage-refresh-page .s-questions .button {
    color: #ffffff !important;
    background-color: #c1492e !important;
    border-color: #c1492e !important;
}

@media (max-width: 767px) {
    body.homepage-refresh-page #portfolio [class*="portfolio_inner"] {
        min-height: 0 !important;
        padding-bottom: 82px !important;
    }
}
body.homepage-refresh-page #portfolio {
    overflow-anchor: none !important;
}

body.homepage-refresh-page .service-index-groups > div {
    gap: 4px !important;
    padding: 10px 18px 12px 0 !important;
}

body.homepage-refresh-page .service-index-groups a {
    padding-top: 3px !important;
    padding-bottom: 3px !important;
}

body.homepage-refresh-page .s-about,
body.homepage-refresh-page .s-advantages,
body.homepage-refresh-page .s-stages,
body.homepage-refresh-page .s-guarantees,
body.homepage-refresh-page .s-reviews,
body.homepage-refresh-page .s-clients {
    background-color: #f6f6f7 !important;
}

body.homepage-refresh-page .hero-production-steps i,
body.homepage-refresh-page #portfolio [data-portfolio-tab],
body.homepage-refresh-page .s-reviews__rating-link,
body.homepage-refresh-page .link-more__icon {
    color: #c1492e !important;
    border-color: #c1492e !important;
}

body.homepage-refresh-page #portfolio [data-portfolio-tab][aria-selected="true"] {
    color: #ffffff !important;
    background-color: #c1492e !important;
}

body.homepage-refresh-page #portfolio [data-portfolio-tab][aria-selected="true"] * {
    color: #ffffff !important;
}

body.homepage-refresh-page .s-questions {
    background-color: #c1492e !important;
}
body.homepage-refresh-page .hero-product.hero-product-cinema {
    min-height: 680px !important;
    padding-top: 120px !important;
}

body.homepage-refresh-page .hero-sound-art {
    z-index: 2 !important;
}

body.homepage-refresh-page .hero-sound-art img {
    -webkit-mask: none !important;
    mask: none !important;
    z-index: 2 !important;
}

body.homepage-refresh-page .hero-product-copy {
    position: relative;
    z-index: 3 !important;
}
body.homepage-refresh-page .figma-voice-meta > span {
    color: #3b4173 !important;
    font-size: 16px !important;
}
html:has(body.homepage-refresh-page),
body.homepage-refresh-page {
    overflow-anchor: none !important;
}
/* Services review: clean cards and restore the directory hierarchy. */
body.homepage-refresh-page #services .service-feature,
body.homepage-refresh-page #services .service-item {
    border: 0 !important;
    outline: 0 !important;
}

body.homepage-refresh-page #services .service-index-groups {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(2, auto) !important;
    align-items: stretch !important;
}

body.homepage-refresh-page #services .service-index-groups > div {
    box-sizing: border-box !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 230px !important;
    padding: 18px 24px !important;
    border: 0 !important;
    border-top: 1px solid #d9dde6 !important;
}

body.homepage-refresh-page #services .service-index-groups > div:nth-child(even) {
    border-left: 1px solid #d9dde6 !important;
}

body.homepage-refresh-page #services .service-index-groups > div:nth-last-child(-n + 2) {
    border-bottom: 1px solid #d9dde6 !important;
}

body.homepage-refresh-page #services .service-index-groups h4 {
    color: #c1492e !important;
    border-color: #c1492e !important;
}

body.homepage-refresh-page #services .service-index-groups a,
body.homepage-refresh-page #services .service-index-groups a * {
    color: #3b4173 !important;
    border-color: #3b4173 !important;
}

body.homepage-refresh-page .figma-voice-contact {
    justify-content: center !important;
    text-align: center !important;
}

@media (max-width: 767px) {
    body.homepage-refresh-page .header_container_58f7bdc3 {
        box-sizing: border-box !important;
        width: calc(100% - 24px) !important;
        max-width: none !important;
        margin-left: 12px !important;
        margin-right: 12px !important;
    }

    body.homepage-refresh-page .header_block_58f7bdc3 {
        box-sizing: border-box !important;
        width: 100% !important;
        min-width: 0 !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    body.homepage-refresh-page .header_logo_58f7bdc3,
    body.homepage-refresh-page .header_right_block_58f7bdc3 {
        flex: 0 0 auto !important;
    }

    body.homepage-refresh-page .header_right_block_58f7bdc3 {
        display: flex !important;
        margin-left: auto !important;
    }

    body.homepage-refresh-page .header_right_block_chapters_58f7bdc3 {
        display: none !important;
    }

    body.homepage-refresh-page .header_right_block_menu_58f7bdc3 {
        display: block !important;
    }

    body.homepage-refresh-page .header_right_block_menu_button_58f7bdc3 {
        display: flex !important;
    }

    body.homepage-refresh-page #services .service-index-groups {
        grid-template-columns: 1fr !important;
        grid-template-rows: none !important;
    }

    body.homepage-refresh-page #services .service-index-groups > div {
        min-height: 0 !important;
        border-left: 0 !important;
        border-bottom: 0 !important;
    }

    body.homepage-refresh-page #services .service-index-groups > div:last-child {
        border-bottom: 1px solid #d9dde6 !important;
    }

    /* Mobile hero: keep the copy and actions, remove the decorative sculpture and its reserved space. */
    body.homepage-refresh-page .hero-product.hero-product-cinema {
        min-height: 0 !important;
        padding: 124px 0 54px !important;
    }

    body.homepage-refresh-page .hero-production-steps li::before {
        display: none !important;
    }

    body.homepage-refresh-page .hero-product.hero-product-cinema .hero-sound-art {
        display: none !important;
    }

    body.homepage-refresh-page .hero-product.hero-product-cinema .hero-product-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.homepage-refresh-page #services .service-feature {
        min-height: 0 !important;
        height: auto !important;
        aspect-ratio: auto !important;
    }

    body.homepage-refresh-page #services .service-feature .service-copy {
        min-height: 0 !important;
        padding: 22px 20px 24px !important;
    }

    /* On phones Fish Audio follows the complete list of AI categories. */
    body.homepage-refresh-page [class*="ai-services_panel"] {
        display: flex !important;
        flex-direction: column !important;
    }

    body.homepage-refresh-page [class*="ai-services_intro"] {
        display: contents !important;
    }

    body.homepage-refresh-page [class*="ai-services_directory"] {
        order: 2 !important;
    }

    body.homepage-refresh-page .ai-services_fish__OwwrM {
        order: 3 !important;
        margin-top: 18px !important;
    }
}

/* Homepage v28: the old section rail is not part of the approved homepage. */
body.homepage-refresh-page .studio-rail,
body.homepage-refresh-page [data-studio-rail],
body.homepage-refresh-page .menu-contents__items,
body.homepage-refresh-page .menu-contents {
    display: none !important;
}

/* Final mobile header contract: one logo, one menu button and stable edge insets. */
@media (max-width: 900px) {
    body.homepage-refresh-page .header_container_58f7bdc3 {
        box-sizing: border-box !important;
        width: calc(100% - 24px) !important;
        max-width: none !important;
        margin-left: 12px !important;
        margin-right: 12px !important;
    }

    body.homepage-refresh-page .header_block_58f7bdc3 {
        box-sizing: border-box !important;
        display: flex !important;
        width: 100% !important;
        min-width: 0 !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    body.homepage-refresh-page .header_logo_58f7bdc3 {
        display: block !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
    }

    body.homepage-refresh-page .header_right_block_58f7bdc3 {
        display: none !important;
    }

    body.homepage-refresh-page .header_right_block_chapters_58f7bdc3 {
        display: none !important;
    }

    body.homepage-refresh-page .header_right_block_menu_58f7bdc3 {
        display: none !important;
    }

    body.homepage-refresh-page .header_right_block_menu_button_58f7bdc3 {
        position: relative !important;
        display: block !important;
        width: 34px !important;
        min-width: 34px !important;
        max-width: 34px !important;
        height: 20px !important;
        min-height: 20px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    body.homepage-refresh-page .header_right_block_menu_button_58f7bdc3 > div {
        display: none !important;
    }

    body.homepage-refresh-page .header_right_block_menu_button_58f7bdc3::before {
        content: "" !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        display: block !important;
        width: 34px !important;
        height: 2px !important;
        border-radius: 2px !important;
        background: #ffffff !important;
        box-shadow: 0 9px 0 #ffffff, 0 18px 0 #ffffff !important;
    }

    body.homepage-refresh-page .header_right_block_menu_button_58f7bdc3::after {
        content: none !important;
        display: none !important;
    }

    body.homepage-refresh-page .header_button_menu_58f7bdc3 {
        display: flex !important;
        flex: 0 0 31px !important;
        width: 31px !important;
        height: 31px !important;
        margin: 0 !important;
    }
}
