/* reAImagined — shared site styles. Black ground, white figure, red = intervention, gold = framework, verdigris = water/green. */
:root {
  --ink: #0b0b0c;
  --ink-2: #141416;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f2efe9;
  --muted: rgba(242, 239, 233, 0.62);
  --red: #e0382c;
  --gold: #c9a45a;
  --verd: #4aa59a;
  --font-en: 'Archivo', system-ui, sans-serif;
  --font-ar: 'Noto Naskh Arabic', 'Gulzar', serif;
  --font-ar-display: 'Gulzar', 'Noto Naskh Arabic', serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--text); font-family: var(--font-en); -webkit-font-smoothing: antialiased; }
[dir='rtl'] body, [dir='rtl'] { font-family: var(--font-ar); }
a { color: inherit; }
.wordmark { font-style: italic; font-weight: 200; letter-spacing: 0.02em; }
.wordmark b { font-style: normal; font-weight: 700; }
.eyebrow { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
[dir='rtl'] .eyebrow { letter-spacing: 0; font-size: 13px; }
button { font: inherit; color: inherit; cursor: pointer; }
.btn { border: 1px solid var(--line); background: transparent; padding: 9px 16px; border-radius: 999px; font-size: 13px; transition: background .2s, border-color .2s; }
.btn:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); }
.btn.solid { background: var(--text); color: var(--ink); border-color: var(--text); }
.btn.solid:hover { background: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- hub ---------- */
.hub { max-width: 1120px; margin: 0 auto; padding: 28px 24px 72px; }
.hub header { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.hub .wordmark { font-size: 24px; }
.hero { padding: 88px 0 56px; max-width: 760px; }
.hero h1 { font-size: clamp(34px, 6vw, 64px); line-height: 1.04; margin: 14px 0 20px; font-weight: 600; letter-spacing: -0.02em; }
[dir='rtl'] .hero h1 { font-family: var(--font-ar-display); font-weight: 400; letter-spacing: 0; line-height: 1.35; }
.hero p { font-size: 18px; line-height: 1.6; color: var(--muted); margin: 0 0 28px; }
.seasons { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 8px; }
.season { border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: var(--ink-2); text-decoration: none; display: flex; flex-direction: column; gap: 10px; min-height: 190px; position: relative; overflow: hidden; }
.season.live:hover { border-color: var(--gold); }
.season .no { font-size: 12px; color: var(--muted); letter-spacing: .2em; }
.season h3 { margin: 0; font-size: 22px; font-weight: 600; }
.season p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; flex: 1; }
.tag { display: inline-block; font-size: 11px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); align-self: flex-start; }
.tag.live { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.season.soon { opacity: .55; }
.section-title { margin: 64px 0 16px; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
[dir='rtl'] .section-title { letter-spacing: 0; font-size: 15px; }
.follow { display: flex; flex-wrap: wrap; gap: 10px; }
.nominate { border: 1px solid var(--line); border-radius: 14px; padding: 24px; background: var(--ink-2); max-width: 640px; }
.nominate label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; }
.nominate input, .nominate textarea { width: 100%; background: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; color: var(--text); font: inherit; }
.nominate textarea { min-height: 84px; resize: vertical; }
.hub footer { margin-top: 72px; font-size: 12px; color: var(--muted); line-height: 1.7; border-top: 1px solid var(--line); padding-top: 20px; }

/* ---------- map experience ---------- */
body.mapbody { overflow: hidden; }
#map { position: fixed; inset: 0; }
.panel { position: fixed; z-index: 5; top: 16px; bottom: 16px; width: 380px; background: rgba(11,11,12,.88); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; }
[dir='ltr'] .panel { left: 16px; }
[dir='rtl'] .panel { right: 16px; }
.panel-head { padding: 18px 20px 12px; border-bottom: 1px solid var(--line); }
.panel-head .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.panel-head .wordmark { font-size: 18px; text-decoration: none; }
.lang { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 4px 12px; font-size: 12px; }
.panel h1 { margin: 14px 0 4px; font-size: 24px; line-height: 1.15; font-weight: 600; letter-spacing: -.01em; }
[dir='rtl'] .panel h1 { font-family: var(--font-ar-display); font-weight: 400; letter-spacing: 0; line-height: 1.4; font-size: 26px; }
.steps { flex: 1; overflow-y: auto; padding: 8px 8px 0; scrollbar-width: thin; }
.step { width: 100%; text-align: start; background: transparent; border: 0; border-radius: 10px; padding: 12px; display: block; opacity: .55; transition: opacity .25s, background .25s; }
.step:hover { opacity: .85; }
.step.active { opacity: 1; background: rgba(255,255,255,.06); }
.step .n { font-size: 11px; letter-spacing: .2em; color: var(--gold); }
.step h2 { margin: 3px 0 0; font-size: 16px; font-weight: 600; }
.step p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); display: none; }
[dir='rtl'] .step p { font-size: 15px; line-height: 1.85; }
.step.active p { display: block; }
.panel-foot { padding: 12px 16px 14px; border-top: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 4px 11px; font-size: 12px; display: inline-flex; align-items: center; gap: 6px; opacity: .5; }
.chip.on { opacity: 1; background: rgba(255,255,255,.07); }
.chip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.nav2 { display: flex; gap: 8px; }
.nav2 .btn { flex: 1; }
.disclaimer { margin: 10px 0 0; font-size: 11px; color: var(--muted); line-height: 1.5; }

.card { position: fixed; z-index: 6; bottom: 16px; width: 360px; background: rgba(11,11,12,.94); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transform: translateY(24px); opacity: 0; pointer-events: none; transition: transform .3s, opacity .3s; }
[dir='ltr'] .card { right: 16px; }
[dir='rtl'] .card { left: 16px; }
.card.open { transform: none; opacity: 1; pointer-events: auto; }
.card .media { aspect-ratio: 16/10; background: linear-gradient(135deg, #1b1b1e, #0e0e10); position: relative; display: grid; place-items: center; color: var(--muted); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.card .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card .media .ba { position: absolute; inset: 0; }
.card .body { padding: 16px 18px 18px; }
.card h3 { margin: 4px 0 2px; font-size: 20px; }
[dir='rtl'] .card h3 { font-family: var(--font-ar-display); font-weight: 400; line-height: 1.5; }
.card .sub { color: var(--muted); font-size: 13px; }
.card p { font-size: 14px; line-height: 1.6; margin: 12px 0 0; color: rgba(242,239,233,.86); }
[dir='rtl'] .card p { font-size: 15.5px; line-height: 1.9; }
.card .close { position: absolute; top: 10px; z-index: 2; background: rgba(0,0,0,.55); border: 1px solid var(--line); border-radius: 50%; width: 30px; height: 30px; display: grid; place-items: center; }
[dir='ltr'] .card .close { right: 10px; }
[dir='rtl'] .card .close { left: 10px; }
.card .layer { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

.pin { width: 18px; height: 18px; border-radius: 50%; background: var(--red); border: 2px solid #fff; box-shadow: 0 0 0 0 rgba(224,56,44,.6); animation: pulse 2.4s infinite; cursor: pointer; transition: transform .2s; }
.pin:hover, .pin.sel { transform: scale(1.35); }
@keyframes pulse { 70% { box-shadow: 0 0 0 14px rgba(224,56,44,0); } 100% { box-shadow: 0 0 0 0 rgba(224,56,44,0); } }
.pin-label { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 11px; letter-spacing: .04em; color: #fff; text-shadow: 0 1px 3px #000, 0 0 8px #000; pointer-events: none; }
.map-label { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); text-shadow: 0 1px 3px #000, 0 0 8px #000; white-space: nowrap; pointer-events: none; }
[dir='rtl'] .map-label { letter-spacing: 0; font-size: 12px; }
.maplibregl-ctrl-attrib { background: rgba(11,11,12,.7) !important; color: var(--muted) !important; font-size: 10px; }
.maplibregl-ctrl-attrib a { color: var(--muted) !important; }
.tools { position: fixed; z-index: 5; top: 16px; display: flex; gap: 8px; }
[dir='ltr'] .tools { right: 16px; }
[dir='rtl'] .tools { left: 16px; }
.tools .btn { background: rgba(11,11,12,.85); backdrop-filter: blur(10px); }

@media (max-width: 820px) {
  .panel { max-height: 50vh; }
  .panel-head { padding: 12px 16px 8px; }
  .panel h1 { margin: 8px 0 0; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-bottom: 8px; }
  .chip { white-space: nowrap; flex: none; }
  .steps { min-height: 120px; }
  .panel-foot { padding: 10px 12px 12px; }
  .nav2 .btn { padding: 7px 12px; }
  .panel { top: auto; left: 8px !important; right: 8px !important; bottom: 8px; width: auto; max-height: 46vh; }
  .card { left: 8px !important; right: 8px !important; width: auto; bottom: calc(46vh + 16px); }
  .card .media { aspect-ratio: 16/7; }
  .tools { top: 8px; }
  .panel h1 { font-size: 19px; }
  .step p { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .pin { animation: none; } * { transition: none !important; } }

/* pin labels: only on the "six places" step, on hover, or when selected */
.pin-label { display: none; }
body.show-labels .pin-label, .pin:hover .pin-label, .pin.sel .pin-label { display: block; }

.disclaimer summary { cursor: pointer; list-style: none; text-decoration: underline; text-underline-offset: 3px; }
.disclaimer summary::-webkit-details-marker { display: none; }
.disclaimer[open] summary { margin-bottom: 6px; }

/* project card media */
.card { max-height: calc(100vh - 32px); overflow-y: auto; }
.card .media .tag-l, .card .media .tag-r { position: absolute; top: 10px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; background: rgba(0,0,0,.55); padding: 3px 8px; border-radius: 999px; z-index: 1; pointer-events: none; color: #fff; }
.card .media .tag-l { left: 10px; } .card .media .tag-r { right: 10px; }
[dir="rtl"] .card .media .tag-l { left: auto; right: 10px; } [dir="rtl"] .card .media .tag-r { right: auto; left: 10px; }
.thumbs { display: flex; gap: 6px; padding: 10px 14px 0; overflow-x: auto; scrollbar-width: none; }
.thumbs img { width: 58px; height: 42px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); cursor: pointer; opacity: .6; flex: none; transition: opacity .2s, border-color .2s; }
.thumbs img.on, .thumbs img:hover { opacity: 1; border-color: var(--gold); }
.card .media { cursor: ew-resize; }
.card .media input[type=range] { z-index: 2; }

/* Cairo Design Week banner (date-gated) */
.cdw-banner { display: block; margin: 0 0 8px; padding: 12px 18px; border: 1px solid var(--gold); border-radius: 12px; background: rgba(201,164,90,.10); color: var(--text); text-decoration: none; font-size: 14px; line-height: 1.5; }
.cdw-banner:hover { background: rgba(201,164,90,.18); }
.btn { text-decoration: none; }
