:root {
  --navy-950: #04101f;
  --navy-900: #07192f;
  --navy-850: #0a213d;
  --navy-800: #0c2b50;
  --blue-600: #1769aa;
  --blue-500: #2587cf;
  --blue-300: #72b6e6;
  --ice: #d7edfb;
  --paper: #f4f5f2;
  --white: #ffffff;
  --ink: #132234;
  --muted: #607084;
  --line: rgba(16, 43, 75, .13);
  --shadow: 0 24px 80px rgba(5, 20, 40, .17);
  --shell: min(1180px, calc(100% - 40px));
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.dialog-open { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.shell { width: var(--shell); margin-inline: auto; }
.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; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 12px 18px; background: white; color: var(--navy-900); border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 16px; }

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  height: 84px;
  padding: 0 max(20px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  transition: height .3s ease, background .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled {
  height: 70px;
  background: rgba(4, 16, 31, .93);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 36px rgba(1, 10, 22, .18);
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 210px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; color: var(--blue-300); }
.brand-mark svg { width: 100%; height: 100%; fill: currentColor; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { font-family: Georgia, serif; font-size: 20px; letter-spacing: -.02em; }
.brand-copy small { margin-top: 5px; font: 700 9px/1 "Libre Franklin", sans-serif; letter-spacing: .25em; text-transform: uppercase; color: #a7bdd3; }
.site-nav { display: flex; align-items: center; gap: 20px; font-size: 14px; font-weight: 600; }
.site-nav > a:not(.nav-call) { color: #bfd0df; transition: color .2s ease; }
.site-nav > a:not(.nav-call):hover { color: white; }
.nav-call { display: inline-flex; align-items: center; gap: 9px; padding: 12px 17px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.07); }
.nav-call svg, .button svg { width: 17px; height: 17px; fill: currentColor; }
.nav-call:hover { background: white; color: var(--navy-900); }
.menu-toggle { display: none; }

.hero {
  position: relative;
  min-height: 760px;
  padding: 160px 0 130px;
  overflow: hidden;
  color: white;
  background-color: var(--navy-900);
  background-image: linear-gradient(90deg, rgba(4,16,31,.94) 0%, rgba(4,16,31,.76) 43%, rgba(4,16,31,.4) 100%), linear-gradient(0deg, rgba(4,16,31,.68), transparent 48%), url("assets/philadelphia-skyline.jpg");
  background-position: center, center, center 55%;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero-layout { position: relative; }
.hero-copy { max-width: 680px; }
.eyebrow { display: flex; align-items: center; gap: 11px; color: var(--blue-300); font: 700 11px/1 "Libre Franklin", sans-serif; letter-spacing: .22em; text-transform: uppercase; }
.eyebrow span { width: 30px; height: 2px; background: currentColor; }
.eyebrow-dark { color: var(--blue-600); }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, .materials-intro h3 {
  margin-bottom: 0;
  font-family: "Libre Franklin", sans-serif;
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: .98;
}
h1 { margin-top: 24px; font-size: clamp(54px, 6vw, 84px); }
.hero h1 { font-size: clamp(48px, 5vw, 70px); }
h1 em, h2 em, .materials-intro h3 em { font-family: Georgia, serif; font-weight: 400; color: var(--blue-300); }
.hero-lede { max-width: 620px; margin: 30px 0 0; color: #bed0df; font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.button { min-height: 52px; padding: 0 22px; border-radius: 10px; display: inline-flex; justify-content: center; align-items: center; gap: 10px; font-weight: 700; transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--blue-500); color: white; box-shadow: 0 14px 34px rgba(37,135,207,.28); }
.button-primary:hover { background: #3096de; box-shadow: 0 17px 40px rgba(37,135,207,.4); }
.button-ghost { border: 1px solid rgba(255,255,255,.2); color: white; }
.button-ghost:hover { background: rgba(255,255,255,.08); }
.button-ghost span { color: var(--blue-300); font-size: 20px; }
.hero-trust { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 590px; margin-top: 54px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.13); }
.hero-trust div { display: grid; grid-template-columns: auto 1fr; gap: 9px; align-items: center; padding-right: 20px; }
.hero-trust strong { font: 700 30px/1 "Libre Franklin", sans-serif; color: white; }
.hero-trust span { max-width: 80px; color: #8fa9bf; font-size: 11px; line-height: 1.25; text-transform: uppercase; letter-spacing: .08em; }
.hero-marquee { position: absolute; left: 0; bottom: 0; right: 0; height: 58px; border-block: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; overflow: hidden; background: rgba(4,16,31,.38); }
.marquee-track { width: max-content; display: flex; align-items: center; animation: marquee 55s linear infinite; color: #b5cada; font: 600 11px/1 "Libre Franklin", sans-serif; letter-spacing: .2em; text-transform: uppercase; }
.marquee-set { display: flex; flex: none; align-items: center; gap: 26px; padding-right: 26px; }
.marquee-track i { width: 5px; height: 5px; border-radius: 50%; background: var(--blue-500); }
@keyframes marquee { to { transform: translateX(-50%); } }

.capabilities { padding: 112px 0 120px; background: var(--paper); }
.section-heading { display: grid; grid-template-columns: 1fr 430px; gap: 80px; align-items: end; }
.section-heading h2 { margin-top: 22px; font-size: clamp(43px, 5vw, 66px); color: var(--navy-900); }
.section-heading h2 em { color: var(--blue-600); }
.section-heading > p { margin: 0 0 6px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.service-browser { margin-top: 62px; border-block: 1px solid var(--line); }
.service-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.service-tab { position: relative; padding: 23px 16px; border: 0; border-right: 1px solid var(--line); background: transparent; color: #758296; cursor: pointer; font-weight: 700; }
.service-tab:last-child { border-right: 0; }
.service-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--blue-500); transform: scaleX(0); transition: transform .25s ease; }
.service-tab:hover, .service-tab.is-active { color: var(--navy-900); }
.service-tab.is-active::after { transform: scaleX(1); }
.service-stage { min-height: 390px; padding: 56px 42px; display: grid; grid-template-columns: 110px minmax(0, 1fr) 250px; gap: 42px; align-items: center; }
.service-number { align-self: start; color: var(--blue-500); font: 800 13px/1 "Libre Franklin", sans-serif; letter-spacing: .16em; }
.service-content { max-width: 610px; }
.service-kicker { margin-bottom: 14px; color: var(--blue-600); font: 700 11px/1 "Libre Franklin", sans-serif; letter-spacing: .18em; text-transform: uppercase; }
.service-content h3 { margin-bottom: 18px; font: 700 clamp(30px, 3.2vw, 46px)/1.1 "Libre Franklin", sans-serif; letter-spacing: -.045em; color: var(--navy-900); }
.service-content > p:not(.service-kicker) { color: var(--muted); line-height: 1.7; }
.service-content ul { margin: 25px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px 26px; list-style: none; }
.service-content li { position: relative; padding-left: 20px; font-size: 14px; font-weight: 600; }
.service-content li::before { content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-500); box-shadow: 0 0 0 4px rgba(37,135,207,.12); }
.service-icon { width: 230px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; color: var(--blue-500); background: linear-gradient(135deg, #e6f1f8, #fff); border: 1px solid rgba(37,135,207,.16); }
.service-icon svg { width: 54%; fill: none; stroke: currentColor; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.service-stage.is-changing .service-content, .service-stage.is-changing .service-icon { opacity: 0; transform: translateY(8px); }
.service-content, .service-icon { transition: opacity .16s ease, transform .16s ease; }

.service-directory { margin-top: 42px; padding: 32px 36px; display: grid; grid-template-columns: 230px 1fr; gap: 36px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.service-directory h3 { margin: 15px 0 0; font: 700 24px/1.2 "Libre Franklin", sans-serif; letter-spacing: -.035em; color: var(--navy-900); }
.service-directory ul { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 22px; list-style: none; }
.service-directory li { padding-left: 14px; position: relative; font-size: 14px; line-height: 1.35; font-weight: 600; }
.service-directory li::before { content: ""; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: var(--blue-500); }

.materials-block { margin-top: 118px; display: grid; grid-template-columns: .86fr 1.14fr; gap: 76px; align-items: center; }
.materials-intro h3 { margin-top: 20px; color: var(--navy-900); font-size: clamp(40px, 4.2vw, 58px); }
.materials-intro h3 em { color: var(--blue-600); }
.materials-intro > p { max-width: 510px; margin: 26px 0 0; color: var(--muted); line-height: 1.7; }
.material-selector { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.material-pill { padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: #667588; cursor: pointer; font-size: 12px; font-weight: 700; }
.material-pill.is-active { color: white; background: var(--navy-900); border-color: var(--navy-900); }
.material-details { margin-top: 30px; padding: 25px 0 0 23px; border-left: 3px solid var(--blue-500); }
.material-details > span { color: var(--blue-600); font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.material-details h4 { margin: 8px 0 10px; font: 700 23px/1.2 "Libre Franklin", sans-serif; color: var(--navy-900); }
.material-details p { max-width: 480px; margin-bottom: 15px; color: var(--muted); line-height: 1.6; }
.material-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.material-tags span { padding: 6px 9px; border-radius: 6px; background: #e5edf2; color: #496076; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.material-visual { position: relative; padding: 0; overflow: hidden; aspect-ratio: 1; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); cursor: zoom-in; background: var(--navy-900); text-align: left; }
.material-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease, opacity .18s ease; }
.material-visual:hover img { transform: scale(1.025); }
.material-visual > span { position: absolute; right: 18px; bottom: 18px; padding: 11px 14px; border-radius: 9px; background: rgba(4,16,31,.85); backdrop-filter: blur(10px); color: white; font-size: 12px; font-weight: 700; }
.material-visual b { color: var(--blue-300); }

.credentials { margin-top: 95px; padding-top: 64px; border-top: 1px solid var(--line); }
.credentials-heading { max-width: 700px; }
.credentials-heading h3 { margin: 18px 0 14px; color: var(--navy-900); font: 800 clamp(32px, 3.7vw, 52px)/1.06 "Libre Franklin", sans-serif; letter-spacing: -.05em; }
.credentials-heading p { color: var(--muted); font-size: 16px; line-height: 1.65; }
.credential-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.credential-grid > div { padding: 25px; background: white; border: 1px solid var(--line); border-top: 3px solid var(--blue-500); border-radius: 12px; }
.credential-grid h4 { margin: 0 0 16px; color: var(--navy-900); font: 700 17px/1.35 "Libre Franklin", sans-serif; }
.credential-grid p { margin: 0; color: var(--muted); line-height: 1.8; font-size: 14px; }

.about { padding: 110px 0; background: #e8f0f5; scroll-margin-top: 70px; }
.about-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(44px, 7vw, 110px); align-items: start; }
.about-heading h2 { margin: 22px 0 34px; color: var(--navy-900); font-size: clamp(43px, 4.8vw, 64px); }
.about-heading h2 em { color: var(--blue-600); }
.about-since { display: flex; flex-direction: column; gap: 7px; padding-left: 19px; border-left: 3px solid var(--blue-500); }
.about-since strong { color: var(--navy-900); font-size: 19px; }
.about-since span { color: var(--muted); font-size: 13px; }
.about-story { padding-top: 6px; }
.about-story p { margin: 0 0 23px; color: #41556b; font-size: 17px; line-height: 1.8; }
.about-story p:first-child { color: var(--navy-900); font-size: 20px; font-weight: 600; line-height: 1.65; }
.about-story p:last-child { margin-bottom: 0; }

.safety { padding: 100px 0; background: var(--white); scroll-margin-top: 85px; }
.safety-intro { max-width: 850px; }
.safety h2 { margin: 22px 0 28px; color: var(--navy-900); font-size: clamp(2.5rem, 4.8vw, 4rem); }
.safety h2 em { color: var(--blue-600); }
.safety p { margin: 0; color: #41556b; font-size: 1rem; line-height: 1.8; }
.safety strong { color: var(--navy-900); }
.safety-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; margin-top: 48px; }
.safety-grid article { border-top: 2px solid var(--blue-500); padding-top: 24px; }
.safety h3 { color: var(--navy-900); font-size: 1.375rem; line-height: 1.35; margin: 0 0 16px; }
.safety .safety-closing { margin-top: 48px; padding-left: 24px; border-left: 3px solid var(--blue-500); max-width: 850px; }
@media (max-width: 640px) {
  .safety { padding: 78px 0; }
  .safety-grid { grid-template-columns: 1fr; gap: 32px; }
}

.work { padding: 112px 0 96px; color: white; background: var(--navy-900); }
.section-heading-light h2 { color: white; }
.section-heading-light h2 em { color: var(--blue-300); }
.section-heading-light > p { color: #9db1c3; }
.project-filters { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 52px; }
.filter-button { padding: 10px 16px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: transparent; color: #9fb5c7; cursor: pointer; font-size: 12px; font-weight: 700; }
.filter-button:hover, .filter-button.is-active { background: white; color: var(--navy-900); border-color: white; }
.project-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 270px; gap: 16px; }
.project-card { position: relative; grid-column: span 5; padding: 0; overflow: hidden; border: 0; border-radius: 16px; cursor: pointer; background: #0b2949; text-align: left; color: white; }
.project-card-large { grid-column: span 7; grid-row: span 2; }
.project-card-wide { grid-column: span 5; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease, filter .55s ease; }
.project-card:hover img { transform: scale(1.035); filter: saturate(1.08); }
.project-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(3,16,31,.9), transparent 60%); }
.project-meta { position: absolute; inset: auto 22px 20px; display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; align-items: end; }
.project-meta small { grid-column: 1 / -1; color: #9fd0ef; font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.project-meta strong { font: 700 21px/1.15 "Libre Franklin", sans-serif; }
.project-meta > span { color: #c7dce9; font-size: 11px; font-weight: 700; }
.project-card.is-hidden { display: none; }
.archive-heading { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: end; margin-top: 105px; padding-top: 55px; border-top: 1px solid rgba(255,255,255,.14); }
.archive-heading h3 { margin: 20px 0 0; font: 800 clamp(32px, 3.6vw, 48px)/1.08 "Libre Franklin", sans-serif; letter-spacing: -.045em; }
.archive-heading p { margin: 0; color: #9db1c3; line-height: 1.65; }
.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 32px; }
.archive-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: 15px; background: #0c2c4d; color: white; text-align: left; cursor: pointer; }
.archive-card img { width: 100%; height: 190px; object-fit: cover; filter: saturate(.8); }
.archive-card > span { display: flex; flex: 1; flex-direction: column; padding: 21px 22px 22px; }
.archive-card small { color: #9fd0ef; font-size: 12px; line-height: 1.35; }
.archive-card strong { margin-top: 8px; font: 700 19px/1.25 "Libre Franklin", sans-serif; }
.archive-card em { margin-top: auto; padding-top: 22px; color: #afc6d9; font-size: 13px; font-style: normal; font-weight: 700; }
.archive-card:hover, .archive-card:focus-visible { border-color: var(--blue-300); background: #123b63; }
.other-projects { display: grid; grid-template-columns: 210px 1fr; gap: 34px; margin-top: 32px; padding: 28px 0 0; border-top: 1px solid rgba(255,255,255,.14); }
.other-projects h4 { margin: 0; font: 700 17px/1.35 "Libre Franklin", sans-serif; }
.other-projects > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 28px; }
.other-projects p { margin: 0; display: flex; flex-direction: column; gap: 7px; color: #9db1c3; font-size: 14px; line-height: 1.55; }
.other-projects strong { color: #d5e3ec; }
.service-areas { margin-top: 104px; padding: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 92px); scroll-margin-top: 90px; border: 1px solid rgba(255,255,255,.15); border-radius: 22px; background: #0d2c4f; }
.service-areas h2 { margin: 22px 0 20px; color: white; font-size: clamp(36px, 4vw, 52px); }
.service-areas h2 em { color: var(--blue-300); }
.service-areas p { max-width: 490px; margin: 0; color: #a9bfd1; font-size: 16px; line-height: 1.7; }
.service-areas-intro > a { display: inline-flex; gap: 10px; align-items: center; margin-top: 24px; color: white; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.service-areas-intro > a:hover { color: var(--blue-300); }
.service-areas-list { margin: 0; padding: 0; list-style: none; }
.service-areas-list li { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.15); color: white; font-size: 18px; font-weight: 700; }
.service-areas-list li:first-child { border-top: 1px solid rgba(255,255,255,.15); }
.service-areas-list li span, .service-areas-list li strong { color: var(--blue-300); font-size: 11px; letter-spacing: .1em; }
.contact-panel { position: relative; margin-top: 110px; padding: 54px 58px; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 50px; align-items: center; scroll-margin-top: 90px; border: 1px solid rgba(255,255,255,.16); border-radius: 24px; background: linear-gradient(120deg, #0b2c50, #0f3b68); }
.contact-mark { position: absolute; right: 31%; top: -92px; color: rgba(255,255,255,.045); font: 700 310px/1 Georgia, serif; }
.contact-copy { position: relative; }
.contact-copy h2 { margin-top: 20px; max-width: 700px; color: white; font-size: clamp(38px, 4vw, 58px); }
.contact-copy p { margin: 18px 0 0; color: #abc0d1; }
.contact-call { position: relative; min-width: 295px; padding: 23px 26px; display: flex; flex-direction: column; border-radius: 15px; background: white; color: var(--navy-900); transition: transform .2s ease, box-shadow .2s ease; }
.contact-call:hover { transform: translateY(-3px); box-shadow: 0 20px 48px rgba(0,0,0,.24); }
.contact-call span { color: var(--blue-600); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.contact-call strong { margin-top: 8px; font: 800 27px/1 "Libre Franklin", sans-serif; letter-spacing: -.03em; }
.contact-call small { margin-top: 10px; color: var(--muted); }
.contact-direct { background: #e8f0f5; }
.contact-methods { position: relative; width: min(100%, 360px); display: grid; gap: 12px; }
.contact-email { padding: 20px 24px; display: grid; gap: 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 15px; background: rgba(255,255,255,.08); }
.contact-email span { margin-bottom: 3px; color: var(--blue-300); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.contact-email a { color: white; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 3px; }
.contact-email a:hover { color: var(--blue-300); }

.site-footer { padding: 34px 0; background: var(--navy-950); color: white; border-top: 1px solid rgba(255,255,255,.08); }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; gap: 50px; align-items: center; }
.footer-brand { display: inline-flex; align-items: center; }
.footer-logo { display: block; width: 210px; height: auto; }
.footer-contact small { margin-top: 5px; color: #7890a5; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.footer-links { display: flex; gap: 24px; color: #99aec0; font-size: 12px; font-weight: 700; }
.footer-links a:hover { color: white; }
.footer-contact { display: flex; flex-direction: column; text-align: right; }
.footer-contact a { font-weight: 800; }
.photo-credit { margin-top: 27px; margin-bottom: 0; color: #71879c; font-size: 10px; }
.photo-credit a { text-decoration: underline; text-underline-offset: 2px; }
.photo-credit a:hover { color: white; }

.project-dialog { width: min(1060px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 20px; overflow: auto; background: white; color: var(--ink); box-shadow: 0 40px 120px rgba(0,0,0,.5); }
.project-dialog::backdrop { background: rgba(2, 10, 20, .8); backdrop-filter: blur(7px); }
.dialog-close { position: absolute; z-index: 2; top: 15px; right: 15px; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(4,16,31,.72); color: white; cursor: pointer; font-size: 25px; }
.dialog-layout { display: grid; grid-template-columns: 1.12fr .88fr; min-height: 640px; }
.dialog-image { background: var(--navy-900); }
.dialog-image img { width: 100%; height: 100%; object-fit: cover; }
.dialog-copy { padding: 70px 48px; align-self: center; }
.dialog-copy > span { color: var(--blue-600); font: 800 10px/1 "Libre Franklin", sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.dialog-copy h2 { margin: 14px 0 18px; color: var(--navy-900); font-size: 40px; }
.dialog-copy p { color: var(--muted); line-height: 1.7; }
.dialog-copy ul { margin: 25px 0 34px; padding: 0; list-style: none; }
.dialog-copy li { margin: 10px 0; padding-left: 19px; position: relative; font-size: 13px; font-weight: 700; }
.dialog-copy li::before { content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-500); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease var(--delay, 0s), transform .7s ease var(--delay, 0s); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (min-width: 1121px) and (max-width: 1200px) {
  .site-nav { gap: 13px; font-size: 13px; }
  .site-header .header-logo { width: 220px; height: auto; }
  .nav-call { padding-inline: 12px; }
}

@media (max-width: 1120px) {
  :root { --shell: min(100% - 34px, 760px); }
  .site-header { padding-inline: 20px; }
  .menu-toggle { width: 44px; height: 44px; padding: 11px; display: grid; align-content: center; gap: 5px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: rgba(255,255,255,.06); }
  .menu-toggle span:not(.sr-only) { display: block; height: 2px; background: white; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { position: absolute; top: 75px; right: 18px; left: 18px; padding: 20px; display: none; flex-direction: column; align-items: stretch; gap: 8px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: rgba(4,16,31,.97); box-shadow: 0 25px 60px rgba(0,0,0,.35); }
  .site-nav.is-open { display: flex; }
  .site-nav > a { padding: 12px; }
  .nav-call { justify-content: center; margin-top: 5px; }
  .hero { padding-top: 140px; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; }
  .section-heading > p { max-width: 620px; }
  .service-stage { grid-template-columns: 70px 1fr; }
  .service-icon { display: none; }
  .materials-block { grid-template-columns: 1fr; }
  .service-directory { grid-template-columns: 1fr; gap: 22px; }
  .service-directory ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .credential-grid { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; }
  .archive-heading { grid-template-columns: 1fr; gap: 20px; }
  .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .other-projects { grid-template-columns: 1fr; }
  .service-areas { grid-template-columns: 1fr; }
  .material-visual { max-width: 680px; width: 100%; justify-self: center; }
  .project-grid { grid-auto-rows: 260px; }
  .project-card, .project-card-wide { grid-column: span 6; }
  .project-card-large { grid-column: span 12; grid-row: span 2; }
  .contact-panel { grid-template-columns: 1fr; }
  .contact-call { width: min(100%, 360px); }
  .contact-methods { width: min(100%, 360px); }
  .footer-grid { grid-template-columns: 1fr auto; }
  .footer-links { display: none; }
}

@media (max-width: 640px) {
  :root { --shell: calc(100% - 28px); --radius: 17px; }
  .about { padding: 78px 0; }
  .about-story p { font-size: 16px; }
  .about-story p:first-child { font-size: 18px; }
  .site-header { height: 72px; padding-inline: 14px; }
  .brand { min-width: 0; }
  .brand-mark { width: 35px; height: 35px; }
  .brand-copy strong { font-size: 17px; }
  .brand-copy small { font-size: 8px; }
  .hero { min-height: 0; padding: 120px 0 100px; background-image: linear-gradient(rgba(4,16,31,.82), rgba(4,16,31,.72)), url("assets/philadelphia-skyline.jpg"); background-position: center, 42% center; }
  h1 { font-size: clamp(47px, 14vw, 67px); }
  .hero h1 { font-size: clamp(45px, 11vw, 62px); }
  .hero-lede { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .hero-trust { gap: 12px; }
  .hero-trust div { grid-template-columns: 1fr; gap: 6px; padding-right: 5px; }
  .hero-trust strong { font-size: 26px; }
  .hero-trust span { font-size: 9px; }
  .capabilities, .work { padding: 82px 0; }
  .section-heading h2, .materials-intro h3 { font-size: 42px; }
  .section-heading > p { font-size: 15px; }
  .service-browser { margin-top: 40px; }
  .service-tabs { overflow-x: auto; grid-template-columns: repeat(4, minmax(125px, 1fr)); scrollbar-width: none; }
  .service-tabs::-webkit-scrollbar { display: none; }
  .service-tab { padding: 18px 12px; font-size: 12px; }
  .service-stage { min-height: 0; padding: 40px 5px; grid-template-columns: 1fr; gap: 20px; }
  .service-content h3 { font-size: 31px; }
  .service-content ul { grid-template-columns: 1fr; }
  .service-directory { padding: 25px 20px; }
  .service-directory ul { grid-template-columns: 1fr; gap: 12px; }
  .materials-block { margin-top: 84px; gap: 44px; }
  .credentials { margin-top: 74px; padding-top: 48px; }
  .material-selector { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; }
  .material-pill { flex: 0 0 auto; }
  .project-grid { grid-template-columns: 1fr; grid-auto-rows: 340px; }
  .project-card, .project-card-large, .project-card-wide { grid-column: 1; grid-row: auto; }
  .archive-heading { margin-top: 78px; }
  .archive-grid { grid-template-columns: 1fr; }
  .archive-card img { height: 210px; }
  .other-projects > div { grid-template-columns: 1fr; }
  .service-areas { margin-top: 78px; padding: 30px 24px; }
  .service-areas-list li { font-size: 16px; }
  .contact-panel { margin-top: 78px; padding: 38px 24px; }
  .contact-copy h2 { font-size: 39px; }
  .contact-call { min-width: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-contact { text-align: left; }
  .dialog-layout { grid-template-columns: 1fr; }
  .dialog-image { min-height: 380px; }
  .dialog-copy { padding: 38px 26px 44px; }
  .dialog-copy h2 { font-size: 32px; }
}

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

/* Original Watercontrol fountain and lettering in the site header. */
.header-logo { display: block; width: 245px; height: 55px; object-fit: contain; }
@media (max-width: 640px) { .header-logo { width: 190px; height: auto; } }

/* Real Watercontrol jobsite photography. */
.on-the-job { padding: 100px 0; scroll-margin-top: 85px; background: var(--paper); }
.job-photo { margin: 0; min-width: 0; background: white; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.job-image { display: block; background: #080c12; }
.job-image:focus-visible { outline: 4px solid var(--blue-500); outline-offset: -4px; }
.job-image img { width: 100%; height: 420px; object-fit: contain; }
.job-photo figcaption { padding: 24px; }
.job-photo h3 { margin: 0 0 12px; font-size: 1.25rem; line-height: 1.35; color: var(--navy-900); }
.job-photo p { margin: 0; font-size: 1rem; line-height: 1.7; color: #41556b; }
.job-photo-featured { display: grid; grid-template-columns: 1.1fr .9fr; align-items: stretch; margin: 42px 0 28px; }
.job-photo-featured img { height: 620px; }
.job-photo-featured figcaption { align-self: center; padding: clamp(24px, 5vw, 64px); }
.job-photo-featured h3 { font-size: clamp(1.75rem, 3vw, 2.75rem); }
.job-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (min-width: 1121px) { .site-nav { gap: 12px; } }
@media (max-width: 900px) { .job-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
 .on-the-job { padding: 78px 0; }
 .job-photo-featured, .job-gallery { grid-template-columns: 1fr; }
 .job-photo-featured img { height: 540px; }
 .job-image img { max-height: 75vh; }
}
