/* ==========================================================================
   Cali PhaseWork — design system
   One family (Archivo variable: weight + width axes), navy + gold.
   Signature: the "live wire" trace (hero, footer, process line, area map)
   and the panel-directory services list.
   ========================================================================== */

/* ---------- Fonts (self-hosted, OFL — no third-party font requests) ---------- */
@font-face {
    font-family: "Archivo";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    font-stretch: 62% 125%;
    src: url("../fonts/archivo-latin-var.woff2") format("woff2-variations"), url("../fonts/archivo-latin-var.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Archivo";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    font-stretch: 62% 125%;
    src: url("../fonts/archivo-latin-ext-var.woff2") format("woff2-variations"), url("../fonts/archivo-latin-ext-var.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Montserrat (headings) — self-hosted, OFL */
@font-face {
    font-family: "Montserrat"; font-style: normal; font-display: swap; font-weight: 100 900;
    src: url("../fonts/montserrat-latin-var.woff2") format("woff2-variations"), url("../fonts/montserrat-latin-var.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Montserrat"; font-style: normal; font-display: swap; font-weight: 100 900;
    src: url("../fonts/montserrat-latin-ext-var.woff2") format("woff2-variations"), url("../fonts/montserrat-latin-ext-var.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
    --navy: #1B2A4A;
    --navy-950: #0D1529;
    --navy-900: #111C33;
    --navy-800: #16223D;
    --navy-700: #24365C;
    --navy-100: #E1E7F0;
    --gold: #C98A1F;
    --gold-300: #E0A53A;
    --gold-700: #8A5C0C;
    --gold-100: #F8EEDB;

    --paper: #EEF1F5;
    --paper-2: #F6F8FB;
    --white: #FFFFFF;
    --ink: #1B2A4A;
    --text: #28324A;
    --muted: #566079;
    --line: #D9DFE8;
    --line-strong: #C3CCDA;
    --on-dark: #E8ECF4;
    --on-dark-muted: #A9B4C9;
    --line-dark: rgba(255, 255, 255, 0.12);
    --water: #DCE4EF;
    --hero-bg: #F5F4F0;      /* light, slightly warm header ground */
    --sand: #EFE6D5;         /* CTA band */
    --slate: #566079;        /* alternate CTA band */
    --footer-caption: #98A3B8;

    --success: #1E7A4C;
    --success-bg: #E7F5EE;
    --error: #B42318;
    --error-bg: #FDECEA;

    --font-head: "Montserrat", "Open Sans", system-ui, sans-serif;
    --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 2px rgba(17, 28, 51, 0.06);
    --shadow: 0 1px 2px rgba(17, 28, 51, 0.05), 0 10px 30px -14px rgba(17, 28, 51, 0.22);
    --shadow-lg: 0 2px 6px rgba(17, 28, 51, 0.08), 0 28px 60px -24px rgba(17, 28, 51, 0.4);

    --header-h: 68px;
    --gutter: 16px;
    --container: 1240px;
    --section-y: clamp(64px, 8vw, 112px);
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (min-width: 720px) {
    :root { --gutter: 32px; --header-h: 76px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    padding-top: var(--header-h);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    font-weight: 400;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "kern", "liga";
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--gold-700); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold-300); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }
[hidden] { display: none !important; }
::selection { background: var(--gold-100); color: var(--navy-900); }

/* Headings: Montserrat, title case (each word capitalized) */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.5em;
    color: var(--ink);
    font-family: var(--font-head);
    text-transform: capitalize;
    text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.35rem + 2.4vw, 3.25rem); line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.95rem, 1.56rem + 1.56vw, 2.7625rem); line-height: 1.14; font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.0625rem; line-height: 1.35; font-weight: 600; letter-spacing: -0.005em; }
h4, h5, h6 { font-size: 1rem; font-weight: 600; }
.lead { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.prose p, .prose li { max-width: 70ch; }

.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;
}
.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    background: var(--gold); color: var(--navy-900); padding: 10px 16px; border-radius: var(--radius-sm);
    font-weight: 650; text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(860px + var(--gutter) * 2); }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon--sm { width: 1.1em; height: 1.1em; }
.icon--md { width: 24px; height: 24px; }
.icon--lg { width: 28px; height: 28px; }

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: var(--navy);
    --btn-fg: var(--white);
    --btn-bd: transparent;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
    min-height: 48px; padding: 0.8rem 1.35rem;
    font-size: 1rem; font-weight: 640; font-stretch: 104%; line-height: 1.1; letter-spacing: -0.005em;
    color: var(--btn-fg); background: var(--btn-bg);
    border: 1px solid var(--btn-bd); border-radius: 7px;
    text-decoration: none; white-space: nowrap;
    transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn:hover { color: var(--btn-fg); }
/* Gold CTA — one style sitewide (same as the footer "Request Quote"): gold + black text; hover white + navy text + navy border */
:root { --cta-gold: #E0A53A; --cta-gold-fg: #000000; --cta-gold-hover-bg: var(--white); --cta-gold-hover-fg: var(--navy); --cta-gold-hover-bd: var(--navy); }
.btn--gold { --btn-bg: var(--cta-gold); --btn-fg: var(--cta-gold-fg); --btn-bd: var(--cta-gold); }
.btn--gold:hover, .btn--gold:focus-visible { --btn-bg: var(--cta-gold-hover-bg); --btn-fg: var(--cta-gold-hover-fg); --btn-bd: var(--cta-gold-hover-bd); }
.btn--navy { --btn-bg: var(--navy); --btn-fg: var(--white); }
.btn--navy:hover { --btn-bg: var(--navy-700); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: var(--white); --btn-bd: rgba(255, 255, 255, 0.38); }
.btn--outline-light:hover { --btn-bd: var(--white); --btn-bg: rgba(255, 255, 255, 0.06); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bd: var(--navy); --btn-bg: var(--paper-2); }
.btn--sm { min-height: 40px; padding: 0.55rem 0.95rem; font-size: 0.9375rem; }
.btn--xs { min-height: 34px; padding: 0.4rem 0.8rem; font-size: 0.875rem; }
.btn--lg { min-height: 56px; padding: 1rem 1.6rem; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.6; pointer-events: none; }

.text-link {
    display: inline-flex; align-items: center; gap: 0.35em;
    font-weight: 620; color: var(--navy); text-decoration: none;
    border-bottom: 1.5px solid var(--gold); padding-bottom: 2px;
}
.text-link:hover { color: var(--gold-700); }
.text-link--light { color: var(--white); }
.text-link--light:hover { color: var(--gold-300); }

/* ---------- Header ---------- */
.site-header {
    position: fixed; inset: 0 0 auto; z-index: 60;
    height: var(--header-h);
    background: var(--navy-900);
    border-bottom: 1px solid var(--line-dark);
    transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease);
}
.site-header.is-hidden { transform: translateY(-100%); }
/* Home: header floats transparent over the hero photo, then fades to solid navy once the page scrolls */
.page-home { padding-top: 0; }
.page-home .site-header {
    background-color: transparent; border-bottom-color: transparent;
    transition: transform 0.32s var(--ease), background-color 0.7s ease, border-color 0.7s ease, box-shadow 0.7s ease;
}
.page-home .site-header.is-solid { background-color: var(--navy-900); border-bottom-color: var(--line-dark); }
.page-home .site-header:not(.is-solid) .primary-nav__link:hover,
.page-home .site-header:not(.is-solid) .primary-nav__item--menu:hover > .primary-nav__link { background: rgba(255, 255, 255, 0.18); }
.page-home .site-header:not(.is-solid) .site-header__burger { background: rgba(9, 14, 28, 0.3); border-color: rgba(255, 255, 255, 0.3); }
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.6); }
.site-header__bar { position: relative; height: 100%; display: flex; align-items: center; gap: 20px; }
@media (min-width: 1080px) {
    .site-header__bar { display: grid; grid-template-columns: 1fr auto 1fr; }
    .site-header__brand { justify-self: start; }
    .site-header__actions { justify-self: end; }
}
.site-header__brand { display: block; flex: none; margin-right: auto; }
.site-header__logo { height: 28px; width: auto; }
@media (min-width: 720px) { .site-header__logo { height: 34px; } }

.primary-nav { display: none; }
.primary-nav__list { display: flex; align-items: center; gap: 2px; list-style: none; }
.primary-nav__list > li { position: relative; display: flex; align-items: center; }
.primary-nav__list > li.primary-nav__item--menu { position: static; } /* dropdowns center on the header bar */
.primary-nav__link {
    position: relative; display: block; padding: 0.5rem 0.8rem;
    font-size: 0.98rem; font-weight: 540; color: var(--on-dark); text-decoration: none; border-radius: var(--radius-sm);
}
.primary-nav__link { transition: background-color 0.2s var(--ease), color 0.2s var(--ease); }
.primary-nav__link:hover, .primary-nav__item--menu:hover > .primary-nav__link { color: var(--white); background: rgba(255, 255, 255, 0.16); }
.primary-nav__link[aria-current="page"] { color: var(--white); }
.primary-nav__link[aria-current="page"] { background: rgba(255, 255, 255, 0.08); }
.primary-nav__item--menu .primary-nav__link { padding-right: 0.35rem; }
.primary-nav__toggle {
    display: grid; place-items: center; width: 28px; height: 32px; padding: 0;
    color: var(--on-dark-muted); background: none; border: 0; border-radius: var(--radius-sm);
}
.primary-nav__toggle:hover { color: var(--white); }
.primary-nav__toggle .icon { transition: transform 0.2s var(--ease); }
.primary-nav__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); color: var(--gold-300); }

.mega {
    position: absolute; top: calc(100% - 6px); left: 50%; transform: translateX(-50%);
    width: min(1000px, calc(100vw - 48px));
    background: var(--white); color: var(--text);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
}
.mega::before { content: ""; position: absolute; inset: -24px 0 100% 0; } /* hover bridge */
.mega__inner { display: grid; grid-template-columns: 1fr 250px; gap: 10px; padding: 12px; }
.mega__list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; align-content: start; }
.mega__link {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px;
    border-radius: var(--radius); text-decoration: none; color: var(--ink);
}
.mega__link:hover, .mega__link[aria-current="page"] { background: var(--paper-2); color: var(--ink); }
.mega__icon {
    display: grid; place-items: center; width: 38px; height: 38px; flex: none;
    border-radius: 9px; background: var(--paper); color: var(--navy);
}
.mega__link:hover .mega__icon { background: var(--gold-100); color: var(--gold-700); }
.mega__text { display: grid; line-height: 1.25; }
.mega__name { font-weight: 640; font-size: 0.97rem; }
.mega__meta { font-size: 0.8125rem; color: var(--muted); }
.mega__aside { display: grid; grid-template-rows: 1fr auto; gap: 6px; }
.mega__area {
    display: grid; align-content: end; position: relative; overflow: hidden; gap: 6px; padding: 18px;
    background: var(--navy-900); color: var(--white); border-radius: var(--radius); text-decoration: none;
    background-image: radial-gradient(circle at 85% 20%, rgba(201, 138, 31, 0.25), transparent 55%);
}
.mega__area:hover { color: var(--white); background-color: var(--navy-800); }
.mega__area::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 22px 22px; -webkit-mask-image: linear-gradient(to bottom, #000, transparent 75%); mask-image: linear-gradient(to bottom, #000, transparent 75%);
}
.mega__area > * { position: relative; }
.mega__area .mega__meta { color: var(--on-dark-muted); }
.mega__area-icon { color: var(--gold-300); width: 26px; height: 26px; margin-bottom: 4px; }
.mega__all {
    display: flex; align-items: center; justify-content: space-between; padding: 12px 14px;
    font-weight: 620; font-size: 0.94rem; text-decoration: none; border-radius: var(--radius); background: var(--paper-2);
}

.site-header__actions { display: flex; align-items: center; gap: 12px; }
.site-header__phone {
    display: none; align-items: center; gap: 8px; padding: 0.5rem 0.25rem;
    color: var(--white); font-weight: 620; text-decoration: none; font-variant-numeric: tabular-nums;
}
.site-header__phone .icon { color: var(--gold-300); }
.site-header__phone:hover { color: var(--gold-300); }
.site-header__cta { display: none; }
.site-header__burger {
    display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
    color: var(--white); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-dark); border-radius: var(--radius-sm);
}
.site-header__burger .burger-close { display: none; }
.site-header__burger[aria-expanded="true"] .burger-open { display: none; }
.site-header__burger[aria-expanded="true"] .burger-close { display: block; }

@media (min-width: 600px) { .site-header__cta { display: inline-flex; } }
@media (min-width: 1080px) {
    .primary-nav { display: block; }
    .site-header__burger { display: none; }
    .site-header__brand { margin-right: 0; }
}
@media (min-width: 1240px) { .site-header__phone { display: inline-flex; } }

.mobile-nav {
    position: fixed; inset: var(--header-h) 0 0; z-index: 59; overflow-y: auto;
    background: var(--navy-900); color: var(--on-dark);
    border-top: 1px solid var(--line-dark);
    overscroll-behavior: contain;
}
.mobile-nav__inner { display: flex; flex-direction: column; padding-block: 12px 32px; }
.mobile-nav__link {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 0; border-bottom: 1px solid var(--line-dark);
    font-size: 1.25rem; font-weight: 600; font-stretch: 106%; color: var(--white); text-decoration: none; cursor: pointer;
    list-style: none;
}
.mobile-nav__link::-webkit-details-marker { display: none; }
.mobile-nav__link[aria-current="page"] { color: var(--gold-300); }
.mobile-nav__group[open] > summary .icon { transform: rotate(180deg); }
.mobile-nav__sub { list-style: none; display: grid; gap: 2px; padding: 8px 0 12px; border-bottom: 1px solid var(--line-dark); }
.mobile-nav__sub a {
    display: flex; align-items: center; gap: 12px; padding: 10px 4px;
    color: var(--on-dark); text-decoration: none; font-weight: 500;
}
.mobile-nav__sub a .icon { color: var(--gold-300); }
.mobile-nav__sub a[aria-current="page"] { color: var(--gold-300); }
.mobile-nav__actions { display: grid; gap: 12px; margin-top: 24px; }
body.nav-open { overflow: hidden; }
@media (min-width: 1080px) { .mobile-nav { display: none !important; } }

/* ---------- Mobile action bar ---------- */
.action-bar {
    position: fixed; inset: auto 0 0; z-index: 55;
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px);
    border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -20px rgba(17, 28, 51, 0.5);
    transition: transform 0.3s var(--ease);
}
.action-bar__btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
    border-radius: var(--radius-sm); font-weight: 650; text-decoration: none; font-size: 1rem;
}
.action-bar__btn--call { background: var(--cta-gold); color: var(--cta-gold-fg); border: 1px solid var(--cta-gold); border-radius: 7px; transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease); }
.action-bar__btn--call:hover, .action-bar__btn--call:focus-visible { background: var(--cta-gold-hover-bg); color: var(--cta-gold-hover-fg); border-color: var(--cta-gold-hover-bd); }
.action-bar__btn--quote { background: var(--navy); color: var(--white); }
.action-bar__btn--quote:hover { color: var(--white); }
body.nav-open .action-bar { transform: translateY(110%); }
body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
    .action-bar { display: none; }
    body { padding-bottom: 0; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section--paper { background: var(--paper); }
.section--soft { background: var(--paper-2); }
.section--navy { background: var(--navy); color: var(--on-dark); } /* brand navy #1B2A4A, two steps lighter than the footer */
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy .lead { color: var(--on-dark-muted); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section + .section--same { padding-top: 0; }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head > :last-child { margin-bottom: 0; }
.section-head--split {
    max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px;
}
.section-head--split > div { max-width: 720px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }
.caption {
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
    font-size: 0.9375rem; font-weight: 640; color: var(--gold-700);
}
.caption::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.section--navy .caption { color: var(--gold-300); }


/* ---------- Home hero (full-bleed photo, crossfading) ---------- */
.hero {
    position: relative; overflow: hidden; isolation: isolate;
    min-height: clamp(640px, 100svh, 920px);
    display: flex; color: var(--white); background: var(--navy-950);
}
.hero__slides { position: absolute; inset: 0; z-index: -2; }
.hero__slide {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transform: scale(1.06); transition: opacity 1.2s ease, transform 7.5s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__shade {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        linear-gradient(180deg, rgba(9, 14, 28, 0.6) 0%, rgba(9, 14, 28, 0) 24%),
        linear-gradient(90deg, rgba(9, 14, 28, 0.78) 0%, rgba(9, 14, 28, 0.5) 45%, rgba(9, 14, 28, 0.12) 100%),
        linear-gradient(0deg, rgba(9, 14, 28, 0.55) 0%, rgba(9, 14, 28, 0) 35%);
}
.hero__inner { position: relative; display: flex; flex-direction: column; justify-content: flex-end; width: 100%; padding-block: calc(var(--header-h) + 48px) clamp(96px, 15vh, 170px); }
.hero__copy { max-width: 860px; }
.hero__title {
    margin: 0; color: var(--white); text-transform: capitalize;
    font-size: clamp(2.5rem, 1.35rem + 3.9vw, 4.75rem); line-height: 1.06; font-weight: 600; letter-spacing: -0.025em;
}
.hero__title span { display: block; }
.hero__lead { margin: 24px 0 0; max-width: 60ch; font-size: clamp(0.98rem, 0.95rem + 0.15vw, 1.0625rem); line-height: 1.5; color: #DCE2EE; }
.hero__actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn--white { --btn-bg: var(--white); --btn-fg: var(--navy); --btn-bd: var(--white); }
.btn--white:hover, .btn--white:focus-visible { --btn-bg: transparent; --btn-fg: var(--white); --btn-bd: var(--white); }

.hero__bottom { position: absolute; left: var(--gutter); bottom: 32px; display: flex; align-items: center; }
.hero__bar { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 32px; font-size: 1rem; font-weight: 500; color: var(--white); }
.hero__bar li { display: inline-flex; align-items: center; gap: 10px; }
.hero__plus { color: var(--gold-300); font-weight: 700; font-size: 1.25rem; line-height: 1; }
.hero__controls { display: flex; align-items: center; gap: 8px; }
.hero__dot { width: 26px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: rgba(255, 255, 255, 0.35); transition: background-color 0.3s, width 0.3s; }
.hero__dot.is-active { width: 40px; background: var(--gold-300); }
.hero__dot { position: relative; }
.hero__dot::after { content: ""; position: absolute; inset: -10px -2px; } /* bigger tap target */
.hero__pause {
    display: grid; place-items: center; width: 32px; height: 32px; margin-left: 6px; padding: 0;
    color: var(--white); background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%;
}
.hero__pause svg { width: 12px; height: 12px; }
.hero__pause .i-play { display: none; }
.hero__pause[aria-pressed="true"] .i-play { display: block; }
.hero__pause[aria-pressed="true"] .i-pause { display: none; }

/* Notched badge card, bottom-right (mirrors the page-header card) */
.hero__badge { position: absolute; right: max(var(--gutter), calc((100vw - var(--container)) / 2)); bottom: 0; width: min(340px, 30vw); }
.hero__badge-card {
    --cut: 58px;
    position: relative; z-index: 1; display: grid; gap: 6px;
    padding: 26px calc(var(--cut) + 12px) 28px 28px; background: var(--white); color: var(--ink);
    border-radius: 18px 18px 0 0;
    clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.hero__badge-card strong { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
.hero__badge-card span { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.hero__badge-tab { position: absolute; z-index: 0; top: 12px; right: 8px; width: 56px; height: 62px; background: var(--gold-300); border-radius: 8px; }
@media (max-width: 899px) { .hero__badge { display: none; } }
@media (max-width: 600px) {
    .hero__bar { flex-direction: column; gap: 8px; font-size: 0.95rem; }
}
@media (prefers-reduced-motion: reduce) { .hero__slide { transition: opacity 0.01ms; transform: none !important; } }

/* The live wire: a gold trace that runs down the left margin and terminates at
   the Call button. JS (initHeroWire) sets --wire-h to the exact distance. */
.btn--live { position: relative; }
.live-wire {
    position: absolute; right: calc(100% + 7px); bottom: 50%;
    width: clamp(18px, calc((100vw - var(--container)) / 2 + 8px), 72px);
    height: var(--wire-h, 70vh);
    border-left: 2px solid var(--gold-300); border-bottom: 2px solid var(--gold-300);
    border-bottom-left-radius: 14px;
    pointer-events: none;
    animation: wire-draw 1.15s 0.25s cubic-bezier(0.55, 0.1, 0.35, 1) both;
}
.live-wire::after {
    content: ""; position: absolute; right: -6px; bottom: -6px; width: 10px; height: 10px;
    border-radius: 50%; background: var(--gold-300);
    animation: node-on 0.5s 1.35s var(--ease) both;
}
.btn--live { animation: live-on 1.4s 1.45s var(--ease) both; }
@keyframes wire-draw {
    0% { clip-path: inset(0 calc(100% - 3px) 100% 0); }
    72% { clip-path: inset(0 calc(100% - 3px) 0 0); }
    100% { clip-path: inset(0 0 0 0); }
}
@keyframes node-on {
    from { transform: scale(0); box-shadow: 0 0 0 0 rgba(224, 165, 58, 0.8); }
    to { transform: scale(1); box-shadow: 0 0 0 5px rgba(224, 165, 58, 0.18); }
}
@keyframes live-on {
    0% { box-shadow: 0 0 0 0 rgba(224, 165, 58, 0.7); }
    100% { box-shadow: 0 0 0 14px rgba(224, 165, 58, 0); }
}
@media (max-width: 719px) { .live-wire { display: none; } }

/* Credential strip under the hero */
.facts-strip { background: var(--white); border-bottom: 1px solid var(--line); }
.facts-strip__list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.facts-strip__item { display: flex; align-items: center; gap: 12px; padding: 22px 8px; }
.facts-strip__item .icon { width: 28px; height: 28px; color: var(--gold-700); }
.facts-strip__item strong { display: block; font-weight: 650; color: var(--ink); font-size: 0.98rem; line-height: 1.25; }
.facts-strip__item span { display: block; font-size: 0.85rem; color: var(--muted); line-height: 1.3; }
@media (min-width: 900px) {
    .facts-strip__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .facts-strip__item { padding: 26px 24px; border-left: 1px solid var(--line); }
    .facts-strip__item:first-child { border-left: 0; padding-left: 0; }
}

/* ---------- Page hero (inner pages) ----------
   Full-bleed photo filling the whole section, with a white card anchored to the
   bottom (aligned to the content container) whose notched corner reveals a gold tab. */
.page-hero { background: var(--white); padding: 0; }
.page-hero__wrap { max-width: none; }
.page-hero__frame {
    --notch: clamp(56px, 7vw, 110px);
    position: relative; isolation: isolate; display: flex; align-items: flex-end;
    min-height: clamp(400px, 36vw, 560px);
    overflow: hidden; background: var(--navy-100);
}
.page-hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-hero__frame--plain { background: var(--navy-900); }
.page-hero__frame--plain::before {
    content: ""; position: absolute; inset: 0; z-index: -2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: linear-gradient(100deg, transparent 25%, #000 80%);
    mask-image: linear-gradient(100deg, transparent 25%, #000 80%);
}
.page-hero__panel { position: relative; width: min(100%, 600px); margin-left: max(var(--gutter), calc((100% - var(--container)) / 2)); }
.page-hero__card {
    --cut: clamp(56px, 6vw, 96px);
    position: relative; z-index: 1;
    width: 100%;
    padding: clamp(24px, 2.6vw, 36px) clamp(22px, 3vw, 44px) clamp(24px, 2.6vw, 34px) clamp(20px, 2.8vw, 40px);
    padding-right: calc(var(--cut) + 16px);
    background: var(--white); border-radius: 22px 22px 0 0;
    clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.page-hero__tab {
    /* sits behind the card's notched corner, so only a sliver of gold shows */
    position: absolute; z-index: 0; top: 14px; right: 12px; width: 84px; height: 84px;
    background: var(--gold-300); border-radius: 10px;
}
.page-hero__eyebrow { margin: 0 0 10px; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.page-hero h1 {
    margin: 0; color: var(--ink); text-transform: capitalize;
    font-size: clamp(1.625rem, 1.15rem + 1.6vw, 2.5rem); line-height: 1.12; font-weight: 600; letter-spacing: -0.015em;
}
.page-hero .lead { color: var(--muted); margin: 12px 0 0; font-size: 0.975rem; line-height: 1.42; max-width: 54ch; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumbs a { color: var(--ink); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold-700); }
.breadcrumbs li[aria-current] { color: var(--gold-700); }
@media (max-width: 819px) {
    .page-hero__frame { display: block; min-height: 0; overflow: visible; clip-path: none; border-radius: 0; background: none; }
    .page-hero__img, .page-hero__frame--plain::before {
        position: relative; display: block; height: 260px;
    }
    .page-hero__frame--plain::before { content: ""; background-color: var(--navy-900); }
    .page-hero__panel { width: auto; margin: -64px var(--gutter) 0 0; }
    .page-hero__card { --cut: 52px; padding-right: 60px; border-radius: 18px 18px 0 0; }
    .page-hero__tab { top: 10px; right: 8px; width: 56px; height: 56px; }
}

/* ---------- Panel directory (services) ---------- */
.directory {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); overflow: hidden;
}
.directory__head {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 20px;
    padding: 14px 22px; background: var(--navy); color: var(--on-dark-muted); font-size: 0.875rem;
}
.directory__head strong { color: var(--white); font-weight: 650; font-stretch: 110%; letter-spacing: 0.01em; font-size: 0.95rem; }
.directory__grid { list-style: none; position: relative; display: grid; }
@media (min-width: 900px) {
    .directory__grid { grid-template-columns: 1fr 1fr; }
    .directory__grid::before { /* centre bus bar */
        content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 6px; margin-left: -3px;
        background: linear-gradient(var(--navy-100), var(--navy-100)) center / 2px 100% no-repeat;
    }
}
.circuit {
    position: relative; display: grid; grid-template-columns: 22px 48px minmax(0, 1fr) 20px; gap: 16px; align-items: center;
    height: 100%; padding: 20px 22px; border-bottom: 1px solid var(--line);
    text-decoration: none; color: var(--text);
    transition: background-color 0.2s var(--ease);
}
.circuit:hover { background: var(--paper-2); color: var(--text); }
.circuit:focus-visible { outline-offset: -3px; border-radius: 0; }
.circuit__no {
    font-size: 0.8125rem; font-weight: 640; font-stretch: 85%; color: var(--muted); font-variant-numeric: tabular-nums;
    text-align: right;
}
.circuit__icon {
    display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
    background: var(--paper); color: var(--navy);
    transition: background-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.circuit__icon .icon { width: 26px; height: 26px; }
.circuit:hover .circuit__icon, .circuit:focus-visible .circuit__icon {
    background: var(--gold-100); color: var(--gold-700); box-shadow: inset 0 0 0 1px rgba(201, 138, 31, 0.35);
}
/* hover: the icon re-draws itself like current running through it */
.icon--draw > * { stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
    .circuit:hover .icon--draw > *, .circuit:focus-visible .icon--draw > * { animation: icon-draw 0.75s var(--ease) both; }
    .circuit:hover .icon--draw > :nth-child(2), .circuit:focus-visible .icon--draw > :nth-child(2) { animation-delay: 0.08s; }
    .circuit:hover .icon--draw > :nth-child(n+3), .circuit:focus-visible .icon--draw > :nth-child(n+3) { animation-delay: 0.16s; }
}
@keyframes icon-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.circuit__body { display: grid; gap: 2px; }
.circuit__name { margin: 0; font-size: 1.0625rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.circuit__desc { margin: 0; font-size: 0.9375rem; color: var(--muted); line-height: 1.45; }
.circuit__go { color: var(--line-strong); transition: color 0.2s, transform 0.2s var(--ease); }
.circuit:hover .circuit__go { color: var(--navy); transform: translateX(3px); }
@media (min-width: 900px) {
    .directory__grid > li:nth-child(odd) .circuit { padding-right: 34px; }
    .directory__grid > li:nth-child(even) .circuit { padding-left: 34px; }
    .directory__grid > li:nth-last-child(-n + 2) .circuit { border-bottom: 0; }
}
@media (max-width: 899px) { .directory__grid > li:last-child .circuit { border-bottom: 0; } }
.directory__foot {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
    padding: 16px 22px; background: var(--paper-2); border-top: 1px solid var(--line); font-size: 0.95rem;
}
.directory__foot a { font-weight: 620; }

/* ---------- Process steps (a real sequence, so numbered nodes on a trace) ---------- */
.steps { list-style: none; position: relative; display: grid; gap: 28px; counter-reset: step; }
.step { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-content: start; }
.step__node {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    background: var(--white); border: 2px solid var(--gold); color: var(--navy); font-weight: 700; font-stretch: 90%;
    position: relative; z-index: 1;
}
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.steps::before { /* vertical trace on mobile */
    content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: var(--line-strong);
}
@media (min-width: 900px) {
    .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
    .step { grid-template-columns: 1fr; gap: 18px; }
    .steps::before { left: 22px; right: 22px; top: 21px; bottom: auto; width: auto; height: 2px; }
}
.section--navy .step__node { background: var(--navy); color: var(--white); }
.section--navy .steps::before { background: rgba(255, 255, 255, 0.18); }
.section--navy .step p { color: var(--on-dark-muted); }

/* ---------- Split (image + text) ---------- */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) {
    .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
    .split--reverse > :first-child { order: 2; }
}
.split__media { position: relative; margin: 0; }
.split__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); background: var(--navy-100); }
.split__media figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--muted); }
.checklist { list-style: none; display: grid; gap: 12px; margin: 24px 0 28px; }
.checklist li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.checklist .icon { width: 22px; height: 22px; color: var(--gold-700); margin-top: 2px; }
.checklist strong { color: var(--ink); font-weight: 650; }
.checklist--2 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .checklist--2 { grid-template-columns: 1fr 1fr; column-gap: 28px; } }

/* ---------- Principles (company "How we work", services "Who we work with") ----------
   Four separate vertical cards, evenly spaced: 1 column → 2 → 4. */
.principles { list-style: none; display: grid; gap: 20px; }
@media (min-width: 640px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .principles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
.principle {
    display: flex; flex-direction: column; background: var(--white); padding: clamp(26px, 2.4vw, 34px) clamp(22px, 2vw, 28px);
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.principle:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.principle h3 { margin-bottom: 10px; }
.principle__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; background: var(--gold-100); color: var(--gold-700); margin-bottom: 18px; }
.principle p { margin: 0; color: var(--muted); }

/* Credentials card */
.cred-card {
    display: grid; gap: 28px; padding: clamp(28px, 4vw, 48px);
    background: var(--navy-900); color: var(--on-dark); border-radius: var(--radius-lg);
    background-image: radial-gradient(circle at 100% 0%, rgba(201, 138, 31, 0.22), transparent 45%);
}
.cred-card h2 { color: var(--white); }
.cred-card .lead { color: var(--on-dark-muted); margin-bottom: 0; }
.info-card .site-footer__logo { height: 30px; }
.info-card__area { margin: 16px 0 18px; }
.cred-card__list { list-style: none; display: grid; gap: 1px; background: var(--line-dark); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 760px) { .cred-card__list { grid-template-columns: repeat(3, 1fr); } }
.cred-card__item { padding: 22px; background: var(--navy-800); }
.cred-card__item .icon { color: var(--gold-300); width: 28px; height: 28px; margin-bottom: 12px; }
.cred-card__item span { display: block; font-size: 0.85rem; color: var(--on-dark-muted); }
.cred-card__item small { display: block; margin-top: 8px; font-size: 0.8125rem; line-height: 1.4; color: #9FB0CC; }
.cred-card__item strong { display: block; color: var(--white); font-weight: 620; line-height: 1.35; margin-top: 2px; }

/* ---------- Gallery ---------- */
.gallery-section { background: var(--paper); }
.tabs {
    display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding: 2px 2px 10px; margin: 0 0 28px;
    scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.tab {
    flex: none; display: inline-flex; align-items: center; gap: 8px; scroll-snap-align: start;
    min-height: 44px; padding: 0.55rem 1rem; border-radius: 999px;
    background: var(--white); border: 1px solid var(--line); color: var(--ink);
    font-weight: 600; font-size: 0.95rem; white-space: nowrap;
    transition: background-color 0.18s, color 0.18s, border-color 0.18s;
}
.tab:hover { border-color: var(--navy); }
.tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.tab__count {
    min-width: 24px; padding: 1px 7px; border-radius: 999px; font-size: 0.78rem; font-weight: 650;
    background: var(--paper); color: var(--muted); text-align: center; font-variant-numeric: tabular-nums;
}
.tab[aria-selected="true"] .tab__count { background: rgba(255, 255, 255, 0.16); color: var(--white); }

.gallery-grid { list-style: none; display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }
.work-card {
    display: flex; flex-direction: column; height: 100%; cursor: pointer;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: box-shadow 0.3s var(--ease);
}
.work-card:hover { box-shadow: var(--shadow); }
.work-card__media { position: relative; aspect-ratio: 4 / 3.4; overflow: hidden; background: var(--navy-100); margin: 0; }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.work-card:hover .work-card__media img { transform: scale(1.035); }
.badge {
    display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 9px;
    border-radius: 999px; font-size: 0.78rem; font-weight: 640; line-height: 1.2;
    background: rgba(13, 21, 41, 0.82); color: var(--white); backdrop-filter: blur(6px);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-300); }
.badge--light { background: var(--paper); color: var(--ink); backdrop-filter: none; }
.badge--light::before { background: var(--gold); }
.work-card .badge { position: absolute; top: 14px; left: 14px; }
.badge--card { background: var(--white); color: var(--navy); backdrop-filter: none; box-shadow: 0 2px 8px rgba(17, 28, 51, 0.16); }
.badge--card::before { background: var(--gold); }
.work-card__arrow {
    position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center;
    width: 46px; height: 46px; border-radius: 50%; background: var(--white); color: var(--navy);
    box-shadow: 0 6px 18px rgba(17, 28, 51, 0.25);
    opacity: 0; transform: translate(-6px, 6px) scale(0.9);
    transition: opacity 0.25s var(--ease), transform 0.3s var(--ease), background-color 0.2s, color 0.2s;
}
.work-card__arrow .icon { width: 20px; height: 20px; stroke-width: 2; }
.work-card:hover .work-card__arrow, .work-card:focus-within .work-card__arrow { opacity: 1; transform: none; }
.work-card:hover .work-card__arrow:hover { background: var(--gold-300); }
@media (hover: none) { .work-card__arrow { opacity: 1; transform: none; } }
.work-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; flex: 1; padding: 20px 22px 22px; }
.work-card__title { margin: 0; font-size: 1.125rem; line-height: 1.3; flex: 1; }
.gallery-empty { padding: 48px 24px; text-align: center; color: var(--muted); background: var(--white); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }

/* Modal (native <dialog>) */
.modal {
    width: min(1080px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0;
    border-radius: var(--radius-lg); background: var(--white); color: var(--text); box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.modal::backdrop { background: rgba(9, 14, 28, 0.74); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in 0.28s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(0.985); } to { opacity: 1; transform: none; } }
.modal__layout { display: grid; max-height: calc(100dvh - 24px); overflow-y: auto; }
@media (min-width: 860px) { .modal__layout { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); overflow: hidden; } }
/* Photo pane: the image is absolutely positioned inside a fixed-size box, so portrait and
   landscape photos are always centered and never spill out (object-fit: contain). */
.modal__media { position: relative; margin: 0; background: var(--paper); overflow: hidden; height: min(78vw, 56dvh); min-height: 240px; }
@media (min-width: 860px) { .modal__media { height: auto; min-height: min(78dvh, 760px); } }
.modal__media img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: contain; object-position: center; }
.modal__media .modal__close { z-index: 2; }
@media (max-width: 859px) { .modal__media img { object-fit: cover; object-position: center 40%; } } /* mobile: photo fills the whole frame */
.modal__close {
    position: absolute; top: 14px; right: 14px; z-index: 2;
    display: grid; place-items: center; width: 42px; height: 42px; padding: 0;
    background: var(--white); color: var(--navy); border: 1px solid var(--line); border-radius: 10px;
    box-shadow: 0 4px 14px rgba(17, 28, 51, 0.18);
}
.modal__close:hover { background: var(--paper); }
.modal__body { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 3vw, 36px); }
@media (min-width: 860px) { .modal__body { overflow-y: auto; max-height: min(78dvh, 760px); } }
.modal__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.modal__title { margin: 0; font-size: clamp(1.375rem, 1.15rem + 0.8vw, 1.75rem); }
.modal__desc { margin: 0; }
.modal__scope h3 { font-size: 0.95rem; margin-bottom: 10px; }
.modal__scope .checklist { margin: 0; gap: 8px; font-size: 0.97rem; }
.modal__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.modal__nav { display: flex; gap: 8px; }
.modal__nav button {
    display: grid; place-items: center; width: 42px; height: 42px; padding: 0;
    background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); color: var(--navy);
}
.modal__nav button:hover { border-color: var(--navy); }
body.modal-open { overflow: hidden; }

/* ---------- Reviews carousel ---------- */
.reviews-section { overflow: hidden; }
.reviews-section.section--paper { background: #E1E7F0; } /* one step darker than #EEF1F5 */
.reviews-section .btn--ghost { --btn-bg: var(--white); --btn-bd: var(--line-strong); }
.reviews-section .btn--ghost:hover { --btn-bd: var(--navy); --btn-bg: var(--white); }
.reviews-head-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; margin-top: 26px; }
.reviews-head { text-align: center; }
.reviews-note--center { text-align: center; }
.marquee {
    --gap: 20px;
    position: relative; display: grid; gap: var(--gap);
}
.marquee__row { display: flex; overflow: hidden; }
.marquee__track { display: flex; gap: var(--gap); padding-right: var(--gap); flex: none; animation: marquee var(--duration, 70s) linear infinite; }
.marquee__row--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track, .marquee.is-paused .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.review-card {
    flex: none; width: min(360px, 82vw); display: flex; flex-direction: column; gap: 14px;
    padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.review-card__head { display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center; }
.review-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review-card__avatar {
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; overflow: hidden;
    font-weight: 700; font-size: 1.1rem; color: var(--white); background: var(--navy);
}
.review-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-card__avatar--gold { background: var(--gold); color: var(--navy-900); }
.review-card__avatar--slate { background: var(--navy-700); }
.review-card__name { margin: 0; font-weight: 650; color: var(--ink); line-height: 1.25; }
.review-card__where { margin: 0; font-size: 0.85rem; color: var(--muted); }
.review-card__source { width: 24px; height: 24px; align-self: start; }
.review-card__sample {
    padding: 3px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 650;
    color: var(--gold-700); background: var(--gold-100); white-space: nowrap;
}
.stars { display: flex; gap: 2px; color: var(--gold); }
.stars .icon { width: 19px; height: 19px; }
.stars .is-off { color: var(--line-strong); }
.review-card__text { margin: 0; color: var(--text); font-size: 1rem; line-height: 1.6; }
.reviews-note { margin: 28px 0 0; font-size: 0.875rem; color: var(--muted); }
.reviews-section .review-card { border-color: var(--line); box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
    .marquee { -webkit-mask-image: none; mask-image: none; }
    .marquee__row { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
    .marquee__track { animation: none; }
    .marquee__track[aria-hidden="true"] { display: none; }
    .review-card { scroll-snap-align: start; }
}

/* ---------- Service area ---------- */
.area-layout { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .area-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; } }
.area-map {
    margin: 0; padding: clamp(10px, 2vw, 18px); background: var(--white);
    border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.area-map svg { width: 100%; height: auto; font-family: var(--font); }
.area-map figcaption { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px 6px 4px; font-size: 0.85rem; color: var(--muted); }
.legend { display: inline-flex; align-items: center; gap: 8px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.legend--home i { background: var(--gold); box-shadow: 0 0 0 3px rgba(201, 138, 31, 0.25); }
.legend--city i { background: var(--white); border: 2.5px solid var(--navy); }
.legend--trace i { width: 18px; height: 2px; border-radius: 0; background: var(--navy); opacity: 0.55; }

.map-water { fill: var(--water); }
.map-grid line { stroke: var(--navy); stroke-opacity: 0.06; stroke-width: 1; }
.map-trace { fill: none; stroke: var(--navy); stroke-opacity: 0.38; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.map-node circle.dot { fill: var(--white); stroke: var(--navy); stroke-width: 3; transition: r 0.2s, fill 0.2s; }
.map-node text { font-size: 15px; font-weight: 600; fill: var(--ink); paint-order: stroke; stroke: var(--white); stroke-width: 5px; stroke-linejoin: round; }
.map-node.is-active circle.dot { fill: var(--gold); stroke: var(--navy); r: 9; }
.map-node.is-active text { fill: var(--gold-700); }
.map-node--home circle.dot { fill: var(--gold); stroke: var(--gold); }
.map-node--home circle.ring { fill: none; stroke: var(--gold); stroke-width: 1.5; opacity: 0.6; }
.map-node--home text { font-weight: 720; font-size: 17px; }
.map-node--home text.sub { font-size: 12px; font-weight: 550; fill: var(--muted); }
.map-landmark path { fill: var(--navy-100); stroke: var(--navy); stroke-opacity: 0.35; }
.map-landmark text, .map-water-label { font-size: 12.5px; font-weight: 550; fill: var(--muted); }
@media (max-width: 600px) {
    .map-node text { font-size: 19px; stroke-width: 6px; }
    .map-node--home text { font-size: 21px; }
    .map-node--home text.sub { font-size: 14px; }
    .map-landmark text, .map-water-label { font-size: 15px; }
}
@media (prefers-reduced-motion: no-preference) {
    .map-node--home circle.ring { animation: ring-pulse 2.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
}
@keyframes ring-pulse { 0% { transform: scale(0.6); opacity: 0.7; } 100% { transform: scale(1.8); opacity: 0; } }

.city-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; border-top: 1px solid var(--line); }
.city-list li { border-bottom: 1px solid var(--line); }
.city-list__item {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 2px; background: none; border: 0; text-align: left;
    font-size: 1.0625rem; font-weight: 560; color: var(--ink);
}
.city-list__item::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--navy); flex: none; transition: background-color 0.2s; }
.city-list__item:hover::before, .city-list__item.is-active::before { background: var(--gold); border-color: var(--gold); }
.city-list__item--home { font-weight: 700; }
.city-list__item--home::before { background: var(--gold); border-color: var(--gold); }
.city-list__home { font-size: 0.78rem; font-weight: 600; color: var(--gold-700); }
.area-note { margin-top: 20px; color: var(--muted); font-size: 0.97rem; }
.area-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 28px; }
.area-chips li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: 0.92rem; font-weight: 560; color: var(--ink); }
.area-chips li.is-home { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ---------- Service detail ---------- */
.service-layout { display: grid; gap: 48px; align-items: start; }
@media (min-width: 1000px) { .service-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 72px; } }
.service-main > section + section { margin-top: clamp(40px, 5vw, 64px); }
.service-main h2 { font-size: clamp(1.7875rem, 1.495rem + 1.04vw, 2.275rem); }
.signs { list-style: none; display: grid; gap: 10px; }
.signs li {
    display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start;
    padding: 14px 16px; background: var(--paper-2); border-left: 3px solid var(--gold); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.signs li::before { content: ""; width: 8px; height: 8px; margin: 8px 0 0 4px; border-radius: 50%; background: var(--navy); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0;
    font-weight: 640; font-size: 1.0625rem; color: var(--ink); cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--gold-700); transition: transform 0.2s var(--ease); flex: none; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); max-width: 66ch; }

.quote-card {
    position: sticky; top: calc(var(--header-h) + 24px);
    padding: 28px; background: var(--navy-900); color: var(--on-dark); border-radius: var(--radius-lg);
    background-image: radial-gradient(circle at 100% 0%, rgba(201, 138, 31, 0.22), transparent 50%);
}
.header-hidden .quote-card { top: 24px; }
.quote-card h2 { color: var(--white); font-size: 1.95rem; margin-bottom: 8px; }
.quote-card p { color: var(--on-dark-muted); font-size: 0.97rem; }
.quote-card__actions { display: grid; gap: 10px; margin: 20px 0; }
.quote-card__phone { font-size: 1.375rem; font-weight: 700; color: var(--white); text-decoration: none; font-variant-numeric: tabular-nums; }
.quote-card__phone:hover { color: var(--gold-300); }
.quote-card__list { list-style: none; display: grid; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line-dark); font-size: 0.92rem; }
.quote-card__list li { display: flex; gap: 10px; align-items: center; }
.quote-card__list .icon { color: var(--gold-300); }
.quote-card__list a { color: var(--on-dark); }

.service-links { list-style: none; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.service-links a {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px; height: 100%;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    color: var(--ink); text-decoration: none; font-weight: 620;
}
.service-links a:hover { border-color: var(--navy); color: var(--ink); }
.service-links .icon { color: var(--gold-700); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--paper-2); color: var(--ink); padding-block: clamp(56px, 7vw, 96px) clamp(72px, 8vw, 112px); isolation: isolate; }
.cta-band__trace { position: absolute; inset: auto 0 22px; z-index: -1; width: 100%; height: 40px; color: var(--gold); opacity: 0.4; }
.cta-band__inner { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1fr auto; gap: 48px; } }
.cta-band h2 { color: var(--ink); margin-bottom: 10px; max-width: 22ch; }
.cta-band p { margin: 0; color: var(--navy-700); max-width: 56ch; }
/* Alternate: slate band (add class "cta-band--slate") */
.cta-band--slate { background: var(--slate); color: var(--white); }
.cta-band--slate h2 { color: var(--white); }
.cta-band--slate p { color: #E3E7EF; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band__facts {
    list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 22px;
    font-size: 0.9375rem; color: var(--navy-700);
}
.cta-band__facts li { display: inline-flex; align-items: center; gap: 10px; }
.cta-band__facts .icon { box-sizing: content-box; width: 20px; height: 20px; padding: 7px; color: var(--navy); background: var(--white); border-radius: 7px; box-shadow: 0 0 0 1px var(--line); }
.cta-band--slate .cta-band__facts { color: #E3E7EF; }
.cta-band--slate .cta-band__facts .icon { color: var(--gold-300); }

/* ---------- Forms ---------- */
.contact-layout { display: grid; gap: 40px; align-items: start; }
.contact-layout > *, .form-grid > *, .service-layout > *, .legal-layout > *, .area-layout > *, .split > *, .hero__grid > *, .page-hero__grid > * { min-width: 0; }
@media (min-width: 1000px) { .contact-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; } }
.form-card {
    padding: clamp(22px, 4vw, 44px); background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.form-card h2 { font-size: clamp(1.7875rem, 1.495rem + 1.04vw, 2.275rem); margin-bottom: 6px; }
.form-grid { display: grid; gap: 20px; margin-top: 28px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: grid; gap: 7px; align-content: start; }
.field label, .field legend { font-weight: 620; font-size: 0.95rem; color: var(--ink); }
.req { color: var(--gold-700); margin-left: 2px; }
.input, .select, .textarea {
    width: 100%; min-height: 50px; padding: 0.7rem 0.9rem;
    background: var(--white); color: var(--ink);
    border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.select {
    appearance: none; padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B2A4A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 0.8rem center; background-size: 18px;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--muted); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(201, 138, 31, 0.35); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--error); }
.field__error { margin: 0; font-size: 0.875rem; color: var(--error); font-weight: 550; }
.field__error:empty { display: none; }
.field__hint { margin: 0; font-size: 0.85rem; color: var(--muted); }

.choice-group { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; min-inline-size: 0; }
.choice-group legend { padding: 0; margin-bottom: 10px; }
.choice-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.choice {
    position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0.7rem 1rem;
    border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; color: var(--ink);
    transition: border-color 0.15s, background-color 0.15s;
}
.choice:hover { border-color: var(--muted); }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__box {
    display: grid; place-items: center; width: 22px; height: 22px; flex: none;
    border: 2px solid var(--navy); border-radius: 5px; background: var(--white); color: transparent;
}
.choice__box .icon { width: 16px; height: 16px; stroke-width: 3; }
.choice input:checked + .choice__box { background: var(--navy); color: var(--gold-300); }
.choice:has(input:checked) { border-color: var(--navy); background: var(--paper-2); }
.choice:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(201, 138, 31, 0.45); }
.field.has-error .choice { border-color: var(--error); }

.consent-check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; cursor: pointer; font-size: 0.98rem; color: var(--text); }
.consent-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent-check .choice__box { margin-top: 1px; }
.consent-check input:checked + .choice__box { background: var(--navy); color: var(--gold-300); }
.consent-check input:focus-visible + .choice__box { box-shadow: 0 0 0 3px rgba(201, 138, 31, 0.45); }
.field.has-error .consent-check .choice__box { border-color: var(--error); }

.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.turnstile-wrap { min-height: 65px; }
.form-submit { display: grid; gap: 14px; margin-top: 8px; }
.form-submit .btn { justify-self: start; min-width: 240px; }
@media (max-width: 639px) { .form-submit .btn { width: 100%; justify-self: stretch; } }
.form-legal { margin: 0; font-size: 0.875rem; color: var(--muted); }
.btn .spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; display: none; }
.btn.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.alert { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 16px 18px; border-radius: var(--radius); font-weight: 550; line-height: 1.5; margin-bottom: 8px; }
.alert .icon { width: 22px; height: 22px; margin-top: 1px; }
.alert--success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(30, 122, 76, 0.3); }
.alert--error { background: var(--error-bg); color: var(--error); border: 1px solid rgba(180, 35, 24, 0.3); }
.alert a { color: inherit; font-weight: 700; }

.contact-aside { display: grid; gap: 20px; }
.info-card { padding: 26px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.info-card h2 { font-size: 1.625rem; margin-bottom: 6px; }
.info-card--navy { background: var(--navy-900); border-color: var(--navy-900); color: var(--on-dark); }
.info-card--navy h2 { color: var(--white); }
.info-card--navy p { color: var(--on-dark-muted); }
.contact-lines { list-style: none; display: grid; gap: 4px; margin-top: 12px; }
.contact-lines a { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-weight: 650; text-decoration: none; color: var(--white); font-size: 1.0625rem; word-break: break-word; }
.contact-lines a:hover { color: var(--gold-300); }
.contact-lines .icon { color: var(--gold-300); }
.next-steps { list-style: none; counter-reset: next; display: grid; gap: 14px; margin-top: 14px; }
.next-steps li { counter-increment: next; display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 0.97rem; }
.next-steps li::before {
    content: counter(next); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
    border: 2px solid var(--gold); font-weight: 700; font-size: 0.85rem; color: var(--navy);
}

/* ---------- Legal pages ---------- */
.legal-layout { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1000px) { .legal-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 64px; } }
.toc { position: sticky; top: calc(var(--header-h) + 24px); padding: 20px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.92rem; }
.toc h2 { font-size: 0.95rem; font-weight: 600; margin-bottom: 10px; }
.toc ol { list-style: none; display: grid; gap: 4px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: grid; grid-template-columns: 24px 1fr; padding: 4px 0; color: var(--text); text-decoration: none; }
.toc a::before { content: counter(toc) "."; color: var(--muted); font-variant-numeric: tabular-nums; }
.toc a:hover { color: var(--gold-700); }
@media (max-width: 999px) { .toc { position: static; } }
.legal { max-width: 760px; }
.legal h2 { font-size: 1.95rem; margin-top: 48px; padding-top: 8px; scroll-margin-top: calc(var(--header-h) + 16px); }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 1.0625rem; margin-top: 24px; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 1.25rem; display: grid; gap: 8px; margin: 0 0 1em; }
.legal table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 0.95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px; border: 1px solid var(--line); }
.legal th { background: var(--paper-2); color: var(--ink); font-weight: 650; }
.legal__meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--line); font-size: 0.92rem; color: var(--muted); }
.table-scroll { overflow-x: auto; }

.license-grid { list-style: none; display: grid; gap: 16px; margin: 32px 0; }
@media (min-width: 760px) { .license-grid { grid-template-columns: repeat(3, 1fr); } }
.license-item { padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.license-item__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 10px; background: var(--paper); color: var(--navy); margin-bottom: 18px; }
.license-item h3 { font-size: 1.25rem; margin: 0 0 6px; }
.license-item p { margin: 0; font-weight: 600; color: var(--ink); }
.license-title { margin-bottom: 20px; }
.license-statement { padding: 24px 26px; background: var(--paper-2); border-left: 3px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.0625rem; }
.license-statement p:last-child { margin-bottom: 0; }

/* ---------- Footer ----------
   The top edge is cut to the trace shape: a raised 400px plateau centered on the page
   with 45° shoulders. .site-footer__edge strokes the same outline in gold. */
.site-footer {
    --edge: 24px;
    position: relative; overflow: hidden;
    margin-top: calc(var(--edge) * -1); /* plateau overlaps the section above */
    padding-top: calc(var(--edge) + clamp(48px, 6vw, 80px));
    background: var(--navy-950); color: var(--on-dark-muted); font-size: 0.97rem; font-weight: 400;
    clip-path: polygon(
        0 var(--edge), calc(50% - 200px) var(--edge), calc(50% - 178.5px) 0,
        calc(50% + 178.5px) 0, calc(50% + 200px) var(--edge), 100% var(--edge), 100% 100%, 0 100%);
}
.site-footer__edge { position: absolute; top: 0; left: 50%; width: 3000px; max-width: none; height: var(--edge); transform: translateX(-50%); color: var(--gold); opacity: 0.75; pointer-events: none; }
.site-footer__grid { display: grid; gap: 40px; padding-bottom: clamp(40px, 5vw, 64px); }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 1.3fr 0.7fr 1.2fr; gap: 56px; } }
.site-footer__logo { height: 36px; width: auto; }
.site-footer__caption {
    margin: 0 0 16px; font-size: 0.75rem; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--footer-caption);
}
.site-footer__text { margin: 0 0 22px; max-width: 36ch; color: var(--on-dark); font-weight: 400; line-height: 1.6; }
.site-footer__col--brand .site-footer__text { margin-top: 20px; }
.site-footer__contact { list-style: none; display: grid; gap: 6px; }
.site-footer__contact a { color: var(--on-dark); text-decoration: none; font-weight: 500; }
.site-footer__contact a.site-footer__phone { color: var(--white); font-weight: 600; font-size: 1.375rem; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.site-footer__contact a:hover { color: var(--gold-300); }
.site-footer__nav { list-style: none; display: grid; gap: 12px; }
.site-footer__nav a { color: var(--white); font-weight: 500; text-decoration: none; font-size: 1.0625rem; }
.site-footer__nav a:hover, .site-footer__nav a[aria-current="page"] { color: var(--gold-300); }
.social { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.social__link {
    display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--radius-sm);
    border: 1px solid var(--line-dark); color: var(--on-dark); background: rgba(255, 255, 255, 0.03);
    transition: background-color 0.18s, color 0.18s, border-color 0.18s;
}
.social__link .icon { width: 20px; height: 20px; }
@media (min-width: 900px) {
    /* desktop: all icons on one line; tiles shrink evenly if the column is narrow */
    .social { flex-wrap: nowrap; }
    .social li { flex: 0 1 38px; min-width: 0; }
    .social__link { width: 100%; height: auto; aspect-ratio: 1; }
}
.social__link:hover, .social__link:focus-visible { color: var(--navy); background: var(--white); border-color: var(--white); }
.site-footer__legal { border-top: 1px solid var(--line-dark); }
.site-footer__legal-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 20px; font-size: 0.875rem; font-weight: 400; }
.site-footer__legal p { margin: 0; }
.site-footer__legal-links { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; }
.site-footer__legal-links li + li::before { content: "|"; margin: 0 12px; color: rgba(255, 255, 255, 0.25); }
.site-footer__legal-links a { color: var(--on-dark); text-decoration: none; font-weight: 400; }
.site-footer__legal-links a:hover, .site-footer__legal-links a[aria-current="page"] { color: var(--gold-300); }
@media (max-width: 599px) {
    .site-footer__legal-links { gap: 8px 20px; }
    .site-footer__legal-links li + li::before { content: none; }
}
@media (max-width: 480px) {
    .site-footer { --edge: 18px; clip-path: polygon(0 var(--edge), calc(50% - 110px) var(--edge), calc(50% - 92px) 0, calc(50% + 92px) 0, calc(50% + 110px) var(--edge), 100% var(--edge), 100% 100%, 0 100%); }
    .site-footer__edge { display: none; }
}

/* ---------- Consent banner ---------- */
.consent {
    position: fixed; z-index: 70; left: var(--gutter); right: var(--gutter); bottom: calc(84px + env(safe-area-inset-bottom));
    display: grid; gap: 14px; max-width: 520px; padding: 18px 20px;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
@media (min-width: 900px) { .consent { bottom: 24px; right: auto; } }
.consent__text { margin: 0; font-size: 0.93rem; }
.consent__actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ---------- Error pages ---------- */
.error-page { text-align: left; }
.error-page .code { font-size: 0.95rem; color: var(--gold-700); font-weight: 650; margin-bottom: 12px; }


/* ==========================================================================
   Set 5 sections
   ========================================================================== */
/* Eyebrow label: small gold square + spaced capitals */
.eyebrow {
    display: flex; align-items: center; gap: 12px; margin: 0 0 16px;
    font-size: 0.78rem; font-weight: 650; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; flex: none; background: var(--gold); }
.section--navy .eyebrow { color: var(--white); }
.section--warm { background: var(--hero-bg); }
.section-head--flush { margin-bottom: clamp(32px, 4vw, 48px); }
.section-head--split.section-head--flush { align-items: start; }
.section-head--lg h2 { font-size: clamp(2.25rem, 1.55rem + 2.4vw, 3.375rem); }
.section-head--lg .lead { margin-top: 14px; }
.section-head__aside { margin: 0; max-width: 270px; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.section--navy .section-head__aside { color: var(--on-dark-muted); }
.text-link--arrow { border-bottom: 0; padding-bottom: 0; gap: 10px; font-size: 0.97rem; }
.text-link--arrow .icon { transition: transform 0.2s var(--ease); }
.text-link--arrow:hover .icon { transform: translate(2px, -2px); }
.display-title { font-size: clamp(2.25rem, 1.55rem + 2.4vw, 3.375rem); line-height: 1.08; letter-spacing: -0.025em; }

/* Small white button → navy on hover (service cards) */
.btn-mini {
    display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
    min-height: 36px; padding: 0.45rem 0.85rem; border-radius: 7px;
    font-size: 0.875rem; font-weight: 620; line-height: 1; text-decoration: none; white-space: nowrap;
    color: var(--navy); background: var(--white); border: 1px solid var(--line-strong);
    transition: background-color 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease);
}
.btn-mini .icon { width: 15px; height: 15px; transition: transform 0.22s var(--ease); }

/* Homepage service cards — the whole card is clickable (stretched link) */
.svc-cards { list-style: none; display: grid; gap: 18px; }
@media (min-width: 640px) { .svc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .svc-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.svc-card {
    position: relative; display: flex; flex-direction: column;
    padding: 26px 24px 24px; background: var(--white);
    border: 1px solid var(--line); border-radius: 12px;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.svc-card__top { display: flex; align-items: flex-start; justify-content: space-between; }
.svc-card__icon { display: grid; place-items: center; width: 48px; height: 48px; margin: -6px 0 0 -6px; border-radius: 10px; color: var(--gold-700); transition: background-color 0.25s var(--ease); }
.svc-card__icon .icon { width: 30px; height: 30px; }
.svc-card__no { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; color: var(--muted); font-variant-numeric: tabular-nums; }
.svc-card__title { margin: 22px 0 12px; font-size: 1.1875rem; line-height: 1.3; }
.svc-card__text { margin: 0 0 26px; color: var(--muted); font-size: 0.97rem; line-height: 1.6; flex: 1; }
.svc-card__link::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.svc-card:hover, .svc-card:focus-within { transform: translateY(-5px); border-color: rgba(201, 138, 31, 0.45); box-shadow: var(--shadow); }
.svc-card:hover .svc-card__icon, .svc-card:focus-within .svc-card__icon { background: var(--gold-100); }
.svc-card:hover .btn-mini, .btn-mini:focus-visible { color: var(--white); background: var(--navy); border-color: var(--navy); }
.svc-card:hover .btn-mini .icon { transform: translate(2px, -2px); }
.svc-card__link:focus-visible { outline: 3px solid var(--gold-300); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
    .svc-card:hover .icon--draw > *, .svc-card:focus-within .icon--draw > *,
    .pillar:hover .icon--draw > * { animation: icon-draw 0.75s var(--ease) both; }
    .svc-card:hover .icon--draw > :nth-child(2), .svc-card:focus-within .icon--draw > :nth-child(2), .pillar:hover .icon--draw > :nth-child(2) { animation-delay: 0.08s; }
    .svc-card:hover .icon--draw > :nth-child(n+3), .svc-card:focus-within .icon--draw > :nth-child(n+3), .pillar:hover .icon--draw > :nth-child(n+3) { animation-delay: 0.16s; }
}

/* Homepage "Good work. No guesswork." */
.goodwork { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .goodwork { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr); gap: clamp(48px, 6vw, 88px); } }
.goodwork__media { position: relative; margin: 0; }
.goodwork__media img { width: 100%; aspect-ratio: 1.09; object-fit: cover; object-position: 50% 30%; border-radius: 12px; background: var(--navy-100); }
.goodwork__badge {
    position: absolute; left: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 16px; background: var(--white); border-radius: 6px; box-shadow: 0 6px 18px -8px rgba(17, 28, 51, 0.35);
    font-size: 0.72rem; font-weight: 650; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink);
}
.goodwork__badge::before { content: ""; width: 6px; height: 6px; background: var(--gold); }
.goodwork__copy h2 { margin-bottom: 22px; }
.goodwork__intro { margin: 0 0 16px; color: var(--ink); font-weight: 550; font-size: 1.0625rem; line-height: 1.55; max-width: 46ch; }
.goodwork__copy > p:not(.eyebrow):not(.goodwork__intro) { margin: 0; color: var(--muted); line-height: 1.7; max-width: 52ch; }
.ticks { list-style: none; display: grid; gap: 12px; margin: 26px 0 30px; }
.ticks li { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 550; font-size: 0.97rem; }
.ticks .icon { width: 17px; height: 17px; color: var(--gold); stroke-width: 2.25; }

/* Company — "The little things make the difference" (navy) */
.pillars { list-style: none; display: grid; gap: 40px; }
@media (min-width: 820px) { .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px); } }
.pillar { padding-top: clamp(32px, 3.5vw, 48px); border-top: 1px solid rgba(255, 255, 255, 0.16); }
.pillar__icon { display: block; color: var(--gold-300); }
.pillar__icon .icon { width: 40px; height: 40px; stroke-width: 1.5; }
.pillar h3 { margin: clamp(28px, 3vw, 44px) 0 16px; color: var(--white); font-size: 1.375rem; }
.pillar p { margin: 0; color: var(--on-dark-muted); font-size: 1.0625rem; line-height: 1.75; max-width: 40ch; }

/* Services — "Clear from the first contact" */
.flow { list-style: none; display: grid; gap: 36px; }
@media (min-width: 820px) { .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3.5vw, 48px); } }
.flow__step { padding-top: 26px; border-top: 1px solid var(--line); }
.flow__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.flow__no { font-family: var(--font-head); font-size: 1.75rem; font-weight: 700; line-height: 1; color: var(--gold); letter-spacing: -0.01em; }
.flow__arrow { width: 18px; height: 18px; color: var(--line-strong); }
.flow__step h3 { margin-bottom: 12px; font-size: 1.1875rem; }
.flow__step p { margin: 0; color: var(--muted); line-height: 1.7; max-width: 40ch; }
.section--navy .flow__step { border-top-color: rgba(255, 255, 255, 0.16); }
.section--navy .flow__no { color: var(--gold-300); }
.section--navy .flow__arrow { color: rgba(255, 255, 255, 0.35); }
.section--navy .flow__step p { color: var(--on-dark-muted); }

/* Contact — info column + form card */
.contact-grid { display: grid; gap: 48px; align-items: start; }
.contact-grid > * { min-width: 0; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.25fr); gap: clamp(48px, 6vw, 96px); } }
.contact-info__title { margin-bottom: 20px; }
.contact-info__lead { margin: 0 0 36px; color: var(--muted); font-size: 1.0625rem; line-height: 1.65; max-width: 48ch; }
.contact-rows { list-style: none; margin: 0 0 40px; }
.contact-row { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 20px; align-items: start; padding-block: 22px; }
.contact-row:first-child { padding-top: 0; }
.contact-row + .contact-row { border-top: 1px solid #F9FAFC; }
.contact-row__icon { width: 30px; height: 30px; color: var(--gold); stroke-width: 1.5; margin-top: 2px; }
.contact-row__label { display: block; margin-bottom: 8px; font-size: 0.75rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.contact-row__value { color: var(--ink); font-weight: 600; font-size: 1.25rem; text-decoration: none; word-break: break-word; }
.contact-row__value--lg { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.contact-row__value:hover { color: var(--gold-700); }

.contact-grid .form-card { background: #F9FAFC; border: 1px solid var(--line); border-radius: 14px; box-shadow: none; padding: clamp(24px, 4vw, 56px); }
.form-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.form-card__head h2 { margin: 0; }
.form-card__talk { display: inline-flex; align-items: center; gap: 10px; font-size: 0.72rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.form-card__talk .icon { width: 17px; height: 17px; color: var(--navy); transition: transform 0.2s var(--ease); }
.form-card__talk:hover { color: var(--navy); }
.form-card__talk:hover .icon { transform: translate(2px, -2px); }
.contact-grid .form-grid { gap: 26px 28px; margin-top: 36px; }
.contact-grid .field { gap: 10px; }
.contact-grid .field > label:not(.consent-check), .contact-grid .field legend { font-size: 0.78rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.contact-grid .field__opt { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); }
.contact-grid .input, .contact-grid .select, .contact-grid .textarea { min-height: 58px; padding: 0.8rem 1.1rem; border: 1px solid var(--line); border-radius: 4px; font-size: 1rem; }
.contact-grid .textarea { min-height: 150px; }
.contact-grid .input::placeholder, .contact-grid .textarea::placeholder { color: #9AA3B5; }
.contact-grid .select { font-weight: 550; padding-right: 2.75rem; background-position: right 1rem center; }
.contact-grid .choice-row { display: flex; flex-wrap: wrap; gap: 12px 40px; }
.contact-grid .choice { min-height: 0; padding: 0; border: 0; background: none; font-weight: 550; }
.contact-grid .choice:has(input:checked) { background: none; }
.contact-grid .choice:has(input:focus-visible) { box-shadow: none; }
.contact-grid .choice:has(input:focus-visible) .choice__box { box-shadow: 0 0 0 3px rgba(201, 138, 31, 0.45); }
.contact-grid .choice__box { width: 24px; height: 24px; border: 1.5px solid var(--line-strong); border-radius: 4px; }
.contact-grid .consent-check { grid-template-columns: 24px 1fr; font-size: 0.95rem; }
.contact-grid .consent-check .choice__box { border: 1.5px solid var(--line-strong); }
.contact-grid .form-submit { gap: 18px; margin-top: 4px; }
.btn--submit { width: 100%; justify-content: space-between; min-height: 64px; padding-inline: 2rem; border-radius: 4px; font-size: 1.0625rem; }
.contact-grid .form-submit .btn { justify-self: stretch; min-width: 0; }
.btn--submit .spinner { margin-right: -0.4em; }
.btn--submit__arrow { width: 20px; height: 20px; margin-left: auto; transition: transform 0.2s var(--ease); }
.btn--submit:hover .btn--submit__arrow { transform: translate(2px, -2px); }
.contact-grid .form-legal { font-size: 0.8rem; }
.contact-grid .contact-aside .info-card { background: var(--paper-2); }


/* ==========================================================================
   Set 6
   ========================================================================== */
/* Homepage "Good work" section */
.goodwork-section { background: #F9FAFC; }
/* "What we do" cards: light beige tint */
.svc-card { background: #FDFAF5; border-color: #EFE4D2; }
.svc-card:hover, .svc-card:focus-within { border-color: #E3CFAE; }
.svc-card .btn-mini { border-color: #E6DAC6; }

/* Contact */
.contact-row__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 7px; background: #FBF5EA; color: var(--gold); margin-top: 0; }
.contact-row__icon .icon { width: 22px; height: 22px; stroke-width: 1.6; }
.contact-row { grid-template-columns: 46px minmax(0, 1fr); align-items: center; }
.contact-row + .contact-row { border-top: 1px solid var(--line); }
.next-steps li::before {
    content: counter(next, decimal-leading-zero); width: auto; height: auto; display: block;
    border: 0; border-radius: 0; font-family: var(--font-head); font-size: 1.125rem; font-weight: 700; line-height: 1.35; color: var(--gold); font-variant-numeric: tabular-nums;
}
.next-steps li { grid-template-columns: 32px 1fr; }
.info-plain { padding: 8px 0 0; }
.info-plain h2 { font-size: 1.625rem; margin-bottom: 6px; }

/* Legal notices pages */
.legal-head { padding: clamp(56px, 7vw, 96px) 0 clamp(24px, 3vw, 40px); background: var(--paper-2); text-align: center; }
.legal-head h1 { margin: 0 auto; max-width: 18ch; font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.25rem); line-height: 1.05; letter-spacing: -0.025em; }
.legal-head__lead { margin: 22px auto 0; max-width: 60ch; color: var(--muted); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.55; }
.eyebrow--center { justify-content: center; }
.eyebrow--center span { color: var(--muted); }
.legal-page { background: var(--paper-2); padding-top: clamp(32px, 4vw, 64px); }
.legal-page .legal-layout { gap: clamp(32px, 5vw, 72px); }
@media (min-width: 1000px) { .legal-page .legal-layout { grid-template-columns: 300px minmax(0, 1fr); } }
.legal-nav__card { position: sticky; top: calc(var(--header-h) + 24px); padding: 26px 24px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.legal-nav__title { margin: 0 0 14px; font-family: var(--font-head); font-size: 1rem; font-weight: 650; color: var(--ink); }
.legal-nav__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.legal-nav__link {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; margin-inline: -12px;
    border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 550; font-size: 0.97rem;
    transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.legal-nav__arrow { width: 16px; height: 16px; color: var(--line-strong); transition: transform 0.2s var(--ease), color 0.2s; }
.legal-nav__link:hover { background: var(--paper-2); color: var(--ink); }
.legal-nav__link:hover .legal-nav__arrow { color: var(--navy); transform: translateX(3px); }
.legal-nav__link.is-current { background: #FBF5EA; color: var(--ink); font-weight: 650; box-shadow: inset 3px 0 0 var(--gold); }
.legal-nav__link.is-current .legal-nav__arrow { color: var(--gold); }
@media (max-width: 999px) {
    .legal-nav__card { position: static; padding: 18px 20px; }
    .legal-nav__list { display: flex; flex-wrap: wrap; gap: 8px; }
    .legal-nav__link { margin: 0; padding: 9px 14px; border: 1px solid var(--line); background: var(--white); }
    .legal-nav__arrow { display: none; }
}
.legal-page .legal { max-width: 820px; }
.legal-page .legal__meta { border-bottom-color: var(--line-strong); }
.legal--credentials .license-statement { background: var(--white); }
.legal--credentials .license-grid { margin: 28px 0 32px; padding-left: 0; gap: 16px; }
@media (min-width: 1000px) and (max-width: 1199px) { .legal--credentials .license-grid { grid-template-columns: 1fr; } }

/* Hand-drawn gold underline (e.g. Contact header "A Call") */
.nowrap { white-space: nowrap; }
.text-gold { color: var(--gold-300); } /* theme amber #E0A53A */
.swoosh { position: relative; display: inline-block; white-space: nowrap; }
.swoosh::after {
    content: ""; position: absolute; left: -0.04em; right: -0.06em; bottom: -0.16em; height: 0.2em; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 14' preserveAspectRatio='none'%3E%3Cpath d='M3 10.5C55 5.2 120 3.6 175 4.4c46 .6 86 2.4 122 5.2' fill='none' stroke='%23C98A1F' stroke-width='4.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
@media (max-width: 380px) { .page-hero h1 .nowrap { white-space: normal; } }
.page-hero h1:has(.swoosh) + .lead { margin-top: 20px; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
    .live-wire, .live-wire::after, .btn--live { animation: none !important; }
}
@media print {
    .site-header, .action-bar, .consent, .site-footer__edge, .cta-band { display: none !important; }
    body { padding: 0; }
}
