/* Pixel Map — showcase site.
   Type: Readex Pro for headings (clean, open Arabic + Latin), IBM Plex Sans Arabic for text,
   Noto Naskh Arabic / Instrument Serif italic for the one accented phrase.
   Arabic never gets letter-spacing (it breaks the joins) and keeps generous line-height.
   Logical properties throughout, so Arabic (rtl) and English (ltr) share one stylesheet. */
:root {
  --night: #05141a;
  --deep: #0a2730;
  --teal: #0e5e6f;
  --gold: #e9a23b;
  --gold-soft: #f4c77c;
  --sand: #f3e9d7;
  --ink: #eef3f4;
  --muted: #9fb0b6;
  --line: rgb(232 238 240 / 0.12);
  --display: "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --body: "IBM Plex Sans Arabic", "Readex Pro", system-ui, sans-serif;
  --accent: "Noto Naskh Arabic", "Readex Pro", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(16px, 5vw, 72px);
  color-scheme: dark;
}
html[lang="en"] { --accent: "Instrument Serif", Georgia, serif; }
* { box-sizing: border-box; }
html { background: var(--night); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--night); color: var(--ink);
  font-family: var(--body); font-size: clamp(15px, 1.05vw, 17px); line-height: 1.85;
  overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
html[lang="en"] body { line-height: 1.65; }
img, video { display: block; max-inline-size: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.wrap { padding-inline: var(--pad); max-inline-size: 1440px; margin-inline: auto; }
::selection { background: var(--gold); color: var(--night); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: 0; }
html[lang="en"] :is(h1, h2, h3) { letter-spacing: -0.02em; }
.acc { font-family: var(--accent); font-style: normal; font-weight: 600; color: var(--gold-soft); }
html[lang="en"] .acc { font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
html.locked { overflow: hidden; }

.grain {
  position: fixed; inset: -50%; z-index: 300; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { to { transform: translate(-8%, 6%); } }

/* ---------------------------------------------------------------- gate */
.gate {
  position: fixed; inset: 0; z-index: 200; background: #03090c; overflow: hidden;
  display: grid; place-items: center;
}
html:not(.js) .gate { display: none; }
.gate-tiles {
  display: grid; grid-template-columns: repeat(4, clamp(70px, 11vw, 168px)); gap: clamp(6px, 0.8vw, 12px);
  transform: rotate(-4deg); margin-block-end: 10vh;
}
.gate-tiles i { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; opacity: 0; transform: scale(0.6); background: #0b1a20; }
.gate-tiles img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.gate-ui { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 26px var(--pad) 30px; pointer-events: none; }
.gate-brand { margin: 0; font-family: "Readex Pro"; font-weight: 600; letter-spacing: 0.32em; font-size: 12px; direction: ltr; text-align: center; color: var(--muted); }
.gate-line {
  position: absolute; inset-inline: 0; inset-block-end: 22vh; margin: 0; text-align: center;
  font-family: var(--display); font-weight: 500; font-size: clamp(26px, 3.4vw, 50px); line-height: 1.4; opacity: 0;
}
.gate-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.gate-count { font-family: "Readex Pro"; font-weight: 300; font-size: clamp(56px, 9vw, 140px); line-height: 0.8; direction: ltr; font-variant-numeric: tabular-nums; color: var(--ink); }
.gate-enter {
  pointer-events: auto; position: relative; inline-size: 112px; block-size: 112px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--display); font-weight: 500; font-size: 17px;
  opacity: 0; transform: scale(0.8); transition: background 0.4s, color 0.4s;
}
.gate-enter svg { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; rotate: -90deg; }
.gate-enter circle { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 296; stroke-dashoffset: 296; }
.gate-enter:not(:disabled):hover { background: var(--gold); color: var(--night); }
.gate-enter:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.gate-hint { font-size: 12px; color: var(--muted); max-inline-size: 140px; text-align: end; opacity: 0; }
@media (max-width: 640px) {
  .gate-tiles { grid-template-columns: repeat(3, 26vw); }
  .gate-tiles i:nth-child(n+10) { display: none; }
  .gate-line { inset-block-end: 26vh; }
  .gate-enter { inline-size: 92px; block-size: 92px; }
  .gate-hint { display: none; }
}

/* ---------------------------------------------------------------- header */
.top {
  position: fixed; inset-inline: 0; inset-block-start: 0; z-index: 60;
  display: flex; align-items: center; gap: 24px; padding: 18px var(--pad);
  transition: background 0.4s, padding 0.4s, transform 0.6s var(--ease);
}
.top.scrolled { background: rgb(5 20 26 / 0.72); backdrop-filter: blur(14px) saturate(1.3); padding-block: 12px; border-block-end: 1px solid var(--line); }
.top.away { transform: translateY(-110%); }
.brand { display: flex; align-items: center; gap: 10px; font-family: "Readex Pro"; font-weight: 600; letter-spacing: 0.24em; font-size: 13px; direction: ltr; }
.brand svg { inline-size: 28px; block-size: 28px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; }
.nav { display: flex; gap: 30px; margin-inline-start: auto; font-size: 14px; color: var(--muted); }
.nav a { position: relative; transition: color 0.3s; }
.nav a::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: -4px; block-size: 1px; background: var(--gold); transform: scaleX(0); transition: transform 0.4s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 99px; padding: 3px; font-size: 12px; font-weight: 600; background: rgb(5 20 26 / 0.35); backdrop-filter: blur(8px); }
.lang span { padding: 4px 10px; border-radius: 99px; transition: background 0.3s, color 0.3s; }
html[lang="ar"] .lang-ar, html[lang="en"] .lang-en { background: var(--ink); color: var(--night); }
@media (max-width: 820px) { .nav { display: none; } .lang { margin-inline-start: auto; } }

/* ---------------------------------------------------------------- buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 99px; font-family: var(--display); font-weight: 500; font-size: 15px; line-height: 1;
  overflow: hidden; isolation: isolate; transition: transform 0.4s var(--ease), color 0.3s; white-space: nowrap;
}
.btn i { font-style: normal; transition: transform 0.4s var(--ease); }
.btn.gold { background: var(--gold); color: var(--night); }
.btn.gold::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sand); transform: translateY(101%); transition: transform 0.5s var(--ease); }
.btn.gold:hover::before { transform: none; }
.btn.ghost { border: 1px solid rgb(232 238 240 / 0.35); backdrop-filter: blur(8px); background: rgb(5 20 26 / 0.25); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn:hover i { transform: translate(-3px, 3px); }
html[lang="en"] .btn:hover i { transform: translate(3px, 3px); }
.btn:active { transform: scale(0.97); }
.btn:focus-visible, .lang:focus-visible, .world-row:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; block-size: 100svh; min-block-size: 600px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-gl, .hero-lines { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; }
.hero-media picture img { object-fit: cover; }
.hero-gl { opacity: 0; transition: opacity 0.8s; }
.hero.gl-on .hero-gl { opacity: 1; }
.hero.gl-on picture { visibility: hidden; }
.hero-lines { pointer-events: none; }
.hero-lines path { fill: rgb(233 162 59 / 0); stroke: var(--gold-soft); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; filter: drop-shadow(0 0 5px rgb(233 162 59 / 0.7)); }
.clouds { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.cl { position: absolute; inline-size: auto; block-size: auto; max-inline-size: none; opacity: 0.95; will-change: transform, opacity; filter: brightness(0.95); }
.cl.c1 { inline-size: 80vw; inset-inline-start: -18vw; inset-block-start: -8vh; }
.cl.c2 { inline-size: 85vw; inset-inline-end: -22vw; inset-block-start: 10vh; }
.cl.c3 { inline-size: 70vw; inset-inline-start: 4vw; inset-block-end: -14vh; }
.cl.c4 { inline-size: 42vw; inset-inline-end: 12vw; inset-block-end: 2vh; }
.cl.c5 { inline-size: 75vw; inset-inline-start: 20vw; inset-block-start: 24vh; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(0deg, var(--night) 0%, rgb(5 20 26 / 0.55) 18%, rgb(5 20 26 / 0.12) 42%, rgb(5 20 26 / 0) 62%, rgb(5 20 26 / 0.14) 100%); }
.hero-copy { position: relative; z-index: 2; padding: 0 var(--pad) clamp(96px, 14vh, 150px); max-inline-size: 1180px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; font-size: 13px; color: var(--sand); padding: 7px 15px; border: 1px solid rgb(243 233 215 / 0.25); border-radius: 99px; backdrop-filter: blur(10px); background: rgb(5 20 26 / 0.3); }
.dot { inline-size: 7px; block-size: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgb(61 220 132 / 0.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgb(61 220 132 / 0); } }
.hero-title { font-weight: 600; font-size: clamp(48px, 8vw, 128px); line-height: 1.22; margin: 0; }
html[lang="en"] .hero-title { line-height: 1; font-weight: 500; letter-spacing: -0.035em; }
.hero-title .line { display: block; overflow: hidden; padding-block: 0.04em 0.1em; }
.hero-title .line > span { display: inline-block; }
.hero-title .acc { font-weight: 600; }
.hero-sub { max-inline-size: 620px; color: #d2dde0; font-size: clamp(15px, 1.2vw, 18.5px); margin: 18px 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.corner { position: absolute; z-index: 2; font-size: 12px; color: rgb(238 243 244 / 0.7); display: flex; align-items: center; gap: 12px; }
.c-top { inset-block-start: 92px; inset-inline-end: var(--pad); direction: ltr; letter-spacing: 0.2em; font-family: "Readex Pro"; }
.c-bottom { inset-block-end: 30px; inset-inline-end: var(--pad); }
.scroll-line { inline-size: 1px; block-size: 46px; background: rgb(238 243 244 / 0.25); position: relative; overflow: hidden; }
.scroll-line::after { content: ""; position: absolute; inset-inline: 0; inset-block-start: 0; block-size: 40%; background: var(--gold); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { from { transform: translateY(-100%); } to { transform: translateY(260%); } }
@media (max-width: 640px) { .c-top { display: none; } .c-bottom { inset-block-end: 18px; } .hero-copy { padding-block-end: 80px; } }

/* ---------------------------------------------------------------- shared type */
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 13px; color: var(--gold); margin: 0 0 18px; font-weight: 500; }
.kicker::before { content: ""; inline-size: 26px; block-size: 1px; background: var(--gold); }
html[lang="en"] .kicker { letter-spacing: 0.16em; text-transform: uppercase; font-size: 12px; }
.section-title { font-weight: 600; font-size: clamp(32px, 4.4vw, 66px); line-height: 1.3; margin: 0 0 48px; max-inline-size: 17ch; }
html[lang="en"] .section-title { line-height: 1.06; max-inline-size: 18ch; }
.lead { color: #c3d0d4; font-size: clamp(16px, 1.25vw, 19px); max-inline-size: 560px; }
.reveal-words .w { display: inline-block; }

/* ---------------------------------------------------------------- statement */
.statement { padding-block: clamp(110px, 18vh, 200px) clamp(60px, 10vh, 110px); }
.big-statement { font-weight: 500; font-size: clamp(30px, 4.2vw, 64px); line-height: 1.45; margin: 0 0 34px; max-inline-size: 23ch; }
html[lang="en"] .big-statement { line-height: 1.15; }
.statement-sub { margin: 0; color: var(--muted); font-size: clamp(16px, 1.3vw, 20px); }

/* ---------------------------------------------------------------- dive */
.dive { position: relative; }
.dive-pin { position: relative; block-size: 100svh; overflow: hidden; background: #03090c; }
.dive-stage { position: absolute; inset: 0; }
.dive-map { position: absolute; inset: 0; will-change: transform; }
.dive-map img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; }
.dive-hud .crumbs, .dive-hud .dive-card { transition: opacity 0.4s; }
.dive-hud.is-map .crumbs, .dive-hud.is-map .dive-card { opacity: 0; }
.dive-layer { position: absolute; inset: 0; visibility: hidden; will-change: transform, clip-path; transform-origin: 50% 50%; }
.dive-layer[data-step="0"] { visibility: visible; }
.dive-layer > img, .dive-layer > svg { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; }
.dive-layer svg path { fill: rgb(233 162 59 / 0); stroke: var(--gold-soft); stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgb(233 162 59 / 0.55)); }
.dive-layer svg path.target { stroke: #fff; stroke-width: 3; }
.dive-final-bg { position: absolute; inset: 0; }
.dive-final-bg img { inline-size: 100%; block-size: 100%; object-fit: cover; filter: blur(18px) brightness(0.45); transform: scale(1.1); }
.dive-screen { position: absolute; left: 50%; top: 50%; inline-size: min(84vw, 1180px, 128svh); opacity: 0; border-radius: 16px; overflow: hidden; background: #0d1015; border: 1px solid rgb(255 255 255 / 0.14); box-shadow: 0 50px 140px rgb(0 0 0 / 0.65); }
.dive-screen-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #161a20; direction: ltr; }
.dive-screen-bar i { inline-size: 10px; block-size: 10px; border-radius: 50%; background: #3a3f48; }
.dive-screen-bar span { margin-inline-start: 14px; font-size: 12px; color: #8e98a3; font-family: "Readex Pro"; }
.dive-screen img { inline-size: 100%; }
.dive-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(130% 100% at 50% 45%, transparent 50%, rgb(3 9 12 / 0.75)), linear-gradient(0deg, rgb(3 9 12 / 0.7), transparent 30%); }
.dive-cursor { position: absolute; inset-block-start: 0; inset-inline-start: 0; z-index: 4; inline-size: 0; block-size: 0; opacity: 0; pointer-events: none; }
html[dir="rtl"] .dive-cursor { inset-inline-start: auto; left: 0; }
.dive-cursor .ring { position: absolute; inline-size: 46px; block-size: 46px; margin: -23px; border-radius: 50%; border: 2px solid #fff; background: rgb(233 162 59 / 0.45); box-shadow: 0 6px 24px rgb(0 0 0 / 0.45); backdrop-filter: blur(2px); }
.dive-cursor .ripple { position: absolute; inline-size: 46px; block-size: 46px; margin: -23px; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; }
.dive-tag { position: absolute; left: 0; top: 0; z-index: 4; padding: 8px 16px; border-radius: 99px; background: rgb(5 20 26 / 0.78); backdrop-filter: blur(10px); border: 1px solid rgb(233 162 59 / 0.6); font-family: var(--display); font-weight: 500; font-size: 15px; white-space: nowrap; opacity: 0; pointer-events: none; }
.dive-words { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.dw { position: absolute; inset: 0; }
.dw b { position: absolute; font-family: var(--display); font-weight: 600; font-size: clamp(38px, 6.6vw, 112px); line-height: 1.25; color: #fff; text-shadow: 0 4px 40px rgb(0 0 0 / 0.55); opacity: 0; white-space: nowrap; }
html[lang="en"] .dw b { letter-spacing: -0.03em; line-height: 1; font-weight: 500; }
.dw b:first-child { inset-block-start: clamp(120px, 17vh, 170px); inset-inline-start: var(--pad); }
.dw b:last-child { inset-block-end: clamp(140px, 20vh, 200px); inset-inline-end: var(--pad); font-family: var(--accent); color: var(--gold-soft); }
html[lang="en"] .dw b:last-child { font-style: italic; font-weight: 400; }
.dive-hud { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.crumbs { position: absolute; inset-block-start: 84px; inset-inline: 0; margin: 0 auto; padding: 0; list-style: none; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.crumbs li { font-family: var(--display); font-size: 13px; padding: 6px 14px; border-radius: 99px; background: rgb(5 20 26 / 0.55); backdrop-filter: blur(10px); border: 1px solid var(--line); color: var(--muted); transition: background 0.4s, color 0.4s, border-color 0.4s; }
.crumbs li.done { color: var(--gold-soft); border-color: rgb(233 162 59 / 0.35); }
.crumbs li.on { background: var(--gold); color: var(--night); border-color: var(--gold); }
.dive-card { position: absolute; inset-block-end: 34px; inset-inline-start: var(--pad); display: flex; align-items: center; gap: 18px; padding: 14px 22px 14px 14px; border-radius: 20px; background: rgb(5 20 26 / 0.6); backdrop-filter: blur(16px) saturate(1.2); border: 1px solid var(--line); inline-size: min(440px, calc(100vw - 32px)); }
html[dir="rtl"] .dive-card { padding: 14px 14px 14px 22px; }
.dive-n { display: block; block-size: 52px; overflow: hidden; flex: none; inline-size: 64px; border-radius: 14px; background: rgb(233 162 59 / 0.14); }
.dive-n-roll { display: flex; flex-direction: column; will-change: transform; }
.dive-n-roll b { display: grid; place-items: center; block-size: 52px; font-family: "Readex Pro"; font-weight: 600; font-size: 22px; color: var(--gold); }
.dive-desc { position: relative; flex: 1; min-block-size: 3.4em; }
.dive-desc p { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; font-size: 15px; line-height: 1.6; opacity: 0; transition: opacity 0.45s, transform 0.45s var(--ease); transform: translateY(8px); }
.dive-desc p.on { opacity: 1; transform: none; }
.dive-rail { position: absolute; inset-inline: 0; inset-block-end: 0; z-index: 5; block-size: 3px; background: rgb(255 255 255 / 0.08); }
.dive-rail span { display: block; block-size: 100%; inline-size: 100%; background: var(--gold); transform-origin: 100% 50%; transform: scaleX(0); }
html[dir="ltr"] .dive-rail span { transform-origin: 0 50%; }
@media (max-width: 820px) {
  .crumbs { inset-block-start: 72px; gap: 4px; padding-inline: 10px; }
  .crumbs li { font-size: 11px; padding: 4px 9px; }
  .dw b:first-child { inset-block-start: 128px; }
  .dw b:last-child { inset-block-end: 150px; }
  .dive-card { inset-block-end: 18px; inset-inline: 16px; inline-size: auto; }
  .dive-screen { inline-size: 92vw; }
}

/* ---------------------------------------------------------------- worlds */
.worlds { position: relative; padding-block: clamp(110px, 16vh, 190px) clamp(70px, 10vh, 120px); }
.worlds-head .section-title { max-inline-size: 20ch; }
.world-list { list-style: none; margin-block: 0; counter-reset: w; }
.world { position: relative; border-block-start: 1px solid var(--line); }
.world:last-child { border-block-end: 1px solid var(--line); }
.world-bg { position: absolute; inset: 0; overflow: hidden; clip-path: inset(50% 0 50% 0); transition: clip-path 0.8s var(--ease); pointer-events: none; }
.world-bg img { inline-size: 100%; block-size: 100%; object-fit: cover; opacity: 0.32; transform: scale(1.15); transition: transform 1.6s var(--ease); }
.world-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--night), transparent 40%, transparent 60%, var(--night)); }
.world.on .world-bg { clip-path: inset(0 0 0 0); }
.world.on .world-bg img { transform: scale(1); }
.world-row { position: relative; inline-size: 100%; display: grid; grid-template-columns: 70px 1fr auto auto; align-items: center; gap: 24px; padding-block: clamp(26px, 4.4vh, 46px); text-align: start; }
.w-no { font-family: "Readex Pro"; font-size: 14px; color: var(--gold); }
.w-name { font-family: "Readex Pro"; font-weight: 600; font-size: clamp(38px, 7vw, 116px); line-height: 1; letter-spacing: -0.03em; direction: ltr; text-align: start; transition: transform 0.7s var(--ease), color 0.5s; }
html[dir="rtl"] .w-name { text-align: end; }
.w-kind { font-family: var(--display); font-size: clamp(14px, 1.2vw, 17px); color: var(--muted); transition: color 0.5s; }
.w-go { font-family: var(--display); font-size: 14px; padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line); transition: background 0.4s, color 0.4s, border-color 0.4s; }
.world.on .w-name { color: var(--gold-soft); transform: translateX(-14px); }
html[dir="ltr"] .world.on .w-name { transform: translateX(14px); }
.world.on .w-kind { color: var(--ink); }
.world.on .w-go { background: var(--gold); color: var(--night); border-color: var(--gold); }
.world-row { transition: opacity 0.5s; }
.world-list:has(.world.on) .world:not(.on) .world-row { opacity: 0.4; }
.world-more { position: relative; display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease); }
.world-more > * { overflow: hidden; }
.world.on .world-more { grid-template-rows: 1fr; }
.world-more p { margin: 0; padding-inline-start: 94px; padding-block-end: 0; max-inline-size: 780px; color: #c9d5d8; }
.world.on .world-more p { padding-block-end: 30px; }
.world-inline { display: none; }
.world-float {
  position: fixed; left: 0; top: 0; z-index: 50; inline-size: clamp(320px, 30vw, 480px); aspect-ratio: 16 / 9;
  border-radius: 16px; overflow: hidden; pointer-events: none; opacity: 0; transform: scale(0.6);
  box-shadow: 0 30px 90px rgb(0 0 0 / 0.6); border: 1px solid rgb(255 255 255 / 0.14); background: #0b0f14;
}
.world-float video { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; opacity: 0; transition: opacity 0.35s; }
.world-float video.on { opacity: 1; }
.wf-rec { position: absolute; inset-block-start: 10px; left: 10px; display: flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 99px; background: rgb(0 0 0 / 0.55); font-family: "Readex Pro"; font-size: 10px; letter-spacing: 0.16em; font-weight: 600; }
.wf-rec i { inline-size: 7px; block-size: 7px; border-radius: 50%; background: #ff4d4d; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
@media (hover: none), (max-width: 820px) {
  .world-float { display: none; }
  .world-row { grid-template-columns: 34px 1fr auto; gap: 12px; }
  .w-kind { grid-column: 2 / 4; grid-row: 2; margin-block-start: -4px; }
  .w-go { grid-column: 3; grid-row: 1; }
  .w-name { font-size: clamp(28px, 8.4vw, 60px); white-space: nowrap; }
  html[dir="rtl"] .w-name { text-align: start; }
  .world-more { grid-template-rows: 1fr; }
  .world-more p { padding-inline-start: 0; padding-block-end: 14px; font-size: 15px; }
  .world-inline { display: block; inline-size: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; margin-block-end: 28px; border: 1px solid var(--line); background: #0b0f14; }
  .world-list:has(.world.on) .world:not(.on) .world-row { opacity: 1; }
  .world.on .w-name { transform: none; }
}

/* ---------------------------------------------------------------- inside (3D float) */
.inside { position: relative; }
.inside-pin { position: relative; block-size: 100svh; overflow: hidden; perspective: 900px; perspective-origin: 50% 50%; background: radial-gradient(80% 70% at 50% 50%, #0b2a33, var(--night) 70%); }
.inside-space { position: absolute; inset: 0; transform-style: preserve-3d; }
.inside-space figure {
  position: absolute; left: 50%; top: 50%; margin: 0; inline-size: clamp(240px, 28vw, 480px);
  will-change: transform, opacity; transform-style: preserve-3d;
}
.inside-space figure > img { inline-size: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; box-shadow: 0 30px 80px rgb(0 0 0 / 0.5); border: 1px solid rgb(255 255 255 / 0.1); }
.inside-space figcaption { position: absolute; inset-block-end: 12px; inset-inline-start: 12px; padding: 5px 13px; border-radius: 99px; background: rgb(5 20 26 / 0.7); backdrop-filter: blur(10px); font-family: var(--display); font-size: 13px; }
.inside-copy { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; text-align: center; padding-inline: var(--pad); pointer-events: none; }
.inside-copy .kicker { justify-self: center; }
.inside-title { font-weight: 600; font-size: clamp(40px, 6.4vw, 104px); line-height: 1.3; margin: 0; text-shadow: 0 6px 50px rgb(0 0 0 / 0.6); }
html[lang="en"] .inside-title { line-height: 1.02; letter-spacing: -0.035em; }
.inside-sub { margin: 18px auto 0; max-inline-size: 520px; color: #d0dbde; text-shadow: 0 2px 20px rgb(0 0 0 / 0.8); }

/* ---------------------------------------------------------------- how it's made */
.make { position: relative; }
.make-pin { min-block-size: 100svh; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(30px, 5vw, 80px); align-items: center; padding-block: 90px 40px; }
.make-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.make-steps li { display: flex; gap: 18px; padding: 16px 18px; border-radius: 16px; opacity: 0.38; transition: opacity 0.5s, background 0.5s; }
.make-steps li.on { opacity: 1; background: rgb(233 162 59 / 0.08); }
.make-steps li > span { flex: none; display: grid; place-items: center; inline-size: 38px; block-size: 38px; border-radius: 50%; border: 1px solid rgb(233 162 59 / 0.5); color: var(--gold); font-family: "Readex Pro"; font-weight: 500; }
.make-steps li.on > span { background: var(--gold); color: var(--night); }
.make-steps b { font-family: var(--display); font-weight: 500; font-size: clamp(18px, 1.5vw, 22px); display: block; line-height: 1.5; }
.make-steps p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.make-stage { position: relative; }
.studio { border-radius: 16px; overflow: hidden; background: #10141a; border: 1px solid rgb(255 255 255 / 0.12); box-shadow: 0 40px 120px rgb(0 0 0 / 0.55); direction: ltr; }
.studio-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #171c23; }
.studio-bar i { inline-size: 10px; block-size: 10px; border-radius: 50%; background: #3a3f48; }
.studio-bar span { margin-inline-start: 12px; font-family: "Readex Pro"; font-size: 12px; color: #8e98a3; }
.studio-body { display: grid; grid-template-columns: 54px 1fr; }
.studio-side { display: grid; align-content: start; gap: 10px; padding: 14px 12px; background: #12171d; border-inline-end: 1px solid rgb(255 255 255 / 0.06); }
.studio-side b { block-size: 30px; border-radius: 8px; background: #1d232b; }
.studio-side b.on { background: rgb(233 162 59 / 0.35); }
.studio-canvas { position: relative; aspect-ratio: 16 / 9.4; margin: 14px; border-radius: 10px; overflow: hidden; background: repeating-conic-gradient(#151a20 0 25%, #12161b 0 50%) 0 0 / 22px 22px; }
.drop { position: absolute; inset: 14px; border: 2px dashed rgb(233 162 59 / 0.45); border-radius: 10px; display: grid; place-items: center; color: var(--gold-soft); font-family: var(--display); font-size: 15px; }
.studio-img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; opacity: 0; }
.studio-svg { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; }
.studio-svg path { fill: rgb(233 162 59 / 0); stroke: var(--gold); stroke-width: 3; filter: drop-shadow(0 0 4px rgb(233 162 59 / 0.8)); vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.studio-svg circle { fill: #fff; stroke: var(--gold); stroke-width: 2; vector-effect: non-scaling-stroke; }
.share { position: absolute; inset-inline-start: -4%; inset-block-end: -9%; display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 18px; border-radius: 18px; background: rgb(10 30 37 / 0.88); backdrop-filter: blur(14px); border: 1px solid rgb(233 162 59 / 0.45); box-shadow: 0 24px 60px rgb(0 0 0 / 0.5); opacity: 0; direction: ltr; }
.share-link { display: flex; align-items: center; gap: 10px; font-family: "Readex Pro"; font-size: 14px; }
.share-dot { inline-size: 8px; block-size: 8px; border-radius: 50%; background: #3ddc84; }
.share-qr { inline-size: 74px !important; block-size: 74px !important; padding: 6px !important; border-radius: 10px !important; }
.share-phone { position: absolute; inset-inline-end: -3%; inset-block-end: -14%; inline-size: clamp(120px, 13vw, 190px); border-radius: 26px; padding: 7px; background: #0c1014; border: 1px solid rgb(255 255 255 / 0.14); box-shadow: 0 30px 80px rgb(0 0 0 / 0.6); opacity: 0; }
.share-phone img { border-radius: 20px; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; inline-size: 100%; }
@media (max-width: 900px) {
  .make-pin { grid-template-columns: 1fr; padding-block: 90px 110px; align-content: center; gap: 26px; }
  .make-pin .section-title { margin-block-end: 18px; }
  .make-steps li { padding: 8px 10px; }
  .make-steps li:not(.on) p { display: none; }
  .share { inset-inline-start: 0; inset-block-end: -18%; }
  .share-link { font-size: 12px; }
  .share-qr { inline-size: 56px !important; block-size: 56px !important; }
  .share-phone { inline-size: 104px; inset-block-end: -26%; }
}

/* ---------------------------------------------------------------- features */
.features { padding-block: clamp(120px, 18vh, 200px) 60px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { position: relative; padding: 30px 28px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(160deg, rgb(14 94 111 / 0.18), rgb(5 20 26 / 0) 60%); overflow: hidden; }
.feature::after { content: ""; position: absolute; inset: 0; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgb(233 162 59 / 0.13), transparent 60%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.feature:hover::after { opacity: 1; }
.f-ic { display: grid; place-items: center; inline-size: 46px; block-size: 46px; border-radius: 14px; border: 1px solid rgb(233 162 59 / 0.4); color: var(--gold); font-size: 20px; margin-block-end: 22px; font-family: "Readex Pro"; }
.feature b { font-family: var(--display); font-weight: 500; font-size: 20px; display: block; margin-block-end: 6px; }
.feature p { margin: 0; color: var(--muted); }
.daynight-card { grid-row: span 2; display: flex; flex-direction: column; padding: 14px 14px 26px; }
.daynight-card b, .daynight-card p { padding-inline: 14px; }
.dn-img { position: relative; flex: 1; min-block-size: 220px; border-radius: 14px; overflow: hidden; margin-block-end: 22px; }
.dn-img img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; }
.dn-night { clip-path: inset(0 0 0 100%); transition: clip-path 1.1s var(--ease); }
.daynight-card:hover .dn-night, .daynight-card.night .dn-night { clip-path: inset(0 0 0 0); }
@media (max-width: 1000px) { .feature-grid { grid-template-columns: 1fr 1fr; } .daynight-card { grid-row: auto; grid-column: span 2; } }
@media (max-width: 640px) { .feature-grid { grid-template-columns: 1fr; } .daynight-card { grid-column: auto; } }

/* ---------------------------------------------------------------- types */
.types { padding-block: clamp(100px, 14vh, 170px) 60px; }
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.type { position: relative; padding: 26px; border-radius: 18px; border: 1px solid var(--line); background: rgb(255 255 255 / 0.015); transition: border-color 0.4s, background 0.4s; }
.type:hover { border-color: rgb(233 162 59 / 0.5); background: rgb(233 162 59 / 0.04); }
.type b { font-family: var(--display); font-weight: 500; font-size: clamp(18px, 1.5vw, 22px); display: block; }
.type span { display: block; margin-block-start: 8px; font-size: 12px; letter-spacing: 0.04em; color: var(--muted); direction: ltr; text-align: start; font-family: "Readex Pro"; font-weight: 300; }
html[dir="rtl"] .type span { text-align: end; }
.type.seen::before { content: "LIVE"; position: absolute; inset-block-start: 16px; inset-inline-end: 16px; font-size: 10px; letter-spacing: 0.15em; font-weight: 600; color: var(--night); background: var(--gold); padding: 3px 8px; border-radius: 99px; font-family: "Readex Pro"; }
@media (max-width: 900px) { .type-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .type-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- phone */
.phone-sec { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding-block: clamp(100px, 14vh, 170px); }
.qrs { display: flex; gap: 18px; margin-block-start: 34px; flex-wrap: wrap; }
.qrs figure { margin: 0; text-align: center; }
.qr { inline-size: 112px; block-size: 112px; padding: 10px; background: #fff; border-radius: 14px; }
.qr svg, .qr img { inline-size: 100%; block-size: 100%; }
.qrs figcaption { font-size: 11px; letter-spacing: 0.15em; color: var(--muted); margin-block-start: 8px; font-family: "Readex Pro"; }
.phones { position: relative; block-size: 640px; }
.phone { position: absolute; inline-size: 230px; border-radius: 36px; padding: 9px; background: #0c1014; border: 1px solid rgb(255 255 255 / 0.12); box-shadow: 0 40px 100px rgb(0 0 0 / 0.6); }
.phone img { border-radius: 28px; inline-size: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }
.phone.p1 { inset-inline-start: 0; inset-block-start: 60px; rotate: -8deg; }
.phone.p2 { left: 50%; margin-left: -115px; inset-block-start: 0; z-index: 2; }
.phone.p3 { inset-inline-end: 0; inset-block-start: 80px; rotate: 8deg; }
@media (max-width: 900px) {
  .phone-sec { grid-template-columns: 1fr; }
  .phones { block-size: 440px; }
  .phone { inline-size: 160px; border-radius: 26px; padding: 7px; }
  .phone.p2 { margin-left: -80px; }
  .phone img { border-radius: 20px; }
}

/* ---------------------------------------------------------------- ways */
.ways { padding-block: clamp(80px, 12vh, 150px); }
.way-grid { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 16px; align-items: stretch; }
.way { position: relative; padding: 32px 28px; border-radius: 24px; border: 1px solid var(--line); background: rgb(255 255 255 / 0.02); display: flex; flex-direction: column; overflow: hidden; }
.way.featured { border-color: rgb(233 162 59 / 0.55); background: linear-gradient(170deg, rgb(233 162 59 / 0.12), rgb(5 20 26 / 0) 55%); }
.way-tag { align-self: flex-start; font-family: var(--display); font-size: 12px; font-weight: 500; padding: 4px 12px; border-radius: 99px; background: rgb(232 238 240 / 0.08); margin-block-end: 22px; }
.way.featured .way-tag { background: var(--gold); color: var(--night); }
.way h3 { font-weight: 600; font-size: clamp(21px, 1.9vw, 28px); margin: 0 0 10px; line-height: 1.4; }
.way p { color: var(--muted); margin: 0 0 18px; }
.way ul { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 8px; }
.way li { padding-inline-start: 24px; position: relative; }
.way li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 0.7em; inline-size: 12px; block-size: 6px; border-inline-start: 2px solid var(--gold); border-block-end: 2px solid var(--gold); transform: rotate(-45deg); }
.way-shot { margin-block-start: 24px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
@media (max-width: 1000px) { .way-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- final */
.final { position: relative; min-block-size: 115svh; display: grid; place-items: center; overflow: hidden; text-align: center; padding-block-end: 22vw; }
.final-bg { position: absolute; inset: 0; }
.final-bg img { inline-size: 100%; block-size: 100%; object-fit: cover; transform: scale(1.15); }
.final-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 40%, rgb(5 20 26 / 0.5), var(--night) 100%); }
.final-copy { position: relative; z-index: 2; }
.final h2 { font-weight: 600; font-size: clamp(36px, 5.8vw, 96px); line-height: 1.35; margin: 0 auto 44px; max-inline-size: 16ch; }
html[lang="en"] .final h2 { line-height: 1.05; letter-spacing: -0.035em; }
.final-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.final-cta .btn { font-family: "Readex Pro"; letter-spacing: 0.12em; font-size: 13px; }
.wordmark { position: absolute; inset-inline: 0; inset-block-end: -1.5vw; z-index: 1; display: flex; justify-content: center; direction: ltr; font-family: "Readex Pro"; font-weight: 700; font-size: 18.5vw; line-height: 0.9; letter-spacing: -0.04em; overflow: hidden; pointer-events: none; }
.wordmark span { display: inline-block; background: linear-gradient(180deg, rgb(244 199 124 / 0.9), rgb(244 199 124 / 0.05) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wordmark .sp { inline-size: 0.28em; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 30px 40px; font-size: 12px; color: var(--muted); border-block-start: 1px solid var(--line); }
.foot span:first-child { letter-spacing: 0.22em; font-family: "Readex Pro"; font-weight: 600; color: var(--ink); }

/* ---------------------------------------------------------------- live modal */
.live { position: fixed; inset: 0; z-index: 250; background: rgb(3 10 13 / 0.86); backdrop-filter: blur(18px); display: flex; flex-direction: column; opacity: 0; transition: opacity 0.4s; }
.live.open { opacity: 1; }
.live[hidden] { display: none; }
.live-bar { display: flex; align-items: center; gap: 14px; padding: 14px var(--pad); }
.live-title { font-family: "Readex Pro"; letter-spacing: 0.15em; font-size: 13px; margin-inline-end: auto; }
.live-modes { display: flex; border: 1px solid var(--line); border-radius: 99px; padding: 3px; }
.live-modes button { padding: 6px 14px; border-radius: 99px; font-size: 13px; }
.live-modes button.on { background: var(--ink); color: var(--night); }
.live-open { font-size: 13px; color: var(--gold-soft); }
.live-close { inline-size: 40px; block-size: 40px; border-radius: 50%; border: 1px solid var(--line); font-size: 15px; }
.live-close:hover { border-color: var(--gold); }
.live-frame { flex: 1; display: grid; place-items: center; padding: 0 var(--pad) 24px; min-block-size: 0; }
.live-device { position: relative; inline-size: 100%; block-size: 100%; border-radius: 18px; overflow: hidden; background: #000; border: 1px solid rgb(255 255 255 / 0.12); box-shadow: 0 40px 120px rgb(0 0 0 / 0.6); transition: inline-size 0.6s var(--ease), border-radius 0.6s; }
.live.as-phone .live-device { inline-size: min(400px, 100%); max-block-size: 860px; border-radius: 40px; border: 10px solid #0c1014; }
.live iframe { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; border: 0; opacity: 0; transition: opacity 0.6s; }
.live iframe.ready { opacity: 1; }
.live-loading { position: absolute; inset: 0; display: grid; place-items: center; }
.live-loading span { inline-size: 34px; block-size: 34px; border-radius: 50%; border: 2px solid rgb(255 255 255 / 0.15); border-block-start-color: var(--gold); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) { .live-modes { display: none; } .live-frame { padding: 0; } .live-device { border-radius: 0; border: 0; } }

/* ---------------------------------------------------------------- motion off */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .grain, .gate, .clouds { display: none; }
}

/* ---------------------------------------------------------------- floating WhatsApp */
.wa-float { position: fixed; z-index: 90; inset-block-end: max(18px, env(safe-area-inset-bottom)); inset-inline-end: 18px; display: flex; align-items: center; gap: 10px; block-size: 56px; padding: 0 18px 0 14px; border-radius: 99px; background: #25d366; color: #fff; text-decoration: none; font-family: var(--display); font-weight: 500; font-size: 15px; box-shadow: 0 10px 30px rgb(0 0 0 / 0.35); transition: transform 0.25s, box-shadow 0.25s; }
.wa-float svg { inline-size: 28px; block-size: 28px; flex: none; }
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgb(0 0 0 / 0.45); }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgb(37 211 102 / 0.55); animation: wa-pulse 2.6s infinite; pointer-events: none; }
@keyframes wa-pulse { 70% { box-shadow: 0 0 0 16px rgb(37 211 102 / 0); } 100% { box-shadow: 0 0 0 0 rgb(37 211 102 / 0); } }
html.locked .wa-float { opacity: 0; pointer-events: none; }
@media (max-width: 820px) { .wa-float { padding: 0; inline-size: 56px; justify-content: center; } .wa-label { display: none; } }
@media (prefers-reduced-motion: reduce) { .wa-float::after { animation: none; } }

/* ---------------------------------------------------------------- hero: three projects on scroll */
.hero-slide { position: absolute; inset: 0; z-index: 3; overflow: hidden; visibility: hidden; will-change: transform; }
.hs-media { position: absolute; inset: 0; will-change: transform; }
.hs-media img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; }
.hs-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgb(5 20 26 / 0.88) 0%, rgb(5 20 26 / 0.4) 32%, rgb(5 20 26 / 0) 58%, rgb(5 20 26 / 0.18) 100%); }
.hs-copy { position: absolute; z-index: 2; inset-inline-start: var(--pad); inset-block-end: clamp(96px, 14vh, 150px); max-inline-size: min(680px, calc(100vw - 2 * var(--pad))); }
.hs-kicker { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 14px; color: var(--sand); padding: 7px 15px; border: 1px solid rgb(243 233 215 / 0.25); border-radius: 99px; backdrop-filter: blur(10px); background: rgb(5 20 26 / 0.3); }
.hs-kicker b { font-family: var(--display); color: var(--gold-soft); font-weight: 600; }
.hs-name { margin: 0 0 14px; font-family: var(--display); font-weight: 600; font-size: clamp(44px, 7.2vw, 116px); line-height: 1.04; letter-spacing: -0.02em; direction: ltr; text-align: start; color: #fff; text-shadow: 0 6px 40px rgb(0 0 0 / 0.45); }
html[dir="rtl"] .hs-name { text-align: right; }
.hs-text { margin: 0 0 26px; font-size: clamp(16px, 1.35vw, 20px); color: var(--sand); max-inline-size: 560px; }
.hero-index { position: absolute; z-index: 6; inset-inline-end: var(--pad); top: 50%; translate: 0 -50%; margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; font-family: var(--display); font-size: 12px; letter-spacing: 0.2em; direction: ltr; color: rgb(243 233 215 / 0.55); }
.hero-index li { display: flex; align-items: center; gap: 12px; justify-content: flex-end; transition: color 0.4s; }
.hero-index i { inline-size: 18px; block-size: 2px; border-radius: 2px; background: currentColor; transition: inline-size 0.4s, background 0.4s; }
.hero-index li.on { color: #fff; }
.hero-index li.on i { inline-size: 42px; background: var(--gold); }
html:not(.js) .hero-index, html:not(.js) .hero-slide { display: none; }
@media (max-aspect-ratio: 3/4) { .hero-lines { display: none; } }
@media (max-width: 820px) {
  .hero-index { top: 76px; translate: none; inset-inline: var(--pad); display: flex; justify-content: center; gap: 14px; font-size: 10px; letter-spacing: 0.14em; }
  .hero-index li { gap: 6px; }
  .hero-index i { inline-size: 10px; }
  .hero-index li.on i { inline-size: 22px; }
  .hs-copy { inset-block-end: clamp(90px, 12vh, 120px); }
}

/* The project list sits on the side away from the text: left in Arabic, right in English. */
html[dir="rtl"] .hero-index { right: auto; left: var(--pad); }
html[dir="ltr"] .hero-index { left: auto; right: var(--pad); }
html[dir="rtl"] .hero-index li { justify-content: flex-start; }
@media (max-width: 820px) {
  html[dir] .hero-index { left: var(--pad); right: var(--pad); }
  html[dir] .hero-index li { justify-content: center; }
}
/* Nothing may widen the page sideways on a phone (it let the hero text slide off the edge). */
html, body { overflow-x: clip; }

/* On a phone the text covers more of the picture: a little more shade under it. */
@media (max-width: 820px) { .hero-shade { background: linear-gradient(0deg, var(--night) 0%, rgb(5 20 26 / 0.72) 30%, rgb(5 20 26 / 0.2) 52%, rgb(5 20 26 / 0) 66%, rgb(5 20 26 / 0.2) 100%); } }

/* The hero's words over a bright picture: a soft shade behind them only, and a text shadow. */
.hero-copy::before { content: ""; position: absolute; z-index: -1; inset: -12% -6% -4% -6%; pointer-events: none; }
html[dir="rtl"] .hero-copy::before { background: radial-gradient(ellipse 75% 70% at 70% 70%, rgb(5 20 26 / 0.62), rgb(5 20 26 / 0) 72%); }
html[dir="ltr"] .hero-copy::before { background: radial-gradient(ellipse 75% 70% at 30% 70%, rgb(5 20 26 / 0.62), rgb(5 20 26 / 0) 72%); }
.hero-title { text-shadow: 0 4px 34px rgb(0 0 0 / 0.55), 0 1px 3px rgb(0 0 0 / 0.35); }
.hero-sub { text-shadow: 0 1px 14px rgb(0 0 0 / 0.6); }
@media (max-width: 820px) { .hero-copy::before { inset: -18% -10% -6% -10%; } }

/* Responsive pass (2026-11-18). */
/* The project names stay on one line on the smallest phones. */
@media (max-width: 400px) { .hero-index { font-size: 9px; letter-spacing: 0.08em; gap: 10px; } .hero-index li { white-space: nowrap; gap: 4px; } .hero-index i { inline-size: 8px; } .hero-index li.on i { inline-size: 16px; } }
/* "Then they step inside": the title stays above the floating rooms so it can always be read. */
.inside-space { z-index: 1; }
.inside-copy { z-index: 5; }
.inside-copy h2 { text-shadow: 0 6px 40px rgb(0 0 0 / 0.75), 0 1px 4px rgb(0 0 0 / 0.5); }
/* The phone next to the share card stays inside the screen on a phone. */
@media (max-width: 640px) { .share-phone { inset-inline-end: 6px; } }
