/* =========================================================
   Sadeem Salon — صالون سديم
   Mobile-first, RTL. Pink "glam" theme.
   ========================================================= */

:root {
  --cream: #fff6ee;
  --blush: #ffe4f1;
  --pink-200: #ffc2df;
  --pink-300: #ff9acb;
  --pink: #ff4fa3;
  --barbie: #e0218a;
  --magenta: #d0167a;
  --plum: #4a0d2e;
  --plum-soft: #7a3a5c;
  --gold: #ffd36b;

  --f-body: "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-display: "Lemonada", "Tajawal", sans-serif;
  --f-callig: "Aref Ruqaa", "Lemonada", serif;
  --f-script: "Pacifico", "Brush Script MT", cursive;

  --col: 480px;
  --gutter: 20px;
  --radius: 26px;
  --shadow: 0 18px 40px -18px rgba(208, 22, 122, .45);
  --ease: cubic-bezier(.2, .75, .2, 1);
  --bounce: cubic-bezier(.34, 1.56, .64, 1);

  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cdefs%3E%3Cmask id='h13' x='-13' y='-13' width='26' height='26' maskUnits='userSpaceOnUse'%3E%3Crect x='-13' y='-13' width='26' height='26' fill='%23fff'/%3E%3Ccircle r='2.6' fill='%23000'/%3E%3Ccircle r='1.2' fill='%23fff'/%3E%3C/mask%3E%3Cmask id='h28' x='-28' y='-28' width='56' height='56' maskUnits='userSpaceOnUse'%3E%3Crect x='-28' y='-28' width='56' height='56' fill='%23fff'/%3E%3Ccircle r='5.6' fill='%23000'/%3E%3Ccircle r='2.5' fill='%23fff'/%3E%3C/mask%3E%3Cmask id='h30' x='-30' y='-30' width='60' height='60' maskUnits='userSpaceOnUse'%3E%3Crect x='-30' y='-30' width='60' height='60' fill='%23fff'/%3E%3Ccircle r='6.0' fill='%23000'/%3E%3Ccircle r='2.7' fill='%23fff'/%3E%3C/mask%3E%3C/defs%3E%3Cg fill='none' stroke='%23000' stroke-width='20'%3E%3Cpath d='M-20 70 L0 50 C 33 17 67 17 100 50 C 133 83 167 83 200 50 L220 30' /%3E%3Cpath d='M-20 130 L0 150 C 33 183 67 183 100 150 C 133 117 167 117 200 150 L220 170' /%3E%3C/g%3E%3Cg fill='%23000'%3E%3Cg transform='translate%2850 100%29'%3E%3Cg mask='url%28%23h30%29'%3E%3Cellipse cx='0' cy='-15.6' rx='10.8' ry='15.6' transform='rotate%2810.0%29'/%3E%3Cellipse cx='0' cy='-15.6' rx='10.8' ry='15.6' transform='rotate%2882.0%29'/%3E%3Cellipse cx='0' cy='-15.6' rx='10.8' ry='15.6' transform='rotate%28154.0%29'/%3E%3Cellipse cx='0' cy='-15.6' rx='10.8' ry='15.6' transform='rotate%28226.0%29'/%3E%3Cellipse cx='0' cy='-15.6' rx='10.8' ry='15.6' transform='rotate%28298.0%29'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate%28150 0%29'%3E%3Cg mask='url%28%23h28%29'%3E%3Cellipse cx='0' cy='-14.6' rx='10.1' ry='14.6' transform='rotate%2840.0%29'/%3E%3Cellipse cx='0' cy='-14.6' rx='10.1' ry='14.6' transform='rotate%28112.0%29'/%3E%3Cellipse cx='0' cy='-14.6' rx='10.1' ry='14.6' transform='rotate%28184.0%29'/%3E%3Cellipse cx='0' cy='-14.6' rx='10.1' ry='14.6' transform='rotate%28256.0%29'/%3E%3Cellipse cx='0' cy='-14.6' rx='10.1' ry='14.6' transform='rotate%28328.0%29'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate%28150 200%29'%3E%3Cg mask='url%28%23h28%29'%3E%3Cellipse cx='0' cy='-14.6' rx='10.1' ry='14.6' transform='rotate%2840.0%29'/%3E%3Cellipse cx='0' cy='-14.6' rx='10.1' ry='14.6' transform='rotate%28112.0%29'/%3E%3Cellipse cx='0' cy='-14.6' rx='10.1' ry='14.6' transform='rotate%28184.0%29'/%3E%3Cellipse cx='0' cy='-14.6' rx='10.1' ry='14.6' transform='rotate%28256.0%29'/%3E%3Cellipse cx='0' cy='-14.6' rx='10.1' ry='14.6' transform='rotate%28328.0%29'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate%28100 100%29'%3E%3Cg mask='url%28%23h13%29'%3E%3Cellipse cx='0' cy='-6.8' rx='4.7' ry='6.8' transform='rotate%280.0%29'/%3E%3Cellipse cx='0' cy='-6.8' rx='4.7' ry='6.8' transform='rotate%2872.0%29'/%3E%3Cellipse cx='0' cy='-6.8' rx='4.7' ry='6.8' transform='rotate%28144.0%29'/%3E%3Cellipse cx='0' cy='-6.8' rx='4.7' ry='6.8' transform='rotate%28216.0%29'/%3E%3Cellipse cx='0' cy='-6.8' rx='4.7' ry='6.8' transform='rotate%28288.0%29'/%3E%3C/g%3E%3C/g%3E%3Ccircle cx='0' cy='100' r='5'/%3E%3Ccircle cx='200' cy='100' r='5'/%3E%3Ccircle cx='100' cy='0' r='5'/%3E%3Ccircle cx='100' cy='200' r='5'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--plum);
  background: var(--barbie);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* desktop: the phone-first page sits in a column over the groovy pattern */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--pink);
  -webkit-mask: var(--pattern) 0 0 / 220px repeat;
  mask: var(--pattern) 0 0 / 220px repeat;
  animation: pattern-drift 60s linear infinite;
  pointer-events: none;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 12px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.page {
  position: relative;
  max-width: var(--col);
  margin-inline: auto;
  background: var(--cream);
  overflow: hidden;
  overflow: clip;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .15), 0 30px 80px rgba(60, 0, 25, .45);
}

/* ---------- shared bits ---------- */
.section { position: relative; padding: 72px var(--gutter); }

.section__head { text-align: center; margin-bottom: 28px; }
.section__head h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(23px, 6.6vw, 29px);
  line-height: 1.5;
  color: var(--magenta);
}
.section__head h2 em { font-style: normal; display: block; color: var(--barbie); }
.section__head p { margin-top: 8px; color: var(--plum-soft); font-size: 15px; }
.section__head--light h2, .section__head--light p { color: #fff; }

.script {
  display: inline-block;
  font-family: var(--f-script);
  font-size: 22px;
  line-height: 1.3;
  color: var(--pink);
  transform: rotate(-4deg);
  margin-bottom: 4px;
}
.section__head--light .script { color: #fff; opacity: .9; }


/* buttons */
.btn {
  --bg: var(--barbie);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform .25s var(--bounce), box-shadow .25s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: scale(.96); }
.btn::after {
  /* glossy sweep */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .55) 45%, transparent 60%);
  transform: translateX(-120%);
  animation: sweep 4.5s ease-in-out infinite;
  z-index: -1;
}
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #ff5fae, var(--barbie) 55%, var(--magenta));
  box-shadow: 0 10px 24px -8px rgba(224, 33, 138, .7), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.btn--glass {
  color: var(--magenta);
  background: rgba(255, 255, 255, .7);
  border: 1.5px solid #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--light { color: var(--magenta); background: #fff; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .35); }
.btn--glass::after { display: none; }
.btn--soft { color: var(--magenta); background: var(--blush); }


/* ============ Loader ============ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: radial-gradient(120% 80% at 50% 30%, #ff8cc6, var(--barbie) 60%, var(--magenta));
  transition: opacity .6s ease, visibility .6s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner { display: grid; justify-items: center; gap: 14px; }
.loader__logo {
  width: min(62vw, 260px);
  fill: #fff;
  filter: drop-shadow(0 6px 18px rgba(120, 0, 50, .35));
  animation: write-in 1.3s var(--ease) both;
}
.loader__tag {
  font-family: var(--f-callig);
  font-size: 22px;
  color: #fff;
  animation: fade-up .8s .7s var(--ease) both;
}
.loader__hearts { display: flex; gap: 8px; }
.loader__hearts svg { width: 14px; height: 14px; color: #fff; animation: beat 1s ease-in-out infinite; }
.loader__hearts svg:nth-child(2) { animation-delay: .15s; }
.loader__hearts svg:nth-child(3) { animation-delay: .3s; }

/* ============ Top bar ============ */
.topbar {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 40;
  width: min(100%, var(--col));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) var(--gutter) 10px;
  transition: background .35s, box-shadow .35s, padding .35s;
}
.topbar.is-solid {
  background: rgba(255, 246, 238, .82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 6px 24px -14px rgba(208, 22, 122, .5);
}
.topbar__logo { opacity: 0; transform: translateY(-6px); transition: opacity .35s, transform .35s; }
.topbar.is-solid .topbar__logo, .menu-open .topbar__logo { opacity: 1; transform: none; }
.topbar__logo svg {
  width: 74px;
  fill: #fff;
  filter: drop-shadow(0 2px 6px rgba(208, 22, 122, .45));
  transition: fill .35s, filter .35s;
}
.topbar.is-solid .topbar__logo svg { fill: var(--barbie); filter: none; }
.topbar__status {
  margin-inline-start: auto;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .75);
  color: var(--magenta);
  white-space: nowrap;
}
.topbar__status::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-inline-end: 6px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 1px;
}
.topbar__status.is-open::before { background: #18b26b; box-shadow: 0 0 0 0 rgba(24, 178, 107, .6); animation: ping 1.8s infinite; }

.topbar__menu {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 16px -8px rgba(208, 22, 122, .7);
  display: grid;
  place-content: center;
  gap: 5px;
  z-index: 2;
}
.topbar__menu span {
  display: block;
  width: 20px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--barbie);
  transition: transform .35s var(--ease), opacity .2s;
}
.topbar__menu span:nth-child(2) { width: 14px; margin-inline-start: auto; }
.menu-open .topbar__menu span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-open .topbar__menu span:nth-child(2) { opacity: 0; }
.menu-open .topbar__menu span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.menu-open .topbar { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.menu-open .topbar__logo svg { fill: #fff; }

/* ============ Menu ============ */
.menu {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 39;
  width: min(100%, var(--col));
  height: 100dvh;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(96px + env(safe-area-inset-top)) 28px calc(28px + env(safe-area-inset-bottom));
  background: linear-gradient(160deg, #ff5fae, var(--barbie));
  color: #fff;
  clip-path: circle(0 at calc(100% - 0px) 0);
  clip-path: circle(0 at 43px 33px);
  visibility: hidden;
  transition: clip-path .7s var(--ease), visibility 0s .7s;
  overflow: auto;
}
.menu-open .menu { clip-path: circle(150% at 43px 33px); visibility: visible; transition: clip-path .7s var(--ease); }
.menu__pattern {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: .08;
  -webkit-mask: var(--pattern) 0 0 / 180px repeat;
  mask: var(--pattern) 0 0 / 180px repeat;
  pointer-events: none;
}
.menu__list { position: relative; display: grid; gap: 4px; }
.menu__list li {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity .4s, transform .5s var(--ease);
}
.menu-open .menu__list li {
  opacity: 1;
  transform: none;
  transition-delay: calc(.18s + var(--i) * .06s);
}
.menu__list a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 8px 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 23px;
  border-bottom: 1px dashed rgba(255, 255, 255, .25);
}
.menu__list small { margin-inline-start: auto; font-family: var(--f-script); font-weight: 400; font-size: 15px; opacity: .75; }
.menu__num { font-family: var(--f-body); font-size: 13px; opacity: .7; }
.menu__foot { position: relative; display: grid; gap: 14px; justify-items: start; margin-top: 28px; font-size: 14px; }
.menu__foot p { display: flex; align-items: center; gap: 6px; opacity: .9; }
.menu__foot p svg { width: 18px; height: 18px; }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: max(620px, 100svh);
  display: flex;
  flex-direction: column;
  padding-top: calc(74px + env(safe-area-inset-top));
  overflow: hidden;
  overflow: clip; /* hidden alone is still scrollable: focusing her photo shifted the hero */
  isolation: isolate;
}
.hero__sky {
  position: absolute;
  inset: -40px 0 0;
  z-index: -2;
  background: url("../img/clouds.webp") center bottom / cover no-repeat, linear-gradient(#ffc9e3, #ff92c8);
  transform: translateY(calc(var(--scroll, 0) * .25px));
}
.puff {
  position: absolute;
  z-index: -1;
  width: 130px;
  opacity: .95;
  pointer-events: none;
  animation: drift linear infinite;
}
.puff--1 { top: 22%; width: 120px; animation-duration: 38s; animation-delay: -8s; }
.puff--2 { top: 44%; width: 90px; animation-duration: 52s; animation-delay: -30s; opacity: .8; }
.puff--3 { top: 12%; width: 70px; animation-duration: 64s; animation-delay: -45s; opacity: .7; }

.sparkles svg {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--s);
  height: var(--s);
  color: #fff;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, .9));
  animation: twinkle 3.2s var(--d) ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  text-align: center;
  padding-inline: var(--gutter);
}
.hero__title { margin-top: 10px; }
.hero__logo {
  width: min(64vw, 280px);
  fill: url(#g-logo-shine);
  filter: drop-shadow(0 8px 20px rgba(208, 22, 122, .45));
  animation: write-in 1.4s .25s var(--ease) both;
}
.hero__script {
  margin-top: -6px;
  font-family: var(--f-script);
  font-size: clamp(26px, 8vw, 34px);
  color: var(--barbie);
  text-shadow: 0 2px 0 #fff, 0 6px 16px rgba(224, 33, 138, .35);
  transform: rotate(-5deg);
  animation: fade-up .9s .7s var(--ease) both;
}
.hero__tagline {
  margin-top: 4px;
  font-family: var(--f-callig);
  font-size: clamp(20px, 6vw, 25px);
  color: #fff;
  text-shadow: 0 2px 10px rgba(208, 22, 122, .55);
  animation: fade-up .9s .85s var(--ease) both;
}

.hero__stage {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 250px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.model {
  position: relative;
  display: block;
  /* scales with the screen height; the negative margin lets her lower body sink into the
     clouds so her head starts right under the tagline at any phone height */
  height: clamp(380px, calc(100svh - 160px), 720px);
  aspect-ratio: 2 / 3;
  margin-bottom: -143px;
  animation: rise 1.4s .35s var(--bounce) both;
}
.model__float { position: relative; display: block; height: 100%; animation: float 6s ease-in-out infinite; }
.model__hop { position: relative; display: block; height: 100%; }
.model__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 34px rgba(208, 22, 122, .38));
  -webkit-user-drag: none;
  user-select: none;
}
.model__halo {
  /* soft light behind her head */
  position: absolute;
  top: -4%;
  left: 50%;
  width: 120%;
  aspect-ratio: 1;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .9), rgba(255, 228, 241, .55) 35%, rgba(255, 182, 217, 0) 65%);
  animation: glow 4.5s ease-in-out infinite;
  pointer-events: none;
}
.model__shine {
  /* a glint that sweeps across her, clipped to her silhouette */
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .55) 48%, rgba(255, 255, 255, 0) 58%) 160% 0 / 260% 100% no-repeat;
  -webkit-mask: url("../img/sadeem-model-mask.png") center / contain no-repeat;
  mask: url("../img/sadeem-model-mask.png") center / contain no-repeat;
  mix-blend-mode: soft-light;
  animation: glint 7s 2.4s ease-in-out infinite;
  pointer-events: none;
}
.model__sparkles svg {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--s);
  height: var(--s);
  color: #fff;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, .9));
  animation: twinkle 3s var(--d) ease-in-out infinite;
  pointer-events: none;
}
/* the hop runs on an inner layer so it composes with the idle float */
.model.is-happy .model__hop { animation: hop .7s var(--bounce); }

.hero__clouds {
  position: absolute;
  bottom: -70px;
  left: 50%;
  z-index: 3;
  width: 150%;
  max-width: none;
  transform: translateX(-50%);
  pointer-events: none;
}
.hero__cta {
  position: absolute;
  bottom: calc(22px + env(safe-area-inset-bottom));
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-inline: var(--gutter);
  animation: fade-up .9s 1.1s var(--ease) both;
}
.hero__cta .btn { flex: 1; max-width: 210px; padding-inline: 12px; font-size: 15px; }

/* hold the hero entrance until the loader lifts */
.js:not(.is-ready) .hero,
.js:not(.is-ready) .hero * { animation-play-state: paused !important; }

/* ============ Ribbons ============ */
.ribbons {
  position: relative;
  height: 150px;
  margin-top: -8px;
  background: var(--cream);
  overflow: hidden;
}
.ribbon {
  position: absolute;
  left: -10%;
  width: 120%;
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
  direction: ltr;
}
.ribbon--a { top: 22px; background: var(--barbie); color: #fff; transform: rotate(-4deg); z-index: 2; box-shadow: 0 8px 20px -10px rgba(208, 22, 122, .6); }
.ribbon--b { top: 76px; background: var(--pink-200); color: var(--magenta); transform: rotate(3deg); }
.ribbon__track {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-inline-end: 18px;
  animation: marquee 22s linear infinite;
}
.ribbon--b .ribbon__track { animation-direction: reverse; animation-duration: 26s; }
.ribbon span { font-family: var(--f-display); font-weight: 700; font-size: 17px; }
.ribbon span[lang="en"] { font-family: var(--f-script); font-weight: 400; font-size: 20px; }
.ribbon i { font-style: normal; color: var(--gold); }
.ribbon--b i { color: var(--barbie); }

/* ============ About ============ */
.about { padding-top: 40px; }

.polaroids {
  position: relative;
  height: 322px;
  margin: 36px auto 30px;
  max-width: 360px;
}
.polaroid {
  position: absolute;
  top: 0;
  width: 46%;
  margin: 0;
  padding: 8px 8px 0;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 16px 30px -14px rgba(122, 20, 70, .55);
  transform: rotate(var(--r));
  transition: transform .5s var(--bounce);
}
.polaroid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 3px; }
.polaroid figcaption { padding: 4px 0 6px; text-align: center; font-family: var(--f-display); font-size: 13px; font-weight: 700; color: var(--magenta); }
.polaroid figcaption[lang="en"] { font-family: var(--f-script); font-weight: 400; font-size: 15px; }
.polaroid:nth-child(1) { right: 0; top: 12px; z-index: 2; }
.polaroid:nth-child(2) { left: 0; top: 0; z-index: 2; }
.polaroid:nth-child(3) { right: 28%; top: 72px; z-index: 1; width: 44%; }
.polaroid:active { transform: rotate(0) scale(1.05); z-index: 5; }
.is-in .polaroid { animation: tilt 6s ease-in-out infinite; }
.is-in .polaroid:nth-child(2) { animation-delay: -2s; }
.is-in .polaroid:nth-child(3) { animation-delay: -4s; }
.polaroids__heart {
  position: absolute;
  left: -2%;
  bottom: 30px;
  width: 44px;
  height: 44px;
  color: var(--pink);
  z-index: 4;
  filter: drop-shadow(0 6px 10px rgba(224, 33, 138, .4));
  animation: beat 1.4s ease-in-out infinite;
}

/* ============ Services ============ */
.services {
  background: linear-gradient(170deg, #ff6fb5, var(--barbie) 55%, var(--magenta));
  color: #fff;
  padding-inline: 0;
  overflow: hidden;
}
.services__pattern, .bridal__pattern, .footer__pattern {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: .1;
  -webkit-mask: var(--pattern) 0 0 / 170px repeat;
  mask: var(--pattern) 0 0 / 170px repeat;
  animation: pattern-drift 50s linear infinite;
  pointer-events: none;
}
.services .section__head { padding-inline: var(--gutter); }

.svc-rail {
  position: relative;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px var(--gutter) 26px;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.svc-rail::-webkit-scrollbar { display: none; }
.svc {
  flex: 0 0 76%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding: 14px 14px 18px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--plum);
  box-shadow: 0 22px 40px -22px rgba(74, 13, 46, .75);
}
.svc__art {
  position: relative;
  display: grid;
  place-items: center;
  height: 150px;
  margin-bottom: 14px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .55), transparent 40%),
    linear-gradient(140deg, var(--c1), var(--c2));
  overflow: hidden;
}
.svc__art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: .16;
  -webkit-mask: var(--pattern) 0 0 / 120px repeat;
  mask: var(--pattern) 0 0 / 120px repeat;
}
.svc__icon {
  position: relative;
  width: 92px;
  height: 92px;
  color: #fff;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .18));
  animation: bob 3.6s ease-in-out infinite;
}
.svc:nth-child(even) .svc__icon { animation-delay: -1.8s; }
/* cards with a photo: the photo fills the art area, the icon becomes a small badge on it */
.svc__art.has-photo { background: var(--blush); }
.svc__art.has-photo::before { display: none; }
.svc__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc__art.has-photo .svc__icon {
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: 42px;
  height: 42px;
  padding: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--c2);
  filter: none;
  animation: none;
  box-shadow: 0 6px 14px -6px rgba(74, 13, 46, .45);
}
.svc__art.has-photo .svc__num {
  padding: 1px 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .9);
  color: var(--magenta);
  opacity: 1;
}
.svc__num {
  position: absolute;
  top: 10px;
  right: 14px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  opacity: .9;
}
.svc__en { font-family: var(--f-script); color: var(--pink); font-size: 17px; line-height: 1.2; }
.svc h3 { font-family: var(--f-display); font-size: 20px; color: var(--magenta); line-height: 1.6; flex: 1; }
.svc__more {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--blush);
  color: var(--magenta);
  font-weight: 800;
  font-size: 14.5px;
  transition: background .25s, color .25s, transform .25s var(--bounce);
}
.svc__more svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.svc__more:active { transform: scale(.97); }
.svc__more:hover { background: var(--barbie); color: #fff; }
.svc__more:hover svg { transform: translateX(-4px); }

.svc-dots { display: flex; justify-content: center; gap: 6px; }
.svc-dots span { width: 7px; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .45); transition: width .35s var(--ease), background .35s; }
.svc-dots span.is-active { width: 24px; background: #fff; }

.price-note {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px var(--gutter) 0;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .35);
  font-size: 14.5px;
  line-height: 1.5;
}
.price-note svg { width: 30px; height: 30px; flex: none; color: #fff; }
.price-note .price-note__arrow { width: 20px; height: 20px; margin-inline-start: auto; }

/* ============ Bridal ============ */
.bridal {
  position: relative;
  padding: 80px var(--gutter);
  background: linear-gradient(170deg, var(--blush), var(--pink-200));
  color: var(--plum);
  overflow: hidden;
}
.bridal__pattern { opacity: .5; }
.bridal__inner { position: relative; }
.bridal__head { text-align: center; }
.bridal__head h2 { font-family: var(--f-display); font-size: clamp(25px, 7.4vw, 32px); line-height: 1.5; color: var(--magenta); }
.vip {
  display: inline-block;
  padding: 0 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffe7a3, var(--gold) 50%, #e9a93b);
  color: var(--magenta);
  font-family: var(--f-body);
  font-weight: 800;
  font-size: .7em;
  vertical-align: middle;
  transform: rotate(-6deg);
  box-shadow: 0 6px 14px -6px rgba(208, 22, 122, .45);
}
.bridal__tiara {
  position: relative;
  width: 170px;
  height: 150px;
  margin: 18px auto 10px;
  display: grid;
  place-items: center;
}
.bridal__tiara::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 211, 107, .45), transparent 65%);
  animation: glow 3s ease-in-out infinite;
}
.bridal__tiara-icon {
  position: relative;
  width: 130px;
  height: 130px;
  color: var(--gold);
  filter: drop-shadow(0 10px 18px rgba(208, 22, 122, .3));
  animation: bob 4s ease-in-out infinite;
}
.tw { position: absolute; color: var(--pink); animation: twinkle 2.6s ease-in-out infinite; }
.tw--1 { width: 22px; top: 6px; right: 10px; }
.tw--2 { width: 14px; top: 40px; left: 4px; animation-delay: .9s; }
.tw--3 { width: 18px; bottom: 10px; right: 22px; animation-delay: 1.7s; }

.steps { display: grid; gap: 14px; margin: 30px 0; counter-reset: s; }
.steps li {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 28px -20px rgba(208, 22, 122, .6);
}
.steps__n {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--barbie);
  color: #fff;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
}
.steps h3 { font-family: var(--f-display); font-size: 16px; line-height: 1.6; color: var(--magenta); }
.bridal__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ============ Hair colours: polaroid deck ============ */
.colors { background: linear-gradient(var(--cream), var(--blush)); overflow: hidden; overflow: clip; }
.deck {
  position: relative;
  height: 330px;
  margin-top: 8px;
  touch-action: pan-y;          /* horizontal swipes are ours, vertical scroll stays native */
  user-select: none;
  -webkit-user-select: none;
  outline-offset: 6px;
}
.pola {
  /* JS sets --x / --r / --s / --z / --o from the card's distance to the front card */
  position: absolute;
  top: 10px;
  left: 50%;
  width: 196px;
  margin: 0 0 0 -98px;
  padding: 9px 9px 0;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 18px 34px -16px rgba(122, 20, 70, .55);
  transform: translateX(var(--x, 0)) rotate(var(--r, 0deg)) scale(var(--s, 1));
  opacity: var(--o, 1);
  z-index: var(--z, 1);
  transition: transform .7s var(--bounce), opacity .5s ease, box-shadow .5s;
  cursor: pointer;
}
.pola.is-front { box-shadow: 0 26px 44px -18px rgba(122, 20, 70, .7); cursor: default; }
.pola__in { position: relative; display: block; }
.pola.is-front .pola__in { animation: tilt-soft 5s ease-in-out infinite; }
.pola img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 3px;
  -webkit-user-drag: none;
  pointer-events: none;
}
.pola__in::after {
  /* glossy light that slides over the hair photo */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  aspect-ratio: 3 / 4;
  border-radius: 3px;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .5) 48%, transparent 60%) 160% 0 / 260% 100% no-repeat;
  opacity: 0;
  pointer-events: none;
}
.pola.is-front .pola__in::after { opacity: 1; animation: glint 4.5s 1s ease-in-out infinite; }
.pola figcaption {
  padding: 6px 0 9px;
  text-align: center;
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--magenta);
}
.pola figcaption[lang="en"] { font-family: var(--f-script); font-weight: 400; font-size: 18px; }
.pola.is-pop .pola__in { animation: pop-card .6s var(--bounce); }
.pola.is-front.is-pop .pola__in { animation: pop-card .6s var(--bounce), tilt-soft 5s .6s ease-in-out infinite; }

.deck__heart {
  position: absolute;
  bottom: 18px;
  left: calc(50% - 128px);
  z-index: 20;
  width: 46px;
  height: 46px;
  color: var(--pink);
  filter: drop-shadow(0 6px 10px rgba(224, 33, 138, .45));
  animation: beat 1.4s ease-in-out infinite;
  pointer-events: none;
}
.deck__spark { position: absolute; z-index: 20; color: var(--gold); pointer-events: none; animation: twinkle 2.8s ease-in-out infinite; }
.deck__spark--1 { width: 22px; height: 22px; top: 2px; right: calc(50% - 122px); }
.deck__spark--2 { width: 14px; height: 14px; top: 60px; left: calc(50% - 116px); animation-delay: 1.3s; }

.deck__nav { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; }
.deck__btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: var(--barbie);
  box-shadow: 0 6px 14px -8px rgba(208, 22, 122, .7);
  transition: transform .25s var(--bounce);
}
.deck__btn:active { transform: scale(.9); }
.deck__btn svg { width: 22px; height: 22px; }
.deck__dots { display: flex; }
.deck__dot { display: grid; place-items: center; min-width: 24px; height: 28px; padding: 0 2px; }
.deck__dot::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: var(--pink-200); transition: width .35s var(--ease), background .35s; }
.deck__dot.is-active::before { width: 22px; background: var(--barbie); }
.deck__play {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--magenta);
}
.deck__play svg { width: 16px; height: 16px; }

.deck__info { margin-top: 16px; text-align: center; }
.deck__info h3 { font-family: var(--f-display); font-size: 22px; color: var(--magenta); line-height: 1.5; }
.deck__info.is-swap > * { animation: fade-up .5s var(--ease) both; }
.deck__cta { display: flex; width: 100%; margin-top: 16px; }
.deck__note { margin-top: 10px; text-align: center; font-size: 12.5px; color: var(--plum-soft); opacity: .8; }

/* ============ Our work: nails gallery ============ */
.work {
  /* a pink sky that picks up where the colours section ends and sinks into a cloud bank */
  background: linear-gradient(var(--blush), #ffc9e3 45%, #ff9fcf);
  padding-top: 32px;
  padding-bottom: 104px;
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
}
.work__puff--1 { top: 64px; width: 110px; animation-duration: 44s; animation-delay: -10s; }
.work__puff--2 { top: 48%; width: 84px; animation-duration: 58s; animation-delay: -34s; opacity: .8; }
.work__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 12px;
  max-width: 400px;
  margin-inline: auto;
  padding-bottom: 40px;
}
/* the second column sits a little lower, like a scrapbook page */
.work__item:nth-child(odd) { --r: -1.6deg; }
.work__item:nth-child(even) { --r: 1.6deg; position: relative; top: 40px; }
.work__item:nth-child(2) { --fd: -1.5s; --gd: 1.2s; }
.work__item:nth-child(3) { --fd: -3s; --gd: 2.4s; }
.work__item:nth-child(4) { --fd: -4.5s; --gd: 3.6s; }
.work__item:nth-child(5) { --fd: -2.2s; --gd: 4.8s; }
.work__item:nth-child(6) { --fd: -3.7s; }
.work__card {
  position: relative;
  display: block;
  width: 100%;
  padding: 6px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 34px -18px rgba(122, 20, 70, .6);
  transform: rotate(var(--r));
}
.work__item.is-in .work__card { animation: tilt 6s var(--fd, 0s) ease-in-out infinite; }
.work__open img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 18px; background: var(--blush); }
.work__open::after {
  /* a glossy light that crosses each photo in turn */
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 18px;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .45) 48%, transparent 60%) 160% 0 / 260% 100% no-repeat;
  pointer-events: none;
}
.work__item.is-in .work__open::after { animation: glint 6s var(--gd, 0s) ease-in-out infinite; }
.work__name {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .92);
  color: var(--magenta);
  font-family: var(--f-display);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
  box-shadow: 0 6px 14px -8px rgba(74, 13, 46, .5);
}
@media (max-width: 310px) { .work__name { padding-inline: 8px; font-size: 11px; } }
.work__more-in {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  aspect-ratio: 3 / 4;
  padding: 12px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--barbie), var(--magenta) 45%);
  color: #fff;
  text-align: center;
}
.work__more-in::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: .08;
  -webkit-mask: var(--pattern) 0 0 / 120px repeat;
  mask: var(--pattern) 0 0 / 120px repeat;
}
.work__more-ico {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .45);
}
.work__more-ico svg { width: 28px; height: 28px; }
.work__more-text { position: relative; font-family: var(--f-display); font-size: 15px; font-weight: 700; line-height: 1.5; }
.work__more-handle { position: relative; font-size: 13px; font-weight: 700; }
.work__clouds {
  position: absolute;
  bottom: -64px;
  left: 50%;
  z-index: 0;
  width: 160%;
  max-width: none;
  transform: translateX(-50%);
  pointer-events: none;
}

/* ============ Visit ============ */
.visit { background: var(--cream); padding-bottom: 60px; }
/* the directions video: cover image until it is tapped, then native controls */
.route-video {
  position: relative;
  max-width: 360px;
  margin: 0 auto 26px;
  aspect-ratio: 9 / 16;
  border: 6px solid #fff;
  border-radius: 32px;
  overflow: hidden;
  background: var(--blush);
  box-shadow: 0 22px 44px -26px rgba(208, 22, 122, .7);
}
.route-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.route-video__play {
  position: absolute;
  left: 50%;
  bottom: 13%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 24px 8px 8px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  white-space: nowrap;
  background: linear-gradient(135deg, #ff5fae, var(--barbie) 55%, var(--magenta));
  box-shadow: 0 12px 26px -10px rgba(160, 10, 80, .75);
  transform: translateX(-50%);
  transition: opacity .3s, transform .25s var(--bounce);
}
.route-video__play::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  animation: ring 2.2s ease-out infinite;
}
.route-video__play:active { transform: translateX(-50%) scale(.95); }
.route-video__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--barbie); }
.route-video__icon svg { width: 18px; height: 18px; }
.route-video.is-playing .route-video__play { opacity: 0; pointer-events: none; }
.visit__card {
  border-radius: 30px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 22px 44px -28px rgba(208, 22, 122, .7);
}
.visit__map { width: 100%; height: auto; }
.visit__pin-body { animation: pin-bounce 1.8s var(--ease) infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.visit__pin-shadow { animation: pin-shadow 1.8s var(--ease) infinite; transform-box: fill-box; transform-origin: 50% 50%; }
.visit__info { display: grid; gap: 14px; padding: 20px 18px 6px; }
.visit__info li { display: flex; gap: 12px; align-items: flex-start; }
.visit__ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; background: var(--blush); color: var(--barbie); }
.visit__ico svg { width: 20px; height: 20px; }
.visit__info strong { display: block; font-size: 14px; color: var(--magenta); line-height: 1.5; }
.visit__info p { font-size: 15px; line-height: 1.6; }
.status {
  display: inline-block;
  margin-inline-start: 6px;
  padding: 1px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: var(--blush);
  color: var(--magenta);
  vertical-align: 1px;
}
.status.is-open { background: #e3f8ee; color: #138a54; }
.visit__actions { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; padding: 18px; }
.visit__actions .btn { padding-inline: 12px; }

/* ============ Footer ============ */
.footer {
  position: relative;
  padding: 56px var(--gutter) calc(120px + env(safe-area-inset-bottom));
  background: linear-gradient(160deg, var(--pink), var(--barbie));
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.footer__pattern { opacity: .12; }
.footer__inner { position: relative; display: grid; justify-items: center; gap: 10px; }
.footer__logo { width: 150px; fill: #fff; }
.footer__tag { font-family: var(--f-callig); font-size: 22px; }
.footer__ig { display: grid; place-items: center; width: 46px; height: 46px; margin: 6px 0; border-radius: 50%; background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .35); }
.footer__ig svg { width: 22px; height: 22px; }
.footer__copy { font-size: 13px; opacity: .75; }

/* ============ Dock ============ */
.dock {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 30;
  width: min(100% - 24px, var(--col) - 24px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
  padding: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  box-shadow: 0 14px 34px -12px rgba(122, 20, 70, .55), inset 0 0 0 1px rgba(255, 255, 255, .9);
  transform: translate(-50%, 140%);
  transition: transform .5s var(--bounce);
}
.dock.is-shown { transform: translate(-50%, 0); }
.menu-open .dock { transform: translate(-50%, 140%); }
.dock__item { display: grid; justify-items: center; gap: 1px; font-size: 11.5px; font-weight: 700; color: var(--magenta); line-height: 1.3; }
.dock__item svg { width: 22px; height: 22px; }
.dock__book {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #ff5fae, var(--barbie) 55%, var(--magenta));
  box-shadow: 0 8px 18px -8px rgba(224, 33, 138, .8);
}
.dock__book::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(224, 33, 138, .55);
  animation: ring 2.2s ease-out infinite;
}
.dock__book svg { width: 16px; height: 16px; animation: beat 1.2s ease-in-out infinite; }

/* ============ Sheet ============ */
.sheet { position: fixed; inset: 0; z-index: 60; visibility: hidden; transition: visibility 0s .5s; }
.sheet.is-open { visibility: visible; transition: none; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(74, 13, 46, .5); opacity: 0; transition: opacity .4s; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.sheet.is-open .sheet__backdrop { opacity: 1; }
.sheet__panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(100%, var(--col));
  max-height: 86dvh;
  overflow: auto;
  padding: 12px 22px calc(22px + env(safe-area-inset-bottom));
  border-radius: 30px 30px 0 0;
  background: var(--cream);
  transform: translate(-50%, 105%);
  transition: transform .5s var(--ease);
  outline: none;
}
.sheet.is-open .sheet__panel { transform: translate(-50%, 0); }
.sheet__grip { display: block; width: 44px; height: 5px; margin: 0 auto 14px; border-radius: 9px; background: var(--pink-200); }
.sheet__close { position: absolute; top: 16px; left: 16px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--magenta); box-shadow: 0 4px 12px -6px rgba(208, 22, 122, .5); }
.sheet__close svg { width: 18px; height: 18px; }
.sheet__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.sheet__art { flex: none; display: grid; place-items: center; width: 70px; height: 70px; border-radius: 22px; background: linear-gradient(140deg, var(--c1, var(--pink-300)), var(--c2, var(--barbie))); }
.sheet__art svg { width: 44px; height: 44px; color: #fff; }
.sheet__en { font-family: var(--f-script); color: var(--pink); font-size: 17px; }
.sheet__head h3 { font-family: var(--f-display); font-size: 22px; color: var(--magenta); line-height: 1.5; }
.sheet__body p { color: var(--plum-soft); }
.checks { display: grid; gap: 8px; margin-top: 14px; }
.checks li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; background: #fff; font-weight: 700; font-size: 15px; }
.checks li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--barbie) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.sheet__link { display: inline-block; margin-top: 14px; font-weight: 800; color: var(--barbie); border-bottom: 2px dotted currentColor; }
.sheet__actions { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; margin-top: 20px; }
.sheet__actions .btn { padding-inline: 12px; }
body.is-locked { overflow: hidden; }

/* ============ Work viewer ============ */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  grid-template-columns: minmax(0, 1fr);
  padding: 16px;
  visibility: hidden;
  transition: visibility 0s .45s;
  touch-action: pinch-zoom; /* one-finger swipes are ours; the page behind must not scroll */
}
.viewer.is-open { visibility: visible; transition: none; }
.viewer:not(.is-open) { pointer-events: none; } /* the fading layer must not swallow taps */
.viewer__backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 95, 174, .72), rgba(224, 33, 138, .78));
  opacity: 0;
  transition: opacity .4s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.viewer.is-open .viewer__backdrop { opacity: 1; }
.viewer__panel {
  position: relative;
  /* as wide as the screen allows while the photo, caption and buttons still fit its height */
  width: min(100%, 420px, calc((100vh - 190px) * .75));
  width: min(100%, 420px, calc((100dvh - 190px) * .75));
  min-width: min(100%, 300px); /* short or landscape screens: keep the buttons usable, crop the photo instead */
  opacity: 0;
  transform: translateY(24px) scale(.9);
  transition: opacity .35s, transform .5s var(--bounce);
  outline: none;
}
.viewer.is-open .viewer__panel { opacity: 1; transform: none; }
.viewer__figure {
  margin: 0;
  padding: 7px 7px 0;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55);
  user-select: none;
  -webkit-user-select: none;
}
.viewer__img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  max-height: calc(100vh - 204px);
  max-height: calc(100dvh - 204px);
  border-radius: 22px;
  background: var(--blush);
  -webkit-user-drag: none;
}
.viewer__img.is-swap { animation: viewer-in .45s var(--ease); }
.viewer__cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px 11px;
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--magenta);
}
.viewer__count { font-family: var(--f-body); font-size: 13px; font-weight: 800; color: var(--magenta); }
.viewer__close {
  position: absolute;
  top: -12px;
  left: -8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: var(--magenta);
  box-shadow: 0 6px 16px -6px rgba(74, 13, 46, .6);
}
.viewer__close svg { width: 18px; height: 18px; }
.viewer__nav { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.viewer__btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: var(--barbie);
  box-shadow: 0 8px 18px -10px rgba(74, 13, 46, .7);
  transition: transform .25s var(--bounce);
}
.viewer__btn:active { transform: scale(.9); }
.viewer__btn svg { width: 22px; height: 22px; }
.viewer__book { flex: 1; min-height: 48px; padding-inline: 12px; font-size: 15px; }
@media (max-width: 330px) {
  .viewer__nav { gap: 6px; }
  .viewer__btn { width: 42px; height: 42px; }
  .viewer__book { gap: 6px; padding-inline: 6px; font-size: 13px; }
}

/* ============ Tap hearts ============ */
.fx { position: fixed; inset: 0; z-index: 80; pointer-events: none; overflow: hidden; }
.fx span {
  position: absolute;
  width: var(--sz, 16px);
  height: var(--sz, 16px);
  margin: calc(var(--sz, 16px) / -2) 0 0 calc(var(--sz, 16px) / -2);
  color: var(--c, var(--pink));
  animation: burst .9s var(--ease) forwards;
}
.fx svg { width: 100%; height: 100%; }

/* ============ Reveal on scroll ============ */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.js [data-reveal="zoom"] { transform: scale(.88); }
.js [data-reveal="right"] { transform: translateX(-40px); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ============ Keyframes ============ */
@keyframes write-in { from { clip-path: inset(-30% -30% -30% 100%); opacity: .2; } to { clip-path: inset(-30% -30% -30% -30%); opacity: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(70px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.4); } 100% { opacity: 1; transform: scale(1); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes hop { 0% { transform: translateY(0); } 40% { transform: translateY(-18px) rotate(-1.5deg); } 100% { transform: translateY(0); } }
@keyframes tilt-soft { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(1.6deg) translateY(-4px); } }
@keyframes pop-card { 0% { transform: scale(1); } 40% { transform: scale(1.06) rotate(-1.5deg); } 100% { transform: scale(1); } }
@keyframes viewer-in { from { opacity: 0; transform: translateX(var(--from, 0)) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes glint { 0%, 70% { background-position: 160% 0; } 100% { background-position: -60% 0; } }
@keyframes twinkle { 0%, 100% { transform: scale(0) rotate(0); opacity: 0; } 50% { transform: scale(1) rotate(90deg); opacity: 1; } }
@keyframes drift { from { transform: translateX(-160px); left: 0; } to { transform: translateX(0); left: 110%; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes sweep { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(.95); } 45% { transform: scale(1.12); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(3deg); } }
@keyframes tilt { 0%, 100% { transform: rotate(var(--r)); } 50% { transform: rotate(calc(var(--r) * -.6)) translateY(-4px); } }
@keyframes glow { 0%, 100% { opacity: .6; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(224, 33, 138, .55); } 80%, 100% { box-shadow: 0 0 0 14px rgba(224, 33, 138, 0); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(24, 178, 107, .6); } 80%, 100% { box-shadow: 0 0 0 7px rgba(24, 178, 107, 0); } }
@keyframes pin-bounce { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-12px); } 60% { transform: translateY(0) scale(1.06, .94); } 70% { transform: translateY(0); } }
@keyframes pin-shadow { 0%, 100% { transform: scale(1); opacity: .25; } 45% { transform: scale(.6); opacity: .12; } }
@keyframes burst {
  0% { transform: translate(0, 0) scale(.3) rotate(0); opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) scale(1) rotate(var(--rot)); opacity: 0; }
}
@keyframes pattern-drift { from { -webkit-mask-position: 0 0; mask-position: 0 0; } to { -webkit-mask-position: 220px 440px; mask-position: 220px 440px; } }

/* ============ Larger screens ============ */
@media (min-width: 520px) {
  .page { margin-block: 0; }
  .svc { flex-basis: 68%; }
}

/* ============ Motion preferences ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero__sky { transform: none; }
}
