/* ==========================================================================
   Marquee Doctors Medical Center: design system & layout
   Type: Source Serif 4 (headings) + Inter (UI & body)
   ========================================================================== */
:root {
  /* Brand (from logo) */
  --brand: #3A9C9B;
  --mint: #8FD3C6;
  /* Accessible UI tones */
  --primary: #1F7A79;        /* 5.0:1 on white */
  --primary-dark: #155E5E;
  --navy: #0E3438;
  --navy-2: #12434A;
  --mint-50: #F4FAF9;
  --mint-100: #E3F3EF;
  --ink: #13292C;
  --ink-soft: #4B6266;
  --line: #DCE8E6;
  --alert: #B83A30;
  --alert-bg: #FDF1EF;
  --white: #FFFFFF;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(14, 52, 56, .06), 0 2px 8px rgba(14, 52, 56, .04);
  --shadow: 0 12px 40px -12px rgba(14, 52, 56, .18);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* the hidden attribute always wins over component display rules */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
button { font: inherit; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

/* ---------- Typography scale ---------- */
h1 { font: 600 clamp(36px, 4.1vw, 56px)/1.1 var(--serif); letter-spacing: -.015em; }
.h2 { font: 600 clamp(30px, 3.3vw, 44px)/1.15 var(--serif); letter-spacing: -.01em; }
.h3 { font: 600 clamp(24px, 2.2vw, 30px)/1.2 var(--serif); }
.lead { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.65; color: var(--ink); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px;
  font: 600 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--primary);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: var(--brand); }
.eyebrow-light { color: var(--mint); }
.eyebrow-light::before { background: var(--mint); }
.section-sub { color: var(--ink-soft); font-size: 17px; max-width: 62ch; margin: 18px 0 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 12px 24px; border-radius: 10px; border: 1.5px solid transparent;
  font: 600 15px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 42px; padding: 9px 18px; font-size: 14px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px -6px rgba(31, 122, 121, .55); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { color: var(--primary); border-color: var(--primary); background: #fff; }
.btn-outline:hover { background: var(--mint-100); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--mint-100); }
.link-arrow { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; font-size: 15px; color: var(--primary); text-decoration: none; }
.link-arrow span { transition: transform .3s var(--ease); }
a:hover > .link-arrow span, .link-arrow:hover span { transform: translateX(4px); }

/* ---------- Utility bar ---------- */
.utility { background: var(--navy); color: rgba(255,255,255,.88); font-size: 13.5px; }
.utility-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 42px; padding-top: 8px; padding-bottom: 8px; }
.utility-alert { display: flex; align-items: flex-start; gap: 10px; margin: 0; line-height: 1.5; }
.utility-alert svg { flex: none; width: 17px; height: 17px; margin-top: 1px; fill: none; stroke: #FFB4A8; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.utility-alert strong { color: #fff; font-weight: 600; }
.utility a { color: #fff; }
.utility-links { display: flex; gap: 22px; flex: none; }
.utility-links a { text-decoration: none; color: rgba(255,255,255,.8); }
.utility-links a:hover { color: #fff; text-decoration: underline; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px -12px rgba(14,52,56,.18); }
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand img { height: 64px; width: auto; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; }
.nav a {
  display: block; padding: 8px 12px; border-radius: 8px;
  font: 500 15px/1.2 var(--sans); color: var(--ink); text-decoration: none;
  transition: background-color .2s, color .2s;
}
.nav a:hover { background: var(--mint-50); color: var(--primary); }
.nav a.active { color: var(--primary); background: var(--mint-100); }
.menu-toggle, .mobile-menu { display: none; }

/* ---------- Hero ----------
   The hero always fills exactly one screen: the viewport height minus the
   notice bar and header (--chrome-h is measured in main.js). Type and spacing
   scale with the viewport height so the content never overflows. */
.hero {
  --hero-h: calc(100vh - var(--chrome-h, 127px));
  position: relative; overflow: hidden; isolation: isolate;
  height: var(--hero-h); height: calc(100svh - var(--chrome-h, 127px));
  min-height: 460px;
  display: flex; align-items: center;
  background: var(--mint-50);
  padding: clamp(16px, 4svh, 56px) 0 clamp(28px, 7svh, 88px);
}
#hero-canvas { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34%; z-index: 1; pointer-events: none; -webkit-mask-image: linear-gradient(to top, #000 30%, transparent); mask-image: linear-gradient(to top, #000 30%, transparent); }
.hero-grid { position: relative; z-index: 2; display: block; width: 100%; }
.hero-copy { max-width: 600px; }

/* Full-width photo banner, blended into the page */
.hero-bg { position: absolute; inset: 0 0 0 22%; z-index: 0; overflow: hidden; } /* keep zoom/parallax inside the fade */
.hero-bg picture { display: block; position: absolute; inset: 0; }
/* 8% taller than its frame (extra at the bottom) so the scroll parallax never exposes an edge */
.hero-bg img { position: absolute; left: 0; top: 0; display: block; width: 100%; height: 108%; object-fit: cover; object-position: 58% 0%; will-change: transform; }
/* Hide the hero copy until the web fonts are ready, so the headline never reflows */
.js:not(.fonts-ready) .hero-copy { visibility: hidden; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, var(--mint-50) 0%, rgba(244,250,249,.97) 22%, rgba(244,250,249,.86) 36%, rgba(244,250,249,.4) 50%, rgba(244,250,249,0) 66%),
    linear-gradient(0deg, #FFFFFF 0%, rgba(255,255,255,.85) 10%, rgba(255,255,255,0) 30%),
    linear-gradient(180deg, rgba(244,250,249,.5) 0%, rgba(244,250,249,0) 14%);
}
.hero-credit { position: absolute; right: var(--gutter); bottom: clamp(12px, 2.4svh, 24px); z-index: 1; margin: 0; padding: 5px 10px; border-radius: 6px; background: rgba(255,255,255,.75); backdrop-filter: blur(6px); font-size: 12.5px; color: var(--ink-soft); }
.status-chip {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 clamp(10px, 2.6svh, 22px);
  padding: 7px 14px 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font: 600 13px/1 var(--sans); color: var(--primary); box-shadow: var(--shadow-sm);
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #E0A13A; }
.pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #E0A13A; animation: pulse 2s infinite; }
@keyframes pulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.hero h1 { max-width: 20ch; margin-bottom: clamp(10px, 2.6svh, 22px); font-size: clamp(28px, min(4.1vw, 6.4svh), 56px); }
.hero-lead { font-size: clamp(15px, min(1.4vw, 2.3svh), 19px); line-height: 1.6; color: var(--ink-soft); max-width: 54ch; margin-bottom: clamp(14px, 3.6svh, 32px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; gap: clamp(24px, 4vw, 48px); margin: clamp(14px, 4.4svh, 40px) 0 0; padding-top: clamp(10px, 3svh, 28px); border-top: 1px solid var(--line); }
.hero-facts div { display: flex; flex-direction: column-reverse; }
.hero-facts dt { font-size: 13px; color: var(--ink-soft); }
.hero-facts dd { margin: 0; font: 600 clamp(22px, 3.4svh, 30px)/1.15 var(--serif); color: var(--navy); }
/* Short desktop screens: drop the facts row (the same figures appear in the stats band) */
@media (min-width: 861px) and (max-height: 640px) { .hero-facts { display: none; } }

/* ---------- Quick access ---------- */
.quick { position: relative; z-index: 3; margin-top: 0; padding-top: 24px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; padding: 0; width: calc(100% - 2 * var(--gutter)); max-width: calc(1200px - 2 * var(--gutter)); }
.quick-tile { display: flex; align-items: center; gap: 16px; padding: 24px 26px; text-decoration: none; color: var(--ink); border-right: 1px solid var(--line); transition: background-color .25s; }
.quick-tile:last-child { border-right: 0; }
.quick-tile:hover { background: var(--mint-50); }
.quick-tile svg { flex: none; width: 44px; height: 44px; padding: 9px; border-radius: 12px; background: var(--mint-100); fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: background-color .25s, stroke .25s; }
.quick-tile:hover svg { background: var(--primary); stroke: #fff; }
.quick-tile strong { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.quick-tile small { display: block; font-size: 13.5px; color: var(--ink-soft); line-height: 1.4; margin-top: 2px; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.split-head { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.split-head .section-sub { max-width: 48ch; margin: 0; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-grid .h2 { max-width: 22ch; }
.about-grid:not(.about-home) > :first-child { position: sticky; top: calc(var(--header-h) + 32px); }
.about-body p:not(.lead) { color: var(--ink-soft); }
.about-home { align-items: center; }
.about-home .lead { margin: 24px 0 28px; max-width: 54ch; }
.about-points { padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: var(--mint-50); border: 1px solid var(--line); }
.about-points-label { margin: 0 0 20px; font: 600 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.about-points ul { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.about-points li { padding-left: 20px; border-left: 2px solid var(--brand); }
.about-points h3 { font: 600 18px/1.3 var(--serif); color: var(--navy); margin: 0 0 6px; }
.about-points li p { margin: 0; font-size: 15.5px; color: var(--ink-soft); }
.founder-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.founder-facts[hidden] { display: none; }
.founder-facts dt { font-size: 13px; color: var(--ink-soft); }
.founder-facts dd { margin: 4px 0 0; font: 600 28px/1.1 var(--serif); color: var(--navy); }
.mvv { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-top: clamp(48px, 6vw, 72px); }
.mvv-card { padding: 32px; border-radius: var(--radius); background: var(--mint-50); border: 1px solid var(--line); }
.mvv-card h3 { font: 600 22px/1.25 var(--serif); margin-bottom: 12px; color: var(--navy); }
.mvv-card p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.mvv-values ul { display: grid; gap: 8px; }
.mvv-values li { position: relative; padding-left: 24px; font-size: 16px; color: var(--ink-soft); }
.mvv-values li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 12px; margin-top: -4px; border-radius: 3px; background: var(--brand); clip-path: polygon(35% 0, 65% 0, 65% 35%, 100% 35%, 100% 65%, 65% 65%, 65% 100%, 35% 100%, 35% 65%, 0 65%, 0 35%, 35% 35%); }

/* ---------- Why ---------- */
.why { background: var(--navy); color: #fff; padding: clamp(72px, 9vw, 112px) 0; position: relative; overflow: hidden; }
.why::after { content: ""; position: absolute; right: -160px; top: -220px; width: 480px; height: 480px; background: url("../img/logo-mark-web.png") center/contain no-repeat; opacity: .05; pointer-events: none; }
.why .h2 { color: #fff; }
.why-head { margin-bottom: 48px; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-item { padding: 28px 26px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(143,211,198,.18); }
.why-num { display: block; font: 600 14px/1 var(--sans); color: var(--mint); letter-spacing: .08em; margin-bottom: 18px; }
.why-item h3 { font: 600 20px/1.3 var(--serif); color: #fff; margin-bottom: 10px; }
.why-item p { font-size: 15.5px; color: rgba(255,255,255,.75); margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; padding-top: 40px; border-top: 1px solid rgba(143,211,198,.2); }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 0 20px; border-left: 1px solid rgba(143,211,198,.2); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num { font: 600 clamp(32px, 3.6vw, 46px)/1.1 var(--serif); color: var(--mint); }
.stat-label { font-size: 14px; color: rgba(255,255,255,.72); }

/* ---------- Services (tabs) ---------- */
.services { background: #fff; }
.tab-list { display: flex; gap: 6px; padding: 6px; background: var(--mint-50); border: 1px solid var(--line); border-radius: 12px; width: fit-content; max-width: 100%; overflow-x: auto; margin-bottom: 32px; }
.tab-list [role="tab"] {
  flex: none; padding: 11px 20px; border: 0; border-radius: 8px; background: transparent; cursor: pointer;
  font: 600 15px/1.2 var(--sans); color: var(--ink-soft); transition: background-color .25s, color .25s, box-shadow .25s;
}
.tab-list [role="tab"]:hover { color: var(--primary); }
.tab-list [role="tab"][aria-selected="true"] { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc { position: relative; padding: 26px 26px 26px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .25s, box-shadow .25s, transform .3s var(--ease); }
.svc::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.svc:hover { border-color: var(--mint); box-shadow: var(--shadow); transform: translateY(-2px); }
.svc h3 { font: 600 18px/1.3 var(--sans); margin-bottom: 8px; }
.svc p { margin: 0; font-size: 15.5px; color: var(--ink-soft); line-height: 1.6; }
.svc-alert::before { background: var(--alert); }

/* ---------- Patients ---------- */
.patients { background: var(--mint-50); }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guide { display: flex; flex-direction: column; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.guide h3 { font: 600 18px/1.3 var(--sans); margin-bottom: 8px; }
.guide p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.6; }
.tag { margin-top: auto; align-self: flex-start; padding: 5px 10px; border-radius: 6px; font: 600 12px/1.2 var(--sans); background: var(--mint-100); color: var(--primary-dark); }
.tag-progress { background: #FFF4E0; color: #8A5A00; }

/* ---------- Join (doctors + careers) ---------- */
.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.join-card { padding: clamp(32px, 4vw, 48px); border-radius: var(--radius-lg); display: flex; flex-direction: column; align-items: flex-start; }
.join-card .h3 { margin-bottom: 14px; }
.join-card > p { font-size: 16px; }
.join-card .btn { margin-top: auto; }
.join-doctors { background: linear-gradient(140deg, var(--navy) 0%, var(--navy-2) 60%, #1B5E61 100%); color: rgba(255,255,255,.82); }
.join-doctors .h3 { color: #fff; }
.join-careers { background: #fff; border: 1px solid var(--line); color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 32px; }
.chips li { padding: 7px 14px; border-radius: 999px; font-size: 14px; color: #fff; border: 1px solid rgba(143,211,198,.35); background: rgba(255,255,255,.05); }
.role-list { display: grid; gap: 0; width: 100%; margin: 4px 0 32px; border-top: 1px solid var(--line); }
.role-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.role-list span { white-space: nowrap; font-weight: 600; color: var(--ink); font-size: 15.5px; }
.role-list small { font-size: 14px; color: var(--ink-soft); text-align: right; }

/* ---------- Leadership ---------- */

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; background: #fff; transition: border-color .25s, box-shadow .25s, transform .3s var(--ease); }
.news-card:hover { border-color: var(--mint); box-shadow: var(--shadow); transform: translateY(-3px); }
.news-meta { font-size: 13px; font-weight: 600; color: var(--primary); letter-spacing: .02em; margin-bottom: 12px; }
.news-card h3 { font: 600 21px/1.3 var(--serif); margin-bottom: 10px; }
.news-card p { font-size: 15.5px; color: var(--ink-soft); }
.news-card .link-arrow { margin-top: auto; }

/* ---------- FAQ ---------- */
.news { background: var(--mint-50); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0;
  cursor: pointer; list-style: none; font: 600 17px/1.4 var(--sans); color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--mint-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F7A79' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform .3s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--primary); }
.faq-list details > div { padding: 0 48px 22px 0; color: var(--ink-soft); font-size: 16px; }
.faq-list details > div p { margin: 0; }

/* ---------- Contact ---------- */
.contact { background: var(--mint-50); }
.contact-head { margin-bottom: 32px; }
.contact-head .h2 { margin-bottom: 18px; }
.status-list { display: flex; flex-wrap: wrap; gap: 8px; }
.status-list li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.dot-amber { background: #E0A13A; }

/* Channels */
.channel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.channel { display: flex; flex-direction: column; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.channel-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 12px; background: var(--mint-100); }
.channel-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--primary); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.channel h3 { font: 600 18px/1.3 var(--sans); margin-bottom: 6px; }
.channel p { font-size: 15px; line-height: 1.55; color: var(--ink-soft); margin-bottom: 18px; }
.channel-action {
  margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 10px 16px;
  border-radius: 10px; border: 1.5px solid var(--primary); font: 600 15px/1.2 var(--sans); color: var(--primary); text-decoration: none;
  word-break: break-all; transition: background-color .2s, color .2s;
}
.channel-action:hover { background: var(--primary); color: #fff; }
.channel-emergency { background: var(--alert-bg); border-color: #F2C9C3; }
.channel-emergency .channel-icon { background: #fff; }
.channel-emergency .channel-icon svg { stroke: var(--alert); }
.channel-emergency .channel-action { background: var(--alert); border-color: var(--alert); color: #fff; }
.channel-emergency .channel-action:hover { background: #9A2F27; border-color: #9A2F27; }

/* Location: large map with an overlay card */
.location { position: relative; margin-bottom: 24px; }
.map { position: relative; height: clamp(420px, 42vw, 520px); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--mint-100); }
.map-canvas { position: absolute; inset: 0; }
.map-fallback { position: absolute; inset: 0; display: grid; place-content: center; gap: 8px; text-align: center; padding: 24px; font-size: 15px; color: var(--ink-soft); }
.map-fallback p { margin: 0; }
.map-fallback a { font-weight: 600; }
.map.is-ready .map-fallback { display: none; }
.location-card {
  position: absolute; left: 24px; top: 24px; bottom: 24px; z-index: 2; width: min(360px, 40%); overflow-y: auto;
  padding: 26px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow), 0 0 0 1px var(--line);
}
.location-card h3 { font: 600 22px/1.25 var(--serif); margin-bottom: 10px; }
.location-card address { font-size: 16px; line-height: 1.55; color: var(--ink); }
.copy-btn {
  display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 18px; padding: 6px 10px 6px 8px; border: 0; border-radius: 8px;
  background: var(--mint-50); color: var(--primary); font: 600 13.5px/1.2 var(--sans); cursor: pointer; transition: background-color .2s;
}
.copy-btn:hover { background: var(--mint-100); }
.copy-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.copy-btn.copied { color: #1E7A3C; }
.nav-apps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-bottom: 20px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.location-card h4 { font: 600 14px/1.3 var(--sans); margin-bottom: 10px; }
.landmarks { display: grid; gap: 8px; }
.landmarks li { position: relative; padding-left: 18px; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.landmarks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

/* Pulsing location pin with name label */
.map-pin { position: relative; width: 64px; height: 64px; cursor: pointer; }
.map-pin .pin-pulse { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(31, 122, 121, .35); animation: pin-pulse 2.2s cubic-bezier(.22, 1, .36, 1) infinite; }
.map-pin .pin-pulse.p2 { animation-delay: 1.1s; }
.map-pin .pin-core {
  position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  display: grid; place-items: center; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 3px var(--primary), 0 8px 20px -6px rgba(14, 52, 56, .5);
}
.map-pin .pin-core img { width: 30px; height: auto; }
.map-pin .pin-label {
  position: absolute; left: 50%; top: 100%; transform: translate(-50%, 2px); white-space: nowrap;
  padding: 4px 10px; border-radius: 999px; background: var(--navy); color: #fff; font: 600 12.5px/1.3 var(--sans);
  box-shadow: 0 4px 12px -4px rgba(14, 52, 56, .5);
}
@keyframes pin-pulse { 0% { transform: scale(.45); opacity: .9; } 100% { transform: scale(2.1); opacity: 0; } }
.maplibregl-popup-content { padding: 14px 16px; border-radius: 12px; box-shadow: var(--shadow); font: 400 14px/1.45 var(--sans); color: var(--ink-soft); }
.maplibregl-popup-content strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
.maplibregl-popup-content a { display: inline-block; margin-top: 6px; font-weight: 600; }
.maplibregl-popup-close-button { font-size: 18px; padding: 2px 8px; color: var(--ink-soft); }
.maplibregl-ctrl-group { border-radius: 10px !important; box-shadow: var(--shadow-sm), 0 0 0 1px var(--line) !important; }

/* Sign-up band */
.signup {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: center;
  padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); color: rgba(255,255,255,.82);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #1B5E61 100%);
}
.signup h3, .signup h2 { font: 600 clamp(24px, 2.4vw, 30px)/1.2 var(--serif); color: #fff; margin-bottom: 10px; }
.signup-copy p { margin: 0; font-size: 16px; }
.signup-form { display: grid; gap: 12px; }
.field label { display: block; font: 600 14px/1.3 var(--sans); color: #fff; margin-bottom: 8px; }
.req { color: #FFB4A8; }
.opt { font-weight: 400; color: rgba(255,255,255,.65); }
.field-inline { display: flex; gap: 8px; }
.field-inline input {
  flex: 1; min-width: 0; min-height: 52px; padding: 12px 16px; border: 2px solid transparent; border-radius: 10px; background: #fff;
  font: 400 16px/1.3 var(--sans); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field-inline input::placeholder { color: #8A9C9F; }
.field-inline input:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(143,211,198,.35); }
.field-inline .btn { min-height: 52px; white-space: nowrap; }
.field-inline input[aria-invalid="true"] { border-color: #FF8A7A; }
.field-error { display: flex; gap: 6px; align-items: flex-start; margin: 6px 0 0; font-size: 14px; font-weight: 500; color: #FFB4A8; }
.field-error::before { content: "!"; flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: #FFB4A8; color: var(--navy); font-size: 12px; font-weight: 700; }
.field-error[hidden] { display: none; }
.consent { display: grid !important; grid-template-columns: auto 1fr; align-items: start; gap: 10px; margin: 0 !important; font: 400 14px/1.5 var(--sans) !important; color: rgba(255,255,255,.8) !important; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 0; accent-color: var(--mint); }
.consent a { color: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 0; min-height: 1.4em; font-size: 15px; font-weight: 600; color: var(--mint); }
.form-note:empty { display: none; }
.form-note.warn { color: #FFD48A; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.72); padding: 72px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand img { height: 80px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 34ch; }
.site-footer h4 { font: 600 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--mint); margin-bottom: 18px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-social { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-top: 18px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); }
.footer-social svg { width: 18px; height: 18px; fill: #fff; }
.footer-bottom { position: relative; display: flex; justify-content: space-between; gap: 24px; padding-top: 24px; font-size: 13px; color: rgba(255,255,255,.6); }
.footer-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: rgba(255,255,255,.12); }
.footer-bottom p { margin: 0; }
.signup-footer { position: relative; padding: 0 var(--gutter) 48px; margin-bottom: 48px; border-radius: 0; background: none; }
.signup-footer::after { content: ""; position: absolute; bottom: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: rgba(255,255,255,.12); }
.signup-more { margin-top: 14px; color: var(--mint) !important; }
.site-footer .consent a { color: #fff; text-decoration: underline; }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.nav a[aria-current="page"] { color: var(--primary); background: var(--mint-100); }
.mobile-menu a[aria-current="page"] { color: var(--primary); }

/* Page hero */
.page-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--mint-50); padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--line); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero-copy { max-width: 640px; }
.page-hero h1 { font-size: clamp(34px, 4.4vw, 54px); margin: 0 0 16px; }
.page-hero-lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-soft); max-width: 56ch; margin: 0; }
.page-hero-mark { position: absolute; right: -60px; top: 50%; width: clamp(260px, 32vw, 440px); transform: translateY(-50%); opacity: .07; z-index: 0; pointer-events: none; }
.page-hero #hero-canvas { height: 38%; opacity: .8; }
.page-hero-media { position: absolute; inset: 0 0 0 38%; z-index: 0; overflow: hidden; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.page-hero-media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, var(--mint-50) 0%, rgba(244,250,249,.92) 18%, rgba(244,250,249,.45) 42%, rgba(244,250,249,0) 70%),
  linear-gradient(0deg, var(--mint-50) 0%, rgba(244,250,249,0) 30%); }
.js:not(.fonts-ready) .page-hero-copy { visibility: hidden; }

.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 18px; font-size: 14px; color: var(--ink-soft); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6; margin-right: 2px; }
.breadcrumb a { color: var(--primary); text-decoration: none; font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 500; }

/* Long-form layout with a sticky in-page menu */
.doc-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.side-nav { position: sticky; top: calc(var(--header-h) + 24px); }
.side-nav h2 { font: 600 12px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 12px; }
.side-nav ul { display: grid; gap: 2px; border-left: 2px solid var(--line); }
.side-nav a { display: block; padding: 8px 14px; margin-left: -2px; border-left: 2px solid transparent; font-size: 15px; color: var(--ink-soft); text-decoration: none; transition: color .2s, border-color .2s, background-color .2s; }
.side-nav a:hover { color: var(--primary); background: var(--mint-50); }
.side-nav a.is-active { color: var(--primary); border-left-color: var(--primary); font-weight: 600; }
.doc-section { padding-bottom: clamp(40px, 5vw, 64px); margin-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.doc-section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.doc-section-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.doc-section-head .h3 { margin: 0; }

/* Prose */
.prose { color: var(--ink-soft); font-size: 17px; max-width: 70ch; }
.prose h3 { font: 600 19px/1.35 var(--sans); color: var(--ink); margin: 28px 0 10px; }
.prose p { margin: 0 0 1em; }
.prose strong { color: var(--ink); }
.prose a { font-weight: 500; }

/* Checklist */
.checklist { display: grid; gap: 10px; margin: 8px 0 20px; }
.checklist li { position: relative; padding-left: 32px; color: var(--ink-soft); line-height: 1.55; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--mint-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F7A79' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }
.checklist-2 { grid-template-columns: 1fr 1fr; column-gap: 24px; }

/* Callouts */
.callout { display: flex; gap: 14px; padding: 18px 20px; border-radius: 12px; background: var(--mint-50); border: 1px solid var(--line); color: var(--ink-soft); font-size: 15.5px; line-height: 1.6; margin: 0 0 20px; }
.callout::before { content: "i"; flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff; font: 700 13px/1 var(--serif); }
.callout strong { color: var(--ink); }
.callout-warn { background: #FFF8EA; border-color: #F1D49C; }
.callout-warn::before { content: "!"; background: #B7791F; font-family: var(--sans); }
.callout-alert { background: var(--alert-bg); border-color: #F2C9C3; }
.callout-alert::before { content: "!"; background: var(--alert); font-family: var(--sans); }

/* Numbered steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { position: relative; padding: 26px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 16px; border-radius: 50%; background: var(--primary); color: #fff; font: 600 16px/1 var(--serif); }
.step h3 { font: 600 17px/1.3 var(--sans); margin-bottom: 6px; }
.step p { margin: 0; font-size: 15px; color: var(--ink-soft); line-height: 1.55; }

/* Generic cards grid */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.card h3 { font: 600 18px/1.3 var(--sans); margin-bottom: 8px; }
.card p { margin: 0; font-size: 15.5px; color: var(--ink-soft); line-height: 1.6; }
.card .tag { margin-top: 14px; display: inline-block; }

/* Department detail rows */
.dept-group + .dept-group { margin-top: clamp(48px, 6vw, 72px); }
.dept-group-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 24px; }
.dept-group-head p { margin: 0; max-width: 52ch; color: var(--ink-soft); }

/* Simple data table */
.data-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.data-table th, .data-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { font: 600 13px/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); background: var(--mint-50); }
.data-table td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.data-table td { color: var(--ink-soft); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }

/* Section "view all" link row */
.section-more { margin-top: 28px; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #1B5E61 100%); color: rgba(255,255,255,.82); padding: clamp(48px, 6vw, 72px) 0; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 360px; height: 360px; background: url("../img/logo-mark-web.png") center/contain no-repeat; opacity: .06; }
.cta-band-inner { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; max-width: 56ch; }
.cta-band .hero-actions { flex: none; }
.btn-ghost-light { color: #fff; border-color: rgba(255,255,255,.5); background: transparent; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }

@media (max-width: 1024px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .doc-layout { grid-template-columns: 1fr; }
  .side-nav { position: static; }
  .side-nav ul { display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
  .side-nav a { margin: 0; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; background: #fff; }
  .side-nav a.is-active { border-color: var(--primary); }
  .page-hero-media { inset: 0; opacity: .35; }
  .page-hero-media::after { background: linear-gradient(90deg, var(--mint-50) 10%, rgba(244,250,249,.7) 100%); }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .dept-group-head { flex-direction: column; align-items: flex-start; }
  .checklist-2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .steps, .card-grid, .card-grid-2 { grid-template-columns: 1fr; }
  .page-hero-mark { display: none; }
}

/* Legal pages */
.legal .container { max-width: 820px; }
.legal .meta { color: var(--ink-soft); font-size: 15px; margin-bottom: 28px; }
.legal h2 { font: 600 24px/1.3 var(--serif); margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; margin-bottom: 1em; }
.draft-banner { padding: 16px 20px; border-radius: 12px; background: #FFF4E0; border: 1px solid #F1D49C; color: #6B4700; font-size: 15px; margin-bottom: 28px; }
.placeholder { background: #FFF4E0; padding: 0 4px; border-radius: 4px; color: #6B4700; }

/* Small utilities */
.mt-0 { margin-top: 0 !important; }
.mt-lg { margin-top: clamp(48px, 6vw, 72px); }
.mt-md { margin-top: 32px; }
.steps-3 { grid-template-columns: repeat(3, 1fr); }
.card .h3 { margin-bottom: 10px; }
.card .actions { margin-top: 18px; }
@media (max-width: 1024px) { .steps-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps-3 { grid-template-columns: 1fr; } }

/* ==========================================================================
   Careers: job list + job dialog + application flow
   ========================================================================== */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.btn-danger { background: var(--alert); color: #fff; }
.btn-danger:hover { background: #9A2F27; }

/* Toolbar */
.job-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.job-search { position: relative; flex: 1 1 320px; max-width: 440px; }
.job-search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--ink-soft); stroke-width: 2; stroke-linecap: round; }
.job-search input { width: 100%; min-height: 48px; padding: 12px 14px 12px 42px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font: 400 16px/1.3 var(--sans); color: var(--ink); }
.job-search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(58,156,155,.18); }
.job-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.job-filter { min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 500 14px/1.2 var(--sans); color: var(--ink); cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.job-filter:hover { border-color: var(--primary); color: var(--primary); }
.job-filter[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.job-count { margin: 0 0 16px; font-size: 14px; color: var(--ink-soft); }

/* Job cards */
.job-list { display: grid; gap: 12px; }
.job-card {
  display: grid; grid-template-columns: 1fr auto; gap: 16px 24px; align-items: center;
  padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .25s, transform .3s var(--ease);
}
.job-card:hover { border-color: var(--mint); box-shadow: var(--shadow); transform: translateY(-2px); }
.job-card h3 { font: 600 19px/1.3 var(--sans); margin: 0 0 6px; }
.job-card h3 button { all: unset; cursor: pointer; }
.job-card h3 button:hover { color: var(--primary); }
.job-card h3 button:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.job-card p { margin: 0; font-size: 15px; color: var(--ink-soft); line-height: 1.55; max-width: 72ch; }
.job-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.job-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 6px; background: var(--mint-50); font-size: 13px; color: var(--ink-soft); }
.job-tag-dept { background: var(--mint-100); color: var(--primary-dark); font-weight: 600; }
.job-actions { display: flex; gap: 8px; }
.job-empty { padding: 32px; text-align: center; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--ink-soft); }
.job-general { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 24px; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.job-general h3 { font: 600 18px/1.3 var(--sans); margin-bottom: 4px; }
.job-general p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* Dialog */
.job-dialog {
  width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
  padding: 0; border: 0; border-radius: var(--radius-lg); background: #fff; color: var(--ink);
  box-shadow: 0 40px 100px -20px rgba(14, 52, 56, .45); overflow: hidden;
}
.job-dialog::backdrop { background: rgba(14, 52, 56, .55); backdrop-filter: blur(3px); }
.job-dialog[open] { animation: jd-in .35s var(--ease); }
.job-dialog[open]::backdrop { animation: jd-fade .3s ease; }
@keyframes jd-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes jd-fade { from { opacity: 0; } to { opacity: 1; } }
body.dialog-open { overflow: hidden; }
.jd-shell { display: flex; flex-direction: column; max-height: inherit; }
.jd-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 28px 18px; border-bottom: 1px solid var(--line); background: var(--mint-50); }
.jd-kicker { margin: 0 0 4px; font: 600 12.5px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.jd-title { font: 600 clamp(22px, 2.6vw, 28px)/1.2 var(--serif); margin: 0; }
.jd-title:focus, .jd-success:focus { outline: none; } /* focus is moved here for screen readers only */
.jd-close { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: background-color .2s; }
.jd-close:hover { background: var(--mint-100); }
.jd-close svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.jd-view { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
.jd-view[hidden] { display: none; }
.jd-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 24px 28px; overscroll-behavior: contain; }
.jd-body h3 { font: 600 16px/1.3 var(--sans); margin: 24px 0 10px; }
.jd-summary { font-size: 16.5px; color: var(--ink); margin: 0; }
.jd-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.jd-meta li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; background: var(--mint-50); border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-soft); }
.jd-meta strong { color: var(--ink); font-weight: 600; }
.jd-body .checklist { margin-bottom: 0; }
.jd-preferred li::before { background-color: #F1F5F4; }
.jd-scam { margin: 24px 0 0; font-size: 14px; }
.jd-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 28px; border-top: 1px solid var(--line); background: #fff; }
.jd-footer [data-action="back"] { margin-right: auto; }

/* Unsaved-changes bar */
.jd-confirm { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 28px; background: #FFF8EA; border-bottom: 1px solid #F1D49C; }
.jd-confirm[hidden] { display: none; }
.jd-confirm p { margin: 0; font-size: 14px; color: #6B4700; }
.jd-confirm-title { font-weight: 600; color: #4A3200 !important; }
.jd-confirm-actions { display: flex; gap: 8px; flex: none; }

/* Stepper */
.af-steps { display: flex; gap: 0; padding: 16px 28px; border-bottom: 1px solid var(--line); counter-reset: none; }
.af-step { flex: 1; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-soft); position: relative; }
.af-step + .af-step { padding-left: 14px; }
.af-step + .af-step::before { content: ""; position: absolute; left: -6px; right: calc(100% - 4px); top: 50%; }
.af-step:not(:last-child)::after { content: ""; flex: 1; height: 2px; margin: 0 4px 0 6px; border-radius: 2px; background: var(--line); }
.af-step-num { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); background: #fff; font: 600 13px/1 var(--sans); color: var(--ink-soft); transition: all .25s; }
.af-step-label { white-space: nowrap; font-weight: 500; }
.af-step.is-current { color: var(--ink); }
.af-step.is-current .af-step-num { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 4px rgba(58,156,155,.15); }
.af-step.is-done .af-step-num { background: var(--primary); border-color: var(--primary); color: transparent; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E"); background-size: 14px; background-position: center; background-repeat: no-repeat; }
.af-step.is-done:not(:last-child)::after { background: var(--primary); }

/* Form */
.af-panel { border: 0; padding: 0; margin: 0; min-width: 0; }
.af-panel[hidden] { display: none; }
.af-legend { font: 600 20px/1.3 var(--serif); margin-bottom: 4px; padding: 0; }
.af-hint { font-size: 14px; color: var(--ink-soft); margin: 0 0 18px; }
.af-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin-bottom: 16px; }
.af-field { display: grid; gap: 6px; margin-bottom: 16px; align-content: start; }
.af-grid .af-field { margin-bottom: 0; }
.af-field[hidden] { display: none; }
.af-field > label, .af-label { font: 600 14px/1.3 var(--sans); color: var(--ink); }
.af .req { color: var(--alert); }
.af .opt { font-weight: 400; color: var(--ink-soft); }
.af input[type="text"], .af input[type="email"], .af input[type="tel"], .af input[type="date"], .af select, .af textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  font: 400 16px/1.4 var(--sans); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.af textarea { resize: vertical; min-height: 110px; }
.af input:focus, .af select:focus, .af textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(58,156,155,.18); }
.af [aria-invalid="true"] { border-color: var(--alert) !important; background: #FFFBFA; }
.af-err { display: flex; gap: 6px; align-items: flex-start; margin: 0; font-size: 13.5px; font-weight: 500; color: var(--alert); }
.af-err::before { content: "!"; flex: none; display: grid; place-items: center; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; background: var(--alert); color: #fff; font-size: 11px; font-weight: 700; }
.af-err[hidden] { display: none; }
.af-field-hint { margin: 0; font-size: 13px; color: var(--ink-soft); }
.af-count { text-align: right; }
.af-error-summary { margin-bottom: 18px; padding: 14px 16px; border-radius: 10px; background: var(--alert-bg); border: 1px solid #F2C9C3; color: var(--alert); font-size: 14.5px; }
.af-error-summary p { margin: 0; }
.af-error-summary[hidden] { display: none; }
.af-submit-error { margin: 12px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--alert-bg); color: var(--alert); font-size: 14.5px; }
.af-submit-error[hidden] { display: none; }

/* Dropzone */
.dropzone { position: relative; border: 2px dashed #B9D6D0; border-radius: 12px; background: var(--mint-50); transition: border-color .2s, background-color .2s; }
.dropzone input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone:hover, .dropzone.is-over { border-color: var(--primary); background: var(--mint-100); }
.dropzone:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(58,156,155,.18); }
.dropzone.has-file { border-style: solid; background: #fff; }
.dropzone.has-file input[type="file"] { pointer-events: none; }
.dropzone[aria-invalid="true"], .dropzone.is-invalid { border-color: var(--alert); background: #FFFBFA; }
.dropzone-empty { display: grid; justify-items: center; gap: 4px; padding: 26px 16px; text-align: center; pointer-events: none; }
.dropzone-empty svg { width: 30px; height: 30px; margin-bottom: 4px; fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dropzone-empty p { margin: 0; font-size: 15px; color: var(--ink); }
.dropzone-link { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.dropzone-file { display: flex; align-items: center; gap: 14px; padding: 14px 16px; position: relative; z-index: 1; }
.dropzone-file[hidden], .dropzone-empty[hidden] { display: none; }
.file-icon { flex: none; display: grid; place-items: center; width: 44px; height: 52px; border-radius: 6px; background: var(--primary); color: #fff; font: 700 11px/1 var(--sans); letter-spacing: .04em; }
.file-meta { flex: 1; min-width: 0; display: grid; }
.file-name { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { font-size: 13px; color: var(--ink-soft); }
.file-remove { flex: none; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: 600 13.5px/1 var(--sans); color: var(--alert); cursor: pointer; }
.file-remove:hover { background: var(--alert-bg); }

/* Review */
.af-review { display: grid; gap: 14px; margin-bottom: 20px; }
.review-block { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.review-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: var(--mint-50); border-bottom: 1px solid var(--line); }
.review-head h4 { margin: 0; font: 600 14.5px/1.3 var(--sans); }
.review-edit { border: 0; background: none; color: var(--primary); font: 600 14px/1 var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 6px; }
.review-list { display: grid; grid-template-columns: minmax(140px, 34%) 1fr; margin: 0; }
.review-list dt, .review-list dd { margin: 0; padding: 9px 16px; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.review-list dt { color: var(--ink-soft); }
.review-list dd { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.review-list dt:nth-last-of-type(1), .review-list dd:last-of-type { border-bottom: 0; }
.af-checks { gap: 10px; }
.af-check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); cursor: pointer; }
.af-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--primary); }
.af-check input[aria-invalid="true"] { outline: 2px solid var(--alert); outline-offset: 2px; border-radius: 3px; }

/* Success */
.jd-success .jd-body { text-align: center; padding-top: 36px; }
.success-icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; background: var(--mint-100); box-shadow: 0 0 0 10px var(--mint-50); }
.success-icon svg { width: 34px; height: 34px; fill: none; stroke: var(--primary); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw-check .6s .2s var(--ease) forwards; }
@keyframes draw-check { to { stroke-dashoffset: 0; } }
.success-title { font: 600 26px/1.2 var(--serif) !important; margin: 0 0 10px !important; }
.success-lead { max-width: 46ch; margin: 0 auto 12px; color: var(--ink-soft); }
.success-ref { display: inline-block; margin: 0 0 18px; padding: 8px 14px; border-radius: 8px; background: var(--mint-50); border: 1px solid var(--line); font-size: 14.5px; color: var(--ink-soft); }
.success-ref strong { color: var(--ink); letter-spacing: .04em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.jd-demo { text-align: left; margin: 0 auto 8px; max-width: 520px; }
.jd-success h4 { font: 600 15px/1.3 var(--sans); margin: 18px 0 10px; }
.next-steps { display: grid; gap: 8px; max-width: 460px; margin: 0 auto; padding: 0; counter-reset: ns; text-align: left; }
.next-steps li { position: relative; padding-left: 34px; font-size: 14.5px; color: var(--ink-soft); }
.next-steps li::before { counter-increment: ns; content: counter(ns); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--mint-100); color: var(--primary-dark); font: 600 12px/1 var(--sans); }

@media (max-width: 720px) {
  .job-card { grid-template-columns: 1fr; }
  .job-actions .btn { flex: 1; }
  .job-general { flex-direction: column; align-items: flex-start; }
  /* Dialog becomes a full-screen sheet on phones */
  .job-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .jd-shell { height: 100%; }
  .jd-header, .jd-body, .jd-footer, .af-steps, .jd-confirm { padding-left: 18px; padding-right: 18px; }
  .af-grid { grid-template-columns: 1fr; }
  .af-step-label { display: none; }
  .af-step.is-current .af-step-label { display: inline; }
  .jd-footer .btn { flex: 1; white-space: nowrap; }
  .jd-footer [data-close].btn-outline, .jd-footer [data-action="back"] { flex: 0 0 auto; }
  .jd-footer [data-action="back"] { margin-right: 0; }
  .jd-confirm { flex-direction: column; align-items: stretch; }
  .review-list { grid-template-columns: 1fr; }
  .review-list dt { padding-bottom: 0; border-bottom: 0; font-size: 13px; }
  .review-list dd { padding-top: 2px; }
}

/* ==========================================================================
   Custom dropdown (select) and date picker
   ========================================================================== */
/* Native fallback (no JavaScript): branded chevron instead of the OS arrow */
.af select, select.ui-select {
  -webkit-appearance: none; appearance: none; padding-right: 42px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F7A79' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px;
}

/* Shared trigger look (matches text inputs) */
.cs, .dp { position: relative; }
.cs-native { position: absolute !important; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.cs-button, .dp-button {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 10px 14px;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; text-align: left;
  font: 400 16px/1.4 var(--sans); color: var(--ink); transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.cs-button:hover, .dp-button:hover { border-color: #B9D6D0; }
.cs-button:focus-visible, .dp-button:focus-visible, .cs.is-open .cs-button, .dp.is-open .dp-button {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(58,156,155,.18);
}
.cs-button.is-placeholder .cs-value, .dp-button.is-placeholder .dp-value { color: #8A9C9F; }
.cs-button[aria-invalid="true"], .dp-button[aria-invalid="true"] { border-color: var(--alert); background: #FFFBFA; }
.cs-value, .dp-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-chevron { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--primary); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.cs.is-open .cs-chevron { transform: rotate(180deg); }

/* Dropdown list */
.cs-list {
  position: fixed; z-index: 1000; max-height: 264px; overflow-y: auto;
  margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 40px -12px rgba(14, 52, 56, .3), 0 2px 6px rgba(14, 52, 56, .06);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .22s var(--ease), visibility 0s .22s;
}
.cs.is-open .cs-list { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .22s var(--ease); }
.cs.drop-up .cs-list { transform: translateY(6px); }
.cs.drop-up.is-open .cs-list { transform: none; }
.cs-option {
  position: relative; display: flex; align-items: center; min-height: 40px; padding: 9px 36px 9px 12px; border-radius: 8px;
  font-size: 15.5px; color: var(--ink); cursor: pointer; user-select: none;
}
.cs-option.cs-placeholder { color: #8A9C9F; }
.cs-option.is-active { background: var(--mint-50); color: var(--primary-dark); }
.cs-option[aria-selected="true"] { font-weight: 600; color: var(--primary-dark); }
.cs-option[aria-selected="true"]::after {
  content: ""; position: absolute; right: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F7A79' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.cs-option[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.cs-list::-webkit-scrollbar { width: 10px; }
.cs-list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; border: 3px solid #fff; }

/* Date picker trigger */
.dp-icon { flex: none; width: 19px; height: 19px; fill: none; stroke: var(--primary); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.dp.has-value .dp-button { padding-right: 44px; }
.dp-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: none; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.dp.has-value .dp-clear { display: grid; }
.dp-clear:hover { background: var(--mint-50); }
.dp-clear svg { width: 15px; height: 15px; fill: none; stroke: var(--ink-soft); stroke-width: 2.4; stroke-linecap: round; }

/* Calendar popup */
.dp-pop {
  position: fixed; z-index: 1000; width: 312px; padding: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 22px 48px -14px rgba(14, 52, 56, .32), 0 2px 6px rgba(14, 52, 56, .06);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .22s var(--ease), visibility 0s .22s;
}
.dp.is-open .dp-pop { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .22s var(--ease); }
.dp.drop-up .dp-pop { transform: translateY(6px); }
.dp.drop-up.is-open .dp-pop { transform: none; }
.dp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.dp-title { margin: 0; font: 600 16px/1.2 var(--serif); color: var(--ink); }
.dp-nav { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; transition: background-color .2s, border-color .2s; }
.dp-nav:hover:not(:disabled) { background: var(--mint-50); border-color: #B9D6D0; }
.dp-nav:disabled { opacity: .35; cursor: not-allowed; }
.dp-nav svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.dp-grid { width: 100%; border-collapse: separate; border-spacing: 2px; table-layout: fixed; }
.dp-grid th { padding: 6px 0; font: 600 11.5px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); text-align: center; }
.dp-grid td { padding: 0; text-align: center; }
.dp-day {
  width: 100%; aspect-ratio: 1; max-height: 40px; display: grid; place-items: center; border: 0; border-radius: 9px; background: transparent;
  font: 500 14.5px/1 var(--sans); color: var(--ink); cursor: pointer; transition: background-color .15s, color .15s;
}
.dp-day:hover { background: var(--mint-50); color: var(--primary-dark); }
.dp-day:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.dp-day.is-out { color: #A7B6B8; }
.dp-day.is-today { position: relative; color: var(--primary); font-weight: 700; }
.dp-day.is-today::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.dp-day.is-selected, .dp-day.is-selected:hover { background: var(--primary); color: #fff; box-shadow: 0 4px 10px -4px rgba(31,122,121,.6); }
.dp-day[aria-disabled="true"] { color: #C6D1D2; background: transparent; cursor: not-allowed; text-decoration: line-through; text-decoration-color: rgba(0,0,0,.12); }
.dp-foot { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.dp-link { padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; font: 600 14px/1 var(--sans); color: var(--primary); cursor: pointer; }
.dp-link:hover { background: var(--mint-50); }

/* ---------- Motion (JS-enhanced; content visible without JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: grid; place-items: center; align-content: center; gap: 5px; margin-left: auto; width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
  .menu-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .mobile-menu:not([hidden]) { display: grid; gap: 20px; padding: 8px var(--gutter) 28px; border-top: 1px solid var(--line); background: #fff; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .mobile-menu a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font: 600 17px/1.2 var(--sans); color: var(--ink); text-decoration: none; }
}
@media (max-width: 1024px) {
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .quick-tile:nth-child(2) { border-right: 0; }
  .quick-tile:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .why-grid { grid-template-columns: 1fr; }
  .svc-grid, .guide-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .channel-grid { grid-template-columns: 1fr; }
  .map { height: 340px; }
  .location-card { position: static; width: auto; margin-top: -24px; margin-inline: 12px; }
  .location { margin-bottom: 24px; }
  .signup { grid-template-columns: 1fr; }
  :root { --header-h: 72px; }
  .brand img { height: 54px; }
  .utility-links { display: none; }
  .hero-grid, .about-grid, .faq-grid, .join-grid { grid-template-columns: 1fr; }
  .about-grid > :first-child { position: static; }
  .hero { flex-direction: column; align-items: stretch; min-height: 440px; padding: 0 0 clamp(16px, 3svh, 28px); background: #fff; }
  .hero-bg { position: relative; inset: auto; flex: 1 1 auto; min-height: 120px; margin-bottom: -56px; }
  .hero-bg img { object-position: 55% 45%; }
  .hero-bg::after { background: linear-gradient(0deg, #FFFFFF 0%, rgba(255,255,255,.9) 22%, rgba(255,255,255,0) 60%); }
  .hero-credit { display: none; }
  .hero-grid { flex: none; }
  .hero-copy { max-width: none; }
  .hero h1 { font-size: clamp(26px, min(8.2vw, 4.6svh), 44px); }
  .hero-lead { font-size: clamp(14.5px, 2.1svh, 17px); }
  .hero-facts dd { font-size: clamp(20px, 3svh, 26px); }
  .mvv, .news-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .split-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .field-inline { flex-direction: column; }
  .field-inline .btn { width: 100%; }
  .location-card { margin-inline: 0; margin-top: 12px; }
  body { font-size: 16px; }
  .quick-grid { grid-template-columns: 1fr; }
  .quick-tile { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 20px; }
  .quick-tile:last-child { border-bottom: 0; }
  .why-grid, .svc-grid, .guide-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { gap: 8px; }
  .hero-actions .btn { flex: 1 1 100%; min-height: 44px; padding-block: 10px; }
  .role-list li { flex-direction: column; gap: 2px; }
  .role-list small { text-align: left; }
  .footer-bottom { flex-direction: column; }
  .tab-list { width: 100%; }
}
@media (max-width: 860px) and (max-height: 760px) { .hero-facts { display: none; } }
@media (max-width: 860px) and (max-height: 620px) { .hero-lead { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } }
@media (min-width: 861px) and (max-width: 1180px) {
  .hero-copy { max-width: 500px; }
  .hero-bg { left: 30%; }
}
@media (max-height: 480px) and (orientation: landscape) {
  .hero { height: auto; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
