/* Salem Investments Group
   Palette: one brand blue (#038dfc), one dark (navy), neutrals. Fonts: Plus Jakarta Sans (headings) + Inter (text). */
:root {
  --blue: #038dfc;
  --blue-rgb: 3, 141, 252;
  --navy: #0f1d36;
  --navy-rgb: 15, 29, 54;
  --text: #3d4759;
  --muted: #6b7486;
  --line: #e3e7ee;
  --bg-alt: #f5f7fa;
  --white: #fff;
  --tint: rgba(var(--blue-rgb), .08);
  --ok: #1e7a45;
  --err: #c0392b;

  --radius: 0;
  --radius-sm: 2px;
  --shadow: 0 10px 30px -14px rgba(var(--navy-rgb), .22);
  --shadow-lg: 0 26px 56px -22px rgba(var(--navy-rgb), .38);
  --wrap: 1200px;
  --head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font: 16.5px/1.7 var(--body); color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: clip; font-feature-settings: 'cv11', 'ss01'; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); transition: color .2s; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--navy); line-height: 1.18; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
::selection { background: var(--blue); color: var(--white); }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 200; background: var(--white); padding: 8px 14px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 15px/1 var(--head); letter-spacing: .01em; text-decoration: none;
  padding: 17px 28px; border-radius: var(--radius-sm); background: var(--blue); color: var(--white); border: 2px solid var(--blue); cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s, border-color .25s, color .25s; }
.btn:hover { background: var(--navy); border-color: var(--navy); color: var(--white); transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(var(--navy-rgb), .6); }
.btn:active { transform: translateY(0); }
.btn .arr, .more .arr { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .arr, .card:hover .more .arr { transform: translateX(5px); }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .5); }
.btn-ghost:hover { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn-light { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn-small { padding: 12px 20px; font-size: 14px; }

.kicker { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 1em; }
.kicker::before { content: ''; width: 24px; height: 2px; background: currentColor; }
.kicker.center { display: flex; justify-content: center; }
.section-title { font-size: clamp(28px, 3.5vw, 42px); font-weight: 800; }
.section { padding: clamp(64px, 9vw, 110px) 0; position: relative; }
.section.alt { background: var(--bg-alt); }
.lead-dark { max-width: 680px; margin: 0 auto 2.5em; color: var(--muted); }

/* ---------- Scroll progress (native scroll-driven, decorative only) ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; background: var(--blue); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
  @media (prefers-reduced-motion: no-preference) {
    .progress { animation: grow-x linear both; animation-timeline: scroll(block root); }
  }
}
@keyframes grow-x { to { transform: scaleX(1); } }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--navy); color: rgba(255, 255, 255, .7); font-size: 13.5px; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; flex-wrap: wrap; }
.topbar a { color: rgba(255, 255, 255, .7); text-decoration: none; margin-left: 22px; }
.topbar a:hover { color: var(--white); }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: box-shadow .4s var(--ease), border-color .4s, background-color .4s; view-transition-name: site-header; }
.site-header.scrolled { box-shadow: 0 10px 30px -18px rgba(var(--navy-rgb), .35); border-bottom-color: var(--line); background: rgba(255, 255, 255, .95); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); transition: height .4s var(--ease); }
.scrolled .header-inner { height: 68px; }
.brand img { width: 150px; height: auto; transition: width .4s var(--ease); }
.scrolled .brand img { width: 118px; }
.site-nav > ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.site-nav a { font: 600 15px var(--head); color: var(--navy); text-decoration: none; padding: 10px 14px; display: block; position: relative; }
.site-nav > ul > li > a:not(.btn)::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.site-nav > ul > li > a:not(.btn):hover::after, .site-nav > ul > li > a[aria-current]:not(.btn)::after { transform: scaleX(1); transform-origin: left; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--blue); }
.site-nav .btn { color: var(--white); margin-left: 10px; }
.site-nav .btn:hover, .site-nav .btn[aria-current] { color: var(--white); }
.has-sub { position: relative; }
.has-sub > a { padding-right: 26px !important; }
.has-sub > a::before { content: ''; position: absolute; right: 10px; top: 50%; width: 6px; height: 6px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.has-sub:hover > a::before, .has-sub:focus-within > a::before { transform: translateY(-30%) rotate(-135deg); }
.sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; background: var(--white);
  box-shadow: var(--shadow-lg); border-top: 2px solid var(--blue); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s var(--ease), transform .35s var(--ease), visibility .25s; }
.sub::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { font: 500 14.5px var(--body); padding: 9px 12px; transition: background-color .2s, color .2s, padding-left .3s var(--ease); }
.sub a:hover { background: var(--tint); padding-left: 18px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span:not(.sr) { display: block; width: 26px; height: 2px; background: var(--navy); margin: 6px 0; transition: transform .35s var(--ease), opacity .2s; }

/* ---------- Home hero ---------- */
.hero { position: relative; color: var(--white); background: var(--navy) var(--hero-img) center / cover no-repeat; overflow: hidden; min-height: min(86vh, 800px); display: flex; align-items: center; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(var(--navy-rgb), .95) 0%, rgba(var(--navy-rgb), .8) 50%, rgba(var(--navy-rgb), .4) 100%); }
.hero-fx { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; background: var(--blue); filter: blur(80px); opacity: .45; animation: float 18s ease-in-out infinite alternate; }
.b1 { width: 520px; height: 520px; right: -140px; top: -160px; }
.b2 { width: 380px; height: 380px; right: 24%; bottom: -220px; opacity: .3; animation-duration: 22s; animation-delay: -6s; }
.b3 { display: none; }
@keyframes float { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-40px, 30px) scale(1.08); } 100% { transform: translate(30px, -20px) scale(.95); } }
.hero-bird { position: absolute; right: max(2vw, calc((100vw - var(--wrap)) / 2 - 40px)); top: 50%; width: clamp(240px, 32vw, 460px); opacity: .12; transform: translateY(-50%) rotate(-6deg); animation: glide 9s ease-in-out infinite; }
@keyframes glide { 50% { transform: translateY(-56%) rotate(-2deg); } }
.hero-inner { position: relative; padding: clamp(90px, 12vw, 150px) 0; }
.hero .kicker { color: var(--blue); }
.hero h1 { color: var(--white); font-size: clamp(42px, 6.6vw, 80px); font-weight: 800; max-width: 800px; line-height: 1.04; letter-spacing: -.035em; }
.hero .lead { font-size: clamp(17px, 2vw, 20px); max-width: 600px; color: rgba(255, 255, 255, .78); margin-bottom: 2.2em; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-inner > * { animation: rise 1s var(--ease) both; }
.hero-inner > :nth-child(2) { animation-delay: .1s; }
.hero-inner > :nth-child(3) { animation-delay: .22s; }
.hero-inner > :nth-child(4) { animation-delay: .34s; }
@keyframes rise { from { opacity: 0; transform: translateY(34px); } }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 20px; translate: -50% 0; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--white); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Inner page hero ---------- */
.page-hero { background: var(--navy) var(--hero-img, none) center / cover no-repeat; position: relative; color: var(--white); overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 88% 15%, rgba(var(--blue-rgb), .45), transparent 55%), linear-gradient(100deg, rgba(var(--navy-rgb), .96) 35%, rgba(var(--navy-rgb), .75)); }
.page-hero .hero-bird { width: clamp(180px, 22vw, 300px); opacity: .08; right: 6%; }
.page-hero .wrap { position: relative; padding: clamp(64px, 9vw, 110px) 0; }
.page-hero h1 { color: var(--white); font-size: clamp(32px, 5vw, 56px); font-weight: 800; letter-spacing: -.03em; margin: 0; max-width: 900px; animation: rise .9s var(--ease) both .08s; }
.page-hero .kicker { color: var(--blue); animation: rise .9s var(--ease) both; }

/* ---------- Layout blocks ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.split-media { position: relative; }
.split-media::before { content: ''; position: absolute; inset: 22px -22px -22px 22px; background: var(--tint); z-index: -1; }
.split-media img { box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.stat { position: absolute; left: -24px; bottom: -24px; background: var(--blue); color: var(--white); padding: 22px 26px; max-width: 230px; box-shadow: var(--shadow-lg); }
.stat strong { display: block; font: 800 44px/1 var(--head); letter-spacing: -.03em; }
.stat span { font-size: 14px; font-weight: 500; line-height: 1.4; display: block; margin-top: 8px; color: rgba(255, 255, 255, .9); }
.panel { background: var(--navy); color: rgba(255, 255, 255, .75); padding: clamp(28px, 4vw, 48px); position: relative; overflow: hidden; }
.panel::after { content: ''; position: absolute; width: 280px; height: 280px; right: -100px; top: -100px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--blue-rgb), .45), transparent 70%); }
.panel h3 { color: var(--white); font-size: 24px; }
.checks { list-style: none; padding: 0; margin: 0; position: relative; z-index: 1; }
.checks li { padding: 13px 0 13px 42px; position: relative; font-weight: 600; color: var(--white); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.checks li:last-child { border-bottom: 0; }
.checks li::before { content: '✓'; position: absolute; left: 0; top: 12px; width: 28px; height: 28px; background: var(--blue); color: var(--white); font-size: 14px; display: grid; place-items: center; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; margin-top: 3em; }
.card { background: var(--white); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--text); display: flex; flex-direction: column;
  border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--text); }
.card-media { overflow: hidden; position: relative; aspect-ratio: 16 / 10; background: var(--bg-alt); }
.card-media::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover .card-media img { transform: scale(1.07); }
.card:hover .card-media::after { transform: scaleX(1); }
.card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 20px; margin-bottom: .45em; transition: color .3s; }
.card:hover h3 { color: var(--blue); }
.card p { color: var(--muted); font-size: 15px; flex: 1; }
.card time { font-size: 13px; color: var(--blue); font-weight: 600; margin-bottom: 6px; }
.more { font: 600 14px var(--head); color: var(--blue); display: inline-flex; gap: 8px; align-items: center; }

/* Feature boxes */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; margin-top: 2.2em; counter-reset: feat; }
.feature { background: var(--white); padding: 30px 28px; box-shadow: var(--shadow); position: relative; overflow: hidden; counter-increment: feat; border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.feature::before { content: counter(feat, decimal-leading-zero); display: block; font: 800 15px var(--head); color: var(--blue); margin-bottom: 14px; }
.feature::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature:hover::after { transform: scaleX(1); }
.feature h3 { font-size: 19px; margin-bottom: .35em; }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }

/* Prose */
.prose h2 { font-size: clamp(22px, 2.6vw, 30px); margin-top: 1.6em; }
.prose h2.section-title { margin-top: 0; font-size: clamp(28px, 3.5vw, 42px); }
.prose h3 { font-size: 20px; margin-top: 1.4em; }
.prose ul { padding-left: 0; list-style: none; }
.prose li { margin-bottom: .7em; padding-left: 28px; position: relative; }
.prose li::before { content: ''; position: absolute; left: 4px; top: .68em; width: 8px; height: 8px; background: var(--blue); }

/* Service page */
.service-layout { display: grid; grid-template-columns: 1fr 330px; gap: clamp(36px, 5vw, 70px); align-items: start; }
.area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.prose .area-grid li { background: var(--bg-alt); padding: 15px 16px 15px 44px; font-weight: 600; color: var(--navy); font-size: 15px; line-height: 1.4; margin: 0;
  border: 1px solid transparent; border-left: 3px solid var(--blue); transition: transform .4s var(--ease), background-color .3s, border-color .3s; }
.prose .area-grid li::before { left: 18px; top: 21px; }
.prose .area-grid li:hover { transform: translateX(4px); background: var(--white); border-color: var(--line); border-left-color: var(--blue); }
.sidebar { position: sticky; top: 100px; display: grid; gap: 22px; }
.side-nav { background: var(--bg-alt); padding: 24px; }
.side-nav h3 { font-size: 17px; }
.side-nav ul { list-style: none; padding: 0; margin: 0; }
.side-nav a { display: flex; justify-content: space-between; padding: 11px 14px; text-decoration: none; color: var(--navy); font-weight: 600; transition: background-color .25s, color .25s, padding-left .35s var(--ease); }
.side-nav a::after { content: '→'; opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .35s var(--ease); }
.side-nav a:hover { background: var(--white); padding-left: 18px; }
.side-nav a:hover::after, .side-nav a[aria-current]::after { opacity: 1; transform: none; }
.side-nav a[aria-current] { background: var(--blue); color: var(--white); }
.side-cta { background: var(--navy); color: rgba(255, 255, 255, .75); padding: 28px; }
.side-cta h3 { color: var(--white); }

/* Clients / organizations logo strip */
.clients { padding: 72px 0; border-top: 1px solid var(--line); overflow: hidden; }
.marquee { display: flex; margin-top: 34px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logo-row { list-style: none; padding: 0; margin: 0; display: flex; flex-shrink: 0; align-items: center; gap: 64px; padding-right: 64px; animation: marquee 40s linear infinite; }
.marquee:hover .logo-row { animation-play-state: paused; }
.marquee.static { justify-content: center; mask-image: none; }
.marquee.static .logo-row { animation: none; flex-wrap: wrap; justify-content: center; }
@keyframes marquee { to { transform: translateX(-100%); } }
.logo-row img { max-height: 60px; max-width: 160px; width: auto; filter: grayscale(1); opacity: .6; transition: filter .4s, opacity .4s, transform .4s var(--ease); }
.logo-row img:hover { filter: none; opacity: 1; transform: scale(1.05); }
.clients.under-hero { padding: 34px 0 40px; border-top: 0; border-bottom: 1px solid var(--line); }
.clients.under-hero .section-title { font: 600 13px var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0; }
.clients.under-hero .marquee { margin-top: 22px; }
.clients.under-hero .logo-row img { max-height: 52px; }
.logo-placeholder { list-style: none; padding: 0; margin: 22px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.logo-placeholder li { width: 150px; height: 64px; display: grid; place-items: center; border: 2px dashed var(--line); color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.admin-hint { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

/* CTA */
.cta { background: var(--blue); color: var(--white); position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; inset: 0; background: url('../img/bird-white.png') no-repeat right 6% center / auto 150%; opacity: .1; }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 64px 0; flex-wrap: wrap; }
.cta h2 { color: var(--white); font-size: clamp(24px, 3vw, 36px); font-weight: 800; max-width: 720px; }
.cta p { margin: 0; color: rgba(255, 255, 255, .88); }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(36px, 5vw, 70px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list span { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--blue); margin-bottom: 4px; }
.form-card { background: var(--white); border: 1px solid var(--line); padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow); }
form label { display: block; font-weight: 600; font-size: 14px; color: var(--navy); margin-bottom: 18px; }
input, textarea, select { display: block; width: 100%; margin-top: 7px; padding: 14px 16px; font: 16px var(--body); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-alt); color: var(--navy);
  transition: border-color .25s, background-color .25s, box-shadow .25s; }
input:hover, textarea:hover { border-color: var(--muted); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px rgba(var(--blue-rgb), .15); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.err { color: var(--err); font-weight: 600; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 18px 22px; }
.notice.success { background: rgba(30, 122, 69, .08); color: var(--ok); border-left: 3px solid var(--ok); animation: rise .7s var(--ease) both; }
.notice.success h3 { color: var(--ok); }
.notice.error { background: rgba(192, 57, 43, .08); color: var(--err); border-left: 3px solid var(--err); }
.map iframe { width: 100%; height: 440px; border: 0; display: block; filter: grayscale(.3); }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .65); font-size: 15px; position: relative; overflow: hidden; }
.site-footer::before { content: ''; position: absolute; width: 600px; height: 600px; left: -250px; bottom: -350px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--blue-rgb), .2), transparent 70%); }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 44px; padding: 76px 0 54px; }
.footer-logo { background: var(--white); padding: 12px 16px; margin-bottom: 20px; width: 168px; }
.site-footer h3 { color: var(--white); font-size: 16px; margin-bottom: 1.1em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(255, 255, 255, .65); text-decoration: none; display: inline-block; transition: color .25s, transform .35s var(--ease); }
.site-footer a:hover { color: var(--white); }
.site-footer li a:hover { transform: translateX(4px); }
.site-footer address { font-style: normal; }
.social a { margin-right: 14px; font-weight: 600; }
.copyright { position: relative; border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0; font-size: 14px; }

/* Back to top */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 48px; height: 48px; display: grid; place-items: center; text-decoration: none;
  background: var(--blue); color: var(--white); font: 700 20px var(--head); box-shadow: 0 10px 24px -10px rgba(var(--blue-rgb), .8);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.9); transition: opacity .35s, visibility .35s, transform .45s var(--ease), background-color .25s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--navy); color: var(--white); }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.from-left { transform: translateX(-40px); }
.js .reveal.from-right { transform: translateX(40px); }
.js .reveal.zoom { transform: scale(.95); }
.js .reveal.in { opacity: 1; transform: none; }
.js .card.reveal.in:hover, .js .feature.reveal.in:hover { transform: translateY(-8px); }

/* ---------- Page transitions (Chrome/Edge/Safari; others just navigate) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
::view-transition-old(root) { animation: .28s ease-in both vt-out; }
::view-transition-new(root) { animation: .45s var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--white); box-shadow: 0 20px 30px -20px rgba(var(--navy-rgb), .35); max-height: calc(100vh - 70px); overflow: auto;
    clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .45s var(--ease), visibility .45s; }
  .site-nav.open { clip-path: inset(0 0 0 0); visibility: visible; }
  .site-nav > ul { flex-direction: column; align-items: stretch; padding: 12px 16px 22px; gap: 0; }
  .site-nav a { padding: 13px 8px; border-bottom: 1px solid var(--line); }
  .site-nav > ul > li > a:not(.btn)::after, .has-sub > a::before { display: none; }
  .site-nav .btn { margin: 16px 0 0; justify-content: center; border-bottom: 0; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .split, .service-layout, .contact-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .topbar .wrap { justify-content: center; text-align: center; }
  .topbar a { margin: 0 8px; }
  .row2, .footer-grid { grid-template-columns: 1fr; }
  .stat { position: static; margin-top: 18px; max-width: none; }
  .split-media::before { display: none; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .hero { min-height: 0; }
  .hero-bird { opacity: .07; }
  .scroll-cue { display: none; }
}

/* ---------- Reduced motion: switch everything off ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Strengths ---------- */
.strengths { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0; margin-top: 2.6em; border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--white); }
.strength { padding: 34px 30px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; transition: background-color .35s; }
.strength::after { content: ''; position: absolute; left: 0; top: 0; width: 3px; height: 0; background: var(--blue); transition: height .5s var(--ease); }
.strength:hover { background: var(--bg-alt); }
.strength:hover::after { height: 100%; }
.strength .num { display: block; font: 800 14px var(--head); color: var(--blue); margin-bottom: 18px; letter-spacing: .04em; }
.strength h3 { font-size: 20px; margin-bottom: .45em; }
.strength p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Misc buttons / text ---------- */
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.actions-inline { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.card-meta { font-size: 13px; font-weight: 600; color: var(--blue); letter-spacing: .02em; margin-bottom: 6px !important; flex: 0 !important; }
.lead-text { font-size: 19px; color: var(--navy); line-height: 1.6; }
.intro { margin: 0 auto 1em; text-align: center; }
.empty-state { text-align: center; padding: 48px 24px; background: var(--bg-alt); border: 1px dashed var(--line); margin-top: 2em; }
.empty-state p { max-width: 560px; margin: 0 auto 1.4em; }

/* ---------- Projects ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 2em; }
.filters a { padding: 9px 16px; border: 1px solid var(--line); text-decoration: none; color: var(--navy); font: 600 14px var(--head); transition: background-color .25s, color .25s, border-color .25s; }
.filters a:hover { border-color: var(--blue); color: var(--blue); }
.filters a[aria-current] { background: var(--blue); border-color: var(--blue); color: var(--white); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.gallery a { overflow: hidden; display: block; aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery a:hover img { transform: scale(1.06); }
.facts-box dl { margin: 0; }
.facts-box dt { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--blue); margin-top: 14px; }
.facts-box dd { margin: 2px 0 0; color: var(--navy); font-weight: 600; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px; margin-top: 2.6em; }
.person { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.person:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.person-photo { aspect-ratio: 1; background: var(--navy); overflow: hidden; display: grid; place-items: center; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2); transition: transform .8s var(--ease), filter .5s; }
.person:hover .person-photo img { transform: scale(1.05); filter: none; }
.initials { font: 800 64px var(--head); color: rgba(255, 255, 255, .9); letter-spacing: -.02em; }
.person-body { padding: 22px 24px 26px; }
.person-body h3 { font-size: 19px; margin-bottom: .2em; }
.person-body .role { color: var(--blue); font-weight: 600; font-size: 14px; margin-bottom: .8em; }
.person-body p { font-size: 15px; color: var(--muted); }

/* ---------- Certifications ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; margin-top: 2.6em; }
.cert { display: flex; gap: 20px; background: var(--white); border: 1px solid var(--line); padding: 24px; box-shadow: var(--shadow); }
.cert-img { flex: 0 0 96px; height: 96px; display: grid; place-items: center; background: var(--bg-alt); }
.cert-img img { max-width: 84px; max-height: 84px; object-fit: contain; }
.cert h3 { font-size: 18px; margin-bottom: .3em; }
.cert p { font-size: 15px; color: var(--muted); margin-bottom: .6em; }

/* ---------- Footer bottom line ---------- */
.copyright-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.copyright a { color: rgba(255, 255, 255, .65); text-decoration: none; }
.copyright a:hover { color: var(--white); }

@media (max-width: 600px) {
  .cert { flex-direction: column; }
  .strength { padding: 26px 22px; }
}
