/* ==========================================================================
   Coastline Insurance: site styles
   Premium, calm, editorial. Light-weight Figtree headings that echo the thin
   logo wordmark, the logo's navy and ocean blue, pill buttons, soft rounded
   cards on pale tints, generous whitespace, and a circle motif taken from the
   logo's arc.
   ========================================================================== */

:root {
  --navy-950: #071a30;
  --navy-900: #0b2440;
  --navy-800: #13315c;
  --navy-700: #1c4275;
  --ocean-600: #1f62a8;
  --ocean-500: #2a74c0;
  --sea-400: #5aa9dc;
  --sea-300: #8cc5ea;
  --sea-100: #e8f2fa;
  --sea-50: #f3f8fc;
  --stone-50: #f6f7f9;
  --ink: #0c1b2e;
  --heading: #1b2f48;
  --body: #46525f;
  --muted: #6b7682;
  --line: #dde3ea;
  --line-soft: #ebeff3;
  --white: #fff;
  --danger: #b42318;
  --rule-dark: rgba(255, 255, 255, 0.16);

  /* Legacy token names kept so older markup still resolves */
  --teal-600: var(--ocean-600);
  --teal-500: var(--ocean-500);
  --mist: var(--stone-50);
  --sand-50: var(--sea-50);

  --font-display: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Figtree", ui-sans-serif, system-ui, sans-serif;

  --radius: 999px;
  --radius-field: 10px;
  --radius-card: 22px;
  --radius-photo: 18px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(80px, 10vw, 144px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--heading);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1, h2, .detail__title { font-weight: 300; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.75rem); line-height: 1.06; }
h2 { font-size: clamp(2.1rem, 4vw, 3.5rem); line-height: 1.1; }
h3 { font-size: 1.25rem; line-height: 1.35; }
strong { color: var(--ink); font-weight: 600; }
::selection { background: rgba(42, 116, 192, 0.18); }
:focus-visible { outline: 2px solid var(--ocean-500); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy-900); color: #fff; padding: 10px 18px; border-radius: var(--radius); font-weight: 500; transition: top 0.2s var(--ease); }
.skip-link:focus { top: 12px; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Accent words in headlines: same weight and style, carried by color only */
.accent { font-style: normal; font-weight: inherit; color: var(--ocean-600); }
.on-dark .accent { color: var(--sea-300); }

/* Small labels above headings, letter-spaced like "INSURANCE" in the logo */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ocean-600);
}
.on-dark .eyebrow { color: var(--sea-300); }

.lead { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.7; color: var(--body); font-weight: 400; }
.on-dark { color: rgba(255, 255, 255, 0.76); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark strong { color: #fff; }
.on-dark .lead { color: rgba(255, 255, 255, 0.8); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--ocean-600);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn:hover { background: var(--navy-800); box-shadow: 0 10px 24px -14px rgba(11, 36, 64, 0.6); }
.btn .icon { width: 1.05em; height: 1.05em; transition: transform 0.3s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn--ghost:hover { background: #fff; color: var(--navy-900); border-color: #fff; box-shadow: none; }
.btn--outline { background: transparent; color: var(--ocean-600); border-color: var(--ocean-600); }
.btn--outline:hover { background: var(--ocean-600); color: #fff; border-color: var(--ocean-600); }
.btn--light { background: #fff; color: var(--navy-900); }
.btn--light:hover { background: var(--sea-100); color: var(--navy-900); }
.btn--sm { min-height: 44px; padding: 8px 22px; font-size: 0.95rem; }
.btn--block { width: 100%; }

.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ocean-600);
  text-decoration: none;
}
.link-arrow .icon { width: 1.05em; height: 1.05em; transition: transform 0.3s var(--ease); }
.link-arrow:hover .icon, a:hover .link-arrow .icon { transform: translateX(4px); }
.on-dark .link-arrow { color: var(--sea-300); }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--navy-950); color: rgba(255, 255, 255, 0.7); font-size: 0.84rem; letter-spacing: 0.01em; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar a { color: #fff; font-weight: 500; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar__group { display: flex; align-items: center; gap: 22px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.topbar .icon { width: 14px; height: 14px; opacity: 0.75; }
.topbar a.lang-pill { padding: 3px 12px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: var(--radius); font-size: 0.8rem; transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease); }
.topbar a.lang-pill:hover { text-decoration: none; background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.6); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  view-transition-name: site-header;
}
.site-header.is-scrolled { border-color: var(--line-soft); box-shadow: 0 8px 30px -22px rgba(11, 36, 64, 0.35); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; transition: min-height 0.35s var(--ease); }
.site-header.is-scrolled .site-header__inner { min-height: 70px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: 104px; height: auto; transition: width 0.35s var(--ease); }
.site-header.is-scrolled .brand img { width: 92px; }

.nav ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav a {
  position: relative;
  display: inline-block;
  padding: 10px 16px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
  color: var(--heading);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--ocean-500);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.nav a:hover { color: var(--ocean-600); }
.nav a:hover::after, .nav a[aria-current="page"]::after { opacity: 1; transform: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; font-family: var(--font-display); font-weight: 500; font-size: 0.97rem; color: var(--heading); text-decoration: none; transition: color 0.2s; }
.header-phone:hover { color: var(--ocean-600); }
.header-phone .icon { width: 16px; height: 16px; color: var(--ocean-500); }

.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; background: none; color: var(--navy-900); cursor: pointer; }
.menu-toggle .icon { width: 24px; height: 24px; }
.menu-toggle .icon--close { display: none; }
.menu-toggle[aria-expanded="true"] .icon--menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon--close { display: block; }

.mobile-menu {
  position: absolute;
  inset: 100% 0 auto 0;
  background: #fff;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 8px var(--gutter) 28px;
  box-shadow: 0 24px 40px -30px rgba(11, 36, 64, 0.4);
  opacity: 0;
  transform: translateY(-8px);
  visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
}
.mobile-menu.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.mobile-menu ul { list-style: none; }
.mobile-menu li a { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line-soft); font-family: var(--font-display); font-weight: 300; font-size: 1.4rem; color: var(--heading); text-decoration: none; }
.mobile-menu li a .icon { color: var(--ocean-500); }
.mobile-menu .actions { margin-top: 22px; }
.mobile-menu .btn { flex: 1 1 100%; }

@media (max-width: 1100px) { .header-phone { display: none; } }
@media (max-width: 960px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 640px) {
  .topbar__hide-sm { display: none; }
  .header-actions .btn { display: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section--sand { background: var(--sea-50); }
.section--mist { background: var(--stone-50); }
.section--navy { background: var(--navy-900); }
.section-head { max-width: 800px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head .lead { margin-top: 24px; max-width: 640px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head--split { max-width: none; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.section-head--split .lead { margin-top: 0; }
@media (max-width: 900px) { .section-head--split { grid-template-columns: 1fr; } }

/* ---------- Hero (home) ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-900); color: #fff; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 26, 48, 0.94) 0%, rgba(7, 26, 48, 0.8) 42%, rgba(11, 36, 64, 0.5) 75%, rgba(11, 36, 64, 0.4) 100%),
    linear-gradient(0deg, rgba(7, 26, 48, 0.7) 0%, rgba(7, 26, 48, 0) 50%);
}
/* Two thin circles echo the arc over the logo */
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -12vw;
  top: 50%;
  width: min(62vw, 820px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(140, 197, 234, 0.28);
  transform: translateY(-50%);
  pointer-events: none;
}
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); column-gap: clamp(32px, 6vw, 96px); row-gap: 0; align-items: center; padding-block: clamp(72px, 9vw, 128px) clamp(64px, 8vw, 104px); }
.hero h1 { color: #fff; max-width: 14ch; }
.hero__lead { margin-top: 26px; max-width: 560px; font-size: clamp(1.0625rem, 1.45vw, 1.25rem); color: rgba(255, 255, 255, 0.8); }
.hero .actions { margin-top: 36px; }
.hero .btn:not(.btn--ghost) { background: #fff; color: var(--navy-900); }
.hero .btn:not(.btn--ghost):hover { background: var(--sea-100); }
.hero__proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; list-style: none; font-size: 0.95rem; color: rgba(255, 255, 255, 0.84); }
.hero__proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero__proof .icon { width: 18px; height: 18px; color: var(--sea-300); }

/* "What working with us looks like": a frosted panel */
.hero-card {
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.hero-card__title { margin-bottom: 22px; font-family: var(--font-display); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sea-300); }
.hero-card ol { list-style: none; display: grid; gap: 0; counter-reset: hc; }
.hero-card li { counter-increment: hc; display: grid; grid-template-columns: 34px 1fr; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.94rem; line-height: 1.55; color: rgba(255, 255, 255, 0.72); }
.hero-card li:first-child { border-top: 0; padding-top: 0; }
.hero-card li::before { content: counter(hc, decimal-leading-zero); font-weight: 300; font-size: 0.85rem; color: var(--sea-300); padding-top: 2px; }
.hero-card strong { display: block; margin-bottom: 2px; font-family: var(--font-display); font-weight: 500; font-size: 1.02rem; color: #fff; }

.wave { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(28px, 4vw, 56px); color: var(--white); pointer-events: none; }
.wave svg { width: 100%; height: 100%; }

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero::before { background: linear-gradient(180deg, rgba(7, 26, 48, 0.88) 0%, rgba(7, 26, 48, 0.8) 55%, rgba(7, 26, 48, 0.94) 100%); }
  .hero::after { right: -40vw; width: 90vw; }
  .hero h1 { max-width: 16ch; }
  .hero-card { margin-top: 44px; }
}

/* Load-in motion for hero content */
html.js [data-hero] { opacity: 0; transform: translateY(14px); animation: rise 1s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 110ms + 120ms); }
html.js .hero__media img { transform: scale(1.06); animation: settle 2.8s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes settle { to { transform: scale(1); } }

/* ---------- Scroll reveal ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
html.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Industries: soft tinted cards ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.industry-card {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border-radius: var(--radius-card);
  background: var(--sea-50);
  border: 1px solid transparent;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.industry-card:nth-child(2) { background: #f1f3fa; }
.industry-card:nth-child(3) { background: #eef6f6; }
.industry-card:hover { transform: translateY(-4px); background: #fff; border-color: var(--line); box-shadow: 0 24px 50px -32px rgba(11, 36, 64, 0.35); }
.industry-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; isolation: isolate; border-radius: calc(var(--radius-card) - 8px); background: var(--stone-50); }
.industry-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.industry-card:hover .industry-card__media img { transform: scale(1.04); }
.industry-card__tag {
  position: absolute;
  left: 14px;
  top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--navy-900);
}
.industry-card__tag .icon { width: 15px; height: 15px; color: var(--ocean-500); }
.industry-card__body { display: flex; flex-direction: column; gap: 14px; flex: 1; padding: 24px 14px 14px; }
.industry-card__body h3 { font-size: 1.5rem; font-weight: 300; letter-spacing: -0.015em; transition: color 0.25s var(--ease); }
.industry-card:hover h3 { color: var(--ocean-600); }
.industry-card__body p { font-size: 1rem; }
.industry-card .link-arrow { margin-top: auto; padding-top: 8px; }
@media (max-width: 960px) { .industry-grid { grid-template-columns: 1fr; max-width: 560px; } }

/* Coverage tags: quiet outlined pills */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; font-family: var(--font-display); font-size: 0.8rem; font-weight: 400; color: var(--muted); }
.chips li { padding: 4px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, 0.6); }

/* ---------- Tabs: gaps we look for ---------- */
.tabs__list { display: inline-flex; gap: 4px; max-width: 100%; padding: 5px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs__list::-webkit-scrollbar { display: none; }
.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.97rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.tab .icon { width: 18px; height: 18px; }
.tab:hover { color: var(--navy-900); }
.tab[aria-selected="true"] { background: var(--navy-900); color: #fff; }
.tabs__panel { margin-top: 24px; }
.tabs__panel[hidden] { display: none; }
.tabs__panel.is-entering { animation: panel-in 0.6s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.question-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 80px); }
.question-card { padding: 30px 0 32px; border-bottom: 1px solid var(--line); }
.question-card__icon { display: none; }
.question-card h3 { font-size: 1.2rem; font-weight: 500; margin-bottom: 10px; }
.question-card p { font-size: 1rem; max-width: 54ch; }
@media (max-width: 800px) { .question-grid { grid-template-columns: 1fr; } }

.inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 40px;
  margin-top: 48px;
  padding: 28px 32px;
  border-radius: var(--radius-card);
  background: #fff;
  border: 1px solid var(--line-soft);
}
.inline-cta p { max-width: 640px; }

/* ---------- Steps: large thin numerals ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); list-style: none; counter-reset: step; }
.steps::before, .steps::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; }
.steps::before { background: var(--line); }
.steps::after { background: var(--ocean-500); transform: scaleX(0); transform-origin: left; transition: transform 2s var(--ease) 0.2s; }
.steps.is-visible::after { transform: scaleX(1); }
.step { counter-increment: step; padding-top: 32px; }
.step::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 22px; font-family: var(--font-display); font-weight: 200; font-size: clamp(2.8rem, 4vw, 3.6rem); line-height: 1; letter-spacing: -0.03em; color: var(--ocean-600); }
.step h3 { margin-bottom: 10px; }
.step p { font-size: 1rem; }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 12px; }
  .steps::before, .steps::after { display: none; }
  .step { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Storm band ---------- */
.storm {
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(900px 520px at 90% -10%, rgba(90, 169, 220, 0.22), transparent 62%),
    radial-gradient(700px 420px at 0% 110%, rgba(42, 116, 192, 0.2), transparent 60%),
    var(--navy-900);
}
.storm__lines { position: absolute; inset: auto 0 0 0; height: 60%; z-index: -1; color: rgba(140, 197, 234, 0.08); }
.storm__lines svg { width: 100%; height: 100%; }
.storm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.storm-card { display: flex; flex-direction: column; gap: 14px; padding: clamp(26px, 3vw, 36px); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius-card); background: rgba(255, 255, 255, 0.04); transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease); }
.storm-card:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(140, 197, 234, 0.35); }
.storm-card .storm-card__label { font-family: var(--font-display); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sea-300); }
.storm-card h3 { font-size: 1.4rem; font-weight: 300; letter-spacing: -0.015em; }
.storm-card p { font-size: 0.99rem; color: rgba(255, 255, 255, 0.7); }
.storm__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--rule-dark); }
.storm__foot p { max-width: 640px; }
.storm .btn { background: #fff; color: var(--navy-900); }
.storm .btn:hover { background: var(--sea-100); }
@media (max-width: 960px) { .storm-grid { grid-template-columns: 1fr; } }

/* ---------- Comparison ---------- */
.compare { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-card); background: #fff; }
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 20px 24px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); font-size: 0.98rem; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { padding-block: 18px; font-family: var(--font-display); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); background: var(--stone-50); }
.compare thead th.is-us { background: var(--navy-900); color: #fff; }
.compare tbody th { width: 22%; font-family: var(--font-display); font-weight: 500; color: var(--heading); }
.compare td.is-us { background: var(--sea-50); color: var(--ink); font-weight: 500; }
.compare td.is-us .icon { display: inline-block; vertical-align: -3px; margin-right: 6px; width: 18px; height: 18px; color: var(--ocean-500); stroke-width: 2; }
.compare__note { margin-top: 16px; font-size: 0.875rem; color: var(--muted); }
@media (max-width: 800px) {
  .compare { border: 0; border-radius: 0; background: none; }
  .compare thead { display: none; }
  .compare table, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { padding: 22px 0 8px; border-top: 1px solid var(--line); }
  .compare tbody th { padding: 0 0 10px; border: 0; font-size: 1.15rem; }
  .compare td, .compare td.is-us { padding: 8px 0; border: 0; background: none; }
  .compare td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-family: var(--font-display); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
  .compare td.is-us::before { color: var(--ocean-600); }
}

/* ---------- Founder: circle photo with an offset ring, like the logo's arc ---------- */
.founder__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(48px, 7vw, 112px); align-items: center; }
.founder__media { position: relative; }
.founder__photo { position: relative; aspect-ratio: 1; max-width: 480px; }
.founder__photo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--sea-100);
  transform: translateX(14%);
}
.founder__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--ocean-500);
  opacity: 0.45;
  transform: translateX(28%);
  pointer-events: none;
}
.founder__photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.founder__badge { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 14px; margin: -36px 0 0 8%; padding: 10px 22px 10px 10px; border-radius: var(--radius); background: #fff; box-shadow: 0 18px 40px -24px rgba(11, 36, 64, 0.4); }
.founder__badge img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.founder__badge strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1rem; line-height: 1.3; }
.founder__badge span { font-size: 0.86rem; color: var(--muted); }
.founder__copy .lead { margin-top: 24px; }
.founder__copy p + p { margin-top: 16px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 36px 0 38px; list-style: none; }
.facts li { padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.92rem; line-height: 1.5; }
.facts li strong { display: block; margin-bottom: 6px; font-family: var(--font-display); font-weight: 300; font-size: 1.55rem; line-height: 1.15; letter-spacing: -0.02em; color: var(--ocean-600); }
@media (max-width: 960px) { .founder__grid { grid-template-columns: 1fr; } .founder__photo { max-width: 360px; } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; gap: 16px; } .founder__photo { max-width: 260px; } }

/* ---------- Service list ---------- */
.service-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.service-card { grid-column: span 2; display: flex; flex-direction: column; gap: 12px; padding: clamp(26px, 3vw, 36px); border-radius: var(--radius-card); background: #fff; border: 1px solid var(--line-soft); transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.service-card:hover { border-color: var(--line); box-shadow: 0 24px 50px -36px rgba(11, 36, 64, 0.35); }
.service-card--half { grid-column: span 3; }
.service-card__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 8px; border-radius: 50%; background: var(--sea-100); color: var(--ocean-600); }
.service-card__icon .icon { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.4rem; font-weight: 300; letter-spacing: -0.015em; }
.service-card p { font-size: 1rem; max-width: 52ch; }
.service-card .link-arrow { margin-top: auto; padding-top: 8px; }
.service-card--navy { background: var(--navy-900); border-color: var(--navy-900); }
.service-grid .service-card--navy, .service-grid .service-card--navy p { color: rgba(255, 255, 255, 0.76); }
.service-grid .service-card--navy h3 { color: #fff; }
.service-grid .service-card--navy .link-arrow { color: var(--sea-300); }
.service-card--navy .service-card__icon { background: rgba(255, 255, 255, 0.1); color: var(--sea-300); }
@media (max-width: 960px) { .service-grid { grid-template-columns: 1fr 1fr; } .service-card, .service-card--half { grid-column: span 1; } .service-card--wide-sm { grid-column: span 2; } }
@media (max-width: 640px) { .service-grid { grid-template-columns: 1fr; } .service-card--wide-sm { grid-column: span 1; } }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.faq-layout .section-head { position: sticky; top: 120px; margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin: 0;
  padding: 28px 0;
  border: 0;
  background: none;
  color: var(--heading);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: color 0.25s var(--ease);
}
.faq-q:hover { color: var(--ocean-600); }
.faq-q__icon { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); color: var(--ocean-600); transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease); }
.faq-q__icon::before, .faq-q__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -0.75px 0 0 -6px; background: currentColor; transition: transform 0.4s var(--ease); }
.faq-q__icon::after { transform: rotate(90deg); }
.faq-q:hover .faq-q__icon { border-color: var(--ocean-500); }
.faq-item.is-open .faq-q__icon { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.faq-item.is-open .faq-q__icon::after { transform: rotate(0deg); }
.faq-a { display: grid; grid-template-rows: 1fr; }
html.js .faq-a { grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
html.js .faq-a > div { visibility: hidden; transition: visibility 0s linear 0.5s; }
html.js .faq-item.is-open .faq-a { grid-template-rows: 1fr; }
html.js .faq-item.is-open .faq-a > div { visibility: visible; transition-delay: 0s; }
.faq-a > div { overflow: hidden; }
.faq-a p { max-width: 64ch; padding-bottom: 28px; }
@media (max-width: 960px) { .faq-layout { grid-template-columns: 1fr; } .faq-layout .section-head { position: static; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(96px, 11vw, 160px); background: var(--navy-900); text-align: center; }
.cta-band__media { position: absolute; inset: 0; z-index: -2; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 60%; opacity: 0.3; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(760px 380px at 50% 40%, rgba(11, 36, 64, 0.5), rgba(7, 26, 48, 0.94)); }
.cta-band::after { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: min(80vw, 720px); aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(140, 197, 234, 0.18); transform: translate(-50%, -50%); pointer-events: none; }
.cta-band h2 { max-width: 20ch; margin-inline: auto; color: #fff; }
.cta-band .lead { max-width: 600px; margin: 24px auto 0; }
.cta-band .actions { justify-content: center; margin-top: 38px; }
.cta-band .btn:not(.btn--ghost) { background: #fff; color: var(--navy-900); }
.cta-band .btn:not(.btn--ghost):hover { background: var(--sea-100); }
.cta-band__note { margin-top: 24px; font-size: 0.92rem; color: rgba(255, 255, 255, 0.66); }
.cta-band__note a { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, 0.64); padding-top: clamp(64px, 8vw, 96px); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand img { width: 128px; padding: 12px 16px; border-radius: 14px; background: #fff; }
.footer-brand p { margin-top: 22px; max-width: 300px; }
.footer-col h2 { margin-bottom: 18px; font-family: var(--font-display); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sea-300); }
.footer-col ul { display: grid; gap: 12px; list-style: none; }
.footer-col a { color: rgba(255, 255, 255, 0.84); text-decoration: none; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-col li { display: flex; gap: 10px; align-items: flex-start; }
.footer-col .icon { width: 16px; height: 16px; margin-top: 5px; color: var(--sea-400); }
.footer-legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.82rem; color: rgba(255, 255, 255, 0.46); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 22px 32px; font-size: 0.86rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-bottom a { color: rgba(255, 255, 255, 0.66); text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Mobile call / quote bar ---------- */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: none;
  grid-template-columns: 1fr 1.4fr;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(7, 26, 48, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(110%);
  transition: transform 0.45s var(--ease);
}
.mobile-cta.is-visible { transform: none; }
.mobile-cta .btn { min-height: 46px; padding-inline: 14px; }
.mobile-cta .btn:not(.btn--ghost) { background: #fff; color: var(--navy-900); }
@media (max-width: 760px) { .mobile-cta { display: grid; } .site-footer { padding-bottom: 76px; } }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--sea-50); padding-block: clamp(64px, 9vw, 120px) clamp(72px, 9vw, 128px); }
.page-hero::after { content: ""; position: absolute; z-index: -1; right: -180px; top: -220px; width: 560px; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(42, 116, 192, 0.16); pointer-events: none; }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); }
.page-hero .lead { margin-top: 24px; max-width: 580px; }
.page-hero .actions { margin-top: 34px; }
.page-hero__photo { overflow: hidden; aspect-ratio: 4 / 3.2; border-radius: var(--radius-photo); background: var(--stone-50); }
.page-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__float { margin-top: 18px; padding: 16px 20px; border-radius: 16px; background: #fff; font-size: 0.95rem; line-height: 1.5; box-shadow: 0 18px 40px -30px rgba(11, 36, 64, 0.4); }
.page-hero__float strong { display: block; margin-bottom: 2px; font-family: var(--font-display); font-weight: 500; }
.page-hero--simple .page-hero__grid { grid-template-columns: 1fr; }
.page-hero--simple h1 { max-width: 18ch; }
@media (max-width: 960px) { .page-hero__grid { grid-template-columns: 1fr; } .page-hero__media { max-width: 580px; } }

.subnav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; list-style: none; }
.subnav a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font-family: var(--font-display); font-weight: 500; font-size: 0.93rem; color: var(--heading); text-decoration: none; transition: border-color 0.25s var(--ease), color 0.25s var(--ease); }
.subnav a:hover { border-color: var(--ocean-500); color: var(--ocean-600); }
.subnav .icon { width: 16px; height: 16px; color: var(--ocean-500); }

/* ---------- Commercial: industry detail rows ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.detail + .detail { margin-top: clamp(80px, 10vw, 144px); }
.detail--flip .detail__media { order: 2; }
.detail__media { overflow: hidden; aspect-ratio: 4 / 3.4; border-radius: var(--radius-photo); background: var(--stone-50); }
.detail__media img { width: 100%; height: 100%; object-fit: cover; }
.detail__copy .lead { margin-top: 20px; }
.detail__title { font-size: clamp(1.9rem, 3vw, 2.7rem); line-height: 1.12; }
.detail__lists { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.detail__lists h3 { margin-bottom: 14px; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ocean-600); }
.checklist { display: grid; gap: 10px; list-style: none; }
.checklist li { position: relative; padding-left: 28px; font-size: 0.99rem; line-height: 1.55; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--sea-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f62a8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.checklist--q li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f62a8' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E"); }
.detail .actions { margin-top: 32px; }
@media (max-width: 960px) { .detail { grid-template-columns: 1fr; } .detail--flip .detail__media { order: 0; } .detail__media { max-width: 600px; } }
@media (max-width: 560px) { .detail__lists { grid-template-columns: 1fr; } }

/* ---------- Coverage grid ---------- */
.coverage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.coverage-card { display: flex; flex-direction: column; gap: 10px; padding: clamp(24px, 3vw, 32px); border-radius: var(--radius-card); background: var(--sea-50); transition: background-color 0.4s var(--ease); }
.coverage-card:hover { background: var(--sea-100); }
.coverage-card__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 8px; border-radius: 50%; background: #fff; color: var(--ocean-600); }
.coverage-card__icon .icon { width: 22px; height: 22px; }
.coverage-card h3 { font-size: 1.2rem; font-weight: 500; }
.coverage-card p { font-size: 0.98rem; }
.coverage-card__note { margin-top: auto; padding-top: 10px; font-size: 0.9rem; color: var(--muted); }
.coverage-card__note strong { color: var(--navy-800); }
.coverage-card--cta { background: var(--navy-900); color: rgba(255, 255, 255, 0.76); }
.coverage-card--cta:hover { background: var(--navy-800); }
.coverage-card--cta h3, .coverage-card--cta strong { color: #fff; }
.coverage-card--cta .btn { background: #fff; color: var(--navy-900); }
.coverage-card--cta .actions { margin-top: 8px; }
@media (max-width: 960px) { .coverage-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .coverage-grid { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.story { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 112px); }
.story__body p + p { margin-top: 18px; }
.story__body .lead { color: var(--heading); font-weight: 300; font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.55; }
.profile { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; max-width: 1000px; margin-inline: auto; }
.profile__photo { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 10px var(--sea-100); }
@media (max-width: 760px) { .profile { grid-template-columns: 1fr; } .profile__photo { width: 150px; height: 150px; } }
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; }
.principles li { padding: clamp(24px, 3vw, 32px); border-radius: var(--radius-card); background: var(--sea-50); }
.principles .icon { width: 24px; height: 24px; margin-bottom: 18px; color: var(--ocean-600); }
.principles h3 { margin-bottom: 8px; font-size: 1.15rem; }
.principles p { font-size: 0.97rem; }
.visit { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.visit__photo { overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--radius-photo); background: var(--stone-50); }
.visit__photo img { width: 100%; height: 100%; object-fit: cover; }
.visit__body ul { display: grid; gap: 14px; margin: 26px 0 30px; padding-top: 24px; border-top: 1px solid var(--line); list-style: none; }
.visit__body li { display: flex; gap: 12px; }
.visit__body .icon { margin-top: 3px; color: var(--ocean-500); }
@media (max-width: 960px) { .story, .visit { grid-template-columns: 1fr; } .principles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }

/* ---------- Personal ---------- */
.personal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.personal-card { padding: clamp(28px, 3.5vw, 44px); border-radius: var(--radius-card); background: var(--sea-50); }
.personal-card .service-card__icon { margin-bottom: 18px; background: #fff; }
.personal-card h3 { font-size: 1.6rem; font-weight: 300; letter-spacing: -0.015em; margin-bottom: 12px; }
.personal-card .checklist { margin-top: 22px; }
.personal-card .checklist li::before { background-color: #fff; }
.who-for { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); list-style: none; }
.who-for li { padding-top: 24px; border-top: 1px solid var(--rule-dark); color: rgba(255, 255, 255, 0.76); }
.who-for li strong { display: block; margin-bottom: 6px; font-family: var(--font-display); font-weight: 400; color: #fff; font-size: 1.2rem; }
@media (max-width: 860px) { .personal-grid, .who-for { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Forms ---------- */
.form-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.form-section__title { display: flex; align-items: baseline; gap: 12px; margin-bottom: 22px; font-family: var(--font-display); font-size: 1.3rem; font-weight: 300; color: var(--heading); }
fieldset.form-section, .choice-group { min-width: 0; margin: 0; padding: 0; border: 0; }
fieldset.form-section > legend, .choice-group > legend { float: left; width: 100%; padding: 0; }
fieldset.form-section > legend + *, .choice-group > legend + * { clear: both; }
.form-section--divided { margin-top: 38px; padding-top: 32px; border-top: 1px solid var(--line); }
.choice-group { margin-top: 18px; }
.choice-group > legend { margin-bottom: 10px; }
.field { display: grid; gap: 8px; }
.field + .field, .field-row + .field, .field + .field-row, .field-row + .field-row { margin-top: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.label { font-weight: 500; font-size: 0.95rem; color: var(--heading); }
.label .opt { margin-left: 6px; font-weight: 400; font-size: 0.85rem; color: var(--muted); }
.input {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid #ccd5de;
  border-radius: var(--radius-field);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
textarea.input { min-height: 130px; resize: vertical; line-height: 1.55; }
select.input { appearance: none; padding-right: 44px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313315c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 16px center / 18px no-repeat; }
.input::placeholder { color: #8e99a4; }
.input:hover { border-color: #a6b3bf; }
.input:focus { outline: none; border-color: var(--ocean-500); box-shadow: 0 0 0 4px rgba(42, 116, 192, 0.14); }
.input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.1); }
.field-error { font-size: 0.875rem; color: var(--danger); }
.field-error:empty { display: none; }
.help { font-size: 0.875rem; color: var(--muted); line-height: 1.5; }
.help--tip { display: flex; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--sea-50); color: var(--navy-800); }
.help--tip .icon { margin-top: 2px; color: var(--ocean-500); width: 18px; height: 18px; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.segmented__opt { position: relative; }
.segmented__opt input { position: absolute; opacity: 0; pointer-events: none; }
.segmented__opt label {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  height: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.segmented__opt label:hover { border-color: #a6b3bf; }
.segmented__opt .service-card__icon { width: 40px; height: 40px; margin: 0; }
.segmented__opt .service-card__icon .icon { width: 20px; height: 20px; }
.segmented__opt strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.02rem; }
.segmented__opt span.sub { font-size: 0.9rem; color: var(--muted); line-height: 1.4; }
.segmented__opt input:checked + label { border-color: var(--ocean-500); box-shadow: inset 0 0 0 1px var(--ocean-500); background: var(--sea-50); }
.segmented__opt input:focus-visible + label { outline: 2px solid var(--ocean-500); outline-offset: 3px; }
.pill-choice { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-choice input { position: absolute; opacity: 0; pointer-events: none; }
.pill-choice label { display: inline-flex; padding: 9px 18px; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 500; font-size: 0.95rem; color: var(--heading); cursor: pointer; transition: all 0.2s var(--ease); }
.pill-choice label:hover { border-color: #a6b3bf; }
.pill-choice input:checked + label { border-color: var(--navy-900); background: var(--navy-900); color: #fff; }
.pill-choice input:focus-visible + label { outline: 2px solid var(--ocean-500); outline-offset: 3px; }

.conditional { display: grid; grid-template-rows: 1fr; opacity: 1; transition: grid-template-rows 0.45s var(--ease), opacity 0.35s var(--ease); }
.conditional > div { overflow: hidden; }
.conditional.is-collapsed { grid-template-rows: 0fr; opacity: 0; }

.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: 0.97rem; }
.checkbox input { flex: none; width: 20px; height: 20px; margin-top: 3px; accent-color: var(--ocean-600); }
.form-disclaimer { margin-top: 16px; font-size: 0.875rem; color: var(--muted); }
.form-submit { margin-top: 28px; }
.form-status { margin-top: 18px; padding: 12px 16px; border-radius: 12px; font-size: 0.96rem; }
.form-status:empty { display: none; }
.form-status--error { background: #fdf1ef; color: #7a1a12; }
.honeypot { position: absolute !important; left: -9999px; }

.form-success { text-align: center; padding: clamp(24px, 5vw, 56px) 8px; }
.form-success__check { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%; background: var(--sea-100); color: var(--ocean-600); }
.form-success__check .icon { width: 40px; height: 40px; stroke-width: 2; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 0.8s var(--ease) 0.2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-success h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.form-success p { max-width: 520px; margin: 14px auto 0; }
.form-success .note { margin-top: 18px; font-size: 0.875rem; color: var(--muted); }

.aside-stack { display: grid; gap: 16px; position: sticky; top: 108px; }
.aside-card { padding: 28px; border-radius: var(--radius-card); background: var(--sea-50); }
.aside-card--navy { background: var(--navy-900); color: rgba(255, 255, 255, 0.76); }
.aside-card--navy h2, .aside-card--navy h3, .aside-card--navy strong { color: #fff; }
.aside-card h2 { font-size: 1.35rem; font-weight: 300; margin-bottom: 16px; }
.next-steps { display: grid; gap: 16px; list-style: none; }
.next-steps li { font-size: 0.97rem; line-height: 1.55; }
.contact-list { display: grid; gap: 14px; list-style: none; font-size: 0.97rem; }
.contact-list li { display: flex; gap: 12px; }
.contact-list .icon { margin-top: 3px; color: var(--ocean-500); }
.contact-list a { color: var(--navy-900); font-weight: 500; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 16px; font-family: var(--font-display); font-size: 0.8rem; font-weight: 400; }
.chip-row li { padding: 4px 12px; border: 1px solid currentColor; border-radius: var(--radius); }
.aside-card--navy .chip-row { color: var(--sea-300); }
@media (max-width: 960px) { .form-layout { grid-template-columns: 1fr; } .aside-stack { position: static; } }
@media (max-width: 640px) { .field-row, .segmented { grid-template-columns: 1fr; } }

/* ---------- Legal / prose ---------- */
.prose { max-width: 720px; }
.prose h2 { margin: 44px 0 12px; font-size: 1.6rem; }
.prose p + p, .prose ul { margin-top: 12px; }
.prose ul { padding-left: 22px; }
.prose li + li { margin-top: 6px; }

/* ---------- Page transitions (supporting browsers only) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.28s var(--ease) both vt-out; }
::view-transition-new(root) { animation: 0.45s var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  html.js [data-reveal], html.js [data-hero] { opacity: 1; transform: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* Specialties strip across the bottom of the hero */
.hero__focus { grid-column: 1 / -1; margin-top: clamp(48px, 6vw, 72px); padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.hero__focus ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 12px; }
.hero__focus-label { margin: 0 14px 0 0; font-family: var(--font-display); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sea-300); }
.hero__focus a { display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: var(--radius); font-family: var(--font-display); font-weight: 400; font-size: 0.94rem; color: #fff; text-decoration: none; transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease); }
.hero__focus-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: var(--sea-300); transition: background-color 0.3s var(--ease), color 0.3s var(--ease); }
.hero__focus-icon .icon { width: 16px; height: 16px; }
.hero__focus a:hover, .hero__focus a:focus-visible { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.4); }
.hero__focus a:hover .hero__focus-icon { background: #fff; color: var(--navy-900); }
.hero__focus a:focus-visible { outline: 2px solid var(--sea-300); outline-offset: 3px; }
@media (max-width: 960px) { .hero__focus-label { flex-basis: 100%; margin: 0 0 4px; } }
@media (max-width: 560px) { .hero__focus a { font-size: 0.88rem; } }
