/* Perfect Coverage — a night screening. Charcoal theater, ivory titles, champagne-gold light. */

:root {
  --bg: oklch(0.16 0.008 75);
  --bg-deep: oklch(0.11 0.006 75);
  --surface: oklch(0.21 0.01 75);
  --ink: oklch(0.96 0.012 85);
  --ink-dim: oklch(0.78 0.015 80);
  --gold: oklch(0.78 0.105 85);
  --gold-deep: oklch(0.62 0.09 80);
  --display: 'Marcellus', serif;
  --body: 'Archivo', system-ui, sans-serif;
  --z-nav: 30; --z-chip: 40; --z-intro: 60;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* WebGL bokeh field — fixed behind everything */
#bokeh {
  position: fixed; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  pointer-events: none;
}
html { scroll-behavior: smooth; background: var(--bg); }
body {
  background: transparent;
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--gold); color: var(--bg-deep); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; text-wrap: balance; }
.h2 {
  font-size: clamp(2.2rem, 1.6rem + 3.2vw, 4rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
}
.body { color: var(--ink-dim); max-width: 46ch; }
.gold-ink { color: var(--gold); }
.link-gold {
  color: var(--gold); text-decoration: none; font-weight: 500;
  border-bottom: 1px solid color-mix(in oklch, var(--gold) 35%, transparent);
  transition: border-color 0.3s var(--ease-out);
}
.link-gold:hover { border-color: var(--gold); }

/* ---------- pills ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.7em 1.6em;
  border-radius: 999px; text-decoration: none; font-weight: 500;
  font-size: 1rem; cursor: pointer; transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}
.pill--gold { border: 1px solid var(--gold); color: var(--gold); background: transparent; }
.pill--gold:hover { background: var(--gold); color: var(--bg-deep); }
.pill--ghost { border: 1px solid color-mix(in oklch, var(--ink) 30%, transparent); color: var(--ink); }
.pill--ghost:hover { border-color: var(--ink); }

/* ---------- intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: var(--z-intro);
  display: grid; place-items: center; background: transparent;
  pointer-events: none;
}
.intro-bar {
  position: absolute; left: 0; right: 0; height: 50.5%;
  background: var(--bg-deep);
}
.intro-bar--top { top: 0; transform-origin: top; }
.intro-bar--bottom { bottom: 0; transform-origin: bottom; }
.intro-word {
  position: relative; font-family: var(--display);
  font-size: clamp(1.1rem, 0.8rem + 2vw, 2rem);
  letter-spacing: 0.42em; text-indent: 0.42em; color: var(--ink);
}
.intro.is-done { display: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem);
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  transition: background 0.4s var(--ease-out), backdrop-filter 0.4s var(--ease-out);
}
.nav.is-solid { background: color-mix(in oklch, var(--bg-deep) 82%, transparent); backdrop-filter: blur(14px); }
.nav-mark {
  font-family: var(--display); color: var(--ink); text-decoration: none;
  font-size: 1.05rem; letter-spacing: 0.14em; text-transform: uppercase;
  margin-right: auto;
}
.nav-links { display: flex; gap: clamp(0.9rem, 2vw, 1.6rem); }
.nav-links a {
  color: var(--ink-dim); text-decoration: none; font-size: 0.95rem;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--gold); }
.nav .nav-cta { min-height: 42px; padding: 0.45em 1.2em; font-size: 0.92rem; }
@media (max-width: 640px) { .nav-links { display: none; } }

/* ---------- My Day — sign-in orb (header) ---------- */
.myday-orb {
  position: relative; display: inline-flex; align-items: center; gap: 0.55rem;
  margin-left: 0.4rem; padding: 0.28rem 0.7rem 0.28rem 0.3rem;
  border-radius: 999px; text-decoration: none; isolation: isolate;
  background: color-mix(in oklch, var(--gold) 8%, transparent);
  border: 1px solid color-mix(in oklch, var(--gold) 28%, transparent);
  transition: transform .5s var(--ease-out), background .4s var(--ease-out), border-color .4s var(--ease-out), box-shadow .5s var(--ease-out);
}
.myday-orb:hover {
  background: color-mix(in oklch, var(--gold) 16%, transparent);
  border-color: color-mix(in oklch, var(--gold) 55%, transparent);
  box-shadow: 0 6px 26px -8px color-mix(in oklch, var(--gold) 60%, transparent);
}
.myday-orb__core {
  position: relative; z-index: 2; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: #1a1206;
  background: radial-gradient(120% 120% at 30% 25%, #fbe7b0 0%, var(--gold) 55%, #b8860b 100%);
  box-shadow: inset 0 1px 2px rgba(255,255,255,.6), 0 2px 10px -2px color-mix(in oklch, var(--gold) 70%, transparent);
  animation: orbBreathe 3.6s var(--ease-out) infinite;
}
/* water ripples radiating from the orb — a drop touching still water */
.myday-orb__ripple {
  position: absolute; z-index: 1; left: 0.3rem; top: 50%;
  width: 34px; height: 34px; margin-top: -17px; border-radius: 50%;
  border: 1.5px solid color-mix(in oklch, var(--gold) 45%, transparent);
  transform: scale(.5); opacity: 0; pointer-events: none;
  animation: orbRipple 3.6s var(--ease-out) infinite;
}
.myday-orb__ripple--2 { animation-delay: 1.8s; }
.myday-orb__label {
  position: relative; z-index: 2; display: inline-flex;
  font-family: var(--display); font-size: 0.82rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink); white-space: nowrap;
}
.myday-orb__label b { font-weight: inherit; display: inline-block; animation: orbTextWave 2.8s var(--ease-out) infinite; }
.myday-orb__label b:nth-child(2) { animation-delay: .1s; }
.myday-orb__label b:nth-child(3) { animation-delay: .2s; }
.myday-orb__label b:nth-child(4) { animation-delay: .3s; }
.myday-orb__label b:nth-child(5) { animation-delay: .4s; }
/* on scroll the nav solidifies — the orb gives a confident pop, then settles back */
.nav.is-solid .myday-orb { animation: orbPop .7s var(--ease-out); }

@keyframes orbBreathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes orbRipple { 0% { transform: scale(.5); opacity: .55; } 70% { opacity: 0; } 100% { transform: scale(2.1); opacity: 0; } }
@keyframes orbTextWave { 0%,100% { transform: translateY(0); color: var(--ink); } 50% { transform: translateY(-2px); color: var(--gold); } }
@keyframes orbPop { 0% { transform: scale(1); } 45% { transform: scale(1.18); } 100% { transform: scale(1); } }
@media (max-width: 560px) { .myday-orb__label { display: none; } .myday-orb { padding: 0.28rem; gap: 0; } }
/* the header orb tucks away (gets "pulled" out of the header) once the float takes over */
.myday-orb.tucked { opacity: 0; transform: scale(.4) translateY(10px); pointer-events: none; }

/* ---------- My Day — melts out of the header into a water-drop clinging to the RIGHT edge ---------- */
.myday-float {
  position: fixed; right: -8px; top: 41%;
  z-index: 180; display: inline-flex; align-items: center; flex-direction: row-reverse; gap: 0;
  text-decoration: none; pointer-events: none;
  /* starts up by the header, then drips down and settles into the edge */
  opacity: 0; transform: translateY(-46vh) scale(.4);
  transition: opacity .5s var(--ease-out), transform .85s cubic-bezier(.34, 1.4, .46, 1);
}
.myday-float.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
/* the drop itself — translucent water clinging to the wall, refracting the page behind it */
.myday-float__core {
  position: relative; flex: none; width: 46px; height: 56px;
  display: grid; place-items: center; color: #5a4410;
  border-radius: 58% 42% 52% 48% / 56% 44% 56% 44%;
  background:
    radial-gradient(130% 100% at 34% 26%, rgba(255,246,222,.6) 0%, rgba(216,178,94,.42) 52%, rgba(184,134,11,.5) 100%);
  -webkit-backdrop-filter: blur(4px) saturate(1.4); backdrop-filter: blur(4px) saturate(1.4);
  border: 1px solid rgba(255,246,222,.5);
  box-shadow: inset 0 3px 9px rgba(255,255,255,.55), inset 0 -5px 12px rgba(140,100,20,.4),
    0 8px 24px -7px rgba(0,0,0,.45);
  animation: dropWobble 5.5s ease-in-out infinite;
}
/* a faint pool/ripple spreading where the drop meets the edge */
.myday-float__core::before {
  content: ""; position: absolute; inset: -6px; border-radius: inherit;
  border: 1px solid rgba(216,178,94,.4); opacity: 0;
  animation: dropPool 5.5s ease-in-out infinite;
}
/* a bright highlight, like light catching wet glass */
.myday-float__core::after {
  content: ""; position: absolute; top: 9px; left: 12px; width: 12px; height: 8px;
  border-radius: 50%; background: rgba(255,255,255,.65); filter: blur(1px);
}
.myday-float__core svg { position: relative; z-index: 1; }
.myday-float__tag {
  max-width: 0; overflow: hidden; white-space: nowrap;
  font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); transition: max-width .4s var(--ease-out), padding .4s var(--ease-out);
}
.myday-float:hover { transform: translateX(-8px) scale(1.06); }
.myday-float:hover .myday-float__tag { max-width: 120px; padding: 0 .5rem 0 .7rem; }
@keyframes dropWobble {
  0%,100% { border-radius: 58% 42% 52% 48% / 56% 44% 56% 44%; transform: translateY(0); }
  50%     { border-radius: 48% 52% 46% 54% / 50% 50% 50% 50%; transform: translateY(-5px); }
}
@keyframes dropPool {
  0%,60% { opacity: 0; transform: scale(.7); }
  75%    { opacity: .5; }
  100%   { opacity: 0; transform: scale(1.5); }
}

@media (prefers-reduced-motion: reduce) {
  .myday-orb__core, .myday-orb__ripple, .myday-orb__label b,
  .myday-float__core, .myday-float__core::before { animation: none !important; }
  .nav.is-solid .myday-orb { animation: none !important; }
  .myday-float { transition: opacity .3s; transform: none; top: 41%; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center; overflow: clip;
  background: var(--bg-deep);
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
}
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    color-mix(in oklch, var(--bg-deep) 55%, transparent) 0%,
    color-mix(in oklch, var(--bg-deep) 18%, transparent) 45%,
    color-mix(in oklch, var(--bg-deep) 88%, transparent) 100%);
}
.hero-card { position: relative; text-align: center; padding: 0 1.25rem; }
.hero-kicker {
  color: var(--ink-dim); font-size: clamp(0.82rem, 0.78rem + 0.3vw, 0.98rem);
  letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 1.2rem;
}
.hero-title {
  font-size: clamp(2.7rem, 1.8rem + 6vw, 5.5rem);
  line-height: 1.04; letter-spacing: 0.012em; margin-bottom: 2rem;
  text-shadow: 0 2px 40px rgb(0 0 0 / 0.45);
}
.hero-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  color: var(--ink-dim); font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  display: grid; justify-items: center; gap: 0.5rem;
}
.hero-scroll span {
  display: block; width: 1px; height: 38px;
  background: linear-gradient(var(--gold), transparent);
  animation: drip 2.2s var(--ease-out) infinite;
}
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: top; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- stats — a scene cut ---------- */
.stats {
  background: color-mix(in oklch, var(--bg-deep) 72%, transparent);
  padding: clamp(5rem, 13vh, 9rem) clamp(1.25rem, 5vw, 4rem);
  text-align: center;
}
.stats-lede {
  font-family: var(--display); font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.4rem);
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
}
.stats-lede em { font-style: normal; color: var(--gold); }
.stats-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(2rem, 6vw, 5.5rem);
}
.stat { display: grid; gap: 0.3rem; }
.stat-n {
  font-family: var(--display);
  font-size: clamp(2.6rem, 2rem + 3.4vw, 4.6rem);
  color: var(--gold); line-height: 1;
}
.stat-l { color: var(--ink-dim); font-size: 0.92rem; }

/* ---------- showreel ---------- */
.reel {
  display: grid; grid-template-columns: 1fr minmax(280px, 420px);
  gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
  padding: clamp(5rem, 14vh, 10rem) clamp(1.25rem, 6vw, 6rem);
  max-width: 1280px; margin-inline: auto;
}
.reel-copy { display: grid; gap: 1.4rem; justify-items: start; }
.reel-stage { position: relative; border-radius: 14px; overflow: clip; aspect-ratio: 9 / 16; }
.reel-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel-sound {
  position: absolute; bottom: 0.9rem; right: 0.9rem;
  background: color-mix(in oklch, var(--bg-deep) 72%, transparent);
  backdrop-filter: blur(8px);
  color: var(--ink); border: 1px solid color-mix(in oklch, var(--ink) 25%, transparent);
  border-radius: 999px; padding: 0.5em 1.1em; min-height: 44px;
  font-family: var(--body); font-size: 0.88rem; cursor: pointer;
}
.reel-sound span { color: var(--gold); }
@media (max-width: 820px) {
  .reel { grid-template-columns: 1fr; }
  .reel-stage { max-width: 380px; width: 100%; justify-self: center; }
}

/* ---------- films gallery ---------- */
.films { padding: clamp(5rem, 14vh, 10rem) clamp(1.25rem, 4vw, 3.5rem); background: color-mix(in oklch, var(--bg-deep) 78%, transparent); }
.films-head {
  max-width: 1280px; margin: 0 auto clamp(3rem, 7vh, 5rem);
  display: grid; gap: 1.2rem;
}
.films-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.8rem, 1.6vw, 1.4rem);
  max-width: 1280px; margin-inline: auto; align-items: start;
}
.films-col { display: grid; gap: clamp(0.8rem, 1.6vw, 1.4rem); }
.film {
  position: relative; display: block; border-radius: 10px; overflow: clip;
  text-decoration: none; background: var(--surface);
}
.film img, .film video { width: 100%; display: block; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 0.7s var(--ease-out); background: var(--bg-deep); }
.films-col:nth-child(2) .film img, .films-col:nth-child(2) .film video { aspect-ratio: 3 / 4; }
.film:hover img, .film:hover video { transform: scale(1.04); }
.film-live {
  position: absolute; top: 0.55rem; left: 0.6rem; z-index: 1;
  font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); text-shadow: 0 1px 6px rgb(0 0 0 / 0.85);
}
.film-live::first-letter { color: oklch(0.65 0.23 25); }
.film-meta {
  position: absolute; inset: auto 0 0 0; padding: 2.2rem 0.9rem 0.8rem;
  background: linear-gradient(transparent, rgb(0 0 0 / 0.78));
  color: var(--ink); display: grid; gap: 0.15rem;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.film:hover .film-meta, .film:focus-visible .film-meta { opacity: 1; transform: none; }
.film-likes { color: var(--gold); font-weight: 600; font-size: 0.95rem; }
.film-title {
  font-size: 0.82rem; color: var(--ink-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.films-foot { text-align: center; margin-top: clamp(2.5rem, 6vh, 4rem); }
@media (max-width: 720px) {
  .films-grid { grid-template-columns: repeat(2, 1fr); }
  .film-meta { opacity: 1; transform: none; padding-top: 1.6rem; }
}

/* ---------- live wall ---------- */
.wall { padding: clamp(5rem, 14vh, 9rem) 0; overflow: clip; background: color-mix(in oklch, var(--bg-deep) 82%, transparent); }
.wall-head {
  max-width: 1280px; margin: 0 auto clamp(2.5rem, 6vh, 4rem);
  padding-inline: clamp(1.25rem, 4vw, 3.5rem); display: grid; gap: 1.2rem;
}
.wall-rows { display: grid; gap: clamp(0.8rem, 1.5vw, 1.2rem); }
.wall-row { display: flex; gap: clamp(0.8rem, 1.5vw, 1.2rem); width: max-content; will-change: transform; }
.wall-tile {
  position: relative; flex: 0 0 auto;
  width: clamp(150px, 16vw, 230px); aspect-ratio: 9 / 16;
  border-radius: 12px; overflow: clip; display: block;
  background: var(--surface);
}
.wall-tile video, .wall-tile img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.wall-tile .wall-likes {
  position: absolute; bottom: 0.5rem; left: 0.6rem;
  color: var(--ink); font-size: 0.78rem; font-weight: 600;
  text-shadow: 0 1px 8px rgb(0 0 0 / 0.8);
}
.wall-live {
  position: absolute; top: 0.55rem; left: 0.6rem;
  display: inline-flex; align-items: center; gap: 0.35em;
  font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); text-shadow: 0 1px 6px rgb(0 0 0 / 0.8);
}
.wall-live::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: oklch(0.65 0.23 25); animation: livepulse 1.6s ease-in-out infinite;
}
@keyframes livepulse { 50% { opacity: 0.3; } }

/* ---------- creed ---------- */
.creed {
  padding: clamp(6rem, 18vh, 12rem) clamp(1.25rem, 6vw, 6rem);
  max-width: 1100px; margin-inline: auto;
}
.creed-line {
  font-family: var(--display);
  font-size: clamp(1.7rem, 1.2rem + 2.8vw, 3.4rem);
  line-height: 1.25;
}
.creed-line + .creed-line { margin-top: 0.4em; }

/* ---------- packages — the pinned film: one package per shot ---------- */
.packages { padding: clamp(5rem, 14vh, 10rem) clamp(1.25rem, 4vw, 3.5rem); background: color-mix(in oklch, var(--bg-deep) 70%, transparent); }
.packages-head { max-width: 1280px; margin: 0 auto clamp(2rem, 5vh, 3.5rem); display: grid; gap: 1.2rem; }
.packages-hint {
  display: none; color: var(--ink-dim); font-size: 0.8rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  align-items: center; gap: 0.7rem;
}
.packages-hint span {
  width: 44px; height: 1px; display: inline-block;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.is-cinema-on .packages-hint { display: inline-flex; }

/* fallback layout (no JS / reduced motion): scenes stack as elegant cards */
.pkg-stage { max-width: 1280px; margin-inline: auto; display: grid; gap: clamp(1.2rem, 3vh, 2rem); }
.pkg-scene {
  background: color-mix(in oklch, var(--surface) 55%, transparent);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid color-mix(in oklch, var(--ink) 10%, transparent);
  border-top: 1px solid color-mix(in oklch, var(--gold) 22%, transparent);
  border-radius: 16px;
  padding: clamp(1.8rem, 4vw, 3rem) clamp(1.4rem, 3.5vw, 2.6rem);
  display: grid; gap: 1.1rem; align-content: start; justify-items: start;
}
.pkg-scene--diamond {
  background: color-mix(in oklch, color-mix(in oklch, var(--surface) 80%, var(--gold) 20%) 62%, transparent);
  border-top: 2px solid var(--gold);
}
.pkg-flag {
  font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--bg-deep); background: var(--gold);
  padding: 0.25em 0.9em; border-radius: 999px; font-weight: 600;
}
.pkg-index {
  color: color-mix(in oklch, var(--ink-dim) 75%, var(--bg));
  font-size: 0.8rem; letter-spacing: 0.32em;
}
.pkg-name { display: grid; line-height: 1.05; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.6rem); }
.pkg-line { display: block; }
.pkg-price { font-family: var(--display); color: var(--gold); font-size: 1.1rem; }
.pkg-price .pkg-amount { font-size: clamp(2.6rem, 2rem + 2.4vw, 4.2rem); line-height: 1; }
.pkg-feats { list-style: none; display: grid; gap: 0.6rem; color: var(--ink-dim); font-size: 1rem; }
.pkg-feats li { padding-left: 1.2rem; position: relative; }
.pkg-feats li::before { content: '—'; position: absolute; left: 0; color: var(--gold-deep); }
.pkg-cta { margin-top: 0.5rem; min-width: 220px; }
.pkg-glow, .pkg-rail { display: none; }

/* cinema mode (JS + motion): the stage pins, scenes take the screen one at a time */
.pkg-stage.is-cinema {
  position: relative; display: block;
  height: 100svh; max-width: none;
  perspective: 1300px;
}
.pkg-stage.is-cinema .pkg-scene {
  position: absolute; inset: 0; margin: auto;
  width: min(92vw, 880px); height: fit-content;
  max-height: 86svh; overflow: auto;
  justify-items: center; text-align: center;
  gap: clamp(0.9rem, 2vh, 1.3rem);
  padding: clamp(2rem, 5vh, 3.5rem) clamp(1.4rem, 4vw, 3.5rem);
  transform-style: preserve-3d;
  will-change: transform, opacity, filter;
  opacity: 0; pointer-events: none;
  box-shadow: 0 30px 80px -30px rgb(0 0 0 / 0.55);
}
.pkg-stage.is-cinema .pkg-scene.is-live { pointer-events: auto; }
.pkg-stage.is-cinema .pkg-name { font-size: clamp(2.6rem, 1.6rem + 5vw, 5.2rem); }
.pkg-stage.is-cinema .pkg-feats { justify-items: center; }
.pkg-stage.is-cinema .pkg-feats li { padding-left: 0; }
.pkg-stage.is-cinema .pkg-feats li::before { content: none; }

/* the golden spotlight that flares for the Diamond shot */
.pkg-stage.is-cinema .pkg-glow {
  display: block; position: absolute; inset: -10%;
  background: radial-gradient(ellipse 60% 45% at 50% 52%,
    color-mix(in oklch, var(--gold) 26%, transparent), transparent 70%);
  opacity: 0; pointer-events: none;
}

/* progress rail */
.pkg-stage.is-cinema .pkg-rail {
  display: grid; gap: 1.1rem; justify-items: start;
  position: absolute; right: clamp(0.9rem, 3vw, 2.6rem); top: 50%;
  transform: translateY(-50%); z-index: 2;
}
.pkg-rail-track {
  position: absolute; left: 7px; top: 0.4rem; bottom: 0.4rem;
  width: 1px; background: color-mix(in oklch, var(--ink) 18%, transparent);
}
.pkg-rail-track i {
  position: absolute; inset: 0;
  background: var(--gold); transform-origin: top; transform: scaleY(0);
}
.pkg-rail-stop {
  display: inline-flex; align-items: center; gap: 0.7rem;
  background: none; border: 0; cursor: pointer; padding: 0;
  color: color-mix(in oklch, var(--ink-dim) 70%, var(--bg));
  font: inherit; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  transition: color 0.35s var(--ease-out);
  position: relative; z-index: 1;
}
.pkg-rail-stop::before {
  content: ''; width: 15px; height: 15px; border-radius: 50%;
  border: 1px solid color-mix(in oklch, var(--ink) 30%, transparent);
  background: var(--bg-deep);
  transition: border-color 0.35s, background 0.35s, box-shadow 0.35s;
}
.pkg-rail-stop b { font-weight: 500; color: inherit; margin-right: 0.35em; }
.pkg-rail-stop.is-on { color: var(--ink); }
.pkg-rail-stop.is-on::before {
  border-color: var(--gold); background: var(--gold);
  box-shadow: 0 0 14px color-mix(in oklch, var(--gold) 60%, transparent);
}
@media (max-width: 860px) {
  .pkg-stage.is-cinema .pkg-rail {
    top: auto; bottom: 1.1rem; right: 50%; transform: translateX(50%);
    display: flex; gap: 1.2rem;
  }
  .pkg-rail-track { display: none; }
  .pkg-rail-stop { font-size: 0; gap: 0; letter-spacing: 0; }
  .pkg-rail-stop b { display: none; }
  .pkg-stage.is-cinema .pkg-scene { width: 92vw; }
}

.packages-fine {
  max-width: 1280px; margin: clamp(2rem, 5vh, 3rem) auto 0;
  color: var(--ink-dim); font-size: 0.88rem;
}

/* ---------- love ---------- */
.love { padding: clamp(5rem, 14vh, 9rem) 0; }
.love .h2, .love-sub { padding-inline: clamp(1.25rem, 4vw, 3.5rem); max-width: 1280px; margin-inline: auto; }
.love-sub { margin-top: 1rem; }
.love-row {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: clamp(2rem, 5vh, 3rem) clamp(1.25rem, 4vw, 3.5rem) 1rem;
  scrollbar-width: none;
}
.love-row::-webkit-scrollbar { display: none; }
.love-card {
  flex: 0 0 min(340px, 78vw); scroll-snap-align: start;
  background: color-mix(in oklch, var(--surface) 50%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid color-mix(in oklch, var(--ink) 9%, transparent);
  border-radius: 12px;
  padding: 1.6rem 1.5rem;
  font-size: 1.08rem; line-height: 1.7;
  border-top: 1px solid color-mix(in oklch, var(--gold) 30%, transparent);
}
.love-card p::before { content: '“'; color: var(--gold); }
.love-card p::after { content: '”'; color: var(--gold); }
.love-card[dir="rtl"] { font-size: 1.12rem; }
.love-card cite {
  display: block; margin-top: 0.9rem; font-style: normal;
  color: var(--ink-dim); font-size: 0.85rem;
}

/* ---------- calculator — build your day ---------- */
.calc {
  max-width: 1280px; margin-inline: auto;
  padding: clamp(4rem, 11vh, 8rem) clamp(1.25rem, 5vw, 4rem);
}
.calc-head { display: grid; gap: 1rem; max-width: 60ch; margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.calc-wrap {
  display: grid; grid-template-columns: minmax(280px, 1fr) minmax(280px, 420px);
  gap: clamp(1.6rem, 4vw, 3rem); align-items: start;
}
.calc-form { display: grid; gap: 1.6rem; }
.calc-field { border: 0; display: grid; gap: 0.8rem; }
.calc-field legend {
  font-family: var(--display); font-size: 1.08rem; color: var(--ink); padding: 0;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem;
}
.calc-note { font-family: var(--body); font-size: 0.78rem; color: var(--ink-dim); letter-spacing: 0; }
.calc-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.calc-chip {
  font: inherit; font-size: 0.92rem; cursor: pointer;
  background: color-mix(in oklch, var(--surface) 55%, transparent);
  border: 1px solid color-mix(in oklch, var(--ink) 16%, transparent);
  color: var(--ink-dim); border-radius: 999px; padding: 0.55em 1.1em;
  transition: border-color .2s, color .2s, background .2s, transform .15s;
}
.calc-chip:hover { color: var(--ink); transform: translateY(-1px); }
.calc-chip.is-on {
  color: var(--gold); border-color: var(--gold);
  background: color-mix(in oklch, var(--gold) 12%, transparent);
}
.calc-stepper {
  display: inline-flex; align-items: center; gap: 0.6rem;
  border: 1px solid color-mix(in oklch, var(--ink) 16%, transparent);
  border-radius: 999px; padding: 0.3rem; width: max-content;
  background: color-mix(in oklch, var(--surface) 55%, transparent);
}
.calc-step {
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font: inherit; font-size: 1.3rem;
  background: transparent; border: 1px solid color-mix(in oklch, var(--gold) 40%, transparent);
  color: var(--gold); display: grid; place-items: center; transition: background .2s;
}
.calc-step:hover { background: color-mix(in oklch, var(--gold) 14%, transparent); }
.calc-step:disabled { opacity: 0.35; cursor: default; }
.calc-step-n { font-family: var(--display); font-size: 1.4rem; min-width: 1.6ch; text-align: center; }
.calc-out {
  position: sticky; top: 6rem;
  border: 1px solid color-mix(in oklch, var(--gold) 40%, transparent);
  border-radius: 16px; padding: clamp(1.4rem, 3.5vw, 2rem);
  background: color-mix(in oklch, var(--gold) 6%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: grid; gap: 0.9rem;
}
.calc-out-title { font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.calc-lines { display: grid; gap: 0.1rem; }
.calc-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; font-size: 0.95rem;
  border-bottom: 1px solid color-mix(in oklch, var(--ink) 8%, transparent); }
.calc-row span { color: var(--ink-dim); }
.calc-row b { color: var(--ink); font-weight: 500; white-space: nowrap; }
.calc-row.sub span, .calc-row.sub b { color: color-mix(in oklch, var(--ink-dim) 85%, var(--bg)); font-size: 0.86rem; }
.calc-total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding-top: 0.8rem; border-top: 1px solid color-mix(in oklch, var(--gold) 35%, transparent);
}
.calc-total span { font-size: 0.92rem; color: var(--ink-dim); }
.calc-total strong { font-family: var(--display); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); color: var(--gold); }
.calc-deposit { font-size: 0.92rem; color: var(--ink-dim); }
.calc-deposit strong { color: var(--ink); }
.calc-fine { font-size: 0.8rem; color: color-mix(in oklch, var(--ink-dim) 80%, var(--bg)); line-height: 1.55; }
.calc-cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.2rem; }
@media (max-width: 860px) {
  .calc-wrap { grid-template-columns: 1fr; }
  .calc-out { position: static; }
}

/* ---------- booking ---------- */
.book {
  display: grid; grid-template-columns: minmax(280px, 1fr) minmax(300px, 560px);
  gap: clamp(2.5rem, 6vw, 6rem);
  padding: clamp(5rem, 14vh, 10rem) clamp(1.25rem, 5vw, 4rem);
  max-width: 1280px; margin-inline: auto; align-items: start;
}
.book-copy { display: grid; gap: 1.4rem; justify-items: start; position: sticky; top: 6rem; }
.book-wa { font-size: 1.05rem; }
.book-fine { color: var(--ink-dim); font-size: 0.88rem; }
.book-form { display: grid; gap: 1.1rem; }
.book-form label { display: grid; gap: 0.45rem; font-size: 0.9rem; color: var(--ink-dim); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.book-form input, .book-form select, .book-form textarea {
  background: color-mix(in oklch, var(--surface) 60%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid color-mix(in oklch, var(--ink) 14%, transparent);
  border-radius: 10px; color: var(--ink); font: inherit; font-size: 1rem;
  padding: 0.8em 1em; min-height: 48px; width: 100%;
}
.book-form textarea { min-height: 0; resize: vertical; }
.book-form input::placeholder, .book-form textarea::placeholder { color: color-mix(in oklch, var(--ink-dim) 80%, var(--bg)); }
.book-form input:focus-visible, .book-form select:focus-visible, .book-form textarea:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent;
}
.book-form ::-webkit-calendar-picker-indicator { filter: invert(0.9); }
.deposit-box {
  border: 1px solid color-mix(in oklch, var(--gold) 40%, transparent);
  border-radius: 12px; padding: 1.2rem 1.3rem;
  display: grid; gap: 0.7rem;
  background: color-mix(in oklch, var(--gold) 7%, transparent);
}
.deposit-line { font-size: 1.05rem; }
.deposit-line strong { color: var(--gold); font-family: var(--display); font-size: 1.3rem; }
.deposit-how { color: var(--ink-dim); font-size: 0.9rem; }
.deposit-how strong { color: var(--ink); }
.deposit-upload { font-size: 0.9rem; color: var(--ink-dim); display: grid; gap: 0.45rem; }
.deposit-upload .req {
  color: var(--gold); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem;
}
.deposit-upload input[type="file"] { padding: 0.6em; }
.deposit-upload input[type="file"]::file-selector-button {
  background: transparent; color: var(--gold); border: 1px solid var(--gold);
  border-radius: 999px; padding: 0.45em 1.1em; margin-right: 1em;
  font: inherit; cursor: pointer;
}
.book-accept, .book-publish {
  display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; align-items: start;
  font-size: 0.82rem; color: var(--ink-dim); line-height: 1.55; text-align: left;
}
.book-accept input[type="checkbox"], .book-publish input[type="checkbox"] {
  width: 1.05rem; height: 1.05rem; margin-top: 0.15rem; accent-color: var(--gold); cursor: pointer;
}
.book-accept a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.book-accept a:hover { color: var(--gold-deep); }
.book-publish em { color: color-mix(in oklch, var(--ink-dim) 80%, var(--bg)); font-style: italic; }
.book-publish strong { color: var(--ink); }
.form-send { width: 100%; border: 1px solid var(--gold); background: transparent; font: inherit; }
.form-status { min-height: 1.4em; font-size: 0.92rem; color: var(--gold); }
.form-status.is-error { color: oklch(0.72 0.16 25); }
@media (max-width: 860px) {
  .book { grid-template-columns: 1fr; }
  .book-copy { position: static; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */
.foot {
  background: color-mix(in oklch, var(--bg-deep) 80%, transparent); text-align: center;
  padding: clamp(4rem, 9vh, 6rem) 1.5rem 6.5rem;
  display: grid; gap: 1rem; justify-items: center;
}
.foot-mark { font-family: var(--display); letter-spacing: 0.16em; text-transform: uppercase; font-size: 1.1rem; }
.foot-line { color: var(--ink-dim); font-size: 0.95rem; }
.foot-links { display: flex; gap: 1.6rem; flex-wrap: wrap; justify-content: center; }
.foot-links a { color: var(--gold); text-decoration: none; font-size: 0.95rem; }
.foot-links a:hover { color: var(--gold-deep); }
.foot-legal { gap: 0.7rem; }
.foot-legal a { color: var(--ink-dim); font-size: 0.85rem; }
.foot-legal a:hover { color: var(--gold); }
.foot-dot { color: color-mix(in oklch, var(--ink-dim) 60%, var(--bg)); font-size: 0.85rem; }
.foot-fine { color: color-mix(in oklch, var(--ink-dim) 75%, var(--bg)); font-size: 0.8rem; max-width: 60ch; }

/* ---------- booking success — the invoice code moment ---------- */
.book-done[hidden] { display: none !important; }   /* ⛔ يتخفي لحد ما الحجز يتم — كان بيبان فوق الفورم كأنه واجهة تانية */
.book-done {
  grid-column: 2; display: grid; gap: 0.9rem; justify-items: start;
  border: 1px solid color-mix(in oklch, var(--gold) 45%, transparent);
  border-radius: 16px; padding: clamp(1.8rem, 4vw, 2.6rem);
  background: color-mix(in oklch, var(--gold) 6%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.book-done-big { font-family: var(--display); font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); }
.book-done-label {
  margin-top: 0.4rem; color: var(--ink-dim); font-size: 0.78rem;
  letter-spacing: 0.22em; text-transform: uppercase;
}
.book-done-code {
  font-family: var(--display); color: var(--gold);
  font-size: clamp(1.9rem, 1.4rem + 2.4vw, 3rem);
  letter-spacing: 0.12em; user-select: all;
}
.book-done-fine { color: var(--ink-dim); font-size: 0.92rem; max-width: 44ch; }
.book-done-fine strong { color: var(--ink); }
.invoice-card {
  width: 100%; display: grid; gap: 0.5rem; justify-items: start;
  border: 1px dashed color-mix(in oklch, var(--gold) 55%, transparent);
  border-radius: 14px; padding: 1.1rem 1.3rem;
  background: color-mix(in oklch, var(--gold) 5%, transparent);
}
.invoice-brand { font-size: 0.7rem; letter-spacing: 0.24em; color: var(--gold); text-transform: uppercase; }
.invoice-screenshot { font-size: 0.86rem; color: var(--ink); margin-top: 0.2rem; }
.invoice-screenshot strong { color: var(--gold); }
@media (max-width: 860px) { .book-done { grid-column: 1; } }

/* ---------- Perfect Concierge / My Day chat ---------- */
.chat-chip {
  position: fixed; right: 1.1rem; bottom: calc(4.6rem + env(safe-area-inset-bottom, 0px)); z-index: var(--z-chip);
  display: inline-flex; align-items: center; gap: 0.55rem;
  min-height: 48px; padding: 0.6em 1.25em; border-radius: 999px;
  background: color-mix(in oklch, var(--bg-deep) 78%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--gold); color: var(--gold);
  font: inherit; font-size: 0.95rem; font-weight: 500; cursor: pointer;
  box-shadow: 0 4px 18px rgb(0 0 0 / 0.4);
  transition: transform 0.3s var(--ease-out), background 0.3s, color 0.3s;
}
.chat-chip:hover { transform: scale(1.05); background: var(--gold); color: var(--bg-deep); }
.chat[hidden], .chat [hidden] { display: none !important; }
/* فتح/قفل epic — الشات بيطلع من ناحية زرار الكونسيرج بدوران وبلور */
.chat { transform-origin: bottom right; }
.chat.is-in { animation: chatIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) both; }
.chat.is-out { animation: chatOut 0.34s cubic-bezier(0.4, 0, 1, 1) both; }
@keyframes chatIn {
  0%   { opacity: 0; transform: translateY(40px) translateX(18px) scale(0.72) rotate(3deg); filter: blur(10px); }
  55%  { opacity: 1; }
  70%  { transform: translateY(-6px) scale(1.015) rotate(0deg); filter: blur(0); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes chatOut {
  0%   { opacity: 1; transform: none; filter: blur(0); }
  100% { opacity: 0; transform: translateY(30px) translateX(14px) scale(0.78) rotate(2deg); filter: blur(8px); }
}
.chat {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: calc(var(--z-chip) + 1);
  width: min(400px, calc(100vw - 2.2rem));
  height: min(620px, calc(100svh - 2.2rem));
  display: flex; flex-direction: column;
  background: color-mix(in oklch, var(--bg-deep) 88%, transparent);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border: 1px solid color-mix(in oklch, var(--gold) 32%, transparent);
  border-radius: 18px; overflow: clip;
  box-shadow: 0 24px 70px -20px rgb(0 0 0 / 0.65);
}
.chat-top {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.1rem 0.9rem;
  border-bottom: 1px solid color-mix(in oklch, var(--ink) 10%, transparent);
}
.chat-id { display: grid; gap: 0.15rem; min-width: 0; }
.chat-title { font-family: var(--display); letter-spacing: 0.06em; font-size: 1.05rem; }
.chat-sub { color: var(--ink-dim); font-size: 0.8rem; }
.chat-x {
  margin-left: auto; background: none; border: 0; color: var(--ink-dim);
  font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0.2em 0.4em;
}
.chat-x:hover { color: var(--ink); }
.chat-day {
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid color-mix(in oklch, var(--gold) 22%, transparent);
  background: color-mix(in oklch, var(--gold) 5%, transparent);
  display: grid; gap: 0.2rem;
}
.chat-day-name { font-family: var(--display); font-size: 1rem; }
.chat-day-meta { color: var(--ink-dim); font-size: 0.82rem; }
.chat-day-status { color: var(--gold); font-size: 0.82rem; font-weight: 500; }
/* thread bar — fixed client identity, switch chats, start a new one */
.chat-threads {
  position: relative; display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  border-bottom: 1px solid color-mix(in oklch, var(--ink) 9%, transparent);
}
.ct-current {
  background: none; border: 0; cursor: pointer; color: var(--ink);
  font: inherit; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.3rem;
  max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ct-current .ct-name { color: var(--gold); }
.ct-new {
  margin-left: auto; background: transparent; border: 1px solid var(--gold);
  color: var(--gold); border-radius: 999px; padding: 0.3em 0.85em;
  font: inherit; font-size: 0.8rem; cursor: pointer; transition: background 0.3s, color 0.3s;
}
.ct-new:hover { background: var(--gold); color: var(--bg-deep); }
.ct-list {
  position: absolute; top: 100%; left: 1.1rem; right: 1.1rem; z-index: 5;
  background: color-mix(in oklch, var(--bg-deep) 96%, transparent);
  border: 1px solid color-mix(in oklch, var(--gold) 28%, transparent);
  border-radius: 12px; padding: 0.35rem; margin-top: 0.3rem;
  display: grid; gap: 0.2rem; max-height: 240px; overflow-y: auto;
  box-shadow: 0 18px 50px -16px rgb(0 0 0 / 0.6);
}
.ct-item {
  text-align: right; background: none; border: 0; cursor: pointer;
  color: var(--ink-dim); font: inherit; font-size: 0.9rem;
  padding: 0.55em 0.7em; border-radius: 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ct-item:hover { background: color-mix(in oklch, var(--ink) 8%, transparent); color: var(--ink); }
.ct-item.is-on { color: var(--gold); }

.chat-log {
  flex: 1; min-height: 0; overflow-y: auto; padding: 1rem 1.1rem;
  display: flex; flex-direction: column; gap: 0.65rem;
  scrollbar-width: thin;
  perspective: 800px;
}
.chat-msg { flex: 0 0 auto; } /* الفقاعة بتاخد ارتفاعها الطبيعي — مفيش ضغط */
.chat-msg {
  max-width: 86%; padding: 0.65em 0.95em; border-radius: 14px;
  font-size: 0.95rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: break-word;
  position: relative; overflow: hidden;
  transform-origin: bottom;
  will-change: transform, opacity, filter;
}
.chat-msg--us {
  align-self: flex-start;
  background: color-mix(in oklch, var(--surface) 70%, transparent);
  border: 1px solid color-mix(in oklch, var(--ink) 9%, transparent);
  border-bottom-left-radius: 4px;
  transform-origin: bottom left;
  animation: msgInUs 0.62s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.chat-msg--me {
  align-self: flex-end;
  background: color-mix(in oklch, var(--gold) 16%, var(--surface));
  border: 1px solid color-mix(in oklch, var(--gold) 30%, transparent);
  border-bottom-right-radius: 4px;
  transform-origin: bottom right;
  animation: msgInMe 0.62s cubic-bezier(0.16, 1, 0.3, 1) both;
}
/* دخول زنبركي ثلاثي الأبعاد + موشن بلور: البلور بيفضل خلال الحركة السريعة ويحدّ لما تستقر */
@keyframes msgInUs {
  0%   { opacity: 0; transform: translateY(28px) translateX(-24px) rotateX(34deg) scale(0.84); filter: blur(13px); }
  30%  { opacity: 1; filter: blur(8px); }
  62%  { transform: translateY(-4px) translateX(0) rotateX(0) scale(1.04); filter: blur(0); }
  80%  { transform: translateY(2px) scale(0.99); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes msgInMe {
  0%   { opacity: 0; transform: translateY(28px) translateX(24px) rotateX(34deg) scale(0.84); filter: blur(13px); }
  30%  { opacity: 1; filter: blur(8px); }
  62%  { transform: translateY(-4px) translateX(0) rotateX(0) scale(1.04); filter: blur(0); }
  80%  { transform: translateY(2px) scale(0.99); }
  100% { transform: translateY(0) scale(1); }
}
/* لمعة دهبي بتمر على الفقاعة مرة واحدة بعد ما تستقر */
.chat-msg::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 32%, color-mix(in oklch, var(--gold) 45%, transparent) 50%, transparent 68%);
  transform: translateX(-130%);
  animation: msgSheen 1s ease 0.28s 1 both;
}
@keyframes msgSheen { to { transform: translateX(130%); } }
/* فقاعتي (الموديراتور) ليها حافة دهبي بتتنفّس */
.chat-msg--us::before {
  content: ''; position: absolute; left: 0; top: 12%; bottom: 12%; width: 2px;
  border-radius: 2px; background: linear-gradient(var(--gold), transparent);
  opacity: 0; animation: msgEdge 0.8s ease 0.4s forwards;
}
@keyframes msgEdge { to { opacity: 0.8; } }
.chat-msg--typing { color: var(--ink-dim); letter-spacing: 0.2em; }
.chat-msg--typing i { animation: typedot 1.2s infinite; font-style: normal; }
.chat-msg--typing i:nth-child(2) { animation-delay: 0.2s; }
.chat-msg--typing i:nth-child(3) { animation-delay: 0.4s; }
.chat-wait { align-self: flex-start; font-size: 0.72rem; color: var(--ink-dim); opacity: 0.75; margin: -0.2rem 0 0.2rem; padding: 0 0.2rem; }
@keyframes typedot { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }
.chat-login { padding: 1rem 1.1rem; display: grid; gap: 0.7rem; border-top: 1px solid color-mix(in oklch, var(--ink) 10%, transparent); }
.chat-login-lede { color: var(--ink-dim); font-size: 0.88rem; }
.chat-login input {
  background: color-mix(in oklch, var(--surface) 60%, transparent);
  border: 1px solid color-mix(in oklch, var(--ink) 14%, transparent);
  border-radius: 10px; color: var(--ink); font: inherit; font-size: 0.95rem;
  padding: 0.7em 0.95em; min-height: 46px; width: 100%;
}
.chat-login input:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.chat-login .pill { min-height: 44px; border: 1px solid var(--gold); background: transparent; font: inherit; }
.chat-login-status { min-height: 1.2em; font-size: 0.85rem; color: var(--gold); }
.chat-login-status.is-error { color: oklch(0.72 0.16 25); }
.chat-bar {
  display: flex; gap: 0.6rem; align-items: flex-end;
  padding: 0.8rem 1.1rem;
  border-top: 1px solid color-mix(in oklch, var(--ink) 10%, transparent);
}
.chat-bar input, .chat-bar textarea {
  flex: 1; min-width: 0; min-height: 46px;
  background: color-mix(in oklch, var(--surface) 60%, transparent);
  border: 1px solid color-mix(in oklch, var(--ink) 14%, transparent);
  border-radius: 23px; color: var(--ink); font: inherit; font-size: 0.95rem;
  padding: 0.6em 1.1em;
}
.chat-bar textarea {
  resize: none; line-height: 1.4; max-height: 120px; overflow-y: auto;
  display: block; height: 46px;
}
.chat-bar input:focus-visible, .chat-bar textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.chat-bar button {
  width: 46px; height: 46px; flex: 0 0 auto; border-radius: 50%;
  border: 1px solid var(--gold); background: transparent; color: var(--gold);
  display: grid; place-items: center; cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.chat-bar button:hover { background: var(--gold); color: var(--bg-deep); }
.chat-attach { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 50%; border: 1px solid color-mix(in oklch, var(--ink) 18%, transparent); background: transparent; color: var(--ink-dim); display: grid; place-items: center; cursor: pointer; font-size: 1.15rem; transition: color .25s, border-color .25s; }
.chat-attach:hover { color: var(--gold); border-color: var(--gold); }
.chat-img { max-width: 210px; max-height: 250px; border-radius: 12px; display: block; object-fit: cover; }
/* My Day overlay — animated in-page dashboard sign-in */
.myday-ov { position: fixed; inset: 0; z-index: 200; background: rgba(6,8,12,.55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .4s ease; }
.myday-ov.on { opacity: 1; }
.myday-ov iframe { width: 100%; height: 100%; border: 0; background: #0b0d12;
  transform: translateY(26px) scale(.985); opacity: 0; transition: transform .55s cubic-bezier(.2,.7,.2,1), opacity .55s; }
.myday-ov.on iframe { transform: none; opacity: 1; }
.myday-close { position: fixed; top: 16px; right: 16px; z-index: 201; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.42); color: #fff; font-size: 1.05rem; cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .25s; }
.myday-close:hover { background: rgba(255,255,255,.16); }
.chat-foot {
  padding: 0.55rem 1.1rem 0.8rem; text-align: center; font-size: 0.8rem;
}
.chat-foot a { color: var(--ink-dim); text-decoration: none; }
.chat-foot a:hover { color: var(--gold); }
.chat-foot strong { color: var(--gold); font-weight: 500; }
body.chat-open .chat-chip, body.chat-open .wa-chip { opacity: 0; pointer-events: none; }
.chat-chip, .wa-chip { transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out); }
@media (max-width: 540px) {
  /* dvh يتابع شريط المتصفح + safe-area عشان مربع الكتابة مايبقاش تحت شريط الهاتف،
     و16px يمنع iOS من عمل zoom على الفوكس (ده اللي كان بيزحلق مكان الضغط) */
  .chat {
    right: 0.6rem; left: 0.6rem; width: auto;
    height: min(80dvh, 640px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .chat-bar input, .chat-bar textarea, .chat-login input { font-size: 16px; }
  .chat-bar { padding-bottom: calc(0.8rem + env(safe-area-inset-bottom, 0px)); }
  .chat-bar input, .chat-bar button { min-height: 50px; }
}

/* ---------- WhatsApp chip ---------- */
.wa-chip {
  position: fixed; right: 1.1rem; bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px)); z-index: var(--z-chip);
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold); color: var(--bg-deep);
  box-shadow: 0 4px 18px rgb(0 0 0 / 0.4);
  transition: transform 0.3s var(--ease-out), background 0.3s;
}
.wa-chip:hover { transform: scale(1.07); background: var(--gold-deep); }

/* ---------- reveal defaults: visible without JS ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .intro { display: none; }
}
