:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #101e33;
  --muted: #465670;
  --line: #d7e0ec;
  --accent: #eaf3ff;
  font: 100%/1.55 "Inter", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; }
p, h1, h2, h3, figure { margin: 0; }
h1, h2 { font-weight: 550; line-height: .98; letter-spacing: -.065em; }
h2 { font-size: clamp(2.2rem, 4.5vw, 4rem); }
.wrap { width: min(1200px, calc(100% - clamp(2rem, 10vw, 10rem))); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -5rem; background: white; padding: .75rem; }
.skip:focus { top: 1rem; z-index: 2; }
a:focus-visible, summary:focus-visible { outline: 2px solid #1554b9; outline-offset: 4px; }
.header { min-height: 75px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; border-bottom: 1px solid var(--line); }
.brand, nav { display: flex; align-items: center; }
.brand { width: fit-content; gap: .6rem; text-decoration: none; }
.brand-mark { display: block; flex: 0 0 auto; }
.brand-name { font-size: .875rem; font-weight: 650; }
nav { gap: clamp(1rem, 3vw, 2.6rem); }
nav a { text-decoration: none; font-size: .9rem; }
nav a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: .25em; }
.button { min-height: 44px; padding: .65rem 1.2rem; display: inline-flex; align-items: center; width: fit-content; border-radius: 100px; background: #1554b9; color: white; text-decoration: none; font-size: .9rem; font-weight: 650; }
.button:hover { background: #103e89; }
.compact { justify-self: end; }
.hero-copy { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; align-items: end; padding: clamp(2.75rem, 6vw, 5rem) 0 clamp(1.75rem, 4vw, 3.25rem); }
.eyebrow { font-size: .875rem; color: var(--muted); margin-bottom: .8rem; }
h1 { font-size: clamp(3rem, 8.2vw, 8rem); }
.hero-intro { max-width: 31ch; justify-self: end; padding-bottom: .3rem; }
.hero-intro p { font-size: clamp(1.05rem, 1.75vw, 1.3rem); line-height: 1.4; color: var(--muted); }
.text-link { color: #1554b9; display: inline-block; margin-top: 1rem; text-underline-offset: .3em; font-weight: 650; }
.hero-photo { position: relative; overflow: hidden; border-radius: .6rem; background: #dce6f3; }
.hero-photo img { display: block; width: 100%; height: clamp(205px, 30vw, 400px); object-fit: cover; }
figcaption { position: absolute; right: .75rem; bottom: .75rem; padding: .15rem .5rem; font-size: .8rem; border-radius: .2rem; background: var(--paper); }
.discipline-services, .about, .contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.25rem, 5vw, 6rem); padding-block: clamp(2.6rem, 6vw, 5.6rem); }
.section-intro { color: var(--muted); margin-top: .8rem; }
.service-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; min-height: 3.4rem; padding: .7rem 0; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; font-size: clamp(1rem, 2vw, 1.25rem); font-weight: 650; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; width: 1.25rem; height: 1.25rem; flex: 0 0 1.25rem; border-radius: 50%; background: linear-gradient(var(--ink), var(--ink)) center / 8px 1px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1px 8px no-repeat, #e8f0fb; }
[open] summary::after { background: linear-gradient(var(--ink), var(--ink)) center / 8px 1px no-repeat, var(--accent); }
summary:hover { color: #1554b9; }
details p { margin-bottom: 1rem; max-width: 58ch; color: var(--muted); }
.about { border-top: 1px solid var(--line); }
.about p { max-width: 53ch; font-size: clamp(1.05rem, 1.85vw, 1.35rem); color: var(--muted); }
.contact { background: var(--accent); }
.contact-grid { align-items: start; }
.contact h2 { margin-bottom: 1.2rem; }
address { display: grid; justify-items: start; gap: .35rem; font-style: normal; }
address p { margin-top: .5rem; }
address a { text-underline-offset: .2em; }
.footer { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.2rem; color: var(--muted); font-size: .875rem; }
@media (max-width: 620px) {
  .header { gap: .65rem; min-height: 64px; grid-template-columns: 1fr auto; }
  .header nav { grid-row: 2; grid-column: 1 / -1; padding-bottom: .65rem; }
  .hero-copy, .discipline-services, .about, .contact-grid { grid-template-columns: 1fr; }
  .hero-copy { gap: 1rem; }
  .hero-intro { justify-self: start; }
}

/* Engineering navigation */
.services-menu { position: relative; border: 0; }
.services-menu > summary { font-size: .9rem; font-weight: 500; gap: .5rem; }
.services-menu > summary::after { width: .55rem; height: .55rem; flex: 0 0 .55rem; border-radius: 0; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; background: none; transform: translateY(-2px) rotate(45deg); }
.services-menu[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.menu-panel { position: absolute; z-index: 3; top: 100%; left: 0; width: min(24rem, 90vw); max-height: min(66vh, 34rem); overflow: auto; padding: .35rem 1rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--paper); box-shadow: 0 12px 32px #101e331a; }
.discipline-menu:last-child { border-bottom: 0; }
.discipline-menu > summary { font-size: .95rem; }
.discipline-menu ul { margin: 0 0 .75rem; padding: 0; list-style: none; }
.discipline-menu li a { display: block; padding: .35rem .5rem; border-radius: .25rem; }
.discipline-menu li a:hover, .discipline-menu li a:focus-visible { background: var(--accent); }
.discipline-menu li:first-child a { color: #1554b9; font-weight: 650; }
.discipline-menu .scope-note { font-size: .875rem; margin: 0 0 .25rem .5rem; }

/* Homepage and shared discipline layout */
.hero h1 { font-size: clamp(2.8rem, 5.6vw, 5.4rem); }
.hero h1 span { display: block; }
.hero-intro { max-width: 53ch; }
.hero-intro p { font-size: 1rem; line-height: 1.5; }
.hero-intro .hero-subtitle { color: var(--ink); font-size: clamp(1rem, 1.55vw, 1.2rem); font-weight: 650; margin-bottom: .65rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.button-outline { background: transparent; border: 1px solid #1554b9; color: #1554b9; }
.button-outline:hover { background: var(--accent); }
.services { padding-block: clamp(2.6rem, 6vw, 5.6rem); }
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 1rem; list-style: none; margin: 1.5rem 0 0; padding: 0; }
.service-card { display: flex; height: 100%; flex-direction: column; gap: .6rem; padding: clamp(1rem, 1.8vw, 1.5rem); border: 1px solid var(--line); border-radius: .55rem; text-decoration: none; }
.service-card:hover, .service-card:focus-visible { border-color: #1554b9; background: var(--accent); }
.service-card h3, .service-item h3 { font-size: 1.175rem; line-height: 1.25; }
.service-card p, .discipline-hero p, .service-item p { color: var(--muted); }
.service-card span { margin-top: auto; padding-top: .45rem; font-size: .875rem; font-weight: 650; color: #1554b9; }
.about p + p { margin-top: .8rem; }
.discipline-hero { padding-block: clamp(2.5rem, 6vw, 5rem); border-bottom: 1px solid var(--line); }
.discipline-hero .text-link { margin: 0 0 1rem; }
.discipline-hero h1 { font-size: clamp(2.8rem, 7vw, 6rem); }
.discipline-hero p { max-width: 60ch; margin-top: 1rem; font-size: 1.15rem; }
.service-item { padding-block: 1rem; border-bottom: 1px solid var(--line); scroll-margin-top: 1rem; }
.service-item p { margin-top: .35rem; }
.service-item:target { border-bottom-color: #1554b9; }
.service-item:focus-visible { outline: 2px solid #1554b9; outline-offset: 4px; }
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .header nav { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .header nav > a { display: flex; align-items: center; min-height: 3.4rem; }
  .menu-panel { position: static; width: 100%; max-height: none; box-shadow: none; }
  .hero-intro { justify-self: start; }
}
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .discipline-hero h1 { font-size: 2.5rem; }
  .service-card h3 { overflow-wrap: anywhere; }
}

.discipline-services .service-cta { margin-top: 1.25rem; }
