/* JMSI Group of Companies — site styles */
:root {
  --navy: #1d2a6e;
  --navy-2: #27358b;
  --ink: #0b1226;
  --ink-2: #131c38;
  --red: #b3202e;
  --red-2: #d42a3a;
  --gold: #f2a93b;
  --paper: #f6f7fb;
  --line: rgba(11, 18, 38, 0.1);
  --muted: #5b6480;
  --white: #fff;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 10px 30px -12px rgba(11, 18, 38, 0.25);
  --shadow-lg: 0 30px 60px -20px rgba(11, 18, 38, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --head: "Archivo", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --header-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--red), var(--gold)); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), height 0.4s var(--ease);
}
.site-header.is-solid, .site-header.is-light {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(11, 18, 38, 0.4);
}
.site-header.is-solid { --header-h: 66px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-chip { background: #fff; border-radius: 12px; padding: 4px 8px; box-shadow: 0 4px 16px -6px rgba(0, 0, 0, 0.35); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.brand-chip { display: flex; align-items: center; gap: 8px; }
.brand-chip img { height: 44px; width: auto; }
.brand-sep { width: 1px; align-self: stretch; margin: 6px 0; background: var(--line); }
.is-solid .brand-chip, .is-light .brand-chip { box-shadow: none; padding: 0; }
.brand:hover .brand-chip { transform: translateY(-1px) scale(1.02); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; text-decoration: none; font-weight: 600; font-size: 15px;
  color: #fff; padding: 10px 14px; border-radius: 999px;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.is-solid .nav a, .is-light .nav a { color: var(--ink); }
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px;
  background: var(--gold); border-radius: 2px; transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.4s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav .btn { margin-left: 10px; }
.nav .btn::after { display: none; }

.menu-btn { display: none; width: 46px; height: 46px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, 0.14); cursor: pointer; position: relative; }
.is-solid .menu-btn, .is-light .menu-btn { background: var(--paper); }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.4s var(--ease), opacity 0.3s; }
.is-solid .menu-btn span, .is-light .menu-btn span { background: var(--ink); }
.menu-btn span:nth-child(1) { top: 16px; }
.menu-btn span:nth-child(2) { top: 22px; }
.menu-btn span:nth-child(3) { top: 28px; }
.nav-open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .menu-btn span:nth-child(2) { opacity: 0; }
.nav-open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--red); --fg: #fff;
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 15px/1 var(--body); letter-spacing: 0.01em;
  padding: 15px 24px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--bg); color: var(--fg) !important; text-decoration: none;
  box-shadow: 0 10px 24px -10px rgba(179, 32, 46, 0.7);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s;
  position: relative; overflow: hidden; isolation: isolate;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.28) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform 0.8s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(179, 32, 46, 0.8); }
.btn:hover::before { transform: translateX(120%); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-gold { --bg: var(--gold); --fg: var(--ink); box-shadow: 0 10px 24px -10px rgba(242, 169, 59, 0.8); }
.btn-ghost { --bg: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5); backdrop-filter: blur(6px); }
.btn-ghost:hover { --bg: rgba(255, 255, 255, 0.18); box-shadow: inset 0 0 0 1.5px #fff; }
.btn-dark { --bg: var(--ink); box-shadow: 0 10px 24px -12px rgba(11, 18, 38, 0.8); }
.btn-outline { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-outline:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  color: #fff; overflow: hidden; background: var(--ink);
  padding: calc(var(--header-h) + 40px) 0 120px;
}
.hero-bg { position: absolute; inset: -8% 0; z-index: 0; will-change: transform; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); animation: heroZoom 2.6s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(80% 60% at 15% 40%, rgba(29, 42, 110, 0.55), transparent 70%),
    linear-gradient(180deg, rgba(11, 18, 38, 0.55) 0%, rgba(11, 18, 38, 0.72) 55%, var(--ink) 100%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 1; opacity: 0.12;
  background-image: linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 30% 50%, #000, transparent);
  -webkit-mask-image: radial-gradient(70% 60% at 30% 50%, #000, transparent);
}
.hero .wrap { position: relative; z-index: 2; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 13px/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.hero h1 { font-size: clamp(42px, 7.2vw, 92px); font-weight: 800; max-width: 13ch; margin: 22px 0 24px; }
.hero h1 .accent { color: var(--gold); }
.hero h1 .w, .page-hero h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.06em; }
.hero h1 .w > span, .page-hero h1 .w > span { display: inline-block; transform: translateY(110%); animation: wordUp 1s var(--ease) forwards; animation-delay: calc(0.25s + var(--i) * 0.07s); }
@keyframes wordUp { to { transform: none; } }
.hero-lede { font-size: clamp(18px, 1.6vw, 21px); color: rgba(255, 255, 255, 0.82); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.fade-in { opacity: 0; transform: translateY(18px); animation: fadeUp 1s var(--ease) forwards; animation-delay: var(--d, 0.8s); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(242, 169, 59, 0.25); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(242, 169, 59, 0); } }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; z-index: 2; transform: translateX(-50%); width: 26px; height: 42px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, 0.5); }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Stats ---------- */
.stats { position: relative; z-index: 3; margin-top: -72px; }
.stats-card {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.stat { padding: 34px 30px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 26px; bottom: 26px; width: 1px; background: var(--line); }
.stat b { display: block; font: 800 clamp(34px, 3.6vw, 48px)/1 var(--head); color: var(--navy); letter-spacing: -0.03em; }
.stat b small { font-size: 0.55em; color: var(--red); margin-left: 2px; }
.stat span { display: block; margin-top: 10px; color: var(--muted); font-size: 15px; }
.stat b span { display: inline; margin: 0; color: inherit; font-size: inherit; }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 10vw, 140px) 0; }
.section-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 60px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 18px; max-width: 52ch; }
.eyebrow.dark { color: var(--red); }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 420px;
  color: #fff; background: var(--ink); isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: var(--shadow);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), opacity 1s var(--ease);
}
.svc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease), filter 0.6s var(--ease); filter: saturate(0.9); }
.svc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 18, 38, 0.05) 20%, rgba(11, 18, 38, 0.92) 78%); transition: background 0.6s var(--ease); }
.svc-body { padding: 28px; }
.svc-num { position: absolute; top: 22px; left: 26px; font: 700 13px/1 var(--body); letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.75); }
.svc-icon { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.14); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.22); transition: background 0.5s var(--ease), transform 0.6s var(--ease), color 0.5s; }
.svc-icon svg { width: 24px; height: 24px; }
.svc h3 { font-size: 26px; font-weight: 800; margin-bottom: 10px; }
.svc p { color: rgba(255, 255, 255, 0.8); font-size: 15.5px; }
.svc ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.7s var(--ease), opacity 0.5s var(--ease), margin 0.5s; }
.svc li { font-size: 14.5px; padding-left: 18px; position: relative; color: rgba(255, 255, 255, 0.9); }
.svc li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 2px; background: var(--gold); }
.svc:hover, .svc:focus-within { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.svc:hover img, .svc:focus-within img { transform: scale(1.08); filter: saturate(1.1); }
.svc:hover::before, .svc:focus-within::before { background: linear-gradient(180deg, rgba(29, 42, 110, 0.25) 0%, rgba(11, 18, 38, 0.95) 65%); }
.svc:hover .svc-icon, .svc:focus-within .svc-icon { background: var(--gold); color: var(--ink); transform: rotate(-8deg) scale(1.06); }
.svc:hover ul, .svc:focus-within ul { max-height: 220px; opacity: 1; }
@media (hover: none) { .svc ul { max-height: none; opacity: 1; } }

/* ---------- Marquee ---------- */
.marquee { background: var(--navy); color: #fff; overflow: hidden; padding: 22px 0; position: relative; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--navy), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--navy), transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font: 700 clamp(20px, 2.4vw, 30px)/1 var(--head); white-space: nowrap; letter-spacing: -0.01em; }
.marquee-track span::after { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--gold); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Process ---------- */
.process { background: var(--paper); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 33px; height: 2px; background: var(--line); }
.steps .line-fill { position: absolute; left: 0; top: 33px; height: 2px; width: 100%; background: linear-gradient(90deg, var(--red), var(--gold)); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.8s var(--ease) 0.2s; }
.steps.is-in .line-fill { transform: scaleX(1); }
.step { position: relative; }
.step-dot { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow); position: relative; z-index: 1; font: 800 22px/1 var(--head); color: var(--navy); margin-bottom: 22px; transition: transform 0.5s var(--ease), background 0.5s, color 0.5s; }
.step:hover .step-dot { transform: scale(1.08); background: var(--navy); color: #fff; }
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* ---------- About ---------- */
.about { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.about::before { content: ""; position: absolute; width: 700px; height: 700px; right: -200px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(39, 53, 139, 0.6), transparent 65%); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; position: relative; }
.about h2 { font-size: clamp(34px, 4.4vw, 58px); font-weight: 800; margin: 18px 0 24px; }
.about p { color: rgba(255, 255, 255, 0.76); font-size: 18px; }
.about p + p { margin-top: 16px; }
.about-list { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-list > div { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); transition: background 0.4s var(--ease), transform 0.4s var(--ease), opacity 1s var(--ease); }
.about-list > div:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-3px); }
.about-list svg { flex: none; width: 22px; height: 22px; color: var(--gold); margin-top: 2px; }
.about-list p { font-size: inherit; margin: 0; }
.about-list b { display: block; font-size: 15.5px; color: #fff; }
.about-list span { font-size: 14px; color: rgba(255, 255, 255, 0.62); }
.about-media { position: relative; height: 560px; }
.about-media .ph { position: absolute; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-media .ph img { width: 100%; height: 100%; object-fit: cover; }
.about-media .ph-a { inset: 0 18% 22% 0; }
.about-media .ph-b { width: 52%; height: 46%; right: 0; bottom: 0; border: 6px solid var(--ink); }
.about-media .badge {
  position: absolute; left: -18px; bottom: 40px; z-index: 2;
  background: var(--gold); color: var(--ink); border-radius: 20px; padding: 18px 22px;
  box-shadow: var(--shadow-lg); animation: float 6s ease-in-out infinite;
}
.about-media .badge b { display: block; font: 800 34px/1 var(--head); }
.about-media .badge span { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Projects ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.proj { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 380px; color: #fff; isolation: isolate; box-shadow: var(--shadow); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), opacity 1s var(--ease); }
.proj:nth-child(1) { grid-column: span 7; }
.proj:nth-child(2) { grid-column: span 5; }
.proj:nth-child(3) { grid-column: span 5; }
.proj:nth-child(4) { grid-column: span 7; }
.proj img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.proj::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(11, 18, 38, 0.88), rgba(11, 18, 38, 0) 55%); }
.proj:hover { box-shadow: var(--shadow-lg); }
.proj:hover img { transform: scale(1.06); }
.proj-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.proj-body small { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.proj-body h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; }
.proj-arrow { flex: none; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(8px); display: grid; place-items: center; transition: background 0.4s var(--ease), transform 0.5s var(--ease), color 0.4s; }
.proj-arrow svg { width: 20px; height: 20px; }
.proj:hover .proj-arrow { background: var(--gold); color: var(--ink); transform: rotate(-45deg); }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; border-radius: var(--radius-lg); color: #fff; padding: clamp(48px, 7vw, 90px); isolation: isolate; }
.cta img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; z-index: -2; will-change: transform; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(179, 32, 46, 0.95) 0%, rgba(29, 42, 110, 0.88) 60%, rgba(29, 42, 110, 0.6) 100%); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(30px, 4vw, 52px); font-weight: 800; max-width: 18ch; }
.cta p { color: rgba(255, 255, 255, 0.85); margin-top: 12px; max-width: 48ch; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.cta-dl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 14.5px; color: rgba(255, 255, 255, 0.85); }
.cta-dl span { width: 100%; }
.cta-dl a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; color: #fff; font-weight: 600; text-decoration: none; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.45); transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.cta-dl a:hover { background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 1.5px #fff; }
.cta-dl svg { width: 16px; height: 16px; flex: none; }

/* ---------- Contact ---------- */
.contact { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 70px); align-items: start; }
.contact h2 { font-size: clamp(34px, 4.4vw, 56px); font-weight: 800; margin: 18px 0 18px; }
.contact-lede { color: var(--muted); font-size: 18px; }
.offices { margin-top: 36px; display: grid; gap: 16px; }
.office { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), opacity 1s var(--ease); }
.office:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.office-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.office-head img { height: 40px; width: auto; }
.office h3 { font-size: 20px; }
.office dl { margin: 0; display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; font-size: 15px; }
.office dt { color: var(--muted); font-weight: 600; }
.office dd { margin: 0; }
.office a { color: var(--navy); font-weight: 700; text-decoration: none; }
.office a:hover { text-decoration: underline; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-lg); position: relative; }
.form-card h3 { font-size: 26px; margin-bottom: 6px; }
.form-card > p { color: var(--muted); margin-bottom: 24px; }
.form-progress { display: flex; gap: 8px; margin-bottom: 18px; }
.form-progress:empty { display: none; }
.form-progress span { flex: 1; height: 5px; border-radius: 5px; background: var(--line); position: relative; overflow: hidden; }
.form-progress span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--red), var(--gold)); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.6s var(--ease); }
.form-progress span.done::after { transform: scaleX(1); }
.form-step-name { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); margin-bottom: 18px; }
.form-step-name:empty { display: none; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: grid; gap: 7px; grid-column: span 2; align-content: start; animation: fieldIn 0.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 0.04s); }
@keyframes fieldIn { from { opacity: 0; transform: translateY(10px); } }
.field.half { grid-column: span 1; }
.field > label, .field legend { font-weight: 600; font-size: 14.5px; padding: 0; }
.field .req { color: var(--red); margin-left: 2px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field input[type="date"], .field input[type="number"], .field select, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--body); color: var(--ink);
  padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper);
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230b1226' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-2); background: #fff; box-shadow: 0 0 0 4px rgba(39, 53, 139, 0.12); }
.field [aria-invalid="true"] { border-color: var(--red) !important; background: #fff6f6 !important; }
.field .help { font-size: 13.5px; color: var(--muted); }
.field .err { font-size: 13.5px; color: var(--red); font-weight: 600; }
.field .err:empty { display: none; }
.field fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 7px; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.choice span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); font-size: 15px; font-weight: 600; transition: all 0.25s var(--ease); }
.choice input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px rgba(39, 53, 139, 0.2); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--ink); line-height: 1.5; }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--navy); }
.other-input { margin-top: 8px; display: none !important; }
.other-input.show { display: block !important; }
.form-error { color: var(--red); font-weight: 600; margin-top: 16px; }
.form-error:empty { display: none; }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; }
.form-actions .btn:only-child { margin-left: auto; }
.form-loading { color: var(--muted); display: flex; align-items: center; gap: 10px; grid-column: span 2; }
.form-loading::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--red); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.thanks { text-align: center; padding: 30px 10px; animation: fieldIn 0.7s var(--ease) both; }
.thanks-icon { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; background: #e9f7ef; color: #1c8c4e; display: grid; place-items: center; }
.thanks-icon svg { width: 36px; height: 36px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 0.8s var(--ease) 0.3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.thanks h3 { font-size: 26px; margin-bottom: 8px; }
.thanks p { color: var(--muted); }

/* ---------- Careers page ---------- */
.page-hero { position: relative; color: #fff; background: var(--ink); padding: calc(var(--header-h) + 90px) 0 140px; overflow: hidden; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; animation: heroZoom 2.6s var(--ease) forwards; transform: scale(1.12); }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 18, 38, 0.3), var(--ink)); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(42px, 6.4vw, 80px); font-weight: 800; margin: 20px 0 18px; max-width: 16ch; }
.page-hero p { color: rgba(255, 255, 255, 0.8); font-size: 19px; max-width: 56ch; }
.careers-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: start; margin-top: -70px; position: relative; z-index: 2; }
.side { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 20px); }
.side-card { background: #fff; border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.side-card h3 { font-size: 21px; margin-bottom: 10px; }
.side-card p { color: var(--muted); font-size: 15.5px; }
.side-card p a { color: var(--navy); }
.dl { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--paper); text-decoration: none; transition: background 0.3s var(--ease), transform 0.4s var(--ease); }
.dl:hover { background: #eef0f8; transform: translateX(4px); }
.dl-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; font: 800 11px/1 var(--body); letter-spacing: 0.04em; }
.dl b { display: block; font-size: 15.5px; }
.dl span span { font-size: 13.5px; color: var(--muted); }
.dl svg { margin-left: auto; flex: none; width: 20px; height: 20px; color: var(--navy); transition: transform 0.4s var(--ease); }
.dl:hover svg { transform: translateY(3px); }
.perks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.perks li { display: flex; gap: 10px; font-size: 15.5px; }
.perks svg { flex: none; width: 20px; height: 20px; color: var(--red); margin-top: 3px; }
.side-card .eeo { font-size: 13.5px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.72); padding: 80px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-logos { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-logos img { height: 52px; width: auto; background: #fff; border-radius: 10px; padding: 4px 6px; }
.site-footer p { font-size: 15px; margin-top: 18px; max-width: 36ch; }
.site-footer h4 { color: #fff; font: 700 14px/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.site-footer a { text-decoration: none; color: rgba(255, 255, 255, 0.72); transition: color 0.25s; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom { margin-top: 56px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, 0.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.social { display: inline-flex; align-items: center; gap: 8px; }
.social svg { width: 18px; height: 18px; }

/* ---------- Reveal animations ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal="zoom"] { transform: scale(0.94); }
.js [data-reveal="clip"] { opacity: 1; transform: none; }
.js [data-reveal="clip"]::after { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--ink); transform-origin: 50% 0; transition: transform 1.3s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="clip"] img { transform: scale(1.18); transition: transform 1.8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="clip"].is-in::after { transform: scaleY(0); }
.js [data-reveal="clip"].is-in img { transform: none; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .svc[data-reveal].is-in:hover, .js .svc[data-reveal].is-in:focus-within { transform: translateY(-8px); transition-delay: 0s; }
.js .office[data-reveal].is-in:hover { transform: translateY(-4px); transition-delay: 0s; }
.js .about-list > div[data-reveal].is-in:hover { transform: translateY(-3px); transition-delay: 0s; }
.js .proj[data-reveal].is-in { transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), opacity 1s var(--ease); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .brand-chip img { height: 34px; }
}
@media (max-width: 1020px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .section-head, .about-grid, .contact-grid, .careers-grid { grid-template-columns: 1fr; }
  .about-media { height: 460px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before, .steps .line-fill { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .side { position: static; order: 2; }
  .careers-grid { margin-top: -50px; }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 8px;
    background: rgba(11, 18, 38, 0.97); backdrop-filter: blur(10px);
    opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
  }
  .nav a { color: #fff !important; font-size: 26px; font-family: var(--head); opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
  .nav .btn { margin: 16px 0 0; font-size: 17px; font-family: var(--body); color: var(--ink) !important; }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open .nav a { opacity: 1; transform: none; }
  .nav-open .nav a:nth-child(2) { transition-delay: 0.05s; }
  .nav-open .nav a:nth-child(3) { transition-delay: 0.1s; }
  .nav-open .nav a:nth-child(4) { transition-delay: 0.15s; }
  .nav-open .nav a:nth-child(5) { transition-delay: 0.2s; }
  .nav-open .nav a:nth-child(6) { transition-delay: 0.25s; }
  .nav-open .site-header { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-open .menu-btn { background: rgba(255, 255, 255, 0.14); }
  .nav-open .menu-btn span { background: #fff; }
  .stats-card { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .projects-grid { grid-template-columns: 1fr; }
  .proj { grid-column: auto !important; min-height: 300px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: min(var(--wrap), 100% - 32px); }
  .brand-chip { gap: 6px; padding: 4px 6px; }
  .brand-chip img { height: 28px; }
  .services-grid, .steps, .about-list, .footer-grid { grid-template-columns: 1fr; }
  .svc { min-height: 360px; }
  .fields { grid-template-columns: 1fr; }
  .field.half { grid-column: span 2; }
  .about-media { height: 380px; }
  .about-media .badge { left: 10px; }
  .office dl { grid-template-columns: 1fr; gap: 2px; }
  .office dd { margin-bottom: 8px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .scroll-cue { display: none; }
  .stat { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-reveal="clip"]::after { display: none; }
  .hero h1 .w > span, .page-hero h1 .w > span { transform: none; }
  .fade-in { opacity: 1; transform: none; }
}