/* ==========================================================================
   Captience — styles
   1. Fonts  2. Tokens  3. Base  4. Layout  5. Backdrop  6. Header & nav
   7. Buttons  8. Hero  9. Sections (9a What we do, 9b Industry potential, 9c Contact)
   10. Footer  11. Reveal motion
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */
/* Fallback for Windows/Android, which don't have Avenir Next. Not preloaded on
   purpose: browsers only fetch it when the stack falls through to it. */
@font-face {
  font-family: "Nunito Sans";
  src: local("Nunito Sans"),
       url("../assets/fonts/nunito-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

/* 2. Tokens (colours sampled from reference/*.png) ------------------------ */
:root {
  /* Page background */
  --color-bg-start:      #152660;
  --color-bg-mid:        #1F398B;
  --color-bg-end:        #2A48A7;
  --gradient-page: linear-gradient(105deg, var(--color-bg-start) 0%, var(--color-bg-mid) 52%, var(--color-bg-end) 100%);

  /* Chrome */
  --color-header-bg:     #172964;
  --color-header-border: #455999;
  --color-footer-bg:     #15255E;
  --color-footer-border: #3F5498;
  --color-nav-indicator: #96ADFE;

  /* Surfaces */
  /* Cards are translucent over the backdrop: colour and opacity solved from
     samples inside and outside the same card at both ends of the page. */
  --color-surface:        rgb(26 52 126 / 0.9);  /* industry + contact cards (sampled #1A337C–#1B357F) */
  --color-surface-raised: rgb(31 61 139 / 0.74); /* "What we do" rows (sampled #1D3882 left, #243F91 right) */
  --color-border:         #425CA5;
  --color-divider:        #475C98;
  --color-divider-subtle: #3C5190;

  /* Form controls */
  --color-input-bg:       #0E225E;
  --color-input-border:   #5066AE;
  --color-captcha-bg:     #102561;

  /* Accent */
  --color-accent:              #3963FF;
  --color-accent-border:       #5E80FF;
  --color-button-ghost-border: #697AB3;
  --color-day-available:       #233E8F;

  /* Text */
  --color-text:            #FFFFFF;
  --color-text-body:       #E0E8FF;
  --color-text-nav:        #CDD9FE;
  --color-text-nav-active: #EDF0FF;
  --color-text-muted:      #BBCAFA;
  --color-text-mono:       #CAD6FF;
  --color-number-rule:     #5B73B9; /* short rule under the service numbers */
  --color-text-weekday:    #AEBEF0;
  --color-icon:            #A7BCFF;
  /* Form feedback (not in the screenshots; chosen for ≥4.5:1 contrast on cards and inputs) */
  --color-error:           #FFB4C2;
  --color-required:        var(--color-error); /* required-field asterisk (≥7:1 on cards) */
  --color-success:         #9CF0C6;
  --color-decoration:      #6C84D3;

  /* Type */
  --font-sans: "Avenir Next", "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: Menlo, ui-monospace, "SF Mono", Consolas, "Cascadia Mono", "Roboto Mono", "DejaVu Sans Mono", "Liberation Mono", monospace;
  /* The reference uses Avenir Next Bold throughout; headings get tight tracking. */
  --weight-text: 700;
  --weight-heading: 700;
  --tracking-tight: -0.06em;

  /* Layout */
  --container-max: 1284px;
  --gutter: clamp(20px, 5.4vw, 78px);
  --header-h: 75px;
  --radius-sm: 4px;
  --radius-md: 10px;

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Set by the inline script in index.html when Avenir Next isn't installed:
   Nunito Sans at 800 matches the visual weight of Avenir Next Bold. */
:root.no-avenir {
  --weight-text: 800;
  --weight-heading: 800;
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-bg-start);
  color: var(--color-text-body);
  font-family: var(--font-sans);
  font-weight: var(--weight-text);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p { margin: 0; }
img, svg { display: block; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--color-nav-indicator);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Read by screen readers, not shown */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--color-accent);
  color: var(--color-text);
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* The skip link moves focus to <main> (tabindex="-1"); no ring around the whole page. */
main:focus { outline: none; }

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

/* 5. Backdrop ------------------------------------------------------------- */
/* Fixed layer (not background-attachment: fixed, which breaks on iOS). */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--gradient-page);
}

.backdrop__deco {
  position: absolute;
  color: var(--color-decoration);
}
.backdrop__deco--tr { top: 0; right: 0; }
.backdrop__deco--bl { bottom: 0; left: 0; }

.deco-grid { opacity: 0.45; }
.deco-panel { fill: var(--color-decoration); opacity: 0.1; }
.deco-line { fill: none; stroke: var(--color-decoration); stroke-width: 1; opacity: 0.75; }
.deco-dots { fill: var(--color-icon); opacity: 0.85; }
.deco-plus { fill: none; stroke: var(--color-text-body); stroke-width: 1; opacity: 0.45; }

@media (max-width: 760px) {
  .backdrop__deco { opacity: 0.35; }
  .backdrop__deco--tr { transform: scale(0.75); transform-origin: top right; }
  .backdrop__deco--bl { transform: scale(0.75); transform-origin: bottom left; }
}

/* 6. Header & nav --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--color-header-bg);
  border-bottom: 1px solid var(--color-header-border);
}

.site-header__inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.site-header__brand {
  justify-self: start;
  display: inline-flex;
  padding: 4px 0;
}
.site-header__brand img { width: 70px; height: auto; }

.site-nav { height: 100%; }

.site-nav__list {
  height: 100%;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  color: var(--color-text-nav);
  font-size: 15px;
  font-weight: var(--weight-text);
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 2px;
  background: var(--color-nav-indicator);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease-out);
}

.site-nav__link:hover { color: var(--color-text-nav-active); }

.site-nav__link[aria-current="true"] {
  color: var(--color-text-nav-active);
}
.site-nav__link[aria-current="true"]::after { transform: scaleX(1); }

.site-nav__link:focus-visible { outline-offset: -6px; }

.nav-toggle {
  grid-column: 3;
  justify-self: end;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -11px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  cursor: pointer;
}
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline; }

@media (max-width: 760px) {
  .site-header__inner { grid-template-columns: 1fr auto; }

  .js .nav-toggle:not([hidden]) { display: inline-flex; grid-column: 2; }

  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: auto;
    background: var(--color-header-bg);
    border-bottom: 1px solid var(--color-header-border);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }
  .js .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 16px;
  }
  .site-nav__link { height: auto; padding: 14px 0; }
  .site-nav__link::after { bottom: 8px; right: auto; width: 2.5em; transform-origin: left; }
}

/* 7. Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 156px;
  min-height: 51px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font: inherit;
  font-size: 15px;
  font-weight: var(--weight-text);
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn__icon { flex: none; transition: transform 0.2s var(--ease-out); }

.btn--primary {
  background: var(--color-accent);
  border-color: var(--color-accent-border);
}
.btn--primary:hover { background: var(--color-accent-border); }

.btn--ghost {
  background: transparent;
  border-color: var(--color-button-ghost-border);
}
.btn--ghost:hover {
  border-color: var(--color-nav-indicator);
  background: rgb(255 255 255 / 0.05);
}

.btn:hover .btn__icon--down { transform: translateY(2px); }
.btn:hover .btn__icon--out { transform: translate(2px, -2px); }

/* 8. Hero ----------------------------------------------------------------- */
.hero {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  /* Extra bottom padding lifts the block to where it sits in the reference,
     which has the footer in view under the hero. */
  padding-block: 56px 108px;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__wordmark {
  width: 223px;
  height: auto;
}

.hero__title {
  max-width: 8.4em;
  margin-top: 39px;
  color: var(--color-text);
  font-size: clamp(46px, 6.2vw, 89px);
  font-weight: var(--weight-heading);
  line-height: 0.94;
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}

.hero__sub {
  max-width: 27em;
  margin-top: 22px;
  text-wrap: balance;
  color: var(--color-text);
  font-size: clamp(20px, 1.76vw, 25.3px);
  line-height: 1.33;
  letter-spacing: -0.005em;
}

.hero__body {
  max-width: 26.5em;
  margin-top: 30px;
  color: var(--color-text-body);
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.48;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 35px;
}

.hero__footnote {
  margin-top: 24px;
  color: var(--color-text-muted);
  font-size: 14px;
}

@media (max-width: 760px) {
  .hero { padding-block: 48px 56px; }
  .hero__wordmark { width: 170px; }
  .hero__title { margin-top: 28px; line-height: 1; }
  .hero__sub { margin-top: 26px; }
}

/* 9. Sections ------------------------------------------------------------- */
.section { scroll-margin-top: var(--header-h); }
/* Home sits directly under the header, so it needs no offset. */
.hero { scroll-margin-top: 0; }

.section:not(.hero) { padding-block: 56px 88px; }

.section__title {
  color: var(--color-text);
  font-size: clamp(42px, 4.9vw, 70px);
  font-weight: var(--weight-heading);
  line-height: 1.05;
  letter-spacing: var(--tracking-tight);
}

.section__subtitle {
  margin-top: 4px;
  color: var(--color-text-body);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.35;
}

.section__cta { margin-top: 39px; }

/* 9a. What we do ---------------------------------------------------------- */
.services {
  display: grid;
  gap: 12px;
  margin: 21px 0 0;
  padding: 0;
  list-style: none;
}

.service {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  grid-template-areas: "num content icon";
  column-gap: 0;
  min-height: 104px;
  padding: 14px 27px 18px 23px;
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.service__num {
  grid-area: num;
  align-self: start;
  justify-self: start;
  margin-top: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-number-rule);
  color: var(--color-text-mono);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
}

.service__content { grid-area: content; }

.service__title {
  color: var(--color-text);
  font-size: clamp(20px, 1.67vw, 24px);
  font-weight: var(--weight-heading);
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.service__text {
  margin-top: 6px;
  color: var(--color-text-body);
  font-size: 16px;
  line-height: 1.4;
}

.service__icon {
  grid-area: icon;
  align-self: center;
  width: 30px;
  height: 30px;
  margin-left: 32px;
  fill: none;
  stroke: var(--color-icon);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service__icon-fill { fill: var(--color-icon); fill-opacity: 0.45; }

@media (max-width: 640px) {
  .service {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "num icon"
      "content content";
    row-gap: 14px;
    padding: 18px 20px 20px;
  }
  .service__num { margin-top: 6px; }
  .service__icon { align-self: start; margin-left: 16px; }
}

/* 9b. Industry potential -------------------------------------------------- */
.industry__notes {
  display: grid;
  gap: 4px;
  max-width: 62em;
  margin-top: 20px;
  padding-left: 14px;
  border-left: 2px solid var(--color-nav-indicator);
  color: var(--color-text-body);
  font-size: 15px;
  line-height: 1.45;
}

.communities {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .communities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
  .communities { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.community {
  display: flex;
  flex-direction: column;
  padding: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.community__image {
  width: 100%;
  height: auto;
  aspect-ratio: 534 / 284;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* Grows so the dividers below line up across a row of cards. */
.community__name {
  flex: 1 0 auto;
  margin: 0 7px;
  padding: 18px 0 20px;
  border-bottom: 1px solid var(--color-divider);
  color: var(--color-text);
  font-size: 22px;
  font-weight: var(--weight-heading);
  line-height: 1.24;
  letter-spacing: -0.01em;
}

:where(.community) dd { margin: 0; }

.community dt {
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.3;
}

.community__stats {
  display: grid;
  grid-template-columns: minmax(max-content, 42%) minmax(max-content, 1fr);
  margin: 0 7px;
  padding: 16px 0 12px;
  border-bottom: 1px solid var(--color-divider);
}

.community__stat + .community__stat {
  padding-left: 18px;
  border-left: 1px solid var(--color-divider-subtle);
}

.community__stat { padding-right: 12px; }

.community__value {
  margin-top: 5px;
  color: var(--color-text);
  font-size: 16px;
  line-height: 38px;
  white-space: nowrap;
}

.community__value--members {
  font-size: 27px;
  letter-spacing: -0.01em;
}

.community__revenue {
  margin: 0 7px;
  padding-top: 11px;
}

.community__value--revenue {
  font-size: 24.5px;
  line-height: 34px;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums; /* digits keep one width while counting */
}

/* Count-up: the invisible sizer (final figure) and the live figure share one
   grid cell, so the box is always the final width and nothing moves. */
.count {
  display: inline-grid;
  justify-items: start;
}
.count__sizer,
.count__live { grid-area: 1 / 1; }
.count__sizer { visibility: hidden; }

/* 9c. Contact ------------------------------------------------------------- */
.contact {
  display: grid;
  gap: 20px;
  margin-top: 34px;
}

@media (min-width: 1100px) {
  .contact { grid-template-columns: minmax(0, 588fr) minmax(0, 676fr); }
}

.contact-card {
  display: flex;
  flex-direction: column;
  padding: 22px 26px 30px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.contact-card__title {
  padding-bottom: 23px;
  border-bottom: 1px solid var(--color-divider);
  color: var(--color-text);
  font-size: clamp(22px, 1.9vw, 27px);
  font-weight: var(--weight-heading);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Load-failure notes (e.g. Calendly blocked or offline) */
.config-note {
  margin-top: 21px;
  padding: 12px 14px;
  border: 1px dashed var(--color-input-border);
  border-radius: var(--radius-sm);
  background: rgb(14 34 94 / 0.55);
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.4;
}
.config-note--block {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  text-align: center;
}
.config-note[hidden] { display: none; }

/* Calendly */
.booking { display: none; }
.booking.is-active {
  display: block;
  height: 660px;
  margin-top: 16px;
}
.booking iframe { display: block; }

/* Form */
.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 21px;
}

.contact-form__row {
  display: grid;
  gap: 16px 20px;
}
@media (min-width: 560px) {
  .contact-form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.field { min-width: 0; }

.field__label {
  display: block;
  margin-bottom: 7px;
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.3;
}

/* Required marker: colour plus the asterisk itself, and required/aria-required on the input */
.field__required {
  margin-left: 3px;
  color: var(--color-required);
}

.field__optional {
  margin-left: 2px;
  color: var(--color-text-muted);
  font-size: 12px;
}

.contact-form__required-note {
  margin: -2px 0 0;
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1.4;
}
.contact-form__required-note .field__required { margin-left: 0; }

.field__input {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  background: var(--color-input-bg);
  border: 1px solid var(--color-input-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font: inherit;
  font-size: 16px; /* 16px stops iOS zooming in on focus */
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field__input--textarea {
  min-height: 84px;
  resize: vertical;
}
.field__input:hover { border-color: var(--color-nav-indicator); }
.field__input:focus-visible {
  outline: none;
  border-color: var(--color-nav-indicator);
  box-shadow: 0 0 0 1px var(--color-nav-indicator); /* with the border: a solid 2px ring */
}
.field__input[aria-invalid="true"] { border-color: var(--color-error); }

.field__error {
  margin-top: 6px;
  color: var(--color-error);
  font-size: 14px;
  line-height: 1.35;
}
.field__error[hidden] { display: none; }

/* Consent checkbox */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.consent__box {
  flex: none;
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin: 0;
  background: var(--color-input-bg) center / 14px 14px no-repeat;
  border: 1px solid var(--color-input-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.consent__box:hover { border-color: var(--color-nav-indicator); }
.consent__box:checked {
  background-color: var(--color-accent);
  border-color: var(--color-accent-border);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.consent__box[aria-invalid="true"] { border-color: var(--color-error); }

.consent__text {
  padding-top: 1px;
  color: var(--color-text-body);
  font-size: 14px;
  line-height: 1.45;
}
.consent__text label { cursor: pointer; }
.consent__text a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.consent__text a:hover { color: var(--color-nav-indicator); }

/* Honeypot: off-screen, not display:none (some bots skip hidden fields) */
.contact-form__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 20px;
  margin-top: 4px;
}

.captcha { min-width: 0; }
.captcha__widget:empty { display: none; }

.contact-form__submit {
  min-width: 165px;
  margin-left: auto;
}
.contact-form__submit:disabled {
  opacity: 0.6;
  cursor: progress;
}

.contact-form__status {
  font-size: 15px;
  line-height: 1.45;
}
.contact-form__status:empty { display: none; }
.contact-form__status:focus { outline: none; }
.contact-form__status.is-success,
.contact-form__status.is-error {
  padding: 12px 14px;
  border-left: 2px solid currentColor;
  background: rgb(14 34 94 / 0.55);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.contact-form__status.is-success { color: var(--color-success); }
.contact-form__status.is-error { color: var(--color-error); }

@media (max-width: 480px) {
  .contact-card { padding: 18px 18px 24px; }
  .booking.is-active { height: 700px; }
  .contact-form__submit { margin-left: 0; width: 100%; }
}

/* 9d. Simple pages (privacy.html) --------------------------------------- */
.page-placeholder {
  min-height: calc(100vh - var(--header-h) - 69px);
  min-height: calc(100svh - var(--header-h) - 69px);
  display: flex;
  align-items: center;
}
.page-placeholder__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}
.page-placeholder .section__title { text-wrap: balance; }

/* 9e. Legal text (privacy.html) ------------------------------------------ */
.legal__body {
  max-width: 44rem; /* about 70 characters a line */
  color: var(--color-text-body);
  font-size: 17px;
  line-height: 1.65;
}

.legal__title {
  color: var(--color-text);
  font-size: clamp(40px, 4.9vw, 64px);
  font-weight: var(--weight-heading);
  line-height: 1.05;
  letter-spacing: var(--tracking-tight);
}

.legal__updated {
  margin-top: 14px;
  color: var(--color-text-muted);
  font-size: 14px;
}

.legal__body h2 {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--color-divider);
  color: var(--color-text);
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.legal__updated + h2 { margin-top: 36px; }

.legal__body p,
.legal__body ul { margin-top: 14px; }

.legal__body ul {
  padding-left: 1.25em;
  list-style: disc;
}
.legal__body li + li { margin-top: 8px; }
.legal__body li::marker { color: var(--color-nav-indicator); }

.legal__body strong { color: var(--color-text); }

.legal__body a {
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-color: var(--color-nav-indicator);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.legal__body a:hover { color: var(--color-nav-indicator); }

/* 10. Footer -------------------------------------------------------------- */
.site-footer {
  background: var(--color-footer-bg);
  border-top: 1px solid var(--color-footer-border);
}

.site-footer__inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 32px;
  padding-block: 20px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-footer__logo {
  display: block;
  width: 46px;
  height: auto;
}

.site-footer__copy {
  color: var(--color-text-body);
  font-size: 14px;
}

.site-footer__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 37px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__icon,
.site-footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-footer__link { font-size: 14px; }
.site-footer__text-start { margin-left: 8px; } /* a little more room between the icons and the text links */
.site-footer__icon:hover,
.site-footer__link:hover { color: var(--color-nav-indicator); }
.site-footer__link[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--color-nav-indicator);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* Phones: logo + copyright on one row, links on the next */
@media (max-width: 600px) {
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    padding-block: 22px 20px;
  }
  .site-footer__links { gap: 8px 26px; }
  .site-footer__text-start { margin-left: 4px; }
}

/* 11. Reveal motion ------------------------------------------------------- */
/* Only hide content when JS is running and the visitor allows motion. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 0.7s ease var(--reveal-delay, 0ms),
      transform 0.8s var(--ease-out) var(--reveal-delay, 0ms);
  }
  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}
