/* Velvet Sam — the Oriental (Perfume) Line on white: --oc is the colour of the box that speaks */
.ol { --oc: #b8913f; }

/* ---------- one screen: the sentence, its box, the colours ---------- */
.ol-open { background: #fff; padding: clamp(92px, 11vh, 120px) 0 clamp(26px, 4vh, 44px); }
.ol-open__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "text media" "foot foot"; column-gap: clamp(24px, 5vw, 80px); align-items: center; min-height: calc(100svh - clamp(92px, 11vh, 120px) - var(--announce-h) - 40px); max-height: 860px; }
.ol-open__text { grid-area: text; }
.ol-open__line { font: 500 11px/1 var(--f-ui); letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-deep); }

/* the sentence: a word at a time */
.ol-say { min-height: 2.1em; margin-top: clamp(16px, 3vh, 28px); font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: 1.02; font-style: italic; color: var(--ink); }
.ol-say span { display: inline-block; white-space: pre; animation: ol-word 0.9s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes ol-word { from { opacity: 0; transform: translateY(0.35em); filter: blur(6px); } }
.ol-say.is-out span { animation: ol-word-out 0.35s ease-in both; animation-delay: calc(var(--i) * 25ms); }
@keyframes ol-word-out { to { opacity: 0; transform: translateY(-0.25em); filter: blur(4px); } }

.ol-who { display: grid; gap: 4px; margin-top: clamp(22px, 4vh, 36px); padding-top: 18px; border-top: 1px solid var(--line); max-width: 420px; }
.ol-who__tag { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.ol-who b { font-weight: 500; font-size: clamp(1.6rem, 2.2vw, 2.1rem); line-height: 1.1; }
.ol-who__meta { font-size: 13px; color: var(--muted); }
.ol-open__cta { display: flex; align-items: center; gap: 24px; margin-top: 20px; }
.ol-link { white-space: nowrap; padding-bottom: 3px; border-bottom: 1px solid var(--line); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.ol-link:hover { color: var(--ink); border-color: var(--ink); }
.ol-link:disabled { opacity: 0.5; pointer-events: none; }

/* the box, on a soft halo of its own colour */
.ol-open__media { grid-area: media; position: relative; display: block; height: clamp(300px, 58svh, 600px); }
.ol-open__media::before { content: ''; position: absolute; inset: 10% 6% 4%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--oc) 24%, transparent), transparent); transition: background 1s; }
.ol-open__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; opacity: 0; transform: translateY(24px) scale(0.94) rotate(-3deg); transition: opacity 0.7s, transform 1.1s var(--ease); pointer-events: none; }
.ol-open__media img.is-on { opacity: 1; transform: none; }
.ol.is-rolling .ol-open__media img { transition-duration: 0.12s, 0.2s; }

.ol-open__foot { grid-area: foot; display: flex; align-items: center; padding-top: clamp(14px, 3vh, 26px); }
.ol-shuffle { display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px 12px 14px; border: 1px solid var(--line); border-radius: 40px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); transition: border-color 0.4s, transform 0.4s var(--ease); }
.ol-shuffle:hover { border-color: var(--gold-deep); transform: translateY(-2px); }
.ol-shuffle__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--oc); transition: background 0.3s; }
.ol.is-rolling .ol-shuffle__dot { animation: ol-pulse 0.45s var(--ease-io) infinite alternate; }
@keyframes ol-pulse { to { transform: scale(1.6); } }

/* ---------- the colours: one band per box, the one under the hand opens ---------- */
.ol-colours { padding: clamp(50px, 9vh, 100px) 0 clamp(40px, 8vh, 80px); background: #fff; border-top: 1px solid var(--line); }
.ol-spectrum__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px 30px; margin-bottom: clamp(22px, 4vh, 36px); }
.ol-spectrum__hint { font-family: var(--f-display); font-style: italic; font-size: 1.2rem; color: var(--muted); }
.ol-spectrum { display: flex; gap: 3px; height: clamp(340px, 56svh, 520px); touch-action: pan-y; }
.ol-band { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: 3px; background: var(--c); transition: flex-grow 0.8s var(--ease), background-color 0.6s; }
.ol-band.is-open { flex-grow: 18; background: color-mix(in srgb, var(--c) 16%, #fff); }
.ol-band img { position: absolute; left: 50%; top: 44%; width: min(88%, 420px); max-width: none; translate: -50% -50%; mix-blend-mode: multiply; opacity: 0; scale: 0.92; transition: opacity 0.5s, scale 0.9s var(--ease); pointer-events: none; }
.ol-band.is-open img { opacity: 1; scale: 1; transition-delay: 0.2s, 0.1s; }
.ol-band__text { position: absolute; left: 0; right: 0; bottom: clamp(14px, 3vh, 26px); padding: 0 16px; text-align: center; opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.ol-band.is-open .ol-band__text { opacity: 1; transition-delay: 0.35s; }
.ol-band__text b { display: block; font-family: var(--f-display); font-weight: 500; font-size: clamp(1.3rem, 2vw, 1.8rem); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ol-band__text small { display: block; margin-top: 2px; font-family: var(--f-display); font-style: italic; font-size: 1rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- all of them ---------- */
.ol-all { padding-top: clamp(30px, 6vh, 60px); border-top: 1px solid var(--line); }
.ol-all h2 { margin-bottom: 14px; }
.ol.is-wish .ol-open, .ol.is-wish .ol-colours { display: none; }
.ol.is-wish .ol-all { padding-top: clamp(110px, 14vh, 150px); border: 0; }

/* ---------- phones: sentence, box, then who it is ---------- */
@media (max-width: 899px) {
  .ol-open { padding-top: clamp(80px, 10vh, 96px); }
  .ol-open__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "media" "foot"; min-height: 0; text-align: center; }
  .ol-open__text { display: contents; }
  .ol-open__media, .ol-open__foot { grid-area: auto; }
  .ol-open__line { order: -2; }
  .ol-say { order: -1; min-height: 2.1em; margin-top: 12px; font-size: clamp(2rem, 9vw, 2.8rem); }
  .ol-open__media { order: 0; height: clamp(220px, 34svh, 320px); }
  .ol-who { order: 1; margin: 6px auto 0; padding-top: 12px; justify-items: center; }
  .ol-open__cta { order: 2; justify-content: center; margin-top: 14px; }
  .ol-open__foot { order: 3; justify-content: center; }
  .ol-spectrum { gap: 2px; height: 380px; }
  .ol-band { border-radius: 2px; }
  .ol-band.is-open { flex-grow: 40; }
}

@media (prefers-reduced-motion: reduce) {
  .ol-say span, .ol-say.is-out span { animation: none; }
  .ol-open__media img { transform: none; }
}
