/* ==========================================================================
   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: .74rem; 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; }
.hero-inner .lede { color: rgba(255,255,255,.86); max-width: 46ch; }
.hero-tag { font-size: .76rem; 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: .82rem; 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: 8rem minmax(0,1fr) minmax(0,1.2fr); 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); }

.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); }
