/* ---------- Tokens: change the accent here ---------- */
:root {
  --bg: #FAFAFA;
  --ink: #1A1A1A;
  --muted: #5C5C5C;
  --muted-inv: #A3A3A3;
  --rule: #E2E2E2;
  --rule-inv: #333333;
  --accent: #B4532A; /* terracotta, swap for your brand hex */
  --max: 72rem;
  --pad: clamp(1.25rem, 5vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  padding: 1rem 1.75rem;
  border: 1px solid var(--ink);
}
.btn:hover { background: var(--accent); border-color: var(--accent); }

.btn-accent { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.btn-accent:hover { background: var(--bg); border-color: var(--bg); color: var(--ink); }

.text-link {
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.text-link:hover { color: var(--accent); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* ---------- 1. Header & Hero ---------- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.brand {
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand span { color: var(--accent); }

.hero {
  padding-top: clamp(3rem, 8vw, 5.5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.hero h1 {
  margin-top: 1.25rem;
  font-size: clamp(2.5rem, 7.5vw, 5.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  max-width: 15ch;
}
.hero h1 .accent { color: var(--accent); }

.hero p {
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 38rem;
}

.hero .cta-row { margin-top: clamp(1.75rem, 3vw, 2.25rem); }

/* Credibility strip */
.strip {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.strip .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2.5rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.strip .lead {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.strip ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ---------- Section scaffold ---------- */
.section {
  padding-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.section-head {
  display: grid;
  gap: 0.875rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.section-head h2 {
  font-size: clamp(1.875rem, 4.2vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 20ch;
}

/* ---------- 2. Focus Areas ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 2px solid var(--ink);
}

.service {
  padding: 1.75rem 0 2rem;
  border-bottom: 1px solid var(--rule);
}
.service:last-child { border-bottom: 0; }

.service .num {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.service h3 {
  margin-top: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.service p {
  margin-top: 0.75rem;
  color: var(--muted);
  max-width: 32ch;
}

@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .service { padding: 2rem 2.5rem 0 0; border-bottom: 0; }
  .service + .service { padding-left: 2.5rem; border-left: 1px solid var(--rule); }
  .service:last-child { padding-right: 0; }
}

/* ---------- 3. Selected Impact (inverted band) ---------- */
.impact {
  background: var(--ink);
  color: var(--bg);
}
.impact .section-head h2 { color: var(--bg); }

.stats {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--rule-inv);
}

.stat {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule-inv);
}
.stat:last-child { border-bottom: 0; }

.stat .figure {
  font-size: clamp(3.25rem, 9vw, 6.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.stat .figure .unit { color: var(--accent); }

.stat .label {
  margin-top: 0.875rem;
  color: var(--muted-inv);
  max-width: 28ch;
}

@media (min-width: 768px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat { padding: 2.25rem 2.5rem 0 0; border-bottom: 0; }
  .stat + .stat { padding-left: 2.5rem; border-left: 1px solid var(--rule-inv); }
  .stat:last-child { padding-right: 0; }
}

/* ---------- 4. Footer / Contact ---------- */
.contact {
  padding-top: clamp(3.5rem, 8vw, 5.5rem);
  padding-bottom: clamp(2rem, 4vw, 2.5rem);
  scroll-margin-top: 1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 5fr 7fr; }
}

.contact h2 {
  margin-top: 1rem;
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  max-width: 12ch;
}

.contact .intro {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: 30rem;
}

/* Form */
.lead-form {
  border-top: 2px solid var(--ink);
  padding-top: 1.75rem;
}

.fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem 1.5rem;
}
@media (min-width: 600px) {
  .fields { grid-template-columns: 1fr 1fr; }
}

.field { display: grid; gap: 0.4rem; }

.field label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.field label .opt { color: var(--muted); font-weight: 400; }

.field input,
.field select {
  width: 100%;
  font: inherit;
  font-size: 1rem; /* 16px stops iOS zoom on focus */
  color: var(--ink);
  background: #FFFFFF;
  border: 1px solid #CFCFCF;
  border-radius: 0;
  padding: 0.85rem 1rem;
  appearance: none;
  -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231A1A1A' stroke-width='1.5'/%3E%3C/svg%3E");
  background-position: right 1rem center;
  background-size: 10px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}
.field input::placeholder { color: #9A9A9A; }
.field input:focus,
.field select:focus {
  border-color: var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: -2px;
}
.field input:user-invalid,
.field select:user-invalid { border-color: var(--accent); }

.phone {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
}
.phone select { border-right: 0; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
}

.submit {
  margin-top: 1.25rem;
  width: 100%;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #FFFFFF;
  background: var(--accent);
  border: 1px solid var(--accent);
  padding: 1.05rem 1.5rem;
  cursor: pointer;
}
.submit:hover { background: var(--ink); border-color: var(--ink); }
.submit:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.submit[disabled] { opacity: 0.6; cursor: wait; }

.form-status {
  margin-top: 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
}
.form-status.error { color: var(--accent); }

.thanks {
  border-top: 2px solid var(--ink);
  padding-top: 1.75rem;
}
.thanks h3 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.thanks p { margin-top: 0.75rem; color: var(--muted); max-width: 34ch; }

.footer-meta {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ---------- Focus area links ---------- */
.service { display: flex; flex-direction: column; }
.more-link {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  align-self: flex-start;
  padding-bottom: 2px;
}
.more-link:hover { color: var(--accent); border-color: var(--accent); }
@media (min-width: 768px) {
  .more-link { margin-top: auto; }
  .service p + .more-link { margin-top: 1.5rem; }
}

/* ---------- Inner pages ---------- */
.breadcrumb {
  padding-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: #B5B5B5; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 500; }

.page-hero {
  padding-top: clamp(2rem, 6vw, 4rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
  border-bottom: 1px solid var(--rule);
}
.page-hero h1 {
  margin-top: 1rem;
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 16ch;
}
.page-hero h1 .accent { color: var(--accent); }
.page-hero p {
  margin-top: 1.25rem;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 38rem;
}
.page-hero .cta-row { margin-top: 1.75rem; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 2px solid var(--ink);
}
.cell {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.cell h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.cell p { margin-top: 0.5rem; color: var(--muted); max-width: 40ch; }
.cell .num {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .cell { padding: 2rem 2.5rem 2rem 0; }
  .cell:nth-child(2n) { padding-left: 2.5rem; padding-right: 0; border-left: 1px solid var(--rule); }
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  border-top: 2px solid var(--ink);
  counter-reset: step;
}
.steps li { padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.steps h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em; }
.steps p { margin-top: 0.4rem; color: var(--muted); font-size: 0.9375rem; }
.steps .num { display: block; margin-bottom: 0.75rem; font-size: 0.8125rem; font-weight: 600; color: var(--accent); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps li { padding: 2rem 1.75rem 0 0; border-bottom: 0; }
  .steps li + li { padding-left: 1.75rem; border-left: 1px solid var(--rule); }
  .steps li:last-child { padding-right: 0; }
}

.metrics {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--rule-inv);
}
.metrics li {
  padding: 1.5rem 1rem 1.5rem 0;
  border-bottom: 1px solid var(--rule-inv);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.metrics li span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted-inv);
}
@media (min-width: 900px) {
  .metrics { grid-template-columns: repeat(4, 1fr); }
  .metrics li { border-bottom: 0; padding: 2rem 1.75rem 0 0; }
  .metrics li + li { padding-left: 1.75rem; border-left: 1px solid var(--rule-inv); }
}

.related {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 2px solid var(--ink);
}
.related a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}
.related a strong { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.related a span { font-size: 0.9375rem; color: var(--muted); }
.related a:hover strong { color: var(--accent); }
@media (min-width: 768px) {
  .related { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
}
@media (max-width: 599px) {
  .related a { flex-direction: column; gap: 0.25rem; }
}

/* ---------- Focus area switcher (inner pages) ---------- */
.focus-nav {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
  border-bottom: 1px solid var(--rule);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.focus-nav::-webkit-scrollbar { display: none; }
.focus-nav a {
  flex: 0 0 auto;
  padding: 0.75rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.focus-nav a span { color: #B5B5B5; font-variant-numeric: tabular-nums; margin-right: 0.25rem; }
.focus-nav a:hover { color: var(--ink); }
.focus-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.focus-nav a[aria-current="page"] span { color: var(--accent); }
.page-hero { border-bottom: 0; }

/* ---------- Footer nav ---------- */
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.footer-nav a:hover { color: var(--accent); }

/* ---------- Video (click-to-load, no autoplay) ---------- */
.video-block { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 900px) {
  .video-block.has-chapters { grid-template-columns: 8fr 4fr; gap: 2.5rem; align-items: start; }
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  color: var(--bg);
  overflow: hidden;
}
.video-frame iframe,
.video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.video-poster {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background-size: cover; background-position: center;
}
.video-kicker {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
.video-title {
  margin-top: 0.6rem;
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 700; line-height: 1.12; letter-spacing: -0.03em;
  max-width: 22ch;
}
.video-play {
  position: absolute;
  top: clamp(1.25rem, 3vw, 2.25rem); right: clamp(1.25rem, 3vw, 2.25rem);
  width: clamp(3.25rem, 7vw, 4.5rem); aspect-ratio: 1;
  border-radius: 50%;
  border: 0;
  background: var(--accent);
  cursor: pointer;
}
.video-play::after {
  content: "";
  position: absolute; top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 0.6rem 0 0.6rem 1rem;
  border-color: transparent transparent transparent #FFFFFF;
}
.video-play:hover { background: var(--bg); }
.video-play:hover::after { border-left-color: var(--ink); }
.video-play:focus-visible { outline: 2px solid var(--bg); outline-offset: 4px; }
.video-frame.is-pending .video-play { display: none; }
.video-frame.is-pending .video-kicker { color: var(--muted-inv); }
.video-caption { margin-top: 0.875rem; font-size: 0.875rem; color: var(--muted); }

.video-chapters { list-style: none; border-top: 2px solid var(--ink); }
.video-chapters button {
  width: 100%;
  display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: baseline;
  padding: 1.1rem 0;
  font: inherit; text-align: left; color: var(--muted);
  background: none; border: 0; border-bottom: 1px solid var(--rule);
  cursor: pointer;
}
.video-chapters .ch-num { font-size: 0.8125rem; font-weight: 600; color: #B5B5B5; font-variant-numeric: tabular-nums; }
.video-chapters .ch-name { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; }
.video-chapters .ch-time { font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.video-chapters button:hover { color: var(--ink); }
.video-chapters button[aria-pressed="true"] { color: var(--ink); }
.video-chapters button[aria-pressed="true"] .ch-num { color: var(--accent); }
.video-chapters button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.video-chapters .ch-link { display: inline-block; margin-top: 1.25rem; }
.video-poster.has-image::before { content: ""; position: absolute; inset: 0; background: rgba(26, 26, 26, 0.55); }
.video-poster > * { position: relative; }
.video-block:not(.has-chapters) .video-frame { max-width: 52rem; }
