/* ================================================================
   MEET OUR MUSE: KIANA V — feature page (muse-kiana.html)
   Built from the Figma "Meet Our Muse: Kiana" frame (390 x 1581).
   ================================================================ */

.kiana-page {
  --kiana-red: #7a2a28;
  background: var(--kiana-red) url("assets/muse-kiana/bg-texture.jpg") repeat top left / 280px 367px;
  color: #fff;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* While the intro plays, the page underneath can't be scrolled. */
html.intro-playing,
html.intro-playing body { overflow: hidden; height: 100%; }

/* ---------------------------------------------------------------
   INTRO VIDEO
   --------------------------------------------------------------- */
.muse-intro {
  position: fixed;
  inset: 0;
  z-index: 1000; /* above the nav pill (55) and cart */
  background: #0d0606;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  transition: opacity 0.7s ease, visibility 0.7s;
}
.muse-intro.is-leaving { opacity: 0; visibility: hidden; pointer-events: none; }

/* Phones: the vertical video fills the screen edge to edge. */
.muse-intro video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
/* Wider screens: show the whole 9:16 video centered over the page's red
   texture instead of cropping it to a landscape window. */
@media (min-aspect-ratio: 3/4) {
  .muse-intro {
    background: rgba(13, 6, 6, 0.82) url("assets/muse-kiana/bg-texture.jpg") repeat top left / 280px 367px;
    background-blend-mode: multiply;
  }
  .muse-intro video {
    width: auto;
    height: 100%;
    max-width: 100%;
    aspect-ratio: 9 / 16;
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.6);
  }
}

.intro-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(20px, env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
}
.intro-btn {
  pointer-events: auto;
  font: 600 14px/1 "Inter", sans-serif;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 11px 18px;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background 0.2s ease;
}
.intro-btn:hover,
.intro-btn:focus-visible { background: rgba(0, 0, 0, 0.7); }

/* Only shown if the browser refuses to autoplay (e.g. iPhone Low Power Mode). */
.intro-play {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  color: var(--brand-red);
  background: var(--paper);
  border: none;
  border-radius: 999px;
  padding: 16px 30px;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.muse-intro.needs-tap .intro-play { display: block; }

/* ---------------------------------------------------------------
   STORY — phones (default): exact Figma collage
   Every piece is placed in Figma px (--x, --y, --w, --h) and scaled by
   --u, which is 1 Figma px at the current screen width.
   --------------------------------------------------------------- */
.kiana {
  padding-top: 96px; /* clears the fixed nav pill + cart */
  overflow-x: hidden;
}

.kiana-canvas {
  container-type: inline-size;
  position: relative;
  width: 100%;
  aspect-ratio: 390 / 1581;
}
.kiana-canvas > * {
  --u: calc(100cqw / 390);
  position: absolute;
  left: calc(var(--x) * var(--u));
  top: calc(var(--y) * var(--u));
  width: calc(var(--w) * var(--u));
  margin: 0;
}

.k-photo { height: calc(var(--h) * var(--u)); overflow: hidden; }
.k-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.k-text {
  font-weight: 600;
  font-size: calc(15 * var(--u));
  line-height: 1.21;
  z-index: 2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.k-text em { font-style: normal; }
.k-text a { color: inherit; text-decoration: underline; text-underline-offset: 0.15em; }
.k-lg { font-size: calc(18 * var(--u)); }
.k-caption {
  font-weight: 400;
  font-size: calc(10 * var(--u));
  line-height: 1.21;
  z-index: 2;
}

.k-title {
  --x: 20; --y: 25; --w: 370;
  font-weight: 600;
  font-size: calc(36 * var(--u));
  line-height: 1.21;
  z-index: 3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.k-title span { display: block; white-space: pre; }
.k-title-2 { padding-left: calc(197 * var(--u)); }

.k-ikb       { --x: 1;   --y: 41;   --w: 223; --h: 308; border-radius: calc(5 * var(--u)); }
.k-intro     { --x: 231; --y: 137;  --w: 146; }
.k-rollout   { --x: 7;   --y: 361;  --w: 383; }
.k-rollout span { display: block; }
.k-rollout-2 { padding-left: calc(104 * var(--u)); }
.k-artboard  { --x: 0;   --y: 375;  --w: 281; --h: 193; z-index: 1; }
.k-cap-artboard { --x: 287; --y: 492; --w: 90; }
.k-friend    { --x: 12;  --y: 579;  --w: 347; }
.k-westwood  { --x: -46; --y: 682;  --w: 278; --h: 379; }
.k-cap-westwood { --x: 242; --y: 688; --w: 110; }
.k-raised    { --x: 241; --y: 766;  --w: 132; }
.k-y2k       { --x: 152; --y: 936;  --w: 258; --h: 323; }
.k-cap-y2k   { --x: 7;   --y: 1070; --w: 140; }
.k-quote     { --x: 12;  --y: 1130; --w: 203; font-size: calc(25 * var(--u)); }
.k-quote p   { margin: 0; }
.k-quote cite { font-style: normal; display: block; }
.k-toast     { --x: -3;  --y: 1254; --w: 245; --h: 327; }
.k-stream    { --x: 142; --y: 1352; --w: 234; }

/* ---------- end-of-story links ---------- */
.kiana-end {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 40px 16px max(48px, env(safe-area-inset-bottom));
}
.kiana-end-btn {
  font-size: 18px;
  letter-spacing: 0.3px;
  text-decoration: none;
  color: var(--paper);
  border: 2px solid var(--paper);
  border-radius: 999px;
  padding: 12px 22px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.kiana-end-btn.is-solid { background: var(--paper); color: var(--brand-red); }
.kiana-end-btn:hover,
.kiana-end-btn:focus-visible { background: var(--paper); color: var(--brand-red); }
.kiana-end-btn.is-solid:hover,
.kiana-end-btn.is-solid:focus-visible { background: var(--brand-red); color: var(--paper); border-color: var(--brand-red); }

/* ---------- scroll reveal (only when JS is running) ---------- */
html.js .reveal {
  opacity: 0;
  translate: 0 24px;
  transition: opacity 0.8s ease, translate 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
html.js .reveal.is-in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; translate: none; transition: none; }
}

/* ---------------------------------------------------------------
   STORY — tablet / desktop (900px+): same pieces, editorial grid
   --------------------------------------------------------------- */
@media (min-width: 900px) {
  .kiana { padding-top: 120px; overflow-x: clip; }

  .kiana-canvas {
    container-type: normal;
    aspect-ratio: auto;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 48px;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 28px;
    align-items: start;
  }
  .kiana-canvas > * {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    height: auto;
  }

  .k-photo { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); }
  .k-photo img { height: auto; }
  .k-text  { font-size: clamp(18px, 1.55vw, 22px); line-height: 1.35; }
  .k-lg    { font-size: clamp(22px, 2vw, 28px); line-height: 1.3; }
  .k-caption { font-size: 14px; line-height: 1.4; }

  /* Row 1 — title over the I KNOW BETTER photo + intro */
  .k-title {
    grid-column: 1 / -1;
    grid-row: 1;
    font-size: clamp(64px, 7.4vw, 108px);
    line-height: 1;
  }
  .k-title-1 { white-space: normal; word-spacing: 0.35em; }
  .k-title-2 { padding-left: 42%; }

  .k-ikb   { grid-column: 1 / span 5; grid-row: 1 / span 2; margin-top: clamp(40px, 4.4vw, 64px); border-radius: 8px; z-index: 1; }
  .k-ikb img { aspect-ratio: 223 / 308; object-fit: cover; height: auto; }
  .k-intro { grid-column: 7 / span 5; grid-row: 2; margin-top: 40px; font-size: clamp(22px, 2vw, 28px); line-height: 1.3; }

  /* Row 2 — rollout line, staggered like the Figma */
  .k-rollout { grid-column: 1 / -1; grid-row: 3; margin: 56px 0 28px; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.2; }
  .k-rollout-2 { padding-left: 27%; }

  /* Row 3 — artboard self-portrait, caption on the right */
  .k-artboard     { grid-column: 1 / span 8; grid-row: 4; }
  .k-artboard img { aspect-ratio: 281 / 193; object-fit: cover; }
  .k-cap-artboard { grid-column: 9 / span 3; grid-row: 4; align-self: end; }

  .k-friend { grid-column: 3 / span 8; grid-row: 5; margin: 72px 0; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.25; }

  /* Row 4 — Westwood (left) and Y2K (right) with the text between them */
  .k-westwood     { grid-column: 1 / span 5; grid-row: 6 / span 3; }
  .k-westwood img { aspect-ratio: 278 / 379; object-fit: cover; }
  .k-cap-westwood { grid-column: 6 / span 2; grid-row: 6; }
  .k-raised       { grid-column: 6 / span 3; grid-row: 7; margin-top: 32px; }
  .k-y2k          { grid-column: 9 / span 4; grid-row: 7 / span 3; margin-top: 120px; }
  .k-y2k img      { aspect-ratio: 258 / 323; object-fit: cover; }
  .k-cap-y2k      { grid-column: 6 / span 3; grid-row: 9; align-self: end; text-align: right; }

  /* Row 5 — quote, last photo, stream/follow line */
  .k-quote  { grid-column: 1 / span 6; grid-row: 10; margin-top: 96px; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.15; }
  .k-quote cite { font-size: 0.55em; margin-top: 16px; }
  .k-toast  { grid-column: 7 / span 5; grid-row: 10 / span 2; margin-top: 56px; }
  .k-toast img { aspect-ratio: 245 / 327; object-fit: cover; }
  .k-stream { grid-column: 1 / span 5; grid-row: 11; align-self: end; margin-bottom: 40px; }

  .kiana-end { padding: 96px 16px 80px; gap: 16px; }
}
