/* Velvet Sam — Amorous & Romantic: --am is the label colour of the flacon in front */
@property --am { syntax: '<color>'; inherits: true; initial-value: #c8452f; }
.am { --am: #c8452f; }

/* ---------- the ring ---------- */
.am-hero {
  position: relative; min-height: 100svh; display: grid; grid-template-rows: auto minmax(260px, 1fr) auto;
  padding: calc(var(--announce-h) + var(--header-h) + clamp(10px, 2vh, 24px)) var(--gutter) clamp(28px, 5vh, 56px);
  overflow: hidden; isolation: isolate; text-align: center;
  background: radial-gradient(120% 70% at 50% 62%, color-mix(in srgb, var(--am) 15%, #fff) 0%, #fff 62%);
  transition: --am 1.1s var(--ease);
}
/* a slow light behind the front flacon */
.am-hero::before {
  content: ''; position: absolute; left: 50%; top: 52%; width: min(70vw, 720px); aspect-ratio: 1; translate: -50% -50%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--am) 22%, transparent), transparent 72%);
  animation: am-breathe 7s ease-in-out infinite;
}
@keyframes am-breathe { 50% { scale: 1.12; opacity: 0.7; } }
.am-hero__head .crumbs { justify-content: center; }
.am-hero h1 { margin-top: 6px; font-size: clamp(2.2rem, 4.2vw, 3.8rem); line-height: 1; }
.am-hero h1 em { color: color-mix(in srgb, var(--am) 70%, var(--ink)); transition: color 1.1s var(--ease); }

.am-ring { position: relative; margin: clamp(4px, 2vh, 20px) calc(var(--gutter) * -1) 0; touch-action: pan-y; cursor: grab; outline: none; user-select: none; }
.am-ring.is-drag { cursor: grabbing; }
.am-ring:focus-visible { box-shadow: inset 0 0 0 1px var(--line); }
.am-flacon {
  position: absolute; left: 50%; bottom: 6%; height: 88%; aspect-ratio: 1; padding: 0; transform-origin: 50% 100%;
  transition: opacity 0.4s; will-change: transform;
}
.am-flacon img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; pointer-events: none; transition: transform 0.6s var(--ease); }
.am-flacon.is-front img { animation: am-float 5s ease-in-out infinite; filter: drop-shadow(0 18px 18px rgba(40, 20, 20, 0.16)); }
@keyframes am-float { 50% { transform: translateY(-2.2%); } }
/* the ring enters from the back: the flacons rise one after another */
.am:not(.is-ready) .am-flacon img { opacity: 0; transform: translateY(16%); }
.am-flacon img { transition: transform 1.1s var(--ease), opacity 0.9s; transition-delay: calc(var(--i) * 45ms); }
.am.is-settled .am-flacon img { transition-delay: 0s; }
.am-ring::after {
  content: ''; position: absolute; left: 50%; bottom: 6%; width: min(40%, 340px); height: 34px; translate: -50% 50%; border-radius: 50%; z-index: 0;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--am) 30%, rgba(30, 20, 20, 0.18)), transparent); pointer-events: none;
}

.am-arrow { position: absolute; top: 50%; translate: 0 -50%; z-index: 120; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.7); box-shadow: 0 0 0 1px var(--line); backdrop-filter: blur(6px); transition: background 0.3s, transform 0.4s var(--ease); }
.am-arrow svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.4; }
.am-arrow:hover { background: #fff; transform: scale(1.06); }
.am-arrow--prev { left: var(--gutter); }
.am-arrow--next { right: var(--gutter); }

/* ---------- the one in front ---------- */
.am-now { position: relative; z-index: 110; display: grid; justify-items: center; gap: 8px; }
.am-now__count { font-size: 11px; letter-spacing: 0.24em; color: var(--muted); }
.am-now__name { font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: 1; min-height: 1em; font-style: italic; color: color-mix(in srgb, var(--am) 55%, var(--ink)); transition: color 1.1s var(--ease); }
.am-now__name span { display: inline-block; }
.am-now__name.is-in span { animation: am-letter 0.9s var(--ease) both; animation-delay: calc(var(--k) * 28ms); }
@keyframes am-letter { from { opacity: 0; transform: translateY(0.45em) rotate(4deg); filter: blur(6px); } }
.am-now__family { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.am-now__notes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 6px; list-style: none; padding: 0; }
.am-now__notes li { display: flex; align-items: center; gap: 10px; text-align: left; font-size: 14px; animation: am-rise 0.8s var(--ease) both; animation-delay: calc(0.25s + var(--k) * 90ms); }
/* the circle holds every photo of its tier; one is on at a time and they cross-fade */
.am-pic { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: color-mix(in srgb, var(--am) 20%, #fff); box-shadow: 0 0 0 2px #fff, 0 0 0 3px color-mix(in srgb, var(--am) 45%, transparent); }
.am-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.15); transition: opacity 0.7s var(--ease), transform 1.4s var(--ease); }
.am-pic img.is-on { opacity: 1; transform: none; }
.am-now__notes b { font-weight: inherit; cursor: default; transition: color 0.4s; }
.am-now__notes b.is-on { color: color-mix(in srgb, var(--am) 70%, var(--ink)); }
.am-now__notes small { display: block; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
@keyframes am-rise { from { opacity: 0; transform: translateY(10px); } }
.am-now__buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px; margin-top: 12px; }
.am-now__price { font-family: var(--f-display); font-size: 1.6rem; }
.am-now__price small { font-family: var(--f-ui); font-size: 12px; color: var(--muted); }
.am-now__price s { color: var(--muted); font-size: 1.1rem; }

/* ---------- a love story ---------- */
.am-story { position: relative; background: #fff; }
.am-story__pin { position: sticky; top: 0; height: 100svh; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; padding: calc(var(--header-h) + clamp(18px, 4vh, 44px)) 0 clamp(20px, 4vh, 40px); }
.am-story__head { padding: 0 var(--gutter); }
.am-story__head h2 { margin-top: 8px; }
.am-story__track { display: flex; gap: clamp(18px, 3vw, 44px); align-items: center; padding: clamp(16px, 3vh, 32px) var(--gutter); will-change: transform; }
.am-scene { position: relative; flex: 0 0 auto; height: clamp(260px, calc(100svh - 330px), 620px); aspect-ratio: 4 / 5; display: block; color: #fff; }
.am-scene:nth-child(even) { transform: translateY(4svh); }
.am-scene__media { position: absolute; inset: 0; overflow: hidden; background: color-mix(in srgb, var(--c) 30%, #fff); }
.am-scene__media img { width: 118%; height: 100%; max-width: none; object-fit: cover; transform: translateX(calc(-8% + var(--p, 0) * -10%)) scale(1.02); transition: transform 1.2s var(--ease); }
.am-scene__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 6, 8, 0.6), transparent 48%); }
.am-scene__no { position: absolute; top: 14px; left: 16px; font-size: 11px; letter-spacing: 0.24em; }
.am-scene__line { position: absolute; left: 20px; right: 20px; bottom: 44px; font-size: clamp(1.5rem, 2.2vw, 2.1rem); line-height: 1.05; font-style: italic; }
.am-scene__name { position: absolute; left: 20px; bottom: 18px; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.85; }
.am-scene__name::after { content: ''; display: inline-block; width: 0; height: 1px; margin-left: 10px; vertical-align: middle; background: currentColor; transition: width 0.5s var(--ease); }
.am-scene:hover .am-scene__name::after, .am-scene:focus-visible .am-scene__name::after { width: 34px; }
.am-scene:hover .am-scene__media img { transform: translateX(calc(-8% + var(--p, 0) * -10%)) scale(1.07); }
.am-story__bar { margin: 0 var(--gutter); height: 1px; background: var(--line); }
.am-story__bar i { display: block; height: 100%; background: var(--gold-deep); transform-origin: left; transform: scaleX(0); }

.am-all { padding-top: clamp(40px, 7vh, 90px); }

/* ---------- phones: a smaller ring, the story is swiped ---------- */
@media (max-width: 899px) {
  .am-story__pin { position: static; height: auto; padding-top: clamp(40px, 7vh, 70px); }
  .am-story__track { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .am-story__track::-webkit-scrollbar { display: none; }
  .am-scene { height: auto; width: 72vw; scroll-snap-align: center; }
  .am-scene:nth-child(even) { transform: none; }
  .am-scene__media img { width: 100%; transform: none; }
  .am-scene:hover .am-scene__media img { transform: scale(1.04); }
}
@media (max-width: 699px) {
  .am-hero { grid-template-rows: auto minmax(240px, 42svh) auto; }
  .am-arrow { top: auto; bottom: 6%; translate: 0 50%; width: 40px; height: 40px; }
  .am-now__notes { gap: 10px 16px; }
  .am-now__notes li { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .am-hero, .am-hero h1 em, .am-now__name { transition: none; }
  .am-hero::before, .am-flacon.is-front img, .am-now__name.is-in span, .am-now__notes li { animation: none; }
  .am:not(.is-ready) .am-flacon img { opacity: 1; transform: none; }
}
