:root {
  --bg: #050608;
  --bg-2: #0c0d11;
  --raised: rgba(14, 15, 19, 0.78);
  --ink: #f4f1ec;
  --ink-2: #b9bcc4;
  --ink-3: #7c808a;
  --line: rgba(244, 241, 236, 0.12);
  --gold: #d4a84b;
  --gold-2: #f2d48c;
  --gold-line: rgba(212, 168, 75, 0.4);
  --paper: #f4f1ec;
  --paper-2: #e6e1d8;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Inter Tight', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); }
body { font: 400 15px/1.6 var(--sans); overflow: hidden; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 1.5px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; touch-action: none; }

.btn {
  display: inline-flex; align-items: center; gap: .4em; height: 38px; padding: 0 16px;
  border-radius: 999px; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; transition: background .25s, color .25s, border-color .25s;
}
.btn.ghost { border: 1px solid var(--line); background: rgba(10, 11, 14, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn.ghost:hover { border-color: var(--gold-line); color: var(--gold-2); }
.btn.gold { background: var(--gold); color: #120e06; }
.btn.gold:hover { background: var(--gold-2); }

/* ------------------------------------------------------------ flashlight */

#torch { position: fixed; inset: 0; z-index: 5; width: 100%; height: 100%; pointer-events: none; }
/* the sky: "Look up" under the gold ring at the top, and "Look down" to come back */
.sky-cue, .sky-pill {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px 12px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(242, 212, 140, .6); background: rgba(8, 9, 12, .6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .55), inset 0 0 22px rgba(212, 168, 75, .1);
  font: 600 11.5px/1 var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--gold-2);
  transition: background .25s, border-color .25s, color .25s, box-shadow .25s;
}
.sky-cue:hover, .sky-pill:hover { background: rgba(212, 168, 75, .16); border-color: var(--gold-2); color: #fff3d6; }
.sky-cue i, .sky-pill i { width: 9px; height: 9px; border-top: 1.5px solid currentColor; border-left: 1.5px solid currentColor; }
.sky-cue i { transform: translateY(2px) rotate(45deg); animation: sky-arrow 1.5s ease-in-out infinite; }
.sky-pill i { transform: translateY(-2px) rotate(225deg); }
.sky-cue {
  position: fixed; left: 50%; top: 80px; z-index: 21;
  opacity: 0; pointer-events: none; transform: translate(-50%, 10px) scale(.95);
  transition: opacity .4s var(--ease), transform .4s var(--ease), background .25s, border-color .25s, color .25s;
}
.sky-cue.on { opacity: 1; pointer-events: auto; transform: translate(-50%, 0) scale(1); animation: sky-pulse 2.4s 0.4s ease-out infinite; }
@keyframes sky-arrow { 0%, 100% { transform: translateY(3px) rotate(45deg); opacity: .55; } 50% { transform: translateY(-2px) rotate(45deg); opacity: 1; } }
@keyframes sky-pulse {
  from { box-shadow: 0 0 0 0 rgba(242, 212, 140, .45), 0 12px 40px rgba(0, 0, 0, .55), inset 0 0 22px rgba(212, 168, 75, .1); }
  to { box-shadow: 0 0 0 18px rgba(242, 212, 140, 0), 0 12px 40px rgba(0, 0, 0, .55), inset 0 0 22px rgba(212, 168, 75, .1); }
}
.sky-back { position: fixed; left: 50%; bottom: calc(28px + var(--safe-b)); z-index: 21; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 12px; animation: fade 1.2s 1.4s var(--ease) both; }
.sky-back p { margin: 0; font: 400 10px/1 var(--mono); letter-spacing: .26em; text-transform: uppercase; color: var(--ink-3); animation: fadeOut 1.2s 7s var(--ease) both; }
html[lang="ar"] :is(.sky-cue, .sky-pill, .sky-back p) { letter-spacing: 0; font-size: 13px; }
body.skyward :is(#dock, #hint, #tip, #tour-end) { opacity: 0 !important; pointer-events: none !important; transition: opacity .7s var(--ease); }
/* the room's title, laid back over the shadow so its lettering stays bright */
#torch-title { position: fixed; left: 0; top: 0; z-index: 6; pointer-events: none; transform-origin: 0 0; opacity: 0; }

/* ---------------------------------------------------------------- loader */

#loader {
  position: fixed; inset: 0; z-index: 50; background: var(--bg);
  display: grid; place-items: center; transition: opacity .8s var(--ease), visibility .8s;
}
#loader.out { opacity: 0; visibility: hidden; }
.ld-mono { width: min(360px, 74vw); height: auto; overflow: visible; }
.ld-outline { fill: none; stroke: url(#ld-stroke); stroke-width: 1.1; }
.ld-wave { animation: ld-wave 2.6s linear infinite; }
.ld-wave.back { animation-duration: 3.8s; opacity: .5; }
@keyframes ld-wave { to { transform: translateX(-180px); } }
#ld-level { transition: transform .25s linear; }
.orb { fill: none; stroke: currentColor; stroke-width: 1; }
.orb .core { fill: currentColor; stroke: none; }
.ld-name { position: absolute; top: calc(50% + min(100px, 22vw)); margin: 0; font: 500 10.5px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); }
.ld-name i { color: var(--gold); font-style: normal; padding: 0 .4em; }
.ld-pct { position: absolute; right: clamp(20px, 4vw, 56px); bottom: clamp(10px, 3vw, 36px); margin: 0; font: 400 clamp(64px, 12vw, 150px)/1 var(--serif); color: var(--ink); letter-spacing: -.02em; }
.ld-pct span::first-letter { color: var(--ink-3); }
/* on a slow network, the way out: the text view, which loads no 3D */
.ld-skip { position: absolute; left: 50%; bottom: 7vh; transform: translateX(-50%); padding-bottom: 5px; border-bottom: 1px solid rgba(255, 255, 255, .16);
  font: 500 10.5px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); text-decoration: none; white-space: nowrap;
  opacity: 0; animation: ld-skip .8s 1.8s var(--ease) forwards; transition: color .2s, border-color .2s; }
.ld-skip:hover { color: var(--gold-2); border-color: var(--gold-line); }
@keyframes ld-skip { to { opacity: 1; } }
html[lang="ar"] .ld-skip { letter-spacing: 0; font-size: 13px; }
.ld-pct sup { font: 400 .22em/1 var(--serif); color: var(--gold); vertical-align: top; position: relative; top: .3em; margin-left: .05em; }

/* a language switch: the loader is only a dark veil, and nothing re-plays its entrance */
html.quick #loader > * { display: none; }
html.quick #loader.out { transition-duration: .35s; animation-duration: .35s; }
html.quick :is(#welcome, .ticket, .tk-body > *, .tk-photo, .tk-photo img, #classic, #letter-view, .hud) { animation: none !important; }

/* --------------------------------------------------------------- welcome */

#welcome {
  position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px; overflow-y: auto;
  background: radial-gradient(90% 70% at 50% 50%, rgba(5, 6, 8, .25), rgba(5, 6, 8, .78));
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  animation: fade .7s var(--ease) both;
}
#welcome.out { animation: fadeOut .5s var(--ease) both; }
/* the welcome card: a round plate, like the rotunda it opens onto. Everything
   inside is sized in em off the plate's diameter, so it scales as one piece. */
.ticket {
  --d: min(720px, 94vw, 96svh);
  position: relative; width: var(--d); aspect-ratio: 1; border-radius: 50%; font-size: calc(var(--d) / 45);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3.4em 4.2em;
  color: var(--ink); text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, rgba(30, 30, 36, .96), rgba(9, 10, 13, .97) 62%);
  border: 1px solid var(--gold-line);
  box-shadow: 0 60px 160px rgba(0, 0, 0, .7), inset 0 0 0 10px rgba(212, 168, 75, .025), inset 0 1px 0 rgba(242, 212, 140, .1);
  animation: rise .9s .1s var(--ease) both;
}
.ticket::before, .ticket::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.ticket::before { /* a bezel of fine ticks, turning very slowly */
  inset: -1.15em;
  background: repeating-conic-gradient(rgba(212, 168, 75, .42) 0 .3deg, transparent .3deg 7.5deg);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - .42em), #000 calc(100% - .4em));
  mask: radial-gradient(closest-side, transparent calc(100% - .42em), #000 calc(100% - .4em));
  animation: spin 240s linear infinite;
}
.ticket::after { /* a point of light circling the rim */
  inset: -1px;
  background: conic-gradient(transparent 0 78%, rgba(242, 212, 140, .1) 88%, rgba(242, 212, 140, .95) 99.6%, transparent);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
  mask: radial-gradient(closest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
  animation: spin 14s linear infinite;
}
.tk-photo { position: relative; flex: none; width: 5.4em; aspect-ratio: 1; margin: 0 0 .9em; border-radius: 50%; overflow: hidden;
  border: 1px solid var(--gold-line); box-shadow: 0 0 0 .32em rgba(212, 168, 75, .06), 0 12px 40px rgba(0, 0, 0, .6); animation: rise .8s .2s var(--ease) both; }
.tk-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: saturate(.9) contrast(1.06); animation: settle 1.6s var(--ease) both; }
@keyframes settle { from { transform: scale(1.12); opacity: 0; } }
.tk-body { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; }
.tk-body > * { animation: rise .8s var(--ease) both; }
.tk-body > :nth-child(1) { animation-delay: .25s; } .tk-body > :nth-child(2) { animation-delay: .32s; } .tk-body > :nth-child(3) { animation-delay: .39s; }
.tk-body > :nth-child(4) { animation-delay: .46s; } .tk-body > :nth-child(5) { animation-delay: .53s; } .tk-body > :nth-child(6) { animation-delay: .6s; }
.tk-body > :nth-child(n+7) { animation-delay: .67s; }
.tk-kicker { display: flex; align-items: center; justify-content: center; gap: .9em; margin: 0 0 .85em; font: 500 .66em/1 var(--mono); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.tk-kicker i { width: .45em; height: .45em; background: var(--gold); transform: rotate(45deg); }
.tk-name { margin: 0; font: 400 3.2em/.95 var(--serif); letter-spacing: -.015em; }
.tk-title { margin: .55em 0 0; font: italic 400 1.25em/1.3 var(--serif); color: var(--gold-2); }
.tk-line { position: relative; margin: 1em 0 0; padding-top: 1em; font: 400 1.02em/1.55 var(--sans); color: var(--ink); max-width: 25em; text-wrap: balance; }
.tk-line::before { content: ''; position: absolute; top: 0; left: 50%; width: 3em; height: 1px; transform: translateX(-50%); background: var(--gold-line); }
/* not a badge: a line said quietly, between two hairlines */
.tk-sign { display: flex; align-items: center; justify-content: center; gap: 1em; margin: .95em 0 0; font: 500 .64em/1.5 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); }
.tk-sign::before, .tk-sign::after { content: ''; flex: none; width: 2.6em; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.tk-sign::after { transform: scaleX(-1); }
.tk-ctas { display: flex; justify-content: center; gap: .65em; margin-top: 1.3em; }
/* three proof points, read at a glance */
.tk-stats { display: flex; justify-content: center; margin: 1.05em 0 0; padding: 0; list-style: none; }
.tk-stats li { display: flex; flex-direction: column; align-items: center; gap: .32em; padding: 0 1.05em; max-width: 9.6em; }
.tk-stats li + li { border-inline-start: 1px solid var(--line); }
.tk-stats b { font: 400 1.7em/1 var(--serif); color: var(--gold-2); letter-spacing: -.01em; }
.tk-stats span { font: 500 .57em/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); text-wrap: balance; }
html[lang="ar"] .tk-stats span { letter-spacing: 0; font-size: .74em; line-height: 1.5; }
/* the way to reach him, right under the two main buttons */
.tk-contact { display: flex; justify-content: center; gap: .55em; margin: .8em 0 0; }
.tk-pill { display: inline-flex; align-items: center; gap: .6em; padding: .62em 1.15em; border-radius: 999px; border: 1px solid var(--gold-line);
  font: 600 .63em/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); text-decoration: none; transition: background .25s, border-color .25s, color .25s; }
.tk-pill i { font-style: normal; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--gold-2); } /* LinkedIn's mark is a lower-case "in" */
.tk-pill.gold { border-color: rgba(242, 212, 140, .7); background: rgba(212, 168, 75, .14); color: var(--gold-2); }
.tk-pill:hover { background: rgba(212, 168, 75, .22); border-color: var(--gold-2); color: #fff3d6; }
html[lang="ar"] .tk-pill { letter-spacing: 0; font-size: .78em; }
.tk-btn {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .32em; width: 15.8em; min-height: 3.9em; padding: .7em 1em; border-radius: 999px; text-align: center;
  border: 1px solid var(--gold-line); background: rgba(10, 11, 14, .5); transition: background .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.tk-btn b { font: 600 .95em/1.25 var(--sans); color: var(--ink); text-wrap: balance; }
.tk-btn span { font: 500 .56em/1.35 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.tk-btn:hover { border-color: var(--gold); background: rgba(212, 168, 75, .1); transform: translateY(-2px); }
.tk-btn.primary { border-color: transparent; background: linear-gradient(135deg, #e6c06a, #c9973a); box-shadow: 0 14px 40px rgba(212, 168, 75, .28); }
.tk-btn.primary b { color: #140f05; }
.tk-btn.primary span { color: #5a4316; }
.tk-btn.primary:hover { background: linear-gradient(135deg, #f2d48c, #d4a84b); box-shadow: 0 18px 50px rgba(212, 168, 75, .4); }
.tk-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .3em 1.4em; margin-top: .7em; }
.tk-links > * { padding: .4em 0; font: 500 .64em/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; transition: color .2s; }
.tk-links > :hover { color: var(--gold-2); }
.ticket .lang-links { margin: .55em 0 0; font-size: .9em; }
/* a phone, or a screen too short for a full circle: an arch, round on top like a rotunda window */
@media (max-width: 680px), (max-height: 600px) {
  /* centred when it fits, scrolls from the top when it does not (auto margins give way) */
  #welcome { display: flex; flex-direction: column; align-items: center; padding: 14px; }
  .ticket { margin: auto; flex: none; --d: auto; width: min(560px, 100%); aspect-ratio: auto; font-size: 15px; padding: 2.6em 1.4em 1.6em;
    border-radius: 50vw 50vw 22px 22px / 50vw 50vw 22px 22px; }
  .ticket::before, .ticket::after { display: none; }
  .tk-name { font-size: 2.6em; }
  .tk-sign { letter-spacing: .14em; }
  .tk-sign::before, .tk-sign::after { display: none; }
  .tk-ctas { flex-direction: column; align-self: stretch; }
  .tk-btn { width: 100%; }
}
.bar-acts { display: flex; gap: 8px; }

/* ------------------------------------------------------------------- hud */

.hud { position: fixed; z-index: 20; animation: fade .8s var(--ease) both; }
#top {
  top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center;
  padding: clamp(12px, 2vw, 22px) clamp(14px, 2.4vw, 30px);
  background: linear-gradient(180deg, rgba(5, 6, 8, .7), rgba(5, 6, 8, 0)); pointer-events: none;
}
#top > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .mk { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--gold-line); color: var(--gold); }
.brand .mk .orb { width: 24px; height: 24px; animation: spin 14s linear infinite; }
.brand .nm { display: flex; flex-direction: column; line-height: 1.15; }
.brand b { font: 500 14px/1.2 var(--sans); }
.brand i { font: 500 9.5px/1.4 var(--mono); font-style: normal; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.acts { display: flex; gap: 8px; }
/* Lagos time, quiet, in the top bar */
/* (a flex item between the name and the buttons, so it centres in the free space and never runs into them) */
.clock { margin: 0 24px; min-width: 0; display: flex; align-items: center; gap: 10px; pointer-events: none;
  font: 500 10px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.clock b { font-weight: 500; color: var(--ink-2); letter-spacing: .12em; }
.clock i { width: 3px; height: 3px; background: var(--gold); transform: rotate(45deg); opacity: .7; }
@media (max-width: 1200px) { .clock { display: none; } }

#dock {
  left: 50%; bottom: calc(14px + var(--safe-b)); transform: translateX(-50%);
  width: min(720px, calc(100vw - 24px)); display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.chips { display: flex; gap: 6px; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 2px; justify-content: safe center; }
.chips::-webkit-scrollbar { display: none; }
.chips button {
  flex: none; height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(10, 11, 14, .62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font: 400 12.5px/1 var(--sans); color: var(--ink-2); transition: border-color .2s, color .2s, background .2s;
  animation: chip .5s var(--ease) both;
}
.chips button:nth-child(2) { animation-delay: .04s; } .chips button:nth-child(3) { animation-delay: .08s; }
.chips button:nth-child(4) { animation-delay: .12s; } .chips button:nth-child(5) { animation-delay: .16s; }
.chips button:nth-child(n+6) { animation-delay: .2s; }
.chips button:hover { border-color: var(--gold-line); color: var(--ink); background: rgba(212, 168, 75, .12); }
/* exhibits already read carry a small gold dot */
.chips button.read { border-color: rgba(212, 168, 75, .28); }
.chips button.read::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-inline-end: 7px; border-radius: 50%; background: var(--gold); vertical-align: 1px; }
.bar {
  display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--raised); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.arrow { width: 44px; height: 44px; border-radius: 50%; font: 300 26px/1 var(--sans); color: var(--ink-2); display: grid; place-items: center; transition: background .2s, color .2s; }
.arrow:hover { background: rgba(212, 168, 75, .14); color: var(--gold-2); }
.plan { width: 44px; height: 44px; }
.plan svg { width: 100%; height: 100%; display: block; }
.plan .rim { fill: none; stroke: var(--line); }
.plan .hub { fill: var(--gold); }
.plan path { fill: rgba(244, 241, 236, .1); cursor: pointer; transition: fill .25s; }
.plan path:hover { fill: rgba(212, 168, 75, .45); }
.plan path.seen { fill: rgba(212, 168, 75, .34); }
.plan path.on { fill: var(--gold); }
.label { display: flex; flex-direction: column; align-items: flex-start; min-width: 150px; padding-inline: 6px 10px; text-align: start; }
.label span { font: 500 9.5px/1.3 var(--mono); letter-spacing: .18em; color: var(--gold); }
.label strong { font: 400 21px/1.15 var(--serif); }
.rooms {
  position: absolute; bottom: 64px; margin: 0; padding: 8px; list-style: none; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(10, 11, 14, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: min(380px, 100%); animation: rise .3s var(--ease) both;
}
.rooms button { width: 100%; text-align: start; padding: 10px 12px; border-radius: 8px; font: 400 14px/1.2 var(--sans); color: var(--ink-2); }
.rooms button:hover { background: rgba(212, 168, 75, .12); color: var(--ink); }
.rooms button[aria-current='true'] { color: var(--gold-2); }
.rooms button.seen::after { content: ''; display: inline-block; width: 5px; height: 5px; margin-inline-start: 8px; border-radius: 50%; background: var(--gold); opacity: .7; vertical-align: 2px; }

#hint {
  left: 50%; bottom: calc(150px + var(--safe-b)); transform: translateX(-50%); display: flex; align-items: center; gap: 12px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--gold-line); background: rgba(10, 11, 14, .72);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font: 400 12.5px/1.2 var(--sans); color: var(--ink-2);
  white-space: nowrap; animation: fade .6s .5s var(--ease) both; transition: opacity .5s, transform .5s;
}
#hint b { color: var(--ink); font-weight: 500; }
#hint i { width: 3px; height: 3px; background: var(--gold); transform: rotate(45deg); }
#hint.out { opacity: 0; transform: translate(-50%, 8px); pointer-events: none; }

#tip {
  position: fixed; left: 0; top: 0; z-index: 25; pointer-events: none; padding: 7px 11px; border-radius: 8px;
  background: rgba(10, 11, 14, .9); border: 1px solid var(--gold-line); font: 500 12.5px/1 var(--sans); white-space: nowrap;
  opacity: 0; transition: opacity .15s;
}
#tip i { font: 500 10px/1 var(--mono); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-inline-start: 6px; }
#tip.on { opacity: 1; }

/* ------------------------------------------------------------------ card */

#card { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: clamp(12px, 4vw, 48px); }
.card-scrim { position: absolute; inset: 0; background: rgba(3, 4, 6, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s; }
.card-panel {
  position: relative; width: min(1040px, 100%); max-height: min(720px, 100%); display: flex; flex-direction: column;
  border-radius: 20px; border: 1px solid var(--gold-line); overflow: hidden;
  background: linear-gradient(160deg, rgba(22, 23, 28, .94), rgba(9, 10, 13, .96));
  box-shadow: 0 50px 140px rgba(0, 0, 0, .6); opacity: 0; transform: translateY(24px) scale(.98);
  transition: opacity .35s var(--ease), transform .45s var(--ease);
}
#card.in .card-scrim { opacity: 1; }
#card.in .card-panel { opacity: 1; transform: none; }
.card-close {
  position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; width: 42px; height: 42px; border-radius: 50%;
  font: 300 28px/1 var(--sans); color: var(--ink-2); background: rgba(10, 11, 14, .6); transition: color .2s, background .2s;
}
.card-close:hover { color: var(--gold-2); background: rgba(212, 168, 75, .14); }
.card-body { display: grid; grid-template-columns: 44% 1fr; min-height: 0; flex: 1; overflow: auto; }
.card-visual {
  position: relative; display: grid; place-items: center; min-height: 340px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, rgba(212, 168, 75, .14), rgba(212, 168, 75, 0) 60%), #0b0c0f;
  border-inline-end: 1px solid var(--line);
}
.card-text { padding: clamp(24px, 3.4vw, 46px); padding-inline-end: clamp(24px, 4vw, 58px); }
.kicker { margin: 0 0 12px; font: 500 10.5px/1.5 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.card-text h2 { margin: 0 0 14px; font: 400 clamp(32px, 3.6vw, 46px)/1.04 var(--serif); letter-spacing: -.01em; }
.card-text .lead { font-size: 17px; line-height: 1.55; color: var(--ink); margin: 0 0 16px; }
.card-text p { margin: 0 0 14px; color: var(--ink-2); }
.card-text p strong { color: var(--ink); font-weight: 500; }
.card-text ul { margin: 6px 0 16px; padding: 0; list-style: none; }
.card-text li { position: relative; padding-inline-start: 20px; margin-bottom: 9px; color: var(--ink-2); }
.card-text li::before { content: ''; position: absolute; inset-inline-start: 3px; top: .62em; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); font: 500 10px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px !important; }
.actions .btn:not(.gold) { border: 1px solid var(--line); }
.actions .btn:not(.gold):hover { border-color: var(--gold-line); color: var(--gold-2); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); background: rgba(5, 6, 8, .5); }
.card-foot button { height: 38px; padding: 0 14px; border-radius: 999px; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.card-foot button:hover { color: var(--gold-2); background: rgba(212, 168, 75, .1); }
.card-count { font: 500 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); text-align: center; }

/* card visuals */
.v-figure { font: 400 clamp(72px, 9vw, 128px)/1 var(--serif); color: var(--gold); text-shadow: 0 0 40px rgba(212, 168, 75, .35); letter-spacing: -.02em; padding: 20px; }
.v-role { display: flex; flex-direction: column; gap: 14px; padding: 30px; text-align: center; }
.v-role strong { font: 400 clamp(30px, 3.4vw, 42px)/1.1 var(--serif); }
.k { font: 500 11px/1.4 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.k.dim { color: var(--ink-3); }
.v-icon { width: 46%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--gold-line); box-shadow: 0 0 0 22px rgba(212, 168, 75, .04), 0 0 0 46px rgba(212, 168, 75, .025); color: var(--gold); }
.v-icon .ico { width: 52%; height: 52%; stroke-width: 1.1; }
.ico { width: 18px; height: 18px; }
.shot { width: 100%; height: 100%; object-fit: cover; object-position: top center; position: absolute; inset: 0; }
.shot-missing { font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.map { width: 92%; height: auto; }
.map .dots { fill: rgba(212, 168, 75, .35); }
.map .route path { fill: none; stroke: var(--gold-2); stroke-width: 1.4; opacity: .8; }
.map .pin { fill: var(--gold-2); }
.map .pin .pr { fill: none; stroke: var(--gold-2); stroke-width: 1; opacity: .6; }
.map .pin.on .pr { opacity: 1; animation: pulse 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.map text { font: 500 10px var(--mono); letter-spacing: .14em; fill: var(--ink); }
.cmap { width: 100%; height: 100%; max-height: 100%; } /* fits whole, even in a phone's short strip */
.cmap .cm-near { fill: rgba(244, 241, 236, .035); stroke: rgba(212, 168, 75, .2); stroke-width: .6; stroke-linejoin: round; }
.cmap .cm-fill { fill: rgba(212, 168, 75, .1); animation: fade 1.6s .5s var(--ease) both; }
.cmap .cm-line { fill: none; stroke: var(--gold-2); stroke-width: 1.3; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: cm-draw 2.2s .15s cubic-bezier(.5, 0, .2, 1) forwards; filter: drop-shadow(0 0 4px rgba(212, 168, 75, .5)); }
@keyframes cm-draw { to { stroke-dashoffset: 0; } }
.cmap .cm-city { fill: var(--gold-2); animation: fade .8s var(--d, 1.4s) var(--ease) both; }
.cmap .cm-city .pr { fill: none; stroke: var(--gold-2); stroke-width: 1; animation: pulse 2.2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.cmap text { font: 500 10.5px var(--mono); letter-spacing: .16em; fill: var(--ink); }
html[lang="ar"] .cmap text { letter-spacing: 0; font-size: 13px; }
.v-langs { display: grid; gap: 16px; padding: 30px; text-align: center; }
.v-langs b { display: block; font: 400 44px/1 var(--serif); color: var(--ink); }
.v-langs div:nth-child(even) b { color: var(--gold); }
.v-langs span { font: 500 10px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.v-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 36px; padding: 30px; }
.v-facts b { display: block; font: 400 64px/1 var(--serif); color: var(--gold); }
.v-facts span { font: 500 10px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.mono-mark {
  width: 62%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: repeating-radial-gradient(circle, rgba(212, 168, 75, .2) 0 1px, transparent 1px 22px);
}
.mono-mark span { font: 400 clamp(64px, 8vw, 104px)/1 var(--serif); color: var(--gold); text-shadow: 0 0 40px rgba(212, 168, 75, .5); }
.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) contrast(1.04); }
.card-visual.is-portrait::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,6,8,0) 55%, rgba(5,6,8,.55)), radial-gradient(120% 90% at 50% 30%, rgba(5,6,8,0) 55%, rgba(5,6,8,.45)); pointer-events: none; }

/* --------------------------------------------------------------- classic */

#classic { position: fixed; inset: 0; z-index: 45; /* above the welcome, which waits behind it */ overflow-y: auto; background: var(--bg-2); animation: fade .5s var(--ease) both; }
.classic-bar {
  position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; gap: 10px;
  padding: 14px clamp(14px, 3vw, 32px); background: linear-gradient(180deg, var(--bg-2) 60%, rgba(12, 13, 17, 0));
}
.classic-body { max-width: 940px; margin: 0 auto; padding: 20px clamp(18px, 4vw, 40px) 40px; }
.cv-head { padding: 30px 0 34px; border-bottom: 1px solid var(--line); }
.cv-head.has-photo { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.cv-photo { width: 190px; aspect-ratio: 1; object-fit: cover; padding: 6px; border: 1px solid var(--gold-line); filter: saturate(.92) contrast(1.04); }
.cv-head h1 { margin: 0; font: 400 clamp(46px, 8vw, 92px)/.95 var(--serif); letter-spacing: -.02em; }
.cv-title { margin: 14px 0 4px; font: 400 clamp(20px, 2.6vw, 26px)/1.3 var(--serif); color: var(--gold-2); }
.cv-strap { margin: 0 0 18px; font: 500 10.5px/1.6 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.cv-contact { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 10px; font-size: 14px; color: var(--ink-2); }
.cv-contact a { text-decoration: none; border-bottom: 1px solid var(--gold-line); overflow-wrap: anywhere; }
.cv-contact a:hover { color: var(--gold-2); }
.cv-langs { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font-size: 13px; color: var(--ink-3); }
.cv-langs b { color: var(--ink); font-weight: 500; }
.classic-body section { padding: 34px 0; border-bottom: 1px solid var(--line); }
.classic-body h3 { margin: 0 0 20px; font: 500 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.profile { font: 400 clamp(18px, 2vw, 21px)/1.6 var(--sans); color: var(--ink); margin: 0; }
.ach { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.ach div { padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
.ach b { display: block; font: 400 44px/1 var(--serif); color: var(--gold); margin-bottom: 10px; }
.ach p { margin: 0; font-size: 14px; color: var(--ink-2); }
.early { margin: 16px 0 0; font-size: 14px; color: var(--ink-3); }
.role { padding: 4px 0 22px; }
.role + .role { border-top: 1px dashed var(--line); padding-top: 22px; }
.role header { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.role h4 { margin: 0; font: 400 25px/1.2 var(--serif); }
.role .when { font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.role .org { margin: 4px 0 10px; color: var(--ink-2); font-weight: 500; }
.role .scope { margin: 0 0 10px; padding: 10px 14px; border-inline-start: 2px solid var(--gold); background: rgba(212, 168, 75, .06); font-size: 14px; color: var(--ink-2); }
.classic-body ul { margin: 0; padding: 0; list-style: none; }
.classic-body li { position: relative; padding-inline-start: 18px; margin-bottom: 7px; color: var(--ink-2); font-size: 14.5px; }
.classic-body li::before { content: ''; position: absolute; inset-inline-start: 2px; top: .62em; width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }
.break { margin: 0 0 22px; padding: 12px 14px; border-radius: 10px; background: rgba(244, 241, 236, .04); font-size: 13.5px; color: var(--ink-3); }
.sys { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.sys div { padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
.sys .ico { width: 26px; height: 26px; color: var(--gold); }
.sys h4 { margin: 10px 0 6px; font: 400 22px/1.2 var(--serif); }
.sys p { margin: 0; font-size: 14px; color: var(--ink-2); }
.sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.sites figure { margin: 0; }
.sites img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 8px; border: 1px solid var(--line); background: #08090b; display: block; }
.sites figcaption { padding-top: 8px; display: flex; flex-direction: column; gap: 2px; }
.sites b { font-weight: 500; font-size: 14px; }
.sites span { font: 500 9.5px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.cols p { margin: 0 0 8px; }
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.skills h4 { margin: 0 0 10px; font: 400 22px/1.2 var(--serif); }
.skills p { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.skills span { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); }
.classic-foot { padding: 30px; text-align: center; font: 500 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.noscript { max-width: 640px; margin: 80px auto; padding: 20px; }


/* ------------------------------------------------- tour, sound, language */

.lang-links { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 16px 0 0; }
.lang-links i { color: var(--ink-3); font-style: normal; }
.lang-link { font: 500 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.lang-link:hover { color: var(--gold-2); border-color: var(--gold-line); }
.btn.icon { width: 38px; padding: 0; justify-content: center; }
.lang-seg { display: inline-flex; height: 38px; padding: 3px; gap: 2px; border-radius: 999px; border: 1px solid var(--line); background: rgba(10, 11, 14, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lang-seg button { min-width: 30px; padding: 0 8px; border-radius: 999px; font: 500 10.5px/1 var(--mono); letter-spacing: .08em; color: var(--ink-3); transition: color .2s, background .2s; }
.lang-seg button[lang="ar"] { font: 500 14px/1 'IBM Plex Sans Arabic', var(--sans); letter-spacing: 0; }
.lang-seg button:hover { color: var(--gold-2); }
.lang-seg button[aria-pressed="true"] { background: var(--gold); color: #120e06; }

/* ----------------------------------------------------- cover letter view */

/* Try a role: one click writes the position into the letter */
.lt-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2px 0 18px; }
.lt-presets > span:first-child { margin-inline-end: 4px; font: 500 10px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.lt-presets [data-presets] { display: contents; }
.lt-preset { padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); cursor: pointer;
  font: 500 12.5px/1 var(--sans); color: var(--ink-2); transition: border-color .2s, color .2s, background .2s; }
.lt-preset:hover { border-color: var(--gold-line); color: var(--ink); }
.lt-preset.on { border-color: var(--gold); background: rgba(212, 168, 75, .14); color: var(--gold-2); }
html[lang="ar"] .lt-presets > span:first-child { letter-spacing: 0; font-size: 12.5px; }
#letter-view { position: fixed; inset: 0; z-index: 46; overflow-y: auto; background: var(--bg-2); animation: fade .5s var(--ease) both; }
.lt-stage { display: grid; grid-template-columns: minmax(280px, 340px) 1fr; gap: clamp(18px, 3vw, 40px); align-items: start; max-width: 1240px; margin: 0 auto; padding: 8px clamp(14px, 3vw, 32px) 40px; }
.lt-panel { position: sticky; top: 76px; padding: 24px; border: 1px solid var(--gold-line); border-radius: 18px; background: linear-gradient(160deg, rgba(22, 23, 28, .94), rgba(9, 10, 13, .96)); }
.lt-panel h2 { margin: 0 0 10px; font: 400 32px/1.08 var(--serif); }
.lt-intro { margin: 0 0 18px; font-size: 14px; color: var(--ink-2); }
.lt-panel label { display: block; margin-bottom: 12px; }
.lt-panel label span { display: block; margin-bottom: 6px; font: 500 10px/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.lt-panel input {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(5, 6, 8, .6);
  font: 400 15px/1 var(--sans); color: var(--ink); outline: none; transition: border-color .2s, background .2s;
}
.lt-panel input::placeholder { color: var(--ink-3); }
.lt-panel input:focus { border-color: var(--gold); background: rgba(212, 168, 75, .06); }
.lt-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.lt-btns .btn.ghost { border: 1px solid var(--line); }
.lt-hint { margin: 12px 0 0; font-size: 12px; color: var(--ink-3); }
.lt-preview { min-width: 0; display: grid; justify-items: center; }
/* the A4 page is 794 px wide; --k scales it to the column */
.lt-sheet { --k: 1; width: calc(794px * var(--k)); height: calc(1123px * var(--k)); position: relative; }
.lt-sheet iframe { position: absolute; top: 0; inset-inline-start: 0; width: 794px; height: 1123px; border: 0; background: transparent; transform: scale(var(--k)); transform-origin: top left; }
html[dir="rtl"] .lt-sheet iframe { transform-origin: top right; }

#tour {
  left: 50%; bottom: calc(22px + var(--safe-b)); transform: translateX(-50%); width: min(760px, calc(100vw - 24px));
  padding: 16px 18px 14px; border-radius: 18px; border: 1px solid var(--gold-line);
  background: rgba(10, 11, 14, .82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.tour-bar { display: flex; gap: 4px; margin-bottom: 12px; }
.tour-bar i { flex: 1; height: 2px; background: rgba(244, 241, 236, .14); border-radius: 2px; overflow: hidden; }
.tour-bar i b { display: block; height: 100%; width: 0; background: var(--gold); }
.tour-bar i.done b { width: 100%; }
.tour-bar i.now b { animation: seg 6s linear forwards; }
#tour.paused .tour-bar i.now b { animation-play-state: paused; }
@keyframes seg { to { width: 100%; } }
.tour-cap { margin: 0 0 12px; min-height: 2.6em; font: 400 clamp(20px, 2.4vw, 26px)/1.3 var(--serif); color: var(--ink); opacity: 0; transform: translateY(6px); }
.tour-cap.in { animation: cap .6s var(--ease) forwards; }
@keyframes cap { to { opacity: 1; transform: none; } }
.tour-ctl { display: flex; justify-content: flex-end; gap: 8px; }
.tour-ctl .btn { height: 32px; font-size: 10px; }

#tour-end { position: fixed; inset: 0; z-index: 28; display: grid; place-items: end center; padding: 0 12px calc(24px + var(--safe-b)); pointer-events: none; }
.te-panel {
  pointer-events: auto; width: min(620px, 100%); padding: 22px 22px 18px; border-radius: 18px; border: 1px solid var(--gold-line);
  background: rgba(10, 11, 14, .9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); animation: rise .5s var(--ease) both;
}
.te-panel h2 { margin: 0 0 6px; font: 400 30px/1.1 var(--serif); }
.te-panel p:not(.kicker) { margin: 0 0 16px; color: var(--ink-2); }
.te-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.te-acts .btn.ghost { border: 1px solid var(--line); }

/* ------------------------------------------------------------ animation */

@keyframes fade { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; visibility: hidden; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes chip { from { opacity: 0; transform: translateY(8px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* ---------------------------------------------------------------- tablet */

@media (max-width: 1080px) {
  /* keep the top bar on one line: the cover letter is on the welcome card, cards and classic CV */
  #top .acts [data-letter] { display: none; }
  .brand .nm i { display: none; }
}

/* ---------------------------------------------------------------- phone */

.narrow-only { display: none; }

@media (max-width: 720px) {
  .wide-only { display: none; }
  .narrow-only { display: inline; }
  .brand .nm { display: none; }
  .acts { gap: 6px; }
  .tour-cap { font-size: 19px; }
  .brand .mk { width: 38px; height: 38px; }
  .brand b { font-size: 13px; }
  .btn { height: 34px; padding: 0 12px; font-size: 10px; }
  .label { min-width: 0; flex: 1; }
  .label strong { font-size: 19px; }
  .bar { width: 100%; }
  #hint { bottom: calc(146px + var(--safe-b)); font-size: 12px; padding: 9px 14px; white-space: normal; flex-wrap: wrap; justify-content: center; row-gap: 2px; width: max-content; max-width: calc(100vw - 32px); text-align: center; }
  #hint i { display: none; }
  #hint span { flex: none; }
  #card { padding: 0; place-items: end stretch; }
  .card-panel { max-height: 94dvh; border-radius: 18px 18px 0 0; border-bottom: 0; }
  .card-body { grid-template-columns: 1fr; }
  .card-visual { min-height: 0; height: 22dvh; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .card-visual.is-image, .card-visual.is-map, .card-visual.is-portrait { height: 32dvh; }
  .v-role { padding: 16px; gap: 8px; }
  .v-role strong { font-size: 26px; }
  .mono-mark { width: 44%; }
  .v-figure { font-size: 72px; }
  .v-icon { width: 26%; box-shadow: 0 0 0 14px rgba(212, 168, 75, .04), 0 0 0 28px rgba(212, 168, 75, .025); }
  .v-langs { grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; }
  .v-langs b { font-size: 30px; }
  .v-facts { gap: 12px 24px; padding: 16px; }
  .v-facts b { font-size: 44px; }
  .card-text h2 { font-size: 32px; }
  .card-foot { padding-bottom: calc(10px + var(--safe-b)); }
  .cols { grid-template-columns: 1fr; }
  .cv-head.has-photo { grid-template-columns: 1fr; gap: 20px; }
  .cv-photo { width: 120px; order: -1; }
  .rooms { grid-template-columns: 1fr; }
  .lang-seg { height: 34px; }
  .lang-seg button { min-width: 26px; padding: 0 6px; }
  .lt-stage { grid-template-columns: 1fr; }
  .lt-panel { position: static; padding: 18px; }
  .lt-panel h2 { font-size: 26px; }
}

/* ---------------------------------------------------------------- arabic */
/* Latin text keeps its faces; Arabic falls through to Amiri and IBM Plex Sans
   Arabic. Arabic is never letter-spaced (it breaks the joins) or upper-cased. */

html[lang="ar"] {
  --serif: 'Instrument Serif', 'Amiri', Georgia, serif;
  --sans: 'Inter Tight', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  /* Arabic first here: a monospaced space opens wide gaps between Arabic words */
  --mono: 'IBM Plex Sans Arabic', 'IBM Plex Mono', ui-monospace, monospace;
}
#room-no { direction: ltr; unicode-bidi: isolate; }
html[lang="ar"] body { line-height: 1.75; }
html[lang="ar"] :is(.tk-kicker, .tk-sign, .tk-btn span, .tk-links > *, .clock, .btn, .kicker, .k, .choice span, .ticket .sub, .brand i, .label span, .card-foot button, .card-count, .tags span,
  .cv-strap, .role .when, .classic-body h3, .sites span, .classic-foot, .ld-name, #tip i, .lang-link, .lt-panel label span, .v-langs span, .v-facts span, .map text) {
  letter-spacing: 0; text-transform: none;
}
html[lang="ar"] :is(.kicker, .k, .choice span, .ticket .sub, .label span, .lt-panel label span, .classic-body h3, .card-count, .card-foot button, .role .when) { font-size: 12.5px; }
html[lang="ar"] :is(.tk-kicker, .tk-sign, .tk-links > *) { font-size: .8em; }
html[lang="ar"] .tk-btn span { font-size: .7em; }
html[lang="ar"] .btn { font-size: 13px; }
html[lang="ar"] .tk-btn b { font-size: 1.03em; }
html[lang="ar"] .tk-line { font-size: 1.09em; line-height: 1.7; }
html[lang="ar"] .tk-title { font-style: normal; }
html[lang="ar"] .card-text .lead { line-height: 1.7; }
html[lang="ar"] .card-text h2, html[lang="ar"] .lt-panel h2, html[lang="ar"] .te-panel h2 { line-height: 1.3; }
html[lang="ar"] .tour-cap { line-height: 1.55; font-size: clamp(19px, 2.1vw, 24px); }
html[lang="ar"] .label strong { font-size: 20px; line-height: 1.3; }
html[lang="ar"] .cv-contact, html[lang="ar"] .lt-panel input[data-field="org"] { unicode-bidi: plaintext; }
/* ‹ › are mirrored by the browser in right-to-left text, so the room arrows need no help */
