:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #132a40;
  --muted: #435569;
  --navy: #003769;
  --accent: #924300;
  --line: #d5e0eb;
  font-family: "Segoe UI", system-ui, sans-serif;
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 1rem; line-height: 1.65; }
.wrap { width: min(1320px, calc(100% - 96px)); margin-inline: auto; }
a { color: inherit; text-underline-offset: .24em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #ca6813; outline-offset: 5px; }
.skip { position: absolute; z-index: 2; transform: translateY(-150%); padding: 12px; background: white; }
.skip:focus { transform: none; }
header, footer { background: #00294e; color: #fff; }
header { border-bottom: 1px solid #ffffff33; }
nav, .nav-links, .nav-actions, .footer-inner { display: flex; gap: clamp(16px, 3vw, 44px); align-items: center; }
nav, .footer-inner { justify-content: space-between; }
nav { min-height: 88px; }
nav a { font-weight: 600; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.brand img { display: block; width: clamp(134px, 16vw, 202px); height: auto; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 49px; padding: 9px 21px; font-weight: 650; text-decoration: none; border: 1px solid transparent; }
.button-dark, .hero .button { background: var(--navy); color: #fff; }
.button-light, .nav-actions .button { background: #fa961a; color: var(--ink); }
.button:hover { filter: brightness(.92); }
.hero { border-bottom: 1px solid var(--line); }
.hero-layout { display: grid; grid-template-columns: .94fr 1.06fr; align-items: stretch; }
.hero-content { align-self: center; padding: clamp(42px, 7vw, 106px) clamp(16px, 4vw, 64px) clamp(42px, 7vw, 106px) 0; }
.hero-directory { align-self: center; width: 100%; max-width: 520px; justify-self: end; background: #003769; color: white; padding: clamp(22px, 4vw, 46px); }
.hero-directory p { color: #ffc774; margin: 0 0 8px; font-weight: 700; }
.hero-directory a { display: grid; gap: 1px; padding: 14px 0; border-top: 1px solid #ffffff54; text-decoration: none; }
.hero-directory strong { font-size: clamp(1.15rem, 2.2vw, 1.55rem); }
.hero-directory span { color: #e1edf8; }
.hero-directory a:hover strong { text-decoration: underline; }
.hero-directory a:focus-visible { outline-color: #ffc774; }
article:target { box-shadow: inset 0 -4px #fa961a; }
.hero { background: #eff5fa; }
.eyebrow { margin: 0 0 18px; color: var(--accent); text-transform: uppercase; letter-spacing: .13em; font-size: .875rem; font-weight: 750; }
h1, h2, h3 { margin: 0; font-weight: 720; line-height: 1.04; letter-spacing: -.055em; font-family: inherit; }
h1 { font-size: clamp(2.8rem, 5.15vw, 5.4rem); }
h2 { font-size: clamp(2.55rem, 5.2vw, 5rem); }
h3 { font-size: clamp(1.55rem, 2.25vw, 2.2rem); line-height: 1.1; }
.hero-content > p:not(.eyebrow) { color: var(--muted); max-width: 420px; margin: 24px 0 30px; font-size: 1.15rem; }
.hero-link { display: inline-block; margin: 8px 0 8px 16px; font-weight: 650; }
.services, .approach, .work, .contact { padding-block: clamp(58px, 8vw, 115px); }
.section-intro, .work-grid, .approach, .contact-grid { display: grid; grid-template-columns: 1.12fr 1fr; align-items: start; gap: clamp(22px, 7vw, 108px); }
.section-intro > p, .approach p:not(.eyebrow) { color: var(--muted); max-width: 450px; font-size: 1.08rem; margin: 0; }
.section-intro > p { align-self: end; }
.approach p + p { margin-top: 16px !important; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 42px; border-top: 1px solid var(--line); }
article { border-bottom: 1px solid var(--line); padding: 30px clamp(18px, 3vw, 42px); display: flex; flex-direction: column; }
article:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
article:nth-child(3n + 1) { padding-left: 0; }
article p, article li { color: var(--muted); }
article ul { padding-left: 18px; margin: 0 0 20px; }
article li + li { margin-top: 5px; }
article a { margin-top: auto; color: var(--accent); font-weight: 650; }
.work { background: #eff5fa; }
.work p:not(.eyebrow), .contact p:not(.eyebrow) { max-width: 470px; }
.examples { border-top: 1px solid #c2d3e4; }
.examples h3 { margin: 20px 0 16px; }
details { padding: 12px 0; border-block-end: 1px solid #c2d3e4; }
summary { cursor: pointer; font-weight: 650; }
details p { margin: 8px 0 2px; }
.contact { color: #fff; background: var(--navy); }
.contact .eyebrow { color: #ffc774; }
.contact-options { display: grid; justify-items: start; gap: 13px; }
select { max-width: 100%; padding: 10px 30px 10px 12px; color: var(--ink); background: #ffffff; border: 1px solid var(--line); font: inherit; }
.footer-inner { flex-wrap: wrap; padding-block: 30px; font-size: .92rem; }
.footer-inner p { margin: 0; }
@media (max-width: 1020px) {
  .wrap { width: calc(100% - 56px); }
  .nav-links { display: none; }

}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .hero-layout, .section-intro, .work-grid, .approach, .contact-grid, .cards { grid-template-columns: 1fr; }
  .hero-layout { padding-bottom: 18px; }
  .hero-directory { max-width: none; }
  .hero-break { display: none; }
  article, article:nth-child(3n + 1) { padding: 24px 0; }
  article:not(:nth-child(3n)) { border-right: 0; }
}
@media (max-width: 450px) { .nav-actions .button { display: none; } }
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }

.subhero { background: #eff5fa; border-bottom: 1px solid var(--line); padding-block: clamp(38px, 7vw, 86px); }
.subhero .eyebrow { margin-top: 26px; }
.subhero h1 { max-width: 1000px; overflow-wrap: break-word; }
.sublead { max-width: 710px; font-size: 1.2rem; color: var(--muted); margin: 22px 0 0; }
.subcontent { padding-block: clamp(42px, 6vw, 84px); }
.directory-content .cards { margin-top: 0; }
.sub-action { background: #eff5fa; padding: clamp(22px, 4vw, 48px); margin-block: 42px 20px; }
.sub-action p { max-width: 650px; }
nav.related { min-height: auto; justify-content: flex-start; flex-wrap: wrap; padding-top: 20px; }
.related a { color: var(--navy); text-decoration: underline; }
@media (max-width: 1020px) {
  header nav { flex-wrap: wrap; gap: 0 16px; padding-top: 12px; }
  header .nav-links { display: flex; order: 3; flex-basis: 100%; flex-wrap: wrap; border-top: 1px solid #ffffff33; padding-block: 9px; margin-top: 10px; font-size: .9rem; }
}

@media (min-width: 1021px) {
  header nav, header .nav-links, header .nav-actions { gap: clamp(13px, 1.7vw, 28px); }
}

.service-icon {
  display: grid;
  place-items: center;
  width: 44px;
  aspect-ratio: 1;
  border-radius: 10px;
  background: #eaf2fa;
  color: var(--navy);
}
.service-icon svg { width: 25px; height: 25px; }
.cards .service-icon { margin-bottom: 16px; }
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -20rem;
  right: -12rem;
  width: 55rem;
  height: 55rem;
  border: 1px solid #cfdeec;
  border-radius: 50%;
  box-shadow: 0 0 0 3.5rem #e8f0f8, 0 0 0 7rem #edf3f9;
  pointer-events: none;
}
.hero-directory { border-top: 4px solid #fa961a; box-shadow: 0 16px 40px #00294e23; }
.hero-directory a { grid-template-columns: 35px minmax(0, 1fr); column-gap: 14px; align-items: center; }
.hero-directory .service-icon { width: 35px; color: #ffc774; background: #ffffff16; border-radius: 7px; }
.hero-directory .service-icon svg { width: 21px; height: 21px; }
.directory-label { display: grid; }
.directory-label strong { color: white; }
.subhero-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 72px); margin-top: 24px; }
.subhero-layout > div > .service-icon { margin-bottom: 18px; }
.service-photo, .service-emblem { position: relative; overflow: hidden; border-radius: 10px; border-bottom: 4px solid #fa961a; }
.service-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1.65; object-fit: cover; }
.service-emblem { min-height: 185px; display: grid; place-items: center; background: repeating-radial-gradient(circle at center, #ffffff19 0 1px, transparent 2px 24px), var(--navy); }
.service-emblem .service-icon { width: 86px; margin: 0 !important; color: #ffc774; background: #00294e; }
.service-emblem .service-icon svg { width: 48px; height: 48px; }
@media (max-width: 760px) {
  .subhero-layout { grid-template-columns: 1fr; }
  .service-emblem { display: none; }
}

figure.service-photo { margin: 0; }
.page-process { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 80px); margin-top: clamp(44px, 7vw, 90px); padding: clamp(22px, 4vw, 52px); background: #eff5fa; border-top: 3px solid #fa961a; }
.page-process h2, .page-faq h2 { font-size: clamp(1.9rem, 3.5vw, 3.2rem); }
.page-process ol { margin: 0; padding-left: 25px; }
.page-process li { padding-left: 8px; }
.page-process li::marker { color: var(--accent); font-weight: 750; }
.page-process li + li { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; }
.page-process h3 { font-size: 1.22rem; letter-spacing: -.02em; }
.page-process p, .page-faq p { color: var(--muted); max-width: 64ch; }
.page-process li p { margin: 6px 0 0; }
.page-faq { margin-top: 34px; }
.page-faq details { margin-top: 18px; border-top: 1px solid var(--line); }
.site-footer { border-top: 4px solid #fa961a; }
.footer-layout { display: grid; grid-template-columns: 1.15fr 1fr .85fr 1fr; gap: clamp(20px, 3vw, 44px); padding-block: clamp(32px, 5vw, 62px); align-items: start; }
.footer-layout h2 { font-size: 1rem; letter-spacing: 0; margin-bottom: 12px; }
.footer-layout p, .footer-layout li { color: #dbe8f3; font-size: .94rem; }
.footer-layout ul { padding: 0; margin: 0; list-style: none; }
.footer-layout li + li { margin-top: 6px; }
.footer-layout li a { text-decoration: none; overflow-wrap: anywhere; }
.footer-layout li a:hover { text-decoration: underline; }
.footer-support { background: #ffffff0e; border: 1px solid #ffffff32; padding: 16px; }
.footer-support a { color: #ffc774; font-weight: 700; }
.footer-bottom { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; padding-block: 16px; border-top: 1px solid #ffffff33; color: #dbe8f3; }
@media (max-width: 980px) { .footer-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) { .page-process, .footer-layout { grid-template-columns: 1fr; } }

.service-menu { position: relative; border: 0; padding: 0; }
.service-menu summary { cursor: pointer; font-weight: 650; }
.menu-panel { position: absolute; top: calc(100% + 14px); left: -16px; width: min(315px, 85vw); z-index: 10; background: #00294e; color: white; border-top: 3px solid #fa961a; box-shadow: 0 12px 24px #00294e33; padding: 8px 0; }
.menu-panel a { display: block; padding: 8px 16px; }
.menu-panel a:hover, .menu-panel a:focus-visible { background: #ffffff18; }
.deeper-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-top: 22px; }
.deeper-grid > div { padding: clamp(16px,3vw,28px); border: 1px solid var(--line); }
.deeper-grid h3 { font-size: 1.35rem; }
.contact-hero { padding-block: clamp(38px,7vw,90px); background: #eff5fa; border-bottom: 1px solid var(--line); }
.inquiry-layout { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); gap: clamp(24px,5vw,65px); padding-block: clamp(34px,6vw,80px); }
.inquiry-card { padding: clamp(20px,4vw,42px); border: 1px solid var(--line); border-top: 4px solid #fa961a; }
.inquiry-card h2, .inquiry-sidebar h2 { font-size: clamp(1.45rem,3vw,2rem); }
.inquiry-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.inquiry-fields label { display: grid; gap: 5px; font-weight: 650; }
.inquiry-fields .full { grid-column: 1/-1; }
.inquiry-fields input, .inquiry-fields textarea, .inquiry-fields select { width: 100%; border: 1px solid #9eb2c6; background: white; padding: 10px; font: inherit; color: var(--ink); }
.inquiry-note { color: var(--muted); }
.inquiry-trap { position: absolute; left: -10000px; }
.inquiry-card button { cursor: pointer; font: inherit; font-weight: 700; }
.inquiry-sidebar > div { border-top: 1px solid var(--line); padding: 20px 0; }
.inquiry-sidebar > div:first-child { border-top: 3px solid #fa961a; }
@media (max-width: 720px) { .inquiry-layout, .deeper-grid { grid-template-columns: 1fr; } }
@media (max-width: 455px) { .inquiry-fields { grid-template-columns: 1fr; } header .nav-actions .button { display: inline-flex; } }

.service-hero-action { margin-top: 24px; }
.service-examples { padding-block: clamp(40px, 6vw, 78px); color: white; background: #00294e; }
.service-examples .eyebrow { color: #ffc774; }
.service-examples h2, .coverage-options h2 { font-size: clamp(1.9rem, 4vw, 3.5rem); }
.example-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.service-example { display: flex; flex-direction: column; align-items: flex-start; background: #ffffff0e; border: 1px solid #ffffff32; border-top: 3px solid #fa961a; padding: clamp(17px, 2.5vw, 30px); }
.service-example .service-icon { color: #ffc774; background: #ffffff17; margin-bottom: 16px; }
.service-example h3 { font-size: clamp(1.15rem, 1.8vw, 1.55rem); letter-spacing: -.02em; }
.service-example p { color: #e0eaf4; margin-block: 12px; }
.service-example .example-platforms { margin: auto 0 0; padding-top: 12px; border-top: 1px solid #ffffff32; width: 100%; color: #ffc774; font-size: .92rem; font-weight: 650; }
.coverage-options { padding-top: clamp(36px, 6vw, 74px); }
@media (max-width: 760px) { .example-grid { grid-template-columns: 1fr; } }

.scope-guide { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 5vw, 72px); margin-top: clamp(36px, 6vw, 72px); padding: clamp(20px, 4vw, 50px); border: 1px solid var(--line); border-left: 4px solid #fa961a; background: #f8fbfe; }
.scope-guide h2 { font-size: clamp(1.85rem, 3.1vw, 3rem); }
.scope-guide h3 { font-size: 1.25rem; letter-spacing: -.02em; }
.scope-guide p { color: var(--muted); }
.scope-rows > div + div { border-top: 1px solid var(--line); padding-top: 15px; }
.scope-rows > div p { margin: 6px 0 15px; }
.scope-rows > details { padding-bottom: 0; border-bottom: 0; }
.entry-guide { margin-top: 0; margin-bottom: clamp(36px, 6vw, 72px); }
@media (max-width: 760px) { .scope-guide { grid-template-columns: 1fr; } }

.service-masthead { color: white; background: radial-gradient(ellipse at 78% 30%, #124a7d 0, #052d56 50%, #002344 100%); border-bottom: 0; }
.service-masthead .wrap > a { color: #dfebf6; }
.service-masthead .sublead { color: #e1eaf3; }
.service-masthead .eyebrow { color: #ffc774; margin: 0 0 14px; }
.service-masthead h1 { font-size: clamp(2.5rem, 5.1vw, 5rem); }
.service-masthead-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
.service-masthead-grid > div > .service-icon { display: none; }
.service-masthead .service-photo { border: 1px solid #ffffff55; border-bottom: 4px solid #fa961a; box-shadow: 0 22px 54px #001a36a6; }
.service-masthead .service-photo img { aspect-ratio: 1.22; }
.service-masthead .button { background: #fa961a; color: #002344; }
.service-checklist { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; list-style: none; color: #eef5fb; }
.service-checklist li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 8px 2px 0; background: #fa961a; border-radius: 50%; }
.service-jump { min-height: 0; display: flex; justify-content: flex-start; align-items: center; gap: 12px 28px; flex-wrap: wrap; padding-block: 16px; border-bottom: 1px solid var(--line); }
.service-jump a { color: var(--navy); text-decoration: underline; }
.service-detail > .cards { margin-top: 26px; }
.service-detail > .cards > article { background: #f4f8fc; border-top: 3px solid #b9d1e7; }
.project-story { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 5vw, 68px); align-items: center; padding: clamp(24px, 5vw, 64px); margin-top: clamp(32px, 6vw, 72px); background: #edf5fc; border-left: 4px solid #fa961a; }
.project-story h2, .cloud-decisions h2 { font-size: clamp(1.9rem, 3.5vw, 3.2rem); }
.project-story p:last-child { margin: 0; color: var(--muted); font-size: 1.08rem; }
.service-followthrough .page-process { margin-top: 0; }
.cloud-decisions { margin-top: 42px; }
@media (max-width: 760px) { .service-masthead-grid, .project-story { grid-template-columns: 1fr; } .service-masthead .service-photo img { aspect-ratio: 1.7; } }

@media (min-width: 720px) {
  .cards.service-offerings, .example-grid.service-offerings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Shared typography and layout */
:root {
  --ink: #112940;
  --muted: #40566c;
  --line: #cbd9e6;
  --surface: #f3f7fb;
  --gold: #fa961a;
  --gutter: clamp(18px, 4.25vw, 64px);
  --section-space: clamp(50px, 7vw, 104px);
  --panel-space: clamp(22px, 3.1vw, 42px);
  --radius: 16px;
  --shadow: 0 8px 26px #102d4610;
}
.wrap { width: min(1250px, calc(100% - 2 * var(--gutter))); }
main { overflow-wrap: break-word; }
h1, h2, h3 { letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(2.45rem, 4.9vw, 5rem); line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 3.55vw, 3.45rem); line-height: 1.12; }
h3 { font-size: clamp(1.25rem, 1.65vw, 1.6rem); line-height: 1.2; }
p { text-wrap: pretty; }
.eyebrow { margin-bottom: 12px; letter-spacing: .095em; }
.button { border-radius: 9px; line-height: 1.25; text-align: center; }
.button:hover { text-decoration: none; }
.services, .work, .approach, .contact, .subcontent { padding-block: var(--section-space); }
.section-intro, .work-grid, .approach, .contact-grid { gap: clamp(22px, 5vw, 76px); }
.section-intro > p { align-self: center; }
.approach p:not(.eyebrow) { max-width: 62ch; }

/* Navigation and mastheads */
header > nav { min-height: 76px; }
.service-nav { display: flex; align-items: center; position: relative; gap: 2px; }
.service-menu { position: static; }
.service-menu summary { display: grid; width: 34px; height: 40px; place-items: center; list-style: none; }
.service-menu summary::-webkit-details-marker { display: none; }
.service-menu summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.service-menu[open] summary::after { transform: translateY(2px) rotate(225deg); }
.menu-panel { top: calc(100% + 3px); left: 0; border-radius: 10px; padding: 8px; width: min(320px, calc(100vw - 2 * var(--gutter))); }
.menu-panel a { padding: 9px 12px; border-radius: 5px; }
nav a[aria-current="page"]:not(.brand, .button) { text-decoration: underline; text-decoration-color: var(--gold); }
.hero, .overview-hero, .contact-hero { background: linear-gradient(125deg, #f6f9fc, #e8f1fa); }
.hero-layout { gap: clamp(22px, 5vw, 72px); align-items: center; padding-block: var(--section-space); }
.hero-content { padding: 0; }
.hero-content > p:not(.eyebrow) { max-width: 52ch; }
.hero-directory { padding: var(--panel-space); border-radius: var(--radius); background: linear-gradient(145deg,#064679,#00294e); }
.hero-directory a { padding-block: 13px; }
.hero-break { display: none; }
.subhero, .contact-hero { padding-block: clamp(36px, 6vw, 76px); }
.subhero-layout { align-items: center; }
.subhero-layout .eyebrow { margin-top: 0; }
.subhero > .wrap > a { font-weight: 650; font-size: .9rem; }
.overview-hero .subhero-layout { grid-template-columns: minmax(0,1.12fr) minmax(0,1fr); }
.service-masthead h1 { font-size: clamp(2.35rem, 4.45vw, 4.55rem); }
.sublead { font-size: clamp(1.06rem, 1.5vw, 1.24rem); line-height: 1.65; margin-top: 18px; }
.service-photo, .service-emblem { border-radius: var(--radius); }
.service-masthead .service-photo img { aspect-ratio: 1.38; }
.service-checklist { margin-block: 20px 0; }
.service-jump { padding-block: 14px; gap: 4px 22px; }
.service-jump a { padding-block: 6px; }

/* Cards and sections */
.cards, .directory-content .cards, .service-detail > .cards { margin-top: clamp(22px, 3vw, 36px); gap: clamp(14px, 2vw, 24px); border: 0; }
.cards > article, .service-detail > .cards > article {
  min-width: 0;
  padding: var(--panel-space);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}
.cards article p { margin-block: 12px 16px; }
.cards article ul { margin: 0 0 20px; padding-left: 1.2em; }
.cards article li::marker { color: var(--accent); }
.cards article p:last-child { margin-bottom: 0; }
.cards article > a { align-self: flex-start; }
.cards article:target { border-color: var(--accent); }
.cards .service-icon { margin-bottom: 18px; }
.service-examples { padding-block: var(--section-space); background: linear-gradient(125deg,#00294e,#073c6a); }
.service-example { border-radius: var(--radius); padding: var(--panel-space); }
.service-example p:last-child:not(.example-platforms) { margin-bottom: 0; }
.project-story, .page-process, .scope-guide, .sub-action { padding: var(--panel-space); border-radius: var(--radius); }
.page-faq, .cloud-decisions { margin-top: clamp(32px, 5vw, 64px); }
.page-faq > details { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 14px 19px; }
.deeper-grid > div { border-radius: 12px; background: var(--surface); }
.deeper-grid p { margin-bottom: 0; }
.sub-action {
  margin-block: clamp(28px, 5vw, 58px) 0;
  color: #fff;
  background: linear-gradient(120deg,#00294e,#074474);
}
.sub-action p { color: #e4edf6; margin-block: 12px 20px; }
.sub-action .button { background: var(--gold); color: #112940; }
.subcontent > .sub-action:first-child { margin-top: 0; }
.directory-content + .page-faq { margin-top: 0; padding-top: 0; }
.coverage-options .deeper-grid > div { background: var(--surface); }

/* Contact and footer */
.inquiry-layout { gap: clamp(20px, 3.5vw, 48px); }
.inquiry-card { padding: var(--panel-space); border-radius: var(--radius); box-shadow: var(--shadow); }
.inquiry-fields { gap: 18px; }
.inquiry-fields input, .inquiry-fields textarea, .inquiry-fields select { min-width: 0; min-height: 46px; border-radius: 8px; padding: 10px 12px; }
.inquiry-fields select { padding-right: 28px; }
.inquiry-fields textarea { resize: vertical; }
.inquiry-sidebar { display: grid; align-content: start; gap: 16px; }
.inquiry-sidebar > div, .inquiry-sidebar > div:first-child { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 19px 22px; }
.inquiry-sidebar > div p:last-child { margin-bottom: 0; }
.footer-support { border-radius: 12px; padding: 20px; }
.footer-layout { gap: clamp(20px, 3vw, 42px); }

/* Tablet and phone */
@media (min-width: 761px) and (max-width: 995px) {
  .cards, .example-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  header > nav { padding-top: 11px; min-height: 0; }
  header .nav-links { gap: 4px 16px; padding: 4px 0; }
  header .nav-links > a, .service-nav > a { padding-block: 9px; }
  .nav-actions { gap: clamp(9px, 2.5vw, 18px); }
  .nav-actions .button { min-height: 42px; padding-inline: 13px; }
  .hero-layout, .overview-hero .subhero-layout, .service-masthead-grid,
  .cards.service-offerings, .example-grid.service-offerings { grid-template-columns: minmax(0, 1fr); }
  .hero-directory { justify-self: stretch; }
  .service-masthead .service-photo img { aspect-ratio: 1.65; }
  .subhero-layout { margin-top: 14px; }
}
@media (max-width: 380px) {
  header .nav-links { gap: 2px 10px; font-size: .85rem; }
  header .brand img { width: 126px; }
  .nav-actions { font-size: .875rem; }
}

.contact-grid > *, .contact-options { min-width: 0; }
.contact-options select { width: 100%; max-width: 24rem; }
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Service menu */
.site-header > nav { position: relative; }
.site-header .service-nav { position: static; }
.site-header .service-menu summary { display: flex; width: auto; min-height: 44px; gap: 9px; padding-inline: 8px 10px; border-radius: 8px; }
.site-header .service-menu summary:hover { background: #ffffff19; }
.site-header .menu-panel {
  inset: 100% 0 auto;
  width: min(100%, 820px);
  margin-inline: auto;
  padding: 0;
  overflow: auto;
  max-height: calc(100vh - 84px);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 20px 50px #052a4d3d;
}
.menu-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.menu-group { min-width: 0; padding: 20px; }
.menu-group + .menu-group { border-left: 1px solid var(--line); }
.menu-group > p { margin: 0 0 7px; padding-inline: 10px; font-weight: 750; color: var(--accent); }
.menu-group ul { list-style: none; padding: 0; margin: 0; }
.site-header .menu-group a {
  display: grid;
  grid-template-columns: 36px minmax(0,1fr);
  align-items: start;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 9px;
  line-height: 1.35;
}
.menu-group .service-icon { width: 36px; }
.menu-group .service-icon svg { width: 21px; height: 21px; }
.menu-group strong, .menu-group small { display: block; }
.menu-group strong { font-size: 1rem; }
.menu-group small { margin-top: 3px; font-size: .875rem; font-weight: 400; color: var(--muted); }
.site-header .menu-panel a:hover, .site-header .menu-panel a:focus-visible,
.site-header .menu-panel a[aria-current="page"] { background: var(--surface); text-decoration: none; }
.menu-footer { display: flex; flex-wrap: wrap; gap: 5px 18px; justify-content: space-between; padding: 10px 20px; background: var(--surface); border-top: 1px solid var(--line); }
.site-header .menu-footer a { color: var(--navy); text-decoration: underline; }
@media (max-width: 650px) {
  .site-header .menu-panel { max-height: calc(100dvh - 120px); }
  .menu-grid { grid-template-columns: minmax(0,1fr); }
  .menu-group { padding: 12px; }
  .menu-group + .menu-group { border-left: 0; border-top: 1px solid var(--line); }
  .menu-footer { padding: 8px 10px; gap: 0 4px; }
}

/* Related service recommendations */
.related-services { margin-top: clamp(44px, 7vw, 88px); }
.related-services h2 { font-size: clamp(1.65rem, 3vw, 2.45rem); }
.related-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.related-grid li { display: flex; min-width: 0; }
.related-grid li:first-child { grid-row: span 2; }
.related-grid a {
  display: flex;
  flex: 1;
  align-items: flex-start;
  gap: 16px;
  padding: clamp(16px, 2.5vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
}
.related-grid li:first-child a {
  flex-direction: column;
  justify-content: center;
  padding: var(--panel-space);
  background: linear-gradient(135deg, #00294e, #124a7d);
  border-color: #00294e;
}
.related-grid .service-icon { flex: 0 0 auto; }
.related-copy { display: grid; gap: 5px; min-width: 0; }
.related-copy strong { color: var(--navy); font-size: 1.08rem; line-height: 1.3; }
.related-copy > span { color: var(--muted); }
.related-grid li:first-child strong { color: #fff; font-size: clamp(1.3rem, 2.3vw, 1.8rem); }
.related-grid li:first-child .related-copy > span { color: #e4edf6; }
.related-grid li:first-child .service-icon { color: #ffc774; background: #ffffff19; }
.related-grid a:hover, .related-grid a:focus-visible { border-color: var(--navy); box-shadow: var(--shadow); }
.related-grid a:hover strong, .related-grid a:focus-visible strong { text-decoration: underline; }
@media (max-width: 720px) {
  .related-grid { grid-template-columns: minmax(0, 1fr); }
  .related-grid li:first-child { grid-row: auto; }
}

/* About AmeriGo */
.about-hero {
  background: linear-gradient(125deg, #00294e, #104775);
  color: #fff;
  padding-block: clamp(44px, 7vw, 92px);
}
.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: center;
}
.about-hero .eyebrow { color: #ffc774; }
.about-hero h1 { font-size: clamp(2.4rem, 4.7vw, 4.7rem); }
.about-hero p:not(.eyebrow) { max-width: 49ch; margin: 20px 0 24px; color: #e4edf6; font-size: 1.12rem; }
.about-photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 45px #001a36a0; }
.about-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1.35; object-fit: cover; }
.about-story { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: clamp(28px, 7vw, 110px); align-items: start; padding-block: var(--section-space); }
.about-founder { padding: 8px 0 8px 20px; border-left: 3px solid var(--gold); }
.about-founder p { margin: 0 0 18px; color: var(--muted); }
.about-founder p strong { display: block; color: var(--navy); font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1.05; }
.about-founder div span { display: block; color: var(--muted); }
.about-narrative { max-width: 67ch; }
.about-narrative p { color: var(--muted); font-size: 1.08rem; }
.about-work { padding-block: var(--section-space); background: var(--surface); border-block: 1px solid var(--line); }
.about-work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); margin-top: 28px; }
.about-work-grid article, .about-work-grid article:nth-child(3n + 1) { padding: var(--panel-space); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
@media (max-width: 760px) {
  .about-hero-grid, .about-story, .about-work-grid { grid-template-columns: minmax(0, 1fr); }
  .about-photo img { aspect-ratio: 1.65; }
}

/* Keep matching entries in the IT Services columns on the same rows. */
@media (min-width: 651px) {
  .menu-grid-aligned > .menu-group {
    display: grid;
    grid-row: span 6;
    grid-template-rows: subgrid;
  }
  .menu-grid-aligned .menu-group ul {
    display: grid;
    grid-row: span 5;
    grid-template-rows: subgrid;
  }
  .menu-grid-aligned .menu-group li > a { height: 100%; }
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .button-outline { color: var(--navy); background: transparent; border-color: var(--navy); }
.hero-actions .button-outline:hover { background: var(--paper); }
.cards.service-directory-cards > article { padding: 0; }
.service-directory-cards .service-card-link {
  align-self: stretch;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  margin: 0;
  padding: var(--panel-space);
  border-radius: inherit;
  color: var(--ink);
  font-weight: 400;
  text-decoration: none;
  transition: background-color .15s ease, box-shadow .15s ease;
}
.service-directory-cards .service-card-link:hover,
.service-directory-cards .service-card-link:focus-visible {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--navy);
}
.service-card-link:hover h3, .service-card-link:focus-visible h3 {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: .18em;
}
.service-directory-cards .service-icon { background: var(--navy); color: #fff; }
.service-directory-cards article ul { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) {
  .service-directory-cards .service-card-link { transition: none; }
}

.about-method {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 6vw, 82px);
  padding-block: var(--section-space);
}
.about-method p { color: var(--muted); }
.about-method ul { margin: 0; padding: 0; list-style: none; }
.about-method li { padding: 18px 0; border-top: 1px solid var(--line); }
.about-method li:last-child { border-bottom: 1px solid var(--line); }
.about-method li p { margin: 6px 0 0; max-width: 64ch; }
@media (max-width: 760px) {
  .about-method { grid-template-columns: minmax(0, 1fr); }
}

/* Illustrative projects */
.scenario-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(16px, 3vw, 35px); }
.scenario-grid .scenario-card { padding: var(--panel-space); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.scenario-card h2, .scenario-callout h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); }
.scenario-card dl { margin: 0 0 18px; }
.scenario-card dt { font-weight: 700; }
.scenario-card dd { margin: 4px 0 13px; color: var(--muted); }
.scenario-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: clamp(40px, 6vw, 70px);
  padding: var(--panel-space);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.scenario-callout > div { flex: 1 1 28rem; }
.scenario-callout p:last-child { max-width: 64ch; margin-bottom: 0; color: var(--muted); }
.project-quote-note { max-width: 65ch; color: var(--muted); }
@media (max-width: 720px) { .scenario-grid { grid-template-columns: minmax(0,1fr); } }

/* Industry scenario library */
.scenario-hero { background: linear-gradient(120deg, #00294e, #124a7d); color: white; padding-block: var(--section-space); }
.scenario-hero-layout { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); align-items: center; gap: clamp(24px,5vw,72px); }
.scenario-hero h1 { font-size: clamp(2.45rem, 5vw, 4.7rem); }
.scenario-hero p { color: #e4edf6; max-width: 52ch; font-size: 1.1rem; margin: 20px 0 24px; }
.scenario-hero-photo { margin: 0; border-radius: var(--radius); overflow: hidden; }
.scenario-hero-photo img { width: 100%; height: auto; aspect-ratio: 1.5; object-fit: cover; display: block; }
.scenario-library { padding-top: clamp(28px, 5vw, 64px); }
.scenario-jump { min-height: 0; flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
.scenario-jump a { padding: 9px 13px; border: 1px solid var(--line); border-radius: 8px; color: var(--navy); }
.scenario-jump a:hover { background: var(--surface); }
.scenario-search { margin-top: 22px; padding: 14px 16px; background: var(--surface); border-radius: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.scenario-search label { font-weight: 700; }
.scenario-search input { flex: 1 1 16rem; max-width: 34rem; min-width: 0; padding: 9px 12px; font: inherit; color: var(--ink); border: 1px solid var(--line); border-radius: 7px; }
.scenario-search p { margin: 0; color: var(--muted); }
.scenario-search[hidden], .scenario-industry[hidden], .scenario-grid .scenario-card[hidden] { display: none; }
.scenario-industry { padding-top: clamp(36px,6vw,75px); scroll-margin-top: 14px; }
.scenario-industry-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.scenario-industry-heading .service-icon { flex: 0 0 auto; }
.scenario-industry-heading h2 { font-size: clamp(1.65rem,3vw,2.4rem); }
.scenario-industry-heading p { margin: 5px 0 0; color: var(--muted); }
.scenario-industry .scenario-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.scenario-grid .scenario-card { min-width: 0; padding: clamp(19px,2.1vw,29px); background: var(--paper); box-shadow: var(--shadow); scroll-margin-top: 20px; }
.scenario-card h3 { font-size: clamp(1.18rem, 1.8vw, 1.55rem); }
.scenario-card .scenario-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 13px; padding: 0; list-style: none; }
.scenario-card .scenario-tags li { margin: 0; padding: 3px 7px; font-size: .875rem; line-height: 1.35; font-weight: 650; color: var(--navy); background: var(--surface); border-radius: 5px; }
@media (max-width: 950px) and (min-width: 721px) {
  .scenario-industry .scenario-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .scenario-industry .scenario-grid, .scenario-hero-layout { grid-template-columns: minmax(0,1fr); }
}

.footer-bottom { align-items: center; }
.footer-policies { min-height: 0; flex-wrap: wrap; justify-content: flex-start; gap: 6px 18px; }
.footer-policies a { font-size: .9rem; padding-block: 4px; }
.policy-copy { width: min(760px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.policy-copy h2 { font-size: clamp(1.35rem, 2.5vw, 2rem); }
.policy-copy p { color: var(--muted); }
.policy-copy p + h2 { margin-top: 32px; }

.site-header .support-panel { left: auto; right: 0; width: min(100%, 360px); }

.site-header .about-menu-panel { width: min(100%, 690px); }
.about-menu-snapshot { padding: 22px; color: #e4edf6; background: #00294e; }
.about-menu-snapshot p { margin: 0 0 10px; }
.about-menu-snapshot p:first-child { color: #ffc774; font-weight: 750; }
.about-menu-snapshot p:last-child { margin-bottom: 0; }
.about-menu-year { margin-bottom: 12px; font-weight: 650; }
.about-menu-year strong { display: block; color: white; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; }

.mobile-nav-toggle { display: none; }

@media (max-width: 1020px) {
  .site-header > nav {
    min-height: 68px;
    padding: 10px 0;
    column-gap: 12px;
  }

  .site-header .mobile-nav-ready .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 96px;
    min-height: 44px;
    justify-content: center;
    padding: 6px 12px;
    background: #ffffff0d;
    color: white;
    border: 1px solid #ffffff55;
    border-radius: 9px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
  }

  .mobile-nav-toggle[aria-expanded="false"] .menu-close-icon,
  .mobile-nav-toggle[aria-expanded="true"] .menu-open-icon,
  .site-header .mobile-nav-ready .mobile-nav-toggle[aria-expanded="false"] + .nav-links { display: none; }

  .site-header .nav-links {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-top: 10px;
    padding: 6px 0 0;
    font-size: 1rem;
  }

  .site-header .service-nav { min-width: 0; }
  .site-header .service-nav + .service-nav { border-top: 1px solid #ffffff26; }

  .site-header .service-menu summary {
    min-height: 50px;
    justify-content: space-between;
    padding: 8px 14px;
  }

  .site-header .service-menu[open] summary { color: #ffc774; }

  .site-header .service-menu .menu-panel {
    position: static;
    width: 100%;
    max-height: none;
    margin: 0 0 10px;
    overflow: visible;
    border: 0;
    border-radius: 12px;
    box-shadow: none;
  }

  .site-header .menu-grid { grid-template-columns: minmax(0, 1fr); }
  .site-header .about-menu-snapshot, .site-header .menu-group small { display: none; }
  .site-header .menu-group { padding: 12px; }
  .site-header .menu-group + .menu-group { border-left: 0; border-top: 1px solid var(--line); }
  .site-header .menu-group a { align-items: center; min-height: 44px; padding-block: 5px; }
  .site-header .menu-footer { gap: 0 12px; padding: 4px 12px; }
  .site-header .menu-footer a { display: inline-flex; min-height: 44px; align-items: center; padding: 5px 8px; }
}
