/* Madreen Al Maktoumi · v4 · black and gold, alive. Motion lives in motion.js. */
:root {
  --bg: #000;
  --bg-2: #0b0b0b;
  --gold: #d4af37;
  --gold-soft: #f0d27a;
  --gold-dim: rgba(212, 175, 55, .6);
  --hair: rgba(212, 175, 55, .22);
  --foil: linear-gradient(115deg, #9a7a23 0%, #d4af37 22%, #f6e39b 40%, #d4af37 55%, #a8862a 78%, #e8c860 100%);
  --text: #fff;
  --soft: rgba(255, 255, 255, .74);
  --muted: rgba(255, 255, 255, .5);
  --ar: "Alexandria", "Segoe UI", system-ui, sans-serif;
  --en: "Jost", "Segoe UI", system-ui, sans-serif;
  --num: "Marcellus", Georgia, serif;
  --maxw: 1200px;
  --g: clamp(20px, 5vw, 56px);
  --hdr: 84px;
  color-scheme: dark;
}
html[lang="ar"] { --ff: var(--ar); --fd: var(--ar); }
html[lang="en"] { --ff: var(--en); --fd: var(--num); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 18px/1.95 var(--ff); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
html[lang="en"] body { font-size: 19px; line-height: 1.7; font-weight: 300; }
body.lock { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--g); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.skip { position: absolute; top: -80px; inset-inline-start: 16px; background: var(--gold); color: var(--bg); padding: 10px 16px; z-index: 200; }
.skip:focus { top: 16px; }

.label { font-size: 15px; font-weight: 400; color: var(--gold); letter-spacing: 0; }
html[lang="en"] .label { font-size: 13px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
.soft { color: var(--soft); }
.small { font-size: 15px; }

/* ---------- header ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 2px; background: var(--foil); z-index: 60; transform-origin: 100% 50%; transform: scaleX(0); pointer-events: none; }
html[dir="ltr"] .progress { transform-origin: 0 50%; }
html:not(.motion) .progress { transform: none; }
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
main, .foot { position: relative; z-index: 1; }
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hdr); transition: background .4s, height .4s, border-color .4s; border-bottom: 1px solid transparent; }
body.scrolled .hdr, body:not(.is-home) .hdr { background: rgba(0, 0, 0, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--hair); }
body.scrolled .hdr { height: 70px; }
.hdr-in { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.where { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: inline-flex; align-items: baseline; gap: 10px; min-height: 44px; align-items: center; color: var(--soft); white-space: nowrap; transition: color .3s; }
.where .w-n { font: 400 15px/1 var(--num); color: var(--gold); }
.where .w-s { font: 400 12px/1 var(--num); color: var(--muted); }
.where .w-t { font-size: 15px; padding-inline-start: 12px; margin-inline-start: 2px; border-inline-start: 1px solid var(--hair); line-height: 1.2; }
html[lang="en"] .where .w-t { font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; }
.where:hover { color: var(--text); }
.mark { display: inline-flex; align-items: center; gap: 14px; color: var(--text); }
.mono { width: 44px; height: 44px; flex: none; }
.mono circle { fill: none; stroke: var(--gold); stroke-width: .9; }
.mono circle + circle { stroke-width: .5; opacity: .7; }
.mono text { fill: var(--gold); font: 400 22px var(--num); }
#markName { font: 300 21px/1 var(--fd); white-space: nowrap; }
html[lang="en"] #markName { font-size: 19px; letter-spacing: .08em; text-transform: uppercase; }
.hdr-end { display: flex; align-items: center; gap: 22px; }
.lang { font: 400 14px/1 var(--en); letter-spacing: .14em; color: var(--soft); min-width: 44px; min-height: 44px; transition: color .3s; }
html[lang="en"] .lang { font-family: var(--ar); letter-spacing: 0; font-size: 15px; }
.lang:hover { color: var(--gold); }
.menu-btn { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; color: var(--text); font-size: 15.5px; }
html[lang="en"] .menu-btn { font-size: 13px; letter-spacing: .24em; text-transform: uppercase; font-weight: 500; }
.menu-i { position: relative; width: 30px; height: 12px; }
.menu-i i { position: absolute; inset-inline: 0; height: 1px; background: var(--gold); transition: inset .35s; }
.menu-i i:first-child { top: 0; } .menu-i i:last-child { bottom: 0; inset-inline-start: 10px; }
.menu-btn:hover .menu-i i:last-child { inset-inline-start: 0; }
.menu-btn:hover .menu-l { color: var(--gold-soft); }

/* full-screen menu */
.drawer { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .8); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s; overflow-y: auto; }
.drawer[hidden] { display: none; }
.drawer.open { opacity: 1; visibility: visible; transition: opacity .45s ease; }
.drawer::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--foil); }
.drawer-top { width: 100%; display: flex; justify-content: space-between; align-items: center; min-height: var(--hdr); border-bottom: 1px solid var(--hair); }
.drawer-name { font: 300 21px/1 var(--fd); color: var(--gold); }
.drawer-x { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; font-size: 15.5px; color: var(--text); }
html[lang="en"] .drawer-x { font-size: 13px; letter-spacing: .24em; text-transform: uppercase; }
.drawer-x .x { position: relative; width: 22px; height: 22px; }
.drawer-x .x i { position: absolute; top: 50%; inset-inline: 0; height: 1px; background: var(--gold); }
.drawer-x .x i:first-child { transform: rotate(45deg); } .drawer-x .x i:last-child { transform: rotate(-45deg); }
.drawer-body { width: 100%; flex: 1; display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; padding-block: clamp(30px, 5vh, 60px); }
.drawer-nav { display: flex; flex-direction: column; }
.drawer-nav a { display: flex; align-items: baseline; gap: 26px; padding: clamp(4px, .9vh, 10px) 0; color: var(--text); opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .6s, color .3s; }
.drawer.open .drawer-nav a { opacity: 1; transform: none; }
.drawer.open .drawer-nav a:nth-child(2) { transition-delay: .04s; } .drawer.open .drawer-nav a:nth-child(3) { transition-delay: .08s; }
.drawer.open .drawer-nav a:nth-child(4) { transition-delay: .12s; } .drawer.open .drawer-nav a:nth-child(5) { transition-delay: .16s; }
.drawer.open .drawer-nav a:nth-child(6) { transition-delay: .2s; } .drawer.open .drawer-nav a:nth-child(7) { transition-delay: .24s; }
.drawer.open .drawer-nav a:nth-child(8) { transition-delay: .28s; } .drawer.open .drawer-nav a:nth-child(9) { transition-delay: .32s; }
.dn { font: 400 15px/1 var(--num); color: var(--gold); min-width: 28px; }
.dt { font: 200 clamp(30px, 4.6vh, 50px)/1.25 var(--fd); transition: color .3s, transform .4s; }
html[lang="en"] .dt { font-weight: 400; }
.drawer-nav a:hover .dt, .drawer-nav a[aria-current] .dt { color: var(--gold); }
.drawer-nav a:hover .dt { transform: translateX(-8px); }
html[lang="en"] .drawer-nav a:hover .dt { transform: translateX(8px); }
.drawer-side { display: flex; flex-direction: column; gap: 10px; border-inline-start: 1px solid var(--hair); padding-inline-start: clamp(30px, 4vw, 60px); }
.drawer-side img { width: 100%; max-width: 300px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; margin-bottom: 18px; }
.drawer-side a { color: var(--soft); font-size: 17px; width: fit-content; transition: color .3s; }
.drawer-side a:hover { color: var(--gold); }
.drawer-side .label { margin-bottom: 6px; }

/* ---------- buttons / links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 34px; background: var(--gold); color: #000; font-size: 16px; font-weight: 500; transition: background .3s, color .3s, border-color .3s; }
.btn:hover { background: var(--gold-soft); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid rgba(242, 237, 227, .28); }
.btn-ghost:hover { background: transparent; border-color: var(--gold); color: var(--gold-soft); }
.more { display: inline-flex; align-items: center; gap: 12px; color: var(--gold-soft); font-size: 16px; padding: 6px 0; }
.more .arr { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.2; transition: transform .3s; }
html[dir="rtl"] .more .arr { transform: scaleX(-1); }
.more:hover .arr { transform: translateX(5px); }
html[dir="rtl"] .more:hover .arr { transform: scaleX(-1) translateX(5px); }
.cert { font-size: 14.5px; color: var(--gold-soft); border-bottom: 1px solid var(--gold-dim); padding: 4px 0; transition: color .3s, border-color .3s; }
.cert:hover { color: var(--text); border-color: var(--text); }

/* ---------- home ---------- */
.hero { position: relative; min-height: min(100vh, 1000px); display: flex; align-items: center; overflow: hidden; }
.hero-stage { position: absolute; inset-block: 0; inset-inline-end: 0; width: 54%; pointer-events: none; }
.hero-glow { position: absolute; left: 50%; top: 46%; width: 115%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(236, 196, 92, .42), rgba(212, 175, 55, .16) 42%, rgba(212, 175, 55, .05) 66%, rgba(0, 0, 0, 0) 100%); }
.halo { position: absolute; left: 50%; top: 38%; width: min(74%, 620px); translate: -50% -50%; overflow: visible; animation: spin 90s linear infinite; }
.halo circle { fill: none; stroke: var(--gold); stroke-width: .8; opacity: .55; }
.halo circle + circle { stroke-width: .5; opacity: .35; }
@keyframes spin { to { rotate: 360deg; } }
.hero-cut { position: absolute; bottom: 0; left: 50%; translate: -50% 0; width: auto; height: 82%; max-width: none;
  -webkit-mask-image: linear-gradient(to top, transparent 0, #000 24%), linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to top, transparent 0, #000 24%), linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%); mask-composite: intersect;
}
.hero-in { position: relative; width: 100%; padding-top: var(--hdr); }
.hero-text { max-width: 560px; }
.hero-name { margin: 22px 0 14px; font: 200 clamp(54px, 8vw, 112px)/1.12 var(--fd); padding-bottom: .08em; }
.hero-name, .hero-name .wi { background: var(--foil); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.motion .hero-name { background: none; }
.hero-name .wi { animation: sheen 7s ease-in-out infinite; animation-delay: calc(3s + var(--i) * .18s); }
@keyframes sheen { 0%, 60% { background-position: 100% 0; } 100% { background-position: -150% 0; } }
html[lang="en"] .hero-name { font-weight: 400; line-height: 1.04; letter-spacing: .01em; font-size: clamp(50px, 6.4vw, 96px); }
html[lang="en"] .hero-text { max-width: 620px; }
.hero-text .btn { text-shadow: none; }
.hero-role { font-size: clamp(19px, 1.8vw, 23px); color: var(--soft); font-weight: 300; }
.line { display: block; width: 64px; height: 1px; background: var(--gold); margin: 34px 0; transform-origin: 100% 50%; }
html[dir="ltr"] .line { transform-origin: 0 50%; }
.hero-deck { color: var(--soft); font-size: 18px; max-width: 520px; }
.hero-text { text-shadow: 0 0 22px #000, 0 0 6px #000; }
.hero-name { text-shadow: none; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }

.statement { padding-block: clamp(110px, 16vw, 200px); text-align: center; }
.statement-q { max-width: 980px; margin-inline: auto; font: 200 clamp(32px, 4.6vw, 60px)/1.6 var(--fd); color: var(--text); }
html[lang="en"] .statement-q { font-weight: 400; line-height: 1.25; }

.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding-bottom: clamp(110px, 14vw, 180px); }
.fig b { direction: ltr; unicode-bidi: isolate; display: inline-block; font: 400 clamp(56px, 6vw, 88px)/1.1 var(--num); background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fig { position: relative; padding-top: 30px; }
.fig::before, .h2-row::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 1px; background: linear-gradient(90deg, var(--gold-dim), var(--hair)); transform: scaleX(var(--draw, 1)); transform-origin: 100% 50%; }
html[dir="rtl"] .fig::before, html[dir="rtl"] .h2-row::before { background: linear-gradient(270deg, var(--gold-dim), var(--hair)); }
html[dir="ltr"] .fig::before, html[dir="ltr"] .h2-row::before { transform-origin: 0 50%; }
.motion .fig, .motion .h2-row { --draw: 0; }
.fig span { display: block; margin-top: 18px; font-size: 16px; line-height: 1.7; color: var(--soft); max-width: 220px; }

.features { display: grid; gap: clamp(90px, 12vw, 160px); padding-bottom: clamp(110px, 14vw, 180px); }
.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.feature:nth-child(even) .feature-img { order: 2; }
.feature-img { display: block; overflow: hidden; aspect-ratio: 5 / 4; position: relative; }
.feature-img::after { content: ""; position: absolute; z-index: 2; inset: 16px; border: 1px solid rgba(212, 175, 55, .45); pointer-events: none; transition: inset .6s; }
.feature:hover .feature-img::after { inset: 24px; }
.feature-img img { position: absolute; left: 0; top: -7%; width: 100%; height: 114%; object-fit: cover; filter: brightness(.86) saturate(.95); transition: filter 1s ease; }
.feature:hover .feature-img img { filter: brightness(1.02) saturate(1.05); }
.feature-img::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(0deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0) 45%); }
.feature-t { margin: 18px 0 18px; font: 300 clamp(28px, 3vw, 42px)/1.5 var(--fd); }
html[lang="en"] .feature-t { font-weight: 400; line-height: 1.2; }
.feature-d { color: var(--soft); margin-bottom: 26px; }

.invite { border-top: 1px solid var(--hair); }
.invite-in { padding-block: clamp(80px, 10vw, 130px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; }
.invite-t { font: 200 clamp(26px, 3vw, 40px)/1.5 var(--fd); max-width: 720px; }
html[lang="en"] .invite-t { font-weight: 400; line-height: 1.25; }

/* ---------- inner pages ---------- */
.page:not(.page-home) { padding-top: calc(var(--hdr) + clamp(60px, 9vw, 120px)); padding-bottom: clamp(80px, 10vw, 140px); }
.phead { max-width: 960px; margin-bottom: clamp(70px, 9vw, 120px); }
.ptitle { margin: 18px 0 26px; font: 200 clamp(42px, 6vw, 82px)/1.3 var(--fd); }
html[lang="en"] .ptitle { font-weight: 400; line-height: 1.08; }
.page-thesis .ptitle { font-size: clamp(34px, 4.6vw, 62px); line-height: 1.45; }
html[lang="en"] .page-thesis .ptitle { line-height: 1.12; }
.pdeck { font-size: clamp(18px, 1.6vw, 21px); color: var(--soft); max-width: 760px; font-weight: 300; }
.meta { color: var(--muted); font-size: 16px; margin-top: -80px; margin-bottom: 90px; }

.h2-row { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin: clamp(90px, 11vw, 140px) 0 40px; padding-top: 28px; }
.h2 { margin: 0; font: 300 clamp(26px, 2.6vw, 34px)/1.4 var(--fd); color: var(--text); }
html[lang="en"] .h2 { font-weight: 400; }
.h3 { margin: 0 0 12px; font: 400 21px/1.6 var(--fd); color: var(--text); }
html[lang="en"] .h3 { font-size: 23px; line-height: 1.3; }

.prose { max-width: 760px; }
.prose p + p { margin-top: 1.2em; }
.split { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.side-photo { margin: 0; }
.side-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.side-photo, .book, .m-item, .paper-img { overflow: hidden; }

.pull { margin: clamp(90px, 11vw, 140px) 0 0; padding: 0; max-width: 960px; font: 200 clamp(26px, 3vw, 40px)/1.65 var(--fd); color: var(--text); }
html[lang="en"] .pull { font-weight: 400; line-height: 1.3; }
.pull .label { margin-bottom: 22px; font-family: var(--ff); line-height: 1.4; }

.rows { list-style: none; margin: 0; padding: 0; }
.row { padding: 26px 0; border-bottom: 1px solid var(--hair); }
.row:first-child { border-top: 1px solid var(--hair); }
.row h3 { margin: 0 0 6px; font: 400 21px/1.55 var(--fd); }
html[lang="en"] .row h3 { font-size: 23px; line-height: 1.3; }
.row p { color: var(--soft); font-size: 16.5px; }
.row-ev { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.row-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.date { font: 400 18px/1 var(--num); color: var(--gold); direction: ltr; white-space: nowrap; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4vw, 64px); }
.quad { display: grid; grid-template-columns: repeat(2, 1fr); gap: 50px clamp(40px, 6vw, 90px); }
.interests { margin-top: 50px; color: var(--soft); }
.interests .label { margin-inline-end: 16px; }
.names { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 14px 0; }
.names li { font-size: 19px; padding-inline-end: 22px; margin-inline-end: 22px; border-inline-end: 1px solid var(--hair); }
.names li:last-child { border: 0; }
.names span { color: var(--muted); font-size: 16px; }

.numbered { list-style: none; margin: 0; padding: 0; }
.numbered li { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 20px 0; border-bottom: 1px solid var(--hair); }
.numbered li > span { font: 400 22px/1.7 var(--num); color: var(--gold); }
.numbered-2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 60px; }
.split-stat { grid-template-columns: 1.6fr 1fr; }
.stat-side { position: sticky; top: 120px; }
.stat-side b { display: block; font: 400 clamp(72px, 8vw, 110px)/1 var(--num); color: var(--gold); }
.stat-side span { display: block; margin-top: 20px; color: var(--soft); max-width: 260px; }
.plain { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.plain li { position: relative; padding: 14px 0; padding-inline-start: 34px; color: var(--soft); }
.plain li::before { content: ""; position: absolute; inset-inline-start: 0; top: 1.55em; width: 16px; height: 1px; background: var(--gold); }

.paper { display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: start; }
.paper-img img { width: 120px; aspect-ratio: 910 / 1287; object-fit: cover; opacity: .9; transition: opacity .3s; }
.paper-img:hover img { opacity: 1; }
.ltr-label { direction: ltr; text-align: start; margin-bottom: 10px; }
.paper-t { font-size: 19px; line-height: 1.85; margin-bottom: 6px; }
html[lang="en"] .paper-t { line-height: 1.5; }
.papers .label { font-size: 14.5px; }

.video { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(36px, 5vw, 70px); align-items: center; margin-top: clamp(90px, 11vw, 140px); }
.video-frame video { width: 100%; display: block; aspect-ratio: 16 / 9; background: #000; }
.video-q { margin: 16px 0 18px; font: 300 clamp(22px, 2.2vw, 28px)/1.65 var(--fd); }
html[lang="en"] .video-q { font-weight: 400; line-height: 1.3; }

.model-fig { margin: 0; }
.model { width: 100%; height: auto; font-family: var(--ff); }
.model-v { display: none; max-width: 470px; margin-inline: auto; }
.m-node rect { fill: var(--bg-2); stroke: var(--hair); }
.m-node.is-x rect, .m-node.is-y rect { stroke: var(--gold-dim); }
.m-t { fill: var(--text); font-size: 17px; font-weight: 400; }
.m-r { fill: var(--gold); font-size: 13.5px; }
.m-edge { stroke: var(--gold-dim); stroke-width: 1; }
.m-dash { stroke-dasharray: 5 6; }
.m-arrow { fill: var(--gold); }
.m-lab circle { fill: var(--bg); stroke: var(--gold-dim); }
.m-lab text { fill: var(--gold-soft); font: 400 13px var(--num); }
.model-fig figcaption { margin-top: 26px; text-align: center; font-size: 15px; color: var(--muted); }

.hyp { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 60px; }
.hyp li { display: grid; grid-template-columns: 56px 1fr; padding: 18px 0; border-bottom: 1px solid var(--hair); }
.hyp b { font: 400 21px/1.75 var(--num); color: var(--gold); }
.hyp p { color: var(--soft); }
.steps .step-n { font: 400 40px/1 var(--num); color: var(--gold); margin-bottom: 22px; }
.en-tag { font: 400 15px var(--num); color: var(--muted); margin-inline-start: 8px; }
.method { display: grid; grid-template-columns: 1fr 1fr; column-gap: 60px; margin: 0; }
.method div { padding: 20px 0; border-bottom: 1px solid var(--hair); }
.method dt { color: var(--gold); font-size: 15px; margin-bottom: 6px; }
.method dd { margin: 0; }
.chapters { border-top: 1px solid var(--hair); }
.chap { border-bottom: 1px solid var(--hair); }
.chap summary { display: flex; align-items: baseline; gap: 24px; padding: 24px 0; cursor: pointer; list-style: none; font: 400 21px/1.5 var(--fd); }
html[lang="en"] .chap summary { font-size: 23px; }
.chap summary::-webkit-details-marker { display: none; }
.chap summary::after { content: "+"; margin-inline-start: auto; color: var(--gold); font: 300 26px/1 var(--en); transition: transform .3s; }
.chap[open] summary::after { transform: rotate(45deg); }
.chap-n { font: 400 20px/1 var(--num); color: var(--gold); min-width: 40px; }
.chap p { padding: 0 0 26px; padding-inline-start: 64px; color: var(--soft); }

.column { padding-block: clamp(50px, 6vw, 80px); border-top: 1px solid var(--hair); max-width: 960px; }
.column:first-of-type { border-top: 0; padding-top: 0; }
.column-t { margin: 14px 0 24px; font: 300 clamp(30px, 3.4vw, 46px)/1.45 var(--fd); }
html[lang="en"] .column-t { font-weight: 400; line-height: 1.15; }
.column blockquote { margin: 0 0 30px; font: 200 clamp(21px, 2vw, 26px)/1.9 var(--fd); color: var(--soft); }
html[lang="en"] .column blockquote { font-family: var(--en); font-weight: 300; line-height: 1.6; }
.links { display: flex; align-items: center; gap: 30px; }
.book-img { overflow: hidden; margin-bottom: 28px; }
.book img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.book-t { margin: 10px 0 4px; font: 300 clamp(30px, 3vw, 40px)/1.4 var(--fd); }
html[lang="en"] .book-t { font-weight: 400; line-height: 1.15; }
.note { margin-top: 60px; max-width: 760px; }

.cities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 70px clamp(36px, 5vw, 70px); }
.city-n { font: 200 clamp(38px, 4vw, 54px)/1.2 var(--fd); color: var(--gold); margin-bottom: 18px; }
html[lang="en"] .city-n { font-weight: 400; letter-spacing: .02em; }
.countries { margin-top: 90px; color: var(--soft); font-size: 19px; line-height: 2.1; max-width: 960px; }
.countries .label { display: block; margin-bottom: 12px; }
.masonry { columns: 3; column-gap: 20px; }
.m-item { display: block; width: 100%; break-inside: avoid; margin-bottom: 20px; position: relative; overflow: hidden; text-align: start; }
.m-pic { display: block; overflow: hidden; }
.m-item img { width: 100%; filter: brightness(.9); transition: filter .8s; }
.m-item:hover img { filter: brightness(1.05); }
.m-item > span:last-child { display: block; padding: 12px 2px 4px; font-size: 15px; line-height: 1.6; color: var(--muted); }

.contact { list-style: none; padding: 0; margin: 0; max-width: 960px; }
.contact li { display: grid; grid-template-columns: 260px 1fr; align-items: baseline; gap: 20px; padding: 30px 0; border-bottom: 1px solid var(--hair); }
.contact li:first-child { border-top: 1px solid var(--hair); }
.contact a { font: 300 clamp(22px, 2.6vw, 34px)/1.4 var(--fd); transition: color .3s; word-break: break-word; }
.contact a.ltr { font-family: var(--num); font-weight: 400; }
.contact a:hover { color: var(--gold-soft); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--hair); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-block: 38px; }
.foot-name { font: 300 19px/1.4 var(--fd); }
.foot-c { font-size: 14.5px; color: var(--muted); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-nav a { font-size: 15px; color: var(--soft); transition: color .3s; }
.foot-nav a:hover { color: var(--gold); }
.foot-name { color: var(--gold); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(0, 0, 0, .96); display: grid; place-items: center; padding: 70px 20px 30px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: min(1100px, 100%); }
.lightbox img { max-height: calc(100vh - 170px); width: auto; }
.lightbox figcaption { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; color: var(--soft); font-size: 16px; text-align: center; }
.lightbox figcaption a { color: var(--gold-soft); border-bottom: 1px solid var(--gold-dim); }
.lb-x { position: absolute; top: 18px; inset-inline-end: calc(var(--g) - 10px); width: 44px; height: 44px; }
.lb-x span { position: absolute; left: 11px; right: 11px; top: 22px; height: 1px; background: var(--gold); }
.lb-x span:first-child { transform: rotate(45deg); } .lb-x span:last-child { transform: rotate(-45deg); }

/* ---------- next chapter ---------- */
.next { display: block; margin-top: clamp(100px, 12vw, 160px); padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); position: relative; overflow: hidden; }
.next::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(212, 175, 55, 0), rgba(212, 175, 55, .1), rgba(212, 175, 55, 0)); transform: translateX(-100%); transition: transform 1.1s cubic-bezier(.7, 0, .2, 1); }
.next:hover::before { transform: translateX(100%); }
.next-k { display: block; color: var(--gold); font-size: 15px; margin-bottom: 16px; }
html[lang="en"] .next-k { font-size: 12.5px; letter-spacing: .24em; text-transform: uppercase; font-weight: 500; }
.next-row { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); }
.next-n { font: 400 clamp(26px, 3vw, 40px)/1 var(--num); color: var(--gold); }
.next-t { font: 200 clamp(40px, 6vw, 84px)/1.25 var(--fd); transition: color .4s; }
html[lang="en"] .next-t { font-weight: 400; line-height: 1.1; }
.next .arr { width: clamp(34px, 4vw, 54px); height: auto; margin-inline-start: auto; fill: none; stroke: var(--gold); stroke-width: .9; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
html[dir="rtl"] .next .arr { transform: scaleX(-1); }
.next:hover .next-t { color: var(--gold-soft); }
.next:hover .arr { transform: translateX(10px); }
html[dir="rtl"] .next:hover .arr { transform: scaleX(-1) translateX(10px); }

/* ---------- loader / curtain / cursor ---------- */
.loader { position: fixed; inset: 0; z-index: 300; background: #000; display: none; place-items: center; }
.motion.first .loader { display: grid; }
.loader-mono { width: 120px; height: 120px; overflow: visible; }
.loader-mono circle { fill: none; stroke: var(--gold); stroke-width: 1; }
.loader-mono circle + circle { stroke-width: .6; opacity: .7; }
.loader-mono text { fill: var(--gold); font: 400 46px var(--num); opacity: 0; }
.curtain { position: fixed; inset: 0; z-index: 250; background: #000; transform: translateY(100%); display: grid; place-items: center; pointer-events: none; }
.curtain::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--foil); }
.curtain::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--hair); }
.curtain-in { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.c-n { font: 400 clamp(54px, 7vw, 90px)/1 var(--num); background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0; }
.c-t { font: 200 clamp(26px, 3vw, 38px)/1.3 var(--fd); color: var(--text); opacity: 0; }
html[lang="en"] .c-t { font-weight: 400; letter-spacing: .04em; }

.has-cursor, .has-cursor a, .has-cursor button, .has-cursor summary, .has-cursor [data-lb] { cursor: none; }
.cur, .cur-dot { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cur-on .cur, .cur-on .cur-dot { opacity: 1; }
.cur-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--gold-soft); }
.cur { width: 0; height: 0; }
.cur-c { position: absolute; left: -19px; top: -19px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(212, 175, 55, .55); transition: transform .45s cubic-bezier(.2, .7, .2, 1), background .45s, border-color .45s; }
.cur.is-link .cur-c { transform: scale(1.6); background: rgba(212, 175, 55, .1); border-color: var(--gold); }
.cur.is-view .cur-c { transform: scale(2.4); background: rgba(0, 0, 0, .55); border-color: var(--gold); backdrop-filter: blur(2px); }
.cur-l { position: absolute; left: 0; top: 0; translate: -50% -50%; font-size: 13px; color: var(--gold-soft); white-space: nowrap; letter-spacing: .08em; }

.ripple { position: fixed; left: 0; top: 0; z-index: 380; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; border: 1px solid var(--gold); box-shadow: 0 0 18px rgba(212, 175, 55, .35), inset 0 0 12px rgba(212, 175, 55, .25); pointer-events: none; opacity: 0; }

/* touch: hover styles play when an item reaches the middle of the screen */
@media (hover: none) {
  .feature.live .feature-img::after { inset: 24px; }
  .feature.live .feature-img img, .m-item.live img { filter: brightness(1.04) saturate(1.06); }
  .next.live::before { transform: translateX(100%); }
  .next.live .next-t { color: var(--gold-soft); }
  .next.live .arr { transform: translateX(10px); }
  html[dir="rtl"] .next.live .arr { transform: scaleX(-1) translateX(10px); }
  .city.live .city-n, .book.live .book-t { color: var(--gold-soft); }
  .city-n, .book-t { transition: color .6s; }
  .btn, .more, .cert, .menu-btn, .lang, .drawer-nav a { transition: transform .15s, background .3s, color .3s, border-color .3s, opacity .6s; }
  .btn:active, .menu-btn:active, .lang:active { transform: scale(.96); }
  .more:active, .cert:active, .drawer-nav a:active .dt { color: var(--gold); }
}

/* ---------- motion ---------- */
.w { display: inline-block; overflow: clip; overflow-clip-margin: .2em; padding-block: .14em; margin-block: -.14em; vertical-align: top; }
.wi { display: inline-block; transform-origin: 0 100%; will-change: transform; }
html[dir="rtl"] .wi { transform-origin: 100% 100%; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.motion .reveal { transform: none; transition: none; }
.motion .hero-glow, .motion .hero-cut { opacity: 0; }
.motion .feature-img, .motion .side-photo, .motion .book-img, .motion .m-pic { clip-path: inset(0 0 100% 0); }
html:not(.motion) .halo { display: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .halo, .hero-name .wi { animation: none; } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .drawer-body { grid-template-columns: 1fr; align-items: start; }
  .drawer-side { border: 0; padding: 26px 0 0; border-top: 1px solid var(--hair); }
  .drawer-side img { display: none; }
}
@media (max-width: 520px) {
  #markName { display: none; }
  .hdr-end { gap: 12px; }
}
@media (max-width: 900px) {
  :root { --hdr: 70px; }
  .hero { min-height: auto; flex-direction: column; align-items: stretch; }
  .hero-stage { position: relative; width: 100%; height: 60vh; max-height: 580px; min-height: 430px; }
  .hero-cut { height: auto; width: min(122%, 620px); }
  .hero-glow { top: 50%; width: 130%; }
  .halo { top: 44%; width: min(86%, 440px); }
  .hero-in { padding-top: 0; margin-top: -36px; }
  .hero-text { text-shadow: 0 0 16px #000; }
  .where { gap: 6px; }
  .where .w-t { display: none; }
  .hero-name { margin-top: 16px; }
  .figures { grid-template-columns: 1fr 1fr; gap: 56px 30px; }
  .feature, .split, .split-stat, .duo, .video { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-img { order: 0; }
  .trio, .cities { grid-template-columns: 1fr 1fr; }
  .numbered-2, .hyp, .method { grid-template-columns: 1fr; }
  .stat-side { position: static; }
  .side-photo { max-width: 360px; }
  .masonry { columns: 2; }
  .contact li { grid-template-columns: 1fr; gap: 6px; }
  .meta { margin-top: -60px; margin-bottom: 70px; }
}
@media (max-width: 720px) {
  .model-h { display: none; }
  .model-v { display: block; }
}
@media (max-width: 600px) {
  body { font-size: 17.5px; }
  html[lang="en"] body { font-size: 18px; }
  .trio, .cities, .quad { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .ctas .btn { flex: 1 1 100%; }
  .row-ev { grid-template-columns: 1fr; gap: 12px; }
  .row-meta { flex-direction: row; align-items: center; gap: 20px; }
  .paper { grid-template-columns: 90px 1fr; gap: 20px; }
  .paper-img img { width: 90px; }
  .numbered li { grid-template-columns: 48px 1fr; }
  .chap p { padding-inline-start: 0; }
  .names { flex-direction: column; }
  .names li { border: 0; padding: 0; margin: 0; }
  .invite-in { flex-direction: column; align-items: flex-start; }
  .page:not(.page-home) { padding-top: calc(var(--hdr) + 44px); }
  .phead { margin-bottom: 56px; }
  .ptitle { margin: 14px 0 20px; }
  .h2-row { margin: 72px 0 26px; padding-top: 22px; }
  .pull { margin-top: 72px; }
  .statement { padding-block: 96px; }
  .features { gap: 84px; }
  .figures { padding-bottom: 96px; }
  .next { margin-top: 84px; padding: 34px 0; }
  .row { padding: 20px 0; }
}
