/* =================================================================
   MINERVA GLOBAL — Master Stylesheet
   Brand: Classical-modern. Navy + gold + cream. Serif headings,
   sans body, mono accents. Production-ready, edit-friendly.
================================================================= */

/* === RESET + BASELINE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* === DESIGN TOKENS === */
:root {
  /* Palette */
  --ink:        #0B1E2D;
  --ink-soft:   #1A3142;
  --ink-deep:   #06121C;
  --gold:       #B08A3E;
  --gold-soft:  #D4B26A;
  --gold-faint: rgba(176, 138, 62, 0.15);
  --cream:      #F5F1E8;
  --paper:      #FAF8F2;
  --rule:       #d8d4c8;
  --grey:       #6b6b6b;
  --grey-light: #999;
  --white:      #ffffff;

  /* Typography */
  --serif: 'Cormorant Garamond', 'Garamond', 'Georgia', serif;
  --sans:  'Inter Tight', 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --mono:  'JetBrains Mono', 'Consolas', 'Courier New', monospace;

  /* Layout */
  --max-w: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7rem);

  /* Shadows */
  --shadow-soft: 0 6px 30px rgba(11, 30, 45, 0.06);
  --shadow-card: 0 4px 20px rgba(11, 30, 45, 0.08);
  --shadow-dark: 0 20px 60px rgba(0, 0, 0, 0.35);
}

/* === BODY === */
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  font-feature-settings: 'kern' 1, 'liga' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
h4 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); }
em.gold, .heading-em { font-style: italic; color: var(--gold); font-weight: 500; }

p { margin-bottom: 1em; }
p.lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.45;
  color: var(--ink);
}

a { color: var(--gold); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--ink); }

ul, ol { list-style: none; }

.label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  display: inline-block;
  margin-bottom: 1rem;
}
.label-light { color: var(--gold-soft); }

.deck {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 50ch;
  margin-top: 0.5rem;
}

.rule-gold {
  width: 60px;
  height: 2px;
  background: var(--gold);
  border: none;
  margin: 1.5rem 0;
}
.rule-soft { background: var(--rule); width: 100%; height: 1px; }

/* === LAYOUT WRAPPERS === */
.wrap { width: 100%; max-width: var(--max-w); padding: 0 var(--gutter); margin: 0 auto; }
.wrap-tight { max-width: 920px; }

.section { padding: var(--section-y) 0; }
.section-dark { background: var(--ink); color: var(--cream); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--cream); }
.section-dark .label { color: var(--gold-soft); }
.section-dark .deck { color: rgba(245, 241, 232, 0.7); }
.section-paper { background: var(--paper); }
.section-cream { background: var(--cream); }

.section-head { margin-bottom: clamp(2rem, 4vw, 3.5rem); max-width: 760px; }
.section-head .label { margin-bottom: 0.85rem; }
.section-head h2 { margin-bottom: 0.6rem; }

.justify { text-align: justify; hyphens: auto; }

/* === HEADER / NAVIGATION === */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav-wrap.scrolled { border-bottom-color: var(--rule); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--ink);
}
.nav-brand img { width: 38px; height: 38px; }
.nav-brand-text {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--ink);
  letter-spacing: 0.005em;
  line-height: 1;
}
.nav-brand-text em { font-style: italic; color: var(--gold); }
.nav-brand-sub {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 3px;
}

.nav-menu { display: flex; gap: clamp(1.2rem, 2.5vw, 2.2rem); align-items: center; }
.nav-menu a {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.nav-menu a:hover::after,
.nav-menu a.active::after { width: 100%; }
.nav-menu a:hover { color: var(--ink); }
.nav-menu a.cta {
  background: var(--ink);
  color: var(--cream);
  padding: 9px 18px;
  border-radius: 1px;
  border: 1px solid var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-menu a.cta::after { display: none; }
.nav-menu a.cta:hover { background: transparent; color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed;
    inset: 64px 0 auto 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem var(--gutter) 2rem;
    border-bottom: 1px solid var(--rule);
    transform: translateY(-110%);
    transition: transform 0.3s ease;
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu a {
    padding: 1rem 0;
    border-bottom: 1px solid var(--rule);
    font-size: 1rem;
  }
  .nav-menu a.cta {
    margin-top: 1rem;
    border-radius: 1px;
    text-align: center;
  }
  .nav-menu a.cta::after { display: none; }
  .nav-brand-text { font-size: 1.15rem; }
  .nav-brand-sub { display: none; }
}

/* === HERO === */
.hero {
  background: var(--ink);
  color: var(--cream);
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 6rem);
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(212, 178, 106, 0.10), transparent 70%),
    radial-gradient(ellipse 40% 30% at 50% 100%, rgba(212, 178, 106, 0.06), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-seal { width: clamp(120px, 18vw, 180px); height: auto; margin: 0 auto clamp(1.5rem, 3vw, 2.5rem); display: block; }
.hero-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}
.hero h1 {
  color: var(--cream);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  margin-bottom: 0.4rem;
}
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--gold-soft);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.hero-rule {
  width: 80px;
  height: 1px;
  background: var(--gold-soft);
  margin: 0 auto clamp(1rem, 2vw, 1.5rem);
}
.hero-tagline {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.4em;
  color: var(--gold-soft);
  text-transform: uppercase;
}

.hero-scroll {
  margin-top: clamp(3rem, 5vw, 4rem);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  color: var(--gold-soft);
  text-transform: uppercase;
  cursor: pointer;
}
.hero-scroll svg {
  width: 14px;
  height: 14px;
  animation: bobUp 2s ease-in-out infinite;
}
@keyframes bobUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* === PAGE HEAD (non-home pages) === */
.page-head {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(4rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
}
.page-head::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 80% 0%, rgba(212, 178, 106, 0.08), transparent 70%);
  pointer-events: none;
}
.page-head .label { color: var(--gold-soft); }
.page-head h1 { color: var(--cream); margin-bottom: 1rem; font-size: clamp(2.5rem, 5vw, 4rem); }
.page-head h1 em { color: var(--gold-soft); }
.page-head .deck { color: rgba(245, 241, 232, 0.8); max-width: 60ch; }

/* === INTRO BLOCK === */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 760px) {
  .intro { grid-template-columns: 1fr; gap: 1.5rem; }
}
.intro-side .label { display: block; }
.intro-side h2 { margin-bottom: 1.2rem; max-width: 12ch; }
.intro-body p { font-size: 1.02rem; line-height: 1.75; }
.intro-body p.lead { margin-bottom: 1.5rem; }

/* === DIVISION CARDS GRID ============================================ */
/* 3 cards on top row, 2 centred below — using a 12-column grid for
   precise positioning. Cards have individual borders rather than the
   old hairline pattern so the centred bottom row reads cleanly. */
.div-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.div-card {
  grid-column: span 4;
  background: var(--white);
  padding: clamp(1.5rem, 2.5vw, 2.2rem);
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  color: var(--ink);
  min-height: 290px;
  border: 1px solid var(--rule);
  overflow: hidden;
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}
.div-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(176, 138, 62, 0.05) 70%, rgba(176, 138, 62, 0.10) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.div-card::after {
  /* Animated gold underline on hover */
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.div-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 18px 50px rgba(11, 30, 45, 0.10);
  color: var(--ink);
}
.div-card:hover::before { opacity: 1; }
.div-card:hover::after { width: 100%; }
.div-card:hover .div-card-link::after { transform: translateX(6px); }

/* Centre the 4th and 5th cards under the 3 above */
.div-card:nth-child(4) { grid-column: 3 / span 4; }
.div-card:nth-child(5) { grid-column: 7 / span 4; }

@media (max-width: 980px) {
  .div-grid { grid-template-columns: repeat(4, 1fr); }
  .div-card,
  .div-card:nth-child(4) { grid-column: span 2; }
  /* 5th card centered across the two columns */
  .div-card:nth-child(5) { grid-column: 2 / span 2; }
}
@media (max-width: 580px) {
  .div-grid { grid-template-columns: 1fr; }
  .div-card,
  .div-card:nth-child(4),
  .div-card:nth-child(5) { grid-column: span 1; }
}

.div-card-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.div-card h3 { margin-bottom: 0.5rem; font-size: 1.6rem; position: relative; z-index: 1; }
.div-card .div-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.div-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 1;
}
.div-card-link {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  z-index: 1;
}
.div-card-link::after {
  content: '→';
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--sans);
  font-size: 0.95rem;
}

/* === STATS / FACTS ROW === */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.fact {
  background: var(--paper);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  border-left: 2px solid var(--gold);
}
.fact-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.fact-value {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}
.fact-sub { font-size: 0.8rem; color: var(--grey); line-height: 1.4; }

/* === B-BBEE BANNER === */
.bbbee {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3.5rem);
  border-radius: 2px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.bbbee::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 40% 80% at 10% 50%, rgba(212, 178, 106, 0.1), transparent 70%);
}
.bbbee-level {
  font-family: var(--serif);
  font-size: clamp(5rem, 10vw, 8rem);
  color: var(--gold-soft);
  line-height: 0.85;
  font-weight: 500;
  position: relative;
}
.bbbee-level small {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--gold-soft);
  margin-top: 0.3rem;
  font-weight: 500;
}
.bbbee-text { position: relative; }
.bbbee-text .label { color: var(--gold-soft); margin-bottom: 0.6rem; }
.bbbee-text h3 { color: var(--cream); margin-bottom: 0.6rem; }
.bbbee-text p { color: rgba(245, 241, 232, 0.85); font-size: 0.95rem; line-height: 1.6; max-width: 60ch; }
@media (max-width: 600px) {
  .bbbee { grid-template-columns: 1fr; text-align: center; }
}

/* === VALUES GRID === */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.value-item .value-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.value-item p { font-size: 0.95rem; line-height: 1.6; color: var(--ink-soft); }

/* === SERVICE LINES (COMPLIANCE) === */
.service-lines {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 2rem;
}
.service-line { border-top: 2px solid var(--gold); padding-top: 1.2rem; }
.service-line-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.service-line h4 { margin-bottom: 0.8rem; }
.service-line ul li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.5rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule);
}
.service-line ul li:last-child { border-bottom: none; }
.service-line ul li::before {
  content: '·';
  position: absolute;
  left: 0;
  top: 0.2rem;
  color: var(--gold);
  font-size: 1.6rem;
  line-height: 1;
  font-weight: 700;
}

/* === LEADERSHIP GRID === */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.leader {
  text-align: center;
  background: var(--paper);
  padding: clamp(2rem, 3vw, 2.5rem) clamp(1.5rem, 2.5vw, 2rem);
  border-top: 2px solid var(--gold);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.leader:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.leader-mark {
  width: 90px;
  height: 90px;
  margin: 0 auto 1.2rem;
  background: var(--ink);
  color: var(--gold-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.leader h3 { margin-bottom: 0.3rem; font-size: 1.4rem; }
.leader-role {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.leader-bio {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-soft);
  text-align: left;
}

/* === CAPABILITY GRID === */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.8rem, 3vw, 2.5rem) clamp(2rem, 4vw, 3rem);
}
.cap-item {
  padding-left: 1.2rem;
  border-left: 1px solid var(--gold);
}
.cap-item .label { margin-bottom: 0.5rem; }
.cap-item h4 { margin-bottom: 0.5rem; line-height: 1.15; }
.cap-item p { font-size: 0.95rem; line-height: 1.55; color: var(--ink-soft); }

/* === CONTACT === */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
}
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-block { margin-bottom: 2rem; }
.contact-block .label { display: block; margin-bottom: 0.5rem; }
.contact-block .contact-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 0.2rem;
}
.contact-block .contact-line {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.contact-block .contact-line a { color: var(--ink-soft); }
.contact-block .contact-line a:hover { color: var(--gold); }

/* Contact form */
.contact-form {
  background: var(--paper);
  padding: clamp(1.8rem, 3vw, 2.5rem);
  border: 1px solid var(--rule);
}
.contact-form h3 { margin-bottom: 0.5rem; }
.contact-form p { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 1.5rem; }
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 0.7rem 0.9rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  border-radius: 1px;
  transition: border-color 0.2s ease;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
}
.field textarea { min-height: 130px; resize: vertical; }
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.9rem 1.8rem;
  border: 1px solid var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}
.btn.btn-gold:hover { background: transparent; color: var(--gold); }

/* === FOOTER === */
.site-footer {
  background: var(--ink-deep);
  color: rgba(245, 241, 232, 0.75);
  padding: clamp(3.5rem, 6vw, 5rem) 0 1.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
}
.site-footer h4 {
  color: var(--cream);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 500;
}
.site-footer a { color: rgba(245, 241, 232, 0.75); }
.site-footer a:hover { color: var(--gold-soft); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand .footer-logo {
  width: 60px; height: 60px; margin-bottom: 1rem;
}
.footer-brand-name {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--cream);
  margin-bottom: 0.3rem;
}
.footer-brand-sub {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--gold-soft);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-brand p { font-size: 0.85rem; line-height: 1.6; max-width: 32ch; color: rgba(245, 241, 232, 0.6); }
.footer-col ul li { margin-bottom: 0.45rem; }
.footer-bottom {
  border-top: 1px solid rgba(212, 178, 106, 0.2);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: rgba(245, 241, 232, 0.5);
  text-transform: uppercase;
}

/* ====================================================================
   MOTION SYSTEM
   Animations are tasteful, slow, and elegant — never jittery. Easing
   uses cubic-bezier(0.16, 1, 0.3, 1) "expo-out" for natural settling.
==================================================================== */

/* === Page entry fade (load) ===================================== */
body { opacity: 1; }
html.js-ready body {
  opacity: 0;
  animation: pageIn 0.6s 0.05s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes pageIn {
  to { opacity: 1; }
}

/* === Scroll-revealed elements (.reveal) ========================== */
.reveal { opacity: 1; transform: none; }
html.js-ready .reveal:not(.in) {
  opacity: 0;
  transform: translateY(28px);
}
html.js-ready .reveal {
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
html.js-ready .reveal.in { opacity: 1; transform: none; }

.reveal-d-1 { transition-delay: 0.12s; }
.reveal-d-2 { transition-delay: 0.24s; }
.reveal-d-3 { transition-delay: 0.36s; }
.reveal-d-4 { transition-delay: 0.48s; }
.reveal-d-5 { transition-delay: 0.60s; }

/* === Staggered children (.stagger > children) ==================== */
.stagger > * {
  opacity: 1;
  transform: none;
}
html.js-ready .stagger:not(.in) > * {
  opacity: 0;
  transform: translateY(24px);
}
html.js-ready .stagger > * {
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
html.js-ready .stagger.in > * { opacity: 1; transform: none; }

/* === Heading mask reveal (.mask-reveal) ========================== */
.mask-reveal {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.mask-reveal > span {
  display: inline-block;
  transform: translateY(0);
}
html.js-ready .mask-reveal:not(.in) > span {
  transform: translateY(110%);
}
html.js-ready .mask-reveal > span {
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
html.js-ready .mask-reveal.in > span { transform: translateY(0); }

/* === Gold rule draw-in animation (.rule-gold-draw) =============== */
.rule-gold-draw {
  background: var(--gold);
  height: 2px;
  border: none;
  margin: 1.5rem 0;
  width: 60px;
  transform-origin: left center;
  transform: scaleX(1);
}
html.js-ready .rule-gold-draw:not(.in) { transform: scaleX(0); }
html.js-ready .rule-gold-draw {
  transition: transform 1.2s 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
html.js-ready .rule-gold-draw.in { transform: scaleX(1); }

/* === Hero seal float (ambient) =================================== */
.hero-seal {
  animation: sealFloat 6s ease-in-out infinite;
}
@keyframes sealFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* === Hero entrance sequence ====================================== */
html.js-ready .hero-seal {
  opacity: 0;
  animation:
    sealEntry 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards,
    sealFloat 6s ease-in-out 1.5s infinite;
}
@keyframes sealEntry {
  from { opacity: 0; transform: translateY(20px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

html.js-ready .hero-label,
html.js-ready .hero h1,
html.js-ready .hero-sub,
html.js-ready .hero-rule,
html.js-ready .hero-tagline,
html.js-ready .hero-scroll {
  opacity: 0;
  animation: fadeUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
html.js-ready .hero-label    { animation-delay: 0.5s; }
html.js-ready .hero h1       { animation-delay: 0.7s; }
html.js-ready .hero-sub      { animation-delay: 0.9s; }
html.js-ready .hero-rule     { animation-delay: 1.1s; transform-origin: center; }
html.js-ready .hero-tagline  { animation-delay: 1.3s; }
html.js-ready .hero-scroll   { animation-delay: 1.7s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === Hero rule (separate width-grow animation) =================== */
html.js-ready .hero-rule {
  animation:
    fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1.1s forwards,
    ruleGrow 1.4s cubic-bezier(0.16, 1, 0.3, 1) 1.1s forwards;
  width: 0;
}
@keyframes ruleGrow {
  from { width: 0; }
  to   { width: 80px; }
}

/* === Counter (animated number) =================================== */
.count-up {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* === Logo glow pulse (ambient) =================================== */
.hero::before {
  animation: glowPulse 8s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.85; }
}

/* === Smooth nav appearance on scroll ============================= */
.nav-wrap {
  transition: background 0.4s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.nav-wrap.scrolled {
  box-shadow: 0 2px 24px rgba(11, 30, 45, 0.04);
}

/* === Link underline animation (nav) ============================== */
.nav-menu a::after {
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* === Discover arrow gentler bob ================================== */
.hero-scroll svg {
  animation: bobUp 2.4s cubic-bezier(0.4, 0, 0.4, 1) infinite;
}

/* === Leader card on hover ======================================== */
.leader {
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s ease,
    border-top-color 0.4s ease;
}
.leader:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(11, 30, 45, 0.12);
  border-top-color: var(--gold-soft);
}
.leader-mark { transition: background 0.4s ease, color 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.leader:hover .leader-mark {
  transform: scale(1.05);
}

/* === Button hover ================================================ */
.btn {
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease, color 0.4s ease, transform 0.3s ease;
}
.btn:hover {
  transform: translateY(-1px);
}

/* === Fact card subtle hover ====================================== */
.fact {
  transition: background 0.4s ease, border-left-color 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.fact:hover {
  background: var(--cream);
  transform: translateX(2px);
}

/* === Service line cards: gentle scale of bullet on hover ========= */
.service-line { transition: border-top-color 0.4s ease; }
.service-line:hover { border-top-color: var(--gold-soft); }
.service-line ul li {
  transition: padding-left 0.3s ease, color 0.3s ease;
}
.service-line ul li:hover {
  padding-left: 1.8rem;
  color: var(--ink);
}

/* === Reduce motion respect ======================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal, .stagger > *, .mask-reveal > span,
  .rule-gold-draw, .hero-seal, .hero-label, .hero h1,
  .hero-sub, .hero-rule, .hero-tagline, .hero-scroll {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* === UTILITIES === */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.divider {
  width: 100%; height: 1px; background: var(--rule); margin: 3rem 0;
}
.callout {
  background: var(--paper);
  border-left: 3px solid var(--gold);
  padding: 1.5rem 2rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.callout strong {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
