/* 7 AROMA — Correspondence. Seven letters; one of them is addressed to you.
   Tokens: spec 3.1–3.3. Gold is a 1px line only; text uses ink, ink-2, kraft-ink, gold-ink (and gold-hand >= 24px). */
:root {
  --paper: #F3EBDC; --paper-2: #ECE2CF; --stock: #FAF6EE; --aero: #E4E7E0;
  --kraft: #C4A686; --kraft-ink: #6E5A43;
  --ink: #161513; --ink-2: #4A4237;
  --gold: #B8913F; --gold-ink: #6F531C; --gold-hand: #9A7630;
  --postmark: #2B2A33; --sage: #7F8C6A;
  --s1: #EDC3B3; --s2: #C5753C; --s3: #79A0A3; --s4: #E1C05F; --s5: #7DBAA9; --s6: #AA6C7E; --s7: #999999;

  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hand: 'Aref Ruqaa', 'Amiri', serif;
  --ar-serif: 'Amiri', 'Aref Ruqaa', serif;
  --ar-body: 'IBM Plex Sans Arabic', 'Aref Ruqaa', sans-serif;

  --pad: clamp(16px, 4.6vw, 72px);
  --gap: 24px;
  --section: clamp(64px, 14vh, 176px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --tint: #F2E7D8;
  --nav-h: 72px;
  --paper-shadow: 0 1px 2px rgba(22,21,19,.10), 0 22px 40px -24px rgba(22,21,19,.42);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--paper); color: var(--ink);
  font: 300 16px/1.7 var(--sans);
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
@media (min-width: 1440px) { body { font-size: 17px; } }
/* M7 paper: one fixed grain layer */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .06; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; }
ol, ul { list-style: none; }
[hidden] { display: none !important; }
.stamp-svg, .pm-svg, .ring-svg, .seal-svg, .gulf { direction: ltr; }
.enc-no, .ss-name, .ss-no, .byair { direction: ltr; unicode-bidi: isolate; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[dir=rtl] .arr-ic { transform: scaleX(-1); }

/* language twins: show the line that belongs to the current language */
html[lang=en] [data-show=ar], html[lang=ar] [data-show=en] { display: none !important; }

/* ---------- type ---------- */
h1, h2 { font-family: var(--serif); font-weight: 300; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(42px, min(5.6vw, 10.5vh), 92px); line-height: 1; letter-spacing: -.005em; text-transform: uppercase; }
h2 { font-size: clamp(34px, min(3.6vw, 6.4vh), 56px); line-height: 1.06; letter-spacing: -.004em; }
h2 em, h1 em { font-style: italic; color: var(--kraft-ink); }
.kicker { font: 500 11px/1.5 var(--sans); letter-spacing: .30em; text-transform: uppercase; color: var(--gold-ink); }
.small { font: 500 10.5px/1.6 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.body { color: var(--ink-2); max-width: 60ch; }
.ar-hand { font-family: var(--hand); color: var(--gold-hand); font-weight: 400; letter-spacing: 0; text-transform: none; }
.en-it { font-family: var(--serif); font-style: italic; color: var(--ink-2); }
:lang(ar) { font-family: var(--ar-body); letter-spacing: 0; }
.ar-hand:lang(ar) { font-family: var(--hand); }

/* ---------- motif M3: the airmail edge ---------- */
.airmail { height: 6px; background: repeating-linear-gradient(-45deg, var(--s2) 0 10px, var(--stock) 10px 16px, var(--s3) 16px 26px, var(--stock) 26px 32px); }
.air-border { position: absolute; inset: 10px; pointer-events: none; z-index: 0; }
.air-border i { position: absolute; background: repeating-linear-gradient(-45deg, var(--s2) 0 10px, var(--stock) 10px 16px, var(--s3) 16px 26px, var(--stock) 26px 32px); background-attachment: local; }
.air-border i:nth-child(1) { top: 0; left: 0; right: 0; height: 6px; }
.air-border i:nth-child(2) { bottom: 0; left: 0; right: 0; height: 6px; }
.air-border i:nth-child(3) { top: 0; bottom: 0; left: 0; width: 6px; }
.air-border i:nth-child(4) { top: 0; bottom: 0; right: 0; width: 6px; }

/* ---------- components (3.7) ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 30px;
  background: var(--ink); color: var(--paper); font: 500 11.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  border: 0; border-radius: 0; cursor: pointer; white-space: nowrap;
  transition: background .3s var(--ease), letter-spacing .3s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(184,145,63,.55); transition: inset .3s var(--ease), border-color .3s var(--ease); pointer-events: none; }
.btn:hover { background: #221F1B; letter-spacing: .24em; }
.btn:hover::before { inset: 3px; border-color: var(--gold); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; }
.btn[aria-disabled="true"] { background: #6B655C; color: #E9E2D4; cursor: not-allowed; }
.btn[aria-disabled="true"]::before { border-color: rgba(243,235,220,.25); }
.btn .ic { width: 16px; height: 16px; }
html[lang=ar] .btn { font: 500 14px/1 var(--ar-body); letter-spacing: 0; }

.link {
  display: inline-flex; align-items: center; gap: 8px; font: 500 11.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ink);
  padding: 14px 0 6px; min-height: 44px;
  background: linear-gradient(var(--gold), var(--gold)) 0 100% / 100% 1px no-repeat;
}
.link:hover { background: radial-gradient(circle, var(--gold-ink) 1px, transparent 1.4px) 0 100% / 6px 3px repeat-x; animation: route 600ms linear infinite; }
@keyframes route { to { background-position: -12px 100%; } }
.link .arr, .link .arr-ic { display: inline-block; transition: transform .3s var(--ease); }
.link .arr-ic { width: 15px; height: 15px; }
.link:hover .arr, .link:hover .arr-ic { transform: translateX(4px); }
[dir=rtl] .link:hover .arr { transform: translateX(-4px); }
[dir=rtl] .link:hover .arr-ic { transform: scaleX(-1) translateX(4px); }
.link:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 4px; }
.link:active { opacity: .7; }
html[lang=ar] .link { font: 500 14px/1 var(--ar-body); letter-spacing: 0; }

/* stamp chips (hero strip, rail, mini strip, menu) */
.chip { position: relative; display: grid; place-items: end center; padding: 6px 3px 0; min-width: 44px; min-height: 52px; opacity: .55; filter: saturate(.7);
  transition: opacity .2s var(--ease), transform .2s var(--ease), filter .2s var(--ease); }
.chip .stamp-svg { filter: drop-shadow(0 1px 1px rgba(22,21,19,.12)) drop-shadow(0 4px 6px rgba(22,21,19,.12)); }
.chip:hover { opacity: .85; transform: translateY(-2px); }
.chip[aria-selected="true"] { opacity: 1; filter: none; transform: translateY(-6px); }
.chip:active { transform: translateY(-5px); }
.chip:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; }
.chip .chip-pm { position: absolute; width: 22px; height: 22px; top: 0; inset-inline-end: -4px; opacity: 0; transform: scale(1.3); transition: opacity .14s, transform .14s; pointer-events: none; }
.chip[aria-selected="true"] .chip-pm { opacity: .72; transform: none; }
.chip .chip-pm svg { width: 100%; height: 100%; overflow: visible; }

/* postmarks */
.pm-svg { width: 100%; height: 100%; overflow: visible; transform: rotate(var(--rot, -10deg)); }
.pm-ink { opacity: .72; }
[dir=rtl] .pm-cancel { transform: scaleX(-1); transform-origin: 60px 60px; }
.pm-cancel path { stroke-dasharray: 1 1; stroke-dashoffset: 0; }

/* M5 label frame */
.label-frame { position: relative; display: inline-block; border: 1px solid var(--gold); padding: 20px 28px 14px; }
.label-frame .no { position: absolute; top: 0; left: 50%; transform: translate(-50%, -52%); padding: 0 10px; background: var(--stage-bg, var(--paper));
  font: 500 13px/1 var(--sans); letter-spacing: .2em; color: var(--gold-ink); font-variant-numeric: tabular-nums lining-nums; }

/* M6 tipped-in photographs (real objects only) */
.tipped { position: relative; background: var(--stock); padding: 12px; border-radius: 2px; box-shadow: var(--paper-shadow); }
.tipped img { width: 100%; height: auto; filter: sepia(.12) saturate(.92) contrast(.97) brightness(1.02); }
.tipped::after { content: ""; position: absolute; inset: 6px; pointer-events: none;
  background:
    linear-gradient(135deg, var(--ink) 50%, transparent 50%) top left / 18px 18px no-repeat,
    linear-gradient(225deg, var(--ink) 50%, transparent 50%) top right / 18px 18px no-repeat,
    linear-gradient(45deg, var(--ink) 50%, transparent 50%) bottom left / 18px 18px no-repeat,
    linear-gradient(315deg, var(--ink) 50%, transparent 50%) bottom right / 18px 18px no-repeat; }

/* painted postcards (memory): stock border, no corners */
.postcard { background: var(--stock); padding: 10px; border-radius: 2px; box-shadow: var(--paper-shadow); aspect-ratio: 3 / 2; }
.postcard img { width: 100%; height: 100%; object-fit: cover; }

/* bottles + contact shadow */
.bottle { position: relative; }
.bottle > img { height: 100%; width: auto; }
/* the letters' flask (js/bottle.js): the still render, and a canvas that takes its place (same box, same paint) while the flask
   turns from one letter to the next; the frames are 3D renders of the turn with the perfume sloshing inside */
.bt { position: absolute; inset: 0; }
.bt > img, .bt > canvas { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; display: block; }
.bt > canvas { visibility: hidden; }
.bt.on > canvas { visibility: visible; }
.bt.on > img { visibility: hidden; }
.bottle::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 70%; height: 16px; transform: translateX(-50%); z-index: -1;
  background: radial-gradient(closest-side, rgba(40,28,15,.30), transparent); }

/* the printed card, as the letter's enclosure: a small printed postal card. Name and Nº (in a dashed stamp box) over a dotted rule, MAIN ACCORDS as
   horizontal bars (values and colours as printed), FRAGRANCE NOTES as the printed icons in Top / Heart / Base rows, the house line at the foot, a printed
   double frame inside the edge. Everything is sized in em from --u, which follows the card's own width (container query units). */
.enclosure { position: relative; container-type: inline-size; background: var(--stock); border-radius: 3px;
  box-shadow: 0 1px 1px rgba(22,21,19,.07), 0 2px 4px rgba(22,21,19,.06), 0 14px 26px -14px rgba(22,21,19,.34);
  transform: rotate(-2.5deg); transition: transform .3s var(--ease); }
.enclosure::after { content: ""; position: absolute; inset: 4px; pointer-events: none; border: 1px solid rgba(168,134,78,.5); border-radius: 2px;
  box-shadow: inset 0 0 0 2px var(--stock), inset 0 0 0 2.6px rgba(168,134,78,.3); }
.enclosure:hover { transform: rotate(0) translateY(-3px); }
.enc { --u: clamp(13px, 3.4cqw, 16px); font-size: var(--u); color: var(--ink); padding: .95em 1.1em .7em; display: flex; flex-direction: column; gap: .5em; }
.enc-top { display: flex; justify-content: space-between; align-items: center; gap: .6em; padding-bottom: .5em; border-bottom: 1px dotted rgba(140,108,58,.65); }
.enc-name { font: 500 1.02em/1.15 var(--serif); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); }
.enc-no { flex: none; font: 400 .9em/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: .08em; color: var(--ink);
  padding: .32em .42em .28em; border: 1px dashed rgba(140,108,58,.75); border-radius: 1px; }
.lc-body { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: 0 1em; align-items: start; }
.enc-h { font: 600 max(.7em, 9px)/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: .6em; }
.lc-n { font: 400 max(.9em, 10.5px)/1.15 var(--sans); color: var(--ink); }
.lc-bars { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .34em .6em; align-items: center; }
.lc-bars li { display: contents; }
.lc-bars i { display: block; height: .55em; width: calc(var(--v) * 1%); background: var(--c); border-radius: 1px; }
.lc-tiers { display: grid; gap: .42em; }
.lc-tier { display: grid; grid-template-columns: 3.5em minmax(0, 1fr); gap: .25em; align-items: center; }
.lc-tl { text-align: start; font: 600 max(.66em, 9px)/1 var(--sans); text-transform: uppercase; letter-spacing: .16em; color: var(--gold-ink); white-space: nowrap; }
.lc-tier ul { display: flex; gap: .25em; }
.lc-tier li { flex: 0 1 4.6em; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: .14em; text-align: center; }
.lc-tier img { width: 100%; max-width: 2.3em; height: 1.85em; object-fit: contain; }
.lc-tier .lc-n { font-size: max(.8em, 10px); line-height: 1.12; }
.enc-foot { margin-top: auto; padding-top: .5em; border-top: 1px dotted rgba(140,108,58,.65); text-align: center; white-space: nowrap; font: 500 max(.66em, 9px)/1.2 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); }
html[lang=ar] .enc-name { font: 700 1.18em/1.3 var(--ar-serif); letter-spacing: 0; text-transform: none; }
html[lang=ar] .enc-h { font: 500 max(.84em, 11px)/1.3 var(--ar-body); letter-spacing: 0; text-transform: none; }
html[lang=ar] .lc-n { font-family: var(--ar-body); font-size: max(.96em, 11.5px); }
html[lang=ar] .lc-tier .lc-n { font-size: max(.86em, 11px); }
html[lang=ar] .lc-tl { font: 600 max(.8em, 10.5px)/1 var(--ar-body); letter-spacing: 0; text-transform: none; }
html[lang=ar] .enc-foot { font: 500 max(.78em, 10.5px)/1.3 var(--ar-body); letter-spacing: 0; text-transform: none; }

/* ---------- skip links ---------- */
.skip { position: absolute; z-index: 200; inset-inline-start: 16px; top: -80px; background: var(--ink); color: var(--paper); padding: 12px 16px;
  font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.skip:focus { top: 16px; }

/* =================================================================== 4.0 NAV */
.nav { position: fixed; z-index: 60; top: 0; left: 0; right: 0; height: var(--nav-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding-inline: var(--pad); background: transparent; transition: height .4s var(--ease), background-color .4s, box-shadow .4s, transform .3s var(--ease); }
.nav.solid { --nav-h: 60px; background: rgba(243,235,220,.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(22,21,19,.10); }
.nav.in-letters { background: color-mix(in oklab, var(--tint) 92%, transparent); }
.nav.hide { transform: translateY(-100%); }
.nav-l { display: flex; gap: 34px; }
.nav-l a { position: relative; font: 400 11.5px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; padding: 14px 0; display: inline-flex; align-items: center; gap: 8px; }
.nav-l a::after { content: ""; position: absolute; inset-inline: 0; bottom: 8px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 280ms var(--ease); }
[dir=rtl] .nav-l a::after { transform-origin: right; }
.nav-l a:hover::after { transform: scaleX(1); }
.nav-l a.current::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--gold-ink); }
.nav a:focus-visible, .nav button:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; }
.nav-c { position: relative; display: flex; align-items: center; }
.mark img { height: 38px; width: auto; transition: height .4s var(--ease); }
.nav.solid .mark img { height: 32px; }
.nav-count { position: absolute; inset-inline-start: calc(100% + 18px); white-space: nowrap; font: 500 11px/1 var(--sans); letter-spacing: .12em; color: var(--gold-ink);
  font-variant-numeric: tabular-nums lining-nums; opacity: 0; transition: opacity .2s; }
.nav.in-letters .nav-count { opacity: 1; }
.nav-r { display: flex; justify-content: flex-end; align-items: center; gap: 28px; }
.nav-write { padding-block: 12px 6px; }
.lang { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; transition: opacity .2s; }
.lang:hover { opacity: .7; }
.lang-ar { font: 400 20px/1 var(--hand); color: var(--gold-ink); }
.lang-en { font: italic 400 17px/1 var(--serif); color: var(--ink); }
html[lang=en] .lang-en, html[lang=ar] .lang-ar { display: none; }
.menu-btn { display: none; font: 500 11px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; min-height: 44px; }
html[lang=ar] .nav-l a { font: 400 14px/1 var(--ar-body); letter-spacing: 0; }
html[lang=ar] .menu-btn { font: 500 14px/1 var(--ar-body); letter-spacing: 0; }

/* mobile menu sheet */
.menu { position: fixed; inset: 0; z-index: 90; background: var(--stock); padding: 80px 24px 32px; display: flex; flex-direction: column; gap: 28px;
  clip-path: inset(0 0 100% 0); transition: clip-path .3s var(--ease); overflow-y: auto; }
.menu.open { clip-path: inset(0); }
.menu-air { position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.menu-close { position: absolute; top: 8px; inset-inline-end: 16px; min-height: 44px; font: 500 11px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; }
.menu-index { display: grid; gap: 10px; }
.menu-index a { display: flex; align-items: baseline; gap: 16px; font: 300 34px/1.2 var(--serif); padding: 4px 0; }
.menu-index b { font: 500 12px/1 var(--sans); letter-spacing: .12em; color: var(--gold-ink); }
.menu-chips { display: flex; gap: 4px; flex-wrap: wrap; }
.menu-chips .chip { min-width: 40px; }
.menu-foot { font: 400 12px/1.6 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.menu-foot a { display: inline-block; padding: 12px 0; }
html[lang=ar] .menu-index a, html[lang=ar] .menu-close { font-family: var(--ar-serif); letter-spacing: 0; }

/* =================================================================== 4.1 HERO */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; }
.hero-stage { position: absolute; inset: 0; }
.art { position: absolute; inset: 0; }
.art img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%); mask-image: linear-gradient(90deg, transparent 0, #000 30%); }
[dir=rtl] .art { transform: scaleX(-1); }
/* the real box stands on the painted sand; JS pins it to the art's own pixels (see placeBox) */
.hero-box { position: absolute; z-index: 2; left: 72%; top: 34%; width: 16%; aspect-ratio: 533 / 944; pointer-events: none; }
.hero-box img { position: absolute; display: block; }
.hb-base { inset: 0; width: 100%; height: 100%; filter: drop-shadow(16px 14px 16px rgba(90,64,30,.26)) drop-shadow(2px 3px 2px rgba(70,48,22,.3)); }
.hb-spine { left: .75%; top: 3.6%; width: 21.2%; height: 95.66%; }   /* the S0 side sticker on the left face, as on the real box (img/box/geom.json 'spine') */
.hb-top { opacity: 0; }
.hero-bottle { position: absolute; z-index: 3; left: 60%; bottom: 6svh; height: clamp(320px, 62svh, 640px); aspect-ratio: 526 / 1000; transform: translateX(-50%); }
[dir=rtl] .hero-bottle { left: 40%; }
.hero-bottle img { position: absolute; inset: 0; height: 100%; filter: drop-shadow(14px 18px 14px rgba(90,64,30,.22)) drop-shadow(0 4px 4px rgba(90,64,30,.24)); }
.hero-bottle .b-top { opacity: 0; }
.hero-bottle::after { bottom: -5px; }

.ring-cluster { position: absolute; z-index: 4; inset-inline-end: calc(var(--pad) + 44px); top: 13svh; width: 116px; height: 116px; }
.hero-ring { position: absolute; inset: 0; }
.ring-svg { width: 100%; height: 100%; overflow: visible; transform: rotate(-8deg); }
.ring-ink circle { fill: none; stroke: var(--gold); stroke-width: 1.2; }
.ring-text { fill: var(--gold-ink); font: 500 8.6px var(--sans); letter-spacing: .18em; }
.ring-seven { color: var(--gold-ink); }
.ring-time { fill: var(--gold-ink); font: 500 10.5px var(--sans); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.ring-cancel path { fill: none; stroke: var(--gold); stroke-width: 1; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
[dir=rtl] .ring-cancel { transform: scaleX(-1); transform-origin: 60px 60px; }
.hero-stamp { position: absolute; width: 84px; height: 104px; left: calc(50% + 22px); top: calc(50% + 2px); transform: rotate(3deg); z-index: -1; }
[dir=rtl] .hero-stamp { left: auto; right: calc(50% + 22px); transform: rotate(-3deg); }
.hero-stamp .stamp-svg { position: absolute; inset: 0; filter: drop-shadow(0 1px 1px rgba(22,21,19,.12)) drop-shadow(0 6px 10px rgba(22,21,19,.14)); }

.hero-copy { position: absolute; z-index: 5; inset-inline-start: var(--pad); top: 55%; transform: translateY(-50%); width: min(640px, 46vw); }
.coords { display: flex; align-items: center; gap: 12px; font: 400 11px/1 var(--sans); letter-spacing: .16em; color: var(--gold-ink); margin-bottom: 22px; font-variant-numeric: tabular-nums; }
.coords .ic { width: 20px; height: 20px; stroke-width: 1; }
.coords .hair { flex: 0 0 auto; width: clamp(80px, 20vw, 360px); height: 1px; background: linear-gradient(90deg, var(--gold), rgba(184,145,63,.25) 70%, rgba(184,145,63,0)); }
[dir=rtl] .coords .hair { background: linear-gradient(-90deg, var(--gold), rgba(184,145,63,.25) 70%, rgba(184,145,63,0)); }
.hero .kicker { margin-bottom: 18px; }
.hero h1 .l { display: block; overflow: hidden; padding-bottom: .04em; margin-bottom: -.04em; }
.hero h1 .l > span { display: block; }
/* the brand line in both languages, «سبع إمارات، روح واحدة» — Seven Emirates, One Soul, joined by a short gold rule */
.h-line { margin: 12px 0 14px; min-height: 1.5em; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 16px; }
.h-line .ar-hand { display: inline-block; font-weight: 700; font-size: clamp(24px, 2.1vw, 32px); line-height: 1.5; }
.h-line .en-it { font-size: 22px; line-height: 1.5; }
.h-line .h-rule { align-self: center; width: 26px; height: 1px; background: var(--gold); }
.hero .lead { max-width: 40ch; color: var(--ink-2); margin-bottom: 28px; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }

.counter { position: absolute; z-index: 4; right: calc(var(--pad) * .4); top: 50%; transform: translateY(-50%); display: grid; justify-items: center; gap: 8px;
  font: 500 11px/1 var(--sans); letter-spacing: .12em; color: var(--gold-ink); font-variant-numeric: tabular-nums lining-nums; writing-mode: vertical-rl; }
[dir=rtl] .counter { right: auto; left: calc(var(--pad) * .4); }
.counter i { width: 1px; height: 46px; background: var(--gold); opacity: .6; }
.roll { display: inline-block; overflow: hidden; height: 3.2em; }
.roll span { display: block; }

.strip { position: absolute; z-index: 5; inset-inline-end: var(--pad); bottom: calc(4svh + 10px); }
.strip-label { font: 500 10.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 4px; padding: 0 0 7px; background: none; box-shadow: none; border-bottom: 1px solid var(--gold); display: block; }
html[lang=ar] .strip-label { font: 500 12.5px/1.2 var(--ar-body); letter-spacing: 0; }
.chips { display: flex; gap: 8px; }
.chips .chip { padding: 6px 3px 0; min-width: 44px; }
.hero-air { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; }

/* =================================================================== 4.2 THE FIRST LETTER */
.story { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding: var(--section) var(--pad); max-width: 1584px; margin: 0 auto; }
.story-side { grid-column: 1 / 5; align-self: start; position: sticky; top: 18svh; padding-inline-end: 12px; display: flex; flex-direction: column; min-height: 52svh; }
.story-side .kicker { margin-bottom: 22px; }
.story-side h2 { margin-bottom: 22px; }
.story-side .body { max-width: 34ch; }
.source { margin-top: auto; padding-top: 32px; font: 400 12px/1.6 var(--sans); color: var(--ink-2); opacity: .8; }
.source-m { display: none; }
.story-main { grid-column: 5 / 13; padding-top: 34px; }
.sheet { position: relative; background: var(--aero); padding: clamp(28px, 3.4vw, 52px); transform-origin: 50% 0; box-shadow: 0 1px 2px rgba(22,21,19,.08), 0 30px 50px -34px rgba(22,21,19,.4); }
.sheet .air-border { z-index: 1; }
.crease { position: absolute; left: 0; right: 0; height: 40px; pointer-events: none; z-index: 1;
  background: linear-gradient(rgba(22,21,19,.05), rgba(22,21,19,0)); border-top: 1px solid rgba(22,21,19,.06); }
.crease.c1 { top: 33.3%; } .crease.c2 { top: 66.6%; }
.sheet-in { position: relative; z-index: 2; display: grid; grid-template-columns: 56fr 44fr; gap: clamp(24px, 3vw, 48px); padding: 18px clamp(4px, 1vw, 16px) 8px; }
.sheet-letter .small { margin-bottom: 18px; }
.founder p { font: 400 clamp(16px, min(1.25vw, 2.4vh), 20px)/1.58 var(--serif); color: var(--ink-2); margin-bottom: .8em; max-width: 52ch; }
.founder-sign { color: var(--ink) !important; }
.founder[lang=ar] p { font: 400 clamp(19px, 1.45vw, 21px)/1.95 var(--ar-serif); }
.founder-hand { font-size: 28px; line-height: 1.5; margin-top: 4px; }
.sheet-chart { align-self: start; padding-top: 30px; position: relative; }
/* the Emirates postmark is stamped on the chart itself, beside the harbour the dhow sails into */
.sheet-chart > .pm-abudhabi { position: absolute; z-index: 3; width: 104px; height: 104px; pointer-events: none;
  left: calc(85% - 52px); top: calc(30px + (100% - 30px) * .35 - 52px); }
.gulf { width: 100%; height: auto; overflow: hidden; }
.gulf .route { fill: none; stroke: var(--gold); stroke-width: 3.4; stroke-dasharray: 0 11; stroke-linecap: round; }
.gulf .city circle:first-child { fill: var(--ink); }
.gulf .xh { fill: none; stroke: var(--ink); stroke-width: 1.1; opacity: .7; }
.gulf .city text { font: 500 21px var(--sans); letter-spacing: .14em; fill: var(--ink); }
.gulf .g-sea { font: italic 400 27px var(--serif); letter-spacing: .3em; fill: var(--ink-2); }
html[lang=ar] .gulf .city text { font: 500 20px var(--ar-body); letter-spacing: 0; }
html[lang=ar] .gulf .g-sea { font: 400 22px var(--ar-serif); letter-spacing: 0; }
.gulf .dhow path { fill: none; stroke: var(--ink); stroke-opacity: .8; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.gulf .dhow path:first-child { fill: var(--aero); }
/* the two ends of the journey sit above their places on the chart (geography is never mirrored) */
.sheet-wrap { position: relative; }
.sheet-wrap > .pm { position: absolute; z-index: 3; width: 104px; height: 104px; top: -30px; pointer-events: none; }
.pm-manama { left: calc(61% - 52px); }
[dir=rtl] .pm-manama { left: calc(8% - 40px); }
.disclose { margin-top: 26px; }
.other-lang { background: var(--aero); padding: clamp(24px, 3vw, 44px); margin-top: 14px; max-width: 760px; }
.other-lang .founder[lang=en] p { font-size: 18px; }

/* =================================================================== 4.3 THE CORRESPONDENCE */
.letters-intro { min-height: 70svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--section) var(--pad) calc(var(--section) * .6); max-width: calc(760px + var(--pad) * 2); margin: 0 auto; position: relative; }
.letters-intro::after { content: ""; position: absolute; z-index: -1; bottom: 0; left: 50%; width: 100vw; height: 120px; transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(var(--paper), #F2E7D8); }
.letters-intro .kicker { margin-bottom: 24px; }
.letters-intro h2 { margin-bottom: 26px; font-size: clamp(36px, min(4vw, 7vh), 62px); }
.letters-intro .body { max-width: 54ch; }
.skip-letters { position: absolute; top: auto; bottom: 16px; left: 50%; transform: translateX(-50%); opacity: 0; pointer-events: none; }
.skip-letters:focus { opacity: 1; pointer-events: auto; top: auto; }

/* ---- shared article pieces ---- */
.leaf { position: relative; }
.post-row { display: flex; align-items: center; justify-content: space-between; gap: 22px; max-width: 560px; }
.post-label { font: 500 10.5px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.post-stamp { position: relative; width: 72px; height: 88px; margin-inline-start: 52px; flex: none; }
.post-stamp .stamp-svg { width: 100%; height: 100%; filter: drop-shadow(0 1px 1px rgba(22,21,19,.12)) drop-shadow(0 6px 10px rgba(22,21,19,.14)); }
.post-stamp .pm { position: absolute; top: 50%; inset-inline-start: -70px; width: 104px; height: 104px; margin-top: -52px; }
.title-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.leaf .label-frame { --stage-bg: var(--tint); }
.leaf .name { font: 400 clamp(30px, min(3.4vw, 6.2vh), 52px)/1 var(--serif); letter-spacing: .04em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.leaf .translit { font: 400 24px/1.4 var(--hand); color: var(--gold-hand); }
.addr-block .small { margin-bottom: 2px; }
.to-en { font: italic 400 clamp(19px, min(1.6vw, 3vh), 24px)/1.3 var(--serif); color: var(--ink); border-bottom: 1px dotted var(--gold); padding-bottom: 4px; display: inline; }
html[dir=ltr] .to-ar { text-align: left; }
html[dir=rtl] .to-ar { text-align: right; }
.to-ar { display: block; font: 400 clamp(22px, min(1.8vw, 3.4vh), 28px)/1.5 var(--hand); color: var(--gold-hand); margin-top: 4px; }
.message { font: 400 clamp(18px, min(1.45vw, 2.7vh), 22px)/1.48 var(--serif); color: var(--ink-2); max-width: 44ch; }
.sign { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.sign-en { font: italic 400 18px/1.3 var(--serif); color: var(--ink-2); }
.sign-ar { font: 400 26px/1.3 var(--hand); color: var(--gold-hand); }
.sign .small { flex-basis: 100%; }
.actions { display: flex; align-items: center; gap: 12px 26px; flex-wrap: wrap; }
.price { font: 300 13px/1 var(--sans); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.leaf .write { clip-path: inset(0 0 0 0); }
html.pin .actions { flex-wrap: nowrap; column-gap: 16px; }
html.pin .actions .btn { padding-inline: 22px; flex: none; }
html.pin .price { max-width: 7.5em; line-height: 1.35; }
html.pin .actions .link { white-space: nowrap; }
/* AR mode inside letters */
html[lang=ar] .to-en { font: 400 clamp(22px, min(1.8vw, 3.4vh), 28px)/1.5 var(--hand); color: var(--gold-hand); }
html[lang=ar] .to-ar { font: italic 400 18px/1.3 var(--serif); color: var(--ink-2); }
html[lang=ar] .message { font: 400 clamp(19px, 1.6vw, 23px)/1.9 var(--ar-serif); }
html[lang=ar] .post-label, html[lang=ar] .small { font-family: var(--ar-body); letter-spacing: 0; font-size: 12.5px; }

/* ---- stacked letters (mobile, tablet, short screens, reduced motion) ---- */
.stage { position: relative; }
.desk, .rail, .sun { display: none; }
.leaves { display: block; }
.leaf { background: var(--lt); padding: 72px 16px; display: flex; flex-direction: column; gap: 18px; max-width: 100%; }
html:not(.pin) .leaves { background: var(--paper); }
html:not(.pin) .leaf { padding-inline: max(16px, calc((100% - 600px) / 2)); }
html:not(.pin) .leaf + .leaf::before { content: ""; position: absolute; top: -60px; left: 0; right: 0; height: 120px; background: linear-gradient(var(--lt-prev), var(--lt)); }
html:not(.pin) .leaf > * { position: relative; }
html:not(.pin) .leaf::after { content: ""; position: absolute; left: 50%; bottom: -28px; width: 2px; height: 56px; z-index: 2;
  background: radial-gradient(circle, var(--gold) 1px, transparent 1.4px) 50% 0 / 2px 8px repeat-y; }
html:not(.pin) .leaf:last-child::after { display: none; }
.leaf-card { position: relative; margin: 8px 0 34px; }
.leaf-card .postcard { padding: 8px; transform: rotate(var(--mrot, -1deg)); }
.leaf-card .bottle { position: absolute; height: 74%; aspect-ratio: 526/1000; inset-inline-end: 2%; bottom: -12%; }
.leaf-card .bottle .bt { filter: drop-shadow(8px 12px 10px rgba(90,64,30,.22)); }
.leaf-enc { width: min(100%, 520px); margin: 14px auto 6px; }
.leaf-enc .enclosure { transform: rotate(-1.5deg); }
.leaf-enc .enc { --u: clamp(14px, 4.3cqw, 17px); }
@container (max-width: 380px) { :is(.leaf-enc, .enc-pane) .lc-body { grid-template-columns: 1fr; gap: 1em; } :is(.leaf-enc, .enc-pane) .lc-tier { grid-template-columns: 3.6em minmax(0, 1fr); gap: .5em; }
  :is(.leaf-enc, .enc-pane) .lc-tier ul { gap: .6em; } :is(.leaf-enc, .enc-pane) .lc-tier li { flex-basis: 5.6em; } :is(.leaf-enc, .enc-pane) .lc-tier img { max-width: 2.9em; height: 2.4em; } }   /* stacked card on phones: the notes row has room, so the icons read at the size they have on the printed card */
.leaf .btn { align-self: stretch; }
html:not(.pin) .leaf .actions .btn { width: 100%; height: 54px; }
html:not(.pin) .post-stamp { width: 56px; height: 68px; margin-inline-start: 46px; }
html:not(.pin) .post-stamp .pm { width: 80px; height: 80px; margin-top: -40px; inset-inline-start: -56px; }
html:not(.pin) .leaf .name { font-size: 34px; }
html:not(.pin) .title-row { flex-direction: column; align-items: flex-start; gap: 6px; }
html:not(.pin) .leaf .translit { font-size: 22px; }
html:not(.pin) .to-ar { font-size: 22px; }
html:not(.pin) .message { font-size: 19px; line-height: 1.5; }
html:not(.pin) .leaf-card { margin-top: 18px; margin-bottom: 40px; }

/* ---- the pinned stage (desktop) ---- */
html.pin .stage { height: 100vh; height: 100svh; padding: 88px var(--pad) 76px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  background: var(--tint); overflow: hidden; }
html.pin .sun { display: block; position: absolute; inset: 0; pointer-events: none; z-index: 0; --sx: 10%; --sy: 32%; --sun: 1; --moon: 0; }
html.pin .sun::before { content: ""; position: absolute; inset: 0; opacity: var(--sun); mix-blend-mode: soft-light;
  background: radial-gradient(circle 38vw at var(--sx) var(--sy), rgba(255,246,225,.45), transparent 70%); }
html.pin .sun::after { content: ""; position: absolute; inset: 0; opacity: var(--moon);
  background: radial-gradient(circle 30vw at 50% 8%, rgba(205,214,235,.16), transparent 70%); }
html.pin .desk { display: block; grid-column: 1 / 7; align-self: center; position: relative; z-index: 1; margin-top: -2svh; }
html.pin .pile-wrap { position: relative; width: min(100%, calc((100svh - 300px) * 1.5), 760px); aspect-ratio: 3 / 2; margin-inline: auto; }
html.pin .pile { position: absolute; inset: 0; z-index: 1; }
html.pin .pile .postcard { position: absolute; inset: 0; transform: rotate(var(--r)); transition: box-shadow .3s var(--ease), translate .3s var(--ease); will-change: transform; }
html.pin .pile .postcard.top:hover { translate: 0 -4px; box-shadow: 0 1px 2px rgba(22,21,19,.10), 0 30px 50px -26px rgba(22,21,19,.5); }
html.pin .desk-bottle { position: absolute; z-index: 3; inset-inline-end: -8%; bottom: -9%; height: 94%; aspect-ratio: 526 / 1000; pointer-events: none; }
html.pin .desk-bottle .bt { filter: drop-shadow(12px 16px 12px rgba(90,64,30,.22)) drop-shadow(0 3px 3px rgba(90,64,30,.24)); }
html.pin .desk-bottle::after { bottom: -4px; }
html.pin .enc-wrap { position: absolute; z-index: 4; width: min(46%, 290px); inset-inline-start: -7%; bottom: -12%; }   /* a small card tucked under the postcard's corner: 290px at 1536, 260px at 1366 */
html.pin .enc-wrap .enc { --u: clamp(10.5px, 4.2cqw, 12px); padding: .8em 1em .6em; gap: .4em; }   /* the desk's preview: tighter, the words still at reading size */
html.pin .enc-wrap .enc-top { padding-bottom: .4em; }
html.pin .enc-wrap .enc-h { margin-bottom: .45em; white-space: nowrap; letter-spacing: .14em; }
html.pin .enc-wrap .lc-bars { row-gap: .24em; }
html.pin .enc-wrap .lc-n { font-size: max(.88em, 10px); }
html.pin .enc-wrap .lc-tiers { gap: .3em; }
html.pin .enc-wrap .lc-body { grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); gap: 0 .9em; }
html.pin .enc-wrap .lc-tier { grid-template-columns: 2.9em minmax(0, 1fr); }
html.pin .enc-wrap .lc-tier ul { gap: .4em; }
html.pin .enc-wrap .lc-tier li { flex: 0 1 auto; }   /* each note as wide as its word: three short names share the row without touching */
html.pin .enc-wrap .lc-tl { letter-spacing: .08em; }
html.pin .enc-wrap .lc-tier img { height: 1.5em; max-width: 2em; }
html.pin .enc-wrap .lc-tier .lc-n { font-size: max(.78em, 9.5px); line-height: 1.04; }
html.pin .enc-wrap .enc-foot { padding-top: .4em; }
html[lang=ar].pin .enc-wrap .lc-n { font-size: max(.94em, 11px); }
html[lang=ar].pin .enc-wrap .lc-tier .lc-n { font-size: max(.84em, 10.5px); line-height: 1.15; }
html.pin .enclosure { display: grid; }   /* the seven cards stack in one grid cell: the card is as tall as the tallest, and the timeline cross-fades them */
html.pin .enclosure .enc { grid-area: 1 / 1; opacity: 0; }
html.pin .enclosure .enc:first-child { opacity: 1; }
html.pin .leaves { grid-column: 7 / 13; align-self: center; display: grid; position: relative; z-index: 2; padding-inline-start: clamp(8px, 2vw, 40px); }
html.pin .leaf { grid-area: 1 / 1; background: none; padding: 0; gap: clamp(10px, 1.7vh, 18px); visibility: hidden; }
html.pin .leaf.on { visibility: visible; }
html.pin .leaf-card, html.pin .leaf-enc { display: none; }
html.pin .rail { display: block; position: absolute; z-index: 3; bottom: 22px; inset-inline: var(--pad); height: 34px; }
.rail-line { position: absolute; left: 11px; right: 11px; top: 19px; height: 3px; }
.rail-dots { position: absolute; inset: 0; background: radial-gradient(circle, var(--gold) 1px, transparent 1.4px) 0 50% / 8px 3px repeat-x; opacity: .35; }
.rail-drawn { opacity: 1; clip-path: inset(0 calc(100% - var(--railp, 0) * 100%) 0 0); }
[dir=rtl] .rail-drawn { clip-path: inset(0 0 0 calc(100% - var(--railp, 0) * 100%)); }
.rail-chips { position: absolute; inset: -18px 0 0; display: flex; justify-content: space-between; }
.rail-chips .chip { min-height: 52px; min-width: 44px; padding: 0; place-items: center; }
html.pin .post-stamp .pm-svg, html.pin .post-stamp .stamp-svg { will-change: transform; }

@media (max-height: 720px) {
  html.pin .post-stamp { width: 60px; height: 74px; }
  html.pin .post-stamp .pm { width: 88px; height: 88px; margin-top: -44px; inset-inline-start: -60px; }
  html.pin .leaves { translate: 0 -6px; }
}

/* plate I */
/* the shelf: the client's photo of the seven boxes, each spine a way in */
.shelf { display: grid; grid-template-columns: minmax(300px, 5fr) 7fr; gap: clamp(32px, 5vw, 96px); align-items: center;
  max-width: 1440px; margin: 0 auto; padding: calc(var(--section) * .9) var(--pad) var(--section); background: var(--paper); }
.shelf-side h2 { margin: 14px 0 18px; }
.shelf-card { position: relative; margin-top: 34px; max-width: 470px; display: grid; grid-template-columns: auto 1fr; gap: 0 22px;
  padding: 24px 26px 22px; background: var(--stock); box-shadow: var(--paper-shadow); }
.shelf-card::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(184,145,63,.38); pointer-events: none; }
.sc-stamp { width: 64px; height: 79px; margin-top: 4px; }
.sc-stamp svg { width: 100%; height: 100%; display: block; }
.sc-meta { color: var(--gold-ink); }
.sc-name { font: 400 32px/1.08 var(--serif); color: var(--ink); margin: 4px 0 8px; }
.sc-to { font: italic 400 18.5px/1.45 var(--serif); color: var(--ink-2); }
.sc-acc { margin-top: 12px; color: var(--kraft-ink); letter-spacing: .14em; }
.sc-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 20px; }
.sc-actions .link { background: none; border: 0; padding: 0 0 4px; cursor: pointer; font: inherit; }
[lang=ar] .sc-name { font: 400 30px/1.3 var(--ar-serif); }
[lang=ar] .sc-to { font: 400 19px/1.7 var(--ar-serif); }
.shelf-card.swap .sc-text, .shelf-card.swap .sc-stamp { opacity: 0; transform: translateY(4px); }
.sc-text, .sc-stamp { transition: opacity .22s var(--ease), transform .22s var(--ease); }

.shelf-main { min-width: 0; }
.shelf-fig { padding: 12px; }
.shelf-svg { display: block; width: 100%; height: auto; overflow: visible; filter: sepia(.12) saturate(.92) contrast(.97) brightness(1.02); }
.shelf-svg .gap { fill: #161513; opacity: 0; transition: opacity .35s var(--ease); }
.shelf-svg .veil { fill: var(--paper); opacity: 0; transition: opacity .35s var(--ease); }
.shelf-svg .sp { transition: transform .45s var(--ease); transform-box: view-box; }
.shelf-svg .hit { fill: transparent; cursor: pointer; pointer-events: all; }
.shelf-svg .gap.on { opacity: .5; }
.shelf-svg .veil.dim { opacity: .3; }
.shelf-svg .sp.on { transform: translateY(-16px); filter: url(#liftShadow); }
.shelf-tabs { direction: ltr; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 14px 12px 0; }
.shelf-tabs button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0 6px; border: 0; background: none; cursor: pointer;
  font: 500 11px/1 var(--sans); letter-spacing: .16em; color: var(--ink-2); border-bottom: 1px solid transparent; transition: color .25s, border-color .25s; }
.shelf-tabs button i { width: 18px; height: 6px; background: var(--c); border-radius: 1px; box-shadow: inset 0 0 0 1px rgba(22,21,19,.12); }
.shelf-tabs button[aria-checked="true"] { color: var(--ink); border-bottom-color: var(--gold); }
.shelf-tabs button:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 2px; }
@media (hover: hover) { .shelf-tabs button:hover { color: var(--ink); } }

/* mobile sticky mini strip */
.mini { display: none; }

/* =================================================================== 4.4 THE PARCEL
   The box opens as you scroll: frames rendered once offline (img/parcel/), drawn on a canvas by parcel.js.
   Default (no JS / reduced motion / no GSAP): the closed-box poster, the opened box, and the five-line list. */
.parcel { background: var(--paper-2); padding: 0 var(--pad) var(--section); }
.pp { max-width: 1440px; margin: 0 auto; padding-top: var(--section); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.pp-side { grid-column: 1 / 5; position: sticky; top: 18svh; align-self: start; padding-inline-end: 8px; }
.pp-head .kicker { margin-bottom: 22px; }
.pp-head h2 { margin-bottom: 22px; }
.legend { margin-top: 30px; border-top: 1px solid rgba(22,21,19,.12); }
.legend li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid rgba(22,21,19,.12); font: 300 15px/1.55 var(--sans); color: var(--ink-2); transition: opacity .3s; }
.pin-dot { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--stock); border: 1px solid var(--ink); display: grid; place-items: center;
  font: 500 11px/1 var(--sans); color: var(--ink); margin-top: 3px; transition: background .25s, box-shadow .25s; }
.lg-t { display: block; font: 400 23px/1.25 var(--serif); color: var(--ink); margin-bottom: 4px; }
html[lang=ar] .lg-t { font: 400 22px/1.5 var(--ar-serif); }
.lg-d { display: block; }
.ll { margin-top: 14px; padding: 16px 18px 14px; background: var(--stock); border: 1px solid rgba(22,21,19,.16); max-width: 440px; }
.ll-t { font: 400 22px/1.25 var(--serif); color: var(--ink); margin-bottom: 6px; }
html[lang=ar] .ll-t { font: 400 21px/1.5 var(--ar-serif); }
.ll-x { font: 300 var(--fs-small)/1.5 var(--sans); color: var(--ink-2); }
html[lang=ar] .ll-x { font-family: var(--ar-body); }
.ll-c { display: flex; gap: 14px; margin-top: 14px; }
.ll-r { display: flex; flex-direction: column; align-items: center; gap: 5px; font: 400 12.5px/1.2 var(--sans); letter-spacing: .06em; color: var(--ink-2); text-align: center; font-style: normal; }
.ll-c b { width: 54px; height: 54px; border-radius: 50%; border: 1px dashed var(--kraft-ink); display: grid; place-items: center; font: 500 11px/1.15 var(--sans); letter-spacing: .04em; color: var(--ink); text-transform: uppercase; }
html[lang=ar] .ll-r, html[lang=ar] .ll-c b { font-family: var(--ar-body); letter-spacing: 0; text-transform: none; }
.pp-view { grid-column: 5 / 13; position: relative; align-self: start; }
.pp-frame { position: relative; width: 100%; aspect-ratio: 16 / 10; }
#ppCanvas, .pp-close, .pp-open img, .pp-still img { -webkit-mask-image: linear-gradient(90deg, transparent, #000 2.5%, #000 97.5%, transparent), linear-gradient(0deg, transparent, #000 3%, #000 97%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 2.5%, #000 97.5%, transparent), linear-gradient(0deg, transparent, #000 3%, #000 97%, transparent); mask-composite: intersect; }
.pp-still, .pp-still img, .pp-close { position: absolute; inset: 0; width: 100%; height: 100%; }
.pp-still img { object-fit: cover; }
.pp-close, .pp-hint, .pp-note { display: none; }
#ppCanvas { display: none; position: absolute; inset: 0; width: 100%; height: 100%; }
.pp-open { margin-top: 28px; }
.pp-open img { width: 100%; height: auto; }

/* the animated mode (parcel.js sets html.pp-d on laptops and up, html.pp-m on phones) */
html.pp-d .pp, html.pp-m .pp-view { --pp-top: calc(var(--nav-h) + 6px); }
html.pp-d .pp { height: 100svh; min-height: 520px; padding: var(--pp-top) 0 20px; align-items: center; }
html.pp-d .pp-side { position: static; align-self: center; }
html.pp-d .pp-head h2 { font-size: clamp(28px, 2.7vw, 44px); line-height: 1.1; }
html.pp-d .pp-head .kicker { margin-bottom: 10px; } html.pp-d .pp-head h2 { margin-bottom: 8px; }
html.pp-d .pp-view { grid-row: 1; align-self: center; }
html.pp-d .pp-frame { width: min(100%, calc((100svh - 130px) * 1.6)); margin-inline: auto; }
html.pp-d .pp-open, html.pp-m .pp-open { display: none; }
html.pp-d #ppCanvas, html.pp-m #ppCanvas { display: block; opacity: 0; }
html.pp-d.pp-ready #ppCanvas, html.pp-m.pp-ready #ppCanvas { opacity: 1; }
html.pp-d .pp-close { display: block; opacity: 0; pointer-events: none; }
html.pp-d .pp-hint, html.pp-m .pp-hint { display: block; position: absolute; left: 0; right: 0; bottom: 3%; text-align: center; font: 500 11px/1.4 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--kraft-ink); pointer-events: none; }
html[lang=ar] .pp-hint { font-family: var(--ar-body); letter-spacing: 0; font-size: 14px; text-transform: none; }
html.pp-d .pp-hint::after, html.pp-m .pp-hint::after { content: ""; display: block; width: 1px; height: 22px; margin: 8px auto 0; background: var(--kraft-ink); transform-origin: top; animation: ppHint 1.8s var(--ease) infinite; }
@keyframes ppHint { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
/* laptops: the list becomes five titles, and the active one's caption shows beneath it */
html.pp-d .legend { margin-top: 14px; }
html.pp-d .legend li { padding: 7px 0; opacity: .55; }
html.pp-d .legend li.on { opacity: 1; }
html.pp-d .legend li.on .pin-dot { background: var(--ink); color: var(--stock); }
html.pp-d .lg-more { display: none; }
html.pp-d .lg-t { margin-bottom: 0; font-size: 21px; }
html.pp-d .pp-head .body { display: none; }
@media (min-height: 860px) { html.pp-d .pp-head .body { display: block; margin-bottom: 4px; } }
html.pp-d .pp-note { display: block; height: 232px; margin-top: 12px; transition: opacity .18s; }
html.pp-d .pp-note.swap, html.pp-m .pp-note.swap { opacity: 0; }
.pp-note .lg-d { font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); max-width: 36ch; }
html.pp-d .pp-note .ll, html.pp-m .pp-note .ll { margin-top: 12px; }
html.pp-d .pp-note .ll { padding: 12px 16px 10px; }
html.pp-d .pp-note .ll-t { font-size: 20px; margin-bottom: 2px; }
html.pp-d .pp-note .ll-x { font-size: 15.5px; line-height: 1.4; }
html.pp-d .pp-note .ll-c { margin-top: 10px; gap: 12px; }
html.pp-d .pp-note .ll-c b { width: 42px; height: 42px; font-size: 10px; }
html.pp-d .pp-note .lg-d { font-size: 16.5px; line-height: 1.4; }

.parcel-row2 { margin-top: 12svh; align-items: center; }
.gift { max-width: 1040px; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 76px); align-items: center; }
.gift-link { margin-top: 22px; }
.gift-fig { width: min(100%, 400px); justify-self: center; transform: rotate(-1.2deg); }
.gift-text .kicker { margin-bottom: 12px; }
.gift-h { font: italic 400 clamp(26px, 2.6vw, 34px)/1.2 var(--serif); color: var(--ink); margin-bottom: 22px; text-wrap: balance; }
.gift-steps { list-style: none; display: grid; gap: 18px; }
.gift-steps li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 16px; align-items: start; }
.gs-n { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; font: 400 20px/1 var(--serif); color: var(--gold-ink); }
.gs-t { display: block; font: 500 var(--fs-small)/1.35 var(--sans); color: var(--ink); }
.gs-d { display: block; margin-top: 3px; font: 300 var(--fs-small)/1.5 var(--sans); color: var(--ink-2); max-width: 46ch; }
.gift-note { margin-top: 22px; padding-top: 14px; border-top: 1px solid rgba(168,134,78,.5); font: italic 400 var(--fs-small)/1.5 var(--serif); color: var(--ink-2); max-width: 52ch; }
html[lang=ar] .gift-h { font: 400 clamp(26px, 2.6vw, 33px)/1.5 var(--ar-serif); }
html[lang=ar] .gs-t { font: 500 var(--fs-small)/1.6 var(--ar-body); }
html[lang=ar] .gs-d { font: 400 var(--fs-small)/1.8 var(--ar-body); }
html[lang=ar] .gift-note { font: 400 var(--fs-small)/1.8 var(--ar-serif); }
html[lang=ar] .gs-n { font: 400 20px/1 var(--serif); }
.gift-fig img { aspect-ratio: 4 / 5; object-fit: cover; }
.caption { font: 400 12px/1.6 var(--sans); letter-spacing: .04em; color: var(--kraft-ink); margin-top: 20px; max-width: 44ch; text-align: center; }

/* =================================================================== 4.5 THE SHOP */
.shop { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding: var(--section) var(--pad); max-width: 1584px; margin: 0 auto; align-items: center; }
.shop-photos { grid-column: 1 / 8; position: relative; --eh: clamp(420px, 68svh, 600px); height: calc(var(--eh) * 1.18 + 60px); }
.snap { position: absolute; }
.snap .tipped img { height: 100%; width: 100%; object-fit: cover; }
.snap-ext { inset-inline-start: 4%; top: 0; width: min(500px, calc(var(--eh) * .75)); transform: rotate(-1.5deg); }
.snap-ext .tipped { height: var(--eh); }
.snap-int { width: calc(var(--eh) * .6 * .75); inset-inline-start: calc(4% + min(500px, var(--eh) * .75) * .78); top: calc(var(--eh) * .7); transform: rotate(2deg); z-index: 2; }
.snap-int .tipped { height: calc(var(--eh) * .6); }
.snap-int img { object-position: 50% 0; }
.snap figcaption { margin-top: 12px; }
.snap-ext figcaption { max-width: 72%; }
html[lang=ar] .snap figcaption { font-family: var(--ar-body); letter-spacing: 0; }
.shop-stamp { position: absolute; z-index: 3; top: -26px; inset-inline-end: -30px; width: 72px; height: 88px; transform: rotate(4deg); }
.shop-stamp .stamp-svg { width: 100%; height: 100%; filter: drop-shadow(0 1px 1px rgba(22,21,19,.12)) drop-shadow(0 6px 10px rgba(22,21,19,.14)); }
.shop-stamp .pm { position: absolute; width: 96px; height: 96px; top: -20px; inset-inline-start: auto; inset-inline-end: -62px; }
.shop-text { grid-column: 8 / 13; padding-inline-start: clamp(0px, 1.5vw, 24px); }
.shop-text h2 { margin-bottom: 18px; }
.turn { font: italic 400 clamp(20px, 1.6vw, 26px)/1.4 var(--serif); color: var(--ink-2); margin-bottom: 18px; max-width: 32ch; text-wrap: balance; }
.shop-text .body { margin-bottom: 26px; max-width: 46ch; }
.addr { width: 100%; max-width: 380px; background: var(--stock); border: 1px solid rgba(22,21,19,.14); margin-bottom: 28px; }
.addr th, .addr td { text-align: start; padding: 12px 18px; border-bottom: 1px solid rgba(22,21,19,.10); vertical-align: top; }
.addr tr:last-child th, .addr tr:last-child td { border-bottom: 0; }
.addr th { font: 500 10px/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); width: 1%; white-space: nowrap; padding-inline-end: 8px; }
.addr td { font: 400 13.5px/1.5 var(--sans); color: var(--ink); }
.addr a { border-bottom: 1px solid var(--gold); }
html[lang=ar] .addr th { font: 500 12px/1.6 var(--ar-body); letter-spacing: 0; }
html[lang=ar] .addr td { font: 400 14px/1.6 var(--ar-body); }

/* =================================================================== 4.6 WRITE BACK */
.reply { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding: var(--section) var(--pad); background: var(--kraft); position: relative; }
.reply-side { grid-column: 1 / 6; }
.reply-side h2 { margin-bottom: 18px; }
.reply .body { color: var(--ink-2); font-size: var(--fs-body); font-weight: 400; margin-bottom: 30px; }
.reply .kicker { color: var(--ink); }
.reply h2 em { color: var(--ink); }
.ar-k { font: 400 16px/1 var(--hand); letter-spacing: 0; text-transform: none; color: var(--ink); }
.sheet-stamps { background: var(--stock); padding: 20px; display: grid; grid-template-columns: repeat(4, 96px); justify-content: center; gap: 14px; width: max-content; max-width: 100%;
  box-shadow: 0 1px 2px rgba(22,21,19,.12), 0 22px 40px -26px rgba(22,21,19,.5); position: relative; }
.sheet-stamps::before { content: ""; position: absolute; left: 20px; right: 20px; top: 50%; border-top: 1px dashed rgba(22,21,19,.25); }
.sheet-stamps .ss:nth-child(5) { grid-column: 1 / 2; margin-inline-start: 55px; }
.sheet-stamps .ss:nth-child(n+5) { transform: translateX(55px); }
[dir=rtl] .sheet-stamps .ss:nth-child(n+5) { transform: translateX(-55px); }
.sheet-stamps .ss:nth-child(5) { margin: 0; }
.ss { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-block: 4px 2px; transition: transform .2s var(--ease), opacity .2s; position: relative; }
.ss .stamp-svg { width: 96px; height: 120px; filter: drop-shadow(0 1px 1px rgba(22,21,19,.12)) drop-shadow(0 6px 10px rgba(22,21,19,.14)); transition: transform .2s var(--ease), opacity .2s; }
.ss:hover .stamp-svg { transform: translateY(-3px); }
.ss .ss-no, .ss .ss-name { font: 500 9.5px/1.25 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); text-align: center; white-space: nowrap; }
.ss .ss-no { letter-spacing: .14em; margin-bottom: -4px; }
.ss .ss-time { font: 400 9.5px/1 var(--sans); letter-spacing: .1em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ss[aria-checked="true"] .stamp-svg { transform: translateY(-4px); opacity: .4; }
.ss:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; }
.read-its { margin-top: 18px; }
.reply-main { grid-column: 7 / 13; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px; }
.env-wrap { position: relative; width: min(640px, 100%); }
.envelope { position: relative; width: 100%; aspect-ratio: 1.62; background: var(--stock); box-shadow: 0 30px 60px -30px rgba(22,21,19,.45), 0 1px 2px rgba(22,21,19,.12); }
.flap { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgba(22,21,19,.18); stroke-width: 1; z-index: 1; }
.byair { position: absolute; z-index: 2; top: 30px; inset-inline-start: 30px; height: 26px; padding: 0 12px; background: var(--ink); color: var(--stock); display: flex; align-items: center; gap: 6px;
  font: 500 9px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.byair [lang=ar] { font: 400 13px/1 var(--hand); letter-spacing: 0; }
.slot { position: absolute; z-index: 2; top: 28px; inset-inline-end: 30px; width: 96px; height: 120px; border: 1px dashed rgba(22,21,19,.3); display: grid; place-items: center; text-align: center; }
.slot.filled { border-color: transparent; }
.slot-empty { font: 400 10px/1.3 var(--sans); color: var(--ink-2); letter-spacing: .06em; padding: 8px; }
html[lang=ar] .slot-empty { font: 400 12px/1.4 var(--ar-body); }
.slot.filled .slot-empty { display: none; }
.slot-stamp { position: absolute; inset: 0; }
.slot-stamp .stamp-svg { width: 100%; height: 100%; filter: drop-shadow(0 1px 1px rgba(22,21,19,.12)) drop-shadow(0 6px 10px rgba(22,21,19,.14)); }
.slot-pm { position: absolute; width: 104px; height: 104px; top: 50%; margin-top: -52px; inset-inline-start: -66px; pointer-events: none; }
.seal { position: absolute; z-index: 3; width: 120px; height: 84px; left: 50%; top: 42%; margin: -42px 0 0 -60px; opacity: 0; transform: rotate(-4deg); }
.seal .seal-svg { width: 100%; height: 100%; opacity: .8; }
.env-reply { position: absolute; z-index: 4; left: 50%; top: calc(42% + 50px); transform: translateX(-50%); width: min(34ch, 76%); text-align: center; }
.dear { font: italic 400 clamp(18px, 1.5vw, 23px)/1.38 var(--serif); color: var(--ink); }
.dear em { font-style: italic; color: var(--kraft-ink); }
html[lang=ar] .dear { font: 400 clamp(19px, 1.6vw, 23px)/1.8 var(--ar-serif); }
html[lang=ar] .dear em { font-family: var(--hand); font-style: normal; color: var(--gold-hand); }
.for { position: absolute; z-index: 4; bottom: 30px; inset-inline-start: 34px; border: 0; display: flex; gap: 22px; }
.for label { display: inline-flex; align-items: center; gap: 9px; font: 400 13px/1 var(--sans); color: var(--ink); cursor: pointer; min-height: 44px; position: relative; }
html[lang=ar] .for label { font: 400 14px/1 var(--ar-body); }
.for input { position: absolute; opacity: 0; width: 16px; height: 16px; margin: 0; }
.for .box { width: 16px; height: 16px; border: 1px solid var(--ink); display: grid; place-items: center; transition: border-color .2s; background: var(--stock); }
.for label:hover .box { border-color: var(--gold-ink); }
.for input:focus-visible + .box { outline: 2px solid var(--gold-ink); outline-offset: 3px; }
.for .box svg { width: 14px; height: 14px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; }
.for .box path { stroke-dasharray: 13; stroke-dashoffset: 13; transition: stroke-dashoffset 160ms linear; }
.for .box path + path { transition-delay: 0ms; }
.for input:checked + .box path { stroke-dashoffset: 0; }
.for input:checked + .box path + path { transition-delay: 160ms; }
.env-to { position: absolute; z-index: 2; bottom: 34px; inset-inline-end: 34px; text-align: start; line-height: 1.7; font-size: 10px; color: var(--ink); }
.reply-cta { width: min(640px, 100%); display: flex; justify-content: center; }
.reply .btn:focus-visible { outline-color: var(--ink); }

/* =================================================================== 4.7 RETURN ADDRESS */
.foot { padding: 96px var(--pad) 32px; max-width: 1584px; margin: 0 auto; }
.foot-line { text-align: center; }
.foot-line .big { font-size: clamp(40px, 5vw, 76px); line-height: 1.45; display: inline-block; }
.foot-line .en-it { font-weight: 300; font-size: clamp(22px, 2vw, 30px); margin-top: 6px; }
.foot-row { margin-top: 72px; border-top: 1px solid rgba(22,21,19,.12); padding-top: 40px; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; align-items: start; }
.foot-from img { height: 36px; width: auto; margin-bottom: 16px; }
.foot-from p { font: 400 13px/1.8 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); max-width: 30ch; }
.foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; align-content: start; }
.foot-links a { font: 400 11.5px/1.3 var(--sans); letter-spacing: .22em; text-transform: uppercase; padding: 4px 0; justify-self: start; position: relative; }
.foot-links a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 280ms var(--ease); }
.foot-links a:hover::after { transform: scaleX(1); }
.foot-tag { text-align: end; }
.foot-tag .en-it { font-size: 22px; line-height: 1.3; }
.foot-tag .ar-hand { font-size: 26px; line-height: 1.6; }
.hem { display: flex; margin-top: 48px; height: 4px; }
.hem i { flex: 1; transform-origin: left; }
[dir=rtl] .hem i { transform-origin: right; }
.hem i:nth-child(1) { background: var(--s1); } .hem i:nth-child(2) { background: var(--s2); } .hem i:nth-child(3) { background: var(--s3); }
.hem i:nth-child(4) { background: var(--s4); } .hem i:nth-child(5) { background: var(--s5); } .hem i:nth-child(6) { background: var(--s6); } .hem i:nth-child(7) { background: var(--s7); }
.foot-small { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; font: 300 12px/1.6 var(--sans); color: var(--ink-2); }
.foot-small p { opacity: .8; }
html[lang=ar] .foot-from p, html[lang=ar] .foot-links a { font-family: var(--ar-body); letter-spacing: 0; font-size: 14px; }

.float-env { display: none; }

/* =================================================================== AR typography (3.2) */
html[lang=ar] body { font: 300 17px/1.9 var(--ar-body); }
html[lang=ar] h1 { font: 400 clamp(40px, min(5.4vw, 10vh), 84px)/1.35 var(--ar-serif); text-transform: none; letter-spacing: 0; }
html[lang=ar] h2 { font: 400 clamp(32px, 3.3vw, 52px)/1.45 var(--ar-serif); letter-spacing: 0; }
html[lang=ar] h2 em { font-style: normal; }
html[lang=ar] .kicker { font: 500 13px/1.6 var(--ar-body); letter-spacing: 0; }
html[lang=ar] .body, html[lang=ar] .lead { font-size: 17px; line-height: 1.9; }
html[lang=ar] .turn { font: 400 clamp(20px, 1.6vw, 24px)/1.7 var(--ar-serif); }
html[lang=ar] .caption, html[lang=ar] .legend li { font-family: var(--ar-body); letter-spacing: 0; }
html[lang=ar] .letters-intro h2 { font-size: clamp(34px, 3.6vw, 56px); }
html[lang=ar] .source { font-family: var(--ar-body); }
html[lang=ar] .coords { direction: ltr; justify-content: flex-end; flex-direction: row-reverse; }
main { transition: opacity .2s; overflow-x: clip; }
main.fading { opacity: 0; }

/* =================================================================== responsive */
/* ---- desktop / laptop only ---- */
@media (min-width: 821px) {
  /* hero strip: one pane of stamps on stock */
  .strip { background: var(--stock); padding: 10px 12px 4px; box-shadow: var(--paper-shadow); }
  /* footer tagline: both lines share the right edge */
  html[dir=ltr] .foot-tag .ar-hand { text-align: right; }
}
@media (min-width: 1024px) {
  /* write back: the envelope stays in view while a lower-row stamp is chosen */
  .reply-main { position: sticky; top: 12svh; align-self: start; }
}
@media (max-width: 1280px) {
  .nav-l { gap: 24px; }
}
@media (max-width: 1023px) {
  .story-side, .pp-side { position: static; }
}
@media (max-width: 820px) {
  :root { --gap: 16px; --nav-h: 60px; --section: 72px; }
  body { font-size: 15px; line-height: 1.65; }
  h2 { font-size: 34px; }
  .nav { grid-template-columns: auto 1fr auto; padding-inline: 16px; height: 60px; }
  .nav.solid { --nav-h: 60px; }
  .nav-l, .nav-write { display: none; }
  .nav-c { grid-column: 1; }
  .mark img, .nav.solid .mark img { height: 30px; }
  .nav-count { display: none; }
  .nav-r { grid-column: 3; gap: 14px; }
  .menu-btn { display: inline-flex; align-items: center; }

  /* hero: copy, art block, copy */
  .hero { height: auto; min-height: 0; display: flex; flex-direction: column; padding-top: 76px; overflow: hidden; }
  .hero-copy { display: contents; }
  .hero-head { order: 1; padding: 0 16px; }
  .hero-stage { order: 2; position: relative; inset: auto; height: 60svh; min-height: 420px; margin-top: 4px; }
  .hero-foot { order: 3; padding: 26px 16px 0; }
  .strip { order: 4; position: relative; inset: auto; bottom: auto; padding: 30px 0 34px; display: flex; flex-direction: column; align-items: center; }
  .hero-air { order: 5; position: relative; height: 4px; }
  .coords { margin-bottom: 14px; font-size: 10.5px; }
  .coords .hair { width: 64px; }
  .hero .kicker { margin-bottom: 12px; }
  .hero h1 { font-size: clamp(40px, 11vw, 52px); }
  .h-line { margin: 8px 0 0; flex-direction: column; align-items: flex-start; }
  .h-line .h-rule { display: none; }
  .art img { object-fit: cover; object-position: 50% 0; -webkit-mask-image: linear-gradient(transparent 0, #000 6%, #000 88%, transparent); mask-image: linear-gradient(transparent 0, #000 6%, #000 88%, transparent); }
  .hero-bottle { left: 36%; bottom: 6%; height: 40svh; max-height: 86%; }
  [dir=rtl] .hero-bottle { left: 66%; }
  .ring-cluster { top: 4px; inset-inline-end: 44px; transform: scale(.66); transform-origin: 100% 0; }
  [dir=rtl] .ring-cluster { transform-origin: 0 0; }
  .hero .lead { font-size: 15px; line-height: 1.65; margin-bottom: 22px; }
  .hero .btn-row { flex-direction: column; gap: 6px; }
  .btn { width: 100%; height: 54px; }
  .counter { display: none; }
  .chips { gap: 6px; }
  .chips .chip { min-width: 38px; padding-inline: 0; }

  /* story */
  .story { display: block; padding: 72px 16px; }
  .story-side { min-height: 0; padding: 0; margin-bottom: 44px; }
  .story-side .source { display: none; }
  .source-m { display: block; }
  .story-main { padding-top: 26px; }
  .sheet { padding: 22px 18px; }
  .sheet .air-border { inset: 8px; }
  .sheet .air-border i:nth-child(1), .sheet .air-border i:nth-child(2) { height: 4px; }
  .sheet .air-border i:nth-child(3), .sheet .air-border i:nth-child(4) { width: 4px; }
  .sheet-in { grid-template-columns: 1fr; padding: 16px 6px 6px; gap: 10px; }
  .founder p { font-size: 17px; line-height: 1.6; }
  .founder[lang=ar] p { font-size: 19px; line-height: 1.95; }
  .sheet-wrap > .pm { width: 73px; height: 73px; top: -26px; }
  .sheet-chart > .pm-abudhabi { width: 78px; height: 78px; left: calc(85% - 39px); top: calc(30px + (100% - 30px) * .35 - 39px); }
  .pm-manama, [dir=rtl] .pm-manama { left: 14px; }
  .sheet-chart { padding-top: 6px; }

  .letters-intro { min-height: 0; padding: 72px 16px 56px; }
  .letters-intro h2 { font-size: 34px; }

  /* mini strip under the nav while in #letters */
  .mini { display: block; position: fixed; z-index: 55; top: 60px; left: 0; right: 0; height: 40px; background: rgba(250,246,238,.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 rgba(22,21,19,.08); transform: translateY(-110%); opacity: 0; transition: transform .3s var(--ease), opacity .3s; pointer-events: none; }
  .mini.on { transform: none; opacity: 1; pointer-events: auto; }
  .mini-chips { display: flex; justify-content: center; gap: 8px; height: 100%; align-items: flex-end; padding-bottom: 4px; }
  .mini .chip { min-width: 40px; min-height: 36px; padding: 0; }
  .mini .chip[aria-selected="true"] { transform: translateY(-3px); }

  .shelf { grid-template-columns: 1fr; padding: 72px 16px; gap: 22px; }
  .shelf-side { display: contents; }
  .shelf-side > .kicker, .shelf-side > h2, .shelf-side > .body { order: 0; }
  .shelf-main { order: 1; }
  .shelf-card { order: 2; margin-top: 4px; max-width: none; padding: 20px 18px 18px; gap: 0 16px; }
  .sc-stamp { width: 52px; height: 64px; }
  .sc-name { font-size: 27px; }
  .shelf-fig { padding: 8px; }
  .shelf-tabs { margin: 10px 4px 0; gap: 2px; }
  .shelf-tabs button { letter-spacing: .06em; font-size: 10.5px; }

  /* parcel */
  .parcel { padding: 0 16px 72px; }
  .pp { display: block; padding-top: 72px; }
  .pp-side { position: static; padding: 0; margin-bottom: 28px; }
  .pp-view { margin: 0 0 36px; }
  .pp-frame { aspect-ratio: 3 / 4; }
  .legend .lg-t { font-size: 22px; }
  .parcel-row2 { margin-top: 64px; }
  html.pp-m .pp-side { margin-bottom: 20px; }
  html.pp-m .pp-view { margin-bottom: 0; padding-top: var(--pp-top); }
  html.pp-m .pp-frame { width: min(100%, calc((100svh - 78px - 288px) * .75)); margin-inline: auto; }
  html.pp-m .pp-note { display: block; height: 262px; margin-top: 10px; transition: opacity .18s; }
  html.pp-m .pp-note[data-beat=card] .lg-d { display: none; }
  html.pp-m .pp-note .ll { padding: 11px 16px 9px; }
  html.pp-m .pp-note .ll-t { font-size: 20px; margin-bottom: 2px; }
  html.pp-m .pp-note .ll-c { margin-top: 9px; }
  html.pp-m .pp-note .ll-c b { width: 44px; height: 44px; font-size: 10px; }
  html.pp-m .pp-head .body { display: block; }
  html.pp-m .legend { margin-top: 28px; }
  .gift { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .gift-fig { width: min(100%, 420px); transform: none; }

  /* shop */
  .shop { display: flex; flex-direction: column; align-items: stretch; padding: 72px 16px; }
  .shop-text { display: contents; }
  .shop-text .kicker { order: 1; } .shop-text h2 { order: 2; } .shop-text .turn { order: 3; }
  .shop-photos { order: 4; width: 100%; height: auto; --eh: auto; margin: 26px 0 40px; padding-bottom: 32%; }
  .shop-text .body { order: 5; } .addr { order: 6; max-width: none; } .shop-text .btn-row { order: 7; flex-direction: column; gap: 6px; }
  .snap { position: relative; }
  .snap-ext { inset: auto; width: 100%; transform: rotate(-1deg); }
  .snap-ext .tipped { height: auto; aspect-ratio: 3 / 4; }
  .snap-int { position: absolute; width: 58%; inset-inline-start: auto; inset-inline-end: -2%; top: auto; bottom: 0; transform: rotate(2deg); }
  .snap-int .tipped { height: auto; aspect-ratio: 3 / 4; }
  .snap-ext figcaption { max-width: 40%; }
  .tipped::after { background-size: 12px 12px; }
  .shop-stamp { transform: scale(.75) rotate(4deg); top: -30px; inset-inline-end: -10px; }
  .shop-stamp .pm { top: -6px; inset-inline-end: auto; inset-inline-start: -52px; }

  /* reply */
  .reply { display: block; padding: 72px 16px; }
  .sheet-stamps { grid-template-columns: repeat(4, 72px); gap: 10px; padding: 14px; width: 100%; }
  .ss .stamp-svg { width: 72px; height: 90px; }
  .sheet-stamps .ss:nth-child(n+5) { transform: translateX(41px); }
  [dir=rtl] .sheet-stamps .ss:nth-child(n+5) { transform: translateX(-41px); }
  .ss .ss-name, .ss .ss-no { font-size: 8.5px; letter-spacing: .1em; white-space: normal; }
  .reply-main { margin-top: 40px; gap: 22px; }
  .envelope { width: 100%; aspect-ratio: 1.5; }
  .byair { top: 22px; inset-inline-start: 22px; font-size: 8px; padding: 0 8px; }
  .slot { top: 20px; inset-inline-end: 22px; width: 72px; height: 90px; }
  .slot-pm { width: 80px; height: 80px; margin-top: -40px; inset-inline-start: -50px; }
  .seal { transform: scale(.8) rotate(-4deg); }
  .env-to { bottom: 24px; inset-inline-end: 24px; font-size: 9px; }
  .env-wrap { width: 100%; display: flex; flex-direction: column; gap: 18px; }
  .env-reply, .for { position: static; transform: none; width: auto; }
  .env-reply { text-align: start; margin-top: 10px; }
  .dear { font-size: 20px; }
  .for { padding: 0; }
  .reply-cta { width: 100%; }

  /* footer */
  .foot { padding: 72px 16px 28px; text-align: center; }
  .foot-line .big { font-size: 40px; }
  .foot-line .en-it { font-size: 22px; }
  .foot-row { grid-template-columns: 1fr; justify-items: center; gap: 36px; }
  .foot-from img { margin: 0 auto 14px; }
  .foot-links { justify-items: center; }
  .foot-links a { justify-self: center; }
  .foot-tag { text-align: center; }
  .foot-small { flex-direction: column; }

  /* floating envelope */
  .float-env { display: block; position: fixed; z-index: 58; bottom: 16px; inset-inline-end: 16px; width: 56px; height: 40px; background: var(--stock); border: 1px solid var(--ink);
    box-shadow: 0 8px 18px -8px rgba(22,21,19,.4); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
  .float-env.on { opacity: 1; transform: none; pointer-events: auto; }
  .float-env::before { content: ""; position: absolute; inset: -4px; }
  .fe-flap { position: absolute; inset: 0; background:
    linear-gradient(to top right, transparent calc(50% - .5px), var(--ink) 50%, transparent calc(50% + .5px)) 0 0 / 50% 55% no-repeat,
    linear-gradient(to top left, transparent calc(50% - .5px), var(--ink) 50%, transparent calc(50% + .5px)) 100% 0 / 50% 55% no-repeat; }
  .fe-stamp { position: absolute; top: 3px; inset-inline-end: 3px; width: 14px; height: 17px; transition: opacity .2s; }
  .fe-stamp .stamp-svg { width: 14px; height: 17px; }
}
@media (max-width: 480px) {
  .reply-side .sheet-stamps { margin-inline: auto; }
}
@media (max-width: 370px) {
  html:not(.pin) .leaf .name { font-size: 30px; }
  html:not(.pin) .leaf .label-frame { padding: 18px 20px 12px; }
  .sheet-stamps { grid-template-columns: repeat(4, 64px); gap: 8px; padding: 12px; }
  .ss .stamp-svg { width: 64px; height: 80px; }
  .sheet-stamps .ss:nth-child(n+5) { transform: translateX(36px); }
  [dir=rtl] .sheet-stamps .ss:nth-child(n+5) { transform: translateX(-36px); }
  .chips { gap: 4px; }
  .chips .chip { min-width: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .15s !important; animation: none !important; }
}


/* ============================================================ OPENING SOON + RETURN ADDRESS (Phase 0) */
.os-note { font: italic 400 17px/1.5 var(--serif); color: var(--ink); max-width: 640px; text-align: center; align-self: center; }
html[lang=ar] .os-note { font: 400 15px/1.8 var(--ar-body); }
.foot-return { margin-top: 40px; padding-top: 12px; border-top: 1px solid rgba(22,21,19,.12); }
.foot-addr { padding-top: 16px; margin-bottom: 8px; }
.foot-addr[hidden], .foot-return[hidden] { display: none; }
.foot-return dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 32px; margin-top: 16px; }
.foot-return dt { font: 500 10px/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.foot-return dd { font: 400 14px/1.6 var(--sans); color: var(--ink); overflow-wrap: anywhere; }
.foot-return dd.ph { color: var(--ink-2); border-bottom: 1px dotted var(--gold); width: fit-content; max-width: 100%; }
html[lang=ar] .foot-return dt, html[lang=ar] .foot-return dd, html[lang=ar] .foot-policies a { font-family: var(--ar-body); letter-spacing: 0; }
html[lang=ar] .foot-return dt { font-size: 12px; }
html[lang=ar] .foot-return dd { text-align: start; }
html[lang=ar] .foot-return dd[dir=ltr] { text-align: right; margin-inline-start: 0; }
.foot-policies { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 20px; }
.foot-policies a { font: 400 11.5px/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; padding: 12px 0; }
.foot-policies a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
@media (max-width: 760px) {
  .foot-return { text-align: start; }
  .foot-return dl { grid-template-columns: 1fr; gap: 12px; }
  .foot-policies { justify-content: flex-start; }
}


/* ============================================================ PHASE 1 · F6 reading comfort + the unfolding letter
   Type scale. Running text: 18px (phones), 19px (laptops), 20px (wide). Letters (the serif voice): 20 / 21 / 22px.
   Arabic runs one step up. Labels (kickers, stamps, nav, chips) stay small on purpose: they are not running text. */
:root { --fs-body: 18px; --fs-letter: 20px; --fs-small: 17px; --lh-body: 1.65; --lh-letter: 1.55; }
html[lang=ar] { --fs-body: 19px; --fs-letter: 21px; --lh-body: 1.9; --lh-letter: 1.85; }
@media (min-width: 821px) { :root { --fs-body: 19px; --fs-letter: 21px; --fs-small: 18px; } html[lang=ar] { --fs-body: 20px; --fs-letter: 22px; } }
@media (min-width: 1440px) { :root { --fs-body: 20px; --fs-letter: 22px; } html[lang=ar] { --fs-body: 21px; --fs-letter: 23px; } }

body, html[lang=ar] body { font-size: var(--fs-body); line-height: var(--lh-body); }
.body, .hero .lead, html[lang=ar] .body, html[lang=ar] .lead { font-size: var(--fs-body); line-height: var(--lh-body); }
.founder p, .founder[lang=ar] p, .other-lang .founder[lang] p { font-size: var(--fs-letter); line-height: var(--lh-letter); }
html[lang=ar] .founder[lang=ar] p { line-height: var(--lh-letter); }
.message, html[lang=ar] .message, html:not(.pin) .message { font-size: var(--fs-letter); line-height: var(--lh-letter); max-width: 56ch; }
.to-en { font-size: var(--fs-letter); }
html[lang=ar] .to-ar { font-size: var(--fs-letter); }
.sign-en { font-size: var(--fs-letter); }
.sc-to, [lang=ar] .sc-to { font-size: var(--fs-letter); line-height: 1.4; }
.legend li { font-size: var(--fs-body); line-height: 1.5; }
.caption, .source { font-size: var(--fs-small); line-height: 1.55; }
.addr td, html[lang=ar] .addr td { font-size: var(--fs-body); line-height: 1.5; }
.dear, html[lang=ar] .dear { font-size: var(--fs-letter); line-height: var(--lh-letter); }
.os-note, html[lang=ar] .os-note { font-size: var(--fs-letter); line-height: var(--lh-letter); }
.foot-from p, html[lang=ar] .foot-from p, .foot-return dd, .foot-small { font-size: var(--fs-small); line-height: 1.6; }
.price { font-size: 15px; }

/* the P.S. */
.ps { font: italic 400 var(--fs-letter)/var(--lh-letter) var(--serif); color: var(--ink-2); max-width: 52ch; }
.ps-l { font-style: normal; font-weight: 500; letter-spacing: .06em; color: var(--gold-ink); }
html[lang=ar] .ps { font: 400 var(--fs-letter)/var(--lh-letter) var(--ar-serif); }
html[lang=ar] .ps-l { font-weight: 700; letter-spacing: 0; }

/* the letter's body unfolds under its TO line */
.fold-in { display: flex; flex-direction: column; gap: var(--lg, 18px); }
.unfold { display: none; }
.unfold:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; }
/* pinned stage: the letter in focus opens from its top edge; the others stay folded (hidden) */
html.pin .leaf { --lg: clamp(8px, 1.5vh, 16px); }
html.pin .fold-in { clip-path: inset(-6px -28px 100% -28px); transition: clip-path .5s var(--ease); }
html.pin .leaf.on .fold-in { clip-path: inset(-6px -28px -12px -28px); transition-delay: .12s; }
/* stacked layout: an accordion, one letter open at a time. The postcard and the TO line always show. */
html:not(.pin) .leaf { --lg: 18px; }
/* the control is the letter's fold line: a paper crease across the sheet with the words set in it, not an FAQ row */
html:not(.pin) .unfold { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 52px; padding: 6px 0;
  font: italic 400 19px/1.3 var(--serif); letter-spacing: .01em; color: var(--gold-ink); transition: color .3s var(--ease); }
html:not(.pin) .unfold::before, html:not(.pin) .unfold::after { content: ""; flex: 1 1 0; min-width: 18px; height: 2px;
  background: linear-gradient(rgba(22,21,19,.2) 0 1px, rgba(255,255,255,.65) 1px 2px); }
html:not(.pin) .unfold:hover { color: var(--ink); }
html[lang=ar]:not(.pin) .unfold { font: 400 19px/1.4 var(--ar-serif); letter-spacing: 0; }
.uf-ic { flex: none; width: 7px; height: 7px; border-right: 1.2px solid currentColor; border-bottom: 1.2px solid currentColor; transform: rotate(45deg); margin-top: -4px; transition: transform .4s var(--ease), margin .4s var(--ease); }
html:not(.pin) .leaf.open .uf-ic { transform: rotate(-135deg); margin-top: 3px; }
html:not(.pin) .fold { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
html:not(.pin) .fold-in { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s linear .55s; }
html:not(.pin) .leaf.open .fold { grid-template-rows: 1fr; }
html:not(.pin) .leaf.open .fold-in { visibility: visible; transition-delay: 0s; }
html:not(.pin) .leaf.nt .fold, html:not(.pin) .leaf.nt .fold-in, html:not(.pin) .leaf.nt .uf-ic { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  html:not(.pin) .fold, html:not(.pin) .fold-in, .uf-ic, html.pin .fold-in { transition: none !important; }
}

/* pinned stage on laptop heights: the unfolded letter must fit between the nav and the rail, with the type at its minimum */
html.pin .leaf { --lg: clamp(5px, 1vh, 12px); }
html.pin .message, html.pin .ps { max-width: none; }
html.pin[lang=ar] .message, html.pin[lang=ar] .ps { line-height: 1.75; }
html.pin .addr-block { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; }
html.pin .addr-block .small { margin: 0; }
html.pin .addr-block .to-ar { flex-basis: 100%; margin-top: 0; line-height: 1.35; }
html.pin .sign .small { flex-basis: auto; margin-inline-start: auto; }
@media (max-height: 760px) {
  html.pin .post-row { margin-bottom: -26px; }
  html.pin .title-row { position: relative; z-index: 1; }
}


/* ---- F12 · flags on the chart: one pole at the dhow's stern, Bahrain's flag near Bahrain and the UAE's after the midpoint (they cross-fade, see placeDhow); the end pins carry no flag (client, 21 Oct: the dhow's flag is enough) ---- */
.gulf .flag path { fill: none; stroke: var(--ink); stroke-opacity: .8; stroke-width: 1.2; stroke-linecap: round; }
.gulf .flag-f { transform-box: fill-box; transform-origin: 0 50%; animation: flutter 2.6s ease-in-out infinite; }
.gulf #flagUae { animation-duration: 2.1s; animation-delay: -.7s; }
@keyframes flutter { 0%, 100% { transform: skewY(0deg) scaleX(1); } 35% { transform: skewY(-5deg) scaleX(.95); } 70% { transform: skewY(4deg) scaleX(.98); } }


/* ============================================================ PHASE 1 · F16 The First Letter · To the Emirates
   Unnumbered closing tribute on plain paper. No CTA, no stamp, no price, no portraits. */
.trib { padding: var(--section) var(--pad); background: var(--paper); }
.trib-sheet { max-width: 780px; margin: 0 auto; text-align: center; background: var(--stock); padding: clamp(40px, 6vw, 84px) clamp(22px, 5vw, 72px); box-shadow: var(--paper-shadow); }
.trib .kicker { margin-bottom: 14px; }
.trib-lead { font: italic 400 var(--fs-letter)/var(--lh-letter) var(--serif); color: var(--ink-2); margin-bottom: clamp(18px, 2.6vw, 28px); }
.trib-words p { font: 400 clamp(var(--fs-letter), 2.1vw, 28px)/1.45 var(--serif); color: var(--ink); text-wrap: balance; }
.trib-words p + p { margin-top: .7em; color: var(--ink-2); }
.trib-src { margin-top: 24px; font: 500 13px/1.6 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-ink); }
.trib-1971 { margin-top: 26px; font: italic 400 var(--fs-letter)/1.4 var(--serif); color: var(--ink-2); }
/* the national colours as one hairline, in the flag's order: red, green, white, black (white keeps a faint edge so it never reads as a gap) */
.trib-line { display: block; width: 96px; height: 3px; margin: 26px auto 0; }
html[lang=ar] .trib-lead, html[lang=ar] .trib-words p, html[lang=ar] .trib-1971 { font-family: var(--ar-serif); font-style: normal; line-height: 1.8; }
html[lang=ar] .trib-words p { font-size: clamp(var(--fs-letter), 2.1vw, 29px); }
html[lang=ar] .trib-src { font: 500 14px/1.7 var(--ar-body); letter-spacing: 0; }

/* tap / click the card to read it large (Phase 1d) */
.enclosure[role=button] { cursor: zoom-in; }
.enclosure[role=button]:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 4px; }
.enc-modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; background: rgba(22,21,19,.55); backdrop-filter: blur(3px);
  animation: encIn .2s var(--ease); overscroll-behavior: contain; }
.enc-modal[hidden] { display: none; }
.enc-pane { position: relative; width: min(100%, 680px); max-height: 100%; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.enc-pane .enclosure { transform: none; cursor: default; container-type: inline-size; }
.enc-pane .enclosure:hover { transform: none; }
.enc-pane .enc { --u: clamp(16px, 4cqw, 22px); opacity: 1 !important; padding: 1.3em 1.5em 1.1em; }
.enc-close { align-self: flex-end; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(168,134,78,.7); background: var(--stock); color: var(--ink);
  font: 400 24px/1 var(--sans); cursor: pointer; display: grid; place-items: center; box-shadow: var(--paper-shadow); }
.enc-close:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; }
@keyframes encIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .enc-modal { animation: none; } }


/* ============================================================ FIT · the pinned letters stage follows the screen's HEIGHT
   --fit (set in the page head and by fitStage in main.js) is 1 from 700px tall up and shrinks to .72 on short laptop screens (Windows at 125-150%).
   The desk (postcard, card, bottle) and the rail scale with it; the letter column is zoomed by --lz, which main.js lowers further if the tallest letter
   (Arabic) would not fit between the nav and the rail. At 700px and above nothing changes. */
:root { --fit: 1; --lz: 1; }
html.pin .stage { padding-top: max(calc(var(--nav-h) + 8px), calc(88px * var(--fit))); padding-bottom: calc(76px * var(--fit)); }
html.pin .pile-wrap { width: min(calc(100% - 32px), calc((100svh - 300px * var(--fit)) * 1.5), 760px); }
html.pin .enc-wrap { width: min(46%, 290px); }
/* the desk card is a preview (a click opens it full size): small and real-size text, so the postcard stays the hero */
html.pin .enc-wrap { transform-origin: 0 100%; }
html[dir=rtl].pin .enc-wrap { transform-origin: 100% 100%; }
html.pin .rail { bottom: calc(22px * var(--fit)); }
html.pin .leaves { zoom: var(--lz); }

/* FIT · hero on narrow laptops and landscape tablets: the headline and the lead stay clear of the bottle */
@media (min-width: 821px) and (max-width: 1100px) {
  .hero-copy { width: 44vw; }
  .hero h1 { font-size: clamp(38px, min(4.6vw, 10.5svh), 92px); }
  html[lang=ar] .hero h1 { font-size: clamp(36px, min(4.5vw, 10svh), 84px); }
  .hero-bottle { height: clamp(300px, 54svh, 640px); }
}

/* FIT · the box's text column on the shortest laptop screens (577px tall and under): the whole column steps down a little */
@media (min-width: 821px) and (max-height: 660px) { html.pp-d .pp-side { zoom: .93; } }
@media (min-width: 821px) and (max-height: 600px) { html.pp-d .pp-side { zoom: .88; } }

/* SHOP LINKS · the header/menu/hero/footer "Shop" links and the secondary "View letter" link (shown only when the shop build serves the page) */
.nav-l a.nav-shop { color: var(--gold-ink); font-weight: 500; }
.nav-l a.nav-shop::after { transform: scaleX(1); }
.menu-index a.menu-shop { color: var(--gold-ink); }
.menu-index b.go { font-size: 16px; letter-spacing: 0; min-width: .9em; }
[dir=rtl] .menu-index b.go { display: inline-block; transform: scaleX(-1); }
.view-letter { white-space: nowrap; }
.reply-cta { flex-wrap: wrap; align-items: center; gap: 14px 26px; }
html.pin .actions { flex-wrap: wrap; row-gap: 6px; }
@media (min-width: 821px) and (max-width: 1180px) {
  .nav-l { gap: 18px; }
  .nav-l a { letter-spacing: .16em; }
  html[lang=ar] .nav-l a { letter-spacing: 0; }
}
@media (min-width: 821px) { .hero .btn-row { gap: 12px 22px; } }
