@font-face {
  font-family: 'Big Shoulders';
  src: url('../fonts/big-shoulders-latin-opsz-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('../fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215;
}
@font-face {
  font-family: 'Reem Kufi';
  src: url('../fonts/reem-kufi-arabic-wght-normal.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: 'Noto Kufi Arabic';
  src: url('../fonts/noto-kufi-arabic-arabic-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC;
}

:root {
  --sign: #1D3A8A;
  --night: #132A66;
  --enamel: #F5F1E6;
  --lime: #E3D7C1;
  --sodium: #FFB23E;
  --haze: #A9BBE0;
  --ink: #0F1A3A;
  --rust: #B4472B;
  --r1: 4px; --r2: 8px; --r3: 12px; --r4: 16px; --r6: 24px; --r8: 32px; --r12: 48px;
  --r16: 64px; --r24: 96px; --r32: 128px; --r48: 192px;
  --gutter: 24px;
  --margin: clamp(16px, 4.5vw, 72px);
  --ui: cubic-bezier(.3, .1, .2, 1);
  --hang: cubic-bezier(.34, 1.3, .5, 1);
  --display: 'Big Shoulders', 'Reem Kufi', 'Arial Narrow', sans-serif;
  --display-ar: 'Reem Kufi', 'Big Shoulders', sans-serif;
  --text: 'Atkinson Hyperlegible Next', 'Noto Kufi Arabic', system-ui, sans-serif;
  --ground: var(--enamel);
  --fg: var(--ink);
  --soft: rgba(15, 26, 58, .72);
  --link-hover: var(--sign);
  --rule: rgba(29, 58, 138, .25);
  color-scheme: light;
}
:lang(ar) {
  --display: 'Reem Kufi', 'Big Shoulders', sans-serif;
  --text: 'Noto Kufi Arabic', 'Atkinson Hyperlegible Next', system-ui, sans-serif;
}
.field {
  --ground: var(--sign);
  --fg: var(--enamel);
  --soft: var(--haze);
  --link-hover: var(--sodium);
  --rule: rgba(245, 241, 230, .2);
}
@media (max-width: 759px) { :root { --gutter: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: rgba(29, 58, 138, .4) transparent;
}
html.field { scrollbar-color: var(--haze) transparent; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(29, 58, 138, .4); border-radius: 5px; }
.field ::-webkit-scrollbar-thumb { background: var(--haze); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--fg);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
  font-weight: 400;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
:lang(ar) body, body:lang(ar) { font-size: 1.0625rem; line-height: 1.95; }
::selection { background: var(--sodium); color: var(--ink); }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role='list'], ol[role='list'] { list-style: none; padding: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
bdi { unicode-bidi: isolate; }
[hidden] { display: none !important; }

h1, .h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.5rem, 2rem + 6.2vw, 10.5rem);
  line-height: .88;
  letter-spacing: -.005em;
  font-optical-sizing: auto;
  text-wrap: balance;
}
h2, .h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.25rem, 1.4rem + 3vw, 4.75rem);
  line-height: .95;
  font-optical-sizing: auto;
  text-wrap: balance;
}
:lang(ar) h1, :lang(ar) .h1 { font-weight: 700; font-size: clamp(3rem, 1.8rem + 5vw, 8.5rem); line-height: 1.12; letter-spacing: 0; }
:lang(ar) h2, :lang(ar) .h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 4rem); line-height: 1.2; }
.lead { font-size: 1.375rem; line-height: 1.45; max-width: 34ch; }
:lang(ar) .lead { font-size: 1.3rem; line-height: 1.85; max-width: 30ch; }
.body p + p { margin-top: var(--r4); }
.body { max-width: 62ch; }
:lang(ar) .body { max-width: 54ch; }
.small { font-size: .9375rem; line-height: 1.45; font-weight: 500; }
:lang(ar) .small { font-weight: 600; line-height: 1.8; }
.caption { font-size: .875rem; line-height: 1.4; color: var(--soft); }
:lang(ar) .caption { line-height: 1.8; }
.soft { color: var(--soft); }
.fig { font-family: 'Big Shoulders', 'Reem Kufi', sans-serif; font-weight: 650; font-size: 1.12em; line-height: 1; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.vh {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

a { color: inherit; }
.link, .body a, .lead a, .caption a, p a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: .22em;
  transition: text-underline-offset 160ms steps(2), color 160ms var(--ui);
}
.link:hover, .body a:hover, .lead a:hover, p a:hover { text-underline-offset: calc(.22em + 2px); color: var(--link-hover); }
.link svg { display: inline-block; width: .95em; height: .95em; vertical-align: -.12em; margin-inline-start: .3em; }
[dir='rtl'] .flip { transform: scaleX(-1); }

:focus-visible { outline: 3px solid var(--sodium); outline-offset: 3px; }
html:not(.field) :focus-visible, .band :focus-visible, .plate--enamel :focus-visible { box-shadow: 0 0 0 6px var(--ink); }

.skip {
  position: absolute; z-index: 20; inset-inline-start: var(--margin); top: 12px;
  padding: 10px 16px; background: var(--sodium); color: var(--ink); border-radius: 6px;
  font-weight: 650; text-decoration: none; transform: translateY(-160%);
}
.skip:focus { transform: none; }
main:focus { outline: none; }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  padding-inline: var(--margin);
}

.plate {
  --face: var(--enamel);
  --rim: rgba(29, 58, 138, .55);
  --pfg: var(--ink);
  position: relative;
  border-radius: 6px;
  background: var(--face);
  color: var(--pfg);
  box-shadow: inset 0 0 0 5px var(--face), inset 0 0 0 6.5px var(--rim);
}
.plate--enamel { --face: var(--enamel); --rim: rgba(29, 58, 138, .55); --pfg: var(--ink); --soft: rgba(15, 26, 58, .72); --link-hover: var(--sign); --rule: rgba(29, 58, 138, .25); }
.plate--blue { --face: var(--sign); --rim: rgba(245, 241, 230, .7); --pfg: var(--enamel); --soft: var(--haze); --link-hover: var(--sodium); --rule: rgba(245, 241, 230, .2); }
.plate--float { box-shadow: inset 0 0 0 5px var(--face), inset 0 0 0 6.5px var(--rim), 0 12px 32px rgba(10, 20, 50, .28); }

.names { display: grid; justify-items: start; gap: 2px; }
.names .ar { font-family: 'Reem Kufi', 'Atkinson Hyperlegible Next', sans-serif; font-weight: 700; font-size: 1.5rem; line-height: 1.25; direction: rtl; }
.names .en { font-family: 'Big Shoulders', sans-serif; font-weight: 650; font-size: 1.75rem; line-height: 1; direction: ltr; letter-spacing: .005em; }
[dir='rtl'] .names .en { justify-self: start; }
.name-plate { display: inline-grid; justify-items: center; text-align: center; padding: 14px 20px 15px; gap: 3px; }
.name-plate.plate--blue { color: var(--enamel); }

.button {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 20px;
  background: var(--sodium); color: var(--ink);
  border: 0; border-radius: 6px;
  box-shadow: inset 0 0 0 4px var(--sodium), inset 0 0 0 5.5px rgba(15, 26, 58, .35);
  font-weight: 650; font-size: 1.0625rem; text-decoration: none;
  transition: transform 140ms var(--ui), box-shadow 140ms var(--ui);
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.textbutton {
  background: none; border: 0; padding: 0; color: inherit; font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .22em;
  transition: text-underline-offset 160ms steps(2), color 160ms var(--ui);
  min-height: 32px;
}
.textbutton:hover { text-underline-offset: calc(.22em + 2px); color: var(--link-hover); }

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--r4);
  height: 72px;
  padding-inline: var(--margin);
}
.mark {
  display: grid; place-items: center; align-content: center;
  height: 44px; padding: 0 13px; gap: 0;
  text-decoration: none; color: var(--enamel);
  transition: transform 280ms var(--hang);
}
.mark:hover { transform: rotate(-1.5deg); }
.mark .ar { font-family: 'Reem Kufi', 'Atkinson Hyperlegible Next', sans-serif; font-weight: 700; font-size: 15px; line-height: 1; margin-top: 1px; direction: rtl; }
.mark .en { font-family: 'Big Shoulders', sans-serif; font-weight: 800; font-size: 16px; line-height: .9; direction: ltr; }
.site-nav ul { display: flex; gap: clamp(14px, 2.4vw, 36px); margin: 0; padding: 0; list-style: none; align-items: center; }
.site-nav a {
  display: inline-block; padding-block: 8px;
  font-weight: 500; font-size: 1rem; text-decoration: none;
  text-decoration-line: underline; text-decoration-color: transparent;
  text-decoration-thickness: 1.5px; text-underline-offset: .22em;
  transition: text-underline-offset 160ms steps(2), color 160ms var(--ui), text-decoration-color 160ms var(--ui);
}
:lang(ar) .site-nav a { font-weight: 600; }
.site-nav a:hover { text-decoration-color: currentColor; text-underline-offset: calc(.22em + 2px); color: var(--link-hover); }
.site-nav a[aria-current='page'] { color: var(--link-hover); text-decoration-color: currentColor; text-underline-offset: calc(.22em + 2px); }
.site-nav a[lang='ar'], .site-footer a[lang='ar'] { font-family: 'Reem Kufi', 'Atkinson Hyperlegible Next', sans-serif; font-weight: 600; font-size: 1.0625rem; }
.site-nav a[lang='en'] { font-family: 'Atkinson Hyperlegible Next', sans-serif; font-weight: 500; }
@media (max-width: 759px) {
  .site-header { height: 60px; }
  .site-nav ul { gap: 14px; }
  .site-nav a { font-size: .9375rem; padding-block: 12px; }
  .mark { height: 40px; padding: 0 11px; }
}

.site-footer {
  position: relative;
  z-index: 4;
  background: var(--night);
  color: var(--enamel);
  padding-top: var(--r16);
  padding-bottom: var(--r8);
  overflow: hidden;
  --soft: var(--haze);
  --link-hover: var(--sodium);
}
.site-footer .grid { align-items: end; row-gap: var(--r12); }
.site-footer .fine {
  grid-column: 1 / 6;
  display: grid; gap: var(--r3);
  color: var(--haze); font-size: .875rem; line-height: 1.5;
  max-width: 46ch;
}
.site-footer .lang-line { font-size: 1rem; color: var(--enamel); margin-bottom: var(--r2); }
.site-footer .lang-line a[lang='ar'] { font-family: 'Reem Kufi', 'Atkinson Hyperlegible Next', sans-serif; font-weight: 600; font-size: 1.125rem; }
.post {
  --at: 58%;
  grid-column: 8 / 13;
  position: relative;
  display: grid; gap: var(--r6);
}
.post::before {
  content: ''; position: absolute; z-index: 0;
  inset-inline-start: calc(var(--at) - 6px); top: -18px; bottom: calc(-1 * var(--r8) - 2px);
  width: 12px; background: #A9B3CF; box-shadow: inset -4px 0 0 #7C86A6;
}
[dir='rtl'] .post::before { box-shadow: inset 4px 0 0 #7C86A6; }
.post::after {
  content: ''; position: absolute; z-index: 0;
  inset-inline-start: calc(var(--at) - 8px); top: -22px; width: 16px; height: 6px; border-radius: 3px 3px 0 0; background: #7C86A6;
}
.fingers { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; position: relative; z-index: 1; }
.fingers li { display: flex; }
.fingers .to-start { justify-content: flex-end; width: calc(var(--at) + 18px); }
.fingers .to-end { margin-inline-start: calc(var(--at) - 18px); }
.finger {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 56px; padding: 9px 18px 10px 16px;
  text-decoration: none; color: var(--enamel);
  transform-origin: 100% 50%;
  transition: transform 280ms var(--hang), box-shadow 280ms var(--ui);
}
.to-end .finger { transform-origin: 0 50%; padding: 9px 16px 10px 18px; }
[dir='rtl'] .finger { transform-origin: 0 50%; padding: 9px 16px 10px 18px; }
[dir='rtl'] .to-end .finger { transform-origin: 100% 50%; padding: 9px 18px 10px 16px; }
.finger .names { gap: 0; }
.finger .ar { font-size: 1.0625rem; line-height: 1.3; }
.finger .en { font-size: 1.375rem; }
.to-start .finger .names { justify-items: end; }
.to-start .finger .en { justify-self: end; }
.to-end .finger .names, .to-end .finger .en { justify-items: start; justify-self: start; }
.finger .pointer { flex: none; width: 28px; height: 16px; color: var(--haze); transition: color 160ms var(--ui); }
.to-end .finger .pointer, [dir='rtl'] .to-start .finger .pointer { transform: scaleX(-1); }
[dir='rtl'] .to-end .finger .pointer { transform: none; }
.finger:hover .pointer { color: var(--sodium); }
.to-start .finger:hover, [dir='rtl'] .to-end .finger:hover { transform: rotate(-1.2deg); }
.to-end .finger:hover, [dir='rtl'] .to-start .finger:hover { transform: rotate(1.2deg); }
.post-note {
  position: relative; z-index: 1;
  width: min(300px, 100%); margin-inline-start: max(0px, calc(var(--at) - 150px));
  padding: 14px 16px 15px; border-radius: 4px;
  background: var(--enamel); color: var(--ink);
  box-shadow: inset 0 0 0 3px var(--enamel), inset 0 0 0 4px rgba(29, 58, 138, .6);
  font-size: .8125rem; line-height: 1.45; font-weight: 500;
}
:lang(ar) .post-note { font-size: .8125rem; line-height: 1.8; }
@media (max-width: 1023px) {
  .site-footer .fine { grid-column: 1 / 7; }
  .post { grid-column: 7 / 13; }
}
@media (max-width: 759px) {
  .site-footer { padding-top: var(--r12); }
  .site-footer .grid { row-gap: var(--r12); }
  .post { grid-column: 1 / -1; --at: 52%; order: 2; }
  .site-footer .fine { grid-column: 1 / -1; order: 1; }
  .finger { min-height: 52px; }
  .post-note { width: min(260px, 100%); margin-inline-start: max(0px, calc(var(--at) - 130px)); }
}
@media (prefers-reduced-motion: reduce) {
  .finger:hover, .fingers li .finger:hover { transform: none; }
}

.field body::after {
  content: '';
  position: fixed; inset: 0; z-index: 1;
  background: url('../img/grain.png');
  opacity: .03; mix-blend-mode: overlay; pointer-events: none;
}
main { position: relative; z-index: 2; display: block; }
.band { position: relative; z-index: 3; background: var(--enamel); color: var(--ink); --soft: rgba(15, 26, 58, .72); --link-hover: var(--sign); --rule: rgba(29, 58, 138, .25); --fg: var(--ink); }
.pass { pointer-events: none; }
.pass :is(a, button, input, label, textarea, .plate, p, h1, h2, figure, [role='slider'], [role='radiogroup'], ul, ol) { pointer-events: auto; }

.model {
  --fx: .71; --fy: .47; --size: .42;
  position: fixed; inset: 0; z-index: 0;
  background: var(--field, var(--sign));
  transition: background-color 600ms linear;
}
[dir='rtl'] .model { --fx: .29; }
@media (min-width: 1024px) { .page-home .model { --fx: .84; --fy: .5; --size: .66; } [dir='rtl'].page-home .model { --fx: .16; } }
@media (min-width: 760px) { .page-walks .model { --fx: .72; --fy: .46; --size: .45; } [dir='rtl'].page-walks .model { --fx: .28; } }
@media (max-width: 759px) { .model { --fx: .5; --fy: .25; --size: .84; } [dir='rtl'] .model { --fx: .5; } }
.model:focus-visible { outline: 3px solid var(--sodium); outline-offset: -9px; box-shadow: none; }
.model canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 560ms var(--ui); }
.model.is-live canvas { opacity: 1; }
@media (pointer: fine) { .model canvas { cursor: grab; } }
.model .poster {
  --d: min(calc(var(--size) * 100vw), 135vh);
  position: absolute; max-width: none;
  width: calc(var(--d) * 1.464); height: auto; aspect-ratio: 1;
  left: calc(var(--fx) * 100% - var(--d) * .732);
  top: calc(var(--fy) * 100% - var(--d) * .732);
  transition: opacity 560ms var(--ui), left 840ms var(--ui), top 840ms var(--ui), width 840ms var(--ui);
}
.model.is-live .poster { opacity: 0; }
.model-fallback { margin-top: var(--r3); }

.tooltip {
  position: fixed; z-index: 6; left: 0; top: 0;
  padding: 12px 16px 13px; min-width: 180px; max-width: 280px;
  pointer-events: none;
  opacity: 0; transform: translate3d(-9999px, 0, 0);
  transition: opacity 140ms var(--ui);
}
.tooltip.is-on { opacity: 1; }
.tooltip .names .ar { font-size: 1.125rem; }
.tooltip .names .en { font-size: 1.3rem; }
.tooltip .where { margin-top: 6px; font-size: .875rem; line-height: 1.35; color: var(--soft); }
.tooltip .none { font-size: 1rem; font-weight: 500; }

.hang { transform-origin: top center; }
.js .hang:not(.is-in) { opacity: 0; transform: perspective(700px) rotateX(-12deg); }
.js .hang.is-in { opacity: 1; transform: none; transition: opacity 560ms var(--ui), transform 560ms var(--hang); }
.js .appear:not(.is-in) { opacity: 0; }
.js .appear.is-in { opacity: 1; transition: opacity 420ms var(--ui); }


.loader {
  position: fixed; inset: 0; z-index: 30;
  display: grid; place-items: center; align-content: center; gap: 22px;
  background: var(--sign); color: var(--enamel);
  transition: opacity 420ms var(--ui), transform 420ms var(--ui);
}
.loader[hidden] { display: none; }
.loader:not(.is-out) { animation: loader-cap 420ms cubic-bezier(.3, .1, .2, 1) 2.2s forwards; }
@keyframes loader-cap { to { opacity: 0; transform: translateY(-8px); visibility: hidden; } }
.loader .mark { height: 64px; padding: 0 22px; transform: none; }
.loader .mark .ar { font-size: 22px; }
.loader .mark .en { font-size: 24px; }
.loader.is-out { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.loader p { font-size: .9375rem; color: var(--haze); }
.loader svg { width: 168px; height: 66px; overflow: visible; }
.loader .flight { fill: none; stroke: var(--haze); stroke-width: 1.5; stroke-linejoin: round; }
.loader .tread { fill: none; stroke: var(--sodium); stroke-width: 4; stroke-linecap: round; opacity: 0; transform: translateY(-3px); transition: opacity 140ms linear, transform 280ms var(--hang); }
.loader .tread.is-on { opacity: 1; transform: none; }
.loader .skipit { position: absolute; inset-inline-end: var(--margin); bottom: var(--r8); }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 280ms; animation-timing-function: cubic-bezier(.3, .1, .2, 1); }
html.vt-sheet::view-transition-old(root) { animation: none; }
html.vt-sheet::view-transition-new(root) { animation: sheet-up 420ms cubic-bezier(.3, .1, .2, 1) both; }
@keyframes sheet-up { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@keyframes vt-in { from { opacity: 0; } }
@keyframes vt-out { to { opacity: 0; } }
@keyframes sheet-down { from { clip-path: inset(0); } to { clip-path: inset(100% 0 0 0); } }
html.vt-drop::view-transition-old(root) { animation: sheet-down 420ms cubic-bezier(.3, .1, .2, 1) both; z-index: 2; }
html.vt-drop::view-transition-new(root) { animation: none; }
html.vt-lang::view-transition-old(root), html.vt-lang::view-transition-new(root) { animation-duration: 150ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .js .hang:not(.is-in) { transform: none; }
  .js .hang.is-in { transition: opacity 420ms linear; }
  .stairmask { clip-path: none !important; }
  .js .hang:not(.is-in), .js .appear:not(.is-in), .js .stairmask { opacity: 1; transform: none; }
  .js .explode:not(.is-in) .layer { transform: translateY(var(--y1)); }
  ::view-transition-old(root), ::view-transition-new(root),
  html.vt-sheet::view-transition-new(root), html.vt-drop::view-transition-old(root) { animation: vt-in 150ms linear both !important; }
  ::view-transition-old(root), html.vt-drop::view-transition-old(root) { animation-name: vt-out !important; }
  .mark:hover, .button:hover { transform: none; }
}

@media (max-width: 420px) {
  .site-nav ul { gap: 10px; }
  :lang(ar) .site-nav ul { gap: 9px; }
  :lang(ar) .site-nav a { font-size: .8125rem; }
  .mark { padding: 0 9px; }
}
@media (pointer: coarse) {
  .hero-notes .link, .walk-link, .site-nav a { padding-block: 12px; }
  .textbutton { min-height: 44px; }
  .mark { min-height: 44px; }
}
.field main { pointer-events: none; }
.field main > :not(.pass), .field .band, .field .stage .model { pointer-events: auto; }
