/*
  Paul Patrick Electric, Inc.
  Licensed electrical contractor, Milton FL. Residential / Commercial / Government.
  Visual world: structured utility. Paper-cool surfaces, deep navy structural blocks,
  a single amber accent carried from the trade itself, hairlines and shadows tinted
  from the navy hue. Type: Archivo (display) + Manrope (text), self-hosted.
*/

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-variable.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-950: #04060f;
  --navy-900: #0a1030;
  --navy-850: #0d1538;
  --navy-800: #121a45;
  --navy-700: #1d2a63;
  --navy-600: #2b3c85;
  --navy-300: #8e9ac8;
  --navy-100: #e6eaf7;
  --navy-50:  #f1f3fa;

  --amber-600: #a96c12;
  --amber-500: #d3921f;
  --amber-400: #eeae44;
  --amber-200: #f7dcab;

  --paper: #f7f8fb;
  --surface: #ffffff;
  --ink: #131826;
  --ink-soft: #4d5468;
  --ink-faint: #656c80;

  --on-dark: #ffffff;
  --on-dark-soft: #b3bbd8;
  --on-dark-faint: #7c86ab;

  --line: rgba(10, 16, 48, 0.10);
  --line-strong: rgba(10, 16, 48, 0.18);
  --line-dark: rgba(255, 255, 255, 0.12);
  --line-dark-strong: rgba(255, 255, 255, 0.22);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-bezel: 24px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(10,16,48,.05), 0 4px 14px -4px rgba(10,16,48,.08);
  --sh-2: 0 2px 4px rgba(10,16,48,.06), 0 20px 44px -16px rgba(10,16,48,.20);
  --sh-3: 0 4px 10px rgba(10,16,48,.08), 0 48px 90px -32px rgba(10,16,48,.42);
  --sh-inset: inset 0 1px 0 rgba(255,255,255,.7);
  --sh-inset-dark: inset 0 1px 0 rgba(255,255,255,.10);

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: 'Archivo', 'Manrope', sans-serif;
  --font-text: 'Manrope', 'Archivo', sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --nav-h: 74px;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--navy-300) var(--navy-50);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 420;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Browser surfaces themed from the palette, not left at defaults */
::selection { background: var(--amber-200); color: var(--navy-950); }
:root { caret-color: var(--navy-700); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--navy-50); }
::-webkit-scrollbar-thumb {
  background: var(--navy-300);
  border-radius: var(--r-pill);
  border: 3px solid var(--navy-50);
}
::-webkit-scrollbar-thumb:hover { background: var(--navy-600); }

:where(a):focus-visible,
:where(button):focus-visible,
:where(input):focus-visible,
:where(textarea):focus-visible,
:where(summary):focus-visible {
  outline: 2px solid var(--amber-500);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

img { display: block; max-width: 100%; height: auto; }
/* <picture> only wraps its <img> with AVIF/WebP sources; it takes no box of its own
   so frame rules keep sizing the image directly */
picture { display: contents; }
svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 760;
  line-height: 1.06;
  letter-spacing: -0.032em;
  margin: 0 0 0.45em;
  text-wrap: balance;
  color: var(--navy-950);
}
h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.18rem, 1.7vw, 1.45rem); letter-spacing: -0.022em; line-height: 1.2; }
h4 { font-size: 1rem; letter-spacing: -0.012em; }

p { margin: 0 0 1.1em; color: var(--ink-soft); max-width: 68ch; }
.lead { font-size: clamp(1.05rem, 1.45vw, 1.24rem); line-height: 1.6; color: var(--ink-soft); max-width: 46ch; }

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
section { padding-block: clamp(72px, 10vw, 136px); }
.section-tight { padding-block: clamp(36px, 5vw, 56px); }
.on-navy { background: var(--navy-950); color: var(--on-dark); }
.on-navy h1, .on-navy h2, .on-navy h3, .on-navy h4 { color: var(--on-dark); }
.on-navy p, .on-navy .lead { color: var(--on-dark-soft); }
.bg-surface { background: var(--surface); }
.has-field { position: relative; overflow: hidden; isolation: isolate; }
/* room below the band for the conduit run to read */
.cta-section { padding-bottom: clamp(110px, 14vw, 190px); }
.has-field > .container { position: relative; z-index: 1; }
.bg-field {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}
@media (max-width: 860px) { .bg-field { opacity: .7; } }
.bg-tint { background: var(--navy-50); }

.section-head { max-width: 46ch; margin-bottom: clamp(40px, 5vw, 68px); }
.section-head h2 { max-width: 22ch; }
.section-head p { max-width: 52ch; margin-bottom: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }

.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 200;
  background: var(--navy-900); color: #fff;
  padding: 12px 20px; border-radius: var(--r-sm);
  font-weight: 600; text-decoration: none;
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy-900);
  --btn-fg: #fff;
  --btn-chip: rgba(255,255,255,.16);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px 11px 24px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-text);
  font-weight: 640;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--sh-1);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.btn .chip {
  width: 34px; height: 34px;
  border-radius: var(--r-pill);
  background: var(--btn-chip);
  display: grid; place-items: center;
  transition: transform .45s var(--ease), background-color .3s var(--ease);
}
.btn .chip .icon { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.btn:hover .chip { transform: translate(3px, -2px); }
.btn:active { transform: translateY(0) scale(.985); box-shadow: var(--sh-1); }

.btn--accent { --btn-bg: var(--amber-500); --btn-fg: var(--navy-950); --btn-chip: rgba(4,6,15,.14); }
.btn--accent:hover { background: var(--amber-400); }
.btn--ghost-dark {
  --btn-bg: transparent; --btn-fg: #fff; --btn-chip: rgba(255,255,255,.12);
  box-shadow: inset 0 0 0 1px var(--line-dark-strong);
}
.btn--ghost-dark:hover { background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px var(--line-dark-strong), var(--sh-2); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--navy-900); --btn-chip: rgba(10,16,48,.07);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn--ghost:hover { background: var(--surface); }
.btn--plain { padding-right: 24px; }
.btn--block { width: 100%; justify-content: center; }

/* Text link with travelling arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 640; font-size: .95rem; text-decoration: none;
  color: var(--navy-800);
}
.link-arrow .icon { width: 14px; height: 14px; transition: transform .4s var(--ease); }
.link-arrow:hover .icon { transform: translate(3px, -3px); }

/* ---------- Header ---------- */
.topbar {
  background: var(--navy-950);
  color: #c3cae4;
  font-size: .86rem;
  position: relative;
  z-index: 60;
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding-block: 9px; flex-wrap: wrap;
}
.topbar-list { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar a, .topbar span.ti { display: inline-flex; align-items: center; gap: 7px; color: inherit; text-decoration: none; white-space: nowrap; }
.topbar a { transition: color .25s var(--ease); }
.topbar a:hover { color: #fff; }
.topbar .icon { width: 16px; height: 16px; color: var(--amber-400); }
.topbar-list > a, .topbar-list > span.ti { gap: 9px; }
.topbar-social { display: flex; gap: 8px; }
.topbar-social a {
  width: 32px; height: 32px; border-radius: var(--r-pill);
  display: grid; place-items: center;
  color: #fff;
  background: rgba(255,255,255,.12);
  box-shadow: inset 0 0 0 1px var(--line-dark-strong);
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.topbar-social a .icon { width: 15px; height: 15px; color: currentColor; }
.topbar-social a:hover {
  background: var(--amber-400); color: var(--navy-950);
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px var(--amber-400);
}
@media (max-width: 860px) {
  .topbar .container { padding-block: 9px; gap: 10px; flex-wrap: nowrap; }
  .topbar-list { gap: 14px; flex-wrap: nowrap; }
  /* address and licence live in the footer and on Contact; the phone is what
     a phone-sized visitor needs in the bar */
  .topbar .topbar-list span.ti { display: none; }
  .topbar .topbar-list a { font-weight: 640; font-size: .92rem; color: #fff; }
}

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
/* blur lives on a pseudo-element: a filter on the header itself would become the
   containing block for the fixed mobile menu panel and collapse it */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
}
.site-header .container { max-width: 1360px; }
.navbar {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; flex: none; text-decoration: none; position: relative; }
.brand img { height: 52px; width: auto; }
.brand .brand-reverse { display: none; }
.brand--footer img { height: 64px; }
@media (max-width: 560px) { .brand img { height: 44px; } }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links > li > a {
  position: relative;
  display: block; padding: 9px 11px;
  font-size: .945rem; font-weight: 640; letter-spacing: -0.008em;
  color: var(--navy-800); text-decoration: none;
  border-radius: var(--r-sm);
  transition: color .3s var(--ease);
}
.nav-links > li > a::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--amber-500);
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.nav-links > li > a:hover { color: var(--navy-950); }
.nav-links > li > a:hover::after { transform: scaleX(1); }
.nav-links > li > a[aria-current="page"] { color: var(--navy-950); font-weight: 750; }
.nav-links > li > a[aria-current="page"]::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 680; font-size: .95rem; text-decoration: none; color: var(--navy-900);
  padding: 9px 16px; border-radius: var(--r-pill);
  white-space: nowrap; flex: none;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .3s var(--ease), background-color .3s var(--ease);
}
@media (max-width: 1420px) { .nav-phone { display: none; } }
.nav-phone .icon { width: 17px; height: 17px; color: var(--amber-600); }
.nav-phone:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong), var(--sh-1); }

/* hamburger that morphs to an X */
.nav-toggle {
  display: none;
  width: 46px; height: 46px; flex: none;
  background: transparent; border: 0;
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  position: relative; cursor: pointer;
}
.nav-toggle span {
  position: absolute; left: 50%; top: 50%;
  width: 18px; height: 1.6px; border-radius: 2px;
  background: var(--navy-900);
  transition: transform .5s var(--ease), opacity .3s var(--ease);
}
.nav-toggle span:nth-child(1) { transform: translate(-50%, -6px); }
.nav-toggle span:nth-child(2) { transform: translate(-50%, 0); }
.nav-toggle span:nth-child(3) { transform: translate(-50%, 6px); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, 0) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: translate(-50%, 0) scaleX(.4); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translate(-50%, 0) rotate(-45deg); }

@media (max-width: 1200px) {
  .nav-toggle { display: block; }
  .nav-phone { display: none; }
  /* scoped to the action cluster so the in-menu CTA survives */
  .nav-actions .btn { display: none; }
  /* brand and toggle share the header's stacking context with the panel,
     so they need to outrank it to stay clickable and visible */
  .brand, .nav-toggle { position: relative; z-index: 45; }
  .nav-links {
    position: fixed; inset: 0;
    z-index: 40;
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 2px;
    /* JS sets --panel-top from the live header bottom so items never slide
       under the logo when the topbar wraps */
    padding: calc(var(--panel-top, calc(var(--nav-h) + 24px)) + 20px) var(--gutter) 40px;
    background: color-mix(in srgb, var(--navy-950) 92%, transparent);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    opacity: 0; pointer-events: none;
    transition: opacity .45s var(--ease);
    overflow-y: auto;
  }
  .nav-links.is-open { opacity: 1; pointer-events: auto; }
  .nav-links > li {
    opacity: 0; transform: translateY(26px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
  }
  .nav-links.is-open > li { opacity: 1; transform: none; }
  .nav-links.is-open > li:nth-child(1) { transition-delay: .06s; }
  .nav-links.is-open > li:nth-child(2) { transition-delay: .10s; }
  .nav-links.is-open > li:nth-child(3) { transition-delay: .14s; }
  .nav-links.is-open > li:nth-child(4) { transition-delay: .18s; }
  .nav-links.is-open > li:nth-child(5) { transition-delay: .22s; }
  .nav-links.is-open > li:nth-child(6) { transition-delay: .26s; }
  .nav-links.is-open > li:nth-child(7) { transition-delay: .30s; }
  .nav-links.is-open > li:nth-child(8) { transition-delay: .34s; }
  .nav-links.is-open > li:nth-child(9) { transition-delay: .38s; }
  .nav-links > li > a {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 5.4vw, 2.1rem);
    font-weight: 700; letter-spacing: -0.03em;
    color: rgba(255,255,255,.78);
    padding: 11px 0;
    border-bottom: 1px solid var(--line-dark);
  }
  .nav-links > li > a::after { display: none; }
  .nav-links > li > a:hover,
  .nav-links > li > a[aria-current="page"] { color: #fff; }
  .nav-links > li.nav-cta-mobile { margin-top: 26px; }
  .nav-links > li.nav-cta-mobile a {
    display: inline-flex;
    align-items: center;
    border-bottom: 0;
    padding: 11px 12px 11px 24px;
    font-family: var(--font-text);
    font-size: .98rem;
    font-weight: 640;
    letter-spacing: -0.01em;
    justify-content: space-between;
    color: var(--navy-950);
  }
  body.nav-open { overflow: hidden; }

  /* with the panel open the header sits over dark glass: invert it so the mark
     and the toggle stay visible */
  body.nav-open .site-header {
    background: transparent;
    border-bottom-color: transparent;
  }
  body.nav-open .site-header::before { backdrop-filter: none; -webkit-backdrop-filter: none; }
  body.nav-open .brand .brand-primary { display: none; }
  body.nav-open .brand .brand-reverse { display: block; }
  body.nav-open .nav-toggle { box-shadow: inset 0 0 0 1px var(--line-dark-strong); }
  body.nav-open .nav-toggle span { background: #fff; }
}
@media (min-width: 1201px) { .nav-cta-mobile { display: none; } }

/* ---------- Breadcrumb ---------- */
.breadcrumb { background: var(--surface); border-bottom: 1px solid var(--line); font-size: .84rem; }
.breadcrumb .container { padding-block: 13px; color: var(--ink-faint); }
.breadcrumb a { color: var(--ink-faint); text-decoration: none; transition: color .25s var(--ease); }
.breadcrumb a:hover { color: var(--navy-800); }
.breadcrumb .sep { padding-inline: 8px; opacity: .45; }
.breadcrumb [aria-current="page"] { color: var(--navy-900); font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy-950);
  color: var(--on-dark);
  overflow: hidden;
  padding-block: clamp(64px, 8vw, 104px);
}
.hero::after {
  /* single light source, keyed to the bulb in the mark */
  content: ""; position: absolute; z-index: 0;
  top: -30%; right: -10%; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle at 50% 50%, rgba(238,174,68,.14), rgba(238,174,68,.04) 42%, transparent 68%);
  pointer-events: none;
}
#hero-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
@media (max-width: 900px) { #hero-field { opacity: .6; } }
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
}
.hero h1 {
  color: #fff;
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 4.4vw, 3.4rem);
  max-width: 19ch;
}
.hero h1 .accent {
  color: var(--amber-400);
  font-style: italic;
  padding-bottom: .06em;
  display: inline-block;
  line-height: 1.1;
}
.hero .lead { color: var(--on-dark-soft); margin-bottom: 34px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 44px; padding-top: 26px;
  border-top: 1px solid var(--line-dark);
  display: flex; gap: 28px; flex-wrap: wrap;
  font-size: .9rem; color: #b3bbd8;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .icon { width: 15px; height: 15px; color: var(--amber-400); }

/* double-bezel photo frame */
.bezel {
  position: relative;
  padding: 8px;
  border-radius: var(--r-bezel);
  background: rgba(255,255,255,.05);
  box-shadow: inset 0 0 0 1px var(--line-dark);
}
.bezel > .bezel-inner {
  position: relative;
  border-radius: calc(var(--r-bezel) - 8px);
  overflow: hidden;
  box-shadow: var(--sh-inset-dark), var(--sh-3);
}
.bezel img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual { position: relative; }
.hero-visual .bezel-inner { aspect-ratio: 4 / 3.4; }
.hero-visual img { object-position: 50% 55%; }

.badge-float {
  position: absolute; left: -18px; bottom: 26px;
  background: var(--surface); color: var(--navy-950);
  border-radius: var(--r-md);
  padding: 14px 18px;
  box-shadow: var(--sh-3);
  display: flex; align-items: center; gap: 12px;
  max-width: 262px;
}
.badge-float .badge-icon {
  width: 38px; height: 38px; flex: none;
  border-radius: var(--r-sm);
  background: var(--navy-950); color: var(--amber-400);
  display: grid; place-items: center;
}
.badge-float .badge-icon .icon { width: 19px; height: 19px; }
.badge-float strong { display: block; font-size: .92rem; font-weight: 700; letter-spacing: -0.01em; }
.badge-float span { font-size: .8rem; color: var(--ink-faint); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-visual .bezel-inner { aspect-ratio: 16 / 10; }
  .badge-float {
    left: auto; right: 10px; bottom: -14px;
    padding: 11px 14px; max-width: 244px;
  }
  .badge-float strong { font-size: .86rem; }
  .badge-float span { font-size: .76rem; }
}

/* ---------- Framed photography ---------- */
.photo-frame {
  border-radius: var(--r-bezel);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line), var(--sh-2);
  background: var(--navy-50);
}
.photo-frame img { width: 100%; height: auto; display: block; }
/* when a frame must match a neighbouring column, crop rather than squash */
.photo-frame--fill { height: 100%; }
.photo-frame--fill img { height: 100%; object-fit: cover; }
/* portrait job photos in a landscape slot */
.photo-frame--crop { aspect-ratio: 4 / 3.4; }
.photo-frame--crop img { height: 100%; object-fit: cover; object-position: 50% 40%; }

/* ---------- Recent work tiles ---------- */
.section-head--split {
  max-width: none;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px 40px; flex-wrap: wrap;
}
.section-head--split > div { max-width: 52ch; }
.work-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(190px, 19vw, 260px);
  gap: 14px;
}
.work-tile--feature { grid-column: span 2; grid-row: span 2; }
.work-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; }
.work-grid--3 .work-tile { aspect-ratio: 4 / 5; }
.work-tile a {
  position: relative; display: block; height: 100%;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--navy-100);
  box-shadow: inset 0 0 0 1px var(--line), var(--sh-1);
  color: #fff; text-decoration: none;
  isolation: isolate;
}
.work-tile img {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease);
}
.work-tile a::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent 45%, rgba(4,6,15,.82) 100%);
}
.work-tile a:hover img { transform: scale(1.05); }
.work-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 18px;
  font-weight: 640; font-size: .95rem; line-height: 1.35; letter-spacing: -0.01em;
}
.work-kind {
  display: block; margin-bottom: 3px;
  font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--amber-400);
}
@media (max-width: 700px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 200px; gap: 10px; }
  .work-tile--feature { grid-row: span 1; grid-column: span 2; }
  .work-grid--3 { grid-template-columns: 1fr; }
  .work-grid--3 .work-tile { aspect-ratio: 4 / 3; }
  .work-cap { padding: 12px 14px; font-size: .88rem; }
}

/* ---------- Project gallery ---------- */
.gallery-section { padding-top: clamp(40px, 5vw, 64px); }
.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(24px, 3vw, 36px); }
.filter {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border: 0; border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: .9rem; font-weight: 620; color: var(--navy-800);
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.filter:hover { box-shadow: inset 0 0 0 1px var(--navy-600); }
.filter[aria-pressed="true"] { background: var(--navy-950); color: #fff; box-shadow: none; }
.filter-count { font-size: .76rem; font-weight: 700; opacity: .72; font-variant-numeric: tabular-nums; }
.filter:focus-visible { outline: 2px solid var(--amber-500); outline-offset: 3px; }

.gallery-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}
.gallery-item[hidden] { display: none; }
.gallery-item a {
  position: relative; display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-md); overflow: hidden;
  background: var(--navy-100);
  box-shadow: inset 0 0 0 1px var(--line);
  color: #fff; text-decoration: none;
  isolation: isolate;
  cursor: zoom-in;
}
.gallery-item img {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--ease);
}
.gallery-item a::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent 55%, rgba(4,6,15,.78) 100%);
  opacity: .9; transition: opacity .4s var(--ease);
}
.gallery-item a:hover img { transform: scale(1.05); }
.gallery-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 12px 14px;
  font-size: .86rem; font-weight: 620; line-height: 1.3; letter-spacing: -0.01em;
}
.gallery-item a:focus-visible { outline: 3px solid var(--amber-500); outline-offset: 3px; }
@media (max-width: 560px) {
  /* one swipeable row instead of four wrapped ones */
  .gallery-filters {
    flex-wrap: nowrap; overflow-x: auto;
    margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter);
    scrollbar-width: none;
  }
  .gallery-filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .gallery-cap { font-size: .78rem; padding: 10px; }
}

/* ---------- Lightbox ---------- */
html:has(.lightbox[open]) { overflow: hidden; }
.lightbox {
  width: 100%; height: 100dvh; max-width: 100%; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(4, 6, 15, .94);
  color: #fff;
}
.lightbox::backdrop { background: rgba(4, 6, 15, .6); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; }
.lb-stage { display: grid; place-items: center; min-height: 0; padding: 64px 72px 8px; overflow: hidden; }
/* viewport units: a percentage max-height has no definite row to resolve against */
.lb-stage img {
  max-width: calc(100vw - 144px); max-height: calc(100dvh - 140px); width: auto; height: auto;
  object-fit: contain; border-radius: var(--r-sm);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.6);
}
.lb-bar {
  display: flex; justify-content: center; align-items: baseline; gap: 14px;
  max-width: none; margin: 0;
  padding: 14px 20px 22px;
  font-size: .95rem; color: var(--on-dark-soft);
}
.lb-bar strong { color: #fff; font-weight: 640; }
.lb-count { font-variant-numeric: tabular-nums; font-size: .85rem; color: var(--on-dark-faint); }
.lb-btn {
  position: absolute;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 0; border-radius: var(--r-pill);
  background: rgba(255,255,255,.1); color: #fff;
  box-shadow: inset 0 0 0 1px var(--line-dark-strong);
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.lb-btn:hover { background: var(--amber-400); color: var(--navy-950); }
.lb-btn:focus-visible { outline: 2px solid var(--amber-400); outline-offset: 3px; }
.lb-btn .icon { width: 20px; height: 20px; }
.lb-close { top: 12px; right: 12px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; }
.lb-prev .icon { transform: rotate(180deg); }
.lb-next { right: 12px; }
@media (max-width: 700px) {
  .lb-stage { padding: 64px 8px 8px; }
  .lb-stage img { max-width: calc(100vw - 16px); max-height: calc(100dvh - 190px); }
  .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; }
  .lb-bar { padding-inline: 70px; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
}

/* ---------- Credentials ----------
   These registrations are what qualifies the company for public work, so they
   get their own section at full colour and real size, each one captioned. */
.creds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  gap: 16px;
}
.cred {
  display: grid;
  grid-template-rows: 84px auto 1fr;
  gap: 4px;
  padding: 26px 20px 24px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--line), var(--sh-1);
  text-align: center;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.cred:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-strong), var(--sh-2); }
.cred-mark {
  display: grid; place-items: center;
  align-self: center;
}
.cred-mark img { max-height: 72px; max-width: 148px; width: auto; height: auto; object-fit: contain; }
.cred-name {
  font-family: var(--font-display);
  font-weight: 740; font-size: 1.02rem; letter-spacing: -0.018em;
  color: var(--navy-950);
}
.cred-note { font-size: .875rem; line-height: 1.5; color: var(--ink-soft); margin: 6px 0 0; }
@media (max-width: 560px) {
  .creds { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
  .cred { padding: 20px 14px 18px; grid-template-rows: 64px auto 1fr; }
  .cred-mark img { max-height: 58px; max-width: 118px; }
}

/* ---------- Split (sticky editorial) ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.split--even { grid-template-columns: 1fr 1fr; align-items: center; }
.split-sticky { position: sticky; top: calc(var(--nav-h) + 32px); }
@media (max-width: 900px) {
  .split, .split--even { grid-template-columns: 1fr; gap: 36px; }
  .split-sticky { position: static; }
}

/* ---------- Capability rows (not cards) ---------- */
.caps { border-top: 1px solid var(--line); }
.cap {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.cap > * { transition: transform .45s var(--ease); }
.cap::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(238,174,68,.10), transparent 62%);
  opacity: 0; transition: opacity .45s var(--ease);
  pointer-events: none;
}
.cap:hover > .icon, .cap:hover > .cap-name { transform: translateX(8px); }
.cap:hover::before { opacity: 1; }
.cap .icon { width: 21px; height: 21px; color: var(--amber-600); }
.cap-name { font-weight: 640; letter-spacing: -0.012em; color: var(--navy-950); font-size: 1.02rem; }
.cap-note { font-size: .9rem; color: var(--ink-soft); text-align: right; }
@media (max-width: 620px) {
  .cap { grid-template-columns: 26px minmax(0,1fr); }
  .cap-note { grid-column: 2; text-align: left; }
}

/* ---------- Bento practice areas ---------- */
.bento {
  display: grid;
  grid-template-columns: 1.24fr 1fr;
  grid-auto-rows: minmax(214px, auto);
  gap: 16px;
}
.tile {
  position: relative;
  display: flex; align-items: flex-end;
  padding: 8px;
  border-radius: var(--r-bezel);
  background: rgba(10,16,48,.05);
  box-shadow: inset 0 0 0 1px var(--line);
  text-decoration: none;
  overflow: hidden;
  transition: transform .55s var(--ease), box-shadow .55s var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-strong), var(--sh-2); }
.tile-inner {
  position: relative;
  width: 100%;
  border-radius: calc(var(--r-bezel) - 8px);
  overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: 198px;
}
.tile-inner img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02);
  transition: transform 1s var(--ease);
}
.tile:hover .tile-inner img { transform: scale(1.07); }
.tile-inner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(197deg, rgba(4,6,15,.10) 12%, rgba(4,6,15,.62) 58%, rgba(4,6,15,.93) 100%);
}
.tile-body {
  position: relative; z-index: 1;
  padding: clamp(20px, 2.4vw, 30px);
  color: #fff;
  width: 100%;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
}
.tile-body h3 { color: #fff; margin-bottom: 6px; }
.tile-body p { color: rgba(255,255,255,.82); font-size: .95rem; line-height: 1.55; margin: 0; max-width: 34ch; }
.tile-go {
  width: 42px; height: 42px; flex: none;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.14);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
  display: grid; place-items: center; color: #fff;
  transition: transform .5s var(--ease), background-color .4s var(--ease);
}
.tile-go .icon { width: 16px; height: 16px; }
.tile:hover .tile-go { background: var(--amber-500); color: var(--navy-950); transform: translate(3px, -3px); box-shadow: none; }
.tile--tall { grid-row: span 2; }
.tile--tall .tile-inner { min-height: 100%; }
@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .tile--tall { grid-row: auto; }
  .tile-inner { min-height: 230px; }
}

/* ---------- Coverage band ---------- */
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.coverage-cell {
  background: var(--navy-950);
  padding: clamp(22px, 2.6vw, 32px);
}
.coverage-cell h3 { color: #fff; font-size: 1.02rem; margin-bottom: 10px; display: flex; align-items: center; gap: 9px; }
.coverage-cell h3 .icon { width: 17px; height: 17px; color: var(--amber-400); }
.coverage-cell p { color: #c3cae4; font-size: .95rem; margin: 0; }
.coverage-cell ul { margin: 0; padding: 0; list-style: none; }
.coverage-cell li {
  color: #c3cae4; font-size: .95rem;
  padding: 7px 0; display: flex; gap: 9px; align-items: baseline;
}
.coverage-cell li .icon { width: 12px; height: 12px; color: var(--amber-400); transform: translateY(1px); }

/* ---------- Agency / client marks ----------
   Most agency seals are dark navy artwork; on the navy band they need their own
   light plate to stay legible. */
.mark-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mark-row .mark {
  display: grid; place-items: center;
  width: 132px; height: 108px;
  padding: 16px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-1);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.mark-row .mark img { max-height: 76px; max-width: 100px; width: auto; height: auto; object-fit: contain; }
@media (max-width: 560px) {
  .mark-row { gap: 10px; }
  .mark-row .mark { width: 104px; height: 86px; padding: 12px; }
  .mark-row .mark img { max-height: 58px; max-width: 78px; }
}
.mark-row .mark:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }

/* pills for client rosters */
.pills { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; margin: 0; padding: 0; }
.pills li {
  padding: 9px 17px;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: .9rem; font-weight: 560; color: var(--navy-800);
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.pills li:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--line-strong), var(--sh-1); }
.on-navy .pills li { background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line-dark); color: var(--on-dark-soft); }

/* ---------- Contract / record list ---------- */
.records { display: grid; gap: 0; border-top: 1px solid var(--line); }
.record {
  display: grid; grid-template-columns: auto minmax(0,1fr);
  gap: 16px; padding: 20px 4px;
  border-bottom: 1px solid var(--line);
}
.record > * { transition: transform .45s var(--ease); }
.record:hover > * { transform: translateX(8px); }
.record .icon { width: 18px; height: 18px; color: var(--amber-600); margin-top: 4px; }
.record-title { font-weight: 640; color: var(--navy-950); letter-spacing: -0.012em; margin: 0 0 3px; }
.record-meta { font-size: .85rem; color: var(--ink-faint); margin: 0; max-width: none; }

/* ---------- Code tables (NAICS / PSC) ---------- */
.codes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.code-row {
  display: grid; grid-template-columns: 74px minmax(0,1fr);
  gap: 14px; align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.code-row code {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: .8rem; font-weight: 600;
  color: var(--navy-700);
  font-variant-numeric: tabular-nums;
}
.code-row span { font-size: .91rem; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta {
  position: relative;
  border-radius: var(--r-bezel);
  background: var(--navy-950);
  color: #fff;
  padding: clamp(36px, 5vw, 68px);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  box-shadow: var(--sh-2);
}
.cta::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 140% at 88% 8%, rgba(238,174,68,.18), transparent 58%);
}
.cta > * { position: relative; z-index: 1; }
.cta > .cta-field {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: .82;
  /* clear of the headline on the left and the action column on the right */
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.22) 32%, #000 58%, #000 76%, rgba(0,0,0,.35) 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.22) 32%, #000 58%, #000 76%, rgba(0,0,0,.35) 100%);
}
@media (max-width: 820px) {
  .cta > .cta-field {
    opacity: .5;
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.4) 40%, #000 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.4) 40%, #000 100%);
  }
}
.cta h2 { color: #fff; margin-bottom: 10px; }
.cta p { color: #c3cae4; font-size: 1.02rem; margin: 0; max-width: 48ch; }
.cta-actions { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.cta-phone {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 720; letter-spacing: -0.03em;
  color: #fff; text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: color .3s var(--ease);
}
.cta-phone .icon { width: 20px; height: 20px; color: var(--amber-400); }
.cta-phone:hover { color: var(--amber-400); }
@media (max-width: 820px) {
  .cta { grid-template-columns: 1fr; }
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
  position: relative;
  background: var(--navy-950); color: #fff;
  padding-block: clamp(56px, 7vw, 96px);
  overflow: hidden;
}
.page-header::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(90% 140% at 82% 0%, rgba(238,174,68,.14), transparent 60%);
}
.page-header .container { position: relative; z-index: 2; }

/* Subject photo behind the title. It is decorative (alt=""), so a navy scrim
   carries the contrast: dense under the copy on the left, lifting to the right
   so the photo still reads. */
.page-header--photo { padding-block: clamp(80px, 11vw, 150px); }
.page-header-media { position: absolute; inset: 0; z-index: 0; }
.page-header-media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: var(--focus, 50% 50%);
}
.page-header--photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4,6,15,.95) 0%, rgba(4,6,15,.9) 40%, rgba(4,6,15,.62) 68%, rgba(4,6,15,.38) 100%),
    linear-gradient(0deg, rgba(4,6,15,.55) 0%, transparent 40%);
}
.page-header--photo::after { z-index: 1; }
@media (max-width: 760px) {
  .page-header--photo::before { background: linear-gradient(180deg, rgba(4,6,15,.70) 0%, rgba(4,6,15,.86) 100%); }
}
.page-header h1 { color: #fff; margin-bottom: 14px; }
.page-header p { color: var(--on-dark-soft); font-size: clamp(1rem, 1.3vw, 1.15rem); max-width: 52ch; margin: 0; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 620; color: var(--navy-900); letter-spacing: -0.008em; }
.field input, .field textarea {
  font: inherit; font-size: .96rem;
  color: var(--ink);
  background: var(--surface);
  border: 0;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  border-radius: var(--r-sm);
  padding: 13px 15px;
  transition: box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 1.5px var(--navy-700), 0 0 0 4px rgba(29,42,99,.10);
}
.field textarea { resize: vertical; min-height: 132px; }
.field .hint { font-size: .8rem; color: var(--ink-faint); }
.form-note { font-size: .84rem; color: var(--ink-faint); }
.form-status { display: none; padding: 14px 16px; border-radius: var(--r-sm); font-size: .9rem; font-weight: 560; margin-bottom: 18px; }
.form-status.is-visible { display: block; }
.form-status.success { background: #e8f6ed; color: #17663a; box-shadow: inset 0 0 0 1px rgba(23,102,58,.18); }
.form-status.error { background: #fdedea; color: #8f2a1d; box-shadow: inset 0 0 0 1px rgba(143,42,29,.18); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Contact info ---------- */
.info-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--line), var(--sh-1);
  padding: clamp(24px, 3vw, 32px);
}
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.info-list li {
  display: grid; grid-template-columns: 38px minmax(0,1fr);
  gap: 14px; align-items: start;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.info-list li:last-child { border-bottom: 0; }
.info-list .ico {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  background: var(--navy-50); color: var(--navy-700);
  display: grid; place-items: center;
}
.info-list .ico .icon { width: 17px; height: 17px; }
.info-list .label { display: block; font-size: .78rem; color: var(--ink-faint); margin-bottom: 1px; }
.info-list a, .info-list strong { font-weight: 620; color: var(--navy-950); text-decoration: none; font-size: .98rem; }
.info-list a:hover { color: var(--amber-600); }

.map-frame { border-radius: var(--r-lg); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line), var(--sh-1); }
.map-frame iframe { display: block; width: 100%; height: 300px; border: 0; filter: grayscale(.35) contrast(1.02); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--on-dark-soft); }
.footer-top { padding-block: clamp(52px, 6vw, 80px); border-bottom: 1px solid var(--line-dark); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
.footer-grid p { color: #b9c0dc; font-size: .96rem; line-height: 1.7; max-width: 38ch; }
.footer-col h3 {
  color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 18px; font-family: var(--font-text); font-weight: 700;
  padding-bottom: 12px; border-bottom: 1px solid var(--line-dark);
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; color: #c6cce4; font-size: .96rem; }
.footer-links li > a,
.footer-links li > span {
  display: inline-flex; align-items: flex-start; gap: 11px;
  color: #dfe3f2; text-decoration: none; font-size: .96rem; line-height: 1.45;
  transition: color .3s var(--ease), transform .3s var(--ease);
}
.footer-links li > span { color: #c6cce4; }
.footer-links .icon {
  width: 17px; height: 17px;
  color: var(--amber-400);
  margin-top: 2px;
  transition: transform .35s var(--ease);
}
.footer-links li > a:hover { color: #fff; transform: translateX(4px); }
.footer-links li > a:hover .icon { transform: scale(1.08); }
.footer-links--contact li > span,
.footer-links--contact li > a { max-width: 30ch; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a {
  width: 46px; height: 46px; border-radius: var(--r-pill);
  display: grid; place-items: center;
  color: #fff;
  background: rgba(255,255,255,.10);
  box-shadow: inset 0 0 0 1px var(--line-dark-strong);
  transition: color .3s var(--ease), background-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.footer-social a .icon { width: 19px; height: 19px; }
.footer-social a:hover {
  color: var(--navy-950);
  background: var(--amber-400);
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px var(--amber-400), var(--sh-2);
}
.footer-bottom {
  padding-block: 26px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: .87rem; color: #9aa3c4;
}
.footer-bottom .num { letter-spacing: .01em; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Motion ----------
   Content is visible by default and only animates once JS confirms it can
   bring it back; no script, no hidden page. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(6px);
  transition:
    opacity .9s var(--ease-out),
    transform .9s var(--ease-out),
    filter .9s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
