/* ============================================================
   GLENRISE INVESTMENTS — base.css
   Variables, reset, typography, layout primitives
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600&display=swap');

/* -------- Design tokens — Glenrise navy & steel -------- */
:root {
  /* Palette — drawn from the Glenrise logo (navy + silver) */
  --ink:        #0f1430;   /* deep navy near-black */
  --ink-soft:   #1c2350;
  --bone:       #f5f6fa;   /* cool off-white */
  --bone-deep:  #e6e8f0;
  --paper:      #fbfcfe;
  --stone:      #8a90a3;   /* cool steel grey */
  --stone-soft: #b8bccb;
  --rust:       #2a2f66;   /* PRIMARY — Glenrise navy */
  --rust-deep:  #1b2050;
  --ochre:      #c0c4d0;   /* SECONDARY — silver highlight from logo */
  --moss:       #2a2f66;   /* alias to navy */
  --gold:       #c0c4d0;   /* light steel highlight */
  --accent-glow: #6a73c2;  /* lighter navy glow */

  /* Type */
  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body:    'Poppins', system-ui, sans-serif;
  --font-mono:    'Poppins', system-ui, sans-serif;

  /* Spacing scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;
  --s-11: 12rem;

  /* Layout */
  --max-width: 1400px;
  --gutter: clamp(1.75rem, 4vw, 3rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* -------- Reset -------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bone);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* Subtle paper grain — adds warmth, avoids flat AI look */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* -------- Typography -------- */
.display, h1.display, .hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--ink);
}

h1 { font-size: clamp(2.5rem, 6.5vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }

.italic { font-style: italic; }
em { font-style: italic; color: var(--rust-deep); }

p { max-width: 65ch; }
.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

/* Eyebrow — small uppercase labels with monospaced register */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--rust);
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--rust);
}
.eyebrow.no-line::before { display: none; }

/* Section number — large editorial markers */
.section-no {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--stone);
}

/* -------- Layout primitives -------- */
.shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  padding: 1.5rem 0;
  position: relative;
}
.section--tight { padding: 1.5rem 0; }
.section--xl    { padding: 1.5rem 0; }

.divider {
  height: 1px;
  background: var(--ink);
  opacity: 0.15;
  width: 100%;
}
.divider--rust { background: var(--rust); opacity: 0.4; }

/* Grid system */
.grid { display: grid; gap: var(--s-6); }
.grid-12 { grid-template-columns: repeat(12, 1fr); gap: var(--s-5); }
@media (max-width: 880px) {
  .grid-12 { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 540px) {
  .grid-12 { grid-template-columns: repeat(2, 1fr); }
}

/* -------- Inverted / dark sections -------- */
.dark {
  background: var(--ink);
  color: var(--bone);
}
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--bone); }
.dark .lead { color: var(--stone-soft); }
.dark .eyebrow { color: var(--ochre); }
.dark .eyebrow::before { background: var(--ochre); }
.dark .divider { background: var(--bone); opacity: 0.18; }

/* -------- Buttons (unified pill style — matches hero) -------- */
.btn,
.btn--pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: 0.9rem 1rem 0.9rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border: 1px solid var(--ochre);
  background: var(--ochre);
  color: var(--ink);
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.3s var(--ease),
              color 0.3s var(--ease),
              border-color 0.3s var(--ease),
              transform 0.3s var(--ease);
  position: relative;
}
.btn .arrow,
.btn--pill .arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--ochre);
  font-size: 0.85rem;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn:hover,
.btn--pill:hover {
  background: var(--bone);
  border-color: var(--bone);
  color: var(--ink);
  transform: translateY(-2px);
}
.btn:hover .arrow,
.btn--pill:hover .arrow {
  transform: translateX(4px);
  background: var(--rust);
  color: var(--bone);
}

/* Ghost variant — outlined pill */
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost .arrow { background: var(--ink); color: var(--ochre); }
.btn--ghost:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.btn--ghost:hover .arrow { background: var(--ochre); color: var(--ink); }

/* Rust/navy variant */
.btn--rust { background: var(--rust); border-color: var(--rust); color: var(--bone); }
.btn--rust .arrow { background: var(--bone); color: var(--rust); }
.btn--rust:hover { background: var(--rust-deep); border-color: var(--rust-deep); color: var(--bone); }
.btn--rust:hover .arrow { background: var(--ochre); color: var(--ink); }

/* Dark sections */
.dark .btn,
.dark .btn--pill { background: var(--ochre); color: var(--ink); border-color: var(--ochre); }
.dark .btn:hover,
.dark .btn--pill:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.dark .btn--ghost { background: transparent; border-color: var(--bone); color: var(--bone); }
.dark .btn--ghost .arrow { background: var(--bone); color: var(--ink); }
.dark .btn--ghost:hover { background: var(--bone); color: var(--ink); }

/* Link with underline animation */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-weight: 500;
  font-size: 0.95rem;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  transition: gap 0.3s var(--ease);
}
.link-arrow:hover { gap: var(--s-4); }

/* -------- Helpers -------- */
.mono { font-family: var(--font-mono); letter-spacing: 0; }
.serif { font-family: var(--font-display); }
.upper { text-transform: uppercase; letter-spacing: 0.12em; }
.rust { color: var(--rust); }
.stone { color: var(--stone); }
.center { text-align: center; }

/* Animate-in on load */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  animation: reveal 1.1s var(--ease) forwards;
  animation-delay: calc(0.9s + var(--reveal-offset, 0s));
}
.reveal[data-delay="1"] { --reveal-offset: 0.05s; }
.reveal[data-delay="2"] { --reveal-offset: 0.18s; }
.reveal[data-delay="3"] { --reveal-offset: 0.32s; }
.reveal[data-delay="4"] { --reveal-offset: 0.46s; }
.reveal[data-delay="5"] { --reveal-offset: 0.6s; }
.reveal[data-delay="6"] { --reveal-offset: 0.74s; }

@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

/* -------- Intro loader -------- */
.intro-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  animation: intro-out 0.9s cubic-bezier(0.76,0,0.24,1) forwards;
  animation-delay: 1.6s;
  pointer-events: none;
}
.intro-loader__mark {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  color: var(--bone);
  display: flex;
  overflow: hidden;
  text-transform: uppercase;
}
/* Each letter slides up individually */
.intro-loader__mark .l {
  display: inline-block;
  transform: translateY(115%);
  animation: intro-letter 0.65s cubic-bezier(0.22,0.61,0.36,1) forwards;
}
.intro-loader__mark .l:nth-child(1) { animation-delay: 0.05s; }
.intro-loader__mark .l:nth-child(2) { animation-delay: 0.10s; }
.intro-loader__mark .l:nth-child(3) { animation-delay: 0.15s; }
.intro-loader__mark .l:nth-child(4) { animation-delay: 0.20s; }
.intro-loader__mark .l:nth-child(5) { animation-delay: 0.25s; }
.intro-loader__mark .l:nth-child(6) { animation-delay: 0.30s; }
.intro-loader__mark .l:nth-child(7) { animation-delay: 0.35s; }
.intro-loader__mark .l:nth-child(8) { animation-delay: 0.40s; }

.intro-loader__bar {
  width: 48px;
  height: 1px;
  background: rgba(245,246,250,0.25);
  position: relative;
  overflow: hidden;
}
.intro-loader__bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ochre);
  transform: scaleX(0);
  transform-origin: left;
  animation: intro-bar 1.1s cubic-bezier(0.22,0.61,0.36,1) 0.5s forwards;
}

@keyframes intro-letter {
  to { transform: translateY(0); }
}
@keyframes intro-bar {
  to { transform: scaleX(1); }
}
@keyframes intro-out {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-100%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .intro-loader { display: none; }
}
/* ============================================================
   GLENRISE INVESTMENTS — components.css
   Navigation, footer, cards, modules
   ============================================================ */

/* -------- Top bar (utility strip above nav) -------- */
.utility-bar {
  background: var(--ink);
  color: var(--bone);
  font-size: 0.78rem;
  padding: 0.6rem 0;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.utility-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-4);
}
.utility-bar a { color: var(--bone); opacity: 0.8; transition: opacity 0.2s; }
.utility-bar a:hover { opacity: 1; color: var(--ochre); }
.utility-bar__group { display: flex; gap: var(--s-5); align-items: center; }
.utility-bar__dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--rust);
  border-radius: 50%;
  margin-right: var(--s-2);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* -------- Main navigation -------- */
.nav {
  background: rgba(15, 20, 48, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  -webkit-backdrop-filter: blur(18px) saturate(1.8);
  backdrop-filter: blur(18px) saturate(1.8);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.nav--scrolled {
  background: rgba(15, 20, 48, 0.96);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}
.nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  gap: var(--s-6);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--bone);
}
.brand__logo {
  height: 2.2rem;
  width: auto;
  filter: brightness(0) invert(1) opacity(0.92);
}
.brand__mark {
  display: inline-block;
  width: 36px; height: 36px;
  flex-shrink: 0;
}
.brand__name { line-height: 1; }
.brand__name small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--stone);
  text-transform: uppercase;
  margin-top: 2px;
  font-weight: 400;
}

.nav__links {
  display: flex;
  gap: var(--s-7);
  align-items: center;
}
.nav__link {
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: var(--s-2) 0;
  color: var(--bone);
  transition: color 0.2s;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--ochre);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__link:hover { color: var(--ochre); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__link.active { color: var(--ochre); }
.nav__link.active::after { transform: scaleX(1); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: 0.65rem 1rem 0.65rem 1.4rem;
  background: rgba(244, 239, 230, 0.1);
  color: var(--bone);
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid rgba(244, 239, 230, 0.28);
  border-radius: 999px;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.nav__cta .arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(244, 239, 230, 0.15);
  color: var(--bone);
  font-size: 0.8rem;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s;
}
.nav__cta:hover {
  background: var(--ochre);
  border-color: var(--ochre);
  color: var(--ink);
  transform: translateY(-1px);
}
.nav__cta:hover .arrow { transform: translateX(3px); background: var(--ink); color: var(--ochre); }

/* Mobile menu */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  padding: var(--s-2);
  cursor: pointer;
}
.nav__toggle-bar {
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--bone);
  margin: 6px 0;
  transition: 0.3s;
}

@media (max-width: 920px) {
  .nav__links {
    position: fixed;
    inset: 0 0 0 30%;
    background: var(--ink);
    flex-direction: column;
    justify-content: center;
    gap: var(--s-5);
    padding: var(--s-7);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
  }
  .nav__links.open { transform: translateX(0); }
  .nav__links .nav__link { color: var(--bone); font-size: 1.4rem; font-family: var(--font-display); }
  .nav__links .nav__cta { margin-top: var(--s-4); }
  .nav__toggle { display: block; z-index: 101; position: relative; }
}

/* -------- Nav: dropdown panels -------- */
.nav__item { position: relative; }
.nav__chevron {
  display: inline-block;
  font-size: 0.78rem;
  opacity: 0.5;
  margin-left: 2px;
  transition: transform 0.2s var(--ease);
}
.nav__item:hover .nav__chevron,
.nav__item:focus-within .nav__chevron { transform: rotate(90deg); }
.nav__panel {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: -1rem;
  min-width: 210px;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s 0.22s;
  z-index: 200;
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}
.nav__item:hover .nav__panel,
.nav__item:focus-within .nav__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s;
}
.nav__panel-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ochre);
  padding: 0.6rem 1.25rem 0.35rem;
}
.nav__panel-link + .nav__panel-label { margin-top: 0.75rem; }
.nav__panel-link {
  display: block;
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(245, 246, 250, 0.75);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav__panel-link:hover {
  color: var(--ochre);
  background: rgba(255, 255, 255, 0.05);
}
@media (max-width: 920px) {
  .nav__item { width: 100%; }
  .nav__panel {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0;
    padding: 0.2rem 0 0.4rem 1rem;
    margin-top: 0.2rem;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transition: none;
  }
  .nav__panel-label { display: none; }
  .nav__panel-link {
    font-size: 1rem;
    font-family: var(--font-display);
    padding: 0.35rem 0.5rem;
    color: rgba(245, 246, 250, 0.55);
  }
  .nav__chevron { display: none; }
}

/* -------- Footer -------- */
.footer {
  background: var(--ink);
  color: var(--bone);
  padding: var(--s-7) 0 var(--s-5);
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: 'GLENRISE';
  position: absolute;
  bottom: -3rem;
  left: -1rem;
  font-family: var(--font-display);
  font-size: 22vw;
  font-weight: 300;
  letter-spacing: -0.04em;
  color: var(--ink-soft);
  pointer-events: none;
  line-height: 0.8;
  white-space: nowrap;
  z-index: 0;
}
.footer__inner { position: relative; z-index: 1; }

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s-6);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid rgba(244, 239, 230, 0.15);
}
@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer__top { grid-template-columns: 1fr; }
}

.footer__heading {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: var(--s-4);
}
.footer__list li { margin-bottom: var(--s-2); }
.footer__list a {
  color: var(--bone);
  opacity: 0.75;
  font-size: 0.95rem;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.footer__list a:hover { opacity: 1; color: var(--ochre); gap: var(--s-3); }

.footer__brand {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: var(--s-3);
  letter-spacing: -0.01em;
}
.footer__tag {
  color: var(--stone-soft);
  font-size: 0.95rem;
  max-width: 32ch;
  margin-bottom: var(--s-5);
}
.footer__address {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--stone-soft);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--s-5);
  flex-wrap: wrap;
  gap: var(--s-4);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--stone-soft);
  letter-spacing: 0.05em;
}

/* -------- Division card (used on home & elsewhere) -------- */
.division {
  background: var(--paper);
  border: 1px solid rgba(26, 26, 23, 0.08);
  padding: var(--s-6);
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  min-height: 480px;
}
.division::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent, var(--rust));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.division:hover { transform: translateY(-4px); border-color: var(--ink); }
.division:hover::before { transform: scaleX(1); }

.division__no {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--stone);
  letter-spacing: 0.15em;
  margin-bottom: var(--s-5);
}
.division__name {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: var(--s-2);
  letter-spacing: -0.015em;
  line-height: 1;
}
.division__name .accent { color: var(--accent, var(--rust)); font-style: italic; }
.division__sub {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--stone);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--s-5);
}
.division__desc {
  color: var(--ink-soft);
  margin-bottom: var(--s-6);
  flex-grow: 1;
}
.division__art {
  width: 100%;
  height: 140px;
  margin-bottom: var(--s-5);
  background: var(--bone-deep);
  position: relative;
  overflow: hidden;
}
.division__cta {
  margin-top: auto;
  padding-top: var(--s-4);
  border-top: 1px solid rgba(26, 26, 23, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.division__cta a {
  font-weight: 500;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--ink);
  transition: gap 0.3s var(--ease), color 0.3s;
}
.division__cta a:hover { gap: var(--s-3); color: var(--accent, var(--rust)); }

/* -------- Stat block -------- */
.stat {
  padding: var(--s-4) 0;
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.dark .stat__num { color: var(--bone); }
.stat__num .unit {
  font-size: 0.5em;
  vertical-align: top;
  color: var(--rust);
  margin-left: 4px;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--stone);
  margin-top: var(--s-3);
}

/* -------- Capability list -------- */
.cap-list {
  border-top: 1px solid rgba(26, 26, 23, 0.15);
}
.cap-list__item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: var(--s-5);
  padding: var(--s-5) 0;
  border-bottom: 1px solid rgba(26, 26, 23, 0.1);
  align-items: baseline;
  transition: padding 0.3s var(--ease);
  cursor: default;
}
.cap-list__item:hover { padding-left: var(--s-3); }
.cap-list__no {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--stone);
}
.cap-list__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 400;
}
.cap-list__meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--rust);
  letter-spacing: 0.06em;
}
@media (max-width: 640px) {
  .cap-list__item { grid-template-columns: 40px 1fr; }
  .cap-list__meta { grid-column: 1 / -1; padding-left: 40px + var(--s-5); }
}

/* -------- Marquee strip (for partners / sectors) -------- */
.marquee {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: var(--s-4) 0;
  overflow: hidden;
  background: var(--bone-deep);
}
.marquee__track {
  display: flex;
  gap: var(--s-7);
  animation: marquee 32s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.marquee__item {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: var(--s-7);
}
.marquee__item::after {
  content: '✦';
  color: var(--rust);
  font-style: normal;
  font-size: 0.9rem;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* -------- CTA strip -------- */
.cta-strip {
  background: var(--rust);
  color: var(--bone);
  padding: 1.5rem 0;
  position: relative;
  overflow: hidden;
}
.cta-strip__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-7);
  align-items: center;
}
@media (max-width: 720px) {
  .cta-strip__inner { grid-template-columns: 1fr; }
}
.cta-strip h2 {
  color: var(--bone);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  max-width: 18ch;
}
.cta-strip h2 em { color: var(--ink); font-style: italic; }
.cta-strip .btn {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bone);
}
.cta-strip .btn:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }

/* -------- Crumbs / page meta -------- */
.crumbs {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  display: flex;
  gap: var(--s-3);
  align-items: center;
}
.crumbs a { color: var(--stone); }
.crumbs a:hover { color: var(--rust); }
.crumbs__sep { opacity: 0.5; }

/* -------- Page header (used on inner pages) -------- */
.page-header {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(245,246,250,0.1);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--bone);
  background: var(--ink);
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url('../assets/images/shared/page-header-bg.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.55) saturate(0.85);
  transform: scale(1.06);
  animation: hero-zoom 12s var(--ease) forwards;
  animation-delay: 0.9s;
}
.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 75% 30%, rgba(15,20,48,0.4) 0%, rgba(15,20,48,0.85) 70%),
    linear-gradient(180deg, rgba(15,20,48,0.6) 0%, rgba(15,20,48,0.85) 100%);
}
.page-header .crumbs,
.page-header .crumbs a { color: var(--stone-soft); }
.page-header .crumbs a:hover { color: var(--ochre); }
.page-header__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
  align-items: end;
}
@media (max-width: 820px) {
  .page-header__layout { grid-template-columns: 1fr; }
}
.page-header h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.92;
  color: var(--bone);
}
.page-header h1 em { color: var(--ochre); font-style: italic; }
.page-header__intro { color: rgba(245,246,250,0.85); font-size: 1.05rem; }

/* Brand logo image (replaces text brand mark) */
.brand__logo {
  display: block;
  height: 38px;
  width: auto;
  object-fit: contain;
}
@media (max-width: 520px) { .brand__logo { height: 30px; } }
/* ============================================================
   GLENRISE INVESTMENTS — pages.css
   Page-specific styles
   ============================================================ */

/* =========================
   HOME — Hero
   ========================= */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--bone);
  height: calc(100svh - 2.5rem); /* subtracts utility-bar only; nav overlaps from above */
  margin-top: -4.4rem; /* pull hero up behind the transparent nav */
  min-height: 480px;
  display: flex;
  align-items: stretch;
  isolation: isolate;
  background: var(--ink);
}
.hero__videos {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.78) saturate(0.9);
  transform: translateX(100%);
  transition: transform 0.7s cubic-bezier(0.77, 0, 0.175, 1);
}
.hero__video.is-active  { transform: translateX(0); }
.hero__video.is-leaving { transform: translateX(-100%); }
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(160deg, rgba(15,20,48,0.30) 0%, rgba(15,20,48,0.72) 100%);
}

/* Editorial hero layout — centred content group */
.hero__layout {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s-5);
  width: 100%;
  height: 100%;
  padding-top: calc(4.4rem + var(--gutter)); /* nav height + gutter so content clears the transparent nav */
  padding-bottom: var(--gutter);
}

/* Top eyebrow row */
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,246,250,0.4);
  /* No bottom padding — title's flex:1 + internal padding creates the gap */
}
.hero__rule {
  flex: 1;
  height: 1px;
  background: rgba(245,246,250,0.14);
  display: block;
}

/* Giant editorial title */
.hero__title {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: clamp(2.85rem, 7.5vw, 7.125rem);
  font-weight: 700;
  line-height: 0.93;
  letter-spacing: -0.04em;
  color: var(--bone);
  margin: 0;
}
.hero__line { display: block; }
.hero__line--em em {
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(245,246,250,0.55);
}

/* Bottom footer row: copy left, CTA right — separated by thin rule */
.hero__foot {
  display: grid;
  grid-template-columns: 1.5fr auto 0.5fr;
  gap: var(--s-6);
  align-items: center;
  padding-top: var(--s-5);
  border-top: 1px solid rgba(245,246,250,0.12);
}
.hero__foot > .btn { justify-self: end; }
.hero__copy {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(245,246,250,0.6);
  max-width: 52ch;
}
.hero__certs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  transform: translateX(-3rem);
}
.hero__cert {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__cert-logo {
  height: 74px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.82;
  transition: opacity 0.22s, transform 0.22s var(--ease);
  display: block;
}
.hero__cert:hover .hero__cert-logo {
  opacity: 1;
  transform: scale(1.14);
}
.hero__cert-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(15, 20, 48, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  padding: 0.6rem 0.9rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s, transform 0.18s var(--ease);
  z-index: 20;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hero__cert-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(255, 255, 255, 0.14);
}
.hero__cert:hover .hero__cert-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.hero__cert-tooltip strong {
  display: block;
  font-size: 0.78rem;
  font-family: var(--font-display);
  color: var(--bone);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.hero__cert-tooltip span {
  display: block;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--stone-soft);
  letter-spacing: 0.06em;
  margin-top: 0.2rem;
  text-transform: uppercase;
}

/* Scroll indicator — absolute, right edge, bottom-aligned */
.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: var(--s-7);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,246,250,0.3);
  writing-mode: vertical-rl;
}
.hero__scroll-line {
  width: 1px;
  height: 44px;
  background: rgba(245,246,250,0.18);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ochre);
  transform: translateY(-100%);
  animation: scroll-drop 1.8s cubic-bezier(0.22,0.61,0.36,1) 2.4s infinite;
}
@keyframes scroll-drop {
  0%   { transform: translateY(-100%); }
  55%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

@media (max-width: 980px) {
  .hero__title { font-size: clamp(3rem, 11vw, 6rem); }
  .hero__foot {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-4);
  }
  .hero__copy { grid-column: 1 / -1; }
  .hero__scroll { display: none; }
}
@media (max-width: 600px) {
  .hero__layout {
    padding-top: var(--s-6);
    padding-bottom: var(--s-6);
  }
  .hero__title { font-size: clamp(2.6rem, 13vw, 4rem); }
}

/* =========================
   HOME — Divisions
   ========================= */
.divisions {
  padding: 1.5rem 0;
  background: var(--ink);
  color: var(--bone);
}
.divisions__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  padding-bottom: var(--s-5);
  align-items: end;
}
@media (max-width: 780px) {
  .divisions__header { grid-template-columns: 1fr; }
}
.divisions__title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  max-width: 14ch;
  color: var(--bone);
}
.divisions__title em { color: var(--ochre); font-style: italic; }
.divisions__intro {
  color: var(--stone-soft);
  font-size: 1rem;
  max-width: 42ch;
}

/* Bento grid — tall primary card left, two stacked right */
.divisions__bento {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  grid-template-rows: 380px 380px;
  gap: 3px;
}
@media (max-width: 900px) {
  .divisions__bento {
    grid-template-columns: 1fr;
    grid-template-rows: 500px 340px 340px;
  }
}
@media (max-width: 540px) {
  .divisions__bento {
    grid-template-rows: 420px 300px 300px;
  }
}

/* Division card */
.div-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s var(--ease);
}
.div-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(192,196,208,0.35);
  transition: box-shadow 0.45s var(--ease);
}
.div-card:hover::after {
  box-shadow: inset 0 0 0 2px rgba(192,196,208,0.9);
}
.div-card--primary {
  grid-row: 1 / 3;
}
@media (max-width: 900px) {
  .div-card--primary { grid-row: auto; }
}

.div-card__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.62) saturate(0.75);
  transition: transform 0.85s cubic-bezier(0.22,0.61,0.36,1),
              filter 0.55s ease;
}
.div-card__img--worx     { background-image: url('../assets/images/home/divisions/glenworx.jpeg'); }
.div-card__img--quip     { background-image: url('../assets/images/home/divisions/management_01.jpeg'); }
.div-card__img--leisure  { background-image: url('../assets/images/home/divisions/glenleisure.jpg'); }
.div-card__img--psl      { background-image: url('../assets/images/home/divisions/champions-2023.jpg'); background-position: top center; }
.div-card__img--cup      { background-image: url('../assets/images/home/divisions/action-3.jpg'); background-position: center; }
.div-card__img--chibuku  { background-image: url('../assets/images/home/divisions/action-5.jpg'); background-position: center; }

.div-card:hover .div-card__img {
  transform: scale(1.07);
  filter: brightness(0.28) saturate(0.55);
}

.div-card__body {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--s-6);
  background: linear-gradient(
    to top,
    rgba(15,20,48,0.96) 0%,
    rgba(15,20,48,0.75) 38%,
    transparent 62%
  );
}

.div-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.div-card__no {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  color: rgba(245,246,250,0.38);
  transition: color 0.3s;
}
.div-card:hover .div-card__no {
  color: var(--ochre);
}
.div-card__tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone);
  border: 1px solid rgba(245,246,250,0.28);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(15,20,48,0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.div-card__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.div-card__name {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 600;
  color: var(--bone);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  transition: transform 0.4s var(--ease);
}
.div-card:hover .div-card__name {
  transform: translateY(-4px);
}
.div-card--primary .div-card__name {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}
.div-card__desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(245,246,250,0.6);
  max-width: 40ch;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: max-height 0.4s var(--ease), opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.div-card:hover .div-card__desc {
  max-height: 8rem;
  opacity: 1;
  transform: translateY(0);
}
.div-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--bone);
  border-bottom: 1px solid rgba(245,246,250,0.35);
  padding-bottom: 3px;
  align-self: flex-start;
  transition: gap 0.3s var(--ease), border-color 0.3s, color 0.3s;
}
.div-card__link:hover {
  gap: var(--s-3);
  border-color: var(--ochre);
  color: var(--ochre);
}

/* =========================
   HOME — Capabilities Animated Grid
   ========================= */
.capabilities {
  padding: 1.5rem 0;
  background: var(--ink);
  color: var(--bone);
}
.capabilities__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  padding-bottom: var(--s-5);
  align-items: end;
}
@media (max-width: 780px) {
  .capabilities__header { grid-template-columns: 1fr; }
}
.capabilities__title { color: var(--bone); font-size: clamp(2.2rem, 4.5vw, 3.5rem); }
.capabilities__title em { color: var(--ochre); font-style: italic; }
.capabilities__intro { color: var(--stone-soft); max-width: 42ch; }

/* Animated grid */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 2px;
}
@media (max-width: 900px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .cap-grid { grid-template-columns: 1fr; }
}

.cap-card {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition: opacity 0.65s cubic-bezier(0.22,0.61,0.36,1),
              transform 0.65s cubic-bezier(0.22,0.61,0.36,1);
}
.cap-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(192,196,208,0.35);
  transition: box-shadow 0.45s var(--ease);
}
.cap-card--visible:hover::after {
  box-shadow: inset 0 0 0 2px rgba(192,196,208,0.9);
}
.cap-card--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.cap-card--wide {
  grid-column: span 2;
}
@media (max-width: 900px) {
  .cap-card--wide { grid-column: span 1; }
}
.cap-card--tall {
  grid-row: span 2;
}
@media (max-width: 560px) {
  .cap-card--tall { grid-row: span 1; }
}

.cap-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s cubic-bezier(0.22,0.61,0.36,1), filter 0.5s ease;
  filter: brightness(0.58) saturate(0.7);
}
.cap-card:hover .cap-card__bg {
  transform: scale(1.08);
  filter: brightness(0.2) saturate(0.5);
}

.cap-card__inner {
  position: relative;
  z-index: 2;
  padding: var(--s-6);
  height: 100%;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0;
  background: linear-gradient(to top, rgba(42,47,102,0.95) 0%, rgba(42,47,102,0.65) 38%, transparent 62%);
  transition: background 0.4s ease;
}
.cap-card:hover .cap-card__inner {
  background: linear-gradient(to top, rgba(15,20,48,0.97) 0%, rgba(15,20,48,0.72) 38%, transparent 62%);
}

.cap-card__no {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-bottom: 0;
  transition: max-height 0.4s var(--ease), opacity 0.4s var(--ease), margin-bottom 0.4s var(--ease);
}
.cap-card:hover .cap-card__no {
  max-height: 2rem;
  opacity: 1;
  margin-bottom: var(--s-3);
}

.cap-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 600;
  color: var(--bone);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
}

.cap-card__desc {
  font-size: 0.88rem;
  color: rgba(244,239,230,0.8);
  line-height: 1.55;
  max-width: 40ch;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.4s var(--ease),
              opacity 0.4s var(--ease),
              margin-top 0.4s var(--ease);
}
.cap-card:hover .cap-card__desc {
  max-height: 6rem;
  opacity: 1;
  margin-top: var(--s-3);
}

.cap-card__div {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--rust);
  border-radius: 999px;
  align-self: flex-start;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.4s var(--ease), opacity 0.4s var(--ease),
              margin-top 0.4s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}
.cap-card:hover .cap-card__div {
  max-height: 3rem;
  opacity: 1;
  margin-top: var(--s-3);
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}

/* =========================
   HOME — Why us / values
   ========================= */
.values {
  padding: 1.5rem 0;
  background: var(--bone);
}
.values__header {
  margin-bottom: var(--s-6);
}
.values__pull-text {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.015em;
}
.values__pull-text em { color: var(--rust); font-style: italic; }

.values__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}
@media (max-width: 900px) { .values__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .values__list { grid-template-columns: 1fr; } }

/* Value card — image card with hover reveal */
.value-card {
  position: relative;
  overflow: hidden;
  height: 380px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.value-card--visible {
  opacity: 1;
  transform: translateY(0);
}
.value-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(192, 196, 208, 0.2);
  transition: box-shadow 0.45s var(--ease);
}
.value-card:hover::after {
  box-shadow: inset 0 0 0 2px rgba(192, 196, 208, 0.85);
}

.value-card__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55) saturate(0.75);
  transition: transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.55s ease;
}
.value-card:hover .value-card__bg {
  transform: scale(1.07);
  filter: brightness(0.28) saturate(0.55);
}

.value-card__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--s-6);
  background: linear-gradient(
    to top,
    rgba(15, 20, 48, 0.95) 0%,
    rgba(15, 20, 48, 0.65) 38%,
    transparent 62%
  );
  color: var(--bone);
}

.value-card__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem;
  color: rgba(245, 246, 250, 0.38);
  font-weight: 400;
  line-height: 1;
  transition: color 0.3s;
}
.value-card:hover .value-card__num {
  color: var(--ochre);
}

.value-card__content {
  display: flex;
  flex-direction: column;
}

.value-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 var(--s-3);
  color: var(--bone);
  transition: transform 0.4s var(--ease);
}
.value-card:hover .value-card__title {
  transform: translateY(-4px);
}

.value-card__desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(245, 246, 250, 0.72);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: max-height 0.4s var(--ease), opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.value-card:hover .value-card__desc {
  max-height: 8rem;
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   HOME — Stats band
   ========================= */
.stats-band {
  background: var(--paper);
  padding: var(--s-6) 0;
  border-top: 1px solid rgba(15, 20, 48, 0.08);
  border-bottom: 1px solid rgba(15, 20, 48, 0.08);
}
.stats-band__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-5);
}
@media (max-width: 980px) { .stats-band__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .stats-band__grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-5); } }

.stats-band .stat {
  padding-left: var(--s-4);
  border-left: 2px solid var(--rust);
}
.stats-band .stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stats-band .stat__label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: var(--s-2);
}

/* =========================
   ABOUT — Timeline
   ========================= */
.timeline {
  background: var(--bone);
  padding: 1.5rem 0;
}
.timeline__header { margin-bottom: var(--s-6); max-width: 32ch; }
.timeline__header h2 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); }
.timeline__header h2 em { color: var(--rust); font-style: italic; }

.timeline__list {
  position: relative;
  border-top: 1px solid var(--ink);
}
.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--s-6);
  padding: var(--s-6) 0;
  border-bottom: 1px solid rgba(26, 26, 23, 0.15);
  align-items: start;
  position: relative;
}
@media (max-width: 720px) { .timeline-item { grid-template-columns: 1fr; gap: var(--s-2); } }

.timeline-item__year {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  color: var(--rust);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
}
.timeline-item__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: var(--s-3);
  letter-spacing: -0.01em;
}
.timeline-item__desc { color: var(--ink-soft); max-width: 55ch; }

/* =========================
   ABOUT — Vision / Mission split
   ========================= */
.vm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--ink);
  margin: var(--s-7) 0;
}
@media (max-width: 720px) { .vm { grid-template-columns: 1fr; } }

.vm__block {
  padding: var(--s-7);
  position: relative;
}
.vm__block + .vm__block { border-left: 1px solid var(--ink); }
@media (max-width: 720px) {
  .vm__block + .vm__block { border-left: none; border-top: 1px solid var(--ink); }
}
.vm__label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: var(--s-5);
}
.vm__text {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.vm__text em { color: var(--rust); font-style: italic; }

/* Mission pillars */
.pillars {
  margin-top: var(--s-7);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
}
@media (max-width: 900px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  padding: var(--s-5);
  background: var(--paper);
  border-top: 3px solid var(--rust);
}
.pillar__no {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--stone);
  margin-bottom: var(--s-3);
}
.pillar__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: var(--s-3);
  font-weight: 500;
}
.pillar__desc { color: var(--ink-soft); font-size: 0.95rem; }

/* =========================
   DIVISION PAGES (Glenworx / Glenquip / Glenleisure)
   ========================= */
.division-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: calc(90svh - 2.5rem);
  margin-top: -4.4rem;
  padding: 4.4rem 0 var(--s-8);
  color: var(--bone);
  background: var(--ink);
}
.division-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  filter: brightness(0.88) saturate(0.9);
  transform: scale(1.06);
  animation: hero-zoom 14s var(--ease) forwards;
  animation-delay: 0.9s;
}
.division-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right, rgba(8,12,52,0.88) 0%, rgba(8,12,52,0.50) 38%, rgba(8,12,52,0.14) 62%),
    linear-gradient(to top,   rgba(8,12,52,0.72) 0%, transparent 52%);
}
.division-hero[data-div="worx"]::before             { background-image: url('../assets/images/glenworx/header/dump-truck.jpg'); }
.division-hero[data-div="quip"]::before             { background-image: url('../assets/images/glenquip/header/equipment-hire.jpg'); }
.division-hero[data-div="leisure"]::before          { background-image: url('../assets/images/glenleisure/header/hospitality-lobby.jpg'); }
.division-hero[data-div="about"]::before            { background-image: url('../assets/images/about/header/aerial-mining.jpg'); background-position: center center; }
.division-hero[data-div="sustainability"]::before   { background-image: url('../assets/images/sustainability/header/worker-site.jpg'); background-position: center 30%; }
.division-hero[data-div="ngezi"]::before            { background-image: url('../assets/images/ngezi/header/players-hero.jpg'); background-position: 60% center; }
.division-hero[data-div="construction"]::before     { background-image: url('../assets/images/construction/header/dump-truck.jpg'); }
.division-hero[data-div="civil-works"]::before      { background-image: url('../assets/images/civil-works/header/worker-site.jpg'); background-position: center 35%; }
.division-hero[data-div="mining-support"]::before   { background-image: url('../assets/images/mining-support/header/aerial-mining.jpg'); }
.division-hero[data-div="labour-broking"]::before   { background-image: url('../assets/images/labour-broking/header/worker-site.jpg'); background-position: center 25%; }
.division-hero[data-div="property-dev"]::before     { background-image: url('../assets/images/property-development/header/equipment-hire.jpg'); }
.division-hero[data-div="hospitality"]::before      { content: none; }
.division-hero[data-div="ngezi"]::after {
  background:
    linear-gradient(to left, rgba(8,12,52,0.55) 0%, rgba(8,12,52,0.20) 45%, rgba(8,12,52,0.04) 72%),
    linear-gradient(to bottom, rgba(8,12,52,0.22) 0%, transparent 28%);
}

/* Ngezi hero h1 — smaller than default division hero to fit two-column layout */
.division-hero[data-div="ngezi"] h1 {
  font-size: clamp(2.4rem, 4.5vw, 4.6rem);
}

/* Ngezi hero — two-column layout: text left, badge right */
.division-hero[data-div="ngezi"] .division-hero__layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-7);
  align-items: center;
}
.division-hero[data-div="ngezi"] .division-hero__layout > * {
  max-width: none;
  width: auto;
}
.ngezi-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-5);
  max-width: 600px;
}
.ngezi-hero__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ngezi-hero__badge img {
  height: 240px;
  width: auto;
  filter: drop-shadow(0 6px 28px rgba(0,0,0,0.55));
  opacity: 0.95;
}
@media (max-width: 760px) {
  .division-hero[data-div="ngezi"] .division-hero__layout {
    grid-template-columns: 1fr;
  }
  .ngezi-hero__badge { display: none; }
}

/* Division heroes — top-aligned content with breathing room */
.division-hero[data-div="worx"],
.division-hero[data-div="quip"],
.division-hero[data-div="leisure"],
.division-hero[data-div="ngezi"],
.division-hero[data-div="about"],
.division-hero[data-div="sustainability"],
.division-hero[data-div="construction"],
.division-hero[data-div="civil-works"],
.division-hero[data-div="mining-support"],
.division-hero[data-div="labour-broking"],
.division-hero[data-div="property-dev"],
.division-hero[data-div="hospitality"] {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: calc(90svh - 2.5rem);
  padding-top: 8rem;
  padding-bottom: var(--s-8);
}
.division-hero[data-div="worx"] .division-hero__layout,
.division-hero[data-div="quip"] .division-hero__layout,
.division-hero[data-div="leisure"] .division-hero__layout,
.division-hero[data-div="ngezi"] .division-hero__layout,
.division-hero[data-div="about"] .division-hero__layout,
.division-hero[data-div="sustainability"] .division-hero__layout,
.division-hero[data-div="construction"] .division-hero__layout,
.division-hero[data-div="civil-works"] .division-hero__layout,
.division-hero[data-div="mining-support"] .division-hero__layout,
.division-hero[data-div="labour-broking"] .division-hero__layout,
.division-hero[data-div="property-dev"] .division-hero__layout,
.division-hero[data-div="hospitality"] .division-hero__layout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-5);
  width: 100%;
}
.division-hero[data-div="worx"] .division-hero__layout > *,
.division-hero[data-div="quip"] .division-hero__layout > *,
.division-hero[data-div="leisure"] .division-hero__layout > *,
.division-hero[data-div="ngezi"] .division-hero__layout > *,
.division-hero[data-div="about"] .division-hero__layout > *,
.division-hero[data-div="sustainability"] .division-hero__layout > *,
.division-hero[data-div="construction"] .division-hero__layout > *,
.division-hero[data-div="civil-works"] .division-hero__layout > *,
.division-hero[data-div="mining-support"] .division-hero__layout > *,
.division-hero[data-div="labour-broking"] .division-hero__layout > *,
.division-hero[data-div="property-dev"] .division-hero__layout > *,
.division-hero[data-div="hospitality"] .division-hero__layout > * {
  max-width: 640px;
  width: 100%;
}


.division-hero h1, .division-hero p { color: var(--bone); }
.division-hero .division-hero__crumbs a { color: var(--stone-soft); }
.division-hero .division-hero__crumbs a:hover { color: var(--ochre); }

.division-hero__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: end;
}
@media (max-width: 880px) { .division-hero__layout { grid-template-columns: 1fr; } }

.division-hero__crumbs {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--s-5);
  opacity: 0.7;
}
.division-hero h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  letter-spacing: -0.03em;
  line-height: 0.92;
  font-weight: 600;
}
.division-hero h1 em { font-style: italic; }
.division-hero[data-div="worx"] h1 em,
.division-hero[data-div="quip"] h1 em,
.division-hero[data-div="leisure"] h1 em,
.division-hero[data-div="ngezi"] h1 em,
.division-hero[data-div="sustainability"] h1 em,
.division-hero[data-div="construction"] h1 em,
.division-hero[data-div="civil-works"] h1 em,
.division-hero[data-div="mining-support"] h1 em,
.division-hero[data-div="labour-broking"] h1 em,
.division-hero[data-div="property-dev"] h1 em,
.division-hero[data-div="hospitality"] h1 em { color: var(--ochre); }
.division-hero[data-div="about"] h1 em  { color: var(--rust); font-style: italic; }
.division-hero__tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-top: var(--s-5);
  color: var(--ochre);
}
.division-hero__desc {
  font-size: 1.1rem;
  max-width: 50ch;
  line-height: 1.55;
  color: rgba(245,246,250,0.85);
}
.division-hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero button colour variants */
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light .arrow { background: var(--ink); color: #fff; }
.btn--glass { background: rgba(180,188,200,0.22); color: #fff; border-color: rgba(180,188,200,0.55); }
.btn--glass .arrow { background: rgba(180,188,200,0.3); color: #fff; }

/* Services grid for division pages */
.services {
  padding: 1.5rem 0;
}
.services__intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  padding-bottom: var(--s-5);
  align-items: end;
}
@media (max-width: 780px) { .services__intro { grid-template-columns: 1fr; } }
.services__intro h2 { font-size: clamp(2rem, 4vw, 3rem); max-width: 14ch; margin-top: 1rem; }

/* =========================
   SERVICE CATEGORY PAGES — Individual Works
   ========================= */
.works-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.work-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
  background: var(--paper);
}
.work-item:nth-child(even) .work-item__img  { order: 2; }
.work-item:nth-child(even) .work-item__body { order: 1; }
.work-item__img {
  background-size: cover;
  background-position: center;
  min-height: 300px;
}
.work-item__body {
  padding: 3.5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  background: var(--paper);
}
.work-item__num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rust);
}
.work-item__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
}
.work-item__desc {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.68;
  max-width: 46ch;
  margin: 0;
}
.work-item__bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border-top: 1px solid rgba(26,26,23,0.1);
  padding-top: 1.25rem;
}
.work-item__bullets li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--ink);
  font-weight: 500;
}
.work-item__bullets li::before {
  content: '→';
  font-size: 0.75rem;
  color: var(--rust);
  flex-shrink: 0;
}
@media (max-width: 820px) {
  .work-item { grid-template-columns: 1fr; }
  .work-item:nth-child(even) .work-item__img  { order: 0; }
  .work-item:nth-child(even) .work-item__body { order: 0; }
  .work-item__body { padding: 2.5rem 2rem; }
}
.services__intro h2 em { font-style: italic; color: var(--rust); }
.services__intro p { color: var(--ink-soft); max-width: 42ch; }

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(26, 26, 23, 0.15);
  border: 1px solid rgba(26, 26, 23, 0.15);
}
@media (max-width: 720px) { .services__grid { grid-template-columns: 1fr; } }

.service {
  background: var(--bone);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(192,196,208,0.2);
  opacity: 0;
  transform: translateY(32px);
}
.service--visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.65s var(--ease),
              transform 0.65s var(--ease),
              background 0.3s,
              box-shadow 0.35s var(--ease);
}
.service--visible:hover {
  background: var(--paper);
  box-shadow: inset 0 0 0 2px rgba(42,47,102,0.3);
  transform: translateY(-4px);
  transition: transform 0.3s var(--ease),
              background 0.3s,
              box-shadow 0.3s var(--ease);
}
.service--visible:hover .service__title { color: var(--rust-deep); }
.service--visible:hover .service__no { opacity: 0.6; }
.service__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bone-deep);
  overflow: hidden;
  position: relative;
}
.service__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
  filter: saturate(0.9);
}
.service:hover .service__media img { transform: scale(1.05); filter: saturate(1.05); }
.service__body { padding: var(--s-6); }
.service__no {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--rust);
  margin-bottom: var(--s-4);
}
.service__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: var(--s-3);
  font-weight: 500;
}
.service__desc { color: var(--ink-soft); font-size: 0.95rem; }
.service__items {
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid rgba(26, 26, 23, 0.1);
}
.service__items li {
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding: var(--s-2) 0;
  display: flex;
  gap: var(--s-3);
}
.service__items li::before {
  content: '◆';
  color: var(--rust);
  font-size: 0.6rem;
  align-self: center;
}

/* Workforce / experience block */
.experience {
  background: var(--ink);
  color: var(--bone);
  padding: 1.5rem 0;
}
.experience h2 { color: var(--bone); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: var(--s-4); max-width: 18ch; }
.experience h2 em { color: var(--ochre); font-style: italic; }
.experience__lead { color: var(--stone-soft); max-width: 50ch; margin-bottom: var(--s-7); font-size: 1.05rem; }

.workforce {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
}
@media (max-width: 720px) { .workforce { grid-template-columns: repeat(2, 1fr); } }
.workforce-item {
  padding-top: var(--s-4);
  border-top: 1px solid rgba(244, 239, 230, 0.2);
}
.workforce-item__role {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: var(--s-2);
  color: var(--bone);
}
.workforce-item__detail {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ochre);
}

/* =========================
   CONTACT page
   ========================= */
.contact {
  padding: 1.5rem 0;
}
.contact__layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--s-8);
  align-items: start;
}
@media (max-width: 880px) { .contact__layout { grid-template-columns: 1fr; } }

.contact__info { position: sticky; top: 100px; }
.contact__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin-bottom: var(--s-5);
}
.contact__heading em { color: var(--rust); font-style: italic; }

.contact-block {
  padding: var(--s-5) 0;
  border-top: 1px solid rgba(26, 26, 23, 0.15);
}
.contact-block:last-child { border-bottom: 1px solid rgba(26, 26, 23, 0.15); }
.contact-block__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: var(--s-3);
}
.contact-block__value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.contact-block a { transition: color 0.2s; }
.contact-block a:hover { color: var(--rust); }

/* Form */
.contact-form {
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: var(--s-7);
}
.contact-form__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: var(--s-5);
  font-weight: 500;
}
.form-row {
  margin-bottom: var(--s-5);
}
.form-row--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
}
@media (max-width: 540px) { .form-row--two { grid-template-columns: 1fr; } }
.field {
  display: flex;
  flex-direction: column;
}
.field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: var(--s-2);
}
.field input,
.field select,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink);
  padding: var(--s-3) 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-bottom-color: var(--rust);
  border-bottom-width: 2px;
}
.field textarea { resize: vertical; min-height: 120px; }

.form-submit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-4);
  padding-top: var(--s-3);
}
.form-submit__note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--stone);
  max-width: 30ch;
}

/* =========================
   HOME — Clients marquee
   ========================= */
.clients {
  background: var(--bone);
  padding: 1.5rem 0;
  overflow: hidden;
}
.clients__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  padding-bottom: var(--s-5);
  align-items: end;
}
@media (max-width: 780px) { .clients__header { grid-template-columns: 1fr; } }
.clients__title { font-size: clamp(2rem, 4vw, 3rem); }
.clients__title em { color: var(--rust); font-style: italic; }
.clients__intro { color: var(--ink-soft); max-width: 46ch; }

.clients__marquee {
  position: relative;
  overflow: hidden;
  padding: var(--s-5) 0;
  border-top: 1px solid rgba(15,20,48,0.1);
  border-bottom: 1px solid rgba(15,20,48,0.1);
  background: var(--paper);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.clients__track {
  display: flex;
  gap: var(--s-8);
  width: max-content;
  animation: client-scroll 38s linear infinite;
}
.clients__marquee:hover .clients__track { animation-play-state: paused; }

.client-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  min-width: 180px;
  flex-shrink: 0;
  background: transparent;
  padding: 0.5rem 1rem;
}
.client-logo img {
  max-height: 60px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(40%);
  opacity: 0.7;
  transition: opacity .3s, filter .3s;
}
.client-logo:hover img {
  opacity: 1;
  filter: grayscale(0%);
}

@keyframes client-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================
   Stats card animation (count-up + reveal)
   ========================= */
.stats-band .stat {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.stats-band .stat.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.stats-band .stat__num {
  display: inline-block;
  transition: transform 0.4s var(--ease);
}
.stats-band .stat:hover { transform: translateY(-4px); }
.stats-band .stat:hover .stat__num { color: var(--rust); }

/* =========================
   SCROLL-REVEAL — animate.js
   ========================= */

/* Initial hidden states */
.div-card {
  opacity: 0;
  transform: translateY(38px) scale(0.97);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.timeline-item {
  opacity: 0;
  transform: translateX(-22px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.squad-imgs > div {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.features-grid > div,
.cert-grid > div,
.reg-grid > div,
.pillar {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.workforce-item {
  opacity: 0;
  transform: translateX(-18px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

/* Visible state — natural position */
.div-card.anim--in,
.timeline-item.anim--in,
.squad-imgs > div.anim--in,
.features-grid > div.anim--in,
.cert-grid > div.anim--in,
.reg-grid > div.anim--in,
.pillar.anim--in,
.workforce-item.anim--in {
  opacity: 1;
  transform: none;
}

/* div-card hover interactions still work once visible */
.div-card.anim--in:hover { transform: none; }
.div-card.anim--in:hover .div-card__img {
  transform: scale(1.07);
  filter: brightness(0.28) saturate(0.55);
}
.div-card.anim--in:hover .div-card__name { transform: translateY(-4px); }
.div-card.anim--in:hover .div-card__desc {
  max-height: 8rem;
  opacity: 1;
  transform: translateY(0);
}
.div-card.anim--in:hover .div-card__no { color: var(--ochre); }

@media (prefers-reduced-motion: reduce) {
  .div-card, .timeline-item, .squad-imgs > div,
  .features-grid > div, .cert-grid > div, .reg-grid > div,
  .pillar, .workforce-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* =========================
   NGEZI — Crest animation
   ========================= */
.ngezi-crest {
  animation: crest-in 0.9s var(--ease) both;
  animation-delay: 0.3s;
  transition: transform 0.35s var(--ease), filter 0.35s var(--ease);
  cursor: pointer;
}
@keyframes crest-in {
  from { opacity: 0; transform: scale(0.88) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.ngezi-crest:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 6px 22px rgba(26, 62, 143, 0.5)) drop-shadow(0 2px 8px rgba(26, 62, 143, 0.3));
}
@media (prefers-reduced-motion: reduce) {
  .ngezi-crest { animation: none; }
}

/* =========================
   NGEZI — Photo Gallery
   ========================= */
.ngezi-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: clamp(200px, 28vw, 320px) clamp(170px, 22vw, 260px) clamp(170px, 22vw, 260px);
  gap: 6px;
}
.ngezi-gallery__item {
  grid-column: span 2;
  overflow: hidden;
  border-radius: 10px;
}
.ngezi-gallery__item--wide { grid-column: span 4; }
.ngezi-gallery__item--half { grid-column: span 3; }
.ngezi-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}
.ngezi-gallery__item:hover img { transform: scale(1.05); }
@media (max-width: 720px) {
  .ngezi-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .ngezi-gallery__item,
  .ngezi-gallery__item--wide,
  .ngezi-gallery__item--half {
    grid-column: span 1;
    aspect-ratio: 4/3;
  }
  .ngezi-gallery__item--wide { grid-column: span 2; aspect-ratio: 16/7; }
}
@media (max-width: 480px) {
  .ngezi-gallery { grid-template-columns: 1fr; gap: 4px; }
  .ngezi-gallery__item,
  .ngezi-gallery__item--wide,
  .ngezi-gallery__item--half {
    grid-column: span 1;
    aspect-ratio: 16/9;
  }
}

/* =========================
   HORIZONTAL TIMELINE SLIDER
   ========================= */
.htl {
  position: relative;
  background: var(--ink);
  overflow: hidden;
  color: var(--bone);
}
.htl__side-label {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: rgba(244,239,230,0.25);
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}
/* Timeline bar — TOP */
.htl__bar {
  padding: 2.5rem 8vw 1.75rem;
  position: relative;
}
.htl__line-wrap {
  position: relative;
  height: 1px;
  background: rgba(244,239,230,0.15);
  margin-bottom: 0.75rem;
}
.htl__line-fill {
  position: absolute;
  left: 0; top: 0; height: 100%;
  background: var(--ochre);
  transition: width 0.55s cubic-bezier(0.4,0,0.2,1);
}
.htl__markers {
  display: flex;
  justify-content: space-between;
}
.htl__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}
.htl__marker-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(244,239,230,0.25);
  margin-top: -7px;
  transition: background 0.3s, transform 0.3s;
}
.htl__marker.is-active .htl__marker-dot {
  background: var(--ochre);
  transform: scale(1.4);
}
.htl__marker-year {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(244,239,230,0.40);
  transition: color 0.3s;
}
.htl__marker.is-active .htl__marker-year { color: var(--ochre); }
/* Stage: buttons + viewport in a flex row */
.htl__stage {
  display: flex;
  align-items: center;
  padding-bottom: 2.5rem;
}
.htl__btn {
  flex-shrink: 0;
  width: 44px; height: 44px;
  margin: 0 1rem;
  border-radius: 50%;
  border: 1px solid rgba(244,239,230,0.25);
  background: rgba(244,239,230,0.08);
  color: var(--bone);
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  z-index: 2;
}
.htl__btn:hover { background: rgba(244,239,230,0.18); border-color: rgba(244,239,230,0.5); }
.htl__btn:disabled { opacity: 0.25; pointer-events: none; }
/* Viewport: clips slides, fades right edge to hint next */
.htl__viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.htl__viewport::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 130px;
  background: linear-gradient(to right, transparent, var(--ink) 88%);
  pointer-events: none;
  z-index: 1;
}
.htl__track {
  display: flex;
  gap: 12px;
  transition: transform 0.55s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}
/* Each slide = single combined card (image left + text right) */
.htl__slide {
  position: relative;
  display: flex;
  gap: 0;
  flex-shrink: 0;
  width: clamp(280px, calc(100vw - 248px), 660px);
  overflow: hidden;
}
.htl__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(244,239,230,0.08);
  transition: box-shadow 0.3s;
}
.htl__slide.is-active::after { box-shadow: inset 0 0 0 1px rgba(244,239,230,0.22); }
.htl__img {
  width: 48%;
  flex-shrink: 0;
  overflow: hidden;
}
.htl__img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.5s var(--ease);
}
.htl__slide:hover .htl__img img { transform: scale(1.04); }
.htl__card {
  flex: 1;
  background: rgba(12,17,46,0.92);
  border-left: 1px solid rgba(244,239,230,0.1);
  padding: 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
  transition: background 0.3s;
}
.htl__slide.is-active .htl__card {
  background: rgba(8,12,52,0.97);
  border-left-color: rgba(244,239,230,0.18);
}
.htl__year {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--bone);
  margin-bottom: 0.6rem;
}
.htl__title {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  font-weight: 500;
  color: var(--bone);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.htl__desc {
  font-size: 0.82rem;
  color: rgba(244,239,230,0.6);
  line-height: 1.6;
  margin-top: 0.5rem;
}
@media (max-width: 720px) {
  .htl__btn { margin: 0 0.4rem; }
  .htl__bar { padding: 2rem 4vw 1.5rem; }
  .htl__slide { width: calc(100vw - 130px); }
}
@media (max-width: 480px) {
  .htl__slide { flex-direction: column; aspect-ratio: auto; width: calc(100vw - 110px); }
  .htl__img { width: 100%; height: 52vw; }
  .htl__card { width: 100%; flex: none; min-height: 180px; border-left: none; border-top: 1px solid rgba(244,239,230,0.1); }
  .htl__side-label { display: none; }
  .htl__viewport::after { width: 60px; }
}

/* =========================
   ABOUT — Management team grid
   ========================= */
.mgmt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (max-width: 1080px) { .mgmt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .mgmt-grid { grid-template-columns: 1fr; } }

.mgmt-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.mgmt-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(192,196,208,0.35);
  transition: box-shadow 0.45s var(--ease);
}
.mgmt-card:hover::after {
  box-shadow: inset 0 0 0 2px rgba(192,196,208,0.85);
}
.mgmt-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.5);
}

/* Photo — fills card as background */
.mgmt-card__img {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.mgmt-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: brightness(0.75) saturate(0.8);
  transition: transform 0.7s var(--ease), filter 0.5s ease;
}
.mgmt-card:hover .mgmt-card__img img {
  transform: scale(1.06);
  filter: brightness(0.52) saturate(0.65);
}

/* Bio overlay — fades in over the entire card */
.mgmt-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(10, 14, 50, 0.93);
  padding: 1.5rem;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 0.38s var(--ease);
}
.mgmt-card.is-open .mgmt-card__overlay {
  opacity: 1;
  pointer-events: auto;
}

/* X close button — top-right of overlay */
.mgmt-card__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(244, 239, 230, 0.32);
  background: rgba(244, 239, 230, 0.1);
  color: var(--bone);
  font-size: 0.85rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.mgmt-card__close:hover {
  background: rgba(244, 239, 230, 0.22);
  border-color: rgba(244, 239, 230, 0.6);
}

.mgmt-card__bio {
  font-size: 0.85rem;
  color: rgba(244, 239, 230, 0.88);
  line-height: 1.75;
  margin-top: 2rem;
}

/* Text body — gradient bar pinned to bottom */
.mgmt-card__body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 3rem 1.4rem 1.4rem;
  background: linear-gradient(
    to top,
    rgba(10, 14, 50, 0.97) 0%,
    rgba(10, 14, 50, 0.7) 55%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
}

.mgmt-card__name {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bone);
  line-height: 1.2;
  margin: 0;
}
.mgmt-card__role {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ochre);
  margin-top: 0.2rem;
  line-height: 1.4;
}
.mgmt-card__quals {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(244, 239, 230, 0.58);
  line-height: 1.5;
  margin-top: 0.2rem;
}

.mgmt-card__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  padding: 0.48rem 1rem;
  background: rgba(244, 239, 230, 0.12);
  color: var(--bone);
  border: 1px solid rgba(244, 239, 230, 0.38);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.2s, border-color 0.2s;
}
.mgmt-card__toggle:hover {
  background: rgba(244, 239, 230, 0.22);
  border-color: rgba(244, 239, 230, 0.65);
}
.mgmt-card__toggle .toggle-arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}
.mgmt-card__toggle.is-open .toggle-arrow { transform: rotate(45deg); }

/* =========================
   SVC-CARD — What we deliver
   ========================= */
.svc-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--s-5);
}

.svc-card {
  flex: 1 1 290px;
  min-width: 0;
  position: relative;
  height: clamp(280px, 28vw, 360px);
  border-radius: 8px;
  overflow: hidden;
  isolation: isolate;
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
}
.svc-card__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
  filter: brightness(0.82) saturate(0.85);
}
.svc-card:hover .svc-card__bg,
.svc-card.is-active .svc-card__bg {
  transform: scale(1.05);
  filter: brightness(0.68) saturate(0.9);
}
.svc-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(8,12,52,0.92) 0%, rgba(8,12,52,0.35) 55%, transparent 100%);
}
.svc-card__content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.4rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: opacity 0.35s 0.25s;
}
.svc-card.is-shrunk .svc-card__content {
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.svc-card__no {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  color: rgba(244,239,230,0.5);
  text-transform: uppercase;
}
.svc-card__title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 600;
  color: var(--bone);
  letter-spacing: -0.01em;
  line-height: 1.2;
  max-width: 20ch;
}
.svc-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.6rem;
  padding: 0.5rem 1rem;
  background: rgba(244,239,230,0.12);
  border: 1px solid rgba(244,239,230,0.32);
  color: var(--bone);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s, opacity 0.25s;
  width: fit-content;
  letter-spacing: 0.01em;
}
.svc-card__btn:hover {
  background: rgba(244,239,230,0.2);
  border-color: rgba(244,239,230,0.6);
}
.svc-card.is-active .svc-card__btn {
  opacity: 0;
  pointer-events: none;
}

/* Text panel — contained within card; card expands via grid column manipulation */
.svc-card__panel {
  position: absolute;
  top: 0; bottom: 0;
  left: 45%;
  right: 0;
  background: var(--paper);
  opacity: 0;
  transform: translateX(24px);
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1), opacity 0.4s var(--ease);
  z-index: 5;
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  overflow: hidden;
}
.svc-card.is-active .svc-card__panel {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.svc-card__panel-no {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--rust);
  text-transform: uppercase;
  margin-top: 1.25rem;
}
.svc-card__panel-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}
.svc-card__panel p {
  color: var(--ink-soft);
  font-size: 0.85rem;
  line-height: 1.65;
}
.svc-card__panel ul {
  margin-top: var(--s-2);
  padding-top: var(--s-2);
  border-top: 1px solid rgba(26,26,23,0.1);
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}
.svc-card__panel ul li {
  font-size: 0.8rem;
  color: var(--ink-soft);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.svc-card__panel ul li::before {
  content: '◆';
  color: var(--rust);
  font-size: 0.52rem;
  flex-shrink: 0;
}
.svc-card__panel-close {
  position: absolute;
  top: 0.65rem; right: 0.65rem;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(26,26,23,0.2);
  background: var(--bone);
  color: var(--ink);
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  z-index: 4;
  line-height: 1;
}
.svc-card__panel-close:hover { background: var(--ink); color: var(--bone); }

@media (max-width: 720px) {
  .svc-card__panel { left: 0; }
}
