
.research-area { margin: 1.75rem 0 2.5rem; }
.research-area-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.research-area-heading h3 { font-size: 1.2rem; margin: 0; }
.research-scroll-controls { display: flex; gap: .5rem; flex-shrink: 0; }
.research-scroll-controls[hidden] { display: none; }
.research-scroll-controls button { width: 34px; height: 34px; border: 1px solid #ccd5df; border-radius: 50%; background: white; color: #285d89; cursor: pointer; }
.research-scroll-controls button:disabled { opacity: .35; cursor: default; }
.research-scroll-controls button:focus-visible, .research-paper-grid:focus-visible { outline: 2px solid #2b6cb0; outline-offset: 3px; }
.research-paper-grid { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 1.25rem) / 2); gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: .75rem; scrollbar-width: thin; scrollbar-color: #99a9ba #edf1f5; }
.research-paper-grid > .research-paper { min-width: 0; scroll-snap-align: start; }
.research-paper { border: 1px solid #e0e5eb; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.research-paper > img { display: block; width: 100%; height: 190px; object-fit: contain; padding: 16px; margin: 0; border: 0; background: #fafbfc; }
.mek1-poses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; height: 190px; padding: 16px; background: #fafbfc; }
.mek1-poses figure { margin: 0; min-width: 0; display: flex; flex-direction: column; }
.mek1-poses a { display: block; height: 136px; }
.mek1-poses img { display: block; width: 100%; height: 100%; object-fit: contain; border: 0; margin: 0; }
.mek1-poses figcaption { font-size: .75rem; line-height: 18px; text-align: center; margin: 4px 0 0; color: #596578; }
.research-paper-body { padding: 1.1rem 1.2rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.research-paper-meta { font-size: .8rem; color: #596578; margin: 0 0 .6rem; }
.research-paper h4 { font-size: 1.13rem; line-height: 1.35; margin: 0 0 .75rem; }
.research-paper-body > p:not(.research-paper-meta) { font-size: .94rem; line-height: 1.6; margin-bottom: 1rem; }
.research-paper-links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: auto; font-size: .9rem; }
.research-paper-links a:focus-visible { outline: 2px solid #2b6cb0; outline-offset: 4px; }
@media (max-width: 700px) {
  .research-paper-grid { grid-auto-columns: 90%; gap: .75rem; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
}
@media (prefers-reduced-motion: reduce) { .research-paper-grid { scroll-behavior: auto; } }

.client-marquee {
  position: relative;
  margin: 1.25rem 0 2rem;
  padding-bottom: 1.5rem;
}
.client-logo-window {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 24px, black calc(100% - 24px), transparent);
}
.client-logo-track {
  display: flex;
  width: max-content;
  animation: client-logos-right 40s linear infinite;
}
.client-logo-group {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-right: 2rem;
  flex-shrink: 0;
}
.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 240px;
  width: 240px;
  height: 152px;
  text-decoration: none;
  border-radius: 4px;
}
.client-logo img {
  border: 0;
  width: 100%;
  height: 124px;
  object-fit: contain;
}
@font-face {
  font-family: "Aligned Alice";
  src: url("/static/img/clients/aligned-alice.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
.client-logo--aligned {
  font-family: "Aligned Alice", serif;
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #25286a;
}
@font-face {
  font-family: "Fulcrum Newsreader";
  src: url("/static/img/clients/fulcrum-newsreader.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
.client-logo--fulcrum {
  font-family: "Fulcrum Newsreader", Georgia, serif;
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -.02em;
  color: #172033;
}
.client-logo--fulcrum .fulcrum-dot { color: #c4a962; }
/* Normalize the visible artwork, preserving each original image and aspect ratio. */
.client-logo-viewport { display: block; position: relative; overflow: hidden; }
.client-logo-viewport img { position: absolute; max-width: none; height: auto; }
.client-logo--mercor .client-logo-viewport { width: 220px; aspect-ratio: 1500 / 286; }
.client-logo--mercor img { width: 132%; left: -16%; top: -69.9301%; }
.client-logo--vivamed .client-logo-viewport { width: 220px; aspect-ratio: 1182 / 256; }
.client-logo--vivamed img { width: 119.3739%; left: -9.7293%; top: -8.5938%; }
.client-logo--branca .client-logo-viewport { width: 172px; aspect-ratio: 1811 / 1305; }
.client-logo--branca img { width: 141.3584%; left: -21.0381%; top: -6.8966%; }
.client-logo--mag img { width: 164px; height: 108px; }
.client-logo--epiphany img { width: 220px; height: auto; }
.client-logo--algonix .client-logo-viewport { width: 204px; aspect-ratio: 268 / 162; }
.client-logo--algonix img { width: 111.9403%; left: -5.9701%; top: -43.2099%; }
.client-logo--neon { flex-direction: column; gap: 12px; color: #172033; }
.client-logo--neon img { width: 228px; height: auto; }
.client-logo--neon span { font-size: 15px; font-weight: 500; letter-spacing: .02em; }
.client-logo--hedi { gap: 10px; color: #172033; }
.client-logo--hedi img { width: 50px; height: 50px; }
.client-logo--hedi span {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -1px;
}
.client-logo:focus-visible { outline: 2px solid #2b6cb0; outline-offset: -2px; }
.client-marquee:hover .client-logo-track,
.client-marquee:focus-within .client-logo-track,
.client-marquee[data-paused="true"] .client-logo-track { animation-play-state: paused; }
.client-motion-toggle {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 16px;
  cursor: pointer;
}
.client-motion-toggle:hover, .client-motion-toggle:focus-visible { color: #2b6cb0; }
@keyframes client-logos-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
@media (max-width: 600px) {
  .client-logo-group { gap: 1.5rem; padding-right: 1.5rem; }
  .client-logo { width: 220px; flex-basis: 220px; }
  .client-logo--mercor .client-logo-viewport,
  .client-logo--vivamed .client-logo-viewport { width: 204px; }
  .client-logo--neon img { width: 208px; }
  .client-logo--epiphany img { width: 208px; }
  .client-logo--hedi span { font-size: 40px; }
  .client-logo-track { animation-duration: 36s; }
}
@media (prefers-reduced-motion: reduce) {
  .client-logo-track { animation: none; transform: none; }
  .client-logo-group[aria-hidden="true"] { display: none; }
  .client-logo-window { overflow-x: auto; mask-image: none; }
  .client-motion-toggle { display: none; }
}


/* Dedicated landing-page layout. This stylesheet is included only here. */
body.consulting-page { --ink: #2d2923; --muted: #6b6256; --accent: #80643d; --accent-fill: #c5ae88; --line: #e2d9ca; --wash: #f5f0e7; color: var(--ink); background: #fff; }
body.consulting-page #quarto-draft-alert, body.consulting-page #title-block-header { display: none; }
body.consulting-page #quarto-content { display: block; padding: 0; }
body.consulting-page main.content { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.consulting-landing { font-family: var(--bs-body-font-family); font-size: 16px; line-height: 1.65; }
.consulting-landing * { box-sizing: border-box; }
.consulting-landing [hidden] { display: none !important; }
.consulting-landing h1, .consulting-landing h2, .consulting-landing h3 { color: var(--ink); font-weight: 550; letter-spacing: -.035em; border: 0; padding: 0; }
.consulting-landing h2 { margin: 0 0 18px; font-size: 34px; line-height: 1.15; }
.consulting-landing a:not(.client-logo) { color: var(--accent); text-underline-offset: 4px; }
.consulting-landing :is(a,button,input,select,textarea):focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.consulting-landing section[id] { scroll-margin-top: 110px; }
.consulting-nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; position: sticky; top: 0; z-index: 20; background: #fff; padding: 10px 0; border-bottom: 1px solid var(--line); }
.consulting-brand { display: inline-flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.consulting-brand strong { color: var(--ink); font-size: 18px; font-weight: 600; }
.consulting-brand span { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.consulting-nav nav { display: flex; gap: 30px; font-size: 14px; }
.consulting-nav nav a { text-decoration: none; }
.consulting-hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 54px; align-items: center; padding: 58px 0 42px; }
.consulting-intro { padding: 0 0 24px; }
.consulting-eyebrow { color: var(--accent); font-size: 11px; font-weight: 650; letter-spacing: .11em; text-transform: uppercase; margin-bottom: 22px; }
.consulting-intro h1 { font-size: clamp(36px, 3.8vw, 51px); line-height: 1.12; margin: 0 0 28px; }
.consulting-intro p:not(.consulting-eyebrow) { color: var(--muted); }
.consulting-intro .consulting-lead { font-size: 19px; line-height: 1.6; color: var(--ink); margin-bottom: 20px; }
.consulting-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 30px; font-size: 14px; }
.consulting-landing a.consulting-button { background: var(--accent-fill); color: var(--ink); text-decoration: none; padding: 13px 19px; border-radius: 6px; }
.consulting-button span { padding-left: 12px; }
.consulting-text-link { text-decoration: none; }
.science-showcase { min-width: 0; border: 1px solid #ded1bd; border-radius: 14px; padding: 22px; box-shadow: 0 15px 45px #59432310; background: #faf7f1; }
.showcase-label { text-transform: uppercase; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .12em; margin: 0 0 16px; }
.demo-tabs { display: flex; border-bottom: 1px solid var(--line); margin: 0 0 20px; gap: 8px; }
.demo-tabs button { border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 0 10px 11px; font-size: 12px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.demo-tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 650; }
.demo-panel h2 { font-size: 22px; line-height: 1.25; margin: 0 0 6px; letter-spacing: -.025em; }
.demo-deck { color: var(--muted); font-size: 12px; margin-bottom: 12px; }
.demo-stage { height: 280px; position: relative; background: white; border: 1px solid #e9e1d5; border-radius: 7px; overflow: hidden; }
.demo-stage img { width: 100%; height: 100%; object-fit: contain; margin: 0; border: 0; }
.pose-stage img { padding: 8px 20px; }
.stage-tag { position: absolute; bottom: 10px; left: 12px; background: #f0e7d8; color: var(--accent); border: 1px solid var(--line); padding: 2px 10px; font-size: 11px; border-radius: 20px; }
.demo-stage svg { width: 100%; height: 100%; display: block; }
.demo-controls { display: flex; align-items: center; gap: 12px; margin: 12px 0; font-size: 12px; }
.segmented { display: flex; gap: 3px; border-radius: 6px; padding: 3px; background: #eee5d7; }
.segmented button { border: 0; padding: 5px 14px; border-radius: 4px; color: var(--muted); background: transparent; cursor: pointer; font-size: 12px; }
.segmented button[aria-pressed="true"] { background: white; color: var(--accent); box-shadow: 0 1px 3px #5943231a; }
.control-hint { margin-left: auto; color: var(--muted); font-size: 11px; }
.demo-controls select { border: 1px solid var(--line); border-radius: 5px; padding: 5px 24px 5px 8px; color: var(--ink); background: white; }
.demo-reading { font-size: 12px; line-height: 1.6; margin: 14px 0 10px; color: var(--ink); }
.demo-contribution { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 0 0 10px; }
.demo-source { font-size: 11px; text-decoration: none; }
.clients-section { margin: 0 0 65px; }
.section-overline { display: flex; gap: 15px; align-items: baseline; }
.section-overline h2 { font-size: clamp(26px, 2.4vw, 30px); font-weight: 550; line-height: 1.2; letter-spacing: 0; margin: 0; }
.section-overline p { color: var(--muted); font-size: 12px; margin: 0; }
.client-marquee { margin: 10px 0 0; }
.section-heading { max-width: 660px; margin-bottom: 34px; }
.section-heading .consulting-eyebrow { margin-bottom: 15px; }
.section-heading > p:last-child { color: var(--muted); margin: 0; }
.capabilities-section { margin: 0 0 90px; }
.capability-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.capability-grid article { border: 1px solid var(--line); border-radius: 8px; padding: 27px; }
.capability-number { color: var(--accent); font-size: 10px; letter-spacing: .1em; }
.capability-grid h3 { font-size: 22px; margin: 13px 0 14px; }
.capability-grid p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.capability-grid p.capability-deliverable { color: var(--accent); font-size: 12px; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.research-section { margin-bottom: 90px; }
.research-area { margin-bottom: 36px; }
.research-area-heading h3 { font-size: 18px; font-weight: 550; letter-spacing: -.015em; }
.research-paper { border-color: var(--line); }
.research-paper-grid { scrollbar-color: #c5ae88 #f5f0e7; }
.research-paper > img, .mek1-poses { background: #faf7f1; }
.research-paper-body > p:not(.research-paper-meta) { font-size: 14px; color: var(--muted); }
.research-paper h4 { font-size: 20px; font-weight: 550; }
.research-paper-meta { font-size: 11px; }
.research-paper-links { font-size: 12px; }
.research-scroll-controls button { color: var(--accent); border-color: var(--line); }
.contact-section { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; padding: 42px; border-radius: 12px; background: var(--wash); margin-bottom: 40px; }
.contact-intro p:not(.consulting-eyebrow) { font-size: 14px; color: var(--muted); }
.contact-intro .contact-prompt { padding-top: 12px; }
.consulting-form { max-width: 100%; font-size: 12px; }
.consulting-form input:not([type="checkbox"]), .consulting-form select, .consulting-form textarea { border: 1px solid #daceba; border-radius: 5px; background: white; font: inherit; color: var(--ink); }
.consulting-form input[type="checkbox"] { accent-color: var(--accent); }
.consulting-form #submitBtn { background: var(--accent-fill) !important; color: var(--ink) !important; font-size: 14px; }
.consulting-footer { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 11px; padding: 10px 0 30px; }
@media (max-width: 1000px) { .consulting-hero { gap: 28px; }.consulting-intro h1 { font-size: 39px; }.demo-tabs { gap: 2px; }.demo-tabs button { padding-inline: 5px; }.contact-section { gap: 35px; padding: 30px; } }
@media (max-width: 760px) {
  body.consulting-page main.content { padding: 0 22px; }
  .consulting-nav { align-items: center; gap: 14px; padding: 8px 0; }
  .consulting-nav nav { gap: 13px; font-size: 11px; padding-top: 3px; }
  .consulting-brand strong { font-size: 14px; }.consulting-brand span { font-size: 10px; }
  .consulting-hero { grid-template-columns: 1fr; gap: 24px; padding: 36px 0 32px; }
  .consulting-intro { padding: 0; }.consulting-intro h1 { font-size: 40px; max-width: 580px; }
  .consulting-intro .consulting-lead { font-size: 18px; }.consulting-intro p { font-size: 15px; }
  .consulting-actions { gap: 20px; margin: 25px 0 5px; }.consulting-eyebrow { font-size: 10px; }
  .science-showcase { padding: 18px; }.demo-stage { height: 280px; }.demo-tabs button { flex: 1; font-size: 12px; }
  .section-overline { display: block; }.section-overline p { margin-top: 5px; }
  .clients-section { margin-bottom: 44px; }.capabilities-section { margin-bottom: 55px; }
  .section-heading h2, .contact-intro h2 { font-size: 30px; }.section-heading > p:last-child { font-size: 15px; }
  .capability-grid { grid-template-columns: 1fr; gap: 12px; }.capability-grid article { padding: 24px; }
  .research-section { margin-bottom: 50px; }.research-area-heading h3 { font-size: 16px; }
  .contact-section { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .consulting-footer { flex-wrap: wrap; gap: 6px; }
}
@media (max-width: 390px) { .consulting-intro h1 { font-size: 35px; }.science-showcase { padding: 14px; }.control-hint { display: none; }.demo-tabs button { font-size: 11px; }.cavity-values { font-size: 9px; } }
@media (prefers-reduced-motion: reduce) { .consulting-landing * { scroll-behavior: auto !important; } }
.figure-units { font-size: 10px; color: var(--muted); text-align: center; margin: 5px 0 0; }

/* Inherit the personal site’s typography; client wordmarks retain their brand fonts. */
.consulting-landing :is(h1,h2,h3,h4,button,input,select,textarea) { font-family: inherit; }
.consulting-landing :is(h1,h2,h3) { letter-spacing: normal; }
.consulting-landing .client-motion-toggle { color: var(--muted); }
.consulting-landing .client-motion-toggle:hover { color: var(--accent); }

/* Actual work products anchor each capability; retain scientific and brand colors. */
.capability-grid article { display: flex; flex-direction: column; }
.capability-evidence { margin: 4px 0 20px; }
.capability-evidence > a { display: flex; align-items: center; justify-content: center; height: 260px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.capability-evidence img, .capability-evidence svg { display: block; width: 100%; height: 100%; object-fit: contain; border: 0; margin: 0; }
.capability-evidence figcaption { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 12px 0 0; }
.evidence-kind { display: block; color: var(--accent); font-weight: 600; margin-bottom: 4px; }
.capability-grid p.capability-deliverable { margin-top: auto; }
@media (max-width: 760px) { .capability-evidence > a { height: 235px; padding: 8px; } }

.capability-grid .capability-basic-science { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.capability-basic-science .capability-science-copy { display: flex; flex-direction: column; }
.capability-basic-science .capability-evidence { margin: 0; }
.capability-basic-science video { display: block; width: 100%; height: 280px; object-fit: contain; background: white; border: 1px solid var(--line); border-radius: 6px; }
@media (max-width: 760px) { .capability-grid .capability-basic-science { grid-template-columns: 1fr; gap: 22px; }.capability-basic-science video { height: 260px; } }

/* Additional real calculations stay in one swipeable row. Playback is opt-in. */
.consulting-landing .work-examples { margin: 42px 0 0; }
.consulting-landing .work-examples h3 { font-size: 24px; }
.work-examples-intro { color: var(--muted); font-size: 14px; max-width: 700px; margin: 0 0 22px; }
.work-example > video, .work-example-image { display: block; width: 100%; aspect-ratio: 5 / 3; background: #fcfaf6; object-fit: contain; }
.work-example-image img { display: block; width: 100%; height: 100%; object-fit: contain; border: 0; margin: 0; }
.work-example video:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.work-example .research-paper-body .work-example-caption { font-size: 12px; line-height: 1.5; color: var(--muted); }
.work-examples-note { font-size: 11px; margin: 10px 0 0; }
@media (max-width: 700px) { .consulting-landing .work-examples h3 { font-size: 20px; }.work-example .research-paper-body { padding: 18px; } }

/* A manipulable two-site configuration, evaluated by a local neural network. */
.committor-stage { height: 280px; display: flex; flex-direction: column; background: #fcfaf6; }
.committor-stage svg { height: 232px; min-height: 0; touch-action: pan-y; }
.committor-stage[data-ready="true"] svg { cursor: grab; }
.committor-stage[data-ready="true"] svg:active { cursor: grabbing; }
.committor-guide { fill: none; stroke: #e3d9c9; stroke-dasharray: 3 6; }
#committor-connector { stroke: #c6baa6; stroke-width: 6; stroke-linecap: round; }
#committor-hint { font: 11px var(--bs-body-font-family); fill: var(--muted); }
.committor-result { text-align: center; font-size: 14px; font-weight: 600; color: var(--ink); padding: 7px 8px 10px; min-height: 45px; }
.committor-controls { margin: 12px 0 0; font-size: 12px; }
.committor-distance-label { display: flex; justify-content: space-between; gap: 12px; }
#committor-distance { display: block; width: 100%; accent-color: var(--accent); margin: 8px 0 12px; height: 20px; }
.committor-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.committor-actions button { background: #eee5d7; border: 1px solid var(--line); border-radius: 5px; padding: 5px 9px; color: var(--ink); font-size: 11px; cursor: pointer; }
.committor-actions label { margin-left: auto; display: flex; align-items: center; gap: 5px; font-size: 11px; }
.committor-actions input { accent-color: var(--accent); }
.committor-reference { margin: 10px 0 0; padding: 7px 9px; border-left: 2px solid var(--accent-fill); color: var(--muted); font-size: 11px; }
.committor-details { margin-left: 12px; }
#committor-site-a, #committor-site-b { touch-action: none; }

/* One compact research showcase, including the engineering calculations. */
.consulting-page .demo-tabs { flex-wrap: wrap; gap: 3px 5px; margin-bottom: 15px; }
.consulting-page .demo-tabs button { padding: 6px 7px; flex: 0 0 auto; font-size: 12px; }
.consulting-page .demo-stage video { width: 100%; height: 100%; object-fit: contain; }
.consulting-page .dynamics-render { height: 100%; }
.consulting-page .dynamics-render[hidden], .consulting-page .dynamics-fallback[hidden] { display: none; }
.consulting-page .dynamics-render canvas { width: 100%; height: 100%; display: block; object-fit: contain; }
.consulting-page #cavity-scene { height: 75%; }
.consulting-page #cavity-trace { height: 25%; }
.consulting-page .dynamics-controls { margin: 13px 0; }
.consulting-page .dynamics-time-label { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.consulting-page .dynamics-time-label output { font-variant-numeric: tabular-nums; color: var(--accent); }
.consulting-page .dynamics-controls input[type=range] { width: 100%; accent-color: var(--accent); margin: 7px 0 12px; }
.consulting-page .dynamics-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; font-size: 12px; }
.consulting-page .dynamics-actions button, .consulting-page .dynamics-actions select { border: 1px solid var(--line); border-radius: 4px; background: white; color: var(--ink); padding: 5px 9px; font: inherit; cursor: pointer; }
.consulting-page .dynamics-actions label { display: inline-flex; align-items: center; gap: 5px; }
.consulting-page .dynamics-actions input { accent-color: var(--accent); }
.consulting-page .dynamics-actions button:focus-visible, .consulting-page .dynamics-controls input:focus-visible, .consulting-page .dynamics-actions select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 480px) { .consulting-page .demo-tabs button { font-size: 11px; padding: 6px; } }
@media (max-width: 600px) {
  .consulting-page .dynamics-stage { height: 220px; }
  .consulting-page .dynamics-render svg text { font-size: 18px; }
  .consulting-page #cavity-trace text { font-size: 15px; }
}

.consulting-brand .consulting-brand-logo { display: block; width: 104px; height: auto; margin: 0; padding: 0; border: 0; }
.consulting-brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 7px; }

/* A readable method narrative with a scroll-revealed, human-directed workflow. */
.workflow-section .section-heading { max-width: 760px; }
.workflow-layout { display: grid; grid-template-columns: 1.08fr 1fr; gap: 64px; align-items: start; }
.workflow-visual { border: 1px solid var(--line); border-radius: 14px; background: #faf7f1; padding: 20px 14px 14px; }
.workflow-enhanced .workflow-visual { position: sticky; top: 96px; }
.workflow-caption { display: flex; justify-content: space-between; gap: 10px; margin: 0 12px 4px; font-size: 12px; color: var(--muted); }
.workflow-caption > span:last-child { font-variant-numeric: tabular-nums; color: var(--accent); }
.workflow-map { display: grid; align-content: space-between; height: 540px; gap: 32px; padding: 24px 34px; position: relative; }
.workflow-connectors { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; color: var(--accent); }
.workflow-path { stroke: var(--accent); stroke-width: 1.25; }
.workflow-return { stroke-width: 1.1; color: #97866c; stroke: #97866c; }
.workflow-return { opacity: .8; }
.flow-node { position: relative; z-index: 1; width: 76%; margin: auto; padding: 10px 8px; text-align: center; background: white; border: 1px solid var(--line); border-radius: 7px; line-height: 1.4; }
.flow-node strong { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.flow-node span { display: block; font-size: 10px; color: var(--muted); margin-top: 3px; }
.flow-director, .flow-review { border-color: #bda77f; background: #f1e9da; }
.flow-deliver { background: #e9dfcd; border-color: #bda77f; }
.flow-workstreams { position: relative; z-index: 1; }
.flow-workstreams > p { font-size: 10px; text-align: center; color: var(--muted); margin: -8px 0 6px; }
.flow-lanes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.flow-lanes .flow-node { width: 100%; height: 100%; padding: 11px 3px; }
.flow-lanes strong { font-size: 12px; }.flow-lanes span { font-size: 9px; }
.workflow-loop-caption { margin: 0 12px 10px; min-height: 1.4em; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.4; }
.workflow-step-nav { display: flex; justify-content: center; gap: 10px; }
.workflow-step-nav button { background: transparent; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); width: 30px; height: 30px; padding: 0; font: inherit; font-size: 11px; cursor: pointer; }
.workflow-step-nav button[aria-current] { color: white; background: var(--accent); border-color: var(--accent); }
.workflow-story { padding-bottom: max(0px, calc(720px - 60vh)); }
.workflow-step { padding: 20px 0 35px 24px; border-left: 2px solid var(--line); margin: 0; }
.workflow-enhanced .workflow-step { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; }
.workflow-step-number { font-size: 11px; color: var(--accent); letter-spacing: .08em; }
.workflow-step h3 { font-size: 27px; line-height: 1.2; margin: 15px 0 18px; }
.workflow-step p { color: var(--muted); font-size: 16px; line-height: 1.75; }
.workflow-step .workflow-takeaway { font-size: 13px; line-height: 1.6; color: var(--accent); margin: 8px 0 0; }
.workflow-step.is-current { border-left-color: var(--accent); }
.workflow-enhanced:not(.workflow-reduced) [data-reveal] { opacity: 0; transition: opacity .5s; }
.workflow-enhanced:not(.workflow-reduced) [data-reveal].is-revealed { opacity: 1; }
.workflow-enhanced:not(.workflow-reduced) .workflow-path { stroke-dasharray: var(--path-length); stroke-dashoffset: var(--path-length); opacity: 0; transition: stroke-dashoffset .75s ease, opacity .35s; }
.workflow-enhanced:not(.workflow-reduced) .workflow-path.is-revealed { stroke-dashoffset: 0; opacity: 1; }
@media (max-width: 1000px) { .workflow-layout { gap: 30px; }.flow-node { width: 86%; }.workflow-map { padding-inline: 22px; }.flow-lanes { gap: 5px; } }
@media (max-width: 760px) {
 .workflow-layout { grid-template-columns: minmax(0,1fr); gap: 20px; }
 .workflow-story { padding-bottom: 0; }
 .workflow-enhanced .workflow-visual { top: 76px; z-index: 3; box-shadow: 0 8px 18px #2d29230d; }
 .workflow-visual { padding: 10px 7px 8px; }
 .workflow-caption { font-size: 10px; margin-bottom: 0; }
 .workflow-map { height: 390px; padding: 16px 21px; gap: 30px; }
 .flow-node { width: 82%; padding: 9px 5px; }
 .flow-node strong { font-size: 12px; }.flow-node span { font-size: 9px; margin-top: 1px; }
 .flow-lanes .flow-node { padding: 5px 2px; }.flow-lanes strong { font-size: 11px; }.flow-lanes span { display: none; }
 .flow-workstreams > p { margin: -4px 0 3px; font-size: 9px; }
 .workflow-loop-caption { font-size: 10px; min-height: 1.4em; margin-bottom: 7px; }
 .workflow-step-nav { gap: 13px; }.workflow-step-nav button { width: 25px; height: 25px; font-size: 10px; }
 .workflow-enhanced .workflow-step { min-height: 65vh; justify-content: flex-start; padding: 30px 0 40px 18px; }
 .workflow-step h3 { font-size: 25px; }.workflow-step p { font-size: 15px; }
 .workflow-step { scroll-margin-top: 560px; }
 .consulting-brand .consulting-brand-logo { width: 90px; }
}
@media (max-height: 600px) { .workflow-enhanced .workflow-visual { position: static; }.workflow-enhanced .workflow-step { min-height: auto; } }
@media (prefers-reduced-motion: reduce) { .workflow-layout * { transition: none !important; }.workflow-enhanced [data-reveal], .workflow-enhanced .workflow-path { opacity: 1 !important; stroke-dashoffset: 0 !important; } }

.flow-workstreams > p { width: fit-content; margin-left: auto; margin-right: auto; padding: 0 6px; background: #faf7f1; }

@media (min-width: 761px) and (max-height: 780px) { .workflow-map { height: 500px; } }

.dynamics-loading { height: 100%; display: grid; place-items: center; margin: 0; color: var(--muted); font-size: 12px; }
