/* ==========================================================================
   NNP RAISINS — NEWS POST, GULFOOD DUBAI 2025: SAMARKAND | DUBAI (v1, 2026-10-07).
   Loaded by news/gulfood-dubai-2025/ only, after site.css.

   Two cities at the same blue hour, one slanted seam of light between
   them. The scroll pushes the seam from the centre to the left edge, so
   home (the Registan in February) gives way to the show (the Dubai
   skyline). The title breaks across the seam; the three cleared sentences
   read in a column on the Dubai side; the stand photographs arrive as
   prints on the left once Dubai has taken it. Mechanism of this page and
   no other in the set: a WIPE between two places.

   ⚠ THE BASE STATE IS THE READABLE DOCUMENT (GOTCHAS): title, the two
     views one above the other with a diagonal join, the sentences, the
     prints, the facts. `.sd-live` (desktop, one pinned scene) and
     `.sd-flat` (phone) come from post-seam.js.
   ⚠ The seam is a clip-path on the Samarkand layer, written by the script
     from a tweened number — never a CSS transition. The hairline is a
     skewed box; `--sd-skew` is computed from the viewport so the line and
     the clip edge share one angle.
   ⚠ LIGHT: two images on transform only; veils are gradients; no filter.
   ⚠ NO CSS TRANSITION on anything the script tweens. Nothing needs :hover.
   ⚠ The two stand photographs are 960px Telegram files: prints only,
     never larger than ~24vw.
   ========================================================================== */

.sd-dark-page, .sd-dark-page body { background: #070b18; }
.sd-dark-page body { padding-top: 0; }
.sd { --sd-bg: #070b18; --sd-gold: #f3c46b; --sd-skew: -6deg;
      position: relative; background: var(--sd-bg); color: var(--chalk); overflow-x: clip; }

/* ------------------------------------------------------- masthead ---- */
.sd-dark-page .masthead:not(.is-stuck) { background: transparent; border-bottom-color: transparent; }
.sd-dark-page .masthead.is-stuck { background: rgba(7,11,24,.92); border-bottom-color: rgba(242,237,248,.12); }
.sd-dark-page .masthead .brand { color: #fff; }
.sd-dark-page .masthead .navtoggle { color: #fff; border-color: rgba(255,255,255,.35); }
@media (min-width: 1001px) {
  .sd-dark-page .masthead .mainnav a:not(.btn) { color: var(--chalk-dim); }
  .sd-dark-page .masthead .mainnav a:not(.btn):hover,
  .sd-dark-page .masthead .mainnav a:not(.btn)[aria-current="page"] { color: #fff; }
  .sd-dark-page .masthead .btn-primary { background: var(--chalk); color: var(--violet-dp); }
  .sd-dark-page .masthead .btn-primary::before { background: #fff; }
  .sd-dark-page .masthead :focus-visible { outline-color: #fff; }
}

/* ------------------------------------------------------------- type ---- */
.sd-kick { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--sd-gold); margin: 0 0 18px; }
.sd-h1 { font-family: var(--display); font-weight: 800; color: #fff; font-size: clamp(60px, 8.4vw, 148px); line-height: .88; letter-spacing: -.055em; margin: 0; text-wrap: nowrap; }
.sd-ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.sd-ln > span { display: inline-block; }
.sd-accent > span { color: var(--sd-gold); }
.sd-lead { margin: 22px 0 0; max-width: 38ch; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; color: var(--chalk-dim); }
.sd-h2 { font-family: var(--display); font-weight: 800; color: #fff; font-size: clamp(48px, 7.4vw, 132px); line-height: .9; letter-spacing: -.055em; margin: 0; text-wrap: balance; }
.sd-h2 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.sd-h2 .w > span { display: inline-block; }
.sd-p { position: relative; margin: 0; padding-left: 52px; max-width: 42ch; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.55; color: var(--chalk); }
.sd-n { position: absolute; left: 0; top: .55em; font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .18em; color: var(--sd-gold); }
.sd-n::after { content: ''; position: absolute; left: 0; top: 1.9em; width: 24px; height: 1px; background: var(--sd-gold); opacity: .6; }
.sd-facts { margin: 26px 0 0 52px; display: grid; gap: 10px; }
.sd-facts > div { display: flex; gap: 14px; align-items: baseline; padding: 9px 0 8px; border-top: 1px solid rgba(242,237,248,.16); }
.sd-facts dt { flex: 0 0 64px; font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--sd-gold); }
.sd-facts dd { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.15; letter-spacing: -.03em; color: #fff; }

/* ================================================== THE TWO CITIES (base) */
.sd-scene { position: relative; }
.sd-stage { position: relative; display: flex; flex-direction: column; gap: 30px; padding: calc(var(--mast-h, 90px) + 24px) var(--spine) 60px; overflow: hidden; }
.sd-col, .sd-side { display: contents; }
.sd-head { order: 1; } .sd-worlds { order: 2; } [data-sd-slot="p1"] { order: 3; } .sd-prints { order: 4; } [data-sd-slot="p2"] { order: 5; } .sd-end { order: 6; }
.sd-worlds { position: relative; display: flex; flex-direction: column; margin: 0 calc(-1 * var(--spine)); }
.sd-world { position: relative; overflow: hidden; }
.sd-world--sam { order: 1; z-index: 1; clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%); }
.sd-world--dxb { order: 2; margin-top: -11%; }
.sd-world-img { display: block; width: 100%; height: auto; }
.sd-veil { position: absolute; inset: 0; pointer-events: none; }
.sd-veil--sam { background: linear-gradient(180deg, rgba(7,11,24,.35) 0%, rgba(7,11,24,0) 30%, rgba(7,11,24,0) 60%, rgba(7,11,24,.7) 100%); }
.sd-veil--dxb { background: linear-gradient(180deg, rgba(7,11,24,.2) 0%, rgba(7,11,24,0) 30%, rgba(7,11,24,0) 60%, rgba(7,11,24,.75) 100%); }
.sd-tag { position: absolute; z-index: 2; bottom: 18px; margin: 0; font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.sd-tag b { display: block; margin-bottom: 8px; font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2.2vw, 34px); line-height: 1; letter-spacing: -.03em; text-transform: none; color: #fff; }
.sd-tag--sam { left: var(--spine); }
.sd-tag--dxb { right: var(--spine); text-align: right; }
.sd-seam { display: none; }
.sd-grain { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: .07; background: url("../img/grain-256.png") repeat; background-size: 160px 160px; }
.sd-col > *, .sd-side > *, .sd-prints { position: relative; z-index: 4; }
.sd-hint { display: none; }

/* the prints (base: the counter and the lounge side by side, the invitation under) */
.sd-prints { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.sd-print { position: relative; margin: 0; }
.sd-print--counter { transform: rotate(-1.6deg); }
.sd-print--lounge { transform: rotate(1.8deg); margin-top: 30px; }
.sd-print--card { grid-column: 1 / -1; width: min(60%, 340px); margin: 10px auto 0; transform: rotate(-1.2deg); }
.sd-print-in { padding: 9px 9px 0; background: linear-gradient(165deg, #fffdf7, #efeadd); box-shadow: 0 40px 80px -28px rgba(0,0,0,.95), 0 0 0 1px rgba(0,0,0,.08); }
.sd-print-in img { display: block; width: 100%; height: auto; }
.sd-print figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; padding: 11px 9px 11px; background: linear-gradient(165deg, #fffdf7, #efeadd);
  font-family: var(--mono); font-weight: 500; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #6a6383; }
.sd-print figcaption span:first-child { color: #16141c; }
.sd-print figcaption span:last-child { margin-left: auto; text-align: right; }

/* ================================================== THE TWO CITIES (live) */
.sd-live .sd-scene { height: 520vh; }
.sd-live .sd-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.sd-live .sd-stage { display: block; height: 100%; padding: 0; overflow: hidden; }
.sd-live .sd-worlds { position: absolute; inset: 0; z-index: 0; display: block; margin: 0; }
.sd-live .sd-world { position: absolute; inset: 0; margin: 0; order: 0; }
.sd-live .sd-world--sam { z-index: 1; clip-path: polygon(0 0, calc(50% + 3vw) 0, calc(50% - 3vw) 100%, 0 100%); }
.sd-live .sd-world--dxb { z-index: 0; }
.sd-live .sd-world-img { width: 100%; height: 100%; object-fit: cover; }
.sd-live .sd-world--sam .sd-world-img { object-position: 50% 64%; }
.sd-live .sd-world--dxb .sd-world-img { object-position: 60% 50%; }
.sd-live .sd-veil--sam { background:
  linear-gradient(180deg, rgba(7,11,24,.5) 0%, rgba(7,11,24,0) 28%, rgba(7,11,24,0) 70%, rgba(7,11,24,.72) 100%); }
.sd-live .sd-veil--dxb { background:
  radial-gradient(42% 34% at 70% 46%, rgba(7,11,24,.38), rgba(7,11,24,0) 70%),
  linear-gradient(270deg, rgba(7,11,24,.82) 0%, rgba(7,11,24,.6) 26%, rgba(7,11,24,.1) 48%, rgba(7,11,24,0) 62%),
  linear-gradient(180deg, rgba(7,11,24,.5) 0%, rgba(7,11,24,0) 26%, rgba(7,11,24,0) 72%, rgba(7,11,24,.72) 100%); }
.sd-live .sd-tag { bottom: 5vh; }
.sd-live .sd-tag--sam { left: max(var(--gut), calc(50vw - 760px)); }
.sd-live .sd-tag--dxb { right: max(var(--gut), calc(50vw - 760px)); }
/* the seam: a hairline of light, skewed to the clip edge's angle; the distance rides on it near the foot */
.sd-live .sd-seam { display: block; position: absolute; z-index: 2; top: -10vh; bottom: -10vh; left: 50%; width: 2px; margin-left: -1px; pointer-events: none;
  transform: skewX(var(--sd-skew)); transform-origin: 50% 50%;
  background: linear-gradient(180deg, rgba(255,236,196,0) 0%, rgba(255,240,208,.95) 18%, rgba(255,240,208,.95) 82%, rgba(255,236,196,0) 100%);
  box-shadow: 0 0 16px 2px rgba(255,214,150,.55), 0 0 70px 10px rgba(255,200,120,.22); }
.sd-live .sd-km { position: absolute; left: 50%; top: 78.5%; transform: translate(-50%, -50%) skewX(calc(-1 * var(--sd-skew))); white-space: nowrap;
  padding: 7px 12px 6px; border: 1px solid rgba(255,240,208,.55); border-radius: 2px; background: rgba(7,11,24,.62);
  font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.9); }
.sd-live .sd-km b { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.03em; color: #fff; margin-right: 6px; vertical-align: -2px; }
/* the words */
.sd-live .sd-col { position: absolute; inset: 0; z-index: 5; display: block; pointer-events: none; }
.sd-live .sd-head { position: absolute; left: 0; right: 0; top: 18vh; margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 3vw; align-items: end; }
.sd-live .sd-head .sd-kick { grid-column: 1; grid-row: 1; justify-self: end; text-align: right; margin: 0 0 20px; }
.sd-live .sd-h1 { display: contents; }
.sd-live .sd-h1 .sd-ln:first-child { grid-column: 1; grid-row: 2; justify-self: end; }
.sd-live .sd-h1 .sd-ln.sd-accent { grid-column: 2; grid-row: 3; justify-self: start; margin-top: -.08em; }
.sd-live .sd-head .sd-lead { grid-column: 2; grid-row: 4; margin: 22px 0 0; max-width: 40ch; color: var(--chalk); text-shadow: 0 2px 18px rgba(7,11,24,.8), 0 0 2px rgba(7,11,24,.6); }
.sd-live .sd-side { position: absolute; display: grid; right: max(var(--gut), calc(50vw - 760px)); top: 50%; transform: translateY(-50%); width: min(34vw, 500px); }
.sd-live .sd-side > * { grid-area: 1 / 1; align-self: center; margin: 0; }
/* the prints: the left 60vw, in front of the water once Dubai has it */
.sd-live .sd-prints { display: block; position: absolute; z-index: 4; left: 0; top: 0; width: 60vw; height: 100%; margin: 0; }
.sd-live .sd-print { position: absolute; margin: 0; }
.sd-live .sd-print--counter { left: 4vw; bottom: 8vh; width: min(22vw, 50vh); }
.sd-live .sd-print--lounge { left: 28vw; bottom: 36vh; width: min(15vw, 34vh); }
.sd-live .sd-print--card { left: 38vw; bottom: 5vh; width: min(11vw, 19vh); }
.sd-live .sd-hint { display: block; position: fixed; left: 50%; bottom: 14px; z-index: 6; margin: 0; transform: translateX(-50%); white-space: nowrap; opacity: 0;
  font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(242,237,248,.7); }
.sd-live .sd-hint i { display: inline-block; width: 1px; height: 18px; margin-right: 12px; vertical-align: middle; background: rgba(242,237,248,.5); }

/* ------------------------------------------------------ the next show ---- */
.sd-next { position: relative; padding: clamp(60px, 9vh, 120px) 0 clamp(100px, 15vh, 180px); }
.sd-next-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(28px, 5vw, 96px); }
.sd-addr { margin: clamp(26px, 3.4vw, 44px) 0 0; max-width: 460px; display: grid; }
.sd-addr > div { display: grid; gap: 4px; padding: 12px 0 11px; border-top: 1px solid rgba(242,237,248,.14); }
.sd-addr > div:last-child { border-bottom: 1px solid rgba(242,237,248,.14); }
.sd-addr dt { font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--sd-gold); }
.sd-addr dd { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.12; letter-spacing: -.03em; color: #fff; }
.sd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 3.4vw, 40px); }
.sd-btn-ghost { color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.35); }
.sd-btn-ghost:hover, .sd-btn-ghost:focus-visible { border-color: #fff; color: #fff; }
.sd-tilt-room { perspective: 1400px; }
.sd-poster { position: relative; margin: 0; border-radius: 8px; overflow: hidden; clip-path: inset(0 round 8px); transform-style: preserve-3d;
  box-shadow: 0 60px 120px -40px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.1) inset; }
.sd-poster img { display: block; width: 100%; height: auto; }
.sd-poster-sheen { position: absolute; inset: 0; pointer-events: none; opacity: .9;
  background: linear-gradient(115deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.22) 48%, rgba(255,255,255,0) 58%); }

/* ------------------------------------------------------------ phone ---- */
@media (max-width: 900px) {
  .sd-stage { padding-top: calc(var(--mast-h, 74px) + 16px); gap: 26px; }
  .sd-h1 { font-size: clamp(52px, 15vw, 72px); }
  .sd-lead { font-size: 16px; }
  .sd-p { padding-left: 40px; font-size: 16px; max-width: none; }
  .sd-facts { margin-left: 40px; }
  .sd-worlds { margin: 0 calc(-1 * var(--gut, 20px)); }
  .sd-world--sam { clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%); }
  .sd-world--dxb { margin-top: -14%; }
  .sd-world-img { aspect-ratio: 4 / 3; object-fit: cover; }
  .sd-tag { bottom: 12px; font-size: 9.5px; }
  .sd-tag--sam { left: var(--gut, 20px); bottom: 14px; }
  .sd-tag--dxb { right: var(--gut, 20px); }
  .sd-prints { gap: 16px; }
  .sd-print--lounge { margin-top: 22px; }
  .sd-print--card { width: 64%; }
  .sd-next-grid { grid-template-columns: minmax(0, 1fr); }
  .sd-tilt-room { order: -1; }
}
