/* Descent: the Workflow section as one thread that plugs into a card for each stage.
   Colours are the Descent concept's: paper ground, ink text, forest thread, amber lamp,
   mint highlights, white cards. Every custom property defaults to its finished state, so the
   section is complete with no script, with reduced motion, and when motion is paused.
   descent.js only scrubs them. */
#how-it-works .workflow-shell,
#how-it-works .workflow-bottom,
#how-it-works .workflow-scroll-track { display: none; }

/* heading: the sage band from the concept, on a paper ground */
#how-it-works.workflow-band { background: #edf0f5; color: #292a2d; }
#how-it-works.workflow-band p { color: #64666d; }
/* Five screens, one per stage. Screen one is the heading band plus stage one, and screen five is
   stage five plus the finale, so the panel is exactly five viewports tall. descent.js sets
   --wd-vh, --wd-h0 (screen one's stage) and --wd-h4 / --wd-end (screen five's two halves). */
#how-it-works { --wd-p: clamp(76px, 10.5vh, 96px); }
#how-it-works .section-space { padding-top: var(--wd-p); padding-bottom: 0; }
#how-it-works .section-heading.center {
  max-width: none; margin-bottom: clamp(10px, 2.4vh, 24px); padding: clamp(18px, 4vh, 40px) 24px clamp(18px, 3.8vh, 38px); border-radius: 28px;
  background: #eef1ed; box-shadow: inset 0 0 0 1px rgba(217, 220, 225, .7);
}
#how-it-works .section-heading h2 { margin: 0; color: #292a2d; font-size: clamp(34px, 6.4vh, 58px); letter-spacing: -.045em; line-height: 1.02; }
#how-it-works .section-heading h2 br,
#how-it-works .section-heading > p br { display: none; }
#how-it-works .section-heading h2 em { font-style: normal; color: #2f5f4d; }
#how-it-works .section-heading > p { margin-top: clamp(8px, 1.8vh, 16px); font-size: 17px; line-height: 1.45; letter-spacing: -.005em; }
#how-it-works .section-heading .badge,
.workflow-descent .wd-badge {
  height: 30px; padding: 0 14px 0 10px; gap: 8px; border-radius: 999px; background: #fff; color: #292a2d;
  box-shadow: 0 12px 26px -16px rgba(51, 55, 65, .3), 0 1px 2px rgba(51, 55, 65, .06);
  font-size: 13.5px; letter-spacing: -.005em; white-space: nowrap;
}
#how-it-works .section-heading .badge { margin-bottom: clamp(8px, 1.8vh, 16px); }
#how-it-works.workflow-band .badge svg,
.workflow-descent .wd-badge svg { width: 15px; height: 15px; padding: 0; border-radius: 0; background: none; color: #2f5f4d; }

.workflow-descent {
  --mid: clamp(84px, 11vw, 150px);
  --forest: #2f5f4d;
  --amber: #f2b84b;
  --mint: #e3f0d5;
  --ink: #292a2d;
  --mute: #64666d;
  --soft: #f6f7f9;
  --hair: #e8eaee;
  --dots: #b7bcc4;
  position: relative;
}
.workflow-descent svg { width: auto; height: auto; }
/* the two faint rails either side of the content */
.workflow-descent::before, .workflow-descent::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 1px; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(41, 42, 45, .22) 0 2px, transparent 2px 9px);
}
.workflow-descent::before { left: -22px; }
.workflow-descent::after { right: -22px; }

/* thread */
.wd-thread { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.wd-thread path { fill: none; stroke-linecap: round; }
.wd-base { stroke: var(--dots); stroke-width: 2; stroke-dasharray: 1 8; }
.wd-fill { stroke: var(--forest); stroke-width: 2.6; }
.wd-orb {
  position: absolute; left: 0; top: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  background: var(--amber); opacity: 0; pointer-events: none; will-change: transform;
  box-shadow: 0 0 0 5px rgba(242, 184, 75, .28), 0 0 22px 4px rgba(242, 184, 75, .7);
}

/* nodes */
.wd-steps { list-style: none; margin: 0; padding: 0; }
.wd-node {
  --pt: var(--wd-p, 84px);
  position: relative; display: grid; align-items: center; box-sizing: border-box;
  grid-template-columns: minmax(0, 1fr) var(--mid) minmax(0, 1fr);
  height: var(--wd-vh, 100svh); padding-top: var(--pt);
  opacity: var(--a, 1);
}
.wd-node:first-child { --pt: 0px; height: var(--wd-h0, calc(100svh - 420px)); }
.wd-node:last-child { height: var(--wd-h4, 56svh); }
.wd-txt { grid-row: 1; grid-column: 1; text-align: right; padding-right: 20px; min-width: 0; }
.wd-node > .wd-card { grid-row: 1; grid-column: 3; justify-self: start; }
.wd-node:nth-child(even) .wd-txt { grid-column: 3; text-align: left; padding: 0 0 0 20px; }
.wd-node:nth-child(even) > .wd-card { grid-column: 1; justify-self: end; }

.workflow-descent .wd-badge { margin-bottom: 18px; }
.wd-txt h3, .wd-end h3 { font-weight: 400; letter-spacing: -.045em; line-height: 1.02; color: var(--ink); }
.wd-txt h3 { font-size: clamp(36px, 3.8vw, 46px); }
.wd-txt h3 em, .wd-end h3 em { font-style: normal; color: var(--forest); }
.wd-txt p { margin-top: 14px; max-width: 34ch; font-size: 16.5px; line-height: 1.45; letter-spacing: -.005em; color: var(--mute); }
.wd-node:not(:nth-child(even)) .wd-txt p { margin-left: auto; }
.wd-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 13px; color: var(--forest); }
.wd-link svg { width: 14px; height: 14px; }

/* the plug: cable from the thread into the card */
.wd-port {
  position: absolute; left: 50%; top: 50%; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%;
  background: #1f2023; box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(0, 0, 0, .35);
}
.wd-port::after {
  content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--amber);
  opacity: var(--lamp, 1); box-shadow: 0 0 calc(8px * var(--lamp, 1)) var(--amber);
}
.wd-cab {
  position: absolute; top: 50%; left: 50%; height: 2px; margin-top: -1px; width: calc(var(--mid) / 2 + 4px);
  background: repeating-linear-gradient(to right, var(--dots) 0 2px, transparent 2px 8px);
}
.wd-node:nth-child(even) .wd-cab { left: auto; right: 50%; --org: right; }
.wd-cab b { position: absolute; inset: 0; background: var(--forest); transform-origin: var(--org, left); transform: scaleX(var(--w, 1)); }
.wd-cab > svg, .wd-cab b > svg { display: none; }

/* cards */
.wd-card {
  width: 100%; max-width: 410px; padding: 16px 18px 12px; border-radius: 8px; background: #fff; color: var(--ink);
  border: 1px solid rgba(217, 220, 225, .7); box-shadow: 0 22px 48px -20px rgba(51, 55, 65, .26);
}
.wd-tile { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 8px; background: #eceff3; color: var(--ink); }
.wd-tile svg { width: 18px; height: 18px; }

/* finale */
.wd-end {
  position: relative; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center;
  min-height: var(--wd-end, 44svh); padding: 28px 0 clamp(16px, 4vh, 40px); text-align: center;
}
.wd-end h3 { max-width: 780px; margin: 0 auto; font-size: clamp(34px, min(4.3vw, 6.2vh), 56px); }
.wd-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: clamp(16px, 3.4vh, 30px); text-align: left; }
.wd-mini { display: flex; align-items: flex-start; gap: 12px; max-width: none; padding: 16px; opacity: var(--o, 1); transform: translateY(calc((1 - var(--o, 1)) * 18px)); }
.wd-mini b { display: block; margin-bottom: 3px; font-weight: 500; font-size: 14.5px; }
.wd-mini span:not(.wd-tile) { font-size: 13.5px; line-height: 1.4; color: var(--mute); }

/* phone: one column, with the thread connected at each card's centre */
@media (max-width: 760px) {
  #how-it-works { --wd-p: 78px; }
  #how-it-works .section-heading.center { padding: 22px 16px 20px; border-radius: 22px; margin-bottom: 14px; }
  #how-it-works .section-heading h2 { font-size: 34px; }
  #how-it-works .section-heading h2 br { display: inline; }
  #how-it-works .section-heading > p { display: none; }
  .workflow-descent::before, .workflow-descent::after { display: none; }
  .wd-node { display: block; height: auto; min-height: var(--wd-vh, 100svh); padding: var(--pt) 0 0 46px; }
  .wd-node:first-child { --pt: 6px; height: auto; min-height: var(--wd-h0, 60svh); }
  .wd-node:last-child { height: auto; min-height: var(--wd-h4, 56svh); }
  .wd-txt, .wd-node:nth-child(even) .wd-txt { text-align: left; padding: 0; }
  .wd-node:not(:nth-child(even)) .wd-txt p { margin-left: 0; }
  .wd-txt h3 { font-size: 34px; }
  .wd-txt p { max-width: none; margin-top: 8px; font-size: 15px; }
  .workflow-descent .wd-badge { margin-bottom: 12px; }
  .wd-link { display: none; }
  .wd-node .wd-port { left: 22px; top: var(--wd-port-y, 50%); z-index: 1; }
  .wd-node .wd-cab, .wd-node:nth-child(even) .wd-cab { display: block; left: 22px; right: auto; top: var(--wd-port-y, 50%); width: 24px; --org: left; }
  .wd-node > .wd-card, .wd-node:nth-child(even) > .wd-card { max-width: none; margin-top: 18px; }
  .wd-end { padding: 22px 0 16px 46px; text-align: left; justify-content: flex-start; min-height: var(--wd-end, 44svh); }
  .wd-end h3 { margin: 0; font-size: 28px; }
  .wd-row3 { grid-template-columns: 1fr; gap: 8px; margin-top: 14px; }
  .wd-mini { padding: 11px 12px; }
  .wd-mini .wd-tile { width: 30px; height: 30px; }
}

/* Finale cards retain their existing Lamp style. */
.workflow-descent .wd-mini {
  --ink: #edf0f5; --mute: #9a9fa8; --hair: #43464d; --soft: #33353b;
  background: #2a2b2f; border: 0; border-radius: 16px; box-shadow: 0 30px 60px -36px rgba(20, 21, 24, .75);
}
.workflow-descent .wd-mini .wd-tile { background: #3a3d43; color: #cfe5b8; }

/* Exploded light-beam stage cards, ported from the approved studio. */
  .workflow-descent .wd-xv {
    --zc: 72px; container: card / inline-size; position: relative; box-sizing: border-box; overflow: hidden; min-height: 0; border-radius: 16px; color: #edf0f5;
    background: radial-gradient(110% 90% at 72% 42%, #356b53 0%, #25503f 45%, #17302a 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 44px 70px -42px rgba(23, 48, 42, .85);
  }
  .workflow-descent .wd-xv::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(237, 240, 245, .16) 1px, transparent 1.4px); background-size: 22px 22px; -webkit-mask: radial-gradient(75% 80% at 70% 46%, #000, transparent); mask: radial-gradient(75% 80% at 70% 46%, #000, transparent); }
  .workflow-descent .wd-xv .wd-x-iso { position: absolute; top: 0; bottom: 0; left: 260px; right: 0; scale: 1.2; }
  .workflow-descent .wd-xv .wd-x-floor { position: absolute; left: 50%; top: calc(50% + (var(--zc) + 30px) * .866); width: 230px; height: 70px; margin-left: -115px; border-radius: 50%; background: radial-gradient(closest-side, rgba(8, 20, 15, .55), transparent); }
  .workflow-descent .wd-xv .wd-x-stack { position: absolute; left: 50%; top: calc(50% + var(--zc) * .866); width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(60deg) rotateZ(-40deg); }
  .workflow-descent .wd-xv .wd-x-pl {
    position: absolute; left: -75px; top: -75px; box-sizing: border-box; width: 150px; height: 150px; padding: 14px; border-radius: 12px; transform-style: preserve-3d;
    transform: translateZ(calc(var(--z) * var(--k, 1))) translateX(var(--dx, 0px));
    background: linear-gradient(135deg, rgba(237, 240, 245, .26), rgba(237, 240, 245, .1));
    box-shadow: inset 0 0 0 1px rgba(237, 240, 245, .48), 0 0 24px rgba(207, 229, 184, .08);
    --m: #cfe5b8;
  }
  .workflow-descent .wd-xv .wd-x-lbs { position: absolute; left: 30px; top: 0; bottom: 0; width: 230px; }
  .workflow-descent .wd-xv .wd-x-lb { position: absolute; left: 0; right: 0; top: calc(50% + (var(--zc) - var(--z)) * 1.04); transform: translateY(-50%); }
  .workflow-descent .wd-xv .wd-x-lb .wd-x-io { display: inline-block; margin-bottom: 7px; padding: 2px 9px; border-radius: 999px; font: normal 500 11.5px/1.5 Inter, sans-serif; color: #cfe5b8; box-shadow: inset 0 0 0 1px rgba(207, 229, 184, .55); }
  .workflow-descent .wd-xv .wd-x-lb .wd-x-io.wd-x-out { color: #17302a; background: #cfe5b8; box-shadow: none; }
  .workflow-descent .wd-xv .wd-x-lb b { display: block; font: 500 17px/1.2 "Inter Tight", Inter, sans-serif; letter-spacing: -.01em; }
  .workflow-descent .wd-xv .wd-x-lb span { display: block; margin-top: 3px; font-size: 13px; line-height: 1.4; color: rgba(237, 240, 245, .72); }
  .workflow-descent .wd-xv .wd-x-lb span + b { margin-top: 10px; }
  .workflow-descent .wd-xv .wd-x-lb q { display: block; margin-top: 3px; quotes: "“" "”"; font: italic 400 16px/1.3 Newsreader, Georgia, serif; color: #edf0f5; }
  .workflow-descent .wd-xv .wd-x-lb mark { color: inherit; padding: 0 2px; border-radius: 2px; background: rgba(207, 229, 184, .3); box-shadow: inset 0 -1.5px 0 #cfe5b8; }
  .workflow-descent .wd-xv .wd-x-lb .wd-x-seg3 { display: flex; gap: 5px; margin-top: 10px; }
  .workflow-descent .wd-xv .wd-x-lb .wd-x-seg3 i { padding: 3px 10px; border-radius: 999px; font: normal 11.5px/1.5 Inter, sans-serif; color: rgba(237, 240, 245, .78); box-shadow: inset 0 0 0 1px rgba(237, 240, 245, .3); }
  .workflow-descent .wd-xv .wd-x-lb .wd-x-seg3 i:first-child { background: #edf0f5; color: #17302a; box-shadow: none; }

  /* Plates. Every plate carries one icon in its corner; everything else sits at exact plate coordinates,
     so a source on the top layer and its target on the bottom layer line up and the light can join them. */
  .workflow-descent .wd-xv .wd-x-pl .wd-x-ic { position: absolute; left: 13px; top: 13px; width: 20px; height: 20px; color: var(--m); stroke-width: 1.9; }
  .workflow-descent .wd-xv .wd-x-pl > :not(.wd-x-ic):not(.wd-x-bm) { position: absolute; box-sizing: border-box; }
  .workflow-descent .wd-xv .wd-x-fld { border-radius: 6px; box-shadow: inset 0 0 0 1.2px rgba(237, 240, 245, .5); }
  .workflow-descent .wd-xv .wd-x-fld::before { content: ""; position: absolute; left: 8px; top: 8px; width: 52%; height: 6px; border-radius: 3px; background: rgba(237, 240, 245, .85); }
  .workflow-descent .wd-xv .wd-x-fld::after { content: ""; position: absolute; left: calc(52% + 12px); top: 5px; width: 2px; height: 12px; background: #f2b84b; }
  .workflow-descent .wd-xv .wd-x-chip { border-radius: 8px; background: rgba(207, 229, 184, .92); box-shadow: 0 0 14px rgba(207, 229, 184, .35); }
  .workflow-descent .wd-xv .wd-x-chip::after { content: ""; position: absolute; left: 9px; top: 50%; width: 48%; height: 5px; margin-top: -2.5px; border-radius: 3px; background: rgba(23, 48, 42, .45); }
  .workflow-descent .wd-xv .wd-x-tg { border-radius: 8px; background: rgba(237, 240, 245, .12); box-shadow: inset 0 0 0 1px rgba(237, 240, 245, .3); }
  .workflow-descent .wd-xv .wd-x-tg::after { content: ""; position: absolute; right: 8px; top: 50%; width: 13px; height: 13px; margin-top: -6.5px; border-radius: 50%; background: #cfe5b8; box-shadow: 0 0 10px 2px rgba(207, 229, 184, .6);  }
  .workflow-descent .wd-xv .wd-x-tile { display: grid; place-items: center; border-radius: 9px; background: rgba(207, 229, 184, .92); color: #17302a; box-shadow: 0 0 14px rgba(207, 229, 184, .35); }
  .workflow-descent .wd-xv .wd-x-tile .wd-x-i { width: 19px; height: 19px; stroke-width: 1.9; }
  .workflow-descent .wd-xv .wd-x-lr { border-radius: 5px; background: rgba(237, 240, 245, .9); }
  .workflow-descent .wd-xv .wd-x-lr.wd-x-dup { background: transparent; box-shadow: inset 0 0 0 1.2px rgba(237, 240, 245, .35); }
  .workflow-descent .wd-xv .wd-x-lr.wd-x-dup::after { content: ""; position: absolute; left: -6px; right: -6px; top: 50%; border-top: 1.5px solid #f2b84b; }
  .workflow-descent .wd-xv .wd-x-ln { border-radius: 4px; background: rgba(237, 240, 245, .45); }
  .workflow-descent .wd-xv .wd-x-hl { border-radius: 4px; background: #cfe5b8; box-shadow: 0 0 12px rgba(207, 229, 184, .8); }
  .workflow-descent .wd-xv .wd-x-slot { border-radius: 7px; background: rgba(207, 229, 184, .3); box-shadow: inset 0 0 0 1.5px #cfe5b8, 0 0 16px rgba(207, 229, 184, .35); }
  .workflow-descent .wd-xv .wd-x-slot::before { content: ""; position: absolute; left: 8px; top: 50%; width: 62%; height: 6px; margin-top: -3px; border-radius: 3px; background: #cfe5b8; }
  .workflow-descent .wd-xv .wd-x-dl { border-radius: 4px; background: rgba(237, 240, 245, .5); }
  .workflow-descent .wd-xv .wd-x-df { border-radius: 8px; background: #cfe5b8; box-shadow: 0 0 16px rgba(207, 229, 184, .45); }
  .workflow-descent .wd-xv .wd-x-df::before { content: ""; position: absolute; left: 8px; top: 50%; width: 55%; height: 5px; margin-top: -2.5px; border-radius: 3px; background: rgba(23, 48, 42, .45); }
  .workflow-descent .wd-xv .wd-x-cell { border-radius: 9px; background: rgba(207, 229, 184, .92); box-shadow: 0 0 14px rgba(207, 229, 184, .35); }
  .workflow-descent .wd-xv .wd-x-cell::before, .workflow-descent .wd-xv .wd-x-cell::after { content: ""; position: absolute; left: 8px; height: 5px; border-radius: 3px; background: rgba(23, 48, 42, .45); }
  .workflow-descent .wd-xv .wd-x-cell::before { top: 12px; width: 60%; }
  .workflow-descent .wd-xv .wd-x-cell::after { top: 24px; width: 40%; }
  .workflow-descent .wd-xv .wd-x-stamp3 { right: -22px; top: 20px; width: 22px; height: 38px; border-radius: 0 9px 9px 0; background: #f2b84b; box-shadow: 0 0 16px rgba(242, 184, 75, .5); }
  .workflow-descent .wd-xv .wd-x-pl.wd-x-half { left: -48px; top: -48px; width: 96px; height: 96px; }
  .workflow-descent .wd-xv .wd-x-pl.wd-x-half .wd-x-ic { left: 11px; top: 11px; width: 18px; height: 18px; }
  .workflow-descent .wd-xv .wd-x-bub { border-radius: 10px 10px 3px 10px; background: #cfe5b8; box-shadow: 0 0 16px rgba(207, 229, 184, .5); }
  .workflow-descent .wd-xv .wd-x-bub::before { content: ""; position: absolute; left: 7px; right: 7px; top: 7px; height: 16px; border-radius: 5px; background: rgba(23, 48, 42, .28); }
  .workflow-descent .wd-xv .wd-x-bub::after { content: ""; position: absolute; left: 7px; width: 55%; bottom: 8px; height: 5px; border-radius: 3px; background: rgba(23, 48, 42, .5); }
  .workflow-descent .wd-xv .wd-x-hand { border-radius: 10px; background: rgba(207, 229, 184, .3); box-shadow: inset 0 0 0 1.5px #cfe5b8, 0 0 16px rgba(207, 229, 184, .35); }
  .workflow-descent .wd-xv .wd-x-hand::before { content: ""; position: absolute; left: 50%; top: 9px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #cfe5b8; }
  .workflow-descent .wd-xv .wd-x-hand::after { content: ""; position: absolute; left: 50%; top: 28px; width: 26px; height: 9px; margin-left: -13px; border-radius: 9px 9px 3px 3px; background: #cfe5b8; }

  /* The light. Each source casts a column straight down onto what it becomes. Four glass walls per column. */
  .workflow-descent .wd-xv .wd-x-bm { position: absolute; left: 0; top: 0; transform-style: preserve-3d; transform-origin: 0 0 0; transform: scale3d(1, 1, var(--k));  pointer-events: none; }
  .workflow-descent .wd-xv .wd-x-bm i { position: absolute; height: var(--g); transform-origin: 0 0; transform: rotateX(-90deg); background: linear-gradient(rgba(207, 229, 184, .36), rgba(207, 229, 184, .03) 55%, rgba(207, 229, 184, .22)); }
  .workflow-descent .wd-xv .wd-x-bm i.wd-x-sd { transform: rotateZ(90deg) rotateX(-90deg); opacity: .65; }

/* Always use the approved narrow composition: labels above the glass scene.
   Only these stage cards compact; the reading screens and finale do not change. */
.workflow-descent .wd-xv { --k: 1; --wd-x-lit: 1; --wd-x-labels: 1; padding: 0; border: 0; display: flex; flex-direction: column; }
.workflow-descent .wd-xv .wd-x-lbs { position: static; width: auto; display: grid; gap: 10px; padding: 18px 20px 0; }
.workflow-descent .wd-xv .wd-x-lb { position: static; transform: none; opacity: var(--wd-x-labels, 1); }
.workflow-descent .wd-xv .wd-x-lb::before, .workflow-descent .wd-xv .wd-x-lb::after { display: none; }
.workflow-descent .wd-xv .wd-x-iso { position: relative; inset: auto; order: 2; height: 225px; flex: none; scale: 1; }
.workflow-descent .wd-xv .wd-x-stack { transform: scale(.78) rotateX(60deg) rotateZ(-40deg); top: calc(50% + var(--zc) * .866 * .78); }
.workflow-descent .wd-xv .wd-x-floor { top: calc(50% + (var(--zc) + 30px) * .866 * .78); transform: scale(calc(.8 + .2 * var(--k, 1))); }
.workflow-descent .wd-xv .wd-x-ld { opacity: calc(.28 + .72 * var(--wd-x-lit, 1)); }
.workflow-descent .wd-xv .wd-x-tg::after { transform: translateX(calc((1 - var(--wd-x-lit, 1)) * -29px)); opacity: calc(.35 + .65 * var(--wd-x-lit, 1)); box-shadow: 0 0 calc(10px * var(--wd-x-lit, 1)) calc(2px * var(--wd-x-lit, 1)) rgba(207,229,184,.6); }
@media (min-width: 761px) {
  .wd-node:first-child .wd-xv .wd-x-iso, .wd-node:last-child .wd-xv .wd-x-iso { height: 116px; }
  .wd-node:first-child .wd-xv .wd-x-stack, .wd-node:last-child .wd-xv .wd-x-stack { transform: scale(.42) rotateX(60deg) rotateZ(-40deg); top: calc(50% + var(--zc) * .866 * .42); }
}
@media (min-width: 761px) and (max-height: 780px) {
  .workflow-descent .wd-xv .wd-x-lbs { padding: 12px 16px 0; gap: 6px; }
  .workflow-descent .wd-xv .wd-x-lb .wd-x-io { margin-bottom: 3px; }
  .workflow-descent .wd-xv .wd-x-iso { height: 180px; }
  .workflow-descent .wd-xv .wd-x-stack { transform: scale(.62) rotateX(60deg) rotateZ(-40deg); top: calc(50% + var(--zc) * .866 * .62); }
  .wd-node:first-child .wd-xv .wd-x-iso, .wd-node:last-child .wd-xv .wd-x-iso { height: 110px; }
  .wd-node:first-child .wd-xv .wd-x-stack, .wd-node:last-child .wd-xv .wd-x-stack { transform: scale(.42) rotateX(60deg) rotateZ(-40deg); top: calc(50% + var(--zc) * .866 * .42); }
  .wd-node:last-child .wd-xv .wd-x-lbs { padding: 10px 14px 0; gap: 4px; }
  .wd-node:last-child .wd-xv .wd-x-lb b { font-size: 15px; line-height: 1.15; }
  .wd-node:last-child .wd-xv .wd-x-lb span { font-size: 12px; line-height: 1.25; margin-top: 2px; }
  .wd-node:last-child .wd-xv .wd-x-lb span + b { margin-top: 6px; }
  .wd-node:last-child .wd-xv .wd-x-lb .wd-x-io { font-size: 10px; margin-bottom: 2px; }
}
@media (max-width: 760px) {
  .workflow-descent .wd-xv .wd-x-lbs { padding: 14px 14px 0; gap: 8px; }
  .workflow-descent .wd-xv .wd-x-lb b { font-size: 15px; }
  .workflow-descent .wd-xv .wd-x-lb span { font-size: 12px; }
  .workflow-descent .wd-xv .wd-x-lb .wd-x-io { font-size: 10px; margin-bottom: 3px; }
  .workflow-descent .wd-xv .wd-x-iso { height: 150px; }
  .workflow-descent .wd-xv .wd-x-stack { transform: scale(.52) rotateX(60deg) rotateZ(-40deg); top: calc(50% + var(--zc) * .866 * .52); }
  .wd-node:first-child .wd-xv .wd-x-iso, .wd-node:last-child .wd-xv .wd-x-iso { height: 130px; }
  .wd-node:first-child .wd-xv .wd-x-stack, .wd-node:last-child .wd-xv .wd-x-stack { transform: scale(.45) rotateX(60deg) rotateZ(-40deg); top: calc(50% + var(--zc) * .866 * .45); }
}

/* Compact touch screens give the introduction and finale their own stops. */
@media (max-height: 650px) and (pointer: coarse) {
  .workflow-descent .wd-node:first-child { --pt: 78px; }
  .workflow-descent .wd-end { padding-top: 78px; }
}
@media (max-width: 760px) and (max-height: 650px) and (pointer: coarse) {
  .workflow-descent .wd-txt h3 { font-size: 28px; }
  .workflow-descent .wd-xv .wd-x-iso { height: 100px; }
  .workflow-descent .wd-node:first-child .wd-xv .wd-x-iso,
  .workflow-descent .wd-node:last-child .wd-xv .wd-x-iso { height: 90px; }
}

/* Desktop landscape scenes: copy stays outward, leaving the inner column to the card. */
@media (min-width: 761px) {
  .workflow-descent { --mid: clamp(56px, 6.5vw, 94px); }
  .workflow-descent .wd-txt { width: min(100%, 350px); padding: 0 28px 0 0; justify-self: start; text-align: left; }
  .workflow-descent .wd-node:nth-child(even) .wd-txt { padding: 0 0 0 28px; justify-self: end; text-align: right; }
  .workflow-descent .wd-txt h3 { font-size: clamp(27px, 2.7vw, 38px); }
  .workflow-descent .wd-txt p { font-size: 15px; margin-top: 12px; }
  .workflow-descent .wd-node:not(:nth-child(even)) .wd-txt p { margin-left: 0; }
  .workflow-descent .wd-node:nth-child(even) .wd-txt p { margin-left: auto; }
  .workflow-descent .wd-badge { font-size: 12px; margin-bottom: 14px; }
  .workflow-descent .wd-link { font-size: 12px; margin-top: 14px; }
  .workflow-descent .wd-node > .wd-xv { max-width: none; height: 290px; display: block; }
  .workflow-descent .wd-xv .wd-x-lbs { position: absolute; inset: 0 auto 0 0; width: 44%; box-sizing: border-box; padding: 22px 0 22px 22px; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
  .workflow-descent .wd-xv .wd-x-lb b { font-size: 16px; line-height: 1.2; }
  .workflow-descent .wd-xv .wd-x-lb span { font-size: 12px; line-height: 1.35; }
  .workflow-descent .wd-xv .wd-x-lb q { font-size: 15px; }
  .workflow-descent .wd-xv .wd-x-lb .wd-x-io { font-size: 10px; margin-bottom: 5px; }
  .workflow-descent .wd-xv .wd-x-lb .wd-x-seg3 { flex-wrap: wrap; gap: 4px; margin-top: 8px; }
  .workflow-descent .wd-xv .wd-x-lb .wd-x-seg3 i { font-size: 10px; padding: 3px 8px; }
  .workflow-descent .wd-node .wd-xv .wd-x-iso { position: absolute; inset: 0 0 0 44%; height: auto; }
  .workflow-descent .wd-node .wd-xv .wd-x-stack { transform: scale(.82) rotateX(60deg) rotateZ(-40deg); top: calc(50% + var(--zc) * .866 * .82); }
  .workflow-descent .wd-xv .wd-x-floor { width: 180px; margin-left: -90px; top: calc(50% + (var(--zc) + 30px) * .866 * .82); }
  .workflow-descent .wd-cab { height: 48px; margin-top: -24px; background: none; }
  .workflow-descent .wd-cab b { background: none; }
  .workflow-descent .wd-cab > svg, .workflow-descent .wd-cab b > svg { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .workflow-descent .wd-cab path { fill: none; stroke: var(--dots); stroke-width: 1.8; stroke-dasharray: 1 6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
  .workflow-descent .wd-cab b path { stroke: var(--forest); stroke-dasharray: none; }
  .workflow-descent .wd-node:nth-child(even) .wd-cab svg { transform: scaleX(-1); }
}
@media (min-width: 761px) and (max-width: 1199px) {
  .workflow-descent .wd-node > .wd-xv { height: 280px; }
  .workflow-descent .wd-xv .wd-x-lbs { width: 48%; padding-left: 16px; gap: 14px; }
  .workflow-descent .wd-node .wd-xv .wd-x-iso { left: 48%; }
  .workflow-descent .wd-node .wd-xv .wd-x-stack { transform: scale(.63) rotateX(60deg) rotateZ(-40deg); top: calc(50% + var(--zc) * .866 * .63); }
  .workflow-descent .wd-xv .wd-x-lb b { font-size: 14px; }
  .workflow-descent .wd-xv .wd-x-lb span { font-size: 11.5px; }
}
@media (min-width: 761px) and (max-width: 900px) {
  .workflow-descent .wd-node > .wd-xv { height: 265px; }
  .workflow-descent .wd-xv .wd-x-lbs { width: 51%; padding-left: 12px; gap: 10px; }
  .workflow-descent .wd-node .wd-xv .wd-x-iso { left: 51%; }
  .workflow-descent .wd-node .wd-xv .wd-x-stack { transform: scale(.46) rotateX(60deg) rotateZ(-40deg); top: calc(50% + var(--zc) * .866 * .46); }
  .workflow-descent .wd-txt { padding-right: 18px; }
  .workflow-descent .wd-node:nth-child(even) .wd-txt { padding-left: 18px; }
}

/* Section headers: one centred treatment (badge, title, line) for Tools, Results, Industries and Company,
   matching Pilot and FAQ. Every one clears the floating menu, which covers about the top 74px. */
@media (min-width: 761px) {
  #integrations, #results, #industries, #company { padding-top: clamp(84px, 10vh, 96px); }
  #results .section-heading, #industries .section-heading, #integrations .lm-heading { display: block; max-width: none; margin: 0 auto clamp(18px, 3.4vh, 34px); text-align: center; }
  #results .section-heading > div, #industries .section-heading > div, #integrations .lm-heading > div, #company > div:first-child { display: block; max-width: none; text-align: center; }
  #results .section-heading .badge, #industries .section-heading .badge { margin: 0 auto; }
  #results .section-heading h2, #industries .section-heading h2, #integrations .lm-heading h2, #company > div:first-child h2 {
    margin: clamp(8px, 1.6vh, 14px) auto 0; font-size: clamp(30px, 4.4vh, 42px); line-height: 1.08; text-wrap: balance;
  }
  #results .section-heading > p, #industries .section-heading > p, #integrations .lm-heading p, #company > div:first-child p {
    max-width: 56ch; margin: clamp(8px, 1.6vh, 14px) auto 0; text-align: center; text-wrap: balance;
  }
  #company { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  #industries { padding-bottom: 64px; }
  #industries .industry-media { aspect-ratio: 1.6; }
  #company { padding-bottom: 24px; }
  section.closing { padding-top: 60px; padding-bottom: 70px; }
  #company .company-details { width: min(760px, 100%); text-align: left; }
}

/* Company: the people on a thread, programme support underneath. */
.co-wrap { width: min(1100px, 100%); margin: 0 auto; text-align: left; display: grid; gap: clamp(28px, 5vh, 48px); }

.co-thread { --co-gap: clamp(14px, 2.4vh, 22px); list-style: none; margin: 0; padding: 0; display: grid; gap: var(--co-gap); }
.co-node { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; align-items: start; }
.co-node:not(:last-child)::after { content: ""; position: absolute; left: 27px; top: 56px; bottom: calc(-1 * var(--co-gap)); width: 2px; background: #c4d4c9; }
.co-ini { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; font-weight: 600; letter-spacing: .02em; box-shadow: 0 0 0 4px #edf0f5; }
.co-ini.co-mint { background: #e3f0d5; color: #2f5f4d; }
.co-ini.co-amber { background: #f6e3b4; color: #6b4b0b; }
.co-ini.co-small { width: 14px; height: 14px; justify-self: center; margin-top: 4px; background: #2f5f4d; }
.co-node h3 { margin: 0; font-size: 24px; line-height: 1.15; font-weight: 500; letter-spacing: -.015em; color: #292a2d; }
.co-node .co-role { margin: 5px 0 2px; font-size: 14px; font-weight: 500; color: #2f5f4d; }
.co-node p { margin: 0; font-size: 14px; line-height: 1.45; color: #64666d; }
.co-advisors h3 { margin-bottom: 4px; font-size: 16px; font-weight: 600; letter-spacing: 0; }
.co-advisors p b { font-weight: 500; color: #292a2d; }

.co-support { display: grid; grid-template-columns: 170px minmax(0, 1fr); column-gap: 24px; row-gap: 8px; align-items: baseline; border-top: 1px solid #dfe3e9; padding-top: clamp(14px, 2.4vh, 20px); }
.co-support h3 { margin: 0; font-size: 15px; font-weight: 600; color: #292a2d; }
.co-support ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.co-support li { display: grid; gap: 2px; }
.co-support li span { font-size: 13.5px; color: #64666d; }
.co-support li b { font-size: 16px; font-weight: 600; color: #2f5f4d; font-variant-numeric: tabular-nums; }
.co-support small { grid-column: 2; font-size: 12px; line-height: 1.4; color: #64666d; }

section.closing .action { display: none; }
@media (max-width: 760px) {
  .co-node h3 { font-size: 21px; }
  .co-support { grid-template-columns: 1fr; }
  .co-support ul { grid-template-columns: 1fr; gap: 10px; }
  .co-support small { grid-column: 1; }
}
/* Desktop: the thread runs across, one person per stop, so the team reads as a line of people. */
@media (min-width: 761px) {
  .co-wrap { --co-col: clamp(28px, 4vw, 56px); gap: clamp(32px, 7vh, 64px); }
  .co-thread { --co-gap: var(--co-col); grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .co-node { grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: start; }
  .co-node:not(:last-child)::after { left: 72px; right: calc(16px - var(--co-gap)); top: 27px; bottom: auto; width: auto; height: 2px; }
  .co-ini.co-small { justify-self: start; margin: 21px; }
  .co-advisors > div { padding-top: 0; }
  .co-advisors h3 { font-size: 24px; font-weight: 500; letter-spacing: -.015em; margin-bottom: 6px; }
  .co-advisors p + p { margin-top: 4px; }
  /* Support items start under the second person, so both rows share one grid. */
  .co-support { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--co-col); }
  .co-support ul, .co-support small { grid-column: 2 / 4; }
  .co-support ul { grid-template-columns: repeat(3, max-content); justify-content: space-between; align-items: start; column-gap: 24px; }
  .co-support li b { white-space: nowrap; }
  #company { padding-bottom: 0; }
  #company > div:first-child { margin-bottom: clamp(32px, 7vh, 64px) !important; }
  section.closing { padding-top: clamp(24px, 6vh, 56px); padding-bottom: 28px; }
  section.closing h2 { margin: 0 0 6px; font-size: clamp(20px, 2.6vh, 24px); line-height: 1.25; color: #292a2d; font-weight: 500; }
  section.closing p { margin: 0 auto; text-align: center; font-size: 14px; line-height: 1.45; color: #64666d; }
}

/* Accents: the cyan is replaced by the Descent palette (forest, mint, amber) in Pilot, FAQ, Company and Platform. */
#faq .faq-highlight, .faq-highlight { background: #e3f0d5; color: #2f5f4d; }
.action-icon, #faq .faq-contact .action-icon { background: #e3f0d5 !important; color: #2f5f4d !important; }
.cx-dial-needle::before { background: #2f5f4d !important; box-shadow: 0 0 0 2px #edf0f5, 0 0 10px rgb(47 95 77 / .45) !important; }
.cx-dial-needle { color: #2f5f4d; }
@media (min-width: 761px) {
  .company-details { border: 0 !important; margin-top: 0 !important; }
  #company > div:first-child { margin-bottom: 18px !important; }
  #company { gap: 0 !important; }
}

/* FAQ: one viewport. Clear of the nav, tighter tabs, items and contact box. */
@media (min-width: 761px) {
  #faq { padding-top: clamp(84px, 10vh, 96px) !important; padding-bottom: 20px !important; }
  #faq .section-heading { margin-bottom: clamp(8px, 1.6vh, 16px) !important; }
  #faq .section-heading h2 { font-size: clamp(30px, 4.4vh, 42px); line-height: 1.1; }
  #faq .faq-tabs, #faq [role="tablist"] { margin-bottom: 4px; }
  #faq [role="tab"] { padding-top: 10px !important; padding-bottom: 10px !important; }
  #faq details > summary, #faq .faq-item > button, #faq .faq-question { padding-top: 12px !important; padding-bottom: 12px !important; min-height: 0 !important; }
  #faq .faq-contact { margin-top: 12px !important; padding: 14px 24px !important; }
}
.pilot-plan .pilot-icon, .pilot-plan.featured .pilot-icon { background: #e3f0d5 !important; color: #2f5f4d !important; }
.pilot-plan li svg { color: #2f5f4d !important; stroke: #2f5f4d !important; }
.pilot-plan.featured li svg { color: #cfe5b8 !important; stroke: #cfe5b8 !important; }
@media (min-width: 761px) and (max-height: 780px) {
  #faq [role="tab"] { padding-top: 6px !important; padding-bottom: 6px !important; }
  #faq details > summary, #faq .faq-item > button, #faq .faq-question { padding-top: 8px !important; padding-bottom: 8px !important; }
  #faq .faq-contact { padding: 10px 22px !important; }
  #faq .faq-contact p { display: none; }
  .co-node h3 { font-size: 21px; }
  #company > div:first-child p { display: none; }
  section.closing p { display: none; }
  section.closing { padding-top: 12px; padding-bottom: 20px; }
}

/* Workspace dashboard: the cyan is replaced by the Descent palette (forest, mint, amber). */
.tw-ri.tw-on { background: linear-gradient(150deg, #eef6e2, #cfe5b8); color: #2f5f4d; box-shadow: inset 0 1px 0 #ffffff8c, 0 0 0 1px #2f5f4d2e, 0 8px 20px -10px #2f5f4d; }
.tw-ri.tw-on::before { background: #2f5f4d; }
.tw-live { background: #2f5f4d; box-shadow: 0 0 0 3px #f2b84b66; }
.tw-armed:not(.tw-play) .tw-live { box-shadow: 0 0 0 0 #f2b84b00; }
@keyframes tw-breathe { 0% { box-shadow: 0 0 0 0 #f2b84bcc; } 60% { box-shadow: 0 0 0 8px #f2b84b00; } 100% { box-shadow: 0 0 0 3px #f2b84b66; } }
.tw-dh-ic, .tw-tile { background: linear-gradient(150deg, #eef6e2, #cfe5b8); color: #2f5f4d; box-shadow: inset 0 1px 0 #ffffffa6, inset 0 0 0 1px #2f5f4d2e, 0 6px 14px -8px #2f5f4d; }
.tw-av-brand { box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px #cfe5b8, 0 4px 14px -4px #2f5f4d66; }
.tw-who em, .tw-tag { background: #e3f0d5; color: #2f5f4d; box-shadow: inset 0 0 0 1px #cfe5b8; }
.tw-mark { --mk: #e3f0d5; }
.tw-ok { background: #2f5f4d; color: #fff; box-shadow: 0 0 0 3px #2f5f4d33; }
.tw-threads .tw-track { stroke: #2f5f4d; }
.tw-threads stop:nth-child(2) { stop-color: #2f5f4d; }
.tw-threads stop:nth-child(3) { stop-color: #f2b84b; }
.tw-threads .tw-glow, .tw-threads .tw-head-glow { fill: #f2b84b; }
.tw-threads .tw-end { fill: #f2b84b; }
.tw-threads .tw-head-core { fill: #f6e3b4; stroke: #6b4b0b; }
@keyframes tw-ping { 0% { box-shadow: 0 0 0 0 #f2b84b00; } 30% { box-shadow: 0 0 0 3px #f2b84bb3; } 100% { box-shadow: 0 0 0 0 #f2b84b00; } }
.tw-armed:not(.tw-play) .tw-tile { background: #eef0f3; color: #a0a7b0; box-shadow: inset 0 0 0 1px #e3e7ea; }
