/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #0f1b2d;
  --navy-light: #1a2940;
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --blue-pale: #dbeafe;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--gray-700);
  line-height: 1.6;
  background: var(--white);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.hidden {
  display: none !important;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: 3.25rem; letter-spacing: -0.02em; }
h2 { font-size: 2.25rem; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }

.section-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 16px;
  max-width: 600px;
}

.section-sub {
  font-size: 1.125rem;
  color: var(--gray-500);
  max-width: 560px;
  margin-bottom: 48px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  line-height: 1;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.btn-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--gray-300);
}

.btn-outline:hover {
  border-color: var(--navy);
  transform: translateY(-1px);
}

.btn-full {
  width: 100%;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.3s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}

.brand-blue {
  color: var(--blue);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--navy);
}

.nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600 !important;
  transition: background var(--transition) !important;
}

.nav-cta:hover {
  background: #1d4ed8;
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero ===== */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 50%, var(--blue-pale) 100%);
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 680px;
}

.hero-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 20px;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== Services ===== */
.services {
  padding: 100px 0;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  padding: 32px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  background: var(--white);
}

.service-card:hover {
  border-color: var(--blue-pale);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--blue-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--blue);
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* Pillar variant — taller, denser cards used in the consolidated 3-pillar layout */
.services-grid-pillars {
  gap: 28px;
}

.service-pillar {
  padding: 40px 32px 32px;
  display: flex;
  flex-direction: column;
}

.service-pillar h3 {
  font-size: 1.375rem;
  margin-bottom: 14px;
  letter-spacing: -0.005em;
}

.service-pillar p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--gray-600);
  margin-bottom: 24px;
  flex-grow: 1;
}

.pillar-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 16px 0 0;
  border-top: 1px solid var(--gray-100);
  margin-top: auto;
}

.pillar-tags li {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-600);
  background: var(--gray-50);
  border-radius: 999px;
  padding: 5px 11px;
  letter-spacing: 0.005em;
}

/* ===== Platforms list (in About) ===== */
.platforms {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--gray-200);
}

.platforms-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-500);
  margin-bottom: 14px;
}

.platforms-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
}

.platforms-list li {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-700);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 6px 14px;
  transition: all var(--transition);
}

.platforms-list li:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-pale);
}

/* ===== AI Advisory (featured offering) ===== */
.ai-advisory {
  position: relative;
  padding: 120px 0;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.ai-advisory-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(37, 99, 235, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(59, 130, 246, 0.10) 0%, transparent 50%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
}

.ai-advisory-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 30%, transparent 80%);
}

.ai-advisory-container {
  position: relative;
}

.ai-advisory-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.ai-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--blue-light);
  padding: 6px 14px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.08);
  margin-bottom: 24px;
}

.ai-headline {
  font-size: 2.75rem;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}

.ai-sub {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto;
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

.ai-card {
  position: relative;
  padding: 36px 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.ai-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.4) 0%, rgba(59, 130, 246, 0) 60%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ai-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.ai-card:hover::before {
  opacity: 1;
}

.ai-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(59, 130, 246, 0.06));
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: var(--blue-light);
}

.ai-card-icon svg {
  width: 24px;
  height: 24px;
}

.ai-card h3 {
  color: var(--white);
  font-size: 1.1875rem;
  margin-bottom: 12px;
  letter-spacing: -0.005em;
}

.ai-card p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.65;
}

.ai-cta {
  text-align: center;
}

.ai-cta .btn {
  font-size: 1rem;
  padding: 14px 28px;
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5);
  transition: all 0.3s ease;
}

.ai-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}

.ai-cta-note {
  margin-top: 16px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

/* ===== About ===== */
.about {
  padding: 100px 0;
  background: var(--gray-50);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-content p {
  font-size: 1.0625rem;
  color: var(--gray-600);
  margin-bottom: 16px;
  line-height: 1.7;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue);
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-top: 4px;
}

.about-visual {
  display: flex;
  justify-content: center;
}

.about-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  max-width: 360px;
  box-shadow: var(--shadow-md);
}

.about-card-icon {
  width: 72px;
  height: 72px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--white);
}

.about-card-icon svg {
  width: 32px;
  height: 32px;
}

.about-card h3 {
  font-size: 1.375rem;
  margin-bottom: 4px;
}

.about-card > p:first-of-type {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 16px;
}

.about-card-desc {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ===== Contact ===== */
.contact {
  padding: 100px 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info .section-title {
  max-width: 400px;
}

.contact-info > p {
  font-size: 1.0625rem;
  color: var(--gray-500);
  margin-bottom: 32px;
  max-width: 400px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-item svg {
  width: 22px;
  height: 22px;
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item strong {
  display: block;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-400);
  margin-bottom: 2px;
  font-weight: 600;
}

.contact-item a,
.contact-item span {
  font-size: 1rem;
  color: var(--navy);
}

.contact-item a:hover {
  color: var(--blue);
}

/* Form */
.contact-form-wrap {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
}

.form-group .optional {
  font-weight: 400;
  color: var(--gray-400);
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--navy);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* ===== Footer ===== */
.footer {
  background: var(--navy);
  color: var(--gray-400);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .nav-brand {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--white);
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer h4 {
  color: var(--white);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer ul li,
.footer ul a {
  font-size: 0.9375rem;
  color: var(--gray-400);
  transition: color var(--transition);
}

.footer ul a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--navy-light);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8125rem;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.75rem; }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid-pillars {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin: 0 auto;
  }

  .ai-advisory {
    padding: 96px 0;
  }

  .ai-headline {
    font-size: 2.25rem;
  }

  .ai-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  h1 { font-size: 2rem; }

  .hero {
    padding: 120px 0 80px;
    min-height: auto;
  }

  .services, .about, .contact, .ai-advisory {
    padding: 72px 0;
  }

  .ai-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .ai-headline {
    font-size: 2rem !important;
  }

  .ai-card {
    padding: 28px !important;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    gap: 24px;
  }

  .contact-form-wrap {
    padding: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--gray-200);
  }

  .nav-links.active {
    display: flex;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    text-align: center;
  }
}

/* BlueSea visual identity */
@font-face{font-family:Montserrat;src:url('/assets/montserrat-regular.otf') format('opentype');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:Montserrat;src:url('/assets/montserrat-bold.otf') format('opentype');font-style:normal;font-weight:600 900;font-display:swap}
:root{--navy:#102D43;--navy-light:#20485d;--blue:#297D79;--blue-light:#297D79;--blue-pale:#EFE6D6;--white:#fff;--gray-50:#F8F6F1;--gray-100:#EFE6D6;--gray-200:#ddd8cb;--gray-700:#354950}
body{font-family:Montserrat,Arial,sans-serif;font-size:16px;color:var(--navy);background:var(--gray-50)}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.nav-brand{display:inline-flex;gap:.55rem;align-items:center;white-space:nowrap;font-weight:750;color:var(--navy)}
.brand-mark{width:2.2rem;height:2.2rem;object-fit:contain;flex:none}
.hero{background:var(--gray-50);padding-top:9.1rem;padding-bottom:5.5rem}
.hero>.container{display:grid;grid-template-columns: minmax(0,1fr) minmax(150px,28%);align-items:center;gap:2rem}
.hero h1,.payroll-hero h1{font-size:clamp(2.5rem,6.2vw,5rem);line-height:1.04;letter-spacing:-.055em}
.hero h1,.hero p,.hero h2{color:var(--navy)}
.hero .hero-label,.section-label,.service-number{color:var(--blue)}
.hero .hero-actions .btn-outline{border-color:var(--navy);color:var(--navy)}
.hero .hero-actions .btn-outline:hover{background:var(--navy);color:white}
.hero-sailboat{width:min(100%,245px);justify-self:center;height:auto}
.services{background:var(--gray-50)}
.service-card{background:white;border-color:var(--gray-200)}
.service-card h3{font-size:1.45rem}
.service-number{font-weight:750;letter-spacing:.14em;margin-bottom:.8rem}
.section-sub,.service-card p,.about-content>p,.contact-info>p{font-size:1.035rem;line-height:1.65}
.btn-primary{background:var(--blue);color:white}
.btn-primary:hover{background:#205f5c;color:white}
.inline-link{color:#205f5c;font-weight:750;text-decoration:underline;text-underline-offset:.2em}
#accounting,#tax,#contact{scroll-margin-top:6rem}
.footer{background:var(--navy);color:#edf4f3}
.footer .nav-brand{color:white}
.payroll-header{background:white;border-bottom:1px solid var(--gray-200)}
.payroll-header-inner{display:flex;justify-content:space-between;align-items:center;gap:.7rem;padding-top:1rem;padding-bottom:1rem}
.payroll-header nav,.payroll-footer-links{display:flex;gap:1rem;flex-wrap:wrap}
.payroll-header nav a{font-weight:650}
.payroll-header nav [aria-current]{color:var(--blue)}
.payroll-hero{padding:clamp(3rem,10vw,7.5rem) 0;background:var(--gray-50)}
.payroll-hero-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,24%);align-items:center;gap:2rem}
.payroll-hero .section-sub{margin:1.2rem 0;max-width:38rem}
.payroll-hero-grid>img{justify-self:center;height:auto}
.payroll-owner{padding:4.5rem 0;background:var(--gray-100)}
.payroll-owner p:not(.section-label){max-width:44rem;margin:0 0 1rem}
.payroll-owner .btn{margin-top:.75rem}
.payroll-footer-links{margin:1rem 0}
@media(max-width:640px){.hero{padding-top:7.4rem;padding-bottom:3.5rem}.hero>.container,.payroll-hero-grid{grid-template-columns:1fr}.hero-sailboat,.payroll-hero-grid>img{width:110px;justify-self:start}.payroll-header-inner{align-items:flex-start;flex-direction:column}.payroll-header nav{gap:.8rem;font-size:.875rem}.payroll-owner{padding:3rem 0}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
.brand-lockup{width:clamp(7rem,15vw,9rem);height:auto;flex:none}
.hero>.container,.payroll-hero-grid{position:relative;isolation:isolate;padding-top:1rem;padding-bottom:1rem}
.hero>.container::after,.payroll-hero-grid::after{content:"";position:absolute;z-index:-1;inset:0 24px 0 63%;border-radius:50% 40% 55% 45%;background:#EFE6D6;opacity:.68}
.hero .hero-content{max-width:47rem}
.hero-sub{max-width:38rem;font-size:clamp(1rem,2.2vw,1.22rem)}
.hero-label{letter-spacing:.11em}
@media(max-width:640px){.hero>.container::after,.payroll-hero-grid::after{inset:auto 12px 0 43%;min-height:8rem}.hero-sailboat,.payroll-hero-grid>img{justify-self:end;margin-right:12px}}

/* Atmospheric service tiles, with decorative grain behind persistent copy. */
#services .services-grid-pillars{gap:clamp(.9rem,2vw,1.5rem)}
#services .service-pillar{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;align-items:flex-start;min-height:clamp(19rem,30vw,24rem);padding:clamp(1.3rem,3vw,2.1rem);border:0;border-radius:1.65rem;background:linear-gradient(180deg,transparent 10%,rgba(10,32,45,.68) 55%,#102D43 100%),radial-gradient(ellipse at 24% 5%,#99B9A9,transparent 59%),radial-gradient(ellipse at 85% 41%,#61A39A,transparent 68%),#297D79;color:#fff;box-shadow:none}
#services .service-pillar:nth-child(2){background:linear-gradient(180deg,transparent 8%,rgba(10,32,45,.75) 60%,#102D43 100%),radial-gradient(ellipse at 69% 2%,#879ca9,transparent 62%),radial-gradient(ellipse at 15% 41%,#657f92,transparent 70%),#20485d}
#services .service-pillar:nth-child(3){background:linear-gradient(180deg,transparent 6%,rgba(10,32,45,.76) 55%,#102D43 100%),radial-gradient(ellipse at 65% 6%,#cbbba5,transparent 58%),radial-gradient(ellipse at 18% 45%,#518b83,transparent 70%),#297D79}
#services .service-pillar::before{content:"";position:absolute;z-index:-1;inset:0;opacity:.21;pointer-events:none;background:url('/assets/grain.svg') repeat;mix-blend-mode:soft-light}
#services .service-pillar:hover{transform:none}
#services .tile-icon{display:grid;place-items:center;width:clamp(4.15rem,7vw,5.3rem);aspect-ratio:1;color:#fff}
#services .tile-icon svg{width:100%;height:100%;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 4px rgba(16,45,67,.6))}
#services .service-number{display:none}
#services .service-pillar h3{margin-top:auto;padding-top:2rem;color:white;font-size:clamp(1.55rem,3vw,2.05rem)}
#services .service-pillar p,#services .service-pillar .inline-link{color:#fff}
#services .service-pillar p{margin-bottom:.72rem}
#services .pillar-tags li{background:rgba(248,246,241,.12);color:#f8f6f1;border:1px solid rgba(248,246,241,.32)}
#services .service-pillar a:focus-visible{outline-color:#fff}
@media(max-width:820px){#services .services-grid-pillars{grid-template-columns:1fr}#services .service-pillar{min-height:18rem}}

/* Detailed service pages use the same grain and atmospheric gradient as the home tiles. */
.detail-page .detail-hero{position:relative;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 73% 7%,#61a39a,transparent 50%),linear-gradient(130deg,#102D43 20%,#194d54 100%);color:white}
.tax-page .detail-hero{background:radial-gradient(ellipse at 76% 5%,#7b8e9a,transparent 48%),linear-gradient(135deg,#102D43 20%,#2c4b5e 100%)}
.detail-page .detail-hero::before{content:"";position:absolute;z-index:-1;inset:0;opacity:.25;pointer-events:none;background:url('/assets/grain.svg') repeat;mix-blend-mode:soft-light}
.detail-page .payroll-hero-grid::after{display:none}
.detail-page .detail-hero h1,.detail-page .detail-hero .section-sub{color:white}
.detail-page .detail-hero .section-label{color:#d8eee7}
.detail-hero-actions{display:flex;gap:.8rem;flex-wrap:wrap;align-items:center}
.detail-page .detail-hero .btn-primary{background:white;color:#102D43}
.detail-page .detail-hero .btn-primary:hover{background:#EFE6D6}
.detail-page .service-hero-secondary{border-color:white;color:white}
.detail-page .service-hero-secondary:hover{background:white;color:#102D43}
.detail-hero a:focus-visible{outline-color:white}
#financial-analysis{scroll-margin-top:2rem}
.analysis-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin:1.5rem 0}
.tile-links{display:flex;gap:.5rem 1rem;flex-wrap:wrap}
@media(max-width:640px){.analysis-grid{grid-template-columns:1fr}}

/* BlueSea editorial concept: white pages, singular coastal art, and a minimal service grid. */
:root{--art-main:url('/assets/blue-coast-hero.jpg');--art-accounting:url('/assets/blue-coast-accounting.jpg');--art-tax:url('/assets/blue-coast-tax-lighthouse.jpg');--art-payroll:url('/assets/blue-coast-payroll.jpg')}
body{background:#fff}
.navbar,.payroll-header{background:#fff!important;color:#102D43}
.hero,.detail-page .payroll-hero,.detail-page .detail-hero{padding:8rem 0 4.5rem;background:#fff;color:#102D43;text-align:center}
.hero>.container,.detail-page .payroll-hero-grid{display:block;padding-top:0;padding-bottom:0;max-width:1300px}
.hero>.container::after,.detail-page .payroll-hero-grid::after,.detail-page .detail-hero::before{display:none}
.hero .hero-content,.detail-page .payroll-hero-grid>div:first-child{margin-inline:auto;max-width:850px}
.hero h1,.detail-page .payroll-hero h1,.detail-page .detail-hero h1{color:#102D43;margin:0 auto;font-size:clamp(3rem,8vw,7.1rem);font-weight:800;line-height:1.01;letter-spacing:-.07em;text-wrap:balance}
.hero .hero-sub,.detail-page .payroll-hero .section-sub,.detail-page .detail-hero .section-sub{margin:1.5rem auto;color:#354950;max-width:37rem;font-size:clamp(1rem,2vw,1.2rem);line-height:1.6;text-wrap:pretty}
.hero-actions,.detail-hero-actions{justify-content:center;margin-bottom:0}
.detail-page .detail-hero .btn-primary{background:#102D43;color:white}
.detail-page .service-hero-secondary{border-color:#102D43;color:#102D43}
.editorial-hero-art,.editorial-service-art{min-height:0;display:block;width:100%;aspect-ratio:2.2;margin-top:4.25rem;border-radius:2rem;background:#173e50 var(--art-main) center/cover no-repeat}
.editorial-service-art{aspect-ratio:2.3;margin-top:4rem;background-image:var(--tile-art)}
.tile-accounting{--tile-art:var(--art-accounting)}.tile-tax{--tile-art:var(--art-tax)}.tile-payroll{--tile-art:var(--art-payroll)}
#services{padding:2rem 0 7rem;background:#fff}
#services>.container{max-width:1300px}
#services .section-title{max-width:none;text-align:center;margin:0 0 2.5rem;font-size:clamp(2rem,5vw,3.85rem);letter-spacing:-.055em}
#services .services-grid-pillars{grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(.8rem,2.2vw,1.8rem)}
#services .editorial-tile{display:block;aspect-ratio:1;min-height:0;padding:0;background:#28475a;border-radius:1.65rem;text-align:left}
#services .editorial-tile .art-fill{display:block;position:absolute;inset:0;background:var(--tile-art) center/cover no-repeat}
#services .editorial-tile .art-fill::after{content:"";position:absolute;inset:55% 0 0;background:linear-gradient(transparent,rgba(4,19,29,.86))}
#services .editorial-tile::before{display:none}
#services .editorial-tile .tile-icon{position:absolute;top:43%;left:50%;transform:translate(-50%,-50%);width:33%;color:#fff}
#services .editorial-tile .tile-icon svg{stroke-width:3}
#services .tile-caption{position:absolute;bottom:7%;left:8%;right:8%}
#services .tile-caption h3{padding:0;margin:0 0 .32rem;font-size:clamp(1.4rem,2.7vw,2.45rem);letter-spacing:-.04em}
#services .tile-caption p{font-size:clamp(.78rem,1.5vw,1.05rem);margin:0;line-height:1.3}
#services .editorial-tile:focus-visible{outline:4px solid #297D79;outline-offset:4px}
.detail-page .services,.detail-page .payroll-owner{background:#fff;padding:2.75rem 0 4.5rem}
.detail-page .services>.container,.detail-page .payroll-owner>.container{max-width:760px}
.detail-page .services .section-label,.detail-page .payroll-owner .section-label{display:none}
.detail-page .services .services-grid,.detail-page .analysis-grid{display:grid;grid-template-columns:1fr;gap:0}
.detail-page .service-card{border:none;border-top:1px solid #d8dddf;box-shadow:none;border-radius:0;padding:1.35rem 0;background:#fff}
.detail-page .service-card:hover{transform:none;box-shadow:none}
.detail-page #financial-analysis{background:#f8f6f1}
.detail-page #financial-analysis .service-card{background:transparent}
@media(max-width:680px){.hero,.detail-page .payroll-hero,.detail-page .detail-hero{padding:6.75rem 0 3rem}.editorial-hero-art,.editorial-service-art{aspect-ratio:1.18;margin-top:2.4rem;border-radius:1.25rem}#services .services-grid-pillars{grid-template-columns:1fr;gap:1.15rem}#services{padding-bottom:4rem}.hero-actions{flex-wrap:wrap}#services .tile-caption h3{font-size:1.85rem}#services .tile-caption p{font-size:1rem}}

.editorial-service-art.tile-tax{background-position:50% 21%}

/* Five editorial tiles share one rhythm, with two centered below on large screens. */
.tile-analytics{--tile-art:url('/assets/blue-coast-analytics.jpg')}
.tile-get-started{--tile-art:url('/assets/blue-coast-get-started.jpg')}
#services .services-grid-pillars{grid-template-columns:repeat(6,minmax(0,1fr))}
#services .editorial-tile{grid-column:span 2;overflow:hidden}
#services .editorial-tile:nth-child(4){grid-column:2/span 2}
#services .editorial-tile:nth-child(5){grid-column:4/span 2}
#services .editorial-tile .art-fill{transition:transform 360ms cubic-bezier(.2,.65,.35,1)}
@media(min-width:681px) and (hover:hover) and (pointer:fine){
  #services .tile-caption h3{transform:translateY(.72em);transition:transform 240ms ease}
  #services .tile-caption p{opacity:0;transform:translateY(.35rem);transition:opacity 200ms ease,transform 240ms ease}
  #services .editorial-tile:is(:hover,:focus-visible) .art-fill{transform:scale(1.035)}
  #services .editorial-tile:is(:hover,:focus-visible) .tile-caption h3,
  #services .editorial-tile:is(:hover,:focus-visible) .tile-caption p{transform:none}
  #services .editorial-tile:is(:hover,:focus-visible) .tile-caption p{opacity:1}
}
@media(max-width:680px){
  #services .services-grid-pillars{grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem}
  #services .editorial-tile{grid-column:span 2;border-radius:1rem}
  #services .editorial-tile:nth-child(4){grid-column:span 2}
  #services .editorial-tile:nth-child(5){grid-column:2/span 2}
  #services .tile-caption h3{font-size:clamp(1.05rem,4.9vw,1.85rem);line-height:1.05}
  #services .tile-caption p{font-size:clamp(.69rem,2.65vw,.95rem);line-height:1.2}
}
@media(prefers-reduced-motion:reduce){
  #services .editorial-tile .art-fill,#services .tile-caption h3,#services .tile-caption p{transition:none}
  #services .editorial-tile:is(:hover,:focus-visible) .art-fill{transform:none}
  #services .tile-caption h3,#services .tile-caption p{transform:none}
  #services .tile-caption p{opacity:1}
}

/* Let the services artwork be the first visual on the homepage. */
#hero.hero{padding:6.8rem 0 1.65rem}
#hero.hero .hero-sub{margin:1rem auto 1.3rem}
@media(max-width:680px){
  #hero.hero{padding:5.25rem 0 .75rem}
  #hero.hero .hero-sub{margin:.8rem auto 1rem}
  #services{padding-top:1.4rem}
  #services .section-title{margin-bottom:1.3rem}
}
#hero.hero{min-height:0}
#hero.hero .hero-content{max-width:1000px}
@media(min-width:681px){#hero.hero h1{font-size:clamp(3.4rem,6.4vw,6.15rem)}}

/* Shared editorial rhythm for home sections and service pages. */
.editorial-column{max-width:44rem;margin-inline:auto;min-width:0}
.home-editorial,.editorial-detail{padding:clamp(3.1rem,7vw,6.25rem) 0}
.home-editorial h2,.editorial-detail h2{font-size:clamp(2.08rem,5.2vw,3.85rem);letter-spacing:-.053em;line-height:1.06;text-wrap:balance;margin-bottom:1.1rem}
.home-editorial .section-label,.editorial-detail .section-label,.service-opening .section-label{font-size:.78rem;color:#205f5c;letter-spacing:.13em;margin-bottom:.85rem}
.home-editorial .editorial-column>p:not(.section-label),.editorial-detail .editorial-column>p:not(.section-label){
  color:var(--gray-700);font-size:clamp(1rem,1.9vw,1.16rem);line-height:1.74;max-width:41rem
}
.about.home-editorial{background:white;border-top:1px solid #e1e5e6}
.contact.home-editorial{background:#f8f6f1;border-top:1px solid #e9e5dc}
#about.home-editorial,#contact.home-editorial{scroll-margin-top:5rem}
.editorial-form{margin-top:2rem}
.editorial-form .contact-form{gap:1.2rem}
.editorial-form input,.editorial-form textarea{background:white;border-color:#c7cfce;min-height:3rem}
.editorial-form .btn-full{width:auto;justify-self:start;align-self:flex-start}
.service-opening{padding:clamp(3rem,6vw,6.15rem) 0 0;background:#fff}
.service-opening>.container{max-width:1300px}
.service-opening-copy{max-width:850px;margin-inline:auto;text-align:center}
.service-opening h1{font-size:clamp(2.65rem,7.4vw,6.2rem);font-weight:800;line-height:1.02;letter-spacing:-.066em;text-wrap:balance}
.service-opening .service-intro{margin:1.25rem auto 0;color:#354950;max-width:39rem;font-size:clamp(1rem,2vw,1.2rem);line-height:1.65;text-wrap:pretty}
.service-opening .editorial-service-art{margin-top:clamp(2.1rem,5vw,4rem);aspect-ratio:2.4}
.editorial-rows{margin-top:1.65rem}
.editorial-rows>div{display:grid;grid-template-columns:minmax(8rem,31%) minmax(0,1fr);gap:clamp(.75rem,2vw,1.7rem);padding:1.12rem 0;border-top:1px solid #d6dddc}
.editorial-rows>div:last-child{border-bottom:1px solid #d6dddc}
.editorial-rows dt{font-weight:700;line-height:1.45}
.editorial-rows dd{color:var(--gray-700);line-height:1.64}
.editorial-link{display:inline-block;margin-top:1.4rem;color:#205f5c;font-weight:750;text-decoration:underline;text-underline-offset:.19em}
.service-extra,#financial-analysis.service-extra{background:#f8f6f1}
.service-close{padding:clamp(2.25rem,4vw,3.75rem) 0;background:white;border-top:1px solid #e1e5e6}
.detail-page .payroll-footer-links a,.detail-page .footer-bottom p{color:#edf4f3}
.detail-page .payroll-footer-links a:hover{text-decoration:underline}
@media(max-width:680px){
  .service-opening .editorial-service-art{aspect-ratio:1.35}
  .editorial-rows>div{grid-template-columns:1fr;gap:.35rem;padding:.9rem 0}
  .editorial-form .btn-full{min-height:2.75rem}
}

/* Use the approved sailboat for Accounting; keep service banners low. */
:root{--art-accounting:url('/assets/blue-coast-hero.jpg')}
#services .tile-accounting .art-fill,.service-opening .editorial-service-art.tile-accounting{background-position:center 55%}
.service-opening{padding-top:clamp(1.5rem,3.25vw,3.25rem)}
.service-opening h1{font-size:clamp(2.55rem,6.3vw,5.4rem)}
.service-opening .service-intro{margin-top:.85rem}
.service-opening .editorial-service-art{height:clamp(10rem,21vw,15.625rem);aspect-ratio:auto;margin-top:clamp(1.35rem,2.9vw,2.55rem)}
.service-opening+.service-scope{padding-top:clamp(2.2rem,4vw,4rem)}
@media(max-width:680px){
  .service-opening .editorial-service-art{height:clamp(7.35rem,26vw,9.6875rem)}
  .service-opening .editorial-service-art.tile-accounting{background-position:center 55%}
}

/* Quiet pill actions share one treatment without changing their destinations. */
#hero .btn-primary,.editorial-form .btn-primary,.service-close .btn-primary,.navbar .nav-cta{
  display:inline-flex;align-items:center;justify-content:center;min-height:2.85rem;
  border:1px solid #c9d5d8;border-radius:999px;background:#fff;color:#102D43;
  padding:.72rem 1.32rem;box-shadow:0 3px 9px rgba(16,45,67,.09);
  font-weight:750;line-height:1.15;text-align:center;
  transition:background-color .18s,color .18s,border-color .18s;
}
#hero .btn-primary:hover,.editorial-form .btn-primary:hover,.service-close .btn-primary:hover,.navbar .nav-cta:hover{
  transform:none;background:#102D43;color:#fff;border-color:#102D43;
}
.editorial-form .btn-primary:disabled{opacity:.65;cursor:not-allowed}

/* Service Rolodex: one responsive, keyboard-accessible list for five destinations. */
.service-main{min-width:0}
.service-rail{position:relative;width:100%;background:white}
.service-rail-list{display:flex;gap:.55rem;list-style:none;margin:0;padding:.8rem max(1.05rem,calc((100% - 79rem)/2));overflow-x:auto;scroll-padding-inline:1rem;scrollbar-width:thin}
.service-rail-list>li{flex:none}
.service-rail-link{
  display:flex;align-items:center;gap:.4rem;min-height:2.75rem;
  border:1px solid transparent;border-radius:999px;padding:.22rem .63rem .22rem .26rem;
  color:#354950;white-space:nowrap;font-size:.81rem;font-weight:750;line-height:1.05;
  transition:background-color .18s,border-color .18s,color .18s
}
.service-rail-thumb{
  display:block;width:1.96rem;height:1.96rem;flex:none;border-radius:50%;
  background:#20485d var(--tile-art) center/cover no-repeat;border:1px solid rgba(16,45,67,.25)
}
.service-rail-link[aria-current]{color:#102D43;border-color:#c9d5d8;background:white;box-shadow:0 2px 7px rgba(16,45,67,.09)}
.service-rail-link[aria-current] .service-rail-thumb{outline:2px solid #102D43;outline-offset:1px}
.service-rail-link:hover{color:#102D43;background:#f8f6f1}
.service-rail-link:focus-visible{outline:2px solid #102D43;outline-offset:2px}
.service-rail-link.tile-tax .service-rail-thumb{background-position:center 25%}
.service-rail-link.tile-accounting .service-rail-thumb{background-position:center 55%}
@media(min-width:72rem) and (min-height:34rem){
  .service-main{padding-inline:clamp(10.9rem,14.5vw,13.5rem)}
  .service-rail{
    position:fixed;z-index:10;inset:50% auto auto .65rem;transform:translateY(-50%);
    width:clamp(10.05rem,13.4vw,12.35rem);background:transparent
  }
  .service-rail-list{display:grid;gap:.26rem;padding:.38rem;overflow:visible}
  .service-rail-list>li:nth-child(1),.service-rail-list>li:nth-child(5){margin-left:0}
  .service-rail-list>li:nth-child(2),.service-rail-list>li:nth-child(4){margin-left:.58rem}
  .service-rail-list>li:nth-child(3){margin-left:1.03rem}
  .service-rail-link{width:max-content;gap:.46rem;min-height:3.1rem;border:0;padding:0;white-space:nowrap;background:none!important}
  .service-rail-thumb{width:2.38rem;height:2.38rem;opacity:.77}
  .service-rail-label{padding:.42rem .48rem;border:1px solid transparent;border-radius:999px}
  .service-rail-link[aria-current]{box-shadow:none}
  .service-rail-link[aria-current] .service-rail-thumb{width:2.91rem;height:2.91rem;opacity:1;outline:2px solid #102D43;outline-offset:2px}
  .service-rail-link[aria-current] .service-rail-label{background:white;border-color:#c9d5d8;box-shadow:0 2px 9px rgba(16,45,67,.08)}
  .service-rail-link:hover .service-rail-label{background:#f8f6f1}
}
@media(max-width:680px){
  .detail-page .payroll-header-inner{flex-direction:row;align-items:center;padding-top:.64rem;padding-bottom:.64rem}
  .service-rail-list{gap:.28rem;padding-block:.7rem}
}

/* Service details have their own composed panoramas; tile art stays square. */
.service-opening .editorial-service-art{
  width:min(100%,46.875rem);height:auto;aspect-ratio:1720 / 573;
  margin-inline:auto;background-size:contain;background-position:center;
  border-radius:clamp(.9rem,2vw,1.4rem);
}
.service-opening .editorial-service-art.tile-accounting{background-image:url('/assets/blue-pano-accounting.jpg');background-position:center}
.service-opening .editorial-service-art.tile-tax{background-image:url('/assets/blue-pano-tax.jpg');background-position:center}
.service-opening .editorial-service-art.tile-payroll{background-image:url('/assets/blue-pano-payroll.jpg');background-position:center}

/* Accessible pill contrast and comfortable service navigation on phones. */
.navbar .nav-cta{color:#102D43 !important}
.navbar .nav-cta:hover{color:#fff !important}
@media(max-width:820px){
  .navbar{padding:6px 0}
  .navbar.scrolled{padding:6px 0}
  .navbar .nav-brand,.navbar .nav-toggle{min-height:44px}
  .navbar .nav-toggle{min-width:44px;align-items:center;justify-content:center}
  .navbar .nav-links{
    max-height:calc(100vh - 56px);max-height:calc(100dvh - 56px);overflow-y:auto;
    align-items:stretch;gap:.18rem;padding:.5rem clamp(.85rem,4.2vw,1.5rem) .75rem
  }
  .navbar .nav-links a:not(.nav-cta){display:flex;align-items:center;min-height:44px;padding:.45rem .65rem}
  .navbar .nav-links .nav-cta{margin:.35rem 0;min-height:44px;width:100%}
}
@media(max-width:680px){
  .container{padding-inline:clamp(1rem,4.4vw,1.5rem)}
  #hero.hero{padding-top:4.9rem;padding-bottom:.45rem}
  #hero.hero h1{font-size:clamp(2.35rem,8.75vw,3.65rem);line-height:1.035}
  #hero.hero .hero-sub{margin:.64rem auto .82rem}
  #services{padding-top:1.4rem;padding-bottom:3.4rem}
  #services .section-title{margin-bottom:1.1rem}
  #services .services-grid-pillars{gap:.78rem}
  #services .editorial-tile .art-fill::after{
    inset:32% 0 0;background:linear-gradient(transparent 3%,rgba(4,19,29,.75) 72%,rgba(4,19,29,.95))
  }
  #services .editorial-tile .tile-icon{top:34%;width:27%}
  #services .tile-caption h3{transform:none;font-size:clamp(1.12rem,4.8vw,1.85rem);line-height:1.12}
  #services .tile-caption p{transform:none;opacity:1;font-size:clamp(.79rem,3.1vw,1rem);line-height:1.27}
  #services .editorial-tile:nth-child(5){grid-column:2 / span 2}
  .home-editorial h2,.editorial-detail h2,.service-opening h1{overflow-wrap:break-word}
  .home-editorial .editorial-column>p:not(.section-label),.editorial-detail .editorial-column>p:not(.section-label){line-height:1.63}
  .editorial-form input,.editorial-form textarea{font-size:16px;width:100%;min-width:0;min-height:48px}
  .editorial-form textarea{min-height:7rem}
  .editorial-form input::placeholder,.editorial-form textarea::placeholder,.editorial-form .optional{color:#586c72;opacity:1}
  .editorial-form .btn-full{width:100%;min-height:48px}
  .editorial-form input:focus,.editorial-form textarea:focus{border-color:#205f5c;box-shadow:0 0 0 3px rgba(41,125,121,.17)}
  .contact.home-editorial .inline-link{overflow-wrap:anywhere}
  .detail-page .payroll-header-inner{padding-block:.35rem}
  .detail-page .payroll-header .nav-brand{min-height:44px}
  .service-rail-list{
    border-bottom:1px solid #eef0ef;padding:.37rem 1rem .52rem;gap:.34rem;
    max-width:100%;scroll-padding-inline:1rem;scrollbar-color:#9aacae #f7f8f7;overscroll-behavior-inline:contain
  }
  .service-rail-list:after{content:"";flex:0 0 .43rem}
  .service-rail-link{min-height:44px;min-width:4.3rem;padding:.23rem .45rem .23rem .31rem;gap:.37rem}
  .service-rail-thumb{width:1.65rem;height:1.65rem}
  .service-opening{padding-top:1.35rem}
  .service-opening h1{font-size:clamp(2.25rem,8.2vw,3.5rem)}
  .service-opening .section-label{margin-bottom:.6rem}
  .service-opening .service-intro{margin-top:.7rem;line-height:1.58}
  .service-opening .editorial-service-art{margin-top:1.15rem}
  .service-opening+.service-scope{padding-top:2.05rem}
  .editorial-link,.service-close .btn,.payroll-footer-links a{min-height:44px;display:inline-flex;align-items:center}
  .editorial-link{gap:.4rem}
  .payroll-footer-links{row-gap:0}
}
@media(max-width:359px){
  #services .services-grid-pillars{grid-template-columns:1fr}
  #services .editorial-tile,#services .editorial-tile:nth-child(4),#services .editorial-tile:nth-child(5){grid-column:1}
  #services .editorial-tile{aspect-ratio:1.38}
  #services .tile-caption h3{font-size:1.48rem}
  #services .tile-caption p{font-size:.9rem}
  #services .editorial-tile .tile-icon{width:22%}
}

/* Analytics reuses the full-width sea-stacks artwork; keep its skyline in frame. */
.service-opening .editorial-service-art.tile-analytics{background-size:cover;background-position:center 4%}
