/* =========================================================
   SOCIAL MEDIA PAGE SECTIONS
   Everything below the hero banner, told as an evening at a
   grand hotel: the lift arrives at the social floor and its
   brass doors slide open on the reel, the figures play as four
   social stories, one after another, the discount is an invitation whose
   wax seal cracks before it opens like a book onto the film,
   and the three platforms hang as embroidered banners that
   unroll down the wallpaper.
   Motion is on these objects; the words stay fully legible.
   No black. Word reveals, buttons, the video poster and the
   FAQ (laid out as on Home and About) are shared with the
   About page (css/about-sections.css).
   Behaviour lives in js/social-sections.js. Without it, or
   with reduced motion, every object rests in its finished
   state: doors open, stories shown, card open, banners down.
   ========================================================= */

.sm-title,
.sm-intro,
.sm-stories,
.sm-offer,
.sm-hall {
  --ab-ink: #3d1030;
  --ab-ink-72: rgba(61, 16, 48, .72);
  --ab-ink-12: rgba(61, 16, 48, .12);
  --ab-pink: #c73689;
  --ab-pink-deep: #a32570;
  --ab-pink-wash: rgba(199, 54, 137, .18);
  --ab-brass: #c8b18c;
  --ab-white-20: rgba(255, 255, 255, .2);
  --ab-ease: cubic-bezier(.19, 1, .22, 1);
  --ab-space: clamp(56px, 6vw, 96px);
  --sm-brass-metal: linear-gradient(135deg, #f4ead8 0%, #d8c39c 40%, #b89c6c 72%, #e6d6b6 100%);
  --sm-slide: cubic-bezier(.65, 0, .25, 1);
}

/* shapes and gradients the stories and the seal share */
.sm-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---------- the title ---------- */
.sm-title {
  padding: clamp(40px, 5vw, 80px) 0 clamp(26px, 3vw, 44px);
  background: #fff;
}

.sm-title .sm-title__name {
  margin: 0;
  font-size: clamp(34px, 4.8vw, 72px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ab-ink);
}

.sm-title .sm-title__name em {
  font-style: italic;
  color: var(--ab-pink);
}

.sm-title .ab-crumb ul {
  flex-wrap: wrap;
  row-gap: 6px;
}

/* ---------- the intro: the lift arrives and its doors open on the reel ---------- */
.sm-intro {
  padding: clamp(40px, 5vw, 80px) 0 var(--ab-space);
  overflow: clip;
  background: linear-gradient(#fff, #fdf1f7);
}

.sm-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}

.sm-intro__stage {
  --lift: clamp(236px, 21vw, 310px);
  position: sticky;
  top: 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sm-lift {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* the floor indicator over the doors */
.sm-lift__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 9px 16px;
  border-radius: 999px;
  background: linear-gradient(#5e1643, #3d1030);
  box-shadow: 0 0 0 3px #d8c39c, 0 0 0 4px rgba(156, 130, 88, .7), 0 16px 24px -14px rgba(61, 16, 48, .6);
}

.sm-lift__floors {
  display: flex;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: floor;
}

.sm-lift__floors li {
  counter-increment: floor;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-family: var(--hm-body-font);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
  color: rgba(244, 234, 216, .5);
  box-shadow: inset 0 0 0 1px rgba(200, 177, 140, .45);
  transition: color .25s ease, background .25s ease, box-shadow .25s ease;
}

.sm-lift__floors li::before { content: counter(floor); }

.sm-lift__floors li.is-here {
  color: #3d1030;
  background: #f4ead8;
  box-shadow: 0 0 12px 2px rgba(244, 234, 216, .65);
}

/* the arrival lantern: an up arrow that glows when the lift is here */
.sm-lift__lantern {
  width: 0;
  height: 0;
  border-right: 8px solid transparent;
  border-bottom: 12px solid #ff8fc8;
  border-left: 8px solid transparent;
  filter: drop-shadow(0 0 6px #ff5ca8);
}

.sm-lift.is-live:not(.is-arrived) .sm-lift__lantern {
  border-bottom-color: rgba(244, 234, 216, .28);
  filter: none;
}

.sm-lift.is-arrived .sm-lift__head { animation: sm-ding 1s ease-out; }

@keyframes sm-ding {
  0% { box-shadow: 0 0 0 3px #d8c39c, 0 0 0 4px rgba(156, 130, 88, .7), 0 0 0 4px rgba(255, 143, 200, .7); }
  100% { box-shadow: 0 0 0 3px #d8c39c, 0 0 0 4px rgba(156, 130, 88, .7), 0 0 0 26px rgba(255, 143, 200, 0); }
}

/* the brass surround */
.sm-lift__frame {
  position: relative;
  width: var(--lift);
  padding: 12px 12px 0;
  border-radius: 12px 12px 0 0;
  background: var(--sm-brass-metal);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), 0 50px 80px -44px rgba(94, 22, 67, .75);
}

.sm-lift__frame::before {
  content: "";
  position: absolute;
  inset: 5px 5px 0;
  border: 1px solid rgba(156, 130, 88, .65);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  pointer-events: none;
}

.sm-lift__car {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  isolation: isolate;
  background: #5e1643;
}

.sm-lift__car video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* the doors slide into the walls on either side */
.sm-lift__door {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 50%;
  background:
    repeating-linear-gradient(45deg, rgba(156, 130, 88, .26) 0 1px, rgba(156, 130, 88, 0) 1px 17px),
    repeating-linear-gradient(-45deg, rgba(156, 130, 88, .26) 0 1px, rgba(156, 130, 88, 0) 1px 17px),
    var(--sm-brass-metal);
  pointer-events: none;
}

.sm-lift__door--left {
  left: 0;
  box-shadow: inset 0 0 0 9px rgba(232, 214, 182, .55), inset 0 0 0 10px rgba(156, 130, 88, .55), inset -2px 0 0 rgba(122, 96, 56, .7);
  transform: translateX(-101%);
}

.sm-lift__door--right {
  right: 0;
  box-shadow: inset 0 0 0 9px rgba(232, 214, 182, .55), inset 0 0 0 10px rgba(156, 130, 88, .55), inset 2px 0 0 rgba(122, 96, 56, .7);
  transform: translateX(101%);
}

.sm-lift.is-live:not(.is-open) .sm-lift__door { transform: none; }
.sm-lift.is-open .sm-lift__door { transition: transform 1.9s var(--sm-slide); }

.sm-lift__sill {
  position: relative;
  width: calc(var(--lift) + 26px);
  height: 12px;
  border-radius: 3px;
  background: var(--sm-brass-metal);
  box-shadow: 0 6px 12px -6px rgba(61, 16, 48, .5);
}

/* warm light from the car, spilling onto the floor once the doors part */
.sm-lift__glow {
  width: calc(var(--lift) + 26px);
  height: 64px;
  background: linear-gradient(rgba(255, 206, 232, .7), rgba(255, 206, 232, 0));
  clip-path: polygon(6% 0, 94% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.sm-lift.is-live:not(.is-open) .sm-lift__glow { opacity: 0; }
.sm-lift.is-open .sm-lift__glow { transition: opacity 1.4s ease .6s; }

.sm-intro .sm-intro__title {
  margin: 0 0 clamp(20px, 2.4vw, 30px);
  font-size: clamp(30px, 3.3vw, 48px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--ab-ink);
}

.sm-intro .sm-intro__title em {
  font-style: italic;
  color: var(--ab-pink);
}

.sm-intro .sm-intro__copy p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ab-ink-72);
}

.sm-intro .sm-intro__copy p.sm-intro__lede {
  font-size: clamp(17px, 1.4vw, 19px);
  font-weight: 500;
  line-height: 1.7;
  color: var(--ab-ink);
}

/* the site paints every <b> pink; here they read as plum, underlined in pink */
.sm-intro__copy b {
  font-weight: 700;
  color: var(--ab-ink);
  background: linear-gradient(transparent 64%, var(--ab-pink-wash) 0);
}

.sm-intro__copy a,
.sm-intro__copy a b { color: var(--ab-pink); }

/* ---------- the figures: four stories that play one after another ---------- */
@property --sm-spin {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.sm-stories {
  position: relative;
  padding: clamp(48px, 5.5vw, 88px) 0;
  overflow: clip;
  background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(166, 38, 122, .55), rgba(166, 38, 122, 0) 70%), linear-gradient(180deg, #5e1643 0%, #4a1236 100%);
}

/* two soft lights drifting slowly behind the cards */
.sm-stories::before,
.sm-stories::after {
  content: '';
  position: absolute;
  width: min(48vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  animation: sm-drift 18s ease-in-out infinite alternate;
}

.sm-stories::before {
  top: -34%;
  left: -14%;
  background: rgba(240, 122, 184, .3);
}

.sm-stories::after {
  right: -12%;
  bottom: -40%;
  background: rgba(255, 150, 200, .18);
  animation-direction: alternate-reverse;
}

@keyframes sm-drift {
  from { translate: 0 0; }
  to { translate: 9vw 7vw; }
}

.sm-stories .container {
  position: relative;
  z-index: 1;
}

.sm-stories .sm-stories__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* each figure is a story card */
.sm-story {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: clamp(40px, 3.8vw, 52px) clamp(12px, 1.4vw, 22px) clamp(28px, 3vw, 38px);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 24px;
  text-align: center;
  background: linear-gradient(165deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03));
  box-shadow: 0 30px 60px -34px rgba(34, 4, 24, .7);
  transition: opacity .9s ease, translate 1.2s var(--ab-ease), transform .8s var(--ab-ease), border-color .8s ease, box-shadow .8s ease;
}

/* the glow that lights the card while its story plays */
.sm-story::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 80% at 50% 0%, rgba(255, 179, 215, .24), rgba(255, 179, 215, 0) 70%);
  opacity: 0;
  transition: opacity .8s ease;
  pointer-events: none;
}

.sm-story.is-playing {
  transform: translateY(-10px);
  border-color: rgba(255, 214, 234, .36);
  box-shadow: 0 44px 70px -34px rgba(34, 4, 24, .85);
}

.sm-story.is-playing::before { opacity: 1; }

/* the story timer along the top: it fills while the card plays and stays full once seen */
.sm-story__timer {
  position: absolute;
  top: 16px;
  left: 18px;
  right: 18px;
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 255, 255, .2);
}

.sm-story__timer i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #fff;
  transform-origin: left center;
}

.is-live .sm-story__timer i { transform: scaleX(0); }
.is-live .sm-story.is-seen .sm-story__timer i { transform: scaleX(1); }
.is-live .sm-story.is-playing .sm-story__timer i { animation: sm-timer var(--sm-play, 3.4s) linear forwards; }

@keyframes sm-timer {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* the story ring, which turns while the card plays */
.sm-story__ring {
  position: relative;
  display: block;
  width: clamp(88px, 8.4vw, 116px);
  aspect-ratio: 1;
  padding: 3px;
  border-radius: 50%;
  background: conic-gradient(from var(--sm-spin), #f3c98b, #f07ab8, #c73689, #f07ab8, #f3c98b);
}

.sm-story.is-playing .sm-story__ring { animation: sm-spin 3s linear infinite, sm-glow 1.6s ease-out; }

@keyframes sm-spin {
  to { --sm-spin: 360deg; }
}

@keyframes sm-glow {
  0% { box-shadow: 0 0 0 0 rgba(240, 122, 184, .55); }
  100% { box-shadow: 0 0 0 18px rgba(240, 122, 184, 0); }
}

.sm-story__disc {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 3px solid #561540;
  border-radius: 50%;
  background: #fff7fb;
}

.sm-art {
  display: block;
  width: 64%;
  height: auto;
  overflow: visible;
}

.sm-art * {
  transform-box: fill-box;
  transform-origin: center;
}

.sm-art__line,
.sm-art__axis {
  fill: none;
  stroke: var(--ab-ink);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sm-art__ping {
  fill: none;
  stroke: var(--ab-pink);
  stroke-width: 2;
  opacity: 0;
}

.sm-story.is-playing .sm-art__ping { animation: sm-ping 1.5s ease-out infinite; }

@keyframes sm-ping {
  0% { opacity: .8; scale: 1; }
  100% { opacity: 0; scale: 2.4; }
}

/* leads: a message drawn in, someone typing, a new-message badge */
.sm-story--leads .sm-art__line {
  stroke-dasharray: 1;
  transition: stroke-dashoffset 1.2s cubic-bezier(.6, .1, .3, 1) .3s;
}

.sm-art__dot {
  --d: 0s;
  fill: var(--ab-pink);
  transition: scale .5s cubic-bezier(.34, 1.56, .64, 1) .9s;
}

.sm-art__dot:nth-child(3) { --d: .15s; transition-delay: 1s; }
.sm-art__dot:nth-child(4) { --d: .3s; transition-delay: 1.1s; }

.sm-art__badge {
  fill: var(--ab-pink);
  stroke: #fff7fb;
  stroke-width: 2.5;
  transition: scale .6s cubic-bezier(.34, 1.56, .64, 1) 1.35s;
}

.is-live .sm-story--leads:not(.is-in) .sm-art__line { stroke-dashoffset: 1; }
.is-live .sm-story--leads:not(.is-in) .sm-art__dot,
.is-live .sm-story--leads:not(.is-in) .sm-art__badge { scale: 0; }

.sm-story--leads.is-playing .sm-art__dot { animation: sm-typing 1.1s ease-in-out var(--d) infinite; }

@keyframes sm-typing {
  0%, 60%, 100% { translate: 0 0; }
  30% { translate: 0 -5px; }
}

/* happiness: a heart that fills to its figure and beats */
.sm-art__fill {
  translate: 0 calc(50px - var(--fill, .85) * 43.5px);
  transition: translate 1.9s cubic-bezier(.3, .7, .3, 1) .4s;
}

.is-live .sm-story--heart:not(.is-in) .sm-art__fill { translate: 0 58px; }

.sm-art__wave {
  fill: url(#sm-blush);
  animation: sm-wave 2.4s linear infinite;
}

.sm-art__wave--back {
  fill: #f7a8d0;
  opacity: .55;
  animation-duration: 3.4s;
  animation-direction: reverse;
}

@keyframes sm-wave {
  from { translate: 0 0; }
  to { translate: -32px 0; }
}

/* it beats about the middle of the picture, not the middle of the wide wave inside it */
.sm-art .sm-art__beat {
  transform-box: view-box;
  transform-origin: 50% 50%;
}

.sm-story--heart.is-playing .sm-art__beat { animation: sm-beat 1.5s ease-in-out 2; }

@keyframes sm-beat {
  0%, 30%, 60%, 100% { scale: 1; }
  15% { scale: 1.13; }
  45% { scale: 1.07; }
}

/* meta ads: bars rise, the trend climbs, a light runs up it */
.sm-art__bar {
  fill: #f6c2dc;
  transform-origin: center bottom;
  transition: scale .9s var(--ab-ease) .3s;
}

.sm-art__bar:nth-child(3) { transition-delay: .45s; }
.sm-art__bar:nth-child(4) { transition-delay: .6s; }

.sm-art__trend,
.sm-art__tip,
.sm-art__glint {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sm-art__trend {
  stroke: var(--ab-pink);
  stroke-width: 3;
  stroke-dasharray: 1;
  transition: stroke-dashoffset 1.1s cubic-bezier(.6, .1, .3, 1) .8s;
}

.sm-art__tip {
  stroke: var(--ab-pink);
  stroke-width: 3;
  transition: opacity .4s ease 1.75s;
}

.sm-art__glint {
  stroke: #fff;
  stroke-width: 3.4;
  stroke-dasharray: .12 1.2;
  stroke-dashoffset: .12;
  opacity: 0;
}

.is-live .sm-story--chart:not(.is-in) .sm-art__bar { scale: 1 0; }
.is-live .sm-story--chart:not(.is-in) .sm-art__trend { stroke-dashoffset: 1; }
.is-live .sm-story--chart:not(.is-in) .sm-art__tip { opacity: 0; }

.sm-story--chart.is-playing .sm-art__glint { animation: sm-glint 1.7s ease-in-out infinite; }

@keyframes sm-glint {
  0% { stroke-dashoffset: .12; opacity: 1; }
  80% { stroke-dashoffset: -1; opacity: 1; }
  100% { stroke-dashoffset: -1; opacity: 0; }
}

/* influencers: faces join one by one, ringed like stories */
.sm-art__face {
  --d: 0s;
  transition: translate .8s var(--ab-ease) .3s, opacity .6s ease .3s;
}

.sm-art__face:nth-child(2) { --d: .2s; transition-delay: .45s; }
.sm-art__face:nth-child(3) { --d: .4s; transition-delay: .6s; }

.sm-art__face circle:first-child {
  fill: #fff7fb;
  stroke: url(#sm-ring);
  stroke-width: 2.6;
}

.sm-art__head,
.sm-art__body { fill: var(--ab-ink); }

.sm-art__face:nth-child(2) .sm-art__head,
.sm-art__face:nth-child(2) .sm-art__body { fill: var(--ab-pink); }

.sm-art__plus { transition: scale .6s cubic-bezier(.34, 1.56, .64, 1) 1s; }

.sm-art__plus circle {
  fill: var(--ab-pink);
  stroke: #fff7fb;
  stroke-width: 2.5;
}

.sm-art__plus path {
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.is-live .sm-story--crowd:not(.is-in) .sm-art__face { opacity: 0; translate: -14px 0; }
.is-live .sm-story--crowd:not(.is-in) .sm-art__plus { scale: 0; }

.sm-story--crowd.is-playing .sm-art__face { animation: sm-hop 1.8s ease-in-out var(--d) infinite; }
.sm-story--crowd.is-playing .sm-art__plus { animation: sm-hop 1.8s ease-in-out .6s infinite; }

@keyframes sm-hop {
  0%, 40%, 100% { scale: 1; }
  20% { scale: 1.14; }
}

/* hearts float up from the ring while the story plays, like reactions on a live */
.sm-story__likes {
  position: absolute;
  right: 2%;
  bottom: 10%;
  width: 0;
  height: 0;
  pointer-events: none;
}

.sm-story__likes i {
  --d: 0s;
  --x: -16px;
  --r: -12deg;
  position: absolute;
  bottom: 0;
  left: -7px;
  width: var(--s, 16px);
  aspect-ratio: 1;
  background: var(--c, #ffb3d7);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21C5.5 16.4 2 12.7 2 8.6 2 5.5 4.4 3 7.4 3c1.9 0 3.6 1 4.6 2.6C13 4 14.7 3 16.6 3 19.6 3 22 5.5 22 8.6c0 4.1-3.5 7.8-10 12.4z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21C5.5 16.4 2 12.7 2 8.6 2 5.5 4.4 3 7.4 3c1.9 0 3.6 1 4.6 2.6C13 4 14.7 3 16.6 3 19.6 3 22 5.5 22 8.6c0 4.1-3.5 7.8-10 12.4z'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0;
}

.sm-story__likes i:nth-child(2) { --d: .5s; --x: 14px; --r: 14deg; --s: 12px; --c: #fff; }
.sm-story__likes i:nth-child(3) { --d: 1s; --x: -6px; --r: -6deg; --s: 19px; --c: #f07ab8; }
.sm-story__likes i:nth-child(4) { --d: 1.5s; --x: 20px; --r: 18deg; --s: 13px; --c: #f3c98b; }
.sm-story__likes i:nth-child(5) { --d: 2s; --x: -22px; --r: -16deg; --s: 15px; --c: #ffd6ea; }

.sm-story.is-playing .sm-story__likes i { animation: sm-float 2.4s cubic-bezier(.2, .6, .35, 1) var(--d) infinite; }

@keyframes sm-float {
  0% { opacity: 0; translate: 0 0; scale: .4; rotate: 0deg; }
  15% { opacity: 1; scale: 1; }
  50% { translate: calc(var(--x) * -.4) -54px; }
  100% { opacity: 0; translate: var(--x) -108px; scale: .9; rotate: var(--r); }
}

/* the figures stay plain white type: the motion is on the cards around them */
.sm-stories .sm-story__num {
  position: relative;
  margin-top: 24px;
  font-family: var(--hm-heading-font);
  font-size: clamp(34px, 3.1vw, 48px);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  color: #fff;
}

.sm-stories .sm-story__label {
  position: relative;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 240, 248, .82);
}

/* the cards arrive one after another */
.is-live .sm-story:not(.is-in) {
  opacity: 0;
  translate: 0 48px;
}

/* ---------- the offer: an invitation that opens like a book onto the film ---------- */
.sm-offer {
  padding: var(--ab-space) 0;
  overflow: clip;
  background: #fff;
}

.sm-invite {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1120px;
  margin: 0 auto;
  filter: drop-shadow(0 34px 34px rgba(94, 22, 67, .2));
}

.sm-invite__inside,
.sm-invite__base {
  position: relative;
  padding: clamp(34px, 4vw, 60px) clamp(28px, 3.6vw, 56px);
  background: #fffaf3;
}

/* a fine gold border on both pages */
.sm-invite__inside::before,
.sm-invite__base::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(200, 177, 140, .8);
  border-radius: 8px;
  pointer-events: none;
}

/* the left page is the back of the cover: it swings over from the right as the card opens */
.sm-invite__inside {
  border-radius: 16px 0 0 16px;
  transform-origin: right center;
  backface-visibility: hidden;
  background: linear-gradient(270deg, #f3e9e0 0, #fffaf3 34px);
}

.sm-invite__base {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.2vw, 28px);
  border-radius: 0 16px 16px 0;
  background: linear-gradient(90deg, #f3e9e0 0, #fffaf3 34px);
}

.sm-invite.is-live:not(.is-open) .sm-invite__inside { transform: perspective(2400px) rotateY(180deg); }
.sm-invite.is-open .sm-invite__inside { transition: transform 1.9s var(--sm-slide) .55s; }

.sm-offer .sm-invite__title {
  margin: 0;
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 500;
  line-height: 1.18;
  color: var(--ab-ink);
}

/* each sentence on its own lines, balanced so no word is left alone */
.sm-invite__title span {
  display: block;
  text-wrap: balance;
}

.sm-invite__list {
  display: grid;
  gap: 14px;
  margin: clamp(22px, 2.6vw, 32px) 0 0;
  padding: 0;
  list-style: none;
}

.sm-offer .sm-reason {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  font-size: clamp(19px, 1.7vw, 23px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ab-ink);
}

.sm-reason__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(200, 177, 140, .85);
}

.sm-reason__icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

/* the film, mounted in a gilt mat on the right page */
.sm-invite__film {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 0 0 5px #fff, 0 0 0 7px #d8c39c, 0 24px 34px -20px rgba(61, 16, 48, .55);
}

.sm-invite__film iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.sm-offer .sm-invite__poster {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #fff;
  cursor: pointer;
}

/* the thumbnail is a square film on a wide frame, so it is enlarged until the square fills the mat */
.sm-invite__poster img {
  position: absolute;
  top: 50%;
  left: -38.89%;
  width: 177.78%;
  max-width: none;
  height: auto;
  transform: translateY(-50%);
  transition: transform 1.6s var(--ab-ease);
}

.sm-invite__poster:hover img { transform: translateY(-50%) scale(1.03); }
.sm-invite__poster:focus { outline: none; }

.sm-invite__poster:focus-visible {
  outline: 3px solid var(--ab-brass);
  outline-offset: -3px;
}

.sm-invite__play {
  position: absolute;
  right: clamp(12px, 1.6vw, 20px);
  bottom: clamp(12px, 1.6vw, 20px);
  display: grid;
  place-items: center;
  width: clamp(52px, 4.6vw, 64px);
  aspect-ratio: 1 / 1;
  padding-left: 3px;
  border-radius: 50%;
  color: #fff;
  background: var(--ab-pink);
  animation: sm-pulse 2.6s ease-out infinite;
}

@keyframes sm-pulse {
  0% { box-shadow: 0 0 0 0 rgba(199, 54, 137, .55); }
  100% { box-shadow: 0 0 0 22px rgba(199, 54, 137, 0); }
}

/* the cover, lying over the right page until the card opens */
.sm-invite__front {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-radius: inherit;
  background: linear-gradient(150deg, #8a2060 0%, #6a1a4b 55%, #5e1643 100%);
  transform: perspective(2400px) rotateY(-180deg);
  transform-origin: left center;
  backface-visibility: hidden;
  pointer-events: none;
}

.sm-invite.is-live:not(.is-open) .sm-invite__front { transform: none; }
.sm-invite.is-open .sm-invite__front { transition: transform 1.9s var(--sm-slide) .55s; }

/* gold foil borders on the cover */
.sm-invite__front::before,
.sm-invite__front::after {
  content: "";
  position: absolute;
  border-radius: 8px;
  pointer-events: none;
}

.sm-invite__front::before {
  inset: 14px;
  border: 1px solid rgba(232, 214, 182, .85);
}

.sm-invite__front::after {
  inset: 20px;
  border: 1px solid rgba(232, 214, 182, .35);
}

.sm-flourish {
  width: min(58%, 220px);
  height: auto;
  color: #e6d6b6;
}

.sm-invite__base > .sm-flourish {
  position: relative;
  color: #c8b18c;
}

.sm-flourish path { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.sm-flourish .sm-flourish__gem { fill: currentColor; stroke: none; }

/* the wax seal, in two halves that crack apart as the card opens */
.sm-seal {
  position: relative;
  width: clamp(96px, 9vw, 124px);
  aspect-ratio: 1 / 1;
}

.sm-seal__half {
  position: absolute;
  inset: 0;
}

.sm-seal__half svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 8px 10px rgba(61, 16, 48, .45));
}

.sm-seal__half span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-bottom: 6%;
  font-family: var(--hm-heading-font);
  font-size: clamp(40px, 3.8vw, 54px);
  font-style: italic;
  font-weight: 600;
  line-height: 1;
  color: rgba(255, 228, 242, .9);
  text-shadow: 0 1px 0 rgba(122, 20, 82, .6);
}

.sm-seal__half--left { clip-path: polygon(0 0, 52% 0, 46% 22%, 54% 41%, 45% 60%, 53% 79%, 48% 100%, 0 100%); }
.sm-seal__half--right { clip-path: polygon(52% 0, 100% 0, 100% 100%, 48% 100%, 53% 79%, 45% 60%, 54% 41%, 46% 22%); }

.sm-invite.is-open .sm-seal__half--left { animation: sm-crack-left .8s cubic-bezier(.5, 0, .7, .4) both; }
.sm-invite.is-open .sm-seal__half--right { animation: sm-crack-right .8s cubic-bezier(.5, 0, .7, .4) both; }

@keyframes sm-crack-left {
  0% { transform: none; }
  25% { transform: translateX(-3px) rotate(-3deg); }
  100% { opacity: 0; transform: translate(-18px, 46px) rotate(-24deg); }
}

@keyframes sm-crack-right {
  0% { transform: none; }
  25% { transform: translateX(3px) rotate(3deg); }
  100% { opacity: 0; transform: translate(18px, 46px) rotate(24deg); }
}

/* ---------- the achievements: embroidered banners unroll down the wallpaper ---------- */
.sm-hall {
  padding: var(--ab-space) 0 calc(var(--ab-space) + 30px);
  overflow: clip;
  background: repeating-linear-gradient(90deg, #fbedf4 0 46px, #fdf5f9 46px 92px);
}

.sm-hall .sm-hall__title {
  margin: 0 0 clamp(44px, 5vw, 76px);
  font-size: clamp(36px, 4.6vw, 68px);
  font-weight: 500;
  line-height: 1.05;
  text-align: center;
  color: var(--ab-ink);
}

.sm-hall .sm-hall__title em {
  font-style: italic;
  color: var(--ab-pink);
}

.sm-hall .sm-banners {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 80px clamp(52px, 4.6vw, 66px);
  align-items: start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sm-banner {
  position: relative;
  margin: 0;
  padding-top: 14px;
}

/* the brass rod it hangs from, with ball finials */
.sm-banner__rod {
  position: absolute;
  z-index: 2;
  top: 0;
  left: -12px;
  right: -12px;
  height: 12px;
  border-radius: 6px;
  background: var(--sm-brass-metal);
  box-shadow: 0 5px 8px -4px rgba(61, 16, 48, .5);
}

.sm-banner__rod::before,
.sm-banner__rod::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fbf4e6, #c8b18c 60%, #9c8258);
}

.sm-banner__rod::before { left: -10px; }
.sm-banner__rod::after { right: -10px; }

.sm-banner__cloth {
  position: relative;
  padding: clamp(34px, 3.2vw, 46px) clamp(24px, 2.6vw, 36px) clamp(44px, 4vw, 58px);
  text-align: center;
  color: #fff;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 16px, rgba(61, 16, 48, .1) 16px 32px),
    linear-gradient(180deg, #7a1c52 0%, #64174a 55%, #521339 100%);
  clip-path: inset(0);
  box-shadow: 0 30px 40px -26px rgba(61, 16, 48, .7);
}

/* the gold embroidery around its edge */
.sm-banner__cloth::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(232, 214, 182, .75);
  outline: 1px solid rgba(232, 214, 182, .3);
  outline-offset: 4px;
  pointer-events: none;
}

.sm-banner__crest {
  display: inline-grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #fdf1f7;
  box-shadow: 0 0 0 3px #d8c39c, 0 0 0 6px rgba(232, 214, 182, .3);
}

.sm-banner__crest img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.sm-hall .sm-banner__name {
  margin: 0 0 12px;
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 600;
  line-height: 1.1;
  color: #fff;
}

.sm-hall .sm-banner__cloth p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.75;
  color: rgba(255, 244, 250, .9);
}

/* the weighted rod at the foot, which carries the roll down as it unfurls */
.sm-banner__weight {
  position: absolute;
  z-index: 2;
  left: -4%;
  right: -4%;
  top: calc(100% - 10px);
  height: 16px;
  border-radius: 8px;
  background: var(--sm-brass-metal);
  box-shadow: 0 6px 10px -5px rgba(61, 16, 48, .55);
}

.sm-banner__weight i {
  position: absolute;
  top: 100%;
  width: 12px;
  height: 38px;
  background: linear-gradient(#f0e3c8, #c8b18c 70%, #a88f63);
  clip-path: polygon(34% 0, 66% 0, 100% 100%, 0 100%);
  transform-origin: 50% 0;
  animation: sm-tassel 3.6s ease-in-out infinite;
}

.sm-banner__weight i:first-child { left: 16%; }
.sm-banner__weight i:last-child { right: 16%; animation-delay: -1.8s; }

@keyframes sm-tassel {
  0%, 100% { transform: rotate(6deg); }
  50% { transform: rotate(-6deg); }
}

.sm-hall.is-live .sm-banner:not(.is-unfurled) .sm-banner__cloth { clip-path: inset(0 0 100% 0); }
.sm-hall.is-live .sm-banner:not(.is-unfurled) .sm-banner__weight { top: 6px; }

.sm-banner.is-unfurled .sm-banner__cloth { transition: clip-path 1.9s cubic-bezier(.45, .05, .25, 1); }
.sm-banner.is-unfurled .sm-banner__weight { transition: top 1.9s cubic-bezier(.45, .05, .25, 1); }

/* ---------- smaller screens ---------- */
@media (max-width: 991px) {
  .sm-intro__grid { grid-template-columns: minmax(0, 1fr); }

  .sm-intro__stage {
    position: relative;
    top: auto;
    padding: clamp(10px, 3vw, 30px) 0 clamp(20px, 5vw, 40px);
  }

  .sm-hall .sm-banners {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
    margin: 0 auto;
  }

  .sm-stories .sm-stories__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 640px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  /* the card folds at the top instead: the reasons above, the film below */
  .sm-invite { grid-template-columns: minmax(0, 1fr); }
  .sm-invite__inside { border-radius: 16px 16px 0 0; transform-origin: center bottom; background: linear-gradient(0deg, #f3e9e0 0, #fffaf3 30px); }
  .sm-invite__base { border-radius: 0 0 16px 16px; background: linear-gradient(180deg, #f3e9e0 0, #fffaf3 30px); }
  .sm-invite__front { transform-origin: center top; transform: perspective(2400px) rotateX(180deg); }
  .sm-invite.is-live:not(.is-open) .sm-invite__inside { transform: perspective(2400px) rotateX(-180deg); }
}

@media (max-width: 575px) {
  .sm-stories .sm-stories__list { gap: 12px; }
  .sm-story { padding: 36px 10px 26px; border-radius: 20px; }
  .sm-story__timer { top: 14px; left: 14px; right: 14px; }
  .sm-stories .sm-story__num { margin-top: 20px; font-size: 30px; }
  .sm-stories .sm-story__label { font-size: 11px; letter-spacing: .1em; }
  .sm-invite__inside,
  .sm-invite__base { padding: 34px 24px; }
  .sm-offer .sm-reason { gap: 12px; font-size: 18px; }
  .sm-reason__icon { width: 46px; height: 46px; }
  .sm-reason__icon img { width: 30px; height: 30px; }

  /* room inside the screen for the rods' finials */
  .sm-hall .sm-banners { padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .sm-invite__play,
  .sm-art__wave,
  .sm-stories::before,
  .sm-stories::after,
  .sm-banner__weight i { animation: none; }
}


/* =========================================================
   ONE SIZE FOR EVERY BIG SECTION HEADING (2026-11-18)
   The intro title, each section title and the FAQ title share
   one size on all 19 service pages. The same two values are
   used in service-kit, digital, performance, revenue, seo and
   social sections CSS, so change them in all six together.
   The hero and the page-name band (*-title__name) keep their
   own sizes.
   ========================================================= */
.sm-intro .sm-intro__title,
.sm-offer .sm-invite__title,
.sm-hall .sm-hall__title,
.hm-faq.ab-faq .hm-faq-head h2 {
  font-size: clamp(34px, 4.2vw, 60px);
}

@media (max-width: 575px) {
  .sm-intro .sm-intro__title,
  .sm-offer .sm-invite__title,
  .sm-hall .sm-hall__title,
  .hm-faq.ab-faq .hm-faq-head h2 {
    font-size: clamp(28px, 7.8vw, 34px);
  }
}
