/* Long-page front door. Scoped so the other sheets keep their header. */

body.long {
  background: #fff;
  overflow-x: clip;
  touch-action: pan-y;
}

body.long main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 0;
}

.skip { z-index: 80; }

.measure {
  width: min(1080px, calc(100% - 2.5rem));
  margin: 0 auto;
}

#recent, #consulting, #engagement, #signalwealth, #parliament, #enterprise-ml, #record {
  scroll-margin-top: 4.5rem;
}

body.long h2 {
  margin: 0.15rem 0 0.75rem;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #0b1f3a;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

body.long p { overflow-wrap: normal; word-break: normal; hyphens: manual; }

/* ----- menu: a tablet hides it once scrolling stops. A desktop browser keeps it, with a toggle. ----- */

.floatnav {
  position: fixed;
  z-index: 40;
  top: 0.7rem;
  left: 50%;
  width: max-content;
  max-width: calc(100% - 1.25rem);
  padding: 0.4rem 0.55rem 0.4rem 0.45rem;
  border: 1px solid rgba(11, 31, 58, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 40px rgba(11, 31, 58, 0.16);
  backdrop-filter: blur(14px);
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.floatnav.is-away:not(:focus-within) {
  transform: translateX(-50%) translateY(calc(-100% - 1.1rem));
  opacity: 0;
  pointer-events: none;
}

.floatnav-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem 0.85rem;
}

.floatnav .mark img { width: 34px; height: 34px; border-radius: 8px; }

.floatnav-current,
.nav-toggle { display: none; }

.floatnav nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 0.15rem;
  font-family: "Outfit", "Avenir Next", sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
}

.floatnav nav a {
  color: #0b1f3a;
  text-decoration: none;
  white-space: nowrap;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
}

.floatnav nav a:hover,
.floatnav nav a:focus-visible { background: rgba(11, 31, 58, 0.06); }

.floatnav nav a[aria-current="true"] {
  color: #fff;
  background: #0b1f3a;
}

.nav-toggle {
  margin-left: auto;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: #0b1f3a;
  position: relative;
  border-radius: 2px;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

.nav-toggle:focus-visible {
  outline: 2px solid #0170b9;
  outline-offset: 2px;
}

/* Not a finger. The pill stays, and the button opens and closes the links. */
@media (pointer: fine), (pointer: none) {
  .floatnav.is-away,
  .floatnav.is-away:not(:focus-within) {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

@media (min-width: 721px) and (pointer: fine),
       (min-width: 721px) and (pointer: none) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    order: 2;
    margin-left: 0.1rem;
  }
  .floatnav nav { order: 1; }
  .floatnav.is-collapsed nav { display: none; }
  .floatnav:not(.is-collapsed) .nav-toggle-bar { background: transparent; }
  .floatnav:not(.is-collapsed) .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
  .floatnav:not(.is-collapsed) .nav-toggle-bar::after { top: 0; transform: rotate(-45deg); }
}

@media (max-width: 720px) {
  .floatnav {
    width: calc(100% - 1rem);
    border-radius: 18px;
    padding: 0.35rem 0.4rem;
  }
  .floatnav.is-open { border-radius: 18px; }
  .floatnav-current {
    display: block;
    margin-right: auto;
    font-family: "Outfit", "Avenir Next", sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: #0b1f3a;
    white-space: nowrap;
  }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .floatnav.is-open .nav-toggle-bar { background: transparent; }
  .floatnav.is-open .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
  .floatnav.is-open .nav-toggle-bar::after { top: 0; transform: rotate(-45deg); }
  .floatnav nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.2rem 0.2rem 0.35rem;
  }
  .floatnav.is-open nav { display: flex; }
  .floatnav nav a { padding: 0.7rem 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .floatnav { transition: none; }
  .floatnav.is-away:not(:focus-within) {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* ----- hero ----- */

.intro {
  width: min(1080px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 5.6rem 0 1.2rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.5rem 2.2rem;
  align-items: end;
}

body.long .intro .portrait img { width: min(240px, 42vw); }

body.long .intro h1 { max-width: none; }

@media (min-width: 801px) {
  body.long .intro h1 { white-space: nowrap; }
}

.role-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem 1.2rem;
  margin: 0.15rem 0 0.6rem;
}

.where {
  margin: 0 0 0 auto;
  font-family: "Outfit", "Avenir Next", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0170b9;
  white-space: nowrap;
}

.bio {
  margin: 0;
  max-width: none;
  font-size: 1.16rem;
  color: #243044;
}

/* Own line, heading face, centered. */
.bio-glow {
  margin: 0.9rem 0 0;
  font-family: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  color: #f15a29;
  text-shadow: 0 0 1px rgba(241, 90, 41, 0.35), 0 0 10px rgba(241, 90, 41, 0.32), 0 0 22px rgba(241, 90, 41, 0.16);
}

.intro .links {
  margin-top: 1.1rem;
  justify-content: center;
}

.links a.li-mark {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.links a.li-mark svg { display: block; }

.caps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 1.3rem 0 0;
  border-top: 1px solid rgba(11, 31, 58, 0.12);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2.2rem;
}

.caps li {
  position: relative;
  margin: 0;
  padding-left: 1.55rem;
}

.caps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 0.95rem;
  height: 3px;
  border-radius: 2px;
  background: #f15a29;
}

.caps span {
  font-size: 1.02rem;
  color: #1a2433;
}

/* ----- recent ----- */

/* The white intro fades into the cream over a short run, so the two read as one surface. */
.recent {
  background: linear-gradient(180deg, #fff 0, #f4f1ea 44px) #f4f1ea;
  padding: 3.2rem 0 3.4rem;
}

.recent-grid {
  display: grid;
  gap: 0.85rem;
}

.recent-lead {
  margin: 0;
  font-size: 1.36rem;
  line-height: 1.42;
  color: #0b1f3a;
}

.recent .body { margin: 0; color: #3c4654; }

#recent-title { text-wrap: balance; }

/* ----- chapters ----- */

.chapter { padding: 3.2rem 0; }

.chapter + .chapter { padding-top: 0; }

.chapter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.4rem 2rem;
  align-items: center;
}

.chapter-grid.flip > .shot { order: 2; }

.shot {
  margin: 0;
  background: #fff;
  border: 1px solid rgba(11, 31, 58, 0.12);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(11, 31, 58, 0.06);
}

.shot img { display: block; width: 100%; height: auto; }

.shot figcaption {
  margin: 0;
  padding: 0.55rem 0.8rem 0.7rem;
  font-family: "Outfit", "Avenir Next", sans-serif;
  font-size: 0.78rem;
  color: #5c6770;
}

.chapter-follow { margin-top: 1.6rem; }

.shot-tall img {
  aspect-ratio: auto;
  height: auto;
  object-fit: unset;
}

.chapter .links a { color: #0170b9; }

/* ----- enterprise ML ----- */

#enterprise-ml { padding-top: 3.2rem; border-top: 1px solid #dde5ef; }

/* Full column: the prose runs to the .measure edge. */
.ml-copy p { margin: 0 0 0.9rem; max-width: none; }

.ml-scen-lead {
  margin: 0.2rem 0 0.9rem;
  font-weight: 700;
  text-align: center;
}

.ml-scen {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.ml-scen li {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  column-gap: 0.75rem;
  align-items: center;
  align-content: start;
  margin: 0;
  padding: 1rem 1.05rem 1.05rem;
  border: 1px solid #dde5ef;
  border-radius: 12px;
  background: #f7f9fc;
}

.ml-scen .ml-ico { width: 2.6rem; height: 2.6rem; display: block; overflow: visible; }

body.long .ml-copy .ml-scen p {
  margin: 0;
  text-align: start;
  hyphens: manual;
}

body.long .ml-copy .ml-scen p:last-child {
  grid-column: 1 / -1;
  margin-top: 0.65rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #243044;
}

.ml-scen-head,
.ml-scen p:nth-child(2) {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #0b1f3a;
}

.ml-scen .ml-n { font-size: 1.7rem; color: #0b1f3a; }
.ml-scen .ml-n-hot { color: #f15a29; }
.ml-scen .ml-vs { font-size: 1rem; color: #5c6770; letter-spacing: 0.08em; }

/* The phrases that carry each example, in the site orange, like the consulting lede. */
body.long .ml-copy .ml-scen .ml-mark {
  color: #f15a29;
  font-weight: 600;
  background: none;
  text-decoration: none;
  border: 0;
  box-shadow: none;
  padding: 0;
}

@media (max-width: 820px) {
  .ml-scen { grid-template-columns: minmax(0, 1fr); gap: 0.65rem; }
  .ml-scen li { grid-template-columns: 2.1rem minmax(0, 1fr); column-gap: 0.6rem; padding: 0.75rem 0.9rem 0.8rem; }
  .ml-scen .ml-ico { width: 2.1rem; height: 2.1rem; }
  .ml-scen-head, .ml-scen p:nth-child(2) { font-size: 1.15rem; }
  .ml-scen .ml-n { font-size: 1.45rem; }
  body.long .ml-copy .ml-scen p:last-child { margin-top: 0.45rem; font-size: 0.9rem; line-height: 1.45; }
}

.ml-fig { margin: 1.6rem 0 2rem; padding: 0; }

.ml-fig .ml-svg { display: block; width: 100%; height: auto; }

.ml-fig .ml-narrow { display: none; }

.ml-fig figcaption {
  margin: 0.55rem 0 0;
  font-family: "Outfit", "Avenir Next", sans-serif;
  font-size: 0.8rem;
  color: #5c6770;
}

@media (max-width: 800px) {
  .ml-fig .ml-wide { display: none; }
  .ml-fig .ml-narrow { display: block; max-width: 520px; }
}

/* ----- parliament flow ----- */

.flow-block { margin-top: 2.4rem; }

.flow-title {
  margin: 0 0 1rem;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1;
  text-transform: uppercase;
  color: #0b1f3a;
}

.flow {
  position: relative;
  margin: 0 auto;
  width: min(440px, calc(100% - 2.5rem));
}

.flow-svg.flow-wide { display: none; }

@media (min-width: 801px) {
  .flow {
    width: min(1080px, calc(100% - 2.5rem));
    margin: 0 auto;
  }
  .flow-svg.flow-tall { display: none; }
  .flow-svg.flow-wide { display: block; }
}

.flow-svg {
  display: block;
  width: 100%;
  height: auto;
  font-family: "Outfit", sans-serif;
  overflow: visible;
}

.flow-note {
  position: absolute;
  z-index: 4;
  left: 12px;
  top: 12px;
  box-sizing: border-box;
  width: min(340px, 46%);
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  margin: 0;
  padding: 0.85rem 1.05rem;
  background: #ffffff;
  border: 1px solid #dde5ef;
  border-radius: 12px;
  box-shadow:
    0 0 0 4px rgba(142, 211, 245, 0.16),
    0 0 18px rgba(142, 211, 245, 0.28),
    0 4px 10px rgba(11, 31, 58, 0.06),
    0 18px 44px rgba(11, 31, 58, 0.14);
  font-family: "Outfit", "Avenir Next", sans-serif;
  font-size: 1.06rem;
  line-height: 1.45;
  color: #243044;
  transition: left 0.45s ease, top 0.45s ease;
  animation: flow-note-glow 5s ease-in-out infinite;
}

@keyframes flow-note-glow {
  0%, 100% {
    box-shadow:
      0 0 0 4px rgba(142, 211, 245, 0.16),
      0 0 18px rgba(142, 211, 245, 0.28),
      0 4px 10px rgba(11, 31, 58, 0.06),
      0 18px 44px rgba(11, 31, 58, 0.14);
  }
  50% {
    box-shadow:
      0 0 0 4px rgba(142, 211, 245, 0.22),
      0 0 24px rgba(142, 211, 245, 0.38),
      0 4px 10px rgba(11, 31, 58, 0.06),
      0 18px 44px rgba(11, 31, 58, 0.14);
  }
}

@media (max-width: 800px) {
  .flow-note {
    padding: 0.6rem 0.75rem;
    font-size: 0.86rem;
    line-height: 1.38;
    border-radius: 10px;
  }
}

.flow-note,
.flow-line {
  text-align: start;
  text-align-last: start;
  hyphens: manual;
}

.flow-line { margin: 0; }

.flow-note.is-open {
  aspect-ratio: auto;
  display: block;
  min-height: 0;
  max-height: min(48vh, 340px);
  overflow: auto;
  border-color: rgba(241, 90, 41, 0.45);
  animation: none;
  box-shadow:
    0 0 0 4px rgba(241, 90, 41, 0.10),
    0 0 18px rgba(241, 90, 41, 0.16),
    0 4px 10px rgba(11, 31, 58, 0.06),
    0 18px 44px rgba(11, 31, 58, 0.14);
}

.flow-detail h3 {
  margin: 0;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
  color: #0b1f3a;
}

.flow-detail p { margin: 0.45rem 0 0; }

/* Only the heading shares a line with Close; the body runs the full width. */
.flow-note .flow-detail h3 { padding-right: 3.6rem; }

.flow-detail-close {
  position: absolute;
  top: 0.45rem;
  right: 0.5rem;
  border: 0;
  background: transparent;
  color: #0170b9;
  font-family: "Outfit", "Avenir Next", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.flow-svg .fn { cursor: pointer; }

.flow-svg .fn.is-open > rect:first-child,
.flow-svg .fn:focus-visible > rect:first-child {
  stroke: #f15a29;
  stroke-width: 3;
}

/* An orange stroke vanishes on an orange box, so the open box also gets a halo. */
.flow-svg .fn.is-open > rect:first-child,
.flow-svg .fn:focus-visible > rect:first-child {
  filter: drop-shadow(0 0 3px rgba(241, 90, 41, 0.9)) drop-shadow(0 0 7px rgba(241, 90, 41, 0.55));
}

.flow-svg .fb { transition: opacity 0.35s ease; }
.flow-svg[data-lit] .fb { opacity: 0.28; }
.flow-svg[data-lit~="low"] .fb-low,
.flow-svg[data-lit~="high"] .fb-high,
.flow-svg[data-lit~="stale"] .fb-stale,
.flow-svg[data-lit~="prose"] .fb-prose,
.flow-svg[data-lit~="held"] .fb-held,
.flow-svg[data-lit~="kept"] .fb-kept,
.flow-svg[data-lit] .fb.is-open { opacity: 1; }

.flow-svg .rung { transition: opacity 0.3s ease; }
.flow-svg[data-rung="035"] .rung[data-rung="035"],
.flow-svg[data-rung="085"] .rung[data-rung="085"] { opacity: 0.14; }

.flow-svg .chips-a { display: none; }
.flow-svg[data-story="a"] .chips-a { display: inline; }
.flow-svg[data-story="a"] .chips-b { display: none; }

.flow-svg .pf-s { display: none; }
.flow-svg[data-shape="dot"] .pf-s[data-shape="dot"],
.flow-svg[data-shape="ticket"] .pf-s[data-shape="ticket"],
.flow-svg[data-shape="square"] .pf-s[data-shape="square"],
.flow-svg[data-shape="brick"] .pf-s[data-shape="brick"],
.flow-svg[data-shape="pine"] .pf-s[data-shape="pine"] { display: inline; }

.flow-svg .pf-shape { transition: transform 0.4s ease; }
.flow-svg .pf-s,
.flow-svg .pf-s *,
.flow-svg .pf-halo { transition: fill 0.3s ease, stroke 0.3s ease; }

@media (prefers-reduced-motion: reduce) {
  .flow-svg .fb,
  .flow-svg .rung,
  .flow-svg .pf-shape,
  .flow-svg .pf-s,
  .flow-svg .pf-s *,
  .flow-svg .pf-halo { transition: none; }
}

/* ----- consulting tower ----- */

.tower { background: #0b1f3a; }

/* 1180px is an iPad Air 11 in landscape. 1080px is the same column as .measure. */
.tower-stage {
  position: relative;
  overflow: clip;
  background: #0b1f3a;
  width: min(1080px, calc(100% - 2.5rem));
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.tower .scroll-track {
  position: absolute;
  inset: 0;
  overflow: clip;
  pointer-events: none;
  z-index: 0;
}

.tower .scroll-track img {
  width: 100%;
  height: 155%;
  max-width: none;
  object-fit: cover;
  object-position: center 18%;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.tower .diagonal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}

.tower .content-container {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 70vh;
  overflow: clip;
}

.tower .content {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: #f4f1ea;
  box-sizing: border-box;
}

.tower .west { clip-path: polygon(0 0, 60% 0, 40% 100%, 0 100%); z-index: 2; }
.tower .east { clip-path: polygon(60% 0, 100% 0, 100% 100%, 40% 100%); z-index: 2; }

.tower .page-lead {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: min(1080px, calc(100% - 2.5rem));
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding: 2.4rem 0 1.7rem;
  background: #0b1f3a;
  color: #f4f1ea;
}

.tower .page-lead .kicker { color: #8ed3f5; margin-bottom: 0.35rem; }

.tower .page-lead h2 {
  color: #fff;
  text-shadow: none;
  font-size: clamp(2.6rem, 4.6vw, 4.2rem);
}

.tower .page-lead p {
  margin: 0.55rem 0 0;
  max-width: none;
  font-size: 1.05rem;
  line-height: 1.45;
  text-shadow: none;
}

/* The sentence runs the full column, to the same right edge as the stage. */
.tower .page-lead .consult-lede {
  display: block;
  box-sizing: border-box;
  width: 100%;
  color: #f4f1ea;
}

/* The phrases that carry the offer, in the site orange on the navy band. */
.tower .page-lead .consult-lede .consult-mark {
  color: #f15a29;
  font-weight: 600;
  background: none;
  text-decoration: none;
  letter-spacing: normal;
}

.tower .trapezoid-block {
  position: relative;
  box-sizing: border-box;
  border-top: 3px solid rgba(249, 246, 239, 0.92);
  color: #f4f1ea;
}

.tower .trapezoid-block > .inner {
  padding: 1rem 0.7rem 0.95rem;
}

.tower .content.west .trapezoid-block > .inner {
  margin-left: 0;
  margin-right: auto;
  padding-left: 1.1rem;
  padding-right: 0.6rem;
}

.tower .content.east .trapezoid-block > .inner {
  margin-left: auto;
  margin-right: 0;
  padding-right: 1.1rem;
  padding-left: 0.6rem;
}

.tower .trapezoid-block p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.45;
  text-shadow: 0 1px 2px rgba(11, 31, 58, 0.45);
}

.tower .mini {
  width: 100%;
  margin: 0.75rem 0 0.1rem;
  padding: 0.45rem 0.5rem 0.3rem;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
  box-sizing: border-box;
}

.tower .mini svg { display: block; width: 100%; height: auto; }

.tower .heading-plate {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: 1rem 1.2rem;
}

.tower .east .heading-plate,
.tower .west .heading-plate {
  justify-content: center;
  text-align: center;
  padding-left: 0.9rem;
  padding-right: 0.9rem;
}

.tower .heading-plate h3 {
  margin: 0;
  box-sizing: border-box;
  max-width: 100%;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 4.4vw, 4.1rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.8), 0 0 18px rgba(0, 0, 0, 0.45);
  padding: 0.7rem 0.8rem;
  background: radial-gradient(closest-side, rgba(11, 31, 58, 0.66), rgba(11, 31, 58, 0.38) 62%, rgba(11, 31, 58, 0));
}

#c-west-1 { background: rgba(11, 31, 58, 0.72); }
#c-east-2 { background: rgba(11, 31, 58, 0.5); }
#c-west-3 { background: rgba(11, 31, 58, 0.78); }
#c-east-4 { background: rgba(11, 31, 58, 0.62); }

.photo-credit {
  margin: 0;
  padding: 0.85rem 1rem 1.15rem;
  background: #0b1f3a;
  color: rgba(244, 241, 234, 0.72);
  font-family: "Outfit", "Avenir Next", sans-serif;
  font-size: 0.75rem;
  text-align: center;
}

.photo-credit a { color: #9fd0f2; }

/* ----- soft seams around the tower -----
   Same amount of softness as a footer glow: a faint sky hairline on the navy
   edge, a short sky light, and a short navy shade that spills into the light band.
   The pseudo-elements are inset from the sides so nothing widens the page. */

.tower {
  position: relative;
  padding-bottom: 1.6rem;
}

/* Sky hairline with a short sky light inside the navy edge. */
.tower::before,
.tower::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  height: 22px;
  pointer-events: none;
}

.tower::before {
  top: 0;
  background: linear-gradient(180deg, rgba(142, 211, 245, 0.5) 0, rgba(142, 211, 245, 0.5) 1px, rgba(142, 211, 245, 0.1) 1px, rgba(142, 211, 245, 0) 100%);
}

.tower::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(142, 211, 245, 0.5) 0, rgba(142, 211, 245, 0.5) 1px, rgba(142, 211, 245, 0.1) 1px, rgba(142, 211, 245, 0) 100%);
}

/* A short navy shade on the light side, so cream and white lean into the band. */
.recent,
.scr { position: relative; }

.recent::after,
.scr::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 30px;
  pointer-events: none;
}

.recent::after { bottom: 0; background: linear-gradient(180deg, rgba(11, 31, 58, 0), rgba(11, 31, 58, 0.09)); }
.scr::before { top: 0; background: linear-gradient(0deg, rgba(11, 31, 58, 0), rgba(11, 31, 58, 0.09)); }

/* The skyline feathers into the navy on all four sides, so it reads as sky
   behind the columns rather than a rectangle laid on the band. */
.tower .scroll-track,
.tower .diagonal {
  -webkit-mask-image:
    linear-gradient(180deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%),
    linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(180deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%),
    linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
  mask-composite: intersect;
}

/* ----- SCR ----- */

.scr { padding: 3.2rem 0 3.6rem; background: #fff; }

.scr .lede { max-width: none; margin: 0; color: #243044; }

.scr-board {
  margin-top: 1.5rem;
  background: #fff;
  border: 1px solid rgba(11, 31, 58, 0.12);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(11, 31, 58, 0.08);
  overflow: hidden;
}

.scr-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid rgba(11, 31, 58, 0.1);
}

.scr-tabs button {
  position: relative;
  margin: 0;
  padding: 0.95rem 0.4rem 0.85rem;
  border: 0;
  background: transparent;
  font-family: "Outfit", "Avenir Next", sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5c6770;
  cursor: pointer;
}

.scr-tabs button[aria-selected="true"] { color: #0b1f3a; }

.scr-tabs button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: #f15a29;
  transform-origin: left center;
  animation: scr-fill 16s linear;
}

.scr.is-paused .scr-tabs button[aria-selected="true"]::after,
.scr.is-still .scr-tabs button[aria-selected="true"]::after {
  animation: none;
  transform: none;
}

@keyframes scr-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.scene { display: none; }
.scene.is-on { display: block; }

.scene-art > svg { display: block; width: 100%; height: auto; }
.scene-art > .art-tall { display: none; }

@media (max-width: 640px) {
  .scene-art > .art-wide { display: none; }
  .scene-art > .art-tall { display: block; }
}

.scene-copy {
  padding: 0.3rem 1.25rem 1.2rem;
  max-width: none;
}

.scene-copy p { margin: 0.35rem 0 0; }

.scene-copy ul {
  margin: 0.45rem 0 0;
  padding: 0 0 0 1.15rem;
}

.scene-copy li {
  margin: 0.4rem 0 0;
  padding: 0;
}

.scene-copy li::marker { color: #f15a29; }

.scr-tools {
  display: flex;
  justify-content: flex-end;
  padding: 0 0.8rem 0.8rem;
}

.scr-tools button {
  border: 1px solid rgba(11, 31, 58, 0.2);
  background: #fff;
  color: #0b1f3a;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-family: "Outfit", "Avenir Next", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.scr.is-still .scene {
  display: block;
  border-top: 1px solid rgba(11, 31, 58, 0.08);
}

.scr.is-still .scene:first-child { border-top: 0; }

@media (prefers-reduced-motion: reduce) {
  .scr-tabs button[aria-selected="true"]::after { animation: none; }
  .tower .scroll-track img { transform: none !important; }
  .flow-note { transition: none; animation: none; }
}

/* ----- resume ----- */

/* White fades into the pale blue over a short run instead of meeting at a rule. */
.record {
  background: linear-gradient(180deg, #fff 0, #f7f9fc 40px) #f7f9fc;
  padding: 3.2rem 0 2rem;
}

.posts { list-style: none; margin: 1.4rem 0 0; padding: 0; }

.post {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 0.8rem 1.4rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(11, 31, 58, 0.12);
}

.post h3 {
  margin: 0;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #0b1f3a;
  line-height: 1;
}

.post .when { margin: 0.2rem 0 0.45rem; }

.post p { margin: 0; }

.post .more { margin-top: 0.55rem; }

.post .more a {
  font-family: "Outfit", "Avenir Next", sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: #0170b9;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 2.4rem;
}

.brand img { width: auto; height: auto; max-height: 52px; }

.brand img.cn { max-width: 120px; }
.brand img.word { max-width: 150px; }
.brand img.ge { max-height: 58px; }
/* Pennsylvania flag. Width sits between the rendered CN wordmark and the Morgan Stanley wordmark. */
.brand img.pa {
  width: 132px;
  max-width: 132px;
  max-height: none;
  height: auto;
}

.mark-code {
  display: inline-block;
  padding: 0.15rem 0.45rem 0.05rem;
  border-radius: 4px;
  background: #0b1f3a;
  color: #f4f1ea;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
  line-height: 1.3;
}

.shelf {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(11, 31, 58, 0.12);
  font-family: "Outfit", "Avenir Next", sans-serif;
  font-size: 0.86rem;
}

.shelf a { color: #0170b9; }

.colophon {
  margin: 1.2rem 0 0;
  color: #5c6770;
  font-family: "Outfit", "Avenir Next", sans-serif;
  font-size: 0.85rem;
}

.colophon a { color: #0170b9; }

@media (max-width: 800px) {
  .intro { padding-top: 5rem; }
  .role-line { flex-wrap: wrap; }
  .where { letter-spacing: 0.12em; }
  .intro-grid { grid-template-columns: 1fr; }
  body.long .intro .portrait { margin-inline: auto; }
  body.long .intro .portrait img { width: min(180px, 52vw); }
  body.long .intro h1 { max-width: none; }
  .recent-grid { grid-template-columns: minmax(0, 1fr); }
  .caps,
  .chapter-grid,
  .chapter-grid.flip { grid-template-columns: 1fr; }
  .chapter-grid.flip > .shot { order: 0; }
  .post { grid-template-columns: 1fr; gap: 0.45rem; }

  .tower .diagonal { display: none; }
  .tower .content-container {
    display: flex;
    flex-direction: column;
    height: auto !important;
    min-height: 0;
    overflow: visible;
  }
  .tower .content { display: contents; }
  .tower .page-lead { order: 1; max-width: none; }
  #c-east-1 { order: 2; }
  #c-west-1 { order: 3; }
  #c-west-2 { order: 4; }
  #c-east-2 { order: 5; }
  #c-east-3 { order: 6; }
  #c-west-3 { order: 7; }
  #c-west-4 { order: 8; }
  #c-east-4 { order: 9; }
  .tower .heading-plate {
    height: auto !important;
    justify-content: flex-start !important;
    text-align: left !important;
    margin-top: 1.6rem;
    padding: 0.85rem 1.1rem 0.7rem !important;
    background: rgba(11, 31, 58, 0.62);
  }
  .tower .heading-plate h3 {
    max-width: none !important;
    padding: 0;
    background: none;
    font-size: 2.3rem;
  }
  .tower .trapezoid-block {
    width: auto !important;
    margin: 0 !important;
  }
  .tower .page-lead {
    padding: 1.6rem 0 1.2rem;
    background: #0b1f3a;
  }
  .tower .trapezoid-block > .inner,
  .tower .content.west .trapezoid-block > .inner,
  .tower .content.east .trapezoid-block > .inner {
    max-width: none !important;
    margin: 0;
    padding: 1rem 1.1rem 1rem;
  }
  .scr-tabs button { letter-spacing: 0.06em; font-size: 0.68rem; }
}

@media (max-width: 420px) {
  .scr-tabs button { letter-spacing: 0.02em; font-size: 0.64rem; padding-inline: 0.2rem; }
}

/* ----- enterprise ML schema -----
   Five tables as cards. The sequence train, store, test plays as a CSS loop.
   The radios step through it by hand. Callouts stay visible, so a finger
   needs no hover: a tap focuses the column and lights it with its arrow. */

.ml-schema {
  margin: 1.6rem 0 2rem;
  padding: clamp(0.9rem, 2.4vw, 1.5rem);
  background: #f7f9fc;
  border: 1px solid #dde5ef;
  border-radius: 18px;
  min-width: 0;
}

.mls-control {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.mls-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.mls-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border: 1px solid #dde5ef;
  border-radius: 999px;
  background: #ffffff;
  color: #0b1f3a;
  font-family: "Outfit", "Avenir Next", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.mls-pill b {
  display: inline-grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: #dde5ef;
  color: #0b1f3a;
  font-size: 0.8rem;
}

.mls-control input:checked + .mls-pill {
  background: #0b1f3a;
  border-color: #0b1f3a;
  color: #ffffff;
}

.mls-control input:checked + .mls-pill b { background: #f15a29; color: #ffffff; }

.mls-control input:focus-visible + .mls-pill {
  outline: 2px solid #0170b9;
  outline-offset: 2px;
}

.mls-now {
  display: grid;
  margin: 0.8rem 0 1.1rem;
  font-family: "Outfit", "Avenir Next", sans-serif;
  font-size: 1.02rem;
  line-height: 1.45;
  color: #243044;
}

.mls-now > span { display: block; }
.mls-now b { color: #0b1f3a; }

.mls-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.5rem;
  align-items: start;
}

.mls-lane {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mls-train {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.6rem;
  margin-bottom: 1rem;
  padding: 0.75rem 0.85rem;
  background: #f4f1ea;
  border: 1px solid #dde5ef;
  border-radius: 12px;
  font-family: "Outfit", "Avenir Next", sans-serif;
}

.mls-examples { display: inline-flex; gap: 0.3rem; }

.mls-examples i {
  display: block;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: #0170b9;
}

.mls-arrow { color: #5c6770; font-weight: 600; }

.mls-trainer {
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  background: #0b1f3a;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.2;
}

.mls-trainer small {
  display: block;
  color: #8ed3f5;
  font-weight: 500;
  font-size: 0.74rem;
}

.mls-model-chip {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: #8ed3f5;
  color: #0b1f3a;
  font-weight: 600;
  font-size: 0.88rem;
}

.mls-tbl {
  position: relative;
  background: #ffffff;
  border: 1px solid #dde5ef;
  border-radius: 12px;
  min-width: 0;
}

.mls-tbl header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.2rem 0.8rem;
  padding: 0.6rem 0.85rem;
  border-radius: 11px 11px 0 0;
  background: #0b1f3a;
  color: #8ed3f5;
  font-family: "Outfit", "Avenir Next", sans-serif;
  font-size: 0.82rem;
}

.mls-tbl header code {
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.mls-tbl-flag header { background: #f15a29; color: #ffffff; }

.mls-def {
  margin: 0;
  padding: 0.5rem 0.85rem 0.1rem;
  font-family: "Outfit", "Avenir Next", sans-serif;
  font-size: 0.88rem;
  color: #5c6770;
}

.mls-uniq code { color: #0b1f3a; font-size: 0.82rem; }

.mls-cols {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0.5rem 0.3rem;
}

.mls-col {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 0.15rem 0.8rem;
  margin: 0;
  padding: 0.32rem 0.35rem;
  border-top: 1px solid #f7f9fc;
  border-radius: 8px;
}

.mls-col:first-child { border-top: 0; }

.mls-col code {
  font-size: 0.86rem;
  color: #0b1f3a;
  overflow-wrap: anywhere;
}

.mls-col em {
  font-style: normal;
  text-align: right;
  font-family: "Outfit", "Avenir Next", sans-serif;
  font-size: 0.8rem;
  color: #5c6770;
}

/* A key column: the name is underlined in orange. A tap, a click or keyboard
   focus opens its reason in a popover whose arrow points at that name. */
.mls-key { position: relative; }

.mls-tip {
  justify-self: start;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mls-tip code {
  display: inline-block;
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
  box-shadow: inset 0 -2px 0 #f15a29;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mls-tip:hover code { background: #f4f1ea; }
.mls-tip:focus { outline: none; }
.mls-tip:focus-visible code { box-shadow: 0 0 0 2px #0170b9; }

.mls-key.is-open code,
.mls-tip[aria-expanded="true"] code { background: #f15a29; color: #ffffff; box-shadow: none; }

.mls-why {
  --ax: 2.5rem;
  display: none;
  position: absolute;
  z-index: 30;
  left: 0;
  top: calc(100% + 0.45rem);
  width: min(21rem, 100%);
  margin: 0;
  padding: 0.65rem 0.85rem 0.7rem;
  border-radius: 10px;
  background: #0b1f3a;
  color: #ffffff;
  font-family: "Outfit", "Avenir Next", sans-serif;
  font-size: 0.92rem;
  line-height: 1.42;
  text-align: left;
  hyphens: manual;
  max-width: none;
  box-shadow: 0 10px 26px rgba(11, 31, 58, 0.24);
}

/* The arrow, aimed at the column name. */
.mls-why::before {
  content: "";
  position: absolute;
  left: calc(var(--ax) - 7px);
  top: -7px;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid #0b1f3a;
}

.mls-why.is-above { top: auto; bottom: calc(100% + 0.45rem); }
.mls-why.is-above::before { top: auto; bottom: -7px; border-bottom: 0; border-top: 7px solid #0b1f3a; }

.mls-key.is-open .mls-why { display: block; animation: mls-pop 0.18s ease-out; }

/* The long page justifies .chapter p; a popover reads better ragged. */
body.long .ml-schema .mls-why { text-align: left; text-align-last: auto; hyphens: manual; }

/* Without the script, focus alone shows the reason. */
.ml-schema:not(.mls-js) .mls-key:focus-within .mls-why { display: block; }

@keyframes mls-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Foreign keys: dotted arrows from the child column to the parent table,
   drawn by home.js into the margins so they never cross a column name. */
.mls-board { position: relative; }

.mls-fks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 2;
}

.mls-fks .fk-line {
  fill: none;
  stroke: #0170b9;
  stroke-width: 2;
  stroke-dasharray: 0.1 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mls-fks .fk-dot { fill: #0170b9; }

.mls-col[data-fk] code { color: #0170b9; }

.mls-lane > .mls-tbl + .mls-tbl { margin-top: 1.1rem; }

/* One synthetic row under each table. */
.mls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0.2rem 0.75rem 0.8rem;
  padding: 0.45rem 0.5rem;
  border: 1px dashed #dde5ef;
  border-radius: 8px;
  background: #f7f9fc;
  max-width: none;
}

.mls-row::before {
  content: "row";
  align-self: center;
  margin-right: 0.15rem;
  font-family: "Outfit", "Avenir Next", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5c6770;
}

.mls-row span {
  padding: 0.12rem 0.5rem;
  border: 1px solid #dde5ef;
  border-radius: 999px;
  background: #ffffff;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.76rem;
  color: #243044;
  overflow-wrap: anywhere;
}

.mls-row .mls-land { background: #0170b9; border-color: #0170b9; color: #ffffff; }
.mls-row-flag span:first-child { background: #f15a29; border-color: #f15a29; color: #ffffff; }

.ml-schema figcaption {
  margin: 1rem 0 0;
  font-family: "Outfit", "Avenir Next", sans-serif;
  font-size: 0.82rem;
  color: #5c6770;
}

/* Stepping by hand: the current step is lit, later rows wait. */
.ml-schema:has(#mls-1:checked) .mls-tbl.mls-at-1,
.ml-schema:has(#mls-1:checked) .mls-train,
.ml-schema:has(#mls-2:checked) .mls-tbl.mls-at-2,
.ml-schema:has(#mls-3:checked) .mls-tbl.mls-at-3 {
  border-color: #f15a29;
  box-shadow: 0 0 0 2px #f15a29;
}

.ml-schema:has(#mls-1:checked) .mls-row:is(.mls-at-2, .mls-at-3, .mls-at-3f),
.ml-schema:has(#mls-2:checked) .mls-row:is(.mls-at-3, .mls-at-3f) { visibility: hidden; }

.ml-schema:has(#mls-1:checked) .mls-now > span:not(.mls-now-1),
.ml-schema:has(#mls-2:checked) .mls-now > span:not(.mls-now-2),
.ml-schema:has(#mls-3:checked) .mls-now > span:not(.mls-now-3) { display: none; }

/* Playing: one loop of 15 seconds. Train, then store, then test. */
@media (prefers-reduced-motion: no-preference) {
  .ml-schema:has(#mls-play:checked) .mls-now > span { grid-area: 1 / 1; opacity: 0; }
  .ml-schema:has(#mls-play:checked) .mls-now-1 { animation: mls-say-1 15s infinite; }
  .ml-schema:has(#mls-play:checked) .mls-now-2 { animation: mls-say-2 15s infinite; }
  .ml-schema:has(#mls-play:checked) .mls-now-3 { animation: mls-say-3 15s infinite; }

  .ml-schema:has(#mls-play:checked) .mls-pill-1 { animation: mls-pill-1 15s infinite; }
  .ml-schema:has(#mls-play:checked) .mls-pill-2 { animation: mls-pill-2 15s infinite; }
  .ml-schema:has(#mls-play:checked) .mls-pill-3 { animation: mls-pill-3 15s infinite; }

  .ml-schema:has(#mls-play:checked) .mls-train,
  .ml-schema:has(#mls-play:checked) .mls-tbl.mls-at-1 { animation: mls-lit-1 15s infinite; }
  .ml-schema:has(#mls-play:checked) .mls-tbl.mls-at-2 { animation: mls-lit-2 15s infinite; }
  .ml-schema:has(#mls-play:checked) .mls-tbl.mls-at-3 { animation: mls-lit-3 15s infinite; }

  .ml-schema:has(#mls-play:checked) .mls-examples i { animation: mls-feed 15s infinite; }
  .ml-schema:has(#mls-play:checked) .mls-examples i:nth-child(2) { animation-delay: 0.12s; }
  .ml-schema:has(#mls-play:checked) .mls-examples i:nth-child(3) { animation-delay: 0.24s; }
  .ml-schema:has(#mls-play:checked) .mls-examples i:nth-child(4) { animation-delay: 0.36s; }
  .ml-schema:has(#mls-play:checked) .mls-examples i:nth-child(5) { animation-delay: 0.48s; }
  .ml-schema:has(#mls-play:checked) .mls-examples i:nth-child(6) { animation-delay: 0.6s; }
  .ml-schema:has(#mls-play:checked) .mls-model-chip { animation: mls-in-1 15s infinite; }

  .ml-schema:has(#mls-play:checked) .mls-row.mls-at-1 { animation: mls-in-1 15s infinite; }
  .ml-schema:has(#mls-play:checked) .mls-row.mls-at-2 { animation: mls-in-2 15s infinite; }
  .ml-schema:has(#mls-play:checked) .mls-land-a { animation: mls-land-a 15s infinite; }
  .ml-schema:has(#mls-play:checked) .mls-land-b { animation: mls-land-b 15s infinite; }
  .ml-schema:has(#mls-play:checked) .mls-row.mls-at-3 { animation: mls-in-3 15s infinite; }
  .ml-schema:has(#mls-play:checked) .mls-row.mls-at-3f { animation: mls-in-3f 15s infinite; }
}

@keyframes mls-say-1 { 0%, 31% { opacity: 1; } 33%, 100% { opacity: 0; } }
@keyframes mls-say-2 { 0%, 32% { opacity: 0; } 34%, 63% { opacity: 1; } 65%, 100% { opacity: 0; } }
@keyframes mls-say-3 { 0%, 64% { opacity: 0; } 66%, 97% { opacity: 1; } 99%, 100% { opacity: 0; } }

@keyframes mls-pill-1 { 0%, 31% { background: #0170b9; border-color: #0170b9; color: #ffffff; } 33%, 100% { background: #ffffff; border-color: #dde5ef; color: #0b1f3a; } }
@keyframes mls-pill-2 { 0%, 32% { background: #ffffff; border-color: #dde5ef; color: #0b1f3a; } 34%, 63% { background: #0170b9; border-color: #0170b9; color: #ffffff; } 65%, 100% { background: #ffffff; border-color: #dde5ef; color: #0b1f3a; } }
@keyframes mls-pill-3 { 0%, 64% { background: #ffffff; border-color: #dde5ef; color: #0b1f3a; } 66%, 97% { background: #0170b9; border-color: #0170b9; color: #ffffff; } 99%, 100% { background: #ffffff; border-color: #dde5ef; color: #0b1f3a; } }

@keyframes mls-lit-1 { 0%, 31% { border-color: #f15a29; box-shadow: 0 0 0 2px #f15a29; } 33%, 100% { border-color: #dde5ef; box-shadow: 0 0 0 0 #f15a29; } }
@keyframes mls-lit-2 { 0%, 32% { border-color: #dde5ef; box-shadow: 0 0 0 0 #f15a29; } 34%, 63% { border-color: #f15a29; box-shadow: 0 0 0 2px #f15a29; } 65%, 100% { border-color: #dde5ef; box-shadow: 0 0 0 0 #f15a29; } }
@keyframes mls-lit-3 { 0%, 64% { border-color: #dde5ef; box-shadow: 0 0 0 0 #f15a29; } 66%, 97% { border-color: #f15a29; box-shadow: 0 0 0 2px #f15a29; } 99%, 100% { border-color: #dde5ef; box-shadow: 0 0 0 0 #f15a29; } }

@keyframes mls-feed {
  0%, 3% { transform: translateX(0); opacity: 1; }
  20% { transform: translateX(2.6rem); opacity: 0; }
  21%, 30% { transform: translateX(0); opacity: 0; }
  34%, 100% { transform: translateX(0); opacity: 1; }
}

@keyframes mls-in-1 { 0%, 14% { opacity: 0; transform: translateY(-8px); } 20%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes mls-in-2 { 0%, 35% { opacity: 0; transform: translateY(-8px); } 40%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes mls-land-a { 0%, 43% { opacity: 0; transform: translateY(-18px); } 48%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes mls-land-b { 0%, 50% { opacity: 0; transform: translateY(-18px); } 55%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes mls-in-3 { 0%, 67% { opacity: 0; transform: translateY(-8px); } 72%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes mls-in-3f { 0%, 77% { opacity: 0; transform: translateY(-8px); } 82%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .mls-tip code { transition: none; }
  .mls-key.is-open .mls-why { animation: none; }
}

/* ----- the science, in plain words ----- */

.ml-sci {
  margin: 2rem 0 0;
  padding: clamp(1.1rem, 3vw, 2.1rem);
  background: #0b1f3a;
  color: #f4f1ea;
  border-radius: 18px;
}

.ml-sci-kicker {
  margin: 0;
  font-family: "Outfit", "Avenir Next", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8ed3f5;
}

.ml-sci h3 {
  margin: 0.2rem 0 0;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
  text-transform: uppercase;
  color: #ffffff;
}

.ml-band {
  position: relative;
  height: 76px;
  margin: 1.3rem 0 0.4rem;
}

.ml-band > * { position: absolute; }

.mb-track { left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: #5c6770; }
.mb-iqr { left: 36%; width: 10.5%; top: 50%; height: 28px; margin-top: -14px; border-radius: 6px; background: #8ed3f5; }

.mb-dot {
  top: 50%;
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #0b1f3a;
}

.mb-wild { background: #dde5ef; }

.mb-med { left: 40%; top: 10px; bottom: 10px; width: 3px; margin-left: -1.5px; background: #ffffff; }
.mb-avg { left: 37.2%; top: 14px; bottom: 14px; width: 0; border-left: 2px dashed #dde5ef; }

.mb-gap {
  left: 46.5%;
  width: 39.5%;
  top: 6px;
  height: 10px;
  border: 2px solid #f15a29;
  border-bottom: 0;
}

.mb-this {
  left: 86%;
  top: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  background: #f15a29;
  border: 3px solid #ffffff;
}

.mb-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.2rem;
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  font-family: "Outfit", "Avenir Next", sans-serif;
  font-size: 0.84rem;
  color: #dde5ef;
}

.mb-legend li { display: inline-flex; align-items: center; gap: 0.45rem; margin: 0; }
.mb-legend i { display: inline-block; }
.lg-med { width: 3px; height: 16px; background: #ffffff; }
.lg-iqr { width: 22px; height: 12px; border-radius: 4px; background: #8ed3f5; }
.lg-avg { width: 0; height: 16px; border-left: 2px dashed #dde5ef; }
.lg-this { width: 12px; height: 12px; border-radius: 50%; background: #f15a29; border: 2px solid #ffffff; }

.ml-terms {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 1.4rem;
  margin: 0;
}

.ml-terms > div { padding-top: 0.6rem; border-top: 2px solid #0170b9; min-width: 0; }

.ml-terms dt {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.05;
  text-transform: uppercase;
  color: #ffffff;
}

.ml-terms dt small {
  display: block;
  margin-top: 0.15rem;
  font-family: "Outfit", "Avenir Next", sans-serif;
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #8ed3f5;
}

.ml-terms dd {
  margin: 0.35rem 0 0;
  font-size: 0.98rem;
  line-height: 1.45;
  color: #dde5ef;
}

.ml-sci-why {
  margin: 1.5rem 0 0;
  max-width: none;
  font-size: 1.08rem;
  line-height: 1.5;
  color: #ffffff;
}

.ml-sci-why b { color: #8ed3f5; }

.ml-sci-pic {
  margin: 1rem 0 0;
  padding-top: 1rem;
  max-width: none;
  border-top: 1px solid #243044;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #dde5ef;
}

.ml-sci-pic span {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.08rem 0.55rem;
  border-radius: 999px;
  background: #f15a29;
  color: #ffffff;
  font-family: "Outfit", "Avenir Next", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  vertical-align: 0.12em;
}

@media (max-width: 980px) {
  .ml-terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .mls-board { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .ml-terms { grid-template-columns: minmax(0, 1fr); }
  .mls-pill { padding: 0.45rem 0.75rem; font-size: 0.86rem; }
  .mls-col em { font-size: 0.76rem; }
}

/* ----- SignalWealth, the closer ----- */

.sw-hero {
  background: #0b1f3a;
  color: #f4f1ea;
  border-top: 6px solid #f15a29;
  padding: clamp(3.6rem, 9vw, 7rem) 0 clamp(2.6rem, 6vw, 4.6rem);
}

.sw-kicker {
  margin: 0;
  font-family: "Outfit", "Avenir Next", sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8ed3f5;
}

body.long .sw-hero h2 {
  margin: 0.35rem 0 0.4rem;
  font-size: clamp(3.4rem, 12.5vw, 10rem);
  line-height: 0.84;
  letter-spacing: 0;
  color: #ffffff;
}

.sw-sub {
  margin: 0;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #f15a29;
}

.sw-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 1.6rem 3rem;
  align-items: start;
  margin-top: clamp(1.6rem, 3.5vw, 2.6rem);
}

.sw-lead {
  margin: 0;
  max-width: none;
  font-size: clamp(1.35rem, 2.4vw, 1.95rem);
  line-height: 1.3;
  color: #ffffff;
}

.sw-facts { list-style: none; margin: 0; padding: 0; }

.sw-facts li {
  margin: 0;
  padding: 0.65rem 0 0.7rem;
  border-top: 1px solid #5c6770;
}

.sw-facts li:first-child { padding-top: 0; border-top: 0; }

.sw-facts b {
  display: block;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1;
  text-transform: uppercase;
  color: #ffffff;
}

.sw-facts span {
  font-family: "Outfit", "Avenir Next", sans-serif;
  font-size: 0.95rem;
  color: #8ed3f5;
}

.sw-body {
  margin: 1.6rem 0 0;
  max-width: none;
  font-size: 1.14rem;
  line-height: 1.55;
  color: #dde5ef;
}

.sw-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.6rem 0 clamp(2rem, 4vw, 3rem);
}

.sw-btn {
  display: inline-block;
  padding: 0.8rem 1.35rem;
  border: 2px solid #f15a29;
  border-radius: 999px;
  background: #f15a29;
  color: #ffffff;
  font-family: "Outfit", "Avenir Next", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}

.sw-btn-ghost { background: transparent; border-color: #8ed3f5; }

.sw-btn:hover,
.sw-btn:focus-visible { background: #ffffff; border-color: #ffffff; color: #0b1f3a; }

.sw-btn:focus-visible { outline: 2px solid #8ed3f5; outline-offset: 3px; }

.sw-shot {
  margin: 0;
  border: 1px solid #243044;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
}

/* The capture ends in a pale band under the site. Crop it so the dark page meets the caption. */
.sw-shot img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 676; object-fit: cover; object-position: top; }

.sw-shot figcaption {
  margin: 0;
  padding: 0.7rem 1rem 0.8rem;
  background: #243044;
  font-family: "Outfit", "Avenir Next", sans-serif;
  font-size: 0.85rem;
  color: #dde5ef;
}


@media (max-width: 800px) {
  .sw-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Body copy fills its column out to the right edge. The last line stays ragged. */
body.long .bio,
body.long .contract,
body.long .caps span,
body.long .recent-lead,
body.long .recent .body,
body.long .consult-lede,
body.long .chapter p,
body.long .scr .lede,
body.long .ml-copy,
body.long .ml-copy p,
body.long .post p,
body.long .sw-lead,
body.long .sw-body,
body.long .mls-def,
body.long .flow-line {
  text-align: justify;
  text-align-last: start;
  hyphens: auto;
  max-width: none;
}

body.long .flow-note,
body.long .flow-line {
  text-align: start;
  text-align-last: start;
  hyphens: manual;
}

body.long .ml-copy .ml-scen-lead {
  font-weight: 700;
  text-align: center;
  text-align-last: center;
  hyphens: manual;
}

/* The caption card is a fixed 16:9 box: the words fill its full inner width. */
body.long .flow-note .flow-line,
body.long .flow-note .flow-detail p,
.flow-note .flow-line,
.flow-note .flow-detail p {
  width: 100%;
  text-align: justify;
  text-align-last: start;
  hyphens: auto;
}

/* ----- role, contact, and the call button ----- */

.intro .role {
  margin: 0;
  font-family: "Outfit", "Avenir Next", sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #f15a29;
}

.intro .reach { align-items: center; }

.links a.tel,
.colophon a.tel { white-space: nowrap; }

/* ----- footer: name, places, contact. Full-bleed navy under SignalWealth. ----- */

body.long footer.colophon-bar {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 2.6rem 0 2.9rem;
  background: #0b1f3a;
  border-top: 1px solid #243044;
  color: #dde5ef;
}

.colophon-bar .colophon {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-family: "Outfit", "Avenir Next", sans-serif;
}

.colophon-bar p { margin: 0; }

.colophon-bar .foot-name {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2rem);
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
}

.colophon-bar .foot-places {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: #dde5ef;
}

.colophon-bar .foot-reach {
  margin-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 1.6rem;
  font-size: 1rem;
}

.colophon-bar .foot-reach a {
  color: #8ed3f5;
  text-decoration: underline;
  text-decoration-color: rgba(142, 211, 245, 0.45);
  text-underline-offset: 0.25em;
}

.colophon-bar .foot-reach a:hover,
.colophon-bar .foot-reach a:focus-visible { color: #ffffff; text-decoration-color: #ffffff; }

.colophon-bar .foot-reach a.tel { white-space: nowrap; }
.colophon-bar .foot-reach a.mail { overflow-wrap: anywhere; }

.colophon a.li-foot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  padding: 4px;
  border-radius: 6px;
  text-decoration: none;
}

.colophon a.li-foot svg {
  display: block;
  filter:
    drop-shadow(0 0 1.5px #8ed3f5)
    drop-shadow(0 0 6px rgba(142, 211, 245, 0.8))
    drop-shadow(0 0 14px rgba(1, 112, 185, 0.95));
}

@media (max-width: 520px) {
  body.long footer.colophon-bar { padding: 2.2rem 0 2.6rem; }
  .colophon-bar .foot-reach { gap: 0.9rem 1.4rem; }
}

/* ----- the card scanner: fixed, top right, above the menu ----- */

.scan-pulse {
  position: fixed;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 10020;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: #f15a29;
  color: #ffffff;
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 0 0 0 rgba(241, 90, 41, 0.55);
  animation: scan-throb 1.8s ease-out infinite;
}
.scan-pulse:hover, .scan-pulse:focus-visible { color: #ffffff; }
.scan-pulse:focus-visible { outline: 2px solid #0170b9; outline-offset: 2px; }

@keyframes scan-throb {
  0% { box-shadow: 0 0 0 0 rgba(241, 90, 41, 0.5); }
  70% { box-shadow: 0 0 0 14px rgba(241, 90, 41, 0); }
  100% { box-shadow: 0 0 0 0 rgba(241, 90, 41, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .scan-pulse { animation: none; }
}

/* ----- menu vs the scanner. The scanner takes about 7.5rem at the right.
   A centered pill keeps 9.8rem clear on both sides; below 1180px the pill
   moves to the left edge and stops 9.8rem short of the right. ----- */

.floatnav { max-width: calc(100% - 19.6rem); }
.floatnav nav { flex-wrap: wrap; }

@media (max-width: 1180px) {
  .floatnav,
  .floatnav.is-away,
  .floatnav.is-away:not(:focus-within) {
    left: 0.6rem;
    width: max-content;
    max-width: calc(100% - 10.4rem);
    border-radius: 22px;
    transform: none;
  }
}

@media (max-width: 1180px) and (pointer: coarse) and (prefers-reduced-motion: no-preference) {
  .floatnav.is-away:not(:focus-within) { transform: translateY(calc(-100% - 1.1rem)); }
}

@media (max-width: 720px) {
  .floatnav,
  .floatnav.is-away,
  .floatnav.is-away:not(:focus-within) {
    width: calc(100% - 10.4rem);
    border-radius: 18px;
  }
}
