/* ==========================================================================
   A Better Choice Consulting LLC — v4
   Full-bleed, photography-led, gradient-forward.
   Brand: Dark Green #00363D · Beige #EFEAD5 · Neon Green #A7E000 · Warm Green #01BF81
   Carlito (headings/buttons) + Lato (body), per the brand guidelines.
   ========================================================================== */

:root {
  --ink:   #00363D;
  --ink-d: #002026;
  --sand:  #EFEAD5;
  --sand-l:#F6F3E9;
  --lime:  #A7E000;
  --teal:  #01BF81;

  --ink-70: rgba(0,54,61,.72);
  --ink-12: rgba(0,54,61,.13);
  --sand-80: rgba(239,234,213,.82);
  --sand-20: rgba(239,234,213,.2);

  /* Dark gradient -> always pair with beige/white text */
  --grad-dark: linear-gradient(115deg, #00363D 0%, #004A4C 45%, #016B57 100%);
  /* Bright gradient -> always pair with dark green text */
  --grad-bright: linear-gradient(115deg, #01BF81 0%, #5BD452 55%, #A7E000 100%);
  --grad-scrim: linear-gradient(0deg, rgba(0,32,38,0.20), rgba(0,32,38,0.20)),
                linear-gradient(95deg, rgba(0,32,38,.94) 0%, rgba(0,54,61,.86) 44%, rgba(0,54,61,.5) 72%, rgba(0,54,61,.2) 100%);
  --grad-scrim-v: linear-gradient(180deg, rgba(0,32,38,.72) 0%, rgba(0,32,38,.15) 34%, rgba(0,32,38,.55) 78%, rgba(0,32,38,.88) 100%);
  --grad-rule: linear-gradient(90deg, var(--lime), var(--teal) 55%, transparent);

  --display: "Carlito", "Calibri", "Segoe UI", system-ui, sans-serif;
  --body: "Lato", -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(1.2rem, 5vw, 5rem);
  --measure: 1280px;
  --nav-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration:.01ms !important; transition-duration:.01ms !important; }
}

body {
  margin: 0; background: var(--sand); color: var(--ink);
  font-family: var(--body); font-size: 1.075rem; line-height: 1.78;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1,h2,h3,h4 { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -.025em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 6.4vw, 5.6rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.55rem); letter-spacing: -.01em; }
p  { margin: 0 0 1.2em; max-width: 60ch; }

.lede { font-size: clamp(1.12rem, 1.5vw, 1.38rem); line-height: 1.6; color: var(--ink-70); max-width: 50ch; }
.wrap { width: min(100% - var(--gutter)*2, var(--measure)); margin-inline: auto; }

.eyebrow {
  font-family: var(--body); font-size: .81rem; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase; color: var(--ink-70);
  margin: 0 0 1.4rem; display: flex; align-items: center; gap: .85rem;
}
.eyebrow::before { content:""; width: 42px; height: 3px; background: var(--grad-rule); flex: none; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display); font-weight: 700; font-size: 1.02rem;
  padding: 1.05rem 2rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.btn-lime { background: var(--lime); color: var(--ink); box-shadow: 0 12px 34px -16px rgba(167,224,0,.85); }
.btn-lime:hover { background: #b9ef1c; }
.btn-ink { background: var(--ink); color: var(--sand); }
.btn-ink:hover { background: #005A55; }
.btn-line { border-color: var(--ink-12); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn-glass { border-color: var(--sand-20); color: #fff; backdrop-filter: blur(6px); background: rgba(255,255,255,.06); }
.btn-glass:hover { border-color: var(--lime); color: var(--lime); }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.2rem; }

/* ---------------- Header (transparent over hero, solid on scroll) ------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  height: var(--nav-h); display: flex; align-items: center;
  transition: background .3s ease, box-shadow .3s ease, height .3s ease;
}
.topbar::after {
  content:""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,32,38,.55), transparent);
  transition: opacity .3s ease;
}
.topbar.is-stuck { background: var(--sand); box-shadow: 0 1px 0 var(--ink-12); height: 74px; }
.topbar.is-stuck::after { opacity: 0; }

.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: min(100% - var(--gutter)*2, var(--measure)); margin-inline: auto; position: relative; }
.brand { display: block; position: relative; line-height: 0; }
.brand img { height: 50px; width: auto; transition: opacity .3s ease, height .3s ease; }
.brand .logo-dark { position: absolute; top: 0; left: 0; height: 50px; width: auto; opacity: 0; }
.topbar.is-stuck .brand .logo-dark { height: 44px; }
.topbar.is-stuck .brand .logo-light { opacity: 0; }
.topbar.is-stuck .brand .logo-dark { opacity: 1; }
.topbar.is-stuck .brand img { height: 44px; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.1vw, 2.2rem); }
.nav a { color: #fff; text-decoration: none; font-size: .98rem; padding: .3rem 0; border-bottom: 2px solid transparent; transition: color .25s ease, border-color .25s ease; }
.nav a:hover { border-color: var(--lime); }
.nav a[aria-current="page"] { border-color: var(--lime); }
.topbar.is-stuck .nav a { color: var(--ink); }
.nav .btn { border-bottom: none; padding: .72rem 1.4rem; font-size: .95rem; }

.nav-toggle { display: none; background: rgba(255,255,255,.1); border: 1px solid var(--sand-20); color: #fff; border-radius: 999px; padding: .55rem 1.15rem; font-family: var(--display); font-weight: 700; cursor: pointer; }
.topbar.is-stuck .nav-toggle { color: var(--ink); border-color: var(--ink-12); background: transparent; }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: calc(100% + 1rem);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); padding: .5rem 1.4rem 1.4rem; border-radius: 4px;
    box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
  }
  .nav.is-open { display: flex; }
  .nav a, .topbar.is-stuck .nav a { color: var(--sand); padding: 1rem 0; border-bottom: 1px solid var(--sand-20); }
  .nav .btn { margin-top: 1rem; justify-content: center; }
}

/* ---------------- Hero: full bleed, full height ------------------------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: flex-end; padding-top: var(--nav-h); overflow: hidden; }
.hero-sm { min-height: 68vh; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before { content:""; position: absolute; inset: 0; background: var(--grad-scrim); z-index: -1; }
.hero-inner { width: min(100% - var(--gutter)*2, var(--measure)); margin-inline: auto; padding-block: clamp(3.5rem, 9vw, 8rem); color: #fff; position: relative; }
.hero-inner h1 { max-width: 16ch; color: #fff; font-size: clamp(2.4rem, 5.4vw, 4.6rem); }
.hero-inner .lede { color: rgba(255,255,255,.86); max-width: 46ch; }
.hero-tag { font-size: .82rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--lime); margin: 0 0 1.5rem; }
.hero-inner .eyebrow { color: rgba(255,255,255,.8); }

/* ---------------- Gradient stat band ------------------------------------ */
.gradband { background: var(--grad-bright); color: var(--ink); padding-block: clamp(2.6rem, 5vw, 4rem); }
.gradband-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.gradband b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(2.1rem, 3.4vw, 3rem); line-height: 1; margin-bottom: .45rem; color: var(--ink); }
.gradband span { font-size: .95rem; color: rgba(0,54,61,.78); }

/* ---------------- Standard sections ------------------------------------- */
.section { padding-block: clamp(4.5rem, 9vw, 8.5rem); }
.section-light { background: var(--sand-l); }
.section-ink { background: var(--ink); color: var(--sand); }
.section-ink h2, .section-ink h3 { color: var(--sand); }
.section-ink p, .section-ink .lede { color: var(--sand-80); }
.section-ink .eyebrow { color: var(--sand-80); }
.section-grad { background: var(--grad-dark); color: var(--sand); }
.section-grad h2, .section-grad h3 { color: var(--sand); }
.section-grad .lede, .section-grad p { color: var(--sand-80); }
.section-grad .eyebrow { color: var(--sand-80); }
.section-grad .feature p { color: var(--sand-80); }
.section-grad .feature-n { color: var(--lime); }

.split { display: grid; gap: clamp(2rem, 6vw, 5.5rem); grid-template-columns: .85fr 1.15fr; align-items: start; }
.split-even { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 900px) { .split, .split-even { grid-template-columns: 1fr; } }

/* ---------------- Full-bleed image + text row --------------------------- */
.row { display: grid; grid-template-columns: 1fr 1fr; min-height: clamp(460px, 62vh, 720px); }
.row-flip .row-media { order: 2; }
.row-media { position: relative; overflow: hidden; }
.row-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.row-copy { display: flex; align-items: center; padding: clamp(2.6rem, 6vw, 6rem) clamp(1.4rem, 5vw, 5rem); background: var(--sand); }
.row-copy-inner { max-width: 34rem; }
.row-ink .row-copy { background: var(--ink); color: var(--sand); }
.row-ink .row-copy h2, .row-ink .row-copy h3 { color: var(--sand); }
.row-ink .row-copy p, .row-ink .row-copy .lede { color: var(--sand-80); }
.row-ink .row-copy .eyebrow { color: var(--sand-80); }
.row-grad .row-copy { background: var(--grad-bright); color: var(--ink); }
@media (max-width: 900px) {
  .row { grid-template-columns: 1fr; min-height: 0; }
  .row-flip .row-media { order: 0; }
  .row-media { min-height: 300px; }
}

/* ---------------- Feature list (no boxes) ------------------------------- */
.features { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 3.5rem; }
.feature { padding: 2.4rem clamp(1.2rem, 2.5vw, 2.4rem) 2.4rem 0; border-top: 3px solid transparent; border-image: var(--grad-rule) 1; }
.feature h3 { margin-bottom: .5rem; }
.feature p { font-size: 1rem; color: var(--ink-70); margin: 0; }
.section-ink .feature p { color: var(--sand-80); }
.feature-n { font-family: var(--display); font-weight: 700; font-size: .88rem; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); display: block; margin-bottom: 1.6rem; }

/* ---------------- Sequence ---------------- */
.steps { margin-top: 3.5rem; }
.step { display: grid; gap: clamp(1rem, 4vw, 3.5rem); grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); padding-block: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--ink-12); align-items: start; }
.step:last-child { border-bottom: 1px solid var(--ink-12); }
.step-n { font-family: var(--display); font-weight: 700; font-size: .88rem; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); }
.step h3 { margin-bottom: 0; }
.step p { margin-bottom: 0; color: var(--ink-70); }
.step ul { margin: 1rem 0 0; padding-left: 1.15rem; color: var(--ink-70); font-size: 1rem; }
.step li { margin-bottom: .35rem; }
@media (max-width: 840px) { .step { grid-template-columns: 1fr; gap: .7rem; } }

/* ---------------- Projects ---------------- */
.project { border-top: 1px solid var(--ink-12); padding-block: clamp(2.2rem, 4vw, 3.2rem); }
.project:last-of-type { border-bottom: 1px solid var(--ink-12); }
.project-head { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.2rem; margin-bottom: 1.5rem; }
.project-head h3 { margin: 0; font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.project-grid { display: grid; gap: clamp(1.2rem, 4vw, 3.5rem); grid-template-columns: 1.35fr .65fr; }
@media (max-width: 860px) { .project-grid { grid-template-columns: 1fr; } }
.project-grid p { color: var(--ink-70); }
.project-grid strong { color: var(--ink); }
.tag { font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding: .36rem .85rem; border-radius: 999px; background: var(--teal); color: var(--ink); }
.tag-lime { background: var(--lime); }
.tag-ink { background: var(--ink); color: var(--sand); }
.facts { display: grid; gap: .1rem; }
.fact { padding-block: .7rem; border-bottom: 1px solid var(--ink-12); display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.fact b { font-family: var(--display); font-size: 1.1rem; }
.fact span { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-70); }

/* ---------------- Values ---------------- */
.values { list-style: none; margin: 2.2rem 0 0; padding: 0; }
.values li { padding-block: 1.5rem; border-top: 1px solid var(--ink-12); display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.8fr); gap: clamp(.8rem,3vw,2.5rem); }
.values li:last-child { border-bottom: 1px solid var(--ink-12); }
.values b { font-family: var(--display); font-size: 1.16rem; }
.values p { margin: 0; color: var(--ink-70); font-size: 1rem; }
.section-ink .values li, .row-ink .values li { border-color: var(--sand-20); }
.section-ink .values p, .row-ink .values p { color: var(--sand-80); }
.section-grad .values li { border-color: var(--sand-20); }
.section-grad .values p { color: var(--sand-80); }
@media (max-width: 780px) { .values li { grid-template-columns: 1fr; gap: .3rem; } }

/* ---------------- CTA (full-bleed photo) -------------------------------- */
.cta { position: relative; min-height: clamp(420px, 55vh, 620px); display: flex; align-items: center; overflow: hidden; }
.cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta::before { content:""; position: absolute; inset: 0; background: var(--grad-scrim); z-index: -1; }
.cta-inner { width: min(100% - var(--gutter)*2, var(--measure)); margin-inline: auto; color: #fff; padding-block: 3rem; }
.cta-inner h2 { color: #fff; max-width: 17ch; }
.cta-inner p { color: rgba(255,255,255,.85); }
.cta-inner .eyebrow { color: rgba(255,255,255,.8); }

/* ---------------- Form ---------------- */
.form { display: grid; gap: 1.2rem; margin-top: 2rem; }
.field { display: grid; gap: .45rem; }
.field label { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-70); }
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: 1rem; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--ink-12);
  padding: .75rem .1rem; width: 100%; border-radius: 0;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--teal); border-bottom-width: 2px; }
.field-row { display: grid; gap: 1.2rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: .88rem; color: var(--ink-70); }

.contact-list { list-style: none; margin: 2rem 0 0; padding: 0; }
.contact-list li { padding-block: 1.1rem; border-top: 1px solid var(--sand-20); }
.contact-list li:last-child { border-bottom: 1px solid var(--sand-20); }
.contact-list span { display: block; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sand-80); margin-bottom: .2rem; }
.contact-list a { color: var(--lime); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

/* ---------------- Footer ---------------- */
.foot { background: var(--ink-d); color: var(--sand); padding-block: clamp(4rem, 7vw, 6rem) 2.5rem; }
.foot-grid { display: grid; gap: 3rem; grid-template-columns: 1.6fr repeat(3, 1fr); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-logo img { height: 130px; width: auto; margin-bottom: 1.3rem; }
.foot h4 { font-family: var(--body); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: var(--sand-80); margin-bottom: 1.1rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: .65rem; }
.foot a { color: var(--sand-80); text-decoration: none; font-size: .96rem; }
.foot a:hover { color: var(--lime); }
.foot p { color: var(--sand-80); font-size: .96rem; }
.foot-base { margin-top: 3.5rem; padding-top: 1.6rem; border-top: 1px solid var(--sand-20); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .86rem; color: var(--sand-80); }

.skip { position: absolute; left: -9999px; background: var(--lime); color: var(--ink); padding: .8rem 1.2rem; font-family: var(--display); font-weight: 700; z-index: 99; }
.skip:focus { left: 1rem; top: .6rem; position: fixed; }

/* ==========================================================================
   Project map (EDF-style): filter chips, Leaflet map, detail modal, list view
   ========================================================================== */
.mapwrap { position: relative; }
.mapbar {
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem;
  align-items: center; justify-content: space-between;
  padding-block: 1.4rem 1.6rem;
}
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font-family: var(--display); font-weight: 700; font-size: .88rem;
  padding: .55rem 1.15rem; border-radius: 999px;
  border: 1px solid var(--ink-12); background: transparent; color: var(--ink);
  cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--sand); }
.chip:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

.viewtoggle { display: flex; gap: .4rem; }
.viewtoggle .chip[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: var(--ink); }

#projectMap {
  height: clamp(420px, 62vh, 680px); width: 100%;
  background: var(--sand-l); border-top: 1px solid var(--ink-12); border-bottom: 1px solid var(--ink-12);
  z-index: 1;
}
.leaflet-container { font-family: var(--body); background: #E9E5D6; }
.map-fallback { padding: 2rem; text-align: center; color: var(--ink-70); }

.pin {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); border: 2px solid var(--sand);
  box-shadow: 0 6px 16px -6px rgba(0,0,0,.5);
  color: var(--lime); font-family: var(--display); font-weight: 700; font-size: .82rem;
  cursor: pointer; transition: transform .15s ease;
}
.pin:hover, .pin.is-active { transform: scale(1.18); background: var(--lime); color: var(--ink); border-color: var(--ink); }
.pin-solar { background: var(--lime); color: var(--ink); }
.pin-wind { background: var(--teal); color: var(--ink); }
.pin-storage { background: var(--ink); color: var(--lime); }
.pin-data { background: #004A4C; color: var(--lime); }
.pin-oil  { background: #7A6A3A; color: #fff; }
.pin-nuclear { background: #016B57; color: #fff; }

.maplegend { display: flex; flex-wrap: wrap; gap: 1.2rem; padding-block: 1.2rem; font-size: .86rem; color: var(--ink-70); }
.maplegend span { display: flex; align-items: center; gap: .5rem; }
.maplegend i { width: 14px; height: 14px; border-radius: 50%; display: block; }

/* List view */
.plist { display: grid; gap: 0; }
.plist-item {
  display: grid; grid-template-columns: 1fr auto; gap: 1rem;
  align-items: center; padding-block: 1.3rem;
  border-bottom: 1px solid var(--ink-12); background: none; border-left: 0; border-right: 0; border-top: 0;
  text-align: left; cursor: pointer; width: 100%; font: inherit; color: inherit;
}
.plist-item:first-child { border-top: 1px solid var(--ink-12); }
.plist-item:hover { background: var(--sand-l); }
.plist-item h3 { margin: 0 0 .2rem; font-size: 1.2rem; }
.plist-meta { font-size: .9rem; color: var(--ink-70); }
.plist-item .tag { flex: none; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.is-open { display: block; }
.modal-scrim { position: absolute; inset: 0; background: rgba(0,32,38,.72); backdrop-filter: blur(3px); }
.modal-card {
  position: relative; z-index: 1; margin: clamp(1rem, 5vh, 4rem) auto;
  width: min(100% - 2rem, 880px); max-height: 88vh; overflow-y: auto;
  background: var(--sand); box-shadow: 0 40px 90px -40px rgba(0,0,0,.7);
}
.modal-hero { position: relative; min-height: 260px; display: flex; align-items: flex-end; overflow: hidden; }
.modal-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modal-hero::after { content:""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,32,38,.9), rgba(0,32,38,.15)); }
.modal-hero-copy { position: relative; z-index: 2; padding: 2rem; color: #fff; }
.modal-hero-copy h3 { color: #fff; margin: 0 0 .35rem; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.modal-meta { font-size: .95rem; color: rgba(255,255,255,.9); display: flex; flex-wrap: wrap; gap: .5rem .9rem; }
.modal-body { padding: 2rem clamp(1.4rem, 4vw, 2.6rem) 2.6rem; }
.modal-body h4 { font-family: var(--display); font-size: 1.25rem; margin: 0 0 .6rem; }
.modal-body p { color: var(--ink-70); }
.modal-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 0 1.5rem; margin-top: 1.8rem; }
.modal-facts div { padding-block: .8rem; border-top: 1px solid var(--ink-12); }
.modal-facts span { display: block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-70); }
.modal-facts b { font-family: var(--display); font-size: 1.1rem; }
.modal-close {
  position: absolute; top: 0; right: 0; z-index: 3;
  width: 56px; height: 56px; border: 0; cursor: pointer;
  background: rgba(0,32,38,.55); color: #fff; font-size: 1.5rem; line-height: 1;
}
.modal-close:hover { background: var(--lime); color: var(--ink); }
.modal-close:focus-visible { outline: 3px solid var(--lime); outline-offset: -3px; }
body.modal-open { overflow: hidden; }

/* Contrast guards: on the dark gradient the lime accent falls below 4.5:1 at
   the light end of the ramp, so labels there use beige instead. */
.section-grad .feature-n { color: var(--sand); opacity: .92; }
.section-grad p, .section-grad .lede, .section-grad .eyebrow,
.section-grad .values p { color: rgba(239,234,213,.94); }

/* Secondary text sat too transparent on the gradients — raise the opacity so
   every string clears 4.5:1 against the full colour ramp. */
.gradband span, .gradband .eyebrow { color: rgba(0,54,61,.92); }
.row-grad .row-copy p, .row-grad .row-copy .lede,
.row-grad .row-copy .eyebrow, .row-grad .row-copy .values p { color: rgba(0,54,61,.92); }
.section-grad p, .section-grad .lede, .section-grad .eyebrow,
.section-grad .feature p, .section-grad .values p { color: rgba(239,234,213,.96); }

/* ==========================================================================
   HubSpot embedded form — restyled to match the site
   ========================================================================== */
.hbspt-form { margin-top: 2rem; }
.hbspt-form .hs-form-field { margin-bottom: 1.2rem; }
.hbspt-form label {
  display: block; font-size: .74rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-70); margin-bottom: .45rem;
}
.hbspt-form label .hs-form-required { color: var(--teal); }
.hbspt-form input[type=text], .hbspt-form input[type=email], .hbspt-form input[type=tel],
.hbspt-form input[type=number], .hbspt-form select, .hbspt-form textarea {
  font-family: var(--body); font-size: 1rem; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--ink-12);
  padding: .75rem .1rem; width: 100% !important; max-width: 100%; border-radius: 0;
  box-sizing: border-box;
}
.hbspt-form textarea { min-height: 130px; resize: vertical; }
.hbspt-form input:focus, .hbspt-form select:focus, .hbspt-form textarea:focus {
  outline: none; border-bottom-color: var(--teal); border-bottom-width: 2px;
}
.hbspt-form .hs-button {
  display: inline-flex; align-items: center; font-family: var(--display);
  font-weight: 700; font-size: 1.02rem; padding: 1.05rem 2rem;
  border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  background: var(--ink); color: var(--sand); margin-top: 1rem;
  transition: transform .2s ease, background .2s ease;
}
.hbspt-form .hs-button:hover { transform: translateY(-2px); background: #005A55; }
.hbspt-form .hs-error-msg, .hbspt-form .hs-error-msgs label { color: #B3261E; font-size: .88rem; letter-spacing: 0; text-transform: none; }
.hbspt-form ul { list-style: none; padding: 0; margin: .3rem 0 0; }
.hbspt-form .hs-richtext { font-size: .9rem; color: var(--ink-70); }
.hbspt-form .submitted-message { font-size: 1.05rem; }
.meetings-iframe-container { margin-top: 2rem; min-height: 680px; }

/* ==========================================================================
   Case study index — one entry per row, add more by copying a block
   ========================================================================== */
.cases { margin-top: 3rem; }
.case {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center; padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--ink-12);
}
.case:last-child { border-bottom: 1px solid var(--ink-12); }
.case-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.case-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.case:hover .case-media img { transform: scale(1.04); }
.case-client { font-size: .74rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--teal); margin: 0 0 .8rem; }
.case h3 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); margin-bottom: .6rem; }
.case p { color: var(--ink-70); }
.case-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; } .case-media { aspect-ratio: 16 / 9; } }

.soon {
  margin-top: 3.5rem; padding: 2.2rem clamp(1.4rem, 3vw, 2.4rem);
  border: 1px dashed var(--ink-12); text-align: center;
}
.soon p { margin: 0 auto; color: var(--ink-70); }

/* ---------------- Stakes band (type only) ------------------------------- */
.stakes { background: var(--sand-l); padding-block: clamp(3.4rem, 7vw, 6rem); border-block: 1px solid var(--ink-12); }
.stakes p {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.5rem, 3.1vw, 2.5rem); line-height: 1.18;
  letter-spacing: -.02em; color: var(--ink);
  max-width: 52ch; margin: 0; text-wrap: pretty;
}
@media (max-width: 620px) { .stakes p br { display: none; } .stakes p { max-width: none; } }

/* ---------------- FAQ --------------------------------------------------- */
.faq { display: grid; gap: 0; margin-top: clamp(2rem, 4vw, 3rem); }
.faq-item { padding-block: clamp(1.6rem, 3vw, 2.3rem); border-top: 1px solid var(--ink-12); }
.faq-item:last-child { border-bottom: 1px solid var(--ink-12); }
.faq-item h3 { font-size: clamp(1.15rem, 1.9vw, 1.5rem); margin-bottom: .55rem; }
.faq-item p { margin: 0; max-width: 68ch; }


/* ---------------- State coverage list ----------------------------------- */
.statelist {
  list-style: none; margin: clamp(1.6rem, 3vw, 2.4rem) 0 0; padding: 0;
  display: grid; gap: .1rem .5rem;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.statelist li {
  padding: .5rem 0; border-top: 1px solid var(--ink-12);
  font-size: .98rem; color: var(--ink);
}


/* ---------------- Leadership bio ---------------------------------------- */
.bio {
  display: grid; gap: clamp(1.8rem, 4vw, 3.2rem);
  grid-template-columns: minmax(200px, 300px) 1fr;
  align-items: start; margin-top: clamp(2rem, 4vw, 3rem);
}
.bio-photo img { width: 100%; height: auto; display: block; border-radius: 14px; }
.bio-copy h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: .2rem; }
.bio-role {
  font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-70); margin-bottom: 1.1rem;
}
.bio-copy p { max-width: 62ch; }
.bio-list { margin: 1.1rem 0 1.3rem; padding-left: 1.1rem; max-width: 62ch; }
.bio-list li { margin-bottom: .5rem; }
@media (max-width: 720px) {
  .bio { grid-template-columns: 1fr; }
  .bio-photo { max-width: 260px; }
}

/* Leadership cards + bio pop-ups */
.leaders {
  display: grid; gap: clamp(1.4rem, 3vw, 2.4rem);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: clamp(2rem, 4vw, 3rem); max-width: 920px;
}
.leader { display: flex; flex-direction: column; }
.leader img { width: 100%; aspect-ratio: 1271 / 1331; object-fit: cover; display: block; border-radius: 14px; }
.leader-meta { padding-top: 1.2rem; display: flex; flex-direction: column; flex: 1; }
.leader-meta h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-bottom: .2rem; }
.leader-meta .bio-role { margin-bottom: .7rem; }
.leader-meta p:not(.bio-role) { color: var(--ink-70); margin-bottom: 1rem; }
.leader-more {
  margin-top: auto; align-self: flex-start; background: none; border: 0; padding: .3rem 0;
  font: inherit; font-weight: 600; color: var(--ink); cursor: pointer;
  border-bottom: 2px solid var(--lime);
}
.leader-more span { display: inline-block; transition: transform .2s ease; }
.leader-more:hover span, .leader-more:focus-visible span { transform: translateX(4px); }
.bio-dialog {
  width: min(960px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
  border: 0; border-radius: 18px; padding: clamp(1.6rem, 4vw, 3rem);
  background: var(--sand-l); color: var(--ink); overflow-y: auto;
}
.bio-dialog::backdrop { background: rgba(0,32,38,.72); backdrop-filter: blur(3px); }
.bio-dialog .bio { margin-top: 0; }
.bio-close {
  position: sticky; top: 0; float: right; margin: -.6rem -.6rem 0 0; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ink); color: #fff; font-size: 1.5rem; line-height: 1;
}
.bio-close:hover, .bio-close:focus-visible { background: var(--lime); color: var(--ink); }
body.has-dialog { overflow: hidden; }
.name-row { display: flex; align-items: center; gap: .55rem; }
.li-link { display: inline-flex; color: var(--ink); opacity: .55; transition: opacity .2s, color .2s; }
.li-link:hover, .li-link:focus-visible { opacity: 1; color: #0A66C2; }

/* ---------------- Proof bar (quiet, under the hero) --------------------- */
.proofbar { background: var(--sand); padding-block: clamp(1.8rem, 3.2vw, 2.6rem); border-bottom: 1px solid var(--ink-12); }
.proofbar-grid { display: grid; gap: 1.4rem 2rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.proofbar b {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1; margin-bottom: .3rem; color: var(--ink);
}
.proofbar span { font-size: .9rem; color: var(--ink-70); }

/* Two-sentence hero headline: statement at full size, turn underneath smaller */
.hero-inner h1.h1-stack { max-width: 19ch; }
.hero-inner h1.h1-stack span {
  display: block; max-width: 26ch;
  font-size: .52em; line-height: 1.16; letter-spacing: -.015em;
  margin-top: .5em; color: rgba(255,255,255,.92);
}

/* ---------------- Engagement card --------------------------------------- */
.pcard { border-top: 1px solid var(--ink-12); border-bottom: 1px solid var(--ink-12); }
.pcard-body { padding-block: clamp(1.6rem, 3vw, 2.2rem); }
.pcard-body h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: .35rem; }
.pcard-meta { font-size: .9rem; color: var(--ink-70); margin-bottom: .9rem; }
.pcard-body p { max-width: 68ch; }
.pcard-body .btn { margin-top: 1rem; }

/* ---------------- Cookie notice ----------------------------------------- */
.cookie-note {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  background: var(--ink); color: var(--sand);
  padding: .9rem var(--gutter) calc(.9rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -10px 30px -18px rgba(0,0,0,.6);
}
.cookie-note-inner {
  width: min(100% , var(--measure)); margin-inline: auto;
  display: flex; align-items: center; gap: 1.2rem; justify-content: space-between; flex-wrap: wrap;
}
.cookie-note p { margin: 0; font-size: .92rem; line-height: 1.45; max-width: 68ch; }
.cookie-note a { color: var(--lime); text-underline-offset: 3px; }
.btn-sm { padding: .55rem 1.1rem; font-size: .88rem; flex: none; }
.foot-base a { color: inherit; }
@media (max-width: 560px) { .cookie-note-inner { gap: .8rem; } .cookie-note p { font-size: .87rem; } }

/* ---------------- Legal / prose page ------------------------------------ */
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.25rem, 2vw, 1.6rem); margin-top: 2.2rem; }
.prose p, .prose li { max-width: 70ch; }
.prose ul { padding-left: 1.1rem; margin: 1rem 0 1.4rem; }
.prose li { margin-bottom: .7rem; }
.legal-date { font-size: .86rem; color: var(--ink-70); margin-bottom: 1.6rem; }

/* ---------------- Legal table ------------------------------------------- */
.table-scroll { overflow-x: auto; margin: 1.2rem 0 .6rem; }
.legal-table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .92rem; }
.legal-table th, .legal-table td { text-align: left; padding: .7rem .9rem .7rem 0; border-bottom: 1px solid var(--ink-12); vertical-align: top; }
.legal-table th { font-family: var(--display); font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-70); }
.legal-note { font-size: .85rem; color: var(--ink-70); }
.prose h3 { font-size: 1.05rem; margin-top: 1.6rem; }

/* Keep row copy optically centred in its half on wide screens */
@media (min-width: 1100px) { .row-copy { justify-content: center; } }

/* ---------------- Contact page side panel ------------------------------- */
.contact-aside { display: grid; gap: 1rem; align-content: start; }
.aside-card {
  background: var(--sand-l); border: 1px solid var(--ink-12);
  border-radius: 16px; padding: clamp(1.3rem, 2.4vw, 1.9rem);
}
.aside-card h3 { font-size: clamp(1.05rem, 1.7vw, 1.3rem); margin-bottom: .5rem; }
.aside-card p { margin: 0; font-size: .95rem; max-width: 46ch; }
.aside-card .eyebrow { margin-bottom: .7rem; }
.aside-card-alt { background: var(--ink); border-color: transparent; }
.aside-card-alt h3 { color: #fff; }
.aside-card-alt p { color: rgba(255,255,255,.82); }
.aside-card-alt .btn-row { margin-top: 1.1rem; }
@media (max-width: 860px) { .contact-aside { margin-top: 2.4rem; } }

/* ---------------- Case study: central question row ---------------------- */
.row-question .row-copy { background: var(--grad-dark); color: var(--sand); }
.row-question h2, .row-question .lede, .row-question .eyebrow { color: var(--sand); }
.row-question .lede { color: rgba(239,234,213,.9); }
.question-h2 { font-size: clamp(1.5rem, 2.5vw, 2.15rem); line-height: 1.16; max-width: 24ch; }

/* Sub-section inside a services step (e.g. Heirship) */
.step-sub { font-family: var(--display); font-size: 1.1rem; margin: 1.8rem 0 .4rem; color: var(--ink); }
.step ul.step-detail li { margin-bottom: .6rem; }
.step ul.step-detail b { color: var(--ink); }

/* HubSpot contact form: the embed adds ~40px of padding inside its frame that
   HubSpot doesn't let us remove, so pull the frame out to line the fields up
   with the heading above it. */
.hs-form-frame { margin: -24px calc(-1 * var(--gutter)) -16px; }
@media (min-width: 720px) {
  .hs-form-frame { margin: -40px -40px -24px; }
}

/* Keep dark text on the lime "Book a call" button in the nav (the nav's white
   link color was overriding it before the header turns solid). */
.nav a.btn-lime, .topbar.is-stuck .nav a.btn-lime { color: var(--ink); }

/* About page: animated brand mark beside "How we work" (exact logo geometry) */
.burst { position: sticky; top: 140px; width: min(100%, 400px); margin: 3rem auto 0; }
.burst svg { width: 100%; height: auto; display: block; overflow: visible; }
.burst-float { transform-origin: 46% 50%; animation: burstFloat 7s ease-in-out infinite; }
.burst .ray { fill: #EFEAD5; opacity: .16; transition: opacity 1s ease, fill 1s ease; }
.burst .ray.on { opacity: 1; }
.burst .ray.on.hot { fill: #A7E000; }
.burst .spike { fill: #A7E000; animation: burstGlow 4.5s ease-in-out infinite; }
@keyframes burstFloat { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-8px) scale(1.02); } }
@keyframes burstGlow { 0%,100% { filter: drop-shadow(0 0 0 rgba(167,224,0,0)); } 50% { filter: drop-shadow(0 0 18px rgba(167,224,0,.55)); } }
@media (max-width: 860px) { .burst { position: relative; top: 0; width: 220px; margin: 2rem 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .burst-float, .burst .spike { animation: none; }
  .burst .ray { opacity: 1; transition: none; }
}
