:root {
  --paper: #f7f9f5;
  --ink: #153f31;
  --green: #147644;
  --muted: #6b776e;
  --red: #c54336;
  --font-brand: 'Syne', 'Syne Fallback', Arial, sans-serif;
  --font-body: 'Instrument Sans', 'Instrument Sans Fallback', Arial, sans-serif;
  --font-arabic: 'Kufam', 'Kufam Fallback', Tahoma, sans-serif;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-label: 600;
  --weight-heading: 700;
  --weight-hero: 800;
  --type-hero: clamp(2.75rem, 3.8vw, 4.375rem);
  --type-section: clamp(2.5rem, 4vw, 3.5rem);
  --type-body: 1.125rem;
  --type-nav: 1.25rem;
  --type-action: 1.0625rem;
  --type-caption: .8125rem;
  --type-label: .6875rem;
  --tracking-display: -.045em;
  --tracking-heading: -.04em;
  --tracking-label: .075em;
  --leading-body: 1.6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--type-body);
  font-weight: var(--weight-regular);
  line-height: var(--leading-body);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, textarea { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--red); outline-offset: 6px; }
button, nav, .eyebrow, .text-link, .small-note, .chapter-detail > span,
.world-label, .coordinates, .scroll-cue, .world-tools > span, .journey-nav {
  font-family: var(--font-brand);
  font-weight: var(--weight-label);
}
:lang(ar) {
  font-family: var(--font-arabic);
  font-weight: var(--weight-label);
  font-feature-settings: normal;
  letter-spacing: 0;
  line-height: 1.5;
  direction: rtl;
  unicode-bidi: isolate;
  text-align: start;
}

/* The existing wordmark, miniature world and editorial reading column. */
header {
  height: 102px; position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4.2%; background: rgba(247,249,245,.9); backdrop-filter: blur(12px);
}
.brand {
  display: flex; align-items: center; gap: 13px;
  font-family: var(--font-brand); font-size: 27px;
  font-weight: var(--weight-heading); line-height: 1; letter-spacing: -.025em;
}
.brand small {
  display: block; margin-top: 8px; font-size: 9px;
  font-weight: var(--weight-label); letter-spacing: .065em; line-height: 1.2;
}
.logo-crop { height: 46px; width: 42px; overflow: hidden; position: relative; mix-blend-mode: multiply; flex-shrink: 0; }
.logo-crop img { position: absolute; width: 73px; max-width: none; left: -15px; top: -13px; }
nav { display: flex; gap: 38px; align-items: center; font-size: var(--type-nav); letter-spacing: -.025em; line-height: 1.2; }
nav a { min-height: 44px; display: inline-flex; align-items: center; }
nav a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 7px; }
.nav-contact { padding: 12px 0; }
.nav-contact span { margin-left: 20px; }
.menu-toggle { display: none; }
#world { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#scene { display: block; width: 100%; height: 100%; pointer-events: auto; }
#fallback { position: absolute; inset: 0; }
#fallback img { width: 100%; height: 100%; object-fit: cover; }
.chapter {
  height: 110svh; min-height: 760px; position: relative; pointer-events: none;
  display: flex; align-items: center; padding: 100px 7.2% 80px;
}
.chapter .copy { pointer-events: auto; max-width: 440px; transition: opacity .35s; }
.opening { height: 100svh; min-height: 720px; }
.opening .copy { padding-bottom: 48px; max-width: 550px; }
.eyebrow {
  font-size: var(--type-label); font-weight: var(--weight-label);
  line-height: 1.55; letter-spacing: var(--tracking-label);
  display: flex; align-items: center; gap: 10px; margin: 0 0 30px;
}
.red-square { height: 6px; width: 6px; background: var(--red); flex-shrink: 0; }
h1, h2 {
  font-family: var(--font-brand); font-style: normal;
  font-weight: var(--weight-heading); letter-spacing: var(--tracking-heading);
  margin: 0 0 30px; line-height: 1.04;
}
h1 { font-size: var(--type-hero); font-weight: var(--weight-hero); letter-spacing: var(--tracking-display); line-height: 1.04; }
.hero-line, .heading-line { display: block; white-space: nowrap; }
.hero-emphasis { font-size: 1.44em; line-height: 1.08; margin-block: .035em .025em; }
.hero-connection { font-size: .89em; color: var(--green); }
h2 { font-size: var(--type-section); }
h2 em { font-style: normal; color: var(--green); }
.copy > p:not(.eyebrow), [role=tabpanel] > p {
  font-size: var(--type-body); line-height: var(--leading-body);
  max-width: 370px; color: #657168;
}
.intro { margin: 0 0 28px; }
.text-link {
  display: inline-flex; align-items: center; gap: 35px;
  font-size: var(--type-action); letter-spacing: -.025em; line-height: 1.3;
  border-bottom: 1px solid #96ad99; padding: 0 0 11px; min-height: 40px;
}
.text-link span { font-size: 21px; transition: transform .3s; }
.text-link:hover span { transform: translate(4px,4px); }
.opening-note { position: absolute; right: 7%; bottom: 112px; display: flex; align-items: center; gap: 22px; }
.opening-note > span { font-size: 38px; min-inline-size: 2.5em; }
.opening-note p { font-size: 14px; line-height: 1.65; color: var(--muted); }
.scroll-cue {
  position: absolute; bottom: 45px; left: 7.2%; font-size: 10px;
  line-height: 1.4; letter-spacing: .065em; display: flex; align-items: center;
  gap: 15px; pointer-events: auto;
}
.scroll-cue span { font-size: 25px; width: 35px; height: 44px; display: grid; place-items: center; }
.world-label { position: fixed; top: 136px; left: 54%; font-size: 10px; line-height: 1.5; letter-spacing: .075em; z-index: 3; pointer-events: none; }
.live-dot { display: inline-block; width: 5px; height: 5px; background: var(--green); border-radius: 50%; margin-right: 9px; }
.coordinates { position: fixed; right: 32px; top: 48%; writing-mode: vertical-rl; font-size: 10px; letter-spacing: .075em; color: #6f7d71; z-index: 4; font-variant-numeric: tabular-nums; }
.journey-nav { position: fixed; left: 25px; top: 45%; display: flex; flex-direction: column; gap: 15px; z-index: 10; }
.journey-nav a { width: 16px; height: 5px; background: #cbd4c9; position: relative; transition: width .3s, background .3s; }
.journey-nav a.active { background: var(--green); width: 24px; }
.journey-nav a span { position: absolute; font-size: 10px; line-height: 1; font-variant-numeric: tabular-nums; left: 31px; top: -3px; opacity: 0; }
.journey-nav a.active span { opacity: 1; }
.world-tools { position: fixed; bottom: 30px; right: 4.2%; z-index: 12; display: flex; align-items: center; gap: 9px; }
.world-tools > span { font-size: 10px; letter-spacing: .065em; line-height: 1.4; margin-right: 12px; }
.world-tools button { background: transparent; border: 0; width: 44px; height: 44px; font-size: 24px; color: var(--ink); }
.world-tools button:hover { color: var(--green); }
.chapter-detail { margin-top: 34px; max-width: 360px; }
.chapter-detail > span, .small-note { font-size: var(--type-label); letter-spacing: var(--tracking-label); line-height: 1.65; color: var(--muted); }
.chapter-detail p { font-size: 16px; line-height: 1.6; margin-top: 12px; }
.network-tabs { display: flex; margin: 30px 0 22px; gap: 25px; }
.network-tabs button { border: 0; background: none; color: #79847b; padding: 15px 0; font-size: var(--type-action); letter-spacing: -.025em; line-height: 1.3; flex: 1; text-align: start; }
.network-tabs button span { float: right; margin-left: 12px; }
.network-tabs button[aria-selected=true] { color: var(--ink); box-shadow: 0 2px var(--green); }
[role=tabpanel] { min-height: 160px; }
.contact-actions { display: flex; gap: 28px; margin: 30px 0 24px; }
.contact-actions button { background: none; color: var(--ink); border: 0; border-bottom: 1px solid currentColor; padding: 12px 0; font-size: var(--type-action); letter-spacing: -.025em; line-height: 1.35; min-width: 145px; text-align: start; transition: color .2s, transform .2s; }
.contact-actions button span { float: right; margin-left: 20px; }
.contact-actions button:hover { color: var(--green); transform: translateY(-3px); }

footer { position: relative; z-index: 5; background: var(--paper); border-top: 1px solid #cbd6c8; padding: 40px 4.2%; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-size: var(--type-caption); line-height: 1.6; color: var(--muted); }
.footer-wordmark { font-family: var(--font-brand); font-size: 24px; font-weight: var(--weight-heading); color: var(--ink); letter-spacing: -.03em; line-height: 1.1; }
.footer-wordmark span { font-size: 20px; display: block; margin-top: 12px; }
footer p { line-height: 1.65; }
footer a:not(.footer-wordmark) { color: var(--ink); font-family: var(--font-brand); font-weight: var(--weight-label); letter-spacing: -.02em; }
#hotspot { display: none; position: fixed; z-index: 15; background: var(--ink); color: white; padding: 12px 16px; font-size: 14px; line-height: 1.5; pointer-events: none; max-width: 230px; }
dialog { border: 0; padding: 45px; max-width: 520px; background: var(--paper); color: var(--ink); width: calc(100% - 35px); }
dialog::backdrop { background: #123c3080; backdrop-filter: blur(8px); }
dialog h2 { font-size: 38px; line-height: 1.1; margin-bottom: 24px; }
dialog p { font-size: 16px; line-height: 1.6; }
dialog .close { position: absolute; right: 16px; top: 12px; border: 0; background: none; font-size: 27px; color: var(--ink); min-width: 44px; min-height: 44px; }
textarea { width: 100%; resize: vertical; background: transparent; border: 0; border-bottom: 1px solid #a5b5a3; padding: 14px 0; font-family: var(--font-body); font-weight: var(--weight-regular); font-size: 16px; line-height: 1.65; color: var(--ink); }
#copy-enquiry { background: none; color: var(--ink); border: 0; border-bottom: 1px solid currentColor; padding: 14px 0; margin-top: 15px; font-size: var(--type-action); letter-spacing: -.025em; line-height: 1.3; }
body.overview .copy, body.overview .opening-note { opacity: 0; pointer-events: none; }
body.overview .world-label { left: 50%; transform: translateX(-50%); }

@media (min-width: 601px) {
  #world { clip-path: inset(0 0 0 42%); }
  body.overview #world { clip-path: none; }
}
@media (min-width: 1600px) {
  .chapter { padding-left: 10%; }
  .opening .copy { max-width: 620px; }
}
@media (min-width: 601px) and (max-width: 1100px) {
  :root { --type-hero: 4vw; --type-section: 4.3vw; --type-body: 1.0625rem; --type-nav: 1.125rem; --type-label: .625rem; }
  .chapter { padding-left: 8%; }
  .chapter .copy { max-width: 38vw; }
  .opening .copy { max-width: 40vw; }
  .copy > p:not(.eyebrow) { max-width: 34vw; }
  .eyebrow { letter-spacing: .055em; }
  .coordinates { right: 14px; }
  .world-label { left: 52%; font-size: 9px; }
  .opening-note { right: 5%; }
  .journey-nav { left: 15px; }
  .journey-nav a span { display: none; }
  .chapter-detail > span { font-size: 9px; }
  .network-tabs { gap: 18px; }
  .network-tabs button, .contact-actions button { font-size: 15px; }
  .contact-actions { gap: 20px; }
  .contact-actions button { min-width: 0; }
  .contact-actions button span { margin-left: 12px; }
  #world { clip-path: inset(0 0 0 47%); }
}
@media (max-width: 800px) {
  header { height: 86px; }
  nav { display: none; position: absolute; top: 85px; left: 0; right: 0; background: var(--paper); padding: 28px; flex-direction: column; align-items: flex-start; gap: 16px; border-bottom: 1px solid #cbd6c8; font-size: 25px; }
  nav.open { display: flex; }
  .menu-toggle { display: block; background: none; border: 0; color: var(--ink); font-size: 28px; min-width: 44px; min-height: 44px; }
  footer { display: grid; grid-template-columns: 1fr 1fr; }
  footer .credit { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  :root { --type-hero: clamp(1.9rem, 9.9vw, 3.3rem); --type-section: clamp(2rem, 10.5vw, 3.25rem); --type-body: 1rem; --type-action: 1rem; --type-label: .625rem; --tracking-display: -.055em; --tracking-heading: -.045em; --leading-body: 1.6; }
  html { scroll-padding-top: 86px; }
  header { height: 78px; padding: 0 23px; }
  .brand { font-size: 24px; gap: 8px; }
  .brand small { font-size: 8px; margin-top: 7px; }
  .logo-crop { transform: scale(.85); transform-origin: left center; width: 35px; }
  nav { top: 77px; }
  .chapter, .opening { height: 105svh; min-height: 760px; padding: 120px 27px 0; align-items: flex-start; }
  .opening { height: 100svh; }
  .chapter .copy { max-width: 100%; }
  .opening .copy { padding: 0 0 20px; }
  .eyebrow { letter-spacing: .055em; margin-bottom: 22px; }
  h1 { line-height: 1.08; margin-bottom: 24px; }
  .hero-emphasis { line-height: 1.1; margin-block: .055em .035em; }
  h2 { line-height: 1.1; margin-bottom: 24px; }
  .copy > p:not(.eyebrow), [role=tabpanel] > p { max-width: 335px; }
  .desktop { display: none; }
  .intro { max-width: 335px; margin-bottom: 19px; }
  .text-link { padding-bottom: 7px; gap: 20px; min-height: 38px; }
  .text-link span { font-size: 18px; }
  .opening-note { display: none; }
  .world-label { top: auto; bottom: 89px; left: 27px; font-size: 9px; letter-spacing: .045em; }
  .coordinates { display: none; }
  .scroll-cue { left: 27px; bottom: 25px; font-size: 8px; gap: 5px; letter-spacing: .035em; }
  .scroll-cue span { width: 20px; height: 44px; font-size: 22px; }
  .world-tools { bottom: 24px; right: 14px; gap: 0; }
  .world-tools > span { display: none; }
  .journey-nav { left: auto; right: 12px; top: 43%; gap: 12px; }
  .journey-nav a { width: 4px; height: 4px; border-radius: 50%; }
  .journey-nav a.active { width: 4px; height: 13px; border-radius: 3px; }
  .journey-nav a span { display: none; }
  .chapter-detail { display: none; }
  .network-tabs { margin: 16px 0; max-width: 335px; gap: 20px; }
  [role=tabpanel] { max-width: 335px; min-height: 160px; }
  .contact-actions { margin: 22px 0; gap: 25px; }
  .contact-actions button { min-width: 0; padding: 14px 0; }
  .contact-actions button span { margin-left: 12px; }
  footer { padding: 30px 25px; gap: 24px; }
  .footer-wordmark { font-size: 23px; }
  dialog { padding: 35px 25px; }
  dialog h2 { font-size: clamp(1.5rem, 7.6vw, 2.5rem); }
  body.overview .world-label { left: 27px; transform: none; }
  #fallback img { object-fit: contain; object-position: center 70%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
