/* ProcessPilot website: one stylesheet for the whole site.
   Consolidated in Session 2 (21 November 2026) from the version 30 design's override rounds V4 to V30.
   Order: fonts, base styles, then screen-size adjustments from widest to narrowest.
   The few !important flags left beat inline styles in index.html or more specific rules; each was
   tested, and removing any of them changes the page. */

/* Fonts are stored with the site (no Google requests). Both are SIL Open Font License 1.1:
   see assets/fonts/DM-Sans-OFL.txt and assets/fonts/Newsreader-OFL.txt. */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../assets/fonts/dm-sans-latin-ext.woff2) format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../assets/fonts/dm-sans-latin.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../assets/fonts/newsreader-latin-ext.woff2) format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../assets/fonts/newsreader-latin.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

/* ---------- Base styles (all screen sizes) ---------- */
:root {
  --g: #103d30;
  --ink: #111713;
  --ivory: #f8f6f0;
  --serif: "Newsreader", Georgia, serif;
  --gold: #f5bd49;
  --copper: #f5bd49;
  --copper-light: #ffda65;
  --copper-deep: #a95b27;
  --solid-gold: #f5c052;
  /* The approved Radiant Copper Gold gradient: exact eight stops (palette amendment, 22 November 2026). */
  --metal: linear-gradient(
    110deg,
    #a95b27 0%,
    #db9236 15%,
    #f5bd49 30%,
    #ffda65 44%,
    #ffd04a 51%,
    #f4b73f 62%,
    #ce762b 80%,
    #f5c052 100%
  );
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  font:
    16px/1.65 "DM Sans",
    Arial,
    sans-serif;
  background: #f8f6f0;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
header {
  color: var(--ivory);
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--gold);
  background: #103d30;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  padding: 12px clamp(15px, 2vw, 32px);
  max-width: 1780px;
  gap: 20px;
  padding-inline: clamp(22px, 2.4vw, 40px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-width: 190px;
}
.brand strong {
  font: 500 30px/1 var(--serif);
  letter-spacing: -0.025em;
  font-size: 26px;
}
.navlinks a {
  letter-spacing: 0.015em;
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  padding: 15px 22px;
  white-space: nowrap;
  cursor: pointer;
  background: var(--metal);
  border: 1px solid var(--gold);
  color: #111713;
  box-shadow:
    inset 0 1px 0 #ffe59b90,
    0 5px 18px #11171335;
}
.menu {
  background: transparent;
  color: var(--ivory);
  border: 1px solid var(--ivory);
  padding: 8px 14px;
  border-radius: 7px;
}
.section {
  padding: 100px 36px;
}
.wrap {
  max-width: 1250px;
  margin: auto;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 18px;
}
.eyebrow.dark {
  color: var(--g);
}
h2 {
  margin-top: 0;
  font: 500 clamp(40px, 5vw, 70px)/1.12 var(--serif);
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
h3 {
  margin-top: 0;
  font: 500 32px/1.18 var(--serif);
  margin-bottom: 15px;
}
p {
  margin-top: 0;
}
.lead {
  font-size: 19px;
  line-height: 1.75;
  max-width: 690px;
}
.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  margin-bottom: 54px;
}
.goldline {
  width: 80px;
  height: 2px;
  background: var(--gold);
  margin: 25px 0;
}
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pillar {
  border: 1px solid #f5bd49;
  border-top: 3px solid var(--gold);
  border-radius: 12px;
  padding: 36px 30px;
  min-height: 295px;
  position: relative;
  overflow: hidden;
  background: #103d30;
}
.pillar::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  border: 1px solid #f5bd4923;
  border-radius: 50%;
  right: -75px;
  bottom: -85px;
}
.number {
  font: 500 46px var(--serif);
  color: var(--gold);
  margin-bottom: 32px;
}
.pillar p {
  color: #f8f6f0;
  font-size: 15.5px;
  line-height: 1.7;
}
.split {
  display: grid;
}
.architecture {
  border: 1px solid #f5bd49;
  border-radius: 18px;
  box-shadow: 0 22px 60px #06251c22;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 42px;
}
.metric {
  border-radius: 12px;
}
.metric b {
  font: 500 clamp(39px, 4vw, 60px)/1 var(--serif);
  margin-bottom: 16px;
}
.section-head {
  max-width: 760px;
}
.footer {
  background: var(--ink);
  color: var(--ivory);
  padding: 34px 36px;
}
.footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  flex-wrap: wrap;
  font-size: 13px;
}
.footer a {
  color: var(--ivory);
}
.brand img {
  object-fit: contain;
}
.navlinks .cta {
  min-height: 44px;
}
.hero {
  overflow: hidden;
}
.hero-content {
  min-height: 630px;
  padding: 90px clamp(26px, 6vw, 100px) 125px;
  background: #103d30;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.hero-copy {
  max-width: 830px;
  position: relative;
  z-index: 5;
}
.hero .eyebrow {
  margin-bottom: 25px;
}
.hero h1 {
  color: #f8f6f0;
  font: 500 clamp(52px, 5.3vw, 91px)/1.1 var(--serif);
  letter-spacing: -0.024em;
  margin: 0 0 25px;
}
.hero-tagline {
  font-size: clamp(17px, 1.65vw, 23px);
  line-height: 1.55;
  color: #f8f6f0;
  margin: 0 0 32px;
}
.hero-button {
  padding: 17px 27px;
  font-size: 15px;
  position: relative;
  z-index: 6;
}
.hero-light {
  position: absolute;
  opacity: 0.96;
  z-index: 1;
  pointer-events: none;
  left: 0;
  width: 100vw;
  bottom: 8px;
}
.architecture svg {
  overflow: visible;
}
.cta-section {
  min-height: 550px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.closing-light {
  position: absolute;
  opacity: 0.65;
  z-index: 1;
  pointer-events: none;
  left: 0;
  width: 100vw;
  bottom: 8px;
}
#mortgage .split {
  grid-template-columns: minmax(0, 1.58fr) minmax(0, 0.72fr);
  gap: clamp(38px, 4vw, 72px);
  align-items: stretch;
}
#mortgage .split > div:first-child {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#mortgage .split > div:last-child {
  width: 100%;
  justify-self: end;
  padding: 22px !important;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  max-width: 365px;
}
#about .split {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.68fr);
  gap: clamp(38px, 4vw, 70px);
  align-items: stretch;
}
#about .split > div:last-child {
  justify-self: end;
  padding: 30px !important;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  max-width: 365px;
}
#about h2 {
  font-size: clamp(42px, 4.4vw, 64px);
  line-height: 1.17;
}
.navlinks {
  flex: 1;
  justify-content: flex-end;
}
.navlinks > a:not(.cta) {
  display: flex;
  align-items: center;
  line-height: 1.32;
  text-wrap: balance;
  flex-shrink: 0;
}
.navlinks > .cta {
  flex-shrink: 0;
}
.cta-flight-overlay {
  overflow: visible;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}
#evidence .metric {
  position: relative;
}
#about .split > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#about .split > div:last-child h3 {
  font-size: clamp(27px, 2.4vw, 36px) !important;
}
#approach .intro > div:last-child > p:not(.eyebrow),
#capabilities .split > div:first-child > p:not(.eyebrow),
#mortgage .split > div:first-child > p:not(.eyebrow),
#about .split > div:first-child > p:not(.eyebrow),
#discovery .closing-content > p:not(.eyebrow) {
  font-size: 18px;
  line-height: 1.72;
  margin-bottom: 18px;
}
#approach .intro > div:last-child > p:not(.eyebrow):last-child,
#capabilities .split > div:first-child > p:not(.eyebrow):last-child,
#mortgage .split > div:first-child > p:not(.eyebrow):last-child,
#about .split > div:first-child > p:not(.eyebrow):last-child {
  margin-bottom: 0;
}
.closing-content {
  position: relative;
  z-index: 5;
}
#discovery .cta {
  position: relative;
  z-index: 6;
}
#capabilities .split {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.78fr);
  gap: clamp(32px, 4vw, 70px);
  align-items: stretch;
}
#capabilities .split > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
#capabilities .architecture {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-height: 0;
  padding: clamp(18px, 2vw, 30px);
  background: #103d30;
  border-color: #f5bd49;
}
#capabilities .architecture svg {
  max-height: 265px;
}
#mortgage .architecture {
  align-items: stretch;
  background: #111713;
  border-color: #f5bd49;
}
.cta:hover,
.hero-button:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 #ffe59b90,
    0 9px 22px #11171350;
}
/* Keyboard focus: a clear ring in an approved colour (gold on dark, green on light). */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.ivory-section a:focus-visible,
.mb-gallery a:focus-visible {
  outline-color: var(--g);
}
#approach .pillar {
  border-color: #f5bd49;
  border-top-color: #f5bd49;
}
#top {
  background: #103d30;
}
#approach {
  background: #111713;
  color: #f8f6f0;
}
#capabilities {
  background: #f8f6f0;
}
#evidence {
  background: #103d30;
  color: #f8f6f0;
}
#mortgage {
  background: #111713;
  color: #f8f6f0;
}
#about {
  background: #f8f6f0;
}
#discovery {
  background: #103d30;
  color: #f8f6f0;
}
#evidence .section-head h2,
#evidence .eyebrow {
  color: #f8f6f0;
}
.hero h1 em {
  color: #ffda65;
}
#approach h2 em,
#mortgage h2 em,
#discovery h2 em {
  color: #ffda65 !important;
}
#evidence .section-head h2 em {
  color: #ffda65;
}
#evidence .metric:nth-child(even),
#evidence .metric:nth-child(odd) {
  background: #111713;
  border: 1px solid #f5bd49;
  border-top: 3px solid #ffda65;
  padding: 27px 18px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  text-align: left;
}
#evidence .metric b,
#evidence .metric:nth-child(even) b,
#evidence .metric:nth-child(odd) b {
  color: #ffda65;
  white-space: nowrap;
}
#evidence .metric p,
#evidence .metric:nth-child(even) p,
#evidence .metric:nth-child(odd) p {
  font-size: clamp(15px, 1.28vw, 19px);
  font-weight: 500;
  line-height: 1.45;
  margin: 12px auto 0;
  width: 100%;
  align-self: stretch;
}
#capabilities h2 em,
#about h2 em {
  color: #103d30;
}
#evidence .metric b::before {
  content: "✳";
  display: inline-block;
  vertical-align: top;
  position: relative;
  top: -0.1em;
  font-family: Arial, sans-serif;
  font-size: 0.4em;
  font-weight: 700;
  line-height: 1;
  margin-right: 0.22em;
}
/* ---------- Wider than phones ---------- */
@media (min-width: 701px) {
  .hero-tagline span:not(:last-child)::after {
    content: " ";
    white-space: pre;
  }
  .mobile-hero-line:not(:last-child)::after {
    content: " ";
  }
}
/* ---------- Desktop: full one-row menu ---------- */
@media (min-width: 1101px) {
  .navlinks > .cta {
    font-weight: 750;
  }
  header nav {
    max-width: none;
    padding: 10px clamp(10px, 1.4vw, 24px);
    gap: clamp(8px, 1.1vw, 18px);
    min-height: 90px;
  }
  header .brand {
    min-width: 0;
    gap: 8px;
  }
  header .brand img {
    width: clamp(48px, 4vw, 64px);
    height: 48px;
  }
  header .brand strong {
    font-size: clamp(18px, 1.65vw, 26px);
    white-space: nowrap;
  }
  header .navlinks {
    display: flex;
    position: static;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: row;
    align-items: center;
    gap: clamp(3px, 0.55vw, 11px);
    padding: 0;
    background: transparent;
  }
  header .navlinks .nav-cta {
    flex: 0 0 clamp(177px, 15vw, 215px);
    min-height: 54px;
    margin-left: clamp(12px, 2vw, 32px);
    padding: 14px 12px;
    font-size: clamp(13px, 1.02vw, 16px);
    line-height: 1.1;
    letter-spacing: -0.015em;
  }
  header .menu {
    display: none;
  }
}
/* ---------- Up to 1430px: menu collapses behind the Menu button ---------- */
@media (max-width: 1430px) {
  .navlinks {
    display: none;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--g);
    padding: 22px 30px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .navlinks.open {
    display: flex;
  }
  .navlinks > a:not(.cta) {
    justify-content: flex-start;
    min-height: 0;
    font-size: 15px;
  }
}
/* ---------- Desktop: full one-row menu ---------- */
@media (min-width: 1101px) {
  header .navlinks .nav-page {
    flex: 1 1 0;
    min-width: 0;
    min-height: 50px;
    justify-content: center;
    text-align: center;
    font-size: clamp(10px, 0.91vw, 14px);
    line-height: 1.25;
    letter-spacing: 0;
    padding: 0 2px;
  }
}
/* ---------- Up to 1430px: menu collapses behind the Menu button ---------- */
@media (max-width: 1430px) {
  .navlinks > .cta {
    align-self: flex-start;
  }
}
/* ---------- Small desktop: collapsed menu position ---------- */
@media (min-width: 1101px) and (max-width: 1430px) {
  .navlinks.open {
    top: 83px;
  }
}
/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .navlinks {
    border-top: 1px solid var(--gold);
  }
  .intro,
  .split {
    gap: 32px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .brand img {
    width: 74px;
    height: 50px;
  }
  .hero-content {
    min-height: 580px;
    padding-top: 95px;
  }
  .navlinks > .cta {
    font-size: 16px;
    padding: 16px 22px;
  }
  header .navlinks .nav-page br {
    display: none;
  }
  header .navlinks .nav-page {
    text-align: left;
  }
}
/* ---------- Small tablet: mortgage and about sections stack ---------- */
@media (max-width: 800px) {
  #mortgage .split,
  #about .split {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: initial;
  }
  #mortgage .split > div:last-child,
  #about .split > div:last-child {
    justify-self: stretch;
    max-width: none;
  }
  #approach .intro > div:last-child > p:not(.eyebrow),
  #capabilities .split > div:first-child > p:not(.eyebrow),
  #mortgage .split > div:first-child > p:not(.eyebrow),
  #about .split > div:first-child > p:not(.eyebrow),
  #discovery .closing-content > p:not(.eyebrow) {
    font-size: 17px;
  }
}
/* ---------- Large phone: capabilities section stacks ---------- */
@media (max-width: 760px) {
  #capabilities .split {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  #capabilities .architecture svg {
    max-height: none;
  }
  .hero-light,
  .closing-light {
    width: 120vw;
  }
}
/* ---------- Phone ---------- */
@media (max-width: 700px) {
  .lead {
    font-size: 17px;
  }
  nav {
    min-height: 73px;
    padding: 10px 18px;
    gap: 10px;
  }
  .brand img {
    width: 62px;
    height: 44px;
  }
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }
  .brand {
    gap: 7px;
    min-width: 0;
  }
  .brand strong {
    font-size: clamp(20px, 6vw, 24px);
  }
  .menu {
    min-height: 44px;
    min-width: 70px;
    touch-action: manipulation;
  }
  .navlinks {
    top: 72px;
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    padding: 20px 24px 28px;
    box-shadow: 0 18px 24px #0004;
  }
  .navlinks a {
    display: flex;
  }
  .navlinks > .cta {
    width: 100%;
    min-height: 50px;
  }
  .section {
    padding: 64px 20px;
  }
  h3 {
    font-size: clamp(27px, 7vw, 34px);
    line-height: 1.22;
    letter-spacing: -0.018em;
  }
  .hero-content {
    padding-left: 20px;
    padding-right: 20px;
    min-height: 0;
    padding-top: 56px;
    padding-bottom: 110px;
  }
  .intro,
  .split,
  .pillars {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .intro > *,
  .split > *,
  .pillars > * {
    min-width: 0;
  }
  .architecture {
    border-radius: 14px;
  }
  .architecture svg {
    max-width: 100%;
  }
  .metrics {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-top: 30px;
  }
  #evidence .metric {
    min-height: 0;
  }
  #evidence .metric b {
    font-size: clamp(45px, 12vw, 58px);
    line-height: 1.05;
    margin-bottom: 12px;
  }
  #evidence .metric b::before {
    font-size: 0.44em;
    top: -0.16em;
    margin-right: 0.2em;
  }
  #evidence .metric p {
    max-width: 100%;
    white-space: nowrap;
    letter-spacing: -0.012em;
  }
  .pillar {
    min-height: 0;
    padding: 26px 24px;
  }
  .footer {
    padding: 28px 20px;
  }
  .footer .wrap {
    gap: 12px;
  }
  #mortgage .architecture {
    max-width: 100% !important;
  }
  .eyebrow {
    letter-spacing: 0.15em;
    line-height: 1.45;
  }
  .section p:not(.eyebrow) {
    line-height: 1.62;
  }
  .hero-tagline {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 26px;
    line-height: 1.38;
    letter-spacing: -0.012em;
  }
  .hero-tagline span {
    white-space: nowrap;
    font-size: clamp(15px, 4.3vw, 19px);
  }
  .hero-button {
    display: flex;
    width: max-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  #discovery .closing-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  #discovery .cta {
    align-self: center;
    max-width: 100%;
    white-space: normal;
    min-height: 52px;
  }
  .hero-light {
    bottom: 0;
    max-height: 105px;
    object-fit: cover;
    object-position: left bottom;
    opacity: 0.9;
  }
  .cta-section {
    min-height: 0;
    padding-bottom: 88px;
  }
  .closing-light {
    bottom: 0;
    max-height: 95px;
    object-fit: cover;
    object-position: left bottom;
  }
  .hero-path-overlay,
  .closing-path-overlay {
    z-index: 4;
    overflow: hidden;
  }
  .section h2 {
    max-width: 100% !important;
    text-align: left;
    line-height: 1.105 !important;
    word-spacing: 0.015em;
    text-wrap: pretty;
    font-size: clamp(38px, 10.65vw, 45px) !important;
    letter-spacing: -0.034em;
  }
  .hero h1 {
    text-align: left;
    margin-bottom: 24px;
    line-height: 1.105;
    word-spacing: 0.015em;
    text-wrap: pretty;
    font-size: clamp(38px, 10.65vw, 45px);
    letter-spacing: -0.034em;
  }
  .hero-copy {
    max-width: 100%;
  }
  .mobile-hero-line {
    display: block;
    white-space: nowrap;
  }
  #about h2 {
    letter-spacing: -0.045em;
  }
  #about .keep-ordinary-solutions {
    white-space: nowrap;
  }
}
/* ---------- Small phone ---------- */
@media (max-width: 390px) {
  .section {
    padding-inline: 17px;
  }
  .hero-content {
    padding-left: 17px;
    padding-right: 17px;
    padding-top: 50px;
    padding-bottom: 100px;
  }
  .brand img {
    width: 53px;
    height: 39px;
  }
  .brand strong {
    font-size: 21px;
  }
  .hero-tagline span {
    font-size: 15px;
  }
}
/* ---------- Very small phone ---------- */
@media (max-width: 370px) {
  #about h2 {
    letter-spacing: -0.055em;
  }
}

/* ======================================================================
   Mortgage Brokerages page (mortgage-brokerages.html), Session 3, 22 November 2026.
   Everything here is scoped to body.page so the homepage is untouched.
   ====================================================================== */
.page {
  --plane: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-15 -24 30 44'%3E%3Cpath d='M 0 -23 C 2.1 -23 2.8 -20 2.8 -17 L 2.8 -5 L 14.5 2.5 L 14.5 6 L 2.8 3 L 2.8 13 L 7 17 L 7 19 L 0 17.2 L -7 19 L -7 17 L -2.8 13 L -2.8 3 L -14.5 6 L -14.5 2.5 L -2.8 -5 L -2.8 -17 C -2.8 -20 -2.1 -23 0 -23 Z'/%3E%3C/svg%3E");
}
.page {
  /* Dashed trails that end at a plane are drawn from the plane's end, so the last dash always meets the
     plane's tail (designer's rule, 22 November 2026). 6px dash, 7px gap. */
  --dash-v-bottom: linear-gradient(to top, var(--gold) 0 6px, transparent 6px 13px) center bottom / 2.4px 13px repeat-y;
  --dash-v-top: linear-gradient(to bottom, var(--gold) 0 6px, transparent 6px 13px) center top / 2.4px 13px repeat-y;
  --dash-h-left: linear-gradient(to right, var(--gold) 0 6px, transparent 6px 13px) left center / 13px 2.4px repeat-x;
  --dash-h-right: linear-gradient(to left, var(--gold) 0 6px, transparent 6px 13px) right center / 13px 2.4px repeat-x;
}
/* The menu item for the page you are on turns gold, with no underline (owners, 22 November 2026). */
.navlinks a[aria-current="page"] {
  color: var(--copper-light);
}
.draft-banner {
  margin: 0;
  padding: 7px 20px;
  background: var(--solid-gold);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}
.page .section h2 em { font-style: italic; }
.page .ivory-section { background: var(--ivory); color: var(--ink); }
.page .ivory-section h2 em { color: var(--g); }
.page .dark-section { background: var(--ink); color: var(--ivory); }
.page .dark-section h2 em { color: var(--copper-light); }
.page .dark-section .lead,
.page .dark-section p { color: var(--ivory); }

/* Shared bits: the plane mark, labels, small titles */
.page .plane {
  display: block;
  width: 16px;
  height: 23px;
  background: var(--gold);
  -webkit-mask: var(--plane) center / contain no-repeat;
  mask: var(--plane) center / contain no-repeat;
}
.page .tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  font-size: 14px;
  line-height: 1.4;
  margin: 22px 0 0;
}
.page .tags .tag:not(:first-child) { margin-left: 10px; }
.page .tag {
  display: inline-block;
  border-radius: 100px;
  padding: 4px 11px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.4;
}
.page .tag-live {
  background: var(--metal);
  color: var(--ink);
  border: 1px solid var(--gold);
}
.page .tag-build {
  border: 1px solid currentColor;
  color: var(--g);
}
.page .dark-section .tag-build { color: var(--ivory); border-color: var(--gold); }
.page .visual-title {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--g);
}

/* 1. Hero */
/* One solid Heritage Green behind the words and the two engines (designer, 22 November 2026). */
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #103d30;
  color: var(--ivory);
}
.page #top { background: transparent; }
/* The Twisting Ribbon light (designer's pick B), low behind the two engines, never across words. */
.page-hero .page-hero-light { bottom: -40px; z-index: 0; }
.page-hero .engines-band { position: relative; z-index: 2; }
.page-hero .hero-content {
  background: none;
  min-height: 0;
  padding: 84px clamp(26px, 6vw, 100px) 60px;
}
.page-hero .hero-copy { max-width: 860px; }
.page-hero h1 em { color: var(--copper-light); }
.hero-sub {
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 0 12px;
}
.hero-sub-quiet { margin-bottom: 32px; }
.engines-band { padding: 10px clamp(26px, 6vw, 100px) 90px; }
.engines {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 0.8fr) minmax(0, 1fr);
  align-items: center;
}
.engine {
  background: #111713;
  border: 1px solid var(--gold);
  border-top: 3px solid var(--gold);
  border-radius: 14px;
  padding: 28px 28px 26px;
  box-shadow: 0 22px 60px #02140e55;
}
.engine-icon, .cap-icon, .ctl-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--gold);
  color: var(--g);
}
.engine-icon { width: 50px; height: 50px; margin-bottom: 16px; }
.engine-icon svg, .cap-icon svg, .ctl-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.engine-kicker {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 6px;
}
.engine h3 { color: var(--ivory); margin-bottom: 8px; }
.engine p:last-child { margin: 0; color: #f8f6f0; font-size: 17px; }
/* The hub's two links are connectors between a node and an object, so each is a plane with its dashed trail
   (owners, 22 November 2026): the line starts on the hub's edge, runs to the plane's tail, and the plane's nose
   stops a small gap short of the engine card. Dash length is fitted by the script so both ends are whole dashes. */
.engine-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 130px;
  padding: 0 12px;
}
.engine-link .link-line {
  flex: 1 1 auto;
  min-width: 14px;
  height: 2.4px;
  background: var(--dash-h-left);
}
.engine-link .engine-hub + .link-line { background: var(--dash-h-right); margin-right: -1.4px; }
.engine-link .plane + .link-line { margin-left: -1.4px; }
.engine-link .plane { flex: 0 0 auto; width: 26px; height: 26px; }
.engine-link .plane-out-a { transform: rotate(-90deg); }
.engine-link .plane-out-b { transform: rotate(90deg); }
.engine-hub {
  position: relative;
  z-index: 2;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: #111713;
  border: 3px solid var(--gold);
  box-shadow: 0 0 50px #f5bd4940;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.35;
}
.engine-link .engine-hub { flex: 0 0 auto; }
/* 2. Pipeline efficiency */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding-left: 66px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}
.steps li + li { margin-top: 44px; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 600 20px/1 var(--serif);
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 22px;
  top: calc(50% + 27px);
  height: 40px;
  border-left: 2.4px dashed;
}
.rework .steps li::before { background: var(--g); color: var(--ivory); }
.rework .steps li::after { border-color: var(--ivory); }
.prepared .steps li::before { background: var(--gold); color: var(--g); }
.prepared .steps li::after { display: none; }
.prepared .steps li:last-child::before {
  content: "✓";
  font-family: "DM Sans", Arial, sans-serif;
  font-weight: 700;
  background: var(--metal);
}
/* Between two steps the plane stands alone (no line): centred under the step's number tile, with an equal
   small gap to the tile above and the tile below. The tiles are 46px, 46px apart, so the plane is 23px tall
   with a gap of about 11px at each end. */
.prepared .step-plane {
  position: absolute;
  left: 15px;
  top: 58px;
  width: 16px;
  height: 23px;
  transform: rotate(180deg);
}
.loop-back {
  position: absolute;
  right: 26px;
  top: 82px;
  bottom: 30px;
  width: 36px;
  height: calc(100% - 112px);
  overflow: visible;
}
.loop-back path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.rework-tag {
  position: absolute;
  right: 20px;
  top: 20px;
  border: 1px solid var(--gold);
  color: var(--ivory);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--g);
  line-height: 1.4;
}
.loop-back .arrowhead { stroke-dasharray: none; }
.objective {
  font-size: 19px;
  margin: 28px 0 0;
  max-width: 860px;
}
.objective b { color: var(--g); }

/* 3. Back book */

.pull {
  font: 500 clamp(24px, 2.2vw, 32px)/1.25 var(--serif);
  color: var(--ivory) !important;
  margin: 8px 0 22px;
}
.pull em { color: var(--copper-light); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li {
  position: relative;
  padding-left: 34px;
  font-size: 17px;
  font-weight: 600;
}
.ticks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mb-backbook .tags { color: #f8f6f0; }
.backbook-visual {
  margin: 0;
  background: var(--g);
  border: 1px solid var(--gold);
  border-radius: 18px;
  padding: clamp(20px, 2.4vw, 32px);
  box-shadow: 0 22px 60px #00000055;
}
.backbook-visual .visual-title { color: var(--gold); }
.signals {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.signals li {
  border: 1px solid var(--gold);
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  background: var(--ink);
  color: var(--ivory);
}
/* Between two boxes the plane stands alone (no line), centred, with an equal small gap above and below. */
.flow-down {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flow-down .plane { transform: rotate(180deg); width: 16px; height: 23px; }
.contact-list {
  background: var(--ivory);
  color: var(--ink);
  border-radius: 12px;
  padding: 16px 18px 8px;
}
.page .contact-list .list-title {
  font: 500 21px/1.2 var(--serif);
  color: var(--g);
  margin: 0 0 8px;
}
.contact-list table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.contact-list th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--g);
  padding: 6px 8px 6px 0;
  border-bottom: 1px solid var(--g);
}
.contact-list td {
  padding: 10px 8px 10px 0;
  border-bottom: 1px solid var(--g);
  vertical-align: middle;
  line-height: 1.35;
}
.contact-list tr:last-child td { border-bottom: 0; }
.contact-list td:first-child { font-weight: 700; white-space: nowrap; }
.contact-list td:last-child { color: var(--g); font-weight: 600; }
.rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--g);
  color: var(--ivory);
  font-size: 12px;
  margin-right: 8px;
}
.actions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  counter-reset: act;
}
.actions li {
  border-radius: 9px;
  border: 1px solid var(--gold);
  background: #111713;
  color: var(--ivory);
  text-align: center;
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 8px;
}
.actions li:nth-child(2) {
  background: var(--metal);
  color: var(--ink);
}
.backbook-visual figcaption {
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #f8f6f0;
}

/* 4. Capability gallery */
.mb-gallery .section-head { max-width: 820px; margin-bottom: 44px; }
.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.gallery li {
  background: var(--g);
  color: var(--ivory);
  border: 1px solid var(--gold);
  border-top: 3px solid var(--gold);
  border-radius: 12px;
  padding: 22px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.cap-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--gold); color: var(--g); margin-bottom: 16px; }
.gallery h3 { font-size: 22px; line-height: 1.2; margin-bottom: 8px; color: var(--ivory); }
.gallery p { font-size: 14.5px; line-height: 1.55; margin: 0 0 14px; flex: 1; }
.footnote { margin: 22px 0 0; font-size: 14px; color: var(--ink); }

/* 6. Diagnostics */

.text-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
  font-weight: 700;
  color: var(--ivory);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
}
.text-link:hover { border-bottom-width: 2px; padding-bottom: 2px; }

/* 7. Integration and control */

.controls {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.controls li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 16px;
  color: var(--g);
}
.ctl-icon { width: 40px; height: 40px; border-radius: 11px; background: var(--g); color: var(--gold); flex-shrink: 0; }
.ctl-icon svg { width: 22px; height: 22px; }
.systems {
  background: var(--g);
  color: var(--ivory);
  border: 1px solid var(--gold);
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 22px 60px #06251c22;
}
.system-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.system-list li {
  border: 1px solid var(--gold);
  border-radius: 9px;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 15px;
  background: var(--ink);
}
.systems-note { margin: 16px 0 0; font-size: 12.5px; line-height: 1.5; color: #f8f6f0; }

/* 8. Closing: the button is a link on this page. The light stream sits low in the section, under the words
   (no text across artwork), and the section has room below the button for it. */
.page .cta-section { padding-bottom: 170px; }
/* The closing heading stops short of the flight path's right-hand corridor at every width. */
.page #discovery .closing-content > h2 { max-width: 74% !important; }
.page .closing-light { bottom: -120px; }
.page #discovery .cta { font-size: 15px; padding: 17px 27px; }

@media (max-width: 700px) {
  .page .cta-section { padding-bottom: 88px; }
  .page .closing-light { bottom: 0; }
}
/* Mortgage Brokerages: tablet */
@media (max-width: 1100px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .engines { grid-template-columns: minmax(0, 1fr) 230px minmax(0, 1fr); }
  .engine-hub { width: 104px; height: 104px; font-size: 12px; }
}
/* Mortgage Brokerages: phone */
@media (max-width: 760px) {
  .engines { grid-template-columns: minmax(0, 1fr); }
  .engine-link { flex-direction: column; height: 250px; padding: 12px 0; }
  .engine-link .link-line { height: auto; width: 2.4px; min-width: 0; min-height: 14px; background: var(--dash-v-top); }
  .engine-link .engine-hub + .link-line { background: var(--dash-v-bottom); margin-right: 0; margin-bottom: -1.4px; }
  .engine-link .plane + .link-line { margin-left: 0; margin-top: -1.4px; }
  .engine-link .plane-out-a { transform: none; }
  .engine-link .plane-out-b { transform: rotate(180deg); }
  .engine-hub { width: 104px; height: 104px; font-size: 12px; }
  .gallery { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .gallery li {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    column-gap: 14px;
    padding: 18px 16px;
  }
  .gallery li .cap-icon { grid-row: 1 / span 3; margin: 0; }
  .gallery li h3, .gallery li p, .gallery li .tag { grid-column: 2; }
  .gallery li p { margin-bottom: 10px; }
  .gallery li .tag { justify-self: start; }
}
@media (max-width: 700px) {
  .page-hero .hero-content { padding: 52px 20px 44px; }
  .engines-band { padding: 0 20px 64px; }
  .hero-button { margin-left: auto; margin-right: auto; }
  .loop-back { right: 14px; }
  .steps li { font-size: 16.5px; padding-left: 60px; }
  .signals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-list { padding: 14px 12px 6px; }
  .contact-list table { font-size: 13px; }
  .rank { width: 19px; height: 19px; font-size: 11px; margin-right: 5px; }
  .actions li { font-size: 12px; padding: 9px 4px; }
  .controls { grid-template-columns: minmax(0, 1fr); }
  .systems { padding: 22px 18px; }
  .page .tags .tag:not(:first-child) { margin-left: 0; }
}
@media (max-width: 390px) {
  .page-hero .hero-content { padding-inline: 17px; }
  .engines-band { padding-inline: 17px; }
}
@media (max-width: 700px) {
  /* Keep the closing heading clear of the phone flight path in the right-hand gutter. */
  .page #discovery h2 { padding-right: 22px; }
}
@media (min-width: 701px) and (max-width: 1100px) {
  /* Tablet: keep the hero and closing words clear of the flight path on the right. */
  .page-hero .hero-copy { max-width: 74%; }
  .page #discovery .closing-content > * { max-width: 74% !important; }
}

/* ---------- Header: logo and name a little larger (designer's pick B, 22 November 2026) ---------- */
@media (min-width: 1101px) {
  header .brand img { width: clamp(56px, 4.9vw, 70px); height: clamp(48px, 4vw, 58px); }
  header .brand strong { font-size: clamp(20px, 1.95vw, 28px); }
}
@media (min-width: 701px) and (max-width: 1100px) {
  header .brand img { width: 84px; height: 57px; }
  header .brand strong { font-size: 29px; }
}
@media (max-width: 700px) {
  header .brand img { width: 62px; height: 46px; }
  header .brand strong { font-size: clamp(21px, 6.4vw, 25px); }
}
@media (max-width: 390px) {
  header .brand img { width: 60px; height: 44px; }
  header .brand strong { font-size: 22px; }
}

/* ---------- Menu words: larger capitals, gently spaced (designer's pick B, 22 November 2026) ---------- */
@media (min-width: 1101px) {
  header .navlinks .nav-page {
    font-size: clamp(10px, 0.92vw, 13.5px);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 500;
    line-height: 1.4;
  }
}
@media (max-width: 1100px) {
  .navlinks > a:not(.cta) {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 16px;
    font-weight: 500;
  }
}

/* ---------- Header button: gold, softer corners (designer's pick C, 22 November 2026) ---------- */
header .navlinks .nav-cta { border-radius: 12px; }

@media (max-width: 900px) {
  /* On a tablet and phone the "And round again" tag sits under the title so it never crowds it. */
  .rework-tag { position: static; display: inline-block; margin: -8px 0 16px; }
}

/* ======================================================================
   Typography and alignment rules (owners' rules, 22 November 2026)
   ====================================================================== */
/* Headings: Newsreader, one size for every main heading (the opening h1 and every section h2) at each
   screen width, always left-aligned. Body text: one size across the page. */
.page {
  --h: clamp(44px, 4.2vw, 62px);
  --ls: -0.025em;
  --body: 18px;
}
.page h1,
.page .section h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--h) !important;
  line-height: 1.12 !important;
  letter-spacing: var(--ls) !important;
  text-align: left;
  max-width: none !important;
  margin: 0 0 24px;
  text-wrap: pretty;
}
.page h1 em,
.page .section h2 em { font-size: inherit; }

/* Body paragraphs: the same size and colour inside a section, with even spacing between them. */
.page .section .lead,
.page .section .intro-body p,
.page .section .objective,
.page .section .ticks li {
  font-size: var(--body);
  line-height: 1.7;
}
.page .section .lead { margin: 0 0 18px; max-width: 690px; }
.page .section .lead:last-child { margin-bottom: 0; }
.page .section .intro-body p { margin: 0; }
.page .section .objective { margin: 28px 0 0; }
.page .hero-sub { margin: 0 0 18px; }
.page .hero-sub-quiet { margin-bottom: 32px; }

/* Two-column sections: the heading and the body start on the same line and end on the same line. The small
   label sits in its own row above both. */
.page .intro,
.page .backbook-split,
.page .integration-split {
  display: grid;
  column-gap: clamp(36px, 5vw, 80px);
  row-gap: 0;
  align-items: stretch;
}
.page .intro {
  grid-template-columns: var(--cols, minmax(0, 1.12fr) minmax(0, 0.88fr));
  grid-template-areas: "label label" "title body";
  margin-bottom: 44px;
}
/* Column widths chosen so each heading and its body run to the same height on a computer. */
.page .mb-pipeline { --cols: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.page .mb-diagnostics { --cols: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.page .mb-pipeline .intro,
.page .mb-diagnostics .intro { column-gap: 56px; }
.page .mb-diagnostics .intro { margin-bottom: 0; }
.page .backbook-split {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  grid-template-areas: "label ." "title visual" "copy visual";
}
.page .integration-split {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  grid-template-areas: "label ." "title visual" "copy visual";
}
.page .intro > .eyebrow,
.page .backbook-split > .eyebrow,
.page .integration-split > .eyebrow { grid-area: label; }
.page .intro > h2,
.page .backbook-split > h2,
.page .integration-split > h2 { grid-area: title; margin-bottom: 0; }
.page .intro-body {
  grid-area: body;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}
/* A link that ends the body sits at the bottom, level with the bottom of the heading. */
.page .intro-body .text-link { margin-top: auto; align-self: flex-start; }
.page .backbook-copy,
.page .integration-copy { grid-area: copy; padding-top: 24px; }
.page .backbook-visual { grid-area: visual; display: flex; flex-direction: column; justify-content: space-between; }
.page .systems { grid-area: visual; display: flex; flex-direction: column; justify-content: space-between; }

/* Tablet and phone: everything stacks in reading order. */
@media (max-width: 1100px) {
  .page { --h: 46px; }
  .page .intro,
  .page .backbook-split,
  .page .integration-split { grid-template-columns: minmax(0, 1fr); column-gap: 0 !important; }
  .page .intro { --cols: minmax(0, 1fr); }
  .page .intro-body { justify-content: flex-start; }
  .page .intro { grid-template-areas: "label" "title" "body"; }
  .page .backbook-split,
  .page .integration-split { grid-template-areas: "label" "title" "copy" "visual"; }
  .page .intro > h2,
  .page .backbook-split > h2,
  .page .integration-split > h2 { margin-bottom: 24px; }
  .page .backbook-copy,
  .page .integration-copy { padding-top: 0; margin-bottom: 36px; }
}
@media (max-width: 800px) {
  .page { --body: 17px; }
}
@media (max-width: 700px) {
  .page { --h: clamp(38px, 10.65vw, 45px); --ls: -0.034em; }
}

/* ======================================================================
   Inner pages: shared components (Session 4, 22 November 2026)
   Used by What We Do, Business Diagnostics and Our Approach & Pricing. Scoped to .page like the
   Mortgage Brokerages block above, and built only from the palette in docs/DESIGN_RULES.md.
   ====================================================================== */
.page .green-section { background: var(--g); color: var(--ivory); }
.page .green-section h2 em { color: var(--copper-light); }
.page .green-section p,
.page .green-section .lead { color: var(--ivory); }
.page .ivory-section .text-link { color: var(--g); }
.page .ivory-section .text-link:focus-visible { outline-color: var(--g); }

/* Hero: the button with a quiet text link under it (never beside it, so the flight path never crosses it). */
.page .hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.page .hero-actions .text-link { margin-top: 0; }

/* Hero pictures: a card, a standalone plane between, and a card. */
.hv {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
  align-items: stretch;
}
.hv-card {
  background: var(--ink);
  border: 1px solid var(--gold);
  border-top: 3px solid var(--gold);
  border-radius: 14px;
  padding: 26px 28px;
  box-shadow: 0 22px 60px #02140e55;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hv-card h3 { color: var(--ivory); font-size: 28px; margin: 0 0 4px; }
.hv-card p { margin: 0; font-size: 16px; color: var(--ivory); }
.hv-card .engine-kicker { margin-bottom: 8px; }
.hv-plane { display: flex; align-items: center; justify-content: center; }
.hv-plane .plane { transform: rotate(90deg); }
.hv-metal { background: var(--metal); border-color: var(--gold); }
.hv-metal .engine-kicker { color: var(--ink); }
.hv-metal h3,
.hv-metal p { color: var(--ink); }
.chips { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 8px; }
.chips li {
  border: 1px solid var(--gold);
  border-radius: 9px;
  padding: 7px 12px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  background: var(--g);
  color: var(--ivory);
}
.chips.tangled li:nth-child(odd) { transform: rotate(-2.2deg); }
.chips.tangled li:nth-child(even) { transform: rotate(1.8deg) translateY(3px); }
.chips.tidy { flex-direction: column; align-items: flex-start; gap: 8px; }
.chips.tidy li::before { content: "✓"; margin-right: 9px; font-weight: 700; }
.chips.metal li { background: var(--metal); color: var(--ink); }
.minis { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.minis li {
  background: var(--ink);
  border: 1px solid var(--gold);
  border-top: 3px solid var(--gold);
  border-radius: 14px;
  padding: 18px 18px 16px;
  box-shadow: 0 22px 60px #02140e55;
  font: 500 22px/1.2 var(--serif);
  color: var(--ivory);
}
.minis .engine-icon { width: 42px; height: 42px; margin-bottom: 12px; display: flex; }
.surface {
  background: var(--ink);
  border: 1px solid var(--gold);
  border-radius: 14px;
  box-shadow: 0 22px 60px #02140e55;
  overflow: hidden;
}
.surface-top,
.surface-bottom { padding: 22px 28px 26px; }
.surface-label { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--gold); margin: 0; }
.surface-line { border: 0; border-top: 2.4px dashed var(--gold); margin: 0; }
.surface .chips { margin-top: 12px; }

/* Step cards joined by standalone planes (no lines). 3 columns, or 5 for the diagnostic. */
.journey {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 56px;
  row-gap: 28px;
}
.journey.c5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.journey li {
  position: relative;
  border-radius: 14px;
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
}
.journey li::after {
  content: "";
  position: absolute;
  left: calc(100% + 20px);
  top: calc(50% - 11.5px);
  width: 16px;
  height: 23px;
  transform: rotate(90deg);
  background: var(--gold);
  -webkit-mask: var(--plane) center / contain no-repeat;
  mask: var(--plane) center / contain no-repeat;
}
.journey li:last-child::after,
.journey.c3 li:nth-child(3n)::after { display: none; }
.j-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 600 20px/1 var(--serif);
  margin-bottom: 14px;
}
.j-label { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; margin: 0 0 6px; }
.journey h3 { font-size: 23px; line-height: 1.2; margin: 0 0 10px; }
.journey p:not(.j-label) { font-size: 15.5px; line-height: 1.6; margin: 0; }
.ivory-section .journey li { background: var(--g); color: var(--ivory); border: 1px solid var(--gold); border-top: 3px solid var(--gold); }
.ivory-section .journey .j-num { background: var(--gold); color: var(--g); }
.ivory-section .journey .j-label { color: var(--gold); }
.ivory-section .journey h3 { color: var(--ivory); }
.dark-section .journey li { background: var(--g); border: 1px solid var(--gold); border-top: 3px solid var(--gold); }
.dark-section .journey .j-num { background: var(--gold); color: var(--g); }
.dark-section .journey .j-label { color: var(--gold); }
.dark-section .journey h3 { color: var(--ivory); }
.journey li.j-decision { background: var(--metal); border-color: var(--gold); }
.dark-section .journey li.j-decision h3,
.dark-section .journey li.j-decision p { color: var(--ink); }
.dark-section .journey li.j-decision .j-label { color: var(--ink); }
.journey li.j-decision .j-num { background: var(--ink); color: var(--gold); }

/* Diagram boxes inside the green panel. */
.cd-box {
  border: 1px solid var(--gold);
  border-radius: 12px;
  background: var(--ink);
  color: var(--ivory);
  padding: 16px 18px;
}
.cd-title { font: 500 22px/1.2 var(--serif); margin: 0 0 4px; }
.cd-sub { font-size: 14.5px; line-height: 1.5; margin: 0; }
.cd-box.metal { background: var(--metal); color: var(--ink); }
.page .cd-box p { color: inherit; }
/* Sections whose text column is taller than the picture: the heading row is only as tall as the heading, the
   copy takes the spare height, and the picture is centred against the pair. */
.page .split-top { grid-template-rows: auto auto 1fr; }
.panel-flow .flow-down { height: 46px; }
.panel-flow { justify-content: center !important; gap: 0; align-self: center; }
.green-section .backbook-visual { background: var(--ink); }
.green-section .cd-box { background: var(--g); }
.green-section .cd-box.metal { background: var(--metal); }
@media (min-width: 701px) { .page h1 em.nb { white-space: nowrap; } }

/* Pricing and care cards. */
.price-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.price-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Each card spans six rows of the shared grid, so the label, name, price, description and "for" line sit at the same
   height in every card. */
.price-grid { row-gap: 0; }
.price-card {
  background: var(--g);
  border: 1px solid var(--gold);
  border-top: 3px solid var(--gold);
  border-radius: 14px;
  padding: 28px 26px 24px;
  display: grid;
  grid-row: span 6;
  grid-template-rows: subgrid;
  row-gap: 0;
  color: var(--ivory);
}
.price-cat { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--gold); margin: 0 0 10px; }
.price-name { font: 500 32px/1.15 var(--serif); color: var(--ivory); margin: 0 0 14px; }
.price { font: 500 clamp(40px, 3.6vw, 52px)/1 var(--serif); color: var(--ivory); margin: 0 0 2px; letter-spacing: -0.02em; }
.price-aud { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--ivory); margin: 0 0 18px; }
.price-card p:not(.price-cat):not(.price-aud):not(.price):not(.price-for) { font-size: 16.5px; line-height: 1.6; margin: 0 0 14px; }
.price-for { margin: 0; padding-top: 14px; border-top: 1px solid var(--gold); font-size: 15px; line-height: 1.55; color: var(--ivory); font-weight: 600; }
.price-note { margin: 22px 0 0; font-size: 15px; line-height: 1.6; max-width: 860px; }
.price-box {
  background: var(--g);
  color: var(--ivory);
  border: 1px solid var(--gold);
  border-radius: 14px;
  padding: 28px 30px;
  box-shadow: 0 22px 60px #06251c22;
}
.price-box .price-cat { color: var(--gold); }
.price-box .price,
.price-box .price-aud { color: var(--ivory); }
.page .price-box p { color: var(--ivory); }
.diag-strip {
  margin-top: 28px;
  background: var(--g);
  color: var(--ivory);
  border: 1px solid var(--gold);
  border-radius: 14px;
  padding: 26px 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 36px;
  align-items: center;
}
.diag-strip h3 { font-size: 28px; color: var(--ivory); margin: 0 0 6px; }
.diag-strip p { margin: 0; font-size: 16.5px; color: var(--ivory); }
.diag-strip .strip-price { text-align: left; }
.diag-strip .strip-price b { display: block; font: 500 30px/1.1 var(--serif); margin-bottom: 8px; }
.page .ivory-section .diag-strip .text-link,
.diag-strip .text-link { color: var(--ivory); margin-top: 0; }

/* What We Do: the five outcomes as wide rows, the four bespoke options, the statement lines. */
.outcomes { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.outcome {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: center;
  background: var(--g);
  border: 1px solid var(--gold);
  border-left: 3px solid var(--gold);
  border-radius: 14px;
  padding: 22px 26px;
}
.outcome-head { display: flex; align-items: center; gap: 16px; }
.outcome-head .engine-icon { margin: 0; flex-shrink: 0; width: 50px; height: 50px; }
.outcome-head .outcome-label { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--gold); margin: 0 0 4px; }
.outcome h3 { font-size: 24px; line-height: 1.2; color: var(--ivory); margin: 0; }
.page .outcome p { font-size: 16px; line-height: 1.6; margin: 0; color: var(--ivory); }
.page .outcome .examples { font-size: 14.5px; border-left: 1px solid var(--gold); padding-left: 22px; }
.outcome .examples b { display: block; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.gallery.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery.no-text li h3 { margin-bottom: 0; }
.statement { font: 500 clamp(24px, 2.2vw, 32px)/1.25 var(--serif); color: var(--g); margin: 18px 0 0; max-width: 900px; }
.mb-gallery .lead { max-width: 820px; }

/* Closing: a short line under the paragraphs, a text link under the button. */
.page #discovery .closing-content > p.closing-line {
  font: 500 clamp(22px, 2vw, 28px)/1.25 var(--serif);
  color: var(--ivory);
  margin: 24px 0 28px;
  max-width: 74%;
}
.page #discovery .closing-content > .text-link { display: flex; width: fit-content; margin-top: 22px; }
.page #discovery .closing-content > .text-link + * { margin-top: 0; }
.page .closing-content .lead { max-width: 690px; }
.page .section-head { max-width: 820px; margin-bottom: 44px; }
.diag-strip .price-cat { color: var(--gold); }
/* Session 10 (owner): the label sat directly on the price; the same 10px as the price cards above. */
.diag-strip .strip-price .price-cat { margin-bottom: 10px; }
.page .backbook-split > .price-box,
.page .integration-split > .price-box { grid-area: visual; align-self: center; }
.cd-box.metal .chips li { background: var(--ink); color: var(--ivory); }
.cd-box .chips { margin-top: 12px; }
.panel-line { font-size: 16px; line-height: 1.6; margin: 18px 0 0; }

/* Tablet and phone for the shared components. */
@media (max-width: 1180px) {
  .journey.c5 { grid-template-columns: minmax(0, 1fr); row-gap: 56px; }
  .journey.c5 li::after { left: calc(50% - 8px); top: calc(100% + 17.5px); transform: rotate(180deg); }
}
@media (max-width: 1100px) {
  .page .split-top { grid-template-rows: none; }
  .gallery.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-grid { grid-template-columns: minmax(0, 1fr); }
  .price-grid:not(.two) > li + li { margin-top: 18px; }
  .outcome { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .page .outcome .examples { border-left: 0; padding-left: 0; border-top: 1px solid var(--gold); padding-top: 12px; }
  .diag-strip { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .journey { grid-template-columns: minmax(0, 1fr); row-gap: 56px; }
  .journey li::after { left: calc(50% - 8px); top: calc(100% + 17.5px); transform: rotate(180deg); }
  .journey.c3 li:nth-child(3n)::after { display: block; }
  .journey.c3 li:last-child::after,
  .journey li:last-child::after { display: none; }
}
@media (max-width: 760px) {
  .hv { grid-template-columns: minmax(0, 1fr); }
  .hv-plane { height: 56px; }
  .hv-plane .plane { transform: rotate(180deg); }
  .price-grid.two { grid-template-columns: minmax(0, 1fr); }
  .price-grid.two > li + li { margin-top: 18px; }
  .gallery.cols-4 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .page .hero-actions { align-items: center; }
  .page #discovery .closing-content > p.closing-line { max-width: 100%; padding-right: 22px; }
  .page #discovery .closing-content > .text-link { align-self: center; }
  .minis li { font-size: 19px; padding: 16px 14px 14px; }
  .hv-card { padding: 22px 20px; }
  .surface-top, .surface-bottom { padding: 18px 18px 22px; }
  .price-box { padding: 24px 20px; }
  .diag-strip { padding: 22px 20px; }
  .outcome { padding: 20px 18px; }
}

/* Column widths chosen so each heading and its body run to the same height on a computer (checked at 1440). */
@media (min-width: 1101px) {
  .page .ap-journey { --cols: minmax(0, 1.3fr) minmax(0, 0.7fr); }
  .page .ap-care,
  .page .wwd-bespoke { --cols: minmax(0, 1fr) minmax(0, 1fr); }
  .page .bd-hidden { --cols: minmax(0, 0.7fr) minmax(0, 1.3fr); }
}

/* Phone: the longer hero text keeps clear of the flight path in the right-hand gutter. */
@media (max-width: 700px) {
  .page:not(.page-mb) .page-hero .hero-copy > p { padding-right: 22px; }
}

/* Business Diagnostics and What We Do refinements */
.known-box { margin-top: 28px; }
.page .known-box p { font-size: var(--body); line-height: 1.7; }
.known-box + .statement { margin-top: 28px; }
.journey.c5 h3 { font-size: 20px; }
/* The closing light stream sits a little lower on the new pages, so the longer closing words stay clear of it. */
.page:not(.page-mb) .closing-light { bottom: -190px; }
@media (max-width: 700px) { .page:not(.page-mb) .closing-light { bottom: 0; } }

/* The example findings report wraps its words, so it fits inside its panel at every width. */
.contact-list.report table { table-layout: fixed; }
.contact-list.report td:first-child { white-space: normal; }
.contact-list.report th:nth-child(1) { width: 34%; }
.contact-list.report th:nth-child(3) { width: 21%; }
@media (max-width: 700px) {
  .contact-list.report th { font-size: 10px; letter-spacing: 0.08em; }
  .contact-list.report table { font-size: 12.5px; }
}

/* Cards on an ivory section are Heritage Green with ivory words, so a box never sits ivory on ivory. */
.gallery .tag-build { color: var(--ivory); border-color: var(--gold); }
.panel-flow.compact .cd-box { padding: 11px 18px; }
.panel-flow.compact .flow-down { height: 36px; }

/* Top sections on a computer: starting width only. Since 24 November 2026 the script (public/js/site.js, section 3) widens the
   words, or brings the trail in, until the words sit about 50px from the trail and plane (owners' hard rule, DESIGN_RULES 5c). */
@media (min-width: 1101px) {
  .page-hero .hero-copy { max-width: min(68vw, 1240px); }
  .page-hero .hero-sub { max-width: min(62vw, 1100px); }
}

/* ======================================================================
   Drawn diagrams (Session 4, 23 November 2026): the flight route, the control orbits, tangle to clarity,
   the layered plates and beneath the surface. Palette only: Green, Ivory, Near Black, gold, the eight-stop gradient.
   ====================================================================== */
.dg { display: block; width: 100%; height: auto; overflow: visible; }
.dg text { font-family: "DM Sans", Arial, sans-serif; }
.dg .serif { font-family: var(--serif); }
.dg-rings text.core { stroke: none; }
.dg-rings text { paint-order: stroke; stroke: var(--ink); stroke-width: 7px; stroke-linejoin: round; }
.dg-tall { display: none; }
.dg-panel {
  background: var(--g);
  border: 1px solid var(--gold);
  border-radius: 18px;
  padding: clamp(22px, 3vw, 40px);
  box-shadow: 0 22px 60px #06251c22;
}
.dg-fig { grid-area: visual; align-self: center; margin: 0; min-width: 0; }
.dg-tangle { max-width: 400px; margin: 0 auto; }
.dg-panel.dg-fig { padding: clamp(20px, 2.4vw, 34px); }

/* The flight route: six waypoints above six columns of words. */
.route-panel .dg-route { margin-bottom: 26px; }
.route-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); color: var(--ivory); }
.route-list li { position: relative; padding: 0 13px; }
.route-list .j-label { color: var(--gold); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; margin: 0 0 8px; }
.route-list h3 { font-size: 20px; line-height: 1.2; color: var(--ivory); margin: 0 0 8px; }
.route-list p:not(.j-label) { font-size: 14.5px; line-height: 1.6; margin: 0; color: var(--ivory); }
.route-list .rl-plane { display: none; }
@media (max-width: 1180px) {
  .route-panel .dg-route { display: none; }
  .route-list { grid-template-columns: minmax(0, 1fr); }
  .route-list li { padding: 0 0 46px 72px; min-height: 46px; }
  .route-list li:last-child { padding-bottom: 0; }
  .route-list li::before {
    content: attr(data-n);
    position: absolute;
    left: 0;
    top: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--ink);
    border: 2.6px solid var(--gold);
    color: var(--gold);
    font: 500 22px/41px var(--serif);
    text-align: center;
  }
  /* A short journey between two waypoints: the dashed line ends on the plane's tail, and the plane stops a small
     gap short of the next waypoint. */
  .route-list li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 22px;
    top: 54px;
    bottom: 33px;
    width: 2.4px;
    background: var(--dash-v-bottom);
  }
  .route-list li:not(:last-child) .rl-plane { display: block; position: absolute; left: 15px; bottom: 10px; transform: rotate(180deg); }
}

/* Key lists under the rings and the plates. */
.dg-legend { list-style: none; margin: 22px 0 0; padding: 0; color: var(--ivory); }
.dg-legend li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 13px 0; border-top: 1px solid var(--gold); }
.dg-legend b { display: block; font: 500 19px/1.25 var(--serif); color: var(--ivory); }
.dg-legend span:not(.num):not(.key-dot) { display: block; font-size: 15px; line-height: 1.5; color: var(--ivory); margin-top: 3px; }
.dg-legend .num { font: 500 24px/1.1 var(--serif); color: var(--gold); }
.dg-key { display: none; }
.key-dot { width: 16px; height: 16px; border-radius: 50%; margin: 3px 0 0 6px; }
.key-gold { background: var(--gold); }
.key-ivory { background: var(--ivory); }
.dg-e { max-width: 1250px; }

@media (max-width: 760px) {
  .dg-wide { display: none; }
  .dg-tall { display: block; }
  .dg-rings.dg-tall { max-width: 380px; margin: 0 auto; }
  .dg-surface.dg-tall { max-width: 420px; margin: 0 auto; }
  .dg-key { display: block; }
  .dg-plates { max-width: 420px; margin: 0 auto; }
  .route-panel, .dg-panel { padding: 20px 18px; }
}

/* Narrow tablets: a phrase kept together in a top heading may wrap, so the words stay clear of the flight path. */
@media (max-width: 760px) {
  .page .page-hero h1 em.nb { white-space: normal; }
}

/* Business Diagnostics, example report (designer's pick A, 24 November 2026): a summary row and a suggested first step,
   so the report runs the same length as the text beside it on a computer. */
.report-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.page .report-summary p {
  margin: 0;
  background: var(--ink);
  border: 1px solid var(--gold);
  border-radius: 9px;
  padding: 10px 6px;
  text-align: center;
  color: var(--ivory);
}
.report-summary b { display: block; font: 500 28px/1 var(--serif); color: #FFDA65; margin-bottom: 4px; }
.report-summary span { display: block; font-size: 12px; letter-spacing: 0.04em; line-height: 1.3; }
.page .report-first {
  margin: 14px 0 0;
  background: var(--metal);
  border: 1px solid var(--gold);
  border-radius: 9px;
  padding: 12px 16px;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.report-first span { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
.report-first b { font-size: 15px; text-align: right; }
@media (min-width: 1101px) {
  .bd-findings .backbook-visual { justify-content: center; }
  .bd-findings .contact-list.report td { padding: 12px 8px 12px 0; }
}
@media (max-width: 600px) {
  .report-summary { gap: 6px; }
  .report-summary b { font-size: 24px; }
  .page .report-summary p { padding: 9px 2px; }
  .report-summary span { font-size: 10px; letter-spacing: 0; }
  .page .report-first { flex-direction: column; align-items: flex-start; gap: 4px; }
  .report-first b { text-align: left; }
}
@media (max-width: 359px) {
  .report-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ======================================================================
   Session 6 pages (24 November 2026): Solutions in Action, About Us, Book a Discovery Call, Privacy Policy,
   Terms and Conditions, page not found. Built only from the palette in docs/DESIGN_RULES.md.
   ====================================================================== */

/* Figure cards: a big number, what it means, and its status. Heritage Green with a gold top edge. */
.figs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.figs.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.figs.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.figs li {
  background: var(--g);
  color: var(--ivory);
  border: 1px solid var(--gold);
  border-top: 3px solid var(--gold);
  border-radius: 14px;
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
}
.dark-section .figs li { background: var(--g); }
.green-section .figs li { background: var(--ink); }
.figs .fig-num { font: 500 clamp(46px, 4.2vw, 64px)/1 var(--serif); letter-spacing: -0.02em; color: var(--ivory); margin: 0 0 14px; }
.figs .fig-label { font: 500 22px/1.2 var(--serif); color: var(--ivory); margin: 0 0 10px; }
.page .figs .fig-status {
  margin: auto 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--gold);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.5;
  color: var(--gold);
}
.page .figs .fig-note { font-size: 15px; line-height: 1.55; margin: 0 0 14px; color: var(--ivory); }

/* Small cards with an icon, a title and one line (four across). */
.gallery.cols-4 p { flex: 0; margin-bottom: 0; }
.dark-section .gallery li { background: var(--g); }
.green-section .gallery li { background: var(--ink); }
.block-gap { margin-top: 56px; }
.page .visual-title.on-dark { color: var(--gold); }

/* Solutions in Action hero: the case study card, a standalone plane, and the "your business" card. */
.hv-card .chips { margin-top: 18px; }

/* About Us hero: two backgrounds, a standalone plane, one business. */
.hv-stack { display: grid; gap: 14px; }

/* About Us: the boutique statement. */
.vision-line { font: 500 clamp(28px, 2.8vw, 40px)/1.2 var(--serif); color: var(--ivory); margin: 28px 0 0; max-width: 980px; }
.vision-line em { color: var(--copper-light); }

/* Book a Discovery Call: three quick facts in the top section. */
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.facts li {
  background: var(--ink);
  border: 1px solid var(--gold);
  border-top: 3px solid var(--gold);
  border-radius: 14px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  font: 500 24px/1.2 var(--serif);
  color: var(--ivory);
}
.facts .engine-icon { margin: 0; flex-shrink: 0; }

/* The booking panel. The calendar goes inside it once the booking code arrives. */
.booking-panel {
  background: var(--g);
  border: 1px solid var(--gold);
  border-radius: 18px;
  padding: clamp(24px, 3vw, 44px);
  color: var(--ivory);
}
.booking-panel h3 { font: 500 clamp(30px, 2.6vw, 38px)/1.15 var(--serif); color: var(--ivory); margin: 0 0 8px; }
.page .booking-panel .booking-meta { font-size: 12.5px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--gold); margin: 0 0 26px; }
.booking-slot {
  border: 1px solid var(--gold);
  border-radius: 14px;
  background: var(--ink);
  min-height: 260px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
}
.booking-slot .engine-icon { margin: 0; }
.booking-slot .cta { margin-top: 18px; } /* 32px under the words, with the 14px gap (Session 12) */
.page .booking-slot p { margin: 0; max-width: 560px; font-size: 17px; line-height: 1.6; color: var(--ivory); }

/* An alternative to booking (Session 10, owner): the enquiry form is removed; the section gives the email address. */
.page .book-enquiry .section-head { margin-bottom: 0; }
.page .book-enquiry .section-head a { color: var(--ivory); border-bottom: 1px solid var(--gold); }

/* Legal pages: one readable column. */
.legal { max-width: 860px; }
.legal h3 { font: 500 28px/1.25 var(--serif); color: var(--g); margin: 44px 0 12px; }
.legal p, .legal li { font-size: 17px; line-height: 1.7; color: var(--ink); }
.legal ul { padding-left: 22px; margin: 0 0 16px; }
.legal li + li { margin-top: 4px; }
.legal a { color: var(--g); border-bottom: 1px solid var(--g); }
.legal .confirm { background: var(--solid-gold); color: var(--ink); padding: 1px 6px; border-radius: 4px; font-weight: 700; }
.legal .updated { margin-top: 40px; font-weight: 700; }

/* Short top section (legal pages, page not found): the words, the button, the plane and trail, the light stream. */
.page-hero.short .hero-content { padding-bottom: 110px; }
.page-hero.short .page-hero-light { bottom: -120px; }

/* Footer: two small legal links (from 24 November 2026). */
.footer .foot-links { display: flex; gap: 22px; flex-wrap: wrap; }

@media (max-width: 1100px) {
  .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figs.three { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .hv-stack { gap: 12px; }
}
@media (max-width: 600px) {
  .figs, .figs.two { grid-template-columns: minmax(0, 1fr); }
  .booking-slot { padding: 24px 18px; min-height: 220px; }
  .legal p, .legal li { font-size: 16px; }
}
.page .footnote.on-dark { color: var(--ivory); }
.sia-learn { margin-top: 44px; }
.gallery.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .gallery.cols-3 { grid-template-columns: minmax(0, 1fr); } }
.page-book .journey .j-num { font-size: 18px; }
.page .block-gap { margin-top: 56px; }
/* Column widths chosen so each heading and its body end together on a computer (checked at 1280, 1440, 1600 and 1920). */
@media (min-width: 1101px) {
  .page .about-practise { --cols: minmax(0, 0.95fr) minmax(0, 1.05fr); }
  .page .sia-brokerage { --cols: minmax(0, 0.9fr) minmax(0, 1.1fr); }
}
.page .dark-section .hv-metal p,
.page .dark-section .hv-metal .engine-kicker { color: var(--ink); }
.page .section .block-gap { margin-top: 56px; }
@media (min-width: 1101px) { .page .sia-ai { --cols: minmax(0, 0.8fr) minmax(0, 1.2fr); } }
/* Solutions in Action top section: the two case studies side by side (no plane: they are not a flow). */
.hv-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.hv-metal .chips li { background: var(--ink); color: var(--ivory); }
@media (max-width: 760px) { .hv-pair { grid-template-columns: minmax(0, 1fr); } }
/* On a Near Black section the dark card turns Heritage Green, so a box never matches its background. */
.page .dark-section .hv-card:not(.hv-metal) { background: var(--g); }
.page .dark-section .hv-card:not(.hv-metal) .chips li { background: var(--ink); }
/* Solutions in Action: the two Corvella demo screenshots (designer approved, 24 November 2026). */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.shots figure { margin: 0; background: var(--g); border: 1px solid var(--gold); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.shots img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--gold); }
.page .shots figcaption { padding: 16px 20px 18px; font-size: 14.5px; line-height: 1.55; color: var(--ivory); }
.shots figcaption b { display: block; font: 500 21px/1.25 var(--serif); color: var(--ivory); margin-bottom: 4px; }
@media (max-width: 900px) { .shots { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 1101px) and (max-width: 1399px) { .page .sia-brokerage { --cols: minmax(0, 0.8fr) minmax(0, 1.2fr); } }
@media (min-width: 1101px) and (max-width: 1199px) { .page .sia-brokerage, .page .sia-ai { --cols: minmax(0, 0.7fr) minmax(0, 1.3fr); } }

/* ======================================================================
   Updated homepage (option for the owners, 24 November 2026): body.home-v2. The version 30 look is kept; the owners'
   rules are applied (one heading size, box contrast, no light stream across words) and each section links to its page.
   ====================================================================== */
.home-v2 { --h: clamp(44px, 4.2vw, 62px); }
.home-v2 .section h2 {
  font-size: var(--h) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.025em !important;
  text-wrap: pretty;
}
.home-v2 .text-link { margin-top: 24px; }
.home-v2 .ivory-section .text-link { color: var(--g); }
.home-v2 .home-more { margin-top: 36px; }
.home-v2 .home-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 18px 0 0; }
.home-v2 .home-links .text-link { margin-top: 0; }
/* Figures: the same cards as Solutions in Action, each with its status. */
.home-v2 #evidence { padding-top: 110px; }
.home-v2 #evidence .figs li { background: var(--ink); }
.home-v2 #evidence .figs .fig-status { margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--gold); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; line-height: 1.5; color: var(--gold); }
.home-v2 #evidence .lead { color: var(--ivory); }
.home-v2 #evidence h2 em { color: var(--copper-light); }
/* A box never matches its section: the workflow box on the Near Black section turns Heritage Green. */
.home-v2 #mortgage .architecture { background: var(--g) !important; }
/* The light streams sit below the words. */
.home-v2 #discovery .closing-light { bottom: -170px; }
@media (max-width: 700px) {
  .home-v2 #evidence { padding-top: 72px; }
  .home-v2 .home-links { flex-direction: column; align-items: flex-start; }
  .home-v2 #discovery .closing-light { bottom: -40px; }
}
@media (max-width: 700px) { .home-v2 { --h: 41.5px; } }
.home-v2 .text-link { width: fit-content; }
/* Small laptops (1101 to 1199 px): column widths re-chosen so headings and text still end together. */
@media (min-width: 1101px) and (max-width: 1199px) {
  .page .about-practise { --cols: minmax(0, 0.7fr) minmax(0, 1.3fr); }
  .page .book-reassure { --cols: minmax(0, 0.9fr) minmax(0, 1.1fr); }
}

/* About Us (Session 7): the origin story. Computer: heading and photo on the left, the story on the right,
   both starting and ending on the same lines (the photo fills the height left under the heading). */
.page .about-story .story-label { margin: 0 0 22px; }
.story-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(48px, 5.5vw, 96px); align-items: stretch; }
.story-lead { display: flex; flex-direction: column; }
.page .about-story .story-lead h2 { margin: 0 0 36px; }
.story-photo { margin: 0; flex: 1 1 auto; min-height: 280px; position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--gold); background: var(--g); }
.story-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 42% 60%; display: block; }
.page .section .story-text p { font-size: var(--body); line-height: 1.75; margin: 0 0 22px; color: var(--ink); }
.page .section .story-text p:first-child { margin-top: -0.4em; }
.page .section .story-text p:last-child { margin-bottom: 0; }
.page .section .story-text .story-turn {
  font: italic 500 clamp(28px, 2.3vw, 34px)/1.2 var(--serif);
  color: var(--g);
  margin: 34px 0 26px;
}
.page .section .story-text .story-turn::before { content: ""; display: block; width: 56px; height: 1px; background: var(--gold); margin-bottom: 24px; }
@media (max-width: 1100px) {
  .story-grid { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
  .story-photo { flex: none; min-height: 0; aspect-ratio: 16 / 9; }
  .page .section .story-text { max-width: 720px; }
  .page .section .story-text p:first-child { margin-top: 0; }
}
@media (max-width: 600px) { .story-photo { aspect-ratio: 4 / 3; } }
.expertise { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.expertise li {
  background: var(--g);
  color: var(--ivory);
  border: 1px solid var(--gold);
  border-top: 3px solid var(--gold);
  border-radius: 14px;
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
}
.expertise h3 { font: 500 28px/1.15 var(--serif); color: var(--ivory); margin: 0 0 12px; }
.page .section .expertise .exp-text { font-size: 16px; line-height: 1.6; margin: 0 0 26px; color: var(--ivory); }
.page .section .expertise .exp-metal .exp-text { margin-bottom: 0; }
.page .section .expertise .engine-kicker { color: var(--gold); }
.expertise .engine-kicker { margin-bottom: 14px; }
.expertise .exp-proof { margin: auto 0 0; padding-top: 18px; border-top: 1px solid var(--gold); display: flex; align-items: baseline; gap: 14px; }
.expertise .exp-num { font: 500 clamp(40px, 3.6vw, 54px)/1 var(--serif); letter-spacing: -0.02em; color: var(--ivory); }
.expertise .exp-label { font-size: 14px; line-height: 1.45; color: var(--ivory); }
.expertise li.exp-metal { background: var(--metal); }
/* On the Heritage Green section the cards are Near Black, so a box never matches its section. */
.green-section .expertise li:not(.exp-metal) { background: var(--ink); }
.page .section .expertise li.exp-metal .exp-text,
.page .section .expertise li.exp-metal h3,
.page .section .expertise li.exp-metal .engine-kicker { color: var(--ink); }
@media (max-width: 1100px) { .expertise { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .expertise li { padding: 24px 20px 20px; } .expertise h3 { font-size: 24px; } }
/* Mortgage brokerages section: the workflow drawing shrinks to the height of the words beside it (owners, 24 November 2026). */
@media (min-width: 1101px) {
  .home-v2 #mortgage .split > div:last-child { min-height: 0; }
  .home-v2 #mortgage .architecture svg { flex: 1 1 0; min-height: 0; height: 100% !important; width: 100% !important; }
}

/* Mortgage section (designer, 24 November 2026): on a computer the workflow box takes the height of the words beside it
   (label to link), and the drawing shrinks to fit inside it. */
@media (min-width: 1101px) {
  .home-v2 #mortgage .split > div:last-child { height: 0; min-height: 100%; padding: 26px 32px !important; }
  .home-v2 #mortgage .architecture svg { flex: 1 1 auto; min-height: 0; height: 100% !important; width: 100% !important; }
  .home-v2 #mortgage .architecture .eyebrow { margin-bottom: 10px; }
}

/* ======================================================================
   Mortgage Brokerages: "You bought the book" (bringing a bought book across), Session 7 draft.
   A Heritage Racing Green section between the ivory gallery and the Near Black diagnostics section.
   ====================================================================== */
.page .mb-transfer .backbook-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.page .mb-transfer .list-head {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin: 26px 0 12px;
}
.page .mb-transfer .crosses { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.page .mb-transfer .crosses li {
  position: relative;
  padding-left: 34px;
  font-size: var(--body);
  line-height: 1.5;
}
.page .mb-transfer .crosses li::before {
  content: "×";
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 15px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page .mb-transfer .specialist { margin: 26px 0 0; }
.page .mb-transfer .tags .tag + .tag { margin-left: 0; }
.page .mb-transfer .tag-build { color: var(--ivory); border-color: var(--gold); }
/* The box differs from the green section behind it. */
.page .mb-transfer .transfer-visual { background: var(--ink); justify-content: center; }
.page .mb-transfer .transfer-visual .visual-title { margin: 0 0 18px; }
.transfer-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 16px; }
.transfer-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
}
.transfer-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page .transfer-steps h3 { font: 500 21px/1.25 var(--serif); color: var(--ivory); margin: 2px 0 4px; }
.page .transfer-steps p { font-size: 15.5px; line-height: 1.55; margin: 0; color: var(--ivory); }
/* The batch ladder: a short step between boxes, so each plane stands alone with equal gaps. */
.ladder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--gold);
}
.ladder .rung {
  border: 1px solid var(--gold);
  border-radius: 9px;
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ivory);
  background: var(--g);
  white-space: nowrap;
}
.ladder .plane { transform: rotate(90deg); width: 14px; height: 20px; flex: 0 0 auto; }
@media (max-width: 1100px) {
  .page .mb-transfer .backbook-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .ladder { gap: 7px; }
  .ladder .rung { padding: 6px 8px; font-size: 13px; }
  .ladder .plane { width: 12px; height: 17px; }
}

/* You bought the book: the one status pill is centred on phones and small tablets (owner, 25 November 2026). */
@media (max-width: 760px) { .page .mb-transfer .transfer-status { display: flex; justify-content: center; } }

/* Session 7 infographics (owners' picks, 25 November 2026): computer version above 760 px, phone version below. */
.pp-pipeline.pp-phone, svg.pp-phone { display: none; }
@media (max-width: 760px) { .pp-pipeline.pp-desk, svg.pp-desk { display: none; } .pp-pipeline.pp-phone { display: grid; } }
.pp-pipeline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 4px; }
.pp-pipeline.pp-phone { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.pp-card { display: block; width: 100%; height: auto; }
.pp-curves { display: block; width: 100%; height: auto; margin-top: 44px; }
@media (max-width: 760px) { svg.pp-curves.pp-phone { display: block !important; max-width: 480px; } }
/* Deliberately boutique: a funnel (engagements chosen carefully) leading to the gold box. */
.bq-graphic { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 20px; align-items: center; background: var(--g); border: 1px solid var(--gold); border-radius: 14px; padding: 40px 44px; margin-top: 8px; }
.bq-left { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.bq-funnel { display: block; width: 100%; height: auto; max-width: 560px; }
.page .section .bq-caption { margin: 0; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--gold); text-align: center; }
.bq-box { background: var(--metal); color: var(--ink); border-radius: 14px; padding: 38px 40px; }
.bq-no { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.bq-no li { display: flex; align-items: center; gap: 16px; font: 600 clamp(22px, 2vw, 28px)/1.2 var(--serif); color: var(--ink); }
.bq-no li::before { content: "✕"; flex: none; width: 34px; height: 34px; border: 1.5px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font: 700 15px/1 var(--sans, "DM Sans", sans-serif); color: var(--ink); }
.page .section .bq-each { margin: 26px 0 0; padding-top: 22px; border-top: 1px solid var(--ink); font-size: var(--body); line-height: 1.6; color: var(--ink); }
@media (max-width: 1100px) { .bq-graphic { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 30px; } .bq-funnel { max-width: 460px; } }
@media (max-width: 600px) { .bq-graphic { padding: 22px 18px; } .bq-box { padding: 26px 22px; } .bq-no li { font-size: 21px; gap: 12px; } .bq-no li::before { width: 30px; height: 30px; font-size: 13px; } }

/* Session 8 (owner, 25 November 2026): desktop text runs the full width of its column.
   Headings and body text in the same column share the same boundaries and wrap naturally.
   Computers only; tablets and phones are unchanged. The top and closing sections keep the
   flight-path clearance set by js/site.js (inline widths there still win). */
@media (min-width: 1101px) {
  .lead,
  .page .section .lead,
  .page .closing-content .lead,
  .mb-gallery .lead,
  .page .section-head,
  .mb-gallery .section-head,
  .statement,
  .objective,
  .price-note,
  .vision-line,
  .legal,
  .page .section .story-text { max-width: none; }
}

/* Session 8: the closing section is as tall as its words; js/site.js section 4 places the light stream (computers only). */
@media (min-width: 1101px) {
  .cta-section#discovery { min-height: 0; padding-bottom: 96px; }
  /* The stream's left end fades out, so no hard edge shows when it sits higher. */
  #discovery .closing-light {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%);
    mask-image: linear-gradient(to right, transparent 0, #000 22%);
  }
}

/* Session 8: two-column sections keep natural paragraph spacing (no paragraphs pushed apart to fill the column). Computers only. */
@media (min-width: 1101px) {
  .page .intro-body { justify-content: flex-start; }
}

/* Session 8: Retention & growth, the two status pills (computers only). Both pills line up with the text above, sit a
   little further apart, and the pair ends level with the bottom of the diagram. */
@media (min-width: 1101px) {
  .mb-backbook .backbook-copy { display: flex; flex-direction: column; }
  .mb-backbook .backbook-copy .tags {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 14px 12px;
    margin-top: auto;
    padding-top: 36px;
  }
  .mb-backbook .backbook-copy .tags .tag { margin-left: 0; justify-self: start; }
}

/* Session 8: Our Story. The story's first line sits a few pixels lower, so its capitals line up by eye with the top
   of the large heading beside it (computers only). */
@media (min-width: 1101px) {
  .page .section .story-text p:first-child { margin-top: calc(-0.4em + 6px); }
}

/* Session 8 (owner): "#home" and "#top" (the logo, "Back to top" and shared links ending in #home) open the page at its very
   top, with the opening plane in view, instead of just under the sticky menu bar. The margin is larger than the distance
   from the page top, so the browser stops at the top. Other in-page links are unchanged. */
#home, #top { scroll-margin-top: 400px; }

/* Session 8 (owner): on phones the words in the top and closing sections keep a comfortable distance from the plane and
   its trail, which run up the right-hand margin. The words stop short of that corridor; type sizes are unchanged. */
@media (max-width: 700px) {
  .page :is(.hero-copy, .closing-content) > :is(h1, h2, p),
  :is(.hero-copy, .closing-content) > :is(h1, h2, p) { padding-right: var(--trail-room, 34px) !important; }
}

/* Session 8 (owner): Retention & growth on phones (and tablets). Each status pill is centred, with its description centred
   underneath it. A named exception to left alignment; computers keep the left-aligned pair set above. */
@media (max-width: 1100px) {
  .mb-backbook .backbook-copy .tags {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
    row-gap: 8px;
    margin-top: 30px;
  }
  .mb-backbook .backbook-copy .tags .tag { margin-left: 0; }
  .mb-backbook .backbook-copy .tags .tag:not(:first-child) { margin-top: 14px; }
}

/* Session 8: on very small phones (under 360px) "ordinary solutions." on Home may wrap, so it is never cut off at the screen edge. */
@media (max-width: 359px) {
  #about .keep-ordinary-solutions { white-space: normal; }
}

/* Session 8: top sections on phones end a fixed, narrow margin below their light stream; js/site.js sets the height
   (so the room the stylesheet used to keep below the cards and button goes). */
@media (max-width: 700px) {
  .page-hero .hero-content, section.hero#top .hero-content { padding-bottom: 0 !important; }
}

/* Session 8: on phones, the boxes in a top section sit directly above the light stream's margin (js/site.js sets the height). */
@media (max-width: 700px) {
  .page-hero > :not(.hero-light):not(.hero-content) { padding-bottom: 0 !important; margin-bottom: 0 !important; }
}

/* Session 9 (owners' font rule): only titles use Newsreader ("The penny dropped." is the one exception). Statements, pull lines, closing lines, the vision
   line and the boutique "No ..." list are body text: DM Sans, the section's body size, weight and colour. */
.page p.statement,
.page p.pull,
.page #discovery .closing-content > p.closing-line,
.page p.vision-line,
.page .bq-no li {
  font: 400 var(--body)/1.7 "DM Sans", Arial, sans-serif;
  letter-spacing: normal;
}
.page p.statement { color: var(--ink); margin: 0 0 18px; }
.green-section p.statement, .dark-section p.statement { color: var(--ivory); }
.page p.pull { margin: 0 0 18px; }
.page p.pull em, .page p.vision-line em { color: inherit; }
.page #discovery .closing-content > p.closing-line { margin: 0 0 28px; }
.page p.vision-line { margin: 0; }
.page .bq-no li { color: var(--ink); }
.page #discovery .closing-content > p.closing-line { line-height: 1.72; }
/* Session 9: the findings box is taller than the text beside it once the closing line became body text; centre it against the label, heading and text. */
@media (min-width: 1101px) { .page .bd-findings .integration-split > .backbook-visual { grid-row: 1 / span 3; align-self: center; margin-top: 20px; } }
/* Session 9 (owner): phone and tablet "How we work together": numbers, trails and planes centred on the circles (centre line 25.5px). */
@media (max-width: 1180px) {
  .route-list li::before { box-sizing: border-box; width: 51px; height: 51px; display: flex; align-items: center; justify-content: center; line-height: 1; font-variant-numeric: lining-nums; padding-top: 4.8px; }
  .route-list li:not(:last-child)::after { left: 24.3px; }
  .route-list li:not(:last-child) .rl-plane { left: 17.5px; }
}

/* Session 9 (owners): phones. Every section has the same narrow space above its first element and below its last (38px, about
   40% less than before); in a top section with boxes the button comes last (js/site.js section 5), with the same gap (32px) between
   the words, the boxes and the button; the boxes are inset equally so the trail up the right-hand edge stays clear of them. */
@media (max-width: 700px) {
  :root { --phone-edge: 38px; --phone-gap: 32px; }
  .section { padding-top: var(--phone-edge); padding-bottom: var(--phone-edge); }
  .page-hero .hero-content, section.hero#top .hero-content { padding-top: var(--phone-edge); }
  .page-hero:not(.actions-last) .hero-content, section.hero#top .hero-content { padding-bottom: var(--phone-edge) !important; }
  .page-hero.actions-last .hero-content { position: static; padding-bottom: var(--phone-gap) !important; }
  .page-hero.actions-last .hero-copy > :last-child { margin-bottom: 0; }
  .page-hero.actions-last .engines-band { padding-left: 28px; padding-right: 28px; }
  .page .page-hero > .hero-end.hero-end { position: relative; z-index: 4; display: flex; flex-direction: column; align-items: center;
    padding: var(--phone-gap) 20px var(--phone-edge) !important; }
  .page-hero > .hero-end .hero-actions, .page-hero > .hero-end .hero-button { margin: 0; }
}
@media (max-width: 700px) {
  /* The same 38px below the last element: the closing sections and the homepage's figures section too, and no paragraph's own
     bottom margin adds to it. */
  .page .cta-section, .cta-section#discovery, .cta-section { padding-bottom: var(--phone-edge) !important; }
  #evidence.section { padding-top: var(--phone-edge); }
  .section .wrap > :last-child, .section .wrap > :last-child > :last-child, .section .wrap > :last-child > :last-child > :last-child,
  .section .closing-content > :last-child, .legal > :last-child { margin-bottom: 0 !important; }
}
@media (max-width: 700px) {
  /* The same 32px between the button and whatever sits above it, in every top and closing section. */
  .hero-copy > .hero-actions, .hero-copy > a.cta, .closing-content > a.cta, .closing-content > .cta { margin-top: var(--phone-gap) !important; }
  .hero-copy > :has(+ .hero-actions), .hero-copy > :has(+ a.cta), .closing-content > :has(+ .cta) { margin-bottom: 0 !important; }
}

/* Session 10: Our Approach, "Your business stays in control" on computers. The closing line's bottom margin made the
   text column 18px taller than its words, so the orbit diagram sat 9px low against them. */
@media (min-width: 1101px) {
  .page .ap-control .backbook-copy > p:last-child { margin-bottom: 0; }
  /* Where the diagram is a little taller than the words, it overhangs them equally above and below. */
  .page .ap-control .dg-fig { margin-block: -8px; }
}

/* Session 10: Mortgage Brokerages, the prioritised contact list on the smallest phones (under 360px). The spaced-out
   table was 17px wider than its box and ran past the screen edge. Slimmer padding inside the dark panel and the list gives
   it room; the type size is unchanged. */
@media (max-width: 389px) {
  .mb-backbook .backbook-visual { padding-left: 10px; padding-right: 10px; }
  .mb-backbook .contact-list { padding-left: 8px; padding-right: 8px; }
  .mb-backbook .contact-list th { letter-spacing: 0.06em; }
  .mb-backbook .contact-list td:first-child .rank { display: flex; margin: 0 0 4px; }
}

/* Session 10 (owner): About Us, Our vision. The closing line sat 44px under the paragraphs above it; now the same 18px
   as between those paragraphs, on every screen. */
.page .section-head:has(+ .vision-line) { margin-bottom: 18px; }

/* Session 10 (owner): the legal pages' top section has no button, plane or trail, and is much shorter. Computers and
   tablets here; phones keep the 38px section spacing (4d). The light stream is placed whole by public/js/site.js section 4
   (data-light-fit), just clear of the words. */
@media (min-width: 701px) {
  .page-legal .page-hero.short .hero-content { padding-top: 48px; padding-bottom: 44px; }
}

/* Session 10 (owner, Q55): page not found has one button, "Back to the homepage". The menu bar's booking button is hidden there:
   on computers it keeps its space (so the menu and the plane, which sits under that spot, don't move); in the drop-down menu it is
   removed. */
.page-404 header .navlinks .nav-cta { visibility: hidden; }
@media (max-width: 1100px) {
  .page-404 header .navlinks .nav-cta { display: none; }
}

/* Session 10 (owner): About Us, the email paragraphs in the top section (above the button) and the closing section. */
.page .hero-sub-quiet:has(+ .hero-contact) { margin-bottom: 18px; }
.page .hero-contact { margin-bottom: 32px; }
.page .hero-contact a,
.page .closing-email a { color: var(--ivory); border-bottom: 1px solid var(--gold); }

/* Footer on phones: "Contact us" on its own line, centred (an owner, 26 November 2026, Session 11). */
@media (max-width: 700px) {
  .footer .wrap > span:first-child { flex-basis: 100%; text-align: center; }
  .footer .foot-links { flex-basis: 100%; justify-content: center; flex-wrap: nowrap; white-space: nowrap; gap: 16px; font-size: 12px; }
}
@media (max-width: 350px) {
  .footer .foot-links { gap: 12px; font-size: 11px; }
}

/* Session 12: the light streams stay hidden until the fonts have arrived and the script has put them in their final place, so
   they never jump while a page loads (public/js/site.js, end of section 4). Without the script the class is never added. */
.lights-wait .hero-light, .lights-wait .closing-light { visibility: hidden; }
