/*
 * Optional editorial polish layer for Marina Malina Music.
 * Load this file after styles.css on the English and Russian homepages.
 * It intentionally contains no brand-logo or social-icon rules.
 */

:root {
  --polish-black: #070507;
  --polish-ivory: #fbf6ed;
  --polish-gold: #eccb8a;
  --polish-hairline: rgba(236, 203, 138, 0.22);
  --polish-shadow: 0 2.2rem 6rem rgba(0, 0, 0, 0.38);
  --polish-ease: cubic-bezier(0.2, 0.72, 0.2, 1);
}

body {
  background: var(--polish-black);
}

.section {
  isolation: isolate;
  padding-block: clamp(6rem, 11vw, 11rem);
}

.section:not(.section--ivory, .section--blush)::before {
  position: absolute;
  inset: 0 max(1rem, calc((100vw - var(--shell)) / 2)) auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--polish-hairline) 18%, var(--polish-hairline) 82%, transparent);
  content: "";
  pointer-events: none;
}

.display-title,
.hero__title,
.format-card h3,
.intelligence-grid h3,
.mood-row span,
.faq-list summary {
  text-wrap: balance;
}

.display-title {
  letter-spacing: -0.06em;
}

.eyebrow,
.section-index {
  letter-spacing: 0.19em;
}

/* Hero: more cinematic depth and a clearer booking hierarchy. */
.hero {
  min-height: max(46rem, 100svh);
  background-color: #070910;
}

.hero::after {
  position: absolute;
  inset: clamp(0.7rem, 1.4vw, 1.35rem);
  z-index: 1;
  border: 1px solid rgba(247, 241, 232, 0.1);
  content: "";
  pointer-events: none;
}

.hero__video {
  filter: saturate(0.84) contrast(1.1) brightness(0.84);
  transform: scale(1.012);
}

.hero__veil {
  background:
    radial-gradient(circle at 77% 30%, rgba(46, 82, 175, 0.23), transparent 30%),
    radial-gradient(circle at 59% 72%, rgba(149, 28, 65, 0.2), transparent 39%),
    linear-gradient(90deg, rgba(7, 5, 7, 0.97) 0%, rgba(23, 8, 19, 0.78) 40%, rgba(8, 11, 23, 0.18) 78%),
    linear-gradient(0deg, rgba(7, 5, 7, 0.98) 0%, transparent 49%, rgba(7, 5, 7, 0.54) 100%);
}

.hero__content {
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: clamp(7rem, 14vh, 10rem);
}

.hero__searchline {
  width: fit-content;
  max-width: min(38rem, 100%);
  margin-bottom: clamp(1rem, 2vh, 1.5rem);
  padding-left: 1rem;
  color: rgba(251, 246, 237, 0.84);
  border-left: 1px solid var(--polish-gold);
}

.hero__title {
  max-width: 11.2ch;
  font-size: clamp(4.5rem, 9.7vw, 10rem);
  line-height: 0.82;
  text-shadow: 0 0.16em 0.6em rgba(0, 0, 0, 0.32);
}

.hero__title em {
  filter: drop-shadow(0 0.12em 0.25em rgba(111, 51, 22, 0.18));
}

.hero__lede {
  padding-left: 1rem;
  border-left: 1px solid rgba(236, 203, 138, 0.45);
}

.hero__actions {
  margin-top: clamp(2rem, 4vh, 3rem);
}

.hero__actions .button--gold {
  min-width: 14.5rem;
  box-shadow: 0 1rem 3.2rem rgba(232, 190, 112, 0.2);
}

.button {
  border-radius: 0.25rem;
  backdrop-filter: blur(12px);
}

.button--gold {
  background: linear-gradient(112deg, #f9e6ba 0%, #eac47c 52%, #cf9952 100%);
}

.button--ghost {
  background: rgba(8, 6, 8, 0.16);
}

/* Performance media: gallery-grade framing and precise interaction. */
.film-card {
  border: 1px solid rgba(236, 203, 138, 0.2);
  box-shadow: var(--polish-shadow);
}

.film-card::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.06);
  content: "";
  pointer-events: none;
}

.film-card__play b {
  width: 3.6rem;
  height: 3.6rem;
  box-shadow: 0 0 0 0.55rem rgba(236, 203, 138, 0.13);
}

.motion-card__media {
  border: 1px solid rgba(236, 203, 138, 0.13);
  box-shadow: var(--polish-shadow);
}

.motion-card video {
  transition: filter 450ms ease, transform 900ms var(--polish-ease);
}

.motion-card:hover video {
  filter: saturate(0.98) contrast(1.04);
  transform: scale(1.025);
}

.motion-card figcaption {
  border-top: 1px solid rgba(236, 203, 138, 0.16);
}

/* Service formats read like an artist's programme, not generic cards. */
.format-card {
  padding-inline: clamp(0rem, 2vw, 1.5rem);
}

.format-card__number {
  color: #9e294b;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-variant-numeric: lining-nums tabular-nums;
}

.format-card h3 {
  letter-spacing: -0.045em;
}

.format-card li::before {
  display: inline-block;
  width: 0.8rem;
  height: 1px;
  margin-right: 0.7rem;
  vertical-align: middle;
  background: rgba(132, 30, 61, 0.5);
  content: "";
}

.gallery-grid {
  gap: clamp(0.65rem, 1.3vw, 1.2rem);
}

.gallery-item {
  border-color: rgba(236, 203, 138, 0.14);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.25);
}

.gallery-item::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 56%, rgba(4, 3, 4, 0.66));
  content: "";
  pointer-events: none;
}

.gallery-item figcaption {
  z-index: 1;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(247, 241, 232, 0.24);
}

/* Artist story and booking: trust, restraint, and a premium finish. */
.story__portrait img {
  box-shadow: 0 2rem 5.5rem rgba(68, 20, 35, 0.2);
}

.story__stamp {
  color: #4f1728;
  background: rgba(251, 246, 237, 0.95);
  border: 1px solid rgba(132, 30, 61, 0.38);
  box-shadow: 0 1rem 2.8rem rgba(68, 20, 35, 0.2);
}

.intelligence-grid {
  border-color: rgba(236, 203, 138, 0.2);
}

.intelligence-grid article {
  border-color: rgba(236, 203, 138, 0.16);
}

.intelligence-grid article:hover {
  background: linear-gradient(180deg, rgba(236, 203, 138, 0.055), rgba(255, 255, 255, 0.01));
}

.mood-row {
  min-height: 5.5rem;
}

.mood-row span {
  font-size: clamp(1.45rem, 2.3vw, 2rem);
}

.booking-form {
  position: relative;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.42), transparent 35%),
    var(--polish-ivory);
  border-color: rgba(236, 203, 138, 0.52);
  box-shadow: var(--polish-shadow);
}

.booking-form::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #762039, var(--polish-gold), #762039);
  content: "";
}

.field input,
.field select,
.field textarea {
  transition: border-color 180ms ease, background 180ms ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  background: rgba(132, 30, 61, 0.025);
}

.faq-list summary {
  transition: color 180ms ease, padding-left 220ms var(--polish-ease);
}

.faq-list summary:hover {
  padding-left: 0.5rem;
}

.site-footer {
  border-top: 1px solid rgba(236, 203, 138, 0.2);
}

@media (max-width: 66rem) {
  .hero__content {
    padding-bottom: clamp(7rem, 13vh, 9rem);
  }

  .format-card {
    padding-inline: 0;
  }
}

@media (max-width: 44rem) {
  .section {
    padding-block: 5.75rem;
  }

  .hero::after {
    inset: 0.55rem;
  }

  .hero__video {
    transform: scale(1.02);
  }

  .hero__content {
    padding-top: 7.2rem;
    padding-bottom: 7.4rem;
  }

  .hero__searchline {
    margin-bottom: 0.8rem;
    font-size: 0.64rem;
    letter-spacing: 0.14em;
  }

  .hero__title {
    margin-bottom: 1.2rem;
    font-size: clamp(3.45rem, 17.4vw, 5.9rem);
  }

  html[lang="ru"] .hero__title {
    font-size: clamp(3rem, 14.6vw, 5.1rem);
  }

  .hero__lede {
    padding-left: 0;
    border-left: 0;
  }

  .button {
    min-height: 3.65rem;
  }

  .film-card,
  .film-card img {
    min-height: 31rem;
  }

  .film-card__play b {
    width: 3.2rem;
    height: 3.2rem;
  }

  .motion-card:hover video,
  .gallery-item:hover img,
  .intelligence-grid article:hover {
    transform: none;
  }

  .mood-row {
    min-height: 5rem;
  }

  .booking-form {
    border-inline: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__video {
    transform: none;
  }

  .motion-card:hover video,
  .gallery-item:hover img,
  .intelligence-grid article:hover,
  .button:hover {
    transform: none;
  }
}

@media (prefers-contrast: more) {
  .hero__veil {
    background: linear-gradient(90deg, rgba(4, 3, 4, 0.98), rgba(7, 5, 7, 0.82) 60%, rgba(7, 5, 7, 0.46));
  }

  .hero__lede,
  .section-head p:last-child,
  .motion-edit__head p:last-child,
  .enquire__intro > p:not(.section-index, .eyebrow) {
    color: var(--polish-ivory);
  }
}

/*
 * Motion reel layout.
 * Keep the edit compact on large screens, use a balanced 2 + 1 composition
 * on tablets, and let the base stylesheet own the swipe rail on phones.
 */
@media (min-width: 73.75rem) {
  .film-card {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .film-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .motion-reel {
    grid-template-columns: repeat(3, minmax(0, 25rem));
    gap: clamp(1.1rem, 1.7vw, 1.5rem);
    align-items: start;
    justify-content: center;
  }

  .motion-card--private,
  .motion-card--piano,
  .motion-card--backstage {
    grid-column: auto;
    margin-top: 0;
  }

  .motion-card__media,
  .motion-card--backstage .motion-card__media {
    aspect-ratio: 4 / 5;
  }

  .motion-edit__head {
    margin-bottom: clamp(2.75rem, 4vw, 4rem);
  }

  .motion-card figcaption strong {
    font-size: clamp(1.3rem, 1.55vw, 1.7rem);
  }
}

@media (min-width: 44.01rem) and (max-width: 73.74rem) {
  .film-card {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .film-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .motion-reel {
    --motion-reel-gap: clamp(1rem, 2.5vw, 1.5rem);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--motion-reel-gap);
    align-items: start;
  }

  .motion-card--private,
  .motion-card--piano,
  .motion-card--backstage {
    margin-top: 0;
  }

  .motion-card--private {
    grid-column: 1;
  }

  .motion-card--piano {
    grid-column: 2;
    margin-top: clamp(1rem, 2.4vw, 1.5rem);
  }

  .motion-card--backstage {
    width: calc((100% - var(--motion-reel-gap)) / 2);
    grid-column: 1 / -1;
    justify-self: center;
  }

  .motion-card__media,
  .motion-card--backstage .motion-card__media {
    aspect-ratio: 4 / 5;
  }

  .story__stamp {
    right: 0;
  }
}

@media (max-width: 44rem) {
  .story__stamp {
    right: 0;
  }
}
