/* ══════════════════════════════════════════════════════════════
   ELLVERIS — Design System v3
   Shared stylesheet. Link from every page:
   <link rel="stylesheet" href="/site.css">
══════════════════════════════════════════════════════════════ */

/* ─── PAGE TRANSITIONS & SMOOTH SCROLL ─────────────────────── */
html { scroll-behavior: smooth; }

/* Fade in on page load */
.js-transitions body {
  animation: ellveris-fade-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes ellveris-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mobile menu open — scroll lock */
html.nav-open,
html.nav-open body {
  overflow: hidden;
  height: 100%;
  touch-action: none;
}

/* Fade out on page exit */
body.page-exit {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.32s ease, transform 0.32s ease;
  pointer-events: none;
}

/* ─── 0. LEGACY VARIABLE ALIASES (backward compat for inner pages) ── */
:root {
  /* Old token names → new system */
  --void:        #08060C;
  --deep-dusk:   #12101A;
  --vellum:      #F2E8D9;
  --parchment:   #EDE3CC;
  --gold-veris:  #C9A84C;
  --gold-pale:   #F5E8C0;
  --gold-deep:   #8B6914;
  --amber:       #D4956A;
  --sage:        #8BA888;
  --steel:       #5B8FA8;
  --lavender:    #A898C8;
  --on-dark:     #F2E8D9;
  --on-light:    #12101A;
}

/* ─── 1. DESIGN TOKENS ─────────────────────────────────────── */
:root {
  /* Fonts */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Type scale */
  --text-display: clamp(3rem, 6vw, 4.5rem);
  --text-h1:      clamp(2rem, 4vw, 3rem);
  --text-h2:      clamp(1.5rem, 2.5vw, 2rem);
  --text-h3:      clamp(1.1rem, 1.5vw, 1.25rem);
  --text-body-lg: clamp(1rem, 1.25vw, 1.125rem);
  --text-body:    1rem;
  --text-caption: 0.8125rem;
  --text-nav:     1rem;
  --text-label:   0.6875rem;

  /* Line heights */
  --leading-display: 1.1;
  --leading-heading:  1.25;
  --leading-body:     1.75;
  --leading-ui:       1.4;

  /* Colour — neutrals */
  --color-void:       #08060C;
  --color-deep-dusk:  #12101A;
  --color-warm-vellum:#F2E8D9;
  --color-parchment:  #EDE3CC;
  --color-mist:       #FAF6F0;

  /* Colour — gold */
  --color-veris-gold: #C9A84C;
  --color-pale-gold:  #F5E8C0;
  --color-deep-gold:  #8B6914;

  /* Colour — pillars */
  --color-beauty:       #D4956A;
  --color-beauty-light: #F9EEE6;
  --color-health:       #8BA888;
  --color-health-light: #EBF2EF;
  --color-career:       #5B8FA8;
  --color-career-light: #E8F2F6;
  --color-mind:         #A898C8;
  --color-mind-light:   #F3EEF6;

  /* Colour — semantic aliases */
  --color-bg-primary:   var(--color-warm-vellum);
  --color-bg-secondary: var(--color-parchment);
  --color-bg-mist:      var(--color-mist);
  --color-bg-dark:      var(--color-deep-dusk);
  --color-bg-darkest:   var(--color-void);
  --color-bg-card:      #FFFFFF;

  --color-text-primary: var(--color-deep-dusk);
  --color-text-body:    #2E2C38;
  --color-text-muted:   #7A7570;
  --color-text-inverse: var(--color-warm-vellum);
  --color-text-gold:    var(--color-veris-gold);

  --color-accent:       var(--color-veris-gold);
  --color-accent-hover: var(--color-deep-gold);
  --color-accent-light: var(--color-pale-gold);

  --color-border:       #DDD6C4;
  --color-border-strong:#C4BAA4;
  --color-border-dark:  rgba(201,168,76,0.12);

  /* Spacing */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   3rem;
  --space-xl:   5rem;
  --space-2xl:  8rem;
  --space-3xl:  12rem;

  /* Layout widths */
  --width-content: 720px;
  --width-wide:    1080px;
  --width-full:    1440px;

  /* Nav */
  --nav-height: 76px;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ─── 2. RESET ──────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-text-body);
  background: var(--color-void);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, picture, video, canvas { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; }

/* ─── 3. TYPOGRAPHY ─────────────────────────────────────────── */

/* Display / editorial headings */
.display-headline,
h1.display {
  font-family: var(--font-display);
  font-size: var(--text-display);
  line-height: var(--leading-display);
  font-weight: 400;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
}
.display-headline em,
h1.display em {
  font-style: italic;
}

h1, .h1 {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  line-height: var(--leading-heading);
  font-weight: 400;
  color: var(--color-text-primary);
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  line-height: var(--leading-heading);
  font-weight: 400;
  color: var(--color-text-primary);
}
h3, .h3 {
  font-family: var(--font-body);
  font-size: var(--text-h3);
  line-height: var(--leading-ui);
  font-weight: 500;
  color: var(--color-text-primary);
  letter-spacing: 0.01em;
}
p {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-text-body);
}

/* Type utilities */
.text-display    { font-family: var(--font-display); font-size: var(--text-display); line-height: var(--leading-display); font-weight: 400; }
.text-h1         { font-family: var(--font-display); font-size: var(--text-h1); line-height: var(--leading-heading); font-weight: 400; }
.text-h2         { font-family: var(--font-display); font-size: var(--text-h2); line-height: var(--leading-heading); font-weight: 400; }
.text-h3         { font-family: var(--font-body); font-size: var(--text-h3); line-height: var(--leading-ui); font-weight: 500; }
.text-body-lg    { font-family: var(--font-body); font-size: var(--text-body-lg); line-height: var(--leading-body); }
.text-body       { font-family: var(--font-body); font-size: var(--text-body); line-height: var(--leading-body); }
.text-caption    { font-family: var(--font-body); font-size: var(--text-caption); line-height: var(--leading-ui); }
.text-nav        { font-family: var(--font-body); font-size: var(--text-nav); line-height: var(--leading-ui); }
.text-label      { font-family: var(--font-body); font-size: var(--text-label); letter-spacing: 0.12em; text-transform: uppercase; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-gold);
  display: block;
}

/* Colour modifiers */
.text-gold    { color: var(--color-text-gold); }
.text-muted   { color: var(--color-text-muted); }
.text-inverse { color: var(--color-text-inverse); }
.text-primary { color: var(--color-text-primary); }

/* ─── 4. LAYOUT ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--width-full);
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 4vw, 3.25rem);
}
.container--content {
  max-width: var(--width-content);
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 4vw, 3.25rem);
}
.container--wide {
  max-width: var(--width-wide);
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 4vw, 3.25rem);
}

/* Section spacing helpers */
.section-pad    { padding-block: var(--space-2xl); }
.section-pad-lg { padding-block: var(--space-3xl); }
.section-pad-sm { padding-block: var(--space-xl); }

/* Gold divider */
.gold-rule {
  height: 1px;
  border: none;
  background: linear-gradient(90deg, transparent, var(--color-veris-gold), transparent);
  opacity: 0.3;
}

/* ─── 5. BUTTON SYSTEM ──────────────────────────────────────── */

/* Base */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.875em 2.25em;
  border-radius: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.22s var(--ease-out),
              color 0.22s var(--ease-out),
              border-color 0.22s var(--ease-out),
              opacity 0.22s var(--ease-out),
              transform 0.22s var(--ease-out);
  text-decoration: none;
  border: 1.5px solid transparent;
}
.btn:focus-visible {
  outline: 2px solid var(--color-veris-gold);
  outline-offset: 3px;
}

/* Primary — filled gold */
.btn--primary {
  background: var(--color-veris-gold);
  color: var(--color-void);
  border-color: var(--color-veris-gold);
}
.btn--primary:hover {
  background: var(--color-deep-gold);
  border-color: var(--color-deep-gold);
  color: var(--color-warm-vellum);
  transform: translateY(-1px);
}

/* Ghost — transparent, warm-vellum border (for dark backgrounds) */
.btn--ghost {
  background: transparent;
  color: var(--color-warm-vellum);
  border-color: rgba(242,232,217,0.4);
}
.btn--ghost:hover {
  background: rgba(242,232,217,0.1);
  border-color: rgba(242,232,217,0.7);
  transform: translateY(-1px);
}

/* Outline — transparent, gold border (for light backgrounds) */
.btn--outline {
  background: transparent;
  color: var(--color-deep-gold);
  border-color: rgba(139,105,20,0.4);
}
.btn--outline:hover {
  background: rgba(139,105,20,0.06);
  border-color: var(--color-deep-gold);
  transform: translateY(-1px);
}

/* Text — no background or border */
.btn--text {
  background: transparent;
  color: var(--color-deep-gold);
  border-color: transparent;
  padding-inline: 0;
  letter-spacing: 0.06em;
}
.btn--text:hover {
  color: var(--color-veris-gold);
}
.btn--text::after {
  content: ' →';
}

/* Size modifiers */
.btn--sm {
  font-size: 0.625rem;
  padding: 0.65em 1.5em;
}
.btn--lg {
  font-size: 0.75rem;
  padding: 1.1em 2.75em;
}

/* ─── 6. NAVIGATION ─────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1200;
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease-out),
              border-bottom-color 0.4s var(--ease-out),
              transform 0.3s var(--ease-out);
  border-bottom: 1px solid transparent;
}
#nav.nav--scrolled {
  background: rgba(8,6,12,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--color-border-dark);
}
#nav.nav--solid {
  background: var(--color-void);
  border-bottom-color: var(--color-border-dark);
}
#nav.nav--light {
  background: rgba(242,232,217,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--color-border);
}
#nav.nav--hide {
  transform: translateY(-100%);
}

.nav-inner {
  width: 100%;
  max-width: var(--width-full);
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 4vw, 3.25rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo { flex-shrink: 0; }
.nav-logo img { height: 50px; width: auto; display: block; }

/* Desktop links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex: 1;
  justify-content: center;
}
.nav-links > li { position: relative; }

.nav-links a,
.nav-label {
  font-family: var(--font-body);
  font-size: var(--text-nav);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(242,232,217,0.6);
  transition: color 0.2s;
  white-space: nowrap;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25em;
}
.nav-links a:hover,
.nav-links a.active { color: var(--color-warm-vellum); }
.nav-label:hover     { color: var(--color-warm-vellum); }

/* Nav on light backgrounds */
#nav.nav--light .nav-links a,
#nav.nav--light .nav-label {
  color: rgba(18,16,26,0.6);
}
#nav.nav--light .nav-links a:hover,
#nav.nav--light .nav-links a.active,
#nav.nav--light .nav-label:hover {
  color: var(--color-deep-dusk);
}

/* Dropdown */
.nav-has-dd { position: relative; }

.nav-dd-arrow {
  font-size: 0.6em;
  opacity: 0.6;
  transition: transform 0.2s;
  pointer-events: none;
}
.nav-has-dd:hover .nav-dd-arrow { transform: rotate(180deg); }

.nav-dd {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(8,6,12,0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(201,168,76,0.12);
  min-width: 200px;
  z-index: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.nav-dd::before {
  content: '';
  position: absolute;
  top: -16px; left: 0; right: 0; height: 16px;
}
.nav-has-dd:hover .nav-dd { display: block; }

.nav-dd li a {
  display: block;
  padding: 0.8rem 1.25rem;
  font-family: var(--font-body);
  font-size: var(--text-nav);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(242,232,217,0.6);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-dd li a:hover { color: var(--color-warm-vellum); background: rgba(201,168,76,0.07); }
.nav-dd li + li { border-top: 1px solid rgba(201,168,76,0.07); }

/* Nav CTA button */
.nav-cta {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-veris-gold);
  border: 1px solid rgba(201,168,76,0.4);
  padding: 0.6rem 1.25rem;
  transition: background 0.22s, border-color 0.22s, color 0.22s;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--color-veris-gold);
  border-color: var(--color-veris-gold);
  color: var(--color-void);
}

/* Hamburger */
#hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  flex-shrink: 0;
}
#hamburger span {
  display: block;
  width: 22px; height: 1px;
  background: var(--color-warm-vellum);
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.3s;
}
#hamburger:hover span { opacity: 0.9; }
#hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#hamburger.open span:nth-child(2) { opacity: 0; }
#hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile nav overlay */
#mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1199;
  background: rgba(8,6,12,0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow-y: auto;
}
#mobile-nav.open { display: flex; }

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: calc(var(--nav-height) + 3rem) 1.5rem 3rem;
}
.mobile-nav-links a {
  display: block;
  width: 100%;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(242,232,217,0.65);
  padding: 0.75rem 0;
  transition: color 0.2s;
  border-bottom: 1px solid rgba(201,168,76,0.07);
}
.mobile-nav-links a:hover { color: var(--color-warm-vellum); }
.mobile-nav-links a:last-child { border-bottom: none; }

.mobile-nav-divider {
  width: 40px;
  height: 1px;
  background: rgba(201,168,76,0.25);
  margin: 0.75rem auto;
}

/* Mobile nav accordion groups */
.mobile-nav-group { width: 100%; }
.mobile-nav-group-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(201,168,76,0.07);
  padding: 0.75rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(242,232,217,0.65);
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-nav-group-header:hover { color: var(--color-warm-vellum); }
.mobile-nav-arrow {
  font-size: 0.55rem;
  transition: transform 0.25s ease;
  opacity: 0.55;
  display: inline-block;
}
.mobile-nav-group.open .mobile-nav-arrow { transform: rotate(180deg); }
.mobile-nav-group-links {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 0.25rem 0 0.75rem;
}
.mobile-nav-group.open .mobile-nav-group-links { display: flex; }
.mobile-nav-group-links a {
  font-size: clamp(1rem, 3vw, 1.375rem);
  color: rgba(242,232,217,0.5);
  padding: 0.5rem 0;
  border-bottom: none;
}
.mobile-nav-group-links a:hover { color: var(--color-veris-gold); }

#mobile-close {
  position: absolute;
  top: calc(var(--nav-height) + 0.75rem); right: 2rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242,232,217,0.4);
  cursor: pointer;
  transition: color 0.2s;
}
#mobile-close:hover { color: var(--color-warm-vellum); }

/* ─── 7. HERO (shared styles) ────────────────────────────────── */
.page-hero {
  position: relative;
  padding-top: calc(var(--nav-height) + var(--space-2xl));
  padding-bottom: var(--space-2xl);
  background: var(--color-void);
  overflow: hidden;
}
.page-hero__content { position: relative; z-index: 2; }
.page-hero__title   { color: var(--color-warm-vellum); }
.page-hero__sub     { color: rgba(242,232,217,0.7); margin-top: var(--space-md); max-width: 56ch; }
.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8,6,12,0.65) 0%, rgba(8,6,12,0.85) 100%);
  z-index: 1;
}

/* ─── 8. FOOTER ─────────────────────────────────────────────── */
#footer {
  background: var(--color-void);
  border-top: 1px solid rgba(201,168,76,0.08);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-inner {
  width: 100%;
  max-width: var(--width-full);
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 4vw, 3.25rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2.75rem;
  margin-bottom: var(--space-lg);
}

/* Footer brand column */
.footer-brand {}
.footer-logo {
  height: 56px;
  width: auto;
  display: block;
  margin-bottom: 1.25rem;
  opacity: 0.9;
}
.footer-tagline {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 300;
  color: rgba(242,232,217,0.3);
  line-height: 1.7;
  max-width: 22ch;
  margin-bottom: 1.75rem;
}

/* Footer newsletter */
.footer-nl { display: flex; }
.footer-nl-input {
  flex: 1;
  background: rgba(242,232,217,0.04);
  border: 1px solid rgba(201,168,76,0.1);
  border-right: none;
  padding: 0.65rem 0.875rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-warm-vellum);
  outline: none;
  transition: border-color 0.22s;
}
.footer-nl-input::placeholder { color: rgba(242,232,217,0.22); }
.footer-nl-input:focus { border-color: rgba(201,168,76,0.28); }
.footer-nl-btn {
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.18);
  padding: 0.65rem 0.875rem;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-veris-gold);
  cursor: pointer;
  transition: background 0.22s, border-color 0.22s;
}
.footer-nl-btn:hover {
  background: rgba(201,168,76,0.22);
  border-color: rgba(201,168,76,0.32);
}

/* Footer nav columns */
.footer-col-head {
  font-family: var(--font-body);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-veris-gold);
  opacity: 0.6;
  display: block;
  margin-bottom: 1.25rem;
}
.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.footer-col-links a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(242,232,217,0.38);
  transition: color 0.2s;
}
.footer-col-links a:hover { color: rgba(242,232,217,0.75); }

/* Footer social */
.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.footer-social a {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242,232,217,0.28);
  transition: color 0.2s;
}
.footer-social a:hover { color: rgba(242,232,217,0.65); }

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(201,168,76,0.06);
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-copy {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 300;
  color: rgba(242,232,217,0.2);
  letter-spacing: 0.04em;
}
.footer-legal {
  display: flex;
  gap: 1.25rem;
}
.footer-legal a {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 300;
  color: rgba(242,232,217,0.2);
  transition: color 0.2s;
}
.footer-legal a:hover { color: rgba(242,232,217,0.55); }

/* ─── 9. ANIMATIONS & SCROLL REVEAL ─────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-1 { animation: fadeUp 1s var(--ease-out) 0.1s  both; }
.anim-2 { animation: fadeUp 1s var(--ease-out) 0.25s both; }
.anim-3 { animation: fadeUp 1s var(--ease-out) 0.4s  both; }
.anim-4 { animation: fadeUp 1s var(--ease-out) 0.55s both; }
.anim-5 { animation: fadeUp 1s var(--ease-out) 0.7s  both; }

/* ─── 10. CUSTOM CURSOR ──────────────────────────────────────── */
/* Custom cursor removed — using system default */
.cursor { display: none; }

/* ─── 11. UTILITIES ──────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.full-bleed  { width: 100vw; margin-inline: calc(50% - 50vw); }
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }

/* Pillar colour modifiers */
.pillar-beauty  { --pillar-color: var(--color-beauty);  --pillar-light: var(--color-beauty-light); }
.pillar-health  { --pillar-color: var(--color-health);  --pillar-light: var(--color-health-light); }
.pillar-career  { --pillar-color: var(--color-career);  --pillar-light: var(--color-career-light); }
.pillar-mind    { --pillar-color: var(--color-mind);    --pillar-light: var(--color-mind-light); }

/* Gold gradient text */
.gold-grad-text {
  background: linear-gradient(180deg, var(--color-pale-gold) 0%, var(--color-veris-gold) 50%, var(--color-deep-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Form elements */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.form-label {
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.form-input,
.form-textarea,
.form-select {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-text-body);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.22s;
  width: 100%;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-veris-gold);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--color-text-muted); opacity: 0.6; }
.form-textarea { resize: vertical; min-height: 140px; }

/* Form success state */
.form-success {
  text-align: center;
  padding: 3rem 1.5rem;
}
.form-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.form-success__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
  color: var(--color-text-primary);
  margin-bottom: 0.75rem;
}
.form-success__body {
  color: var(--color-text-muted);
  max-width: 40ch;
  margin: 0 auto 2rem;
  line-height: 1.75;
}
.form-success__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 480px) {
  .form-success { padding: 2rem 1rem; }
  .form-success__actions { flex-direction: column; align-items: center; }
  .form-success__actions .btn { width: 100%; text-align: center; }
}

/* Form inline error */
.form-error {
  color: #c0392b;
  font-size: 0.875rem;
  margin-top: 0.75rem;
}

/* ─── 12. CARD COMPONENTS ────────────────────────────────────── */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.card:hover {
  box-shadow: 0 12px 40px rgba(18,16,26,0.1);
  transform: translateY(-3px);
}
.card__image { aspect-ratio: 16 / 10; overflow: hidden; }
.card__image picture, .card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.card:hover .card__image img { transform: scale(1.04); }
.card__body { padding: var(--space-md); }
.card__eyebrow { margin-bottom: 0.5rem; }
.card__title { margin-bottom: 0.5rem; }
.card__excerpt { color: var(--color-text-muted); font-size: var(--text-caption); line-height: 1.65; }

/* ─── 13. PAGE STRUCTURE (inner pages) ───────────────────────── */
.page-main { padding-top: var(--nav-height); }
.inner-hero {
  background: var(--color-void);
  padding: var(--space-2xl) 0 var(--space-xl);
  position: relative;
  overflow: hidden;
}
.inner-hero__title {
  font-family: var(--font-display);
  font-size: var(--text-display);
  color: var(--color-warm-vellum);
  line-height: var(--leading-display);
}
.inner-hero__sub {
  font-size: var(--text-body-lg);
  color: rgba(242,232,217,0.65);
  margin-top: var(--space-md);
  max-width: 52ch;
}
.inner-hero__eyebrow { margin-bottom: var(--space-sm); }

/* Dark section variant */
.section--dark {
  background: var(--color-void);
  color: var(--color-warm-vellum);
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark p { color: inherit; }
.section--dark p { color: rgba(242,232,217,0.75); }

/* Mid-tone section */
.section--parchment {
  background: var(--color-parchment);
}
.section--mist {
  background: var(--color-mist);
}

/* ─── 14. RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --space-2xl: 5rem;
    --space-3xl: 8rem;
  }
  .nav-links  { display: none; }
  .nav-cta    { display: none; }
  #hamburger  { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
}

/* ─── 15. SKIP NAVIGATION ────────────────────────────────────── */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--color-veris-gold);
  color: var(--color-void);
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.625rem 1.25rem;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-nav:focus {
  top: 1rem;
  outline: 2px solid var(--color-void);
  outline-offset: 2px;
}

/* ─── SITE-WIDE DECORATIVE SIDE IMAGE ───────────────────────── */
.page-side-img {
  position: fixed;
  top: 0;
  right: 0;
  width: 22vw;
  height: 100vh;
  background: url('/images/main.jpg') center / 110% auto no-repeat;
  background-attachment: fixed;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: luminosity;
}
@media (max-width: 1200px) { .page-side-img { display: none; } }
