/* Shared visual refinement. Content and page URLs remain in the HTML. */
:root {
  --ink-900: #132f40;
  --ink-700: #3e5969;
  --ink-600: #526b7a;
  --surface-soft: #f5f8fa;
  --surface-blue: #edf7fa;
  --line: #dce7ec;
  --shadow-sm: 0 5px 18px rgba(15, 46, 65, .045);
  --shadow-md: 0 14px 38px rgba(15, 46, 65, .085);
}

body { line-height: 1.7; }
h1 { font-size: clamp(1.5rem, 2.35vw, 2.25rem); line-height: 1.24; }
h2 { font-size: clamp(1.55rem, 2.4vw, 2rem); line-height: 1.25; text-wrap: balance; }
h3 { line-height: 1.3; }
p { text-wrap: pretty; }
a, button, input, textarea, select, summary { touch-action: manipulation; }
:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid #1587bd;
  outline-offset: 4px;
}
:where(.hero, .site-footer, .section--dark, .cta-panel) :focus-visible { outline-color: #68d7ff; }

/* A quiet, consistent masthead with a clear current-page indicator. */
.site-announcement { font-size: .72rem; letter-spacing: .01em; }
.site-header { background: rgba(255, 255, 255, .98); box-shadow: 0 3px 18px rgba(7, 27, 42, .04); }
.brand img { width: 208px; }
.primary-nav a { padding-inline: 12px; font-size: .87rem; border-radius: 8px; }
.primary-nav a[aria-current="page"] { background: #edf7fa; color: #075f8d; }
.nav-actions .btn { border-radius: 9px; }
.mobile-panel { overscroll-behavior: contain; }
.mobile-nav a { border-radius: 9px; }

/* Compact titles and generous but purposeful hero spacing. */
.hero {
  min-height: 0;
  background:
    radial-gradient(ellipse at 90% 15%, rgba(39, 134, 174, .22), transparent 50%),
    radial-gradient(ellipse at 5% 100%, rgba(20, 153, 146, .13), transparent 48%),
    linear-gradient(120deg, #061b29, #10354a);
}
.hero::before { border-color: rgba(145, 215, 235, .10); }
.hero::after { border-color: rgba(145, 215, 235, .06); }
.hero-grid, .hero--inner .hero-grid {
  min-height: 0;
  padding-block: clamp(44px, 4.5vw, 66px);
  gap: clamp(32px, 4vw, 56px);
}
.hero h1 { margin-bottom: 20px; letter-spacing: -.025em; }
.hero-lead { font-size: clamp(1rem, 1.1vw, 1.08rem); line-height: 1.8; color: #c7dbe5; margin-bottom: 25px; }
.hero .eyebrow { font-size: .68rem; letter-spacing: .13em; margin-bottom: 16px; }
.breadcrumbs { margin-bottom: 25px; font-size: .75rem; }
.hero-actions { margin-bottom: 23px; }
.hero-badges { gap: 8px; }
.hero-badges li { font-size: .73rem; min-height: 33px; padding: 6px 10px; border-radius: 8px; }
.hero-visual, .hero--inner .hero-visual { min-height: 340px; }
.hero-visual-frame, .hero--inner .hero-visual-frame {
  inset: 22px 12px;
  border-radius: 24px;
  border-color: rgba(183, 226, 240, .22);
  background: linear-gradient(140deg, rgba(255,255,255,.12), rgba(255,255,255,.045));
  box-shadow: 0 20px 45px rgba(0,0,0,.15);
}
.hero-visual-frame img { width: 94%; max-height: 300px; filter: drop-shadow(0 12px 20px rgba(0,0,0,.18)); }
.floating-card { min-width: 155px; padding: 11px 13px; border-radius: 12px; }
.floating-card strong { font-size: .76rem; }
.floating-card small { color: #b7cbd6; }
.hero > .container:not(.hero-grid) { padding-block: clamp(44px, 5vw, 70px); }
.hero .content-narrow { max-width: 860px; }
.hero .article-meta { color: #b9cfdc; }
.hero .article-meta a { color: #b8efff; }

/* Consistent section rhythm and lighter card surfaces. */
.section { padding-block: clamp(50px, 5.5vw, 80px); }
.section-head { gap: 32px; margin-bottom: 32px; }
.section-head p, .section-head--center p { font-size: 1rem; line-height: 1.75; }
.section-head--center { margin-bottom: 34px; }
.eyebrow { font-size: .69rem; letter-spacing: .12em; }
.section--soft { background: #f5f8fa; }
.trust-band { margin-top: 0; border-bottom: 1px solid var(--line); background: #fff; }
.trust-band-inner { border: 0; border-radius: 0; box-shadow: none; }
.trust-item { min-height: 86px; color: #3e5969; font-size: .77rem; }

.service-grid { grid-auto-rows: auto; gap: 22px; }
.service-grid .service-card {
  min-height: 0;
  padding: 28px;
  border: 1px solid #dce7ec;
  border-radius: 18px;
  background: #fff;
  color: var(--ink-900);
  box-shadow: var(--shadow-sm);
}
.service-card::before { height: 3px; background: linear-gradient(90deg, #12799b, #36b7aa); }
.service-grid .service-card h3 { min-height: 0; font-size: 1.25rem; color: var(--ink-900); margin-bottom: 12px; }
.service-grid .service-card > p:not(.kicker) { min-height: 0; flex: 0 0 auto; color: var(--ink-600); font-size: .94rem; }
.service-grid .service-card .check-list { min-height: 0; margin-bottom: 23px; }
.service-grid .service-card .check-list li { color: var(--ink-700); }
.service-grid .service-card .check-list i { color: #09756c; }
.service-grid .service-card .kicker { color: #087a79; }
.service-grid .service-card .service-number { color: #687f8b; }
.service-grid .service-card .service-icon { width: 48px; height: 48px; background: #edf7fa; border-color: #d7ebef; color: #126d8c; border-radius: 12px; }
.service-grid .service-card .card-link { color: #075f8d; min-height: 34px; margin-top: auto; }
.service-grid .service-card .card-link:hover { color: #063e5b; }
.service-grid .service-card .service-chip { color: #3e5969; background: #f5f9fb; border-color: #dce7ec; }
.service-grid .service-card .service-chip i { color: #09756c; }
.service-grid .service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #99c6d6; }
.proof-card, .process-step { padding: 26px; border-radius: 16px; }
.process-step { min-height: 0; }
.process-step h3 { font-size: 1.16rem; }
.process-index { margin-bottom: 20px; font-size: .8rem; }
.service-detail, .timeline-row { border-radius: 20px; box-shadow: var(--shadow-sm); }
.service-detail h2, .contact-form-card h2 { font-size: clamp(1.5rem, 2.1vw, 1.85rem); line-height: 1.3; }
.media-card { border-radius: 22px; }
.anchor-nav a { border-radius: 12px; box-shadow: none; }

/* The work remains the focal point in Portfolio. */
.portfolio-grid { gap: 24px; }
.project-card { border-radius: 18px; box-shadow: var(--shadow-sm); }
.project-media { background: #edf3f6; border-bottom: 1px solid #e0e9ee; }
.project-media img { padding: 20px; }
.project-body { padding: 24px; }
.project-meta { font-size: .65rem; letter-spacing: .10em; }
.project-body h3 { font-size: 1.14rem; line-height: 1.35; }
.project-body p { font-size: .92rem; line-height: 1.75; }
.filter-bar { gap: 10px; margin-bottom: 28px; }
.filter-button { border-radius: 9px; min-height: 44px; }
.filter-button.is-active { background: #0d4057; border-color: #0d4057; }

/* Clear actions and readable long-form pages. */
.btn { border-radius: 10px; font-weight: 750; min-height: 46px; }
.btn--primary { background: #0c7098; box-shadow: 0 5px 13px rgba(11,111,159,.15); }
.btn--gradient { color: #fff; background: linear-gradient(110deg, #08776f, #086f95); box-shadow: 0 6px 17px rgba(0,0,0,.12); }
.btn--gradient:hover, .btn--gradient:focus-visible { color: #fff; background: linear-gradient(110deg, #065e58, #075b7b); }
.btn--ghost { background: rgba(255,255,255,.04); border-color: rgba(209,232,242,.36); }
.cta-panel { border-radius: 22px; box-shadow: var(--shadow-md); }
.cta-panel h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.3; }
.cta-panel .kicker { margin-bottom: 10px; }
.faq-grid { align-items: start; gap: 16px; }
.faq-item { border-radius: 13px; box-shadow: none; }
.faq-item[open] { border-color: #a2cbd8; background: #fbfdfe; }
.faq-item summary { min-height: 70px; font-size: .96rem; line-height: 1.5; }
.faq-item p { line-height: 1.8; color: #526b7a; }
.contact-form-card, .contact-info-card { border-radius: 20px; }
.form-field input, .form-field textarea, .form-field select { border-radius: 9px; background: #fbfdfe; }
.prose { gap: 2.25rem; }
.prose > section { gap: .65rem; }
.prose h2 { font-size: clamp(1.4rem, 2vw, 1.8rem); }
.prose h2, .prose h3 { margin-bottom: .45rem; }
.prose p, .prose li { font-size: 1rem; line-height: 1.85; }
.prose p:last-child { margin-bottom: 0; }
.prose > section + section { border-top: 1px solid #e3ebef; padding-top: 28px; }
.article-callout { border-radius: 18px; }

/* Keep every footer link accessible on every screen size. */
.site-footer { padding-top: 56px; }
.footer-links a, .footer-links span { color: #b8cbd6; }
.footer-links a { display: inline-block; padding-block: 3px; }
.footer-brand p { color: #b8cbd6; }
.footer-bottom { color: #a9bfcc; }
.footer-grid { gap: 32px; }
.footer-brand img { width: 210px; border-radius: 9px; }

/* Cards adapt to their count without an isolated fifth process step. */
@media (min-width: 1101px) {
  .process-grid { grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .hero-grid, .hero--inner .hero-grid { gap: 32px; }
  .hero-visual, .hero--inner .hero-visual { min-height: 320px; }
}
@media (max-width: 900px) {
  .hero-grid, .hero--inner .hero-grid { grid-template-columns: 1fr; padding-block: 44px; gap: 30px; }
  .hero-copy { max-width: 760px; }
  .hero-visual, .hero--inner .hero-visual { width: min(100%, 600px); margin-inline: auto; min-height: 330px; }
  .section-head { gap: 12px; }
  .section-head p { margin-top: 0; }
}
@media (max-width: 680px) {
  .container { width: calc(100% - 32px); }
  .brand img { width: 185px; }
  .hero-grid, .hero--inner .hero-grid { padding-block: 36px; }
  .hero > .container:not(.hero-grid) { padding-block: 36px; }
  .hero .content-narrow { width: 100%; }
  .hero h1 { font-size: clamp(1.5rem, 5.3vw, 1.85rem); }
  .hero .eyebrow { font-size: .62rem; letter-spacing: .09em; }
  .hero-visual, .hero--inner .hero-visual { min-height: 280px; }
  .hero-visual-frame, .hero--inner .hero-visual-frame { inset: 20px 8px; border-radius: 18px; }
  .floating-card { min-width: 0; gap: 8px; padding: 9px 10px; }
  .floating-card i { width: 30px; height: 30px; }
  .floating-card strong { font-size: .69rem; }
  .floating-card small { font-size: .62rem; }
  .service-grid .service-card { padding: 24px; }
  .project-body { padding: 21px; }
  .section { padding-block: 48px; }
  .section-head, .section-head--center { margin-bottom: 26px; }
  .trust-item { min-height: 80px; font-size: .7rem; }
  .service-chip-grid { grid-template-columns: 1fr; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .contact-form-card { padding: 24px 20px; }
  .site-footer { text-align: left; }
  .footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-bottom: 30px; }
  .footer-brand { grid-column: 1 / -1; max-width: none; margin: 0; text-align: left; }
  .footer-brand img { margin: 0 0 18px; }
  .footer-brand p { max-width: 430px; margin: 0 0 18px; }
  .footer-column { display: block !important; min-width: 0; }
  .footer-social { display: flex !important; }
  .footer-column h2, .footer-column h3 { margin-bottom: 12px; }
  .footer-links { gap: 6px; }
  .footer-links a, .footer-links span { font-size: .82rem; overflow-wrap: anywhere; }
  .footer-links a { padding-block: 6px; }
  .footer-bottom { align-items: flex-start; text-align: left; gap: 12px; }
  .footer-bottom p:nth-child(2) { display: block; }
  .footer-bottom a { display: inline-block; padding-block: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Mobile usability: allow content to shrink and wrap instead of overflowing. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
:where(.hero-grid, .split-grid, .contact-grid, .service-grid, .portfolio-grid,
       .proof-grid, .process-grid, .footer-grid, .form-grid) > * { min-width: 0; }
:where(.hero-copy, .content-copy, .project-body, .service-card, .proof-card,
       .process-step, .contact-info-card, .prose, .footer-column) { overflow-wrap: anywhere; }
.contact-list li > span { min-width: 0; }
.contact-list a { overflow-wrap: anywhere; }
.contact-form-card iframe { display: block; width: 100%; max-width: 100%; }
.embedded-form-link { margin: 12px 0 18px; }
.embedded-form-link a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding-block: 8px;
  font-size: .94rem;
}
.form-field input, .form-field textarea, .form-field select { font-size: 16px; }
.footer-social a { width: 44px; height: 44px; }
.mobile-panel { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
@media (max-width: 900px) {
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-form-card iframe { min-height: 720px; }
}
@media (max-width: 680px) {
  .nav-shell { gap: 12px; }
  .nav-toggle { flex: 0 0 46px; }
  .proof-grid, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-badges li { max-width: 100%; }
  .hero-badges i, .mobile-nav i, .check-list i { flex-shrink: 0; }
  .mobile-nav a { min-height: 48px; gap: 12px; }
  .filter-bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-button { min-height: 46px; padding-inline: 10px; }
  .project-link, .service-grid .service-card .card-link { min-height: 44px; }
  .footer-links a { display: flex; min-height: 44px; align-items: center; }
  .footer-bottom a { min-height: 44px; padding: 10px 4px; }
  .contact-list a { display: inline-flex; min-height: 44px; align-items: center; max-width: 100%; }
  .contact-info-top, .contact-info-bottom { padding: 24px 20px; }
  .service-area-panel { padding: 26px 20px; }
  .content-narrow { width: calc(100% - 32px); }
  .contact-form-card iframe { min-height: 780px; }
}
@media (max-width: 480px) {
  .hero-visual, .hero--inner .hero-visual {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 0;
    gap: 10px;
  }
  .hero-visual-frame, .hero--inner .hero-visual-frame {
    position: relative;
    inset: auto;
    grid-column: 1 / -1;
    min-height: 210px;
    padding: 16px 8px;
  }
  .hero-visual-frame img { max-height: 220px; }
  .floating-card {
    position: static;
    min-width: 0;
    align-items: flex-start;
    padding: 10px;
    gap: 7px;
    box-shadow: none;
  }
  .floating-card i { flex: 0 0 26px; width: 26px; height: 26px; font-size: .8rem; }
  .floating-card span { min-width: 0; overflow-wrap: anywhere; }
  .floating-card strong { line-height: 1.4; }
  .floating-card small { line-height: 1.5; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-column { padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }
  .footer-column h2, .footer-column h3 { margin-bottom: 6px; }
}
