/* =============================================================
   Secrets of Cint — the scents, by scroll
   Sits directly under the hero film on the same black, so the film and the
   collection read as one night. Each scent is a studio packshot on pure
   black (the page colour), masked at its edges, with a glow in its own tone,
   a sweep of light when it lands and a slow breathe while the voice speaks.
   ============================================================= */
.scents { background: #000; color: #f7f4ef; overflow-x: clip; isolation: isolate; scroll-margin-top: 84px; }
.scents :focus-visible { outline-color: #f7f4ef; }

/* lead-in: a short word under the film, not a second hero */
.scents-lead { max-width: var(--maxw); margin-inline: auto; padding: clamp(64px, 9vh, 112px) var(--gutter) 0; }
.scents-lead .eyebrow { color: rgba(247, 244, 239, 0.62); }
.scents-lead h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(38px, 4.6vw, 68px); line-height: 1.02; letter-spacing: -0.025em; margin-top: 20px; max-width: 14ch; text-wrap: balance; color: #f7f4ef; }
.scents-lead h2 em { font-style: italic; color: rgba(247, 244, 239, 0.6); }
.scents-lead p.lead { margin-top: 22px; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.8; color: rgba(247, 244, 239, 0.74); max-width: 46ch; text-wrap: pretty; }

/* one scent per screen: picture on one side, words on the other, alternating */
.scent { position: relative; min-height: 100svh; max-width: var(--maxw); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 5vw, 80px); padding: 8vh var(--gutter); scroll-margin-top: 84px; isolation: isolate; }
.scent:nth-child(even) .scent-pic { order: 2; }
.scent:nth-child(odd)  { --from: -14vw; --tilt: -6deg; }
.scent:nth-child(even) { --from: 14vw;  --tilt: 6deg; }
/* the picture moves a little slower than the words as the page scrolls (--drift is set by scroll-shop.js) */
.scent-pic { display: grid; place-items: center; transform: translateY(var(--drift, 0px)); will-change: transform; }

/* the plate: photograph, glow and light sweep as one element */
.scent-plate { position: relative; width: min(100%, 540px); max-height: 78svh; aspect-ratio: 3 / 4; isolation: isolate; }
.scent-plate::before { content: ""; position: absolute; z-index: -1; inset: -18%; border-radius: 50%; background: radial-gradient(ellipse at 50% 55%, var(--tone) 0%, transparent 62%); opacity: 0; filter: blur(34px); transition: opacity 1.6s var(--ease); }
.scent-img { display: block; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse 74% 72% at 50% 50%, #000 52%, transparent 100%); mask-image: radial-gradient(ellipse 74% 72% at 50% 50%, #000 52%, transparent 100%); }
.scent-sheen { position: absolute; inset: 0; pointer-events: none; opacity: 0; transform: translateX(-70%);
  background: linear-gradient(112deg, transparent 38%, rgba(255, 255, 255, 0.16) 48%, rgba(255, 255, 255, 0.05) 52%, transparent 62%);
  -webkit-mask-image: radial-gradient(ellipse 60% 62% at 50% 50%, #000 40%, transparent 100%); mask-image: radial-gradient(ellipse 60% 62% at 50% 50%, #000 40%, transparent 100%); }

/* arrival (guarded by .js so nothing is hidden without JavaScript) */
.js .scent-plate { opacity: 0; transform: translate(var(--from), 40px) scale(1.06) rotate(var(--tilt)); transition: opacity 1.1s var(--ease), transform 1.5s var(--ease); }
.js .scent.in .scent-plate { opacity: 1; transform: none; }
.js .scent-info { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease) 0.25s, transform 0.9s var(--ease) 0.25s; }
.js .scent.in .scent-info { opacity: 1; transform: none; }

/* while the voice speaks about it: glow, one sweep of light, then a slow breathe */
.scent.lit .scent-plate::before { opacity: 0.5; }
.scent.lit .scent-sheen { animation: scent-sweep 1.7s cubic-bezier(0.3, 0.6, 0.2, 1) 0.35s 1 both; }
@keyframes scent-sweep { 0% { opacity: 0; transform: translateX(-70%); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateX(70%); } }
.scent.lit .scent-img { animation: scent-breathe 7s ease-in-out infinite; }
@keyframes scent-breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* the words */
.scent-info { max-width: 520px; }
.scent-count { font-size: 11px; letter-spacing: 0.3em; color: rgba(247, 244, 239, 0.5); margin: 0 0 14px; font-variant-numeric: tabular-nums; }
.scent-kind { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(247, 244, 239, 0.62); font-weight: 400; margin: 0; }
.scent-name { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 5.4vw, 76px); line-height: 1.02; letter-spacing: -0.02em; margin: 12px 0 0; color: #f7f4ef; text-wrap: balance; }
.scent-notes { font-family: var(--serif); font-style: italic; font-size: clamp(18px, 1.7vw, 22px); color: rgba(247, 244, 239, 0.74); margin: 10px 0 0; }
.scent-buy { display: flex; align-items: center; gap: 22px; margin-top: 22px; flex-wrap: wrap; }
.scent-price { font-family: var(--serif); font-size: 26px; color: #f7f4ef; }
.scent-add { font: 400 11px/1 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; color: #f7f4ef; background: transparent; border: 1px solid rgba(247, 244, 239, 0.5); border-radius: var(--radius); min-height: 44px; padding: 0 22px; cursor: pointer; transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.2s var(--ease); }
.scent-add:hover { background: #f7f4ef; color: var(--ink); border-color: #f7f4ef; transform: translateY(-2px); }
.scent-add:active { transform: translateY(0) scale(0.98); }

/* the fixed UI: caption at the bottom middle, sound button at the bottom right; both only while the scents are on screen */
.scents-ui > * { opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0s linear 0.5s; }
.scents-ui.show .scents-sound-wrap { opacity: 1; visibility: visible; transition-delay: 0s; }
.scents-ui.show .scents-caption.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.scents-sound-wrap { position: fixed; z-index: 58; right: clamp(16px, 3vw, 32px); bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(16px, 3vw, 28px)); display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.scents-sound { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(247, 244, 239, 0.28);
  background: rgba(20, 20, 20, 0.78); color: #f7f4ef; font: 400 11px/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; cursor: pointer;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.5); transition: transform 0.2s var(--ease); }
.scents-sound:active { transform: scale(0.97); }
.scents-sound:focus-visible { outline: 1px solid #f7f4ef; outline-offset: 3px; }
.scents-sound .i-on, .scents-sound[aria-pressed="true"] .i-off { display: none; }
.scents-sound[aria-pressed="true"] .i-on { display: block; }
.scents-hint { font-size: 12px; letter-spacing: 0.04em; background: rgba(20, 20, 20, 0.78); color: #f7f4ef; padding: 9px 14px; border-radius: 10px; max-width: 220px; text-align: right; margin: 0; transition: opacity 0.8s var(--ease); }
.scents-hint.fade { opacity: 0; pointer-events: none; }
.scents-caption { position: fixed; z-index: 57; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(16px, 3vw, 28px)); transform: translate(-50%, 16px); width: min(560px, calc(100vw - 32px)); margin: 0;
  background: rgba(20, 20, 20, 0.78); color: #f7f4ef; border-radius: 14px; padding: 14px 20px; display: grid; gap: 4px; pointer-events: none;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.scents-cap-k { font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase; opacity: 0.7; }
.scents-cap-t { font-family: var(--serif); font-size: 19px; line-height: 1.4; }
/* while a caption is up, the hint steps aside */
.scents-caption.show ~ .scents-sound-wrap .scents-hint { opacity: 0; pointer-events: none; }
@media (prefers-reduced-transparency: reduce) { .scents-sound, .scents-hint, .scents-caption { -webkit-backdrop-filter: none; backdrop-filter: none; background: #0a0a0a; } }

@media (max-width: 900px) {
  .scent { grid-template-columns: 1fr; gap: 24px; padding-block: 10vh; align-content: center; scroll-margin-top: 72px; }
  .scent:nth-child(even) .scent-pic { order: 0; }
  .scent-plate { max-height: 50svh; width: min(100%, 380px); }
  .scents-caption { bottom: calc(env(safe-area-inset-bottom, 0px) + 80px); width: calc(100vw - 32px); }   /* above the sound button, never under it */
  .scents-cap-t { font-size: 17px; }
  .scents-hint { max-width: 180px; }
}
@media (max-width: 620px) {
  .scent-name { font-size: clamp(36px, 11vw, 48px); }
  .scents-lead h2 { font-size: clamp(34px, 9.6vw, 44px); }
}
@media (prefers-reduced-motion: reduce) {
  .js .scent-plate, .js .scent-info, .scent-sheen { transition: none; animation: none; }
  .js .scent .scent-plate, .js .scent .scent-info { opacity: 1; transform: none; }
  .scent-pic { transform: none; }
  .scent.lit .scent-img, .scent.lit .scent-sheen { animation: none; }
}
