/* ============================================================
   Argent Commercial Cleaning: shared styles
   Mobile-first. Tokens first; everything else reads from them.
   ============================================================ */

:root {
  --canvas: #f3f4f2;         /* cool stone, never pure white */
  --panel: #ffffff;
  --ink: #101c2c;            /* deep navy, never pure black */
  --ink-soft: #43505f;
  --pewter: #8e98a3;         /* the brand's own metal; lines and marks only, never small text */
  --pewter-deep: #5d6875;    /* pewter dark enough for small text on the canvas (5.3:1) */
  --pewter-light: #c9cfd5;   /* pewter for text on navy (10:1) */
  --line: #dde1e4;
  --accent: #2b6cb0;         /* cobalt, in rare doses: CTA, focus, emphasis */
  --accent-hover: #1f5591;
  --accent-on-dark: #7fb0e6; /* the accent's voice on navy (7.4:1) */
  --dawn: #e7c9a1;           /* first light, whisper level only */

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(.22, .8, .3, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);

  --gutter: clamp(1.1rem, 4.5vw, 2.75rem);
  --max: 1200px;
  --section: clamp(4rem, 9vw, 7.5rem);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
html, body { overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul, ol { padding: 0; margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 400; background: var(--ink); color: #fff; padding: .7rem 1.2rem; border-radius: 6px; }
.skip-link:focus-visible { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Type ---------- */
h1, h2, h3, .display {
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 6.2vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.8rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 600; letter-spacing: -0.005em; line-height: 1.25; }

.kicker {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--mono); font-size: .74rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--pewter-deep);
  margin: 0 0 1.1rem;
}
.kicker::before { content: ""; width: 1.6rem; height: 2px; background: var(--accent); }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.24rem); color: var(--ink-soft); max-width: 58ch; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.center .kicker { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .85rem 1.5rem;
  font-family: var(--body); font-size: .98rem; font-weight: 500; line-height: 1.2;
  text-decoration: none; border-radius: 6px; border: 1.5px solid transparent; cursor: pointer;
  transition: background .3s var(--ease-soft), color .3s var(--ease-soft), border-color .3s var(--ease-soft), transform .3s var(--ease-soft);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { border-color: rgba(255,255,255,.75); color: #fff; background: rgba(16,28,44,.35); }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn .arrow { transition: transform .3s var(--ease-soft); }
.btn:hover .arrow { transform: translateX(3px); }
.text-link { color: var(--accent); font-weight: 500; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
.text-link:hover { color: var(--accent-hover); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  height: var(--header-h);
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(243,244,242,.94);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background .4s var(--ease-soft), border-color .4s var(--ease-soft);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
body.has-dark-hero.in-hero .site-header { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.has-dark-hero.in-hero .site-header .brand,
body.has-dark-hero.in-hero .site-header .nav > a,
body.has-dark-hero.in-hero .site-header .nav-services > button,
body.has-dark-hero.in-hero .site-header .menu-btn,
body.has-dark-hero.in-hero .site-header .header-phone { color: #fff; }
body.has-dark-hero.in-hero .site-header .brand-mark path { stroke: #fff; }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-mark path { stroke: var(--ink); transition: stroke .4s var(--ease-soft); }
.brand-name { font-family: var(--display); font-stretch: 118%; font-weight: 700; font-size: 1.02rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.brand-name small { display: block; font-family: var(--mono); font-stretch: 100%; font-size: .56rem; font-weight: 500; letter-spacing: .2em; margin-top: .3rem; opacity: .72; }

.nav { display: none; }
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-right: -10px;
  background: none; border: 0; color: var(--ink); cursor: pointer;
}
.menu-btn svg { width: 24px; height: 24px; }
.header-phone { display: none; }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 300;
  background: var(--ink); color: #fff;
  padding: calc(env(safe-area-inset-top, 0px) + 1rem) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 2rem);
  display: flex; flex-direction: column;
  transform: translateY(-100%); visibility: hidden;
  transition: transform .45s var(--ease), visibility 0s linear .45s;
  overflow-y: auto;
}
.drawer.is-open { transform: translateY(0); visibility: visible; transition: transform .45s var(--ease), visibility 0s; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; min-height: var(--header-h); }
.drawer-top .brand { color: #fff; }
.drawer-top .brand-mark path { stroke: #fff; }
.drawer-close { width: 48px; height: 48px; margin-right: -10px; background: none; border: 0; color: #fff; cursor: pointer; }
.drawer nav { margin-top: 1.5rem; display: grid; gap: .1rem; }
.drawer nav a { display: block; padding: .85rem 0; color: #fff; text-decoration: none; font-family: var(--display); font-stretch: 112%; font-weight: 600; font-size: 1.35rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.drawer .drawer-label { font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--pewter-light); margin: 1.6rem 0 .2rem; }
.drawer .drawer-cta { margin-top: auto; padding-top: 2rem; display: grid; gap: .75rem; }
body.drawer-open { overflow: hidden; }

@media (min-width: 1000px) {
  :root { --header-h: 76px; }
  .menu-btn { display: none; }
  .nav { display: flex; align-items: center; gap: 1.8rem; }
  .nav > a, .nav-services > button {
    font-size: .95rem; font-weight: 500; color: var(--ink); text-decoration: none;
    background: none; border: 0; padding: .5rem 0; cursor: pointer; font-family: var(--body);
    display: inline-flex; align-items: center; gap: .35rem; position: relative;
  }
  .nav > a::after, .nav-services > button::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent);
    transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
  }
  .nav > a:hover::after, .nav > a[aria-current="page"]::after, .nav-services > button:hover::after, .nav-services.is-current > button::after { transform: scaleX(1); }
  .nav-services { position: relative; }
  .nav-services > button svg { width: 12px; height: 12px; transition: transform .3s var(--ease-soft); }
  .nav-services.is-open > button svg { transform: rotate(180deg); }
  .services-menu {
    position: absolute; top: calc(100% + 14px); left: -1.2rem; width: 330px;
    background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
    box-shadow: 0 24px 60px -24px rgba(16,28,44,.35);
    padding: .6rem; opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .25s var(--ease-soft), transform .25s var(--ease-soft), visibility 0s linear .25s;
  }
  .nav-services.is-open .services-menu, .nav-services:focus-within .services-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease-soft), transform .25s var(--ease-soft), visibility 0s; }
  .services-menu a { display: block; padding: .7rem .8rem; border-radius: 6px; text-decoration: none; color: var(--ink); }
  .services-menu a:hover, .services-menu a[aria-current="page"] { background: var(--canvas); }
  .services-menu a b { display: block; font-weight: 500; font-size: .95rem; }
  .services-menu a span { display: block; font-size: .82rem; color: var(--ink-soft); line-height: 1.4; margin-top: .15rem; }
  .header-actions { display: flex; align-items: center; gap: 1.2rem; }
  .header-phone { display: inline-block; font-family: var(--mono); font-size: .88rem; font-weight: 500; color: var(--ink); text-decoration: none; letter-spacing: .02em; }
  .header-actions .btn { min-height: 44px; padding: .7rem 1.2rem; font-size: .92rem; }
}
@media (max-width: 999px) { .header-actions .btn { display: none; } }

/* ---------- Mobile action bar (call + walkthrough, always in reach) ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: .6rem;
  padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom, 0px));
  background: rgba(243,244,242,.96);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .45s var(--ease);
}
.action-bar.is-shown { transform: none; }
.action-bar .btn { min-height: 48px; padding-inline: .8rem; }
body { padding-bottom: 0; }
@media (max-width: 999px) { body.has-action-bar { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } }
@media (min-width: 1000px) { .action-bar { display: none; } }

/* ---------- Sections ---------- */
main { display: block; }
.section { padding-block: var(--section); }
.section--panel { background: var(--panel); }
.section--navy { background: var(--ink); color: var(--pewter-light); }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .kicker { color: var(--pewter-light); }
.section--navy .kicker::before { background: var(--accent-on-dark); }
.section--navy .lede { color: var(--pewter-light); }
.section-head { margin-bottom: clamp(2.2rem, 5vw, 3.6rem); max-width: 760px; }
.section-head.center { margin-inline: auto; }
.section-head h2 { position: relative; padding-bottom: .55em; }
.section-head h2::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: 2px; background: var(--pewter);
  transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease) .15s;
}
.section-head.center h2::after { left: 50%; margin-left: -36px; transform-origin: center; }
.section-head.in h2::after { transform: scaleX(1); }
.section--navy .section-head h2::after { background: var(--pewter); }

/* ---------- Page hero (service and inner pages) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--header-h) + clamp(3.5rem, 9vw, 6.5rem)) 0 clamp(3.5rem, 8vw, 5.5rem);
  color: #fff; background: var(--ink);
}
.page-hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(16,28,44,.94) 0%, rgba(16,28,44,.82) 42%, rgba(16,28,44,.46) 100%);
}
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero .lede { color: #dfe4e9; }
.page-hero .kicker { color: var(--pewter-light); }
.page-hero .kicker::before { background: var(--accent-on-dark); }
.page-hero .hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.crumbs { font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; margin-bottom: 1.4rem; color: var(--pewter-light); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .6; }
.crumbs a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.trust-row { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 2rem; font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; color: #dfe4e9; }
.trust-row span { display: inline-flex; align-items: center; gap: .45rem; }
.trust-row svg { width: 14px; height: 14px; color: var(--accent-on-dark); flex: none; }

/* ---------- Service cards ---------- */
.cards { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -30px rgba(16,28,44,.45); border-color: var(--pewter-light); }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; background: #d9dde1; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover .card__img img { transform: scale(1.04); }
.card__body { padding: 1.3rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card__body h3 { margin: 0; }
.card__body p { margin: 0; font-size: .96rem; line-height: 1.55; }
.card__more { margin-top: auto; padding-top: .7rem; font-weight: 500; color: var(--accent); font-size: .94rem; display: inline-flex; gap: .4rem; align-items: center; }

/* ---------- The Night Shift Log (signature) ---------- */
.log-wrap { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 960px) { .log-wrap { grid-template-columns: .9fr 1.1fr; } .log-wrap .section-head { position: sticky; top: calc(var(--header-h) + 3rem); } }
.log {
  font-family: var(--mono); font-size: .9rem; line-height: 1.5;
  background: #0b1420; border: 1px solid rgba(201,207,213,.14); border-radius: 12px;
  padding: 1.1rem 1.1rem 1.3rem; color: #d7dde3;
  box-shadow: 0 40px 80px -50px rgba(0,0,0,.8);
}
.log-head { display: flex; justify-content: space-between; gap: 1rem; padding: .2rem .2rem 1rem; border-bottom: 1px solid rgba(201,207,213,.12); margin-bottom: .6rem; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--pewter-light); }
.log-head .live { display: inline-flex; align-items: center; gap: .45rem; }
.log-head .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5fd08a; box-shadow: 0 0 0 0 rgba(95,208,138,.6); animation: livepulse 3.2s var(--ease-soft) -1.1s infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(95,208,138,.5) } 70% { box-shadow: 0 0 0 7px rgba(95,208,138,0) } 100% { box-shadow: 0 0 0 0 rgba(95,208,138,0) } }
.log ol { list-style: none; }
.log li {
  display: grid; grid-template-columns: 5.6rem 1fr; gap: .2rem .9rem;
  padding: .75rem .2rem; border-bottom: 1px dashed rgba(201,207,213,.1);
  opacity: .14; transform: translateX(-6px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.log li:last-child { border-bottom: 0; }
.log li.on { opacity: 1; transform: none; }
.log time { color: var(--accent-on-dark); white-space: nowrap; }
.log .task b { color: #fff; font-weight: 500; }
.log .task span { display: block; color: #aab4be; font-size: .82rem; }
.log .ok { grid-column: 2; color: #7fd6a0; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.log-note { margin-top: .9rem; font-size: .82rem; color: var(--pewter-light); }
@media (max-width: 420px) { .log li { grid-template-columns: 1fr; } .log .ok { grid-column: 1; } }

/* ---------- Reasons (why managers switch) ---------- */
.reasons { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
@media (min-width: 760px) { .reasons { grid-template-columns: repeat(2, 1fr); } }
.reason { background: var(--panel); padding: clamp(1.5rem, 3vw, 2.2rem); }
.reason q { display: block; font-family: var(--display); font-stretch: 112%; font-weight: 600; font-size: 1.28rem; color: var(--ink); quotes: none; margin-bottom: .55rem; line-height: 1.25; }
.reason p { margin: 0; }

/* ---------- The inspection (interactive moment) ---------- */
.inspect { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 960px) { .inspect { grid-template-columns: 1fr 1fr; } }
.checklist { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem 1.2rem 1.4rem; position: relative; }
.checklist ol { list-style: none; counter-reset: c; display: grid; gap: .1rem; }
.checklist li { counter-increment: c; display: flex; align-items: center; gap: .8rem; padding: .5rem .2rem; font-size: .96rem; color: var(--ink-soft); border-bottom: 1px solid #eef0f2; transition: color .35s var(--ease-soft); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { content: counter(c, decimal-leading-zero); font-family: var(--mono); font-size: .72rem; color: var(--pewter-deep); width: 1.6rem; flex: none; }
.checklist .box { width: 20px; height: 20px; border: 1.5px solid var(--pewter); border-radius: 4px; margin-left: auto; flex: none; position: relative; transition: background .3s var(--ease-soft), border-color .3s var(--ease-soft); }
.checklist .box::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .3s var(--ease); }
.checklist li.done { color: var(--ink); }
.checklist li.done .box { background: var(--accent); border-color: var(--accent); }
.checklist li.done .box::after { transform: rotate(45deg) scale(1); }
.stamp {
  position: absolute; right: 1.2rem; top: -1.75rem;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); border: 2px solid var(--accent); border-radius: 6px; padding: .45rem .7rem; background: rgba(255,255,255,.94);
  opacity: 0; transform: rotate(-4deg) scale(1.3); transition: opacity .4s var(--ease), transform .5s var(--ease);
  pointer-events: none;
}
.inspection.complete .stamp { opacity: 1; transform: rotate(-4deg) scale(1); }
.hold-btn {
  position: relative; overflow: hidden; margin-top: 1.4rem; width: 100%;
  min-height: 56px; border-radius: 8px; border: 1.5px solid var(--ink); background: var(--panel); color: var(--ink);
  font-family: var(--body); font-weight: 500; font-size: 1rem; cursor: pointer;
  user-select: none; -webkit-user-select: none; touch-action: none; -webkit-touch-callout: none;
}
/* A slim progress bar under a label that never changes color mid-hold, so it stays readable throughout. */
.hold-btn .fill { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }
.hold-btn .label { position: relative; z-index: 1; color: var(--ink); }
.inspection.complete .hold-btn { border-color: var(--accent); background: var(--accent); }
.inspection.complete .hold-btn .label { color: #fff; }
.inspection.complete .hold-btn .fill { opacity: 0; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 1.2rem; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 1.6rem; counter-increment: step; }
.step-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--canvas); color: var(--accent); display: grid; place-items: center; margin-bottom: 1.1rem; }
.step-icon svg { width: 22px; height: 22px; }
.step h3::before { content: "0" counter(step) "  "; font-family: var(--mono); font-stretch: 100%; font-size: .78rem; color: var(--pewter-deep); letter-spacing: .08em; white-space: pre; }
.step p { margin: 0; font-size: .98rem; }

/* ---------- Included list (service pages) ---------- */
.included { display: grid; gap: 1.2rem; }
@media (min-width: 760px) { .included { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .included.three { grid-template-columns: repeat(3, 1fr); } }
.included-group { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 1.5rem; }
.included-group h3 { margin-bottom: .8rem; }
.included-group ul { list-style: none; display: grid; gap: .45rem; }
.included-group li { position: relative; padding-left: 1.6rem; font-size: .98rem; line-height: 1.5; }
.included-group li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 6px; border: solid var(--accent); border-width: 0 0 2px 2px; transform: rotate(-45deg); }

/* ---------- Two-column prose ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--flip > :first-child { order: 2; } }
.split figure { margin: 0; border-radius: 12px; overflow: hidden; background: #d9dde1; }
.split figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.prose p { max-width: 62ch; }
.prose h2 { margin-top: 0; }

/* ---------- Pills (industries, areas) ---------- */
.pills { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; }
.pills li { font-size: .92rem; padding: .5rem .9rem; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--ink); }
.section--navy .pills li { background: rgba(255,255,255,.06); border-color: rgba(201,207,213,.18); color: #fff; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .7rem; max-width: 860px; margin-inline: auto; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.15rem 3.2rem 1.15rem 1.3rem; position: relative;
  font-family: var(--display); font-stretch: 108%; font-weight: 600; font-size: 1.06rem; color: var(--ink); line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 1.3rem; top: 50%; width: 10px; height: 10px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease-soft); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 1.3rem 1.3rem; }
.faq .answer p:last-child { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: #fff; padding-block: clamp(4.5rem, 10vw, 7.5rem); }
.cta-band__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(16,28,44,.78), rgba(16,28,44,.9)); }
.cta-band h2 { color: #fff; max-width: 20ch; margin-inline: auto; }
.cta-band .lede { color: #dfe4e9; }
.cta-band .kicker { color: var(--pewter-light); }
.cta-band .kicker::before { background: var(--accent-on-dark); }
.cta-band .actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1rem; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: clamp(1.3rem, 4vw, 2.2rem); }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; } .form .full { grid-column: 1 / -1; } }
.field label { display: block; font-size: .88rem; font-weight: 500; color: var(--ink); margin-bottom: .4rem; }
.field label .opt { font-weight: 400; color: var(--pewter-deep); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--canvas); border: 1.5px solid #cfd5da; border-radius: 6px; padding: .75rem .85rem;
  transition: border-color .25s var(--ease-soft), background .25s var(--ease-soft);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.field textarea { min-height: 130px; resize: vertical; }
.form .btn { width: 100%; }
.form-note { font-size: .84rem; color: var(--pewter-deep); margin: 0; }
.form-success { display: none; grid-column: 1 / -1; background: #eef5fc; border: 1px solid #c9dcf1; color: var(--ink); border-radius: 8px; padding: 1rem 1.1rem; }
.form.sent .form-success { display: block; }

.contact-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .85fr 1.15fr; align-items: start; } }
.contact-list { list-style: none; display: grid; gap: 1.2rem; margin-top: 2rem; }
.contact-list li { display: grid; gap: .15rem; }
.contact-list .label { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--pewter-deep); }
.contact-list a, .contact-list .val { font-family: var(--display); font-stretch: 108%; font-weight: 600; font-size: 1.2rem; color: var(--ink); text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1420; color: #aab4be; padding: clamp(3.5rem, 8vw, 5rem) 0 2rem; font-size: .95rem; }
.site-footer .brand { color: #fff; }
.site-footer .brand-mark path { stroke: #fff; }
.footer-grid { display: grid; gap: 2.2rem; margin-bottom: 3rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.1fr; } }
.site-footer h2 { font-family: var(--mono); font-stretch: 100%; font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--pewter-light); margin: 0 0 1rem; }
.site-footer ul { list-style: none; display: grid; gap: .55rem; }
.site-footer a { color: #d7dde3; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .about-line { max-width: 34ch; margin-top: 1rem; }
.footer-legal { border-top: 1px solid rgba(201,207,213,.12); padding-top: 1.6rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; font-size: .84rem; }

/* ---------- Entrances ---------- */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(20px); }
.stagger.in > * { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.stagger.in > :nth-child(2) { transition-delay: .09s; }
.stagger.in > :nth-child(3) { transition-delay: .18s; }
.stagger.in > :nth-child(4) { transition-delay: .27s; }
.stagger.in > :nth-child(5) { transition-delay: .36s; }
.stagger.in > :nth-child(6) { transition-delay: .45s; }
/* Retire the stagger once it has played; this selector matches the delay rules' specificity so hovers never lag. */
.stagger.done > :nth-child(n), .stagger.done > :nth-child(2), .stagger.done > :nth-child(3), .stagger.done > :nth-child(4), .stagger.done > :nth-child(5), .stagger.done > :nth-child(6) { transition-delay: 0s; }

/* Fixed environment layer: a slow drift of first light behind the page. */
.env { position: fixed; inset: -10%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 50% 40% at 15% 20%, rgba(231,201,161,.10), transparent 70%), radial-gradient(ellipse 45% 35% at 85% 70%, rgba(43,108,176,.05), transparent 70%);
  animation: envdrift 90s var(--ease-soft) -30s infinite alternate; }
@keyframes envdrift { from { transform: translate3d(0,0,0) } to { transform: translate3d(4%, 3%, 0) } }
.env.off { animation-play-state: paused; }
body.paused *, body.paused *::before, body.paused *::after { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .rv, .stagger > * { opacity: 1 !important; transform: none !important; }
  .section-head h2::after { transform: scaleX(1) !important; }
  .log li { opacity: 1 !important; transform: none !important; }
}
@media (min-width: 1080px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
/* Honest scope note on the one-time page: what goes to licensed specialists instead. */
.not-included { margin: 1.4rem 0 0; max-width: 72ch; font-size: .96rem; padding: 1rem 1.2rem; border-left: 3px solid var(--pewter); background: var(--canvas); border-radius: 0 8px 8px 0; }
.not-included b { color: var(--ink); font-weight: 500; }
