/* ============================================================
   Beacon — brand stylesheet (shared)
   Modern retail-insurance system:
   airy light layouts, deep-navy contrast panels,
   electric indigo→violet brand gradient, warm coral accent,
   soft shadows, rounded geometry, motion on scroll.
   ============================================================ */
:root {
  /* dark / contrast */
  --navy:        #0d1b3e;   /* dark sections */
  --navy-2:      #172a57;   /* dark panels / cards on navy */
  --navy-deep:   #081127;   /* footer */
  --navy-line:   rgba(233,238,252,0.14);

  /* brand */
  --brand:       #4361ee;   /* electric indigo */
  --brand-2:     #7c5cff;   /* violet */
  --brand-soft:  #eaefff;   /* tinted fill */
  --brand-ink:   #2a3fb5;   /* accessible brand text on light */
  --grad:        linear-gradient(120deg, #4361ee 0%, #7c5cff 100%);
  --grad-bright: linear-gradient(120deg, #6f8bff 0%, #b58bff 100%);

  /* accent */
  --accent:      #ff6a5a;   /* warm coral */

  /* light / neutral */
  --bg:          #ffffff;
  --bg-soft:     #f5f7fc;   /* cool off-white */
  --bg-tint:     #eef2fd;   /* light indigo tint */
  --ink:         #101a36;   /* headings on light */
  --ink-body:    #46516e;   /* body on light */
  --ink-dim:     #6b7590;   /* muted */
  --line:        rgba(16,26,54,0.10);

  /* light text on navy */
  --on-navy:     #eef1fb;
  --on-navy-dim: #a9b4d8;

  --shadow-sm:   0 6px 18px -8px rgba(16,26,54,0.20);
  --shadow:      0 18px 40px -18px rgba(23,36,78,0.30);
  --shadow-lg:   0 34px 70px -24px rgba(23,36,78,0.40);
  --shadow-brand:0 22px 44px -18px rgba(67,97,238,0.55);

  --radius:      16px;
  --radius-lg:   26px;
  --pill:        999px;

  --sans: 'Archivo', system-ui, -apple-system, sans-serif;
  --cond: 'Archivo Narrow', 'Archivo', sans-serif;

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

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(67,97,238,0.18); }

/* ---- LOGO MARK ---- */
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { display: block; height: 34px; width: auto; }
footer .logo img { height: 42px; }
/* legacy text-logo fallback */
.logo .word { font-weight: 800; font-size: 22px; letter-spacing: 0.04em; }
.logo .sub {
  font-family: var(--cond); font-weight: 600; font-size: 11px; letter-spacing: 0.42em;
  text-transform: uppercase; margin-top: 3px; padding-left: 2px;
}
.logo .word .i { color: var(--brand); }

/* ---- NAV ---- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; height: 72px;
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
nav.scrolled {
  background: rgba(255,255,255,0.9);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -18px rgba(16,26,54,0.35);
}
nav .logo .word { color: var(--ink); }
nav .logo .sub  { color: var(--ink-dim); }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links li a {
  color: var(--ink-body); text-decoration: none;
  font-size: 15px; font-weight: 600; letter-spacing: 0;
  padding: 9px 16px; border-radius: var(--pill);
  transition: color 0.2s, background 0.2s; display: block;
}
.nav-links li a:hover { color: var(--ink); background: var(--bg-soft); }
.nav-links li a.active { color: var(--brand-ink); }
.nav-cta {
  background: var(--grad) !important; color: #fff !important;
  border-radius: var(--pill); font-weight: 700 !important;
  box-shadow: var(--shadow-brand);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease) !important;
}
.nav-cta:hover { transform: translateY(-2px); }

/* hamburger */
.nav-toggle {
  display: none; width: 44px; height: 44px; border: none; background: transparent;
  cursor: pointer; padding: 10px; margin-right: -10px;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%; background: var(--ink);
  border-radius: 2px; transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- HERO (home) ---- */
.hero {
  position: relative; min-height: 90vh; overflow: hidden;
  background: radial-gradient(1200px 700px at 85% -10%, #1c3170 0%, transparent 60%),
              radial-gradient(900px 600px at 0% 110%, #21214f 0%, transparent 55%),
              linear-gradient(160deg, #0d1b3e 0%, #0a1530 100%);
  display: flex; align-items: center;
  padding: 150px 5vw 100px;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px);
  opacity: 0.5; pointer-events: none; z-index: 1;
}
.hero::before { width: 460px; height: 460px; right: -60px; top: 4%; background: radial-gradient(circle, rgba(124,92,255,0.9), transparent 70%); }
.hero::after  { width: 380px; height: 380px; right: 22%; bottom: -12%; background: radial-gradient(circle, rgba(67,97,238,0.85), transparent 70%); }
.hero-motif { position: absolute; inset: 0; z-index: 0; opacity: 0.35; pointer-events: none; }
.hero-content { position: relative; z-index: 2; max-width: 960px; }
.hero-eyebrow {
  display: inline-block; color: var(--on-navy);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 8px 16px; border-radius: var(--pill); margin-bottom: 28px; backdrop-filter: blur(4px);
}
.hero h1 {
  color: var(--on-navy);
  font-size: clamp(42px, 6.6vw, 82px);
  font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; margin-bottom: 26px;
}
.hero h1 .accent {
  background: var(--grad-bright); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead {
  color: var(--on-navy-dim); font-size: clamp(17px,1.5vw,21px); font-weight: 400;
  line-height: 1.65; max-width: 610px; margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1000px 600px at 88% -20%, #1c3170 0%, transparent 58%),
              linear-gradient(160deg, #0d1b3e 0%, #0a1530 100%);
  padding: 160px 5vw 96px;
}
.page-hero::before {
  content: ""; position: absolute; width: 420px; height: 420px; right: 4%; top: -8%;
  background: radial-gradient(circle, rgba(124,92,255,0.8), transparent 70%);
  filter: blur(70px); opacity: 0.5; z-index: 1; pointer-events: none;
}
.page-hero .hero-motif { opacity: 0.3; }
.page-hero-inner { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; }
.page-hero .eyebrow {
  display: inline-block; color: var(--on-navy);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 8px 16px; border-radius: var(--pill); margin-bottom: 22px;
}
.page-hero h1 {
  color: var(--on-navy); font-size: clamp(38px, 5.2vw, 68px);
  font-weight: 800; line-height: 1.03; letter-spacing: -0.03em; margin-bottom: 22px;
}
.page-hero h1 .accent { background: var(--grad-bright); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero p.lead { color: var(--on-navy-dim); font-size: clamp(17px,1.5vw,20px); line-height: 1.65; max-width: 660px; }

/* ---- HERO VIDEO BACKDROP ---- */
/* Subtle looping video behind hero copy, muted with a navy brand tint so text
   stays legible. Sits above the base gradient, below the motif and content. */
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-media video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.5;
}
/* Brand tint: heavier on the left where the copy sits, lighter on the right. */
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg,
              rgba(10,21,48,0.90) 0%,
              rgba(11,22,50,0.66) 48%,
              rgba(13,27,62,0.48) 100%);
}
/* Keep the motif shapes reading over the video without hiding it. */
.hero .hero-media ~ .hero-motif,
.page-hero .hero-media ~ .hero-motif { opacity: 0.22; }
@media (prefers-reduced-motion: reduce) {
  .hero-media video { display: none; } /* fall back to the gradient background */
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 30px; border-radius: var(--pill);
  font-size: 15px; font-weight: 700; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 28px 52px -18px rgba(67,97,238,0.7); }
.btn-cream { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.btn-cream:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn-outline { border-color: rgba(255,255,255,0.35); color: var(--on-navy); background: transparent; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); transform: translateY(-3px); }
.btn-outline-ink { border-color: var(--line); color: var(--ink); background: #fff; box-shadow: var(--shadow-sm); }
.btn-outline-ink:hover { border-color: var(--brand); color: var(--brand-ink); transform: translateY(-3px); box-shadow: var(--shadow); }

/* ---- SECTIONS ---- */
.section { padding: 108px 5vw; }
.section + .section { padding-top: 0; }
.section-inner { max-width: 1180px; margin: 0 auto; }
.section-label {
  display: inline-block; color: var(--brand-ink); background: var(--brand-soft);
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 7px 14px; border-radius: var(--pill); margin-bottom: 22px;
}
.section h2 {
  color: var(--ink);
  font-size: clamp(30px, 4vw, 50px); font-weight: 800; line-height: 1.06;
  letter-spacing: -0.025em; margin-bottom: 22px;
}
.section h2 .accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section p.intro { font-size: 18px; line-height: 1.75; color: var(--ink-body); max-width: 720px; margin-bottom: 16px; }

/* soft-tinted section variant (apply nothing extra; alt bg handled per-section below) */
.section-navy {
  background: radial-gradient(900px 500px at 90% -20%, #1c3170 0%, transparent 60%),
              linear-gradient(165deg, #0d1b3e 0%, #0a1530 100%);
  color: var(--on-navy); position: relative; overflow: hidden;
}
.section-navy .section-label { color: #fff; background: rgba(255,255,255,0.10); }
.section-navy h2 { color: var(--on-navy); }
.section-navy h2 .accent { background: var(--grad-bright); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-navy p.intro { color: var(--on-navy-dim); }

/* ---- ABOUT SPLIT ---- */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.section-navy .stat { background: rgba(255,255,255,0.05); border-color: var(--navy-line); }
.stat .num {
  font-size: 42px; font-weight: 800; line-height: 1; letter-spacing: -0.02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-navy .stat .num { background: var(--grad-bright); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl {
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em; margin-top: 12px; color: var(--ink-dim);
}
.section-navy .stat .lbl { color: var(--on-navy-dim); }

/* ---- APPROACH / VALUE CARDS ---- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.card {
  background: rgba(255,255,255,0.05); border: 1px solid var(--navy-line);
  border-radius: var(--radius-lg); padding: 34px 30px; position: relative;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}
.card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.08); box-shadow: var(--shadow-lg); }
.card .idx {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 20px;
  background: var(--grad); color: #fff; font-size: 16px; font-weight: 800; letter-spacing: 0;
  box-shadow: var(--shadow-brand);
}
.card h3 { font-size: 20px; font-weight: 800; color: var(--on-navy); margin-bottom: 11px; letter-spacing: -0.01em; }
.card p { font-size: 15px; line-height: 1.7; color: var(--on-navy-dim); }

/* ---- PULL QUOTE BANNER ---- */
.quote-band {
  background: var(--grad); color: #fff; text-align: center; padding: 92px 6vw; position: relative; overflow: hidden;
}
.quote-band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 15% 0%, rgba(255,255,255,0.18), transparent 60%);
  pointer-events: none;
}
.quote-band .mark { font-size: 76px; line-height: 0.5; color: rgba(255,255,255,0.4); font-weight: 900; position: relative; }
.quote-band p {
  font-size: clamp(24px, 3.4vw, 42px); font-weight: 800; line-height: 1.14;
  letter-spacing: -0.02em; max-width: 900px; margin: 16px auto 0; position: relative;
}

/* ---- SECTORS ---- */
.sector-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.sector {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px 28px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.sector::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.sector:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.sector:hover::before { transform: scaleX(1); }
.sector .tag {
  display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px;
  padding: 0 10px; border-radius: var(--pill); background: var(--brand-soft); color: var(--brand-ink);
  font-size: 13px; font-weight: 800; letter-spacing: 0.02em; margin-bottom: 18px;
}
.sector h4 { font-size: 19px; font-weight: 800; letter-spacing: -0.015em; margin-bottom: 10px; color: var(--ink); }
.sector p { font-size: 15px; line-height: 1.7; color: var(--ink-body); }

/* ---- TRADE PHOTO WATERMARKS (Specialist Areas cards) ----
   The photo sits behind the content as a faint, desaturated wash and
   strengthens slightly on hover. Content stays on its own layer above. */
.sector.trade-bg::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-size: cover; background-position: center;
  opacity: 0.05; filter: saturate(0.55);
  transition: opacity 0.35s var(--ease);
}
.sector.trade-bg:hover::after { opacity: 0.24; }
.sector.trade-bg::before { z-index: 2; }
.sector.trade-bg > * { position: relative; z-index: 1; }
.trade-roofing::after         { background-image: url("trades/cladding.jpg"); }
.trade-recycling::after       { background-image: url("trades/recycling.jpg"); }
.trade-property-owners::after { background-image: url("trades/property-owners.jpg"); }
.trade-contractors::after     { background-image: url("trades/contractors.jpg"); }
.trade-manufacturing::after   { background-image: url("trades/manufacturing.jpg"); }
.trade-warehousing::after     { background-image: url("trades/warehousing.jpg"); }
.trade-haulage::after         { background-image: url("trades/haulage.jpg"); }
.trade-cladding::after        { background-image: url("trades/cladding.jpg"); } /* reserved */

/* ---- CTA ---- */
.cta {
  background: radial-gradient(900px 500px at 85% -30%, #24357a 0%, transparent 60%),
              linear-gradient(160deg, #0d1b3e 0%, #0a1530 100%);
  position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; width: 460px; height: 460px; right: -60px; bottom: -160px;
  background: radial-gradient(circle, rgba(124,92,255,0.7), transparent 70%);
  filter: blur(70px); opacity: 0.6; pointer-events: none;
}
.cta .cta-inner {
  max-width: 1180px; margin: 0 auto; position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.cta h2 {
  color: var(--on-navy); font-size: clamp(28px,3.4vw,44px); font-weight: 800;
  line-height: 1.06; letter-spacing: -0.025em; max-width: 640px;
}
.cta h2 .accent { background: var(--grad-bright); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- CONTACT / FORM ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.contact-detail h3 { font-size: 20px; font-weight: 800; margin: 0 0 6px; letter-spacing: -0.01em; color: var(--ink); }
.contact-detail .det-block { margin-bottom: 28px; }
.contact-detail .det-label {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--brand-ink); background: var(--brand-soft);
  padding: 5px 12px; border-radius: var(--pill); margin-bottom: 10px;
}
.contact-detail a { color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 600; }
.contact-detail a:hover { color: var(--brand-ink); }
.contact-detail p { color: var(--ink-body); line-height: 1.7; font-size: 15.5px; }

.form-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.01em; color: var(--ink); margin-bottom: 8px; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 15px; font-family: var(--sans); font-size: 15px; color: var(--ink);
  background: var(--bg-soft); border: 1.5px solid var(--line); border-radius: 12px;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(67,97,238,0.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-card .form-actions { margin-top: 8px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-note { font-size: 13px; color: var(--ink-dim); line-height: 1.6; }
.form-status { display: none; margin-top: 18px; padding: 14px 16px; border-radius: 12px; font-size: 14.5px; line-height: 1.5; }
.form-status.show { display: block; }
.form-status.success { background: #e8f5ee; color: #1d6b41; border: 1px solid #b6ddc4; }
.form-status.error { background: #fdecea; color: #a02620; border: 1px solid #f0c2bd; }

/* ---- FOOTER ---- */
footer { background: var(--navy-deep); color: var(--on-navy-dim); padding: 74px 5vw 36px; }
.footer-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
footer p.fdesc { margin-top: 20px; font-size: 14.5px; line-height: 1.75; max-width: 380px; }
.footer-qr {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 24px;
  text-decoration: none; transition: transform 0.2s var(--ease);
}
.footer-qr:hover { transform: translateY(-2px); }
.footer-qr img {
  width: 84px; height: 84px; flex: none; background: #fff;
  border-radius: 12px; padding: 6px; box-shadow: 0 12px 26px -14px rgba(0,0,0,0.6);
}
.footer-qr .fq-txt { display: flex; flex-direction: column; }
.footer-qr .fq-txt strong { color: #fff; font-size: 14.5px; font-weight: 700; letter-spacing: 0.01em; }
.footer-qr .fq-txt span { color: var(--on-navy-dim); font-size: 13px; margin-top: 3px; }
.footer-qr:hover .fq-txt strong { color: #fff; }
footer h5 { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 18px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 11px; }
footer ul li a, footer ul li span { color: var(--on-navy-dim); text-decoration: none; font-size: 14.5px; transition: color 0.2s; }
footer ul li a:hover { color: #fff; }
.footer-legal {
  max-width: 880px; margin: 46px auto 0; padding-top: 26px;
  border-top: 1px solid var(--navy-line);
  font-size: 13px; line-height: 1.65; color: rgba(169,180,216,0.7);
}
.footer-bottom {
  max-width: 1180px; margin: 22px auto 0; padding-top: 22px; border-top: 1px solid var(--navy-line);
  font-size: 12.5px; letter-spacing: 0.02em; color: rgba(169,180,216,0.6);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* ---- SCROLL REVEAL (progressive enhancement; only active when JS adds .js-reveal) ---- */
.js-reveal .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); will-change: opacity, transform; }
/* release the compositing layer once revealed */
.js-reveal .reveal.in { opacity: 1; transform: none; will-change: auto; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---- NAV DROPDOWNS (desktop: hover/focus; mobile: static sections) ---- */
.nav-links .has-menu { position: relative; }
.nav-links .has-menu > a { display: inline-flex; align-items: center; gap: 6px; }
.caret {
  width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px,-1px); opacity: 0.55; transition: transform 0.2s var(--ease);
}
.has-menu:hover .caret, .has-menu:focus-within .caret { transform: rotate(225deg) translate(-2px,-2px); opacity: 1; }
.has-menu::after { content: ""; position: absolute; top: 100%; left: 0; right: -20px; height: 16px; }
.dropdown {
  position: absolute; top: calc(100% + 12px); left: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 12px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: 1001;
}
.has-menu:hover > .dropdown, .has-menu:focus-within > .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a {
  display: block; white-space: nowrap; padding: 9px 14px; border-radius: 10px;
  font-size: 14px; font-weight: 600; color: var(--ink-body); text-decoration: none;
}
.dropdown a:hover { background: var(--bg-soft); color: var(--brand-ink); }
.dropdown .d-head {
  display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--brand-ink); padding: 8px 14px 6px;
}
.dropdown.mega { display: grid; grid-template-columns: repeat(3, minmax(196px, 1fr)); gap: 4px 14px; }
.dropdown.mega .d-col { min-width: 0; }
/* long service labels must wrap rather than bleed into the next column */
.dropdown.mega a { white-space: normal; line-height: 1.35; }

/* ---- KEY STATS / METRICS ---- */
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 34px; }
.metric { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.metric:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.metric .m-num { font-size: clamp(30px,3.2vw,42px); font-weight: 800; line-height: 1; letter-spacing: -0.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.metric .m-lbl { font-size: 14px; font-weight: 600; color: var(--ink-dim); margin-top: 12px; line-height: 1.45; }

/* ---- TEAM ---- */
.team-block + .team-block { margin-top: 54px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.member { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.member:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.member .avatar {
  width: 62px; height: 62px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff; font-size: 21px; font-weight: 800; margin-bottom: 18px; box-shadow: var(--shadow-brand);
}
.member h4 { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.member .role { font-size: 13.5px; font-weight: 700; color: var(--brand-ink); margin: 4px 0 12px; }
.member p { font-size: 14.5px; line-height: 1.65; color: var(--ink-body); }

/* ---- MEDIA / INSIGHTS ---- */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.tab { padding: 9px 18px; border-radius: var(--pill); border: 1px solid var(--line); background: #fff; color: var(--ink-body); font-size: 14px; font-weight: 600; text-decoration: none; transition: all 0.2s; }
.tab:hover { border-color: var(--brand); color: var(--brand-ink); }
.tab.active { background: var(--grad); color: #fff; border-color: transparent; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
.post { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.post:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.post .thumb { height: 160px; background: var(--grad); position: relative; }
.post .thumb.alt { background: linear-gradient(120deg,#0d1b3e,#24357a); }
.post .thumb.alt2 { background: linear-gradient(120deg,#7c5cff,#4361ee); }
.post .thumb .kind { position: absolute; left: 16px; top: 16px; background: rgba(255,255,255,0.92); color: var(--brand-ink); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 6px 12px; border-radius: var(--pill); }
.post .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post .date { font-size: 12.5px; font-weight: 600; color: var(--ink-dim); }
.post h4 { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; margin: 8px 0 10px; line-height: 1.28; }
.post p { font-size: 14.5px; line-height: 1.65; color: var(--ink-body); flex: 1; }
.post .read { margin-top: 16px; font-size: 14px; font-weight: 700; color: var(--brand-ink); text-decoration: none; }

/* ---- LINKEDIN POST EMBEDS ---- */
/* LinkedIn renders its embed at ~504px, so give each one room rather than
   squeezing three into a row and cramping the post content. */
.embed-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 22px; margin-top: 34px; }
.li-embed {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); min-height: 560px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.li-embed:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.li-embed iframe { display: block; width: 100%; height: 560px; border: 0; }

/* ---- LIVE SOCIAL FEED (third-party widget) ---- */
/* Container for a live LinkedIn feed widget (SociableKit / Elfsight / etc.).
   Drop the provider's embed snippet inside .social-widget and it fills this box. */
.social-feed { margin-top: 34px; }
.social-widget {
  min-height: 480px;
  border-radius: var(--radius-lg);
}
.social-widget iframe { display: block; width: 100%; border: 0; border-radius: var(--radius-lg); }
/* Shown only until the real widget is pasted in */
.feed-placeholder {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 320px; padding: 40px;
  background: #fff; border: 1px dashed var(--line); border-radius: var(--radius-lg);
  color: var(--ink-dim); font-size: 15px; line-height: 1.6;
}
.feed-placeholder a { color: var(--brand-ink); font-weight: 700; }

/* ---- CONSENT-GATED EMBEDS ---- */
/* Third-party iframes carry data-consent-src and stay hidden (never loaded)
   until the visitor accepts optional cookies; the fallback shows meanwhile. */
.consent-embed iframe { display: none; }
body.consent-accepted .consent-embed iframe { display: block; }
body.consent-accepted .consent-embed .consent-fallback { display: none; }

/* ---- RESPONSIVE VIDEO EMBED (YouTube) ---- */
.video-embed {
  position: relative; width: 100%; max-width: 900px; margin: 34px auto 0;
  aspect-ratio: 16 / 9;
  background: #0d1b3e;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md);
}
.video-embed iframe,
.video-embed .feed-placeholder {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; margin: 0;
}
/* On the navy video box the placeholder must be see-through, not white */
.video-embed .feed-placeholder { background: transparent; border: 0; color: rgba(255,255,255,0.72); }
.video-embed .feed-placeholder a { color: #fff; text-decoration: underline; }

/* ---- VALUES ---- */
.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 34px; }
.value { display: flex; gap: 18px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.value .v-ico { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 800; box-shadow: var(--shadow-brand); }
.value h4 { font-size: 17px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.value p { font-size: 14.5px; line-height: 1.65; color: var(--ink-body); }

/* ---- COVERAGE ---- */
.coverage { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.coverage-map { border-radius: var(--radius-lg); overflow: hidden; background: radial-gradient(600px 400px at 70% 10%, #24357a 0%, transparent 60%), linear-gradient(160deg,#0d1b3e,#0a1530); min-height: 330px; display: flex; align-items: center; justify-content: center; padding: 30px; }
.region-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.region-chips span { background: var(--brand-soft); color: var(--brand-ink); font-size: 13.5px; font-weight: 700; padding: 8px 16px; border-radius: var(--pill); }

/* ---- ACCREDITATIONS ---- */
.accred-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 30px; }
.accred { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 20px; text-align: center; min-height: 112px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; box-shadow: var(--shadow-sm); }
.accred .a-name { font-size: 15px; font-weight: 800; color: var(--ink); }
.accred .a-sub { font-size: 12px; color: var(--ink-dim); }

/* ---- OFFICES ---- */
.office-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }

/* ---- PROSE (legal / overview) ---- */
.prose { max-width: 780px; }
.prose h2 { font-size: clamp(22px,2.6vw,30px); font-weight: 800; color: var(--ink); letter-spacing: -0.02em; margin: 40px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; font-weight: 800; color: var(--ink); margin: 26px 0 10px; }
.prose p { font-size: 16.5px; line-height: 1.8; color: var(--ink-body); margin-bottom: 16px; }
.prose ul { margin: 0 0 16px 22px; }
.prose li { font-size: 16.5px; line-height: 1.8; color: var(--ink-body); margin-bottom: 8px; }
.prose .muted { font-size: 14px; color: var(--ink-dim); }

.section-soft { background: var(--bg-soft); }
.note-box { background: var(--brand-soft); border: 1px solid rgba(67,97,238,0.22); border-radius: var(--radius); padding: 20px 22px; margin-top: 26px; }
.note-box p { font-size: 14.5px; line-height: 1.7; color: var(--brand-ink); margin: 0; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1180px) {
  .metric-grid, .accred-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0; max-height: calc(100vh - 72px); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 0 18px; box-shadow: 0 24px 44px -20px rgba(16,26,54,0.5);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links li { width: 100%; }
  .nav-links > li > a { padding: 14px 7vw; font-size: 16px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-links .caret { margin-left: auto; }
  .has-menu::after { display: none; }
  .dropdown, .dropdown.mega {
    position: static; opacity: 1; visibility: visible; transform: none; display: block;
    box-shadow: none; border: none; border-radius: 0; padding: 4px 0 8px; background: var(--bg-soft);
  }
  .dropdown a { padding: 11px 9vw; border-radius: 0; font-size: 15px; }
  .dropdown .d-head { padding: 12px 9vw 4px; }
  .nav-cta {
    display: block; background: var(--grad) !important; color: #fff !important;
    border-radius: var(--pill) !important; margin: 12px 7vw 4px; padding: 14px 20px !important;
    box-shadow: none; text-align: center; border-bottom: none !important;
  }
}

@media (max-width: 980px) {
  nav { padding: 0 4vw; }
  .about-grid, .coverage { grid-template-columns: 1fr; gap: 44px; }
  .card-grid, .sector-grid, .team-grid, .post-grid, .office-grid, .embed-grid { grid-template-columns: 1fr 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 90px 5vw; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
}

@media (max-width: 760px) {
  .hero { padding: 116px 7vw 72px; min-height: auto; }
  .page-hero { padding: 120px 7vw 64px; }
  .section { padding: 64px 7vw; }
  .quote-band { padding: 64px 7vw; }
  .card-grid, .sector-grid, .about-stats, .form-row, .metric-grid, .team-grid, .post-grid, .accred-grid, .office-grid, .embed-grid { grid-template-columns: 1fr; gap: 16px; }
  .card-grid, .sector-grid { margin-top: 30px; }
  .cta .cta-inner { flex-direction: column; align-items: flex-start; gap: 26px; }
  .cta .hero-actions { width: 100%; }
  .form-card { padding: 26px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .hero-actions .btn, .cta .hero-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 420px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

/* ---- COOKIE CONSENT BANNER ---- */
/* Injected by assets/site.js. Dormant until CONSENT_ENABLED is set to true. */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  padding: 18px 5vw calc(18px + env(safe-area-inset-bottom, 0px));
  background: var(--navy);
  border-top: 1px solid var(--navy-line);
  box-shadow: 0 -18px 40px -18px rgba(8,17,39,0.6);
  transform: translateY(110%);
  transition: transform 0.35s var(--ease);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 22px; flex-wrap: wrap;
}
.cookie-banner-text {
  margin: 0; color: var(--on-navy);
  font-size: 14.5px; line-height: 1.55; max-width: 720px;
}
.cookie-banner-text a { color: #fff; text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-banner-actions .btn { padding: 12px 26px; font-size: 14px; }
@media (max-width: 640px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1 1 auto; }
}
