/* ==========================================================================
   Bea Nails — four "story" sections built from the cut-out photos of Bea.
   .st-poster  : editorial poster (white, thin grid lines, bold sans text on the
                 left, big serif question on the right, person in the middle)
   .st-who     : "Who are we?" (solid brand-red background, big two-tone title,
                 italic line, duotone person with grey echoes behind)
   Text animation comes from why.js (sections also carry the .why class).
   ========================================================================== */
.st { --st-red: #7d1f1f; --st-ink: #111; position: relative; overflow: hidden; }
.st img { display: block; max-width: none; }

/* ---------------- poster ---------------- */
.st-poster {
  height: clamp(640px, 92vh, 900px);
  background: #fff;
  color: var(--st-ink);
}
/* thin grid lines across the lower part, like the reference */
.st-poster::before {
  content: ""; position: absolute; left: 0; right: 0; top: 48%; bottom: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.14) 1px, transparent 1px);
  background-size: 100% 105px, 13.6% 100%;
  background-position: 0 0, 0.5% 0;
}
.st-poster__top {
  position: absolute; z-index: 3; top: clamp(1.6rem, 4vw, 3rem); left: 0; right: 0;
  display: flex; justify-content: space-between; padding: 0 clamp(1.25rem, 7vw, 6rem);
  font-size: clamp(0.85rem, 1.2vw, 1.15rem); font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase;
}
.st-poster__frame { /* the open rectangle behind the head */
  position: absolute; z-index: 0; left: 50%; top: 17%; width: min(460px, 46vw); height: 30%;
  transform: translateX(-50%); border: 1px solid rgba(17, 17, 17, 0.35); border-bottom: 0;
}
.st-poster__person {
  position: absolute; z-index: 1; left: 50%; bottom: 0; transform: translateX(-50%);
  height: 82%; width: auto;
}
.st-poster__left, .st-poster__right { position: absolute; z-index: 2; top: 32%; }
.st-poster__left { left: clamp(1.25rem, 7vw, 6rem); max-width: 19rem; }
.st-poster__right { right: clamp(1.25rem, 7vw, 6rem); max-width: 22rem; text-align: left; }
.st-chip {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1.1rem !important;
  padding: 0.3rem 0.8rem 0.3rem 0.3rem; border: 1px solid rgba(17, 17, 17, 0.5); border-radius: 999px;
  font-size: 0.82rem; line-height: 1;
}
.st-chip img { width: 1.5rem; height: 1.5rem; border-radius: 50%; object-fit: cover; }
.st-poster__left h3 { font-family: "Outfit", "Segoe UI", sans-serif; font-size: clamp(1.6rem, 2.7vw, 2.6rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.02em; }
.st-poster__right h2 { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(3.2rem, 6.6vw, 6.4rem); font-weight: 500; line-height: 0.88; letter-spacing: -0.01em; }
.st-poster__right h2 em { color: var(--st-red); font-style: italic; }
.st-poster__mark { position: absolute; z-index: 3; right: clamp(1.25rem, 4vw, 3rem); bottom: clamp(1.25rem, 3vw, 2rem); display: flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.7rem; background: rgba(255, 255, 255, 0.9); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; line-height: 1.05; text-transform: uppercase; }
.st-poster__mark img { width: 1.6rem; height: auto; }
.st-poster__cta { position: absolute; z-index: 3; left: clamp(1.25rem, 7vw, 6rem); bottom: clamp(1.5rem, 4vw, 3rem); }

/* ---------------- who are we ---------------- */
.st-who {
  height: clamp(640px, 92vh, 900px);
  background: radial-gradient(90% 70% at 85% 0%, #9a2a2a 0%, var(--st-red) 45%, #5f1515 100%);
  color: #fff;
}
.st-who__brand { position: absolute; z-index: 3; top: clamp(1.5rem, 3.5vw, 2.5rem); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 0.55rem; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.4rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.st-who__brand img { width: 1.8rem; height: auto; border-radius: 4px; }
.st-who__title { position: absolute; z-index: 3; left: clamp(1.25rem, 7vw, 6rem); top: 17%; }
.st-who__title h2 { font-family: "Outfit", "Segoe UI", sans-serif; font-weight: 800; line-height: 0.9; letter-spacing: -0.04em; }
.st-who__title h2 .a { display: block; font-size: clamp(2.6rem, 5.2vw, 5rem); }
.st-who__title h2 .b { display: block; color: #f7d9cf; font-size: clamp(5rem, 11vw, 10.5rem); }
.st-who__line { position: absolute; z-index: 3; left: calc(clamp(1.25rem, 7vw, 6rem) + clamp(13rem, 25vw, 23rem)); top: 33%; max-width: 24rem; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(1.5rem, 2.5vw, 2.4rem); font-style: italic; font-weight: 500; line-height: 1.05; }
.st-who__swipe { position: absolute; z-index: 3; right: clamp(1.25rem, 7vw, 6rem); top: 52%; font-size: 0.95rem; font-weight: 800; letter-spacing: 0.08em; }
.st-who__text { position: absolute; z-index: 3; right: clamp(1.25rem, 7vw, 6rem); top: calc(52% + 2.2rem); max-width: 17rem; color: rgba(255, 255, 255, 0.82); font-size: 0.98rem; line-height: 1.55; }
.st-who__person { position: absolute; z-index: 2; left: 50%; bottom: 0; transform: translateX(-38%); height: 66%; width: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.35)); }
/* grey echoes of the same person behind, like the crowd in the reference */
.st-who__echo { position: absolute; z-index: 1; bottom: -6%; height: 58%; width: auto; opacity: 0.55; filter: contrast(1.05) brightness(0.9); }
.st-who__echo--1 { left: -3%; }
.st-who__echo--2 { right: -4%; transform: scaleX(-1); }
.st-who__echo--3 { left: 22%; height: 44%; bottom: -10%; opacity: 0.4; }
.st-who__fade { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(transparent, rgba(40, 8, 8, 0.65)); pointer-events: none; }
.st-who__cta { position: absolute; z-index: 4; left: clamp(1.25rem, 7vw, 6rem); bottom: clamp(1.5rem, 4vw, 3rem); }
.st-who .why-btn { background: #fff; color: var(--st-red); }
.st-who .why-btn:hover { background: #f7d9cf; color: var(--st-red); }

/* photo entrance: rises softly into place once (on top of the word animation from why.js) */
.st .st-rise { opacity: 0; transform: translate(var(--tx, -50%), 40px); transition: opacity 0.9s ease 0.15s, transform 1.2s cubic-bezier(0.19, 1, 0.22, 1) 0.15s; }
.st.is-seen .st-rise { opacity: 1; transform: translate(var(--tx, -50%), 0); }
.st-who__person.st-rise { --tx: -38%; }
.st-who__echo.st-rise { --tx: 0; }
.st-who__echo--2.st-rise { transform: translate(0, 40px) scaleX(-1); }
.st.is-seen .st-who__echo--2.st-rise { transform: scaleX(-1); }
@media (prefers-reduced-motion: reduce) { .st .st-rise { opacity: 1; transition: none; } }

/* ---------------- small screens ---------------- */
@media (max-width: 860px) {
  .st-poster, .st-who { height: auto; min-height: 0; padding: 5.5rem 1.25rem 0; display: flex; flex-direction: column; }
  .st-poster__top { top: 1.5rem; font-size: 0.78rem; padding: 0 1.25rem; }
  .st-poster__left, .st-poster__right, .st-who__title, .st-who__line, .st-who__swipe, .st-who__text, .st-poster__cta, .st-who__cta { position: static; max-width: none; }
  .st-poster__right { margin-top: 1rem; }
  .st-poster__cta, .st-who__cta { margin: 1.4rem 0 1.6rem; }
  .st-poster__frame { display: none; }
  .st-poster__person, .st-who__person { position: relative; left: auto; bottom: auto; height: auto; width: min(78vw, 340px); margin: 0 auto; transform: none; --tx: 0; }
  .st-poster::before { top: 55%; background-size: 100% 80px, 25% 100%; }
  .st-poster__mark { display: none; }
  .st-who__brand { top: 1.5rem; }
  .st-who__line { margin-top: 1rem; }
  .st-who__swipe { margin-top: 1.2rem; }
  .st-who__text { margin-top: 0.4rem; }
  .st-who__echo { display: none; }
}
@media (max-width: 860px) { .st-who__person.st-rise { --tx: 0; } }

/* tidy-up: quieter echoes kept low, text kept clear of them */
.st-who__echo { opacity: 0.32; bottom: -16%; height: 54%; }
.st-who__echo--1 { left: 2%; }
.st-who__echo--2 { right: 1%; }
.st-who__echo--3 { display: none; }
.st-who__person { height: 62%; }
.st-who__swipe { top: 36%; }
.st-who__text { top: calc(36% + 2.2rem); }
.st-poster__mark { gap: 0.55rem; }
.st .st-who__echo--3 { display: none; }
.st.is-seen .st-who__echo { opacity: 0.32; }
@media (max-width: 860px) {
  .st .st-who__echo { display: none; }
  /* photo sits last, flush with the bottom edge, like on desktop */
  .st-poster__person, .st-who__person { order: 5; margin-top: 0.5rem; }
  .st-who__fade { display: none; }
  .st-poster .why-tag, .st-who .why-tag { top: auto; bottom: 14px; }
}

/* "Who is Bea?" video card (replaces the cut-out photo; same spot and entrance) */
.st-who__video { margin: 0; height: 58%; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 22px 22px 0 0; border: 1px solid rgba(255, 255, 255, 0.22); border-bottom: 0; background: #2a0909; filter: none; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); }
.st-who__video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.st-who__video figcaption { position: absolute; top: 10px; right: 10px; padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.45); color: rgba(255, 255, 255, 0.85); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em; }
@media (max-width: 860px) {
  .st-who__video { height: auto; width: min(78vw, 340px); margin: 0.5rem auto 0; border-radius: 18px 18px 0 0; }
}

/* full-section video version of "Who is Bea?" */
.st-who--video { height: max(100vh, 720px); overflow: hidden; background: #1a0606; }
.st-who--video .st-who__bgvid { position: absolute; inset: -40px; z-index: 0; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(28px) brightness(0.45) saturate(1.1); }
.st-who--video .st-who__echo { display: none; }
.st-who--video .st-who__video { top: 0; bottom: 0; height: 100%; border-radius: 0; border: 0; border-left: 1px solid rgba(255, 255, 255, 0.12); border-right: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 0 80px rgba(0, 0, 0, 0.6); }
.st-who--video .st-who__person.st-rise { --tx: -50%; }
.st-who--video .st-who__fade { height: 30%; background: linear-gradient(transparent, rgba(0, 0, 0, 0.6)); z-index: 3; }
.st-who--video .st-who__title, .st-who--video .st-who__line, .st-who--video .st-who__swipe, .st-who--video .st-who__text, .st-who--video .st-who__brand { z-index: 4; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55); }
.st-who--video .st-who__line { left: clamp(1.25rem, 7vw, 6rem); top: calc(17% + clamp(8rem, 17vw, 16rem)); max-width: min(22rem, 26vw); }
.st-who--video .st-who__title h2 .a { font-size: clamp(2.2rem, 4.2vw, 4.2rem); }
.st-who--video .st-who__title h2 .b { font-size: clamp(4.2rem, 8.5vw, 8.5rem); }
.st-who--video .st-who__swipe, .st-who--video .st-who__text { max-width: min(17rem, 24vw); }
.st-who--video .st-who__cta { z-index: 5; }
@media (max-width: 860px) {
  .st-who--video { height: auto; min-height: 100vh; padding-bottom: 0; }
  .st-who--video .st-who__line { max-width: none; }
  .st-who--video .st-who__swipe, .st-who--video .st-who__text { max-width: none; }
  .st-who--video .st-who__video { position: relative; top: auto; bottom: auto; height: auto; width: calc(100% + 2.5rem); max-width: none; margin: 0.5rem -1.25rem 0; border: 0; --tx: 0; }
  .st-who--video .st-who__person.st-rise { --tx: 0; }
}
