/* ==========================================================================
   Focal IT Consulting: shared styles
   Palette v1 (clean white and Focal orange). Colours live in :root below.
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset, SIL Open Font License) ---------- */
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}

:root {
  /* Accent */
  --accent: #F26B1D;
  --accent-strong: #B84A0C; /* small orange text and links: 5.2:1 on white */
  --accent-tint: #FEF0E8;

  /* Text */
  --ink: #14161A;
  --body: #3A3F47;
  --muted: #6B7280;
  --subtle: #9AA1AC;

  /* Surfaces and lines */
  --bg: #FFFFFF;
  --surface-1: #F7F8FA;
  --surface-2: #F1F3F5;
  --line: #E3E6EA;
  --line-strong: #CDD2D9;

  /* Status (small tags only) */
  --ok: #16794A;   --ok-bg: #E8F5EE;
  --warn: #946200; --warn-bg: #FBF2D6;
  --err: #BE2F28;  --err-bg: #FBEAE8;

  /* Type */
  --font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* Layout */
  --container: 1200px;
  --gutter: 24px;
  --nav-h: 68px;
  --radius: 10px;
  --radius-lg: 16px;
  --section-y: clamp(72px, 9vw, 120px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow-card: 0 1px 2px rgba(20, 22, 26, .04), 0 10px 28px -18px rgba(20, 22, 26, .22);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
body {
  margin: 0;
  background-color: #FFFFFF;
  color: var(--body);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; }
strong, b { font-weight: 700; color: var(--ink); }
em.hl, .hl { font-style: normal; color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #FFFFFF;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: var(--section-y) 0; }
.section--tint { background: var(--surface-1); }
.section--band { background: var(--surface-2); }
/* Muted grey is 4.35:1 on the band; use body text colour there for AA. */
.section--band .eyebrow, .section--band .figures__label { color: var(--body); }
.section--band .strip__num { color: var(--body); }
.section--band .arrow { color: var(--accent-strong); }
.section--line { border-top: 1px solid var(--line); }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .lede { margin-top: 18px; }

.eyebrow {
  display: block;
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: 1.04; letter-spacing: -0.03em; }
.h1-line { display: inline-block; text-wrap: balance; }
.h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.01em; }
.lede { max-width: 640px; font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); line-height: 1.6; color: var(--body); }
.section-head--center .lede { margin-left: auto; margin-right: auto; }
.measure { max-width: 68ch; }

.mono { font-family: var(--mono); font-weight: 500; }

/* Arrows inside figures */
.arrow { color: var(--accent); font-weight: 500; }

/* Estimate marker. .nw keeps it on the same line as its number. */
.nw { white-space: nowrap; }
.est {
  display: inline-block;
  margin-left: 0.3em;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  vertical-align: super;
  line-height: 1;
}

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: 700 1.0625rem/1.2 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.btn--primary {
  background: var(--accent);
  color: var(--ink); /* ink on Focal orange: about 6:1 */
  box-shadow: 0 1px 2px rgba(20, 22, 26, .08), 0 8px 20px -10px rgba(242, 107, 29, .55);
}
.btn--primary:hover { background: var(--accent-strong); color: #FFFFFF; }
.btn--secondary {
  background: #FFFFFF;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--secondary:hover { border-color: var(--ink); }
.btn--sm { min-height: 44px; padding: 9px 16px; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  min-height: 44px;
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(20, 22, 26, .07);
}
.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.wordmark__mark {
  position: relative;
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--ink);
}
.wordmark__mark::after {
  content: "";
  position: absolute;
  right: 5px; bottom: 5px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.site-nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.site-nav__links a:not(.btn) {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.site-nav__links a:not(.btn):hover { color: var(--ink); background: rgba(20, 22, 26, .045); }
.site-nav__links a[aria-current="page"] { color: var(--ink); }
.site-nav__links a[aria-current="page"]::after {
  content: "";
  display: block;
  align-self: stretch;
  height: 2px;
  margin-top: 2px;
  border-radius: 1px;
  background: var(--accent);
}
.site-nav__links li:last-child { margin-left: 10px; }

.menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #FFFFFF;
  color: var(--ink);
  font: 600 1rem/1 var(--font);
  cursor: pointer;
}
.menu-btn__icon { position: relative; width: 16px; height: 12px; }
.menu-btn__icon i {
  position: absolute; left: 0; right: 0;
  height: 2px; border-radius: 1px;
  background: currentColor;
  transition: transform .25s var(--ease), opacity .2s var(--ease), top .25s var(--ease);
}
.menu-btn__icon i:nth-child(1) { top: 0; }
.menu-btn__icon i:nth-child(2) { top: 5px; }
.menu-btn__icon i:nth-child(3) { top: 10px; }
.menu-open .menu-btn__icon i:nth-child(1) { top: 5px; transform: rotate(45deg); }
.menu-open .menu-btn__icon i:nth-child(2) { opacity: 0; }
.menu-open .menu-btn__icon i:nth-child(3) { top: 5px; transform: rotate(-45deg); }

.mobile-panel { display: none; }

@media (max-width: 820px) {
  .site-nav__links { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-panel {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: #FFFFFF;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(20, 22, 26, .25);
  }
  .menu-open .mobile-panel { display: block; }
  .mobile-panel ul { list-style: none; padding: 8px 0 20px; }
  .mobile-panel li a:not(.btn) {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
  }
  .mobile-panel li a[aria-current="page"] { color: var(--accent-strong); }
  .mobile-panel .btn { width: 100%; margin-top: 18px; }
  .menu-scrim.is-on {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(20, 22, 26, .3);
  }
  body.menu-locked { overflow: hidden; }
  .site-nav.menu-open { background: #FFFFFF; }
}
.menu-scrim { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px);
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -10% auto;
  height: 620px;
  pointer-events: none;
  background:
    radial-gradient(38% 46% at 50% 0%, rgba(242, 107, 29, .09), transparent 70%),
    radial-gradient(30% 40% at 85% 30%, rgba(20, 22, 26, .04), transparent 70%);
}
.hero > .container { position: relative; }
.hero .h1 { max-width: 900px; margin: 0 auto; }
.hero .eyebrow { text-wrap: balance; }
.hero__sub {
  max-width: 760px;
  margin: 24px auto 0;
  font-size: clamp(1.125rem, 1.7vw, 1.3125rem);
  line-height: 1.55;
  color: var(--body);
}
.hero .btn-row { justify-content: center; align-items: center; margin-top: 36px; }

/* ---------- Figures strip (under the hero) ---------- */
.figures-band { padding-bottom: clamp(48px, 7vw, 88px); }
.stats--band { margin-top: 0; }
.figures-band__note { margin-top: 12px; font-size: 1rem; color: var(--muted); }

/* ---------- Proof figures (first results card) ---------- */
.proof__strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.proof__item {
  padding: 22px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.proof__item + .proof__item { border-left: 1px solid var(--line); }
.proof__fig {
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.proof__label { font-size: 1rem; color: var(--muted); }

/* ---------- Past projects (the operations window) ---------- */
.fo-label { margin-bottom: 20px; text-align: center; }
.also {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: clamp(36px, 5vw, 48px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.also__label {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.also .ticker { color: var(--body); }
.also__close { margin-top: 20px; font-size: 1.0625rem; color: var(--ink); }

/* ---------- AI reliability (short version) ---------- */
.reliability-short { max-width: 820px; }
.reliability-short__cta { margin-top: 28px; }

/* ---------- Results ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 26px 24px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 1px 2px rgba(20, 22, 26, .05), 0 18px 36px -20px rgba(20, 22, 26, .3);
}
.card__tag {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.card__num {
  margin-top: 22px;
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.card__label { margin-top: 10px; font-size: 1.0625rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
.card__line { margin-top: 8px; font-size: 1rem; line-height: 1.55; color: var(--body); }
.card__link { margin-top: auto; padding-top: 20px; }
.card__link a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.cards-foot { margin-top: 32px; text-align: center; }
.cards-foot--note { max-width: 760px; margin-left: auto; margin-right: auto; font-size: 1.0625rem; color: var(--body); }
.card--static:hover { transform: none; border-color: var(--line); box-shadow: var(--shadow-card); }
.cards--services .card__label { margin-top: 18px; font-size: 1.25rem; }
/* Results: three columns, the first card spans two, so no slot is left empty. */
.cards--results { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card--lead { grid-column: span 2; }
.card--lead .proof__strip { margin-top: 18px; }
.card--lead .proof__item:first-child { padding-left: 0; }
.card--lead .card__label { margin-top: 18px; }
.card--more {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) auto;
  align-items: center;
  column-gap: 32px;
  padding: 24px 28px;
  background: var(--accent-tint);
  border-color: rgba(242, 107, 29, .2);
  box-shadow: none;
}
.card--more .card__tag { grid-column: 1; grid-row: 1; color: var(--body); }
.card--more .card__label { grid-column: 1; grid-row: 2; margin-top: 4px; font-size: 1.25rem; }
.card--more .card__line { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
.card--more .card__link { grid-column: 3; grid-row: 1 / span 2; margin-top: 0; padding-top: 0; }

/* ---------- Cycle ---------- */
.cycle {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  counter-reset: none;
}
.cycle__step {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #FFFFFF;
}
.cycle__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cycle__num {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent-strong);
}
.cycle__sub {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
  text-align: right;
}
.cycle__step h3 { margin-top: 18px; }
.cycle__line { margin-top: 8px; font-size: 1rem; line-height: 1.55; }
.cycle__out {
  margin-top: auto;
  padding-top: 16px;
}
.cycle__out p {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ink);
}
.cycle__out span {
  display: block;
  margin-bottom: 2px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
}
/* Step 07 takes a full row, so the grid has no empty slot. */
.cycle__step--wide { grid-column: 1 / -1; }
@media (min-width: 641px) {
  .cycle__step--wide {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    column-gap: 32px;
  }
  .cycle__step--wide > * { grid-column: 1; }
  .cycle__step--wide .cycle__out { grid-column: 2; grid-row: 1 / span 3; align-self: end; }
}
.cycle__loop {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 820px;
  margin: 40px auto 0;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  border: 1px solid var(--line);
}
.cycle__loop svg { flex: 0 0 28px; width: 28px; height: 28px; color: var(--accent); margin-top: 1px; }
.cycle__loop p { font-size: 1.0625rem; color: var(--body); }

/* ---------- In practice ---------- */
.practice {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 20px clamp(32px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.practice__intro p { max-width: 60ch; }
.practice__intro .link-arrow { margin-top: 18px; }
.practice__body .strip__stage { background: #FFFFFF; border: 1px solid var(--line); }
.strip {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  list-style: none;
  border-top: 1px solid var(--line-strong);
}
.strip__step { padding: 20px 18px 6px 18px; }
.strip__step + .strip__step { border-left: 1px solid var(--line); }
.strip__step:first-child { padding-left: 0; }
.strip__num {
  display: block;
  font-family: var(--mono);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--muted);
}
.strip__name { display: block; margin-top: 14px; font-size: 1.0625rem; font-weight: 700; line-height: 1.25; color: var(--ink); }
.strip__stage {
  display: inline-block;
  margin-top: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--body);
}
.strip__line { display: block; margin-top: 8px; font-size: 1rem; line-height: 1.5; color: var(--body); }

.figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin-top: 36px;
  border-top: 1px solid var(--line);
}
.figures li { padding: 22px 18px 0 18px; }
.figures li:first-child { padding-left: 0; }
.figures li + li { border-left: 1px solid var(--line); }
.figures__num {
  display: block;
  white-space: nowrap;
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.figures__label { display: block; margin-top: 6px; font-size: 1rem; line-height: 1.45; color: var(--muted); }

/* ---------- Experience ---------- */
.ticker {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.ticker li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #FFFFFF;
}
.ticker li::before {
  content: "";
  flex: 0 0 5px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.ticker--muted { color: var(--muted); }
.ticker--muted li { border-color: var(--line); background: var(--surface-1); }
.ticker--muted li::before { background: var(--line-strong); }
.ticker-wrap {
  display: grid;
  gap: 12px;
}

/* ---------- About strip ---------- */
.about-strip {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}
.about-strip__body p + p { margin-top: 16px; }
.about-strip__body .link-arrow { margin-top: 24px; }

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px;
  margin: 0;
  border-top: 1px solid var(--line-strong);
}
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  display: block;
  padding: 22px 48px 22px 0;
  color: var(--ink);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px; top: 50%;
  width: 10px; height: 10px;
  margin-top: -7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .25s var(--ease), border-color .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; border-color: var(--accent); }
.faq summary:hover { color: var(--accent-strong); }
.faq details p { padding: 0 48px 24px 0; max-width: 68ch; }

/* ---------- Call to action ---------- */
.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 88px) clamp(24px, 6vw, 80px);
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--surface-1);
  text-align: center;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(45% 70% at 50% 0%, rgba(242, 107, 29, .08), transparent 70%);
}
.cta > * { position: relative; }
.cta .lede { margin: 18px auto 0; color: var(--body); }
.cta .btn-row { justify-content: center; margin-top: 32px; }

/* ---------- Closing contact section (home) ---------- */
.contact__reply { margin-top: 16px; font-size: 1rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 1rem;
  color: var(--muted);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}
.site-footer .wordmark { font-size: 1.125rem; }
.site-footer p + p { margin-top: 4px; }
.site-footer__brand p:first-of-type { margin-top: 16px; color: var(--body); }
.site-footer h2 {
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.site-footer ul { list-style: none; }
.site-footer li + li { margin-top: 0; }
.site-footer a { color: var(--body); text-decoration: none; overflow-wrap: anywhere; }
.site-footer__grid > * { min-width: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.site-footer .site-footer__base p { margin: 0; }
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 1rem;
}

/* ---------- Page header (inner pages) ---------- */
.page-head {
  position: relative;
  padding: clamp(56px, 9vw, 112px) 0 clamp(40px, 6vw, 72px);
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 520px;
  pointer-events: none;
  background: radial-gradient(34% 46% at 18% 0%, rgba(242, 107, 29, .08), transparent 70%);
}
.page-head > .container { position: relative; }
.page-head .lede { margin-top: 22px; }

/* ---------- Case index ---------- */
.case-index {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  margin-top: clamp(36px, 5vw, 56px);
}
.case-index a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 14px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #FFFFFF;
  text-decoration: none;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.case-index a:hover { border-color: var(--line-strong); background: var(--surface-1); }
.case-index__no {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.case-index__metric { font-size: 1.125rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); font-variant-numeric: tabular-nums; }
.case-index__metric .arrow { font-weight: 600; }
.case-index__head { font-size: 1rem; line-height: 1.4; color: var(--body); }

/* ---------- Case block ---------- */
.case {
  padding: clamp(64px, 9vw, 112px) 0;
  border-top: 1px solid var(--line);
}
.case__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.case__tag { color: var(--accent-strong); }
.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px 0 9px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}
.status-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-tag--warn { color: var(--warn); background: var(--warn-bg); }
/* Sector word: a 2rem running label (was giant display type). */
.case__giant {
  margin-top: 14px;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.case__headline {
  max-width: 820px;
  margin-top: clamp(18px, 2.5vw, 28px);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.18;
}

.hero-metric {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 32px;
  margin-top: clamp(36px, 5vw, 56px);
  padding: clamp(20px, 3vw, 28px) 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}
.hero-metric__fig {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 18px;
  min-width: 0;
}
.hero-metric__before {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}
.hero-metric__arrow {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1;
  color: var(--accent);
}
.hero-metric__after {
  font-size: clamp(3rem, 8vw, 6.25rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.hero-metric__after--text { font-size: clamp(2.25rem, 5.4vw, 4.25rem); letter-spacing: -0.035em; }
.case--target .hero-metric__before { text-decoration: none; color: var(--body); }
.case--target .hero-metric__after, .case--target .hero-metric__arrow { color: var(--ink); }
.case--target .status-tag { height: 30px; font-size: 1rem; padding: 0 12px; }
.hero-metric__after .est { font-size: 0.875rem; vertical-align: top; margin-left: 0.4em; letter-spacing: 0.02em; }
.hero-metric__label {
  width: 100%;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.metric-rows { list-style: none; }
.metric-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 8px 32px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.metric-row__fig {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.metric-row__label { font-size: 1.0625rem; color: var(--body); }

.case__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 64px);
  margin-top: clamp(40px, 6vw, 64px);
}
.case__cols h3, .case__cols h4 {
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.case__cols p { max-width: 60ch; }
.case__more { margin-top: 28px; }
.case__cols p + p { margin-top: 14px; }
.case__measure {
  grid-column: 1 / -1;
  padding: 20px 24px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-1);
}
.case__cols .case__measure p { max-width: 86ch; }

/* Group heading on the case studies page ("Restoration services") */
.case-group__head {
  padding: clamp(56px, 8vw, 96px) 0 0;
  border-top: 1px solid var(--line);
}
.case-group__title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.case-group__head + .case { border-top: 0; padding-top: clamp(32px, 5vw, 56px); }

.settings { margin-top: clamp(32px, 5vw, 48px); }
.settings h3 { margin-bottom: 16px; font-size: 1.125rem; }
.settings__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
}
.settings__grid li {
  padding: 16px 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-1);
}
.settings__grid b { display: block; font-size: 1rem; }
.settings__grid span { display: block; margin-top: 4px; font-size: 1rem; line-height: 1.45; color: var(--muted); }

.case .strip { margin-top: clamp(40px, 6vw, 56px); }
.case .strip__step { padding-bottom: 0; }

/* ---------- About page ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin-top: clamp(40px, 6vw, 64px);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}
.stats li { padding: 22px 20px 20px; }
.stats li:first-child { padding-left: 0; }
.stats li + li { border-left: 1px solid var(--line); }

.prose-row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(20px, 6vw, 80px);
  padding: clamp(48px, 7vw, 80px) 0;
  border-top: 1px solid var(--line);
}
.prose-row:first-child { border-top: 0; }
.prose-row > h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
@media (min-width: 961px) {
  .prose-row > h2 { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; }
}
.prose p + p { margin-top: 18px; }
.prose { max-width: 68ch; }
.prose .lead { font-size: 1.25rem; line-height: 1.5; color: var(--ink); font-weight: 600; }
.prose .link-arrow { margin-top: 24px; }
.prose p + .cred-list, .prose .cred-list + p { margin-top: 18px; }
.prose a:not(.link-arrow) { display: inline-block; padding: 10px 0; margin: -10px 0; color: var(--ink); font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose a:not(.link-arrow):hover { color: var(--accent-strong); }
.prose a[href^="tel:"] { white-space: nowrap; }
.cred-list { list-style: none; border-top: 1px solid var(--line); }
.cred-list li {
  position: relative;
  padding: 14px 0 14px 26px;
  border-bottom: 1px solid var(--line);
}
.cred-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 24px;
  width: 8px; height: 8px;
  border-radius: 2px;
  border: 1.5px solid var(--accent);
  background: var(--accent-tint);
}
.outside { margin-top: 20px; color: var(--muted); }
.how-list { margin-top: 24px; }
.prose .callout { margin-top: 28px; }
.callout {
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--accent-tint);
  border: 1px solid rgba(242, 107, 29, .18);
}
.callout p { font-size: clamp(1.125rem, 1.8vw, 1.375rem); line-height: 1.5; color: var(--ink); }

/* ---------- 404 ---------- */
.notfound { padding: clamp(96px, 14vw, 180px) 0; text-align: center; }
.notfound .lede { margin: 18px auto 0; }
.notfound .btn-row { justify-content: center; margin-top: 32px; }

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cards, .cards--results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card--more { grid-template-columns: minmax(0, 1fr) auto; }
  .card--more .card__line { grid-column: 1; grid-row: 3; margin-top: 8px; }
  .card--more .card__link { grid-column: 2; grid-row: 1 / span 3; }
  .case-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .cards, .cycle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .practice { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .about-strip { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats li:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .prose-row { grid-template-columns: minmax(0, 1fr); }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip__step { padding: 18px 14px 18px 16px; border-top: 1px solid var(--line); }
  .strip__step:nth-child(-n+2) { border-top: 0; }
  .strip__step:nth-child(odd) { padding-left: 0; border-left: 0; }
  .strip__step:nth-child(even) { border-left: 1px solid var(--line); }
  .case__cols { grid-template-columns: minmax(0, 1fr); }
  .metric-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .hero-metric__label { margin-left: 0; text-align: left; width: 100%; }
  /* Five-step strips: one step per row, so no step is left alone */
  .strip[style*="--cols:5"] { grid-template-columns: minmax(0, 1fr); }
  .strip[style*="--cols:5"] .strip__step {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 12px;
    padding: 14px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .strip[style*="--cols:5"] .strip__step:first-child { border-top: 0; }
  .strip[style*="--cols:5"] .strip__num { grid-row: 1 / span 2; padding-top: 3px; }
  .strip[style*="--cols:5"] .strip__name { margin-top: 0; }
  .strip[style*="--cols:5"] .strip__line { grid-column: 2; margin-top: 2px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --nav-h: 62px; }
  .cards, .cards--results, .cycle { grid-template-columns: minmax(0, 1fr); }
  .proof__strip { grid-template-columns: minmax(0, 1fr); }
  .proof__item { padding: 16px 4px; flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; text-align: left; }
  .proof__item + .proof__item { border-left: 0; border-top: 1px solid var(--line); }
  .proof__label { text-align: right; }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .figures { grid-template-columns: minmax(0, 1fr); }
  .figures li { padding: 16px 0; }
  .figures li + li { border-left: 0; border-top: 1px solid var(--line); }
  .card--lead { grid-column: auto; }
  .ticker { font-size: 0.8125rem; letter-spacing: 0.01em; gap: 8px; }
  .ticker li { padding: 7px 11px; }
  .case-index { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .case-index a { padding: 12px 12px 13px; gap: 4px; }
  .case-index__metric { font-size: 1rem; }
  .case-index__head { display: none; }
  .settings__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats li { padding: 18px 12px 16px; }
  .stats li:nth-child(odd) { padding-left: 0; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .cta .btn-row .btn, .notfound .btn-row .btn { flex: 1 1 100%; }
  .card--more { display: flex; padding: 22px; }
  .card--more .card__line { margin-top: 8px; }
  .card--more .card__link { margin-top: auto; padding-top: 16px; }
  .faq summary { font-size: 1.0625rem; padding-right: 40px; }
  .faq details p { padding-right: 0; }
  .cycle__loop { padding: 18px; }
  .cycle__step { padding: 18px; }
  .cycle__step h3 { margin-top: 12px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; animation-iteration-count: 1 !important; }
  .js .reveal { opacity: 1; transform: none; }
  .card:hover { transform: none; }
}

/* abbr used for the estimate marker */
abbr.est { text-decoration: none; cursor: help; }

/* Phones: a smaller hero headline. */
@media (max-width: 420px) {
  .hero .h1 { font-size: 2.25rem; }
}
@media print {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .site-nav, .menu-scrim { display: none; }
}
@media (max-width: 480px) {
  .hero .eyebrow { letter-spacing: 0.08em; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding-top: 24px; }
  .hero .h1 { font-size: 2.25rem; }
}
