/* ============================================================
   CompliVera (Pty) Ltd — Corporate website
   Clean · minimal · high-whitespace · boutique advisory
   Palette: Executive Navy #16375E · Heritage Gold #C79A2E
   · Warm Stone Grey #D9DEE3 · Soft Ivory #F8F7F3 · White
   Type: Cormorant Garamond (display) + Aptos (body)
   ============================================================ */

:root {
  --navy: #16375E;
  --navy-deep: #102A47;
  --gold: #C79A2E;
  --gold-deep: #B2871F;
  --stone: #D9DEE3;
  --stone-mut: #9BA9B8;
  --ivory: #F8F7F3;
  --white: #FFFFFF;
  --ink: #16375E;
  --ink-soft: #4B5D72;
  --line: #D9DEE3;

  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Aptos", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;

  --wrap: 1200px;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
:root { color-scheme: only light; }
html { scroll-behavior: smooth; background: var(--white); }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.12; color: var(--navy); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
em { font-style: italic; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

/* Small eyebrow / micro-label */
.eyebrow {
  font-family: var(--body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stone-mut);
}
.eyebrow .dot { color: var(--gold); margin: 0 0.5rem; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.6rem;
  border-radius: 4px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s, border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-deep); box-shadow: 0 10px 24px -12px rgba(199,154,46,0.8); }
.btn-gold-navy { background: var(--gold); color: var(--navy); }
.btn-gold-navy:hover { background: var(--gold-deep); color: var(--navy); }
.btn-ghost { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-ghost-light:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-text { color: var(--gold); font-weight: 700; padding: 0; }
.btn-text .arw { transition: transform 0.25s var(--ease); }
.btn-text:hover .arw { transform: translateX(5px); }

/* ============ NAV ============ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 20px var(--pad);
}
.brand { display: flex; align-items: center; gap: 0.6rem; margin-right: auto; }
.brand img { width: 40px; height: 40px; }
.brand-name {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.brand-name .v { color: var(--gold); }

.nav-menu { display: flex; align-items: center; gap: 40px; }
.nav-menu > li { position: relative; }
.nav-menu a {
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  transition: color 0.2s;
  padding: 0.4rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--gold); }
.nav-menu .caret { width: 9px; height: 9px; transition: transform 0.25s var(--ease); }
.has-dropdown:hover .caret { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 260px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 50px -24px rgba(16,42,71,0.35);
  padding: 0.5rem;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.dropdown a {
  display: block;
  padding: 0.7rem 0.9rem;
  border-radius: 5px;
  font-size: 0.9375rem;
  color: var(--navy);
  transition: background 0.18s, color 0.18s;
}
.dropdown a:hover { background: var(--ivory); color: var(--gold); }

.nav-cta { white-space: nowrap; }
.cta-li { display: none; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
}
.hamburger span { display: block; width: 26px; height: 2px; background: var(--navy); transition: transform 0.3s var(--ease), opacity 0.3s; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ SECTIONS ============ */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--ivory { background: var(--ivory); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(2.1rem, 4.5vw, 3rem); }
.section-head .sub { color: var(--ink-soft); font-size: 1.0625rem; margin-top: 1rem; }
.section-head .eyebrow { display: block; margin-bottom: 1rem; }

/* ============ HERO (home) ============ */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: min(78vh, 720px); }
.hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4.5rem);
  background: var(--white);
}
.hero-cats { font-size: 0.8125rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--stone-mut); font-weight: 600; margin-bottom: 1.6rem; }
.hero-cats .dot { color: var(--gold); margin: 0 0.5rem; }
.hero h1 { font-size: clamp(2.8rem, 5.2vw, 4.6rem); letter-spacing: -0.005em; }
.hero h1 .navy { color: var(--navy); display: block; }
.hero h1 .gold { color: var(--gold); display: block; }
.hero-sub { color: var(--ink-soft); font-size: 1.125rem; max-width: 34rem; margin: 1.6rem 0 2.3rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-photo {
  background-image: url("assets/hero-photo.jpg");
  background-size: cover;
  background-position: center right;
}

/* ============ HERO — CINEMATIC VIDEO INTRO (home) ============ */
/* Scroll progress 0 → 1 is written to --p by script.js.
   With no JS, --p defaults to 1 so the branded end-state shows statically. */
.hero-cinema { position: relative; height: 100vh; background: var(--navy-deep); --p: 1; }
.js .hero-cinema { --p: 0; }            /* start on the raw video; playback drives the reveal */

.hero-stage {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; align-items: center;
}
.hero-vid {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%;
  z-index: 0; transform-origin: center;
  transform: scale(calc(1.05 + var(--p) * 0.07));
  filter: blur(calc(var(--p) * 1.5px));
  will-change: transform, filter;
  transition: transform 1.1s var(--ease), filter 1.1s var(--ease);
}
/* Light wash that fades in with scroll so the navy/gold branding reads over the footage. */
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(248,247,243,0.5) 0%, rgba(248,247,243,0) 16%),
    linear-gradient(90deg, rgba(248,247,243,0.95) 0%, rgba(248,247,243,0.80) 34%, rgba(248,247,243,0.32) 66%, rgba(248,247,243,0.05) 100%);
  opacity: var(--p);
  transition: opacity 1s var(--ease);
}
.hero-inner {
  position: relative; z-index: 3; width: 100%;
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad);
}
.hero-cinema .hero-copy {
  background: transparent; padding: 0; max-width: 660px;
  opacity: clamp(0, calc((var(--p) - 0.12) * 2.4), 1);
  transform: translateY(calc((1 - var(--p)) * 46px));
  will-change: opacity, transform;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.hero-cinema .hero-cats { color: var(--navy); animation: none; }
.hero-cinema .hero-sub,
.hero-cinema .hero-actions { animation: none; }
.hero-cinema h1 { font-size: clamp(2.8rem, 5.6vw, 4.8rem); letter-spacing: -0.01em; }
.hero-cinema h1 .navy { color: var(--navy); display: block; }
.hero-cinema h1 .gold { color: var(--gold); display: block; }

/* Bouncing "scroll" cue — fades out as soon as the reveal begins. */
.hero-scroll-cue {
  position: absolute; bottom: 26px; left: 50%; z-index: 3;
  transform: translateX(-50%);
  opacity: clamp(0, calc(1 - var(--p) * 3), 1);
  pointer-events: none;
  transition: opacity 0.7s var(--ease);
}
.hero-scroll-cue span {
  display: block; width: 20px; height: 20px;
  border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy);
  animation: cvCue 1.8s var(--ease) infinite;
}
@keyframes cvCue {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.35; }
  50%      { transform: rotate(45deg) translate(4px, 4px); opacity: 1; }
}

/* Branded navy intro overlay — shown only while JS drives the intro sequence.
   Sits above the film so the video poster never flashes; fades away once the
   film is genuinely playing. */
.hero-intro {
  position: absolute; inset: 0; z-index: 6;
  background: var(--navy-deep);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.9s var(--ease), visibility 0.9s var(--ease);
}
.js .hero-intro { opacity: 1; visibility: visible; }   /* visible only with JS */
.hero-intro.is-hidden { opacity: 0; visibility: hidden; }
.hero-intro-brand {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 0 24px;
}
.hero-intro-mark {
  width: clamp(108px, 12vw, 142px); aspect-ratio: 1;
  background: #FFFFFF; border-radius: 22px; padding: 15px;
  box-shadow: 0 22px 55px -20px rgba(0, 0, 0, 0.55);
  opacity: 0; transform: translateY(16px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.hero-intro-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hero-intro-name {
  margin-top: 1.15rem;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.3rem, 5.2vw, 3.5rem); letter-spacing: 0.02em;
  color: var(--ivory);
  opacity: 0; transform: translateY(16px);
  transition: opacity 1s var(--ease) 0.18s, transform 1s var(--ease) 0.18s;
}
.hero-intro-name .v { color: var(--gold); }
.hero-intro-tag {
  margin-top: 0.85rem;
  font-size: clamp(0.72rem, 1.5vw, 0.92rem);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(248, 247, 243, 0.72);
  opacity: 0; transform: translateY(16px);
  transition: opacity 1s var(--ease) 0.34s, transform 1s var(--ease) 0.34s;
}
/* When armed, the brand elements "appear out of nothing" in a gentle stagger */
.hero-intro.brand-in .hero-intro-mark,
.hero-intro.brand-in .hero-intro-name,
.hero-intro.brand-in .hero-intro-tag {
  opacity: 1; transform: none;
}

/* On the home page the nav is hidden during the video-only intro, then slides
   in (solid white) together with the branding — driven by --nav (0 → 1). */
.home .site-nav {
  position: fixed; left: 0; right: 0; top: 0;
  background: var(--white); border-bottom-color: var(--line);
  opacity: var(--nav, 1);
  transform: translateY(calc((var(--nav, 1) - 1) * 100%));
  pointer-events: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.home.nav-armed .site-nav { pointer-events: auto; }
.js body.home { --nav: 0; }             /* start hidden; scroll brings it in */

/* ============ ISO BADGES (trust anchor) ============ */
.iso-badges { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.iso-badge {
  background: var(--white);
  border: 1px solid var(--navy);
  border-radius: 4px;
  padding: 1.6rem 1rem;
  text-align: center;
  box-shadow: 0 12px 30px -22px rgba(16,42,71,0.5);
}
.iso-badge strong { display: block; font-family: var(--display); font-size: 1.55rem; font-weight: 600; color: var(--navy); }
.iso-badge span { display: block; font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.25rem; }

/* ============ SOLUTIONS MATRIX (3 + 2) ============ */
.solutions-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 30px; }
.solution-card { grid-column: span 2; }
.solutions-grid .solution-card:nth-child(4) { grid-column: 2 / span 2; }
.solutions-grid .solution-card:nth-child(5) { grid-column: 4 / span 2; }
.solution-card {
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: 6px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.solution-card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -30px rgba(16,42,71,0.45); border-color: var(--gold); }
.solution-card h3 { font-size: 1.5rem; margin-bottom: 0.7rem; }
.solution-card p { color: var(--ink-soft); font-size: 0.98rem; flex: 1; }
.solution-card .card-link { color: var(--gold); font-weight: 700; margin-top: 1.4rem; display: inline-flex; align-items: center; gap: 0.4rem; }
.solution-card .card-link .arw { transition: transform 0.25s var(--ease); }
.solution-card:hover .card-link .arw { transform: translateX(5px); }

/* ============ VALUE PILLARS (40/60) ============ */
.pillars { display: grid; grid-template-columns: 40% 60%; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.pillars-title { font-size: clamp(1.9rem, 3.6vw, 2.6rem); color: var(--navy); position: sticky; top: 120px; }
.pillar { padding: 1.6rem 0; }
.pillar + .pillar { border-top: 1px solid var(--line); }
.pillar .num { font-family: var(--body); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; color: var(--gold); text-transform: uppercase; }
.pillar h3 { font-size: 1.4rem; margin: 0.35rem 0 0.5rem; }
.pillar p { color: var(--ink-soft); }

/* ============ BENEFITS / INDUSTRIES CARDS ============ */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.mini-card {
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: 6px;
  padding: 2rem 1.8rem;
}
.section--ivory .mini-card { background: var(--white); }
.mini-card .ic { width: 44px; height: 44px; color: var(--gold); margin-bottom: 1.1rem; }
.mini-card .ic svg { width: 100%; height: 100%; }
.mini-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.mini-card p { color: var(--ink-soft); font-size: 0.95rem; }
.mini-card ul { list-style: none; margin-top: 0.6rem; }
.mini-card ul li { position: relative; padding-left: 1.1rem; color: var(--ink-soft); font-size: 0.95rem; margin-top: 0.3rem; }
.mini-card ul li::before { content: "•"; color: var(--gold); position: absolute; left: 0; }

/* ============ MEET THE TEAM ============ */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.team-card {
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: 6px;
  padding: 2.6rem 1.8rem;
  text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.team-card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -30px rgba(16,42,71,0.45); border-color: var(--gold); }
.team-avatar {
  width: 94px; height: 94px; margin: 0 auto 1.3rem;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-size: 2.1rem; font-weight: 600;
  color: var(--white); background: var(--navy);
  border: 2px solid var(--gold);
}
.team-avatar svg { width: 46px; height: 46px; color: var(--stone-mut); }
.team-photo {
  width: 128px; height: 128px; margin: 0 auto 1.3rem;
  border-radius: 50%;
  object-fit: cover; object-position: center 22%;
  border: 2px solid var(--gold);
  box-shadow: 0 12px 26px -14px rgba(16,42,71,0.5);
}
.team-card h3 { font-size: 1.4rem; margin-bottom: 0.3rem; }
.team-role { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); margin-bottom: 1rem; }
.team-card p { color: var(--ink-soft); font-size: 0.95rem; }
/* placeholder cards — dashed & muted so it's obvious they await real content */
.team-card--placeholder { border-style: dashed; border-color: var(--stone-mut); background: var(--ivory); }
.team-card--placeholder .team-avatar { background: var(--stone); border-color: var(--stone-mut); }
.team-card--placeholder h3 { color: var(--stone-mut); }
.team-card--placeholder .team-role { color: var(--stone-mut); }
.team-together { max-width: 900px; margin: 2.6rem auto 0; text-align: center; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.7; }

/* ============ BUSINESS INSIGHTS ============ */
.insight-card { display: flex; flex-direction: column; }
.insight-tag { font-family: var(--body); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.8rem; }
.insight-card h3 { font-size: 1.3rem; line-height: 1.22; margin-bottom: 0.6rem; }
.insight-card p { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }
.insight-meta { margin-top: 1.3rem; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; color: var(--stone-mut); }
.insight-meta .card-link { color: var(--gold); font-weight: 700; display: inline-flex; align-items: center; gap: 0.4rem; }
.insight-meta .card-link .arw { transition: transform 0.25s var(--ease); }
.insight-card:hover .card-link .arw { transform: translateX(5px); }

/* ============ BUSINESS INSIGHTS — FEATURED CARDS ============ */
.insight-feature { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; max-width: 980px; margin-inline: auto; }
.feature-card {
  background: var(--white); border: 1px solid var(--stone); border-radius: 8px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 30px 56px -32px rgba(16,42,71,0.45); border-color: var(--gold); }
.feature-top {
  background: var(--navy); color: var(--stone);
  padding: 0.7rem 1.8rem; display: flex; justify-content: space-between; align-items: center;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.feature-top .issue { color: var(--gold); }
.feature-body { padding: 2rem 1.8rem 2.1rem; display: flex; flex-direction: column; flex: 1; }
.feature-tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.7rem; }
.feature-card h3 { font-size: 1.7rem; line-height: 1.16; margin-bottom: 0.7rem; }
.feature-card p { color: var(--ink-soft); font-size: 0.98rem; flex: 1; }
.feature-meta { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; color: var(--stone-mut); }
.feature-meta .card-link { color: var(--gold); font-weight: 700; display: inline-flex; align-items: center; gap: 0.4rem; }
.feature-meta .card-link .arw { transition: transform 0.25s var(--ease); }
.feature-card:hover .card-link .arw { transform: translateX(5px); }

/* ============ ARTICLE PAGES ============ */
.article-hero { background: var(--navy); color: var(--stone); padding: clamp(2.8rem, 7vw, 5rem) 0 clamp(2.4rem, 5vw, 3.4rem); }
.article-hero .wrap { max-width: 900px; }
.article-kicker { display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem; align-items: center; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.article-kicker .sep { color: rgba(217,222,227,0.4); }
.article-hero h1 { color: var(--white); font-size: clamp(2.1rem, 5vw, 3.3rem); max-width: 22ch; }
.article-hero .article-sub { color: var(--stone); font-size: clamp(1.05rem, 2.2vw, 1.25rem); margin-top: 1rem; max-width: 52ch; }
.article-meta-row { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; font-size: 0.82rem; letter-spacing: 0.04em; color: var(--stone-mut); }
.article-meta-row span { display: inline-flex; align-items: center; gap: 0.5rem; }

.article-body { max-width: 760px; margin-inline: auto; }
.article-body > * + * { margin-top: 0; }
.article-lead { font-family: var(--display); font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.4; color: var(--navy); font-style: italic; margin-bottom: 1.8rem; }
.article-body h2 { font-size: clamp(1.55rem, 3vw, 2.05rem); margin: 2.6rem 0 0.8rem; }
.article-body h2:first-child { margin-top: 0; }
.article-body p { color: var(--ink-soft); margin-bottom: 1.1rem; font-size: 1.06rem; line-height: 1.7; }
.article-body p .em-strong { color: var(--navy); font-weight: 700; }
.back-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--gold); font-weight: 700; font-size: 0.9rem; margin-bottom: 2rem; }
.back-link .arw { transition: transform 0.25s var(--ease); }
.back-link:hover .arw { transform: translateX(-4px); }

/* Comparison table (Boardroom vs Shop-floor) */
.compare { border: 1px solid var(--stone); border-radius: 8px; overflow: hidden; margin: 1.6rem 0 0.4rem; box-shadow: 0 20px 44px -30px rgba(16,42,71,0.4); }
.compare-row { display: grid; grid-template-columns: 1fr 1fr; }
.compare-row + .compare-row { border-top: 1px solid var(--line); }
.compare-cell { padding: 0.95rem 1.3rem; font-size: 0.98rem; }
.compare-cell.assurance { color: var(--navy); font-weight: 500; }
.compare-cell.reality { color: var(--ink-soft); border-left: 1px solid var(--line); background: var(--ivory); }
.compare-head .compare-cell { font-family: var(--body); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.78rem; }
.compare-head .assurance { background: var(--navy); color: var(--white); }
.compare-head .reality { background: var(--gold); color: var(--navy); border-left: none; }

/* Cost / numbered blocks */
.cost-list { display: grid; gap: 1.1rem; margin: 1.4rem 0 0.4rem; }
.cost-item { display: flex; gap: 1.1rem; padding: 1.4rem 1.5rem; border: 1px solid var(--stone); border-radius: 8px; background: var(--white); transition: border-color 0.3s, box-shadow 0.3s var(--ease); }
.cost-item:hover { border-color: var(--gold); box-shadow: 0 22px 44px -30px rgba(16,42,71,0.4); }
.cost-item .cn { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; font-weight: 700; }
.cost-item h3 { font-family: var(--body); font-weight: 700; font-size: 1.12rem; color: var(--navy); margin-bottom: 0.35rem; }
.cost-item p { color: var(--ink-soft); font-size: 0.97rem; margin: 0; }

/* Callout / principle banner */
.callout { background: var(--ivory); border: 1px solid var(--gold); border-left-width: 4px; border-radius: 8px; padding: clamp(1.5rem, 3vw, 2rem); text-align: center; margin: 1.8rem 0; }
.callout .label { color: var(--gold); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.76rem; }
.callout p { font-family: var(--display); font-size: clamp(1.25rem, 2.4vw, 1.6rem); color: var(--navy); font-style: italic; line-height: 1.35; margin: 0.5rem 0 0; }

/* Quote list (Continue the Conversation) */
.quote-list { margin: 1.4rem 0 0.4rem; }
.quote-list .q { display: flex; gap: 1rem; padding: 0.85rem 0; }
.quote-list .q + .q { border-top: 1px solid var(--line); }
.quote-list .q .m { flex: none; color: var(--gold); font-family: var(--display); font-size: 2.2rem; line-height: 0.75; }
.quote-list .q p { font-family: var(--display); font-size: clamp(1.2rem, 2.2vw, 1.45rem); color: var(--navy); line-height: 1.3; margin: 0; }

/* Article footer nav */
.article-nav { max-width: 760px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid var(--line); padding-top: 2rem; }
.article-nav a { color: var(--navy); font-weight: 600; display: inline-flex; align-items: center; gap: 0.5rem; }
.article-nav a:hover { color: var(--gold); }

@media (max-width: 768px) {
  .insight-feature { grid-template-columns: 1fr; }
  .compare-row { grid-template-columns: 1fr; }
  .compare-cell.reality { border-left: none; border-top: 1px dashed var(--line); }
  .compare-head { display: none; }
  .compare-cell.assurance::before { content: "Boardroom assurance — "; font-weight: 700; color: var(--stone-mut); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; display: block; }
  .compare-cell.reality::before { content: "Shop-floor reality — "; font-weight: 700; color: var(--gold); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; display: block; }
}

/* ============ CLOSING CTA BAND ============ */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(2rem, 4.5vw, 3rem); color: var(--white); max-width: 20ch; margin: 0 auto; }
.cta-band p { color: var(--stone); font-size: 1.1rem; max-width: 46ch; margin: 1.2rem auto 2.2rem; }

/* ============ FOUNDER / STORY / QUOTE ============ */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: center; }
.prose p { color: var(--ink-soft); margin-bottom: 1.1rem; }
.prose h3 { font-size: 1.6rem; margin: 1.8rem 0 0.7rem; }
.sig { margin-top: 1.6rem; }
.sig .name { font-family: var(--display); font-size: 1.5rem; font-weight: 600; color: var(--navy); }
.sig .role { font-size: 0.9rem; color: var(--ink-soft); }
.pullquote {
  background: var(--navy);
  color: var(--ivory);
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: clamp(2rem, 4vw, 3rem);
  position: relative;
}
.pullquote .qmark { font-family: var(--display); font-size: 4rem; line-height: 0.6; color: var(--gold); display: block; margin-bottom: 0.6rem; }
.pullquote p { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.25; }
.pullquote .hl { color: var(--gold); }

/* ============ MISSION / VISION / VALUES ============ */
.mvv { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.mvv-block + .mvv-block { margin-top: 2.4rem; }
.mvv-block h3 { color: var(--gold); font-family: var(--body); font-weight: 700; font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.6rem; }
.mvv-block p { color: var(--ink-soft); font-size: 1.05rem; }
.values-box { background: var(--navy); border: 1px solid var(--gold); border-radius: 8px; padding: clamp(1.8rem, 4vw, 2.6rem); }
.values-box h3 { color: var(--gold); font-size: 1.6rem; margin-bottom: 1.2rem; }
.value-item { padding: 0.85rem 0; border-top: 1px solid rgba(217,222,227,0.18); }
.value-item:first-of-type { border-top: none; }
.value-item strong { color: var(--gold); }
.value-item span { color: var(--stone); font-size: 0.95rem; }

/* ============ PRINCIPLES ============ */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem 3rem; }
.principle { display: flex; gap: 1.1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.principle .pn {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: grid; place-items: center; font-weight: 700; font-size: 0.95rem;
}
.principle h4 { font-family: var(--body); font-weight: 700; font-size: 1.05rem; color: var(--navy); margin-bottom: 0.2rem; }
.principle p { color: var(--ink-soft); font-size: 0.95rem; }

/* ============ CREDENTIALS / METRICS ============ */
.cred-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cred-box { border: 1px solid var(--navy); border-radius: 6px; padding: 1.8rem 1.2rem; text-align: center; }
.cred-box strong { display: block; font-family: var(--display); font-size: 1.35rem; color: var(--navy); }
.cred-box span { display: block; font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.25rem; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }
.metric .n { font-family: var(--display); font-weight: 600; font-size: clamp(3rem, 6vw, 4.2rem); line-height: 1; color: var(--gold); }
.metric p { color: var(--navy); font-size: 0.98rem; margin-top: 0.7rem; }

/* ============ JOURNEY STEPS ============ */
.journey { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.2rem; counter-reset: j; }
.jstep { text-align: center; position: relative; }
.jstep .jn { width: 46px; height: 46px; margin: 0 auto 0.9rem; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--navy); display: grid; place-items: center; font-weight: 700; }
.jstep h4 { font-family: var(--body); font-weight: 700; font-size: 1.05rem; color: var(--navy); }
.jstep .tag { color: var(--gold); font-size: 0.8rem; font-weight: 600; display: block; margin: 0.2rem 0 0.5rem; }
.jstep p { color: var(--ink-soft); font-size: 0.875rem; }

/* ============ FAQ ============ */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; }
.faq-item { border: 1px solid var(--line); border-radius: 8px; background: var(--white); padding: 1.4rem 1.5rem; }
.faq-item h4 { font-family: var(--body); font-weight: 700; font-size: 1.05rem; color: var(--navy); margin-bottom: 0.4rem; }
.faq-item p { color: var(--ink-soft); font-size: 0.95rem; }

/* ============ CONTACT ============ */
.contact-grid { display: grid; grid-template-columns: 40% 60%; gap: 60px; align-items: start; }
.contact-info h3 { font-family: var(--body); font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--navy); margin-bottom: 0.35rem; }
.contact-info .block + .block { margin-top: 1.8rem; }
.contact-info p, .contact-info a { color: var(--navy); }
.contact-info a:hover { color: var(--gold); }
.form-box { background: var(--white); border-radius: 6px; box-shadow: 0 24px 60px -34px rgba(16,42,71,0.5); border: 1px solid var(--line); padding: 40px; }
.field { margin-bottom: 1.6rem; }
.field label { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.5rem; }
.field input, .field textarea {
  width: 100%; font-family: var(--body); font-size: 1rem; color: var(--navy);
  background: transparent; border: none; border-bottom: 1px solid var(--stone);
  padding: 0.6rem 0.1rem; transition: border-color 0.25s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--stone-mut); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold); }
.field textarea { resize: vertical; min-height: 110px; }
.form-done { color: var(--gold); font-weight: 600; margin-top: 1rem; }

/* ============ SERVICE PAGES ============ */
.svc-hero {
  position: relative;
  min-height: min(60vh, 520px);
  display: flex; align-items: center;
  background-size: cover; background-position: center right;
}
.svc-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,42,71,0.94) 0%, rgba(16,42,71,0.82) 42%, rgba(16,42,71,0.28) 72%, rgba(16,42,71,0.08) 100%); }
.svc-hero .wrap { position: relative; width: 100%; }
.svc-hero-copy { max-width: 46%; padding-left: clamp(0px, 5vw, 60px); }
.svc-hero h1 { color: var(--white); font-size: clamp(2.4rem, 5vw, 3.6rem); }
.svc-hero p { color: var(--stone); font-size: 1.15rem; margin-top: 1rem; }
.scope-list { max-width: 800px; margin: 0 auto; }
.scope-item { padding: 1.6rem 0; border-bottom: 1px solid var(--stone); }
.scope-item:first-child { padding-top: 0; }
.scope-item h3 { font-family: var(--body); font-weight: 700; font-size: 1.15rem; color: var(--navy); margin-bottom: 0.35rem; }
.scope-item p { color: var(--ink-soft); font-size: 0.98rem; }
.outcome { text-align: center; max-width: 760px; margin: 0 auto; }
.outcome p { font-family: var(--display); font-size: clamp(1.4rem, 2.8vw, 1.9rem); line-height: 1.4; color: var(--navy); font-style: italic; margin-bottom: 2rem; }

/* ============ FOOTER ============ */
.site-footer { background: var(--navy); color: var(--stone); border-top: 1px solid var(--stone); padding: 60px 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer-brand img { width: 42px; height: 42px; margin-bottom: 1rem; filter: none; }
.footer-brand .fname { font-family: var(--display); font-size: 1.35rem; color: var(--white); margin-bottom: 1rem; }
.footer-brand .fname .v { color: var(--gold); }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; color: var(--stone); }
.footer-col h4 { font-family: var(--body); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--white); margin-bottom: 0.9rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { line-height: 2.0; }
.footer-col a { font-size: 14px; color: var(--stone); transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { max-width: var(--wrap); margin: 2.5rem auto 0; padding: 1.4rem var(--pad) 0; border-top: 1px solid rgba(217,222,227,0.2); font-size: 0.8rem; color: var(--stone-mut); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.footer-credit { text-align: center; padding: 1.1rem var(--pad) 0; font-size: 0.78rem; letter-spacing: 0.02em; color: var(--stone-mut); }
.footer-credit .ed { color: var(--gold); font-weight: 600; }
.footer-credit a.ed:hover { color: var(--white); }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
  .nav-menu, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-menu.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 1rem var(--pad) 1.6rem;
    box-shadow: 0 24px 40px -24px rgba(16,42,71,0.3);
  }
  .nav-menu.open > li { width: 100%; }
  .nav-menu.open .dropdown {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: none; padding: 0 0 0 1rem; min-width: 0;
  }
  .nav-menu.open .caret { display: none; }
  .nav-menu.open .cta-li { display: block; margin-top: 0.6rem; }

  .hero { grid-template-columns: 1fr; }
  .hero-photo { min-height: 320px; order: 2; }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .solutions-grid .solution-card,
  .solutions-grid .solution-card:nth-child(4),
  .solutions-grid .solution-card:nth-child(5) { grid-column: auto; }
  .journey { grid-template-columns: repeat(3, 1fr); gap: 1.6rem 1rem; }
}

@media (max-width: 768px) {
  .pillars, .mvv, .split, .contact-grid, .principles, .faq-grid { grid-template-columns: 1fr; }
  .pillars-title { position: static; }
  .iso-badges, .cards-3, .cred-row, .metrics, .team-grid { grid-template-columns: 1fr 1fr; }
  .solutions-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .journey { grid-template-columns: 1fr 1fr; }
  .svc-hero::before { background: rgba(16,42,71,0.9); }
  .svc-hero-copy { max-width: 100%; padding-left: 0; }
  .contact-grid { gap: 2.5rem; }

  .hero-cinema { height: 100vh; }
  .hero-cinema .hero-copy { max-width: 100%; }
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(248,247,243,0.5) 0%, rgba(248,247,243,0.12) 28%, rgba(248,247,243,0.55) 72%, rgba(248,247,243,0.92) 100%);
  }
}

@media (max-width: 460px) {
  .iso-badges, .cards-3, .cred-row, .metrics, .journey, .team-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ENHANCED MOTION  (added 2026-07-28)
   Subtle, on-brand choreography — load · scroll · hover
   ============================================================ */

/* ---- Scroll progress bar (element injected by script.js) ---- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
  z-index: 300; pointer-events: none; will-change: transform;
}

/* ---- Nav: condense + shadow once scrolled ---- */
.site-nav { transition: box-shadow 0.3s var(--ease), background 0.3s; }
.site-nav.scrolled { box-shadow: 0 12px 32px -22px rgba(16,42,71,0.5); }
.nav-inner { transition: padding 0.3s var(--ease); }
.site-nav.scrolled .nav-inner { padding-top: 12px; padding-bottom: 12px; }

/* Animated gold underline on top-level nav links */
.nav-menu > li > a { position: relative; }
.nav-menu > li > a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.3s var(--ease);
}
.nav-menu > li > a:hover::after,
.nav-menu > li > a.active::after { transform: scaleX(1); }

/* ---- HERO entrance (home) ---- */
@keyframes cvRise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes cvPhotoIn { from { opacity: 0; clip-path: inset(0 0 0 14%); transform: scale(1.12); } to { opacity: 1; clip-path: inset(0 0 0 0); transform: scale(1.06); } }
@keyframes cvKenBurns { from { transform: scale(1.06); } to { transform: scale(1); } }

.hero-cats, .hero-sub, .hero-actions { animation: cvRise 0.8s var(--ease) both; }
.hero-cats    { animation-delay: 0.10s; }
.hero h1 .navy { animation: cvRise 0.9s var(--ease) both; animation-delay: 0.24s; }
.hero h1 .gold { animation: cvRise 0.9s var(--ease) both; animation-delay: 0.36s; }
.hero-sub     { animation-delay: 0.50s; }
.hero-actions { animation-delay: 0.62s; }
.hero-photo { animation: cvPhotoIn 1.1s var(--ease) both, cvKenBurns 16s ease-out 1.1s forwards; }

/* ---- Service-page hero entrance ---- */
@keyframes cvFade { from { opacity: 0; } to { opacity: 1; } }
.svc-hero::before { animation: cvFade 1s ease both; }
.svc-hero-copy > * { animation: cvRise 0.85s var(--ease) both; }
.svc-hero-copy h1 { animation-delay: 0.18s; }
.svc-hero-copy p  { animation-delay: 0.34s; }

/* ---- Heading: gold rule draws in when its section reveals ---- */
.section-head h2 { position: relative; display: inline-block; }
.section-head h2::after {
  content: ""; position: absolute; left: 50%; bottom: -0.6rem;
  width: 62px; height: 3px; background: var(--gold);
  transform: translateX(-50%) scaleX(0); transform-origin: center;
  transition: transform 0.7s var(--ease) 0.15s;
}
.section-head.in h2::after { transform: translateX(-50%) scaleX(1); }

/* ---- Directional reveal variants (classes added by script.js) ---- */
.reveal.from-left  { transform: translateX(-34px); }
.reveal.from-right { transform: translateX(34px); }
.reveal.from-left.in, .reveal.from-right.in { transform: none; }

/* ---- Hover polish: cards, badges, numbers ---- */
.mini-card { transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s; }
.mini-card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -30px rgba(16,42,71,0.45); border-color: var(--gold); }
.mini-card .ic { transition: transform 0.3s var(--ease); }
.mini-card:hover .ic { transform: translateY(-2px) scale(1.08); }

.iso-badge { transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s; }
.iso-badge:hover { transform: translateY(-5px); box-shadow: 0 20px 42px -26px rgba(16,42,71,0.55); border-color: var(--gold); }

.solution-card { position: relative; overflow: hidden; }
.solution-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.35s var(--ease);
}
.solution-card:hover::before { transform: scaleX(1); }

.jstep .jn, .principle .pn { transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, border-color 0.3s; }
.jstep:hover .jn { background: var(--gold); color: var(--navy); border-color: var(--gold); transform: translateY(-3px); }
.principle:hover .pn { transform: translateY(-2px) scale(1.06); }

/* ---- Subtle sheen sweep on gold buttons ---- */
.btn { position: relative; overflow: hidden; }
.btn-gold::after, .btn-gold-navy::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-18deg); pointer-events: none;
}
.btn-gold:hover::after, .btn-gold-navy:hover::after { animation: cvSheen 0.7s ease; }
@keyframes cvSheen { to { left: 130%; } }

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal,
  .hero-cats, .hero-sub, .hero-actions, .hero h1 .navy, .hero h1 .gold,
  .hero-photo, .svc-hero-copy > *, .svc-hero::before,
  .hero-cinema .hero-copy {
    opacity: 1 !important; transform: none !important; clip-path: none !important;
  }
  .scroll-progress { display: none !important; }

  /* Cinematic hero collapses to a static, fully-branded hero (poster frame + wash). */
  .hero-cinema { --p: 1 !important; height: auto !important; }
  .hero-stage { position: relative; height: auto; min-height: 88vh; }
  .hero-vid { transform: none !important; filter: none !important; }
  .hero-scroll-cue { display: none !important; }
  body.home { --nav: 1 !important; }
}
