/* Perfect Imitation Jewellers
   Brand: magenta, black and white, taken from the shop logo.
   Type: Fraunces (display) + Plus Jakarta Sans (text). */
:root {
  --ink: #0C0708;
  --ink-2: #150E11;
  --ink-3: #1F151A;
  --brand: #C80256;
  --brand-bright: #EC1C72;
  --brand-deep: #78013A;
  --blush: #F7D7E4;
  --white: #FFFFFF;
  --cream: #FBF2F5;
  --muted: #AC939C;
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(242, 36, 127, .55);

  --foil: linear-gradient(100deg, #78013A 0%, #C80256 26%, #FF5FA2 46%, #C80256 64%, #78013A 100%);
  --metal: linear-gradient(135deg, #EC1C72 0%, #C80256 52%, #94013F 100%);

  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --text: 'Jakarta', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --pad: clamp(16px, 5vw, 64px);
  --ease: cubic-bezier(.22, .8, .22, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(70px + var(--safe-top)); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--cream);
  font-family: var(--text); font-weight: 300; font-size: 15px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 1.5px solid var(--blush); outline-offset: 3px; border-radius: 4px; }
body.is-locked { overflow: hidden; }
.ico { width: 18px; height: 18px; flex: none; }
.ico--lg { width: 26px; height: 26px; }

/* ================= Buttons ================= */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 0 26px; border: 0; border-radius: 2px;
  font-family: var(--text); font-size: 12.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .35s var(--ease), background-color .35s, color .35s;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn:active { transform: scale(.975); }
.btn--gold { background: var(--metal); color: #FFFFFF; box-shadow: 0 10px 30px -14px rgba(236,28,114,.8); }
.btn--gold::after { /* passing light */
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transition: transform .9s var(--ease);
}
.btn--gold:hover::after { transform: translateX(120%); }
.btn--line { background: transparent; color: var(--blush); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--line:hover { background: rgba(247,215,228,.06); box-shadow: inset 0 0 0 1px var(--blush); }
.btn--block { width: 100%; }

/* ================= Intro (first visit per session) ================= */
.intro { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.intro__lid { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--ink); }
.intro__lid--top { top: 0; box-shadow: inset 0 -1px 0 rgba(247,215,228,.25); animation: lidUp 1.1s 1.35s var(--ease-io) forwards; }
.intro__lid--bottom { bottom: 0; animation: lidDown 1.1s 1.35s var(--ease-io) forwards; }
.intro__mark { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; animation: fadeOut .5s 1.2s forwards; }
.intro__word {
  font-family: var(--display); font-weight: 600; font-size: clamp(32px, 9vw, 56px); letter-spacing: .16em; padding-left: .16em;
  background: var(--foil); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; animation: introWord 1.1s .1s var(--ease) forwards, foil 2.4s linear infinite;
}
.intro__line { width: 0; height: 1px; background: var(--metal); animation: introLine 1s .35s var(--ease) forwards; }
.no-intro .intro { display: none; }
@keyframes introWord { from { opacity: 0; letter-spacing: .6em; } to { opacity: 1; letter-spacing: .3em; } }
@keyframes introLine { to { width: min(220px, 50vw); } }
@keyframes lidUp { to { transform: translateY(-101%); } }
@keyframes lidDown { to { transform: translateY(101%); } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes foil { from { background-position: 0% 0; } to { background-position: 250% 0; } }

/* ================= Top bar ================= */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(12px + var(--safe-top)) var(--pad) 12px;
  transition: background-color .4s, border-color .4s, padding .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.topbar.is-scrolled {
  background: rgba(16, 11, 9, .82); border-bottom-color: var(--line);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.wordmark { display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; line-height: 1; }
.wordmark__main { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -.01em; color: var(--white); }
.wordmark__sub { margin-top: 4px; font-size: 8.5px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--brand-bright); }
.topnav { display: none; gap: 34px; }
.topnav a { position: relative; text-decoration: none; font-size: 11.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.topnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--blush); transform: scaleX(0); transition: transform .4s var(--ease); }
.topnav a:hover { color: var(--blush); }
.topnav a:hover::after { transform: scaleX(1); }
.topbar__wa {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px;
  text-decoration: none; color: var(--blush); border-radius: 2px; box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
}
.topbar__wa span { display: none; }
@media (min-width: 560px) { .topbar__wa { padding: 0 16px; } .topbar__wa span { display: inline; } }
@media (min-width: 920px) { .topnav { display: flex; } }

/* ================= Hero ================= */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: grid; place-items: center;
  padding: calc(84px + var(--safe-top)) var(--pad) 90px; text-align: center;
  background:
    radial-gradient(90% 60% at 50% 38%, rgba(200,2,86,.20), transparent 70%),
    radial-gradient(120% 70% at 50% 115%, rgba(126,1,56,.95), transparent 70%),
    var(--ink);
}
.hero::after { /* velvet grain */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.9 0 0 0 0 0.8 0 0 0 0 0.6 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__dust { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero__light { /* slow spotlight breathing on the crest */
  position: absolute; z-index: -1; left: 50%; top: 34%; width: 120vmin; height: 120vmin; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255,214,232,.10), transparent 70%);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: .45; transform: translate(-50%, -50%) scale(1.08); } }

.hero__inner { display: flex; flex-direction: column; align-items: center; max-width: 760px; }
.hero__crest {
  position: relative; width: min(74vw, 340px); aspect-ratio: 1141 / 991; overflow: hidden;
  border-radius: 24px; box-shadow: 0 30px 70px -24px rgba(0,0,0,.85), 0 0 90px -30px rgba(236,28,114,.75), inset 0 0 0 1px rgba(255,255,255,.14);
}
.hero__crest img { width: 100%; height: 100%; object-fit: cover; }
.hero__shine {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.55) 50%, transparent 58%);
  background-size: 260% 100%; background-position: 140% 0;
  animation: sweep 2.6s 1s var(--ease) both, sweep 2.6s 8s var(--ease) infinite;
}
@keyframes sweep { from { background-position: 140% 0; } to { background-position: -40% 0; } }

.hero__title { margin: 26px 0 0; font-weight: 400; line-height: 1; }
.hero__brand {
  display: block; font-family: var(--display); font-weight: 600;
  font-size: clamp(34px, 9.5vw, 78px); line-height: 1.02; letter-spacing: -.015em; color: var(--white);
}
.hero__sub { display: block; margin-top: 12px; font-family: var(--text); font-weight: 600; font-size: clamp(9.5px, 2.7vw, 12px); letter-spacing: .42em; padding-left: .42em; text-transform: uppercase; color: var(--brand-bright); }
.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; }
.ornament { display: flex; align-items: center; gap: 12px; margin: 26px 0 0; color: var(--brand-bright); }
.ornament span { width: 54px; height: 1px; background: linear-gradient(90deg, transparent, var(--brand-bright)); }
.ornament span:last-child { transform: scaleX(-1); }
.ornament svg { width: 8px; height: 8px; }
.ornament--sm span { width: 36px; }
.hero__lede { max-width: 36ch; margin: 22px auto 0; color: var(--muted); font-size: clamp(14px, 3.7vw, 16.5px); line-height: 1.75; }
.hero__actions { display: grid; gap: 12px; width: 100%; max-width: 320px; margin-top: 30px; }
@media (min-width: 640px) { .hero__actions { grid-auto-flow: column; max-width: none; width: auto; } }
.hero__scroll { position: absolute; bottom: calc(22px + var(--safe-bottom)); left: 50%; translate: -50% 0; color: var(--brand-bright); padding: 10px; animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(6px); opacity: .5; } }

/* hero entrance, starts after the intro */
[data-hero] { opacity: 0; transform: translateY(18px); }
.is-ready [data-hero] { animation: rise 1.1s var(--ease) forwards; }
.is-ready [data-hero]:nth-child(1) { animation-name: crest; animation-duration: 1.4s; }
.is-ready [data-hero]:nth-child(2) { animation-delay: .15s; }
.is-ready [data-hero]:nth-child(3) { animation-delay: .3s; }
.is-ready [data-hero]:nth-child(4) { animation-delay: .42s; }
.is-ready [data-hero]:nth-child(5) { animation-delay: .54s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes crest { from { opacity: 0; transform: scale(.9) translateY(10px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* ================= Ribbon ================= */
.ribbon { overflow: hidden; border-block: 1px solid var(--line); background: var(--ink-2); padding: 16px 0; }
.ribbon__track { display: flex; align-items: center; gap: 26px; width: max-content; animation: marquee 38s linear infinite; }
.ribbon span { font-family: var(--display); font-style: italic; font-size: clamp(17px, 4.4vw, 22px); color: var(--blush); white-space: nowrap; }
.ribbon svg { width: 7px; height: 7px; color: var(--brand-bright); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ================= Sections ================= */
.section { padding: clamp(64px, 12vw, 128px) var(--pad); max-width: 1320px; margin: 0 auto; }
.section__head { max-width: 640px; margin-bottom: clamp(26px, 5vw, 52px); }
.section__title { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(32px, 8vw, 58px); line-height: 1.06; letter-spacing: -.02em; color: var(--white); }
.section__text { margin: 12px 0 0; color: var(--muted); max-width: 50ch; }

/* reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ================= Product cards ================= */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .grid { gap: 22px; } }
@media (min-width: 1040px) {
  .grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
  .grid > .card { flex: 0 0 calc((100% - 60px) / 3); }
  .grid--exclusive > .card { flex-basis: calc((100% - 90px) / 4); }
}

.card {
  container-type: inline-size;
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  border-radius: 3px; box-shadow: inset 0 0 0 1px var(--line);
  opacity: 0; transform: translateY(30px); clip-path: inset(10% 0 0 0);
  transition: opacity 1s var(--ease), transform 1s var(--ease), clip-path 1.2s var(--ease), box-shadow .5s;
  transition-delay: calc(var(--i, 0) * 110ms);
}
.card.is-in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
.card:hover { box-shadow: inset 0 0 0 1px var(--line-strong), 0 30px 60px -30px rgba(0,0,0,.8); }
.card__media { position: relative; aspect-ratio: 2 / 3; overflow: hidden; cursor: pointer; background: var(--ink-3); -webkit-tap-highlight-color: transparent; }
.card__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.2s var(--ease), transform 6s linear;
}
.card__img.is-on { opacity: 1; transform: scale(1); }
.card__media::after { /* soft vignette so the label always reads */
  content: ""; position: absolute; inset: auto 0 0 0; height: 30%; pointer-events: none;
  background: linear-gradient(0deg, rgba(12,7,8,.55), transparent);
}
.card__tag {
  position: absolute; z-index: 1; left: 10px; bottom: 12px;
  font-size: 9.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--cream);
  transition: opacity .4s;
}
.card__progress { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.08); }
.card__progress i { display: block; height: 100%; width: 0; background: var(--metal); }
.card__progress i.is-running { animation: progress var(--dur, 4.5s) linear forwards; }
.card__progress i.is-paused { animation-play-state: paused; }
@keyframes progress { to { width: 100%; } }
.card__badge {
  position: absolute; z-index: 1; top: 10px; left: 10px; padding: 5px 9px;
  font-size: 9px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #FFFFFF; background: var(--metal);
}

.card__body { display: flex; flex-direction: column; flex: 1; padding: 12px 10px 12px; }
.card__type { margin: 0; font-size: 9.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-bright); line-height: 1.4; }
.card__name { margin: 5px 0 12px; font-family: var(--display); font-weight: 600; font-size: 15.5px; line-height: 1.25; letter-spacing: -.01em; }
.card__actions { margin-top: auto; display: grid; gap: 7px; }
.card__actions .btn { min-height: 38px; padding: 0 8px; font-size: 9.5px; letter-spacing: .1em; gap: 6px; }
.card__actions .btn .ico { width: 14px; height: 14px; }
.card__actions .btn--line .ico { display: none; }

@container (min-width: 250px) {
  .card__body { padding: 16px 16px 16px; }
  .card__type { font-size: 10.5px; }
  .card__name { font-size: 21px; margin-bottom: 16px; }
  .card__tag { left: 14px; bottom: 14px; font-size: 10.5px; }
  .card__actions .btn { min-height: 44px; font-size: 10.5px; }
}
@container (min-width: 330px) {
  .card__name { font-size: 24px; }
  .card__actions { grid-template-columns: 1.3fr 1fr; gap: 8px; }
  .card__actions .btn { font-size: 11px; }
  .card__actions .btn--line .ico { display: block; }
}

/* ================= Promise strip ================= */
.promise {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line);
  border-block: 1px solid var(--line);
}
.promise__item { background: var(--ink); padding: 26px 12px; text-align: center; }
.promise__item .ico { width: 24px; height: 24px; color: var(--brand-bright); margin: 0 auto 12px; }
.promise__item h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 15px; line-height: 1.25; }
.promise__item p { display: none; margin: 8px auto 0; max-width: 28ch; color: var(--muted); font-size: 13.5px; }
@media (min-width: 760px) {
  .promise__item { padding: 46px 28px; }
  .promise__item h3 { font-size: 22px; }
  .promise__item p { display: block; }
}

/* ================= Exclusive ================= */
.exclusive {
  position: relative; padding: clamp(64px, 12vw, 128px) var(--pad);
  background:
    radial-gradient(80% 55% at 50% 0%, rgba(236,28,114,.38), transparent 62%),
    linear-gradient(180deg, #4A0122 0%, #1A0710 60%, var(--ink) 100%);
}
.exclusive__head, .exclusive .grid { max-width: 1320px; margin-left: auto; margin-right: auto; }
.exclusive__title {
  margin: 0; font-family: var(--display); font-style: italic; font-weight: 600;
  font-size: clamp(48px, 13vw, 104px); line-height: .95; letter-spacing: -.02em; color: var(--white);
  text-shadow: 0 10px 40px rgba(236,28,114,.5);
}
.exclusive .section__text { color: rgba(251,242,245,.7); }
.exclusive .card { background: linear-gradient(180deg, rgba(12,7,8,.55), rgba(12,7,8,.9)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }

/* ================= About + founder ================= */
.about__grid { display: grid; gap: 48px; }
.about__text { margin: 20px 0 0; font-family: var(--display); font-size: clamp(19px, 4.6vw, 25px); line-height: 1.55; color: rgba(251,242,245,.9); max-width: 40ch; white-space: pre-line; }
.about__facts { margin: 32px 0 0; border-top: 1px solid var(--line); }
.about__facts div { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.about__facts dt { color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.about__facts dd { margin: 0; text-align: right; color: var(--blush); font-size: 14px; }

.founder { margin: 0; display: grid; justify-items: center; gap: 20px; text-align: center; }
.founder__frame {
  position: relative; width: min(72vw, 330px); aspect-ratio: 3 / 4; padding: 0;
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 40px 80px -34px rgba(0,0,0,.85);
  cursor: default; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.founder__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; border-radius: 20px; pointer-events: none; }
.founder figcaption { display: grid; gap: 4px; }
.founder__name { font-family: var(--display); font-size: 28px; line-height: 1.1; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.founder__role { font-size: 10.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--brand-bright); }
@media (min-width: 900px) { .about__grid { grid-template-columns: 1.3fr 1fr; align-items: center; gap: 90px; } }

/* ================= Visit ================= */
.visit__grid { display: grid; gap: 12px; margin-top: 30px; }
@media (min-width: 820px) { .visit__grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 18px; } }
.visit__card {
  display: flex; flex-direction: column; gap: 6px; padding: 22px; min-height: 170px;
  border-radius: 3px; text-decoration: none; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .4s, transform .4s var(--ease), opacity 1s var(--ease);
}
.visit__card:hover { box-shadow: inset 0 0 0 1px var(--line-strong); transform: translateY(-3px); }
.visit__card > .ico { color: var(--brand-bright); margin-bottom: 8px; }
.visit__card--map { background: radial-gradient(120% 120% at 0% 0%, rgba(236,28,114,.13), transparent 60%), var(--ink-2); }
.visit__label { font-size: 10.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.visit__value { font-family: var(--display); font-size: 22px; line-height: 1.3; white-space: pre-line; overflow-wrap: anywhere; }
.visit__value--sm { font-size: 18px; }
.visit__meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.visit__meta:has(span:empty) { display: none; }
.visit__cta { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 8px; color: var(--blush); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }

/* ================= Footer ================= */
.footer { padding: 56px var(--pad) calc(100px + var(--safe-bottom)); text-align: center; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer p { margin: 4px 0; }
.footer .ornament { justify-content: center; margin: 18px 0; }
.footer__brand { font-family: var(--display); font-weight: 600; font-size: 28px; letter-spacing: -.01em; color: var(--white); }
.footer__sub { font-size: 9.5px; font-weight: 500; letter-spacing: .4em; text-transform: uppercase; }
.footer__small { font-size: 11.5px; opacity: .75; margin-top: 12px !important; }

/* ================= Floating WhatsApp ================= */
.fab {
  position: fixed; z-index: 30; right: 16px; bottom: calc(16px + var(--safe-bottom));
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--metal); color: #FFFFFF; box-shadow: 0 12px 30px -8px rgba(0,0,0,.75);
  transition: transform .4s var(--ease), opacity .4s;
}
.fab .ico { width: 25px; height: 25px; }
.fab.is-hidden { opacity: 0; transform: translateY(24px) scale(.85); pointer-events: none; }

/* ================= Detail sheet ================= */
.sheet { position: fixed; inset: 0; z-index: 60; display: grid; place-items: end center; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(6,3,4,.75); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .4s; }
.sheet.is-open .sheet__scrim { opacity: 1; }
.sheet__panel {
  position: relative; width: 100%; max-height: 94svh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--ink-2); border-radius: 14px 14px 0 0; outline: none;
  box-shadow: 0 -1px 0 var(--line-strong), 0 -30px 60px rgba(0,0,0,.5);
}
.sheet__close {
  position: sticky; top: 12px; float: right; margin: 12px 12px -56px 0; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: rgba(12,7,8,.7); color: var(--cream); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}
.sheet__media { position: relative; }
.sheet__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4 / 5; background: var(--ink-3); }
.sheet__track::-webkit-scrollbar { display: none; }
.sheet__track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
.sheet__dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 4px; }
.sheet__dots button { width: 30px; height: 30px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.sheet__dots button::after { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: rgba(255,255,255,.5); transition: background .3s, transform .3s; }
.sheet__dots button[aria-current="true"]::after { background: var(--blush); transform: rotate(45deg) scale(1.4); }
.sheet__body { padding: 6px 22px 0; }
.spec { padding: 20px 0; border-bottom: 1px solid var(--line); }
.spec:last-of-type { border-bottom: 0; }
.spec__label { margin: 0 0 8px; font-family: var(--text); font-weight: 500; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--brand-bright); }
.spec__name { margin: 0; font-family: var(--display); font-size: 28px; font-weight: 600; line-height: 1.12; letter-spacing: -.015em; }
.spec__finish { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.spec__type { margin: 0 0 6px; font-weight: 500; color: var(--cream); }
.spec__text { margin: 0; color: rgba(251,242,245,.8); white-space: pre-line; }
.spec__rate { margin: 0; font-family: var(--display); font-size: 30px; color: var(--blush); }
.spec__rate small { font-family: var(--text); font-size: 13px; color: var(--muted); }
.spec__hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.sheet__order { position: sticky; bottom: 0; margin: 0 -22px; padding: 14px 22px calc(14px + var(--safe-bottom)); background: linear-gradient(180deg, rgba(21,14,17,0), var(--ink-2) 30%); }
@media (min-width: 860px) {
  .sheet { place-items: center; padding: 32px; }
  .sheet__panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 1000px; max-height: min(88vh, 760px); border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-strong), 0 40px 80px rgba(0,0,0,.6); }
  .sheet__close { position: absolute; top: 16px; right: 16px; float: none; margin: 0; }
  .sheet__track { aspect-ratio: auto; height: 100%; }
  .sheet__media { height: min(88vh, 760px); }
  .sheet__body { overflow-y: auto; padding: 38px 38px 0; display: flex; flex-direction: column; }
  .sheet__order { margin: auto -38px 0; padding: 18px 38px 28px; }
}
.noscript { padding: 20px; text-align: center; color: var(--blush); }

/* ================= Reduced motion ================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .intro, .hero__shine, .hero__dust { display: none; }
  [data-hero], [data-reveal], .card { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* odd last card sits centred on the 2-column layout */
@media (max-width: 1039px) {
  .grid > .card:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 6px); justify-self: center; }
}
@media (min-width: 700px) and (max-width: 1039px) {
  .grid > .card:last-child:nth-child(odd) { width: calc(50% - 11px); }
}
