/* ============================================================
   Self-hosted variable fonts (§R-08 — woff2 only, no CDN)
   ============================================================ */
@font-face{ font-family:'Fraunces'; font-style:normal; font-weight:300 700; font-display:swap;
  src:url('/Brand/design-system/fonts/fraunces-v38-latin-variable.woff2') format('woff2'); }
@font-face{ font-family:'Inter Tight'; font-style:normal; font-weight:400 600; font-display:swap;
  src:url('/Brand/design-system/fonts/inter-tight-v9-latin-variable.woff2') format('woff2'); }
@font-face{ font-family:'Geist Mono'; font-style:normal; font-weight:400 500; font-display:swap;
  src:url('/Brand/design-system/fonts/geist-mono-v5-latin-variable.woff2') format('woff2'); }

/* ============================================================
   mcdynamic — design tokens
   ============================================================ */
:root{
  --bg:        #161616;   /* workshop-wall charcoal */
  --surface:   #1F1F1F;   /* elevated panels */
  --gold:      #AC9E70;   /* brass */
  --gold-hi:   #C0B488;   /* brass, catching light */
  --gold-lo:   #8A7E58;   /* brass, pressed */
  --ink:       #FAFAF7;   /* warm off-white */
  --ink-2:     #C9C4BB;   /* warm sand */
  --hairline:  rgba(172,158,112,0.18);
  --hairline-2:rgba(172,158,112,0.32);

  --font-display:"Fraunces", Georgia, serif;
  --font-body:"Inter Tight", system-ui, -apple-system, sans-serif;
  --font-mono:"Geist Mono", ui-monospace, "SF Mono", monospace;

  --w-max: 1180px;
  --pad-x: clamp(20px, 5vw, 48px);
  --sec-y: clamp(88px, 12vw, 160px);
}

*{ margin:0; padding:0; box-sizing:border-box; }

html{ scrollbar-gutter: stable; }
@media (prefers-reduced-motion: no-preference){
  html{ scroll-behavior: smooth; }
}

body{
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection{ background: var(--gold); color: var(--bg); }

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

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

:focus-visible{
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap{
  width: 100%;
  max-width: var(--w-max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  position: relative;          /* content rides above the glow (z1) */
  z-index: 2;
}

/* ---------- type ---------- */
.eyebrow{
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.eyebrow::before{
  content:"";
  width: 9px; height: 9px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  flex: none;
}

h1, h2, h3{
  font-family: var(--font-display);
  font-weight: 460;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
h1{
  font-size: clamp(2.7rem, 6.2vw, 5rem);      /* FLAGSHIP-TRANSFORM-20260706 A2/T2/D3 */
  line-height: 1.06;
  font-variation-settings: "opsz" 110;
}
h2{
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.12;
  font-variation-settings: "opsz" 80;
  max-width: 18em;
}
h3{
  font-size: 1.3rem;
  line-height: 1.3;
  font-weight: 500;
}
.em{ font-style: italic; font-variation-settings: "opsz" 110; color: var(--gold-hi); }

.lede{
  color: var(--ink-2);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.7;
  max-width: 36em;
}

/* split-word spans (added by JS) */
.w{ display:inline-block; overflow:hidden; vertical-align: bottom; }
.wi{ display:inline-block; will-change: transform; }

/* ---------- buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 15px 28px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .22s ease, border-color .22s ease, color .22s ease, transform .15s ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }
.btn-gold{
  background: var(--gold);
  color: #161616;
}
.btn-gold:hover{ background: var(--gold-hi); }
.btn-gold:active{ background: var(--gold-lo); }
.btn-line{
  border-color: var(--gold);
  color: var(--gold-hi);
  background: transparent;
}
.btn-line:hover{ background: rgba(172,158,112,0.10); border-color: var(--gold-hi); }
.btn-line:active{ background: rgba(172,158,112,0.16); border-color: var(--gold-lo); color: var(--gold-lo); }

/* ---------- scroll progress ---------- */
.progress{
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  z-index: 60;
  background: transparent;
  pointer-events: none;
}
.progress b{
  display: block;
  height: 100%;
  background: var(--gold);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ---------- header ---------- */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(22,22,22,0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.site-header .wrap{
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 13px;
  margin-right: auto;
}
.brand .mark{ width: 44px; height: 44px; flex: none; }
.brand .name{
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.site-nav{
  display: flex;
  gap: 30px;
}
.site-nav a{
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color .2s ease;
}
.site-nav a:hover{ color: var(--ink); }
.header-cta{ padding: 11px 20px; font-size: 14px; }
@media (max-width: 860px){
  .site-nav{ display: none; }
  .site-header .wrap{ height: 66px; }
  .brand .mark{ width: 38px; height: 38px; }
}

/* ---------- hero ---------- */
.hero{
  position: relative;
  min-height: 85svh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 80px;
  overflow: hidden;
}
.hero .wrap{
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);   /* FLAGSHIP-TRANSFORM-20260706 A2 fix-1: 3-line h1 at 1280 */
  align-items: center;
  gap: 40px;
  width: 100%;
}
.hero-copy{ max-width: 700px; }   /* FLAGSHIP-TRANSFORM-20260706 A2 fix-1 */
.hero-copy h1{ margin-bottom: 26px; }
.hero-copy .lede{ margin-bottom: 40px; }
.hero-ctas{ display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual{
  position: relative;
  aspect-ratio: 1 / 1.1;
  min-height: 320px;
}
/* the canvas is a BACKDROP, never the UI: full-bleed behind the
   hero, decorative only (aria-hidden, tabindex=-1). Absolutely
   positioned + sized to its wrapper, so mounting causes zero CLS. */
.hero-field{
  position: absolute;
  inset: 0;
  z-index: 0;
}
#diamond-canvas{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;                       /* fades in after lazy init */
  transition: opacity 1.2s ease;
  will-change: opacity;
}
#diamond-canvas.is-live{ opacity: 1; }
/* readability scrim over the field's left half, under the text */
.hero-scrim{
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg,
              rgba(22,22,22,0.94) 0%,
              rgba(22,22,22,0.55) 42%,
              rgba(22,22,22,0) 72%);
}
.diamond-static{
  position: absolute;
  inset: 4%;
  opacity: 0.95;
}
/* the page's single right-alignment accent (V4-3) */
.hero-eyebrow{
  position: absolute;
  top: 4px; right: 0;
  margin: 0;
  justify-content: flex-end;
  z-index: 2;
}
.hero-base{
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 56px;
}
.hero-base::before{
  content:"";
  height: 1px;
  width: 44px;
  background: var(--gold);
}
@media (max-width: 900px){
  .hero{ padding-top: 110px; }
  .hero .wrap{
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hero-visual{
    order: -1;
    aspect-ratio: auto;
    height: clamp(180px, 32vw, 260px);
    min-height: 0;
    margin-bottom: 6px;
  }
  .diamond-static{ inset: 0; }
}

/* ---------- generic section ---------- */
.section{ padding: var(--sec-y) 0; position: relative; }
.sec-head{ margin-bottom: clamp(44px, 6vw, 72px); }
.sec-head .lede{ margin-top: 20px; }

/* ---------- method ---------- */
.method-steps{
  position: relative;
  margin-left: 5px;
  padding-left: clamp(34px, 5vw, 56px);
}
.method-track, .method-line{
  position: absolute;
  left: 9px;
  top: 14px;
  bottom: 14px;
  width: 1px;
}
.method-track{ background: var(--hairline); }
.method-line{
  background: var(--gold);
  transform-origin: 50% 0;
  transform: scaleY(0);             /* drawn by scroll */
}
.step{
  position: relative;
  padding: clamp(26px, 4vw, 40px) 0;
}
.step-marker{
  position: absolute;
  left: calc(3.5px - clamp(34px, 5vw, 56px));
  top: clamp(34px, 4.6vw, 48px);
  width: 11px; height: 11px;
  background: var(--bg);
  border: 1px solid var(--gold);
  transform: rotate(45deg);     /* no translate: the ticker composes rotate+scale */
}
/* V4-3: the connector line becomes the centered vertical spine on
   desktop; steps read off it, alternating sides, copy left-aligned */
@media (min-width: 901px){
  .method-steps{ padding-left: 0; margin-left: 0; }
  .method-track, .method-line{ left: 50%; }
  .step{ width: calc(50% - 56px); }
  .method-steps .step:nth-child(odd){ margin-right: auto; }
  .method-steps .step:nth-child(even){ margin-left: auto; }
  .method-steps .step:nth-child(odd) .step-marker{ left: auto; right: -61.5px; }
  .method-steps .step:nth-child(even) .step-marker{ left: -61.5px; right: auto; }
}
.step-num{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}
.step h3{
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 480;
  margin-bottom: 8px;
}
.step p{
  color: var(--ink-2);
  max-width: 34em;
}

/* ---------- capabilities ---------- */
.cap-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.card{
  background: var(--surface);
  border-radius: 6px;
  padding: clamp(26px, 3.4vw, 38px);
  position: relative;
  transition: border-color .25s ease;
}
.card::before{
  content:"";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .35s ease;
}
.card:hover::before{ transform: scaleX(1); }
.card .card-mark{
  width: 13px; height: 13px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  margin-bottom: 24px;
}
.card h3{ margin-bottom: 10px; }
.card p{ color: var(--ink-2); font-size: 16px; }
@media (max-width: 760px){
  .cap-grid{ grid-template-columns: 1fr; }
}

/* ---------- we run this ourselves ---------- */
.ourselves{ text-align: center; }
.ourselves .eyebrow{ justify-content: center; }
.ourselves blockquote{
  font-family: var(--font-display);
  font-weight: 440;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.34;
  font-variation-settings: "opsz" 60;
  max-width: 24em;
  margin: 0 auto;
  text-wrap: balance;
}
.ourselves blockquote .em{ font-weight: 460; }
.rule{
  width: 64px;
  height: 1px;
  background: var(--gold);
  margin: 36px auto 0;
}

/* ---------- learn or hire ---------- */
.paths{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.path{
  background: var(--surface);
  border-radius: 6px;
  padding: clamp(30px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.path .eyebrow{ margin-bottom: 18px; }
.path h3{
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 480;
  margin-bottom: 14px;
}
.path p{ color: var(--ink-2); margin-bottom: 30px; max-width: 30em; }
.path .btn{ margin-top: auto; }

/* concrete next-class line (homepage hero + §5 class path) — the #1 differentiator, made concrete */
.class-when{ font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); letter-spacing: .01em; line-height: 1.5; margin-bottom: 26px; }
.class-when__k{ display: inline-block; color: var(--gold); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; margin-right: 8px; }
.hero-when{ margin: 18px 0 0; }
@media (max-width: 760px){
  .paths{ grid-template-columns: 1fr; }
}

/* ---------- who this is for ---------- */
.who p.big{
  font-family: var(--font-display);
  font-weight: 450;
  font-size: clamp(1.45rem, 2.8vw, 2.1rem);
  line-height: 1.36;
  max-width: 27em;
  margin-bottom: 40px;
}
.who{ text-align: center; }
.who .eyebrow{ justify-content: center; }
.who p.big{ margin-left: auto; margin-right: auto; }
.who .not-fit{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 46em;
  margin: 0 auto;
}
.who .not-fit strong{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  flex: none;
}
.who .not-fit span{ color: var(--ink-2); }


/* ---------- what's automatable ---------- */
.checklist{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(28px, 5vw, 64px);
  max-width: 880px;
}
.checklist li{
  list-style: none;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 2px;
  color: var(--ink);
  font-size: 16.5px;
}
.checklist li::before{
  content:"";
  width: 8px; height: 8px;
  border: 1px solid var(--gold);
  background: rgba(172,158,112,0.18);
  transform: rotate(45deg);
  flex: none;
}
@media (max-width: 680px){
  .checklist{ grid-template-columns: 1fr; }
}

/* ---------- contact ---------- */
.contact-stack{ display: block; }
.contact-intro{ text-align: center; }
.contact-intro .eyebrow{ justify-content: center; }
.contact-intro h2{ margin-bottom: 18px; margin-left: auto; margin-right: auto; }
.contact-intro .lede{ margin: 0 auto 36px; }
.contact-paths{ display: flex; flex-direction: row; flex-wrap: wrap; gap: 14px; justify-content: center; }

.contact-form{
  background: var(--surface);
  border-radius: 6px;
  padding: clamp(28px, 3.6vw, 44px);
  max-width: 580px;
  margin: clamp(40px, 6vw, 64px) auto 0;
  text-align: left;
}
.field{ margin-bottom: 22px; }
.field label,
.field-label{
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 9px;
}
.field input[type="text"],
.field input[type="email"]{
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 13px 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus{
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--hairline-2);   /* WCAG 2.4.11 focus-appearance: ring + border state-delta */
}
.field input::placeholder{ color: rgba(201,196,187,0.45); }
.field textarea{
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  padding: 13px 15px;
  resize: vertical;
  min-height: 96px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea:focus{ outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--hairline-2); }
.field textarea::placeholder{ color: rgba(201,196,187,0.45); }

.choice{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.choice input{ position: absolute; opacity: 0; pointer-events: none; }
.choice label.opt{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  padding: 14px 10px;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
  margin-bottom: 0;
}
.choice input:checked + label.opt{
  border-color: var(--gold);
  color: var(--ink);
  background: rgba(172,158,112,0.08);
}
.choice input:focus-visible + label.opt{
  outline: 2px solid var(--gold-hi);
  outline-offset: 2px;
}
.contact-form .btn{ width: 100%; margin-top: 8px; }
.form-note{
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  color: var(--gold-hi);
  font-size: 15px;
}
.form-note.show{ display: block; }


/* ---------- footer ---------- */
.site-footer{
  background: var(--surface);
  padding: 56px 0;
  position: relative;
  z-index: 2;
}
.site-footer .wrap{
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.foot-brand{
  display: flex;
  align-items: center;
  gap: 13px;
  margin-right: auto;
}
.foot-brand .mark{ width: 34px; height: 34px; }
.foot-brand span{
  font-size: 15px;
  color: var(--ink-2);
}
.foot-brand strong{ color: var(--ink); font-weight: 600; }
.foot-nav{ display: flex; gap: 24px; flex-wrap: wrap; }
.foot-nav a{
  font-size: 14px;
  color: var(--ink-2);
  transition: color .2s ease;
}
.foot-nav a:hover{ color: var(--gold-hi); }
.foot-year{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-2);
}

/* ---------- reveal elements ----------
   NOTE: never hidden by CSS. GSAP's fromTo() supplies the hidden
   from-state at init, so content always paints if JS fails. */
@media (prefers-reduced-motion: no-preference){
  .r{ will-change: transform, opacity; }
}

/* recovered/static page (JS failed or absent): line shown drawn */
body.no-anim .method-line{ transform: scaleY(1); }

/* fixed header offset for native anchor scrolling */
section[id], #contactForm{ scroll-margin-top: 92px; }

/* ============================================================
   AMBIENT LIFE — a faint brass glow drifting behind everything.
   Sits above the body background, below all content. A CSS
   gradient (not an image), so it can never be the LCP element.
   ============================================================ */
.glow{
  position: fixed;
  z-index: 1;
  top: 50%; left: 50%;
  width: 120vmax; height: 120vmax;
  margin: -60vmax 0 0 -60vmax;
  pointer-events: none;
  background: radial-gradient(closest-side,
              rgba(172,158,112,0.055),
              rgba(172,158,112,0.02) 42%,
              rgba(172,158,112,0) 68%);
  /* Ambient drift via a CSS @keyframes COMPOSITOR animation (was per-frame JS). */
  will-change: transform;
  animation: glow-drift 30s ease-in-out infinite;
}
@keyframes glow-drift{
  0%,100%{ transform: translate3d(0, -1.3vh, 0); }
  25%    { transform: translate3d(1.5vw, 0.4vh, 0); }
  50%    { transform: translate3d(0.2vw, 1.3vh, 0); }
  75%    { transform: translate3d(-1.5vw, 0.4vh, 0); }
}
/* The glow is a HOMEPAGE hero ambiance only (homepage has the WebGL #diamond-canvas).
   Hide it on content routes: it adds little there and Lighthouse's lab trace counts
   this fixed 120vmax box as a ~0.15 CLS artifact on inner pages (real-user CLS = 0,
   per the browser LayoutShift API). One rule, no markup churn. */
body:not(:has(#diamond-canvas)) .glow{ display: none; }

/* the small diamond markers get a JS-driven breathe; keep origins centered */
.step-marker, .card-mark{ transform-origin: 50% 50%; }

/* logo mark color is now inherited so the inversion can recolor it */
.mark{ color: var(--gold); transition: color .6s cubic-bezier(0.16, 1, 0.3, 1); }

/* ============================================================
   "We run this ourselves" stays on the standard dark theme —
   warm off-white serif on charcoal var(--bg) with gold accents
   (the .em word, the rule, and the proof stamp). The full-bleed
   gold-panel inversion (and its synced gold header) was removed
   2026-06-14 per Mike — the saturated gold was too intense.
   The body.is-inverted toggle is no longer applied (see flagship.js).
   ============================================================ */

/* ---------- decode labels: width never shifts (mono, fixed char count) ---------- */
.eyebrow .dec{ display: inline-block; white-space: pre; }

/* ============================================================
   VERTICALS STRIP — one quiet drifting line naming who this
   is for. Decorative (aria-hidden); the prose lives in §6.
   ============================================================ */
.strip{
  overflow: hidden;
  padding: 18px 0;
  background: var(--surface);
}
.strip-track{
  position: relative;
  z-index: 2;
  display: inline-flex;
  white-space: nowrap;
  will-change: transform;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.strip .unit{ display: inline-block; }
.strip .unit b{ color: var(--gold); font-weight: 400; padding: 0 1.1em; }


/* ============================================================
   V4 — tonal rhythm + alignment cadence
   ============================================================ */

/* V4-2: sections separate by tone, not hairlines. Alternation:
   hero #161616 / strip #1F1F1F / method #161616 / capabilities
   #1F1F1F / ourselves #161616 (-> gold) / paths #1F1F1F / who
   #161616 / automatable #1F1F1F / contact #161616 / footer #1F1F1F.
   Color only — no box-size change (CLS-safe). */
#method, #ourselves, #who, #contact{ background: var(--bg); }
#capabilities, #paths, #automatable{ background: var(--surface); }
#capabilities .card, #paths .path{ background: var(--bg); }

/* V4-3: centered section headers where the cadence calls for it */
.sec-head.center{ text-align: center; }
.sec-head.center .eyebrow{ justify-content: center; }
.sec-head.center h2{ margin-left: auto; margin-right: auto; }
.sec-head.eyebrow-center .eyebrow{ justify-content: center; }

/* ============================================================
   v3 REFINEMENTS
   ============================================================ */

/* sr-only utility (decode labels keep a real-text twin for SRs) */
.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;
}

/* 3 - capability cards: one-time auto-play of the gold top-border
   wipe on scroll entry; class is removed after the pass so the
   existing hover behavior is untouched afterward */
.card.building::before{
  transform: scaleX(1);
  transition: transform .55s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 4 - the four verticals in section six get a 2px gold underline
   (pseudo-element only; body text color untouched for contrast).
   Default state is DRAWN (no-JS and reduced-motion final state);
   body.js-motion arms the pre-state, .named wipes them in turn. */
.vert{ position: relative; display: inline-block; }
.vert::after{
  content: "";
  position: absolute;
  left: 2px; right: 2px; bottom: -4px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(1);
  transform-origin: 0 50%;
}
body.js-motion .who .big .vert::after{
  transform: scaleX(0);
  transition: transform .5s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--vi, 0) * .18s);
}
body.js-motion .who .big.named .vert::after{ transform: scaleX(1); }

/* 2 - the proof stamp: gold at rest, charcoal while the panel is
   gold (6.8:1 on #AC9E70), so it stays visible after the panel
   returns to charcoal. Default = visible (no-JS / reduced-motion
   final state); motion mode hides it via gsap.set until it lands. */
.proof-stamp{
  width: 58px; height: 58px;
  margin: 30px auto 0;
  color: var(--gold);
  transition: color .6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 6 - magnetic CTAs: keyboard focus pins the button home so the
   focus ring never moves; JS also skips focused buttons */
.btn:focus-visible{ transform: none !important; }

/* ---------- reduced motion: everything static, final states ---------- */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    transition: none !important;
    animation: none !important;
  }
  .method-line{ transform: scaleY(1); }
  #diamond-canvas{ display: none; }

  /* ambient glow: present but motionless */
  .glow{ transform: none !important; }

  /* strip: a static line, no drift */
  .strip-track{ transform: none !important; }
}

/* ============================================================
   FLAGSHIP SITE-NAV ADDITIONS — multi-page rollout (2026-06-13)
   Shared across all 8 pages: hamburger + mobile drawer (the
   homepage previously had NO mobile nav), inner-page hero,
   tonal-alternation helper, desktop active-state.
   ============================================================ */

/* active state — desktop primary nav */
.site-nav a[aria-current="page"]{ color: var(--ink); }

/* hamburger toggle — hidden on desktop, shown <=860px (matches .site-nav hide) */
.nav-toggle{
  display: none;
  width: 44px; height: 44px;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
  margin-left: 4px;
}
.nav-toggle__bar{
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  transition: transform .3s cubic-bezier(0.16,1,0.3,1), opacity .2s ease,
              background-color .6s cubic-bezier(0.16,1,0.3,1);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* mobile drawer */
.mobile-drawer{
  display: none;
  border-top: 1px solid var(--hairline);
  background: rgba(22,22,22,0.97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  padding: 10px var(--pad-x) 26px;
}
.mobile-drawer.is-open{ display: block; }
.drawer-nav{ display: flex; flex-direction: column; }
.drawer-nav a{
  display: block;
  padding: 13px 2px;
  min-height: 44px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-2);
  border-bottom: 1px solid var(--hairline);
  transition: color .2s ease;
}
.drawer-nav a:hover{ color: var(--ink); }
.drawer-nav a[aria-current="page"]{ color: var(--gold-hi); }
.mobile-drawer .btn{ width: 100%; margin-top: 20px; }

@media (max-width: 860px){
  .nav-toggle{ display: inline-flex; }
  .header-cta{ display: none; }          /* CTA moves into the drawer at this width */
  body.drawer-open{ overflow: hidden; }  /* lock scroll only while drawer is open */
}
@media (min-width: 861px){
  .mobile-drawer{ display: none !important; }   /* drawer never shows on desktop */
}

/* ---------- inner-page hero (no WebGL; lighter than the homepage hero) ---------- */
.page-hero{
  position: relative;
  padding-top: clamp(132px, 16vw, 184px);
  padding-bottom: clamp(48px, 7vw, 88px);
  overflow: hidden;
}
.page-hero .eyebrow{ margin-bottom: 22px; }
.page-hero h1{ margin-bottom: 24px; max-width: 16em; }
.page-hero .lede{ max-width: 40em; }
.page-hero .hero-ctas{ display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* ---------- tonal alternation for inner-page sections ---------- */
.section--surface{ background: var(--surface); }
.section--surface .card,
.section--surface .path{ background: var(--bg); }

/* ---------- generic inner-page helpers ---------- */
.prose{ max-width: 40em; }
.prose p{ color: var(--ink-2); margin-bottom: 1.1em; }
.prose p:last-child{ margin-bottom: 0; }
.lede.center{ margin-left: auto; margin-right: auto; text-align: center; }
.section-cta{ margin-top: clamp(40px, 5vw, 64px); display: flex; gap: 14px; flex-wrap: wrap; }
.section-cta.center{ text-align: center; justify-content: center; }

/* ---------- inner-page card content (lists + multi-paragraph) ---------- */
.card > p + p{ margin-top: 12px; }
.card ul, .prose ul{ list-style: none; margin-top: 16px; }
.card ul li, .prose ul li{
  position: relative; padding-left: 22px; margin-bottom: 11px;
  color: var(--ink-2); font-size: 15.5px; line-height: 1.55;
}
.card ul li:last-child, .prose ul li:last-child{ margin-bottom: 0; }
.card ul li::before, .prose ul li::before{
  content: ""; position: absolute; left: 2px; top: 9px;
  width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg);
}
.card ul li strong, .prose ul li strong{ color: var(--ink); font-weight: 600; }
.card ul + p{ margin-top: 16px; }

/* ---------- 3-up grid for inner-page pillars ---------- */
.grid-3{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px){ .grid-3{ grid-template-columns: 1fr; } }

/* ---------- definition-style rows (method stages, FAQ-ish) ---------- */
.stack-rows{ display: flex; flex-direction: column; gap: 14px; }
.row-card{
  background: var(--surface);
  border-radius: 6px;
  padding: clamp(24px, 3vw, 36px);
  position: relative;
}
.section--surface .row-card{ background: var(--bg); }
.row-card .step-num{ margin-bottom: 12px; }
.row-card h3{ margin-bottom: 10px; }
.row-card p{ color: var(--ink-2); max-width: 50em; }

/* ---------- FAQ (native details/summary, flagship-styled) ---------- */
.faq{ max-width: 760px; }
.faq details{
  border-bottom: 1px solid var(--hairline);
  padding: 4px 0;
}
.faq summary{
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 2px;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  font-weight: 500;
  color: var(--ink);
}
.faq summary::-webkit-details-marker{ display: none; }
.faq summary::after{
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--gold);
  flex: none;
  transition: transform .3s ease;
}
.faq details[open] summary::after{ content: "–"; }
.faq summary:focus-visible{ outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.faq__a{ padding: 0 2px 22px; color: var(--ink-2); max-width: 62em; }
.faq__a p + p{ margin-top: 1em; }

/* ---------- pricing tiers (hire-us) ---------- */
.price{ font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.1rem); color: var(--gold-hi); font-weight: 480; }
.price small{ font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ink-2); display: block; margin-top: 6px; text-transform: uppercase; }
.card .price{ margin: 4px 0 18px; }

/* ---------- key/value detail rows (classes / contact) ---------- */
.kv{ display: flex; flex-direction: column; gap: 4px; margin-bottom: 18px; }
.kv dt{ font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.kv dd{ color: var(--ink); font-size: 16.5px; }



/* === ported calculator widget (flagship rollout 2026-06-13) === */
.calc-shell{
  /* token bridge: map main.css calc tokens -> flagship dark palette (same brand colors, different names) */
  --canvas-primary: var(--bg);
  --canvas-elevated: var(--surface);
  --text-primary: var(--ink);
  --text-secondary: var(--ink-2);
  --text-muted: var(--ink-2);
  --text-on-accent: #161616;
  --accent: var(--gold);
  --border-subtle: var(--hairline);
  --border-strong: #5A5246;
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem; --sp-5: 1.5rem; --sp-6: 2rem;
  --radius-sm: 4px; --radius-md: 6px; --radius-lg: 12px;
  --motion-fast: 120ms;
  --easing-snap: cubic-bezier(0.2, 0.8, 0.2, 1);
  --shadow-card: 0 1px 0 rgba(255,255,255,0.04), 0 8px 24px rgba(0,0,0,0.32);
}
.calc-shell .calc-container{ margin-left: auto; margin-right: auto; }

.calc-container { max-width: 1100px; }

.calc {
  display: grid; gap: var(--sp-6);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: start;
  margin: var(--sp-6) 0 var(--sp-5);
}
@media (max-width: 880px) { .calc { grid-template-columns: 1fr; } }

.calc__form {
  background: var(--canvas-elevated); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: var(--sp-6);
  display: flex; flex-direction: column; gap: var(--sp-6);
  margin: 0;
}
.calc__field { border: 0; padding: 0; margin: 0; min-width: 0; }
.calc__legend {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--sp-3);
  font-family: var(--font-mono); font-size: 0.76rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
  padding: 0; margin: 0 0 var(--sp-4);
  width: 100%;
}
.calc__legend-label { color: var(--accent); }
.calc__budget-readout {
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 500;
  color: var(--text-primary); letter-spacing: 0;
  text-transform: none;
}

/* Chip row */
.calc__chips {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
}
.calc__chip {
  position: relative; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: var(--sp-3) var(--sp-4);
  font-size: 0.95rem; font-weight: 500; color: var(--text-secondary);
  background: var(--canvas-primary);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  transition: border-color var(--motion-fast) var(--easing-snap),
              color var(--motion-fast) var(--easing-snap),
              background var(--motion-fast) var(--easing-snap);
}
.calc__chip input {
  position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px;
}
.calc__chip:hover { border-color: var(--accent); color: var(--text-primary); }
.calc__chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.calc__chip:has(input:checked) {
  border-color: var(--accent); color: var(--text-on-accent);
  background: var(--accent); font-weight: 600;
}

/* Slider — 44px touch target, themed for both WebKit + Firefox */
.calc__slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 44px;
  background: transparent; cursor: pointer; padding: 0; margin: 0;
}
.calc__slider:focus { outline: none; }
.calc__slider:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 35%, transparent);
}
.calc__slider:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 35%, transparent);
}
.calc__slider::-webkit-slider-runnable-track {
  height: 6px; background: var(--canvas-primary); border: 1px solid var(--border-strong);
  border-radius: 999px;
}
.calc__slider::-moz-range-track {
  height: 6px; background: var(--canvas-primary); border: 1px solid var(--border-strong);
  border-radius: 999px;
}
.calc__slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 28px; height: 28px; margin-top: -12px;
  background: var(--accent); border: 2px solid var(--canvas-primary);
  border-radius: 50%; cursor: grab;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  transition: transform var(--motion-fast) var(--easing-snap),
              box-shadow var(--motion-fast) var(--easing-snap);
}
.calc__slider::-moz-range-thumb {
  width: 28px; height: 28px;
  background: var(--accent); border: 2px solid var(--canvas-primary);
  border-radius: 50%; cursor: grab;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.calc__slider:hover::-webkit-slider-thumb { transform: scale(1.08); }
.calc__slider:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(0.96); }

.calc__scale {
  list-style: none; padding: 0; margin: var(--sp-2) 0 0;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--sp-1);
}
.calc__scale li {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted);
  text-align: center; letter-spacing: 0.04em; margin: 0;
}
.calc__scale li:first-child { text-align: left; }
.calc__scale li:last-child { text-align: right; }

/* Result card */
.calc__result {
  background: var(--canvas-elevated);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  display: flex; flex-direction: column; gap: var(--sp-3);
  box-shadow: var(--shadow-card);
  position: sticky; top: 96px;
}
@media (max-width: 880px) { .calc__result { position: static; } }
.calc__result-tag {
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
  margin: 0;
}
.calc__result-tier { font-size: 1.55rem; margin: 0; color: var(--text-primary); }
.calc__result-price {
  font-family: var(--font-mono); font-size: 0.92rem;
  color: var(--accent); letter-spacing: 0.02em;
  margin: 0;
}
.calc__result-reason { color: var(--text-secondary); font-size: 0.98rem; margin: var(--sp-2) 0 0; line-height: 1.6; }
.calc__result-secondary {
  color: var(--text-muted); font-size: 0.9rem; margin: 0; line-height: 1.55;
  padding-top: var(--sp-3); border-top: 1px dashed var(--border-subtle);
}
.calc__result-cta { align-self: flex-start; margin-top: var(--sp-3); }

/* Tertiary action — shareable-URL copy link. Hidden until JS feature-detects Clipboard API. */
.calc__copy-btn {
  align-self: flex-start;
  background: transparent;
  border: none;
  padding: var(--sp-2) 0;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
  transition: color 160ms ease;
}
.calc__copy-btn:hover { color: var(--accent); }
.calc__copy-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  color: var(--accent);
}
.calc__copy-btn[data-copied="true"] { color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .calc__copy-btn { transition: none; }
}

.calc__honesty {
  font-family: var(--font-mono); font-size: 0.86rem;
  color: var(--text-muted); text-align: center;
  max-width: 60ch; margin: var(--sp-5) auto 0;
  letter-spacing: 0.02em;
}



/* === inner-page footnotes + inline body links (flagship rollout 2026-06-13) === */
.footnote{ margin-top: clamp(28px, 4vw, 44px); color: var(--ink-2); font-size: 15px; text-align: center; }
.footnote--left{ text-align: left; max-width: 60em; }
/* inline text links inside body copy get a visible gold-underline affordance
   (base rule a{color:inherit;text-decoration:none} would otherwise hide them) */
.lede a, .prose a, .faq__a a, .footnote a, .card p a, .contact-intro a:not(.btn),
.row-card a:not(.btn), a.tlink{
  color: var(--gold-hi);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color .2s ease;
}
.lede a:hover, .prose a:hover, .faq__a a:hover, .footnote a:hover, .card p a:hover,
.contact-intro a:not(.btn):hover, .row-card a:not(.btn):hover, a.tlink:hover{ color: var(--gold); }

/* === footer contact enrichment (email + locality) 2026-06-14 === */
.foot-brand .foot-id{ display: flex; flex-direction: column; gap: 4px; }
.foot-email{
  font-size: 14px;
  color: var(--ink-2);
  transition: color .2s ease;
}
.foot-email:hover{ color: var(--gold-hi); }

/* === NAV-REDO-2026-06-14 real-mark =================================
   Replace the placeholder inline-SVG diamond with Mike's real lattice
   mark. The mark is now a <span> recolored via currentColor through an
   alpha mask — preserves the .mark color rule, the .6s color transition,
   and the homepage body.is-inverted gold->#161616 flip (a baked PNG
   could not recolor). Dims (.brand .mark 44/38px, .foot-brand .mark 34px)
   are inherited from the existing rules above. */
.brand .mark,
.foot-brand .mark{
  display: inline-block;
  background-color: currentColor;
  -webkit-mask: url(/Brand/assets/logos/mcdynamic-mark.png) center / contain no-repeat;
          mask: url(/Brand/assets/logos/mcdynamic-mark.png) center / contain no-repeat;
}
/* === /NAV-REDO-2026-06-14 ========================================== */

/* === PROD-FIXES-2026-06-14 ========================================
   (1) footer email >=24px tap target (§A-08 / WCAG 2.5.8 — was 23px).
   (2) skip-to-content link, visible only on keyboard focus (WCAG 2.4.1). */
.foot-email{ display: inline-block; min-height: 24px; padding: 7px 0; }
.skip-link{
  position: absolute; left: 8px; top: -52px; z-index: 1000;
  padding: 10px 16px; border-radius: 8px;
  background: var(--gold); color: #161616;
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  text-decoration: none; transition: top .18s ease;
}
.skip-link:focus{ top: 8px; outline: 2px solid #161616; outline-offset: 2px; }
/* === /PROD-FIXES-2026-06-14 ====================================== */


/* === REVISIONS-2026-06-14d (Mike's revision batch) =================
   #3 center the "what's automatable" checklist under its centered title
   #8 center the FAQ column under its centered heading
   #6/#7 breathing room above card CTAs (classes + hire-us)
   #9 homepage Method timeline: diamonds FILL as the scroll line passes
   (#4 method-page + #5 capabilities-page visual CSS appended below)
   ================================================================== */

/* #3 — center the two checklist columns under the centered title */
#automatable .checklist{
  grid-template-columns: repeat(2, max-content);
  justify-content: center;
  max-width: none;
  margin-inline: auto;
}
@media (max-width: 680px){
  #automatable .checklist{ grid-template-columns: max-content; }
}

/* #8 — center the FAQ column (block centered; questions stay left-readable) */
.faq{ margin-left: auto; margin-right: auto; }

/* #6/#7 — 32px breathing room from card body text to the CTA */
.card .btn{ margin-top: 32px; }

/* #9 — Method diamonds fill as the scroll line passes through them.
   lightStep() adds .is-lit per step; reduced-motion / no-JS shows the
   filled end-state (the connector line is drawn there too). */
.step-marker{
  transition: background-color .5s cubic-bezier(0.16,1,0.3,1),
              border-color .5s cubic-bezier(0.16,1,0.3,1);
}
.step-marker.is-lit{ background: var(--gold); border-color: var(--gold-hi); }
body.no-anim .step-marker{ background: var(--gold); border-color: var(--gold-hi); }
/* === /REVISIONS-2026-06-14d ======================================= */


/* === REVISIONS-2026-06-14d-inner · #4 method + #5 capabilities visuals =======
   Pure CSS + inline SVG line-art. Motion = the existing .r reveal only. */

/* shared diagram line-art */
.mdiagram{ color: var(--gold); width: 100%; height: auto; }
.mdiagram [data-dim]{ opacity: .42; }

/* #4 — Method: 5-stage flow rail (overview graph) */
.flow-rail{
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  position: relative;
  max-width: 920px;
  margin: 0 auto clamp(40px, 6vw, 72px);
  padding: 6px 0 0;
}
.flow-rail::before{
  content: "";
  position: absolute;
  top: 14px; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi), var(--gold-lo));
  opacity: .55;
}
.flow-rail li{
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 9px;
}
.flow-node{
  width: 15px; height: 15px;
  background: var(--bg); border: 1px solid var(--gold);
  transform: rotate(45deg);
}
.flow-rail li:nth-child(odd) .flow-node{ background: var(--gold); }
.flow-k{ font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; color: var(--gold); }
.flow-name{ font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; color: var(--ink); margin-top: -3px; }
@media (max-width: 720px){
  .flow-rail{ grid-template-columns: repeat(2, 1fr); gap: 22px 14px; max-width: 360px; }
  .flow-rail::before{ display: none; }
}

/* #4 — Method: stage cards (viz | body) */
.stages{ display: flex; flex-direction: column; gap: 16px; }
.stage{
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  background: var(--surface);
  border-radius: 8px;
  padding: clamp(22px, 3vw, 34px);
  position: relative;
}
.section--surface .stage{ background: var(--bg); }
.stage__viz{ display: flex; flex-direction: column; align-items: center; gap: 12px; }
.stage__k{ font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .2em; color: var(--gold); align-self: flex-start; }
.stage__viz .mdiagram{ max-width: 168px; }
.stage__body h3{ font-family: var(--font-display); font-size: clamp(1.5rem, 2.3vw, 1.95rem); font-weight: 480; margin-bottom: 8px; }
.stage__body > p{ color: var(--ink-2); max-width: 48em; margin-bottom: 2px; }
@media (max-width: 760px){
  .stage{ grid-template-columns: 1fr; gap: 16px; }
  .stage__viz{ flex-direction: row; align-items: center; justify-content: flex-start; gap: 18px; }
  .stage__viz .mdiagram{ max-width: 104px; flex: none; }
  .stage__k{ align-self: center; }
}

/* #5 — Capabilities: automation-flow diagram (inputs -> engine -> outputs) */
.autoflow{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  max-width: 960px;
  margin: 0 auto clamp(48px, 7vw, 84px);
  background: var(--surface);
  border-radius: 10px;
  padding: clamp(24px, 4vw, 44px);
}
.section--surface .autoflow{ background: var(--bg); }
.autoflow__col{ display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.autoflow__col--out{ align-items: flex-end; }
.autoflow__lbl{ font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.autoflow .chip{
  font-family: var(--font-body); font-size: 14px; color: var(--ink-2);
  border: 1px solid var(--hairline-2); border-radius: 999px;
  padding: 7px 15px; background: rgba(172,158,112,0.05); white-space: nowrap;
}
.autoflow__engine{ display: flex; flex-direction: column; align-items: center; gap: 12px; }
.autoflow__engine .mdiagram{ width: clamp(96px, 13vw, 128px); }
.autoflow__engine span{ font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); text-align: center; }
@media (max-width: 760px){
  .autoflow{ grid-template-columns: 1fr; gap: 16px; }
  .autoflow__col, .autoflow__col--out{ align-items: center; }
  .autoflow__engine .mdiagram{ transform: rotate(90deg); }
}

/* #5 — Capabilities: per-bucket line icon (replaces the generic .card-mark) */
.cap-icon{ color: var(--gold); width: 42px; height: 42px; margin-bottom: 22px; }
/* === /REVISIONS-2026-06-14d-inner ============================================ */


/* === REVISIONS-2026-06-14e-motion · #4/#5 diagrams come alive =================
   Mike (2026-06-14, "more motion / animated"): draw-on-scroll for every
   line-art diagram + a sequential flow-rail build + ONE gated continuous
   "flow" dot through the capabilities engine.
   CANON: one-shot scroll draws are §A-11-exempt (not autoplay-loop). The
   single continuous loop (.flow-dot) is gated 4 ways in JS — reduced-motion
   + Save-Data never start it; offscreen + hidden-tab pause it (WCAG 2.2.2 /
   canon §A-11). The undrawn pre-state is gated on body.js-motion, so a JS
   failure / reduced-motion / no-JS paints every diagram fully drawn (the
   d-batch end-state, no regression). CLS-safe: a stroke draw never reflows.
   ============================================================================= */

/* the travelling flow dot (added to the capabilities engine SVG) */
.flow-dot{ fill: var(--gold); opacity: 0; }

/* ---- undrawn pre-state: only while JS motion is live and not yet drawn ---- */
body.js-motion .stage:not(.is-drawn) .mdiagram > *:not(.flow-dot),
body.js-motion .autoflow:not(.is-drawn) .mdiagram > *:not(.flow-dot),
body.js-motion .card:not(.is-drawn) .cap-icon > *{
  stroke-dasharray: 240; stroke-dashoffset: 240;
}
body.js-motion .stage:not(.is-drawn) .mdiagram [fill="currentColor"],
body.js-motion .autoflow:not(.is-drawn) .mdiagram [fill="currentColor"]:not(.flow-dot),
body.js-motion .card:not(.is-drawn) .cap-icon [fill="currentColor"]{ opacity: 0; }
body.js-motion .flow-rail:not(.is-drawn) .flow-node{ opacity: 0; }
body.js-motion .flow-rail:not(.is-drawn)::before{ transform: scaleX(0); }

/* ---- the draw, fired when .is-drawn lands (IntersectionObserver) ----
   pop is OPACITY-ONLY: a scale would clobber the SVG rotate(45) transform
   attribute on the Build / AI-native filled diamonds. */
.stage.is-drawn .mdiagram > *:not(.flow-dot),
.autoflow.is-drawn .mdiagram > *:not(.flow-dot),
.card.is-drawn .cap-icon > *{
  animation: dgram-draw .9s cubic-bezier(0.16,1,0.3,1) forwards;
}
.stage.is-drawn .mdiagram [fill="currentColor"],
.autoflow.is-drawn .mdiagram [fill="currentColor"]:not(.flow-dot),
.card.is-drawn .cap-icon [fill="currentColor"]{
  animation: dgram-pop .5s cubic-bezier(0.16,1,0.3,1) .55s both;
}
@keyframes dgram-draw{ to{ stroke-dashoffset: 0; } }
@keyframes dgram-pop{ from{ opacity: 0; } to{ opacity: 1; } }

/* ---- #4 flow rail: connector wipes L->R, the 5 nodes light in sequence ----
   node-lite is opacity + box-shadow only (keeps each node's rotate(45deg)). */
.flow-rail::before{ transform-origin: left center; }
.flow-rail.is-drawn::before{ animation: rail-wipe .85s cubic-bezier(0.16,1,0.3,1) forwards; }
@keyframes rail-wipe{ from{ transform: scaleX(0); } to{ transform: scaleX(1); } }
.flow-rail.is-drawn .flow-node{ animation: node-lite .55s cubic-bezier(0.16,1,0.3,1) both; }
.flow-rail.is-drawn li:nth-child(1) .flow-node{ animation-delay: .12s; }
.flow-rail.is-drawn li:nth-child(2) .flow-node{ animation-delay: .26s; }
.flow-rail.is-drawn li:nth-child(3) .flow-node{ animation-delay: .40s; }
.flow-rail.is-drawn li:nth-child(4) .flow-node{ animation-delay: .54s; }
.flow-rail.is-drawn li:nth-child(5) .flow-node{ animation-delay: .68s; }
@keyframes node-lite{
  0%  { opacity: 0; }
  55% { opacity: 1; box-shadow: 0 0 0 4px rgba(172,158,112,0.20); }
  100%{ opacity: 1; box-shadow: 0 0 0 0 rgba(172,158,112,0); }
}

/* ---- #5 the one continuous loop: a gold dot flowing through the engine ---- */
body.js-motion .autoflow.is-flowing .flow-dot{
  animation: flow-travel 2.6s linear infinite;
}
@keyframes flow-travel{
  0%  { transform: translateX(0);     opacity: 0; }
  14% { opacity: 1; }
  86% { opacity: 1; }
  100%{ transform: translateX(112px); opacity: 0; }
}

/* ---- reduced-motion: force the fully-drawn static end-state, no dot ----
   (the global reduce block kills animation; this also clears the JS
   pre-state so nothing is ever stranded if RM flips on mid-session). */
@media (prefers-reduced-motion: reduce){
  .mdiagram > *, .cap-icon > *{ stroke-dashoffset: 0 !important; opacity: 1 !important; }
  .mdiagram [fill="currentColor"], .cap-icon [fill="currentColor"]{ opacity: 1 !important; }
  .flow-rail .flow-node{ opacity: 1 !important; }
  .flow-rail::before{ transform: none !important; }
  .flow-dot{ opacity: 0 !important; }
}
/* === /REVISIONS-2026-06-14e-motion ========================================== */


/* === FLAGSHIP-TRANSFORM-2026-07-06 · Waves A+B+C(+N1)+D ======================
   Direction lock: Website/audits/2026-07-06-flagship-transform/direction-lock.md
   "Machining tolerance, not spectacle" — one motion protagonist (the diamond),
   one act of virtuosity (#ourselves exploded view), quiet precision elsewhere.
   CANON: every draw is a one-shot is-drawn animation (§A-11-exempt) or a
   transform-only scrub. Defaults = drawn/separated final states, so reduced-
   motion / no-JS / JS-throw always paint complete content (§A-10).
   ============================================================================= */

/* ---- A2: first kinetic-type moment — the hero headline lands light and
   settles to weight. One-shot entrance (paint-cost acceptable per research
   memo R2); js-motion-gated so no-JS paints the static 460 immediately. */
body.js-motion .hero-copy h1{
  animation: h1-settle 1.3s cubic-bezier(0.16,1,0.3,1) .12s both;
}
@keyframes h1-settle{
  from{ font-variation-settings: "opsz" 110, "wght" 335; }
  to  { font-variation-settings: "opsz" 110, "wght" 460; }
}

/* ---- A4 + CD hero beat: "built line by line" — the static lattice draws
   itself on load. Pure CSS, zero bytes, zero CLS; on desktop the WebGL scene
   fades in over the finished drawing post-idle; 375px keeps this as its hero
   moment (three.js never downloads there, §R-21 untouched). */
@media (prefers-reduced-motion: no-preference){
  .diamond-static g path{
    stroke-dasharray: 1040; stroke-dashoffset: 1040;   /* >= outer perimeter 1019 */
    animation: hero-draw 1.05s cubic-bezier(0.16,1,0.3,1) forwards;
  }
  .diamond-static g path:nth-child(2){ animation-delay: .22s; }
  .diamond-static g path:nth-child(3){ animation-delay: .42s; }
  .diamond-static g path:nth-child(4){ animation-delay: .58s; }
}
@keyframes hero-draw{ to{ stroke-dashoffset: 0; } }

/* ---- A5: capability cards densified — per-bucket line icons (ported from
   /capabilities/, drawn by the existing dgram engine) + mono example rows. */
#capabilities .card h3{ font-size: 1.55rem; }
.cap-eg{
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink-2);
}
.cap-eg b{ color: var(--gold); font-weight: 400; padding: 0 .55em; }

/* ---- A6/T10: #automatable breaks the six-centered-beats cadence — head and
   checklist return to the left edge (supersedes the 06-14d centering per the
   approved direction lock; later-cascade override, no old-block edits). */
#automatable .checklist{
  grid-template-columns: 1fr 1fr;
  justify-content: start;
  max-width: 880px;
  margin-inline: 0;
}
@media (max-width: 680px){
  #automatable .checklist{ grid-template-columns: 1fr; }
}

/* ---- B1: the plotter tip — a small gold diamond riding the method line's
   drawing edge (transform-only; JS positions it from the scrub progress). */
.line-tip{
  position: absolute;
  left: 9px; top: 14px;
  width: 9px; height: 9px;
  margin-left: -4.5px;
  background: var(--gold-hi);
  transform: rotate(45deg);
  opacity: 0;
  will-change: transform;
}
body.js-motion .line-tip{ opacity: 1; transition: opacity .4s ease; }
@media (min-width: 901px){
  .line-tip{ left: 50%; }
}

/* ---- B2: the wire arrives — a drawn plumb line dropping into #ourselves. */
.sec-drop{
  display: block;
  width: 1px; height: 52px;
  background: var(--gold);
  margin: 0 0 26px;
  transform-origin: 50% 0;
}
body.js-motion .sec-drop:not(.is-drawn){ transform: scaleY(0); }
.sec-drop.is-drawn{ animation: drop-draw .7s cubic-bezier(0.16,1,0.3,1) forwards; }
@keyframes drop-draw{ from{ transform: scaleY(0); } to{ transform: scaleY(1); } }

/* ---- B3: #paths fork — one line enters, forks to Learn / Hire. Fixed-aspect
   SVG (no stroke distortion); one-shot draw; default = fully drawn. */
.paths-fork{
  display: block;
  width: clamp(320px, 46vw, 560px);
  height: auto;
  margin: -14px auto 28px;
  color: var(--gold);
}
.paths-fork path{ stroke: currentColor; stroke-width: 1.2; }
body.js-motion .paths-fork:not(.is-drawn) path{
  stroke-dasharray: 400; stroke-dashoffset: 400;
}
.paths-fork.is-drawn path{ animation: dgram-draw 1s cubic-bezier(0.16,1,0.3,1) forwards; }
.paths-fork.is-drawn path:nth-child(2){ animation-delay: .18s; }
.paths-fork.is-drawn path:nth-child(3){ animation-delay: .30s; }
@media (max-width: 760px){
  .paths-fork{ display: none; }   /* cards stack — the fork has no geometry to point at */
}

/* the hire path's quiet second door into /build/ (Wave D) */
.path .path-alt{ margin: 14px 0 0; font-size: 14px; }

/* ---- B4: clipboard cadence — each checklist diamond pulses gold in turn as
   the list enters. End state == base state (no hidden pre-state, so this is
   safe even if the observer never fires; RM kills the animation globally). */
#automatable .checklist.is-drawn li::before{
  animation: check-pulse .55s cubic-bezier(0.16,1,0.3,1) both;
}
#automatable .checklist.is-drawn li:nth-child(1)::before{ animation-delay: .04s; }
#automatable .checklist.is-drawn li:nth-child(2)::before{ animation-delay: .12s; }
#automatable .checklist.is-drawn li:nth-child(3)::before{ animation-delay: .20s; }
#automatable .checklist.is-drawn li:nth-child(4)::before{ animation-delay: .28s; }
#automatable .checklist.is-drawn li:nth-child(5)::before{ animation-delay: .36s; }
#automatable .checklist.is-drawn li:nth-child(6)::before{ animation-delay: .44s; }
#automatable .checklist.is-drawn li:nth-child(7)::before{ animation-delay: .52s; }
#automatable .checklist.is-drawn li:nth-child(8)::before{ animation-delay: .60s; }
#automatable .checklist.is-drawn li:nth-child(9)::before{ animation-delay: .68s; }
#automatable .checklist.is-drawn li:nth-child(10)::before{ animation-delay: .76s; }
@keyframes check-pulse{
  0%  { background: rgba(172,158,112,0.18); }
  55% { background: var(--gold); box-shadow: 0 0 0 4px rgba(172,158,112,0.20); }
  100%{ background: rgba(172,158,112,0.18); box-shadow: 0 0 0 0 rgba(172,158,112,0); }
}

/* ---- B5 + C1 + D: #ourselves becomes the editorial-asymmetry beat AND the
   showcase. Left column: off-center blockquote (gold withheld until the .em
   word) + drawn proof stamp. Right column: the exploded-diamond shop drawing.
   Below: /build/ handoff CTA + the 3-beat dogfooding frame (Decision #19 slot). */
.ourselves{ text-align: left; }
.ourselves .eyebrow{ justify-content: flex-start; }
.ours-grid{
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.ourselves blockquote{ margin: 0; max-width: 17em; }
.ourselves .rule{ margin: 36px 0 0; }
.ourselves .proof-stamp{ margin: 30px 0 0; }
body.js-motion .ourselves blockquote .em{
  color: inherit;
  transition: color .7s cubic-bezier(0.16,1,0.3,1);
}
.ourselves blockquote.em-lit .em{ color: var(--gold-hi); }

/* the proof stamp DRAWS (second signature moment) — strokes via dgram-draw */
body.js-motion #proofStamp:not(.is-drawn) path{
  stroke-dasharray: 240; stroke-dashoffset: 240;
}
#proofStamp.is-drawn path{ animation: dgram-draw .9s cubic-bezier(0.16,1,0.3,1) forwards; }
#proofStamp.is-drawn path:nth-child(2){ animation-delay: .12s; }
#proofStamp.is-drawn path:nth-child(3){ animation-delay: .24s; }
#proofStamp.is-drawn path:nth-child(4){ animation-delay: .32s; }

/* C1: the exploded view — fixed aspect (CLS 0); strokes one-shot drawn;
   separation is a transform-only scrub in JS. Static/RM/no-JS = separated
   with labels visible (the information state IS the default). */
.xview{ margin: 0; }
.xview svg{
  width: 100%; height: auto;
  aspect-ratio: 480 / 420;
  color: var(--gold);
}
.xview svg [data-dim]{ opacity: .38; }
.xview svg text{ font-family: var(--font-mono); letter-spacing: .14em; }
.xview svg .xl-k{ font-size: 11px; fill: var(--gold); }
.xview svg .xl-d{ font-size: 9.5px; fill: var(--ink-2); letter-spacing: .06em; }
.xview-cap{
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--ink-2);
}
body.js-motion .xview:not(.is-drawn) svg path,
body.js-motion .xview:not(.is-drawn) svg line{
  stroke-dasharray: 480; stroke-dashoffset: 480;
}
.xview.is-drawn svg path,
.xview.is-drawn svg line{ animation: dgram-draw 1.1s cubic-bezier(0.16,1,0.3,1) forwards; }
.xview.is-drawn svg #xp2 path, .xview.is-drawn svg #xp2 line{ animation-delay: .15s; }
.xview.is-drawn svg #xp3 path, .xview.is-drawn svg #xp3 line{ animation-delay: .30s; }

/* Wave D: the reassembly lands on the /build/ handoff */
.ours-cta{
  margin-top: clamp(32px, 4vw, 48px);
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.ours-cta .cta-note{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink-2);
}
.ours-proof{
  margin-top: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.beat-k{
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.beat p{ color: var(--ink-2); font-size: 15.5px; }
.needs-slot{
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-2);
  border: 1px dashed var(--hairline-2);
  border-radius: 4px;
  padding: 12px 14px;
  max-width: 56em;
}
@media (max-width: 880px){
  .ours-grid{ grid-template-columns: 1fr; }
  .ours-proof{ grid-template-columns: 1fr; }
}

/* ---- B6/T5/D2: contact anchored — asymmetric 2-col, form right; the left
   column carries the intro, one drawn rule, the CTAs, and the brass mark at
   scale with the locality line. Motion resolves to stillness: the rule draw
   is the section's only new choreography. Mobile keeps the centered stack. */
.contact-stack{
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.contact-intro{ text-align: left; }
.contact-intro .eyebrow{ justify-content: flex-start; }
.contact-intro h2{ margin-left: 0; }
.contact-intro .lede{ margin: 0 0 32px; }
.contact-paths{ justify-content: flex-start; }
.contact-rule{
  width: 64px; height: 1px;
  background: var(--gold);
  margin: 22px 0 26px;
  transform-origin: 0 50%;
}
body.js-motion .contact-rule:not(.is-drawn){ transform: scaleX(0); }
.contact-rule.is-drawn{ animation: rule-draw .7s cubic-bezier(0.16,1,0.3,1) forwards; }
@keyframes rule-draw{ from{ transform: scaleX(0); } to{ transform: scaleX(1); } }
.contact-place{
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: clamp(36px, 5vw, 56px);
}
.contact-place .mark{
  width: 64px; height: 64px;
  flex: none;
  color: var(--gold);
  display: inline-block;
  background-color: currentColor;
  -webkit-mask: url(/Brand/assets/logos/mcdynamic-mark.png) center / contain no-repeat;
          mask: url(/Brand/assets/logos/mcdynamic-mark.png) center / contain no-repeat;
}
.contact-place p{
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.8;
  letter-spacing: .05em;
  color: var(--ink-2);
}
.contact-form{ margin: 0; max-width: none; }
@media (max-width: 880px){
  .contact-stack{ display: block; }
  .contact-form{ max-width: 580px; margin: clamp(40px, 6vw, 64px) auto 0; }
  .contact-intro{ text-align: center; }
  .contact-intro .eyebrow{ justify-content: center; }
  .contact-intro h2{ margin-left: auto; }
  .contact-intro .lede{ margin: 0 auto 32px; }
  .contact-paths{ justify-content: center; }
  .contact-rule{ margin-inline: auto; }
  .contact-place{ justify-content: center; }
}

/* ---- N1/T9: the scroll-progress line as a designed object — a small gold
   diamond tick rides the bar tip (transform-only; JS mirrors bar progress).
   Ships site-wide via the shared shell. */
.progress i{
  position: absolute;
  top: -3px; left: 0;
  width: 8px; height: 8px;
  margin-left: -4px;
  background: var(--gold-hi);
  transform: rotate(45deg);
  will-change: transform;
}

/* ---- reduced-motion: force every new device to its drawn/final state ---- */
@media (prefers-reduced-motion: reduce){
  .diamond-static g path{ stroke-dashoffset: 0 !important; }
  #proofStamp path,
  .paths-fork path,
  .xview svg path,
  .xview svg line{ stroke-dashoffset: 0 !important; }
  .sec-drop{ transform: none !important; }
  .contact-rule{ transform: none !important; }
  .line-tip{ opacity: 0 !important; }   /* choreography, not information */
  body.js-motion .hero-copy h1{ animation: none !important; }
}
/* === /FLAGSHIP-TRANSFORM-2026-07-06 ========================================= */

/* Go-live 2026-07-09: dogfooding closer (Decision #19 filled). Standalone prose
   capstone under the 3 exhibits; reuses ink/measure tokens, no new palette. */
.ours-say{ margin-top: 22px; max-width: 46em; color: var(--ink);
  font-size: 17px; line-height: 1.55; }
@media (max-width: 640px){ .ours-say{ font-size: 16px; } }
