/* Wadi Brothers fonts, self-hosted (source: Bunny Fonts). */
@font-face{font-family:'Fraunces';font-style:italic;font-weight:400;font-display:swap;src:url("/fonts/fraunces-latin-400-italic.woff2") format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Fraunces';font-style:italic;font-weight:400;font-display:swap;src:url("/fonts/fraunces-latin-ext-400-italic.woff2") format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:400;font-display:swap;src:url("/fonts/fraunces-latin-400-normal.woff2") format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:400;font-display:swap;src:url("/fonts/fraunces-latin-ext-400-normal.woff2") format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:600;font-display:swap;src:url("/fonts/fraunces-latin-600-normal.woff2") format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:600;font-display:swap;src:url("/fonts/fraunces-latin-ext-600-normal.woff2") format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:400;font-display:swap;src:url("/fonts/manrope-latin-400-normal.woff2") format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:400;font-display:swap;src:url("/fonts/manrope-latin-ext-400-normal.woff2") format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:500;font-display:swap;src:url("/fonts/manrope-latin-500-normal.woff2") format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:500;font-display:swap;src:url("/fonts/manrope-latin-ext-500-normal.woff2") format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:600;font-display:swap;src:url("/fonts/manrope-latin-600-normal.woff2") format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:600;font-display:swap;src:url("/fonts/manrope-latin-ext-600-normal.woff2") format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:700;font-display:swap;src:url("/fonts/manrope-latin-700-normal.woff2") format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:700;font-display:swap;src:url("/fonts/manrope-latin-ext-700-normal.woff2") format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400;font-display:swap;src:url("/fonts/jetbrains-mono-latin-400-normal.woff2") format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400;font-display:swap;src:url("/fonts/jetbrains-mono-latin-ext-400-normal.woff2") format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'El Messiri';font-style:normal;font-weight:500;font-display:swap;src:url("/fonts/el-messiri-arabic-500-normal.woff2") format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;}
@font-face{font-family:'El Messiri';font-style:normal;font-weight:600;font-display:swap;src:url("/fonts/el-messiri-arabic-600-normal.woff2") format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;}
@font-face{font-family:'Almarai';font-style:normal;font-weight:400;font-display:swap;src:url("/fonts/almarai-arabic-400-normal.woff2") format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;}
@font-face{font-family:'Almarai';font-style:normal;font-weight:700;font-display:swap;src:url("/fonts/almarai-arabic-700-normal.woff2") format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;}
/* Wadi Rum Arabian Cave (was Wadi Brothers). One stylesheet; build.py prepends tools/fonts.css and writes site/assets/site.css.
   The page colour follows the time of day: html[data-sky] sets the ground and ink tokens.
   Contrast (WCAG AA) checked for every ground: ink >= 12:1, muted >= 6.7:1, ember links >= 4.7:1,
   white on ember buttons 6.2:1, dark text on gold 10.2:1. */

/* v4 (2026-12-01, Wadi Rum Arabian Cave): ground, ink and rust taken from the family's new logo.
   Logo brown #45250C on cream #F4E7DE 11.4:1; muted #6A4A36 >= 6:1 on every light ground;
   links/buttons #9A4A18 (5.2:1 on cream, white text on it 6.2:1). Logo rust #AD5922 is ornament only. */
:root {
  --paper: #FAF3EC;
  --ink-d: #45250C;
  --muted-d: #6A4A36;
  --line-d: rgba(69, 37, 12, .15);
  --logo-rust: #AD5922;
  --ink-n: #F3ECF4;
  --muted-n: #BEB6D2;
  --line-n: rgba(243, 236, 244, .16);
  --ember: #9A4A18;
  --ember-hi: #7E3910;
  --gold: #E9B864;
  --gold-ink: #1A1206;
  --night-card: #1E2447;

  --bg: #F6ECE4;
  --fg: var(--ink-d);
  --muted: var(--muted-d);
  --line: var(--line-d);
  --link: var(--ember);
  --card: #FFFDF9;

  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
html[lang="ar"] {
  --serif: 'El Messiri', 'Segoe UI', Tahoma, sans-serif;
  --sans: 'Almarai', 'Segoe UI', Tahoma, sans-serif;
}

html[data-sky="dawn"], html[data-sky="morning"] { --bg: #F4E7DE; }
html[data-sky="day"] { --bg: #F6ECE4; }
html[data-sky="noon"] { --bg: #EFDFC6; }
html[data-sky="paper"] { --bg: var(--paper); }
html[data-sky="dusk"] { --bg: #3A2335; }
html[data-sky="night"] { --bg: #161B38; }
html[data-sky="deep"] { --bg: #0B0E22; }
html[data-sky="dusk"], html[data-sky="night"], html[data-sky="deep"] {
  --fg: var(--ink-n); --muted: var(--muted-n); --line: var(--line-n); --link: var(--gold); --card: var(--night-card);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 1.0625rem/1.65 var(--sans);
  transition: background-color .9s var(--ease), color .9s var(--ease);
  overflow-x: hidden;
}
html[lang="ar"] body { font-size: 1.125rem; line-height: 1.8; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
html[data-sky="dawn"] :focus-visible, html[data-sky="day"] :focus-visible, html[data-sky="noon"] :focus-visible,
html[data-sky="paper"] :focus-visible, html[data-sky="morning"] :focus-visible { outline-color: var(--ember); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.35; }
h1 { font-size: clamp(2.4rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
p { margin: 0 0 1em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink-d); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font: 600 .8rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .95rem; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 46ch; }
.section { padding: clamp(48px, 7vw, 96px) 0; position: relative; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px;
  padding: 12px 24px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--ember); color: #fff; font: 600 1rem/1.2 var(--sans); text-decoration: none;
  transition: background-color .2s, transform .2s var(--ease);
}
.btn:hover { background: var(--ember-hi); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.ghost:hover { background: color-mix(in srgb, var(--fg) 8%, transparent); }
html[data-sky="dusk"] .btn:not(.ghost), html[data-sky="night"] .btn:not(.ghost), html[data-sky="deep"] .btn:not(.ghost),
.on-night .btn:not(.ghost) { background: var(--gold); color: var(--gold-ink); }
html[data-sky="dusk"] .btn:not(.ghost):hover, html[data-sky="night"] .btn:not(.ghost):hover, html[data-sky="deep"] .btn:not(.ghost):hover,
.on-night .btn:not(.ghost):hover { background: #F3CB82; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-head { position: absolute; inset: 0 0 auto 0; z-index: 30; color: #fff; }
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { font: 600 1.35rem/1 var(--serif); color: inherit; text-decoration: none; letter-spacing: -.01em; margin-inline-end: auto; display: inline-flex; align-items: center; gap: 10px; }
.brand .mark { width: 44px; height: 44px; flex: none; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a { color: inherit; text-decoration: none; padding: 10px 12px; border-radius: 999px; font-weight: 500; font-size: .98rem; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255, 255, 255, .14); }
.lang { font-weight: 600; }
.head-book { min-height: 42px; padding: 9px 18px; font-size: .95rem; }
.menu-btn { display: none; background: none; border: 0; color: inherit; padding: 10px; min-width: 44px; min-height: 44px; cursor: pointer; border-radius: 10px; }
.menu-btn svg { width: 24px; height: 24px; }
.site-head.solid { position: relative; color: var(--fg); }
.site-head.solid .nav a:hover, .site-head.solid .nav a[aria-current="page"] { background: color-mix(in srgb, var(--fg) 9%, transparent); }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .js .nav { display: none; position: absolute; inset: 70px var(--gutter) auto; flex-direction: column; align-items: stretch; padding: 10px; border-radius: var(--radius); background: #1A1430; color: #fff; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
  .js .nav.open { display: flex; }
  .nav { flex-wrap: wrap; }
  .nav a { padding: 12px 14px; }
  .head-book { display: none; }
}

/* Hero (home): full-bleed, the source photo is 1776 px wide */
.hero { position: relative; min-height: clamp(480px, 78vh, 760px); display: grid; align-items: end; color: #fff; overflow: hidden; background: #2b1d18; }
.hero picture, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 8, 20, .45) 0%, rgba(10, 8, 20, 0) 28%, rgba(10, 8, 20, .15) 50%, rgba(14, 9, 18, .82) 100%); }
.hero .wrap { position: relative; z-index: 2; padding-bottom: clamp(36px, 7vh, 72px); width: 100%; }
.hero h1 { max-width: 15ch; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.hero .lede { color: rgba(255, 255, 255, .92); }
.hero .btn.ghost { color: #fff; }
.scroll-cue { margin-top: 36px; display: inline-flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .85); font-size: .9rem; text-decoration: none; }
.scroll-cue span { width: 1px; height: 36px; background: currentColor; display: inline-block; transform-origin: top; animation: cue 2.4s var(--ease) 3; }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Intro */
.intro { text-align: center; }
.intro h2 { max-width: 22ch; margin-inline: auto; }
.intro p { margin-inline: auto; }

/* The day: chapters */
.day { position: relative; }
.day-grid { display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 5vw, 72px); }
.dial { position: sticky; top: 120px; padding-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.dial svg { width: 180px; height: 110px; overflow: visible; }
.dial .arc { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 3 5; }
.dial .horizon { stroke: var(--muted); stroke-width: 1.5; }
.dial .orb { transition: transform .5s var(--ease), fill .9s; }
.dial-time { font: 600 2.4rem/1 var(--serif); }
.dial-label { color: var(--muted); font-size: .95rem; }
.chapter { display: grid; align-content: center; padding: clamp(28px, 4vw, 48px) 0; position: relative; }
.chapter-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.chapter:nth-child(even) .chapter-inner { grid-template-columns: 1fr 1.15fr; }
.chapter:nth-child(even) .chapter-media { order: 2; }
.chapter-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; max-width: 460px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45); }
.chapter-media img { width: 100%; height: 100%; object-fit: cover; }
.chapter .time { font: 400 italic clamp(1.1rem, 1.8vw, 1.35rem)/1 var(--serif); color: var(--muted); margin: 0 0 14px; }
html[lang="ar"] .chapter .time { font-style: normal; }
.chapter h3 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.chapter p { color: var(--muted); max-width: 38ch; font-size: 1.1rem; }
.chapter .go { font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }
.chapter .go:hover { text-decoration: underline; }
.stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.chapter > *:not(.stars) { position: relative; z-index: 1; }
@media (max-width: 960px) {
  .day-grid { grid-template-columns: 1fr; }
  .dial { display: none; }
  .chapter { min-height: auto; padding: 56px 0; }
  .chapter-inner, .chapter:nth-child(even) .chapter-inner { grid-template-columns: 1fr; }
  .chapter:nth-child(even) .chapter-media { order: 0; }
  .chapter-media { aspect-ratio: 4 / 3; }
}

/* Choose: group picker + offer cards */
.choose-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px 40px; margin-bottom: 40px; }
.choose-head h2 { margin: 0; }
.group { border: 0; padding: 0; margin: 0; }
.group legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 999px; background: color-mix(in srgb, var(--fg) 7%, transparent); }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label { min-width: 48px; min-height: 40px; padding: 8px 16px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .95rem; color: var(--fg); }
.seg input:checked + label { background: var(--fg); color: var(--bg); }
.seg input:focus-visible + label { outline: 3px solid var(--ember); outline-offset: 2px; }
.on-night .seg input:focus-visible + label { outline-color: var(--gold); }
.row-label { font: 600 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 56px 0 18px; display: flex; align-items: center; gap: 16px; }
html[lang="ar"] .row-label { letter-spacing: 0; font-size: .95rem; }
.row-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 236px), 1fr)); gap: 22px; list-style: none; margin: 0; padding: 0; }
.offers.nights { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.offer { background: var(--card); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 0 var(--line), 0 24px 40px -32px rgba(35, 22, 15, .5); transition: transform .35s var(--ease), box-shadow .35s; height: 100%; }
.offer:hover { transform: translateY(-4px); box-shadow: 0 1px 0 var(--line), 0 32px 50px -30px rgba(35, 22, 15, .55); }
.offer-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.offer-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.offer:hover .offer-media img { transform: scale(1.04); }
.offer-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.offer-kind { font-size: .85rem; color: var(--muted); margin: 0; font-weight: 500; }
.offer h3 { margin: 0; font-size: 1.4rem; }
.offer h3 a { color: inherit; text-decoration: none; }
.offer h3 a::after { content: ""; position: absolute; inset: 0; }
.offer { position: relative; }
.offer-line { color: var(--muted); margin: 0; flex: 1; }
.offer .more { font-weight: 600; color: var(--link); margin-top: 6px; }
.on-night { --fg: var(--ink-n); --muted: var(--muted-n); --line: var(--line-n); --link: var(--gold); --card: var(--night-card); color: var(--fg); }
.offer.on-night { background: var(--night-card); }

/* Price */
.price { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 12px; margin: 6px 0 2px; }
.price .tag { grid-column: 1 / -1; justify-self: start; font: 700 .72rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 6px 9px; border-radius: 6px; background: color-mix(in srgb, var(--ember) 13%, transparent); color: var(--ember); margin-bottom: 6px; }
html[lang="ar"] .price .tag { letter-spacing: 0; font-size: .85rem; }
.on-night .price .tag, html[data-sky="dusk"] .price .tag, html[data-sky="night"] .price .tag, html[data-sky="deep"] .price .tag { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }
.price .now { font: 600 2rem/1 var(--serif); }
.price .now small { font: 600 1rem var(--sans); margin-inline-start: 4px; }
.price .was { color: var(--muted); font-size: 1.05rem; }
.price .was s { text-decoration-thickness: 1.5px; }
.price .per { grid-column: 1 / -1; color: var(--muted); font-size: .9rem; }

/* Option page */
.opt-hero { padding: 96px 0 40px; }
.opt-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.opt-hero-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 4; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .55); }
.opt-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.crumbs { font-size: .92rem; margin-bottom: 18px; color: var(--muted); }
.crumbs a { color: inherit; }
.facts { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: .92rem; font-weight: 500; }
.opt-body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(28px, 5vw, 64px); align-items: start; padding-bottom: 56px; }
.prose { max-width: 66ch; }
.prose p { font-size: 1.1rem; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 1.6em; }
.days-list { list-style: none; margin: 0; padding: 0; border-inline-start: 1.5px solid var(--line); }
.days-list li { position: relative; padding: 0 0 28px 28px; }
html[dir="rtl"] .days-list li { padding: 0 28px 28px 0; }
.days-list li::before { content: ""; position: absolute; inset-inline-start: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--bg); }
.days-list h3 { font-size: 1.3rem; }
.lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; margin-top: 12px; }
.lists h3 { font: 600 1rem/1.3 var(--sans); margin-bottom: 10px; }
.lists ul { margin: 0; padding-inline-start: 1.1em; color: var(--muted); }
.lists li { margin-bottom: 6px; }
.addon { margin-top: 32px; padding: 22px 24px; border-radius: var(--radius); background: var(--night-card); color: var(--ink-n); }
.addon a { color: var(--gold); font-weight: 600; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 36px 0 8px; }
.gallery figure { margin: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

/* Booking panel */
.book { position: sticky; top: 24px; background: var(--card); border-radius: 18px; padding: 26px; box-shadow: 0 1px 0 var(--line), 0 30px 60px -36px rgba(0, 0, 0, .55); }
.book h2 { font-size: 1.5rem; margin-bottom: 4px; }
.book .group { margin-top: 18px; }
.field { display: grid; gap: 6px; margin-top: 16px; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field select { font: inherit; font-size: 1rem; min-height: 46px; padding: 10px 12px; border-radius: 10px; border: 1.5px solid color-mix(in srgb, var(--fg) 28%, transparent); background: transparent; color: var(--fg); width: 100%; }
.field select option { color: #23160F; }
.book .btn-row { margin-top: 20px; flex-direction: column; }
.book .btn { width: 100%; }
.small { font-size: .9rem; color: var(--muted); margin: 14px 0 0; }
.ref { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }

/* Why + reviews */
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; list-style: none; padding: 0; margin: 40px 0 0; }
.why h3 { font-size: 1.35rem; }
.why p { color: var(--muted); }
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin: 40px 0 0; padding: 0; list-style: none; }
.review { background: var(--card); border-radius: var(--radius); padding: 28px; margin: 0; }
.review blockquote { margin: 0; font: italic 400 1.08rem/1.6 var(--serif); }
.review blockquote p:last-child { margin-bottom: 0; }
.review figcaption { margin-top: 16px; font-weight: 600; color: var(--muted); }
.ta-box { margin-top: 32px; padding: 22px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); }
.ta-box[hidden] { display: none; }

/* Plan (enquiry builder) */
.plan-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.plan-form { background: var(--card); border-radius: 18px; padding: clamp(22px, 3vw, 34px); }
.plan-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.contact-list a { font-weight: 600; }

/* Footer */
.site-foot { padding: 56px 0 64px; background: #0B0E22; font-size: .95rem; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-foot h2 { font-size: 1.4rem; color: var(--fg); }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-foot a { color: var(--fg); }

/* Consent bar */
.consent { position: fixed; inset: auto 16px 16px; z-index: 60; max-width: 560px; margin-inline: auto; background: #1A1430; color: #F3ECF4; border-radius: 16px; padding: 18px 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); display: grid; gap: 12px; }
.consent[hidden] { display: none; }
.consent p { margin: 0; font-size: .95rem; }
.consent a { color: var(--gold); }
.consent .btn-row .btn { min-height: 42px; padding: 9px 18px; }
.consent .btn.ghost { color: #F3ECF4; }
.consent .btn:not(.ghost) { background: var(--gold); color: var(--gold-ink); }

/* Preview review marks (preview builds only) */
.review-bar { position: fixed; inset-inline-start: 16px; bottom: 16px; z-index: 55; background: #FFF4D6; color: #3A2A00; border-radius: 999px; padding: 8px 8px 8px 16px; font: 600 .85rem/1.2 var(--sans); display: flex; gap: 10px; align-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.review-bar button { font: inherit; border: 0; border-radius: 999px; padding: 8px 12px; background: #3A2A00; color: #FFF4D6; cursor: pointer; min-height: 32px; }
.review-on [data-confirm] { outline: 2px dashed #E0A100; outline-offset: 3px; }
.review-on [data-confirm]::after { content: attr(data-note); display: block; margin-top: 6px; font: 600 .78rem/1.35 var(--sans); color: #3A2A00; background: #FFF4D6; padding: 6px 8px; border-radius: 6px; letter-spacing: 0; text-transform: none; }

/* Motion */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .opt-hero { padding-top: 100px; }
  .opt-hero-grid, .opt-body, .plan-grid, .foot-grid { grid-template-columns: 1fr; }
  .book { position: static; }
}
@media (max-width: 520px) {
  .plan-form .row2 { grid-template-columns: 1fr; }
  .price .now { font-size: 1.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-head, .consent, .review-bar, .dial, .stars { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Keep focused controls clear of the fixed bars (WCAG 2.4.11) */
html { scroll-padding-bottom: 80px; }
html.bar-open { scroll-padding-bottom: 200px; }
html.bar-open .site-foot { padding-bottom: 220px; }

/* ---- Logo lockup ---- */
.brand-words { display: grid; gap: 3px; }
.brand-name { font: 600 1.3rem/1 var(--serif); }
.brand-sub { font: 400 .62rem/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .24em; text-transform: uppercase; opacity: .85; }
html[lang="ar"] .brand-sub { font-family: var(--sans); letter-spacing: 0; font-size: .75rem; }
.hero-grid { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; }
.hero-seal svg { width: clamp(150px, 15vw, 210px); height: auto; display: block; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .35)); }
.foot-seal svg { width: 132px; height: auto; display: block; margin-bottom: 16px; }
@media (max-width: 720px) { .hero-grid { grid-template-columns: 1fr; } .hero-seal { display: none; } }

/* ---- Choose your experience: the tabs ---- */
.choose { padding: clamp(40px, 6vw, 72px) 0 8px; }
.choose-head { display: grid; gap: 10px; margin-bottom: 24px; }
.choose-head h2 { margin: 0; }
.choose-head .lede { margin: 0; max-width: 60ch; }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr) 6px repeat(2, 1fr); gap: 12px; }
.tab-gap { background: var(--line); width: 1px; justify-self: center; border-radius: 1px; }
.tab { display: flex; flex-direction: column; text-align: start; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: pointer; font: inherit;
  background: var(--card); color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line); transition: transform .25s var(--ease), box-shadow .25s; position: relative; }
.tab img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; filter: saturate(.85); transition: filter .3s; }
.tab-body { display: grid; gap: 4px; padding: 12px 14px 14px; }
.tab-badge { justify-self: start; font: 700 .68rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; border-radius: 5px; background: #F1DCB4; color: #5A3A0A; }
html[lang="ar"] .tab-badge { letter-spacing: 0; font-size: .8rem; }
.tab.is-night .tab-badge { background: #1E2447; color: #F3ECF4; }
.tab-name { font: 600 1.08rem/1.2 var(--serif); }
.tab-meta { font-size: .85rem; color: var(--muted); }
.tab-price { font-size: .9rem; color: var(--muted); }
.tab-price s { margin-inline-end: 4px; }
.tab-price b { font: 600 1.15rem var(--serif); color: var(--fg); }
.tab:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--fg) 35%, transparent); }
.tab:hover img { filter: none; }
.tab[aria-selected="true"] { background: #161B38; color: #F3ECF4; box-shadow: 0 0 0 3px #E9B864, 0 18px 40px -20px rgba(0, 0, 0, .6); }
.tab[aria-selected="true"] img { filter: none; }
.tab[aria-selected="true"] .tab-meta, .tab[aria-selected="true"] .tab-price { color: #BEB6D2; }
.tab[aria-selected="true"] .tab-price b { color: #E9B864; }
.tab[aria-selected="true"]::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: #E9B864; }
.tab:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; }
@media (max-width: 1100px) { .tabs { grid-template-columns: repeat(3, 1fr); } .tab-gap { display: none; } }
@media (max-width: 640px) {
  .choose-head { grid-template-columns: 1fr; }
  .tabs { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tab img { aspect-ratio: 16 / 9; }
  .tab-body { padding: 10px 12px 12px; }
  .tab-name { font-size: 1rem; }
}

/* ---- Panels: one story at a time ---- */
.js .panel:not(.active) { display: none; }
.panel { padding: 8px 0 clamp(32px, 5vw, 56px); }
.panel:focus { outline: none; }
.panel-end { display: grid; grid-template-columns: 1fr minmax(300px, 400px); gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: 16px; }
.panel-sum h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.panel-sum p { color: var(--muted); }
.panel-sum .facts { margin-bottom: 16px; }
.book.on-card { position: static; }
.book-h { font-size: 1.4rem; margin-bottom: 4px; }
.chapter .time { margin-bottom: 8px; }
.chapter h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
@media (max-width: 960px) { .panel-end { grid-template-columns: 1fr; } .chapter-media { max-width: none; } }

/* ===== v3 (home v3, 2026-11-29): spacing fixes + rising-sun dial ===== */
/* ---- v3 refinements (2026-11-29): spacing, overlaps, the sun dial. Port into tools/site.css ---- */

/* Type rhythm: no orphans, balanced headings and tab names ("Hike Jabal / Al-Hash", not "Al- / Hash") */
p, li, .lede { text-wrap: pretty; }
h1, h2, h3, .tab-name { text-wrap: balance; }
.tab-name { hyphens: manual; }

/* Icons as masks so they inherit currentColor */
.ico { width: 20px; height: 20px; flex: none; display: inline-block; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.brand .mark { display: inline-block; }
.brand .mark svg { width: 100%; height: 100%; display: block; }
.hero-seal svg, .foot-seal svg { width: 100%; height: auto; display: block; }
.hero-seal { width: clamp(150px, 15vw, 210px); aspect-ratio: 1; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .35)); }
.foot-seal { width: 132px; aspect-ratio: 1; margin-bottom: 16px; }

/* Header: keep the nav from crowding the lockup between 860 and 1040 */
@media (max-width: 1040px) and (min-width: 861px) { .nav a { padding: 10px 9px; font-size: .92rem; } .site-head .wrap { gap: 12px; } }

/* Hero: the seal no longer sits on the lede at mid widths */
.hero-grid { align-items: end; gap: clamp(24px, 4vw, 56px); }
.hero .lede { margin-bottom: 28px; }
@media (max-width: 960px) { .hero-seal { width: 132px; } }

/* Choose: head spacing, tab grid that never squeezes names below ~150px */
.choose { padding-top: clamp(56px, 7vw, 88px); }
.choose-head { gap: 12px; margin-bottom: 28px; }
.tabs { gap: 14px; }
.tab-body { gap: 6px; padding: 12px 14px 16px; align-content: start; flex: 1; }
.tab-price { margin-top: auto; padding-top: 4px; }
.tab[aria-selected="true"] { transform: translateY(-2px); }

/* Story: dial column, beat spacing, and breathing room before the booking card */
.panel { padding-top: clamp(24px, 4vw, 48px); }
@media (min-width: 961px) { .day-grid { grid-template-columns: 240px minmax(0, 1fr); } }
.chapter { padding: clamp(36px, 5vw, 64px) 0; }
.chapter + .chapter { border-top: 1px solid var(--line); }
.chapter-inner { align-items: center; }
.chapter .time { margin-bottom: 10px; }
.chapter h3 { margin-bottom: 12px; }
.chapter p { margin-bottom: 0; }
.panel-end { margin-top: clamp(32px, 4vw, 48px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.panel-sum .facts { margin: 18px 0 20px; }
.book .price { margin-top: 10px; }
.book .group { margin-top: 20px; }

/* ---- The dial ---- */
.dial { top: 96px; padding-top: 12px; gap: 14px; }
.dial svg { width: 220px; height: 128px; overflow: visible; display: block; }
.dial p { margin: 0; }
.dial-text { display: grid; gap: 6px; }
.dial-time { font: 600 2.4rem/1.05 var(--serif); }
.dial-label { color: var(--muted); font-size: .95rem; line-height: 1.4; max-width: 20ch; }
.dial.tick .dial-text { animation: dialTick .52s var(--ease); }
@keyframes dialTick { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.dial { --top: #EBB08E; --bot: #F8E3CF; --sun: #E97C29; --glow: #F3A35E; --sky-o: .55; --ray-o: .9; }
.dial[data-step="day"], .dial[data-step="paper"] { --top: #A9BFD3; --bot: #F3E6D2; --sun: #E9B864; --glow: #F6D59A; --ray-o: .8; }
.dial[data-step="noon"] { --top: #93B3D2; --bot: #F5E8CC; --sun: #F0C474; --glow: #FBE4AE; --ray-o: 1; }
.dial[data-step="dusk"] { --top: #5A3048; --bot: #D0611B; --sun: #E97C29; --glow: #E97C29; --sky-o: .6; --ray-o: .5; }
.dial[data-step="night"], .dial[data-step="deep"] { --top: #0B0E22; --bot: #2B3163; --sun: #F3ECF4; --glow: #BEB6D2; --sky-o: .7; --ray-o: 0; }
.dial .dial-sky { opacity: var(--sky-o); transition: opacity .9s var(--ease); }
.dial .sky-top { stop-color: var(--top); transition: stop-color .9s var(--ease); }
.dial .sky-bot { stop-color: var(--bot); transition: stop-color .9s var(--ease); }
.dial .glow-in { stop-color: var(--glow); stop-opacity: .55; transition: stop-color .9s; }
.dial .glow-out { stop-color: var(--glow); stop-opacity: 0; }
.dial .arc { fill: none; stroke: var(--muted); stroke-opacity: .45; stroke-width: 1.2; stroke-dasharray: 2 5; }
.dial .arc-trail { fill: none; stroke: var(--sun); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke .9s; }
.dial .beat { fill: var(--bg); stroke: var(--muted); stroke-width: 1.2; transition: fill .3s, stroke .3s, r .3s; }
.dial .beat.on { fill: var(--sun); stroke: var(--sun); }
.dial .beat.now { r: 4.2; }
.dial .orb-g { transition: transform .5s var(--ease); }
.dial .sun { fill: var(--sun); transition: fill .9s, opacity .5s; }
.dial .rays line { stroke: var(--sun); stroke-width: 1.6; stroke-linecap: round; }
.dial .rays { opacity: var(--ray-o); transition: opacity .6s, transform .5s var(--ease); }
.dial .moon { fill: #F3ECF4; opacity: 0; transition: opacity .5s; }
.dial.is-moon .sun { opacity: 0; }
.dial.is-moon .rays { opacity: 0; }
.dial.is-moon .moon { opacity: 1; }
.dial .dial-stars circle { fill: #FFF6E8; }
.dial .dial-stars { opacity: 0; transition: opacity .9s; }
.dial[data-step="night"] .dial-stars, .dial[data-step="deep"] .dial-stars { opacity: .9; }
.dial[data-step="dusk"] .dial-stars { opacity: .35; }
.dial .ridge { fill: var(--bg); stroke: var(--fg); stroke-opacity: .55; stroke-width: 1.4; stroke-linejoin: round; transition: fill .9s; }
.dial .horizon { stroke: var(--fg); stroke-opacity: .55; stroke-width: 1.4; }
.dial .dune { fill: none; stroke: var(--muted); stroke-opacity: .5; stroke-width: 1.2; }

/* Horizon glow on the page itself */
.sky-glow { position: fixed; inset: auto 0 0 0; height: 46vh; z-index: -1; pointer-events: none; opacity: 0;
  --g: #F3A35E; background: radial-gradient(60% 100% at var(--gx, 10%) 100%, color-mix(in srgb, var(--g) 34%, transparent), transparent 72%);
  transition: opacity .9s var(--ease), --gx .5s; }
.sky-glow[data-step="day"], .sky-glow[data-step="paper"] { --g: #F6D59A; }
.sky-glow[data-step="noon"] { --g: #FBE4AE; }
.sky-glow[data-step="dusk"] { --g: #D0611B; }

/* Phone: the dial becomes a slim sticky pill above the story */
@media (max-width: 960px) {
  .day-grid > [aria-hidden="true"] { display: contents; }
  .day-grid { gap: 0; }
  .dial { display: flex; flex-direction: row; align-items: center; align-self: start; gap: 12px; position: sticky; top: 10px; z-index: 6; justify-self: start; max-width: 100%;
    margin: 0 0 4px; padding: 8px 16px 8px 10px; border-radius: 999px;
    background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: inset 0 0 0 1px var(--line), 0 10px 30px -18px rgba(0, 0, 0, .5); transition: background-color .9s var(--ease); }
  .dial svg { width: 76px; height: 44px; }
  .dial .beat { r: 4; } .dial .beat.now { r: 5.5; }
  .dial-text { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
  .dial-time { font-size: 1.15rem; white-space: nowrap; }
  .dial-label { font-size: .88rem; max-width: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .chapter { padding: 40px 0; }
  .chapter-inner { gap: 20px; }
}

/* Preview pill sits above the consent bar instead of under it */
html.bar-open .review-bar { bottom: calc(var(--consent-h, 120px) + 28px); }
@media (max-width: 520px) { .review-bar { font-size: .78rem; padding: 6px 6px 6px 12px; } }

@media (prefers-reduced-motion: reduce) { .sky-glow { display: none; } }
@media print { .sky-glow { display: none !important; } }

/* ===== v3.1 (2026-11-29): phone fixes ===== */
/* Story column must never grow past the screen (the dial pill's one-line label was widening it) */
.day-grid > div, .chapter-inner > *, .dial, .dial-text, .panel-end > * { min-width: 0; }
@media (max-width: 960px) {
  .day-grid { grid-template-columns: minmax(0, 1fr); }
  .dial { max-width: 100%; box-sizing: border-box; }
  .chapter-media, .chapter-media img { width: 100%; max-width: 100%; }
}
.choose-prompt { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-weight: 600; color: var(--fg); }
.choose-prompt::before { content: ""; width: 22px; height: 2px; background: var(--ember); border-radius: 2px; }
/* Phones: the tabs become a swipe gallery */
.swipe-hint { display: none; margin: -6px 0 10px; font-size: .85rem; color: var(--muted); }
@media (max-width: 640px) {
  .tabs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding: 6px var(--gutter) 16px;
    margin: 0 calc(-1 * var(--gutter)); scroll-padding-inline: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 74%; scroll-snap-align: start; }
  .tab img { aspect-ratio: 4 / 3; }
  .tab-name { font-size: 1.15rem; }
  .tab-gap { display: none; }
  .swipe-hint { display: block; }
}

/* ===== v3.2 (2026-11-29): hero never runs under the header ===== */
/* The header floats over the hero, so the hero reserves its height plus breathing room,
   and the headline also scales with window height (short or zoomed desktop windows). */
.hero { padding-top: 120px; }
.hero h1 { font-size: clamp(2.2rem, min(6.2vw, 10vh), 4.6rem); }
@media (max-height: 640px) and (min-width: 721px) { .hero { min-height: 0; } .hero .lede { margin-bottom: 20px; } }
@media (max-width: 720px) { .hero { padding-top: 104px; } }

/* ===== v4 (2026-12-01): Wadi Rum Arabian Cave ===== */
/* Header: see-through over the home film (a soft top shade, never a solid bar), then a solid bar that
   follows the sky colour once the film is scrolled past. Inner pages keep the solid header. */
.site-head .wrap { min-height: 84px; }
.site-head.over-video { position: fixed; transition: background-color .45s var(--ease), color .45s var(--ease), box-shadow .45s var(--ease); }
.site-head.over-video::before { content: ""; position: absolute; inset: 0 0 -40px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 10, 4, .55), rgba(20, 10, 4, 0)); transition: opacity .45s var(--ease); }
.site-head.over-video.scrolled, .site-head.over-video.menu-open { background: color-mix(in srgb, var(--bg) 94%, transparent); color: var(--fg);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line), 0 12px 30px -24px rgba(0, 0, 0, .5); }
.site-head.over-video.scrolled::before, .site-head.over-video.menu-open::before { opacity: 0; }
.site-head.over-video.scrolled .wrap { min-height: 70px; }
.site-head.over-video.scrolled .nav a:hover { background: color-mix(in srgb, var(--fg) 9%, transparent); }
.nav a { letter-spacing: .02em; }
.head-book { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; padding: 10px 20px; }
html[lang="ar"] .head-book { text-transform: none; letter-spacing: 0; font-size: .95rem; }
.head-book:hover { background: color-mix(in srgb, currentColor 12%, transparent); transform: none; }
html[data-sky="dusk"] .head-book:not(.ghost), html[data-sky="night"] .head-book:not(.ghost), html[data-sky="deep"] .head-book:not(.ghost) { background: transparent; color: inherit; }

/* Logo lockup: light tone on the film and at night, dark tone on paper */
.brand { gap: 0; }
.lockup { display: inline-flex; align-items: center; gap: 12px; }
.lk-mark { height: 46px; width: auto; }
.lk-word { height: 40px; width: auto; }
.site-head.over-video.scrolled .lockup .lk-mark { height: 40px; }
.site-head.over-video.scrolled .lockup .lk-word { height: 34px; }
.lk-paper { display: none; }
.site-head.solid .lk-night, .site-head.over-video.scrolled .lk-night, .site-head.over-video.menu-open .lk-night { display: none; }
.site-head.solid .lk-paper, .site-head.over-video.scrolled .lk-paper, .site-head.over-video.menu-open .lk-paper { display: inline-flex; }
/* dark skies: the light logo again (specificity beats the .scrolled / .solid rules above) */
:is(html[data-sky="dusk"], html[data-sky="night"], html[data-sky="deep"]) .site-head:is(.solid, .scrolled, .menu-open, .over-video) .lk-paper { display: none; }
:is(html[data-sky="dusk"], html[data-sky="night"], html[data-sky="deep"]) .site-head:is(.solid, .scrolled, .menu-open, .over-video) .lk-night { display: inline-flex; }
@media (max-width: 860px) {
  .lk-mark { height: 36px; } .lk-word { height: 32px; } .lockup { gap: 8px; }
  .site-head.over-video.scrolled .lockup .lk-mark { height: 32px; }
  .site-head.over-video.scrolled .lockup .lk-word { height: 28px; }
  .js .nav { background: var(--bg); color: var(--fg); box-shadow: 0 20px 50px rgba(0, 0, 0, .3), inset 0 0 0 1px var(--line); }
  .js .nav a:hover { background: color-mix(in srgb, var(--fg) 9%, transparent); }
}

/* Hero: the full-screen film, the headline centred and set in capitals */
.hero.has-video { min-height: max(560px, 100svh); align-items: center; text-align: center; padding: 120px 0 96px; background: #24160E; }
.hero-media, .hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media video { opacity: 0; transition: opacity 1.2s var(--ease); }
.video-on .hero-media video { opacity: 1; }
.hero.has-video::after { background:
  radial-gradient(75% 60% at 50% 48%, rgba(20, 10, 4, .55), rgba(20, 10, 4, .12) 75%),
  linear-gradient(180deg, rgba(20, 10, 4, .45) 0%, rgba(20, 10, 4, .25) 35%, rgba(20, 10, 4, .3) 70%, rgba(20, 10, 4, .75) 100%); }
.hero-inner { display: grid; justify-items: center; }
.hero.has-video h1 { text-transform: uppercase; letter-spacing: .06em; font-weight: 600; max-width: 20ch; margin-inline: auto;
  font-size: clamp(2rem, min(5.4vw, 9vh), 4.3rem); line-height: 1.08; text-shadow: 0 2px 34px rgba(0, 0, 0, .4); }
html[lang="ar"] .hero.has-video h1 { letter-spacing: 0; line-height: 1.35; }
.hero.has-video .lede { margin-inline: auto; max-width: 52ch; color: rgba(255, 255, 255, .94); text-shadow: 0 1px 18px rgba(0, 0, 0, .45); }
.hero.has-video .btn-row { justify-content: center; }
.hero.has-video .scroll-cue { margin-top: clamp(28px, 6vh, 56px); flex-direction: column; gap: 12px; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; }
html[lang="ar"] .hero.has-video .scroll-cue { letter-spacing: 0; text-transform: none; font-size: .9rem; }
.video-toggle { position: absolute; inset-inline-end: var(--gutter); bottom: 24px; z-index: 3; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; border: 0; cursor: pointer; color: #fff; background: rgba(20, 10, 4, .45); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }
.video-toggle:hover { background: rgba(20, 10, 4, .65); }
.video-toggle svg { width: 18px; height: 18px; }
.video-toggle[data-playing="true"] .i-play, .video-toggle[data-playing="false"] .i-pause { display: none; }
@media (max-width: 720px) { .hero.has-video { padding: 104px 0 88px; } .hero.has-video .btn-row { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; } }
@media (prefers-reduced-motion: reduce) { .hero-media video { display: none; } }

/* Choose: centred like the Stars Valley home */
.choose-head { justify-items: center; justify-content: center; text-align: center; }
.choose-head .lede { margin-inline: auto; }
.choose-prompt { justify-content: center; }
.swipe-hint { text-align: center; }

/* Booking: start / end dates, the add-on night */
.row2.dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.row2.dates > * { min-width: 0; }
.row2.dates input { min-width: 0; width: 100%; max-width: 100%; box-sizing: border-box; }
.field input[readonly] { background: color-mix(in srgb, var(--fg) 6%, transparent); border-style: dashed; cursor: default; }
.date-hint { margin-top: 8px; }
.addon-field[hidden] { display: none; }
@media (max-width: 420px) { .row2.dates { grid-template-columns: 1fr; } }

/* Footer: the stacked logo */
.foot-logo img { width: 210px; height: auto; display: block; margin-bottom: 18px; }

/* ===== language switcher (EN · FR · DE · عربي), 2026-12-02 ===== */
.langs { display: inline-flex; align-items: center; margin-inline-start: 6px; padding-inline-start: 8px; border-inline-start: 1px solid color-mix(in srgb, currentColor 35%, transparent); }
.nav .langs a { padding: 8px 7px; font-size: .84rem; letter-spacing: .06em; font-weight: 600; opacity: .82; min-width: 28px; text-align: center; }
.nav .langs a:hover { opacity: 1; }
.nav .langs a[aria-current="true"] { opacity: 1; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.nav .langs a[lang="ar"] { letter-spacing: 0; font-size: .95rem; }
@media (max-width: 1180px) and (min-width: 861px) { .nav a { padding: 10px 8px; font-size: .92rem; } .nav .langs a { padding: 8px 5px; } .site-head .wrap { gap: 10px; } }
@media (max-width: 860px) {
  .langs { margin: 6px 0 0; padding: 8px 0 0; border-inline-start: 0; border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); gap: 4px; }
  .nav .langs a { padding: 12px 14px; font-size: .95rem; }
}

/* FR/DE headlines run longer: a smaller hero clamp on small phones; a little air between language links for the focus ring */
@media (max-width: 420px) { html:is([lang="de"], [lang="fr"]) .hero.has-video h1 { font-size: clamp(1.6rem, 7.4vw, 2.1rem); } }
.langs { gap: 3px; }
/* Keyboard focus never lands under the fixed header; extra shade behind the hero paragraph over bright frames */
html { scroll-padding-top: 92px; }
.hero.has-video .lede { text-shadow: 0 1px 2px rgba(20, 10, 4, .55), 0 0 22px rgba(20, 10, 4, .6); }
