/* ============================================================
   FOUR04 Group — clean modern marketing site
   Design tokens grounded in the reference: deep navy + royal blue
   ============================================================ */

:root {
  /* Neutrals */
  --navy-950: #060d18;
  --navy-900: #0a1424;
  --navy-850: #0d1a2e;
  --navy-800: #122339;
  --navy-700: #1b3150;
  --ink: #131c29;
  --slate-700: #3a4658;
  --slate-600: #556174;
  --slate-500: #6b7689;
  --slate-300: #c2c9d4;
  --line: #e4e8ee;
  --line-strong: #d3d9e2;
  --paper: #ffffff;
  --paper-2: #f5f7fa;
  --paper-3: #eef1f6;

  /* Accent — overridable by Tweaks */
  --accent: #1f74d6;
  --accent-strong: #155fc0;
  --accent-band: #1450c0;
  --accent-soft: color-mix(in srgb, var(--accent) 12%, #ffffff);
  --accent-ink-on: #ffffff;

  /* Type */
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(64px, 8vw, 104px);
  --radius: 6px;
  --radius-lg: 12px;
  --header-h: 76px;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(12, 22, 38, .06), 0 1px 3px rgba(12, 22, 38, .05);
  --shadow-md: 0 8px 24px rgba(12, 22, 38, .08), 0 2px 6px rgba(12, 22, 38, .05);
  --shadow-lg: 0 24px 60px rgba(8, 18, 34, .18);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.1; letter-spacing: -.015em; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow.center { text-align: center; display: block; }
.lead { color: var(--slate-600); font-size: clamp(15px, 1.2vw, 16.5px); line-height: 1.7; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 12.5px;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 14px 26px; border-radius: var(--radius); border: 1.5px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--accent-ink-on); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 38%, transparent); }
.btn-primary:hover { background: var(--accent-strong); box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 46%, transparent); }
.btn-outline { background: transparent; border-color: color-mix(in srgb, currentColor 45%, transparent); color: currentColor; }
.btn-outline:hover { border-color: currentColor; background: color-mix(in srgb, currentColor 8%, transparent); }
.btn-outline.on-dark { color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Image placeholder ---------- */
.img-ph {
  position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy-850), var(--navy-700));
  display: grid; place-items: center;
}
.img-ph::after {
  content: attr(data-label);
  position: absolute; bottom: 12px; left: 12px;
  font-family: var(--font-display); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.18); padding: 4px 8px; border-radius: 4px;
  backdrop-filter: blur(2px);
}
.img-ph .ph-icon { width: 46px; height: 46px; color: rgba(255,255,255,.32); }
.img-ph.skyline {
  background:
    radial-gradient(120% 80% at 80% 10%, rgba(31,116,214,.30), transparent 60%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-950) 100%);
}
.skyline-svg { position: absolute; inset: auto 0 0 0; width: 100%; height: 62%; opacity: .9; }

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--header-h);
  display: flex; align-items: center;
  background: transparent; transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(8, 16, 30, .92); backdrop-filter: blur(12px); border-bottom-color: rgba(255,255,255,.08); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 30px); }
.nav-link {
  position: relative; font-family: var(--font-display); font-weight: 600; font-size: 12.5px;
  letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.82);
  padding: 6px 2px; transition: color .2s var(--ease);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav-link:hover { color: #fff; }
.nav-link.active { color: #fff; }
.nav-link.active::after, .nav-link:hover::after { transform: scaleX(1); }
.nav-cta { margin-left: 6px; }
.site-header .nav-toggle { display: none; }

/* Logo */
.logo-link { display: inline-flex; align-items: center; flex: none; }
.logo-img { height: 42px; width: auto; display: block; }
.site-footer .logo-img { height: 48px; }
.mobile-drawer-head .logo-img { height: 38px; }
.logo { display: inline-flex; flex-direction: column; line-height: 1; color: #fff; }
@media (max-width: 860px) { .logo-img { height: 34px; } .site-footer .logo-img { height: 42px; } }
.logo-word { display: flex; align-items: center; font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: .04em; }
.logo-ring { width: 20px; height: 20px; margin: 0 1px; }
.logo-sub { font-family: var(--font-display); font-weight: 600; font-size: 9.5px; letter-spacing: .52em; color: rgba(255,255,255,.6); margin-top: 4px; padding-left: 2px; }
.logo.dark .logo-word, .logo.dark { color: var(--ink); }
.logo.dark .logo-sub { color: var(--slate-500); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 70; display: none;
  background: var(--navy-950);
}
.mobile-drawer.open { display: flex; flex-direction: column; }
.mobile-drawer-head { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; padding-inline: var(--gutter); border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-links { display: flex; flex-direction: column; padding: 18px var(--gutter); gap: 2px; }
.mobile-links a { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: #fff; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.07); display: flex; justify-content: space-between; align-items: center; }
.mobile-links a span { color: var(--accent); }
.mobile-cta-wrap { padding: 22px var(--gutter); margin-top: auto; }
.icon-btn { background: none; border: none; color: #fff; display: grid; place-items: center; width: 44px; height: 44px; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; background: var(--navy-900); color: #fff; padding-top: var(--header-h); overflow: hidden; }
.hero-bg-glow { position: absolute; inset: 0; background: radial-gradient(80% 120% at 85% 0%, rgba(31,116,214,.22), transparent 55%); pointer-events: none; }

/* layout: split (default) */
.hero[data-layout="split"] .hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: stretch; gap: 0; }
.hero[data-layout="split"] .hero-copy { padding: clamp(40px, 6vw, 86px) clamp(36px, 4vw, 64px) clamp(48px, 6vw, 90px) 0; max-width: 620px; }
.hero[data-layout="split"] .hero-media { position: relative; margin: clamp(24px,4vw,56px) 0 clamp(24px,4vw,56px) clamp(24px,3vw,48px); border-radius: var(--radius-lg); min-height: 440px; overflow: hidden; }
.hero-media .img-ph { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; }

/* layout: fullbleed */
.hero[data-layout="fullbleed"] .hero-media { position: absolute; inset: 0; border-radius: 0; margin: 0; z-index: 1; }
.hero[data-layout="fullbleed"] .hero-media::before { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, var(--navy-950) 4%, rgba(6,13,24,.84) 40%, rgba(6,13,24,.45) 100%), linear-gradient(180deg, transparent 45%, rgba(6,13,24,.45) 100%); }
.hero[data-layout="fullbleed"] .hero-grid { display: block; position: relative; z-index: 3; }
.hero[data-layout="fullbleed"] .hero-copy { position: relative; z-index: 4; padding: clamp(48px,7vw,96px) 0 clamp(60px,8vw,120px); max-width: 640px; text-shadow: 0 1px 2px rgba(6,13,24,.45), 0 4px 30px rgba(6,13,24,.55); }
.hero[data-layout="fullbleed"] .hero-media .img-ph::after { z-index: 4; }

/* layout: centered */
.hero[data-layout="centered"] .hero-grid { display: block; text-align: center; }
.hero[data-layout="centered"] .hero-copy { padding: clamp(48px,7vw,96px) 0 clamp(32px,4vw,48px); max-width: 820px; margin-inline: auto; }
.hero[data-layout="centered"] .hero-copy .hero-actions { justify-content: center; }
.hero[data-layout="centered"] .hero-copy .eyebrow { display: block; }
.hero[data-layout="centered"] .hero-media { position: relative; height: clamp(280px, 38vw, 460px); margin: 0 0 0 0; border-radius: 0; }

.hero-h1 { font-size: clamp(34px, 5vw, 60px); font-weight: 800; letter-spacing: -.02em; line-height: 1.04; margin: 18px 0 0; }
.hero-h1 .accentline { color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-copy .lead { color: rgba(255,255,255,.78); }
.hero-copy .lead + .lead { margin-top: 18px; color: rgba(255,255,255,.62); font-size: 14.5px; }

/* ============================================================
   Markets we serve
   ============================================================ */
.markets { background: var(--paper-2); }
.markets-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.markets-head h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; line-height: 1.12; margin-top: 16px; color: var(--ink); }
.markets-head h2 span { display: block; }
.markets-body { padding-top: 4px; }
.markets-body p + p { margin-top: 20px; }
.markets-body .rule { width: 48px; height: 3px; background: var(--accent); margin-bottom: 24px; }

/* ============================================================
   Areas of experience (6)
   ============================================================ */
.areas { background: var(--paper); border-top: 1px solid var(--line); }
.areas-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; margin-top: 44px; }
.area {
  text-align: center; padding: 8px clamp(10px, 1.4vw, 22px); position: relative;
}
.area + .area::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
.area-icon { width: 42px; height: 42px; color: var(--accent); margin: 0 auto 18px; }
.area h3 { font-size: 15px; font-weight: 700; color: var(--ink); min-height: 38px; display: flex; align-items: center; justify-content: center; }
.area p { margin-top: 12px; font-size: 13px; line-height: 1.6; color: var(--slate-500); }

/* ============================================================
   What we do (5)
   ============================================================ */
.whatwedo { background: var(--paper); border-top: 1px solid var(--line); }
.whatwedo h2 { text-align: center; font-size: clamp(26px, 3.2vw, 40px); font-weight: 700; margin-top: 14px; color: var(--ink); }
.services-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 48px; }
.service { padding: 0 clamp(14px, 1.6vw, 26px); position: relative; }
.service + .service::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: var(--line); }
.service-icon { width: 40px; height: 40px; color: var(--accent); margin-bottom: 20px; }
.service h3 { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.service p { margin-top: 14px; font-size: 13.5px; color: var(--slate-500); line-height: 1.6; }
.service ul { margin-top: 18px; display: flex; flex-direction: column; gap: 9px; }
.service li { font-size: 13px; color: var(--slate-700); display: flex; align-items: flex-start; gap: 9px; }
.service li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-top: 7px; }

/* ============================================================
   Our difference (dark)
   ============================================================ */
.difference { background: var(--navy-900); color: #fff; position: relative; }
.difference::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 120% at 12% 10%, rgba(31,116,214,.16), transparent 55%); pointer-events: none; }
.difference .container { position: relative; }
.diff-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 2.7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.diff-items { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 38px); }
.diff-head h2 { font-size: clamp(23px, 2.2vw, 31px); font-weight: 700; margin-top: 18px; line-height: 1.2; }
.diff-item .diff-icon { width: 40px; height: 40px; color: var(--accent); margin-bottom: 18px; }
.diff-item h3 { font-size: 15.5px; font-weight: 700; }
.diff-item p { margin-top: 12px; font-size: 13px; color: rgba(255,255,255,.62); line-height: 1.6; }

/* ============================================================
   Leadership
   ============================================================ */
.leadership { background: var(--paper); }
.leadership-eyebrow { text-align: center; margin-bottom: 44px; }
.leaders { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); }
.leader { display: flex; flex-direction: column; }
.leader-top { display: flex; gap: 26px; align-items: flex-start; }
.leader-photo { flex: none; width: 132px; height: 132px; border-radius: 50%; }
.leader-photo.img-ph { background: linear-gradient(150deg, var(--navy-700), var(--navy-900)); }
.leader-name { font-size: 22px; font-weight: 700; color: var(--ink); }
.leader-role { color: var(--accent); font-family: var(--font-display); font-weight: 600; font-size: 14px; margin-top: 4px; }
.leader-bio { margin-top: 16px; }
.leader-bio p { font-size: 13.5px; color: var(--slate-600); line-height: 1.65; }
.leader-bio p + p { margin-top: 14px; }
.leader-edu { margin-top: auto; padding-top: 26px; border-top: 1px solid var(--line); }
.edu-label { font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.edu-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 26px; align-items: end; }
.edu-item { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.edu-logo { height: 28px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; display: block; }
.edu-detail { font-size: 12.5px; line-height: 1.35; color: var(--slate-600); font-weight: 500; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band { background: var(--accent-band); color: #fff; }
.cta-band .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(36px, 4vw, 52px); }
.cta-band h2 { font-size: clamp(22px, 2.4vw, 32px); font-weight: 700; line-height: 1.18; }
.cta-band p { font-size: 14px; color: rgba(255,255,255,.85); line-height: 1.6; }

/* ============================================================
   Engagement models (4)
   ============================================================ */
.engagement { background: var(--paper-2); }
.eng-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 44px; }
.eng-item { padding: 0 clamp(16px, 2vw, 30px); position: relative; }
.eng-item + .eng-item::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: var(--line-strong); }
.eng-icon { width: 36px; height: 36px; color: var(--accent); margin-bottom: 20px; }
.eng-item h3 { font-size: 15px; font-weight: 700; color: var(--ink); }
.eng-figure { font-family: var(--font-display); font-weight: 800; color: var(--accent); line-height: 1; margin: 14px 0 6px; }
.eng-figure .big { font-size: clamp(30px, 3.4vw, 40px); }
.eng-figure .unit { font-size: 13px; font-weight: 600; color: var(--slate-500); letter-spacing: .04em; }
.eng-starting { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-500); font-weight: 600; font-family: var(--font-display); }
.eng-item > p { margin-top: 12px; font-size: 13px; color: var(--slate-500); line-height: 1.6; }

/* ============================================================
   Contact
   ============================================================ */
.contact { background: var(--navy-900); color: #fff; position: relative; }
.contact::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 100% at 85% 0%, rgba(31,116,214,.16), transparent 55%); }
.contact .container { position: relative; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.contact h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 800; margin-top: 16px; line-height: 1.08; }
.contact-intro { margin-top: 20px; color: rgba(255,255,255,.72); }
.contact-points { margin-top: 32px; display: flex; flex-direction: column; gap: 18px; }
.contact-point { display: flex; gap: 14px; align-items: flex-start; }
.contact-point .cp-icon { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 2px; }
.contact-point b { display: block; font-family: var(--font-display); font-size: 14px; }
.contact-point span { font-size: 13px; color: rgba(255,255,255,.6); }

.form-card { background: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 38px); box-shadow: var(--shadow-lg); color: var(--ink); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: .04em; color: var(--slate-700); margin-bottom: 7px; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 14.5px; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--paper-2);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px var(--accent-soft); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #d64545; background: #fdf2f2; }
.field .err { color: #d64545; font-size: 12px; margin-top: 6px; display: none; }
.field.invalid .err { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit { width: 100%; margin-top: 6px; }
.form-success { text-align: center; padding: 30px 10px; }
.form-success .check { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 0 auto 18px; }
.form-success h3 { font-size: 22px; color: var(--ink); }
.form-success p { margin-top: 10px; color: var(--slate-600); font-size: 14px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,.7); padding-top: clamp(48px, 6vw, 76px); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: clamp(24px, 3vw, 48px); }
.footer-about { max-width: 280px; }
.footer-about p { margin-top: 18px; font-size: 13.5px; line-height: 1.6; color: rgba(255,255,255,.55); }
.footer-col h4 { font-family: var(--font-display); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.92); margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 13.5px; color: rgba(255,255,255,.62); transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-connect a { display: flex; align-items: center; gap: 9px; }
.footer-connect svg { width: 16px; height: 16px; flex: none; color: var(--accent); }
.footer-bottom { margin-top: clamp(40px, 5vw, 60px); border-top: 1px solid rgba(255,255,255,.08); padding-block: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom .copy { font-size: 12.5px; color: rgba(255,255,255,.45); }
.footer-bottom .legal { display: flex; gap: 26px; }
.footer-bottom .legal a { font-size: 12.5px; color: rgba(255,255,255,.5); }
.footer-bottom .legal a:hover { color: #fff; }

/* ============================================================
   Scroll reveal — fail-safe: content is VISIBLE by default;
   the entrance is a one-shot animation triggered by .in.
   If .in never arrives, content simply shows (never blank).
   ============================================================ */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reveal.in { animation: revealIn .7s var(--ease) backwards; }
  @keyframes revealIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .areas-grid { grid-template-columns: repeat(3, 1fr); row-gap: 44px; }
  .area:nth-child(3n+1)::before, .area + .area:nth-child(4)::before { display: none; }
  .area::before { display: none; }
  .area { border-bottom: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); row-gap: 44px; column-gap: 0; }
  .service::before { display: none; }
  .service { padding: 24px clamp(14px,2vw,26px); border: 1px solid var(--line); border-radius: var(--radius-lg); margin: 0; }
  .services-grid { gap: 18px; }
  .diff-grid { grid-template-columns: 1fr; row-gap: 40px; align-items: start; }
  .diff-head h2 { max-width: 620px; }
  .diff-items { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .eng-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .eng-item::before { display: none; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .nav-links { display: none; }
  .site-header .nav-toggle { display: grid; }
  .nav-cta.desktop { display: none; }
  .hero[data-layout="split"] .hero-grid { grid-template-columns: 1fr; }
  .hero[data-layout="split"] .hero-copy { padding: 36px 0 8px; max-width: none; }
  .hero[data-layout="split"] .hero-media { margin: 12px 0 8px; min-height: 300px; }
  .markets-grid { grid-template-columns: 1fr; gap: 32px; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .leaders { grid-template-columns: 1fr; }
  .cta-band .container { grid-template-columns: 1fr; gap: 22px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-about { grid-column: 1 / -1; max-width: none; }
}

@media (max-width: 540px) {
  .areas-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .diff-items { grid-template-columns: 1fr; }
  .eng-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .leader-top { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { flex: 1; }
}

/* ============================================================
   POLISH LAYER — refined details, depth & micro-interactions
   ============================================================ */

/* Scroll progress */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--accent); z-index: 90; width: 0; transition: width .12s linear; box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 70%, transparent); }

/* Eyebrows get a refined leading tick */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; flex: none; }
.eyebrow.center { display: flex; justify-content: center; gap: 14px; }
.eyebrow.center::after { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; flex: none; }

/* Headline measure / rhythm */
.markets-head h2, .whatwedo h2, .diff-head h2, .contact h2 { text-wrap: balance; }

/* ---- Dark-section depth: faint grid woven into existing glow ---- */
.hero-bg-glow {
  background:
    radial-gradient(80% 120% at 85% 0%, rgba(31,116,214,.22), transparent 55%),
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 70px 70px,
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 70px 70px;
  -webkit-mask-image: radial-gradient(125% 105% at 82% -5%, #000, transparent 68%);
  mask-image: radial-gradient(125% 105% at 82% -5%, #000, transparent 68%);
}
.hero .container { position: relative; z-index: 2; }
.difference::before {
  background:
    radial-gradient(70% 120% at 12% 10%, rgba(31,116,214,.16), transparent 55%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 70px 70px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 70px 70px;
  -webkit-mask-image: radial-gradient(90% 130% at 8% 0%, #000, transparent 62%);
  mask-image: radial-gradient(90% 130% at 8% 0%, #000, transparent 62%);
}
.contact::before {
  background:
    radial-gradient(60% 100% at 85% 0%, rgba(31,116,214,.16), transparent 55%),
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 70px 70px,
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 70px 70px;
  -webkit-mask-image: radial-gradient(85% 120% at 88% -5%, #000, transparent 62%);
  mask-image: radial-gradient(85% 120% at 88% -5%, #000, transparent 62%);
}

/* ---- Hero media: premium framing ---- */
.hero[data-layout="split"] .hero-media { box-shadow: 0 34px 80px rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.08); }
.hero-media .img-ph { box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), inset 0 80px 120px -60px rgba(31,116,214,.25); }

/* ---- Icon plates (shared treatment) ---- */
.area-icon, .service-icon, .diff-icon, .eng-icon {
  display: grid; place-items: center; border-radius: 16px;
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.area-icon { width: 64px; height: 64px; margin: 0 auto 22px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); }
.service-icon { width: 58px; height: 58px; border-radius: 15px; margin-bottom: 22px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent); }
.diff-icon { width: 60px; height: 60px; margin-bottom: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.eng-icon { width: 56px; height: 56px; border-radius: 14px; margin-bottom: 22px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent); }
.area-icon svg { width: 30px; height: 30px; }
.service-icon svg { width: 28px; height: 28px; }
.diff-icon svg { width: 28px; height: 28px; }
.eng-icon svg { width: 26px; height: 26px; }

/* ---- Areas: open + lift-on-hover ---- */
.areas-grid { gap: 14px; }
.area + .area::before { display: none; }
.area { transition: transform .3s var(--ease); }
.area h3 { transition: color .2s var(--ease); }
.area:hover { transform: translateY(-4px); }
.area:hover .area-icon { background: var(--accent); border-color: var(--accent); box-shadow: 0 12px 26px color-mix(in srgb, var(--accent) 32%, transparent); }
.area:hover .area-icon svg { color: #fff; }
.area:hover h3 { color: var(--accent); }

/* ---- Services hover ---- */
.service h3 { transition: color .2s var(--ease); }
.service:hover .service-icon { background: var(--accent); border-color: var(--accent); box-shadow: 0 12px 26px color-mix(in srgb, var(--accent) 28%, transparent); }
.service:hover .service-icon svg { color: #fff; }
.service:hover h3 { color: var(--accent); }

/* ---- Difference hover ---- */
.diff-item:hover .diff-icon { background: var(--accent); border-color: var(--accent); box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 38%, transparent); }
.diff-item:hover .diff-icon svg { color: #fff; }

/* ---- Engagement: refined, accent top-rule on hover ---- */
.eng-item { padding-top: 22px; transition: transform .3s var(--ease); }
.eng-item::after { content: ""; position: absolute; left: clamp(16px,2vw,30px); right: clamp(16px,2vw,30px); top: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.eng-item:hover { transform: translateY(-3px); }
.eng-item:hover::after { transform: scaleX(1); }
.eng-item:hover .eng-icon { background: var(--accent); border-color: var(--accent); }
.eng-item:hover .eng-icon svg { color: #fff; }

/* ---- Leadership: elevated cards ---- */
.leadership { background: var(--paper-2); }
.leaders { gap: clamp(24px, 3vw, 40px); }
.leader { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: clamp(26px, 3vw, 44px); box-shadow: var(--shadow-sm); transition: box-shadow .35s var(--ease), transform .35s var(--ease), border-color .35s var(--ease); }
.leader:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--line-strong); }
.leader-photo { box-shadow: 0 12px 30px rgba(8,18,34,.22); }
.edu-badge { transition: border-color .25s var(--ease), color .25s var(--ease); }
.leader:hover .edu-badge { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }

/* ---- CTA band: subtle depth + texture ---- */
.cta-band { position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 140% at 90% 0%, rgba(255,255,255,.14), transparent 55%), linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 64px 64px, linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 64px 64px; mask-image: linear-gradient(90deg, transparent, black 60%); pointer-events: none; }
.cta-band .container { position: relative; z-index: 1; }
.cta-band .btn-outline.on-dark:hover { background: #fff; color: var(--accent-band); border-color: #fff; }

/* ---- Form polish ---- */
.form-card { border: 1px solid rgba(8,18,34,.06); }
.form-submit { letter-spacing: .12em; }
.contact-point .cp-icon { padding: 0; }

/* ---- Buttons: crisper motion ---- */
.btn-primary { box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 34%, transparent); }

/* ---- Footer refinement ---- */
.site-footer { border-top: 1px solid rgba(255,255,255,.06); }
.footer-col a { transition: color .2s var(--ease), padding-left .2s var(--ease); }
.footer-col li a:hover { padding-left: 4px; }

/* ---- Hero entrance (transform-only: always renders visible) ---- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: heroRise .7s var(--ease) both; }
  .hero-copy > *:nth-child(1) { animation-delay: .04s; }
  .hero-copy > *:nth-child(2) { animation-delay: .12s; }
  .hero-copy > *:nth-child(3) { animation-delay: .20s; }
  .hero-copy > *:nth-child(4) { animation-delay: .28s; }
  .hero-copy > *:nth-child(5) { animation-delay: .36s; }
  @keyframes heroRise { from { transform: translateY(18px); } to { transform: none; } }
}

/* ============================================================
   STOCK IMAGERY (swappable placeholders)
   ============================================================ */
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo-tint {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(80% 70% at 80% 12%, rgba(31,116,214,.20), transparent 60%),
    linear-gradient(160deg, rgba(8,16,30,.30) 0%, rgba(8,16,30,.62) 100%);
}
.photo-tag {
  position: absolute; left: 14px; bottom: 14px; z-index: 5;
  font-family: var(--font-display); font-weight: 600; font-size: 10px; line-height: 1;
  letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.78);
  background: rgba(8,16,30,.5); border: 1px solid rgba(255,255,255,.22);
  padding: 5px 9px; border-radius: 5px; backdrop-filter: blur(4px);
}

/* fullbleed: existing ::before scrim already darkens the left for text,
   so soften the global tint there to avoid double-darkening */
.hero[data-layout="fullbleed"] .hero-photo-tint { background: radial-gradient(70% 80% at 78% 10%, rgba(31,116,214,.22), transparent 62%); }

/* Leadership portraits */
.leader-photo { overflow: hidden; background: var(--navy-800); }
.leader-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.02); transition: filter .45s var(--ease); }
.leader:hover .leader-photo img { filter: grayscale(0) contrast(1); }

/* ============================================================
   MOTION & GRADIENT LAYER — subtle parallax, aurora, sheen
   ============================================================ */

/* Generic parallax transform (driven by --py from the rAF controller) */
[data-parallax] { transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }

/* ---- Hero: gradient headline accent ---- */
.hero-h1 .accentline {
  background: linear-gradient(100deg, color-mix(in srgb, var(--accent) 60%, #ffffff) 0%, var(--accent) 45%, color-mix(in srgb, var(--accent) 78%, #7fd0ff) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}

/* ---- Hero photo parallax: oversize so drift never reveals edges ---- */
.hero-photo-frame { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.hero[data-layout="split"] .hero-media .hero-photo-frame { border-radius: var(--radius-lg); }
.hero-photo { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; }

/* ---- Aurora: slow-drifting soft gradient blobs (very low contrast) ---- */
.hero-aurora, .sec-aurora {
  position: absolute; inset: -10% -5%; z-index: 0; pointer-events: none; border-radius: inherit;
  background:
    radial-gradient(38% 46% at 22% 30%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%),
    radial-gradient(32% 40% at 82% 18%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 72%),
    radial-gradient(40% 50% at 65% 88%, rgba(80,150,255,.12), transparent 72%);
  filter: blur(34px); opacity: .85;
}
.hero-aurora { inset: -16% -8%; }
.hero .container { position: relative; z-index: 2; }
.difference .container, .contact .container { position: relative; z-index: 2; }
.contact-aurora { inset: -12% -6%; opacity: .7; }

@media (prefers-reduced-motion: no-preference) {
  .hero-aurora { animation: auroraDrift 26s var(--ease) infinite alternate; }
  .sec-aurora { animation: auroraDrift 32s var(--ease) infinite alternate; }
  @keyframes auroraDrift {
    0%   { transform: translate3d(var(--ax,0), var(--py,0px), 0) scale(1); }
    50%  { transform: translate3d(3%, calc(var(--py,0px) + 2%), 0) scale(1.08); }
    100% { transform: translate3d(-3%, calc(var(--py,0px) - 1%), 0) scale(1.04); }
  }
}

/* ---- CTA band: animated diagonal sheen sweeping slowly ---- */
.cta-sheen {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.10) 50%, transparent 62%);
  background-size: 280% 100%;
}
@media (prefers-reduced-motion: no-preference) {
  .cta-sheen { animation: sheenSweep 7.5s linear infinite; }
  @keyframes sheenSweep { from { background-position: 140% 0; } to { background-position: -40% 0; } }
}

/* keep parallax from causing horizontal scrollbars */
.hero, .difference, .contact, .cta-band { overflow: hidden; }
