/* ONCE ÉDITION — interface */
:root {
  --black: #030303;
  --char: #0c0c0c;
  --graphite: #1a1a19;
  --line: rgba(236, 228, 214, 0.14);
  --line-strong: rgba(236, 228, 214, 0.32);
  --ivory: #ece4d6;
  --ivory-dim: rgba(236, 228, 214, 0.62);
  --mute: rgba(236, 228, 214, 0.42);
  --crimson: #9b1019;
  --crimson-glow: #c01622;
  --brass: #a07a45;
  /* Latin faces first; Arabic glyphs fall through to their Arabic partners. */
  --serif: "Cormorant Garamond", "Noto Kufi Arabic", "Times New Roman", serif;
  --sans: "Manrope", "IBM Plex Sans Arabic", "Helvetica Neue", Arial, sans-serif;
  --latin: "Cormorant Garamond", "Times New Roman", serif;
  --ar-em: "Amiri", "Noto Kufi Arabic", serif;
  --ease: cubic-bezier(.22, .7, .1, 1);
  --gut: clamp(16px, 4vw, 56px);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--black); color: var(--ivory); -webkit-text-size-adjust: 100%; }
html.locked, html.locked body { overflow: hidden; }
body { margin: 0; font-family: var(--sans); font-weight: 400; font-size: 14px; line-height: 1.6; letter-spacing: 0.01em; background: var(--black); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 1px solid var(--ivory); outline-offset: 4px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.muted { color: var(--mute); }
.small { font-size: 11px; }
.eyebrow { font-family: var(--sans); font-size: 10.5px; font-weight: 500; letter-spacing: 0.34em; text-transform: uppercase; color: var(--ivory-dim); margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--crimson-glow); box-shadow: 0 0 10px var(--crimson-glow); }
.link { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ivory-dim); transition: color .4s var(--ease); }
.link:hover { color: var(--ivory); }
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 0 30px; border: 1px solid var(--line-strong); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ivory); position: relative; overflow: hidden; transition: border-color .5s var(--ease), color .5s var(--ease); }
.cta::before { content: ""; position: absolute; inset: 0; background: var(--ivory); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); z-index: -1; }
.cta:hover:not(:disabled) { color: var(--black); border-color: var(--ivory); }
.cta:hover:not(:disabled)::before { transform: scaleX(1); }
.cta:disabled { opacity: .35; cursor: not-allowed; }

/* Stage */
#stage { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; display: block; z-index: 0; touch-action: pan-y; }
#veil { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse at 50% 45%, rgba(3,3,3,.55), #030303 75%); opacity: 0; }
#grain { position: fixed; inset: -50%; z-index: 2; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,2%)} 100%{transform:translate(0,0)} }
body::after { content: ""; position: fixed; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0,0,0,.55) 100%); }

/* Loader */
#loader { position: fixed; inset: 0; z-index: 50; background: var(--black); display: grid; place-content: center; justify-items: center; gap: 26px; transition: opacity 1.4s var(--ease), visibility 1.4s; }
body:not(.is-loading) #loader { opacity: 0; visibility: hidden; }
.loader-mark { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 3vw, 34px); letter-spacing: .5em; margin: 0 0 0 .5em; }
.loader-mark span, .wordmark span, .foot-mark span { font-style: normal; }
.loader-line { width: 180px; height: 1px; background: var(--line); overflow: hidden; }
.loader-line i { display: block; height: 100%; background: var(--ivory); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.loader-note { margin: 0; font-size: 10px; letter-spacing: .34em; text-transform: uppercase; color: var(--mute); }
.loader-pct { margin: -10px 0 0; font-family: var(--latin, sans-serif); font-size: 11px; letter-spacing: .2em; color: var(--mute); font-variant-numeric: tabular-nums; min-width: 4ch; text-align: center; }
.loader-why { margin: 0; font-size: 11px; color: var(--mute); opacity: .7; }
body.is-loading { overflow: hidden; }

/* Header */
.hud { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: calc(18px + env(safe-area-inset-top)) var(--gut) 18px; pointer-events: none; }
.hud > * { pointer-events: auto; }
.wordmark { font-family: var(--serif); font-size: 17px; font-weight: 500; letter-spacing: .42em; white-space: nowrap; }
.hud nav { display: flex; gap: clamp(14px, 2.4vw, 34px); }
.hud-btn { font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--ivory-dim); transition: color .4s; white-space: nowrap; }
.hud-btn:hover { color: var(--ivory); }
.hud-btn span { color: var(--ivory); margin-left: 4px; }
#btn-bag span { display: inline-grid; place-items: center; min-width: 18px; height: 18px; border: 1px solid var(--line-strong); border-radius: 50%; font-size: 9px; letter-spacing: 0; }

/* ── 1 · Featured Edition film ─────────────────────────────────────────── */
#film { position: relative; z-index: 3; height: 820vh; background: #050505; --p: 0; }
#film.film-empty { height: 100vh; height: 100svh; }
.film-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.film-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.film-shade { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, transparent 40%, rgba(3,3,3,.6) 100%),
              linear-gradient(180deg, rgba(3,3,3,.55), transparent 18%, transparent 70%, rgba(3,3,3,.7)); }
#film [data-at] { position: absolute; opacity: var(--k, 0); pointer-events: none; will-change: opacity, transform; }
#film [data-at].on { pointer-events: auto; }

/* opening title: letters arrive from blur, then drift apart as the film begins */
.film-open { inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 18px; }
.fo-pre { margin: 0; font-size: 10.5px; letter-spacing: .5em; text-transform: uppercase; color: var(--ivory-dim);
  transform: translateY(calc(var(--t) * -40px)); }
.fo-mark { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 6.2vw, 100px); line-height: 1; white-space: nowrap;
  letter-spacing: calc(.06em + var(--t) * .16em); text-shadow: 0 0 60px rgba(0,0,0,.8); }
.fo-mark span { display: inline-block; animation: foIn 1.8s var(--ease) both; animation-delay: calc(.5s + var(--i) * 55ms); }
body.is-loading .fo-mark span { animation-play-state: paused; }
@keyframes foIn { from { opacity: 0; filter: blur(12px); translate: 0 18px; } to { opacity: 1; filter: blur(0); translate: 0 0; } }

/* title card */
.film-title { left: var(--gut); bottom: 13vh; max-width: 560px; transform: translateY(calc((1 - var(--k)) * 30px)); }
.film-title { text-shadow: 0 2px 30px rgba(0,0,0,.85), 0 0 2px rgba(0,0,0,.6); }
.ft-name { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(46px, 6.4vw, 104px); line-height: .95; letter-spacing: .01em;
  clip-path: inset(0 calc((1 - var(--k)) * 100%) 0 0); }
.ft-sub { margin: 10px 0 0; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(22px, 2.2vw, 32px); color: var(--ivory-dim); }
.ft-note { margin: 22px 0 0; max-width: 400px; font-size: 13px; line-height: 1.7; color: var(--ivory-dim); }

/* detail chapters */
.film-chapter { top: 50%; width: min(330px, 34vw); padding: 22px 24px 24px; background: rgba(6,6,6,.62); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transform: translate3d(calc((1 - var(--k)) * var(--dir) * 40px), -50%, 0); }
.film-chapter.right { right: var(--gut); --dir: 1; }
.film-chapter.left { left: var(--gut); --dir: -1; }
.film-chapter::before { content: ""; position: absolute; left: -1px; top: -1px; height: 1px; width: calc(var(--k) * 46px); background: var(--crimson-glow); box-shadow: 0 0 8px var(--crimson-glow); }
.fc-num { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 10px; letter-spacing: .34em; text-transform: uppercase; color: var(--mute); }
.fc-num .n { font-family: var(--serif); font-size: 30px; letter-spacing: .02em; color: var(--ivory); line-height: 1; }
.fc-num i { flex: 0 0 auto; width: calc(var(--k) * 36px); height: 1px; background: var(--line-strong); }
.fc-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.08; }
.fc-text { margin: 10px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--ivory-dim); }

/* the marker that locks onto the garment */
.film-marks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; overflow: visible; }
.mk-line { stroke: var(--ivory); stroke-opacity: .55; stroke-width: 1; }
.mk-ring { fill: none; stroke: var(--ivory); stroke-width: 1; stroke-dasharray: 3 6; }
.mk-dot { fill: var(--crimson-glow); filter: drop-shadow(0 0 4px var(--crimson-glow)); }
.mk-ticks { stroke: var(--ivory); stroke-opacity: .7; stroke-width: 1; fill: none; }

/* closing specification sheet */
.film-sheet { right: calc(var(--gut) + 24px); top: 50%; width: min(470px, 38vw); padding: 28px 30px 24px;
  background: rgba(5,5,5,.78); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transform: translate3d(calc((1 - var(--k)) * 30px), calc(-50% + var(--sy, 0px)), 0); }
.fs-name { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 3.4vw, 52px); line-height: 1; }
.fs-sub { margin: 6px 0 0; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ivory-dim); }
.fs-details { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; }
.fs-details li { display: flex; gap: 10px; font-size: 12px; line-height: 1.45; color: var(--ivory-dim); min-width: 0; }
.fs-details li .n { flex: 0 0 auto; font-family: var(--serif); font-size: 13px; color: var(--mute); line-height: 1.3; }
.fs-rows { margin: 20px 0 0; border-top: 1px solid var(--line); }
.fs-rows div { display: grid; grid-template-columns: 104px 1fr; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.fs-rows dt { font-size: 9.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--mute); padding-top: 3px; font-variant-numeric: tabular-nums; }
.fs-rows dd { margin: 0; font-size: 12.5px; color: var(--ivory); }
.fs-rows .tbc dd { color: var(--mute); font-style: italic; font-family: var(--serif); font-size: 15px; }
.fs-count { margin: 18px 0 0; font-size: 12px; letter-spacing: .16em; font-variant-numeric: tabular-nums; }
.fs-count span { color: var(--mute); text-transform: uppercase; font-size: 10px; letter-spacing: .3em; margin-right: 8px; }
.fs-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 24px; }

/* film HUD: progress rail with chapter ticks, timecode, frame counter */
.film-hud { position: absolute; inset: 0; pointer-events: none; }
.fh-rail { position: absolute; right: calc(var(--gut) - 10px); top: 22vh; bottom: 22vh; width: 1px; background: var(--line); }
.fh-fill { position: absolute; inset: 0; background: var(--ivory); transform-origin: top; transform: scaleY(0); }
.fh-rail b { position: absolute; left: -3px; top: calc(var(--at) * 100%); width: 7px; height: 1px; background: var(--ivory-dim); }
.fh-tc, .fh-frame { position: absolute; bottom: calc(26px + env(safe-area-inset-bottom)); margin: 0; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--ivory-dim); font-variant-numeric: tabular-nums; }
.fh-tc { left: var(--gut); display: flex; gap: 16px; }
.fh-tc .fh-label { color: var(--mute); }
.fh-frame { right: var(--gut); }
.fh-frame span { color: var(--ivory); }
.film-hint { position: absolute; left: 50%; bottom: calc(70px + env(safe-area-inset-bottom)); transform: translateX(-50%); margin: 0; font-size: 10px; letter-spacing: .4em; text-transform: uppercase; color: var(--ivory-dim); transition: opacity .8s; }
.film-hint::after { content: ""; display: block; width: 1px; height: 38px; margin: 14px auto 0; background: linear-gradient(var(--ivory), transparent); animation: drip 2.4s var(--ease) infinite; transform-origin: top; }
#film.scrolled .film-hint { opacity: 0; }
#film.at-sheet .film-chapter, #film.at-sheet .film-marks { opacity: 0 !important; }
.film-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; padding: 0 var(--gut); }
.film-ph-title { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(54px, 9vw, 140px); line-height: 1; }
.film-ph-title span { color: var(--mute); }
.film-ph-copy { margin: 18px 0 0; font-family: var(--serif); font-size: clamp(20px, 2.2vw, 28px); font-style: italic; color: var(--ivory-dim); }

/* ── 2 · The principle + Auction Vault ─────────────────────────────────── */
#concept { position: relative; z-index: 3; background: radial-gradient(ellipse 90% 60% at 50% 0%, #11100e 0%, var(--black) 70%); }
.concept-inner { width: min(1180px, 100%); margin: 0 auto; padding: clamp(110px, 16vh, 180px) var(--gut) clamp(60px, 10vh, 120px); }
.concept-title { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(46px, 7.2vw, 116px); line-height: 1; letter-spacing: -.005em; max-width: 11ch; text-wrap: balance; }
.concept-title .ln { display: inline-block; opacity: 0; transform: translateY(40px); transition: opacity 1.4s var(--ease), transform 1.6s var(--ease); }
.concept-title em { font-style: italic; color: var(--ivory-dim); }
.concept-inner.seen .ln { opacity: 1; transform: none; }
.concept-inner.seen .ln:nth-child(2) { transition-delay: .18s; } .concept-inner.seen .ln:nth-child(3) { transition-delay: .36s; }
.concept-lead { margin: 40px 0 0; max-width: 58ch; font-size: 15px; line-height: 1.8; color: var(--ivory-dim); opacity: 0; transition: opacity 1.4s var(--ease) .5s; }
.concept-inner.seen .concept-lead { opacity: 1; }
.tenets { list-style: none; margin: clamp(60px, 9vh, 100px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.tenets li { position: relative; padding: 28px 26px 10px 0; opacity: 0; transform: translateY(24px); transition: opacity 1.2s var(--ease), transform 1.4s var(--ease); min-width: 0; }
.tenets li + li { padding-left: 26px; border-left: 1px solid var(--line); }
.tenets li::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--ivory); transition: width 1.6s var(--ease) .3s; }
.tenets li.seen { opacity: 1; transform: none; }
.tenets li.seen::before { width: 40px; }
.tenets li:nth-child(4)::before { background: var(--crimson-glow); box-shadow: 0 0 8px var(--crimson-glow); }
.tenets li:nth-child(2) { transition-delay: .12s; } .tenets li:nth-child(3) { transition-delay: .24s; } .tenets li:nth-child(4) { transition-delay: .36s; }
.tenets .n { font-family: var(--serif); font-size: 15px; color: var(--mute); letter-spacing: .1em; }
.tenets h3 { margin: 16px 0 10px; font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2vw, 28px); line-height: 1.1; }
.tenets p { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--ivory-dim); }

.vault { position: relative; height: 260vh; }
.vault-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.vault-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vault-sticky::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, var(--black) 0%, transparent 16%, transparent 78%, rgba(3,3,3,.85) 100%); }
.vault-head { position: absolute; z-index: 1; left: var(--gut); top: calc(96px + env(safe-area-inset-top)); max-width: 520px; opacity: 0; transform: translateY(20px); transition: opacity 1.4s var(--ease), transform 1.6s var(--ease); }
.vault-head.seen { opacity: 1; transform: none; }
.vault-title { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 3.4vw, 52px); line-height: 1.06; }
.vault-title em { font-style: italic; color: var(--ivory-dim); font-size: .62em; line-height: 1.3; display: inline-block; margin-top: 8px; }
.vault-note { position: absolute; z-index: 1; left: var(--gut); right: var(--gut); bottom: calc(30px + env(safe-area-inset-bottom)); margin: 0; text-align: center; font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--mute); }
.vault-labels { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.lot-label { position: absolute; left: 0; top: 0; translate: -50% 0; display: grid; justify-items: center; gap: 4px; padding: 8px 10px; white-space: nowrap; text-align: center; transition: opacity .6s var(--ease); pointer-events: auto; }
.lot-label.empty { cursor: default; }
.lot-label.off { opacity: 0; }
.ll-lot { display: none; }
.ll-name { font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--ivory-dim); }
.lot-label.empty .ll-name { color: var(--mute); }
.ll-meta { font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); }

/* ── 3 · Boutique ──────────────────────────────────────────────────────── */
#stage { visibility: hidden; }
.stage-on #stage { visibility: visible; }
.stage-wait { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; font-size: 10px; letter-spacing: .4em; text-transform: uppercase; color: var(--mute); transition: opacity .8s; }
.stage-ready .stage-wait { opacity: 0; }
#gallery { position: relative; height: 420vh; z-index: 3; pointer-events: none; }
.gallery-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
html { overflow-x: clip; }
.beat { position: absolute; opacity: 0; will-change: opacity, transform; }
.beat-hero { inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; }
.beat-hero .eyebrow { justify-content: center; }
.beat-mark { margin: 0 0 0 .32em; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 7.4vw, 118px); letter-spacing: .32em; line-height: 1; white-space: nowrap; text-shadow: 0 0 60px rgba(0,0,0,.8); }
.beat-line { bottom: 16vh; max-width: 440px; }
.beat-line.left { left: var(--gut); }
.beat-line.right { right: var(--gut); text-align: right; }
.beat-line.right .eyebrow { justify-content: flex-end; }
.beat-text { margin: 0; font-family: var(--serif); font-size: clamp(26px, 3vw, 42px); line-height: 1.18; font-weight: 300; text-shadow: 0 2px 30px rgba(0,0,0,.8); }
.beat-text em { font-style: italic; color: var(--ivory-dim); }
.beat-cta { left: 0; right: 0; bottom: calc(40px + env(safe-area-inset-bottom)); display: flex; justify-content: center; }
.beat-cta .eyebrow { margin: 0; }
.scroll-hint { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); margin: 0; font-size: 10px; letter-spacing: .4em; text-transform: uppercase; color: var(--ivory-dim); transition: opacity .8s; }
.scroll-hint::after { content: ""; display: block; width: 1px; height: 38px; margin: 14px auto 0; background: linear-gradient(var(--ivory), transparent); animation: drip 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Anchored labels */
#labels { position: fixed; inset: 0; z-index: 6; pointer-events: none; }
.rail-label { position: absolute; left: 0; top: 0; display: flex; align-items: baseline; gap: 10px; padding: 10px 2px; margin: -20px 0 0 0; white-space: nowrap; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--ivory-dim); opacity: 0; transition: opacity .8s var(--ease), color .4s; }
.rail-label { translate: -50% 0; }
.rail-label .num { font-family: var(--serif); font-size: 18px; letter-spacing: .08em; color: var(--ivory); }
.rail-label .c { color: var(--mute); }
.rail-label::before { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 26px; background: linear-gradient(var(--line-strong), transparent); }
.rail-label.hot { color: var(--ivory); }
.rail-label.hot::after { content: ""; position: absolute; left: calc(50% - 14px); top: calc(100% - 3px); width: 28px; height: 1px; background: var(--crimson-glow); box-shadow: 0 0 8px var(--crimson-glow); }
.labels-on .rail-label:not(.off) { opacity: 1; pointer-events: auto; }
.niche-label .dot { margin-right: 2px; }

/* Rail HUD */
#rail-ui { position: fixed; inset: 0; z-index: 8; pointer-events: none; opacity: 0; transition: opacity .8s var(--ease) .3s; }
.in-rail #rail-ui { opacity: 1; }
.in-rail #rail-ui > *, .in-rail #rail-ui .rail-bottom > * { pointer-events: auto; }
.rail-back { position: absolute; top: calc(72px + env(safe-area-inset-top)); left: var(--gut); }
.rail-title { position: absolute; top: calc(66px + env(safe-area-inset-top)); right: var(--gut); margin: 0; font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--ivory-dim); display: flex; gap: 12px; align-items: baseline; }
.rail-title .num { font-family: var(--serif); font-size: 26px; color: var(--ivory); letter-spacing: .06em; }
.rail-bottom { position: absolute; left: var(--gut); right: var(--gut); bottom: calc(28px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr auto auto; align-items: end; gap: 28px; pointer-events: none; }
.rail-caption .cap-name { margin: 0; font-family: var(--serif); font-size: clamp(24px, 2.6vw, 36px); line-height: 1.1; font-weight: 400; }
.rail-caption .cap-meta { margin: 6px 0 0; font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--mute); }
.rail-nav { display: flex; align-items: center; gap: 18px; }
.rail-nav .link { font-size: 18px; letter-spacing: 0; padding: 8px; }
.rail-count { font-size: 11px; letter-spacing: .3em; color: var(--ivory-dim); font-variant-numeric: tabular-nums; }
.rail-switch { grid-column: 1 / -1; justify-self: start; }
#rail-ui.empty .rail-nav, #rail-ui.empty .rail-view { display: none; }
.in-detail #rail-ui .rail-bottom { opacity: 0; pointer-events: none; transform: translateY(10px); }
.in-detail #rail-ui .rail-bottom > * { pointer-events: none; }
#rail-ui .rail-bottom { transition: opacity .5s var(--ease), transform .6s var(--ease); }

.site-foot { position: relative; z-index: 4; padding: 60px var(--gut) calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 20px; background: var(--black); flex-wrap: wrap; }
.foot-mark { margin: 0; font-family: var(--serif); letter-spacing: .42em; font-size: 15px; }
.site-foot .muted { margin: 0; font-size: 11px; letter-spacing: .14em; }

/* Edition tag (only rendered when the data says so) */
.edition-tag { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--ivory); }
.edition-tag i { width: 18px; height: 1px; background: var(--crimson-glow); box-shadow: 0 0 6px var(--crimson-glow); }

/* Detail panel */
#detail { position: fixed; top: 0; right: 0; bottom: 0; z-index: 30; width: min(560px, 46vw); background: linear-gradient(180deg, rgba(10,10,10,.94), rgba(5,5,5,.97)); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-left: 1px solid var(--line); transform: translateX(102%); transition: transform 1.1s var(--ease); visibility: hidden; }
#detail.open { transform: none; visibility: visible; }
#detail .panel-close { position: absolute; top: calc(22px + env(safe-area-inset-top)); right: var(--gut); z-index: 2; }
.detail-inner { height: 100%; overflow-y: auto; padding: calc(70px + env(safe-area-inset-top)) clamp(22px, 3vw, 44px) 48px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #333 transparent; }
.media-stage { position: relative; aspect-ratio: 1 / 1; background: radial-gradient(ellipse at 50% 42%, #242321 0%, #0b0b0b 62%, #070707 100%); display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); touch-action: pan-y; }
.media-stage.studio { background: #d8d6d2; }
.media-main { width: 92%; height: 92%; object-fit: contain; transition: opacity .6s var(--ease), transform .9s var(--ease); filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)); user-select: none; -webkit-user-drag: none; }
.media-stage.studio .media-main { width: 100%; height: 100%; object-fit: cover; filter: none; }
.media-main.swap { opacity: 0; transform: scale(.98); }
.media-count { position: absolute; left: 14px; bottom: 12px; font-size: 10px; letter-spacing: .3em; color: var(--mute); }
.media-stage.studio .media-count { color: rgba(0,0,0,.5); }
.media-controls { display: flex; gap: 18px; align-items: center; margin-top: 14px; }
.media-controls .media-mode { margin-left: auto; }
.media-controls .media-prev, .media-controls .media-next { font-size: 16px; letter-spacing: 0; padding: 4px; }
.media-thumbs { display: flex; gap: 8px; margin-top: 12px; }
.media-thumbs button { width: 58px; aspect-ratio: 1; border: 1px solid var(--line); opacity: .5; transition: opacity .4s, border-color .4s; overflow: hidden; }
.media-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.media-thumbs button.active { opacity: 1; border-color: var(--ivory-dim); }
.detail-info { padding-top: 34px; }
.detail-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3vw, 44px); line-height: 1.06; }
.detail-price { margin: 12px 0 0; font-size: 13px; letter-spacing: .2em; }
.detail-desc { margin: 22px 0 0; color: var(--ivory-dim); font-size: 14px; line-height: 1.75; }
.detail-list { margin: 18px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.detail-list li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--ivory-dim); }
.detail-row { margin-top: 24px; }
.detail-row .label { display: block; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.detail-row p { margin: 0; font-size: 13px; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.sizes button { min-width: 48px; height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); font-size: 12px; letter-spacing: .1em; transition: border-color .3s, background .3s; }
.sizes button.active { border-color: var(--ivory); background: rgba(236,228,214,.08); }
.sizes button:disabled { opacity: .3; text-decoration: line-through; cursor: not-allowed; }
.swatches { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; }
.swatches span { display: inline-flex; align-items: center; gap: 8px; }
.swatches i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line-strong); }
.detail-info .cta { margin-top: 30px; width: 100%; }
.cta-note { margin: 10px 0 0; font-size: 11px; letter-spacing: .1em; min-height: 1em; }
.pending-note { margin: 30px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ivory-dim); line-height: 1.4; }

/* Bag */
#bag { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.5); opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s; }
#bag.open { opacity: 1; visibility: visible; }
.bag-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #070707; border-left: 1px solid var(--line); display: flex; flex-direction: column; padding: calc(24px + env(safe-area-inset-top)) var(--gut) calc(24px + env(safe-area-inset-bottom)); transform: translateX(100%); transition: transform .9s var(--ease); }
#bag.open .bag-panel { transform: none; }
.bag-head { display: flex; justify-content: space-between; align-items: baseline; }
.bag-body { flex: 1; overflow-y: auto; padding-top: 24px; }
.bag-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.bag-line img { width: 64px; height: 64px; object-fit: cover; }
.bag-line p { margin: 0; font-size: 12px; }
.bag-name { font-family: var(--serif); font-size: 18px !important; }
.bag-foot { border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 12px; }
.bag-total { margin: 0; font-size: 13px; letter-spacing: .2em; text-align: right; min-height: 1em; }

/* Fallback */
#fallback { display: none; }
.no-webgl #fallback { display: block; position: relative; z-index: 3; padding: 80px var(--gut); background: var(--black); }
.no-webgl #gallery, .no-webgl #labels, .no-webgl #stage, .no-webgl .vault { display: none; }
.fallback-list { display: flex; gap: 14px; overflow-x: auto; }
.fallback-item { flex: 0 0 200px; text-align: left; display: grid; gap: 6px; background: rgba(5,5,5,.7); border: 1px solid var(--line); padding: 10px; }
.fallback-item img { aspect-ratio: 1; object-fit: cover; }
.fallback-item span { font-family: var(--serif); font-size: 18px; }
.fallback-item em { font-style: normal; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--mute); }

@media (max-width: 980px) {
  .tenets { grid-template-columns: 1fr 1fr; }
  .tenets li:nth-child(3) { padding-left: 0; border-left: 0; }
  .tenets li:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 10px; }
  .nav-wide { display: none; }
}

/* Mobile */
@media (max-width: 760px) {
  .wordmark { font-size: 13px; letter-spacing: .32em; }
  .hud nav { gap: 14px; }
  #film { height: 760vh; }
  .fo-mark { font-size: clamp(30px, 10vw, 46px); white-space: normal; max-width: 9ch; line-height: 1.05; }
  .film-title { bottom: calc(80px + env(safe-area-inset-bottom)); right: var(--gut); }
  .ft-name { font-size: clamp(42px, 13vw, 60px); }
  .ft-note { font-size: 12.5px; }
  .film-chapter, .film-chapter.left, .film-chapter.right { top: auto; left: var(--gut); right: var(--gut); width: auto; bottom: calc(66px + env(safe-area-inset-bottom));
    transform: translate3d(0, calc((1 - var(--k)) * 30px), 0); padding: 18px 20px 20px; }
  .film-sheet { top: 0; left: var(--gut); right: var(--gut); width: auto; bottom: auto;
    transform: translate3d(0, calc((1 - var(--k)) * 30px + var(--sy, 42vh)), 0); padding: 20px 18px; background: rgba(5,5,5,.86); }
  .fs-name { font-size: 32px; }
  .fs-details { gap: 6px 14px; margin-top: 14px; }
  .fs-details li { font-size: 11px; }
  .fs-rows { margin-top: 14px; }
  .fs-actions { margin-top: 16px; gap: 16px; }
  .fs-rows div { grid-template-columns: 92px 1fr; padding: 7px 0; }
  .fh-rail { display: none; }
  .fh-tc .fh-label { display: none; }
  .tenets { grid-template-columns: 1fr; }
  .tenets li, .tenets li + li { padding: 24px 0 18px; border-left: 0; margin-top: 0; }
  .tenets li + li { border-top: 1px solid var(--line); }
  .vault { height: 340vh; }
  .vault-head { top: calc(76px + env(safe-area-inset-top)); right: var(--gut); }
  .vault-title { font-size: 30px; }
  .beat-mark { font-size: clamp(26px, 9vw, 44px); letter-spacing: .22em; }
  .beat-line { bottom: 14vh; left: var(--gut) !important; right: var(--gut) !important; text-align: left !important; }
  .beat-line .eyebrow { justify-content: flex-start !important; }
  .rail-label { font-size: 9px; letter-spacing: .2em; }
  .rail-label .c { display: none; }
  .rail-title { top: calc(60px + env(safe-area-inset-top)); right: var(--gut); }
  .rail-title .num { font-size: 20px; }
  .rail-back { top: calc(64px + env(safe-area-inset-top)); }
  .rail-bottom { grid-template-columns: 1fr auto; gap: 16px; }
  .rail-view { grid-column: 1 / -1; width: 100%; }
  #detail { top: auto; width: 100%; height: 62vh; height: 62svh; border-left: 0; border-top: 1px solid var(--line); transform: translateY(102%); }
  .detail-inner { padding-top: 54px; }
  #detail .panel-close { top: 16px; }
  .media-stage { aspect-ratio: 1 / 1; }
}
@media (prefers-reduced-motion: reduce) {
  #grain { animation: none; }
  .concept-title .ln, .concept-lead, .tenets li, .vault-head, .cta::before, #detail, .bag-panel { transition-duration: .01s !important; transition-delay: 0s !important; }
  .film-hint::after { animation: none; }
}

/* ── Language toggle ───────────────────────────────────────────────────── */
.lang-toggle { display: inline-flex; align-items: center; gap: 9px; padding: 4px 0 4px 2px; }
.lang-toggle i { font-style: normal; transition: color .4s, opacity .4s; opacity: .45; }
.lang-toggle .lt-ar { font-family: "Noto Kufi Arabic", sans-serif; font-size: 12px; letter-spacing: 0; text-transform: none; }
.lang-toggle em { width: 1px; height: 12px; background: var(--line-strong); }
html[lang="en"] .lang-toggle .lt-en, html[lang="ar"] .lang-toggle .lt-ar { opacity: 1; color: var(--ivory); }
.hud-btn b { font-weight: inherit; }
/* language change: one soft fade of the interface */
main, section, footer, .hud nav, #labels, #rail-ui, #detail .detail-inner, .bag-panel { transition: opacity .38s var(--ease); }
.lang-out :is(main, section, footer, .hud nav, #labels, #rail-ui, #detail .detail-inner, .bag-panel) { opacity: 0 !important; }

/* ── Arabic ────────────────────────────────────────────────────────────── */
/* Arabic letters must join: no tracking, no capitals. Latin brand marks keep theirs. */
html[lang="ar"] body :not(.wordmark, .wordmark *, .loader-mark, .loader-mark *, .foot-mark, .foot-mark *, .beat-mark, .lat, .num, .fh-frame, .fh-frame *, .fh-time, .ll-lot, .fc-num > .n, .tenets .n, .lt-en) { letter-spacing: 0 !important; text-transform: none !important; }
html[lang="ar"] body { font-family: "IBM Plex Sans Arabic", "Manrope", sans-serif; line-height: 1.85; }
html[lang="ar"] .lat, html[lang="ar"] .wordmark, html[lang="ar"] .loader-mark, html[lang="ar"] .foot-mark, html[lang="ar"] .beat-mark { font-family: var(--latin); }
html[lang="ar"] em { font-family: var(--ar-em); font-style: normal; }

/* display headings: thin Kufi, slightly smaller than the Latin serif (Arabic reads larger) */
html[lang="ar"] :is(.fo-mark, .ft-name, .concept-title, .vault-title, .fs-name, .film-ph-title, .detail-title, .beat-text, .fc-title, .tenets h3, .cap-name, .bag-name, .featured-title) { font-family: "Noto Kufi Arabic", var(--latin); font-weight: 200; line-height: 1.45; }
html[lang="ar"] .fo-mark { font-size: clamp(36px, 5.2vw, 84px); font-weight: 200; }
html[lang="ar"] .ft-name { font-size: clamp(40px, 5.2vw, 84px); line-height: 1.3; }
html[lang="ar"] .concept-title { font-size: clamp(40px, 6vw, 96px); line-height: 1.3; max-width: 13ch; }
html[lang="ar"] .concept-title em, html[lang="ar"] .vault-title em, html[lang="ar"] .beat-text em { font-family: var(--ar-em); font-weight: 400; }
html[lang="ar"] .vault-title { font-size: clamp(28px, 3vw, 46px); }
html[lang="ar"] .vault-title em { font-size: .66em; line-height: 1.7; }
html[lang="ar"] .fs-name { font-size: clamp(30px, 3vw, 44px); }
html[lang="ar"] .fc-title { font-size: clamp(22px, 1.9vw, 28px); font-weight: 300; }
html[lang="ar"] .tenets h3 { font-size: clamp(20px, 1.7vw, 25px); font-weight: 300; }
html[lang="ar"] .beat-text { font-size: clamp(24px, 2.6vw, 38px); }
html[lang="ar"] .detail-title { font-size: clamp(28px, 2.6vw, 38px); font-weight: 300; }
html[lang="ar"] :is(.ft-sub, .fs-sub, .film-ph-copy, .pending-note) { font-family: var(--ar-em); font-style: normal; }
html[lang="ar"] .ft-sub { font-size: clamp(22px, 2vw, 30px); }
html[lang="ar"] .fs-rows .tbc dd { font-family: var(--ar-em); font-style: normal; font-size: 15px; }

/* small labels: Arabic needs more size than tracked Latin capitals */
html[lang="ar"] :is(.eyebrow, .hud-btn, .link, .cta, .fc-num, .fs-rows dt, .fh-tc, .film-hint, .vault-note, .ll-name, .ll-meta, .rail-label, .rail-title, .cap-meta, .loader-note, .stage-wait, .detail-row .label, .edition-tag, .fs-count span) { font-size: 12.5px; font-weight: 400; }
html[lang="ar"] .hud-btn { font-size: 13px; }
html[lang="ar"] .eyebrow { font-size: 13px; }
html[lang="ar"] .cta { font-size: 13.5px; }
html[lang="ar"] .vault-note { font-size: 12.5px; }
html[lang="ar"] :is(.concept-lead, .ft-note, .fc-text, .tenets p, .detail-desc, .fs-details li, .fs-rows dd, .detail-list li) { font-size: 1.08em; line-height: 1.9; }
html[lang="ar"] .concept-lead { font-size: 16.5px; }

/* right-to-left layout */
html[dir="rtl"] .film-title { left: auto; right: var(--gut); }
html[dir="rtl"] .fh-tc { left: auto; right: var(--gut); flex-direction: row-reverse; }
html[dir="rtl"] .fh-frame { right: auto; left: var(--gut); }
html[dir="rtl"] .fh-rail { right: auto; left: calc(var(--gut) - 10px); }
html[dir="rtl"] .vault-head { left: auto; right: var(--gut); }
html[dir="rtl"] .tenets li { padding: 28px 0 10px 26px; }
html[dir="rtl"] .tenets li + li { padding-left: 26px; padding-right: 26px; border-left: 0; border-right: 1px solid var(--line); }
html[dir="rtl"] .tenets li::before { left: auto; right: 0; }
html[dir="rtl"] .film-chapter::before { left: auto; right: -1px; }
html[dir="rtl"] .rail-back { left: auto; right: var(--gut); }
html[dir="rtl"] .rail-title { right: auto; left: var(--gut); }
html[dir="rtl"] .rail-switch { justify-self: start; }
html[dir="rtl"] .arw { display: inline-block; transform: scaleX(-1); }
html[dir="rtl"] .fs-rows div { grid-template-columns: 96px 1fr; }
html[dir="rtl"] .beat-line.left .eyebrow { justify-content: flex-start; }
html[dir="rtl"] .beat-line.right { text-align: left; }
html[dir="rtl"] .beat-line.right .eyebrow { justify-content: flex-end; }
html[dir="rtl"] .cta::before { transform-origin: right; }
html[dir="rtl"] #detail { right: auto; left: 0; border-left: 0; border-right: 1px solid var(--line); transform: translateX(-102%); }
html[dir="rtl"] #detail.open { transform: none; }
html[dir="rtl"] #detail .panel-close { right: auto; left: var(--gut); }
html[dir="rtl"] .bag-panel { right: auto; left: 0; border-left: 0; border-right: 1px solid var(--line); transform: translateX(-100%); }
html[dir="rtl"] #bag.open .bag-panel { transform: none; }
html[dir="rtl"] .media-controls .media-mode { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .bag-total { text-align: left; }
html[dir="rtl"] .media-count { left: auto; right: 14px; }
@media (max-width: 980px) {
  html[dir="rtl"] .tenets li:nth-child(3) { padding-right: 0; border-right: 0; }
}
@media (max-width: 760px) {
  html[dir="rtl"] .tenets li, html[dir="rtl"] .tenets li + li { padding: 24px 0 18px; border-right: 0; }
  html[dir="rtl"] .film-title { left: var(--gut); }
  html[dir="rtl"] .film-sheet { right: var(--gut); left: var(--gut); }
  html[dir="rtl"] .vault-head { left: var(--gut); }
  html[dir="rtl"] #detail { transform: translateY(102%); border-right: 0; }
  html[dir="rtl"] #detail.open { transform: none; }
  html[lang="ar"] .fo-mark { font-size: clamp(34px, 11vw, 48px); }
  html[lang="ar"] .ft-name { font-size: clamp(36px, 11vw, 52px); }
  html[lang="ar"] .hud-btn { font-size: 12px; }
  .lang-toggle { gap: 7px; }
}

/* narrow phones: compact header */
@media (max-width: 430px) {
  .wordmark { font-size: 12px; letter-spacing: .26em; }
  .hud nav { gap: 12px; }
  #btn-sound b { display: none; }
  #btn-sound span { margin-left: 0; }
  #btn-sound span::before { content: "♪ "; color: var(--ivory-dim); }
  html[lang="ar"] .hud-btn { font-size: 11.5px; }
  /* with the world switch in the header, sound becomes a single note (dim = off) */
  #btn-sound span { font-size: 0; }
  #btn-sound span::before { content: "♪"; font-size: 14px; color: var(--ivory); opacity: .4; }
  #btn-sound[aria-pressed="true"] span::before { opacity: 1; }
  .wordmark { font-size: 11px; letter-spacing: .22em; }
  .hud nav { gap: 11px; }
}

/* ── Choose your world ─────────────────────────────────────────────────── */
#gate { display: none; position: fixed; inset: 0; z-index: 60; background: #050304; overflow: hidden; }
html.gate-open #gate, #gate.gone { display: flex; }
html.gate-open, html.gate-open body { overflow: hidden; }
html.gate-open .fo-mark span { animation-play-state: paused; }
#gate.gone { opacity: 0; pointer-events: none; transition: opacity 1.3s var(--ease); }
#gate::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(226,189,132,.55) 30%, rgba(226,189,132,.55) 70%, transparent); transform: scaleY(0); animation: gateSeam 1.8s var(--ease) .4s forwards; transition: opacity .6s; }
#gate.chosen::after { opacity: 0; }
@keyframes gateSeam { to { transform: scaleY(1); } }
.gate-pick { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; display: flex; align-items: flex-end; text-align: start;
  padding: 0 clamp(24px, 5vw, 80px) clamp(40px, 9vh, 96px); transition: flex-grow 1.2s var(--ease); color: #f2e9df; }
.gate-pick:hover, .gate-pick:focus-visible { flex-grow: 1.32; }
.gate-pick:focus-visible { outline: none; }
.gp-bg { position: absolute; inset: -3%; background-size: cover; background-position: center; transform: scale(1.1); opacity: 0;
  animation: gateBg 2.4s var(--ease) .1s forwards; transition: transform 2.6s var(--ease), filter 1.2s var(--ease); }
.gate-women .gp-bg { animation-delay: .35s; }
@keyframes gateBg { to { opacity: 1; transform: scale(1.04); } }
.gate-men .gp-bg { background-image: linear-gradient(180deg, rgba(4,4,4,.5), rgba(4,4,4,.15) 40%, rgba(4,4,4,.9)), url("../assets/featured/frames/f_0125.webp"); filter: grayscale(.35) brightness(.62) contrast(1.05); }
.gate-women .gp-bg { background-image: linear-gradient(180deg, rgba(18,3,9,.45), rgba(18,3,9,.05) 40%, rgba(14,2,7,.9)), url("../assets/women/textures/damask-top.jpg"); filter: brightness(.8) saturate(1.05); }
.gate-pick:hover .gp-bg, .gate-pick:focus-visible .gp-bg { transform: scale(1); filter: grayscale(.1) brightness(.85); }
.gate-women:hover .gp-bg, .gate-women:focus-visible .gp-bg { filter: brightness(1) saturate(1.1); }
.gp-text { position: relative; z-index: 2; display: grid; gap: 10px; justify-items: start; opacity: 0; transform: translateY(24px); animation: gateText 1.6s var(--ease) 1s forwards; }
.gate-women .gp-text { animation-delay: 1.2s; }
@keyframes gateText { to { opacity: 1; transform: none; } }
.gp-k { font-family: var(--latin); font-size: 15px; letter-spacing: .3em; color: rgba(226,189,132,.9); }
.gp-name { font-family: var(--latin); font-weight: 300; font-size: clamp(54px, 8.4vw, 132px); line-height: .9; letter-spacing: .14em; text-transform: uppercase; }
.gate-women .gp-name { font-family: "Bodoni Moda", var(--latin); font-style: italic; font-weight: 400; letter-spacing: .02em; text-transform: none; }
.gp-sub { font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: rgba(242,233,223,.62); max-width: 34ch; line-height: 1.8; }
.gp-go { margin-top: 14px; display: inline-flex; gap: 12px; align-items: center; font-size: 10.5px; letter-spacing: .34em; text-transform: uppercase; padding-bottom: 8px; border-bottom: 1px solid rgba(242,233,223,.3); transition: border-color .5s, gap .6s var(--ease); }
.gate-pick:hover .gp-go, .gate-pick:focus-visible .gp-go { border-color: rgba(226,189,132,.9); gap: 20px; }
.gp-go .arw { font-style: normal; }
.gate-center { position: absolute; z-index: 4; left: 50%; top: calc(40px + env(safe-area-inset-top)); transform: translateX(-50%); display: grid; justify-items: center; gap: 12px; pointer-events: none; text-align: center;
  opacity: 0; animation: gateText 1.6s var(--ease) .2s forwards; transition: opacity .6s; }
.gate-mark { margin: 0 0 0 .5em; font-family: var(--latin); font-size: clamp(15px, 1.5vw, 20px); letter-spacing: .5em; color: #f4ece2; white-space: nowrap; }
.gate-rule { width: 64px; height: 1px; background: rgba(226,189,132,.7); }
.gate-maison { margin: 0; font-family: var(--latin); font-style: italic; font-size: 14px; letter-spacing: .3em; color: rgba(244,236,226,.7); }
.gate-title { position: absolute; z-index: 4; left: 50%; top: 46%; transform: translate(-50%, -50%); margin: 0; pointer-events: none; white-space: nowrap;
  font-family: var(--latin); font-weight: 300; font-size: clamp(13px, 1.25vw, 17px); letter-spacing: .62em; text-transform: uppercase; color: #f4ece2;
  padding: 16px 26px 16px 34px; background: rgba(8,3,5,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(226,189,132,.28);
  opacity: 0; animation: gateTitle 1.8s var(--ease) .7s forwards; transition: opacity .5s; }
@keyframes gateTitle { from { opacity: 0; letter-spacing: 1em; } to { opacity: 1; letter-spacing: .62em; } }
#gate.chosen .gate-title, #gate.chosen .gate-center { opacity: 0 !important; animation: none; }
#gate.chose-women .gate-women, #gate.chose-men .gate-men { flex-grow: 40; }
#gate.chose-women .gate-men, #gate.chose-men .gate-women { flex-grow: .0001; }
#gate.chosen .gate-pick { transition-duration: 1.1s; }
#gate.chosen .gp-text { opacity: 0 !important; transition: opacity .5s; animation: none; }
.gate-curtain { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0; transition: opacity .75s var(--ease);
  background: radial-gradient(ellipse at 50% 50%, #3a0a17 0%, #12040a 70%); }
#gate.curtain .gate-curtain { opacity: 1; }
html[lang="ar"] .gate-title { font-family: "Noto Kufi Arabic", var(--latin); font-weight: 300; font-size: clamp(16px, 1.5vw, 21px); padding: 14px 30px; letter-spacing: 0 !important; animation-name: gateFade; transform: translate(-50%, -50%); }
@keyframes gateFade { from { opacity: 0; } to { opacity: 1; } }
html[lang="ar"] .gp-name { font-family: "Noto Kufi Arabic", var(--latin); font-weight: 200; letter-spacing: 0; font-style: normal; font-size: clamp(50px, 7vw, 108px); line-height: 1.2; }
html[lang="ar"] .gate-women .gp-name { font-family: var(--ar-em); font-weight: 400; }
html[lang="ar"] :is(.gp-sub, .gp-go) { font-size: 13px; }
html[lang="ar"] .gate-maison { font-family: var(--ar-em); font-style: normal; font-size: 17px; }
@media (max-width: 760px), (max-aspect-ratio: 4/5) {
  #gate { flex-direction: column; }
  #gate::after { top: 50%; bottom: auto; left: 0; right: 0; width: auto; height: 1px; transform: scaleX(0);
    background: linear-gradient(90deg, transparent, rgba(226,189,132,.55) 25%, rgba(226,189,132,.55) 75%, transparent); animation-name: gateSeamX; }
  @keyframes gateSeamX { to { transform: scaleX(1); } }
  .gate-pick { padding: 0 var(--gut) 34px; align-items: flex-end; }
  .gate-men { padding-top: calc(110px + env(safe-area-inset-top)); }
  .gate-women { padding-bottom: calc(34px + env(safe-area-inset-bottom)); }
  .gate-pick:hover, .gate-pick:focus-visible { flex-grow: 1.12; }
  .gp-name { font-size: clamp(44px, 14vw, 70px); }
  .gp-sub { font-size: 9px; letter-spacing: .26em; }
  .gp-go { margin-top: 6px; }
  .gate-title { top: 50%; font-size: 11px; letter-spacing: .5em; padding: 12px 18px 12px 24px; }
  @keyframes gateTitle { from { opacity: 0; } to { opacity: 1; } }
  .gate-center { top: calc(22px + env(safe-area-inset-top)); }
  .gate-mark { font-size: 14px; letter-spacing: .44em; }
}

/* world switch in the header + the fade when moving between worlds */
.world-btn { position: relative; padding-bottom: 3px; }
.world-btn::after { content: ""; position: absolute; left: 0; right: .26em; bottom: -2px; height: 1px; background: var(--brass); opacity: .7; transform: scaleX(.4); transform-origin: left; transition: transform .6s var(--ease); }
.world-btn:hover::after { transform: scaleX(1); }
html[dir="rtl"] .world-btn::after { transform-origin: right; right: 0; }
body::before { content: ""; position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease); background: #12040a; }
body.world-out.to-men::before { background: #030303; }
body.world-out::before { opacity: 1; }
.foot-world { align-self: center; }
