/* ==========================================================================
   Hattingh Group Holdings — site stylesheet
   Navy + gold identity. Display: Cormorant Garamond. Text: Inter.
   ========================================================================== */

/* ---------- Self-hosted fonts (no third-party requests) ---------- */
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --navy: #111f38;
  --navy-2: #182a4a;
  --navy-line: #2b3b58;
  --gold: #b78a40;
  --gold-dark: #8e641f;
  --gold-light: #dfbd7e;
  --cream: #f6f4ef;
  --ink: #19273e;
  --muted: #5b6574;
  --border: #e2e1dc;
  --white: #fff;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(17, 31, 56, .06), 0 12px 32px -12px rgba(17, 31, 56, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --header-h: 92px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold-light); color: var(--navy); }

p { margin: 0 0 1.3em; color: var(--muted); }
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -.01em; color: inherit; }
h2 { font-size: clamp(32px, 3.6vw, 50px); line-height: 1.1; margin: 0 0 24px; }
h3 { font-size: 19px; line-height: 1.35; font-weight: 600; letter-spacing: -.01em; }
em { font-style: italic; }

.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }
.section { padding-block: clamp(56px, 8vw, 96px); }
.large { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink); line-height: 1.65; }
.dark, .lede.dark { color: var(--muted); max-width: 760px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  line-height: 1.6;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
.eyebrow.plain::before { display: none; }

/* ---------- Skip link ---------- */
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--white); padding: 10px 16px; box-shadow: var(--shadow); }
.skip:focus { top: 12px; }

/* ---------- Top line ---------- */
.topline { background: var(--navy); color: #e9dcbf; font-size: 11px; letter-spacing: .14em; padding: 9px 0; text-transform: uppercase; }
.topline .wrap { display: flex; justify-content: space-between; gap: 20px; }
.topline a { letter-spacing: .04em; text-transform: none; color: #fff; opacity: .85; transition: opacity .2s; }
.topline a:hover { opacity: 1; }

/* ---------- Header ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
.nav.scrolled { border-color: var(--border); box-shadow: 0 8px 30px -18px rgba(17, 31, 56, .35); }
.nav > .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; height: var(--header-h); transition: height .3s var(--ease); }
.nav.scrolled > .wrap { height: 74px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 66px; width: auto; transition: height .3s var(--ease); }
.nav.scrolled .brand img { height: 54px; }
.nav nav { display: flex; gap: 34px; font-size: 14px; font-weight: 500; }
.nav nav a { padding: 8px 0; position: relative; color: var(--ink); }
.nav nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav nav a:hover::after, .nav nav a[aria-current]::after { transform: scaleX(1); }
.navcta { font-size: 13.5px; font-weight: 500; border: 1px solid var(--ink); padding: 11px 20px; border-radius: var(--radius); transition: background .2s, color .2s; }
.navcta:hover { background: var(--ink); color: #fff; }
.menutoggle { display: none; align-items: center; gap: 10px; background: transparent; border: 1px solid var(--border); border-radius: var(--radius); padding: 9px 14px; font-size: 13px; font-weight: 500; cursor: pointer; }
.menutoggle .bars { width: 18px; height: 12px; position: relative; }
.menutoggle .bars::before, .menutoggle .bars::after, .menutoggle .bars span { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--ink); transition: transform .25s, opacity .25s, top .25s; }
.menutoggle .bars::before { top: 0; }
.menutoggle .bars span { top: 5px; }
.menutoggle .bars::after { top: 10px; }
.menutoggle[aria-expanded="true"] .bars::before { top: 5px; transform: rotate(45deg); }
.menutoggle[aria-expanded="true"] .bars::after { top: 5px; transform: rotate(-45deg); }
.menutoggle[aria-expanded="true"] .bars span { opacity: 0; }

/* ---------- Buttons & links ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button {
  display: inline-flex; justify-content: space-between; align-items: center; gap: 22px;
  padding: 15px 24px; border-radius: var(--radius);
  background: var(--gold); color: #fff; border: 1px solid var(--gold);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.button span[aria-hidden] { transition: transform .25s var(--ease); }
.button:hover { background: #9f7633; border-color: #9f7633; }
.button:hover span[aria-hidden] { transform: translate(3px, -3px); }
.button:active { transform: translateY(1px); }
.button.secondary { background: transparent; border-color: #c9ccd2; color: var(--ink); }
.button.secondary:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.hero .button.secondary, .pagehead .button.secondary, .on-dark .button.secondary { color: #fff; border-color: #4d5a72; }
.hero .button.secondary:hover, .on-dark .button.secondary:hover { background: #fff; color: var(--navy); border-color: #fff; }
.textlink { font-size: 14px; color: var(--gold-dark); font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.textlink:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: #fff; overflow: hidden; position: relative; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 80% at 85% 40%, rgba(183, 138, 64, .16), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(40, 70, 120, .45), transparent 70%);
}
.herogrid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; min-height: min(720px, calc(100vh - 120px)); padding-block: 80px; }
.hero .eyebrow { color: var(--gold-light); }
.hero h1 { font-size: clamp(50px, 6.2vw, 92px); line-height: 1; margin: 0 0 28px; font-weight: 500; letter-spacing: -.02em; }
.hero h1 em { color: var(--gold-light); }
.lede { font-size: clamp(16px, 1.4vw, 18.5px); line-height: 1.7; max-width: 620px; color: #c5ccda; }
/* ---------- Hero artwork: "Convergence" (see hero.js) ---------- */
.convergence { position: relative; width: 100%; max-width: 620px; aspect-ratio: 1 / 1.02; justify-self: center; user-select: none; -webkit-user-select: none; }
.convergence canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.convergence::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(183, 138, 64, .16), rgba(183, 138, 64, .04) 60%, transparent); filter: blur(10px); pointer-events: none; transition: inset 1.2s var(--ease), opacity 1.2s; }
.convergence.is-dispersed::before { inset: 34%; opacity: .7; }
.cv-fallback { position: absolute; left: 50%; top: 47%; width: 62%; transform: translate(-50%, -50%); }
.convergence.ready .cv-fallback { display: none; }
.cv-corner { position: absolute; width: 18px; height: 18px; border-color: rgba(223, 189, 126, .55); border-style: solid; border-width: 0; pointer-events: none; }
.cv-corner.tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.cv-corner.tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.cv-corner.bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.cv-corner.br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.cv-meta { position: absolute; margin: 0; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(214, 189, 148, .8); font-variant-numeric: tabular-nums; pointer-events: none; }
.cv-fig { top: 6px; left: 28px; }
.cv-coords { top: 6px; right: 28px; }
.cv-state { bottom: 8px; left: 28px; color: #fff; opacity: .85; transition: opacity .4s; }
.cv-toggle {
  position: absolute; bottom: 0; right: 24px; display: inline-flex; align-items: center; gap: 10px;
  background: rgba(17, 31, 56, .6); color: #f3e8cf; border: 1px solid rgba(223, 189, 126, .45); border-radius: 999px;
  padding: 9px 16px 9px 12px; font-size: 12.5px; white-space: nowrap; font-weight: 500; letter-spacing: .02em; cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .25s, border-color .25s, color .25s;
}
.cv-toggle:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.cv-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid currentColor; position: relative; flex: none; }
.cv-dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: currentColor; transition: transform .4s var(--ease); }
.cv-toggle[aria-pressed="true"] .cv-dot::after { transform: scale(.35); }
.cv-labels a {
  position: absolute; transform: translate(-50%, 0); white-space: nowrap; font-size: 11.5px; font-weight: 500; color: #f3e8cf;
  display: inline-flex; gap: 6px; align-items: baseline; padding: 2px 6px; border-radius: 3px;
  opacity: 0; translate: 0 6px; pointer-events: none; transition: opacity .5s var(--ease), translate .5s var(--ease), color .2s, background .2s;
}
.cv-labels a span { font-size: 9.5px; color: var(--gold-light); letter-spacing: .08em; }
.cv-labels a:hover { background: rgba(223, 189, 126, .15); color: #fff; }
.is-dispersed .cv-labels a { opacity: 1; translate: 0 0; pointer-events: auto; transition-delay: inherit; }
.convergence:not(.is-dispersed) .cv-labels a { transition-delay: 0s !important; }
.cv-tip {
  position: absolute; left: 0; top: 0; pointer-events: none; z-index: 3; background: #fff; color: var(--navy);
  padding: 8px 12px; border-radius: 3px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); white-space: nowrap; text-align: center;
}
.cv-tip::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: #fff; transform: translateX(-50%) rotate(45deg); }
.cv-tip strong { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.cv-tip span { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Stat band ---------- */
.statband { background: var(--cream); border-bottom: 1px solid var(--border); }
.statband > .wrap { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 30px; }
.statband .wrap > div { display: flex; align-items: center; justify-content: center; gap: 16px; border-right: 1px solid var(--border); padding: 4px 12px; }
.statband .wrap > div:last-child { border: 0; }
.statband strong { font-family: var(--display); font-size: 44px; font-weight: 500; line-height: 1; color: var(--navy); }
.statband span { font-size: 12.5px; color: var(--muted); line-height: 1.35; max-width: 110px; }

/* ---------- Split intro ---------- */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 7vw, 100px); padding-block: clamp(60px, 8vw, 100px); }

/* ---------- Logo marquee ---------- */
.marquee { border-block: 1px solid var(--border); padding: 26px 0; overflow: hidden; position: relative; background: #fff; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, #fff, transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, #fff, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 80s linear infinite; }
.marquee-group { display: flex; gap: 56px; padding-right: 56px; flex: none; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee a { display: grid; place-items: center; height: 64px; width: 120px; flex: none; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.marquee a:hover, .marquee a:focus-visible { filter: none; opacity: 1; }
.marquee img { max-height: 64px; max-width: 120px; object-fit: contain; mix-blend-mode: multiply; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sector list ---------- */
.portfolio-section { padding-block: clamp(60px, 8vw, 90px); background: var(--cream); }
.sectiontop { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 36px; }
.sectiontop > p { font-size: 15px; max-width: 340px; margin: 0; }
.sectiontop h2 { margin: 0; }
.sectorlist { border-top: 1px solid #d6d3cb; }
.sectorrow { display: grid; grid-template-columns: 60px 1fr auto 40px; gap: 20px; align-items: center; border-bottom: 1px solid #d6d3cb; padding: 18px 8px; position: relative; transition: background .25s, padding .3s var(--ease); }
.sectorrow:hover, .sectorrow:focus-visible { background: #fff; padding-left: 20px; }
.sectorrow .num { font-size: 13px; color: var(--gold-dark); font-variant-numeric: tabular-nums; }
.sectorrow h3 { font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2.2vw, 28px); margin: 0; letter-spacing: 0; }
.sectorrow .count { font-size: 12.5px; color: var(--muted); display: block; font-family: var(--text); margin-top: 2px; }
.sectorrow .minilogos { display: flex; gap: 8px; }
.sectorrow .minilogos span { width: 54px; height: 38px; background: #fff; border: 1px solid var(--border); border-radius: 3px; display: grid; place-items: center; padding: 4px; }
.sectorrow .minilogos img { max-height: 28px; object-fit: contain; mix-blend-mode: multiply; }
.sectorrow .arrow { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #c9c5bb; display: grid; place-items: center; color: var(--gold-dark); transition: background .25s, color .25s, border-color .25s; }
.sectorrow:hover .arrow { background: var(--gold); color: #fff; border-color: var(--gold); }

/* ---------- Company cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.company { border: 1px solid var(--border); background: #fff; display: flex; flex-direction: column; border-radius: var(--radius); position: relative; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.company:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d3d0c7; }
.logobox { height: 168px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid #efeee9; padding: 24px; }
.logobox img { max-height: 118px; max-width: 220px; width: auto; object-fit: contain; mix-blend-mode: multiply; transition: transform .45s var(--ease); }
.company:hover .logobox img { transform: scale(1.04); }
.cardbody { padding: 24px 26px 22px; display: flex; flex-direction: column; flex: 1; }
.cardbody .eyebrow { font-size: 10.5px; letter-spacing: .12em; margin-bottom: 10px; min-height: 34px; align-items: flex-start; }
.cardbody .eyebrow::before { display: none; }
.cardbody h3 { margin: 0 0 12px; font-size: 20px; }
.cardbody h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.cardbody p { font-size: 14.5px; line-height: 1.65; }
.cardbody .textlink { margin-top: auto; border-top: 1px solid #ecebe6; padding-top: 16px; display: flex; justify-content: space-between; }
.company:hover .textlink { color: var(--ink); }

/* ---------- CTA ---------- */
.cta-band { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(223, 189, 126, .25); }
.cta { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding-block: clamp(56px, 7vw, 84px); position: relative; }
.cta h2 { margin-bottom: 0; }
.cta .eyebrow { color: var(--gold-light); }

/* ---------- Page header ---------- */
.pagehead { background: var(--navy); color: #fff; padding-block: clamp(56px, 7vw, 90px); position: relative; overflow: hidden; isolation: isolate; }
.pagehead::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 90% at 90% 20%, rgba(183, 138, 64, .16), transparent 65%); }
.pagehead h1 { font-size: clamp(44px, 5.4vw, 74px); line-height: 1.05; margin: 0 0 22px; }
.pagehead .eyebrow { color: var(--gold-light); }
.pagehead .lede { margin: 0; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 13px; color: var(--muted); margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #b7b9be; }
.breadcrumb a:hover { color: var(--gold-dark); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 500; }

/* ---------- About ---------- */
.purpose { background: var(--cream); padding-block: clamp(56px, 8vw, 96px); }
.purpose h2 { max-width: 1020px; font-size: clamp(30px, 3.6vw, 50px); }
.leaders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin: 44px 0 34px; max-width: 900px; }
.leader { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.leader picture { display: block; aspect-ratio: 4 / 4.6; background: linear-gradient(180deg, #e9ebee, #dcdfe4); overflow: hidden; }
.leader img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; transition: transform .8s var(--ease); }
.leader:hover img { transform: scale(1.03); }
.leader .caption { padding: 24px 28px 26px; border-top: 3px solid var(--gold); }
.leader h3 { font-family: var(--display); font-size: 28px; font-weight: 600; margin: 0 0 2px; letter-spacing: 0; }
.leader p { margin: 0; color: var(--gold-dark); font-size: 14px; font-weight: 500; }
.regline { font-size: 14px; }

/* ---------- Capabilities ---------- */
.capabilities { margin-top: 30px; }
.capabilities article { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 36px 0; border-bottom: 1px solid var(--border); }
.capabilities article:first-child { border-top: 1px solid var(--border); }
.capabilities article > span { font-family: var(--display); font-size: 40px; color: var(--gold); line-height: 1; }
.capabilities h2 { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 12px; }
.capabilities p { max-width: 760px; margin: 0; font-size: 16px; }

/* ---------- Portfolio filters ---------- */
.filters { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 20px; align-items: end; background: var(--cream); padding: 24px; margin: 30px 0 14px; border-radius: var(--radius); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.chip { border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 7px 14px; font-size: 13px; cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
input, select, textarea { width: 100%; background: #fff; border: 1px solid #c3c7cd; padding: 12px 14px; color: var(--ink); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(183, 138, 64, .2); outline: none; }
input, select { height: 50px; }
.reset { background: transparent; border: 1px solid #c3c7cd; height: 50px; padding: 10px 18px; cursor: pointer; font-size: 13.5px; border-radius: var(--radius); }
.reset:hover { border-color: var(--ink); }
#resultcount { font-size: 13.5px; margin-bottom: 22px; }
#empty { padding: 40px; text-align: center; background: var(--cream); border-radius: var(--radius); }

/* ---------- Contact ---------- */
.contactgrid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 90px); align-items: start; }
.contactgrid .email { font-family: var(--display); font-size: clamp(24px, 2.6vw, 34px); display: inline-block; margin: 14px 0 6px; color: var(--gold-dark); border-bottom: 1px solid currentColor; line-height: 1.2; word-break: break-word; }
.copybtn { background: none; border: 0; padding: 0; font-size: 13px; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; margin-bottom: 28px; display: block; }
.contactgrid form { padding: clamp(24px, 4vw, 40px); background: var(--cream); border-radius: var(--radius); position: sticky; top: 100px; }
form h2 { font-size: 34px; }
form label { margin-top: 18px; }
form button { margin-top: 24px; }
form .small { font-size: 12.5px; margin-top: 18px; }
form p { font-size: 14px; }
#formstatus:not(:empty) { background: #fff; border-left: 3px solid var(--gold); padding: 12px 14px; color: var(--ink); }
.websites { margin-top: 36px; }
.websitelink { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 15px; transition: color .2s, padding .25s var(--ease); }
.websitelink:hover { color: var(--gold-dark); padding-left: 6px; }

/* ---------- Business detail ---------- */
.detailhead { padding-top: 34px; }
.businessdetail { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 6vw, 80px); align-items: center; margin: 40px 0 10px; }
.businessdetail h1 { font-size: clamp(40px, 4.6vw, 62px); line-height: 1.05; margin: 6px 0 18px; }
.detailimage { border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; aspect-ratio: 4 / 3; display: grid; place-items: center; background: #fff; position: relative; }
.detailimage::after { content: ""; position: absolute; inset: 10px; border: 1px solid #f0eee8; border-radius: 2px; pointer-events: none; }
.detailimage img { max-width: 100%; max-height: 240px; object-fit: contain; mix-blend-mode: multiply; }
.tagline { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin-bottom: 20px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--border); margin: 28px 0 0; }
.facts div { padding: 16px 16px 16px 0; }
.facts div + div { padding-left: 16px; border-left: 1px solid var(--border); }
.facts dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; margin-bottom: 4px; }
.facts dd { margin: 0; font-size: 14px; color: var(--ink); line-height: 1.45; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 50px; }
.pager a { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; display: flex; flex-direction: column; gap: 2px; transition: border-color .2s, background .2s; }
.pager a:hover { border-color: var(--gold); background: #fffdf8; }
.pager small { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.pager strong { font-family: var(--display); font-size: 22px; font-weight: 600; }
.pager .next { text-align: right; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound .big { font-family: var(--display); font-size: clamp(100px, 18vw, 200px); line-height: 1; color: var(--gold); margin: 0; }
.notfound .actions { justify-content: center; }

/* ---------- Footer ---------- */
footer { background: var(--navy); color: #fff; padding: 70px 0 24px; }
.footgrid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.3fr; gap: 50px; }
.footerlogo { width: 190px; margin-bottom: 18px; }
.footgrid h3 { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); margin: 6px 0 16px; }
.footgrid p, .footgrid a { font-size: 14px; color: #c1c7d2; display: block; margin: 8px 0; }
.footgrid a { transition: color .2s; width: fit-content; }
.footgrid a:hover { color: #fff; }
.footnote { display: flex; justify-content: space-between; gap: 20px; font-size: 12.5px; border-top: 1px solid var(--navy-line); padding-top: 22px; margin-top: 50px; color: #a2aab8; }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .cards .company.reveal { transition-delay: calc(var(--i, 0) * 70ms); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .sectorrow .minilogos { display: none; }
  .sectorrow { grid-template-columns: 50px 1fr 40px; }
  .footgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1000px) {
  .nav nav { gap: 22px; }
  .navcta { display: none; }
  .herogrid { gap: 30px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .statband span { max-width: 90px; }
}
@media (max-width: 760px) {
  :root { --header-h: 74px; }
  .topline { font-size: 9.5px; }
  .topline a { display: none; }
  .brand img, .nav.scrolled .brand img { height: 50px; }
  .nav.scrolled > .wrap { height: 66px; }
  .menutoggle { display: inline-flex; }
  .nav nav {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; padding: 8px 20px 20px; border-bottom: 1px solid var(--border);
    box-shadow: 0 20px 30px -20px rgba(17, 31, 56, .35);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
  }
  .nav nav.open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s var(--ease); }
  .nav nav a { padding: 14px 0; border-bottom: 1px solid #f0efeb; font-size: 16px; }
  .nav nav a::after { display: none; }
  .nav nav a[aria-current] { color: var(--gold-dark); }
  .herogrid { grid-template-columns: 1fr; padding-block: 56px 40px; gap: 24px; min-height: 0; }
  .hero h1 { font-size: clamp(46px, 13vw, 60px); }
  .convergence { max-width: 420px; aspect-ratio: 1 / 1.08; }
  .cv-meta { font-size: 9px; letter-spacing: .14em; }
  .cv-fig, .cv-state { left: 22px; }
  .cv-coords { right: 22px; }
  .cv-state { display: none; }
  .cv-toggle { left: 50%; right: auto; bottom: 8px; transform: translateX(-50%); }
  .cv-labels a { font-size: 10px; padding: 2px 4px; }
  .cv-labels a span { display: none; }
  .statband > .wrap { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .statband .wrap > div { justify-content: flex-start; }
  .statband .wrap > div:nth-child(2) { border: 0; }
  .statband strong { font-size: 36px; }
  .split, .contactgrid, .businessdetail { grid-template-columns: 1fr; }
  .sectiontop { display: block; }
  .sectiontop > p { margin-top: 12px; }
  .sectiontop .button { margin-top: 20px; }
  .cards { grid-template-columns: 1fr; }
  .sectorrow { grid-template-columns: 34px 1fr 34px; gap: 12px; padding: 16px 0; }
  .sectorrow:hover { padding-left: 0; }
  .sectorrow .arrow { width: 32px; height: 32px; }
  .cta { display: block; }
  .cta .button { margin-top: 26px; }
  .filters { grid-template-columns: 1fr; padding: 20px; }
  .leaders { grid-template-columns: 1fr; max-width: 440px; }
  .capabilities article { grid-template-columns: 1fr; gap: 6px; }
  .capabilities article > span { font-size: 30px; }
  .contactgrid form { position: static; }
  .detailimage { aspect-ratio: auto; min-height: 220px; padding: 30px; }
  .facts { grid-template-columns: 1fr; }
  .facts div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--border); }
  .pager { grid-template-columns: 1fr; }
  .footgrid { grid-template-columns: 1fr; gap: 26px; }
  .footnote { display: block; }
  .footnote span { display: block; margin-top: 8px; }
  .marquee a { width: 96px; }
  .marquee-group { gap: 36px; padding-right: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { width: auto; }
  .marquee-group { flex-wrap: wrap; justify-content: center; row-gap: 20px; padding: 0 20px; }
  .marquee-group[aria-hidden="true"] { display: none; }
  .marquee::before, .marquee::after { display: none; }
}

@media print {
  .topline, .nav, .menutoggle, .cta-band, .marquee, footer, .filters, .chips { display: none !important; }
  .hero, .pagehead { background: none; color: var(--ink); }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Intro loader — "Roll Call" (loader.js). Homepage, once per session.
   ========================================================================== */
.loader { display: none; }
.is-loading body { overflow: hidden; }
.is-loading .loader { display: block; position: fixed; inset: 0; z-index: 1000; }
.ld-bg {
  position: absolute; inset: 0; background: var(--navy); color: #fff; overflow: hidden;
  background-image:
    radial-gradient(50% 60% at var(--ox, 70%) var(--oy, 50%), rgba(183, 138, 64, .14), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(40, 70, 120, .45), transparent 70%);
}
.loader canvas { position: absolute; inset: 0; pointer-events: none; }
.ld-corner { position: absolute; width: 22px; height: 22px; border: 0 solid rgba(223, 189, 126, .55); }
.ld-corner.tl { top: 20px; left: 20px; border-top-width: 1px; border-left-width: 1px; }
.ld-corner.tr { top: 20px; right: 20px; border-top-width: 1px; border-right-width: 1px; }
.ld-corner.bl { bottom: 20px; left: 20px; border-bottom-width: 1px; border-left-width: 1px; }
.ld-corner.br { bottom: 20px; right: 20px; border-bottom-width: 1px; border-right-width: 1px; }
.ld-meta { position: absolute; top: 24px; margin: 0; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: rgba(214, 189, 148, .8); }
.ld-l { left: 54px; }
.ld-r { right: 54px; }
.ld-stage { height: 100%; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; }
.ld-copy { max-width: 520px; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.ld-kicker { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); margin: 0 0 6px; display: flex; gap: 12px; align-items: center; }
.ld-kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.ld-count { font-family: var(--display); font-weight: 500; line-height: .9; display: flex; align-items: flex-start; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.03em; }
.ld-num { font-size: clamp(120px, 15vw, 230px); color: #fff; min-width: 2ch; }
.ld-of { font-size: clamp(28px, 3vw, 44px); color: var(--gold-light); margin-top: .5em; margin-left: .15em; }
.ld-sector { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(214, 189, 148, .85); margin: 18px 0 6px; min-height: 1.6em; }
.ld-name { position: relative; height: 1.25em; overflow: hidden; margin: 0; font-family: var(--display); font-size: clamp(28px, 3vw, 42px); font-weight: 500; color: #fff; line-height: 1.2; }
.ld-name span { position: absolute; left: 0; top: 0; white-space: nowrap; transition: transform .22s var(--ease), opacity .22s; animation: ld-in .22s var(--ease); }
.ld-name span.old { transform: translateY(-100%); opacity: 0; }
@keyframes ld-in { from { transform: translateY(100%); opacity: 0; } }
.is-complete .ld-name span.cur { color: var(--gold-light); font-style: italic; }
.ld-bar { height: 1px; background: rgba(255, 255, 255, .14); margin-top: 26px; max-width: 420px; }
.ld-bar i { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .2s linear; }
.ld-skip {
  position: absolute; right: 54px; bottom: 26px; background: none; border: 0; color: rgba(255, 255, 255, .6);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .25); transition: color .2s, border-color .2s, opacity .4s;
}
.ld-skip:hover { color: #fff; border-color: var(--gold); }
.is-revealing .ld-copy { opacity: 0; transform: translateY(-24px); }
.is-revealing .ld-skip, .is-revealing .ld-meta { opacity: 0; transition: opacity .4s; }
@media (max-width: 760px) {
  .ld-stage { grid-template-columns: 1fr; align-items: end; padding-bottom: 76px; }
  .ld-meta { font-size: 9px; top: 26px; }
  .ld-l { left: 44px; }
  .ld-r { display: none; }
  .ld-sector { min-height: 3.2em; display: flex; align-items: flex-end; }
  .ld-num { font-size: 104px; }
  .ld-name { font-size: clamp(19px, 5.6vw, 26px); }
  .ld-skip { right: 50%; transform: translateX(50%); bottom: 28px; }
}
