/* Shared visual system for the redesigned pages and navigation. */
:root {
  --font-family: "DM Sans", sans-serif;
  --surface: #f5f3ee;
  --ink: #172b39;
  --navy: #1f3850;
  --teal: #2c7773;
  --mint: #dce9e5;
  --sand: #d7b97b;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 120px; }
body { font-family: var(--font-family); }
.skip-link { position: fixed; top: -100px; left: 18px; z-index: 2000; padding: 12px 18px; background: #fff; color: var(--ink); }
.skip-link:focus { top: 16px; }

/* A compact navigation leaves room for the new fifth page. */
.site-header { height: 94px; }
.site-header .header-inner { max-width: 1440px; margin: 0 auto; padding: 0 clamp(24px, 5.3vw, 76px); }
.site-logo img { display: block; width: 258px; max-width: 100%; height: auto; }
.site-header #primary-nav { display: flex; align-items: center; gap: clamp(20px, 2.5vw, 36px); }
.site-header #primary-nav a { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: .01em; text-transform: none; white-space: nowrap; }
.site-header #primary-nav a[aria-current="page"] { color: var(--sand); }
.site-header.is-scrolled { background: rgba(23, 43, 57, .96); backdrop-filter: blur(12px); }
.site-home .site-header { background: transparent; backdrop-filter: none; }
.site-home .site-header.is-scrolled { background: rgba(23, 43, 57, .96); backdrop-filter: blur(12px); }
.site-portal .site-header { background: var(--navy); backdrop-filter: none; }

body.site-home, body.site-portal { background: var(--surface); color: var(--ink); }
.site-home h1, .site-home h2, .site-home h3,
.site-portal h1, .site-portal h2, .site-portal h3 {
  margin: 0; padding: 0; font-family: var(--font-family); font-weight: 600;
  letter-spacing: -.055em; line-height: 1.06; text-transform: none; position: static;
}
.site-home h1::after, .site-home h2::after, .site-home h3::after,
.site-portal h1::after, .site-portal h2::after, .site-portal h3::after { display: none; }
.site-home p, .site-portal p { margin: 0; font-family: var(--font-family); }
.site-home a, .site-portal a { font-family: var(--font-family); }
.section-inner { width: min(100% - 48px, 1288px); margin: 0 auto; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .16em; line-height: 1.4; text-transform: uppercase; color: var(--teal); }
.text-link { display: inline-flex; align-items: baseline; gap: 8px; width: fit-content; color: var(--navy); font-size: 16px; font-weight: 700; text-decoration: underline; text-underline-offset: 6px; }
.text-link:hover { color: var(--teal); }

/* Home: the logo and navigation sit directly over the video. */
.site-home #hero { min-height: 680px; height: 100svh; }
.site-home #hero .hero-overlay { background: linear-gradient(90deg, rgba(12, 30, 42, .68) 0%, rgba(12, 30, 42, .15) 66%), linear-gradient(180deg, rgba(10, 26, 36, .43) 0%, transparent 34%, rgba(10, 26, 36, .3) 100%); }
.site-home #hero .hero-text { align-items: flex-end; justify-content: flex-start; text-align: left; padding: 0 max(24px, calc((100vw - 1288px) / 2)) clamp(90px, 12vh, 150px); }
.hero-text-inner { width: min(950px, 100%); }
.hero-eyebrow { margin-bottom: 22px !important; color: var(--sand); }
.site-home #hero .hero-text h1 { max-width: none; margin: 0; color: #fff; font-size: clamp(48px, 5.4vw, 76px); line-height: 1.03; letter-spacing: -.055em; }
.scroll-cue { position: absolute; z-index: 4; bottom: 38px; right: max(24px, calc((100vw - 1288px) / 2)); display: flex; gap: 16px; align-items: center; color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; }
.scroll-cue span { font-size: 24px; }

.home-work { padding: 110px 0 118px; background: var(--surface); }
.work-intro { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(280px, .7fr); align-items: end; gap: 80px; margin-bottom: 70px; }
.work-intro .eyebrow { margin-bottom: 25px; }
.work-intro h2 { color: var(--ink); font-size: clamp(43px, 4.25vw, 62px); }
.work-intro > p { color: #455b63; font-size: 18px; line-height: 1.6; }
.feature { display: grid; overflow: hidden; }
.feature-services { grid-template-columns: minmax(0, 1.55fr) minmax(0, .9fr); min-height: 700px; background: var(--mint); }
.feature-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 36px; min-width: 0; padding: 48px 52px; }
.feature-copy h3 { margin-bottom: 20px; color: var(--ink); font-size: clamp(35px, 3.25vw, 46px); }
.feature-lead { max-width: 600px; color: #455b63; font-size: 18px; line-height: 1.55; }
.feature-media { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
picture.feature-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.service-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; padding: 0; margin: 32px 0 0; list-style: none; }
.service-list li { border-top: 1px solid #aac7c0; }
.service-list li:nth-last-child(-n+2) { border-bottom: 1px solid #aac7c0; }
.service-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.3; text-decoration: none; }
.service-list a:hover, .service-list a:focus-visible { color: var(--teal); }
.service-list span { flex: none; font-size: 17px; }
.feature-projects { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); min-height: 410px; margin-top: 18px; background: var(--navy); }
.feature-projects .feature-copy { padding: 44px 52px; }
.feature-projects .eyebrow { color: var(--sand); }
.feature-projects h3, .feature-projects .text-link { color: #fff; }
.feature-projects .feature-lead { color: var(--mint); }
.feature-projects .text-link:hover { color: var(--sand); }
.feature-projects img { object-position: center 56%; }

.home-contact { padding: 110px 0 100px; background: var(--mint); }
.home-contact h2 { margin: 28px 0 24px; color: var(--ink); font-size: clamp(42px, 4.4vw, 64px); }
.contact-details { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .7fr); gap: 110px; margin-top: 75px; padding-top: 32px; border-top: 1px solid #aac7c0; }
.contact-details .eyebrow { margin-bottom: 18px; }
.contact-details p:not(.eyebrow) { color: #29434e; font-size: 17px; line-height: 1.7; }
.contact-details a { color: inherit; text-decoration-color: #3c8c87; text-underline-offset: 3px; }
.contact-people { display: flex; flex-direction: column; gap: 17px; }
.contact-people .eyebrow { margin: 0; }
.contact-people strong { color: var(--ink); font-size: 19px; }

/* Portal: one uninterrupted hero replaces the side panel. */
.portal-hero { display: flex; align-items: center; min-height: 650px; padding: 164px 0 100px; background: var(--navy); }
.portal-hero .eyebrow { margin-bottom: 48px; color: var(--sand); }
.portal-hero h1 { max-width: 950px; color: #fff; font-size: clamp(54px, 6vw, 84px); }
.portal-lead { max-width: 700px; margin: 30px 0 48px !important; color: var(--mint); font-size: 20px; line-height: 1.55; }
.primary-link { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 58px; padding: 0 28px; background: var(--sand); color: var(--ink); font-size: 16px; font-weight: 700; text-decoration: none; }
.primary-link:hover { background: #e4c991; }
.portal-overview { padding: 110px 0 118px; background: var(--surface); }
.portal-capabilities { border-top: 1px solid #c9d3d0; }
.portal-capability { display: grid; grid-template-columns: 170px minmax(0, 390px) minmax(0, 1fr); gap: 58px; padding: 42px 0; border-bottom: 1px solid #c9d3d0; }
.portal-capability .eyebrow { padding-top: 5px; }
.portal-capability h3 { color: var(--ink); font-size: 32px; line-height: 1.17; }
.portal-capability p { color: #455b63; font-size: 17px; line-height: 1.65; }
.portal-field { display: grid; grid-template-columns: 46% 54%; min-height: 490px; background: var(--mint); }
.portal-field picture, .portal-field picture img { display: block; width: 100%; height: 100%; }
.portal-field picture img { object-fit: cover; }
.portal-field-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 24px; padding: 65px clamp(38px, 6vw, 90px); }
.portal-field-copy h2 { color: var(--ink); font-size: clamp(39px, 3.8vw, 54px); }
.portal-field-copy > p:not(.eyebrow) { max-width: 550px; color: #455b63; font-size: 18px; line-height: 1.65; }
.portal-outro { padding: 64px 0; background: var(--navy); }
.portal-outro .section-inner { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.portal-outro .eyebrow { margin-bottom: 12px; color: var(--sand); }
.portal-outro h2 { color: #fff; font-size: 36px; }
.portal-outro a { color: #fff; font-size: 19px; font-weight: 600; text-decoration: underline; text-underline-offset: 6px; }

.site-footer { padding: 38px 0; background: var(--ink); }
.site-footer .footer-content { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 30px; width: min(100% - 48px, 1288px); margin: 0 auto; }
.site-footer img { display: block; width: 200px; height: auto; }
.site-footer .footer-links { position: static; display: flex; flex-direction: row; width: auto; height: auto; gap: 20px; background: none; box-shadow: none; opacity: 1; }
.site-footer .footer-links a { margin: 0; font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--mint); opacity: 1; transform: none; }
.site-footer p { color: #a7c5c0; font-size: 12px; white-space: nowrap; }

/* Existing pages receive the same font and navigation density. */
body:not(.site-home):not(.site-portal) .header-inner { padding-left: clamp(24px, 5.3vw, 76px); padding-right: clamp(24px, 5.3vw, 76px); }
body:not(.site-home):not(.site-portal) #primary-nav a { margin-left: clamp(18px, 2.2vw, 32px); font-size: 15px; letter-spacing: .01em; text-transform: none; }
body:not(.site-home):not(.site-portal) .footer-links a { font-size: 14px; letter-spacing: 0; text-transform: none; opacity: 1; transform: none; }
body:not(.site-home):not(.site-portal) .footer-links { position: static; width: auto; height: auto; background: none; box-shadow: none; opacity: 1; flex-direction: row; }
body:not(.site-home):not(.site-portal) .breadcrumb { position: static; display: flex; flex-direction: row; width: auto; height: auto; background: none; box-shadow: none; opacity: 1; }
body:not(.site-home):not(.site-portal) .breadcrumb a { opacity: 1; transform: none; }
body:not(.site-home):not(.site-portal) .page-hero { padding: 78px 24px 94px; background: var(--navy); text-align: left; }
body:not(.site-home):not(.site-portal) .page-hero-content { width: min(100%, 1288px); margin: 0 auto; }
body:not(.site-home):not(.site-portal) .page-hero-content h1 { max-width: 1100px; margin: 0 0 23px; padding: 0; color: #fff; font-size: clamp(42px, 5vw, 70px); font-weight: 600; letter-spacing: -.05em; line-height: 1.06; text-transform: none; }
body:not(.site-home):not(.site-portal) .hero-subtitle { max-width: 700px; font-size: 18px; line-height: 1.55; }
.project-feature { padding: 92px 24px; background: var(--surface); color: var(--ink); }
.project-feature-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 65px; align-items: center; width: min(100%, 1288px); margin: 0 auto; }
.project-feature-copy h2 { margin: 22px 0 25px; padding: 0; color: var(--ink); font-size: clamp(35px, 3.7vw, 52px); letter-spacing: -.045em; line-height: 1.1; text-transform: none; }
.project-feature-copy p:not(.eyebrow) { margin: 0 0 20px; color: #455b63; font-size: 17px; line-height: 1.65; }
.project-feature-copy p a { color: var(--navy); text-underline-offset: 3px; }
.project-feature-copy .text-link { margin-top: 10px; }
.project-feature figure { margin: 0; }
.project-feature img { display: block; width: 100%; height: 480px; object-fit: cover; }
.project-feature figcaption { padding-top: 11px; color: #52636c; font-size: 13px; }

@media (max-width: 1050px) {
  .site-header #primary-nav { gap: 18px; }
  .site-header #primary-nav a { font-size: 14px; }
  .feature-services { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
  .service-list { grid-template-columns: 1fr; }
  .service-list li:nth-last-child(2) { border-bottom: 0; }
  .service-list li:last-child { border-bottom: 1px solid #aac7c0; }
  .feature-services { min-height: 880px; }
  .portal-capability { grid-template-columns: 140px minmax(0, 320px) minmax(0, 1fr); gap: 30px; }
}
@media (max-width: 768px) {
  .site-header { height: 78px; }
  .site-header .header-inner { padding: 0 24px; }
  .site-logo img { width: 210px; }
  .site-header #primary-nav, body:not(.site-home):not(.site-portal) #primary-nav { position: fixed; top: 0; right: -100%; display: flex; flex-direction: column; justify-content: center; gap: 25px; width: min(320px, 84vw); height: 100dvh; padding: 70px 25px; background: var(--navy); box-shadow: -8px 0 25px rgba(0,0,0,.2); opacity: 0; transition: right .3s ease, opacity .3s ease; }
  .site-header #primary-nav.active, body:not(.site-home):not(.site-portal) #primary-nav.active { right: 0; opacity: 1; }
  .site-header #primary-nav a, body:not(.site-home):not(.site-portal) #primary-nav a { margin: 0; color: #fff; font-size: 19px; }
  .site-home #hero { height: 100svh; min-height: 600px; }
  .site-home #hero .hero-text { padding: 0 24px 110px; }
  .site-home #hero .hero-text h1 { max-width: 100%; margin: 0; font-size: clamp(42px, 8.3vw, 60px) !important; line-height: 1.06 !important; }
  .scroll-cue { right: 24px; bottom: 25px; }
  .work-intro, .contact-details { grid-template-columns: 1fr; gap: 30px; }
  .work-intro { margin-bottom: 44px; }
  .home-work, .portal-overview { padding: 76px 0 84px; }
  .feature-services, .feature-projects { grid-template-columns: 1fr; }
  .feature-services { min-height: 0; }
  .feature-copy { padding: 36px 30px; }
  .feature-services .feature-media { height: 320px; }
  .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-list li:nth-last-child(2) { border-bottom: 1px solid #aac7c0; }
  .feature-projects .feature-copy { min-height: 320px; padding: 36px 30px; }
  .feature-projects img { height: 330px; }
  .home-contact { padding: 80px 0; }
  .contact-details { margin-top: 55px; }
  .portal-hero { min-height: 610px; padding: 160px 0 90px; }
  .portal-capability { grid-template-columns: 1fr 1.6fr; gap: 18px 35px; }
  .portal-capability p { grid-column: 2; }
  .portal-field { grid-template-columns: 1fr; }
  .portal-field picture { height: 360px; }
  .portal-field-copy { padding: 55px 24px 65px; }
  .portal-outro .section-inner { align-items: flex-start; flex-direction: column; gap: 25px; }
  .site-footer .footer-content { align-items: flex-start; flex-direction: column; gap: 22px; }
  .site-footer .footer-links { flex-wrap: wrap; justify-content: flex-start; }
  .project-feature-inner { grid-template-columns: 1fr; gap: 32px; }
  .project-feature img { height: 330px; }
}
@media (max-width: 520px) {
  .section-inner { width: min(100% - 40px, 1288px); }
  .site-logo img { width: 185px; }
  .home-work, .portal-overview { padding: 68px 0 75px; }
  .work-intro h2 { font-size: 39px; }
  .work-intro > p { font-size: 17px; }
  .feature-copy, .feature-projects .feature-copy { padding: 31px 24px; }
  .feature-copy h3 { font-size: 35px; }
  .feature-lead { font-size: 16px; }
  .service-list { grid-template-columns: 1fr; }
  .service-list li:nth-last-child(2) { border-bottom: 0; }
  .service-list a { min-height: 57px; }
  .feature-services .feature-media, .feature-projects img { height: 270px; }
  .home-contact h2 { font-size: 42px; }
  .portal-hero h1 { font-size: 50px; }
  .portal-lead { font-size: 18px; }
  .portal-capability { grid-template-columns: 1fr; gap: 14px; }
  .portal-capability p { grid-column: auto; }
  .portal-capability h3 { font-size: 30px; }
  .portal-field picture { height: 290px; }
  .portal-outro h2 { font-size: 32px; }
  .portal-outro a { font-size: 16px; overflow-wrap: anywhere; }
}

/* Second pass: tighter images and a consistent system for all inner pages. */
.feature-services { grid-template-columns: minmax(0, 1fr) minmax(300px, 390px); min-height: 0; }
.feature-services .feature-copy { min-height: 535px; }
.service-list li { display: flex; align-items: center; min-height: 64px; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.3; }
.service-aside { display: flex; flex-direction: column; justify-content: center; align-self: center; gap: 20px; padding: 34px; }
.service-aside .feature-media { display: block; width: 100%; height: auto; aspect-ratio: 1100 / 508; }
.service-aside .feature-media img { width: 100%; height: 100%; object-fit: contain; }
.service-aside p { max-width: 260px; color: #455b63; font-size: 14px; line-height: 1.5; }
.portal-field { width: min(100% - 48px, 1080px); min-height: 370px; margin: 0 auto 100px; grid-template-columns: 42% 58%; }
.portal-field picture { min-height: 370px; }
.portal-field-copy { padding: 38px clamp(34px, 5vw, 70px); }

body.site-subpage { background: var(--surface); color: var(--ink); }
.site-subpage .site-header { height: 94px; background: var(--navy); backdrop-filter: none; }
.site-subpage .site-header.is-scrolled { background: rgba(23, 43, 57, .96); backdrop-filter: blur(12px); }
.site-subpage .header-inner { max-width: 1440px; margin: 0 auto; }
.site-subpage .logo { width: 258px; max-width: 100%; height: auto; }
.site-subpage .breadcrumb-container { padding-top: 94px; background: var(--navy); }
.site-subpage .breadcrumb { width: min(100% - 48px, 1288px); max-width: none; margin: 0 auto; padding: 18px 0 0; color: var(--mint); }
.site-subpage .breadcrumb a, .site-subpage .breadcrumb .current, .site-subpage .breadcrumb-separator { color: var(--mint); font-size: 13px; text-transform: none; }
.site-subpage .subpage-hero { padding: 74px 24px 92px; background: var(--navy); }
.site-subpage .subpage-hero .eyebrow { margin-bottom: 23px; color: var(--sand); }
.site-subpage .page-hero-content h1 { max-width: 1000px; margin: 0 0 25px; padding: 0; color: #fff; font-size: clamp(48px, 5.5vw, 76px); font-weight: 600; letter-spacing: -.055em; line-height: 1.04; text-transform: none; }
.site-subpage .page-hero-content h1::after { display: none; }
.site-subpage .hero-subtitle { max-width: 700px; color: var(--mint); font-size: 19px; line-height: 1.6; }
.site-subpage .eyebrow { font-family: var(--font-family); }
.site-subpage .text-link { color: var(--navy); }
.site-subpage .site-footer { padding: 44px 24px; background: var(--ink); }
.site-subpage .site-footer .footer-content { display: flex; align-items: center; justify-content: space-between; gap: 30px; width: min(100%, 1288px); max-width: none; margin: 0 auto; }
.site-subpage .site-footer img { width: 200px; height: auto; }
.site-subpage .site-footer .footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.site-subpage .site-footer .footer-links a { margin: 0; padding: 0; color: var(--mint); font-size: 13px; }
.site-subpage .site-footer p { color: #a7c5c0; font-size: 12px; }

/* About: editorial text rhythm with generous space for the two biographies. */
.site-about .content-section { padding: 105px 24px 115px; background: var(--surface); }
.site-about .content-wrapper { width: min(100%, 1100px); max-width: none; margin: 0 auto; }
.site-about .content-wrapper > .eyebrow { margin-bottom: 18px; }
.site-about .content-wrapper h2 { max-width: 780px; margin: 0 0 28px; padding: 0; color: var(--ink); font-size: clamp(38px, 4vw, 55px); font-weight: 600; letter-spacing: -.05em; line-height: 1.08; text-align: left; text-transform: none; }
.site-about .content-wrapper h2::after { display: none; }
.site-about .content-wrapper > p:not(.eyebrow) { max-width: 830px; margin: 0 0 25px; color: #455b63; font-size: 18px; font-weight: 400; line-height: 1.75; text-align: left; }
.site-about .content-wrapper > p:first-of-type:not(.eyebrow) { font-size: 21px; }
.site-about .content-separator { width: 100%; height: 1px; margin: 60px 0 40px; background: #c9d3d0; }
.site-about .content-wrapper > .eyebrow { color: var(--teal); }
.site-about .about-team-label { margin-bottom: 26px !important; }
.site-about .about-bios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 38px 0 34px; }
.site-about .about-bio { padding: 36px; border-top: 2px solid var(--teal); background: var(--mint); }
.site-about .about-bio h3 { margin: 20px 0 20px; color: var(--ink); font-size: 30px; font-weight: 600; letter-spacing: -.045em; }
.site-about .about-bio p { margin: 0; color: #455b63; font-size: 16px; line-height: 1.7; text-align: left; }
.site-about .about-location { font-weight: 600 !important; color: var(--ink) !important; }
.site-about .cta-wrapper { margin-top: 42px; text-align: left; }

/* Services: keep all existing service text and modal content. */
.site-services .tjanster-main { background: var(--surface); }
.site-services .tjanster-intro { padding: 76px 24px 44px; background: var(--surface); }
.site-services .intro-text { width: min(100%, 1288px); max-width: none; margin: 0 auto; text-align: left; }
.site-services .intro-text p { max-width: 940px; margin: 0 0 14px; color: #455b63; font-size: 18px; font-weight: 400; line-height: 1.65; text-align: left; }
.site-services .services-section { padding: 0 24px; background: var(--surface); }
.site-services .services-grid, .site-services .services-grid-2x2 { width: min(100%, 1288px); max-width: 1288px !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 16px; padding: 0 0 92px; }
.site-services .services-grid-2x2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.site-services .service-card { display: block; min-height: 250px; padding: 0; border: 1px solid #c9d3d0; border-radius: 0; background: #fff; box-shadow: none; backdrop-filter: none; text-align: left; transform: none; }
.site-services .service-card:hover, .site-services .service-card:focus-within { transform: none; border-color: var(--teal); background: #fff; box-shadow: none; }
.site-services .service-card-header { display: block; width: 100%; height: 100%; padding: 32px; color: var(--ink); text-align: left; }
.site-services .service-card-main { align-items: flex-start; }
.site-services .service-icon-gradient { width: 45px; height: 45px; margin: 0 0 36px; border-radius: 50%; background: var(--teal) !important; box-shadow: none; }
.site-services .service-logo-gradient { width: 27px; height: 27px; }
.site-services .service-card-title { margin: 0 0 12px; color: var(--ink); font-size: 24px; font-weight: 600; letter-spacing: -.035em; line-height: 1.15; text-align: left; text-transform: none; }
.site-services .service-card-text { color: #455b63; font-size: 16px; font-weight: 400; line-height: 1.55; text-align: left; }
.site-services .services-intro { padding: 70px 24px 38px; background: var(--mint); text-align: left; }
.site-services .services-intro > div { width: min(100%, 1288px); max-width: none; }
.site-services .services-intro .eyebrow { margin: 0 0 16px; }
.site-services .services-intro h2 { max-width: none; margin: 0 0 18px; color: var(--ink); font-size: clamp(39px, 4vw, 54px); font-weight: 600; letter-spacing: -.05em; line-height: 1.1; text-align: left; text-transform: none; }
.site-services .services-intro p:not(.eyebrow) { max-width: 670px; color: #455b63; font-size: 17px; line-height: 1.6; }
.site-services #faltundersokningar + .services-section { background: var(--mint); }
.site-services .cta-section-page { padding: 0 24px 100px; background: var(--mint); }

/* Contact: simple, readable cards on the light surface. */
.site-contact .kontakt-info-section { padding: 95px 24px 110px; background: var(--surface); }
.site-contact .kontakt-info-section > .container { width: min(100%, 1288px); max-width: none; }
.site-contact .kontakt-cards-row { margin: 0 0 90px; }
.site-contact .contact-section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); align-items: end; column-gap: 60px; margin: 0 0 46px; }
.site-contact .contact-section-heading .eyebrow { grid-column: 1 / -1; margin-bottom: 18px; }
.site-contact .contact-section-heading h2 { margin: 0; padding: 0; color: var(--ink); font-size: clamp(38px, 4vw, 54px); font-weight: 600; letter-spacing: -.05em; line-height: 1.1; text-align: left; text-transform: none; }
.site-contact .contact-section-heading h2::after { display: none; }
.site-contact .contact-section-heading > p:not(.eyebrow) { color: #455b63; font-size: 17px; line-height: 1.65; }
.site-contact .kontakt-cards-grid { max-width: none; gap: 18px; }
.site-contact .contact-card { gap: 13px; padding: 30px; border: 1px solid #c9d3d0; border-radius: 0; background: #fff; backdrop-filter: none; box-shadow: none; }
.site-contact .contact-card:hover { transform: none; border-color: var(--teal); background: #fff; box-shadow: none; }
.site-contact .contact-header { border-bottom: 1px solid #c9d3d0; }
.site-contact .contact-name { color: var(--ink); font-size: 30px; font-weight: 600; letter-spacing: -.04em; text-transform: none; }
.site-contact .contact-title { color: #455b63; font-weight: 500; }
.site-contact .contact-link { color: var(--ink); padding: 7px 0; }
.site-contact .contact-link:hover { color: var(--teal); background: none; }
.site-contact .contact-photo { position: static; order: -1; width: 88px; height: 88px; max-height: none; margin: 0 0 12px; border: 0; border-radius: 50%; object-fit: cover; object-position: center top; transform: none; }
.site-contact .contact-card:hover .contact-photo { transform: none; }
.site-contact .kontakt-company-section { max-width: none; padding-top: 38px; border-top: 1px solid #c9d3d0; }
.site-contact .kontakt-company-section > .eyebrow { margin: 0 0 15px; }
.site-contact .kontakt-company-section h2 { margin: 0 0 32px; color: var(--ink); font-size: clamp(36px, 3.5vw, 48px); font-weight: 600; letter-spacing: -.05em; text-align: left; text-transform: none; }
.site-contact .kontakt-company-section .company-info-card { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 24px; padding: 35px; border: 1px solid #c9d3d0; border-radius: 0; background: var(--mint); backdrop-filter: none; }
.site-contact .info-icon, .site-contact .info-text strong { color: var(--ink); }
.site-contact .info-text span, .site-contact .info-text a { color: #455b63; font-weight: 400; }
.site-contact .linkedin-button { margin: 0; color: var(--ink); background: transparent; border: 1px solid #aac7c0; border-radius: 0; }

/* A compact callout used after project and service content. */
.site-project .projekt-main { background: var(--surface); }
.site-project .project-feature { padding-bottom: 60px; }
.site-subpage .cta-section-page { padding: 0 24px 100px; background: var(--surface); }
.site-subpage .cta-content-page { display: flex; align-items: center; justify-content: space-between; gap: 35px; width: min(100%, 1060px); max-width: none; padding: 38px 44px; border-top: 1px solid #aac7c0; background: var(--mint); text-align: left; }
.site-subpage .cta-content-page .eyebrow { margin-bottom: 12px; }
.site-subpage .cta-content-page p { color: #455b63; font-size: 16px; font-weight: 400; line-height: 1.5; text-align: left; }
.site-subpage .cta-content-page .eyebrow { color: var(--teal); font-size: 13px; font-weight: 700; line-height: 1.4; }
.site-subpage .cta-content-page h2 { max-width: 700px; margin: 0; padding: 0; color: var(--ink); font-size: clamp(28px, 3vw, 39px); font-weight: 600; letter-spacing: -.045em; line-height: 1.14; text-align: left; text-transform: none; }
.site-subpage .cta-content-page h2::after { display: none; }
.site-subpage .cta-content-page h2 + p { margin: 15px 0 0; }
.site-subpage .cta-content-page .text-link { flex: none; }
.site-services .cta-section-page { background: var(--mint); }
.site-services .cta-content-page { background: var(--surface); }

@media (max-width: 1050px) {
  .feature-services { grid-template-columns: minmax(0, 1fr) 300px; min-height: 0; }
  .feature-services .feature-copy { min-height: 0; }
  .site-services .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 768px) {
  .feature-services { grid-template-columns: 1fr; }
  .service-aside { padding: 0 30px 34px; }
  .service-aside .feature-media { max-width: 520px; }
  .site-subpage .site-header { height: 78px; }
  .site-subpage .breadcrumb-container { padding-top: 78px; }
  .site-subpage .logo { width: 210px; }
  .site-subpage .site-footer .footer-content { align-items: flex-start; flex-direction: column; }
  .site-subpage .subpage-hero { padding: 66px 24px 78px; }
  .site-about .content-section, .site-contact .kontakt-info-section { padding-top: 72px; padding-bottom: 80px; }
  .site-about .about-bios { grid-template-columns: 1fr; }
  .site-contact .contact-section-heading { grid-template-columns: 1fr; gap: 18px; }
  .site-contact .contact-section-heading .eyebrow { margin-bottom: 0; }
  .site-contact .kontakt-company-section .company-info-card { grid-template-columns: 1fr; }
  .site-services .services-grid, .site-services .services-grid-2x2 { grid-template-columns: 1fr 1fr !important; }
  .portal-field { width: min(100% - 48px, 1080px); margin-bottom: 80px; grid-template-columns: 1fr; }
  .portal-field picture { height: 310px; min-height: 0; }
  .portal-field-copy { padding: 50px 30px; }
}
@media (max-width: 580px) {
  .site-subpage .page-hero-content h1 { font-size: 46px; }
  .site-subpage .hero-subtitle { font-size: 17px; }
  .site-services .services-grid, .site-services .services-grid-2x2, .site-contact .kontakt-cards-grid { grid-template-columns: 1fr !important; }
  .site-services .services-grid { padding-bottom: 70px; }
  .site-contact .kontakt-cards-row { margin-bottom: 70px; }
  .site-subpage .cta-content-page { flex-direction: column; align-items: flex-start; padding: 32px 28px; }
  .portal-field { width: min(100% - 40px, 1080px); }
  .portal-field picture { height: 240px; }
}

/* Third pass: stronger photography and alternating editorial features. */
.feature-services { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 495px; }
.feature-services .feature-copy { min-height: 495px; padding: 38px 46px; }
.feature-services .feature-copy h3 { margin-bottom: 14px; }
.feature-services .feature-lead { font-size: 17px; }
.feature-services .service-list { column-gap: 22px; margin-top: 24px; }
.feature-services .service-list li { min-height: 52px; font-size: 14px; }
.feature-services .service-photo { display: block; width: 100%; height: 100%; min-height: 495px; }
.feature-services .service-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 47%; }
.feature-projects { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 495px; }
.feature-projects .feature-media { order: -1; min-height: 495px; object-position: center 55%; }
.feature-projects .feature-copy { min-height: 495px; padding: 42px 48px; }

/* Services: open, text-led rows instead of boxed icon cards. */
.site-services .services-grid, .site-services .services-grid-2x2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; column-gap: 54px; row-gap: 0; }
.site-services .services-section { counter-reset: service-row; }
.site-services .service-card { counter-increment: service-row; min-height: 0; border: 0; border-top: 1px solid #bdcbc7; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
.site-services .service-card:nth-last-child(-n+2) { border-bottom: 1px solid #bdcbc7; }
.site-services .service-card:hover, .site-services .service-card:focus-within { border-color: #7daea5; background: #e9f1ed; box-shadow: none; transform: none; }
.site-services .service-card-header { position: relative; display: block; width: 100%; min-height: 215px; padding: 32px 48px 32px 0; text-align: left; }
.site-services .service-card-header::before { content: counter(service-row, decimal-leading-zero) ' / TJÄNST'; display: block; margin-bottom: 27px; color: var(--teal); font-size: 12px; font-weight: 700; letter-spacing: .15em; line-height: 1.4; }
.site-services #faltundersokningar + .services-section .service-card-header::before { content: counter(service-row, decimal-leading-zero) ' / FÄLT'; }
.site-services .service-card-header::after { content: '↗'; position: absolute; top: 30px; right: 8px; color: var(--teal); font-size: 25px; line-height: 1; }
.site-services .service-card-header:focus-visible { outline: 2px solid var(--teal); outline-offset: -3px; }
.site-services .service-card-main { align-items: flex-start; }
.site-services .service-icon-gradient { display: none; }
.site-services .service-card-title { margin: 0 0 13px; color: var(--ink); font-size: clamp(24px, 2.5vw, 30px); font-weight: 600; letter-spacing: -.045em; line-height: 1.14; text-align: left; text-transform: none; }
.site-services .service-card-text { max-width: 460px; color: #455b63; font-size: 16px; line-height: 1.6; text-align: left; }

/* The service dialog follows the same colors and type as the page. */
.site-services .modal-overlay { background: rgba(16, 37, 47, .72); backdrop-filter: blur(5px); }
.site-services .modal-content { width: min(100% - 40px, 840px); max-width: 840px; max-height: min(90dvh, 900px); overflow-y: auto; border: 1px solid #bdcbc7; border-radius: 0; background: var(--surface); box-shadow: 0 24px 70px rgba(15, 34, 45, .24); animation: none; }
.site-services .modal-body { padding: clamp(35px, 6vw, 68px); }
.site-services .modal-body::before { content: 'HYDROLOGICA / TJÄNSTER'; display: block; margin-bottom: 25px; color: var(--teal); font-size: 12px; font-weight: 700; letter-spacing: .16em; line-height: 1.4; }
.site-services .modal-body h2 { max-width: 680px; margin: 0 52px 24px 0; padding: 0; color: var(--ink); font-size: clamp(34px, 4.4vw, 48px); font-weight: 600; letter-spacing: -.055em; line-height: 1.08; text-align: left; text-transform: none; }
.site-services .modal-body h2::after { display: none; }
.site-services .modal-body h3 { margin: 34px 0 15px; color: var(--ink); font-size: 24px; font-weight: 600; letter-spacing: -.035em; line-height: 1.2; text-transform: none; }
.site-services .modal-body p, .site-services .modal-body li { color: #455b63; font-size: 16px; font-weight: 400; line-height: 1.7; }
.site-services .modal-body ul { padding-left: 22px; }
.site-services .modal-body li::marker { color: var(--teal); }
.site-services .modal-close { top: 22px; right: 22px; width: 43px; height: 43px; border: 1px solid #bdcbc7; border-radius: 0; background: transparent; color: var(--ink); font-size: 28px; }
.site-services .modal-close:hover, .site-services .modal-close:focus-visible { background: var(--mint); color: var(--ink); transform: none; }
.site-services .modal-content-image { max-height: 360px; margin: 30px 0 0; border-radius: 0; background: var(--mint); object-fit: contain; }
.site-services .modal-cta-button, .site-services .modal-body .modal-cta-button { display: inline-flex; align-items: center; justify-content: center; width: auto; min-height: 54px; margin: 30px 0 0; padding: 0 26px; border: 0; border-radius: 0; background: var(--navy); box-shadow: none; color: #fff; font-size: 15px; font-weight: 700; letter-spacing: 0; text-align: left; text-transform: none; }
.site-services .modal-cta-button:hover { background: var(--teal); box-shadow: none; transform: none; }

/* Contact: narrower direct-contact area and a plain LinkedIn link. */
.site-contact .contact-section-heading, .site-contact .kontakt-cards-grid, .site-contact .kontakt-company-section { width: min(100%, 1000px); max-width: 1000px; margin-left: auto; margin-right: auto; }
.site-contact .contact-section-heading { display: block; margin-bottom: 38px; }
.site-contact .contact-section-heading .eyebrow { margin-bottom: 16px; }
.site-contact .kontakt-cards-grid { gap: 16px; }
.site-contact .contact-card { gap: 10px; padding: 26px; }
.site-contact .contact-photo { width: 72px; height: 72px; margin-bottom: 7px; }
.site-contact .contact-name { font-size: 27px; }
.site-contact .contact-header { gap: 4px; padding-bottom: 15px; }
.site-contact .contact-link { padding: 5px 0; font-size: 15px; }
.site-contact .kontakt-cards-row { margin-bottom: 70px; }
.site-contact .linkedin-button { display: inline-flex; justify-content: flex-start; width: fit-content; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--navy); font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.site-contact .linkedin-button:hover { border: 0; background: none; color: var(--teal); transform: none; }
.site-contact .linkedin-button svg { width: 20px; height: 20px; }

@media (max-width: 1050px) {
  .feature-services, .feature-projects { grid-template-columns: 1fr; min-height: 0; }
  .feature-services .feature-copy, .feature-projects .feature-copy { min-height: 0; }
  .feature-services .service-photo, .feature-services .service-photo img, .feature-projects .feature-media { width: 100%; height: 380px; min-height: 0; }
  .feature-projects .feature-media { order: -1; }
}
@media (max-width: 700px) {
  .feature-services .feature-copy, .feature-projects .feature-copy { padding: 32px 26px; }
  .feature-services .service-list { grid-template-columns: 1fr; }
  .feature-services .service-list li { min-height: 52px; }
  .feature-services .service-list li:nth-last-child(2) { border-bottom: 0; }
  .feature-services .service-photo, .feature-services .service-photo img, .feature-projects .feature-media { height: 320px; }
  .site-services .services-grid, .site-services .services-grid-2x2 { grid-template-columns: 1fr !important; }
  .site-services .service-card { border-bottom: 0 !important; }
  .site-services .service-card:last-child { border-bottom: 1px solid #bdcbc7 !important; }
  .site-services .service-card-header { min-height: 0; padding: 27px 42px 30px 0; }
  .site-services .service-card-header::before { margin-bottom: 19px; }
  .site-services .service-card-title { font-size: 27px; }
  .site-contact .kontakt-cards-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .feature-services .service-photo, .feature-services .service-photo img, .feature-projects .feature-media { height: 270px; }
  .site-services .modal-content { width: min(100% - 22px, 840px); max-height: 94dvh; }
  .site-services .modal-body { padding: 32px 24px; }
  .site-services .modal-body h2 { margin-right: 44px; }
}

/* The original field photo has enough detail to fill the same image area as the quarry. */
.site-home .work-intro { display: block; }
.feature-services .service-photo-panel { min-width: 0; min-height: 495px; overflow: hidden; }
.feature-services .service-photo,
.feature-services .service-photo img { display: block; width: 100%; height: 100%; min-height: 495px; }
.feature-services .service-photo img { object-fit: cover; object-position: 50% center; }

/* Keep the service photos free of a colored gutter in the dialogs. */
.site-services .modal-content-image { width: auto; max-width: 100%; height: auto; max-height: 360px; padding: 0; border: 0; background: transparent; object-fit: contain; }

/* A real second column keeps the rule under each title clear of the portrait. */
.site-contact .contact-card { display: grid; grid-template-columns: minmax(0, 1fr) 82px; grid-template-areas: "heading photo" "email photo" "phone photo"; align-content: start; column-gap: 22px; row-gap: 8px; min-height: 205px; padding: 25px 28px; border: 0; border-top: 2px solid #ad9170; background: #eee9df; }
.site-contact .contact-card:nth-child(2) { border-top-color: #ad9170; background: #eee9df; }
.site-contact .contact-card:hover, .site-contact .contact-card:nth-child(2):hover { border-color: #866e53; background: #e9e1d4; }
.site-contact .contact-header { grid-area: heading; min-width: 0; width: 100%; padding-bottom: 11px; border-color: rgba(94, 75, 55, .27); }
.site-contact .contact-link:first-of-type { grid-area: email; }
.site-contact .contact-link:last-of-type { grid-area: phone; }
.site-contact .contact-photo { grid-area: photo; position: static; order: initial; width: 82px; height: 105px; max-height: none; margin: 0; border: 0; border-radius: 8px; object-fit: cover; object-position: center top; mix-blend-mode: multiply; }
.site-contact .contact-link { min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 1050px) {
  .feature-services .service-photo-panel, .feature-services .service-photo, .feature-services .service-photo img { width: 100%; height: 380px; min-height: 0; }
}
@media (max-width: 700px) {
  .feature-services .service-photo-panel, .feature-services .service-photo, .feature-services .service-photo img { height: 320px; }
}
@media (max-width: 580px) {
  .site-contact .contact-card { grid-template-columns: minmax(0, 1fr) 66px; grid-template-areas: "heading photo" "email email" "phone phone"; column-gap: 16px; padding: 25px 22px; }
  .site-contact .contact-photo { width: 66px; height: 86px; }
}
@media (max-width: 520px) {
  .feature-services .service-photo-panel, .feature-services .service-photo, .feature-services .service-photo img { height: 270px; }
}
