/* ==========================================================================
   Moonridge AI — site styles
   Palette and type live in :root so they are easy to adjust in one place.
   ========================================================================== */

@font-face {
  font-family: "Teko";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/teko-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}

:root {
  --near-black: #090711;
  --navy: #130d2f;
  --purple: #5d257c;
  --orange: #ff793f;
  --gold: #ffc052;
  --cream: #fcfbf7;
  --white: #ffffff;

  /* Derived working colours */
  --ink: var(--navy);                 /* body text on light surfaces */
  --ink-muted: #4a4562;               /* secondary text on light (7.6:1 on cream) */
  --line: rgba(19, 13, 47, 0.12);     /* hairlines on light */
  --on-dark: #ede9f7;                 /* body text on dark surfaces */
  --on-dark-muted: #bdb6d3;           /* secondary text on dark (8.5:1 on navy) */
  --line-dark: rgba(255, 255, 255, 0.14);
  --purple-soft: #ede4f3;

  --font-display: "Teko", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(4.5rem, 10vw, 8rem);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
html.nav-open { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--purple); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li + li { margin-top: 0.35em; }
.site-nav li + li, .site-footer li + li, .pill-nav li + li { margin-top: 0; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 1000;
  padding: 0.6rem 1rem;
  background: var(--orange);
  color: var(--near-black);
  font-weight: 600;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }

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

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.005em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(3.4rem, 8.6vw, 7rem); }
h2 { font-size: clamp(2.6rem, 5.2vw, 4.2rem); }
h3 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
h4 { font-size: 1.6rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.25rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--orange);
  border-radius: 2px;
}
.theme-dark .eyebrow { color: var(--gold); }

.lede {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 34em;
}
.theme-dark .lede { color: var(--on-dark-muted); }

.text-muted { color: var(--ink-muted); }
.theme-dark .text-muted { color: var(--on-dark-muted); }

.accent { color: var(--orange); }

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.container--narrow { max-width: 820px; }

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3rem, 7vw, 5.5rem); }

.theme-dark {
  background: var(--navy);
  color: var(--on-dark);
}
.theme-dark h1, .theme-dark h2, .theme-dark h3, .theme-dark h4 { color: var(--white); }
.theme-dark a { color: var(--gold); }
.theme-white { background: var(--white); }
.theme-cream { background: var(--cream); }

.grid-2 {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (min-width: 860px) {
  .grid-2 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .grid-2--even { grid-template-columns: 1fr 1fr; }
  .grid-2 .sticky { position: sticky; top: calc(var(--header-h) + 24px); }
}

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { margin-bottom: 0.4em; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s, border-color 0.25s, box-shadow 0.25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.25s var(--ease); }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--orange);
  color: var(--near-black);
  box-shadow: 0 10px 30px -12px rgba(255, 121, 63, 0.7);
}
.btn--primary:hover { background: #ff8a58; }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn--ghost:hover { border-color: var(--white); }

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: rgba(19, 13, 47, 0.35);
}
.btn--outline:hover { border-color: var(--navy); }

.btn--lg { min-height: 60px; padding: 1rem 2rem; font-size: 1.08rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-top: 2rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  text-decoration: none;
}
.text-link svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.text-link:hover { text-decoration: underline; }
.text-link:hover svg { transform: translateX(3px); }

.booking-note {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}
.theme-dark .booking-note, .hero .booking-note { color: var(--on-dark-muted); }
.booking-note[hidden] { display: none; }

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  color: var(--white);
  transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.site-header.is-scrolled {
  background: rgba(9, 7, 17, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
/* While the mobile menu is open the header must not use backdrop-filter:
   a filter would make the header the containing block for the fixed menu panel. */
html.nav-open .site-header {
  background: var(--near-black);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 48px; width: auto; }
@media (max-width: 480px) { .brand img { height: 38px; } }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0; padding: 0;
}
.site-nav a:not(.btn) {
  color: var(--on-dark);
  font-weight: 500;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.site-nav a:not(.btn):hover { color: var(--white); border-color: var(--orange); }
.site-nav a[aria-current="page"] { color: var(--white); border-color: var(--gold); }
.site-nav .btn { min-height: 44px; padding: 0.55rem 1.25rem; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: var(--white);
  font: 600 0.9rem var(--font-body);
  padding: 0.5rem 0.95rem;
  cursor: pointer;
}
.nav-toggle .bars { width: 18px; height: 12px; position: relative; }
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}
.nav-toggle .bars::before { top: 0; }
.nav-toggle .bars::after { top: 10px; }
.nav-toggle[aria-expanded="true"] .bars::before { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { top: 5px; transform: rotate(-45deg); }

@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 1.5rem var(--gutter) 3rem;
    background: var(--near-black);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0s 0.3s;
    overflow-y: auto;
  }
  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s, transform 0.3s var(--ease);
  }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line-dark); }
  .site-nav a:not(.btn) {
    display: block;
    padding: 1.1rem 0;
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1;
    border-bottom: 0;
  }
  .site-nav a[aria-current="page"] { color: var(--gold); }
  .site-nav .btn { margin-top: 1.75rem; min-height: 56px; font-size: 1.05rem; }
}

/* --------------------------------------------------------------------------
   Hero — the moon rising over a ridge
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: clamp(8rem, 20vw, 13rem);
  background:
    radial-gradient(120% 80% at 50% 110%, rgba(93, 37, 124, 0.55) 0%, rgba(93, 37, 124, 0) 60%),
    linear-gradient(180deg, var(--near-black) 0%, var(--navy) 70%, #1b1240 100%);
  color: var(--on-dark);
}
.hero--short {
  min-height: 0;
  padding-top: calc(var(--header-h) + clamp(4rem, 9vw, 7rem));
  padding-bottom: clamp(5rem, 12vw, 8rem);
}
.hero h1 { color: var(--white); margin-bottom: 0.25em; max-width: 7.4em; }
.hero--short h1 { font-size: clamp(3.2rem, 7.5vw, 6rem); max-width: 10em; }
.hero .lede { color: var(--on-dark-muted); }
.hero .container { position: relative; z-index: 2; }
.hero-copy { max-width: 42rem; }

/* Moon: soft gradient disc with an atmospheric halo */
.moon {
  position: absolute;
  z-index: 0;
  right: clamp(-4rem, 7vw, 11vw);
  bottom: 3%;
  width: clamp(240px, 32vw, 480px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 34%, #ffd98a 0%, var(--gold) 28%, var(--orange) 62%, #d9552a 100%);
  box-shadow:
    0 0 60px 10px rgba(255, 192, 82, 0.35),
    0 0 160px 60px rgba(255, 121, 63, 0.22),
    0 0 320px 140px rgba(93, 37, 124, 0.28);
  animation: moon-rise 1.8s var(--ease) both;
}
.moon::after {
  /* soft atmospheric haze across the lower half, like a moon low on the horizon */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 45%, rgba(93, 37, 124, 0.35) 100%);
}
.hero--short .moon {
  width: clamp(180px, 22vw, 320px);
  bottom: -12%;
  right: clamp(-3rem, 4vw, 8vw);
  opacity: 0.9;
}
@media (max-width: 720px) {
  .hero { align-items: flex-start; padding-bottom: clamp(15rem, 70vw, 19rem); }
  .hero--short { padding-bottom: clamp(9rem, 32vw, 11rem); }
  .moon { right: -12vw; bottom: 2%; width: 56vw; }
  .hero--short .moon { right: -10vw; bottom: -14%; width: 48vw; }
  .closing .moon { width: 60vw; bottom: -22%; }
}

/* Ridges: layered silhouettes with a thin lit path along the crest */
.ridges {
  position: absolute;
  z-index: 1;
  left: 0; right: 0; bottom: -2px;
  width: 100%;
  height: clamp(150px, 22vw, 330px);
  pointer-events: none;
}
.ridges .r-back  { fill: #2a1a55; }
.ridges .r-mid   { fill: #1a1140; }
.ridges .r-front { fill: var(--near-black); }
.ridges .r-path  {
  fill: none;
  stroke: url(#pathGlow);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: draw-path 2.6s 0.5s var(--ease) forwards;
  filter: drop-shadow(0 0 6px rgba(255, 192, 82, 0.8));
}
.hero--short .ridges .r-path { animation-duration: 2s; }

.hero-scroll {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.hero-scroll::after {
  content: "";
  width: 1px; height: 36px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scroll-hint 2.2s ease-in-out infinite;
}
@media (max-width: 720px) { .hero-scroll { display: none; } }

@keyframes moon-rise {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes draw-path {
  to { stroke-dashoffset: 0; }
}
@keyframes scroll-hint {
  0%, 100% { transform: scaleY(0.6); opacity: 0.4; transform-origin: top; }
  50%      { transform: scaleY(1);   opacity: 1;   transform-origin: top; }
}

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
html.has-reveal .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.8s var(--ease);
}
html.has-reveal .reveal.is-visible { opacity: 1; transform: none; }
html.has-reveal .reveal:nth-child(2) { transition-delay: 0.08s; }
html.has-reveal .reveal:nth-child(3) { transition-delay: 0.16s; }
html.has-reveal .reveal:nth-child(4) { transition-delay: 0.24s; }

/* --------------------------------------------------------------------------
   Cards, lists and page pieces
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(19, 13, 47, 0.04);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(93, 37, 124, 0.35);
  box-shadow: 0 24px 50px -30px rgba(19, 13, 47, 0.35);
}
.card h3 { margin-bottom: 0.35em; }
.card .card-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--purple);
  margin-bottom: 1.4rem;
}
.card .card-body { flex: 1; }
.card ul { color: var(--ink-muted); font-size: 0.98rem; }
.card .text-link { margin-top: 1.5rem; }

.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.theme-dark .card {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--line-dark);
  box-shadow: none;
}
.theme-dark .card:hover { border-color: rgba(255, 192, 82, 0.45); background: rgba(255, 255, 255, 0.05); }
.theme-dark .card ul { color: var(--on-dark-muted); }

/* Practical possibilities tiles */
.tile {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.5rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.3s, background-color 0.3s;
}
.tile:hover { border-color: rgba(255, 192, 82, 0.45); background: rgba(255, 255, 255, 0.05); }
.tile-icon {
  flex: none;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(255, 121, 63, 0.14);
  color: var(--gold);
}
.tile-icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { font-size: 1.7rem; margin-bottom: 0.25em; }
.tile p { color: var(--on-dark-muted); font-size: 0.98rem; }
.tile-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

/* How we work — steps along a path */
.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 2rem 1.5rem;
  counter-reset: step;
  position: relative;
}
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps::before {
    content: "";
    position: absolute;
    top: 26px; left: 28px; right: 28px;
    height: 2px;
    background: linear-gradient(90deg, var(--purple), var(--orange) 70%, var(--gold));
    opacity: 0.55;
  }
}
.step { position: relative; }
.step-num {
  position: relative;
  z-index: 1;
  display: grid; place-items: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1;
  padding-top: 3px;
  box-shadow: 0 0 0 6px var(--cream);
  margin-bottom: 1.25rem;
}
.theme-white .step-num { box-shadow: 0 0 0 6px var(--white); }
.step h3 { font-size: 1.9rem; margin-bottom: 0.3em; }
.step p { color: var(--ink-muted); font-size: 0.98rem; }
@media (max-width: 859px) {
  .steps::before {
    content: "";
    position: absolute;
    top: 30px; bottom: 30px; left: 26px;
    width: 2px;
    background: linear-gradient(180deg, var(--purple), var(--orange) 70%, var(--gold));
    opacity: 0.55;
  }
  .step { padding-left: 76px; }
  .step-num { position: absolute; left: 0; top: 0; margin: 0; }
}

/* Reasons / principles list */
.principles {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 1.75rem;
}
.principles li {
  padding-left: 1.6rem;
  border-left: 3px solid var(--orange);
}
.principles strong { display: block; font-size: 1.12rem; margin-bottom: 0.25rem; color: var(--navy); }
.principles p { color: var(--ink-muted); }
.theme-dark .principles strong { color: var(--white); }
.theme-dark .principles p { color: var(--on-dark-muted); }

/* Reassurance points (approachable starting point) */
.points {
  list-style: none;
  margin: 1.75rem 0 0; padding: 0;
  display: grid;
  gap: 1rem;
}
.points li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1.1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.points svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--orange); }

/* Service detail sections (Services page) */
.service-detail {
  padding-block: clamp(3.5rem, 8vw, 6rem);
  border-top: 1px solid var(--line);
}
.service-detail:first-of-type { border-top: 0; }
.service-detail .grid-2 { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
@media (max-width: 859px) { .service-detail .grid-2 { grid-template-columns: 1fr; } }
.detail-blocks {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.detail-block h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 0.75rem;
}
.detail-block ul { padding-left: 1.1em; color: var(--ink-muted); font-size: 0.98rem; }
.detail-block p { color: var(--ink-muted); font-size: 0.98rem; }
.detail-block--wide { grid-column: 1 / -1; }

/* Sub-navigation pills (Services page) */
.pill-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin: 2rem 0 0; padding: 0;
}
.pill-nav a {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: var(--on-dark);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}
.pill-nav a:hover { border-color: var(--gold); background: rgba(255, 192, 82, 0.1); }

/* Contact page */
.contact-card {
  padding: clamp(1.8rem, 4vw, 3rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact-card h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.email-big {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
  color: var(--navy);
  text-decoration: none;
  word-break: break-all;
}
.email-big:hover { color: var(--purple); text-decoration: underline; }

/* Closing invitation */
.closing {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  padding-block: clamp(6rem, 14vw, 10rem) clamp(12rem, 26vw, 20rem);
  background: linear-gradient(180deg, var(--near-black) 0%, var(--navy) 100%);
  color: var(--on-dark);
}
.closing h2 { color: var(--white); font-size: clamp(3rem, 7vw, 6rem); max-width: 12em; margin-inline: auto; }
.closing .lede { margin-inline: auto; text-align: center; }
.closing .btn-row { justify-content: center; }
.closing .moon {
  left: 50%;
  right: auto;
  top: auto;
  bottom: -25%;
  width: clamp(220px, 27vw, 380px);
  transform: translateX(-50%);
  animation-name: moon-rise-center;
  opacity: 0.95;
}
.closing .ridges { bottom: -2px; }
@keyframes moon-rise-center {
  from { transform: translate(-50%, 60px); opacity: 0; }
  to   { transform: translate(-50%, 0);    opacity: 0.95; }
}
.closing .container { position: relative; z-index: 2; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--near-black);
  color: var(--on-dark-muted);
  padding-block: 3rem 2.5rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.95rem;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  align-items: center;
  justify-content: space-between;
}
.site-footer img { height: 34px; width: auto; }
.site-footer ul {
  display: flex; flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none; margin: 0; padding: 0;
}
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.site-footer .copyright { width: 100%; margin-top: 0.5rem; font-size: 0.85rem; }

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .moon { animation: none; }
  .ridges .r-path { animation: none; stroke-dashoffset: 0; }
  .hero-scroll::after { animation: none; }
  .btn:hover, .card:hover { transform: none; }
}
