/* ==========================================================================
   Australian Travel Hacking — site styles
   Mobile-first. One stylesheet shared by all pages.
   ========================================================================== */

/* Fonts: Jost and Newsreader (SIL Open Font License), served from this site rather than
   Google Fonts, so pages need no extra connections before text can be styled. The files are
   Google's own latin and latin-ext subsets; browsers download a subset only when the page uses
   one of its characters. */
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/jost-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url("../fonts/newsreader-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url("../fonts/newsreader-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/newsreader-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/newsreader-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* While the fonts above are still downloading, text briefly shows in Georgia or Arial, resized
   here to take up the same space as Newsreader and Jost, so nothing jumps when the real fonts
   arrive. Measured in Chrome; computers without Georgia or Arial use the next font in the list. */
@font-face {
  font-family: "Newsreader Fallback";
  font-style: normal;
  src: local("Georgia");
  size-adjust: 98.57%;
  ascent-override: 75.07%;
  descent-override: 26.38%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Newsreader Fallback";
  font-style: italic;
  src: local("Georgia Italic"), local("Georgia-Italic");
  size-adjust: 88.72%;
  ascent-override: 83.41%;
  descent-override: 29.31%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Jost Fallback";
  font-weight: 100 499;
  src: local("Arial"), local("ArialMT");
  size-adjust: 94.98%;
  ascent-override: 112.66%;
  descent-override: 40.01%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Jost Fallback";
  font-weight: 500 900;
  src: local("Arial Bold"), local("Arial-BoldMT");
  size-adjust: 95.07%;
  ascent-override: 112.55%;
  descent-override: 39.97%;
  line-gap-override: 0%;
}

:root {
  --navy-950: #07131f;
  --navy-900: #0b1b2b;
  --navy-800: #10263b;
  --navy-700: #1a3550;
  --ivory: #faf8f3;
  --sand: #f2eee5;
  --stone: #e3dcce;
  --white: #ffffff;
  --ink: #14212e;
  --muted: #56626e;
  --gold: #b8955a;
  --gold-deep: #84652a;
  --gold-light: #dcc28b;
  --error: #a3261f;
  --line: rgba(11, 27, 43, 0.14);
  --line-light: rgba(250, 248, 243, 0.2);

  --font-display: "Newsreader", "Newsreader Fallback", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Jost", "Jost Fallback", "Avenir Next", "Century Gothic", "Helvetica Neue", Arial, sans-serif;

  --container: 77.5rem;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --section: clamp(4.5rem, 10vw, 8.5rem);
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --focus: var(--navy-900);
}

@media (min-width: 900px) {
  :root { --header-h: 5.5rem; }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}

html.menu-open, html.menu-open body { overflow: hidden; }

img, picture, video, svg { display: block; max-width: 100%; }
/* Added by build.py around photos that also have an AVIF copy; the wrapper takes no space of its own. */
picture.pic { display: contents; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

h2 { font-size: clamp(2.1rem, 1.35rem + 3vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.7rem); line-height: 1.2; }

h1 em, h2 em { font-style: italic; font-weight: 300; }

p { margin: 0 0 1.15em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button, input, select, textarea { font: inherit; color: inherit; }

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

::selection { background: var(--navy-800); color: var(--ivory); }

.theme-dark { --focus: var(--gold-light); }

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

.skip-link {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 100;
  padding: 0.85rem 1.25rem;
  background: var(--navy-900);
  color: var(--ivory);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; outline-color: var(--gold-light); }

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--sand { background: var(--sand); }
.section--navy { background: var(--navy-900); color: var(--ivory); }

.section-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p:not(.eyebrow) { margin-top: 1.25rem; color: var(--muted); }
.section--navy .section-head p:not(.eyebrow) { color: rgba(250, 248, 243, 0.78); }

/* ---------- Type helpers ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1.4rem;
  color: var(--gold-deep);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  line-height: 1.4;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 2.25rem; height: 1px;
  background: currentColor;
  opacity: 0.75;
}
.theme-dark .eyebrow { color: var(--gold-light); }
h2.eyebrow { font-family: var(--font-sans); }

.lead {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.6rem);
  font-weight: 300;
  line-height: 1.4;
}

.prose { color: var(--muted); }
.prose .lead { color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 600; }
.theme-dark .prose strong { color: var(--ivory); }
.theme-dark .prose { color: rgba(250, 248, 243, 0.8); }
.theme-dark .prose .lead { color: var(--ivory); }

.text-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--gold);
  text-underline-offset: 0.3em;
  transition: text-decoration-color 0.3s var(--ease);
}
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.35rem;
  padding: 0.95rem 2rem;
  border: 1px solid var(--navy-900);
  border-radius: 0;
  background: var(--navy-900);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn:hover { background: var(--navy-700); border-color: var(--navy-700); }

.btn--light { background: var(--ivory); border-color: var(--ivory); color: var(--navy-900); }
.btn--light:hover { background: var(--gold-light); border-color: var(--gold-light); }

.btn--outline { background: transparent; border-color: currentColor; color: inherit; }
.btn--outline:hover { background: var(--navy-900); border-color: var(--navy-900); color: var(--ivory); }
.theme-dark .btn--outline:hover { background: var(--ivory); border-color: var(--ivory); color: var(--navy-900); }

.btn[disabled] { opacity: 0.65; cursor: progress; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.3;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}
.link-arrow::after {
  content: "";
  flex: none;
  width: 2.5rem; height: 2.5rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='black'%3E%3Ccircle cx='20' cy='20' r='19.4' stroke-width='1'/%3E%3Cpath d='M15 20h10M21.5 16.5 25 20l-3.5 3.5' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='black'%3E%3Ccircle cx='20' cy='20' r='19.4' stroke-width='1'/%3E%3Cpath d='M15 20h10M21.5 16.5 25 20l-3.5 3.5' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.4s var(--ease);
}
.link-arrow:hover::after { transform: translateX(0.35rem); }
.link-arrow--down::after { transform: rotate(90deg); }
.link-arrow--down:hover::after { transform: rotate(90deg) translateX(0.3rem); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2.25rem; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  color: var(--ivory);
  --focus: var(--gold-light);
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -70% 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(7, 19, 31, 0.6), rgba(7, 19, 31, 0));
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(11, 27, 43, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.site-header.is-scrolled::before { opacity: 0; }
.site-header.is-solid {
  background: rgba(250, 248, 243, 0.95);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  backdrop-filter: saturate(1.2) blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  --focus: var(--navy-900);
}
.site-header.is-solid::before { opacity: 0; }

.menu-open .site-header {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: var(--ivory);
  box-shadow: none;
  --focus: var(--gold-light);
}
.menu-open .site-header::before { opacity: 0; }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-right: auto;
  color: inherit;
  text-decoration: none;
}
/* ATH mark (src/partials/ath-mark.html) in the approved colours: the reversed pair on dark
   backgrounds by default, and the default walnut and slate once the header turns light. */
.brand { --mark-letters: #f4efe6; --mark-swoosh: #e9e1d3; }
.site-header.is-solid .brand { --mark-letters: #2a2420; --mark-swoosh: #3a4557; }
.menu-open .site-header .brand { --mark-letters: #f4efe6; --mark-swoosh: #e9e1d3; }
.brand__mark {
  display: block;
  flex: none;
  height: 2.2rem;
  width: auto;
  aspect-ratio: 246.5 / 87.5;
  overflow: visible;
}
.brand__letters { fill: var(--mark-letters); transition: fill 0.45s var(--ease); }
.brand__swoosh { fill: var(--mark-swoosh); transition: fill 0.45s var(--ease); }
.brand__name {
  padding-left: 0.8rem;
  border-left: 1px solid currentColor;
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  line-height: 1.6;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav { display: none; }

.site-header__cta {
  gap: 0.5em;
  min-height: 2.6rem;
  padding: 0.6rem 1rem;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0s 0.35s, background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.site-header.is-solid .site-header__cta { opacity: 1; visibility: visible; transition-delay: 0s; }
.menu-open .site-header .site-header__cta { opacity: 0; visibility: hidden; }
.site-header__cta-now { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 899px) {
  .site-header:not(.is-solid) .site-header__cta, .menu-open .site-header .site-header__cta { display: none; }
  .site-header.is-solid .site-header__cta { animation: fade-in 0.4s var(--ease) both; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Narrow phones: once the enquiry button appears, the wordmark shortens to the monogram. */
@media (max-width: 26.5rem) {
  .site-header.is-solid .brand__name { display: none; }
  .menu-open .site-header .brand__name { display: block; }
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.25rem;
  padding: 0 0.25rem;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.menu-toggle__label {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.menu-toggle__icon { position: relative; width: 1.6rem; height: 0.6rem; }
.menu-toggle__icon::before, .menu-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: currentColor;
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.menu-toggle__icon::before { top: 0; }
.menu-toggle__icon::after { top: 100%; }
.menu-open .menu-toggle__icon::before { top: 50%; transform: rotate(45deg); }
.menu-open .menu-toggle__icon::after { top: 50%; transform: rotate(-45deg); }

@media (max-width: 22.5rem) {
  .menu-toggle__label { display: none; }
}

@media (min-width: 900px) {
  .site-nav { display: block; }
  .site-nav ul { display: flex; gap: clamp(1.5rem, 3vw, 2.75rem); }
  .site-nav a {
    position: relative;
    display: block;
    padding: 0.9rem 0;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-decoration: none;
    text-transform: uppercase;
  }
  .site-nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0.2em; bottom: 0.45rem;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s var(--ease);
  }
  .site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .site-header__cta {
    min-height: 2.85rem;
    margin-left: clamp(0.5rem, 2vw, 1.75rem);
    padding: 0.7rem 1.4rem;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    opacity: 1;
    visibility: visible;
  }
  .site-header__cta-now { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .site-header:not(.is-solid) .site-header__cta:hover { background: var(--ivory); border-color: var(--ivory); color: var(--navy-900); }
  .menu-toggle { display: none; }
  .brand__mark { height: 2.5rem; }
  .brand__name { font-size: 0.6rem; }
}

/* ---------- Mobile menu ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2rem;
  background: var(--navy-900);
  color: var(--ivory);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0s 0.4s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transition-delay: 0s; }

.mobile-menu__nav { margin-block: auto; padding-block: 1.5rem; }
.mobile-menu__nav li { border-bottom: 1px solid var(--line-light); }
.mobile-menu__nav li:first-child { border-top: 1px solid var(--line-light); }
.mobile-menu__nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 8.5vw, 2.6rem);
  font-weight: 300;
  line-height: 1.1;
  text-decoration: none;
}
.mobile-menu__nav a span {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--gold-light);
}
.mobile-menu__nav a[aria-current="page"] { font-style: italic; }
.mobile-menu__foot { display: grid; gap: 1.75rem; }
.mobile-menu__foot .btn { width: 100%; }
.mobile-menu__social { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.mobile-menu__social a {
  padding: 0.5rem 0;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
  color: rgba(250, 248, 243, 0.78);
}

.mobile-menu__nav li, .mobile-menu__foot {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.menu-open .mobile-menu__nav li, .menu-open .mobile-menu__foot { opacity: 1; transform: none; }
.menu-open .mobile-menu__nav li:nth-child(1) { transition-delay: 0.1s; }
.menu-open .mobile-menu__nav li:nth-child(2) { transition-delay: 0.16s; }
.menu-open .mobile-menu__nav li:nth-child(3) { transition-delay: 0.22s; }
.menu-open .mobile-menu__foot { transition-delay: 0.3s; }

@media (min-width: 900px) {
  .mobile-menu { display: none; }
}

/* ---------- Home hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100vh;
  height: 100svh;
  min-height: 35rem;
  background: var(--navy-900);
  color: var(--ivory);
  overflow: hidden;
}

.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__slide { position: absolute; inset: 0; opacity: 0; }
.hero__slide.is-leaving { opacity: 1; z-index: 1; }
.hero__slide.is-active { opacity: 1; z-index: 2; transition: opacity var(--fade-ms, 1080ms) var(--ease); }
.hero__slide picture { width: 100%; height: 100%; }
.hero__slide img, .hero__video {
  width: 100%; height: 100%;
  object-fit: cover;
}
/* A slide can set --pos (and --pos-m for the phone crop) to keep its subject in frame. */
.hero__slide img { object-position: var(--pos, 50% 50%); }
@media (max-width: 767px) and (orientation: portrait) {
  .hero__slide img { object-position: var(--pos-m, 50% 50%); }
}
.hero__slide.is-active img, .hero__slide.is-leaving img { animation: hero-drift 11s linear forwards; }
@keyframes hero-drift {
  from { transform: scale(1.01); }
  to { transform: scale(1.1); }
}
.hero__video {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.hero.has-video .hero__video { opacity: 1; }

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(7, 19, 31, 0.92) 0%, rgba(7, 19, 31, 0.66) 34%, rgba(7, 19, 31, 0.16) 64%, rgba(7, 19, 31, 0.34) 100%);
}
.hero .eyebrow, .page-hero .eyebrow { color: var(--ivory); }

.hero__content { padding-bottom: clamp(1.75rem, 5vh, 3.25rem); }
.hero__title {
  margin-bottom: 1.1rem;
  font-size: clamp(2.5rem, 1.5rem + 4.6vw, 5.75rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 30px rgba(7, 19, 31, 0.35);
}
.hero__title br { display: none; }
.hero__sub {
  max-width: 33rem;
  margin-bottom: 1.75rem;
  color: rgba(250, 248, 243, 0.9);
  font-size: clamp(1rem, 0.9rem + 0.45vw, 1.2rem);
  line-height: 1.55;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.35rem 2.5rem; }

.hero__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 0.6rem 0.9rem;
  border-top: 1px solid rgba(250, 248, 243, 0.24);
}
.hero__dots { display: flex; gap: 0.45rem; }
.hero__dot {
  position: relative;
  width: 1.5rem; height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.hero__dot::before, .hero__dot::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 2px;
  margin-top: -1px;
  background: rgba(250, 248, 243, 0.35);
}
.hero__dot::after { background: var(--ivory); transform: scaleX(0); transform-origin: left; }
.hero__dot.is-active::after { animation: dot-fill var(--slide-ms, 7000ms) linear forwards; }
.hero.is-paused .hero__dot.is-active::after { animation: none; transform: none; }
@keyframes dot-fill { to { transform: scaleX(1); } }

.hero__caption {
  flex: none;
  margin: 0 0 0 auto;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(250, 248, 243, 0.85);
}
/* Small moving strip of program and partner logos between the dots and the caption,
   the same height as the bar, fading in and out at both ends. */
.hero__ticker {
  --mark-h: 1.2rem;
  flex: 1 1 auto;
  min-width: 0;
  height: 2.75rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.hero__ticker-row { display: flex; align-items: center; width: max-content; height: 100%; }
.hero__ticker-row li { flex: none; padding-inline: 0.85rem; }
.hero__ticker-row img.mark { max-width: none; max-height: 2.4rem; opacity: 0.88; }
.hero__ticker.is-running .hero__ticker-row { animation: marquee var(--marquee-time, 60s) linear infinite; }
.hero__ticker.is-offscreen .hero__ticker-row { animation-play-state: paused; }
.hero.has-video .hero__dots, .hero.has-video .hero__caption { visibility: hidden; }
html:not(.js) .hero__bar { display: none; }
/* Phones: slimmer dots and caption so the moving logos get room between them. */
@media (max-width: 639px) {
  .hero__bar { gap: 0.6rem; }
  .hero__dots { gap: 0.3rem; }
  .hero__dot { width: 0.85rem; }
  .hero__caption { font-size: 0.6rem; letter-spacing: 0.12em; }
  .hero__ticker {
    --mark-h: 1.05rem;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  }
  .hero__ticker-row li { padding-inline: 0.6rem; }
}
@media (max-width: 22.5rem) {
  .hero__caption { display: none; }
}

@media (min-width: 640px) {
  .hero__title br { display: inline; }
  .hero__dot { width: 2.25rem; }
  .hero__shade {
    background:
      linear-gradient(to right, rgba(7, 19, 31, 0.5) 0%, rgba(7, 19, 31, 0.18) 45%, rgba(7, 19, 31, 0) 70%),
      linear-gradient(to top, rgba(7, 19, 31, 0.84) 0%, rgba(7, 19, 31, 0.42) 38%, rgba(7, 19, 31, 0.1) 62%, rgba(7, 19, 31, 0.3) 100%);
  }
}
@media (min-width: 900px) {
  .hero__content { padding-bottom: clamp(2.5rem, 9vh, 6rem); }
  .hero__bar { padding-block: 1rem 1.4rem; gap: 1.5rem; }
  .hero__dot { width: 3rem; }
}
@media (max-height: 30rem) and (orientation: landscape) {
  .hero { min-height: 24rem; }
  .hero__sub { display: none; }
}

/* ---------- Page hero (points service) ---------- */

.page-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: min(48rem, 92vh);
  min-height: min(48rem, 92svh);
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
  background: var(--navy-900);
  color: var(--ivory);
  overflow: hidden;
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media picture { width: 100%; height: 100%; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(7, 19, 31, 0.85) 0%, rgba(7, 19, 31, 0.45) 45%, rgba(7, 19, 31, 0.25) 100%);
}
.page-hero h1 {
  max-width: 17ch;
  margin-bottom: 1.35rem;
  font-size: clamp(2.35rem, 1.45rem + 4vw, 4.9rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.page-hero__sub {
  max-width: 34rem;
  color: rgba(250, 248, 243, 0.9);
  font-size: clamp(1.02rem, 0.92rem + 0.45vw, 1.2rem);
  line-height: 1.55;
}

/* ---------- Editorial split ---------- */

.split { display: grid; gap: clamp(2.75rem, 7vw, 6rem); align-items: center; }
.split__body { max-width: 34rem; }
.split__media { width: 100%; max-width: 36rem; }
.split__body h2 { margin-bottom: 1.5rem; }

@media (min-width: 900px) {
  .split__media { max-width: none; }
  .split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .split--reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .split--reverse .split__media { order: 2; }
  .split--reverse .split__body { justify-self: end; }
}

.frame { margin: 0; overflow: hidden; background: var(--stone); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--portrait { aspect-ratio: 4 / 5; }
.frame--landscape { aspect-ratio: 4 / 3; }

.duo { position: relative; padding: 0 clamp(2rem, 9vw, 5.5rem) clamp(2.75rem, 8vw, 5.5rem) 0; }
.duo__inset {
  position: absolute;
  right: 0; bottom: 0;
  width: 54%;
  border: clamp(0.4rem, 1vw, 0.75rem) solid var(--ivory);
  border-right: 0;
  border-bottom: 0;
}

/* Mirrored pair: small photo at the bottom left, slideshow controls moved to the right. */
.duo--mirror { --duo-l: clamp(2rem, 9vw, 5.5rem); padding: 0 0 clamp(2.75rem, 8vw, 5.5rem) var(--duo-l); }
.duo--mirror .duo__inset {
  right: auto; left: 0;
  border-left: 0;
  border-right: clamp(0.4rem, 1vw, 0.75rem) solid var(--ivory);
}
.section--sand .duo__inset { border-color: var(--sand); }
/* The controls keep to the right of the small photo; with many photos the lines shrink to fit. */
.duo--mirror .slideshow__ui {
  left: calc(54% - 0.46 * var(--duo-l) + 0.6rem);
  right: 0;
  justify-content: flex-end;
  padding: 0 0.9rem 0.2rem 0;
}

/* ---------- Image slideshow (framed photos and the image band) ---------- */

.slideshow { position: relative; isolation: isolate; }
.slideshow__slide {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
}
.slideshow__slide.is-leaving { z-index: 1; opacity: 1; }
.slideshow__slide.is-active { z-index: 2; opacity: 1; transition: opacity var(--fade-ms, 1120ms) var(--ease); }

/* Soft shade behind the controls so they stay legible on any photo. */
.js .slideshow::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  height: 6rem;
  background: linear-gradient(to top, rgba(7, 19, 31, 0.55), rgba(7, 19, 31, 0));
  pointer-events: none;
}

.slideshow__ui {
  position: absolute;
  left: 0; bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0 0.25rem 0.2rem 0.9rem;
  color: var(--ivory);
  --focus: var(--gold-light);
}
.slideshow__ui { max-width: 100%; }
.slideshow__dots { display: flex; flex: 0 1 auto; gap: 0.35rem; min-width: 0; }
.slideshow__pause { flex: none; }
.slideshow__dot {
  position: relative;
  flex: 0 1 1.4rem;
  width: 1.4rem; min-width: 0.4rem; height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.slideshow__dot::before, .slideshow__dot::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 2px;
  margin-top: -1px;
  background: rgba(250, 248, 243, 0.45);
}
.slideshow__dot::after { background: var(--ivory); transform: scaleX(0); transform-origin: left; }
.slideshow__dot[aria-current="true"]::after { transform: none; }
.is-playing > .slideshow__ui .slideshow__dot[aria-current="true"]::after { animation: dot-fill var(--slide-ms, 5500ms) linear both; }

.slideshow__pause {
  position: relative;
  width: 2.75rem; height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.3s var(--ease);
}
.slideshow__pause:hover { opacity: 1; }
.slideshow__pause::before, .slideshow__pause::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 2px; height: 0.65rem;
  margin-top: -0.325rem;
  background: currentColor;
}
.slideshow__pause::before { margin-left: -0.25rem; }
.slideshow__pause::after { margin-left: 0.15rem; }
.slideshow__pause[aria-pressed="true"]::before {
  width: 0; height: 0;
  margin: -0.35rem 0 0 -0.2rem;
  border-block: 0.35rem solid transparent;
  border-left: 0.55rem solid currentColor;
  background: none;
}
.slideshow__pause[aria-pressed="true"]::after { display: none; }
.slideshow__pause[hidden] { display: none; }

/* ---------- Brand marks (programs, affiliations, partners) ----------
   Each mark is a name set in type until an approved logo file is added to
   assets/img/logos/ (see README). Logos are shown in a single tone. */

.mark { font-family: var(--font-display); font-weight: 400; line-height: 1.2; }
/* Each place sets --mark-h (the base logo height); build.py adds --mark-scale per logo. */
img.mark {
  display: block;
  width: auto;
  height: calc(var(--mark-h, 2rem) * var(--mark-scale, 1));
  max-width: 100%;
  object-fit: contain;
  filter: brightness(0);
  opacity: 0.84;
}
.theme-dark img.mark { filter: brightness(0) invert(1); opacity: 0.94; }

.marks {
  --mark-h: 1.9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 1.15rem 1.9rem;
  margin-top: 2rem;
  padding-block: 1.35rem;
  border-block: 1px solid var(--line);
}
.marks .mark { font-size: 1.3rem; letter-spacing: 0.005em; color: var(--ink); }
@media (min-width: 560px) {
  .marks { justify-content: space-between; column-gap: 1.25rem; }
}

/* The same programs in a single line at the top of the Points service page. */
.marks--hero {
  --mark-h: clamp(1.15rem, 0.85rem + 1.1vw, 1.75rem);
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: clamp(0.75rem, 2.5vw, 2rem);
  max-width: 42rem;
  margin: 0 0 1.35rem;
  padding-block: clamp(0.9rem, 2vw, 1.2rem);
  border-color: var(--line-light);
}
.marks--hero li { flex: 0 1 auto; min-width: 0; }
.marks--hero .mark { color: var(--ivory); }

/* ---------- Credentials ---------- */

.credentials__row { display: grid; gap: clamp(2.25rem, 6vw, 3.5rem); }
.credentials__statement {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 1.3rem + 2.4vw, 2.85rem);
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.cred-list { display: grid; margin: 0; border-top: 1px solid var(--line-light); }
.cred {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line-light);
}
.cred dt {
  margin-bottom: 0.7rem;
  color: var(--gold-light);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1.5;
  text-transform: uppercase;
}
.cred:last-child { padding-bottom: 0; border-bottom: 0; }
.cred dd { display: flex; align-items: center; margin: 0; }
.cred__link { display: block; transition: opacity 0.3s var(--ease); }
.cred__link:hover { opacity: 0.75; }
/* Logos of different shapes sit centred in rows of equal height, so the labels line up. */
.cred dd:has(img.mark) { min-height: calc(var(--mark-h) * 1.55); }
.cred { --mark-h: clamp(3rem, 2.3rem + 2vw, 4rem); }
.cred .mark { font-size: clamp(1.6rem, 1.25rem + 1vw, 1.9rem); font-weight: 300; line-height: 1.15; color: var(--ivory); }

@media (min-width: 560px) {
  .cred-list { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 0; }
  .cred { padding: 0.35rem clamp(1.25rem, 3vw, 2.5rem); border-bottom: 0; border-left: 1px solid var(--line-light); }
  .cred:first-child { padding-left: 0; border-left: 0; }
  .cred:last-child { padding-right: 0; padding-bottom: 0.35rem; }
}
@media (min-width: 1200px) {
  .credentials__row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4rem; }
  .cred-list { grid-template-columns: auto auto; }
  .cred:first-child { padding-left: clamp(1.25rem, 3vw, 2.5rem); border-left: 1px solid var(--line-light); }
  .cred dt, .cred .mark { white-space: nowrap; }
}

/* Partners: the label sits in the middle of the dividing line, with the logos free below it. */
.partners { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.partners__label {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.75rem);
  margin-bottom: clamp(2rem, 4.5vw, 3rem);
  color: rgba(250, 248, 243, 0.78);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  line-height: 1.4;
  text-transform: uppercase;
}
.partners__label::before, .partners__label::after { content: ""; flex: 1; height: 1px; background: var(--line-light); }
/* Still layout (no script, or reduced motion): every logo in one centred grid,
   three across on phones and five across on wide screens. */
.partners__marquee {
  --mark-h: clamp(1.6rem, 1.1rem + 2.2vw, 2.9rem);
  --cols: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  row-gap: clamp(1.75rem, 4.5vw, 3rem);
}
.partners__list { display: contents; }
.partners__list li {
  display: grid;
  place-items: center;
  flex: 0 0 calc(100% / var(--cols));
  min-height: calc(var(--mark-h) * 1.55);
  padding-inline: 0.5rem;
  text-align: center;
  color: rgba(250, 248, 243, 0.92);
}
.partners__list .mark { font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem); font-weight: 300; }

@media (min-width: 1000px) {
  .partners__marquee { --cols: 5; }
}

/* Moving layout: two rows drifting left together, each logo the same width as in the grid,
   fading out softly at both edges. */
.partners__marquee.is-running {
  display: grid;
  justify-content: start;
  container-type: inline-size;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.is-running .partners__list {
  display: flex;
  width: max-content;
  animation: marquee var(--marquee-time, 72s) linear infinite;
}
.is-running .partners__list li { flex: 0 0 9rem; flex-basis: calc(100cqi / var(--cols)); }
.partners__marquee.is-offscreen .partners__list { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Testimonials: a background photo for each quote ---------- */

.testimonials {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3.25rem, 7vw, 5.5rem);
  background: var(--navy-900);
  color: var(--ivory);
  overflow: hidden;
}
.testimonials .section-head { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.testimonials__media { position: absolute; inset: 0; z-index: -2; }
/* The incoming photo fades in on top; the outgoing one stays put until it is covered. */
.testimonials__bg { position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity 0s linear 1.3s; }
.testimonials__bg.is-active { z-index: 2; opacity: 1; transition: opacity 1.3s var(--ease); }
.testimonials__bg img { width: 100%; height: 100%; object-fit: cover; }
.testimonials::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(7, 19, 31, 0.7), rgba(7, 19, 31, 0.56) 40%, rgba(7, 19, 31, 0.56) 60%, rgba(7, 19, 31, 0.72));
}
.testimonials .eyebrow { color: var(--ivory); }
/* A soft dark panel behind each quote, sized to its text, so it reads clearly on any photo. */
.testimonials .quote {
  background: rgba(7, 19, 31, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(250, 248, 243, 0.12);
}
.testimonials .quote figcaption { color: rgba(250, 248, 243, 0.9); }
.testimonials .carousel__btn { border-color: rgba(250, 248, 243, 0.5); color: var(--ivory); }
.testimonials .carousel__btn:hover:not([disabled]) { background: var(--ivory); border-color: var(--ivory); color: var(--navy-900); }
.testimonials .carousel__dot::before { background: var(--ivory); opacity: 0.4; }
.testimonials .carousel__dot[aria-current="true"]::before { opacity: 1; }

/* ---------- Testimonials carousel ---------- */

.carousel { max-width: 54rem; margin-inline: auto; }
.carousel__track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline-offset: 6px; }

/* With the script running, the quotes share one space and fade into each other, so the
   section is always the same height and the buttons never move. Each quote's panel is
   centred in that space; the script makes the text of any extra-long quote a little
   smaller (--fit) so it doesn't make the space taller than the others need. */
.carousel.is-ready .carousel__track { display: grid; overflow: visible; scroll-snap-type: none; touch-action: pan-y; }
.carousel.is-ready .quote {
  grid-area: 1 / 1;
  align-self: center;
  justify-self: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0s linear 0.5s;
}
.carousel.is-ready .quote.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s var(--ease) 0.15s, visibility 0s;
}

.quote {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 100%;
  max-width: 50rem;
  margin: 0;
  padding: clamp(1.25rem, 3.5vw, 2.25rem) clamp(1.1rem, 4vw, 3rem);
  scroll-snap-align: center;
  text-align: center;
}
.quote blockquote { margin: 0 0 1.1rem; }
.quote blockquote p {
  font-family: var(--font-display);
  font-size: calc(clamp(1.02rem, 0.9rem + 0.6vw, 1.38rem) * var(--fit, 1));
  font-weight: 400;
  line-height: 1.5;
  text-wrap: pretty;
}
.quote figcaption {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.quote__avatar {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(250, 248, 243, 0.55);
  border-radius: 50%;
  object-fit: cover;
}

.placeholder-tag {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  border: 1px solid rgba(11, 27, 43, 0.3);
  background: var(--ivory);
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.2;
  text-transform: uppercase;
}
.quote .placeholder-tag { position: absolute; top: 1rem; left: 1rem; }

.carousel__controls { display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin-top: clamp(1rem, 2.5vw, 1.75rem); }
.carousel__btn {
  position: relative;
  width: 3rem; height: 3rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease), opacity 0.3s;
}
.carousel__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='black'%3E%3Cpath d='M14 20h12M22 15.5 26.5 20 22 24.5' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='black'%3E%3Cpath d='M14 20h12M22 15.5 26.5 20 22 24.5' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.carousel__btn--prev::before { transform: scaleX(-1); }
.carousel__btn:hover:not([disabled]) { background: var(--navy-900); border-color: var(--navy-900); color: var(--ivory); }
.carousel__btn[disabled] { opacity: 0.35; cursor: default; }
.carousel__dots { display: flex; gap: 0.15rem; }
.carousel__dot {
  position: relative;
  width: 1.75rem; height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.carousel__dot::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 0.4rem; height: 0.4rem;
  margin: -0.2rem 0 0 -0.2rem;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.25;
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.carousel__dot[aria-current="true"]::before { opacity: 1; transform: scale(1.35); }
html:not(.js) .carousel__controls { display: none; }
@media (max-width: 479px) {
  .carousel__controls { gap: 0.6rem; }
  .carousel__dots { gap: 0; }
  .carousel__dot { width: 1.2rem; }
}

/* ---------- Steps (how it works) ---------- */

.steps { display: grid; gap: 0; counter-reset: step; border-top: 1px solid var(--line); }
.steps li { padding: clamp(1.75rem, 5vw, 2.5rem) 0; border-bottom: 1px solid var(--line); counter-increment: step; }
.steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 1.1rem;
  color: var(--gold-deep);
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 2rem + 2.4vw, 3.6rem);
  font-weight: 300;
  line-height: 1;
}
.steps h3 { margin-bottom: 0.85rem; }
.steps p { max-width: 30rem; color: var(--muted); }

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 0; }
  .steps li { padding: 2.25rem clamp(1.5rem, 3vw, 2.75rem) 0.5rem; border-bottom: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
  .steps li:first-child { padding-left: 0; border-left: 0; }
}

/* ---------- Stats and proof ---------- */

.stats { display: grid; gap: 0; border-top: 1px solid var(--line); }
.stat { padding: clamp(1.6rem, 4vw, 2.25rem) 0; border-bottom: 1px solid var(--line); }
.stat__value {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 2rem + 4.4vw, 4.6rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stat__label { max-width: 19rem; margin: 0; color: var(--muted); line-height: 1.5; }
.theme-dark .stats, .theme-dark .stat { border-color: var(--line-light); }
.theme-dark .stat__value { color: var(--gold-light); }
.theme-dark .stat__label { color: rgba(250, 248, 243, 0.8); }

@media (min-width: 760px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat { padding: 2.25rem clamp(1.25rem, 3vw, 2.5rem) 2.25rem; border-bottom: 0; border-left: 1px solid var(--line); }
  .stat:first-child { padding-left: 0; border-left: 0; }
  .stat:last-child { padding-right: 0; }
  .stat__value { font-size: clamp(1.9rem, 4.1vw, 3.6rem); }
  .theme-dark .stat { border-color: var(--line-light); }
}

/* Keep the labels on one line across the row, however the figures above them wrap. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 760px) {
    .stats { grid-template-rows: auto auto; }
    .stat { display: grid; grid-template-rows: subgrid; grid-row: span 2; }
    .stat__value { align-self: end; }
  }
}

.stat--marks .stat__label { max-width: none; }
/* Three columns of logos. */
.mini-marks {
  --mark-h: 1.7rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  align-items: center;
  justify-content: start;
  gap: 1.15rem 1.6rem;
}
.mini-marks .mark { font-size: 1.05rem; color: var(--ink); }
.theme-dark .mini-marks .mark { color: rgba(250, 248, 243, 0.88); }
.stat--marks .stat__value { margin-bottom: 1rem; }
/* "Join the community" under the members figure, and "+ many more" under the partner logos. */
.stat__link { display: block; width: fit-content; margin-top: 0.75rem; color: var(--ink); }
.stat__link::after { content: "\2197"; margin-left: 0.4rem; font-size: 0.8em; opacity: 0.6; }
.theme-dark .stat__link { color: var(--ivory); }
.stat__more { margin: 1.5rem 0 0; font-size: 1.05rem; font-weight: 600; letter-spacing: 0.02em; }

.proof__lead {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem clamp(1.1rem, 3vw, 2rem);
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.proof__person { display: grid; gap: 0.5rem; margin: 0; color: inherit; text-decoration: none; }
.proof__person .lead { text-decoration: underline transparent; text-decoration-thickness: 1px; text-underline-offset: 0.22em; transition: text-decoration-color 0.3s var(--ease); }
.proof__person:hover .lead, .proof__person:focus-visible .lead { text-decoration-color: currentColor; }
.proof__photo-link { display: block; border-radius: 50%; transition: opacity 0.3s var(--ease); }
.proof__photo-link:hover { opacity: 0.85; }
.proof__person .lead { line-height: 1.2; }
.proof__role {
  color: var(--gold-light);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1.5;
  text-transform: uppercase;
}
.section--slim { padding-block: clamp(2.25rem, 5vw, 3.5rem); }
.section--slim .proof__lead { margin-top: 0; }
.proof__actions { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }

@media (min-width: 640px) {
  .proof__actions { grid-column: 2; }
}
@media (min-width: 1000px) {
  .proof__lead { grid-template-columns: auto minmax(0, 1fr) auto; }
  .proof__actions { grid-column: 3; align-items: flex-end; text-align: right; }
}

/* Round portrait. Shows initials until a headshot is supplied. */
.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: clamp(4.75rem, 3.6rem + 5vw, 6.75rem);
  aspect-ratio: 1;
  margin: 0;
  border-radius: 50%;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.avatar--placeholder {
  border: 1px dashed rgba(11, 27, 43, 0.4);
  background: var(--stone);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1rem + 1.4vw, 1.9rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1;
}
.theme-dark .avatar--placeholder { border-color: rgba(250, 248, 243, 0.5); background: var(--navy-800); color: rgba(250, 248, 243, 0.8); }

/* ---------- FAQ ---------- */

.faq-head { max-width: 40rem; margin: 0 auto clamp(2rem, 5vw, 3.25rem); text-align: center; }
.faq-head h2 { font-size: clamp(1.9rem, 1.35rem + 2.3vw, 2.9rem); }
.faq { max-width: 47rem; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details[hidden] { display: none; }
.faq details[open] .faq__answer { animation: faq-in 0.45s var(--ease) both; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-0.35rem); } }
.faq__more { display: flex; justify-content: center; margin-top: 1.75rem; }
.faq__more[hidden] { display: none; }
.faq__more .link-arrow::after { transform: rotate(90deg); }
.faq__more .link-arrow:hover::after { transform: rotate(90deg) translateX(0.3rem); }
.faq__more .link-arrow[aria-expanded="true"]::after { transform: rotate(-90deg); }
.faq__more .link-arrow[aria-expanded="true"]:hover::after { transform: rotate(-90deg) translateX(0.3rem); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.15rem + 0.7vw, 1.6rem);
  font-weight: 300;
  line-height: 1.25;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 0.8rem 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1px 0.8rem no-repeat;
  transition: transform 0.4s var(--ease), background-size 0.4s var(--ease), border-color 0.3s;
}
.faq summary:hover::after { border-color: var(--ink); }
.faq details[open] summary::after { transform: rotate(180deg); background-size: 0.8rem 1px, 1px 0; }
.faq__answer { max-width: 40rem; padding: 0 3.5rem 1.75rem 0; color: var(--muted); }

/* ---------- Image band ---------- */

.band {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(22rem, 52vw, 36rem);
  padding: var(--section) var(--gutter);
  color: var(--ivory);
  text-align: center;
  overflow: hidden;
}
.band__media { position: absolute; inset: 0; z-index: -2; }
.band__media img { width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(7, 19, 31, 0.5); }
.band .slideshow::after { display: none; }
.band > .slideshow__ui { left: 50%; bottom: 0.5rem; z-index: 1; padding: 0; transform: translateX(-50%); }
.band__text {
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.3rem + 2.8vw, 3.4rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

/* ---------- Profile (Harrison Duplex) ---------- */

.profile-hero {
  padding-top: calc(var(--header-h) + clamp(2rem, 6vw, 4.5rem));
  padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
  background: var(--navy-900);
  color: var(--ivory);
}
.profile-hero__grid { display: grid; gap: clamp(2rem, 5vw, 5rem); grid-template-areas: "head" "photo" "body"; }
.profile-hero__head { grid-area: head; }
.profile-hero__photo { grid-area: photo; }
.profile-hero__body { grid-area: body; }
.profile-hero h1 {
  font-size: clamp(3.1rem, 2rem + 5.4vw, 6.25rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.profile-hero__role {
  margin-top: 1.25rem;
  color: rgba(250, 248, 243, 0.82);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1.6;
  text-transform: uppercase;
}
.profile-hero__body .lead { max-width: 32rem; }

@media (min-width: 900px) {
  .profile-hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    grid-template-areas: "head photo" "body photo";
    grid-template-rows: auto 1fr;
    align-items: end;
    row-gap: 2.25rem;
  }
  .profile-hero__body { align-self: start; }
  .profile-hero__photo { align-self: center; }
}

.photo-placeholder {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  margin: 0;
  padding: 1.5rem;
  border: 1px dashed rgba(11, 27, 43, 0.35);
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(11, 27, 43, 0.04) 14px 15px),
    var(--stone);
  color: var(--muted);
  text-align: center;
}
.photo-placeholder--portrait { aspect-ratio: 4 / 5; }
.photo-placeholder--landscape { aspect-ratio: 4 / 3; }
.photo-placeholder__mono {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 6rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.04em;
  opacity: 0.4;
}
.photo-placeholder figcaption { max-width: 16rem; font-size: 0.82rem; line-height: 1.45; }
.theme-dark .photo-placeholder {
  border-color: rgba(250, 248, 243, 0.4);
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(250, 248, 243, 0.04) 14px 15px),
    var(--navy-800);
  color: rgba(250, 248, 243, 0.8);
}
.theme-dark .placeholder-tag { border-color: rgba(250, 248, 243, 0.4); background: var(--navy-900); color: rgba(250, 248, 243, 0.85); }
.profile-hero__photo .photo-placeholder, .profile-hero__photo .frame { max-width: 26rem; margin-inline: auto; }
.avatar:not(.avatar--placeholder) { background: var(--stone); }
.avatar:not(.avatar--placeholder) img { object-position: 50% 50%; }

.profile-story { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
.profile-story__body { max-width: 36rem; }
.profile-story__body h2 { margin-bottom: 1.5rem; }
.profile-story__aside { display: grid; gap: 1.5rem; align-content: start; }

@media (min-width: 900px) {
  .profile-story { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; }
}


/* ---------- Enquiry ---------- */

.enquiry { background: var(--sand); }
.enquiry__grid { display: grid; gap: clamp(2.25rem, 6vw, 5rem); }
.enquiry__intro h2 { margin-bottom: 1.4rem; }
.enquiry__intro .prose { max-width: 30rem; }

.enquiry__panel {
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px solid var(--line);
  background: var(--ivory);
}

@media (min-width: 960px) {
  .enquiry__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; }
  .enquiry__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* ---------- Form ---------- */

.form__grid { display: grid; gap: 1.5rem 1.25rem; }
@media (min-width: 620px) {
  .form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--full { grid-column: 1 / -1; }
}

.field { display: grid; gap: 0.5rem; align-content: start; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label:not(.check), .field > legend {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.6rem;
  padding: 0;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}
.field > legend { margin-bottom: 0.5rem; }
.label-note { color: var(--muted); font-size: 0.7rem; font-weight: 400; letter-spacing: 0.06em; text-transform: none; }
.field__hint { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.45; }

.input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(11, 27, 43, 0.28);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.input::placeholder { color: #8b949c; opacity: 1; }
.input:hover { border-color: rgba(11, 27, 43, 0.5); }
.input:focus { outline: none; border-color: var(--navy-900); box-shadow: 0 0 0 1px var(--navy-900), 0 0 0 4px rgba(184, 149, 90, 0.35); }
.input[disabled] { background: var(--sand); color: var(--muted); cursor: not-allowed; }
.field.has-error .input { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field__error { margin: 0; color: var(--error); font-size: 0.9rem; line-height: 1.4; }
.field__error[hidden] { display: none; }

.stepper { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr) 3.25rem; }
.stepper .input { border-inline: 0; text-align: center; }
.stepper__btn {
  min-height: 3.25rem;
  padding: 0;
  border: 1px solid rgba(11, 27, 43, 0.28);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.stepper__btn:hover { background: var(--navy-900); border-color: var(--navy-900); color: var(--ivory); }

.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.chip { position: relative; display: flex; cursor: pointer; }
.chip span { width: 100%; }
@media (min-width: 620px) {
  .chips { display: flex; flex-wrap: wrap; }
  .chip span { width: auto; }
}
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.9rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid rgba(11, 27, 43, 0.28);
  background: var(--white);
  font-size: 0.98rem;
  line-height: 1.2;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.chip span::before {
  content: "";
  width: 0.8rem; height: 0.8rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.55;
  transition: background-color 0.25s, opacity 0.25s;
}
.chip:hover span { border-color: var(--navy-900); }
.chip input:checked + span { background: var(--navy-900); border-color: var(--navy-900); color: var(--ivory); }
.chip input:checked + span::before { background: var(--gold-light); border-color: var(--gold-light); opacity: 1; }
.chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }

.balances { display: grid; gap: 1rem; margin-top: 1.1rem; }
.balances:empty, .balances.is-empty { display: none; }
.balance { display: grid; gap: 0.45rem; }
.balance[hidden] { display: none; }
.balance label { color: var(--muted); font-size: 0.92rem; }
@media (min-width: 620px) {
  .balances { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phone: country code (+61 by default) beside the number. */
.phone { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); }
.phone .phone__code { margin-right: -1px; padding-inline: 0.5rem; text-align: center; }
.phone .input:focus { position: relative; z-index: 1; }

.input-prefix { position: relative; }
.input-prefix > span {
  position: absolute;
  left: 1rem; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.input-prefix .input { padding-left: 2.9rem; }

.check { display: inline-flex; align-items: center; gap: 0.7rem; min-height: 2.75rem; color: var(--ink); font-size: 0.98rem; cursor: pointer; }
.check input {
  flex: none;
  width: 1.3rem; height: 1.3rem;
  margin: 0;
  border: 1px solid rgba(11, 27, 43, 0.4);
  border-radius: 0;
  background: var(--white);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.check input:checked {
  border-color: var(--navy-900);
  background: var(--navy-900) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23faf8f3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 10.5 3.2 3.2L15 6.8'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__foot { display: grid; gap: 1rem; margin-top: 2rem; }
.form__foot .btn { width: 100%; }
.form__note { color: var(--muted); font-size: 0.88rem; line-height: 1.5; }
.form__alert {
  margin-bottom: 1.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--error);
  border-left-width: 3px;
  background: #fbf1ef;
  color: #7c1c16;
  font-size: 0.98rem;
  line-height: 1.5;
}
.form__alert[hidden] { display: none; }
@media (min-width: 620px) {
  .form__foot { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1.5rem; }
  .form__foot .btn { width: auto; min-width: 14rem; }
}

.form-success { padding-block: clamp(1rem, 4vw, 2.5rem); text-align: center; }
.form-success[hidden] { display: none; }
.form-success:focus { outline: none; }
.form-success__icon {
  display: grid;
  place-items: center;
  width: 4rem; height: 4rem;
  margin: 0 auto 1.5rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%2384652a' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m13 20.5 5 5 9.5-10.5'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.form-success h3 { margin-bottom: 1rem; font-size: clamp(1.8rem, 1.5rem + 1.4vw, 2.4rem); }
.form-success p { max-width: 28rem; margin-inline: auto; color: var(--muted); }
.form-success__preview {
  margin-top: 1.5rem !important;
  padding: 0.85rem 1rem;
  border: 1px dashed rgba(11, 27, 43, 0.35);
  font-size: 0.9rem;
  line-height: 1.5;
}
.form-success__preview[hidden] { display: none; }
.form-success .link-arrow { margin-top: 1.75rem; }

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

.site-footer { background: var(--navy-950); color: var(--ivory); --focus: var(--gold-light); }
.site-footer__grid { display: grid; gap: 2.75rem; padding-block: clamp(3.5rem, 8vw, 5.5rem) clamp(2.5rem, 6vw, 4rem); }
.site-footer .brand__mark { height: 2.85rem; }
.site-footer .brand__name { font-size: 0.62rem; }
.site-footer__brand p { max-width: 21rem; margin: 1.5rem 0 1.75rem; color: rgba(250, 248, 243, 0.75); }
.site-footer h2 {
  margin-bottom: 1.1rem;
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  line-height: 1.4;
  text-transform: uppercase;
}
.site-footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  color: rgba(250, 248, 243, 0.86);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.site-footer__links a:hover { color: var(--gold-light); }
.site-footer__links a[target="_blank"]::after { content: "\2197"; font-size: 0.8em; opacity: 0.6; }
.site-footer__base {
  display: grid;
  gap: 0.6rem;
  padding-block: 1.75rem 2.25rem;
  border-top: 1px solid var(--line-light);
  color: rgba(250, 248, 243, 0.68);
  font-size: 0.85rem;
  line-height: 1.5;
}
.site-footer__base p { margin: 0; }

@media (min-width: 760px) {
  .site-footer__grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; }
  .site-footer__base { grid-template-columns: minmax(0, 1fr) auto; }
}

/* ---------- Community pop-up ---------- */

.popup {
  container-type: inline-size;
  width: min(32rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  margin: auto;
  padding: clamp(1.75rem, 5vw, 2.5rem);
  overflow: auto;
  border: 1px solid var(--line-light);
  background: var(--navy-900);
  color: var(--ivory);
  box-shadow: 0 30px 80px rgba(7, 19, 31, 0.45);
}
.popup::backdrop { background: rgba(7, 19, 31, 0.6); }
.popup[open] { animation: popup-in 0.45s var(--ease); }
.popup[open]::backdrop { animation: popup-fade 0.45s var(--ease); }
@keyframes popup-in { from { opacity: 0; transform: translateY(0.75rem); } }
@keyframes popup-fade { from { opacity: 0; } }
html.popup-open, html.popup-open body { overflow: hidden; }
/* The hidden reset line: rapid clicks shouldn't select the text or zoom on phones. */
[data-popup-reset] { width: fit-content; -webkit-user-select: none; user-select: none; touch-action: manipulation; }

/* The community mockup (transparent background), under the headline. It scales with the
   panel's width, so it shrinks on phones (about 240px on desktop, 150px on an iPhone),
   and with the screen's height on short landscape screens. */
.popup__media { display: block; width: min(15rem, 55cqi, 32vh); height: auto; margin: 1.4rem auto 1.3rem; }
.popup__media + .popup__sub { margin-top: 0; }
.popup .eyebrow { margin-bottom: 1rem; }
/* The headline always stays on one line: its size follows the panel's width
   (the text is about 10.2 times as wide as its font size, so 9cqi leaves a margin). */
.popup h2 { white-space: nowrap; font-size: 1.6rem; font-size: min(2.4rem, 9cqi); }
.popup__sub { margin: 0.9rem 0 0; color: rgba(250, 248, 243, 0.82); line-height: 1.5; }
.popup__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 1.75rem; }
.popup__dismiss {
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(250, 248, 243, 0.72);
  font: inherit;
  font-size: 0.92rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  cursor: pointer;
}
.popup__dismiss:hover { color: var(--ivory); }
.popup__close {
  position: absolute;
  top: 0.6rem; right: 0.6rem;
  width: 2.75rem; height: 2.75rem;
  border: 0;
  background: none;
  color: var(--ivory);
  opacity: 0.75;
  cursor: pointer;
}
.popup__close::before, .popup__close::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 1.1rem; height: 1px;
  background: currentColor;
}
.popup__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.popup__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.popup__close:hover { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .popup[open], .popup[open]::backdrop { animation: none; }
}

/* ---------- 404 ---------- */

.notfound {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.5rem;
  min-height: 100vh;
  min-height: 100svh;
  padding: 6rem var(--gutter) 4rem;
  background: var(--navy-900);
  color: var(--ivory);
  text-align: center;
}
.notfound h1 { font-size: clamp(2.4rem, 1.6rem + 4vw, 4.5rem); }
.notfound p { max-width: 28rem; color: rgba(250, 248, 243, 0.8); }

/* ---------- Motion ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.95s var(--ease), transform 0.95s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .hero__slide.is-active img, .hero__slide.is-leaving img { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .mobile-menu, .hero__bar, .carousel__controls, .slideshow__ui, .faq__more { display: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
