:root {
  color-scheme: light;
  --paper: #f7f4ef;
  --ink: #071a3d;
  --navy: #041736;
  --blue: #1749ec;
  --rule: #b8bdc6;
  --side: clamp(1.1rem, 2.7vw, 3rem);
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.05; }
p + p { margin-top: .85em; }
button, input, textarea, select { font: inherit; }
button, summary { cursor: pointer; }
a { color: inherit; text-underline-offset: .2em; }
:focus-visible { outline: 3px solid #3166ff; outline-offset: 4px; }
::selection { background: #c7d7ff; color: var(--ink); }
.wrap { width: min(100%, 112rem); margin-inline: auto; padding-inline: var(--side); }
.skip-link { position: absolute; left: 1rem; top: .6rem; z-index: 9; transform: translateY(-180%); padding: .65rem 1rem; color: white; background: var(--navy); }
.skip-link:focus { transform: none; }
.site-head { background: var(--paper); position: relative; z-index: 4; }
.site-head::after { content: ""; position: absolute; inset-inline: max(var(--side), calc((100% - 106rem) / 2)); bottom: 0; height: 1px; background: var(--ink); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; position: relative; min-height: clamp(4rem, 5.8vw, 6.3rem); }
.brand { display: inline-flex; align-items: center; gap: clamp(.6rem, 1.25vw, 1.35rem); font-weight: 850; line-height: 1; text-decoration: none; white-space: nowrap; }
.mark { width: clamp(2.7rem, 6vw, 6.7rem); }
.name { border-left: 1px solid currentColor; padding-left: clamp(.6rem, 1.25vw, 1.35rem); font-size: clamp(1.05rem, 2vw, 2.25rem); letter-spacing: -.05em; }
.menu { display: flex; align-items: center; gap: clamp(1rem, 3.7vw, 4rem); }
.menu a, .mobile-menu nav a { font-size: clamp(.9rem, 1.2vw, 1.15rem); font-weight: 640; text-decoration: none; }
.menu a:not(.btn):hover, .mobile-menu nav a:hover { text-decoration: underline; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; width: fit-content; min-height: 2.75rem; padding: .68em 1.12em; border: 1px solid var(--navy); border-radius: 0; background: var(--navy); color: white; font-weight: 650; text-decoration: none; line-height: 1.13; }
.btn:hover { background: #173a78; }
.mobile-menu, .hero .mobile-cta { display: none; }

.hero { display: grid; grid-template-columns: minmax(0, 36.3fr) minmax(0, 63.7fr); width: min(100%, 112rem); margin-inline: auto; }
.hero-copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.5rem, 2.9vw, 3.25rem) clamp(1.15rem, 2.1vw, 2.35rem) clamp(1.1rem, 2vw, 2.35rem) var(--side); }
.eyebrow { font-size: clamp(.68rem, .9vw, .93rem); line-height: 1.35; font-weight: 750; text-transform: uppercase; letter-spacing: .25em; }
.hero h1 { margin: .32em 0 .47em; font-size: clamp(2.25rem, 5.15vw, 5.8rem); letter-spacing: -.062em; font-weight: 780; line-height: .98; }
.hero-detail { display: flex; align-items: flex-end; justify-content: space-between; width: 100%; gap: .8rem; margin-top: auto; }
.hero-detail img { width: 63%; aspect-ratio: 1.54; object-fit: cover; }
.hero-detail a, .text-link { display: inline-block; width: fit-content; line-height: 1.35; font-size: clamp(.875rem, 1.21vw, 1.12rem); font-weight: 650; border-bottom: 1px solid currentColor; padding-bottom: .3em; text-decoration: none; }
.hero-detail a:hover, .text-link:hover { color: var(--blue); }
.hero-photo { position: relative; width: 100%; min-height: 100%; aspect-ratio: 1.64; overflow: hidden; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.selected { color: white; background: var(--navy); }
.selected .wrap { display: grid; grid-template-columns: minmax(0,.61fr) minmax(0,2fr); gap: clamp(.85rem,2vw,2.2rem); padding-block: clamp(1.1rem,2vw,2.3rem); }
.section-head { padding-top: clamp(.55rem,1.2vw,1.35rem); }
.section-head h2 { margin-bottom: .35em; font-size: clamp(1.85rem,3.8vw,4.35rem); letter-spacing: -.065em; }
.selected .text-link:hover { color: #c2d6ff; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,16rem),1fr)); gap: clamp(1rem,2vw,2.2rem); }
.selected .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.tile { display: block; min-width: 0; color: inherit; text-decoration: none; }
.tile img { width: 100%; aspect-ratio: 1.78; object-fit: cover; }
.selected .tile img { aspect-ratio: 2.15; }
.tile h3 { margin: .42em 0 .25em; font-size: clamp(1.05rem,1.65vw,1.85rem); letter-spacing: -.025em; line-height: 1.2; }
.selected .tile h3 { font-size: clamp(.91rem,1.35vw,1.32rem); font-weight: 620; }
.tile h3 span { display: inline-block; }
.tile:hover h3 { text-decoration: underline; }

.section { padding-block: clamp(2.65rem,6.2vw,7rem); }
.section + .section { border-top: 1px solid var(--rule); }
.section > h2 { font-size: clamp(2rem,4vw,4.6rem); letter-spacing: -.06em; margin-bottom: .45em; }
.eyebrow + h2 { margin-top: .27em; }
.page-title { margin: .26em 0 .45em; font-size: clamp(2.7rem,6vw,6.3rem); font-weight: 750; letter-spacing: -.06em; overflow-wrap: break-word; }
.section > p { max-width: 70ch; }
.section > :is(.btn,.notice), .section > p + .text-link { margin-top: 1.3rem; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,15rem),1fr)); gap: clamp(1.1rem,2vw,2.4rem); margin-top: 1.6rem; }
.service-grid article { border-top: 1px solid var(--ink); padding-top: 1rem; }
.service-grid :is(h2,h3) { font-size: clamp(1.35rem,2.15vw,2.35rem); letter-spacing: -.045em; }
.service-grid :is(h2,h3) a { text-decoration: none; }
.service-grid :is(h2,h3) a:hover { text-decoration: underline; }
.service-grid p { margin-top: .7em; }
.service-grid .text-link { margin-top: 1.25rem; }
.lead { font-size: clamp(1.08rem,1.5vw,1.45rem); }
.detail-photo { margin: 1.6rem 0; max-width: 65rem; }
.detail-photo img { width: auto; height: auto; max-width: 100%; max-height: 75vh; object-fit: contain; }
.detail-photo figcaption { margin: .4rem 0; color: #465571; font-size: .875rem; }
.regions { display: grid; max-width: 52rem; grid-template-columns: repeat(auto-fit,minmax(min(100%,13rem),1fr)); gap: .25rem 1.5rem; margin: 2rem 0; }
.regions a { display: block; padding: .8rem 0; border-top: 1px solid var(--ink); font-weight: 650; text-decoration: none; }
.regions a:hover { color: var(--blue); }

.form { display: grid; gap: .45rem; max-width: 40rem; margin-top: 1.5rem; }
.form label { margin-top: .7rem; font-weight: 650; }
.form input:not([type="hidden"]), .form select, .form textarea {
  display: block; width: 100%; min-width: 0; min-height: 3rem; padding: .65rem .8rem;
  border: 1px solid #909cae; border-radius: 0; background: white; color: var(--ink);
}
.form textarea { resize: vertical; min-height: 8rem; }
.form [aria-invalid="true"] { border-color: #a32a31; }
.field-error { color: #85242c; font-size: .93rem; }
.notice { max-width: 40rem; border-inline-start: 3px solid var(--blue); padding: .75rem 1rem; background: #eaf0ff; }
.notice[role="alert"] { border-color: #a32a31; background: #f8eae8; }
.form .btn { margin-top: 1rem; }
.form .field-error { color: #882127; }
.form [aria-invalid="true"] { border-color: #a8272e; }
.notice { border-inline-start: 3px solid var(--blue); padding: .8rem 1rem; background: #edf0f9; }
[hidden] { display: none !important; }
.site-foot { padding-block: 2.25rem; border-top: 1px solid var(--ink); }
.site-foot .wrap { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: .2rem 2rem; }
.site-foot strong { font-size: clamp(1.5rem,2.5vw,2.8rem); line-height: 1; letter-spacing: -.055em; }
.site-foot p { grid-column: 1; }
.site-foot nav { grid-column: 2; grid-row: 1 / span 2; line-height: 2.3; }

@media (max-width: 52rem) {
  .menu { gap: 1rem; }
  .hero-detail { gap: .5rem; }
  .hero-detail a { font-size: .8rem; }
}
@media (max-width: 44rem) {
  :root { --side: clamp(1.05rem, 5.5vw, 1.6rem); }
  .nav { min-height: 3.65rem; }
  .mark { width: 2.8rem; }
  .name { font-size: 1.02rem; }
  .menu { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu summary { list-style: none; display: grid; place-items: center; min-width: 2.75rem; min-height: 2.75rem; font-size: 0; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary::after { content: ""; width: 1.6rem; height: 1.1rem; border-block: 2px solid currentColor; background: linear-gradient(currentColor,currentColor) center / 100% 2px no-repeat; }
  .mobile-menu[open] summary::after { border: 0; height: 1.6rem; background: linear-gradient(45deg,transparent calc(50% - 1px),currentColor 0 calc(50% + 1px),transparent 0),linear-gradient(-45deg,transparent calc(50% - 1px),currentColor 0 calc(50% + 1px),transparent 0); }
  .mobile-menu nav { display: grid; position: absolute; left: 0; right: 0; top: 100%; padding: .5rem var(--side) 1rem; background: var(--paper); border-bottom: 1px solid var(--ink); }
  .mobile-menu nav a { padding: .62rem 0; }
  .hero { display: flex; flex-direction: column; }
  .hero-copy { padding: 1.2rem var(--side) 1.1rem; }
  .hero h1 { max-width: 13.5ch; margin: .29em 0 .46em; font-size: clamp(2.25rem,8.9vw,3.95rem); line-height: .99; }
  .hero .eyebrow { font-size: .68rem; }
  .hero-detail { display: none; }
  .hero .mobile-cta { display: inline-flex; }
  .hero-photo { min-height: 0; aspect-ratio: 1.77; }
  .selected .wrap { display: block; padding: 1.15rem 0 1.3rem; }
  .section-head { padding: 0 var(--side) .7rem; display: flex; gap: .75rem; justify-content: space-between; align-items: baseline; flex-wrap: wrap; }
  .section-head h2 { margin: 0; font-size: clamp(2rem,8.25vw,3rem); }
  .section-head .text-link { font-size: .83rem; }
  .selected .project-grid { display: flex; gap: .8rem; overflow-x: auto; padding-inline: var(--side); scroll-padding-inline: var(--side); scroll-snap-type: x proximity; }
  .selected .tile { flex: 0 0 88%; scroll-snap-align: start; }
  .selected .tile img { aspect-ratio: 1.85; }
  .site-foot .wrap { display: block; }
  .site-foot nav { margin-top: .8rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.filters { display:flex; align-items:end; flex-wrap:wrap; gap:1rem; margin:1.25rem 0 2rem }
.filters label { display:grid; gap:.25rem; min-width:10rem }
.filters select { max-width:100%; min-height:2.8rem; padding:.4rem .75rem; color:var(--ink); background:white; border:1px solid var(--rule) }
.filters a { align-self:center }
.hero-caption { position:absolute; bottom:.6rem; right:.65rem; background:#071a3dcf; color:white; padding:.18rem .5rem; font-size:.77rem }
