:root {
  --navy: #092d59;
  --blue: #154d80;
  --blue-bright: #2873b6;
  --yellow: #ebca1e;
  --ink: #17324f;
  --muted: #51657a;
  --pale: #f2f6fa;
  --line: #d8e1ea;
  --white: #fff;
  font-family: "Sora", "Trebuchet MS", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 7rem; }
body { margin: 0; min-width: 320px; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
p { line-height: 1.75; }

.container { width: min(100% - 3rem, 1260px); margin-inline: auto; }
.section { padding-block: clamp(5rem, 8vw, 8.5rem); }
.skip-link { position: absolute; z-index: 99; top: -5rem; left: 1rem; padding: .75rem 1rem; background: var(--yellow); color: var(--navy); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 1rem; }

.site-header { position: relative; z-index: 20; background: #0c386b; color: white; }
.header-inner { min-height: 6.25rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; flex: none; align-items: center; width: 11.4rem; }
.brand img { width: 100%; height: auto; }
.main-nav { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 3.1rem); font-size: .875rem; font-weight: 600; }
.main-nav a { color: white; text-decoration: none; transition: color .2s; }
.main-nav a:hover { color: var(--yellow); }
.main-nav .nav-contact { border: 1px solid rgba(255,255,255,.65); border-radius: .25rem; padding: .75rem 1.2rem; }
.main-nav .nav-contact:hover { border-color: var(--yellow); }

.hero { position: relative; overflow: hidden; color: white; background: linear-gradient(117deg, #0c3769 1%, #18578e 62%, #2873b6 100%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .15; pointer-events: none; background: repeating-linear-gradient(90deg, transparent 0 94px, rgba(255,255,255,.2) 95px 96px), repeating-linear-gradient(0deg, transparent 0 94px, rgba(255,255,255,.2) 95px 96px); mask-image: linear-gradient(90deg, transparent, black 70%); }
.hero-grid { position: relative; z-index: 1; min-height: 39rem; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(2rem, 5vw, 6rem); padding-block: 3rem 5rem; }
.hero-copy { padding-block: 2.5rem; }
.eyebrow, .section-kicker { color: var(--blue); font-size: .875rem; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; line-height: 1.5; }
.eyebrow { display: flex; gap: .8rem; align-items: center; margin-bottom: 1.9rem; color: #dcecfb; }
.eyebrow-line { width: 2.8rem; height: 3px; background: var(--yellow); }
.hero h1 { max-width: 11ch; margin-bottom: 1.7rem; font-size: clamp(3.2rem, 5.3vw, 5.8rem); line-height: 1.04; font-weight: 800; letter-spacing: -.052em; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero-intro { max-width: 39rem; margin-bottom: 2rem; font-size: clamp(1rem, 1.45vw, 1.15rem); line-height: 1.7; color: #e7f0f8; }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.button { min-height: 3.4rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: .2rem; padding: .8rem 1.25rem; font: inherit; font-size: .9rem; font-weight: 700; line-height: 1.3; text-align: center; text-decoration: none; transition: transform .2s, background-color .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button-yellow { background: var(--yellow); color: #132b45; }
.button-yellow:hover { background: #f6dc48; }
.button-outline { border-color: rgba(255,255,255,.62); color: white; }
.button-outline:hover { border-color: white; background: rgba(255,255,255,.08); }
.hero-photo { position: relative; margin: 0; aspect-ratio: 1.02; min-height: 25rem; border: 9px solid rgba(255,255,255,.15); box-shadow: 0 26px 55px rgba(4,27,55,.26); }
.hero-photo::before { content: ""; position: absolute; z-index: -1; top: 1.25rem; right: -1.35rem; bottom: -1.35rem; left: 1.25rem; border: 3px solid var(--yellow); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 49% 50%; }
.hero-photo figcaption { position: absolute; inset: auto 0 0; padding: 2.9rem 1.5rem 1.25rem; color: white; font-size: .82rem; line-height: 1.5; background: linear-gradient(transparent, rgba(5,25,48,.83)); }
.hero-photo figcaption span { display: block; margin-bottom: .3rem; color: var(--yellow); font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hero-bottom { position: relative; z-index: 2; display: flex; justify-content: center; gap: clamp(1.5rem, 7vw, 7.5rem); border-top: 1px solid rgba(255,255,255,.18); padding: 1.1rem; color: #dceaf5; font-size: .77rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.hero-bottom span:not(:last-child)::after { content: ""; position: absolute; width: 3px; height: 3px; margin: .5rem 0 0 clamp(.75rem, 3.5vw, 3.75rem); border-radius: 50%; background: var(--yellow); }

.intro-section { background: white; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 8vw, 9rem); align-items: start; }
.section-kicker { margin-bottom: 1.15rem; }
.intro-grid h2, .section-heading h2, .team-grid h2, .contact-section h2 { margin-bottom: 0; font-size: clamp(2.15rem, 3.6vw, 3.9rem); line-height: 1.16; letter-spacing: -.044em; font-weight: 800; }
.intro-grid h2 { max-width: 15ch; }
.intro-body { padding-top: 2.2rem; color: var(--muted); font-size: 1rem; }
.intro-body p { margin-bottom: 1.3rem; }
.location-note { display: flex; gap: 1rem; align-items: center; margin-top: 2.3rem; border-top: 1px solid var(--line); padding-top: 1.4rem; color: var(--ink); font-weight: 700; }
.location-mark { width: .85rem; height: .85rem; border: 3px solid var(--yellow); border-radius: 50%; flex: none; }
.location-note small { display: block; margin-top: .15rem; color: var(--muted); font-size: .85rem; font-weight: 400; }

.services-section { background: var(--pale); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 3rem; margin-bottom: 3rem; }
.section-heading h2 { max-width: 15ch; }
.section-heading > p { max-width: 23rem; margin: 0; color: var(--muted); }
.carousel-controls { display: flex; align-items: center; justify-content: flex-end; gap: 1.25rem; margin: -1rem 0 1.15rem; }
.carousel-status { margin: 0; color: var(--muted); font-size: .82rem; }
.carousel-buttons { display: flex; gap: .45rem; }
.carousel-button { min-height: 2.6rem; border: 1px solid #b8cadb; border-radius: .2rem; padding: .5rem .9rem; color: var(--navy); background: white; font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; }
.carousel-button:hover:not(:disabled) { border-color: var(--blue); background: #e5eff7; }
.carousel-button:disabled { opacity: .45; cursor: default; }
.carousel-button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.services-grid { display: flex; gap: 1.15rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-inline: contain; }
.services-grid::-webkit-scrollbar { display: none; }
.service-card { flex: 0 0 calc((100% - 2.3rem) / 3); min-height: 22rem; scroll-snap-align: start; border: 1px solid #dae3ec; border-top: 4px solid var(--yellow); padding: 1.75rem; background: white; box-shadow: 0 10px 28px rgba(14,48,82,.035); }
.service-number { display: block; margin-bottom: 1.5rem; color: var(--blue-bright); font-size: .8rem; font-weight: 800; letter-spacing: .12em; }
.service-card h3 { max-width: 18ch; margin-bottom: .9rem; color: var(--navy); font-size: 1.3rem; line-height: 1.28; letter-spacing: -.02em; }
.service-card p { margin-bottom: 1.2rem; color: var(--muted); font-size: .9rem; line-height: 1.65; }
.service-card ul { margin: 0; padding: 1.2rem 0 0; border-top: 1px solid var(--line); list-style: none; }
.service-card li { position: relative; padding-left: 1rem; margin: .55rem 0; font-size: .84rem; line-height: 1.5; }
.service-card li::before { content: ""; position: absolute; top: .5rem; left: 0; width: .38rem; height: .38rem; background: var(--yellow); }

.projects-section { background: white; }
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 21.5rem; gap: 1rem; }
.projects-grid[hidden] { display: none; }
.projects-grid.is-active { animation: project-in .55s ease both; }
.projects-grid.is-leaving { animation: project-out .3s ease both; }
@keyframes project-in { from { opacity: 0; transform: translateY(.7rem); } to { opacity: 1; transform: translateY(0); } }
@keyframes project-out { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-.5rem); } }
.project-card { position: relative; overflow: hidden; background: var(--navy); color: white; }
.project-featured { grid-column: span 2; }
.project-card::after { content: ""; position: absolute; inset: 20% 0 0; pointer-events: none; background: linear-gradient(transparent 20%, rgba(6,26,49,.87)); }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.project-card:hover img { transform: scale(1.045); }
.project-featured img { object-position: center 55%; }
.projects-grid[data-project-set="1"] .project-featured img { object-position: center 65%; }
.project-card:last-child img { object-position: center 35%; }
.project-copy { position: absolute; z-index: 1; inset: auto 1.5rem 1.4rem; }
.project-type { display: inline-block; margin-bottom: .55rem; border-left: 3px solid var(--yellow); padding-left: .7rem; color: #fff3aa; font-size: .75rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.project-card h3 { margin-bottom: .25rem; font-size: clamp(1.25rem, 2vw, 1.8rem); line-height: 1.25; }
.project-card p { max-width: 31rem; margin: 0; color: #f2f7fc; font-size: .85rem; line-height: 1.45; }
.project-rotation-controls { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-top: 1.7rem; }
.project-rotation-status { min-width: 8.5rem; margin: 0; color: var(--muted); font-size: .82rem; }
.project-dots { display: flex; align-items: center; gap: .15rem; }
.project-dot { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.project-dot::after { content: ""; width: .62rem; height: .62rem; border-radius: 50%; background: #a7bacb; transition: width .2s, border-radius .2s, background-color .2s; }
.project-dot.is-active::after { width: 1.5rem; border-radius: .4rem; background: var(--blue); }
.project-dot:hover::after { background: var(--blue-bright); }
.project-dot:focus-visible, .rotation-toggle:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.rotation-toggle { min-height: 2.5rem; border: 1px solid var(--line); border-radius: .2rem; padding: .45rem .8rem; color: var(--blue); background: white; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.rotation-toggle:hover { border-color: var(--blue); background: var(--pale); }

.team-section { background: #edf3f8; }
.team-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 7vw, 8rem); }
.team-grid h2 { max-width: 13ch; }
.team-intro { max-width: 28rem; margin-top: 1.5rem; color: var(--muted); }
.team-list { border-top: 2px solid var(--navy); }
.team-list > div { display: flex; gap: 1.5rem; align-items: baseline; border-bottom: 1px solid #cbd8e3; padding: 1.15rem .1rem; }
.team-list > div > span { color: var(--blue-bright); font-size: .75rem; font-weight: 800; }
.team-list p { margin: 0; line-height: 1.5; }
.team-list strong { display: block; font-size: 1rem; }
.team-list small { display: block; margin-top: .25rem; color: var(--muted); font-size: .85rem; }

.contact-section { position: relative; overflow: hidden; color: white; background: linear-gradient(120deg, #0b3262, #1d5b91); }
.contact-section::after { content: "M"; position: absolute; right: -3rem; bottom: -13rem; color: rgba(255,255,255,.035); font-size: 45rem; font-weight: 800; line-height: 1; pointer-events: none; }
.contact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 8vw, 8rem); align-items: center; }
.section-kicker-light { color: var(--yellow); }
.contact-section h2 { max-width: 12ch; }
.contact-section h2 + p { max-width: 33rem; margin-top: 1.5rem; color: #e2edf7; }
.contact-actions { margin-top: 2rem; }
.contact-card { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; margin: 0; border: 1px solid rgba(255,255,255,.22); padding: clamp(1.5rem, 3vw, 2.5rem); background: rgba(4,34,72,.34); font-style: normal; backdrop-filter: blur(4px); }
.contact-card span { display: block; margin-bottom: .55rem; color: var(--yellow); font-size: .75rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.contact-card p { margin: 0; color: #f3f8fc; font-size: .83rem; line-height: 1.8; overflow-wrap: anywhere; }
.contact-card a { text-decoration-color: rgba(255,255,255,.5); text-underline-offset: 3px; }
.contact-card a:hover { color: var(--yellow); }

.site-footer { background: #082749; color: #c4d5e6; }
.footer-inner { min-height: 8.5rem; display: flex; align-items: center; gap: 3rem; padding-block: 2rem; }
.footer-inner img { width: 9rem; height: auto; flex: none; }
.footer-inner p { margin: 0; font-size: .78rem; }
.back-to-top { position: fixed; z-index: 40; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border: 2px solid white; border-radius: 50%; color: var(--navy); background: var(--yellow); box-shadow: 0 8px 25px rgba(6,34,62,.28); opacity: 0; pointer-events: none; transform: translateY(.75rem); transition: opacity .25s, transform .25s, background-color .25s; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: #f6dc48; }
.back-to-top svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.3; }

@media (max-width: 1050px) {
  .hero-grid { gap: 2rem; }
  .hero h1 { font-size: clamp(3rem, 5vw, 4.7rem); }
  .service-card { flex-basis: calc((100% - 1.15rem) / 2); }
  .service-card { min-height: 20rem; }
  .contact-grid { gap: 2rem; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 1rem; }
  .container { width: min(100% - 2rem, 1260px); }
  .header-inner { flex-direction: column; align-items: flex-start; gap: .7rem; padding-block: 1rem; }
  .brand { width: 9.5rem; }
  .main-nav { width: 100%; flex-wrap: wrap; gap: .6rem 1.2rem; padding-bottom: .3rem; font-size: .78rem; }
  .main-nav .nav-contact { border: 0; padding: 0; }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; gap: 1.4rem; padding-block: 2rem 3.5rem; }
  .hero-copy { padding-block: 1rem; }
  .hero h1 { max-width: 13ch; font-size: clamp(2.8rem, 10vw, 4.4rem); }
  .hero-photo { width: min(100% - .8rem, 36rem); min-height: 17rem; aspect-ratio: 1.5; }
  .hero-photo::before { right: -1rem; bottom: -1rem; }
  .hero-bottom { gap: 1.1rem; font-size: .66rem; letter-spacing: .08em; }
  .hero-bottom span:not(:last-child)::after { display: none; }
  .intro-grid, .team-grid, .contact-grid { grid-template-columns: 1fr; }
  .intro-body { padding-top: 0; }
  .section-heading { align-items: start; flex-direction: column; gap: 1rem; }
  .section-heading > p { max-width: 35rem; }
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 19rem; }
  .project-featured { grid-column: span 2; }
  .contact-card { max-width: 38rem; }
  .footer-inner { flex-wrap: wrap; gap: 1rem 2rem; }
  .footer-inner a { margin-left: 0; }
}

@media (max-width: 540px) {
  .section { padding-block: 4.2rem; }
  .hero h1 { font-size: clamp(2.45rem, 10vw, 3.5rem); }
  .hero-intro { font-size: 1rem; }
  .hero-actions, .contact-actions { flex-direction: column; align-items: stretch; }
  .hero-photo { aspect-ratio: 1.2; }
  .carousel-controls { justify-content: space-between; gap: .5rem; }
  .carousel-status { max-width: 9rem; line-height: 1.35; }
  .service-card { flex-basis: 100%; }
  .projects-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .projects-grid { grid-auto-rows: 20rem; }
  .project-featured { grid-column: auto; }
  .project-rotation-controls { flex-wrap: wrap; gap: .25rem .7rem; }
  .project-rotation-status { min-width: 0; }
  .contact-card { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Updated presentation for the complete portfolio. */
.hero { isolation: isolate; background: #0a315e url('./assets/hero-poster.jpg') center / cover no-repeat; }
.hero-video { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .84; pointer-events: none; }
.hero.is-still .hero-video { opacity: 0; }
.hero-shade { position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgba(5,32,65,.98) 0%, rgba(7,43,83,.88) 39%, rgba(9,48,88,.48) 72%, rgba(7,36,70,.55) 100%), linear-gradient(0deg, rgba(4,27,55,.7), transparent 45%); pointer-events: none; }
.hero::before { z-index: 2; opacity: .08; }
.hero-grid { z-index: 3; display: flex; min-height: 41rem; align-items: center; padding-block: 5rem 6rem; }
.hero-copy { max-width: 51rem; }
.hero h1 { max-width: 13ch; }
.hero-bottom { z-index: 3; background: rgba(6,37,72,.55); }

.location-note { position: relative; display: flex; justify-content: space-between; align-items: center; min-height: 13rem; margin-top: 2.3rem; border: 1px solid var(--line); padding: 1.5rem 1.5rem 1.5rem 1.7rem; background: linear-gradient(115deg, #f5f9fc, #e7f0f8); overflow: hidden; }
.location-copy { position: relative; z-index: 1; display: flex; align-items: center; gap: .8rem; max-width: 16rem; }
.location-note small { line-height: 1.5; }
.region-map { width: 11.5rem; height: 11rem; object-fit: contain; flex: none; }

.services-viewport { overflow: hidden; outline-offset: .35rem; touch-action: pan-y; }
.services-viewport:focus-visible { outline: 3px solid var(--yellow); }
.services-track { display: flex; gap: 1.15rem; width: 100%; transition: transform .55s cubic-bezier(.22,.68,0,1); will-change: transform; }
.service-card { position: relative; isolation: isolate; flex: 0 0 calc((100% - 1.15rem) / 2); min-height: 39rem; align-self: stretch; overflow: hidden; border: 1px solid #22517d; border-top: 4px solid var(--yellow); padding: 0; color: white; background: #0d3768; box-shadow: 0 16px 35px rgba(14,48,82,.11); }
.service-card::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(110deg, rgba(5,32,66,.88), rgba(7,43,80,.78)), linear-gradient(0deg, rgba(4,30,60,.95), transparent 70%); }
.service-backdrop { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.service-card-content { position: relative; z-index: 2; padding: clamp(1.5rem, 2.7vw, 2.4rem); }
.service-number { margin-bottom: 1.35rem; color: var(--yellow); }
.service-card h3 { max-width: 20ch; margin-bottom: .8rem; color: white; font-size: clamp(1.45rem, 2vw, 1.85rem); }
.service-card p { max-width: 34rem; margin-bottom: 1.3rem; color: #dcecf8; font-size: .9rem; }
.service-card ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: .2rem 1rem; border-color: rgba(255,255,255,.24); }
.service-card li { margin: .3rem 0; color: #f4f8fc; font-size: .78rem; line-height: 1.45; }
.service-card li::before { top: .42rem; }
.carousel-button:disabled { opacity: 1; cursor: pointer; }

.projects-grid[data-project-set="5"] .project-card:last-child { grid-column: span 2; }
.project-rotation-controls { flex-wrap: wrap; }
.project-rotation-status { min-width: 14rem; }

.specialists { margin-top: clamp(3rem, 6vw, 5.5rem); border-top: 1px solid #cbd8e3; padding-top: clamp(2.5rem, 4vw, 4rem); }
.specialists-heading { display: flex; align-items: end; gap: 2rem; margin-bottom: 1.75rem; }
.specialists-heading .section-kicker { min-width: 12rem; margin-bottom: .35rem; }
.specialists-heading h3 { flex: 1; margin: 0; font-size: clamp(1.7rem, 2.3vw, 2.55rem); color: var(--navy); letter-spacing: -.035em; }
.specialists-heading > p:last-child { max-width: 18rem; margin: 0; color: var(--muted); font-size: .88rem; }
.specialists-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.specialists-grid article { min-height: 10.5rem; border: 1px solid #d2dfea; border-top: 3px solid var(--yellow); padding: 1.15rem 1.25rem; background: white; }
.specialists-grid article > span { color: var(--blue-bright); font-size: .71rem; font-weight: 800; letter-spacing: .12em; }
.specialists-grid h4 { margin: .65rem 0 .4rem; color: var(--navy); font-size: .98rem; }
.specialists-grid p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.55; }

.contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: clamp(2rem, 6vw, 6rem); }
.contact-card { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem; }
.contact-address { grid-column: 1 / -1; }
.contact-address > div:first-child { margin-bottom: 1.2rem; }
.contact-map { position: relative; height: 13.5rem; overflow: hidden; background: repeating-linear-gradient(45deg, #d8e6f1 0 18px, #e8f1f8 18px 36px); }
.contact-map iframe { display: block; width: 100%; height: 100%; border: 0; filter: saturate(.75); pointer-events: none; }
.contact-map a { position: absolute; inset: 0; display: flex; align-items: end; justify-content: start; padding: 1rem; color: white; text-decoration: none; background: linear-gradient(transparent 45%, rgba(5,31,60,.87)); }
.contact-map a span { margin: 0; color: white; font-size: .78rem; letter-spacing: 0; text-transform: none; }
.contact-map a:hover span { color: var(--yellow); }
.contact-detail { min-width: 0; }

@media (max-width: 1000px) {
  .service-card { flex-basis: calc((100% - 1.15rem) / 2); }
  .service-card ul { grid-template-columns: 1fr; }
  .specialists-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hero-grid { min-height: 34rem; padding-block: 3.5rem 4.5rem; }
  .hero-video { object-position: 62% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(5,32,65,.96), rgba(7,43,83,.75)), linear-gradient(0deg, rgba(4,27,55,.65), transparent 50%); }
  .service-card { flex-basis: 100%; min-height: 0; }
  .service-card ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specialists-heading { display: block; }
  .specialists-heading h3 { margin-bottom: .5rem; }
  .specialists-heading > p:last-child { max-width: 32rem; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .hero-grid { min-height: 33rem; }
  .location-note { min-height: 11rem; padding: 1rem; }
  .location-copy { max-width: 11rem; }
  .region-map { width: 8.6rem; height: 9rem; }
  .service-card ul { grid-template-columns: 1fr; }
  .service-card-content { padding: 1.4rem; }
  .projects-grid[data-project-set="5"] .project-card:last-child { grid-column: auto; }
  .specialists-grid { grid-template-columns: 1fr; }
  .specialists-grid article { min-height: 0; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-address { grid-column: auto; }
}

/* Dedicated service pages and the homepage subdivision callout. */
.main-nav .nav-service { padding: .75rem 1rem; border: 1px solid var(--yellow); border-radius: .2rem; color: var(--yellow); }
.main-nav .nav-service:hover, .main-nav .nav-service[aria-current="page"] { background: var(--yellow); color: var(--navy); }
.subdivision-feature { padding-block: 1rem 0; background: linear-gradient(var(--pale) 50%, white 50%); }
.subdivision-feature-card { display: grid; grid-template-columns: 1.2fr .8fr; overflow: hidden; border-top: 4px solid var(--yellow); color: white; background: #0b3262; }
.subdivision-feature-copy { padding: clamp(2rem, 4vw, 4rem); }
.subdivision-feature-copy h2 { max-width: 19ch; color: white; font-size: clamp(2rem, 3.5vw, 3.5rem); }
.subdivision-feature-copy > p:not(.section-kicker) { max-width: 37rem; margin-block: 1.25rem 1.75rem; color: #dfebf7; }
.subdivision-feature-image { position: relative; min-height: 22rem; }
.subdivision-feature-image img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 60% center; }
.subdivision-feature-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,30,56,.88), transparent 70%); }
.subdivision-feature-image span { position: absolute; z-index: 1; bottom: 2rem; left: 2rem; right: 2rem; font-size: 1.15rem; font-weight: 700; }
.main-nav { gap: clamp(.75rem, 1.7vw, 1.8rem); }
.georeferencing-feature { padding-block: 0 5rem; background: linear-gradient(white 50%, #edf3f8 50%); }
.georeferencing-feature .subdivision-feature-card { grid-template-columns: .8fr 1.2fr; }
.georeferencing-feature .subdivision-feature-image { order: -1; }
.georeferencing-feature .subdivision-feature-image img { object-position: 50% 48%; }
@media (max-width: 1100px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: 1rem; padding-block: 1rem; }
  .main-nav { width: 100%; flex-wrap: wrap; gap: .8rem 1rem; }
}
@media (max-width: 760px) {
  .subdivision-feature-card { grid-template-columns: 1fr; }
  .subdivision-feature-image { min-height: 15rem; }
  .main-nav { font-size: .875rem; gap: .8rem 1rem; }
  .main-nav .nav-service { padding: .45rem .7rem; }
  .georeferencing-feature { padding-bottom: 2rem; }
  .georeferencing-feature .subdivision-feature-card { grid-template-columns: 1fr; }
  .georeferencing-feature .subdivision-feature-image { order: 0; min-height: 19rem; }
}
