/* =============================================================
   Wavelet Solutions - v2
   Same idiom family as Artisan (paper, serif headlines, navy
   accent, restraint as primary gesture) but applied to a sales
   site that needs to convert. Means: visible CTAs, problem-
   matching structure, engagement model, contact prominence.
   ============================================================= */

:root {
  /* Paper: same warm off-white as Artisan for family resemblance */
  --paper:        #f3efe7;
  --paper-edge:   #ebe6db;
  --paper-deep:   #e3ddd0;
  --paper-dark:   #1a1c20;

  --ink:          #131519;
  --ink-muted:    #44474e;
  --ink-faded:    #7a7d84;
  --ink-on-dark:  #e8e3d8;
  --ink-on-dark-faded: #9a958a;

  --rule:         #d4cfc2;
  --rule-bright:  #b5ae9d;
  --rule-on-dark: #2c2f35;

  /* Primary accent: deep navy - shared with Artisan */
  --accent:       #1d2a4a;
  --accent-soft:  #2d3a5e;
  --accent-light: #4a5a82;

  /* Secondary accent: ochre - reserved for credentials, the
     pull-quote rule, and other moments that want a second color.
     Used rarely. */
  --ochre:        #8a5a1e;
  --ochre-soft:   #a87030;

  --serif:  "Fraunces", "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans:   "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono:   "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --doc-margin: 2rem;
  --reading:    62ch;
  --measure:    84ch;
  --wide:       112ch;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "kern", "liga", "calt";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 50;
}

h1 {
  font-size: clamp(3rem, 6vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 20ch;
  margin-bottom: 0.4em;
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 30, "wght" 500;
}

h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.85rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin-bottom: 0.5em;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 0.4em;
}

p {
  margin: 0 0 1.15em;
  max-width: var(--reading);
}
p:last-child { margin-bottom: 0; }

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 150ms;
}
a:hover { text-decoration-color: var(--accent); }

strong { font-weight: 600; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.75rem;
  height: 1px;
  background: var(--accent);
}

.sheet {
  max-width: calc(var(--wide) + 2 * var(--doc-margin));
  margin: 0 auto;
  padding: 0 var(--doc-margin);
}
.sheet--measure { max-width: calc(var(--measure) + 2 * var(--doc-margin)); }
.sheet--reading { max-width: calc(var(--reading) + 2 * var(--doc-margin)); }

section {
  padding: 7rem 0;
  position: relative;
}
section + section {
  border-top: 1px solid var(--rule);
}

/* =============================================================
   Buttons. Two variants: primary (filled) and ghost (text).
   ============================================================= */
.btn {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: background 150ms, color 150ms, gap 200ms;
  font-weight: 500;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: var(--paper);
  border: 1px solid var(--accent);
}
.btn--primary:hover {
  background: var(--accent-soft);
  gap: 0.85rem;
}
.btn--secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn--secondary:hover {
  background: var(--accent);
  color: var(--paper);
  gap: 0.85rem;
}
.btn--ghost {
  background: transparent;
  color: var(--ink-muted);
  border: none;
  padding: 0.85rem 0;
}
.btn--ghost:hover {
  color: var(--accent);
  gap: 0.85rem;
}

/* =============================================================
   Nav
   ============================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 239, 231, 0.94);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav__inner {
  max-width: calc(var(--wide) + 2 * var(--doc-margin));
  margin: 0 auto;
  padding: 1.1rem var(--doc-margin);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
}
.nav__brand {
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  font-variation-settings: "opsz" 24, "SOFT" 0;
  white-space: nowrap;
}
.nav__brand em {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-style: normal;
  color: var(--ink-faded);
  margin-left: 0.5rem;
  letter-spacing: 0.06em;
}

/* Hamburger button - hidden by default on desktop, shown at the breakpoint */
.nav__toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  z-index: 102;
  /* Slight nudge up to optically center against the brand baseline */
  align-self: center;
}
.nav__toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
.nav__toggle-bar {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1),
              opacity 180ms cubic-bezier(0.4, 0, 0.2, 1),
              top 280ms cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}
.nav__toggle-bar:nth-child(1) { top: 14px; }
.nav__toggle-bar:nth-child(2) { top: 21.25px; }
.nav__toggle-bar:nth-child(3) { top: 28.5px; }

/* Open state: bars animate to an X */
.nav__toggle.is-open .nav__toggle-bar:nth-child(1) {
  top: 21.25px;
  transform: rotate(45deg);
}
.nav__toggle.is-open .nav__toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.4);
}
.nav__toggle.is-open .nav__toggle-bar:nth-child(3) {
  top: 21.25px;
  transform: rotate(-45deg);
}

.nav__links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav__links a {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 0.35rem;
  transition: color 150ms;
}
.nav__links a:hover { color: var(--ink); }

/* Active page indicator: small ochre underline below the link.
   Subtle but unmistakable - the eye picks it up without it shouting. */
.nav__links a.is-active {
  color: var(--ink);
}
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--ochre);
}
.nav__cta {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent) !important;
  text-decoration: none;
  border: 1px solid var(--accent);
  padding: 0.5rem 1rem;
  border-radius: 2px;
  transition: background 150ms, color 150ms;
}
.nav__cta:hover {
  background: var(--accent);
  color: var(--paper) !important;
}
/* Active state on contact - filled instead of outlined */
.nav__cta.is-active {
  background: var(--accent);
  color: var(--paper) !important;
}
.nav__cta.is-active::after { display: none; }
.nav__cta-short { display: none; }

/* Overlay backdrop for mobile menu - dims the page when nav is open */
.nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(19, 21, 25, 0);
  z-index: 99;
  pointer-events: none;
  transition: background 320ms cubic-bezier(0.4, 0, 0.2, 1);
}
.nav__overlay.is-show {
  display: block;
  pointer-events: auto;
}
.nav__overlay.is-active {
  background: rgba(19, 21, 25, 0.42);
}

/* =============================================================
   Hero
   ============================================================= */
.hero {
  padding: 7rem 0 6rem;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 5rem;
  align-items: end;
}
.hero__lede {
  font-size: 1.15rem;
  color: var(--ink-muted);
  line-height: 1.65;
  max-width: 52ch;
  margin-bottom: 2.5rem;
}

.hero__cred {
  border-left: 2px solid var(--ochre);
  padding: 0.4rem 0 0.4rem 1.4rem;
}

/* Small Morlet wavelet mark above the credentials block.
   Acts as a brand stamp, contained and distinct from the hero text. */
.hero__cred-mark {
  display: block;
  width: 5.5rem;
  height: auto;
  color: var(--ochre);
  margin-bottom: 1.5rem;
  margin-left: -0.2rem;
  opacity: 0.85;
}
.hero__cred-item {
  display: block;
  margin-bottom: 1.2rem;
}
.hero__cred-item:last-child { margin-bottom: 0; }
.hero__cred-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faded);
  display: block;
  margin-bottom: 0.25rem;
}
.hero__cred-value {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink);
  font-variation-settings: "opsz" 24, "SOFT" 50;
}
.hero__cred-value em {
  font-style: normal;
  color: var(--ochre);
}

.hero__cta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

/* =============================================================
   Pull quote section. First content moment after hero.
   ============================================================= */
.quote {
  background: var(--paper-edge);
  padding: 7rem 0;
}
.quote__body {
  max-width: 50ch;
  margin: 0 auto;
  position: relative;
}
.quote__mark {
  position: absolute;
  top: -2.5rem;
  left: -2.5rem;
  font-family: var(--serif);
  font-size: 7rem;
  color: var(--ochre);
  opacity: 0.4;
  line-height: 1;
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  pointer-events: none;
}
.quote__text {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.5;
  color: var(--ink);
  font-variation-settings: "opsz" 24, "SOFT" 50;
  margin-bottom: 2rem;
  max-width: none;
}
.quote__text em {
  color: var(--accent);
  font-style: italic;
}
.quote__attr {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faded);
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.quote__attr strong {
  color: var(--ink);
  font-weight: 500;
}

.problems__intro {
  margin-bottom: 5rem;
  max-width: 52ch;
}

.problem {
  display: grid;
  grid-template-columns: 8ch 1fr 1fr;
  gap: 3rem;
  padding: 2.75rem 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.problem:last-child {
  border-bottom: 1px solid var(--rule);
}
.problem__num {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faded);
  padding-top: 0.4rem;
}
.problem__situation h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 0.7rem;
  font-variation-settings: "opsz" 24, "SOFT" 50;
}
.problem__situation p {
  color: var(--ink-muted);
  font-size: 0.97rem;
  line-height: 1.65;
}
.problem__response {
  background: var(--paper-edge);
  padding: 1.25rem 1.4rem;
  border-left: 2px solid var(--accent);
  border-radius: 2px;
}
.problem__response-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: block;
  font-weight: 500;
}
.problem__response p {
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Small interstitial moment between the two halves of the problems list */
.problems__interstitial {
  padding: 3.5rem 0 2rem;
  text-align: center;
}
.problems__interstitial p {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--ochre);
  font-variation-settings: "opsz" 24, "SOFT" 70;
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  max-width: none;
}
.problems__interstitial p::before,
.problems__interstitial p::after {
  content: "";
  display: inline-block;
  width: 3rem;
  height: 1px;
  background: var(--ochre);
  opacity: 0.5;
}

/* =============================================================
   Engagement model - how an engagement starts. Trust-builder.
   Dark background for rhythm contrast between problem groups.
   ============================================================= */
.engagement {
  background: var(--paper-dark);
  color: var(--ink-on-dark);
}
.engagement .eyebrow {
  color: var(--ink-on-dark-faded);
}
.engagement .eyebrow::before {
  background: var(--ochre);
}
.engagement h2 {
  color: var(--ink-on-dark);
}
.engagement__intro {
  margin-bottom: 4rem;
  max-width: 52ch;
}
.engagement__intro p {
  color: var(--ink-on-dark-faded);
}
.engagement__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule-on-dark);
  border-bottom: 1px solid var(--rule-on-dark);
}
.engagement__step {
  padding: 2.5rem 2rem 2.5rem 0;
  border-right: 1px solid var(--rule-on-dark);
}
.engagement__step:last-child { border-right: none; }
.engagement__step:not(:first-child) {
  padding-left: 2rem;
}
.engagement__step-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ochre-soft);
  margin-bottom: 1rem;
  display: block;
  font-weight: 500;
}
.engagement__step h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin-bottom: 0.6em;
  font-variation-settings: "opsz" 24, "SOFT" 50;
  font-weight: 500;
  color: var(--ink-on-dark);
}
.engagement__step p {
  color: var(--ink-on-dark-faded);
  font-size: 0.92rem;
  line-height: 1.65;
}

.engagement__note {
  margin-top: 3rem;
  padding: 1.5rem 1.75rem;
  background: rgba(255, 255, 255, 0.04);
  border-left: 2px solid var(--ochre);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--ink-on-dark-faded);
  font-variation-settings: "opsz" 24, "SOFT" 50;
  line-height: 1.6;
  max-width: none;
}
.engagement__note p { max-width: none; color: var(--ink-on-dark-faded); }
.engagement__note strong {
  font-style: normal;
  color: var(--ink-on-dark);
}

/* =============================================================
   Boundaries - "what we don't do" - paper-edge for honest, quiet
   confidence rather than theatrical emphasis. Lighter background
   breaks the two-darks-in-a-row problem after the Engagement
   section while keeping the section weighty through content.
   ============================================================= */
.boundaries {
  background: var(--paper-edge);
  color: var(--ink);
}
.boundaries .eyebrow {
  color: var(--ink-muted);
}
.boundaries .eyebrow::before {
  background: var(--ochre);
}
.boundaries h2 {
  color: var(--ink);
}
.boundaries__intro {
  margin-bottom: 4rem;
  max-width: 52ch;
}
.boundaries__intro p {
  color: var(--ink-muted);
}
.boundaries__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.boundary {
  padding: 2rem 2.5rem 2rem 0;
  border-top: 1px solid var(--rule);
}
.boundary:nth-child(odd) {
  padding-right: 2.5rem;
}
.boundary:nth-child(even) {
  padding-left: 2.5rem;
  border-left: 1px solid var(--rule);
}
.boundary:nth-last-child(-n+2) {
  border-bottom: 1px solid var(--rule);
}
.boundary h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.5em;
  font-variation-settings: "opsz" 24, "SOFT" 50;
}
.boundary p {
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* =============================================================
   Resource - Engineering North Star callout
   ============================================================= */
.resource__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: center;
  background: var(--paper-edge);
  padding: 4rem 4rem;
  border-radius: 4px;
  border: 1px solid var(--rule);
  position: relative;
}
.resource__inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--ochre);
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}
.resource__label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.resource__label::before {
  content: "";
  display: inline-block;
  width: 1.75rem;
  height: 1px;
  background: var(--ochre);
}
.resource h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  margin-bottom: 1rem;
  max-width: none;
}
.resource p {
  font-size: 1rem;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
}
.resource__cta {
  text-align: right;
}

/* =============================================================
   CTA - final conversion section before footer
   ============================================================= */
.cta {
  background: var(--accent);
  color: var(--paper);
  text-align: left;
  padding: 7rem 0;
}
.cta h2 {
  color: var(--paper);
  margin-bottom: 1rem;
}
.cta p {
  color: var(--ink-on-dark-faded);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 52ch;
}
.cta .eyebrow {
  color: rgba(232, 227, 216, 0.7);
}
.cta .eyebrow::before {
  background: var(--ochre);
}
.cta__buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cta .btn--primary {
  background: var(--paper);
  color: var(--accent);
  border-color: var(--paper);
}
.cta .btn--primary:hover {
  background: var(--paper-edge);
}
.cta .btn--secondary {
  color: var(--paper);
  border-color: var(--paper);
}
.cta .btn--secondary:hover {
  background: var(--paper);
  color: var(--accent);
}

/* =============================================================
   Footer
   ============================================================= */
.foot {
  padding: 4rem 0 3rem;
  background: var(--paper-dark);
  color: var(--ink-on-dark);
  border-top: 1px solid var(--rule-on-dark);
}
.foot__inner {
  max-width: calc(var(--wide) + 2 * var(--doc-margin));
  margin: 0 auto;
  padding: 0 var(--doc-margin);
  display: grid;
  grid-template-columns: 1.7fr repeat(4, 1fr);
  gap: 2.5rem;
  align-items: start;
}
.foot__brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-variation-settings: "opsz" 24, "SOFT" 50;
  color: var(--ink-on-dark);
}
.foot__brand img {
  display: block;
  height: 36px;
  width: auto;
  margin-bottom: 1.1rem;
  opacity: 1;
}
.foot__brand p {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink-on-dark-faded);
  margin-top: 0.6rem;
  max-width: 38ch;
}
.foot__col h5 {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-on-dark-faded);
  margin: 0 0 1rem;
}
.foot__col a {
  display: block;
  font-size: 0.92rem;
  color: var(--ink-on-dark);
  text-decoration: none;
  margin-bottom: 0.45rem;
  transition: color 150ms;
  opacity: 0.85;
}
.foot__col a:hover { color: var(--ink-on-dark); opacity: 1; }
.foot__bottom {
  max-width: calc(var(--wide) + 2 * var(--doc-margin));
  margin: 3rem auto 0;
  padding: 1.5rem var(--doc-margin) 0;
  border-top: 1px solid var(--rule-on-dark);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--ink-on-dark-faded);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* =============================================================
   PAGE HEROES (subpages: capabilities, about, contact)
   Smaller hero than home. Eyebrow + h1 + lede. Centered measure.
   ============================================================= */
.page-hero {
  padding: 6rem 0 5rem;
}
.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  max-width: 22ch;
  margin-bottom: 0.6em;
}
.page-hero__lede {
  font-size: 1.1rem;
  color: var(--ink-muted);
  line-height: 1.65;
  max-width: 58ch;
}

/* Dark variant for subpage heroes (Capabilities, About).
   Marks them as deeper content pages and starts the dark rhythm
   immediately rather than building toward it. */
.page-hero--dark {
  background: var(--paper-dark);
  color: var(--ink-on-dark);
}
.page-hero--dark h1 { color: var(--ink-on-dark); }
.page-hero--dark .page-hero__lede { color: var(--ink-on-dark-faded); }
.page-hero--dark .eyebrow { color: var(--ink-on-dark-faded); }
.page-hero--dark .eyebrow::before { background: var(--ochre); }

/* =============================================================
   CAPABILITIES PAGE
   Four domain sections with rhythm: light, light-edge, dark, light.
   Big serif roman numerals anchor each domain.
   ============================================================= */
.domain {
  padding: 7rem 0;
  position: relative;
}
.domain + .domain {
  border-top: 1px solid var(--rule);
}

/* Domain rhythm: alternate backgrounds for visual cadence */
.domain--edge {
  background: var(--paper-edge);
}
.domain--dark {
  background: var(--paper-dark);
  color: var(--ink-on-dark);
}
.domain--dark .domain__header h2 { color: var(--ink-on-dark); }
.domain--dark .domain__header p { color: var(--ink-on-dark-faded); }
.domain--dark .domain__numeral { color: var(--ochre-soft); opacity: 0.5; }
.domain--dark .capability { border-top-color: var(--rule-on-dark); }
.domain--dark .capability:last-child { border-bottom-color: var(--rule-on-dark); }
.domain--dark .capability__title h3 { color: var(--ink-on-dark); }
.domain--dark .capability__title p { color: var(--ink-on-dark-faded); }
.domain--dark .capability__list-label { color: var(--ochre-soft); }
.domain--dark .capability__list li { color: var(--ink-on-dark); border-top-color: var(--rule-on-dark); }
.domain--dark .capability__list li::before { background: var(--ochre); }

/* Big serif numeral as visual anchor for each domain */
.domain__numeral {
  font-family: var(--serif);
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 300;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--accent);
  opacity: 0.15;
  font-variation-settings: "opsz" 144, "SOFT" 100, "wght" 300;
  font-style: italic;
  margin-bottom: 1.5rem;
  display: block;
  pointer-events: none;
  user-select: none;
}

.domain__header {
  margin-bottom: 4rem;
  max-width: 62ch;
  position: relative;
}

.domain__tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.75rem;
  background: var(--paper);
  border: 1px solid var(--rule-bright);
  border-radius: 2px;
  font-weight: 500;
}
.domain--edge .domain__tag {
  background: var(--paper);
}
.domain--dark .domain__tag {
  color: var(--ochre-soft);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(168, 112, 48, 0.3);
}
.domain__tag--ochre {
  color: var(--ochre);
  border-color: rgba(138, 90, 30, 0.3);
}

.domain__header h2 {
  margin-bottom: 0.6em;
  max-width: 18ch;
}
.domain__header p {
  color: var(--ink-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: none;
}

/* The capability area: a single section showing what we do in this domain */
.capability {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 3rem 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.capability:last-child {
  border-bottom: 1px solid var(--rule);
}
.capability__title h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  font-variation-settings: "opsz" 24, "SOFT" 50;
  margin-bottom: 0.6rem;
}
.capability__title p {
  color: var(--ink-muted);
  font-size: 0.97rem;
  line-height: 1.65;
}
.capability__list-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faded);
  margin-bottom: 1rem;
  display: block;
  font-weight: 500;
}
.capability__list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.capability__list li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink);
  border-top: 1px solid var(--rule);
}
.capability__list li:first-child {
  border-top: none;
  padding-top: 0;
}
.capability__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 0.65rem;
  height: 1px;
  background: var(--accent);
}
.capability__list li:first-child::before {
  top: 0.45rem;
}

/* Domain index navigation - small visual aid showing which domain you're in */
.domain__index {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faded);
  margin-bottom: 2rem;
}
.domain--dark .domain__index { color: var(--ink-on-dark-faded); }
.domain__index-rule {
  flex: 1;
  height: 1px;
  background: var(--rule);
  max-width: 8rem;
}
.domain--dark .domain__index-rule { background: var(--rule-on-dark); }
.domain__index-current {
  color: var(--accent);
  font-weight: 500;
}
.domain--dark .domain__index-current { color: var(--ochre-soft); }

/* =============================================================
   APPROACH PAGE
   How an engagement actually works - the lived experience.
   Numbered phases with substantial prose, plus the four
   fundamentals as a quoted-out moment.
   ============================================================= */

/* Phase section - similar to capability domains but with prose */
.phase {
  padding: 6rem 0;
  position: relative;
}
.phase + .phase {
  border-top: 1px solid var(--rule);
}
.phase--edge { background: var(--paper-edge); }
.phase--dark {
  background: var(--paper-dark);
  color: var(--ink-on-dark);
}
.phase--dark .phase__num { color: var(--ochre-soft); }
.phase--dark .phase__numeral { color: var(--ochre-soft); opacity: 0.4; }
.phase--dark h2 { color: var(--ink-on-dark); }
.phase--dark .phase__lede { color: var(--ink-on-dark-faded); }
.phase--dark .phase__body p { color: var(--ink-on-dark-faded); }
.phase--dark .phase__body strong { color: var(--ink-on-dark); }

.phase__index {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faded);
  margin-bottom: 2rem;
}
.phase--dark .phase__index { color: var(--ink-on-dark-faded); }
.phase__index-current {
  color: var(--accent);
  font-weight: 500;
}
.phase--dark .phase__index-current { color: var(--ochre-soft); }
.phase__index-rule {
  flex: 1;
  height: 1px;
  background: var(--rule);
  max-width: 8rem;
}
.phase--dark .phase__index-rule { background: var(--rule-on-dark); }

.phase__numeral {
  font-family: var(--serif);
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 300;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--accent);
  opacity: 0.15;
  font-variation-settings: "opsz" 144, "SOFT" 100, "wght" 300;
  font-style: italic;
  margin-bottom: 1.5rem;
  display: block;
  pointer-events: none;
  user-select: none;
}

.phase__header {
  margin-bottom: 3rem;
  max-width: 60ch;
}
.phase__header h2 {
  margin-bottom: 0.5em;
  max-width: 18ch;
}
.phase__lede {
  color: var(--ink-muted);
  font-size: 1.1rem;
  line-height: 1.65;
  max-width: none;
}

.phase__body {
  max-width: 62ch;
}
.phase__body p {
  margin-bottom: 1.4em;
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: none;
}
.phase__body p:last-child { margin-bottom: 0; }

/* Pull-out moment within a phase: "Power. Mass. Link. Timing." */
.fundamentals {
  margin: 4rem 0;
  padding: 3.5rem 3rem;
  background: var(--paper-edge);
  border-left: 3px solid var(--ochre);
  text-align: center;
  max-width: none;
}
.phase--edge .fundamentals { background: var(--paper); }
.phase--dark .fundamentals {
  background: rgba(255, 255, 255, 0.03);
  border-left-color: var(--ochre);
}
.fundamentals__words {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  margin-bottom: 1.5rem;
  display: block;
}
.phase--dark .fundamentals__words {
  color: var(--ochre);
}
.fundamentals__words em {
  font-style: italic;
}
.fundamentals__caption {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--ink-muted);
  font-variation-settings: "opsz" 24, "SOFT" 70;
  line-height: 1.6;
  max-width: 50ch;
  margin: 0 auto 1.5rem;
}
.phase--dark .fundamentals__caption { color: var(--ink-on-dark-faded); }
.fundamentals__link {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ochre);
  text-decoration: none;
  border-bottom: 1px solid var(--ochre);
  padding-bottom: 0.15em;
}
.fundamentals__link:hover {
  color: var(--ochre-soft);
}

/* Confidentiality note - small section before footer */
.confidentiality {
  padding: 5rem 0;
  background: var(--paper-edge);
  text-align: center;
}
.confidentiality__inner {
  max-width: 56ch;
  margin: 0 auto;
  padding: 0 var(--doc-margin);
}
.confidentiality h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  font-variation-settings: "opsz" 24, "SOFT" 50;
  margin-bottom: 0.6em;
  color: var(--ink);
}
.confidentiality p {
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: none;
}
.confidentiality__rule {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 1.5rem;
}
.confidentiality__rule::before,
.confidentiality__rule::after {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  background: var(--ochre);
}

/* =============================================================
   STUDIES PAGE
   Research catalog format - tighter entries, uniform treatment,
   scannable. Each study describes a problem-shape the practice
   has experience with, generically enough to apply to many
   engagements rather than to claim any one past project.
   ============================================================= */
.studies__intro {
  padding: 5rem 0 4rem;
  background: var(--paper-edge);
  border-bottom: 1px solid var(--rule);
}
.studies__intro-inner {
  max-width: calc(var(--measure) + 2 * var(--doc-margin));
  margin: 0 auto;
  padding: 0 var(--doc-margin);
}
.studies__intro p {
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink-muted);
  font-variation-settings: "opsz" 24, "SOFT" 50;
  font-style: italic;
  max-width: 60ch;
}
.studies__intro p strong {
  font-style: normal;
  color: var(--ink);
  font-weight: 500;
}

.studies__list {
  padding: 5rem 0;
}

.study {
  padding: 3.5rem 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}
.study:last-child {
  border-bottom: 1px solid var(--rule);
}

.study__num {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faded);
  margin-bottom: 0.85rem;
  display: block;
  font-weight: 500;
}
.study__tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 1.2rem;
  padding: 0.35rem 0.75rem;
  background: var(--paper-edge);
  border: 1px solid var(--rule-bright);
  border-radius: 2px;
  font-weight: 500;
}
.study__tag--ochre {
  color: var(--ochre);
  border-color: rgba(138, 90, 30, 0.3);
}
.study__title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  font-variation-settings: "opsz" 24, "SOFT" 50;
}

.study__body p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-muted);
  margin-bottom: 1.2em;
  max-width: 62ch;
}
.study__body p:last-of-type {
  margin-bottom: 1.5em;
}
.study__body strong {
  color: var(--ink);
  font-weight: 500;
}

.study__methods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.study__methods-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faded);
  width: 100%;
  margin-bottom: 0.4rem;
}
.study__method {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  padding: 0.3rem 0.7rem;
  background: var(--paper-edge);
  border-radius: 2px;
  border: 1px solid var(--rule);
}

/* =============================================================
   SPECTRUM section (on About page)
   Twenty-five years across the spectrum. Horizontal taxonomy,
   left-to-right hardware-to-software. No ratings, no numbers,
   just typeset breadth as a designed reference.
   ============================================================= */
.spectrum {
  padding: 7rem 0;
  background: var(--paper-edge);
}
.spectrum__intro {
  max-width: 60ch;
  margin: 0 0 4rem;
}
.spectrum__intro p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-muted);
}

.spectrum__diagram {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 3rem 2.5rem;
}

.spectrum__row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.spectrum__group {
  padding: 0 1.25rem;
  border-right: 1px dashed var(--rule);
}
.spectrum__group:first-child {
  padding-left: 0;
}
.spectrum__group:last-child {
  border-right: none;
  padding-right: 0;
}

.spectrum__group-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 1.4rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--ochre);
  display: block;
  font-weight: 500;
}

.spectrum__items {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.spectrum__item {
  font-family: var(--sans);
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--ink);
  padding: 0.25rem 0;
}

.spectrum__bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faded);
}
.spectrum__bottom span:first-child::before {
  content: "\2190  ";
  color: var(--accent);
}
.spectrum__bottom span:last-child::after {
  content: "  \2192";
  color: var(--accent);
}

/* Founder voice block - feels like a letter or memo */
.founder {
  padding: 7rem 0;
  background: var(--paper-edge);
}
.founder__inner {
  max-width: calc(var(--reading) + 2 * var(--doc-margin));
  margin: 0 auto;
  padding: 0 var(--doc-margin);
}
.founder__intro {
  margin-bottom: 3rem;
}
.founder__intro h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.5rem);
}
.founder__body {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--ink);
  font-variation-settings: "opsz" 24, "SOFT" 50;
}
.founder__body p {
  max-width: none;
  margin-bottom: 1.4em;
}
.founder__body p:last-child {
  margin-bottom: 0;
}
.founder__sig {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-bright);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faded);
}
.founder__sig strong {
  color: var(--ink);
  font-weight: 500;
  font-style: normal;
}

/* Principles section - dark for rhythm contrast against the light pages around it */
.principles {
  background: var(--paper-dark);
  color: var(--ink-on-dark);
  padding: 7rem 0;
}
.principles .eyebrow { color: var(--ink-on-dark-faded); }
.principles .eyebrow::before { background: var(--ochre); }
.principles h2 { color: var(--ink-on-dark); }
.principles__intro {
  margin-bottom: 4rem;
  max-width: 52ch;
}
.principles__intro p { color: var(--ink-on-dark-faded); }
.principles__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--rule-on-dark);
}
.principle {
  padding: 3rem 2.5rem 3rem 0;
  border-bottom: 1px solid var(--rule-on-dark);
  border-right: 1px solid var(--rule-on-dark);
  position: relative;
}
.principle:nth-child(2n) {
  padding-left: 2.5rem;
  padding-right: 0;
  border-right: none;
}
.principle__numeral {
  font-family: var(--serif);
  font-size: 4.5rem;
  font-weight: 300;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--ochre-soft);
  opacity: 0.4;
  font-variation-settings: "opsz" 144, "SOFT" 100, "wght" 300;
  font-style: italic;
  margin-bottom: 1.5rem;
  display: block;
  pointer-events: none;
  user-select: none;
}
.principle__num {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ochre-soft);
  margin-bottom: 1rem;
  display: block;
  font-weight: 500;
}
.principle h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  font-variation-settings: "opsz" 24, "SOFT" 50;
  margin-bottom: 0.6em;
  color: var(--ink-on-dark);
}
.principle p {
  color: var(--ink-on-dark-faded);
  font-size: 0.97rem;
  line-height: 1.65;
}

/* Structure section - shows the InFuze family */
.structure__intro {
  margin-bottom: 4rem;
  max-width: 52ch;
}
.structure__diagram {
  font-family: var(--mono);
  font-size: 0.92rem;
  line-height: 2;
  background: var(--paper-edge);
  padding: 2.5rem 3rem;
  border-radius: 2px;
  border: 1px solid var(--rule);
  margin-bottom: 3rem;
}
.structure__diagram-row {
  display: block;
}
.structure__diagram-row strong {
  color: var(--accent);
  font-weight: 500;
}
.structure__diagram-row em {
  color: var(--ink-faded);
  font-style: normal;
  font-size: 0.85em;
  margin-left: 0.5rem;
}
.structure__diagram-row .indent {
  color: var(--ink-faded);
}
.structure__diagram-row--here {
  position: relative;
  background: rgba(138, 90, 30, 0.06);
  margin: 0 -1rem;
  padding: 0 1rem;
  border-left: 2px solid var(--ochre);
  display: block;
}
.structure__diagram-row--here strong {
  color: var(--ochre);
}
.structure__diagram-row--here em {
  color: var(--ochre-soft);
}

.structure__prose {
  max-width: 60ch;
  margin-bottom: 4rem;
}
.structure__prose p {
  font-size: 1.02rem;
  color: var(--ink-muted);
  line-height: 1.7;
  margin-bottom: 1.3em;
}

.structure__siblings {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-top: 3rem;
  border-top: 1px solid var(--rule);
}
.sibling {
  /* Each sibling company in the InFuze family */
}
.sibling__name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  font-variation-settings: "opsz" 24, "SOFT" 50;
  margin-bottom: 0.3em;
}
.sibling__what {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faded);
  margin-bottom: 0.7em;
  display: block;
}
.sibling__desc {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.55;
  margin-bottom: 0.8em;
}
.sibling__link {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.1em;
}

/* =============================================================
   CONTACT PAGE
   ============================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 5rem;
  align-items: start;
}

/* Left: what to bring */
.contact-prep h2 {
  margin-bottom: 0.7em;
}
.contact-prep__intro {
  color: var(--ink-muted);
  font-size: 1.02rem;
  margin-bottom: 3rem;
  max-width: 52ch;
}
.prep-item {
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 5ch 1fr;
  gap: 1.5rem;
  align-items: start;
}
.prep-item:last-child {
  border-bottom: 1px solid var(--rule);
}
.prep-item__num {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faded);
  padding-top: 0.3rem;
}
.prep-item h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  font-variation-settings: "opsz" 24, "SOFT" 50;
  margin-bottom: 0.4em;
}
.prep-item p {
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Right: contact methods */
.contact-methods {
  position: sticky;
  top: 6rem;
}
.contact-methods h2 {
  margin-bottom: 0.7em;
}
.contact-methods__intro {
  color: var(--ink-muted);
  font-size: 1.02rem;
  margin-bottom: 2.5rem;
}
.method {
  display: block;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  transition: background 150ms;
}
.method:last-of-type {
  border-bottom: 1px solid var(--rule);
}
.method__label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faded);
  display: block;
  margin-bottom: 0.4em;
}
.method__value {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ink);
  font-variation-settings: "opsz" 24, "SOFT" 50;
}
.method:hover .method__value {
  color: var(--accent);
}

.contact-methods__next {
  margin-top: 2.5rem;
  padding: 1.75rem;
  background: var(--paper-edge);
  border-left: 2px solid var(--ochre);
  border-radius: 2px;
}
.contact-methods__next h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  font-variation-settings: "opsz" 24, "SOFT" 50;
  margin-bottom: 0.5em;
}
.contact-methods__next p {
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; gap: 3rem; align-items: start; }
  .engagement__steps { grid-template-columns: repeat(2, 1fr); }
  .engagement__step { border-bottom: 1px solid var(--rule); }
  .engagement__step:nth-child(2) { border-right: none; }
  .resource__inner { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem; }
  .resource__cta { text-align: left; }
  .capability { grid-template-columns: 1fr; gap: 1.5rem; padding: 2.5rem 0; }
  .principles__list { grid-template-columns: 1fr; }
  .principle { padding: 2rem 0 !important; border-right: none !important; }
  .structure__siblings { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 4rem; }
  .contact-methods { position: static; }
}

@media (max-width: 760px) {
  .nav__brand em { display: none; }
  .problem { grid-template-columns: 1fr; gap: 1.25rem; padding: 2rem 0; }
  .problem__num { padding-top: 0; }
  .engagement__steps { grid-template-columns: 1fr; }
  .engagement__step { border-right: none; padding-right: 0; padding-left: 0 !important; }
  .boundaries__list { grid-template-columns: 1fr; }
  .boundary { padding: 1.5rem 0 !important; border-left: none !important; }
  .quote__mark { font-size: 5rem; top: -1.5rem; left: -0.5rem; }
  .foot__inner { grid-template-columns: 1fr 1fr; }
  section { padding: 4rem 0; }
  .domain { padding: 4rem 0; }
  .founder { padding: 4rem 0; }
  .phase { padding: 4rem 0; }
  .fundamentals { padding: 2rem 1.5rem; margin: 2.5rem 0; }
  .study { grid-template-columns: 1fr; gap: 1.5rem; padding: 2.5rem 0; }
  .spectrum__row { grid-template-columns: 1fr; gap: 2rem; }
  .spectrum__group { padding: 0 0 1.5rem 0; border-right: none; border-bottom: 1px dashed var(--rule); }
  .spectrum__group:last-child { border-bottom: none; padding-bottom: 0; }
  .spectrum__diagram { padding: 2rem 1.5rem; }
  .spectrum { padding: 4rem 0; }
  .structure__siblings { grid-template-columns: 1fr; gap: 2rem; }
  .structure__diagram { padding: 1.5rem; font-size: 0.82rem; }
  .prep-item { grid-template-columns: 1fr; gap: 0.5rem; padding: 1.5rem 0; }
  .page-hero { padding: 4rem 0 3rem; }
  .nav__brand { font-size: 1.1rem; }
}

/* =============================================================
   MOBILE NAV - hamburger menu, slide-in panel from the right.
   Activates at 820px so we have a clean handoff from the inline
   desktop nav (no awkward middle ground where nav items wrap).
   ============================================================= */
@media (max-width: 820px) {

  /* Show the hamburger toggle */
  .nav__toggle {
    display: block;
  }

  /* The nav inner: brand + toggle (no longer space-between with a list) */
  .nav__inner {
    align-items: center;
  }

  /* Transform the link list into a slide-in drawer */
  .nav__links {
    /* Layout */
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(380px, 85vw);
    height: 100vh;        /* fallback */
    height: 100dvh;       /* respects iOS Safari address-bar collapse */
    z-index: 101;

    /* Surface */
    background: var(--paper);
    border-left: 1px solid var(--rule);
    box-shadow: -8px 0 32px rgba(19, 21, 25, 0.08);

    /* Content layout */
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 5.5rem 2rem 2.5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    /* Hidden by default - slide off-screen to the right */
    transform: translateX(100%);
    transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Reset list styling */
    margin: 0;
    list-style: none;
  }

  .nav__links.is-open {
    transform: translateX(0);
  }

  /* Each menu item gets its own row */
  .nav__links li {
    display: block;
    width: 100%;
  }

  /* Links become large tappable rows */
  .nav__links a {
    display: block;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    padding: 1.1rem 0;
    color: var(--ink-muted);
    border-bottom: 1px solid var(--rule);
    /* Reset desktop's positioned underline */
    padding-bottom: 1.1rem;
  }
  .nav__links a:hover,
  .nav__links a:active {
    color: var(--ink);
  }

  /* Active-page underline on mobile: ochre bar on the LEFT side
     (the underline-below pattern fights the row borders) */
  .nav__links a.is-active {
    color: var(--ink);
    padding-left: 1rem;
    margin-left: -1rem;
    border-left: 2px solid var(--ochre);
  }
  .nav__links a.is-active::after {
    display: none;  /* override the desktop underline pseudo-element */
  }

  /* CTA in the panel: separated from the list, filled box, full-width feel */
  .nav__cta {
    display: block;
    text-align: center;
    margin-top: 2rem;
    padding: 1rem 1.25rem;
    font-size: 0.82rem;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: var(--paper) !important;
    border-radius: 2px;
  }
  .nav__cta:hover {
    background: var(--accent-soft);
    color: var(--paper) !important;
  }
  /* The CTA's parent <li> shouldn't have a row border under it */
  .nav__links li:has(.nav__cta) {
    border-bottom: none;
  }
  .nav__links a.nav__cta {
    border-bottom: 1px solid var(--accent);  /* visual continuity */
  }
  /* On mobile, show "Start a conversation" full-text in the panel */
  .nav__cta-full { display: inline; }
  .nav__cta-short { display: none; }

  /* Body scroll lock when menu open (set by JS via class on body) */
  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  :root { --doc-margin: 1.25rem; }

  /* Hero: tighten dramatically for small phones.
     The clamp() floors of 3rem (48px) for h1 are too big at 375px
     viewport width - the headline ends up taking 5 lines and feels
     cramped. Bring it down to ~2.4rem so it sits in 3 lines. */
  .hero { padding: 4.5rem 0 3.5rem; }
  .hero__grid { gap: 2.75rem; }
  h1 { font-size: 2.4rem; line-height: 1.1; }
  .hero__lede { font-size: 1.05rem; margin-bottom: 2rem; }
  .hero__cred-mark { width: 4rem; }

  /* Buttons go full-width on the smallest screens.
     Tighter copy, easier to tap, no awkward wrapping. */
  .hero__cta { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .hero__cta .btn { justify-content: center; padding: 0.95rem 1.25rem; }
  .cta__buttons { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .cta__buttons .btn { justify-content: center; padding: 0.95rem 1.25rem; }

  /* Section padding tightens on phones - 4rem felt about right at 760px,
     but on a 375px viewport that's still a lot of vertical space. */
  section { padding: 3rem 0; }
  .quote { padding: 3rem 0; }
  .domain { padding: 3rem 0; }
  .founder { padding: 3rem 0; }
  .phase { padding: 3rem 0; }
  .spectrum { padding: 3rem 0; }
  .page-hero { padding: 3rem 0 2rem; }

  /* Section h2 doesn't need to be quite as large */
  h2 { font-size: 1.7rem; line-height: 1.2; }

  /* Pull-quote: gigantic opening glyph wants to scale down too */
  .quote__mark { font-size: 4rem; top: -1rem; left: -0.25rem; }
  .quote__text { font-size: 1.25rem; }

  /* Footer collapses to a single column */
  .foot__inner { grid-template-columns: 1fr; gap: 2rem; }
  .foot__brand img { height: 32px; }

  /* Page-hero h1 (used on subpages) */
  .page-hero h1 { font-size: 2.2rem; }
  .page-hero__lede { font-size: 1.05rem; }

  /* Resource block (the big "Read the guide" CTA on home) */
  .resource__inner { padding: 2rem !important; }

  /* Problems: tighten the gap between number and content */
  .problem { gap: 0.75rem !important; padding: 1.5rem 0 !important; }
  .problem__num { font-size: 0.65rem; }

  /* Contact-page method tiles: ensure tap targets are big enough */
  .method { padding: 1rem 0; }
  .method__value { font-size: 1.1rem; }
}

/* No-JS fallback: hide the toggle (it would do nothing), show the
   nav__links inline as best we can, hidden behind a media query that
   only triggers without the script. */
.no-js .nav__toggle {
  display: none !important;
}
.no-js .nav__overlay {
  display: none !important;
}
@media (max-width: 820px) {
  .no-js .nav__links {
    position: static;
    transform: none;
    width: auto;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .no-js .nav__links a {
    border-bottom: none;
    padding: 0.5rem 0;
    font-size: 0.7rem;
  }
}
