:root {
  --ink: #05070b;
  --ink-2: #08101a;
  --navy: #071426;
  --royal: #16366b;
  --paper: #f2f3f5;
  --muted: #aab4c0;
  --silver: #b7c1cf;
  --silver-deep: #738095;
  --line: rgba(210, 220, 232, .2);
  --header-h: 88px;
  --max: 1520px;
  --pad: clamp(24px, 5vw, 92px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--paper);
  background: var(--ink);
  font-family: "Amiri", Georgia, serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.reader-open,
body.menu-open { overflow: hidden; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
::selection { color: #02060b; background: #dce4ed; }

.skip-link {
  position: fixed;
  z-index: 300;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  transform: translateY(-160%);
  padding: 10px 16px;
  color: #08101a;
  background: #eef2f5;
}
.skip-link:focus { transform: none; }

.grain {
  position: fixed;
  z-index: 150;
  inset: 0;
  opacity: .045;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}
.cursor-light {
  --x: 50vw;
  --y: 50vh;
  position: fixed;
  z-index: 149;
  width: 520px;
  height: 520px;
  left: var(--x);
  top: var(--y);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: .07;
  background: radial-gradient(circle, #b9d2f0 0, transparent 67%);
  mix-blend-mode: screen;
}

.ar { direction: rtl; }
.en { direction: ltr; font-family: Georgia, "Times New Roman", serif; }
.ui-ar, .ui-en { display: inline; }
[data-language="ar"] .ui-en { display: none; }
[data-language="en"] .ui-ar { display: none; }
[data-language="ar"] .en,
[data-language="en"] .ar { display: none; }
[data-language="ar"] .world-copy h2 .en,
[data-language="en"] .world-copy h2 .ar,
[data-language="ar"] .author-copy h2 .en,
[data-language="en"] .author-copy h2 .ar { display: block; }

.site-header {
  position: fixed;
  z-index: 120;
  inset: 0 0 auto;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  padding-inline: var(--pad);
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, rgba(3, 7, 12, .88), rgba(3, 7, 12, .25));
  transition: transform .45s ease, background .35s ease, border-color .35s ease;
}
.site-header.scrolled {
  border-color: rgba(210, 220, 232, .15);
  background: rgba(3, 7, 12, .88);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .22);
  backdrop-filter: blur(18px) saturate(120%);
}
.site-header.header-hidden { transform: translateY(-110%); }
.brand {
  direction: ltr;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
}
.brand-mark {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 47px;
  font-weight: 600;
  line-height: .9;
  letter-spacing: -.1em;
  color: #e3e7eb;
}
.brand-copy { display: grid; gap: 3px; }
.brand-copy strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .2em;
  white-space: nowrap;
}
.brand-copy small {
  color: #8995a3;
  font-family: Arial, sans-serif;
  font-size: 9px;
  letter-spacing: .32em;
}
.desktop-nav { display: flex; align-items: center; gap: clamp(25px, 3vw, 58px); }
.desktop-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  color: #c7cdd4;
  font-family: "Reem Kufi", Arial, sans-serif;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: color .25s ease;
}
[data-language="en"] .desktop-nav a { font-family: Arial, sans-serif; letter-spacing: .08em; font-size: 12px; text-transform: uppercase; }
.desktop-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 -10px;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background: var(--silver);
  transition: transform .3s ease;
}
.desktop-nav a:hover { color: #fff; }
.desktop-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-tools { justify-self: end; direction: ltr; display: flex; align-items: center; gap: 12px; }
.language-toggle, .menu-toggle {
  border: 1px solid rgba(205, 216, 228, .27);
  color: #e5e9ed;
  background: rgba(6, 12, 19, .36);
  cursor: pointer;
}
.language-toggle {
  min-width: 77px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 99px;
  padding: 10px 14px;
  font: 12px/1 Arial, sans-serif;
  letter-spacing: .12em;
}
.globe { color: var(--silver); font-size: 18px; }
.menu-toggle { position: relative; display: none; width: 44px; height: 44px; border-radius: 50%; place-items: center; }
.menu-toggle span { position: absolute; width: 18px; height: 1px; background: #ecf0f3; transition: .3s ease; }
.menu-toggle span:first-child { transform: translateY(-4px); }
.menu-toggle span:last-child { transform: translateY(4px); }
.menu-open .menu-toggle span:first-child { transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  z-index: 110;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 110px 30px 50px;
  opacity: 0;
  visibility: hidden;
  background: radial-gradient(circle at 80% 20%, #10264a 0, transparent 36%), #05090f;
  transition: opacity .35s ease, visibility .35s ease;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu nav { display: grid; gap: 24px; text-align: center; }
.mobile-menu nav a { font-family: "Aref Ruqaa", serif; font-size: 34px; text-decoration: none; }
.mobile-menu nav a { display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap; }
.nav-compass-icon { display: block; width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
[data-language="en"] .mobile-menu nav a { font-family: "Cormorant Garamond", serif; }
.mobile-menu p { position: absolute; inset: auto 26px 30px; color: #8793a2; direction: ltr; text-align: center; font: italic 16px "Cormorant Garamond", serif; }

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  align-items: center;
  padding: calc(var(--header-h) + 60px) var(--pad) 90px;
}
.hero-media {
  position: absolute;
  z-index: -3;
  inset: -4%;
  background: url("../images/hero/desktop.webp") center / cover no-repeat;
  animation: hero-breathe 18s ease-in-out infinite alternate;
}
.hero-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 7, 12, .2), rgba(3, 8, 15, .48) 46%, rgba(3, 7, 12, .86) 100%),
    linear-gradient(0deg, #05070b 0, transparent 22%, transparent 74%, rgba(3, 7, 12, .55) 100%);
}
.hero-content { width: min(760px, 52vw); margin-right: 0; margin-left: auto; text-align: right; }
[data-language="en"] .hero-content { margin-right: 0; margin-left: auto; text-align: left; }
.eyebrow { display: grid; gap: 3px; margin: 0 0 22px; color: #c8d1dc; }
.eyebrow .ar { font-family: "Reem Kufi", Arial, sans-serif; font-size: 13px; letter-spacing: .05em; }
.eyebrow .en { color: #7f8da0; font: 10px/1.4 Arial, sans-serif; letter-spacing: .28em; }
.hero h1 { margin: 0; font-weight: 400; line-height: .94; text-wrap: balance; }
.hero h1 .ar { display: block; font-family: "Aref Ruqaa", serif; font-size: clamp(64px, 7.5vw, 126px); text-shadow: 0 8px 34px rgba(0, 0, 0, .42); }
.hero h1 .en { display: block; max-width: 560px; margin: 25px 0 0 auto; color: #c5ced9; font-size: clamp(23px, 2.2vw, 36px); letter-spacing: .025em; line-height: 1.05; }
.hero h1 .en { font-family: "Cormorant Garamond", Georgia, serif; }
[data-language="en"] .hero h1 .ar { font-size: clamp(30px, 3vw, 48px); color: #c5ced9; margin-bottom: 17px; }
[data-language="en"] .hero h1 .en { max-width: 780px; margin: 0; color: #f2f3f5; font-size: clamp(62px, 7vw, 116px); }
.hero-intro { max-width: 620px; margin: 28px 0 0 auto; }
[data-language="en"] .hero-intro { margin-inline: 0 auto; }
.hero-intro p { margin: 0; color: #d4dae0; font-size: clamp(17px, 1.4vw, 23px); line-height: 1.75; text-wrap: balance; }
.hero-intro .en { margin-top: 7px; color: #909cab; font-size: 16px; line-height: 1.55; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 34px; }
.button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  border: 1px solid rgba(215, 225, 237, .34);
  padding: 13px 23px;
  text-decoration: none;
  cursor: pointer;
  transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #07101b; border-color: #d6dfe8; background: linear-gradient(135deg, #eef2f5, #aab6c5); box-shadow: 0 12px 40px rgba(0, 0, 0, .24); }
.button-primary:hover { background: #fff; }
.button-ghost { color: #edf1f4; background: rgba(6, 12, 20, .28); backdrop-filter: blur(10px); }
.button-ghost:hover { border-color: #d8e1eb; background: rgba(210, 222, 235, .1); }
.text-link { color: #d2d9e0; text-underline-offset: 6px; text-decoration-color: #778497; }
.hero-quote {
  position: absolute;
  z-index: 2;
  left: var(--pad);
  right: auto;
  inset-block-end: 112px;
  width: min(380px, 28vw);
  margin: 0;
  padding-inline-start: 22px;
  border-inline-start: 1px solid rgba(215, 225, 237, .38);
}
.hero-quote p { margin: 0; color: #d5dbe1; line-height: 1.55; }
.hero-quote .ar { font-size: 24px; }
.hero-quote .en { margin-top: 5px; color: #8996a6; font-size: 15px; }
.hero-quote cite { display: block; margin-top: 14px; color: #c7d0da; direction: ltr; font: italic 20px "Cormorant Garamond", serif; }
.hero-index {
  position: absolute;
  inset: auto 50% 34px auto;
  transform: translateX(50%);
  display: flex;
  align-items: center;
  gap: 10px;
  direction: ltr;
  color: #7f8b99;
  font: 10px Arial, sans-serif;
}
.hero-index i { width: 20px; height: 1px; background: #758294; }
.hero-index i:first-of-type { width: 38px; background: #e6ebef; }
.scroll-cue { position: absolute; right: 50%; bottom: 58px; width: 24px; height: 34px; transform: translateX(50%); }
.scroll-cue span { display: block; width: 1px; height: 28px; margin: auto; background: linear-gradient(#dfe5ea, transparent); animation: scroll-cue 1.8s ease-in-out infinite; }

.manifesto {
  max-width: var(--max);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-inline: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #070b11;
}
.manifesto-line { min-height: 190px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 24px; padding: 34px 42px; border-inline-end: 1px solid var(--line); }
.manifesto-line:last-child { border-inline-end: 0; }
.manifesto-number { color: #ced7e1; font: 48px/1 "Cormorant Garamond", serif; }
.manifesto-line p { margin: 0; line-height: 1.65; }
.manifesto-line .ar { font-size: 18px; }
.manifesto-line .en { margin-top: 8px; color: #8793a2; font-size: 13px; }

.thresholds { min-height: 100svh; padding: 130px var(--pad) 100px; background: radial-gradient(circle at 50% 0, #101d31 0, #05080d 45%); overflow: hidden; }
.section-intro { max-width: 960px; margin: 0 auto 65px; text-align: center; }
.section-kicker { margin: 0 0 15px; color: #8795a6; font: 10px/1.4 Arial, sans-serif; letter-spacing: .28em; }
.section-intro h2 { margin: 0; font-weight: 400; }
.section-intro h2 .ar { display: block; font-family: "Aref Ruqaa", serif; font-size: clamp(47px, 5vw, 82px); }
.section-intro h2 .en { display: block; margin-top: 10px; color: #a9b4c1; font-size: clamp(23px, 2.2vw, 34px); }
.section-description { max-width: 680px; margin: 20px auto 0; color: #aab4bf; line-height: 1.7; }
.section-description.ar { font-size: 20px; }
.section-description.en { margin-top: 7px; font-size: 15px; }
.portal-gallery {
  direction: ltr;
  max-width: 1680px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(8, minmax(135px, 1fr));
  min-height: 540px;
  border: 1px solid rgba(208, 219, 231, .18);
  background: #05080c;
  box-shadow: 0 45px 120px rgba(0, 0, 0, .55);
}
.portal {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 15px;
  text-align: center;
  text-decoration: none;
  border-inline-end: 1px solid rgba(208, 219, 231, .17);
  background-image: linear-gradient(0deg, rgba(2, 5, 9, .98) 0, rgba(2, 5, 9, .72) 26%, transparent 66%), url("../images/worlds/seven-portals.webp");
  background-repeat: no-repeat;
  background-size: 700% 100%;
  transition: filter .35s ease, transform .35s ease;
}
.portal:last-child { border-inline-end: 0; }
.portal::before { content: ""; position: absolute; z-index: -1; inset: 0; background: rgba(2, 5, 9, .18); transition: background .35s ease, box-shadow .35s ease; }
.portal:hover { z-index: 2; filter: brightness(1.1); transform: translateY(-8px); }
.portal:hover::before { background: transparent; box-shadow: inset 0 0 0 1px rgba(231, 237, 243, .7), 0 20px 55px rgba(0, 0, 0, .55); }
.portal-1 { background-position: 0% 50%; }
.portal-2 { background-position: 16.667% 50%; }
.portal-3 { background-position: 33.333% 50%; }
.portal-4 { background-position: 50% 50%; }
.portal-5 { background-position: 66.667% 50%; }
.portal-6 { background-position: 83.333% 50%; }
.portal-7 { background-position: 100% 50%; }
.portal-no { position: absolute; top: 18px; left: 18px; color: rgba(231, 237, 243, .78); font: 11px Arial, sans-serif; letter-spacing: .16em; }
.portal-title { direction: rtl; display: grid; color: #f2f3f5; font-family: "Aref Ruqaa", serif; font-size: 28px; line-height: 1.05; }
.portal-title small { direction: ltr; min-height: 28px; margin-top: 7px; color: #aeb9c6; font: 10px/1.25 Arial, sans-serif; letter-spacing: .09em; }
.portal-title-long { font-size: 20px; }
.portal-title-long small { font-size: 8px; }
.portal-enter { direction: rtl; margin-top: 14px; color: #8e9aaa; font-size: 13px; opacity: 0; transform: translateY(6px); transition: .3s ease; }
.portal:hover .portal-enter { opacity: 1; transform: none; }
.portal-enter b { margin-inline-start: 4px; color: #d7dee7; font-weight: 400; }
.swipe-note { display: none; text-align: center; color: #8793a0; font-size: 13px; }

.book-world {
  --accent: #c7d0dc;
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-top: 1px solid rgba(218, 227, 237, .13);
  background: #05080e;
}
.world-bg, .world-overlay { position: absolute; z-index: -2; inset: 0; }
.world-bg { background-position: center; background-size: cover; transform: scale(1.02); transition: transform 1.8s ease; }
.book-world:hover .world-bg { transform: scale(1.045); }
.world-overlay { z-index: -1; background: linear-gradient(90deg, rgba(2, 5, 9, .08), rgba(2, 5, 9, .35) 48%, rgba(2, 5, 9, .93) 76%, #030609 100%), linear-gradient(0deg, #04070c 0, transparent 26%, transparent 78%, rgba(3, 6, 10, .32)); }
.world-layout {
  direction: ltr;
  width: 100%;
  max-width: var(--max);
  min-height: 100svh;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(340px, .9fr) minmax(460px, 1.1fr);
  align-items: center;
  gap: clamp(50px, 7vw, 120px);
  padding: calc(var(--header-h) + 65px) var(--pad) 75px;
}
.book-stage { position: relative; place-self: center; width: min(27vw, 390px); aspect-ratio: 3 / 4.48; perspective: 1600px; }
.book-cover { position: relative; z-index: 3; width: 100%; height: 100%; object-fit: cover; border-radius: 2px 7px 7px 2px; transform: perspective(1200px) rotateY(-7deg) rotateX(1deg); transform-origin: center; box-shadow: -8px 7px 0 rgba(210, 220, 230, .13), 30px 45px 75px rgba(0, 0, 0, .72); transition: transform .3s ease; }
[dir="ltr"] .book-cover { transform: perspective(1200px) rotateY(7deg) rotateX(1deg); }
.book-cover::after { content: ""; position: absolute; inset: 0; }
.book-shadow { position: absolute; z-index: 1; inset: auto 7% -7% 1%; height: 14%; border-radius: 50%; background: rgba(0, 0, 0, .75); filter: blur(24px); transform: rotate(-7deg); }
.stage-orbit { position: absolute; z-index: 0; inset: -13%; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 50%; transform: rotate(-18deg); opacity: .45; }
.stage-orbit::before, .stage-orbit::after { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px var(--accent); }
.stage-orbit::before { top: 16%; right: 12%; }
.stage-orbit::after { bottom: 9%; left: 20%; }
.world-copy { direction: rtl; max-width: 690px; margin-inline-start: auto; text-align: right; }
[data-language="en"] .world-copy { direction: ltr; text-align: left; }
.world-index { direction: ltr; display: flex; justify-content: space-between; align-items: center; margin: 0 0 24px; padding-bottom: 12px; border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); color: var(--accent); font: 10px Arial, sans-serif; letter-spacing: .26em; }
.world-copy h2 { margin: 0; font-weight: 400; line-height: 1; }
.world-copy h2 .ar { display: block; font-family: "Aref Ruqaa", serif; font-size: clamp(55px, 6vw, 96px); }
.world-copy h2 .en { display: block; margin-top: 11px; color: #bcc6d1; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(27px, 2.8vw, 43px); letter-spacing: .02em; line-height: 1.08; }
[data-language="en"] .world-copy h2 .en { margin: 0; color: #f2f3f5; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(51px, 5.2vw, 84px); }
[data-language="en"] .world-copy h2 .ar { margin-top: 10px; color: #aeb9c6; font-size: clamp(28px, 3vw, 43px); }
[data-language="en"] .world-copy h2,
[data-language="en"] .author-copy h2 { display: flex; flex-direction: column; }
[data-language="en"] .world-copy h2 .en,
[data-language="en"] .author-copy h2 .en { order: 1; }
[data-language="en"] .world-copy h2 .ar,
[data-language="en"] .author-copy h2 .ar { order: 2; }
[data-language="ar"] .world-minus101 .world-copy h2 .en,
[data-language="en"] .world-minus101 .world-copy h2 .ar { display: none; }
.world-copy .genres { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 22px 0 0; color: var(--accent); }
.genres span { font-size: 15px; }
.genres .en { color: #99a5b3; font-size: 13px; }
.world-copy blockquote { margin: 27px 0 0; padding-inline-start: 22px; border-inline-start: 2px solid var(--accent); }
.world-copy blockquote span { display: block; }
.world-copy blockquote .ar { font-size: 25px; line-height: 1.5; }
.world-copy blockquote .en { margin-top: 6px; color: #9faab7; font-size: 18px; font-style: italic; line-height: 1.4; }
[data-language="en"] .world-copy blockquote .en { margin-top: 0; color: #eef1f4; font-size: 23px; }
.world-description { max-width: 640px; margin-top: 26px; }
.world-description p { margin: 0; color: #d1d7dd; line-height: 1.82; }
.world-description .ar { font-size: 17px; }
.world-description .en { margin-top: 11px; color: #aeb8c4; font-size: 16px; line-height: 1.72; }
.book-facts { direction: ltr; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 34px; margin-top: 27px; }
.book-facts span { display: grid; gap: 3px; }
.book-facts b { color: #e7ebef; font: 21px/1 "Cormorant Garamond", serif; }
.book-facts small { color: #8995a2; font: 10px/1.35 Arial, sans-serif; letter-spacing: .08em; }
.world-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.world-actions .button { min-height: 58px; }
.preview-button { min-width: 190px; display: grid; gap: 0; border: 0; }
.preview-button span { font-size: 15px; }
.preview-button small { font: 8px Arial, sans-serif; letter-spacing: .16em; }
.play-button { direction: ltr; min-width: 205px; font: 12px Arial, sans-serif; letter-spacing: .05em; }
.play-button.pending { cursor: default; opacity: .55; }

.world-checkmate { --accent: #bdc9d7; --bg-x-mobile: 20%; }
.world-checkmate.world-ready .world-bg, .no-js .world-checkmate .world-bg { background-image: url("../images/worlds/checkmate.webp"); }
.world-identity { --accent: #d69a55; --bg-x-mobile: 37%; }
.world-identity.world-ready .world-bg, .no-js .world-identity .world-bg { background-image: url("../images/worlds/identity.webp"); }
.world-minus101 { --accent: #b6d8e4; --bg-x-mobile: 27%; }
.world-minus101.world-ready .world-bg, .no-js .world-minus101 .world-bg { background-image: url("../images/worlds/minus101.webp"); }
.world-the-call { --accent: #ec7048; --bg-x-mobile: 19%; }
.world-the-call.world-ready .world-bg, .no-js .world-the-call .world-bg { background-image: url("../images/worlds/the-call.webp"); }
.world-ring { --accent: #d05667; --bg-x-mobile: 37%; }
.world-ring.world-ready .world-bg, .no-js .world-ring .world-bg { background-image: url("../images/worlds/ring.webp"); }
.world-exploitation { --accent: #89c7ee; --bg-x-mobile: 19%; }
.world-exploitation.world-ready .world-bg, .no-js .world-exploitation .world-bg { background-image: url("../images/worlds/exploitation.webp"); }
.world-beyond { --accent: #cbd65a; --bg-x-mobile: 21%; color: #fff; }
.world-beyond.world-ready .world-bg, .no-js .world-beyond .world-bg { background-image: url("../images/worlds/beyond-familiar.webp"); }
.world-beyond .world-overlay { background: linear-gradient(90deg, rgba(17, 16, 6, .14), rgba(14, 14, 7, .45) 48%, rgba(6, 7, 4, .91) 76%, #040504 100%); }

.author {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(300px, .7fr) minmax(480px, 1.3fr);
  gap: clamp(50px, 8vw, 140px);
  align-items: center;
  min-height: 900px;
  padding: 120px var(--pad);
  background: radial-gradient(circle at 18% 46%, #142844 0, transparent 27%), linear-gradient(135deg, #04070b, #091321 65%, #05070a);
}
.author::before { content: ""; position: absolute; inset: 0; opacity: .14; background: url("../images/hero/desktop.webp") center/cover; mix-blend-mode: luminosity; }
.author-visual { position: relative; z-index: 1; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgba(207, 219, 232, .17); border-radius: 50%; }
.author-visual::before, .author-visual::after { content: ""; position: absolute; border: 1px solid rgba(207, 219, 232, .13); border-radius: 50%; }
.author-visual::before { inset: 8%; }
.author-visual::after { inset: 22%; }
.author-visual span { position: relative; z-index: 2; margin-inline-end: .1em; font: 600 clamp(95px, 12vw, 190px)/1 "Cormorant Garamond", serif; letter-spacing: -.11em; color: transparent; -webkit-text-stroke: 1px #bec9d4; text-shadow: 0 0 50px rgba(188, 209, 233, .15); }
.author-copy { position: relative; z-index: 1; max-width: 840px; }
.author-copy h2 { margin: 0; font-weight: 400; }
.author-copy h2 .ar { display: block; font-family: "Aref Ruqaa", serif; font-size: clamp(62px, 6vw, 96px); }
.author-copy h2 .en { display: block; color: #aeb9c6; font-size: clamp(28px, 3vw, 45px); }
[data-language="en"] .author-copy h2 .en { color: #f2f3f5; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(58px, 6vw, 92px); }
[data-language="en"] .author-copy h2 .ar { margin-top: 8px; color: #aeb9c6; font-size: clamp(28px, 3vw, 43px); }
.author-copy blockquote { margin: 25px 0 40px; color: #c9d1da; }
.author-copy blockquote span { display: block; }
.author-copy blockquote .ar { font-size: 27px; }
.author-copy blockquote .en { margin-top: 5px; color: #8491a1; font-size: 19px; font-style: italic; }
.bio-columns { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: 780px; }
.bio-columns p { margin: 0; color: #c3cad1; line-height: 1.95; }
.bio-columns .ar { font-size: 18px; }
.bio-columns .en { color: #929daa; font-size: 15px; line-height: 1.75; }

.journey {
  position: relative;
  min-height: 600px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 100px var(--pad);
  text-align: center;
  background: linear-gradient(rgba(2, 5, 9, .44), rgba(2, 5, 9, .88)), url("../images/hero/desktop.webp") center 63%/cover;
}
.journey p { max-width: 980px; margin: 0; text-shadow: 0 5px 25px #000; }
.journey .ar { font-family: "Aref Ruqaa", serif; font-size: clamp(43px, 5vw, 82px); line-height: 1.35; }
.journey .en { margin-top: 16px; color: #b5bfca; font-size: clamp(25px, 2.7vw, 42px); }
.journey .button { margin-top: 40px; }

footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 35px;
  padding: 65px var(--pad) 35px;
  border-top: 1px solid var(--line);
  background: #030609;
}
.footer-brand { direction: ltr; display: flex; align-items: center; gap: 15px; }
.footer-brand > span { margin-inline-end: .08em; color: #d8dee5; font: 600 48px/1 "Cormorant Garamond", serif; letter-spacing: -.1em; }
.footer-brand div { display: grid; gap: 3px; }
.footer-brand b { font: 11px Arial, sans-serif; letter-spacing: .18em; }
.footer-brand small { color: #788492; font: 8px Arial, sans-serif; letter-spacing: .18em; }
.footer-phrase { text-align: center; }
.footer-phrase p { margin: 0; }
.footer-phrase .ar { font-size: 18px; }
.footer-phrase .en { color: #7f8b99; font-size: 14px; }
.footer-email { direction: ltr; color: #bac4cf; font: 12px Arial, sans-serif; text-underline-offset: 5px; }
.footer-note, .copyright { grid-column: 1/-1; margin: 18px 0 0; text-align: center; color: #6f7b88; font-size: 13px; }
.copyright { margin-top: 0; direction: ltr; font: 10px Arial, sans-serif; letter-spacing: .08em; }

.world-rail {
  position: fixed;
  z-index: 90;
  top: 50%;
  inset-inline-end: 16px;
  transform: translateY(-50%);
  display: grid;
  gap: 4px;
  padding: 7px 4px;
  max-height: calc(100dvh - 30px);
  border: 1px solid rgba(200, 215, 230, .15);
  border-radius: 24px;
  background: rgba(3, 8, 14, .72);
  backdrop-filter: blur(12px);
}
.world-rail a { direction: ltr; width: 32px; height: 32px; display: grid; place-items: center; color: #a5b3c3; border: 1px solid transparent; border-radius: 50%; font: 10px Arial, sans-serif; text-decoration: none; transition: .25s; }
.world-rail a:hover, .world-rail a.active { color: #f1f3f5; border-color: #aeb9c6; background: rgba(8, 15, 24, .65); }
.world-rail a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.world-rail svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.rail-step { font: 7px/1 Arial, sans-serif; letter-spacing: .04em; }
.rail-caption { position: absolute; bottom: calc(100% + 9px); inset-inline-end: 0; width: max-content; max-width: 225px; padding: 5px 11px; color: #d9e2ec; background: rgba(3, 8, 14, .9); border-radius: 4px; font-size: 13px; line-height: 1.5; pointer-events: none; }
section[id], footer[id] { scroll-margin-top: 24px; }

.reader {
  position: fixed;
  inset: 12px;
  width: calc(100% - 24px);
  height: calc(100vh - 24px);
  height: calc(100dvh - 24px);
  max-width: 1500px;
  max-height: none;
  margin: auto;
  padding: 0;
  color: var(--paper);
  border: 1px solid rgba(217, 226, 237, .3);
  background: rgba(4, 8, 13, .97);
  box-shadow: 0 40px 140px #000;
  overflow: hidden;
}
.reader::backdrop { background: rgba(0, 0, 0, .82); backdrop-filter: blur(13px); }
.reader[open] { display: grid; grid-template-areas: "head" "tools" "page" "note" "foot" "progress"; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto auto 2px; }
.reader-header { grid-area: head; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 68px; padding: 10px 20px; border-bottom: 1px solid var(--line); }
.reader-header > div { min-width: 0; }
.reader-header p { margin: 0 0 3px; color: #a1afbf; font-size: 12px; line-height: 1.4; }
.reader-header h2 { margin: 0; font-size: 18px; font-weight: 400; line-height: 1.5; overflow-wrap: anywhere; }
.reader-close { flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; font: 28px/1 Arial, sans-serif; }
.reader-toolbar { grid-area: tools; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 18px; padding: 6px 18px; border-bottom: 1px solid var(--line); }
.reader-zoom-controls { direction: ltr; display: flex; gap: 5px; align-items: center; }
.reader-toolbar button, .reader-retry, .reader-skip-blank { min-height: 38px; min-width: 38px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 4px; background: rgba(210, 225, 245, .06); color: #e0e8ef; cursor: pointer; font-size: 13px; }
.reader-toolbar button:disabled { opacity: .3; cursor: default; }
.reader-toolbar .reader-zoom-in, .reader-toolbar .reader-zoom-out { font: 22px Arial, sans-serif; }
.reader-toolbar .is-selected { border-color: #b7c1cf; background: rgba(210, 225, 245, .14); }
.reader-zoom-level { min-width: 48px; text-align: center; color: #b9c7d7; font: 12px Arial, sans-serif; }
.reader-original { color: #d6e0ec; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.reader-body { grid-area: page; position: relative; min-width: 0; min-height: 0; overflow: hidden; background: radial-gradient(circle at 50% 40%, #152137, #04070c 80%); }
.reader-viewport { direction: ltr; position: absolute; inset: 0; overflow: auto; overscroll-behavior: contain; padding: 16px; touch-action: pan-x pan-y pinch-zoom; }
.reader-sheet { position: relative; display: block; margin: 0 auto; background: #fff; box-shadow: 0 10px 40px rgba(0, 0, 0, .55); }
.reader-sheet[hidden], .reader-status[hidden], .reader-blank-note[hidden], .reader-retry[hidden] { display: none; }
.reader-sheet canvas { display: block; width: 100%; height: 100%; max-width: none; }
.reader-status { position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; background: rgba(4, 8, 14, .86); text-align: center; }
.page-loading { color: #dae5f0; font-size: 16px; line-height: 1.6; }
.reader-blank-note { grid-area: note; margin: 0; padding: 6px 18px; color: #b8c6d6; border-top: 1px solid var(--line); background: #0a1420; font-size: 12px; line-height: 1.6; }
.reader-skip-blank { min-height: 30px; margin-inline-start: 12px; font-size: 12px; }
.reader-arrow { width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid var(--line); border-radius: 50%; background: rgba(2, 6, 10, .5); cursor: pointer; font: 30px/1 Arial, sans-serif; }
.reader-arrow:disabled { opacity: .22; cursor: default; }
.reader-footer { grid-area: foot; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 66px; padding: 9px 20px; border-top: 1px solid var(--line); }
.reader-pagination { display: flex; align-items: center; gap: 12px; }
.reader-page-label { direction: ltr; display: flex; align-items: center; gap: 9px; color: #b5c3d3; font-size: 13px; }
.reader-page-select { direction: ltr; min-height: 40px; min-width: 64px; padding: 4px 8px; color: #fff; background: #122033; border: 1px solid #65758a; border-radius: 3px; font: 15px Arial, sans-serif; }
.reader-progress { grid-area: progress; height: 2px; background: rgba(206, 216, 228, .17); }
.reader-progress span { display: block; width: 0; height: 100%; background: #dce3ea; transition: width .25s ease; }
.reader-play { direction: ltr; display: inline-flex; align-items: center; gap: 8px; color: #c7d0db; font: 11px Arial, sans-serif; text-decoration: none; }
.reader-play.pending { opacity: .4; }
.reader button:focus-visible, .reader a:focus-visible, .reader select:focus-visible { outline: 2px solid #e2edfb; outline-offset: 3px; }

.notice {
  position: fixed;
  z-index: 250;
  inset: auto 50% 24px auto;
  width: min(520px, calc(100vw - 30px));
  transform: translate(50%, 30px);
  padding: 15px 20px;
  color: #dce3e9;
  border: 1px solid rgba(214, 224, 236, .28);
  background: rgba(7, 14, 23, .94);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .5);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: .3s ease;
}
.notice.show { opacity: 1; visibility: visible; transform: translate(50%, 0); }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .85s ease, transform .85s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes hero-breathe { from { transform: scale(1.01); } to { transform: scale(1.045); } }
@keyframes scroll-cue { 0%, 100% { opacity: .25; transform: scaleY(.55); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }
@keyframes reader-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

@media (min-width: 1800px) {
  .hero-content { width: 780px; }
  .book-stage { width: 420px; }
  .world-layout { max-width: 1700px; }
}

@media (max-width: 1180px) {
  :root { --pad: clamp(24px, 4vw, 55px); }
  .site-header { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .menu-toggle { display: grid; }
  .hero-content { width: min(680px, 64vw); }
  .hero-quote { width: 31vw; }
  .portal-gallery { grid-template-columns: repeat(8, minmax(145px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; }
  .portal { min-width: 145px; scroll-snap-align: start; }
  .swipe-note { display: block; }
  .world-layout { grid-template-columns: minmax(280px, .75fr) minmax(420px, 1.25fr); gap: 45px; }
  .book-stage { width: min(31vw, 345px); }
  .world-copy h2 .ar { font-size: clamp(50px, 6vw, 77px); }
  .world-copy h2 .en { font-size: clamp(25px, 2.7vw, 36px); }
  .bio-columns { gap: 28px; }
}

@media (max-width: 820px) {
  :root { --header-h: 72px; --pad: 22px; }
  .site-header { padding-inline: 20px; }
  .brand { gap: 11px; }
  .brand-mark { font-size: 38px; }
  .brand-copy strong { font-size: 10px; }
  .brand-copy small { font-size: 7px; }
  .language-toggle { min-width: 64px; padding: 9px 11px; }
  .hero { min-height: max(100svh, 780px); align-items: end; padding: 125px 24px 150px; }
  .hero-media { inset: -2%; background-image: url("../images/hero/mobile.webp"); background-position: 47% center; }
  .hero-shade { background: linear-gradient(0deg, #04070b 4%, rgba(3, 7, 12, .86) 37%, rgba(3, 7, 12, .16) 72%, rgba(3, 7, 12, .5) 100%); }
  .hero-content { width: 100%; margin: 0; }
  .hero h1 .ar { font-size: clamp(52px, 15vw, 72px); }
  .hero h1 .en { margin-top: 17px; font-size: 25px; }
  [data-language="en"] .hero h1 .en { font-size: clamp(48px, 13vw, 66px); }
  .hero-intro p { font-size: 17px; }
  .hero-intro .en { font-size: 14px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 13px; }
  .hero-actions .button { width: 100%; }
  .hero-actions .text-link { align-self: center; }
  .hero-quote { display: none; }
  .hero-index { bottom: 38px; gap: 6px; }
  .hero-index i { width: 13px; }
  .scroll-cue { display: none; }
  .manifesto { grid-template-columns: 1fr; }
  .manifesto-line { min-height: 135px; padding: 28px; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .manifesto-line:last-child { border-bottom: 0; }
  .manifesto-number { font-size: 40px; }
  .thresholds { padding: 88px 18px 70px; }
  .section-intro { margin-bottom: 40px; padding-inline: 12px; }
  .section-intro h2 .ar { font-size: 47px; }
  .section-intro h2 .en { font-size: 23px; }
  .portal-gallery { margin-inline: -18px; padding-inline: 18px; border-inline: 0; grid-template-columns: repeat(8, 72vw); min-height: 520px; gap: 12px; background: transparent; }
  .portal { min-width: 72vw; border: 1px solid rgba(208, 219, 231, .18); background-size: 700% 100%; padding: 26px 20px; }
  .portal-title { font-size: 36px; }
  .portal-title-long { font-size: 27px; }
  .portal-title small, .portal-title-long small { font-size: 10px; }
  .portal-enter { opacity: 1; transform: none; }
  .book-world { min-height: auto; }
  .world-layout { min-height: 0; grid-template-columns: 1fr; gap: 38px; padding: 105px 23px 70px; }
  .world-overlay { background: linear-gradient(0deg, #030609 6%, rgba(3, 6, 9, .92) 47%, rgba(3, 6, 9, .44) 70%, rgba(3, 6, 9, .2)); }
  .world-bg { background-position: var(--bg-x-mobile, 24%) top; }
  .book-stage { width: min(62vw, 295px); margin-top: 40px; }
  .world-copy { max-width: none; margin: 0; }
  .world-index { margin-bottom: 18px; }
  .world-copy h2 .ar { font-size: clamp(49px, 14vw, 70px); }
  .world-copy h2 .en { font-size: clamp(24px, 7vw, 34px); }
  .world-copy blockquote .ar { font-size: 23px; }
  .world-description .ar { font-size: 17px; }
  .book-facts { gap: 20px; justify-content: space-between; }
  .world-actions { display: grid; grid-template-columns: 1fr; }
  .world-actions .button { width: 100%; }
  .world-beyond .world-overlay { background: linear-gradient(0deg, #050403 6%, rgba(7, 5, 1, .93) 48%, rgba(7, 5, 1, .4) 72%, rgba(5, 4, 1, .18)); }
  .author { min-height: 0; grid-template-columns: 1fr; gap: 45px; padding: 90px 24px; }
  .author-visual { width: min(75vw, 390px); margin: auto; }
  .author-copy h2 .ar { font-size: 62px; }
  .bio-columns { grid-template-columns: 1fr; gap: 20px; }
  .journey { min-height: 520px; padding: 80px 23px; }
  footer { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 24px; }
  .footer-note, .copyright { grid-column: auto; margin: 0; }
  footer { padding-bottom: 115px; }
  .world-rail { direction: ltr; inset: auto 0 0; top: auto; transform: none; display: flex; justify-content: flex-start; gap: 3px; padding: 5px 8px calc(5px + env(safe-area-inset-bottom, 0px)); border-radius: 0; max-height: none; overflow-x: auto; scrollbar-width: none; background: rgba(3, 8, 14, .95); }
  .world-rail a { flex: 0 0 40px; width: 40px; height: 40px; }
  .rail-caption { position: fixed; bottom: calc(61px + env(safe-area-inset-bottom, 0px)); left: 50%; right: auto; transform: translateX(-50%); max-width: calc(100vw - 40px); font-size: 12px; }
  .reader { inset: 0; width: 100%; height: 100vh; height: 100dvh; max-width: none; max-height: none; border: 0; }
  .reader-header { min-height: 62px; padding: 8px 12px; }
  .reader-toolbar { padding: 6px 10px; gap: 5px; }
  .reader-toolbar button { min-height: 40px; padding-inline: 8px; }
  .reader-original { display: block; width: 100%; padding-block: 3px; font-size: 12px; }
  .reader-viewport { padding: 10px; }
  .reader-footer { padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); gap: 7px; }
  .reader-pagination { gap: 7px; }
  .reader-page-label { gap: 5px; }
  .reader-blank-note { padding: 5px 12px; font-size: 11px; }
  .reader-play { font-size: 10px; }
  .cursor-light { display: none; }
}

@media (max-width: 430px) {
  .brand-copy { display: none; }
  .hero { min-height: max(100svh, 760px); }
  .hero h1 .ar { font-size: 54px; }
  .portal-gallery { grid-template-columns: repeat(8, 79vw); }
  .portal { min-width: 79vw; }
  .book-facts { grid-template-columns: repeat(3, 1fr); gap: 9px; }
  .book-facts small { font-size: 8px; }
  .reader-header h2 { font-size: 16px; }
  .reader-play span { display: inline; max-width: 65px; line-height: 1.4; }
}

@media (max-width: 360px) {
  .reader-page-label > .ui-ar, .reader-page-label > .ui-en { display: none; }
  .reader-toolbar button { padding-inline: 5px; font-size: 12px; }
  .reader-toolbar .reader-zoom-in, .reader-toolbar .reader-zoom-out { min-width: 34px; }
  .reader-zoom-controls { gap: 3px; }
}

@media (max-height: 620px) and (min-width: 821px) {
  .world-rail { gap: 2px; padding-block: 4px; }
  .world-rail a { width: 28px; height: 28px; }
  .reader-header { min-height: 52px; padding-block: 5px; }
  .reader-toolbar { padding-block: 3px; }
  .reader-footer { min-height: 54px; padding-block: 4px; }
}

@media (max-height: 440px) and (min-width: 821px) {
  .world-rail { direction: ltr; inset: auto auto 5px 50%; transform: translateX(-50%); display: flex; max-width: calc(100vw - 20px); max-height: none; gap: 3px; padding: 4px 7px; border-radius: 22px; }
  .world-rail a { flex: 0 0 30px; width: 30px; height: 30px; }
  .rail-caption { left: 50%; right: auto; transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-media, .world-bg { transform: none !important; }
}

/* The eighth world uses its own cover artwork; the seven original portal slices stay intact. */
.portal.portal-8 {
  background-image: linear-gradient(0deg, rgba(2, 9, 8, .98) 0, rgba(2, 9, 8, .68) 30%, rgba(4, 17, 12, .12) 76%), url("../images/worlds/fursa.webp");
  background-size: cover;
  background-position: 50% 56%;
}
.world-fursa { --accent: #a4c5ab; --bg-x-mobile: 50%; background: #06120f; }
.world-fursa.world-ready .world-bg, .no-js .world-fursa .world-bg {
  background-image: url("../images/worlds/fursa.webp");
  background-size: cover;
  background-position: center 58%;
  background-repeat: no-repeat;
}
.world-fursa .world-overlay {
  background: linear-gradient(90deg, rgba(3, 14, 10, .30), rgba(3, 14, 10, .65) 37%, #06120f 63%), linear-gradient(0deg, #040b08 0, transparent 22%, transparent 78%, rgba(3, 14, 10, .65));
}
@media (max-width: 820px) {
  .world-fursa.world-ready .world-bg, .no-js .world-fursa .world-bg { background-size: cover; background-position: center; }
  .world-fursa .world-overlay { background: linear-gradient(0deg, #06120f 0, rgba(3, 14, 10, .92) 42%, rgba(3, 14, 10, .35) 78%, rgba(3, 14, 10, .65)); }
}
