/* ==========================================================================
   Infinity Dry Basement — main.css
   Palette derived from foundation materials: wet slate, groundwater blue,
   dry limestone. Swap the tokens below to match the logo exactly.
   ========================================================================== */

:root {
  --slate-900: #0e1f2a;
  --slate-800: #17303f;
  --slate-700: #21404f;
  --slate-500: #4a6674;
  --slate-300: #8ea2ad;

  /* Brand: sampled from the logo — orange #f39200, cyan #009fe3.
     The cyan scale is darkened at the top end so text and links clear
     WCAG AA against the light background; the pure brand cyan is kept
     for fills and the water in the diagrams. */
  --brand-orange: #f39200;
  --brand-orange-dark: #d17e00;
  --brand-cyan: #009fe3;

  --water-700: #075f88;
  --water-600: #0a7fb4;
  --water-400: #3fb6ee;
  --water-200: #a8dff7;
  --water-050: #e6f6fd;

  --stone-050: #faf9f6;
  --stone-100: #f4f2ed;
  --stone-200: #e7e3da;
  --stone-300: #d5cec1;

  --rust-600: #94481f;
  --rust-500: #b05a2a;
  --rust-100: #f6e9df;

  --white: #fff;
  --ok: #1c7a52;

  --font-ui: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Source Serif 4", Georgia, "Times New Roman", serif;

  --measure: 66ch;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(14, 31, 42, .08), 0 4px 12px rgba(14, 31, 42, .06);
  --shadow-md: 0 2px 6px rgba(14, 31, 42, .1), 0 16px 40px rgba(14, 31, 42, .1);

  --gap: clamp(1rem, 2.5vw, 1.75rem);
  --section-y: clamp(3.25rem, 7vw, 6rem);
  --wrap: 1180px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
body {
  margin: 0;
  background: var(--stone-050);
  color: var(--slate-900);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--water-700); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--water-600); }
:focus-visible {
  outline: 3px solid var(--water-600);
  outline-offset: 2px;
  border-radius: 4px;
}
h1, h2, h3, h4, .ui { font-family: var(--font-ui); }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1.1em; max-width: var(--measure); }
ul, ol { max-width: var(--measure); }
hr { border: 0; border-top: 1px solid var(--stone-200); margin: 2.5rem 0; }

.wrap { width: min(100% - 2.25rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.25rem, 780px); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--tint { background: var(--stone-100); }
.section--deep { background: var(--slate-900); color: var(--stone-100); }
.section--deep h2, .section--deep h3 { color: var(--white); }
.section--deep p { color: #c8d6de; }
.section--deep a { color: var(--water-200); }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--slate-900); color: #fff; padding: .75rem 1.15rem; font-family: var(--font-ui);
}
.skip:focus { left: .5rem; top: .5rem; }
.lede { font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: var(--slate-700); }
.eyebrow {
  font-family: var(--font-ui); font-size: .95rem; font-weight: 600;
  color: var(--water-700); margin: 0 0 .6rem;
}
.section--deep .eyebrow { color: var(--water-400); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-ui); font-weight: 600; font-size: 1.02rem;
  padding: .9rem 1.5rem; border-radius: var(--radius); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background-color .18s ease, color .18s ease, border-color .18s ease;
  min-height: 48px;
}
.btn--primary { background: var(--brand-orange); color: var(--slate-900); }
.btn--primary:hover { background: var(--brand-orange-dark); color: var(--slate-900); }
.btn--ghost { background: transparent; color: var(--slate-900); border-color: var(--slate-300); }
.btn--ghost:hover { border-color: var(--slate-700); color: var(--slate-900); }
.btn--light { background: #fff; color: var(--slate-900); }
.btn--light:hover { background: var(--stone-100); color: var(--slate-900); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--outline-light:hover { border-color: #fff; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-block: 1.5rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 249, 246, .96);
  backdrop-filter: saturate(1.4) blur(6px);
  border-bottom: 1px solid var(--stone-200);
}
.header-bar { display: flex; align-items: center; gap: 1rem; min-height: 84px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; flex: 0 0 auto; }
.brand img { height: 54px; width: auto; }
.brand-fallback { display: flex; flex-direction: column; line-height: 1.05; font-family: var(--font-ui); }
.brand-fallback b { font-size: 1.12rem; font-weight: 700; letter-spacing: -.02em; }
.brand-fallback span { font-size: .78rem; color: var(--slate-500); font-weight: 600; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; max-width: none; }
.nav a {
  font-family: var(--font-ui); font-size: .93rem; font-weight: 600; color: var(--slate-800);
  text-decoration: none; padding: .55rem .7rem; border-radius: 8px; display: block;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--stone-200); color: var(--slate-900); }
.header-cta { display: flex; align-items: center; gap: .6rem; flex: 0 0 auto; }
.header-phone { font-family: var(--font-ui); font-weight: 700; text-decoration: none; color: var(--slate-900); white-space: nowrap; }
.nav-toggle { display: none; }

/* has-submenu */
.has-sub { position: relative; }
.has-sub > button {
  font-family: var(--font-ui); font-size: .93rem; font-weight: 600; color: var(--slate-800);
  background: none; border: 0; padding: .55rem .7rem; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; gap: .35rem;
}
.has-sub > button:hover { background: var(--stone-200); }
.has-sub > button svg { width: 11px; height: 11px; transition: transform .18s ease; }
.has-sub[data-open="true"] > button svg { transform: rotate(180deg); }
.submenu {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 268px;
  background: #fff; border: 1px solid var(--stone-200); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: .4rem; flex-direction: column; gap: 1px;
}
.has-sub[data-open="true"] .submenu { display: flex; }
.submenu a { font-size: .93rem; padding: .55rem .65rem; }

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .5rem; margin-left: auto;
    font-family: var(--font-ui); font-weight: 600; font-size: .95rem;
    background: var(--stone-200); border: 0; border-radius: 8px; padding: .7rem .9rem; cursor: pointer;
    min-height: 44px;
  }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--stone-050); border-bottom: 1px solid var(--stone-200);
    padding: .5rem 1.1rem 1.25rem; max-height: 75vh; overflow-y: auto;
  }
  .nav[data-open="true"] { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a, .has-sub > button { padding: .8rem .5rem; width: 100%; font-size: 1.02rem; }
  .submenu { position: static; box-shadow: none; border: 0; border-left: 2px solid var(--stone-300); border-radius: 0; margin-left: .5rem; padding: 0 0 .25rem .4rem; }
  .header-cta .btn { display: none; }
}
@media (max-width: 700px) {
  /* the sticky bottom bar already carries Call now, so the header keeps
     the brand and the menu button and nothing else */
  .header-phone { display: none; }
  .brand img { height: 42px; }
  .brand-fallback b { font-size: 1rem; }
}

/* ---------- hero ---------- */
.hero { position: relative; background: var(--slate-900); color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
/* Fallback: soil strata + water table. Replaced visually when the photo loads. */
.hero-media::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 78% 18%, rgba(63,167,220,.20) 0%, rgba(63,167,220,0) 58%),
    linear-gradient(180deg, #14303f 0%, #17394b 38%, #1b4a5f 62%, #0f3446 100%);
}
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(9,23,32,.94) 0%, rgba(9,23,32,.82) 46%, rgba(9,23,32,.42) 100%);
}
.hero-inner { position: relative; padding-block: clamp(3.5rem, 8vw, 7rem); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero p { color: #cddae2; max-width: 54ch; font-size: clamp(1.08rem, 1.7vw, 1.28rem); }
.hero .btn-row { margin-top: 1.9rem; }
.trust-bar { background: var(--slate-800); border-top: 1px solid rgba(255,255,255,.09); position: relative; }
.trust-bar ul {
  list-style: none; margin: 0; padding: 1.1rem 0; max-width: none;
  display: flex; flex-wrap: wrap; gap: .6rem 2rem;
  font-family: var(--font-ui); font-size: .95rem; font-weight: 600; color: #d6e3ea;
}
.trust-bar li { display: flex; align-items: center; gap: .5rem; }
.trust-bar svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--water-400); }

/* page hero (interior pages) */
.page-hero { background: var(--slate-900); color: #fff; padding-block: clamp(2.5rem, 5vw, 4rem); }
.page-hero h1 { color: #fff; margin-bottom: .35rem; }
.page-hero p { color: #c5d4dd; max-width: 60ch; margin-bottom: 0; }
.crumbs { font-family: var(--font-ui); font-size: .88rem; color: #90a6b3; margin-bottom: 1rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; max-width: none; }
.crumbs li::after { content: "/"; margin-left: .4rem; color: #5c7482; }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: #b9cbd5; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.split { display: grid; gap: clamp(1.5rem, 4vw, 3.25rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr .95fr; } .split--wide-left { grid-template-columns: 1.35fr .65fr; } }

.card {
  background: #fff; border: 1px solid var(--stone-200); border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .4rem; }
.card p { font-size: .99rem; color: var(--slate-700); margin-bottom: 1rem; }
.card .card-link {
  margin-top: auto; font-family: var(--font-ui); font-weight: 600; font-size: .95rem;
  text-decoration: none; color: var(--water-700); border-top: 1px solid var(--stone-200); padding-top: .85rem;
}
.card .card-link:hover { text-decoration: underline; }
.card-icon { width: 34px; height: 34px; color: var(--water-600); margin-bottom: .85rem; }

/* sign tiles */
.signs { list-style: none; padding: 0; margin: 0; max-width: none; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.signs li {
  background: #fff; border: 1px solid var(--stone-200); border-left: 3px solid var(--rust-500);
  border-radius: 8px; padding: .85rem 1rem; font-family: var(--font-ui); font-size: .97rem; font-weight: 500;
}

/* ---------- water diagram ---------- */
.diagram-shell { background: var(--slate-900); color: #fff; }
.diagram-head { max-width: 62ch; }
.diagram-head h2 { color: #fff; }
.diagram-head p { color: #c1d1da; }
.diagram-layout { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: 2rem; }
.diagram-layout > * { min-width: 0; }   /* stop the scrollable SVG blowing out the grid */
@media (min-width: 1000px) { .diagram-layout { grid-template-columns: 1fr 320px; } }
.diagram-stage {
  background: #0a1922; border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg);
  padding: .5rem; overflow: hidden;
}
.diagram-stage svg { width: 100%; height: auto; display: block; }
/* Below ~700px the drawing would shrink past legibility, so it keeps a
   minimum width and scrolls sideways instead. */
@media (max-width: 700px) {
  .diagram-stage { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
  .diagram-stage svg { min-width: 760px; }
}
.diagram-swipe { display: none; }
@media (max-width: 700px) {
  .diagram-swipe { display: block; font-family: var(--font-ui); font-size: .88rem; color: #8ba3b0; margin: .6rem 0 0; }
}

/* decorative layers must never swallow a click meant for a marker */
.diagram-stage svg .problem-only, .diagram-stage svg .solution-only { pointer-events: none; }
.hotspot { cursor: pointer; }
.hotspot text, .hs-labels { pointer-events: none; }
/* on narrow screens the numbered markers carry the meaning; the panel names them */
@media (max-width: 700px) { .hs-label { display: none; } }
.hs-hit { fill: #fff; fill-opacity: 0; }
.hotspot .hs-ring { fill: rgba(63,167,220,.16); stroke: var(--brand-cyan); stroke-width: 2; transition: fill .16s ease, stroke .16s ease; }
.hotspot .hs-dot { fill: var(--water-400); transition: fill .16s ease; }
.hotspot:hover .hs-ring, .hotspot:focus-visible .hs-ring, .hotspot[aria-pressed="true"] .hs-ring { fill: rgba(176,90,42,.35); stroke: #f0a06a; }
.hotspot:hover .hs-dot, .hotspot[aria-pressed="true"] .hs-dot { fill: #f0a06a; }
.hotspot text, .hs-labels text { font-family: var(--font-ui); font-weight: 600; fill: #d9e6ee; }

.drop { animation: fall 2.4s linear infinite; }
@keyframes fall { 0% { transform: translateY(-14px); opacity: 0; } 12% { opacity: .95; } 100% { transform: translateY(96px); opacity: 0; } }
.flow { stroke-dasharray: 7 9; animation: flow 1.5s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -32; } }
.solution-only { opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.diagram-stage[data-mode="solution"] .solution-only { opacity: 1; }
.diagram-stage[data-mode="solution"] .problem-only { opacity: .22; transition: opacity .5s ease; }

.diagram-panel {
  background: #10242f; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg);
  padding: 1.25rem 1.3rem; display: flex; flex-direction: column;
}
.diagram-panel h3 { font-size: 1.15rem; color: #fff; margin-bottom: .4rem; }
.diagram-panel p { color: #bfd0da; font-size: .98rem; }
.panel-hint { color: #8ba3b0 !important; font-size: .92rem !important; }
.diagram-panel .btn { margin-top: auto; }
.entry-list { list-style: none; margin: 1rem 0 1.25rem; padding: 0; display: grid; gap: .4rem; max-width: none; }
.entry-list button {
  width: 100%; text-align: left; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  color: #e2ecf2; font-family: var(--font-ui); font-weight: 600; font-size: .93rem;
  padding: .6rem .75rem; border-radius: 8px; cursor: pointer; min-height: 44px;
}
.entry-list button:hover { background: rgba(63,167,220,.18); border-color: var(--water-400); }
.entry-list button[aria-pressed="true"] { background: rgba(176,90,42,.28); border-color: #f0a06a; color: #fff; }

/* flow chain */
.chain { list-style: none; margin: 2rem 0 0; padding: 0; max-width: none; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); counter-reset: chain; }
.chain li {
  background: #fff; border: 1px solid var(--stone-200); border-radius: 10px; padding: .95rem 1rem;
  font-family: var(--font-ui); font-size: .95rem; font-weight: 600; position: relative;
}
.section--deep .chain li { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #eaf2f6; }
.chain li small { display: block; font-weight: 500; color: var(--slate-500); font-size: .84rem; margin-top: .2rem; }
.section--deep .chain li small { color: #9db2bd; }

/* ---------- process timeline ---------- */
.timeline { list-style: none; margin: 2rem 0 0; padding: 0; max-width: none; counter-reset: step; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 1.9rem 3.6rem; counter-increment: step; }
.timeline li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0; width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--water-600); color: #fff; font-family: var(--font-ui); font-weight: 700; font-size: .92rem;
}
.timeline li::after { content: ""; position: absolute; left: 1.24rem; top: 2.7rem; bottom: .2rem; width: 2px; background: var(--stone-300); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline h3 { margin-bottom: .25rem; }
.timeline p { margin-bottom: 0; color: var(--slate-700); }

/* ---------- before / after ---------- */
.ba-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.ba {
  background: #fff; border: 1px solid var(--stone-200); border-radius: var(--radius-lg); overflow: hidden;
}
.ba-figure { position: relative; aspect-ratio: 4 / 3; background: var(--stone-200); overflow: hidden; touch-action: pan-y; }
.ba-figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba-slider {
  position: absolute; inset: 0; width: 100%; margin: 0; opacity: 0; cursor: ew-resize;
}
.ba-slider:focus-visible + .ba-handle { outline: 3px solid #fff; outline-offset: 2px; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; background: #fff;
  box-shadow: 0 0 0 1px rgba(14,31,42,.25); pointer-events: none;
}
.ba-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; transform: translate(-50%,-50%);
  border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm);
}
.ba-tag {
  position: absolute; top: .6rem; font-family: var(--font-ui); font-size: .76rem; font-weight: 700;
  color: #fff; background: rgba(14,31,42,.75); padding: .3rem .55rem; border-radius: 5px; pointer-events: none;
}
.ba-tag--b { left: .6rem; } .ba-tag--a { right: .6rem; }
.ba-body { padding: 1rem 1.15rem 1.2rem; }
.ba-body h3 { font-size: 1.08rem; margin-bottom: .2rem; }
.ba-body p { font-size: .94rem; color: var(--slate-500); margin: 0; }

/* image slots that gracefully degrade before real photos are added */
.photo {
  background: repeating-linear-gradient(135deg, var(--stone-200) 0 14px, var(--stone-100) 14px 28px);
  border-radius: var(--radius-lg); overflow: hidden;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--tall { aspect-ratio: 4 / 5; }
.photo--wide { aspect-ratio: 16 / 10; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; border-top: 1px solid var(--stone-200); }
.faq details { border-bottom: 1px solid var(--stone-200); }
.faq summary {
  font-family: var(--font-ui); font-weight: 600; font-size: 1.05rem; cursor: pointer;
  padding: 1.05rem 2.5rem 1.05rem 0; position: relative; list-style: none; min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .35rem; top: 1.5rem; width: 11px; height: 11px;
  border-right: 2px solid var(--water-600); border-bottom: 2px solid var(--water-600);
  transform: rotate(45deg); transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.75rem; }
.faq .faq-a { padding-bottom: 1.15rem; }
.faq .faq-a p:last-child { margin-bottom: 0; }

/* ---------- form ---------- */
.form-shell {
  background: #fff; border: 1px solid var(--stone-200); border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-family: var(--font-ui); font-weight: 600; font-size: .94rem; margin-bottom: .35rem; }
.field .req { color: var(--rust-600); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-text); font-size: 1rem; color: var(--slate-900);
  padding: .75rem .85rem; border: 1px solid var(--stone-300); border-radius: 8px; background: var(--stone-050);
  min-height: 48px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--water-600); background: #fff; }
.field-row { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }
.radio-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.radio-row label { font-family: var(--font-text); font-weight: 400; display: flex; align-items: center; gap: .4rem; margin: 0; }
.radio-row input { width: auto; min-height: 0; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.error-msg { color: var(--rust-600); font-family: var(--font-ui); font-size: .88rem; margin-top: .3rem; display: none; }
.field[data-invalid="true"] input, .field[data-invalid="true"] select { border-color: var(--rust-600); }
.field[data-invalid="true"] .error-msg { display: block; }
.form-note { font-size: .88rem; color: var(--slate-500); }
.form-status { display: none; padding: 1rem 1.15rem; border-radius: 10px; font-family: var(--font-ui); font-weight: 600; margin-bottom: 1rem; }
.form-status[data-state="ok"] { display: block; background: #e7f4ed; color: var(--ok); border: 1px solid #b6dcc8; }
.form-status[data-state="err"] { display: block; background: var(--rust-100); color: var(--rust-600); border: 1px solid #e2c0aa; }

/* ---------- misc blocks ---------- */
.callout {
  background: var(--water-050); border: 1px solid var(--water-200); border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
}
.callout p:last-child { margin-bottom: 0; }
.area-list { list-style: none; padding: 0; margin: 0; max-width: none; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.area-list a {
  display: block; background: #fff; border: 1px solid var(--stone-200); border-radius: 8px;
  padding: .8rem 1rem; font-family: var(--font-ui); font-weight: 600; font-size: .97rem; text-decoration: none; color: var(--slate-900);
  min-height: 48px;
}
.area-list a:hover { border-color: var(--water-600); color: var(--water-700); }
.area-list li.plain { padding: .8rem 1rem; font-family: var(--font-ui); font-weight: 500; color: var(--slate-700); border: 1px dashed var(--stone-300); border-radius: 8px; }

.cta-band { background: var(--water-700); color: #fff; }
.cta-band .btn--primary { background: var(--brand-orange); color: var(--slate-900); }
.cta-band h2 { color: #fff; max-width: 20ch; }
.cta-band p { color: #d3e9f6; max-width: 52ch; }
.cta-band .btn--light { color: var(--water-700); }
.cta-band p { color: #d6eefa; }

.empty-state {
  border: 1px dashed var(--stone-300); border-radius: var(--radius-lg); padding: 1.5rem 1.6rem; background: #fff;
}
.empty-state p:last-child { margin-bottom: 0; }

.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul li { margin-bottom: .4rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--slate-900); color: #b9cbd5; padding-block: 3rem 6.5rem; }
.site-footer h4 { color: #fff; font-size: .98rem; margin-bottom: .7rem; }
.site-footer a { color: #cfe0e9; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; font-size: .95rem; max-width: none; }
.footer-brand p { font-size: .95rem; max-width: 34ch; }
.footer-legal {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.12);
  font-size: .87rem; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; justify-content: space-between;
}

/* ---------- sticky mobile bar ---------- */
.sticky-cta { display: none; }
@media (max-width: 860px) {
  .sticky-cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    padding: .55rem .7rem calc(.55rem + env(safe-area-inset-bottom));
    background: rgba(250,249,246,.97); border-top: 1px solid var(--stone-200);
    backdrop-filter: blur(6px);
  }
  .sticky-cta .btn { padding: .8rem .5rem; font-size: .97rem; }
  body { padding-bottom: 0; }
  .site-footer { padding-bottom: 7.5rem; }
}

/* ---------- job video ---------- */
.job-video {
  width: 100%; max-width: 420px; border-radius: var(--radius-lg);
  background: var(--slate-900); display: block; aspect-ratio: 9 / 16;
}

/* ---------- during / after pair ---------- */
.pair { margin: 0 0 2.25rem; }
.pair-grid { display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .pair-grid { grid-template-columns: 1fr 1fr; } }
.pair-item { position: relative; }
.pair-item .photo { border-radius: var(--radius); }
.pair-tag {
  position: absolute; top: .6rem; left: .6rem;
  font-family: var(--font-ui); font-size: .76rem; font-weight: 700; letter-spacing: .02em;
  color: #fff; background: rgba(14,31,42,.8); padding: .3rem .6rem; border-radius: 5px;
}
.pair figcaption {
  margin-top: .8rem; font-size: .97rem; color: var(--slate-700); max-width: var(--measure);
}
.pair figcaption strong { font-family: var(--font-ui); color: var(--slate-900); }
