/* Liwan, second option: a night-black stage with vivid signal colours and moving light. */

@font-face {
  font-family: 'Unbounded';
  src: url('fonts/unbounded-latin.woff2') format('woff2');
  font-weight: 300 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+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Readex Pro';
  src: url('fonts/readex-latin.woff2') format('woff2');
  font-weight: 160 700;
  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+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Readex Pro';
  src: url('fonts/readex-latin-ext.woff2') format('woff2');
  font-weight: 160 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Readex Pro';
  src: url('fonts/readex-arabic.woff2') format('woff2');
  font-weight: 160 700;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}

:root {
  /* Liwan, second option: night-black ground, four vivid inks, light text. Token names are kept
     from the first option so every page shares them; their meaning is now: brick = page ground,
     plaster = raised surface, ink = text, night = deepest panel, gold = primary signal, clay = alert. */
  --brick: #06070d;
  --plaster: #121629;
  --ink: #eef1ff;
  --clay: #ff3d9a;
  --gold: #22e6ff;
  --night: #090b16;
  --violet: #8b5cff;
  --lime: #b6ff3b;
  --amber: #ffa21f;
  --magenta: #ff3d9a;
  --cyan: #22e6ff;
  --surface-2: #1a1f38;
  --line: rgba(160, 175, 255, 0.14);
  --glow-cyan: 0 0 0 1px rgba(34, 230, 255, 0.35), 0 0 32px -4px rgba(34, 230, 255, 0.45);
  --grad: linear-gradient(120deg, var(--cyan), var(--violet) 52%, var(--magenta));

  --brick-dark: #04050a;
  --brick-light: #0c0f1d;
  --ink-soft: #a9b0d6;
  --ink-line: rgba(160, 175, 255, 0.22);
  --ink-hair: rgba(160, 175, 255, 0.12);
  --night-2: #141932;
  --night-3: #1d2344;
  --night-line: rgba(160, 175, 255, 0.16);
  --on-night: #eef1ff;
  --on-night-soft: #a9b0d6;
  --gold-soft: rgba(34, 230, 255, 0.16);

  --display: 'Unbounded', 'Readex Pro', sans-serif;
  --text: 'Readex Pro', system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --wide: 1400px;
  --measure: 66ch;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: clamp(5rem, 10vw, 9rem);
  --radius: 12px;
  --arch: 999px 999px 0 0;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Running-bond brick and the perforated screen (holes show what is behind). */
  --pattern-bond: linear-gradient(rgba(140, 160, 255, 0.045) 1px, transparent 1px) 0 0 / 56px 56px, linear-gradient(90deg, rgba(140, 160, 255, 0.045) 1px, transparent 1px) 0 0 / 56px 56px;
  --pattern-screen: radial-gradient(circle, rgba(6, 7, 13, 0.9) 1.6px, transparent 2px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--clay) var(--brick-light);
  background: var(--brick);
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--pattern-bond), var(--brick);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
:lang(ar) body,
body:lang(ar) {
  line-height: 1.85;
}

::selection {
  background: var(--ink);
  color: var(--gold);
}
.night ::selection {
  background: var(--gold);
  color: var(--night);
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-track {
  background: var(--brick-light);
}
::-webkit-scrollbar-thumb {
  background: var(--clay);
  border: 3px solid var(--brick-light);
  border-radius: 6px;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}
.night :focus-visible,
.on-night:focus-visible {
  outline-color: var(--gold);
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
a:hover {
  text-decoration-thickness: 2px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.6rem, 5.4vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.012em;
}
h2 {
  font-size: clamp(2rem, 3.8vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
}
h3 {
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  line-height: 1.2;
}
:lang(ar) h1,
:lang(ar) h2,
:lang(ar) h3 {
  letter-spacing: 0;
  line-height: 1.3;
  /* Arabic headings set in Readex Pro need a little word room. */
  word-spacing: 0.06em;
}
:lang(ar) .brand-word,
:lang(ar) .record-name,
:lang(ar) .pass-name,
:lang(ar) .post-title {
  word-spacing: 0.06em;
}
p {
  margin: 0;
  text-wrap: pretty;
}
.lead {
  font-size: clamp(1.125rem, 1.35vw, 1.3rem);
  line-height: 1.55;
  max-width: 52ch;
}
.measure {
  max-width: var(--measure);
}
.num {
  font-variant-numeric: tabular-nums;
}

/* Drawing labels: the lettering an architect puts on a section. */
.label {
  font-family: var(--text);
  font-stretch: 75%;
  font-weight: 650;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.3;
}
:lang(ar) .label {
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  inset-inline-start: var(--gutter);
  inset-block-start: -100px;
  z-index: 50;
  background: var(--ink);
  color: var(--plaster);
  padding: 0.6rem 1rem;
}
.skip:focus {
  inset-block-start: 12px;
}

.ic {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  stroke-width: 1.75;
}
:dir(rtl) .flip,
[dir='rtl'] .flip {
  transform: scaleX(-1);
}

/* ---------- Route header: the walk from the gate inward ---------- */

.route {
  position: sticky;
  inset-block-start: 0;
  z-index: 40;
  background: var(--brick);
  border-block-end: 1px solid var(--ink-hair);
  transition: background-color 0.6s var(--ease-out), color 0.6s var(--ease-out), border-color 0.6s;
}
.route[data-tone='night'] {
  background: var(--night);
  color: var(--on-night);
  border-block-end-color: var(--night-line);
}
.route-in {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.5rem);
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex: none;
}
.brand-mark {
  width: 30px;
  height: 34px;
}
.brand-word {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: 0.01em;
}
.brand-word small {
  font-family: var(--text);
  font-stretch: 75%;
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-inline-start: 0.35em;
  vertical-align: 0.55em;
  opacity: 0.8;
}
:lang(ar) .brand-word small {
  letter-spacing: 0;
  font-size: 0.75rem;
}

.stations {
  flex: 1;
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  min-width: 0;
}
.stations::before {
  content: '';
  position: absolute;
  inset-inline: 6px;
  inset-block-start: 50%;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
}
.stations li {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
}
.stations li:first-child {
  justify-content: flex-start;
}
.stations li:last-child {
  justify-content: flex-end;
}
.stations a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.55rem;
  text-decoration: none;
  background: var(--station-bg, var(--brick));
  border-radius: var(--radius);
  transition: color 0.2s;
}
.route[data-tone='night'] .stations a {
  --station-bg: var(--night);
}
.stations a::before {
  content: '';
  width: 9px;
  height: 9px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  flex: none;
  transition: background-color 0.2s, transform 0.3s var(--ease-out);
}
.stations a:hover::before {
  transform: scale(1.25);
}
.stations a[aria-current='page']::before {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--gold) 28%, transparent);
}
.route-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: none;
}
.lang {
  display: inline-flex;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  overflow: hidden;
}
.lang button {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  min-height: 34px;
}
.lang button[aria-pressed='true'] {
  background: var(--ink);
  color: var(--plaster);
}
.route[data-tone='night'] .lang button[aria-pressed='true'] {
  background: var(--gold);
  color: var(--night);
}
.lang button[lang='ar'] {
  font-family: 'Readex Pro', sans-serif;
}
.menu-btn {
  display: none;
}

@media (max-width: 1080px) {
  .stations {
    display: none;
  }
  .route-in {
    justify-content: space-between;
  }
  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid currentColor;
    border-radius: var(--radius);
    background: none;
    color: inherit;
    cursor: pointer;
  }
  .route-tools .btn {
    display: none;
  }
  .route.open .stations {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    inset-inline: 0;
    inset-block-start: 100%;
    padding: 1.25rem var(--gutter) 1.75rem;
    background: var(--brick);
    border-block-end: 1px solid var(--ink-hair);
    gap: 0.25rem;
  }
  .route[data-tone='night'].open .stations {
    background: var(--night);
  }
  .route.open .stations::before {
    inset-inline: auto;
    inset-inline-start: calc(var(--gutter) + 12px);
    inset-block: 1.6rem 2.1rem;
    width: 1px;
    height: auto;
  }
  .route.open .stations li {
    justify-content: flex-start;
  }
  .route.open .stations a {
    font-size: 1.15rem;
    padding: 0.55rem 0.4rem;
  }
}
@media (max-width: 420px) {
  .brand-word small {
    display: none;
  }
}

/* ---------- Buttons and fields ---------- */

.btn {
  --b-bg: var(--ink);
  --b-fg: var(--plaster);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  font: inherit;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.1;
  color: var(--b-fg);
  background: var(--b-bg);
  border: 1px solid var(--b-bg);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background-color 0.2s;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.80);
}
.btn:active {
  transform: translateY(0);
}
.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn-sm {
  min-height: 38px;
  padding: 0.45rem 0.9rem;
  font-size: 0.92rem;
}
.btn-gold {
  --b-bg: var(--gold);
  --b-fg: var(--night);
}
.btn-line {
  --b-bg: transparent;
  --b-fg: currentColor;
  border-color: currentColor;
}
.btn-line:hover {
  background: color-mix(in oklab, currentColor 8%, transparent);
}
.route[data-tone='night'] .btn:not(.btn-line) {
  --b-bg: var(--gold);
  --b-fg: var(--night);
}

.go {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 650;
  text-decoration: none;
  border-block-end: 1px solid currentColor;
  padding-block-end: 2px;
}
.go .ic {
  transition: transform 0.3s var(--ease-out);
}
.go:hover .ic {
  transform: translateX(4px);
}
[dir='rtl'] .go:hover .ic {
  transform: scaleX(-1) translateX(4px);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.field > span {
  font-weight: 600;
  font-size: 0.92rem;
}
.input,
.select,
.textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.7rem 0.9rem;
  font: inherit;
  color: var(--ink);
  background: var(--plaster);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.textarea {
  min-height: 110px;
  resize: vertical;
}
.input::placeholder,
.textarea::placeholder {
  color: color-mix(in oklab, var(--ink) 72%, var(--plaster));
}
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--gold) 55%, transparent);
}
.input[aria-invalid='true'] {
  border-color: var(--clay);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--clay) 30%, transparent);
}
.field-error {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.field-error .ic {
  color: var(--clay);
}

/* Phone first: the booking action in its working form. */
.phone-book {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  max-width: 34rem;
}
.phone-input {
  flex: 1 1 15rem;
  display: flex;
  align-items: stretch;
  background: var(--plaster);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  direction: ltr;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.phone-input:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--gold) 55%, transparent);
}
.phone-input .cc {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-inline: 0.85rem;
  border-inline-end: 1px solid var(--ink-hair);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.phone-input input {
  flex: 1;
  min-width: 0;
  min-height: 50px;
  border: 0;
  background: none;
  font: inherit;
  font-variant-numeric: tabular-nums;
  padding-inline: 0.85rem;
  color: var(--ink);
  outline: none;
  letter-spacing: 0.02em;
}
.phone-input input::placeholder {
  color: color-mix(in oklab, var(--ink) 72%, var(--plaster));
}
.phone-note {
  flex-basis: 100%;
  font-size: 0.9rem;
  min-height: 1.4em;
}
.night .phone-input {
  background: var(--night-2);
  border-color: var(--night-line);
  color: var(--on-night);
}
.night .phone-input input {
  color: var(--on-night);
}
.night .phone-input input::placeholder {
  color: var(--on-night-soft);
}
.night .phone-input .cc {
  border-color: var(--night-line);
}

/* ---------- Grounds ---------- */

.day {
  background: var(--pattern-bond), var(--brick);
}
.plaster {
  background: var(--plaster);
}
.night {
  background: var(--night);
  color: var(--on-night);
  --ink-hair: var(--night-line);
}
.night .soft,
.soft-night {
  color: var(--on-night-soft);
}
.soft {
  color: var(--ink-soft);
}
.plaster .soft {
  color: color-mix(in oklab, var(--ink) 80%, var(--plaster));
}
.screen-band {
  height: 56px;
  background: var(--pattern-screen) center / 40px 28px, var(--gold);
}
.screen-band.dark {
  background: var(--pattern-screen) center / 40px 28px, var(--night);
}

.section {
  padding-block: var(--space-6);
  position: relative;
}
.section-head {
  display: grid;
  gap: var(--space-3);
  margin-block-end: var(--space-5);
  max-width: 60rem;
}
.section-head .label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Dimension line: a caption drawn the way a section drawing names a distance. */
.dim {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
}
.dim::before,
.dim::after {
  content: '';
  flex: 1;
  height: 9px;
  border-block-start: 1px solid currentColor;
  border-inline-start: 1px solid currentColor;
  transform: translateY(4px);
  opacity: 0.6;
}
.dim::after {
  border-inline-start: 0;
  border-inline-end: 1px solid currentColor;
}
.dim > span {
  flex: none;
}
.dim.draw::before,
.dim.draw::after {
  transform-origin: center;
  transition: transform 1.1s var(--ease-out);
}
.dim.draw:not(.in)::before,
.dim.draw:not(.in)::after {
  transform: translateY(4px) scaleX(0.15);
}

/* Arch slot: the tall pointed-top opening of Baghdad's modern facades, used to frame device views. */
.arch {
  border-radius: var(--arch);
  overflow: hidden;
}

/* ---------- Device: the product's own screens (night blue and gold, like the app). ---------- */

.device {
  --d-w: 320px;
  width: min(var(--d-w), 100%);
  aspect-ratio: 9 / 18.5;
  background: var(--night);
  color: var(--on-night);
  border: 10px solid var(--ink);
  border-radius: 38px;
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.90), 0 2px 0 1px color-mix(in oklab, var(--plaster) 18%, transparent) inset;
  overflow: hidden;
  position: relative;
  font-size: 0.86rem;
  line-height: 1.45;
}
.device-bar {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 1.1rem 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--on-night-soft);
  direction: ltr;
}
.device-body {
  padding: 0.5rem 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  height: calc(100% - 2rem);
  overflow: hidden;
}
.tile {
  background: var(--night-2);
  border: 1px solid var(--night-line);
  border-radius: 14px;
  padding: 0.7rem 0.8rem;
}
.tile-gold {
  background: var(--gold);
  color: var(--night);
  border-color: var(--gold);
}
.device .soft {
  color: var(--on-night-soft);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 650;
  border: 1px solid currentColor;
  line-height: 1.3;
  white-space: nowrap;
}
.chip-solid {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--night);
}
.chip-ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--plaster);
}

/* ---------- Schedule of works: dense spec tables, set like a drawing's schedule. ---------- */

.schedule {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}
.schedule caption {
  text-align: start;
  padding-block-end: 0.75rem;
}
.schedule th,
.schedule td {
  text-align: start;
  vertical-align: top;
  padding: 1rem 1.25rem 1rem 0;
  border-block-start: 1px solid var(--ink-line);
}
[dir='rtl'] .schedule th,
[dir='rtl'] .schedule td {
  padding: 1rem 0 1rem 1.25rem;
}
.schedule thead th {
  border-block-start: 2px solid currentColor;
  padding-block: 0.6rem;
}
.schedule tbody th {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  width: 22%;
}
.schedule td.code {
  width: 4.5rem;
  font-variant-numeric: tabular-nums;
}
.schedule tr:last-child td,
.schedule tr:last-child th {
  border-block-end: 1px solid var(--ink-line);
}
.night .schedule th,
.night .schedule td {
  border-color: var(--night-line);
}
.coming {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.05rem 0.5rem;
  border: 1px dashed currentColor;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 650;
  white-space: nowrap;
  vertical-align: 0.1em;
}
@media (max-width: 720px) {
  .schedule thead {
    display: none;
  }
  .schedule tr {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.25rem;
    border-block-start: 1px solid var(--ink-line);
    padding-block: 0.9rem;
  }
  .schedule th,
  .schedule td {
    border: 0;
    padding: 0.15rem 0;
  }
  .schedule tbody th {
    width: auto;
  }
  .schedule td.code {
    grid-row: span 3;
    width: auto;
  }
  .schedule tr:last-child td,
  .schedule tr:last-child th {
    border: 0;
  }
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.page-hero .wrap {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
}
.page-hero-copy {
  display: grid;
  gap: var(--space-3);
  align-content: start;
}
@media (max-width: 900px) {
  .page-hero .wrap {
    grid-template-columns: 1fr;
  }
}

/* ---------- Two-column feature rows (not cards) ---------- */

.rows {
  display: grid;
  gap: 0;
  border-block-start: 1px solid var(--ink-line);
}
.row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--space-4);
  padding-block: var(--space-4);
  border-block-end: 1px solid var(--ink-line);
  align-items: start;
}
.row h3 {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}
.row h3 .ic {
  transform: translateY(0.15em);
}
.row p + p {
  margin-block-start: 0.75rem;
}
@media (max-width: 820px) {
  .row {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}
.ticks li {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.6rem;
  align-items: start;
}
.ticks li .ic {
  margin-block-start: 0.2em;
  color: var(--clay);
}
.night .ticks li .ic {
  color: var(--gold);
}

/* ---------- Close: the booking band ---------- */

.close {
  position: relative;
  overflow: hidden;
}
.close .wrap {
  position: relative;
  display: grid;
  gap: var(--space-4);
  justify-items: start;
}
.close .wrap > * {
  max-width: 40rem;
  width: 100%;
}
.close-windows {
  position: absolute;
  inset-inline-end: 0;
  inset-block: 0;
  width: 42%;
  background: var(--pattern-screen) 0 0 / 40px 28px, radial-gradient(60% 70% at 70% 60%, var(--gold), var(--clay) 60%, var(--night) 100%);
  opacity: 0.9;
  mask-image: linear-gradient(to left, #000 30%, transparent);
  -webkit-mask-image: linear-gradient(to left, #000 30%, transparent);
  pointer-events: none;
}
[dir='rtl'] .close-windows {
  mask-image: linear-gradient(to right, #000 30%, transparent);
  -webkit-mask-image: linear-gradient(to right, #000 30%, transparent);
}
@media (max-width: 900px) {
  .close-windows {
    width: 100%;
    opacity: 0.25;
  }
}

/* ---------- Footer ---------- */

.foot {
  background: var(--ink);
  color: var(--plaster);
  padding-block: var(--space-5) var(--space-4);
  font-size: 0.95rem;
}
.foot a {
  text-decoration: none;
}
.foot a:hover {
  text-decoration: underline;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, 1fr);
  gap: var(--space-4);
}
.foot-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.foot .soft {
  color: color-mix(in oklab, var(--plaster) 72%, var(--ink));
}
.foot-base {
  margin-block-start: var(--space-4);
  padding-block-start: var(--space-3);
  border-block-start: 1px solid color-mix(in oklab, var(--plaster) 18%, transparent);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}
@media (max-width: 760px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .foot-grid > :first-child {
    grid-column: 1 / -1;
  }
}

/* ---------- 3D stage ---------- */

.stage {
  position: relative;
  touch-action: pan-y;
}
.stage canvas {
  width: 100%;
  height: 100%;
  outline: none;
}
.stage[data-grab='true'] canvas {
  cursor: grab;
}
.stage[data-grab='true'] canvas:active {
  cursor: grabbing;
}
.stage-fallback[hidden] {
  display: none;
}
.stage-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
}
.tip3d {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 18px));
  background: var(--plaster);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  line-height: 1.35;
  min-width: 11rem;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.90);
  white-space: nowrap;
}
.tip3d b {
  font-family: var(--display);
  font-size: 1.05rem;
}
.tip3d::after {
  content: '';
  position: absolute;
  inset-inline-start: 50%;
  inset-block-end: -6px;
  width: 12px;
  height: 12px;
  background: inherit;
  transform: translateX(-50%) rotate(45deg);
}
[dir='rtl'] .tip3d::after {
  transform: translateX(50%) rotate(45deg);
}

/* Sun dial: a dimensioned line from 06:00 to 22:00 with the sun as its handle. */
.dial {
  display: grid;
  gap: 0.55rem;
}
.dial-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.dial-time {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  direction: ltr;
}
.dial input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 34px;
  background: transparent;
  cursor: pointer;
  direction: ltr;
  margin: 0;
}
.dial input[type='range']::-webkit-slider-runnable-track {
  height: 34px;
  background:
    linear-gradient(currentColor, currentColor) 0 50% / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px calc(100% / 16)) 0 50% / 100% 9px no-repeat;
}
.dial input[type='range']::-moz-range-track {
  height: 34px;
  background:
    linear-gradient(currentColor, currentColor) 0 50% / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px calc(100% / 16)) 0 50% / 100% 9px no-repeat;
}
.dial input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 30px;
  height: 30px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--ink);
  box-shadow: 0 0 0 6px color-mix(in oklab, var(--gold) 30%, transparent);
  transition: box-shadow 0.2s;
}
.dial input[type='range']::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--ink);
  box-shadow: 0 0 0 6px color-mix(in oklab, var(--gold) 30%, transparent);
}
.dial input[type='range']:focus-visible {
  outline: none;
}
.dial input[type='range']:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px var(--plaster), 0 0 0 7px var(--ink);
}
.dial-scale {
  display: flex;
  justify-content: space-between;
  direction: ltr;
  font-variant-numeric: tabular-nums;
}

/* ---------- Scroll reveal: content is always visible; only drawn lines animate. ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Next stop: the walk inward continues to the next page. ---------- */

.next-stop {
  background: var(--pattern-bond), var(--brick);
  border-block: 1px solid var(--ink-hair);
}
.next-stop a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(2rem, 5vw, 3.5rem);
  text-decoration: none;
}
.ns-mark {
  width: clamp(3rem, 8vw, 7rem);
  height: 2px;
  background: var(--ink);
  position: relative;
}
.ns-mark::before {
  content: "";
  position: absolute;
  inset-inline-start: -2px;
  inset-block-start: -8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--brick);
}
.ns-text {
  display: grid;
  gap: 0.25rem;
}
.ns-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 1.05;
}
.ns-line {
  font-size: 1.05rem;
  max-width: 52ch;
}
.ns-arrow {
  width: clamp(2rem, 4vw, 3rem);
  height: clamp(2rem, 4vw, 3rem);
  stroke-width: 1.5;
  transition: transform 0.35s var(--ease-out);
}
.next-stop a:hover .ns-arrow {
  transform: translateX(8px);
}
[dir="rtl"] .next-stop a:hover .ns-arrow {
  transform: scaleX(-1) translateX(8px);
}
.next-stop a:hover .ns-mark::before {
  background: var(--gold);
}
.next-stop a:hover .ns-title {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.18em;
}
@media (max-width: 600px) {
  .ns-mark {
    display: none;
  }
}
