@font-face {
  font-family: Inter;
  src: url("../fonts/inter-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f6f7f2;
  --surface: #ffffff;
  --surface-muted: #ecefe7;
  --ink: #17201b;
  --ink-soft: #536157;
  --line: #d8ded3;
  --forest: #32483b;
  --moss: #6f806b;
  --clay: #9a5846;
  --clay-dark: #733c30;
  --focus: #245fcb;
  --shadow: 0 18px 50px rgba(23, 32, 27, 0.08);
  --radius: 8px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: calc(16px * var(--font-scale, 1));
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--clay-dark);
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.1;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h1 {
  max-width: 820px;
  margin-bottom: 1.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 520;
}

h2 {
  max-width: 760px;
  margin-bottom: 1.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 520;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.08rem;
  font-weight: 700;
}

p {
  color: var(--ink-soft);
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--surface);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 247, 242, 0.91);
  border-bottom: 1px solid rgba(216, 222, 211, 0.78);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
}

.brand-name {
  font-size: 0.95rem;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 650;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--ink);
}

.site-nav a.active::after {
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 2px;
  background: var(--clay);
  content: "";
}

.font-size-control {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.font-size-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1;
}

.font-size-btn[data-size="small"] { font-size: 0.72rem; }
.font-size-btn[data-size="normal"] { font-size: 0.92rem; }
.font-size-btn[data-size="large"]  { font-size: 1.12rem; }

.font-size-btn[aria-pressed="true"] {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.font-size-btn:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  background: currentColor;
}

.section,
.section-band {
  scroll-margin-top: 88px;
}

.section {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
}

.section-band {
  padding: clamp(5rem, 10vw, 9rem) 0 clamp(4rem, 8vw, 7rem);
}

.section-muted {
  background: var(--surface-muted);
}

.section-ink {
  background: var(--ink);
  color: var(--paper);
}

.section-ink p,
.section-ink .eyebrow {
  color: rgba(246, 247, 242, 0.74);
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--clay-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.hero-lede {
  max-width: 660px;
  margin-bottom: 2.2rem;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.hero-actions,
.contact-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 1.1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 760;
  line-height: 1.1;
}

.button.primary {
  background: var(--ink);
  color: var(--surface);
}

.button.primary:hover {
  background: var(--clay-dark);
  color: var(--surface);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.52);
  color: var(--ink);
}

.button.secondary:hover {
  border-color: var(--clay);
  color: var(--clay-dark);
}

/* ── Shared panel system ───────────────────────────── */

.panel {
  display: grid;
  gap: 0.6rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel--constrained {
  max-width: 480px;
}

.panel-item {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 64px;
  align-items: start;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.panel--numbered {
  counter-reset: panel-counter;
}

.panel--numbered .panel-item {
  grid-template-columns: 42px 1fr;
  gap: 1rem;
}

.panel--numbered .panel-item::before {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--clay-dark);
  content: counter(panel-counter, decimal-leading-zero);
  counter-increment: panel-counter;
  font-size: 0.78rem;
  font-weight: 800;
}

.panel--connected .panel-item {
  position: relative;
}

.panel--connected .panel-item:not(:last-child)::after {
  position: absolute;
  bottom: -0.55rem;
  left: 2.25rem;
  width: 1px;
  height: 0.5rem;
  background: var(--moss);
  content: "";
}

/* ── diagnostic-panel specific overrides ──────────── */

.framework-step {
  align-items: center;
  color: var(--ink);
  font-weight: 760;
}

.framework-step.final {
  background: var(--forest);
  color: var(--surface);
}

.framework-step.final::before {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.68);
}

.two-column,
.methodology-layout,
.why-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2.5rem, 7vw, 6rem);
}

.section-intro {
  position: sticky;
  top: 110px;
  align-self: start;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 2.5rem;
}

.section-heading p {
  max-width: 650px;
  font-size: 1.08rem;
}

.problem-item h3 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.problem-item p {
  margin-bottom: 0;
}


.engagement-step {
  padding: 0;
  overflow: hidden;
}

.engagement-step-header {
  display: grid;
  width: 100%;
  min-height: 64px;
  grid-template-columns: 1fr 32px;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border: none;
  background: none;
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
  text-align: left;
}

.engagement-step-header:hover {
  background: var(--surface);
}

.engagement-step-header[aria-expanded="true"] {
  background: var(--surface);
}

.engagement-step-body {
  display: grid;
  gap: 0.2rem;
}

.engagement-step-body strong {
  font-size: 1rem;
}

.engagement-step-body span {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 400;
}

.engagement-step-chevron {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--clay);
  font-size: 0.7rem;
  transition: transform 0.18s ease;
}

.engagement-step-chevron::after {
  content: "↓";
}

.engagement-step-header[aria-expanded="true"] .engagement-step-chevron {
  transform: rotate(180deg);
}

.engagement-step-detail {
  padding: 0.9rem 1rem 1.1rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.engagement-detail-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 1.5rem;
  margin: 0;
  max-width: 760px;
}

.engagement-detail-list dt {
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding-top: 0.15rem;
}

.engagement-detail-list dd {
  margin: 0;
  color: var(--ink-soft);
}

.method-list span {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 800;
}

.method-list p {
  margin-bottom: 0;
}

.deliverable-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(246, 247, 242, 0.24);
}

.deliverable-grid article {
  min-height: 190px;
  padding: 1.3rem;
  background: var(--ink);
}

.deliverable-grid h3 {
  color: var(--surface);
}

.deliverable-grid p {
  margin-bottom: 0;
}

.why-copy {
  max-width: 650px;
  font-size: 1.18rem;
}

.why-copy p:first-child {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.contact-section {
  border-top: 1px solid var(--line);
}

.contact-panel {
  align-content: start;
  padding: clamp(1.4rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-panel p {
  flex-basis: 100%;
  margin-bottom: 0.75rem;
}

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.footer-inner p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

@media (max-width: 1240px) {
  .why-layout {
    grid-template-columns: 1fr;
    gap: clamp(1.75rem, 4vw, 3rem);
  }

  .why-layout > div:first-child,
  .why-copy {
    max-width: 760px;
  }
}

@media (max-width: 920px) {
  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    top: 72px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 20px 1.25rem;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    min-height: 52px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a.active::after {
    display: none;
  }

  .two-column,
  .methodology-layout,
  .why-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .section-intro {
    position: static;
  }

  .deliverable-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 620px) {
  .font-size-control {
    display: none;
  }

  .container {
    width: min(100% - 28px, var(--container));
  }

  .section {
    padding: 4rem 0;
  }

  .section-band {
    padding: 4.25rem 0;
  }

  .hero-actions,
  .contact-panel {
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .diagnostic-panel {
    padding: 0.7rem;
  }

  .framework-step {
    min-height: 58px;
    grid-template-columns: 44px 1fr;
  }

  .engagement-card {
    min-height: auto;
  }

  .footer-inner {
    flex-direction: column;
  }
}
