/* Public site styles. Every value comes from tokens.css; logical properties only (physical ones appear only inside
   explicit [dir] overrides for transforms, gradients and transform-origin).
   Sections: base · shared components (tracking, login, forms) · site shell (bar, menu) · landing "Night Crossing"
   (design/redesign-brief.md §5–§7) · footer · reveal · reduced motion. */

:root {
  /* Public-only helpers (tokens.css stays the source of truth for colours and sizes). */
  --pub-grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  --pub-bar-space: calc(var(--au-bar-h) + 12px); /* sticky bar height + its top offset */
  --pub-overshoot: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-block-start: calc(var(--pub-bar-space) + 16px); scrollbar-gutter: stable; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--au-font);
  font-size: var(--au-text-md);
  line-height: var(--au-leading);
  color: var(--au-ink);
  background: var(--au-bg);
  transition: background-color var(--au-dur) var(--au-ease), color var(--au-dur) var(--au-ease);
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: var(--au-leading-tight); font-weight: 600; }
em { font-style: normal; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img, svg { max-inline-size: 100%; }
:focus-visible { outline: 2px solid var(--au-focus); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--au-accent) 35%, transparent); }
.ltr { direction: ltr; unicode-bidi: isolate; }
.mono { font-family: var(--au-font-mono); font-weight: 500; }
.muted { color: var(--au-ink-2); }
.sr-only { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Icons: inline SVG sized by font-size. Directional icons (arrows, chevrons) mirror in RTL. */
.icon { width: 1em; height: 1em; flex: none; vertical-align: -0.125em; }
[dir="rtl"] .icon-dir { transform: scaleX(-1); }

/* Theme toggle: shows the icon of the mode it switches to. Hidden when JavaScript is off. */
:root[data-theme="dark"] .i-moon,
:root:not([data-theme="dark"]) .i-sun { display: none; }
:root:not(.js) .js-only { display: none; }

.container { width: 100%; max-width: var(--au-container); margin-inline: auto; padding-inline: var(--au-4); }
.container.narrow { max-width: 760px; }

/* Top bar of the tracking page (TrackingLayout) */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: var(--au-3); padding-block: var(--au-4); }

/* Brand: mark + two-line wordmark. Colours come from the context (.on-night). */
.brand { display: inline-flex; align-items: center; gap: var(--au-3); color: var(--au-brand); min-block-size: var(--au-tap); border-radius: var(--au-radius-sm); }
.brand img { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.brand-name { font-family: var(--au-font-display); font-weight: 700; font-size: var(--au-text-lg); }
.brand small { font-weight: 400; color: var(--au-ink-2); font-size: var(--au-text-xs); }

.tools { display: flex; align-items: center; gap: var(--au-2); }
.tool {
  block-size: var(--au-tap); min-inline-size: var(--au-tap); padding-inline: var(--au-3);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--au-2);
  border: 1px solid var(--au-line); border-radius: var(--au-radius-pill);
  background: var(--au-surface); color: var(--au-ink); font-size: var(--au-text-sm); font-weight: 500;
  transition: border-color var(--au-dur-fast) var(--au-ease), background-color var(--au-dur-fast) var(--au-ease), color var(--au-dur-fast) var(--au-ease);
}
.tool:hover { border-color: var(--au-line-strong); }
.tool .icon { font-size: 20px; }
.tool-theme { padding-inline: 0; }
@media (prefers-reduced-motion: no-preference) {
  [data-theme-changed] .tool-theme .icon { animation: tool-spin var(--au-dur) var(--au-ease); }
  @keyframes tool-spin { from { transform: rotate(-90deg); opacity: 0; } }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--au-2);
  height: 48px; padding-inline: var(--au-5);
  border: 1px solid transparent; border-radius: var(--au-radius-pill);
  font-weight: 500; white-space: nowrap;
  transition: transform var(--au-dur-fast) var(--au-ease), background-color var(--au-dur-fast) var(--au-ease),
    border-color var(--au-dur-fast) var(--au-ease), box-shadow var(--au-dur) var(--au-ease), color var(--au-dur-fast) var(--au-ease);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--au-brand-fill); color: var(--au-on-brand); }
.btn-primary:hover { background: color-mix(in srgb, var(--au-brand-fill) 86%, #FFFFFF); }
.btn-accent { background: var(--au-accent); color: var(--au-on-accent); font-weight: 600; }
.btn-accent:hover { background: var(--au-amber-600); }
.btn-ghost { background: transparent; border-color: var(--au-line-strong); color: var(--au-ink); }
.btn-ghost:hover { border-color: var(--au-ink-2); background: var(--au-brand-tint); }
.btn-night { background: transparent; border-color: var(--au-night-line-strong); color: var(--au-night-ink); }
.btn-night:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.5); }
.btn-lg { height: 56px; padding-inline: var(--au-6); font-size: var(--au-text-md); }
.btn-block { inline-size: 100%; }
.btn .icon { font-size: 20px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn-accent:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -8px var(--au-glow); }
  .btn-accent:active { transform: translateY(0) scale(0.98); }
}

/* Plate chip: the tracking number signature */
.plate {
  display: inline-flex; align-items: center;
  font-family: var(--au-font-mono); font-weight: 500; font-size: var(--au-text-md); letter-spacing: 0.04em;
  background: var(--au-accent); color: var(--au-on-accent);
  border: 2px solid var(--au-on-accent); border-radius: var(--au-radius-sm);
  padding: 2px 12px; direction: ltr;
}

/* Cards */
.card { background: var(--au-surface); border-radius: var(--au-radius); padding: var(--au-4); box-shadow: var(--au-shadow); }
@media (min-width: 768px) { .card { padding: var(--au-5); } }
.card-title { font-size: var(--au-text-lg); margin-bottom: var(--au-4); display: flex; align-items: center; gap: var(--au-2); }
.card-title .icon { color: var(--au-brand); font-size: 22px; }

.footer { padding-block: var(--au-6); text-align: center; font-size: var(--au-text-sm); color: var(--au-ink-3); }

/* Hero panel (tracking page): dark petrol in both themes */
.hero { background: var(--au-hero-bg); color: var(--au-hero-ink); border-radius: var(--au-radius-lg); padding: var(--au-6) var(--au-4) 0; overflow: hidden; position: relative; }
@media (min-width: 860px) { .hero { padding: var(--au-8) var(--au-7) 0; } }
.hero .eyebrow { color: var(--au-accent); }
.hero h1 { font-size: var(--au-text-hero); max-width: 18ch; margin-top: var(--au-2); }
.hero h1 em { font-style: normal; color: var(--au-accent); }
.hero .lead { color: var(--au-hero-ink-2); max-width: 46ch; margin-top: var(--au-4); font-size: var(--au-text-lg); }
.scene { margin-top: var(--au-5); }

/* Journey line (shared): the route mirrors in RTL so the origin sits on the start side. */
.journey { display: block; width: 100%; height: auto; overflow: visible; }
[dir="rtl"] .journey { transform: scaleX(-1); }
.j-base { fill: none; stroke: var(--au-hero-line); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 2 9; }
.j-done {
  fill: none; stroke: var(--au-accent); stroke-width: 3.5; stroke-linecap: round;
  stroke-dasharray: var(--j-progress) 100; stroke-dashoffset: var(--j-progress);
  animation: j-draw var(--au-dur-route) var(--au-ease) 500ms forwards;
}
@keyframes j-draw { to { stroke-dashoffset: 0; } }
.j-origin { fill: var(--au-accent); }
.j-dest { fill: none; stroke: var(--au-hero-ink-2); stroke-width: 3; }
.j-marker circle { fill: var(--au-accent); }
.j-marker path { fill: var(--au-on-accent); }
.j-sea { fill: var(--au-petrol-900); opacity: 0.55; }
.j-wave { fill: none; stroke: var(--au-hero-line); stroke-width: 1.5; animation: j-drift 10s linear infinite; }
@keyframes j-drift { to { transform: translateX(-80px); } }

/* Simple message pages (404, error) */
.message { max-width: 520px; margin: var(--au-7) auto; text-align: center; display: grid; gap: var(--au-3); justify-items: center; }
.message h1 { font-size: var(--au-text-2xl); font-family: var(--au-font-display); font-weight: 700; }

/* Forms (control borders use --au-line-strong: 3:1 against the surface) */
.form { display: grid; gap: var(--au-4); }
.form h1 { font-size: var(--au-text-xl); font-family: var(--au-font-display); font-weight: 700; }
.input { display: grid; gap: var(--au-1); font-size: var(--au-text-sm); color: var(--au-ink-2); }
.input input {
  height: 48px; padding-inline: var(--au-4);
  border: 1px solid var(--au-line-strong); border-radius: var(--au-radius-sm);
  background: var(--au-surface); color: var(--au-ink); font: inherit; font-size: var(--au-text-md);
  transition: border-color var(--au-dur-fast) var(--au-ease), box-shadow var(--au-dur-fast) var(--au-ease);
}
.input input:hover, .input select:hover, .input textarea:hover, .phone-row input:hover { border-color: var(--au-ink-2); }
.input input:focus-visible { outline: 2px solid var(--au-focus); outline-offset: 0; border-color: transparent; box-shadow: var(--au-ring); }
[dir="rtl"] .input input[dir="ltr"] { text-align: right; }
.check { display: flex; align-items: center; gap: var(--au-2); font-size: var(--au-text-sm); min-block-size: var(--au-tap); }
.check input { width: 18px; height: 18px; accent-color: var(--au-brand-fill); }
.alert {
  padding: var(--au-3) var(--au-4); border-radius: var(--au-radius-sm);
  background: color-mix(in srgb, var(--au-danger) 12%, transparent); color: var(--au-danger); font-size: var(--au-text-sm);
}

/* Staff login and change password: css/login.css ("Crew gate"). */

@media (prefers-reduced-motion: reduce) {
  .j-done { animation: none; stroke-dashoffset: 0; }
  .j-wave { animation: none; }
}

/* ===== Shared bits of the customer pages. The tracking page itself (/t/{token}, /track, its 404) lives in
   css/tracking.css (design/redesign-brief.md §12), every rule scoped under .tk*. ===== */

/* Copy / share feedback: js/public.js adds .is-done for 1.5s and the check icon replaces the original one. */
.i-done, .is-done .i-copy { display: none; }
.is-done .i-done { display: inline; }

/* The animated marker (SMIL) shows when motion is allowed; the static one otherwise. Neither needs JavaScript.
   Used by JourneyLine, HeroScene and the tracking route. */
@media (prefers-reduced-motion: no-preference) { .marker-static { display: none; } }
@media (prefers-reduced-motion: reduce) { .marker-anim { display: none; } }
@keyframes pulse { from { transform: scale(0.6); opacity: 0.5; } to { transform: scale(1.9); opacity: 0; } }

/* Icon tile (request form, message pages) */
.car-ic { inline-size: 52px; block-size: 52px; border-radius: var(--au-radius); background: var(--au-surface-2); color: var(--au-brand); display: grid; place-items: center; font-size: 28px; flex: none; }

/* Notifications opt-in (D-049): shown by js/push.js only; [hidden] must beat .btn's display. */
.push[hidden], .push [hidden] { display: none !important; }

/* Message pages and the request form */
.message .actions { display: flex; flex-wrap: wrap; gap: var(--au-2); justify-content: center; }
.lookup { max-inline-size: 440px; margin: var(--au-6) auto; }
.lookup .btn { inline-size: 100%; }
.lookup .card, .content-page .card { border: 1px solid var(--au-line); box-shadow: var(--au-shadow-lg); border-radius: var(--au-radius-md); }

/* Request form, FAQ, terms */
.request { max-inline-size: 560px; }
.request .form { text-align: start; }
.phone-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: var(--au-2); }
.input select, .input textarea {
  min-inline-size: 0; inline-size: 100%;
  padding-inline: var(--au-4); border: 1px solid var(--au-line-strong); border-radius: var(--au-radius-sm);
  background: var(--au-surface); color: var(--au-ink); font: inherit; font-size: var(--au-text-md);
}
.input select { block-size: 48px; }
.input textarea { padding-block: var(--au-3); resize: vertical; }
.input select:focus-visible, .input textarea:focus-visible, .phone-row input:focus-visible { outline: 2px solid var(--au-focus); outline-offset: 0; border-color: transparent; box-shadow: var(--au-ring); }
.phone-row input { block-size: 48px; padding-inline: var(--au-4); border: 1px solid var(--au-line-strong); border-radius: var(--au-radius-sm); background: var(--au-surface); color: var(--au-ink); font: inherit; }
.hp { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.message-sent { text-align: center; justify-items: center; }

.content-page { max-inline-size: 760px; margin-inline: auto; padding-block: var(--au-5); display: grid; gap: var(--au-4); }
.content-page h1 { font-size: var(--au-text-3xl); font-family: var(--au-font-display); font-weight: 700; line-height: 1.15; text-wrap: balance; }
.faq { display: grid; gap: var(--au-3); }
.faq .card { box-shadow: var(--au-shadow-sm); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--au-4);
  min-block-size: var(--au-tap); font-weight: 500; font-size: var(--au-text-lg); border-radius: var(--au-radius-sm);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; inline-size: 10px; block-size: 10px; margin-inline-end: 4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; /* physical on purpose: points down in RTL too */
  transform: translateY(-3px) rotate(45deg); transition: transform var(--au-dur) var(--au-ease);
}
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq summary:hover { color: var(--au-brand); }
.faq details[open] summary { color: var(--au-brand); margin-block-end: var(--au-3); }
.faq-more { margin-block-start: var(--au-2); }
.prose { color: var(--au-ink-2); }
.prose p, .prose ul, .prose ol { margin-block: 0 var(--au-3); }
.prose h2, .prose h3, .prose h4 { color: var(--au-ink); margin-block: var(--au-4) var(--au-2); }
.prose a { color: var(--au-brand); text-decoration: underline; }


/* =====================================================================================================
   SITE SHELL (PublicLayout): skip link, floating glass bar, <details> mobile menu
   ===================================================================================================== */
.site { display: flex; flex-direction: column; min-block-size: 100svh; }
.site > main { flex: 1 0 auto; padding-block: var(--au-5) 0; }
.site > main:focus { outline: none; }
/* Night surfaces: amber focus ring (the petrol ring would vanish on dark water). */
.on-night :focus-visible, .hero-cine :focus-visible { outline-color: var(--au-night-focus); }

.skip-link {
  position: absolute; inset-inline-start: var(--au-4); inset-block-start: var(--au-3); z-index: 100;
  padding: var(--au-3) var(--au-5); border-radius: var(--au-radius-pill);
  background: var(--au-brand-fill); color: var(--au-on-brand); font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus-visible { transform: none; outline-color: var(--au-accent); }

/* Bar colours are custom properties, so the day and night states are each one rule.
   Day (default, also without JavaScript): a near-opaque pill, so text keeps AA over any section behind it.
   Night: while a [data-night] surface is under the bar (js/public.js toggles .is-night / .is-day). On Home the bar
   starts as night before the script runs (.js comes from the head script), so it never flashes. */
.bar-wrap {
  --bar-bg: color-mix(in srgb, var(--au-bg) 90%, transparent);
  --bar-line: var(--au-glass-line);
  --bar-shadow: var(--au-shadow-sm);
  --bar-brand: var(--au-brand);
  --bar-ink: var(--au-ink);
  --bar-ink-2: var(--au-ink-2);
  --bar-tool-line: var(--au-line);
  --bar-tool-hover: var(--au-brand-tint);
  --bar-cta-bg: var(--au-brand-fill);
  --bar-cta-ink: var(--au-on-brand);
  --bar-cta-line: transparent;
  --bar-cta-hover: color-mix(in srgb, var(--au-brand-fill) 86%, #FFFFFF);
  --bar-focus: var(--au-focus);
  position: sticky; inset-block-start: 12px; z-index: 50;
  inline-size: 100%; max-inline-size: var(--au-wrap); margin-inline: auto; margin-block-start: 12px;
  padding-inline: var(--au-gutter); block-size: var(--au-bar-h);
  pointer-events: none; /* the transparent strip beside the pill never blocks the hero */
}
.bar-wrap.is-night,
.js .site:has(.hero-cine) .bar-wrap:not(.is-day):not(.is-night) {
  --bar-bg: var(--au-glass-night);
  --bar-line: var(--au-glass-night-line);
  --bar-shadow: none;
  --bar-brand: var(--au-night-ink);
  --bar-ink: var(--au-night-ink);
  --bar-ink-2: var(--au-night-ink-2);
  --bar-tool-line: var(--au-night-line-strong);
  --bar-tool-hover: rgba(255, 255, 255, 0.08);
  --bar-cta-bg: transparent;
  --bar-cta-ink: var(--au-night-ink);
  --bar-cta-line: var(--au-night-line-strong);
  --bar-cta-hover: rgba(255, 255, 255, 0.1);
  --bar-focus: var(--au-night-focus);
}
.bar-pill {
  pointer-events: auto; position: relative;
  display: flex; align-items: center; gap: var(--au-3);
  block-size: var(--au-bar-h); padding-inline: 14px 10px;
  border-radius: var(--au-radius-pill);
  background: var(--bar-bg); border: 1px solid var(--bar-line); box-shadow: var(--bar-shadow);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  /* Background and text colours swap together (no transition), so the night/theme switch never shows light text on a light pill. */
  transition: block-size var(--au-dur) var(--au-ease), box-shadow var(--au-dur) var(--au-ease);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .bar-pill { background: var(--au-surface); }
  .bar-wrap.is-night .bar-pill, .js .site:has(.hero-cine) .bar-wrap:not(.is-day):not(.is-night) .bar-pill { background: var(--au-night-2); }
}
.bar-wrap.is-scrolled:not(.is-night) .bar-pill { box-shadow: var(--au-shadow); }
.bar-wrap.is-scrolled .bar-pill { block-size: 56px; }
.bar-pill > .brand { margin-inline-end: auto; gap: 10px; color: var(--bar-brand); }
.bar-pill > .brand small { color: var(--bar-ink-2); }
.bar-pill > .brand img { width: 36px; height: 36px; }
/* Focus ring follows the bar state; the menu sheet (always a plain surface) keeps the default ring. */
.bar-pill > .brand:focus-visible, .bar-nav a:focus-visible, .bar-tools :focus-visible, .menu-btn:focus-visible { outline-color: var(--bar-focus); }

.bar-nav { display: none; flex: 1; justify-content: center; align-items: center; gap: var(--au-1); }
.bar-global { display: contents; }
.bar-nav:has([data-spy]) .bar-global { display: none; }
.bar-link {
  display: inline-flex; align-items: center; block-size: var(--au-tap); padding-inline: 14px;
  border-radius: var(--au-radius-pill); font-size: var(--au-text-sm); font-weight: 500; color: var(--bar-ink);
  transition: color var(--au-dur-fast) var(--au-ease);
}
.bar-link > span { position: relative; white-space: nowrap; }
.bar-link > span::after {
  content: ""; position: absolute; inset-inline: 0; inset-block-end: -6px; block-size: 2px; border-radius: 2px;
  background: var(--au-accent); transform: scaleX(0); transform-origin: left;
  transition: transform 250ms var(--au-ease);
}
[dir="rtl"] .bar-link > span::after { transform-origin: right; }
.bar-link:hover > span::after, .bar-link:focus-visible > span::after, .bar-link[aria-current="location"] > span::after { transform: scaleX(1); }

.bar-tools { display: none; align-items: center; gap: var(--au-2); }
.bar-tools .tool { background: transparent; color: var(--bar-ink); border-color: var(--bar-tool-line); }
.bar-tools .tool:hover { background: var(--bar-tool-hover); border-color: var(--bar-tool-line); }
.bar-cta { block-size: var(--au-tap); padding-inline: 18px 14px; background: var(--bar-cta-bg); color: var(--bar-cta-ink); border-color: var(--bar-cta-line); font-size: var(--au-text-sm); font-weight: 600; }
.bar-cta:hover { background: var(--bar-cta-hover); }
.bar-cta .icon { font-size: 18px; transition: translate var(--au-dur-fast) var(--au-ease); }
.bar-cta:hover .icon { translate: 3px 0; }
[dir="rtl"] .bar-cta:hover .icon { translate: -3px 0; }

/* Mobile menu: a <details> disclosure (no JavaScript needed). */
.menu-btn {
  list-style: none; cursor: pointer;
  inline-size: var(--au-tap); block-size: var(--au-tap); border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bar-cta-bg); color: var(--bar-cta-ink); border: 1px solid var(--bar-cta-line);
  transition: background-color var(--au-dur) var(--au-ease), border-color var(--au-dur) var(--au-ease), color var(--au-dur) var(--au-ease);
}
.menu-btn::-webkit-details-marker { display: none; }
.menu-btn::marker { content: ""; }
.menu-icon { position: relative; inline-size: 18px; block-size: 12px; }
.menu-icon > span {
  position: absolute; inset-inline: 0; block-size: 2px; border-radius: 2px; background: currentColor;
  transition: transform var(--au-dur) var(--au-ease-in-out);
}
.menu-icon > span:first-child { inset-block-start: 0; }
.menu-icon > span:last-child { inset-block-start: 10px; }
.menu[open] .menu-icon > span:first-child { transform: translateY(5px) rotate(45deg); }
.menu[open] .menu-icon > span:last-child { transform: translateY(-5px) rotate(-45deg); }

.menu-sheet {
  position: absolute; inset-inline: 0; inset-block-start: calc(100% + 8px);
  display: grid; gap: var(--au-2); padding: var(--au-3);
  max-block-size: calc(100svh - 96px); overflow: auto; overscroll-behavior: contain;
  background: var(--au-surface); color: var(--au-ink);
  border: 1px solid var(--au-line); border-radius: var(--au-radius-lg); box-shadow: var(--au-shadow-lg);
}
@media (prefers-reduced-motion: no-preference) {
  .menu[open] .menu-sheet { animation: menu-in var(--au-dur) var(--au-ease-out); }
  @keyframes menu-in { from { opacity: 0; transform: translateY(-8px) scale(0.98); } }
}
.menu-section { display: grid; }
.menu-section:not(:has(a)) { display: none; }
/* The divider only when the page section above it is really shown (Home). */
.menu-page:has(a) + .menu-global { border-block-start: 1px solid var(--au-line); padding-block-start: var(--au-2); }
.menu-link {
  display: flex; align-items: center; gap: 14px; min-block-size: 56px; padding-inline: var(--au-3);
  border-radius: var(--au-radius); font-weight: 500;
  transition: background-color var(--au-dur-fast) var(--au-ease);
}
.menu-link + .menu-link { border-block-start: 1px dashed var(--au-line); }
.menu-link:hover, .menu-link:focus-visible { background: var(--au-surface-2); }
.menu-link[aria-current="location"] .menu-num { color: var(--au-accent-text); }
.menu-num { font-family: var(--au-font-mono); font-weight: 600; font-size: var(--au-text-xs); color: var(--au-ink-3); min-inline-size: 22px; }
.menu-ic { color: var(--au-brand); font-size: 20px; }
.menu-label { flex: 1; }
.menu-chev { color: var(--au-ink-3); font-size: 18px; transition: translate var(--au-dur-fast) var(--au-ease); }
.menu-link:hover .menu-chev { translate: 3px 0; }
[dir="rtl"] .menu-link:hover .menu-chev { translate: -3px 0; }
.menu-foot { display: grid; gap: var(--au-3); border-block-start: 1px solid var(--au-line); padding-block-start: var(--au-3); }
.tools-sheet .tool { flex: 1; block-size: 48px; }
.menu-cta { block-size: 56px; }

/* 960px+: links, tools and CTA all live in the bar and the menu goes away. 960-1199px is tight, so the bar
   drops the brand tagline and the language label (the link keeps its aria-label) and narrows the links. */
@media (min-width: 960px) {
  .bar-nav, .bar-tools { display: flex; }
  .menu { display: none; }
}
@media (min-width: 960px) and (max-width: 1199px) {
  .bar-pill { gap: var(--au-2); }
  .bar-pill > .brand small { display: none; }
  .bar-link { padding-inline: 10px; }
  .bar-tools .tool { padding-inline: 0; }
  .bar-tools .tool > span { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}


/* =====================================================================================================
   LANDING "Night Crossing" (Home.razor)
   ===================================================================================================== */
.site > main:has(> .landing) { max-inline-size: none; padding-inline: 0; padding-block: 0; }
.landing { overflow-x: clip; }
.wrap { inline-size: 100%; max-inline-size: var(--au-wrap); margin-inline: auto; padding-inline: var(--au-gutter); }
.band { padding-block: var(--au-section); }

/* Section heads: lane-tag eyebrow + display h2 */
.sec-head { display: grid; gap: var(--au-3); margin-block-end: clamp(40px, 6vw, 72px); }
.sec-head h2 { font-family: var(--au-font-display); font-weight: 700; font-size: var(--au-text-4xl); line-height: 1.08; max-inline-size: 18ch; text-wrap: balance; color: var(--au-ink); }
:lang(ar) .sec-head h2 { line-height: var(--au-leading-display-ar); }
:lang(en) .sec-head h2 { letter-spacing: -0.025em; }
@media (min-width: 1024px) {
  .sec-head { grid-template-columns: 200px minmax(0, 1fr); align-items: baseline; column-gap: var(--au-6); }
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: var(--au-text-kicker); font-weight: 500; color: var(--au-accent-text); }
.eyebrow::before { content: ""; order: -2; inline-size: 8px; block-size: 8px; border-radius: 50%; background: currentColor; flex: none; }
.eyebrow::after { content: ""; order: -1; inline-size: 24px; border-block-start: 2px dashed currentColor; opacity: 0.7; flex: none; }
:lang(en) .eyebrow { letter-spacing: 0.14em; text-transform: uppercase; }
.eyebrow-night { color: var(--au-amber-300); }
.hero .eyebrow::before, .hero .eyebrow::after { content: none; }

/* ---------- 6.1 Hero ---------- */
.hero-cine {
  position: relative; isolation: isolate; overflow: clip;
  display: grid; align-items: center;
  min-block-size: max(min(100svh, 940px), min(100svh, 56.25vw));
  margin-block-start: calc(-1 * var(--pub-bar-space));
  padding-block: calc(var(--pub-bar-space) + clamp(32px, 6vw, 72px)) clamp(132px, 16vh, 200px);
  background: var(--au-night); color: var(--au-night-ink);
}
.hero-scene { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; max-inline-size: none; z-index: -2; }
[dir="rtl"] .hero-scene { transform: scaleX(-1); }
@media (max-width: 767px) {
  .hero-scene { inset: 0 0 auto; block-size: min(560px, 72svh); }
  .hero-cine { background: var(--au-night-sea); } /* = the sea gradient's last stop, so the cut is invisible */
}
/* Tablets (stacked copy over a tall hero): the scene sits at the bottom, beside the ticket, and fades up into the sky
   colour, so the route and the car never run behind the headline. */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-scene { inset: auto 0 0; block-size: min(680px, 72%); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 32%); mask-image: linear-gradient(to bottom, transparent, #000 32%); }
  .hero-cine { background: var(--hs-sky-1); }
}
/* Vignette + a soft shade behind the copy so text never depends on the scene. */
.hero-cine::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to right, rgba(4, 21, 22, 0.62), rgba(4, 21, 22, 0.15) 55%, transparent 75%),
    radial-gradient(ellipse 120% 90% at 50% 40%, transparent 45%, rgba(4, 21, 22, 0.7));
}
[dir="rtl"] .hero-cine::before {
  background:
    linear-gradient(to left, rgba(4, 21, 22, 0.62), rgba(4, 21, 22, 0.15) 55%, transparent 75%),
    radial-gradient(ellipse 120% 90% at 50% 40%, transparent 45%, rgba(4, 21, 22, 0.7));
}
.hero-cine::after, .band-board::after, .site-footer::after, .cta-panel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background-image: var(--pub-grain); opacity: 0.05;
}
@media (max-width: 767px) { .hero-cine::after, .band-board::after, .site-footer::after, .cta-panel::after { content: none; } }

.hero-grid { display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; min-inline-size: 0; grid-template-columns: minmax(0, 1fr); } /* never let a long word widen the hero track past the gutter */
.hero-copy { min-inline-size: 0; }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .hero-copy { grid-column: 1 / span 7; }
  .ticket { grid-column: 8 / -1; justify-self: end; }
}

.hero-eyebrow { display: flex; align-items: center; gap: 12px; font-size: var(--au-text-kicker); font-weight: 500; color: var(--au-amber-300); }
.hero-eyebrow::before { content: ""; inline-size: 24px; block-size: 2px; border-radius: 2px; background: var(--au-amber-500); flex: none; }
:lang(en) .hero-eyebrow { letter-spacing: 0.14em; text-transform: uppercase; }

.hero-title {
  margin-block-start: 18px; font-family: var(--au-font-display); font-weight: 800;
  font-size: var(--au-text-display); line-height: var(--au-leading-display); color: var(--au-night-ink);
  text-wrap: balance;
}
:lang(en) .hero-title { letter-spacing: -0.025em; }
:lang(ar) .hero-title { font-weight: 700; line-height: var(--au-leading-display-ar); }
.hero-line { display: block; }
.hero-em {
  display: inline; color: var(--au-night-accent); padding-block-end: 0.14em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: repeating-linear-gradient(to right, var(--au-amber-500) 0 10px, transparent 10px 19px) 0 calc(100% - 7.5px) / 100% 3px no-repeat;
}
[dir="rtl"] .hero-em {
  background-image: repeating-linear-gradient(to left, var(--au-amber-500) 0 10px, transparent 10px 19px);
  background-position: 100% calc(100% - 7.5px);
}
/* The car: an inline box glued to the last word by a word joiner (so it never wraps alone), dot drawn as a background. */
.hero-em::after {
  content: "\2060"; padding-inline: 10px; padding-block-end: 0.14em; margin-inline-start: 2px;
  background: radial-gradient(circle, var(--au-amber-300) 0 6px, var(--au-glow) 6.5px 9.5px, transparent 10px) 50% 100% / 20px 20px no-repeat;
}

.hero-lead { margin-block-start: 20px; color: var(--au-night-ink-2); font-size: var(--au-text-lg); max-inline-size: 46ch; text-wrap: pretty; }
@media (min-width: 1024px) { .hero-lead { font-size: 1.25rem; } }

.hero-link {
  display: inline-flex; align-items: center; gap: 12px; min-block-size: var(--au-tap); margin-block-start: 28px;
  color: var(--au-night-ink); font-weight: 500; border-radius: var(--au-radius-pill);
}
.hero-link > span { border-block-end: 1px solid var(--au-night-line-strong); padding-block-end: 2px; transition: border-color var(--au-dur-fast) var(--au-ease); }
.hero-link > .icon {
  inline-size: 36px; block-size: 36px; padding: 8px; border-radius: 50%; border: 1px solid var(--au-night-line-strong);
  transition: background-color var(--au-dur-fast) var(--au-ease), translate var(--au-dur-fast) var(--au-ease);
}
.hero-link:hover > span { border-color: var(--au-night-ink); }
.hero-link:hover > .icon { background: rgba(255, 255, 255, 0.1); translate: 3px 0; }
[dir="rtl"] .hero-link:hover > .icon { translate: -3px 0; }

/* Boarding pass: two masked halves (stub + main) give the perforation notches without touching the backdrop blur. */
.ticket { position: relative; isolation: isolate; inline-size: 100%; max-inline-size: 460px; }
@media (max-width: 1023px) { .ticket { max-inline-size: 520px; } }
.ticket::before { content: ""; position: absolute; inset: 24px 16px 8px; z-index: -1; border-radius: var(--au-radius-lg); box-shadow: 0 30px 70px -12px rgba(0, 0, 0, 0.6); }
.ticket-stub, .ticket-main {
  position: relative;
  background: color-mix(in srgb, var(--au-night-2) 72%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--au-night-line);
  padding: 24px;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .ticket-stub, .ticket-main { background: var(--au-night-2); }
}
.ticket-stub {
  border-block-end: 0; border-start-start-radius: var(--au-radius-lg); border-start-end-radius: var(--au-radius-lg); padding-block-end: 22px;
  -webkit-mask: radial-gradient(circle 12px at 0 100%, transparent 11.5px, #000 12px) 0 0 / 51% 100% no-repeat,
                radial-gradient(circle 12px at 100% 100%, transparent 11.5px, #000 12px) 100% 0 / 51% 100% no-repeat;
  mask: radial-gradient(circle 12px at 0 100%, transparent 11.5px, #000 12px) 0 0 / 51% 100% no-repeat,
        radial-gradient(circle 12px at 100% 100%, transparent 11.5px, #000 12px) 100% 0 / 51% 100% no-repeat;
}
.ticket-main {
  border-block-start: 0; border-end-start-radius: var(--au-radius-lg); border-end-end-radius: var(--au-radius-lg); padding-block-start: 22px;
  -webkit-mask: radial-gradient(circle 12px at 0 0, transparent 11.5px, #000 12px) 0 0 / 51% 100% no-repeat,
                radial-gradient(circle 12px at 100% 0, transparent 11.5px, #000 12px) 100% 0 / 51% 100% no-repeat;
  mask: radial-gradient(circle 12px at 0 0, transparent 11.5px, #000 12px) 0 0 / 51% 100% no-repeat,
        radial-gradient(circle 12px at 100% 0, transparent 11.5px, #000 12px) 100% 0 / 51% 100% no-repeat;
}
.ticket-main::before { content: ""; position: absolute; inset-inline: 22px; inset-block-start: 0; border-block-start: 1.5px dashed var(--au-night-line-strong); }
.ticket-head { display: flex; align-items: center; gap: var(--au-2); margin-block-end: 18px; font-size: var(--au-text-kicker); font-weight: 500; color: var(--au-night-ink-2); }
.ticket-head .icon { color: var(--au-amber-300); font-size: 18px; }
:lang(en) .ticket-head { letter-spacing: 0.14em; text-transform: uppercase; }
.ticket-label { display: block; margin-block-end: var(--au-2); font-size: var(--au-text-sm); font-weight: 500; color: var(--au-night-ink-2); }

.plate-field {
  position: relative; display: flex; block-size: 56px; overflow: hidden;
  background: var(--au-plate-bg); color: var(--au-plate-ink);
  border: 2px solid var(--au-plate-ink); border-radius: 10px;
  box-shadow: inset 0 0 0 2px var(--au-plate-bg), 0 1px 0 rgba(255, 255, 255, 0.06);
}
.plate-band {
  flex: none; inline-size: 28px; display: grid; place-items: center;
  background: var(--au-plate-band); color: var(--au-plate-ink); font-size: 14px;
  transition: inline-size var(--au-dur) var(--au-ease);
}
.plate-field:focus-within { outline: 2px solid var(--au-night-focus); outline-offset: 3px; }
.plate-field:focus-within .plate-band { inline-size: 36px; }
.plate-input {
  flex: 1; min-inline-size: 0; border: 0; background: transparent; color: var(--au-plate-ink);
  font-family: var(--au-font-mono); font-weight: 600; font-size: 1.25rem; letter-spacing: 0.06em;
  padding-inline: 14px;
}
.plate-input:focus-visible { outline: none; }
.plate-input::placeholder { color: color-mix(in srgb, var(--au-plate-ink) 62%, var(--au-plate-bg)); opacity: 1; }
[dir="rtl"] .plate-input { text-align: right; }
.plate-input:-webkit-autofill { -webkit-text-fill-color: var(--au-plate-ink); box-shadow: 0 0 0 40px var(--au-plate-bg) inset; }

.night-field {
  display: flex; align-items: center; gap: 10px; block-size: 56px; padding-inline: 16px;
  border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 12px; background: rgba(0, 0, 0, 0.2);
  color: var(--au-night-ink-2); transition: border-color var(--au-dur-fast) var(--au-ease);
}
.night-field:hover { border-color: rgba(255, 255, 255, 0.72); }
.night-field:focus-within { outline: 2px solid var(--au-night-focus); outline-offset: 2px; }
.night-field .icon { font-size: 20px; }
.night-input { flex: 1; min-inline-size: 0; border: 0; background: transparent; color: var(--au-night-ink); font: inherit; font-size: var(--au-text-md); block-size: 100%; }
.night-input:focus-visible { outline: none; }
[dir="rtl"] .night-input { text-align: right; }
.night-input:-webkit-autofill { -webkit-text-fill-color: var(--au-night-ink); box-shadow: 0 0 0 40px var(--au-night-2) inset; caret-color: var(--au-night-ink); }
.ticket-submit { margin-block-start: 20px; block-size: 56px; font-size: var(--au-text-md); }
@media (hover: hover) { .ticket-submit:hover { box-shadow: 0 6px 18px -6px var(--au-glow); } }

.hero-cue {
  position: absolute; inset-block-end: 68px; inset-inline-start: 50%; margin-inline-start: -22px;
  inline-size: var(--au-tap); block-size: var(--au-tap); border-radius: 50%;
  display: none; place-items: center; font-size: 20px;
  color: var(--au-night-ink); border: 1px solid var(--au-night-line-strong);
  transition: background-color var(--au-dur-fast) var(--au-ease);
}
.hero-cue:hover { background: rgba(255, 255, 255, 0.08); }
@media (min-width: 1024px) and (min-height: 760px) { .hero-cue { display: grid; } }

/* Scene parts (HeroScene.razor). Colours are --hs-* tokens: "dawn crossing" in the light theme (bluer sky, a sun
   breaking the horizon, stars fading), "night crossing" in dark. The bottom sky stop stays dark enough that
   --au-night-ink-2 keeps >= 4.5:1 wherever copy can sit; the theme toggle cross-fades between the two. */
.hero-cine, .login-stage, .rq {
  --hs-sky-1: #0A2833; --hs-sky-3: #2A585D;
  --hs-sky-2: #184651;
  --hs-ridge-far: #0F3A41; --hs-ridge-near: #0A2B31;
  --hs-sea-1: #0E3A3F; --hs-sea-2: #031112;
  --hs-wave-1: #0B3136; --hs-wave-2: #08282C; --hs-wave-3: #041A1C;
  --hs-stars: 0.4; --hs-sun: 0.9; --hs-glow: 1;
}
:root[data-theme="dark"] .hero-cine, :root[data-theme="dark"] .login-stage, :root[data-theme="dark"] .rq {
  --hs-sky-1: #041516; --hs-sky-2: #0B3132; --hs-sky-3: #14504F;
  --hs-ridge-far: #0A2C2D; --hs-ridge-near: #072223;
  --hs-sea-1: #0A3233; --hs-sea-2: #031112;
  --hs-wave-1: #082A2B; --hs-wave-2: #062223; --hs-wave-3: #04191A;
  --hs-stars: 1; --hs-sun: 0; --hs-glow: 0.85;
}
.hs-sky-1 { stop-color: var(--hs-sky-1); }
.hs-sky-2 { stop-color: var(--hs-sky-2); }
.hs-sky-3 { stop-color: var(--hs-sky-3); }
.hs-sea-1 { stop-color: var(--hs-sea-1); }
.hs-sea-2 { stop-color: var(--hs-sea-2); }
.hs-stars { fill: var(--au-night-ink); opacity: var(--hs-stars); }
.hs-sun { opacity: var(--hs-sun); }
.hs-glow { fill-opacity: var(--hs-glow); }
.hero-scene stop { transition: stop-color 900ms var(--au-ease); }
.hs-stars, .hs-sun, .hs-ridge-far, .hs-ridge-near, .hs-wave { transition: opacity 900ms var(--au-ease), fill 900ms var(--au-ease); }
.hs-ridge-far { fill: var(--hs-ridge-far); }
.hs-ridge-near { fill: var(--hs-ridge-near); stroke: rgba(255, 255, 255, 0.06); stroke-width: 1; }
.hs-route-base { fill: none; stroke: var(--au-lane-night); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 10; }
.hs-route-done, .hs-route-glow { fill: none; stroke: var(--au-amber-500); stroke-linecap: round; stroke-dasharray: var(--p) 100; stroke-dashoffset: 0; }
.hs-route-done { stroke-width: 3; }
.hs-route-glow { stroke-width: 6; opacity: 0.55; }
.hs-pin-ring { fill: none; stroke: var(--au-amber-500); stroke-width: 2; opacity: 0.6; }
.hs-pin-dot { fill: var(--au-amber-500); }
.hs-pin-dest .hs-pin-ring { transform-box: fill-box; transform-origin: center; }
.hs-car-halo { fill: var(--au-glow-soft); }
.hs-car-dot { fill: var(--au-amber-500); }
.hs-car-glyph { fill: var(--au-amber-ink); }
.hs-reflection { fill: var(--au-amber-500); opacity: 0.1; }
.hs-wave { stroke: rgba(255, 255, 255, 0.05); stroke-width: 1; }
.hs-wave-1 { fill: var(--hs-wave-1); }
.hs-wave-2 { fill: var(--hs-wave-2); }
.hs-wave-3 { fill: var(--hs-wave-3); }
.hs-hull { fill: #0B2F30; stroke: rgba(255, 255, 255, 0.08); stroke-width: 1; }
.hs-deck { fill: #0E3B3C; stroke: rgba(255, 255, 255, 0.1); stroke-width: 1; }
.hs-bridge { fill: #124546; }
.hs-mast { fill: none; stroke: rgba(255, 255, 255, 0.25); stroke-width: 1.5; }
.hs-stripe { fill: var(--au-petrol-400); opacity: 0.5; }
.hs-port { fill: var(--au-amber-300); opacity: 0.85; }
.hs-ship-reflect { fill: var(--au-amber-500); opacity: 0.25; }
.hs-ship { transform-box: fill-box; transform-origin: 50% 100%; }

@media (prefers-reduced-motion: no-preference) {
  /* Choreography (once, about 3s): copy rises, underline draws, route draws and the car flies, ticket rises,
     portholes light up. Afterwards only ambient loops (waves, bob, twinkle). */
  .hero-in { animation: au-rise 700ms var(--au-ease-out) both; animation-delay: calc(var(--i, 0) * 80ms); }
  /* The halves animate, not .ticket: opacity on an ancestor would cut their backdrop blur while it runs. */
  .ticket-stub, .ticket::before { animation: au-rise-far 800ms var(--au-ease-out) 900ms both; }
  .ticket-main { animation: au-rise-far 800ms var(--au-ease-out) 980ms both; }
  .hero-em { animation: hero-draw 1.2s var(--au-ease-in-out) 600ms both; }
  .hero-em::after { animation: hero-pop 400ms var(--pub-overshoot) 1.7s both; }
  .hs-route-done, .hs-route-glow { animation: hs-draw var(--au-dur-scene) var(--au-ease) 500ms both; }
  .hs-glow { animation: hs-glow var(--au-dur-scene) var(--au-ease) 500ms both; }
  .hs-pin-dest .hs-pin-ring { animation: hs-ping 2.4s ease-out 3s infinite; }
  .hs-port { animation: hs-port-on 300ms ease-out both; animation-delay: calc(1400ms + var(--i) * 60ms); }
  .hs-twinkle { animation: hs-twinkle 5.5s ease-in-out infinite; animation-delay: var(--d, 0s); }
  .hs-wave-1 { animation: hs-drift 40s linear infinite; }
  .hs-wave-2 { animation: hs-drift 28s linear infinite; }
  .hs-wave-3 { animation: hs-drift 18s linear infinite; }
  .hs-ship { animation: hs-bob 6s ease-in-out infinite; }
  .hero-cue .icon { animation: cue-bob 2s ease-in-out infinite; }
  .hero-cine.is-offscreen *, .hero-cine.is-offscreen *::before { animation-play-state: paused; }
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hs-sail, .hs-ridge-far, .hs-ridge-near { animation-timing-function: linear; animation-fill-mode: both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .hs-sail { animation-name: hs-sail; }
    .hs-ridge-far { animation-name: hs-settle-far; }
    .hs-ridge-near { animation-name: hs-settle-near; }
  }
}
@keyframes hs-sail { to { transform: translateX(240px); } }
@keyframes hs-settle-far { to { transform: translateY(26px); } }
@keyframes hs-settle-near { to { transform: translateY(12px); } }
@keyframes au-rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes au-rise-far { from { opacity: 0; transform: translateY(32px); } }
@keyframes hero-draw { from { background-size: 0% 3px; } }
@keyframes hero-pop { from { background-size: 0 0; } }
@keyframes hs-draw { from { stroke-dashoffset: var(--p); } to { stroke-dashoffset: 0; } }
@keyframes hs-glow { from { opacity: 0.5; } to { opacity: 1; } }
@keyframes hs-ping { 0% { transform: scale(1); opacity: 0.6; } 80%, 100% { transform: scale(2.4); opacity: 0; } }
@keyframes hs-port-on { from { opacity: 0; } }
@keyframes hs-twinkle { 50% { opacity: 0.1; } }
@keyframes hs-drift { to { transform: translateX(-400px); } }
@keyframes hs-bob { 0%, 100% { transform: none; } 25% { transform: translateY(-3px) rotate(-0.4deg); } 75% { transform: translateY(3px) rotate(0.4deg); } }
@keyframes cue-bob { 50% { transform: translateY(4px); } }

/* ---------- 6.2 Manifest strip ---------- */
.band-stats { position: relative; z-index: 2; margin-block-start: -48px; }
.manifest {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--au-surface); border: 1px solid var(--au-line); border-radius: var(--au-radius-lg); box-shadow: var(--au-shadow-lg);
}
:root[data-theme="dark"] .manifest { border-color: var(--au-line-strong); box-shadow: 0 24px 60px -20px #000, inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.manifest-item { container-type: inline-size; display: grid; align-content: start; gap: 6px; padding: clamp(20px, 3vw, 32px); min-inline-size: 0; }
.manifest-item:nth-child(even) { border-inline-start: 1px dashed var(--au-line); }
.manifest-item:nth-child(n + 3) { border-block-start: 1px dashed var(--au-line); }
@media (min-width: 768px) {
  .manifest { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .manifest-item:nth-child(n + 3) { border-block-start: 0; }
  .manifest-item + .manifest-item { border-inline-start: 1px dashed var(--au-line); }
}
.manifest-tick { position: relative; display: block; inline-size: 30px; block-size: 8px; background: linear-gradient(to right, var(--au-lane) 50%, transparent 0) 0 50% / 6px 2px repeat-x; background-size: 6px 2px; }
.manifest-tick::after { content: ""; position: absolute; inset-inline-end: -4px; inset-block-start: 0; inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--au-lane); }
.manifest-item:first-child .manifest-tick::after { background: var(--au-accent); box-shadow: 0 0 0 3px var(--au-glow-soft); }
.manifest-value {
  display: block; margin-block-start: 10px; font-family: var(--au-font-display); font-weight: 700;
  font-size: min(var(--au-text-stat), 24cqi); line-height: 1.05; color: var(--au-ink);
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
:lang(en) .manifest-value { letter-spacing: -0.02em; }
.manifest-label { font-size: var(--au-text-sm); color: var(--au-ink-2); }

/* ---------- 6.3 How it works: four port stops ---------- */
.band-how { background: var(--au-bg); padding-block-start: calc(var(--au-section) * 0.8); }
.stops { --g: clamp(24px, 3vw, 40px); position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
.stops::before, .stops::after { content: ""; position: absolute; pointer-events: none; }
/* Vertical route (phones and tablets) */
.stops::before { inset-inline-start: 31px; inset-block: 32px; border-inline-start: 2px dashed var(--au-line-strong); opacity: 0.6; }
.stops::after { inset-inline-start: 31px; inset-block: 32px; inline-size: 2px; background: var(--au-accent); transform-origin: top; }
.stop { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; align-items: start; }
.stop-node {
  position: relative; z-index: 1; inline-size: 64px; block-size: 64px; border-radius: 50%;
  display: grid; place-items: center; font-size: 28px;
  background: var(--au-surface); color: var(--au-brand); border: 2px solid var(--au-lane);
  box-shadow: 0 0 0 8px var(--au-bg);
}
.stop.is-arrived .stop-node { background: var(--au-accent); border-color: var(--au-accent); color: var(--au-on-accent); box-shadow: 0 0 0 8px var(--au-bg), 0 14px 32px -8px var(--au-glow); }
.stop-num {
  position: absolute; inset-block-start: -18px; inset-inline-end: 0; z-index: 0; pointer-events: none; user-select: none;
  font-family: var(--au-font-mono); font-weight: 600; font-size: clamp(64px, 8vw, 96px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--au-line-strong); opacity: 0.35;
}
.stop-body { position: relative; z-index: 1; padding-block-start: 10px; }
.stop-body h3 { font-size: var(--au-text-xl); font-weight: 600; }
.stop-body p { margin-block-start: 6px; color: var(--au-ink-2); max-inline-size: 32ch; }
@media (min-width: 900px) {
  .stops { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--g); }
  .stops::before { inset-block: 31px auto; inset-inline-start: 32px; inset-inline-end: calc((100% - 3 * var(--g)) / 4 - 32px); border-inline-start: 0; border-block-start: 2px dashed var(--au-line-strong); }
  .stops::after { inset-block: 31px auto; inset-inline-start: 32px; inset-inline-end: calc((100% - 3 * var(--g)) / 4 - 32px); inline-size: auto; block-size: 2px; transform-origin: left; }
  [dir="rtl"] .stops::after { transform-origin: right; }
  .stop { display: block; }
  .stop-num { inset-block-start: -14px; inset-inline-end: 4px; }
  .stop-body { padding-block-start: 28px; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .stops { view-timeline: --stops block; }
    .stops::after { animation: stops-fill-y linear both; animation-timeline: --stops; animation-range: entry 20% cover 55%; }
    @media (min-width: 900px) { .stops::after { animation-name: stops-fill-x; } }
  }
}
@keyframes stops-fill-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes stops-fill-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- 6.4 Services: asymmetric bento ---------- */
.band-services { background: var(--au-surface-2); }
.bento { display: grid; gap: clamp(16px, 2vw, 24px); }
@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-sea { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; }
  .tile-sea { grid-column: 1; grid-row: 1 / span 2; }
}
.tile {
  position: relative; isolation: isolate; overflow: clip;
  display: flex; flex-direction: column; gap: var(--au-3);
  padding: clamp(24px, 3vw, 32px); border-radius: var(--au-radius-xl);
  transition: transform var(--au-dur) var(--au-ease), box-shadow var(--au-dur) var(--au-ease);
}
.tile h3 { margin-block-start: var(--au-2); font-family: var(--au-font-display); font-weight: 700; font-size: var(--au-text-xl); }
.tile p { color: var(--au-ink-2); max-inline-size: 40ch; }
.tile-ic {
  inline-size: 56px; block-size: 56px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 26px;
  background: var(--au-brand-tint); color: var(--au-brand);
  transition: transform var(--au-dur) var(--au-ease);
}
.tile-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--au-4); }
.tile-land, .tile-docs { background: var(--au-surface); border: 1px solid var(--au-line); box-shadow: var(--au-shadow-sm); }
/* Optional cursor spotlight (--mx/--my set by js/public.js on hover devices). */
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--au-lane) 14%, transparent), transparent 60%);
  transition: opacity var(--au-dur) var(--au-ease);
}
.tile-sea::before { background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 30%), var(--au-glow-soft), transparent 60%); }

.tile-sea {
  background: linear-gradient(165deg, var(--au-night-2), var(--au-night) 70%);
  color: var(--au-night-ink); border: 1px solid var(--au-night-line);
  min-block-size: 260px; padding-block-end: 200px;
}
@media (min-width: 768px) { .tile-sea { min-block-size: 440px; } }
.tile-sea h3 { font-size: var(--au-text-2xl); color: var(--au-night-ink); }
.tile-sea p { color: var(--au-night-ink-2); }
.tile-sea .tile-ic { background: rgba(255, 255, 255, 0.07); border: 1px solid var(--au-night-line); color: var(--au-amber-300); }
.tile-sea .tile-art { position: absolute; inset-inline: 0; inset-block-end: 0; inline-size: 100%; block-size: 220px; z-index: -1; }
@media (min-width: 1024px) { .tile-sea .tile-art { block-size: min(300px, 58%); } }
[dir="rtl"] .tile-art:not(.tile-stamp) { transform: scaleX(-1); }
.ta-moon { fill: var(--au-glow-soft); }
.ta-route { fill: none; stroke: var(--au-lane-night); stroke-width: 2; stroke-dasharray: 2 8; stroke-linecap: round; }
.ta-route-done { fill: none; stroke: var(--au-amber-500); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 72 100; }
.ta-pin { fill: var(--au-amber-500); }
.ta-hull { fill: #0A2A2B; stroke: rgba(255, 255, 255, 0.1); }
.ta-deck { fill: #124445; stroke: rgba(255, 255, 255, 0.1); }
.ta-port { fill: var(--au-amber-300); opacity: 0.85; }
.ta-sea { fill: #041516; opacity: 0.92; }
.ta-wave { fill: none; stroke: rgba(255, 255, 255, 0.12); stroke-width: 1.5; }

.tile-art-land { inline-size: min(220px, 62%); block-size: auto; flex: none; }
.ta-road { stroke: var(--au-line-strong); stroke-width: 2; stroke-dasharray: 10 8; stroke-linecap: round; }
.ta-trailer, .ta-cab { fill: var(--au-brand); }
.ta-frame { fill: none; stroke: var(--au-brand); stroke-width: 2; }
.ta-car { fill: var(--au-lane); }
.ta-car-up { fill: var(--au-accent); }
.ta-window { fill: var(--au-surface); opacity: 0.85; }
.ta-wheel { fill: var(--au-ink); stroke: var(--au-surface); stroke-width: 2.5; }

.tile-stamp { inline-size: 96px; block-size: 96px; flex: none; color: var(--au-brand); transform: rotate(-8deg); }
.ts-ring, .ts-ring-in { fill: none; stroke: currentColor; }
.ts-ring { stroke-width: 3; }
.ts-ring-in { stroke-width: 1.5; stroke-dasharray: 4 4; }
.ts-band { stroke: currentColor; stroke-width: 1.5; opacity: 0.35; }
.ts-check { fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.ts-dot { fill: currentColor; }

@media (hover: hover) {
  .tile:hover::before { opacity: 1; }
  .tile-land:hover, .tile-docs:hover { box-shadow: var(--au-shadow-lg); }
  .tile:hover .tile-ic { transform: rotate(-6deg); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tile:hover { transform: translateY(-4px); }
  .tile-land:hover .ta-road { animation: road-march 600ms linear infinite; }
  .tile-docs:hover .tile-stamp { animation: stamp 320ms var(--pub-overshoot); }
}
@media (prefers-reduced-motion: no-preference) {
  .tile-sea .ta-ship { animation: hs-bob 6s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
}
@keyframes road-march { from { stroke-dashoffset: 18; } to { stroke-dashoffset: 0; } }
@keyframes stamp { 0% { transform: rotate(-8deg) scale(1.12); } 100% { transform: rotate(-8deg) scale(1); } }

/* ---------- 6.5 Destinations: departures board ---------- */
.band-board { position: relative; isolation: isolate; overflow: clip; background: var(--au-night); color: var(--au-night-ink); }
.band-board::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 60% 70% at 100% 0, var(--au-glow-soft), transparent 70%);
}
[dir="rtl"] .band-board::before { background: radial-gradient(ellipse 60% 70% at 0 0, var(--au-glow-soft), transparent 70%); }
:root[data-theme="dark"] .board-panel {
  background: var(--au-night-2); border: 1px solid var(--au-night-line); border-radius: var(--au-radius-2xl);
  padding: clamp(24px, 4vw, 56px); box-shadow: var(--au-shadow-lg);
}
.band-board .sec-head h2 { color: var(--au-night-ink); }
.board { list-style: none; margin: 0; padding: 0; display: grid; column-gap: clamp(32px, 4vw, 64px); }
@media (min-width: 900px) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.board-row {
  display: grid; grid-template-columns: 24px minmax(0, max-content) minmax(24px, 1fr) minmax(0, max-content) 8px;
  align-items: center; gap: 14px; min-block-size: 64px; padding-block: var(--au-2);
  border-block-end: 1px solid var(--au-night-line);
}
.board-row:first-child { border-block-start: 1px solid var(--au-night-line); }
@media (min-width: 900px) { .board-row:nth-child(2) { border-block-start: 1px solid var(--au-night-line); } }
.board-row.is-other { grid-template-columns: 24px minmax(0, max-content) minmax(24px, 1fr); }
.board-ic { color: var(--au-night-ink-3); font-size: 20px; }
.board-name { min-inline-size: 0; perspective: 400px; }
.board-flap { display: inline-block; color: var(--au-night-accent); font-weight: 600; font-size: var(--au-text-lg); overflow-wrap: anywhere; transform-origin: 50% 0; }
:lang(en) .board-flap { font-family: var(--au-font-mono); text-transform: uppercase; letter-spacing: 0.04em; font-size: var(--au-text-md); }
.is-other .board-flap { color: var(--au-night-ink); font-family: var(--au-font); text-transform: none; letter-spacing: 0; font-weight: 500; }
.board-leader { block-size: 0; border-block-end: 1px dotted var(--au-night-line-strong); margin-block-start: 6px; }
.board-country { min-inline-size: 0; color: var(--au-night-ink-2); font-size: var(--au-text-sm); text-align: end; overflow-wrap: anywhere; }
.board-dot { inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--au-petrol-200); box-shadow: 0 0 0 4px rgba(127, 209, 203, 0.14); }
@media (prefers-reduced-motion: no-preference) {
  .board-dot { animation: board-blink 2.8s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 0.23s); }
  .board-flap { transition: transform 400ms var(--au-ease-out), opacity 300ms ease-out; transition-delay: calc(var(--i, 0) * 50ms); }
  .js-io .board:not(.is-in) .board-flap { transform: rotateX(90deg); opacity: 0; }
}
@keyframes board-blink { 50% { opacity: 0.35; } }
.board { font-variant-numeric: tabular-nums; }
.board-row:first-child .board-dot { background: var(--au-amber-500); box-shadow: 0 0 0 4px var(--au-glow-soft); }
.flap-cells { display: inline-flex; flex-wrap: wrap; row-gap: 4px; column-gap: 0.8em; vertical-align: middle; } /* a clear word gap, wider than the 2px cell gap */
.flap-word { display: inline-flex; flex-wrap: wrap; gap: 2px; }
@media (max-width: 559px) { .flap-c { min-inline-size: 1em; block-size: 1.5em; } }
.flap-c {
  position: relative; display: inline-grid; place-items: center; min-inline-size: 1.12em; block-size: 1.6em; padding-inline: 1px;
  border-radius: 3px; background: linear-gradient(rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 1px 0 rgba(0, 0, 0, 0.35);
  line-height: 1; transform-origin: 50% 50%;
}
.flap-c::after { content: ""; position: absolute; inset-inline: 0; inset-block-start: 50%; border-block-start: 1px solid rgba(0, 0, 0, 0.5); }
.board-flap.is-split { text-transform: none; letter-spacing: 0; }
@media (prefers-reduced-motion: no-preference) {
  .js-io .board:not(.is-in) .board-flap.is-split { transform: none; opacity: 1; }
  .flap-c.is-flipping { animation: flap-tick 80ms linear infinite; }
  .board-row:first-child .board-dot { animation-duration: 1.2s; }
}
@keyframes flap-tick { 50% { transform: rotateX(-80deg); filter: brightness(0.7); } }

/* ---------- 6.6 Call to action ---------- */
.band-cta { background: var(--au-bg); }
.cta-panel {
  position: relative; isolation: isolate; overflow: clip;
  display: grid; gap: var(--au-6); align-items: end;
  padding: clamp(32px, 6vw, 72px); padding-block-end: clamp(96px, 10vw, 132px);
  border-radius: var(--au-radius-2xl); color: var(--au-night-ink); border: 1px solid var(--au-night-line);
  background: radial-gradient(ellipse 70% 90% at 100% 100%, var(--au-glow), transparent 60%), var(--au-night);
  box-shadow: var(--au-shadow-lg);
}
[dir="rtl"] .cta-panel { background: radial-gradient(ellipse 70% 90% at 0 100%, var(--au-glow), transparent 60%), var(--au-night); }
:root[data-theme="dark"] .cta-panel { background: radial-gradient(ellipse 70% 90% at 100% 100%, var(--au-glow), transparent 60%), var(--au-night-2); border-color: var(--au-night-line-strong); }
:root[data-theme="dark"][dir="rtl"] .cta-panel { background: radial-gradient(ellipse 70% 90% at 0 100%, var(--au-glow), transparent 60%), var(--au-night-2); }
/* 18: the arrival plays when the panel scrolls into view (js/public.js adds .is-in; without JavaScript it plays at load). */
.js .cta-route:not(.is-in) .j-done { animation-play-state: paused; }
@media (min-width: 900px) { .cta-panel { grid-template-columns: minmax(0, 1fr) auto; } }
.cta-watermark {
  position: absolute; inset-block-start: -0.18em; inset-inline-end: -0.04em; z-index: -1; pointer-events: none; user-select: none;
  font-family: var(--au-font-mono); font-weight: 600; font-size: clamp(120px, 18vw, 220px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
}
.cta-copy h2 { font-family: var(--au-font-display); font-weight: 700; font-size: var(--au-text-4xl); line-height: 1.08; max-inline-size: 18ch; text-wrap: balance; }
:lang(en) .cta-copy h2 { letter-spacing: -0.025em; }
:lang(ar) .cta-copy h2 { line-height: var(--au-leading-display-ar); }
.cta-copy p { margin-block-start: var(--au-4); color: var(--au-night-ink-2); max-inline-size: 52ch; font-size: var(--au-text-lg); text-wrap: pretty; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--au-3); }
@media (max-width: 559px) { .cta-actions .btn { flex: 1 1 100%; } }
.cta-route { position: absolute; inset-inline-end: 0; inset-block-end: 4px; inline-size: min(560px, 85%); opacity: 0.4; z-index: -1; pointer-events: none; }

/* ---------- 6.7 Branches ---------- */
.band-branches { background: var(--au-bg); }
.band-cta + .band-branches { padding-block-start: 0; }
.branches { display: grid; gap: clamp(16px, 2vw, 24px); }
@media (min-width: 640px) { .branches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .branches { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.branch-card {
  display: flex; flex-direction: column; overflow: clip;
  background: var(--au-surface); border: 1px solid var(--au-line); border-radius: var(--au-radius-lg); box-shadow: var(--au-shadow-sm);
}
.branch-chart { block-size: 120px; background: var(--au-surface-2); border-block-end: 1px solid var(--au-line); }
.branch-chart svg { display: block; inline-size: 100%; block-size: 100%; }
.bc-grid { fill: none; stroke: color-mix(in srgb, var(--au-brand) 12%, transparent); stroke-width: 1; }
.bc-coast { fill: none; stroke: var(--au-lane); stroke-width: 1.5; stroke-dasharray: 3 5; opacity: 0.55; }
.bc-pin { fill: var(--au-lane); stroke: var(--au-surface); stroke-width: 2.5; }
.bc-pulse { fill: var(--au-lane); opacity: 0.3; transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) { .bc-pulse { animation: pulse 2.4s ease-out infinite; } }
.branch-body { display: grid; gap: var(--au-2); align-content: start; flex: 1; padding: var(--au-5); }
.branch-body h3 { font-size: var(--au-text-xl); }
.branch-body p { color: var(--au-ink-2); }
.branch-actions { display: flex; flex-wrap: wrap; gap: var(--au-2); margin-block-start: var(--au-2); }
.pill-link {
  display: inline-flex; align-items: center; gap: var(--au-2); min-block-size: var(--au-tap); padding-inline: var(--au-4);
  border: 1px solid var(--au-line-strong); border-radius: var(--au-radius-pill);
  color: var(--au-brand); font-size: var(--au-text-sm); font-weight: 500;
  transition: background-color var(--au-dur-fast) var(--au-ease), border-color var(--au-dur-fast) var(--au-ease);
}
/* A single branch gets a wide card: chart beside the details. */
@media (min-width: 768px) {
  .branches:has(> .branch-card:only-child) { grid-template-columns: minmax(0, 1fr); }
  .branch-card:only-child { flex-direction: row; }
  .branch-card:only-child .branch-chart { flex: 0 0 42%; block-size: auto; min-block-size: 200px; border-block-end: 0; border-inline-end: 1px solid var(--au-line); }
  .branch-card:only-child .branch-body { align-content: center; padding: var(--au-6); }
}
.pill-link:hover { background: var(--au-brand-tint); border-color: var(--au-brand); }
.pill-link .icon { font-size: 18px; }


/* =====================================================================================================
   FOOTER "Arrival" (PublicLayout): night in both themes
   ===================================================================================================== */
.site-footer {
  position: relative; isolation: isolate; overflow: clip;
  margin-block-start: var(--au-8);
  background: var(--au-night-deep); color: var(--au-night-ink-2);
}
.site > main:has(> .landing) + .site-footer { margin-block-start: 0; }
.on-night .brand { color: var(--au-night-ink); }
.on-night .brand small { color: var(--au-night-ink-2); }

.footer-route { position: relative; block-size: 56px; }
.footer-route svg { display: block; inline-size: 100%; block-size: 40px; margin-block-start: 8px; overflow: visible; opacity: 0.55; }
[dir="rtl"] .footer-route svg { transform: scaleX(-1); }
.fr-base { fill: none; stroke: var(--au-lane-night); stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.fr-done { fill: none; stroke: var(--au-amber-500); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.fr-origin { position: absolute; inset-inline-start: 2px; inset-block-start: calc(8px + 40px * 0.8 - 5px); inline-size: 10px; block-size: 10px; border-radius: 50%; background: var(--au-amber-500); }
.fr-car {
  position: absolute; inset-inline-end: 6px; inset-block-start: calc(8px + 40px * 0.3 - 16px);
  inline-size: 32px; block-size: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--au-amber-500); color: var(--au-amber-ink); font-size: 18px;
  box-shadow: 0 0 0 6px var(--au-glow-soft), 0 0 24px var(--au-glow);
}
[dir="rtl"] .fr-car .icon { transform: scaleX(-1); }

.footer-inner { position: relative; max-inline-size: var(--au-wrap); margin-inline: auto; padding: clamp(32px, 5vw, 64px) var(--au-gutter) 0; }
.footer-grid { display: grid; gap: var(--au-6); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1.2fr; } .footer-brand { grid-column: auto; } }
.footer-tagline { margin-block-start: var(--au-4); font-size: var(--au-text-sm); color: var(--au-night-ink-2); max-inline-size: 36ch; }
.footer-col { display: grid; align-content: start; justify-items: start; gap: 2px; font-size: var(--au-text-sm); min-inline-size: 0; }
.footer-head { margin-block-end: var(--au-2); font-size: var(--au-text-kicker); font-weight: 500; color: var(--au-amber-300); }
:lang(en) .footer-head { letter-spacing: 0.14em; text-transform: uppercase; }
.footer-link { display: inline-flex; align-items: center; min-block-size: var(--au-tap); color: var(--au-night-ink-2); transition: color var(--au-dur-fast) var(--au-ease); }
.footer-link > span { position: relative; }
.footer-link > span::after {
  content: ""; position: absolute; inset-inline: 0; inset-block-end: -4px; block-size: 2px; border-radius: 2px;
  background: var(--au-amber-500); transform: scaleX(0); transform-origin: left; transition: transform 250ms var(--au-ease);
}
[dir="rtl"] .footer-link > span::after { transform-origin: right; }
.footer-link:hover, .footer-link:focus-visible { color: var(--au-night-ink); }
.footer-link:hover > span::after, .footer-link:focus-visible > span::after { transform: scaleX(1); }
.footer-contact { display: flex; align-items: center; gap: var(--au-3); min-block-size: var(--au-tap); color: var(--au-night-ink-2); overflow-wrap: anywhere; transition: color var(--au-dur-fast) var(--au-ease); }
a.footer-contact:hover { color: var(--au-night-ink); }
.footer-ic {
  inline-size: 36px; block-size: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 18px;
  border: 1px solid var(--au-night-line); color: var(--au-petrol-200); transition: border-color var(--au-dur-fast) var(--au-ease);
}
a.footer-contact:hover .footer-ic { border-color: var(--au-night-line-strong); }
.socials { display: flex; flex-wrap: wrap; gap: var(--au-2); margin-block-start: var(--au-3); }
.socials a {
  inline-size: var(--au-tap); block-size: var(--au-tap); border-radius: 50%; display: grid; place-items: center; font-size: 20px;
  border: 1px solid var(--au-night-line); color: var(--au-night-ink-2);
  transition: border-color var(--au-dur-fast) var(--au-ease), background-color var(--au-dur-fast) var(--au-ease), color var(--au-dur-fast) var(--au-ease);
}
.socials a:hover { border-color: var(--au-night-line-strong); background: rgba(255, 255, 255, 0.06); color: var(--au-night-ink); }
.site-footer .footer { margin-block-start: clamp(32px, 5vw, 56px); padding-block: var(--au-5) var(--au-4); border-block-start: 1px solid var(--au-night-line); text-align: start; color: var(--au-night-ink-3); }
.footer-wordmark {
  margin: 0; padding-inline: var(--au-gutter); text-align: center; white-space: nowrap; pointer-events: none; user-select: none;
  font-family: var(--au-font-display); font-weight: 800; font-size: clamp(4rem, 14vw, 12rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
  margin-block-end: -0.22em;
}
:lang(ar) .footer-wordmark { -webkit-text-stroke: 0; color: rgba(255, 255, 255, 0.045); }


/* =====================================================================================================
   REVEAL (content is never hidden by default)
   ===================================================================================================== */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal { animation: au-reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }
  /* Fallback: js/public.js adds .js-reveal only when view timelines are missing, and .is-in when in view. */
  .js-reveal .reveal { transition: opacity 600ms var(--au-ease-out), translate 600ms var(--au-ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
  .js-reveal .reveal:not(.is-in) { opacity: 0; translate: 0 24px; }
  /* Manifest values wipe up once (time-based; js adds .js-io and .is-in). */
  .manifest-value { transition: clip-path 700ms var(--au-ease-out); transition-delay: calc(var(--i, 0) * 90ms + 150ms); }
  .js-io .manifest:not(.is-in) .manifest-value { clip-path: inset(100% 0 0 0); }
}
@keyframes au-reveal { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }

/* docs/04: everything stops under reduced motion. Animations jump to their end state (forwards fills still apply). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .hero-in, .ticket-stub, .ticket-main, .ticket::before, .hero-em, .hero-em::after, .hs-route-done, .hs-route-glow, .hs-glow, .hs-port, .hs-twinkle,
  .hs-wave, .hs-ship, .hs-sail, .hs-ridge-far, .hs-ridge-near, .stops::after, .board-dot, .bc-pulse, .flap-c { animation: none !important; }
  .hero-scene stop, .hs-stars, .hs-sun, .hs-ridge-far, .hs-ridge-near, .hs-wave { transition: none !important; }
}

@media print {
  .bar-wrap, .hero-scene, .hero-cue, .footer-route, .footer-wordmark { display: none; }
  .hero-cine, .band-board, .cta-panel, .site-footer { background: none; color: inherit; }
}
