/* Site B home (the static home of 17 Nov 2026, approved by the owner, ported): the first screen, "Watch it open", the five
   occasion bands, the closing band. Values are those of output/three-sites-first-screens-2026-11-17/site-b/style.css.
   The bar is the shell's own (b.css); the film wall is the shared component (b.css .b-fwall). Arabic mirrors. */

body.b-home { --hm-line: max(3px, 0.3vh); --hm-line-colour: #2A1020; --hm-gutter: max(16px, 2.5vw); }
html[data-site="b"] body.b-home { background: #F3E6D9; }

/* ---------- the first screen ---------- */
.hm-gate { position: relative; height: 100vh; height: 100dvh; width: 100%; overflow: hidden; isolation: isolate; container-type: size;
  /* the photo's drawn height, so words sit on the photo itself */
  --ih: max(100cqh, 56.25cqw); --u: 1cqh; }
.hm-gate-photo, .hm-gate-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hm-gate-photo { z-index: -1; }
.hm-gate-photo img { object-fit: cover; object-position: 50% 0%; display: block; }
.hm-words { --p: calc(var(--ih) / 100); position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  padding: max(calc(var(--u) * 10.4), calc(var(--p) * 10)) var(--hm-gutter) max(4cqh, calc(100cqh - var(--p) * 90)); text-align: center; pointer-events: none; }
.hm-words > * { pointer-events: auto; }
.hm-lede { position: relative; }
.hm-lede::before { content: ""; position: absolute; z-index: -1; inset: -16% -14% -18%;
  background: radial-gradient(closest-side, rgba(var(--b-mist), 0.8), rgba(var(--b-mist), 0.55) 55%, rgba(var(--b-mist), 0) 100%); pointer-events: none; }
.hm-words h1 { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: max(44px, calc(var(--p) * 9.2)); line-height: 0.95; letter-spacing: -0.012em; color: var(--plum); }
.hm-nb { white-space: nowrap; display: block; }
.hm-words p { margin: calc(var(--p) * 2.2) auto 0; max-width: max(300px, calc(var(--p) * 50)); font-size: max(17px, calc(var(--p) * 2.2)); line-height: 1.4; font-weight: 500; color: var(--ink); text-wrap: balance;
  text-shadow: 0 0 0.4em rgba(var(--b-mist), 1), 0 0 1em rgba(var(--b-mist), 0.85); }
.hm-cta { display: inline-flex; align-items: center; justify-content: center; margin-top: auto; min-height: max(52px, calc(var(--u) * 6)); padding: 0 32px;
  font-family: var(--f-text); font-size: max(15px, 0.78vw); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; color: var(--ivory);
  background: var(--plum); border-radius: 2px; white-space: nowrap;
  box-shadow: none; transition: background 0.2s; user-select: none; touch-action: manipulation; }
.hm-cta:hover { background: #5b2744; }
:is(.hm-cta, .hm-band, .hm-close a):focus-visible { outline: 2px solid var(--rose); outline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .hm-words h1, .hm-words p, .hm-cta { animation: hm-appear 0.5s ease-out both; }
  .hm-words p { animation-delay: 0.08s; }
  .hm-cta { animation-delay: 0.16s; }
}
@keyframes hm-appear { from { opacity: 0; } to { opacity: 1; } }
@media (orientation: portrait) {
  .hm-gate { --ih: max(100cqh, 177.78cqw); --u: min(0.48cqh, 1cqw); }
  .hm-gate-photo img { object-position: 50% 50%; }
  .hm-words { padding: calc(var(--u) * 30) var(--hm-gutter) 0; }
  .hm-lede::before { inset: -18% -6% -14%; }
  .hm-words h1 { font-size: max(52px, calc(var(--u) * 15.4)); line-height: 0.96; }
  .hm-words p { font-size: max(18px, calc(var(--u) * 4.7)); margin-top: calc(var(--u) * 5); max-width: 22em; font-weight: 400; }
  .hm-cta { margin-top: calc(var(--u) * 7); min-height: max(56px, calc(var(--u) * 14.5)); font-size: 15px; padding: 0 28px; }
}
html[lang="ar"] .hm-words h1 { letter-spacing: 0; line-height: 1.25; font-weight: 700; }
html[lang="ar"] .hm-words p { font-weight: 500; line-height: 1.6; }
html[lang="ar"] .hm-cta { letter-spacing: 0; text-transform: none; font-size: max(18px, calc(var(--u) * 2.1)); }

/* ---------- Watch it open: the strip, then the film wall ---------- */
.hm-watch, .hm-occasions, .hm-close { border-top: var(--hm-line) solid var(--hm-line-colour); }
.hm-strip { position: relative; height: min(30vh, 16.5vw); min-height: 170px; overflow: hidden; isolation: isolate; display: flex; align-items: flex-start; justify-content: center; text-align: center; padding: 3.2% var(--hm-gutter) 0; }
.hm-strip-photo, .hm-strip-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hm-strip-photo { z-index: -1; }
.hm-strip-photo img { object-fit: cover; object-position: 50% 0%; display: block; }
.hm-strip-words h2 { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: max(52px, 7.6vh); line-height: 0.95; letter-spacing: -0.012em; color: var(--plum); text-shadow: 0 0 0.35em rgba(var(--b-mist), 0.9); }
.hm-strip-words p { margin: max(6px, 0.8vh) auto 0; font-size: max(17px, 2.1vh); line-height: 1.35; font-weight: 500; color: var(--ink); text-shadow: 0 0 0.4em rgba(var(--b-mist), 1), 0 0 1em rgba(var(--b-mist), 0.85); }
.hm-watch .b-fwall { border-bottom: 0; }
html[lang="ar"] .hm-strip-words h2 { letter-spacing: 0; line-height: 1.3; font-weight: 700; }
html[lang="ar"] .hm-strip-words p { line-height: 1.6; }

/* ---------- the five occasion bands ---------- */
.hm-band { position: relative; display: block; height: calc(100vh / 3); min-height: 200px; overflow: hidden; color: var(--ivory); text-decoration: none; isolation: isolate; --bg: max(20px, 3.4vw); }
.hm-band + .hm-band { border-top: 0; } /* round 3: no seam between the strips */
.hm-band-photo, .hm-band-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hm-band-photo { z-index: -2; }
.hm-band-photo img { object-fit: cover; object-position: 50% 50%; display: block; }
/* round 3: the plum shade sits only behind the words (plum at 35%, feathered to nothing), never over the whole strip */
.hm-band::after { content: none; }
.hm-band-words::before { content: ""; position: absolute; z-index: -1; inset: -35% -22% -35% -14%; pointer-events: none; background: radial-gradient(closest-side, rgba(var(--b-shade), 0.35), rgba(var(--b-shade), 0.35) 45%, rgba(var(--b-shade), 0) 100%); }
.hm-band-words { position: absolute; inset-inline-start: var(--bg); top: 50%; translate: 0 -50%; display: grid; gap: max(8px, 1vh); max-width: 36vw; text-shadow: 0 0.04em 0.5em rgba(var(--b-shade), 0.45); }
.hm-band-word { font-family: var(--f-display); font-weight: 500; font-size: max(44px, 7vh); line-height: 1; letter-spacing: -0.01em; transition: transform 0.3s ease-out; }
.hm-band:hover .hm-band-word { transform: translateX(8px); }
html[dir="rtl"] .hm-band:hover .hm-band-word { transform: translateX(-8px); }
.hm-band-line { font-size: max(17px, 2vh); line-height: 1.4; font-weight: 400; }
html[lang="ar"] .hm-band-word { letter-spacing: 0; line-height: 1.3; font-weight: 700; }
html[lang="ar"] .hm-band-line { line-height: 1.6; }

/* ---------- the closing band: the foil logo on its lit plum paper, centred ---------- */
.hm-close { position: relative; min-height: 30vh; overflow: hidden; isolation: isolate; display: grid; justify-items: center; align-content: center; text-align: center; row-gap: max(6px, 0.6vw); padding: max(18px, 1.6vw) var(--hm-gutter); color: var(--ivory); }
.hm-close-paper, .hm-close-paper img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hm-close-paper { z-index: -1; }
.hm-close-paper img { object-fit: cover; object-position: 0% 0%; display: block; }
/* the foil, cut from the same photograph, melts into the paper at its edges; 1.6 times the static page's width on desktop */
.hm-close-logo { width: min(35.2vw, 70.4vh); height: auto; mix-blend-mode: lighten;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent); mask-composite: intersect; }
.hm-close-words { display: grid; justify-items: center; gap: max(8px, 0.6vw); }
.hm-close-line { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: max(34px, 2.6vw); line-height: 1; letter-spacing: -0.01em; }
.hm-close-links { display: flex; justify-content: center; gap: max(30px, 3vw); font-size: max(22px, 1.6vw); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rose-hi); }
.hm-close-links a { padding: 0.3em 0; color: inherit; text-decoration: none; }
.hm-close-links a:hover { color: var(--ivory); }
.hm-close-small { margin: 0; font-size: max(16px, 0.85vw); line-height: 1.4; color: rgba(251, 241, 236, 0.82); }
html[lang="ar"] .hm-close-line { letter-spacing: 0; line-height: 1.4; font-weight: 700; }
html[lang="ar"] .hm-close-links { letter-spacing: 0; text-transform: none; }

/* ---------- phone and any tall screen ---------- */
@media (orientation: portrait), (max-width: 760px) {
  .hm-strip { height: 27svh; min-height: 200px; padding: 22px 16px 0; align-items: flex-start; }
  /* the photo is drawn taller than the strip and pinned to its top: the bouquets fall below the words */
  .hm-strip-photo img { height: 120%; object-position: 0% 0%; }
  .hm-strip-words h2 { font-size: max(44px, 13vw); }
  .hm-strip-words p { font-size: 16px; max-width: 22em; text-wrap: balance; margin-top: 6px; }
  /* round 3: each strip is a 4:5 frame on the tall-1600 crop, so the cake or the ring fills it; the words sit low over their own shade */
  .hm-band { height: auto; aspect-ratio: 4 / 5; min-height: 0; display: flex; align-items: flex-end; --bg: 20px; }
  .hm-band-words { text-shadow: 0 1px 3px rgba(var(--b-shade), 0.75), 0 0.04em 0.7em rgba(var(--b-shade), 0.7); }
  .hm-band-words { position: relative; inset-inline-start: auto; top: auto; translate: none; padding: 26px 0 26px var(--bg); max-width: calc(54% - 4px); }
  html[dir="rtl"] .hm-band-words { padding: 26px var(--bg) 26px 0; }
  .hm-band-word { font-size: 36px; }
  .hm-band-line { font-size: 16px; }
  .hm-close { min-height: 280px; padding: 24px 0; row-gap: 14px; }
  html[lang="ar"] .hm-close-line { font-size: 30px; }
  .hm-close-logo { width: min(340px, 88vw); }
  .hm-close-words { padding: 0 16px; gap: 8px; }
  .hm-close-line { font-size: 34px; }
  .hm-close-links { gap: 30px; font-size: 17px; }
  .hm-close-small { font-size: 16px; max-width: 20em; text-wrap: balance; }
}
@media (max-width: 379px) { .hm-band-word--long { font-size: 30px; } }
@media (prefers-reduced-motion: reduce) { .hm-band-word { transition: none; } }

/* Round 6, N4: one warm light sweep across the garden at 300 ms (the same code-made gold light the guest envelope uses): a soft band of light crosses the photo once, left to right, in 0.9 s, then is gone. The photo itself never moves (steady camera). No sweep with reduced motion. */
.hm-sweep { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .hm-sweep { display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; mix-blend-mode: screen;
    background: linear-gradient(100deg, rgba(255, 214, 150, 0) 38%, rgba(255, 206, 140, 0.34) 47%, rgba(255, 232, 190, 0.5) 50%, rgba(255, 206, 140, 0.34) 53%, rgba(255, 214, 150, 0) 62%);
    background-size: 100% 100%; transform: translateX(-100%); animation: hm-sweep 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.3s 1 both; }
  html[dir="rtl"] .hm-sweep { animation-name: hm-sweep-rtl; }
}
@keyframes hm-sweep { 0% { transform: translateX(-100%); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(100%); opacity: 0; } }
@keyframes hm-sweep-rtl { 0% { transform: translateX(100%); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(-100%); opacity: 0; } }
/* Site B v2, finding 4: the English price line on the phone is 18px/1.4, at most 340px wide */
@media (orientation: portrait) { html[lang="en"] .hm-words p { font-size: 18px; line-height: 1.4; max-width: 340px; } }

/* Finding 10 (phone): the words of an occasion band use the width the photograph has (20 px each side), supporting text 18px/1.4 at most 30ch */
@media (orientation: portrait), (max-width: 760px) {
  .hm-band-words, html[dir="rtl"] .hm-band-words { max-width: calc(100% - 40px); margin-inline: 20px; padding: 26px 0; }
  .hm-band-line { font-size: 18px; line-height: 1.4; max-width: 30ch; }
  html[lang="ar"] .hm-band-line { line-height: 1.6; }
}
