/* ==========================================================================
   OnlyCEO — Lumina Executive
   Hand-written CSS against the design tokens. No framework: this site is four
   pages, and a utility runtime would weigh more than the whole site does.
   ========================================================================== */

:root {
  /* Surfaces — pure white is avoided throughout; the canvas is heavy cream stock */
  --surface: #fbf9f4;
  --surface-bright: #fbf9f4;
  --surface-lowest: #ffffff;
  --surface-low: #f5f3ee;
  --surface-container: #f0eee9;
  --surface-high: #eae8e3;
  --surface-highest: #e4e2dd;
  --surface-variant: #e4e2dd;
  --surface-dim: #dbdad5;

  --on-surface: #1b1c19;
  --on-surface-variant: #44474d;
  --outline: #75777e;
  --outline-variant: #c5c6cd;

  /* Signal — authority and depth */
  --primary: #000000;
  --on-primary: #ffffff;
  --primary-container: #0d1c32;
  --on-primary-container: #76849f;
  --navy: #0a192f;

  --secondary: #306576;
  --on-secondary: #ffffff;
  --secondary-container: #b3e8fb;
  --secondary-fixed: #b6ebfe;

  /* Gold — reserved for high value and ambient warmth */
  --gold: #a17f3b;
  --gold-light: #e9c176;
  --gold-pale: #ffdea5;

  --error: #ba1a1a;

  /* Type */
  --font-display: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --font-body: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Space — 8px scale, airy multipliers at section level */
  --unit: 8px;
  --gutter: 32px;
  --container: 1140px;
  --margin-mobile: 20px;
  --margin-desktop: 64px;
  --section-gap: 120px;

  /* Shape — the squircle family */
  --r-sm: 0.25rem;
  --r: 0.5rem;
  --r-md: 0.75rem;
  --r-lg: 1rem;
  --r-xl: 1.5rem;
  --r-full: 9999px;

  /* Depth — one diffused ambient shadow, never a hard drop */
  --shadow-ambient: 0 20px 40px rgba(10, 25, 47, 0.05);
  --shadow-lifted: 0 32px 64px rgba(10, 25, 47, 0.09);

  /* Motion — one curve for the whole product: a confident decelerate */
  --ease-lux: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 300ms;
  --dur: 600ms;
  --dur-slow: 1000ms;
}

/* -------------------------------------------------------------- foundation */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--gold-light);
  color: var(--primary-container);
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

/* Focus is never removed — only made worthy of the design */
:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* --------------------------------------------------------------- typography */

.display-lg,
h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 6vw, 48px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  margin: 0;
}

.headline,
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 32px);
  line-height: 40px;
  margin: 0;
}

h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.25;
  margin: 0;
}

.title-lg {
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: 0.01em;
}

.body-lg {
  font-size: 18px;
  line-height: 28px;
}

.label {
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.muted { color: var(--on-surface-variant); }
.italic-gold { font-style: italic; color: var(--gold); }

/* ------------------------------------------------------------------ layout */

.container {
  max-width: var(--container);
  margin-inline: auto;
  width: 100%;
}

.section {
  padding-block: clamp(72px, 12vw, var(--section-gap));
  padding-inline: var(--margin-mobile);
  position: relative;
}

@media (min-width: 768px) {
  .section { padding-inline: var(--margin-desktop); }
}

.section-head {
  text-align: center;
  margin-bottom: clamp(48px, 8vw, 96px);
}

.section-rule {
  width: 48px;
  height: 1px;
  background: rgba(27, 28, 25, 0.2);
  margin: 16px auto 0;
}

/* --------------------------------------------------------- material: glass */

/* Frosted glass over an ambient glow — the one depth device on the site */
.glass {
  background: rgba(253, 251, 247, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-ambient);
}

/* Large, soft radial warmth sitting *behind* glass to signal importance */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  background: radial-gradient(circle, var(--gold-light) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.glow--fixed { position: fixed; z-index: -1; }
.glow--tl { top: -20%; left: -10%; width: 50vw; height: 50vw; }
.glow--br {
  bottom: -20%; right: -10%; width: 60vw; height: 60vw;
  background: radial-gradient(circle, var(--secondary-fixed) 0%, transparent 70%);
  opacity: 0.1;
}

/* ---------------------------------------------------------------- controls */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: var(--r-full);
  padding: 16px 40px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    transform var(--dur-fast) var(--ease-lux),
    box-shadow var(--dur-fast) var(--ease-lux),
    background-color var(--dur-fast) var(--ease-soft),
    color var(--dur-fast) var(--ease-soft);
  will-change: transform;
}

.btn--primary {
  background: var(--primary);
  color: var(--on-primary);
  border-color: rgba(0, 0, 0, 0.2);
}

.btn--primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 32px rgba(10, 25, 47, 0.18);
}

/* Ghost: the 1px inner border is the whole component */
.btn--ghost {
  background: rgba(253, 251, 247, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--primary);
  border-color: rgba(0, 0, 0, 0.14);
  box-shadow: var(--shadow-ambient);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  background: rgba(228, 226, 221, 0.6);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 0 0 1px rgba(161, 127, 59, 0.25) inset, var(--shadow-ambient);
}

.btn--gold {
  background: var(--gold-light);
  color: var(--primary-container);
}

.btn--gold:hover {
  background: var(--gold-pale);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(233, 193, 118, 0.3);
}

.btn--sm { padding: 10px 24px; }

.btn:active { transform: translateY(0) scale(0.99); }

/* --------------------------------------------------------------- nav */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--margin-mobile);
  background: rgba(251, 249, 244, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(27, 28, 25, 0.1);
  transition:
    background-color var(--dur-fast) var(--ease-soft),
    box-shadow var(--dur-fast) var(--ease-soft),
    backdrop-filter var(--dur-fast) var(--ease-soft);
}

@media (min-width: 768px) {
  .nav { padding-inline: var(--margin-desktop); }
}

/* Over the hero photograph the cream glass reads as a muddy grey bar and the
   links vanish into it. At the top the bar dissolves into a navy fade instead,
   with ivory links — the glass returns the moment the page scrolls. */
.nav--overlay:not(.is-scrolled) {
  background: linear-gradient(180deg, rgba(10, 25, 47, 0.6) 0%, rgba(10, 25, 47, 0) 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}

.nav--overlay:not(.is-scrolled) .nav__link {
  color: rgba(242, 241, 236, 0.88);
}

.nav--overlay:not(.is-scrolled) .nav__link:hover { color: #ffffff; }
.nav--overlay:not(.is-scrolled) .nav__link::after { background: var(--gold-light); }

/* Black-on-dark disappears — the CTA turns ivory while over the photograph */
.nav--overlay:not(.is-scrolled) .btn--primary {
  background: var(--surface);
  color: var(--primary-container);
  border-color: transparent;
}

/* Scrolled: the glass thickens rather than the bar growing a shadow */
.nav.is-scrolled {
  background: rgba(251, 249, 244, 0.92);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 4px 24px rgba(10, 25, 47, 0.06);
}

.nav__logo {
  height: 38px;
  width: auto;
  transition: height var(--dur-fast) var(--ease-lux);
}

.nav__links {
  display: none;
  align-items: center;
  gap: 32px;
}

@media (min-width: 900px) {
  .nav__links { display: flex; }
}

.nav__link {
  color: var(--outline);
  font-size: 16px;
  position: relative;
  transition: color var(--dur-fast) var(--ease-soft);
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-lux);
}

.nav__link:hover { color: var(--secondary); }
.nav__link:hover::after { transform: scaleX(1); }

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px var(--margin-mobile) 80px;
  overflow: hidden;
  text-align: center;
}

@media (min-width: 768px) {
  .hero { padding-inline: var(--margin-desktop); }
}

/* The photograph leads. Glass architecture, cool daylight — the maritime
   register the palette is built on, so no colour correction is needed. */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--primary-container); /* holds the frame before the photo paints */
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

/* Type has to win over a photograph. Deep navy at the top where the words are,
   releasing into cream at the foot so the hero melts into the page rather than
   ending on a hard seam. */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(10, 25, 47, 0.86) 0%,
      rgba(10, 25, 47, 0.66) 42%,
      rgba(10, 25, 47, 0.58) 68%,
      rgba(251, 249, 244, 0.1) 90%,
      var(--surface) 100%
    ),
    /* A whisper of warmth from the left, so the cool glass is not clinical */
    linear-gradient(100deg, rgba(161, 127, 59, 0.16) 0%, transparent 55%);
}

.hero__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: min(80vw, 800px);
  height: min(80vw, 800px);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  background: radial-gradient(circle, var(--gold) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__logo {
  height: clamp(64px, 12vw, 128px);
  width: auto;
  margin-bottom: clamp(32px, 6vw, 48px);
  opacity: 0.92;
}

.hero__eyebrow {
  color: #f2f1ec;
  letter-spacing: 0.2em;
  opacity: 0.85;
  margin: 0 0 24px;
}

.hero h1 {
  color: #ffffff;
  max-width: 22ch;
  margin-bottom: 32px;
  text-shadow: 0 2px 24px rgba(10, 25, 47, 0.25);
}

.hero h1 .italic-gold { color: var(--gold-light); }

.hero__lede {
  /* Cream at 88%: legible on the photograph without competing with the headline */
  color: rgba(242, 241, 236, 0.88);
  max-width: 56ch;
  margin: 0 0 clamp(48px, 8vw, 64px);
  text-shadow: 0 1px 12px rgba(10, 25, 47, 0.4);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

@media (min-width: 560px) {
  .hero__actions { flex-direction: row; gap: 24px; }
}

/* A quiet invitation to keep reading */
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--outline);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--gold-light));
  animation: drift 2.4s var(--ease-soft) infinite;
}

@keyframes drift {
  0%, 100% { opacity: 0.2; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* ------------------------------------------------------------ bento grid */

.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gutter);
}

@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(12, 1fr); }
  .bento__wide { grid-column: span 8; }
  .bento__tall { grid-column: span 4; }
  .bento__half { grid-column: span 6; }
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 48px);
  transition:
    transform var(--dur) var(--ease-lux),
    box-shadow var(--dur) var(--ease-lux);
  will-change: transform;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lifted);
}

.card__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--secondary);
}

.card__eyebrow svg { width: 20px; height: 20px; flex: none; }

.card h3 { margin-bottom: 16px; }

.card p {
  margin: 0;
  color: var(--on-surface-variant);
  line-height: 1.6;
}

/* Butler — image beside copy, the photo drifting on hover */
.card--butler {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  min-height: 400px;
}

@media (min-width: 700px) {
  .card--butler { flex-direction: row; }
}

.card--butler::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(179, 232, 251, 0.2), transparent);
  opacity: 0;
  transition: opacity 700ms var(--ease-soft);
  pointer-events: none;
}

.card--butler:hover::before { opacity: 1; }

.card__media {
  position: relative;
  width: 100%;
  min-height: 220px;
  border-radius: var(--r-lg);
  overflow: hidden;
  flex: 1;
  align-self: stretch;
}

.card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%) sepia(10%);
  transition: transform var(--dur-slow) var(--ease-lux);
}

.card--butler:hover .card__media img { transform: scale(1.05); }

/* The Butler is represented by his mark, so the media area becomes a plate:
   a warm inset panel with the monogram centred and given room to breathe. */
.card__media--mark {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 48px;
  background:
    radial-gradient(circle at 50% 42%, rgba(233, 193, 118, 0.16) 0%, transparent 62%),
    linear-gradient(160deg, var(--surface-low) 0%, var(--surface-container) 100%);
  border: 1px solid rgba(197, 198, 205, 0.35);
}

.card__media--mark .card__mark {
  position: static;
  /* The mark needs air on every side — touching the frame reads as cramped */
  width: min(42%, 150px);
  height: auto;
  object-fit: contain;
  filter: none;
  transition: transform var(--dur-slow) var(--ease-lux);
}

/* He leans in, rather than the frame moving */
.card--butler:hover .card__mark { transform: scale(1.06) translateY(-2px); }

.card__body { flex: 1; position: relative; z-index: 1; }

/* Privileges — the one dark surface in the suite */
.card--dark {
  background: var(--primary-container);
  color: var(--on-primary);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 400px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-ambient);
}

.card--dark h3 { color: var(--on-primary); }
.card--dark p { color: var(--on-primary-container); }
.card--dark .card__eyebrow { color: var(--secondary-fixed); }

.card--dark::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(48, 101, 118, 0.2);
  filter: blur(48px);
  transition: background-color 700ms var(--ease-soft);
}

.card--dark:hover::after { background: rgba(48, 101, 118, 0.45); }

.card__arrow {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin-top: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--on-primary);
  display: grid;
  place-items: center;
  transition:
    background-color var(--dur-fast) var(--ease-soft),
    transform var(--dur-fast) var(--ease-lux);
}

.card__arrow:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

/* Intelligence — a faint dot field, like fine paper */
.card--intel { border-top: 1px solid rgba(233, 193, 118, 0.3); }

.card--intel::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: radial-gradient(var(--on-surface) 1px, transparent 1px);
  background-size: 16px 16px;
  pointer-events: none;
}

.card--intel .card__eyebrow { color: var(--gold); }
.card--chambers .card__eyebrow { color: var(--primary); }

.card--half { min-height: 360px; display: flex; flex-direction: column; justify-content: center; }

/* ------------------------------------------------------ executive dashboard */

.dashboard-shell {
  position: relative;
  z-index: 1;
  border-radius: var(--r-xl);
  padding: clamp(32px, 6vw, 64px);
  text-align: center;
  border: 1px solid rgba(233, 193, 118, 0.2);
  background: rgba(251, 249, 244, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 40px 80px rgba(10, 25, 47, 0.08);
}

.dashboard-shell p.body-lg {
  color: var(--on-surface-variant);
  max-width: 52ch;
  margin: 24px auto clamp(32px, 6vw, 48px);
}

.metric {
  max-width: 720px;
  margin-inline: auto;
  background: var(--surface-lowest);
  border: 1px solid rgba(197, 198, 205, 0.3);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  text-align: left;
}

@media (min-width: 700px) {
  .metric { flex-direction: row; }
}

.metric__copy { flex: 1; }
.metric__copy .label { color: var(--outline); margin: 0 0 8px; }
.metric__copy h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 4px;
}
.metric__copy p { margin: 0; color: var(--on-surface-variant); }

/* The golden crown — the house's seal, breathing gently in its warmth */
.metric__crown {
  position: relative;
  width: 112px;
  height: 112px;
  flex: none;
  display: grid;
  place-items: center;
}

.metric__crown::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 193, 118, 0.35) 0%, transparent 70%);
  animation: crown-breathe 3.2s var(--ease-soft) infinite;
}

.metric__crown svg {
  position: relative;
  width: 72px;
  height: 72px;
}

@keyframes crown-breathe {
  0%, 100% { opacity: 0.5; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* ---------------------------------------------------------- request entry */

.entry {
  background: var(--primary);
  color: var(--on-primary);
  position: relative;
  overflow: hidden;
}

.entry::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.8) 0, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.entry__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.entry__key { color: var(--gold-light); opacity: 0.8; margin-bottom: 24px; }
.entry__key svg { width: 36px; height: 36px; }

.entry h2 { color: var(--on-primary); margin-bottom: 32px; }

.entry__lede {
  color: var(--on-primary-container);
  margin: 0 0 clamp(32px, 6vw, 48px);
}

.entry__form { width: 100%; max-width: 420px; display: grid; gap: 24px; }

/* Bottom-border only, teal on focus */
.field {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding: 16px 8px;
  color: var(--on-primary);
  font-family: inherit;
  font-size: 16px;
  transition:
    border-color var(--dur-fast) var(--ease-soft),
    background-color var(--dur-fast) var(--ease-soft);
}

.field::placeholder { color: var(--on-primary-container); }

.field:focus {
  outline: none;
  border-color: var(--gold-light);
  background: rgba(255, 255, 255, 0.05);
}

.entry__note {
  font-size: 13px;
  color: var(--on-primary-container);
  margin: 0;
  min-height: 20px;
  transition: opacity var(--dur-fast) var(--ease-soft);
}

.entry__note--ok { color: var(--gold-light); }
.entry__note--err { color: #ff9c96; }

/* ---------------------------------------------------------------- footer */

.footer {
  background: var(--surface);
  border-top: 1px solid rgba(197, 198, 205, 0.25);
  padding: 56px var(--margin-mobile) 40px;
}

@media (min-width: 768px) {
  .footer { padding-inline: var(--margin-desktop); }
}

.footer__top {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer__top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    text-align: left;
  }
}

.footer__logo {
  height: 40px;
  width: auto;
  opacity: 0.85;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: center;
}

.footer__nav a {
  color: var(--on-surface-variant);
  font-size: 14px;
  transition: color var(--dur-fast) var(--ease-soft);
}

.footer__nav a:hover { color: var(--secondary); }

.footer__meta { display: grid; gap: 8px; }
.footer__meta .label { color: var(--outline); letter-spacing: 0.2em; margin: 0; }
.footer__meta small { color: rgba(68, 71, 77, 0.6); font-size: 13px; }

/* ------------------------------------------------------------ legal pages */

.legal {
  padding: 120px var(--margin-mobile) 96px;
}

@media (min-width: 768px) {
  .legal { padding-inline: var(--margin-desktop); }
}

.legal__inner {
  max-width: 760px;
  margin-inline: auto;
}

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--secondary);
  margin-bottom: 40px;
  transition: gap var(--dur-fast) var(--ease-lux);
}

.legal__back:hover { gap: 14px; }

.legal h1 { margin-bottom: 12px; }

.legal__updated {
  color: var(--outline);
  font-style: italic;
  margin: 0 0 48px;
}

.legal__lede {
  font-size: 18px;
  line-height: 30px;
  color: var(--on-surface-variant);
  padding-bottom: 32px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(197, 198, 205, 0.3);
}

.legal h2 {
  font-size: 24px;
  line-height: 32px;
  margin: 56px 0 16px;
}

.legal h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  line-height: 26px;
  margin: 32px 0 8px;
}

.legal p {
  color: var(--on-surface-variant);
  line-height: 28px;
  margin: 0 0 20px;
}

.legal ul { color: var(--on-surface-variant); line-height: 28px; padding-left: 20px; }
.legal li { margin-bottom: 12px; }

.legal strong { color: var(--on-surface); font-weight: 600; }

.legal a { color: var(--secondary); text-decoration: underline; text-underline-offset: 3px; }

.legal__table-wrap { overflow-x: auto; margin: 0 0 24px; }

.legal table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 15px;
}

.legal th,
.legal td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(197, 198, 205, 0.3);
  vertical-align: top;
  color: var(--on-surface-variant);
}

.legal th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-surface);
  background: var(--surface-low);
}

.legal__contact {
  margin-top: 56px;
  padding: 28px 32px;
  border-radius: var(--r-lg);
  background: var(--surface-low);
  border: 1px solid rgba(197, 198, 205, 0.3);
}

.legal__contact p { margin: 0 0 6px; }
.legal__contact p:last-child { margin: 0; }

/* ------------------------------------------------------------- page veil */

/* The site does not appear; it is unveiled. One cream panel lifts away. */
.veil {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--surface);
  display: grid;
  place-items: center;
  transition:
    opacity 800ms var(--ease-lux),
    visibility 800ms var(--ease-lux);
}

.veil__mark {
  width: 56px;
  height: auto;
  opacity: 0;
  animation: veil-breathe 1600ms var(--ease-lux) infinite;
}

@keyframes veil-breathe {
  0%, 100% { opacity: 0.25; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1); }
}

body.is-loaded .veil {
  opacity: 0;
  visibility: hidden;
}

/* --------------------------------------------------------- scroll reveals */

/* Nothing arrives abruptly. Elements rise into place as they are reached. */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--dur) var(--ease-lux),
    transform var(--dur) var(--ease-lux);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger inside a group without hand-writing delays */
.reveal[data-delay='1'] { transition-delay: 90ms; }
.reveal[data-delay='2'] { transition-delay: 180ms; }
.reveal[data-delay='3'] { transition-delay: 270ms; }
.reveal[data-delay='4'] { transition-delay: 360ms; }
.reveal[data-delay='5'] { transition-delay: 450ms; }

/* The hero animates on load rather than on scroll */
.hero-in {
  opacity: 0;
  transform: translateY(20px);
}

body.is-loaded .hero-in {
  animation: hero-rise 1100ms var(--ease-lux) forwards;
}

body.is-loaded .hero-in[data-delay='1'] { animation-delay: 120ms; }
body.is-loaded .hero-in[data-delay='2'] { animation-delay: 240ms; }
body.is-loaded .hero-in[data-delay='3'] { animation-delay: 360ms; }
body.is-loaded .hero-in[data-delay='4'] { animation-delay: 480ms; }
body.is-loaded .hero-in[data-delay='5'] { animation-delay: 620ms; }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

/* ------------------------------------------------- reduced motion honoured */

@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;
  }

  .reveal,
  .hero-in {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .metric__ring-value { stroke-dashoffset: 6.28; }
}

/* ------------------------------------------------ the join letter CTA */

.entry__mail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.entry__address {
  margin: 0;
  font-size: 15px;
  color: var(--on-primary-container);
}

/* The address is a button in disguise: click it and it copies itself */
.entry__copy {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--gold-light);
  border-bottom: 1px solid rgba(233, 193, 118, 0.4);
  transition: border-color var(--dur-fast) var(--ease-soft), color var(--dur-fast) var(--ease-soft);
}

.entry__copy:hover {
  color: var(--gold-pale);
  border-bottom-color: var(--gold-pale);
}
