:root {
  --background: url("/images/background.png");   /* swap to background2.png if you prefer */

  --bar-h: 48px;
  --navy: 20, 25, 43;              /* #14192b as raw RGB, for rgba() */
  --bar-fg: #e8ebf2;
  --bar-fg-dim: #a7b0c4;
  --body-fg: #c9d1e0;
  --focus: #e8ebf2;

  --heading-shift: 0px;            /* fine vertical nudge for the heading */
  --heading-w: 620px;              /* heading image width */
  --hero-h: 10vh;                  /* gap below the heading */

  --font-ui: "Segoe UI", "Segoe UI Web (West European)", -apple-system,
             BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}

/* ---- 2. Reset / base ----------------------------------------- */
* { box-sizing: border-box; }

html,
body { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  color: var(--body-fg);
  font-family: var(--font-ui);
  -webkit-tap-highlight-color: transparent;
}

/* ---- 3. Background image -------------------------------------
   A fixed pseudo-element rather than background-attachment:fixed,
   which stutters on iOS Safari.
   -------------------------------------------------------------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: var(--background);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #14192b;       /* shows if the image 404s */
}

/* ---- 4. Top bar ---------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--bar-h);
  padding: 0 24px;
  font-size: 13px;
  background: linear-gradient(
    to bottom,
    rgba(var(--navy), .94),
    rgba(var(--navy), .74)
  );
  -webkit-backdrop-filter: blur(20px) saturate(125%);
          backdrop-filter: blur(20px) saturate(125%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0);
  transition:
    background .18s ease,
    box-shadow .18s ease,
    -webkit-backdrop-filter .18s ease,
    backdrop-filter .18s ease;
}

/* colour and blur taper off below the bar — no hard seam */
.topbar::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 56px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(var(--navy), .74),
    rgba(var(--navy), 0)
  );
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
          mask-image: linear-gradient(to bottom, #000, transparent);
  opacity: 1;
  transition: opacity .18s ease;
}

/* ---- 4b. Hover / focus: solidify and cut a hard edge ---------- */
.topbar:hover,
.topbar:focus-within {
  background: rgb(var(--navy));
  -webkit-backdrop-filter: blur(0px) saturate(100%);
          backdrop-filter: blur(0px) saturate(100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .14);
}

.topbar:hover::after,
.topbar:focus-within::after { opacity: 0; }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar { background: rgb(var(--navy)); }
  .topbar::after {
    background: linear-gradient(to bottom, rgba(var(--navy), .9), rgba(var(--navy), 0));
  }
}

/* ---- 5. Wordmark --------------------------------------------- */
.brand {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--bar-fg);
  text-decoration: none;
  white-space: nowrap;
}

/* ---- 6. Nav links -------------------------------------------- */
.topbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topbar-nav a {
  display: block;
  padding: 6px 10px;
  border-radius: 2px;
  color: var(--bar-fg);
  text-decoration: none;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}

.topbar-nav a:hover { text-decoration: underline; }

.topbar-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--bar-fg); }

/* ---- 6b. Services dropdown -----------------------------------
   The trigger is a <button>, not an <a>: it opens a menu rather
   than navigating, which is what keyboards and screen readers
   expect from a button.
   -------------------------------------------------------------- */
.has-submenu { position: relative; }

.submenu-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: 0;
  border-radius: 2px;
  background: none;
  font: inherit;
  color: var(--bar-fg);
  white-space: nowrap;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}

.submenu-toggle:hover { text-decoration: underline; }

.submenu-toggle .chev {
  width: 9px;
  height: 9px;
  fill: currentColor;
  transition: transform .15s ease;
}

.has-submenu.is-open .submenu-toggle .chev { transform: rotate(180deg); }

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10;              /* above .topbar::after, which sits at auto */
  display: none;
  min-width: 190px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: rgb(var(--navy));
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
}

.has-submenu.is-open > .submenu { display: block; }

.submenu a {
  display: block;
  padding: 9px 14px;
  color: var(--bar-fg);
  text-decoration: none;
  white-space: nowrap;
}

.submenu a:hover { background: rgba(255, 255, 255, .08); }

/* Hover-to-open for mouse users only. `pointer: fine` excludes
   touch, where hover fires on first tap and would swallow it. */
@media (hover: hover) and (pointer: fine) {
  .has-submenu:hover > .submenu { display: block; }
  .has-submenu:hover .chev { transform: rotate(180deg); }
}

/* ---- 7. Right-hand utility group -----------------------------
   Unused for now — no markup uses it. Kept so you can drop a
   <ul class="topbar-utils"> back into the bar later without
   rewriting styles. Add nothing here until the page exists.
   -------------------------------------------------------------- */
.topbar-utils {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  margin-left: auto;
  padding: 0;
  list-style: none;
}

.topbar-utils a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 2px;
  color: var(--bar-fg-dim);
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}

.topbar-utils a:hover {
  color: var(--bar-fg);
  text-decoration: underline;
}

/* ---- 8. Focus ------------------------------------------------ */
.topbar a:focus-visible,
.topbar button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* ---- 9. Heading ----------------------------------------------
   Works two ways with the same class:
     <h1 class="heading">About The Orion</h1>              (text)
     <h1 class="heading"><img src="..." alt="..."></h1>    (image)
   -------------------------------------------------------------- */
.heading {
  display: grid;
  place-items: start center;
  min-height: var(--hero-h);
  margin: 0;
  padding: 16vh 24px 0;        /* dial this to move it up or down */
  text-align: center;

  font-family: var(--font-ui);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}

.heading img {
  display: block;
  /* `width`, not `max-width`: max-width is only a ceiling, so any
     value above the file's natural size does nothing. */
  width: min(var(--heading-w), 88vw);
  height: auto;
  margin-top: var(--heading-shift);
}

.heading--page {
  min-height: 0;
  padding-top: 18vh;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

/* ---- 10. Page content ---------------------------------------- */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 120px;
  font-size: 14px;
  text-align: center;
}

.page p {
  margin: 0 0 1.1em;
  font-size: 15px;
  line-height: 1.7;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
}

/* body links — explicit, or they fall back to browser blue */
.page a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: .18em;
  text-decoration-color: rgba(255, 255, 255, .45);
}

.page a:hover { text-decoration-color: #fff; }

.page a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* ---- 11. Mobile ---------------------------------------------- */
.menu-toggle { display: none; }

@media (max-width: 860px) {
  .topbar {
    gap: 12px;
    padding: 0 16px;
  }

  .menu-toggle {
    display: inline-flex;
    order: -1;
    padding: 6px;
    border: 0;
    background: none;
    color: var(--bar-fg);
    cursor: pointer;
  }

  .menu-toggle svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
  }

  .topbar-nav {
    position: absolute;
    top: var(--bar-h);
    left: 0;
    right: 0;
    z-index: 2;                  /* above the .topbar::after falloff */
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(var(--navy), .92);
    -webkit-backdrop-filter: blur(20px);
            backdrop-filter: blur(20px);
  }

  .topbar-nav.is-open { display: flex; }

  .topbar-nav a { padding: 14px 20px; }

  /* Inside the drawer the dropdown expands inline instead of
     floating — a positioned panel would overflow the drawer. */
  .submenu-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 14px 20px;
  }

  .submenu {
    position: static;
    min-width: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: rgba(0, 0, 0, .28);
  }

  .submenu a { padding: 12px 20px 12px 36px; }

  /* Hover-open off here; tapping the button is the way in. */
  .has-submenu:hover > .submenu { display: none; }
  .has-submenu.is-open > .submenu { display: block; }

  .heading {
    min-height: 8vh;
    padding: 12vh 16px 0;
  }

  .heading--page { padding-top: 14vh; }

  .page { padding: 0 16px 80px; }
}

/* ---- 12. Reduced motion -------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== SHARED BLOCK — END ================================ */


/* ===== PAGE-SPECIFIC — only this page uses what follows ===== */

/* Home uses the shared defaults as-is.
   Add home-only rules below this line. */