/* Crex — Expressive Editorial Intelligence
   Order: fonts → tokens → base → components → sections → responsive → preferences/print */

/* Fonts ------------------------------------------------------------------ */
@font-face {
  font-family: Geist;
  src: url("assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("assets/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "General Sans";
  src: url("assets/fonts/GeneralSans-Variable.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
}

/* Tokens ----------------------------------------------------------------- */
/* Light-only by design: opts out of browser auto-dark, which would otherwise re-colour the page. */
:root {
  color-scheme: only light;
  --bg: #fff;
  --bg-2: #f6f8fc;
  --ink: #17202d;
  --ink-2: #2b3646;
  --muted: #576578;
  --line: #e4e9f0;
  --line-2: #d6deea;
  --blue: #315bea;
  --blue-bright: #4178ff;
  --blue-pale: #b8d1ff;
  --blue-wash: #eef3ff;
  --navy: #101b2c;
  --navy-2: #16243b;
  --navy-line: #ffffff1f;
  --on-dark: #f3f6fd;
  --on-dark-muted: #b3c0d6;
  --sans: "Geist",Arial,sans-serif;
  --mono: "Geist Mono",ui-monospace,Menlo,monospace;
  --display: "General Sans","Geist",Arial,sans-serif;
  --display-weight: 600;
  --display-light: 400;
  --display-track: -.035em;
  --fs-display: clamp(44px,4.9vw,76px);
  --fs-h2: clamp(34px,3.9vw,56px);
  --fs-h3: clamp(22px,1.9vw,28px);
  --fs-lead: clamp(17px,1.35vw,19px);
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-micro: 12px;
  --radius: 14px;
  --radius-lg: 22px;
  --gutter: 64px;
  --max: 1360px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --glass: rgba(255,255,255,.72);
  --glass-line: rgba(23,32,45,.08);
  --glass-tint: rgba(255,255,255,.45);
  --glass-tint-dark: rgba(16,27,44,.55);
  --glass-blur: 8px;
  --glass-rim: inset 1px 1px 1px #ffffffb3,inset -1px -1px 1px #ffffff59;
  --glass-rim-dark: inset 1px 1px 1px #ffffff40,inset -1px -1px 1px #ffffff1a;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Previous display face, kept for side-by-side review only */
html[data-display="geist"] {
  --display: "Geist",Arial,sans-serif;
  --display-track: -.045em;
}

/* Base ------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-track);
  line-height: 1.06;
}

h2 {
  font-size: var(--fs-h2);
  font-weight: 520;
  letter-spacing: -.03em;
  line-height: 1.08;
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 520;
  letter-spacing: -.025em;
  line-height: 1.2;
}

h4 {
  font-weight: 520;
}

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

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a,
button,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #6692ff;
  outline-offset: 4px;
  border-radius: 4px;
}

::selection {
  background: #c7d8ff;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip {
  position: fixed;
  top: -80px;
  left: 20px;
  padding: 14px 18px;
  background: #fff;
  border-radius: 8px;
  z-index: 50;
  box-shadow: 0 10px 30px #0002;
}

.skip:focus {
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Components ------------------------------------------------------------- */
.eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px #315bea1f;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 16px 22px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  transition: background .25s var(--ease),transform .25s var(--ease),box-shadow .25s var(--ease);
}

.button:hover {
  transform: translateY(-2px);
}

.primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 24px -10px #315beaa6,inset 0 1px 0 #ffffff33;
}

.primary:hover {
  background: #2148d6;
}

.light {
  background: #fff;
  color: var(--ink);
}

.light:hover {
  background: var(--blue-wash);
}

/* Secondary action: cobalt text, as in "How we work together" and "Start a conversation". */
.text-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--blue);
  display: inline-flex;
  gap: 10px;
  align-items: center;
  transition: color .2s;
}

.circle-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-size: 15px;
  flex: none;
  transition: background .25s var(--ease),color .25s,border-color .25s,transform .25s var(--ease);
}

.grain {
  position: relative;
  isolation: isolate;
}

.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 160px;
  mix-blend-mode: overlay;
  opacity: .35;
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
}

/* Header + navigation ------------------------------------------------------ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  transition: background .3s var(--ease),box-shadow .3s var(--ease),transform .35s var(--ease);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  transition: height .3s var(--ease);
}

.header.is-scrolled {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 1px 0 var(--glass-line);
}

.header.is-scrolled .header-inner {
  height: 66px;
}

.brand {
  font-family: var(--display);
  font-size: 38px;
  font-weight: 620;
  letter-spacing: -.07em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: .14em;
}

.brand-mark {
  display: flex;
  flex: none;
  width: .64em;
  height: .64em;
  transform: translateY(.11em);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.header.is-scrolled .brand {
  font-size: 32px;
}

.header.on-dark.is-scrolled {
  background: #101b2cb8;
  box-shadow: 0 1px 0 #ffffff14;
  color: #fff;
}

.header.on-dark .main-nav {
  background: #ffffff12;
  border-color: #ffffff1a;
}

.header.on-dark .main-nav a:hover {
  background: #ffffff1a;
  color: #fff;
}

.header.on-dark .nav-cta {
  box-shadow: 0 0 0 1px #ffffff2e,0 8px 18px -10px #000c,inset 0 1px 0 #ffffff33;
}

.main-nav {
  display: flex;
  gap: 6px;
  font-size: 14px;
  padding: 5px;
  border-radius: 999px;
  background: #f3f6fb;
  border: 1px solid #eaeef5;
}

.main-nav a {
  padding: 8px 16px;
  border-radius: 999px;
  transition: background .2s,color .2s;
}

.main-nav a:hover {
  background: #fff;
  color: var(--blue);
}

/* Cobalt CTA at every width; the dock's CTA shares it. */
.nav-cta {
  font-size: 14px;
  font-weight: 500;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 18px -10px #315beaa6,inset 0 1px 0 #ffffff33;
  display: inline-flex;
  gap: 14px;
  transition: background .25s var(--ease),transform .25s var(--ease);
}

/* Matches the hero button: darker cobalt and a 2px lift. */
.nav-cta:hover {
  background: #2148d6;
  transform: translateY(-2px);
}

.mobile-menu {
  display: none;
}

.dock {
  display: none;
}

/* Desktop header: links free at rest, a compact glass capsule on scroll, underline for current/hover. */
@media (min-width:901px) {
  /* At rest the links float like the wordmark; glass appears only once there is content behind it. */
  .header .main-nav,
  .header.on-dark .main-nav {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }
  /* Underline for the current section; hover previews it and tints the label. */
  .header .main-nav a {
    position: relative;
  }
  .header .main-nav a:hover,
  .header.on-dark .main-nav a:hover {
    background: transparent;
  }
  .header .main-nav a:hover {
    color: var(--blue);
  }
  .header.on-dark .main-nav a:hover {
    color: #fff;
  }
  .header .main-nav a::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 3px;
    height: 2px;
    border-radius: 2px;
    background: var(--blue);
    transform: scaleX(0);
    opacity: .45;
    transition: transform .3s var(--ease),opacity .3s;
  }
  .header .main-nav a:hover::after {
    transform: scaleX(.4);
  }
  .header .main-nav a[aria-current] {
    color: var(--ink);
  }
  .header .main-nav a[aria-current]::after {
    transform: scaleX(1);
    opacity: 1;
  }
  .header.on-dark .main-nav a[aria-current] {
    color: #fff;
  }
  .header.on-dark .main-nav a::after {
    background: #8fb0ff;
  }
  .header.is-hidden {
    transform: translateY(calc(-100% - 16px));
  }
  /* Scrolled: one compact capsule that hugs its contents, centred. The two layouts crossfade rather than slide. */
  .header.is-scrolled,
  .header.on-dark.is-scrolled {
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .header.is-scrolled .header-inner {
    width: max-content;
    max-width: calc(100% - 2*var(--gutter));
    height: 58px;
    margin: 12px auto 0;
    padding: 0 8px 0 22px;
    gap: 22px;
    justify-content: flex-start;
    position: relative;
    isolation: isolate;
    border-radius: 999px;
    border: 1px solid transparent;
    box-shadow: 0 0 0 1px var(--glass-line),0 18px 40px -22px #17202d59;
    animation: glass-slide .35s var(--ease);
  }
  .header:not(.is-scrolled) .header-inner {
    animation: nav-in .35s var(--ease);
  }
  .header.on-dark.is-scrolled .header-inner {
    box-shadow: 0 18px 40px -22px #000;
  }
  .header.is-scrolled .main-nav {
    gap: 2px;
    padding: 0;
  }
  .header.is-scrolled .main-nav a {
    padding: 8px 14px;
  }
  .header.is-scrolled .main-nav a::after {
    left: 14px;
    right: 14px;
  }
  .header.is-scrolled .brand {
    font-size: 28px;
    margin-right: 6px;
  }
}

@keyframes nav-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion:reduce) {
  .header .header-inner {
    animation: none!important;
  }
}

/* Glass capsule + dock --------------------------------------------------- */
/* A lens layer blurs and refracts what is behind the pill; a tint layer above it adds colour and a rim light. */
.glass-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

@media (min-width:901px) {
  .header.is-scrolled .header-inner::before,
  .header.is-scrolled .header-inner::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    z-index: -1;
  }
  .header.is-scrolled .header-inner::before {
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
    backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
    filter: url(#glass-distortion);
  }
  .header.is-scrolled .header-inner::after {
    background: var(--glass-tint);
    box-shadow: var(--glass-rim);
  }
  .header.on-dark.is-scrolled .header-inner::after {
    background: var(--glass-tint-dark);
    box-shadow: var(--glass-rim-dark);
  }
  .header.is-scrolled .header-inner::before,
  .header.is-scrolled .header-inner::after,
  .header.is-scrolled .header-inner>* {
    /* The pill itself only slides: a fading ancestor would hide the backdrop from the lens. */
    animation: glass-fade .35s var(--ease);
  }
}

@keyframes glass-slide {
  from {
    transform: translateY(-6px);
  }
  to {
    transform: none;
  }
}

@keyframes glass-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width:900px) {
  .dock::before,
  .dock::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: -1;
  }
  .dock::before {
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
    backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
    filter: url(#glass-distortion);
  }
  .dock::after {
    background: var(--glass-tint);
    box-shadow: var(--glass-rim);
  }
  .dock.on-dark::after {
    background: var(--glass-tint-dark);
    box-shadow: var(--glass-rim-dark);
  }
}

/* Solid fallbacks where transparency hurts legibility. */
@media (prefers-reduced-transparency:reduce),(prefers-contrast:more),(forced-colors:active) {
  .header.is-scrolled .header-inner::before,
  .dock::before {
    display: none;
  }
  .header.is-scrolled .header-inner::after,
  .dock::after {
    background: #fff;
  }
  .header.on-dark.is-scrolled .header-inner::after,
  .dock.on-dark::after {
    background: var(--navy);
  }
}

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 132px 0 96px;
  display: flex;
  align-items: center;
}

@media (min-width:1101px) {
  .hero {
    min-height: min(880px,100svh);
  }
}

.hero-inner {
  width: 100%;
  position: relative;
  z-index: 2;
}

h1 {
  font-size: var(--fs-display);
  margin-top: 12px;
  line-height: 1.04;
}

h1>span {
  display: block;
}

.h1-lead {
  font-weight: var(--display-light);
  color: var(--muted);
  letter-spacing: -.02em;
}

.hero h1,
.hero-copy {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 {
  margin-top: 0;
}

.hero-copy {
  max-width: 36em;
  margin-top: 36px;
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: var(--ink-2);
  text-wrap: balance;
}

/* Title card: the studio's focus, set like a film title above the statement rather than as a kicker. */
.hero-title-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 40px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-align: center;
}

.hero-title-card::before,
.hero-title-card::after {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--blue);
  flex: none;
}

.hero-title-card span {
  text-wrap: balance;
}

/*
 E: the statement leads. A display size of its own, one ink with weight carrying the emphasis, and a
 caption-weight paragraph, under the docked mark on a clean field.
*/
.hero[data-hero="e"] h1 {
  font-size: clamp(52px,8vw,128px);
  line-height: .94;
  letter-spacing: -.045em;
}

.hero[data-hero="e"] .h1-lead {
  --track: -.03em;
  font-weight: 360;
  color: var(--ink-2);
  letter-spacing: var(--track);
}

.hero[data-hero="e"] .h1-main {
  --track: -.045em;
  font-weight: 620;
  letter-spacing: var(--track);
  font-kerning: normal;
}

/* E ends on a lockup: the mark docks here, crisp, above the title card. The SVG is the no-script fallback. */
.hero-emblem {
  display: none;
}

.hero[data-hero="e"] .hero-emblem {
  display: block;
  width: 49px;
  height: 52px;
  margin: 0 auto 30px;
}

.hero-emblem svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero.has-canvas .hero-emblem svg {
  visibility: hidden;
}

.hero[data-hero="e"] .hero-glow,
.hero[data-hero="e"] .hero-mark-drift {
  visibility: hidden;
}

/* A faint wash of our own blues at the upper corners, the centre left as clean paper, fading to white below. */
.hero[data-hero="e"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(55% 60% at 8% 16%,#e3edff,rgba(227,237,255,0) 70%),radial-gradient(50% 55% at 94% 18%,#eae9ff,rgba(234,233,255,0) 70%),radial-gradient(40% 45% at 88% 62%,rgba(184,209,255,.32),rgba(184,209,255,0) 70%);
  -webkit-mask-image: linear-gradient(180deg,#000 55%,rgba(0,0,0,.6) 75%,rgba(0,0,0,.2) 90%,transparent);
  mask-image: linear-gradient(180deg,#000 55%,rgba(0,0,0,.6) 75%,rgba(0,0,0,.2) 90%,transparent);
  pointer-events: none;
}

/* The full stop hangs, so the centred line balances on "healthcare" rather than on its punctuation. */
.hero[data-hero="e"] .h1-stop {
  margin-right: -.26em;
}

.hero[data-hero="e"] .hero-copy {
  max-width: 35em;
  margin-top: 44px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
}

/*
 The mark: a ~2s entrance (variant set by data-hero, reviewable with ?hero=a|b|c|d), then a
 rack-focus handoff where the sharp mark loses focus as the copy gains it. The settled state is
 the base style, so reduced motion and failed scripts show it at once.
*/
.hero-mark {
  --mark-size: min(130vmin,1300px);
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  left: 50%;
  top: calc(50% + var(--hero-shift,18px));
  width: min(120vmin,1200px);
  aspect-ratio: 1;
  margin: calc(min(120vmin,1200px) / -2) 0 0 calc(min(120vmin,1200px) / -2);
  border-radius: 50%;
  background: radial-gradient(closest-side,#4178ff1f,#4178ff0a 55%,transparent);
  opacity: .8;
}

.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
}

.hero[data-hero="b"] .hero-particles {
  display: block;
}

/* E · the combined motif, drawn in canvas; the SVG mark remains only as the no-script fallback. */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
}

.hero[data-hero="e"] .hero-canvas {
  display: block;
}

.hero.has-canvas .hero-mark-drift {
  visibility: hidden;
}

/* Scroll depth (0–1, set by script): the copy lifts and softens a little as the hero recedes. */
.hero[data-hero="e"] .hero-inner {
  transform: translateY(calc(var(--hero-depth,0) * -28px));
  opacity: calc(1 - var(--hero-depth,0) * .35);
}

.hero-mark-drift {
  /* Centred on the copy, which sits 18px low in the hero (132px top padding, 96px bottom). */
  position: absolute;
  left: 50%;
  top: calc(50% + var(--hero-shift,18px));
  width: var(--mark-size);
  aspect-ratio: 1;
  margin: calc(var(--mark-size) / -2) 0 0 calc(var(--mark-size) / -2);
}

.hero-mark-stage,
.mark-sharp,
.mark-body,
.mark-soft,
.ring,
.hero-ripple {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mark-soft {
  overflow: visible;
  stroke: var(--blue);
  opacity: .2;
}

.mark-sharp {
  opacity: 0;
}

.ring circle {
  stroke: var(--blue);
  stroke-width: 1.82;
}

.mark-knot {
  fill: var(--bg);
}

/* Each ring turns and scales about its own centre (viewBox 28). */
.ring-l {
  transform-origin: 40.75% 50%;
}

.ring-r {
  transform-origin: 59.25% 50%;
}

.ring-t {
  transform-origin: 50% 32.14%;
}

.ring-b {
  transform-origin: 50% 67.86%;
}

.hero-ripple {
  border: 3px solid var(--blue);
  border-radius: 50%;
  opacity: 0;
}

.hero.is-paused .hero-mark-drift {
  animation-play-state: paused;
}

@media (prefers-reduced-motion:no-preference) {
  /* Shared handoff */
  .hero-mark-stage {
    animation: mark-stage 1s cubic-bezier(.6,0,.25,1) .95s both;
  }
  .mark-sharp {
    animation: mark-sharp .75s cubic-bezier(.4,0,.2,1) 1s both;
  }
  .mark-soft {
    animation: mark-soft 1s ease .95s both;
  }
  .hero-glow {
    animation: glow-pulse 1.5s ease var(--glow-delay,.5s) both;
  }
  .hero-title-card,
  .h1-lead,
  .h1-main,
  .hero-copy {
    animation: hero-focus .8s var(--ease) 1.1s both;
  }
  .hero-title-card {
    animation-delay: 1s;
  }
  .h1-main {
    animation-delay: 1.2s;
  }
  .hero-copy {
    animation-delay: 1.34s;
  }
  .hero-mark-drift {
    animation: mark-drift 26s ease-in-out 2s infinite alternate;
  }
  /* A · Interlace draw: the large rings draw from opposite sides; the small rings close last and lock. */
  .hero[data-hero="a"] .ring circle {
    stroke-dasharray: 101 101;
    stroke-linecap: round;
    animation: ring-draw .72s cubic-bezier(.65,0,.2,1) .08s both;
  }
  .hero[data-hero="a"] .ring-t circle,
  .hero[data-hero="a"] .ring-b circle {
    animation-duration: .42s;
    animation-delay: .48s;
  }
  .hero[data-hero="a"] .ring-t {
    animation: ring-lock .5s cubic-bezier(.3,1.5,.5,1) .5s both;
  }
  .hero[data-hero="a"] .ring-b {
    animation: ring-lock .5s cubic-bezier(.3,1.5,.5,1) .56s both;
  }
  /* B · Signal converge: particles (canvas) find the mark, then the strokes resolve over them. */
  .hero[data-hero="b"] .mark-body {
    animation: ring-reveal .3s ease .72s both;
  }
  .hero[data-hero="b"] {
    --glow-delay: .55s;
  }
  /* C · Gyroscope: each ring spins on its own tilted axis and settles flat into the mark. */
  .hero[data-hero="c"] .mark-body {
    perspective: 1400px;
  }
  .hero[data-hero="c"] .ring {
    animation: gyro-l 1s cubic-bezier(.12,.6,.18,1) both;
  }
  .hero[data-hero="c"] .ring-r {
    animation-name: gyro-r;
    animation-duration: 1.04s;
  }
  .hero[data-hero="c"] .ring-t {
    animation-name: gyro-t;
    animation-duration: 1.08s;
  }
  .hero[data-hero="c"] .ring-b {
    animation-name: gyro-b;
    animation-duration: 1.08s;
  }
  .hero[data-hero="c"] .mark-knot {
    animation: knot-fill .25s ease .78s both;
  }
  .hero[data-hero="c"] {
    --glow-delay: .6s;
  }
  /* D · Pulse: a small mark beats once; the rings unfold from one centre as the ripple travels out. */
  .hero[data-hero="d"] .mark-body {
    animation: pulse-beat 1.05s both;
  }
  .hero[data-hero="d"] .ring-l {
    animation: unfold-l .7s cubic-bezier(.2,.8,.2,1) .36s both;
  }
  .hero[data-hero="d"] .ring-r {
    animation: unfold-r .7s cubic-bezier(.2,.8,.2,1) .36s both;
  }
  .hero[data-hero="d"] .ring-t {
    animation: unfold-t .7s cubic-bezier(.2,.8,.2,1) .4s both;
  }
  .hero[data-hero="d"] .ring-b {
    animation: unfold-b .7s cubic-bezier(.2,.8,.2,1) .4s both;
  }
  .hero[data-hero="d"] .hero-ripple {
    animation: ripple 1.4s cubic-bezier(.2,.7,.3,1) .3s both;
  }
  .hero[data-hero="d"] {
    --glow-delay: .3s;
  }
  .hero[data-hero="e"] {
    --glow-delay: .45s;
  }
  /*
   E lands its mark first (~1.1s), so the copy arrives as the mark docks, crisp throughout (no blur):
   the hairlines draw outward, then each headline line rises from behind its own baseline, its tracking
   tightening (as the strands did) and, on the main line, its weight firming as it lands.
  */
  .hero[data-hero="e"] .hero-title-card,
  .hero[data-hero="e"] .h1-lead,
  .hero[data-hero="e"] .h1-main {
    animation: none;
  }
  .hero[data-hero="e"] .hero-title-card::before,
  .hero[data-hero="e"] .hero-title-card::after {
    animation: hairline-draw .7s cubic-bezier(.65,0,.35,1) 1.6s both;
  }
  .hero[data-hero="e"] .hero-title-card::before {
    transform-origin: right center;
  }
  .hero[data-hero="e"] .hero-title-card::after {
    transform-origin: left center;
  }
  .hero[data-hero="e"] .hero-title-card>span {
    display: inline-block;
    animation: copy-rise .7s var(--ease) 1.72s both;
  }
  .hero[data-hero="e"] .h1-lead,
  .hero[data-hero="e"] .h1-main {
    clip-path: inset(-.3em -.6em -.24em -.6em);
  }
  .hero[data-hero="e"] .h1-line {
    display: block;
    animation: line-rise .95s cubic-bezier(.16,1,.3,1) 1.6s both;
  }
  .hero[data-hero="e"] .h1-main .h1-line {
    animation-name: line-rise-firm;
    animation-delay: 1.7s;
  }
  .hero[data-hero="e"] .hero-copy {
    animation: copy-rise .8s var(--ease) 1.85s both;
  }
  /* The colour wash warms the stage while the mark travels to its slot. */
  .hero[data-hero="e"]::before {
    animation: mark-soft 1.2s ease 1.3s both;
  }
}

@keyframes mark-stage {
  from {
    transform: scale(.52);
  }
}

@keyframes mark-sharp {
  from {
    opacity: 1;
  }
}

@keyframes mark-soft {
  from {
    opacity: 0;
  }
}

@keyframes glow-pulse {
  0% {
    opacity: 0;
    transform: scale(.55);
  }
  35% {
    opacity: 1;
    transform: scale(.8);
  }
}

@keyframes hero-focus {
  from {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(8px);
  }
  to {
    filter: blur(0);
  }
}

@keyframes line-rise {
  from {
    opacity: 0;
    transform: translateY(120%);
    letter-spacing: calc(var(--track,0em) + .025em);
  }
  30% {
    opacity: 1;
  }
}

@keyframes line-rise-firm {
  from {
    opacity: 0;
    transform: translateY(120%);
    letter-spacing: calc(var(--track,0em) + .025em);
    font-weight: 480;
  }
  30% {
    opacity: 1;
  }
}

@keyframes hairline-draw {
  from {
    transform: scaleX(0);
  }
}

@keyframes copy-rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

@keyframes mark-drift {
  to {
    transform: rotate(5deg) scale(1.03);
  }
}

@keyframes ring-draw {
  from {
    stroke-dashoffset: 101;
    fill-opacity: 0;
  }
}

@keyframes ring-lock {
  from {
    transform: scale(.7);
  }
}

@keyframes ring-reveal {
  from {
    opacity: 0;
  }
}

@keyframes knot-fill {
  from {
    fill-opacity: 0;
  }
}

@keyframes gyro-l {
  from {
    opacity: 0;
    transform: rotateY(-420deg) rotateX(64deg);
  }
  18% {
    opacity: 1;
  }
}

@keyframes gyro-r {
  from {
    opacity: 0;
    transform: rotateY(420deg) rotateX(-64deg);
  }
  18% {
    opacity: 1;
  }
}

@keyframes gyro-t {
  from {
    opacity: 0;
    transform: rotateX(480deg) rotateY(56deg);
  }
  18% {
    opacity: 1;
  }
}

@keyframes gyro-b {
  from {
    opacity: 0;
    transform: rotateX(-480deg) rotateY(-56deg);
  }
  18% {
    opacity: 1;
  }
}

@keyframes pulse-beat {
  0% {
    opacity: 0;
    transform: scale(.2);
  }
  12% {
    opacity: 1;
    transform: scale(.2);
    animation-timing-function: cubic-bezier(.3,0,.3,1);
  }
  20% {
    transform: scale(.25);
    animation-timing-function: cubic-bezier(.5,0,.5,1);
  }
  32% {
    transform: scale(.2);
    animation-timing-function: cubic-bezier(.2,.8,.2,1);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes unfold-l {
  from {
    transform: translateX(9.25%);
  }
}

@keyframes unfold-r {
  from {
    transform: translateX(-9.25%);
  }
}

@keyframes unfold-t {
  from {
    transform: translateY(17.86%);
  }
}

@keyframes unfold-b {
  from {
    transform: translateY(-17.86%);
  }
}

@keyframes ripple {
  from {
    opacity: .7;
    transform: scale(.16);
  }
  to {
    opacity: 0;
    transform: scale(2.4);
  }
}

/* Section headings ------------------------------------------------------- */
.section-heading {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
  margin-bottom: 56px;
}

.section-heading h2 {
  margin-top: 0;
}

.section-heading>p {
  font-size: var(--fs-body);
  color: var(--muted);
  max-width: 420px;
  line-height: 1.75;
}

/* Selected work ---------------------------------------------------------- */
.work {
  padding-top: 96px;
  padding-bottom: 110px;
}

.project {
  position: relative;
  display: grid;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: inherit;
  transition: transform .45s var(--ease),box-shadow .45s var(--ease);
}

.project:hover {
  transform: translateY(-4px);
}

.project-copy {
  display: flex;
  flex-direction: column;
  padding: 36px 38px 34px;
  position: relative;
  z-index: 2;
}

.project-meta {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: .04em;
  opacity: .8;
}

.project-title {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 560;
  letter-spacing: -.03em;
  margin-top: 14px;
}

.project-description {
  font-family: var(--display);
  font-size: clamp(21px,1.7vw,25px);
  font-weight: 450;
  letter-spacing: -.025em;
  line-height: 1.25;
  margin-top: 16px;
}

.project-summary {
  font-size: var(--fs-small);
  line-height: 1.7;
  margin-top: 14px;
  opacity: .82;
  max-width: 440px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 22px;
}

.project-tags>span {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid currentColor;
  opacity: .72;
}

.view-case {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  font-weight: 500;
  margin-top: auto;
  padding-top: 30px;
}

.project:hover .circle-arrow {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  transform: rotate(45deg);
}

.featured {
  grid-template-columns: minmax(0,40fr) minmax(0,60fr);
  min-height: 540px;
  background: radial-gradient(120% 140% at 100% 100%,#2f56d8 0,#1a3170 38%,#0f1c38 72%);
  color: var(--on-dark);
  box-shadow: 0 40px 80px -48px #0f1c38;
}

.featured .project-copy {
  padding: 48px 46px 42px;
}

.featured .project-title {
  font-size: clamp(34px,3vw,44px);
  margin-top: 28px;
}

.featured .project-description {
  font-size: clamp(24px,2.1vw,31px);
  color: #fff;
}

.featured .project-summary {
  color: #c9d5ec;
  opacity: 1;
}

.featured .circle-arrow {
  border-color: #ffffff5c;
}

.featured::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 160px;
  mix-blend-mode: overlay;
  opacity: .32;
  pointer-events: none;
  z-index: 1;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.project-grid .project {
  grid-template-rows: auto 1fr;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px -40px #17202d40;
}

.project-grid .project:hover {
  box-shadow: 0 34px 60px -38px #17202d55;
}

.project-grid .project-copy {
  padding: 30px 32px 30px;
}

.project-grid .project-title {
  margin-top: 12px;
}

.theme-caliper .project-meta,
.theme-caliper .view-soon {
  color: #5b45d6;
}

.theme-biomarker .project-meta,
.theme-biomarker .view-soon {
  color: #0b6bcb;
}

/*
 Coming soon: the same card, quieter. Its visual sits back, its call to action becomes a status line, and it
 is not a link, so it neither responds to hover nor opens a case study.
*/
.project.is-soon {
  pointer-events: none;
}

.project.is-soon .stage {
  opacity: .62;
  filter: saturate(.75);
}

.view-soon {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 30px;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: .04em;
}

/* A thin-line clock: the case study is on its way. */
.soon-icon {
  width: 13px;
  height: 13px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Stages: art-directed gradient environments that hold product imagery */
.stage {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
}

.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 160px;
  mix-blend-mode: overlay;
  opacity: .45;
  pointer-events: none;
  z-index: 3;
}

.stage-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage-cubie {
  background: radial-gradient(80% 90% at 75% 60%,#3f6bff 0,#2347b8 35%,transparent 75%);
}

.featured .stage::after {
  opacity: .22;
}

.stage-caliper {
  background: radial-gradient(90% 90% at 80% 10%,#c9c2ff 0,transparent 55%),radial-gradient(80% 90% at 10% 100%,#7aa6ff 0,transparent 60%),linear-gradient(160deg,#f1f0ff,#e2e3fb 55%,#c7d0f8);
}

.stage-biomarker {
  background: radial-gradient(90% 90% at 85% 15%,#a8d4ff 0,transparent 55%),radial-gradient(80% 90% at 0% 100%,#5f8ff5 0,transparent 60%),linear-gradient(160deg,#eef6ff,#d8e8fd 55%,#b9cff8);
}

.project-grid .stage {
  height: 340px;
}

.featured .stage {
  min-height: 100%;
}

/* Placeholder product frames (replaced by real screenshots via content/projects.json media) */
.frame {
  position: absolute;
  inset: 0;
  display: block;
  transition: transform .7s var(--ease);
}

.project:hover .frame {
  transform: translateY(-6px);
}

.frame i,
.frame b {
  display: block;
  font-style: normal;
}

.frame .lines {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.frame .lines i {
  height: 6px;
  border-radius: 4px;
  background: #dfe6f2;
  width: 100%;
}

.frame .lines i.s {
  width: 58%;
}

.win {
  position: absolute;
  display: flex;
  flex-direction: column;
  background: #fbfcfe;
  border-radius: 12px;
  box-shadow: 0 1px 0 #ffffff inset,0 40px 80px -30px #081430b3,0 0 0 1px #ffffff26;
  overflow: hidden;
}

.win-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  background: #eef2f8;
  border-bottom: 1px solid #e1e7f1;
  flex: none;
}

.win-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d3dae6;
}

.win-bar b {
  margin-left: 14px;
  height: 12px;
  width: 38%;
  border-radius: 6px;
  background: #e1e7f1;
}

.win-body {
  flex: 1;
  display: flex;
  min-height: 0;
}

/* Cubie: care management workspace */
.frame-cubie .win {
  left: 9%;
  top: 15%;
  width: 96%;
  height: 76%;
}

.frame-cubie .win-side {
  width: 15%;
  background: #f1f4fa;
  border-right: 1px solid #e6ebf3;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.frame-cubie .win-side i {
  height: 7px;
  border-radius: 4px;
  background: #dbe2ee;
}

.frame-cubie .win-side i.logo {
  width: 60%;
  height: 12px;
  background: #315bea;
  margin-bottom: 8px;
}

.frame-cubie .win-side i.on {
  background: #b9cbff;
}

.win-list {
  width: 39%;
  padding: 14px 12px;
  border-right: 1px solid #edf1f7;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.list-head {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.list-head i {
  height: 10px;
  border-radius: 5px;
  background: #dfe6f2;
  width: 40%;
}

.list-head i+i {
  width: 22%;
  background: #e9eef6;
}

.win-list .row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 9px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #edf1f7;
}

.win-list .row i {
  height: 6px;
  border-radius: 4px;
  background: #e1e7f1;
  flex: 1;
}

.win-list .row i.s {
  flex: .45;
}

.win-list .row i.pri {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d6deea;
}

.win-list .row i.pri.hi {
  background: #315bea;
  box-shadow: 0 0 0 3px #315bea26;
}

.win-list .row i.pri.md {
  background: #8aa8ff;
}

.win-list .row.sel {
  border-color: #9db7ff;
  background: #f3f6ff;
  box-shadow: 0 6px 16px -10px #315bea99;
}

.win-detail {
  flex: 1;
  padding: 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail-head {
  display: flex;
  gap: 10px;
  align-items: center;
}

.detail-head .avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg,#c9d7ff,#8aa8ff);
  flex: none;
}

.detail-head span {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-head span i {
  height: 7px;
  border-radius: 4px;
  background: #dfe6f2;
}

.detail-head span i.s {
  width: 50%;
  background: #ebeff6;
}

.spark {
  display: block;
  height: 64px;
  border-radius: 9px;
  background: #f5f8ff;
  border: 1px solid #e6ecf8;
  padding: 8px;
}

.spark svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.spark path {
  stroke: #315bea;
  stroke-width: 1.6;
}

.spark path.fill {
  stroke: none;
  fill: #315bea14;
}

.chips {
  display: flex;
  gap: 6px;
}

.chips i {
  height: 18px;
  flex: 1;
  border-radius: 6px;
  background: #eef2f8;
}

.chips i.on {
  background: #315bea;
  flex: 1.3;
}

.float-card {
  position: absolute;
  left: 2.5%;
  bottom: 13%;
  width: 34%;
  padding: 14px 14px 13px;
  border-radius: 12px;
  background: #ffffffd9;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -24px #081430cc,0 0 0 1px #ffffff80;
  display: flex;
  flex-direction: column;
  gap: 11px;
  transition: transform .7s var(--ease);
}

.project:hover .float-card {
  transform: translate(-4px,-10px);
}

.fc-head {
  display: flex;
  gap: 8px;
  align-items: center;
}

.fc-head i {
  height: 7px;
  border-radius: 4px;
  background: #dfe6f2;
  flex: 1;
}

.fc-head i.pulse {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #315bea;
  box-shadow: 0 0 0 4px #315bea2e;
}

.fc-actions {
  display: flex;
  gap: 7px;
}

.fc-actions i {
  height: 20px;
  flex: 1;
  border-radius: 6px;
  background: #eef2f8;
}

.fc-actions i.on {
  background: #17202d;
}

/* Phones */
.phone {
  position: absolute;
  display: block;
  border-radius: 30px;
  background: #0e1626;
  padding: 7px;
  box-shadow: 0 40px 70px -30px #0a1a3fb3,0 0 0 1px #ffffff40 inset;
}

.phone .notch {
  position: absolute;
  top: 13px;
  left: 50%;
  width: 30%;
  height: 9px;
  margin-left: -15%;
  border-radius: 6px;
  background: #0e1626;
  z-index: 2;
}

.phone .scr {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  border-radius: 24px;
  background: #fbfdff;
  padding: 34px 14px 14px;
  overflow: hidden;
}

.frame-caliper .p1 {
  left: 16%;
  top: 15%;
  width: 31%;
  height: 118%;
  transform: rotate(-4deg);
}

.frame-caliper .p2 {
  left: 52%;
  top: 9%;
  width: 31%;
  height: 118%;
  transform: rotate(3deg);
}

.frame-caliper .lines i {
  background: #e2ecec;
}

.gauge {
  position: relative;
  display: block;
  width: 78%;
  margin: 4px auto 0;
  aspect-ratio: 1;
}

.gauge svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.gauge circle {
  fill: none;
  stroke-width: 9;
}

.gauge .track {
  stroke: #e5f1f1;
}

.gauge .arc {
  stroke: #0f9aa2;
  stroke-linecap: round;
  stroke-dasharray: 251;
  stroke-dashoffset: 88;
}

.gauge>i {
  position: absolute;
  left: 30%;
  right: 30%;
  top: 44%;
  height: 12px;
  border-radius: 6px;
  background: #cfe5e6;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 6px;
}

.metrics>span {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 7px;
  border-radius: 8px;
  background: #f0f7f7;
}

.metrics i {
  height: 5px;
  border-radius: 3px;
  background: #cfe0e1;
}

.metrics b {
  height: 9px;
  border-radius: 4px;
  background: #0f9aa2;
  width: 70%;
}

.trend {
  display: block;
  height: 46%;
  border-radius: 12px;
  background: #f2f8fa;
  border: 1px solid #e1eef1;
  padding: 10px 8px;
}

.trend svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.trend .goal {
  stroke: #0f9aa2;
  stroke-dasharray: 3 4;
  stroke-width: 1;
  fill: none;
  opacity: .7;
}

.trend .line {
  stroke: #2a6fe0;
  stroke-width: 1.8;
  fill: none;
}

.trend .pts circle {
  fill: #fff;
  stroke: #2a6fe0;
  stroke-width: 1.5;
}

.trend .pts .now {
  fill: #2a6fe0;
}

.insight {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  background: #e8f5f4;
}

.insight .spark-i {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: #0f9aa2;
  flex: none;
}

.insight .lines {
  flex: 1;
}

.insight .lines i {
  background: #c7e3e3;
}

/* Biomarker: clinician review + patient app */
.frame-bio .win {
  left: 6%;
  top: 14%;
  width: 58%;
  height: 70%;
}

.review {
  flex-direction: column;
  padding: 16px;
  gap: 12px;
}

.review-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.review-head i {
  height: 10px;
  width: 46%;
  border-radius: 5px;
  background: #dfe3f3;
}

.review-head i.tag {
  width: 20%;
  background: #e6e2ff;
}

.draft {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  background: #f4f2ff;
  border: 1px solid #e1dcff;
}

.draft .ai {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: linear-gradient(135deg,#7d6bff,#4f6cf0);
  flex: none;
}

.draft .lines {
  flex: 1;
}

.draft .lines i {
  background: #dcd6fb;
}

.edit {
  display: block;
  padding: 12px;
  border-radius: 10px;
  border: 1px dashed #c9c3f2;
}

.edit .lines i {
  background: #e7e4f7;
}

.approve {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: auto;
}

.approve i {
  height: 24px;
  border-radius: 8px;
}

.approve .ghost {
  width: 22%;
  background: #eef0f6;
}

.approve .go {
  width: 30%;
  background: #0b6bcb;
  box-shadow: 0 8px 16px -8px #0b6bcb;
}

.frame-bio .phone {
  left: 66%;
  top: 10%;
  width: 27%;
  height: 112%;
  transform: rotate(3deg);
}

.frame-bio .lines i {
  background: #e4e3f4;
}

.range {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border-radius: 9px;
  background: #f6f6fd;
}

.range>i {
  height: 6px;
  width: 45%;
  border-radius: 3px;
  background: #dcdcef;
}

.range .bar {
  position: relative;
  display: block;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg,#e8e7f6 0 18%,#c9f0dc 18% 78%,#e8e7f6 78%);
}

.range .bar b {
  position: absolute;
  top: -3px;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #0b6bcb;
}

.range.flag .bar b {
  border-color: #e07a2f;
}

.guidance {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  background: #e6f1ff;
}

.guidance .check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #0b6bcb;
  flex: none;
}

.guidance .lines {
  flex: 1;
}

.guidance .lines i {
  background: #d5d2f6;
}

.handoff {
  position: absolute;
  left: 58%;
  top: 52%;
  width: 12%;
  height: 0;
  border-top: 1.5px dashed #0b6bcb;
  opacity: .75;
}

.handoff i {
  position: absolute;
  left: 50%;
  top: -11px;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  border-radius: 50%;
  background: #0b6bcb;
  box-shadow: 0 0 0 5px #0b6bcb33;
}

.handoff i::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Case studies: no-JS fallback ------------------------------------------- */
.case-fallback {
  padding-bottom: 60px;
}

.case-enhanced .case-fallback {
  display: none;
}

.case-fallback details {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

.case-fallback summary {
  cursor: pointer;
  font-size: 22px;
}

/* Case-study modal ------------------------------------------------------- */
dialog {
  border: 0;
  padding: 0;
  width: min(1180px,calc(100% - 64px));
  max-height: 92dvh;
  border-radius: 24px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 50px 120px #06102480;
  overflow: hidden;
}

dialog[open] {
  display: flex;
  flex-direction: column;
}

/* The card scrolls inside itself, so the scrollbar sits within the rounded corners */
.case-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #17202d33 transparent;
}

.case-scroll::-webkit-scrollbar {
  width: 12px;
}

.case-scroll::-webkit-scrollbar-track {
  background: transparent;
  margin: 22px 0;
}

.case-scroll::-webkit-scrollbar-thumb {
  background: #17202d33;
  border: 4px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

.case-scroll::-webkit-scrollbar-thumb:hover {
  background-color: #17202d59;
}

dialog::backdrop {
  background: #0a162bb3;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

dialog[open] {
  animation: dialog-in .45s var(--ease);
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(.985);
  }
}

/* Dialog actions: Let's talk and Close stay pinned to the top-right corner while the case scrolls */
.case-actions {
  position: sticky;
  top: 16px;
  z-index: 6;
  float: right;
  display: flex;
  gap: 8px;
  margin: 16px 16px -56px 0;
}

.close-modal,
.case-talk {
  height: 40px;
  border: 1px solid #ffffffb3;
  background: #ffffffb8;
  color: var(--ink);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
  box-shadow: 0 10px 24px -10px #0a162b66,inset 0 1px 0 #fff;
  transition: background .2s,transform .2s;
}

.close-modal {
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* Muted like Close, so it's always within reach without competing with the story */
.case-talk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

.case-talk:hover {
  background: #fff;
  transform: scale(1.05);
}

.case-talk:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.close-modal svg {
  width: 16px;
  height: 16px;
}

.close-modal:hover {
  background: #fff;
  transform: scale(1.05);
}

.case-article {
  --accent: #315bea;
  --tint: #eef3ff;
  --tint-2: #dfe8fd;
}

.case-article.theme-caliper {
  --accent: #5b45d6;
  --tint: #f1efff;
  --tint-2: #e3defc;
}

.case-article.theme-biomarker {
  --accent: #0b6bcb;
  --tint: #eaf3ff;
  --tint-2: #d6e7fd;
}

.case-label {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--accent);
}

.case-hero {
  display: grid;
  grid-template-columns: minmax(0,1.55fr) minmax(0,1fr);
  gap: 56px;
  padding: 56px 60px 44px;
  background: linear-gradient(180deg,var(--tint),#fff);
}

.case-meta {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  color: var(--accent);
  letter-spacing: .04em;
}

.case-project-name {
  font-size: 16px;
  font-weight: 500;
  margin-top: 18px;
}

.case-hero h2 {
  font-size: clamp(34px,3.8vw,54px);
  margin-top: 12px;
}

.case-overview {
  font-size: var(--fs-lead);
  line-height: 1.7;
  color: var(--ink-2);
  margin-top: 24px;
}

.case-contrib {
  align-self: end;
  padding: 24px;
  border-radius: var(--radius);
  background: #ffffffb3;
  border: 1px solid #17202d10;
  box-shadow: 0 20px 40px -30px #17202d40;
}

.case-contrib ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.case-contrib li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-top: 1px solid #17202d0d;
  font-size: 15px;
  line-height: 1.5;
}

.case-contrib li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(10px + (1.5em - 18px) / 2);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5.4 9.2l2.4 2.4 4.8-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px 18px no-repeat;
}

.case-contrib .project-tags {
  color: var(--accent);
}

.case-stage {
  padding: 0 32px;
}

.stage-wide {
  height: clamp(320px,42vw,500px);
  border-radius: var(--radius-lg);
}

.case-article .stage-cubie {
  background: radial-gradient(120% 140% at 100% 100%,#2f56d8 0,#1a3170 40%,#0f1c38 75%);
}

.case-status-line {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  color: var(--muted);
  padding: 14px 28px 0;
  letter-spacing: .02em;
}

.case-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding: 64px 60px 56px;
}

.case-two p:not(.case-label) {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-2);
  margin-top: 16px;
}

.case-flow {
  position: relative;
  overflow: hidden;
  margin: 0 32px;
  padding: 52px 48px 44px;
  border-radius: var(--radius-lg);
  background: radial-gradient(70% 120% at 85% 0%,#2a4fd0 0,transparent 60%),var(--navy);
  color: var(--on-dark);
  isolation: isolate;
}

.case-flow::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 160px;
  mix-blend-mode: overlay;
  opacity: .4;
  pointer-events: none;
  z-index: -1;
}

.case-flow .case-label {
  color: #a9c3ff;
}

.case-flow h3 {
  font-size: clamp(26px,2.6vw,36px);
  margin-top: 16px;
  max-width: 640px;
}

.case-flow-copy p:not(.case-label) {
  font-size: 16px;
  line-height: 1.8;
  color: var(--on-dark-muted);
  margin-top: 16px;
  max-width: 760px;
}

.flow-steps {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 0;
  margin-top: 40px;
  position: relative;
}

.flow-steps::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 15px;
  border-top: 1px dashed #a9c3ff66;
}

.flow-step {
  flex: 1;
  position: relative;
  padding-right: 18px;
}

.flow-step>span {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: var(--navy);
  border: 1px solid #a9c3ff80;
  font-family: var(--mono);
  font-size: 11.5px;
  color: #cfdcff;
}

.flow-step strong {
  display: block;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  margin-top: 16px;
}

.approval-step>span {
  background: #a9c3ff;
  color: var(--navy);
  border-color: #a9c3ff;
  box-shadow: 0 0 0 6px #a9c3ff2e;
}

.flow-step:last-child>span {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

.flow-note {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  color: #9fb0cc;
  margin-top: 30px;
}

.case-decisions {
  padding: 72px 60px 24px;
}

.decision {
  display: grid;
  grid-template-columns: minmax(0,.9fr) minmax(0,1.3fr);
  gap: 48px;
  align-items: center;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.decision:first-of-type {
  margin-top: 24px;
}

.decision:nth-child(odd) .decision-copy {
  order: 2;
}

.decision-num {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  color: var(--accent);
}

.decision h4 {
  font-family: var(--display);
  font-size: clamp(22px,2vw,28px);
  letter-spacing: -.025em;
  line-height: 1.2;
  margin: 12px 0 12px;
}

.decision p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}

.stage-detail {
  height: 260px;
  border-radius: var(--radius);
}

.stage-detail .frame {
  transform-origin: 0 0;
}

.project:hover .stage-detail .frame {
  transform: none;
}

.stage-detail.stage-cubie.z1 .frame {
  transform: scale(2.0) translate(-20%,-22%);
}

.stage-detail.stage-cubie.z2 .frame {
  transform: scale(2.2) translate(-58%,-25%);
}

.stage-detail.stage-cubie.z3 .frame {
  transform: scale(2.2) translate(0%,-55%);
}

.stage-detail.stage-caliper.z1 .frame {
  transform: scale(2.2) translate(-14%,-14%);
}

.stage-detail.stage-caliper.z2 .frame {
  transform: scale(2.2) translate(-50%,-20%);
}

.stage-detail.stage-caliper.z3 .frame {
  transform: scale(2.4) translate(-50%,-55%);
}

.stage-detail.stage-biomarker.z1 .frame {
  transform: scale(2.0) translate(-5%,-18%);
}

.stage-detail.stage-biomarker.z2 .frame {
  transform: scale(2.4) translate(-28%,-50%);
}

.stage-detail.stage-biomarker.z3 .frame {
  transform: scale(2.2) translate(-62%,-14%);
}

.pin {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px 6px 9px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  color: var(--ink);
  background: #ffffffd1;
  border: 1px solid #ffffff;
  box-shadow: 0 8px 20px -12px #17202d55;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.pin::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent,var(--blue));
  box-shadow: 0 0 0 3px color-mix(in srgb,var(--accent,#315bea) 22%,transparent);
}

.case-experience {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 28px;
  padding: 40px 60px 20px;
}

.case-experience-copy {
  display: grid;
  grid-template-columns: 200px minmax(0,1fr);
  gap: 40px;
}

.case-experience-copy p:not(.case-label) {
  font-size: var(--fs-lead);
  line-height: 1.75;
  color: var(--ink-2);
}

.stage-strip {
  height: 300px;
  border-radius: var(--radius-lg);
}

.stage-strip .frame {
  transform: scale(1.1) translate(-4%,2%);
}

.case-related {
  padding: 56px 60px 8px;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

.related-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 70px 22px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(135deg,#fff 40%,var(--rel-tint,#eef3ff));
  transition: transform .3s var(--ease),box-shadow .3s;
}

.related-card.theme-caliper {
  --rel-tint: #eeeaff;
}

.related-card.theme-biomarker {
  --rel-tint: #e6f1ff;
}

.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -30px #17202d66;
}

.related-meta {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}

.related-title {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 560;
  letter-spacing: -.02em;
}

.related-head {
  font-size: var(--fs-small);
  color: var(--muted);
}

.related-card .circle-arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  margin-top: -17px;
  color: var(--ink);
}

.related-card:hover .circle-arrow {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.case-end {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 40px 32px 32px;
  padding: 26px 28px;
  border-radius: var(--radius);
  background: var(--bg-2);
}

.case-end>span {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 520;
  letter-spacing: -.02em;
}

/* Editorial case studies: typed sections from build.py editorial() ------- */
/* Layered stages keep grain under product imagery: gradient, grain, artwork, screens. */
.stage-layered::after {
  content: none;
}

.stage-layered::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 160px;
  mix-blend-mode: overlay;
  opacity: .45;
  pointer-events: none;
  z-index: 0;
}

.case-signal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.screen {
  display: block;
  overflow: hidden;
  background: #fff;
  border: 1px solid #17202d14;
  box-shadow: 0 30px 60px -36px #1b1f5c66,0 2px 6px -2px #17202d14;
}

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

.screen-desktop {
  border-radius: 12px;
}

.screen-phone {
  border-radius: 13% / 6%;
}

.screen-crop {
  position: relative;
  border-radius: var(--radius);
}

.screen-crop img {
  position: absolute;
  left: var(--crop-x);
  top: var(--crop-y);
  width: var(--crop-w);
  max-width: none;
}

.stage-pair .screen {
  position: absolute;
  z-index: 2;
}

.pair-desktop {
  left: 5%;
  top: 13%;
  width: 61%;
}

.pair-phone {
  left: 69%;
  top: 8%;
  width: 23%;
  z-index: 3;
}

.featured .stage-layered::before {
  opacity: .22;
}

/* On cards the phone bleeds past the lower edge, and both screens lift on hover like the frame artwork. */
.project .pair-phone {
  top: 22%;
}

.project .stage-pair .screen {
  transition: transform .7s var(--ease);
}

.project:hover .stage-pair .screen {
  transform: translateY(-6px);
}

/* Two phones: the primary screen in front, the second slightly behind and lower */
.stage-phones .screen {
  position: absolute;
  z-index: 2;
}

.stage-phones .phone-front {
  z-index: 3;
}

.stage-hero.stage-phones .phone-front {
  left: 66%;
  top: 9%;
  width: 25%;
}

.stage-hero.stage-phones .phone-back {
  left: 44.5%;
  top: 15%;
  width: 23%;
}

.project .stage-phones .phone-front {
  left: 48%;
  top: 6%;
  width: 23%;
}

.project .stage-phones .phone-back {
  left: 29%;
  top: 13%;
  width: 21.5%;
}

.project .stage-phones .screen {
  transition: transform .7s var(--ease);
}

.project:hover .stage-phones .screen {
  transform: translateY(-6px);
}

/* Product shots: a screen cut from its render, inset into the shared iPhone frame (assets/projects/device-iphone.svg) */
/* Above the stage grain, which would otherwise grey the dark screens; the front phone stays on top. */
.stage-phones .screen-device {
  z-index: 4;
}

.stage-phones .screen-device.phone-front {
  z-index: 5;
}

.screen-device {
  overflow: visible;
  aspect-ratio: 429/880;
  background: none;
  border: 0;
  box-shadow: none;
}

.screen-device::before {
  content: "";
  position: absolute;
  inset: 0 .93%;
  border-radius: 16.4% / 7.84%;
  box-shadow: 0 46px 60px -30px #050b2acc,0 18px 24px -18px #050b2a99,0 2px 4px #050b2a40;
}

.screen-device img {
  position: absolute;
  left: 4.2%;
  top: 1.59%;
  width: 91.61%;
  height: 96.82%;
  border-radius: 14% / 6.46%;
  object-fit: cover;
  object-position: top;
}

.screen-device .device-frame {
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
}

/*
 Caliper card: dark product shots on a light cobalt/lavender field. Phones are sized from the stage height
 (container units), so the pair keeps its scale and bleed when the card turns wide and short on smaller screens.
*/
.project .stage-caliper {
  container-type: size;
  background: radial-gradient(42% 70% at 50% 60%,#ffffffb3 0,transparent 70%),radial-gradient(70% 90% at 85% 0%,#c6d3ff 0,transparent 60%),radial-gradient(60% 80% at 8% 100%,#e6d6fa 0,transparent 62%),linear-gradient(160deg,#f1f4fc,#e1e7fb 55%,#cfd8f8);
}

.project .stage-caliper .phone-front {
  left: calc(50% - 2cqh);
  top: 13%;
  width: 51cqh;
  transform: rotate(3deg);
}

.project .stage-caliper .phone-back {
  left: calc(50% - 46cqh);
  top: 22%;
  width: 48cqh;
  transform: rotate(-3deg);
}

/* Keep the tilt through the shared hover lift (once the card is published and clickable). */
.project:hover .stage-caliper .phone-front {
  transform: translateY(-6px) rotate(3deg);
}

.project:hover .stage-caliper .phone-back {
  transform: translateY(-6px) rotate(-3deg);
}

/*
 Biomarker card: the framed patient result in front on the left, the clinician workspace behind running out to the
 right so its result panel and trend stay in view.
 Sized like Caliper from the stage height (--u), capped by width so narrow cards keep both screens in view.
*/
.project .stage-biomarker {
  container-type: size;
}

.project .stage-biomarker .pair-desktop,
.project .stage-biomarker .pair-phone {
  --u: min(1cqh,.66cqw);
}

.project .stage-biomarker .pair-desktop {
  left: calc(50% - 40 * var(--u));
  top: 13%;
  width: calc(112 * var(--u));
}

.project .stage-biomarker .pair-phone {
  left: calc(50% - 69 * var(--u));
  top: 14%;
  width: calc(51 * var(--u));
}

.project.is-soon .stage.stage-real {
  opacity: 1;
  filter: none;
}

.stage-hero {
  height: clamp(340px,46vw,540px);
  border-radius: var(--radius-lg);
}

.stage-hero .pair-phone {
  top: 10%;
}

.case-editorial .case-overview+.case-overview {
  margin-top: 14px;
}

.ed-stage {
  margin: 0;
}

.ed-stage figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 14px 28px 0;
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--muted);
}

.ed-stage .case-status-line {
  flex: none;
  padding: 0;
}

.ed {
  display: grid;
  grid-template-columns: minmax(0,5fr) minmax(0,7fr);
  column-gap: 56px;
  padding: 80px 60px 0;
}

.ed-head h3 {
  font-size: var(--fs-h3);
  margin-top: 14px;
  max-width: 420px;
}

.ed-body p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
}

.ed-body p+p {
  margin-top: 16px;
}

.ed-caption {
  grid-column: 1/-1;
  max-width: 640px;
  margin-top: 16px;
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--muted);
}

.ed-strip {
  grid-column: 1/-1;
  display: flex;
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ed-strip li {
  position: relative;
  flex: 1 1 0;
  padding: 16px 12px 16px 0;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: .02em;
  color: var(--ink-2);
}

.ed-strip li+li {
  padding-left: 34px;
}

.ed-strip li+li::before {
  content: "→";
  position: absolute;
  left: 8px;
  color: var(--accent);
}

.findings {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.findings li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

.findings strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 560;
  letter-spacing: -.015em;
  color: var(--ink);
}

.ed-artifact {
  grid-column: 1/-1;
  margin: 44px 0 0;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-2);
}

.ed-artifact .ed-caption {
  margin-top: 18px;
}

.screen-artifact {
  border-radius: 10px;
  box-shadow: 0 20px 40px -32px #17202d40;
}

/* Product definition: the shared navy flow panel, with grouping and an approval focal point */
.ed-flow {
  margin-top: 80px;
  padding: 60px 48px 40px;
  background: radial-gradient(55% 90% at 78% 100%,#2a4fd0 0,transparent 62%),radial-gradient(45% 70% at 0% 0%,#1b2c55 0,transparent 70%),var(--navy);
}

.ed-flow>:not(canvas) {
  position: relative;
  z-index: 1;
}

.flow-map {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  margin-top: 56px;
}

.flow-bracket {
  position: relative;
  grid-row: 1;
  grid-column: var(--from)/span var(--span);
  margin: 0 18px 26px 0;
  padding-top: 10px;
  border-top: 1px solid #a9c3ff59;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #a9c3ff;
}

.flow-bracket::before,
.flow-bracket::after {
  content: "";
  position: absolute;
  top: -1px;
  width: 1px;
  height: 7px;
  background: #a9c3ff59;
}

.flow-bracket::before {
  left: 0;
}

.flow-bracket::after {
  right: 0;
}

.flow-path {
  grid-row: 2;
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: subgrid;
  list-style: none;
  margin: 0;
  padding: 0;
}

.path-step {
  position: relative;
  padding-right: 18px;
}

/* Connectors run from each node to the next: loose points before approval, a resolved line after. */
.path-step:not(.path-last)::before {
  content: "";
  position: absolute;
  left: 36px;
  right: 4px;
  top: 14px;
  height: 3px;
  background: radial-gradient(circle,#a9c3ff 0 .9px,transparent 1.4px) 0 50%/9px 3px repeat-x;
  opacity: .7;
}

.is-approval:not(.path-last)::before {
  height: 0;
  top: 15px;
  border-top: 1.5px solid #cfdcff;
  background: none;
  opacity: 1;
}

.path-node {
  position: relative;
  display: inline-flex;
  width: 31px;
  height: 31px;
}

.path-node>span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: var(--navy);
  border: 1px solid #a9c3ff80;
  font-family: var(--mono);
  font-size: 11.5px;
  color: #cfdcff;
}

.is-approval .path-node>span {
  background: #a9c3ff;
  border-color: #a9c3ff;
  color: var(--navy);
  box-shadow: 0 0 0 6px #a9c3ff2e,0 0 36px 8px #315bea8c;
}

.path-seed {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92px;
  height: 92px;
  margin: -46px 0 0 -46px;
}

.after-approval .path-node>span {
  border-color: #ffffffb3;
  color: #fff;
}

.path-step strong {
  display: block;
  margin-top: 18px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
}

.path-detail {
  display: block;
  margin-top: 6px;
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--on-dark-muted);
}

.path-connector {
  position: absolute;
  z-index: 2;
  left: calc(-50% + 16px);
  top: 15px;
  transform: translate(-50%,-50%);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--navy);
  border: 1px solid #cfdcff59;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .02em;
  white-space: nowrap;
  color: #e8f0ff;
}

.flow-notes {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 32px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--navy-line);
}

.flow-notes .flow-note {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--on-dark);
}

.flow-notes .flow-note::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a9c3ff;
  box-shadow: 0 0 0 3px #a9c3ff33;
  transform: translateY(-1px);
}

.flow-context {
  max-width: 340px;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  line-height: 1.6;
  color: #9fb0cc;
}

.ed-flow-caption {
  margin: 0;
  padding: 14px 60px 0;
}

/* Design decisions: a complete screen beside an enlarged, annotated detail */
.pair-figure {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: minmax(0,3fr) minmax(0,6fr) minmax(0,3fr);
  gap: 40px;
  align-items: center;
  margin: 44px 0 0;
  padding: 48px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg,var(--tint),#fbfbff 80%);
}

.pair-detail {
  display: contents;
}

.pair-screen .screen {
  max-width: 210px;
  margin: 0 auto;
}

.pair-figure .ed-caption {
  order: 3;
  margin-top: 0;
}

.ed-pair-flip .pair-figure {
  grid-template-columns: minmax(0,7fr) minmax(0,3fr);
  background: var(--bg-2);
}

.ed-pair-flip .pair-screen {
  order: 2;
}

.marker {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border-radius: 50%;
  background: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  color: #fff;
  box-shadow: 0 0 0 4px #ffffffd9,0 6px 14px -6px #1b1f5c88;
}

.marker-list {
  list-style: none;
  counter-reset: marker;
  margin: 0;
  padding: 0;
  font-size: var(--fs-small);
  line-height: 1.45;
}

.marker-list li {
  counter-increment: marker;
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 11px 0;
  border-top: 1px solid #17202d12;
}

.marker-list li::before {
  content: counter(marker);
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  font: 11px/22px var(--mono);
  text-align: center;
  color: #fff;
}

/* Sequences: ordered workflow states and the patient story */
.seq-grid {
  grid-column: 1/-1;
  display: grid;
  gap: 44px 32px;
  margin-top: 44px;
}

.seq-panel {
  margin: 0;
}

.seq-label {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 14px;
  font-family: var(--sans);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
}

.seq-label span {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  color: var(--accent);
}

.seq-review {
  grid-template-columns: repeat(6,minmax(0,1fr));
  align-items: end;
}

.seq-review .seq-panel {
  grid-column: span 3;
}

.seq-review .seq-emphasis {
  grid-column: span 4;
}

.seq-review .seq-phone {
  grid-column: span 2;
}

.seq-review .seq-phone .screen {
  max-width: 200px;
}

.seq-emphasis .seq-label {
  color: var(--accent);
}

.seq-emphasis .screen {
  outline: 2px solid color-mix(in srgb,var(--accent) 40%,transparent);
  outline-offset: 6px;
}

.ed-seq-row .seq-grid {
  padding: 48px 40px 44px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg,var(--tint),#f9f9ff);
}

.seq-row {
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 40px 28px;
}

.seq-row .screen {
  max-width: 220px;
}

.seq-row figcaption {
  max-width: 220px;
  margin-top: 16px;
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--muted);
}

/* Delivery: live components with illustrative values */
.spec-board {
  grid-column: 1/-1;
  margin: 44px 0 0;
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  border: 1px solid var(--line);
}

.spec-title,
.spec-group-name {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}

.spec-groups {
  display: grid;
  grid-template-columns: minmax(0,2fr) minmax(0,1fr);
  gap: 20px;
  margin-top: 24px;
}

.spec-group {
  display: grid;
  gap: 14px;
  align-content: start;
}

.spec-patient {
  grid-template-columns: 1fr 1fr;
}

.spec-group-name {
  grid-column: 1/-1;
  color: var(--accent);
}

.spec-cell {
  padding: 22px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 32px -28px #17202d40;
}

.spec-label {
  margin-bottom: 20px;
  font-size: var(--fs-small);
  font-weight: 500;
}

.spec-range {
  display: grid;
  gap: 8px;
}

.spec-value {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.spec-value i {
  width: 44%;
  height: 18px;
  border-radius: 6px;
  background: #d9d7ee;
}

.spec-value b {
  padding: 4px 10px;
  border-radius: 999px;
  background: #c9f0dc;
  font-size: 12px;
  font-weight: 500;
  color: #17603f;
}

.spec-bar {
  position: relative;
  height: 10px;
  margin: 22px 0 18px;
  border-radius: 5px;
  background: linear-gradient(90deg,#f3d9d3 0 10%,#f5e7cc 10% 22%,#dde8f7 22% 42%,#c9f0dc 42% 66%,#dde8f7 66% 80%,#f5e7cc 80% 90%,#f3d9d3 90%);
}

.spec-bar::before,
.spec-bar::after {
  content: "";
  position: absolute;
  height: 5px;
  border: 1.5px solid;
}

.spec-bar::before {
  left: 42%;
  width: 24%;
  top: -9px;
  border-color: var(--accent);
  border-bottom: 0;
}

.spec-bar::after {
  left: 22%;
  width: 58%;
  bottom: -9px;
  border-color: #8f8db5;
  border-top: 0;
}

.spec-bar b {
  position: absolute;
  left: 55%;
  top: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  box-shadow: 0 4px 10px -4px #0b6bcbaa;
}

.spec-key {
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}

.spec-key::before {
  content: "";
  width: 16px;
  border-top: 1.5px solid;
}

.key-optimal::before {
  color: var(--accent);
}

.key-lab::before {
  color: #8f8db5;
}

.spec-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.spec-legend li {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-2);
}

.z-abnormal {
  background: #f3d9d3;
}

.z-borderline {
  background: #f5e7cc;
}

.z-normal {
  background: #dde8f7;
}

.z-optimal {
  background: #c9f0dc;
}

.spec-history {
  display: block;
  width: 100%;
  height: auto;
}

.spec-history .band-normal {
  fill: #dde8f7;
  opacity: .6;
}

.spec-history .band-optimal {
  fill: #c9f0dc;
  opacity: .85;
}

.spec-history polyline {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: round;
}

.spec-history circle {
  fill: #fff;
  stroke: var(--accent);
  stroke-width: 2;
}

.spec-history .now {
  fill: var(--accent);
}

.spec-status {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.spec-status li {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: var(--fs-small);
}

.spec-status li::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.spec-status .is-draft {
  background: #f4f2ff;
  border-color: #e1dcff;
}

.spec-status .is-draft::before {
  background: linear-gradient(135deg,#7d6bff,#4f6cf0);
}

.spec-status .is-review {
  background: #fffaf0;
  border-color: #e6cf9f;
  border-style: dashed;
}

.spec-status .is-review::before {
  background: #e3a64a;
}

.spec-status .is-approved {
  background: #effaf4;
  border-color: #b7e6cc;
  font-weight: 500;
}

.spec-status .is-approved::before {
  background: #1f9d63;
  box-shadow: 0 0 0 3px #c9f0dc;
}

/* Closing: echoes the opening's lavender environment */
.ed-closing {
  --close-a: #cbc4ff;
  --close-b: #bccaff;
  --close-c: #f3f1ff;
  --close-d: #e6e5fc;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin: 80px 32px 0;
  padding: 40px 44px;
  border-radius: var(--radius-lg);
  background: radial-gradient(70% 140% at 100% 0%,var(--close-a) 0,transparent 60%),radial-gradient(60% 120% at 0% 100%,var(--close-b) 0,transparent 65%),linear-gradient(160deg,var(--close-c),var(--close-d));
}

.theme-caliper .ed-closing {
  --close-a: #a9e5df;
  --close-b: #bcd8ff;
  --close-c: #effaf8;
  --close-d: #dcf0f1;
}

.theme-cubie .ed-closing {
  --close-a: #b4c8ff;
  --close-b: #c6d5ff;
  --close-c: #f1f5ff;
  --close-d: #e1e9fc;
}

.ed-closing::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 160px;
  mix-blend-mode: overlay;
  opacity: .35;
  pointer-events: none;
  z-index: -1;
}

.ed-closing h3 {
  max-width: 560px;
  font-size: clamp(24px,2.4vw,32px);
}

.ed-closing p {
  margin-top: 10px;
  font-size: 17px;
  color: var(--ink-2);
}

.case-editorial .case-related {
  padding-bottom: 48px;
}

/* Desktop pairing: a complete screen behind an enlarged crop of the task in front */
.stage-desktop-detail .pair-desktop {
  left: 5%;
  top: 10%;
  width: 62%;
}

.stage-desktop-detail .pair-front {
  right: 4%;
  top: 32%;
  width: 40%;
  z-index: 3;
  box-shadow: 0 40px 70px -30px #0a1430cc,0 2px 8px -2px #0a14304d;
}

/* Two desktops: a complete screen behind a second complete screen, offset down and right.
   --stack-w sizes the front screen; the pair stays centered as short stages cap it. */
.stage-desktop-stack {
  --stack-w: 62%;
}

.stage-desktop-stack .pair-desktop {
  left: calc(50% - var(--stack-w) * .74);
  top: 9%;
  width: calc(var(--stack-w) * .97);
}

.stage-desktop-stack .pair-front {
  left: calc(50% - var(--stack-w) * .26);
  top: 33%;
  width: var(--stack-w);
  z-index: 3;
  box-shadow: 0 40px 70px -30px #0a1430cc,0 2px 8px -2px #0a14304d;
}

/* Independent categories: fine rules instead of arrows */
.ed-strip-rule li+li {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.ed-strip-rule li+li::before {
  content: none;
}

/* Approved figures: the value reads first, its meaning beneath in mono */
.ed-stats {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
  margin: 44px 0 0;
  border-top: 1px solid var(--line);
}

.ed-stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 12px;
  padding: 22px 24px 4px 0;
}

.ed-stat+.ed-stat {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.ed-stat dd {
  margin: 0;
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: clamp(36px,3.4vw,52px);
  letter-spacing: var(--display-track);
  line-height: 1;
  color: var(--ink);
}

.ed-stat dt {
  max-width: 240px;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: .02em;
  line-height: 1.5;
  color: var(--muted);
}

.ed-stats+.ed-strip {
  margin-top: 28px;
}

/* Approach: a paired comparison, with the direction taken carried in the accent */
.contrast {
  grid-column: 1/-1;
  width: 100%;
  margin-top: 44px;
  border-collapse: collapse;
  table-layout: fixed;
}

.contrast th {
  padding: 0 24px 18px 0;
  border-bottom: 1px solid var(--line-2);
  text-align: left;
  vertical-align: bottom;
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: clamp(19px,1.6vw,23px);
  letter-spacing: -.01em;
  line-height: 1.25;
  color: var(--ink);
}

.contrast-label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-weight: 400;
  font-size: var(--fs-micro);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}

.contrast td {
  padding: 14px 24px 14px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}

.contrast .contrast-to {
  padding-left: 24px;
  background: color-mix(in srgb,var(--accent) 6%,transparent);
  color: var(--ink);
}

.contrast th.contrast-to {
  padding-top: 20px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.contrast th.contrast-to .contrast-label {
  color: var(--accent);
}

/* The same tools converge on one task engine, which yields the next step */
.converge {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: max-content minmax(60px,1fr) auto auto auto;
  align-items: center;
  column-gap: 18px;
  margin: 56px 0 0;
  padding: 36px 40px;
  border-radius: var(--radius-lg);
  background: var(--bg-2);
}

.converge-inputs {
  display: grid;
  grid-auto-rows: 44px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.converge-inputs li {
  align-self: center;
  justify-self: start;
  padding: 7px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--bg);
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: .02em;
  color: var(--ink-2);
}

.converge-lines {
  width: 100%;
  height: calc(var(--rows) * 44px);
  overflow: visible;
}

.converge-lines path {
  fill: none;
  stroke: color-mix(in srgb,var(--accent) 50%,transparent);
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}

.converge-engine {
  margin: 0;
  padding: 16px 22px;
  border-radius: var(--radius);
  background: var(--navy);
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: 18px;
  white-space: nowrap;
  color: var(--on-dark);
  box-shadow: 0 24px 40px -28px #0f1c38;
}

.converge-arrow {
  font-size: 20px;
  color: var(--accent);
}

.converge-result {
  margin: 0;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--accent);
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: .04em;
  white-space: nowrap;
  color: #fff;
}

@media (max-width:900px) {
  .ed-stat+.ed-stat {
    padding-left: 18px;
  }
  .contrast th,
  .contrast td {
    padding-right: 14px;
  }
  .contrast .contrast-to {
    padding-left: 14px;
  }
  .converge {
    grid-template-columns: 1fr;
    justify-items: start;
    row-gap: 14px;
    padding: 28px 24px;
  }
  .converge-inputs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .converge-lines {
    display: none;
  }
  .converge-arrow {
    transform: rotate(90deg);
  }
}

@media (max-width:600px) {
  .ed-stat+.ed-stat {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .ed-stat {
    padding-bottom: 18px;
  }
  .contrast th {
    font-size: 17px;
  }
  .contrast td {
    font-size: 14px;
  }
  .contrast th,
  .contrast td {
    padding-right: 10px;
    overflow-wrap: anywhere;
  }
  .contrast .contrast-to {
    padding-left: 10px;
  }
}

/* Product definition: a containment tree on the navy panel */
.tree {
  position: relative;
  margin-top: 52px;
}

.tree::after {
  content: "";
  position: absolute;
  right: 110px;
  top: 44px;
  bottom: 70px;
  border-left: 1px dashed #a9c3ff40;
}

.tree-key {
  display: flex;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--navy-line);
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #a9c3ff;
}

.tree-key span+span {
  width: 220px;
  text-align: center;
}

.tree-level {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tree-level .tree-level {
  margin-left: 12px;
  padding-left: 28px;
}

.tree-node,
.tree-ghost {
  position: relative;
}

/* Elbows: each child draws its share of the parent's vertical line and a short horizontal joint. */
.tree-level .tree-level>.tree-node::before,
.tree-level .tree-level>.tree-ghost::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 0;
  bottom: 0;
  border-left: 1px solid #a9c3ff4d;
}

.tree-level .tree-level>.tree-last::before {
  bottom: auto;
  height: 29px;
}

.tree-level .tree-level>.tree-node>.tree-row::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 29px;
  width: 20px;
  border-top: 1px solid #a9c3ff4d;
}

.tree-row {
  position: relative;
  display: grid;
  grid-template-columns: 100px minmax(0,1fr) 220px;
  gap: 20px;
  align-items: center;
  min-height: 58px;
  padding: 8px 0;
}

.tree-name {
  font-size: 16px;
  font-weight: 500;
}

.tree-detail {
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--on-dark-muted);
}

.tree-example {
  position: relative;
  z-index: 1;
  justify-self: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #a9c3ff59;
  background: var(--navy);
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
  color: #cfdcff;
}

.is-selected>.tree-row .tree-example {
  border-color: #7ea2ff;
  background: #1f3a8a;
  color: #fff;
  box-shadow: 0 0 0 5px #315bea33,0 0 28px 4px #315bea66;
}

.tree-seed {
  position: absolute;
  left: -34px;
  top: 50%;
  width: 56px;
  height: 56px;
  margin-top: -28px;
}

.tree-ghost {
  height: 26px;
}

.tree-ghost::after {
  content: "";
  position: absolute;
  left: -8px;
  top: 12px;
  width: 64px;
  height: 3px;
  background: radial-gradient(circle,#a9c3ff 0 .9px,transparent 1.4px) 0 50%/8px 3px repeat-x;
  opacity: .55;
}

/* Two independent columns: scope lists and the outreach model comparison */
.ed-columns {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 44px;
}

.ed-column {
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
}

.ed-column-head {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--accent);
}

.ed-column ul {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.ed-column li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
}

.attempts {
  position: relative;
  display: inline-flex;
  gap: 14px;
  margin-top: 22px;
}

.attempt-task {
  position: relative;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: #fff;
}

.attempt-task i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.attempts-nested .attempt-task {
  padding-right: 40px;
  border-style: dashed;
}

.attempts-history {
  padding-bottom: 24px;
}

.attempts-history .attempt-task::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  height: 21px;
  border-left: 1px solid var(--accent);
}

.attempt-history {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 2px;
  border-top: 2px solid var(--accent);
}

/* MVP strategy: two complete screens staggered rather than shrunk side by side */
.ed-stagger {
  grid-column: 1/-1;
  margin-top: 44px;
  padding: 48px;
  border-radius: var(--radius-lg);
  background: var(--bg-2);
}

.stagger-item {
  display: flex;
  gap: 28px;
  margin: 0;
}

.stagger-item .screen {
  flex: 0 0 72%;
}

.stagger-item figcaption {
  padding-top: 6px;
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--muted);
}

.stagger-item strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
  color: var(--ink);
}

.stagger-2 {
  position: relative;
  z-index: 1;
  flex-direction: row-reverse;
  margin-top: -9%;
}

.stagger-2 figcaption {
  align-self: flex-end;
  padding: 0 0 6px;
  text-align: right;
}

/* Sequences led by a complete screen: stage strip, constraint list, and annotated context */
.enroll-strip {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  border-top: 1px solid var(--line-2);
}

.enroll-strip li {
  position: relative;
  padding: 18px 16px 0 0;
}

.enroll-strip li::before {
  content: "";
  position: absolute;
  left: 0;
  top: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px #fff;
}

.enroll-strip strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
}

.enroll-strip span {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  color: var(--muted);
}

.stage-note {
  grid-column: 1/-1;
  margin-top: 18px;
  font-size: var(--fs-small);
  color: var(--muted);
}

.constraint-list {
  grid-column: 1/-1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
}

.constraint-list li {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: var(--fs-micro);
  color: var(--ink-2);
}

.seq-lead {
  grid-column: 1/-1;
  margin: 28px 0 0;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg,var(--tint),#fbfcff 80%);
}

.seq-lead .screen {
  position: relative;
}

.marker-row {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  column-gap: 28px;
  margin-top: 22px;
}

.seq-shell {
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 28px;
}

.seq-steps {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 24px;
  margin-top: 28px;
}

/* Outreach decision: desktop screen beside a larger annotated crop */
.ed-pair-desktop .pair-figure {
  grid-template-columns: minmax(0,5fr) minmax(0,6fr);
  background: var(--bg-2);
}

.ed-pair-desktop .pair-screen .screen {
  max-width: none;
}

.ed-pair-desktop .marker-list {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  column-gap: 24px;
}

/* Product direction: an entry step feeding a loop, on the navy panel */
.cycle {
  display: grid;
  grid-template-columns: 190px minmax(0,1fr);
  margin-top: 40px;
}

.cycle-entry,
.cycle-loop {
  position: relative;
  height: 460px;
}

.cycle-node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: var(--navy);
  border: 1px solid #a9c3ff80;
  font-family: var(--mono);
  font-size: 11.5px;
  color: #cfdcff;
}

.cycle-text strong {
  display: block;
  font-size: 16px;
  font-weight: 500;
}

.cycle-text span {
  display: block;
  margin-top: 4px;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--on-dark-muted);
}

.cycle-entry .cycle-node {
  position: absolute;
  left: 24px;
  top: 110px;
  transform: translateY(-50%);
  background: #a9c3ff;
  border-color: #a9c3ff;
  color: var(--navy);
}

.cycle-entry .cycle-text {
  position: absolute;
  left: 0;
  top: 140px;
  width: 170px;
}

/* Lead-in from the entry to the first step, meeting the loop at its upper tangent. */
.cycle-entry::after {
  content: "";
  position: absolute;
  left: 58px;
  right: -144px;
  top: 110px;
  border-top: 1px dashed #a9c3ff80;
}

.cycle-track {
  position: absolute;
  inset: 110px 40px;
  border: 1px solid #a9c3ff59;
  border-radius: 999px;
}

.cycle-arrow {
  position: absolute;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid #cfdcff;
  border-right: 1.5px solid #cfdcff;
}

.cycle-arrow-1 {
  left: 50%;
  top: -1px;
  transform: translate(-50%,-50%) rotate(45deg);
}

.cycle-arrow-2 {
  right: -1px;
  top: 50%;
  transform: translate(50%,-50%) rotate(135deg);
}

.cycle-arrow-3 {
  left: 50%;
  bottom: -1px;
  transform: translate(-50%,50%) rotate(225deg);
}

.cycle-seed {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92px;
  height: 92px;
  transform: translate(-50%,-50%);
}

.cycle-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cycle-step {
  position: absolute;
}

.cycle-slot-1,
.cycle-slot-4 {
  left: 160px;
}

.cycle-slot-2,
.cycle-slot-3 {
  left: calc(100% - 160px);
}

.cycle-slot-1,
.cycle-slot-2 {
  top: 110px;
}

.cycle-slot-3,
.cycle-slot-4 {
  top: calc(100% - 110px);
}

.cycle-step .cycle-node {
  position: absolute;
  transform: translate(-50%,-50%);
}

.cycle-step .cycle-text {
  position: absolute;
  left: -110px;
  width: 220px;
  text-align: center;
}

.cycle-top .cycle-text {
  bottom: 26px;
}

.cycle-bottom .cycle-text {
  top: 26px;
}

.cycle-return {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translate(-50%,-50%);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--navy);
  border: 1px solid #cfdcff59;
  font-family: var(--mono);
  font-size: 11px;
  white-space: nowrap;
  color: #e8f0ff;
}

.cycle-note {
  margin-top: 8px;
}

/* Flow comparison chips: the step that moved carries the accent */
.ed-column .flow-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.ed-column .flow-chips li {
  position: relative;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: var(--fs-small);
}

.ed-column .flow-chips li+li::before {
  content: "→";
  position: absolute;
  left: -19px;
  color: var(--muted);
}

.ed-column .flow-chips .is-moved {
  border-color: var(--accent);
  background: var(--tint);
  font-weight: 500;
  color: var(--accent);
}

/* Phone sequences: onboarding, goal comparison, home and check-in, concepts */
.seq-onboard,
.seq-compare,
.seq-home,
.seq-concepts {
  justify-content: center;
  padding: 44px 40px;
  border-radius: var(--radius-lg);
}

.seq-onboard {
  grid-template-columns: repeat(3,minmax(0,220px));
  gap: 40px 56px;
  background: linear-gradient(180deg,#f2f6f8,#fbfcfd);
}

.seq-compare {
  grid-template-columns: repeat(2,minmax(0,260px));
  gap: 40px 72px;
  background: linear-gradient(160deg,var(--tint),#fbfefe 80%);
}

.seq-home {
  grid-template-columns: repeat(2,minmax(0,240px));
  gap: 40px 72px;
  background: linear-gradient(180deg,#f2f6f8,#fbfcfd);
}

.seq-concepts {
  grid-template-columns: repeat(2,minmax(0,240px));
  gap: 40px 72px;
  margin-top: 24px;
  padding-top: 8px;
}

.seq-compare .screen {
  position: relative;
}

.seq-onboard figcaption,
.seq-home figcaption,
.seq-detail figcaption {
  margin-top: 14px;
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--muted);
}

.seq-legend {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  column-gap: 24px;
  margin-top: 20px;
}

.seq-detail {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.7fr);
  column-gap: 40px;
  align-items: center;
  margin: 24px 0 0;
  padding: 32px 40px;
  border-radius: var(--radius-lg);
  background: var(--bg-2);
}

.seq-detail .seq-label {
  align-self: end;
  margin: 0;
}

.seq-detail figcaption {
  grid-column: 1;
  align-self: start;
  margin-top: 6px;
}

.seq-detail .screen {
  grid-column: 2;
  grid-row: 1/3;
}

.screen-concept {
  outline: 1.5px dashed color-mix(in srgb,var(--accent) 60%,transparent);
  outline-offset: 6px;
}

.concept-label {
  color: var(--accent);
}

/* Progress decision: a tall crop, then alternative states as labels rather than data */
.ed-pair-tall .pair-figure {
  grid-template-columns: minmax(0,3fr) minmax(0,5fr) minmax(0,3fr);
  background: var(--bg-2);
}

.ed-pair-tall .pair-zoom {
  justify-self: center;
  width: 100%;
  max-width: 340px;
}

.state-list {
  grid-column: 1/-1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  margin-top: 24px;
}

.state-label {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}

.state-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.state-list li {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: #fff;
  font-size: var(--fs-small);
}

.state-list li::before {
  font-family: var(--mono);
  color: var(--accent);
}

.state-toward::before {
  content: "↗";
}

.state-away::before {
  content: "↘";
}

.state-unclear::before {
  content: "…";
}

/* Coaching direction: inputs, one review point, and possible considerations */
.guide-map {
  grid-column: 1/-1;
  display: grid;
  gap: 30px;
  justify-items: center;
  margin-top: 44px;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: var(--bg-2);
}

.guide-inputs {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 20px;
  width: 100%;
  max-width: 720px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.guide-inputs li {
  position: relative;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: #fff;
  text-align: center;
  font-weight: 500;
}

/* Inputs drop into one horizontal bus, which feeds the review point. */
.guide-inputs {
  position: relative;
}

.guide-inputs::after {
  content: "";
  position: absolute;
  left: calc((100% - 40px) / 6);
  right: calc((100% - 40px) / 6);
  top: calc(100% + 15px);
  border-top: 1px solid #9fcfcc;
}

.guide-inputs li::after,
.guide-review::before,
.guide-review::after {
  content: "";
  position: absolute;
  left: 50%;
  border-left: 1px solid #9fcfcc;
}

.guide-inputs li::after {
  top: 100%;
  height: 16px;
}

.guide-review::before {
  bottom: 100%;
  height: 15px;
}

.guide-review::after {
  top: 100%;
  height: 30px;
}

.guide-review {
  position: relative;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb,var(--accent) 35%,transparent);
  background: var(--tint);
  font-weight: 500;
  color: var(--accent);
}

.guide-considerations {
  text-align: center;
}

.guide-label {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}

.guide-considerations ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.guide-considerations li {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px dashed var(--line-2);
  background: #fff;
  font-size: var(--fs-small);
  color: var(--ink-2);
}

/* Design delivery: the component sheet and the task patterns built from it */
.ed-board {
  grid-column: 1/-1;
  display: grid;
  gap: 32px;
  margin: 44px 0 0;
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  border: 1px solid var(--line);
}

.board-label {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--accent);
}

.board-patterns {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 20px;
}

.board-pattern-name {
  margin-bottom: 10px;
  font-size: var(--fs-small);
  font-weight: 500;
}

.ed-board .ed-caption {
  margin-top: 0;
}

.board-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Point of View ---------------------------------------------------------- */
.perspective {
  position: relative;
  overflow: clip;
  background: var(--navy);
  color: var(--on-dark);
  padding: 104px 0 96px;
  isolation: isolate;
}

.perspective::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 160px;
  mix-blend-mode: overlay;
  opacity: .22;
  pointer-events: none;
  z-index: -1;
}

.pov-glow {
  position: absolute;
  right: -10%;
  top: 18%;
  width: 70%;
  height: 70%;
  background: radial-gradient(closest-side,#315bea40,transparent);
  z-index: -2;
  pointer-events: none;
}

.perspective .eyebrow {
  color: #93a6c6;
}

.pov-heading {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(0,1fr);
  gap: 72px;
  align-items: center;
  margin-top: 0;
}

.pov-heading h2 {
  font-size: clamp(40px,4.6vw,68px);
  max-width: 12ch;
}

[data-reveal] .w,
[data-case-reveal] .w {
  transition: opacity .3s linear;
}

.pov-intro p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--on-dark-muted);
}

.pov-intro p+p {
  margin-top: 14px;
}

.pov-grid {
  display: grid;
  grid-template-columns: minmax(0,40fr) minmax(0,60fr);
  gap: 40px;
  align-items: start;
  margin-top: 56px;
}

.pov-step {
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 40px 24px 0;
  opacity: .45;
  transition: opacity .35s var(--ease);
}

.pov-step.active {
  opacity: 1;
}

.stage-number {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  color: #8fb0ff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.stage-number::after {
  content: "";
  width: 40px;
  height: 1px;
  background: #8fb0ff66;
}

.pov-step h3 {
  font-size: clamp(28px,2.6vw,38px);
  margin-top: 18px;
}

.stage-lead {
  font-family: var(--display);
  font-size: 19px;
  color: #cfdcff;
  margin-top: 12px;
  letter-spacing: -.01em;
}

.pov-step p:not(.stage-lead) {
  font-size: 16px;
  line-height: 1.8;
  color: var(--on-dark-muted);
  margin-top: 14px;
  max-width: 420px;
}

.pov-visual {
  position: sticky;
  top: 110px;
  padding: 22px 22px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg,#ffffff0a,#ffffff03);
  border: 1px solid #ffffff14;
  box-shadow: inset 0 1px 0 #ffffff14;
}

#evolving-signal {
  display: block;
  width: 100%;
  aspect-ratio: 3/2;
  max-height: 58vh;
}

.progress-track {
  height: 2px;
  border-radius: 2px;
  background: #ffffff14;
  margin-top: 12px;
  overflow: hidden;
}

.progress-track>span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg,#4178ff,#a9c8ff);
}

.mobile-stages {
  display: none;
}

/* Capabilities ----------------------------------------------------------- */
.capabilities {
  position: relative;
  padding: 170px 0 110px;
  isolation: isolate;
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 28px;
}

.cap-grid article {
  display: flex;
  flex-direction: column;
  padding: 24px 0 4px;
  border-top: 1px solid var(--line);
}

.cap-number {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  color: var(--blue);
  letter-spacing: .04em;
}

.cap-grid h3 {
  margin-top: 0;
}

@supports (grid-template-rows:subgrid) {
  .cap-grid {
    row-gap: 0;
  }
  .cap-grid article {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
  }
}

.cap-outcome {
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: -.015em;
  color: var(--ink);
  margin-top: 12px;
  min-height: 54px;
}

.cap-grid p:not(.cap-outcome) {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 14px;
}

.cap-grid ul {
  list-style: none;
  padding: 0;
  margin-top: 22px;
}

.cap-grid li {
  font-size: 15px;
  padding: 11px 0 11px 20px;
  border-top: 1px solid #edf1f6;
  position: relative;
}

.cap-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-pale);
}

.execution-note {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 20px 28px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.execution-note h3 {
  font-size: 26px;
  line-height: 1.3;
  grid-row: span 2;
  align-self: center;
}

.execution-note p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  grid-column: 2/-1;
}

.execution-note a {
  grid-column: 2/-1;
  justify-self: start;
  font-size: 15px;
  color: var(--blue);
  font-weight: 500;
  transition: color .2s;
}

/* Expertise -------------------------------------------------------------- */
.expertise {
  position: relative;
  padding: 170px 0 120px;
  background: var(--bg-2);
  isolation: isolate;
  overflow: hidden;
}

.expertise-index {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  color: var(--blue);
}

.expertise-lead {
  font-family: var(--display);
  font-size: 18px;
  color: var(--ink);
  margin-top: 14px;
  letter-spacing: -.01em;
}

.focus-bento {
  display: grid;
  grid-template-columns: repeat(12,minmax(0,1fr));
  gap: 18px;
}

.focus-tile {
  position: relative;
  grid-column: span 7;
  min-height: 590px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 30px 60px -48px #17202d66;
}

.focus-tile.focus-compact {
  grid-column: span 5;
}

.focus-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 160px;
  mix-blend-mode: overlay;
  opacity: .35;
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px #ffffff8c;
}

.tile-navy::after {
  box-shadow: inset 0 0 0 1px #ffffff1a;
}

.focus-art {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  height: 58%;
  display: block;
  z-index: 0;
  transition: transform .8s var(--ease);
  -webkit-mask-image: linear-gradient(180deg,#000 72%,transparent);
  mask-image: linear-gradient(180deg,#000 72%,transparent);
}

.focus-body {
  position: relative;
  z-index: 2;
  padding: 30px 32px 30px;
}

.focus-tile h3 {
  margin-top: 10px;
  max-width: 20ch;
}

.focus-tile .expertise-lead {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: .02em;
  color: var(--blue);
}

.focus-tile .expertise-lead+h3 {
  margin-top: 12px;
}

.focus-tile .focus-body>p:not(.expertise-lead) {
  font-size: 15px;
  line-height: 1.75;
  margin-top: 14px;
  max-width: 520px;
  color: var(--tile-muted);
}

.tile-navy {
  --tile-muted: #b3c0d6;
  color: #fff;
  background: radial-gradient(90% 80% at 70% 20%,#23408f 0,#142446 45%,#101b2c 80%);
}

.tile-navy .related {
  color: #a9c3ff;
}

.tile-navy .expertise-lead {
  color: #a9c3ff;
}

.focus-tile.focus-wide .focus-art {
  left: auto;
  right: 0;
  width: 64%;
  height: 100%;
  -webkit-mask-image: linear-gradient(90deg,transparent 0,#000 34%),linear-gradient(0deg,rgba(0,0,0,.35) 0,#000 40%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg,transparent 0,#000 34%),linear-gradient(0deg,rgba(0,0,0,.35) 0,#000 40%);
  mask-composite: intersect;
}

.focus-tile.focus-wide .focus-body {
  max-width: 58%;
}

/* Wellness: the spiral spans the whole card; only the copy's corner is masked. */
.focus-tile.focus-wellness .focus-art {
  left: 0;
  width: 100%;
  -webkit-mask-image: radial-gradient(70% 55% at 16% 92%,transparent 0,transparent 35%,#000 78%);
  -webkit-mask-composite: source-over;
  mask-image: radial-gradient(70% 55% at 16% 92%,transparent 0,transparent 35%,#000 78%);
  mask-composite: add;
}

.focus-tile.focus-compact .focus-art {
  height: 62%;
}

.tile-sky {
  --tile-muted: #4b5a6e;
  background: radial-gradient(90% 80% at 70% 20%,#b5cff3 0,#d3e2f7 40%,#e8f0fb 72%,#f0f5fc 100%);
}

.tile-ice {
  --tile-muted: #4d5a6c;
  background: radial-gradient(90% 80% at 70% 20%,#cfdcf5 0,#e2e9f6 40%,#eff3f9 72%,#f5f7fb 100%);
}

.tile-slate {
  --tile-muted: #d6dff2;
  color: #fff;
  background: radial-gradient(90% 80% at 70% 20%,#3a5fb8 0,#2a4790 45%,#1d3468 85%);
}

.tile-slate .expertise-lead,
.tile-slate .related {
  color: #cfdcff;
}

.tile-slate::after {
  box-shadow: inset 0 0 0 1px #ffffff1f;
}

.related {
  align-self: flex-start;
  margin-top: 0;
  padding-top: 18px;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  color: var(--blue);
  display: inline-flex;
  gap: 8px;
}

.related:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Hidden by the build while the related case study is unpublished. */
.related[hidden] {
  display: none;
}

/* Section unfold ---------------------------------------------------------- */
/* app.js sets --unfold (0 card → 1 full width) as each section passes; without it the section stays full width.
   Signature case-study bands do the same inside the dialog's scroller. */
:root {
  --unfold-radius: 40px;
}

.perspective,
.expertise,
.contact,
.case-signature .sg-band {
  transform: scale(calc(.88 + .12 * var(--unfold,1)));
  transform-origin: top center;
  border-radius: calc((1 - var(--unfold,1)) * var(--unfold-radius));
}

[data-unfold-phase="leave"] {
  transform-origin: bottom center;
}

/* Partnership ------------------------------------------------------------ */
.partner {
  position: relative;
  padding: 170px 0 120px;
  isolation: isolate;
  overflow: hidden;
}

.partner-band {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,#fff 0,#eef3fe 34%,#f4f7fe 70%,#fff 100%);
}

.partner-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 160px;
  mix-blend-mode: overlay;
  opacity: .3;
}

.partner-art-wrap {
  position: relative;
  margin: -12px calc(var(--gutter) * -1) 0;
  height: 320px;
  -webkit-mask-image: linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
  mask-image: linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
}

.partner-art {
  display: block;
  width: 100%;
  height: 100%;
}

.partnership-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: -28px;
}

.partnership-grid::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -132px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg,#315bea00 0,#315bea66 22%,#17202d1a 46%,#17202d14);
}

.partner-half {
  display: none;
}

.partner-cta {
  display: inline-block;
  margin-top: 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--blue);
  transition: color .2s;
}

/* Cobalt secondary links share one hover: a slightly darker blue. */
.text-link:hover,
.execution-note a:hover,
.partner-cta:hover {
  color: #2148d6;
}

.partnership-grid article {
  display: flex;
  flex-direction: column;
  padding: 56px 48px 8px 0;
}

.partnership-grid article+article {
  padding: 56px 0 8px 48px;
}

.partnership-grid h3 {
  font-size: clamp(32px,3.2vw,46px);
  margin: 22px 0 6px;
  letter-spacing: -.04em;
}

.partnership-grid p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 14px;
  max-width: 500px;
}

.partnership-close {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.partnership-close h3 {
  font-size: 26px;
  line-height: 1.3;
}

.partnership-close p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
}

/* Contact + footer ------------------------------------------------------- */
.contact {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  padding-top: 110px;
  isolation: isolate;
}

.contact::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 160px;
  mix-blend-mode: overlay;
  opacity: .22;
  pointer-events: none;
  z-index: -1;
}

.contact-glow {
  position: absolute;
  left: -15%;
  top: -30%;
  width: 75%;
  height: 110%;
  background: radial-gradient(closest-side,#315bea59,transparent);
  z-index: -2;
}

.contact .eyebrow {
  color: #93a6c6;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 72px;
  align-items: center;
}

.contact h2 {
  font-size: clamp(40px,4.4vw,64px);
  margin-top: 0;
}

.contact-grid>div>p:not(.eyebrow) {
  font-size: 16px;
  line-height: 1.8;
  color: var(--on-dark-muted);
  margin-top: 22px;
  max-width: 440px;
}

.contact-domain {
  display: inline-flex;
  gap: 10px;
  margin-top: 34px;
  font-family: var(--mono);
  font-size: 14px;
  color: #cfdcff;
  border-bottom: 1px solid #cfdcff55;
  padding-bottom: 4px;
}

.contact form {
  padding: 34px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg,#ffffff0d,#ffffff05);
  border: 1px solid #ffffff1a;
  box-shadow: inset 0 1px 0 #ffffff1a,0 40px 80px -40px #000a;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.contact-fields {
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

label {
  display: block;
  font-size: 14px;
  color: #d6e0ef;
  margin-bottom: 24px;
}

label>span {
  color: #9dadc5;
  font-size: 13px;
}

label>span[aria-hidden] {
  color: #a9c3ff;
}

input,
textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  background: #ffffff08;
  border: 1px solid #6a7b96;
  border-radius: 10px;
  color: #fff;
  padding: 12px 14px;
  font-size: 16px;
  resize: vertical;
  transition: border-color .2s,background-color .2s,box-shadow .2s;
}

textarea {
  min-height: 132px;
}

input:hover,
textarea:hover {
  border-color: #8597b3;
}

input:focus,
textarea:focus {
  border-color: #a9c3ff;
  background: #ffffff0f;
  box-shadow: 0 0 0 3px #85a7ff2e;
  outline: none;
}

input:user-invalid,
textarea:user-invalid {
  border-color: #ff9b9b;
}

/* Keep browser autofill on the dark card. */
input:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  box-shadow: inset 0 0 0 40px #1c2a40;
  caret-color: #fff;
}

input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #85a7ff;
  outline-offset: 3px;
}

input::placeholder,
textarea::placeholder {
  color: #8f9fb8;
  opacity: 1;
}

.contact input:disabled,
.contact textarea:disabled {
  cursor: not-allowed;
}

.inquiry-privacy {
  font-size: 13px;
  line-height: 1.7;
  color: #b4c2d9;
  margin: 0 0 24px;
}

.contact .button.light {
  width: 100%;
  justify-content: center;
  gap: 10px;
}

.form-note {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  line-height: 1.7;
  color: #a9b8d0;
  margin-top: 16px;
  min-height: 22px;
}

.contact footer {
  margin-top: 100px;
  border-top: 1px solid var(--navy-line);
  padding-top: 36px;
  padding-bottom: 30px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
}

.footer-top .brand {
  font-size: 32px;
}

.footer-top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  font-size: 14px;
  color: #d0d9e9;
}

.footer-top nav a:hover,
.footer-bottom a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-top: 30px;
  font-size: 13px;
  color: #a9b8d0;
}

.footer-legal {
  display: flex;
  gap: 18px;
}

/* Secondary pages (privacy, thank-you, 404) -------------------------------- */
.header.static {
  position: relative;
}

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px var(--gutter) 104px;
  min-height: 60vh;
}

.legal h1 {
  font-size: clamp(40px,6vw,64px);
  margin: 14px 0 18px;
}

.legal h2 {
  font-size: 24px;
  margin: 48px 0 10px;
}

.legal p,
.legal li {
  color: var(--muted);
  line-height: 1.8;
  margin-top: 12px;
}

.legal a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal .date {
  font-family: var(--mono);
  font-size: var(--fs-micro);
}

.preview-notice {
  margin: 28px 0;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--blue-wash);
  border: 1px solid #d6e2fb;
  font-size: 14px;
  color: var(--ink-2);
}

.legal-footer {
  position: relative;
  background: var(--navy);
  color: #a9b8d0;
  font-size: 13px;
  padding: 30px 0;
  isolation: isolate;
}

.legal-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 160px;
  mix-blend-mode: overlay;
  opacity: .2;
  pointer-events: none;
  z-index: -1;
}

.legal-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.legal-footer nav {
  display: flex;
  gap: 22px;
}

.legal-footer a {
  color: #d0d9e9;
}

.legal-footer a:hover {
  color: #fff;
}

/* Signature case study (docs/05): Cubie's six chapters -------------------- */
/* Opening: one column of copy, a compact role line, and a quiet text link */
.case-signature .sg-hero {
  grid-template-columns: minmax(0,1fr);
  padding-bottom: 40px;
}

.sg-role {
  max-width: 680px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}

.sg-role strong {
  font-weight: 500;
  color: var(--ink);
}

/* Shared figure spacing inside chapters */
.sg-figure {
  grid-column: 1/-1;
  margin: 48px 0 0;
}

.sg-figure .screen-crop {
  border-radius: 10px;
}

.sg-fig-label {
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: .05em;
  text-transform: uppercase;
  text-align: left;
  color: var(--muted);
}

/* Approach: the repository model against the task model, reusing the contrast table */
.sg-contrast {
  margin-top: 0;
}

.sg-contrast caption {
  caption-side: top;
}

/* Model: the real enrollment pathway in the taxonomy, beside the rail staff actually see.
   Two matching cards of one height: the model, and the same model in the product. */
.sg-model-figure {
  display: grid;
  grid-template-columns: minmax(0,3fr) minmax(0,1fr);
  column-gap: 40px;
  align-items: stretch;
}

.sg-tree,
.sg-rail {
  padding: 28px 30px;
  border-radius: var(--radius-lg);
  background: #ffffffd9;
  box-shadow: 0 30px 60px -40px #1b1f5c4d;
}

/* Header at the top, key at the bottom, the stage diagram centred in the height the crop sets */
.sg-tree {
  grid-column: 1;
  display: flex;
  flex-direction: column;
}

.sg-tree .sg-tree-path {
  margin-bottom: 28px;
}

.sg-tree .sg-nodes {
  margin: auto 0;
}

.sg-rail .screen-crop {
  border-radius: 12px;
}

.sg-rail {
  grid-column: 2;
}

/* Tablet: a wider crop column keeps the workspace legible beside the diagram */
@media (min-width:901px) and (max-width:1100px) {
  .sg-model-figure {
    grid-template-columns: minmax(0,2fr) minmax(0,1fr);
    column-gap: 28px;
  }
  .sg-rail {
    padding: 22px;
  }
}

.sg-model-figure .ed-caption {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  margin-top: 18px;
}

/* First release: one bounded pathway beside the branching work it prepares for */
.sg-paths {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 0 28px;
}

.sg-paths .sg-fig-label,
.sg-paths .ed-caption {
  grid-column: 1/-1;
}

.sg-path {
  padding: 24px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
}

.sg-path-initial {
  border: 2px solid var(--accent);
  background: var(--tint);
}

.sg-path-initial h4 {
  color: var(--accent);
}

.sg-path-expansion {
  border-style: dashed;
}

.sg-path-summary {
  margin-top: 6px;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--ink-2);
}
/* Chapter disciplines: which studio expertise drove the chapter, as quiet labels under the heading */

/* At a glance: the whole case in four lines, under the hero */
.sg-glance {
  margin: 44px 60px 0;
}

/* Approach: how the work was done, as a short method line */
.sg-methods {
  grid-column: 1/-1;
  margin-top: 36px;
}

.sg-methods ul {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 0 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: method;
}

.sg-methods li {
  counter-increment: method;
  padding-top: 12px;
  border-top: 1px solid var(--line-2);
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--ink-2);
}

.sg-methods li::before {
  content: counter(method,decimal-leading-zero);
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  color: var(--accent);
}

/* Data: the record a completed task leaves, beside the dashboard that uses it */
.sg-data-figure {
  display: grid;
  grid-template-columns: minmax(0,4fr) minmax(0,7fr);
  column-gap: 36px;
  align-items: start;
}

.sg-data-figure .ed-caption {
  margin-top: 18px;
}

/* What it unlocked: the selective navy surface, with horizons that state their status in words */
.sg-unlocks .case-label {
  color: #9db6ff;
}

.sg-unlocks .ed-head h3 {
  color: #fff;
}

.sg-unlocks .ed-body p {
  color: #d0d9e9;
}

.sg-unlocks .ed-caption {
  color: #aab6c8;
}

.sg-horizons {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sg-horizon {
  padding: 24px 0 0;
  border-top: 1px solid #ffffff3d;
}

.sg-horizon-initial {
  border-top: 2px solid #9db6ff;
}

.sg-horizon-intended {
  border-top-style: dashed;
}

.sg-horizon-explored {
  border-top: 2px dotted #ffffff66;
}

.sg-horizon-name {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: 24px;
  letter-spacing: var(--display-track);
  color: #fff;
}

.sg-horizon-status {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  color: #9db6ff;
}

.sg-horizon ul {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.sg-horizon li {
  padding: 9px 0;
  border-top: 1px solid var(--navy-line);
  font-size: var(--fs-small);
  line-height: 1.5;
  color: #e6ecf5;
}

/* Lessons: what the case means for the reader's own organization */
.sg-lessons {
  margin: 112px 60px 0;
}

.sg-lessons h3 {
  max-width: 16ch;
  font-size: clamp(32px,3.4vw,48px);
  line-height: 1.06;
  letter-spacing: -.03em;
}

.sg-lessons ol {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 32px;
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  counter-reset: lesson;
}

.sg-lessons li {
  counter-increment: lesson;
  padding-top: 16px;
  border-top: 2px solid var(--accent);
}

.sg-lessons li::before {
  content: counter(lesson,decimal-leading-zero);
  font-family: var(--mono);
  font-size: var(--fs-micro);
  color: var(--accent);
}

.sg-lessons h4 {
  margin-top: 10px;
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: clamp(21px,1.9vw,26px);
  line-height: 1.2;
  letter-spacing: -.015em;
}

.sg-lessons p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* Client quote: rendered only with approved wording */
.sg-quote {
  grid-column: 1/-1;
  margin: 40px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
}

.sg-quote p {
  max-width: 760px;
  font-family: var(--display);
  font-size: clamp(22px,2.2vw,30px);
  line-height: 1.35;
  letter-spacing: -.01em;
}

.sg-quote footer {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  color: var(--muted);
}

/* Delivery: contribution, then time-qualified status, in type alone */
.sg-contrib {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 0 32px;
  margin: 0 0 28px;
}

.sg-contrib div {
  padding: 18px 0 20px;
  border-top: 1px solid var(--line-2);
}

.sg-contrib dt {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: 21px;
  letter-spacing: -.01em;
  line-height: 1.25;
}

.sg-contrib dd {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* v4 editorial layer: the case reads as part of the homepage's design language ---------- */
/* Opening: a light lead line and a strong close, as in the homepage hero */
.case-signature .sg-hero {
  padding: 72px 60px 28px;
  background: radial-gradient(70% 90% at 88% 0%,#dfe7ff 0,transparent 60%),linear-gradient(180deg,#f3f6ff,#fff 85%);
}

.case-signature .sg-hero h2 {
  margin-top: 16px;
  font-size: clamp(44px,5.4vw,80px);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.sg-light {
  font-weight: var(--display-light);
  color: var(--muted);
}

.sg-strong {
  font-weight: var(--display-weight);
  color: var(--ink);
}

.sg-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.sg-hero-meta span,
.sg-eyebrow>span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.sg-hero-meta span::after,
.sg-eyebrow>span:first-child::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: .45;
}

.case-signature .sg-hero .case-overview {
  max-width: 680px;
}

.case-signature .sg-glance {
  margin: 0 60px;
}

/* Chapter openers: display headings that hold their place while the chapter reads */
.case-signature .ed {
  padding-top: 112px;
}

.sg-head h3 {
  max-width: 13ch;
  margin-top: 16px;
  font-size: clamp(34px,3.8vw,54px);
  line-height: 1.04;
  letter-spacing: -.032em;
}

.sg-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Bands: full-width surfaces inside the dialog, carrying the homepage's tile gradients and grain */
.case-signature .sg-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 112px;
  padding: 96px 60px;
}

.case-signature .sg-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  background-size: 160px;
  mix-blend-mode: overlay;
  opacity: .35;
  pointer-events: none;
}

.sg-band-lavender {
  background: radial-gradient(90% 80% at 80% 10%,#cfdcf5 0,#e2e9f6 40%,#eff3f9 72%,#f5f7fb 100%);
}

.sg-band-navy {
  color: #fff;
  background: radial-gradient(90% 80% at 70% 20%,#23408f 0,#142446 45%,#101b2c 80%);
}

.case-signature .sg-band+.ed,
.case-signature .sg-band+.sg-interlude {
  padding-top: 112px;
}

.case-signature .sg-band+.sg-band {
  margin-top: 0;
}

.sg-band-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: .75;
  pointer-events: none;
}

/* Interlude: one statement, set like the homepage's section openers */
.sg-interlude {
  padding: 136px 60px 0;
}

.sg-interlude::after {
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  margin-top: 44px;
  background: var(--accent);
}

.sg-interlude p {
  max-width: 19ch;
  font-family: var(--display);
  font-size: clamp(38px,4.8vw,72px);
  line-height: 1.04;
  letter-spacing: -.035em;
}
/* Approach: signal artwork heads each column, scattered for the record, resolved for the task */

.sg-art {
  display: block;
  pointer-events: none;
}

/* Data: the dashboard crop sits on a navy stage, as the homepage card frames its screens */
.sg-stage-navy {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: radial-gradient(90% 80% at 70% 20%,#23408f 0,#142446 45%,#101b2c 80%);
}

.sg-stage-navy .screen-crop {
  border: 0;
  box-shadow: 0 40px 70px -30px #0a1430cc;
}

/* Journey: one enrollment, five frames with the same crop, and what stays constant across them */
.sg-frames {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 40px 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sg-frame .screen-crop {
  border-radius: 10px;
  border: 0;
  box-shadow: 0 30px 50px -34px #1b1f5c66,0 2px 6px -2px #17202d1f;
}

.sg-frame-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 500;
}

.sg-frame-label span {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  font-weight: 400;
  color: var(--accent);
}

.sg-frame-caption {
  margin-top: 4px;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--ink-2);
}

.sg-frame-notes {
  align-self: center;
  padding-left: 24px;
  border-left: 2px solid var(--accent);
}

.sg-frame-notes ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sg-frame-notes li {
  padding: 10px 0;
  border-top: 1px solid #17202d14;
  font-size: 15px;
  line-height: 1.45;
}

/* v5 refinement: one label system, a lede per chapter, and diagrams drawn for their argument ---------- */
.case-signature .ed-body .sg-lede {
  margin-bottom: 20px;
  font-family: var(--display);
  font-size: clamp(20px,1.7vw,24px);
  font-weight: var(--display-weight);
  line-height: 1.35;
  letter-spacing: -.012em;
  color: var(--ink);
}

.sg-band-navy .ed-body .sg-lede {
  color: #fff;
}

/* Opening: headline across, then the overview and role beside the signature screen */
.sg-hero-columns {
  display: grid;
  grid-template-columns: minmax(0,5fr) minmax(0,6fr);
  gap: 56px;
  align-items: start;
  margin-top: 36px;
}

.case-signature .sg-hero .case-overview {
  max-width: none;
  margin-top: 14px;
}

.case-signature .sg-hero .case-overview:first-child {
  margin-top: 0;
}

/* The signature screen, inset on a tinted panel like the homepage card */
.sg-hero-figure {
  position: relative;
  align-self: center;
  isolation: isolate;
  overflow: hidden;
  padding: 7%;
  border-radius: var(--radius-lg);
  background: radial-gradient(42% 70% at 50% 60%,#ffffffb3 0,transparent 70%),radial-gradient(70% 90% at 85% 0%,#c6d3ff 0,transparent 60%),radial-gradient(60% 80% at 8% 100%,#dde3ff 0,transparent 62%),linear-gradient(160deg,#eef2fd,#dfe6fb 55%,#cbd6f8);
  box-shadow: inset 0 0 0 1px #ffffff8c;
}

.sg-hero-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  background-size: 160px;
  mix-blend-mode: overlay;
  opacity: .35;
  pointer-events: none;
}

.sg-hero-screen {
  border-radius: var(--radius);
}

/* Key figures under the hero, set like the homepage's large numerals */
.sg-figures {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  margin: 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}

.sg-figures>div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 22px 24px;
  text-align: center;
}

.sg-figures>div+div {
  border-left: 1px solid var(--line-2);
}

.sg-figures dd {
  margin: 0;
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: clamp(44px,4.6vw,68px);
  line-height: 1;
  letter-spacing: var(--display-track);
}

.sg-figures dt {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: .02em;
  color: var(--muted);
}

/* Stacked chapters: heading and lede across the top, the rest of the body in two columns */
.case-signature .sg-stacked {
  grid-template-columns: minmax(0,1fr);
}

.sg-stacked .sg-head h3 {
  max-width: 18ch;
}

.sg-stacked>.ed-body {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  column-gap: 40px;
  margin-top: 28px;
}

.sg-stacked>.ed-body .sg-lede {
  grid-column: 1/-1;
  max-width: 30ch;
}

.sg-stacked>.ed-body p+p {
  margin-top: 0;
}

/* Approach: the method line sits under the body, the table runs full width */
.ed-body .sg-methods {
  margin-top: 32px;
}

.case-signature .ed-body .sg-fig-label,
.case-signature .ed-body .sg-methods li {
  margin-top: 0;
  font-size: var(--fs-micro);
  line-height: 1.5;
}

.case-signature .ed-body .sg-methods li {
  font-size: var(--fs-small);
}

.ed-body .sg-methods ul {
  grid-template-columns: minmax(0,1fr);
  gap: 0;
}

.ed-body .sg-methods li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.ed-body .sg-methods li::before {
  display: inline;
  margin: 0;
}

.sg-contrast th {
  font-size: clamp(22px,2vw,28px);
}

/* Model: stage nodes on one workflow line, tasks hanging beneath as text */
.sg-tree-path {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  font-size: 15px;
  font-weight: 500;
}

.sg-level-tag {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  font-weight: 400;
  letter-spacing: .03em;
  color: var(--accent);
}

.sg-tree-arrow {
  color: var(--muted);
}

.sg-nodes {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 16px;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.sg-nodes::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 0;
  top: 6px;
  border-top: 2px solid var(--accent);
}

.sg-node {
  position: relative;
  padding-top: 26px;
}

.sg-node::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 3px var(--accent);
}

.sg-node-name {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

.sg-node-name span {
  display: block;
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  font-weight: 400;
  color: var(--accent);
}

.sg-node-tasks {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.sg-node-tasks li,
.sg-tree-key {
  position: relative;
  padding: 6px 0 6px 16px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-2);
}

.sg-node-tasks li::before,
.sg-task-key {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}

.sg-tree-key {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  color: var(--muted);
}

.sg-task-key {
  top: 10px;
}

/* Data: record → feeds → dashboard, read as one flow */
.sg-data-figure {
  grid-template-columns: minmax(0,4fr) 150px minmax(0,7fr);
  column-gap: 0;
  align-items: center;
}

.sg-data-figure .ed-caption {
  grid-column: 1/-1;
}

.sg-record {
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 30px 60px -36px #1b1f5c59,0 0 0 1px #17202d14;
}

.sg-record-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--navy);
}

.sg-record-head span+span {
  text-transform: none;
  letter-spacing: 0;
  color: #aab6c8;
}

.sg-record dl {
  margin: 0;
  padding: 6px 18px 12px;
}

.sg-record dl>div {
  display: grid;
  grid-template-columns: 110px minmax(0,1fr);
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.sg-record dl>div:first-child {
  border-top: 0;
}

.sg-record dt {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  line-height: 1.6;
  color: var(--muted);
}

.sg-record dd {
  margin: 0;
  font-size: var(--fs-small);
  line-height: 1.5;
}

.sg-flow-link {
  position: relative;
  align-self: center;
  padding: 0 14px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
  color: var(--accent);
}

.sg-flow-link::before {
  content: "";
  display: block;
  height: 2px;
  margin-bottom: 10px;
  background: linear-gradient(90deg,var(--accent) 70%,transparent 70%) 0 0/8px 2px repeat-x;
}

.sg-flow-link::after {
  content: "→";
  position: absolute;
  right: 4px;
  top: -9px;
  font-size: 14px;
}

.sg-attention .sg-fig-label {
  margin-bottom: 12px;
}

/* First release: one straight pathway beside a model that keeps branching */
.sg-path h4 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
}

.sg-path-initial h4 {
  color: var(--accent);
}

.sg-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.sg-line::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 12%;
  top: 6px;
  border-top: 2px solid var(--accent);
}

.sg-line li {
  position: relative;
  padding: 24px 8px 0 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink);
}

.sg-line li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
}

/* Status vocabulary shared by every diagram: solid = built or initial, dashed = intended, dotted = explored */
/* Both paths share one height; the bounded line centres on the same axis as the shared model it feeds. */
.sg-paths .sg-path {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  padding: 20px 0 0;
  border: 0;
  border-radius: 0;
  background: none;
}

/* The step labels hang below the dots; the top padding matches them so the dots, not the box, sit on the axis. */
.sg-paths .sg-path-initial .sg-line {
  margin-block: auto;
  padding-top: 46px;
}

.sg-paths .sg-path-initial .sg-line::before {
  top: 52px;
}

.sg-paths .sg-path-initial {
  border-top: 2px solid var(--accent);
}

.sg-paths .sg-path-expansion {
  border-top: 2px dashed color-mix(in srgb,var(--accent) 55%,transparent);
}

.sg-branching {
  display: grid;
  grid-template-columns: auto 64px minmax(0,1fr);
  align-items: stretch;
  margin-top: 18px;
}

.sg-branch-root {
  align-self: center;
}

.sg-branch-root span {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--navy);
  font-family: var(--mono);
  font-size: var(--fs-micro);
  color: #fff;
}

.sg-fan {
  width: 100%;
  height: 100%;
}

.sg-fan path,
.sg-fork path {
  fill: none;
  stroke: var(--line-2);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.sg-fan path,
.sg-fork path {
  stroke: color-mix(in srgb,var(--accent) 45%,transparent);
  stroke-dasharray: 4 4;
}

.sg-branch-roles {
  display: grid;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sg-branch-roles li {
  display: grid;
  grid-template-columns: auto minmax(40px,1fr) 8px;
  align-items: center;
  gap: 0 8px;
  min-height: 40px;
}

.sg-role-name {
  font-size: 13px;
  font-weight: 500;
}

.sg-fork {
  width: 100%;
  height: 34px;
}

.sg-fork-ends {
  display: grid;
  gap: 7px;
  height: 34px;
  align-content: space-between;
}

.sg-fork-ends i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
}

/* Delivery: a closing spread, disciplines across, status as the lede */
.sg-result .sg-contrib {
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 0 28px;
  margin: 36px 0 0;
}

/* Closing: a full-width band like the chapters above, not an inset card */
.case-signature .ed-closing {
  margin: 112px 0 0;
  padding: 88px 60px;
  border-radius: 0;
}

.case-signature .sg-result-body {
  display: block;
  max-width: 760px;
  margin-top: 40px;
}

.sg-result-body .sg-lede {
  max-width: none;
}

.case-signature .sg-result-body p+p {
  margin-top: 14px;
}

@media (max-width:900px) {
  .case-signature .sg-hero {
    padding: 30px 22px 22px;
  }
  .case-signature .sg-hero h2 {
    font-size: 32px;
  }
  .case-signature .sg-hero .case-overview {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.6;
  }
  .sg-role {
    margin-top: 18px;
    padding-top: 14px;
    font-size: 14px;
  }
  .sg-figure {
    margin-top: 28px;
  }
  .sg-model-figure,
  .sg-paths {
    grid-template-columns: minmax(0,1fr);
  }
  .sg-paths .sg-path-initial .sg-line {
    margin-block: 28px 0;
    padding-top: 0;
  }
  .sg-paths .sg-path-initial .sg-line::before {
    top: 6px;
  }
  .sg-tree {
    padding: 18px;
  }
  .sg-hero-columns,
  .sg-stacked>.ed-body {
    grid-template-columns: minmax(0,1fr);
    gap: 18px;
  }
  .sg-stacked>.ed-body p+p {
    margin-top: 12px;
  }
  .sg-hero-columns {
    gap: 28px;
  }
  .sg-figures dd {
    font-size: 44px;
  }
  .sg-figures>div {
    padding: 18px 12px;
  }
  .sg-nodes,
  .sg-line {
    grid-template-columns: minmax(0,1fr);
    gap: 0;
    padding-left: 26px;
  }
  .sg-nodes::before,
  .sg-line::before {
    left: 6px;
    right: auto;
    top: 6px;
    bottom: 6px;
    border-top: 0;
    border-left: 2px solid var(--accent);
  }
  .sg-node,
  .sg-line li {
    padding: 0 0 18px;
  }
  .sg-node::before,
  .sg-line li::before {
    left: -26px;
  }
  .sg-data-figure {
    grid-template-columns: minmax(0,1fr);
    row-gap: 18px;
  }
  .sg-flow-link::after {
    content: "↓";
    position: static;
    display: block;
  }
  .sg-result .sg-contrib {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .case-signature .ed-closing {
    margin: 72px 0 0;
    padding: 56px 22px calc(40px + env(safe-area-inset-bottom));
  }
  .sg-methods ul,
  .sg-horizons,
  .sg-lessons ol {
    grid-template-columns: minmax(0,1fr);
  }
  .sg-branching {
    grid-template-columns: 36px minmax(0,1fr);
  }
  .sg-branch-root {
    grid-column: 1/-1;
    margin-bottom: 8px;
  }
  .sg-branch-roles li {
    grid-template-columns: auto minmax(24px,1fr) 8px;
  }
  .sg-tree {
    grid-column: auto;
  }
  .sg-rail {
    grid-column: auto;
    margin-top: 24px;
    padding: 18px;
  }
  .sg-rail .sg-zoom {
    max-width: 240px;
    margin-inline: auto;
  }
  .sg-tree .sg-nodes {
    margin: 0;
  }
  .sg-model-figure .ed-caption {
    grid-row: auto;
  }
  .sg-path+.sg-path {
    margin-top: 16px;
  }
  .sg-glance {
    margin: 32px 22px 0;
  }
  .sg-methods li+li {
    margin-top: 14px;
  }
  .sg-attention {
    margin-top: 24px;
  }
  .case-signature .sg-hero h2 {
    font-size: 40px;
  }
  .case-signature .sg-glance {
    margin: 6px 22px 0;
  }
  .case-signature .ed {
    padding-top: 72px;
  }
  .sg-head h3 {
    max-width: none;
    font-size: 34px;
  }
  .case-signature .sg-band {
    margin-top: 72px;
    padding: 60px 22px;
  }
  .case-signature .sg-band+.ed,
  .case-signature .sg-band+.sg-interlude {
    padding-top: 72px;
  }
  .sg-interlude {
    padding: 80px 22px 0;
  }
  .sg-interlude p {
    font-size: 34px;
  }
  .sg-frames {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 28px 16px;
  }
  .sg-frame-notes {
    grid-column: 1/-1;
  }
  .sg-stage-navy {
    padding: 16px;
    border-radius: 16px;
  }
  .sg-contrib {
    grid-template-columns: minmax(0,1fr);
  }
  .sg-lessons {
    margin: 72px 22px 0;
  }
  .sg-lessons ol {
    gap: 22px;
  }
  .sg-contrib div {
    grid-template-columns: minmax(0,1fr);
    gap: 4px;
  }
}

@media print {
  [data-case-reveal] .w {
    opacity: 1!important;
  }
  .case-signature .sg-band,
  .case-signature .sg-hero {
    background: none!important;
    color: #000!important;
  }
  .sg-band-navy .ed-head h3,
  .sg-band-navy .ed-body p,
  .sg-band-navy .sg-horizon-name,
  .sg-band-navy .sg-horizon li {
    color: #000!important;
  }
  .sg-art {
    display: none;
  }
  .sg-figure,
  .sg-tree,
  .sg-path,
  .sg-horizon,
  .sg-lessons li,
  .sg-frame {
    break-inside: avoid;
  }
}


/* Image viewer: full screenshots from the case study, stacked above the case dialog ---------- */
.sg-zoom {
  position: relative;
  display: block;
  color: inherit;
  cursor: zoom-in;
}

.sg-zoom:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 12px;
}

.sg-zoom-chip {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 4;
  padding: 4px 10px;
  border-radius: 999px;
  background: #0a162bcc;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .03em;
  color: #fff;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .2s,transform .2s;
  pointer-events: none;
}

.sg-zoom:hover .sg-zoom-chip,
.sg-zoom:focus-visible .sg-zoom-chip {
  opacity: 1;
  transform: none;
}

.image-viewer,
.case-enhanced .image-viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  border-radius: 0;
  background: #0a162b;
  color: #fff;
  box-shadow: none;
}

.image-viewer[open] {
  animation: none;
}

.image-viewer::backdrop {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.viewer-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 24px;
  border-bottom: 1px solid #ffffff1f;
}

.viewer-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #d0d9e9;
}

.viewer-size,
.viewer-close {
  min-height: 44px;
  border: 1px solid #ffffff3d;
  background: #ffffff0f;
  color: #fff;
  transition: background .2s;
}

.viewer-size {
  padding: 0 18px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: .03em;
}

.viewer-close {
  display: grid;
  place-items: center;
  width: 44px;
  border-radius: 50%;
}

.viewer-close svg {
  width: 16px;
  height: 16px;
}

.viewer-size:hover,
.viewer-close:hover {
  background: #ffffff24;
}

.viewer-size:focus-visible,
.viewer-close:focus-visible {
  outline: 2px solid #9db6ff;
  outline-offset: 2px;
}

.viewer-frame {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: auto;
  overscroll-behavior: contain;
}

.viewer-image {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 118px);
  border-radius: 10px;
  box-shadow: 0 40px 80px -40px #000c;
}

.image-viewer.is-actual .viewer-frame {
  display: block;
}

.image-viewer.is-actual .viewer-image {
  max-width: none;
  max-height: none;
  margin: 0 auto;
  border-radius: 0;
}

@media (prefers-reduced-motion:no-preference) {
  .image-viewer[open] {
    animation: viewer-in .25s var(--ease);
  }
}

@keyframes viewer-in {
  from {
    opacity: 0;
  }
}

/* Touch screens have no hover: a small, always-visible expand mark instead of the text chip */
@media (hover:none) {
  .sg-zoom-chip {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    padding: 0;
    font-size: 0;
    opacity: .85;
    transform: none;
  }
  .sg-zoom-chip::before {
    content: "⤢";
    font-size: 14px;
    line-height: 1;
  }
}

@media (max-width:900px) {
  .viewer-bar {
    padding: calc(8px + env(safe-area-inset-top)) 12px 8px 16px;
  }
  .viewer-title {
    font-size: 13px;
  }
  .viewer-size {
    padding: 0 14px;
  }
  .viewer-frame {
    padding: 12px;
  }
}

@media (forced-colors:active) {
  .viewer-size,
  .viewer-close,
  .sg-zoom-chip {
    border: 1px solid CanvasText;
  }
}

@media print {
  .image-viewer,
  .sg-zoom-chip {
    display: none!important;
  }
}

/* Responsive: tablet ----------------------------------------------------- */
@media (max-width:1100px) {
  :root {
    --gutter: 36px;
  }
  .featured {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .featured .stage {
    height: 420px;
    min-height: 0;
  }
  .stage-desktop-stack {
    --stack-w: min(62%,400px);
  }
  .stage-desktop-stack .pair-front {
    top: 30%;
  }
  .project-grid .stage {
    height: 280px;
  }
  .pov-heading {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .pov-grid {
    grid-template-columns: minmax(0,42fr) minmax(0,58fr);
    gap: 24px;
  }
  .pov-step {
    padding-right: 16px;
  }
  .cap-grid {
    column-gap: 20px;
  }
  .execution-note {
    column-gap: 20px;
  }
  .case-hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 44px 40px 34px;
  }
  .case-two {
    padding: 52px 40px 44px;
    gap: 36px;
  }
  .case-flow {
    padding: 44px 36px 36px;
  }
  .case-decisions {
    padding: 56px 40px 16px;
  }
  .case-experience,
  .case-related {
    padding-left: 40px;
    padding-right: 40px;
  }
  .case-experience-copy {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .ed {
    column-gap: 36px;
    padding: 64px 40px 0;
  }
  .ed-flow {
    margin-top: 64px;
    padding: 48px 36px 36px;
  }
  .ed-flow-caption {
    padding: 14px 52px 0;
  }
  .path-connector {
    top: -18px;
  }
  .tree-row {
    grid-template-columns: 88px minmax(0,1fr) 190px;
  }
  .tree-key span+span {
    width: 190px;
  }
  .tree::after {
    right: 95px;
  }
  .marker-row,
  .ed-pair-desktop .marker-list,
  .seq-legend {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .seq-onboard {
    gap: 32px 28px;
  }
  .cycle {
    grid-template-columns: 150px minmax(0,1fr);
  }
  .cycle-step .cycle-text {
    left: -90px;
    width: 180px;
  }
  .cycle-entry .cycle-text {
    width: 124px;
  }
  .ed-column .flow-chips {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .ed-column .flow-chips li+li::before {
    content: "↓";
    left: 14px;
    top: -21px;
  }
  .pair-figure {
    gap: 28px;
    padding: 36px;
  }
  .seq-row {
    grid-template-columns: repeat(2,minmax(0,1fr));
    justify-items: center;
  }
  .spec-groups {
    grid-template-columns: 1fr;
  }
  .ed-closing {
    margin-top: 64px;
  }
  .contact-grid {
    gap: 44px;
  }
}

/* Responsive: mobile ----------------------------------------------------- */
@media (max-width:900px) {
  :root {
    --unfold-radius: 24px;
    --gutter: 22px;
    --fs-display: clamp(42px,16vw,76px);
  }
  html {
    scroll-padding-top: 20px;
  }
  .header,
  .header.is-scrolled,
  .header.on-dark.is-scrolled {
    position: relative;
    left: auto;
    right: auto;
    background: transparent;
    box-shadow: none;
    color: inherit;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .header.is-scrolled .header-inner {
    height: 76px;
  }
  .header.is-scrolled .brand {
    font-size: 32px;
  }
  .header-inner {
    height: 76px;
    gap: 14px;
  }
  .main-nav {
    display: none;
  }
  .brand {
    font-size: 32px;
  }
  .nav-cta {
    margin-left: auto;
    padding: 9px 14px;
    font-size: 13px;
    gap: 10px;
  }
  .mobile-menu {
    display: block;
    /* Align the bars, not the invisible hit area, with the gutter. */
    margin-right: -13px;
  }
  /* Borderless hamburgers: three bars that fold into an × while the menu is open. */
  .mobile-menu summary,
  .dock-menu summary {
    list-style: none;
    cursor: pointer;
    display: grid;
    place-items: center;
    border-radius: 50%;
    transition: background-color .2s;
  }
  .mobile-menu summary:hover,
  .mobile-menu summary:focus-visible,
  .mobile-menu[open] summary {
    background: #17202d0f;
  }
  .header.on-dark .mobile-menu summary:hover,
  .header.on-dark .mobile-menu summary:focus-visible,
  .header.on-dark .mobile-menu[open] summary {
    background: #ffffff1a;
  }
  .mobile-menu summary::-webkit-details-marker,
  .dock-menu summary::-webkit-details-marker {
    display: none;
  }
  .mobile-menu summary {
    width: 44px;
    height: 44px;
  }
  .menu-icon,
  .menu-icon::before,
  .menu-icon::after {
    display: block;
    width: 18px;
    height: 1.5px;
    border-radius: 1px;
    background: currentColor;
    transition: transform .2s var(--ease),background-color .2s;
  }
  .menu-icon {
    position: relative;
  }
  .menu-icon::before,
  .menu-icon::after {
    content: "";
    position: absolute;
    left: 0;
  }
  .menu-icon::before {
    transform: translateY(-6px);
  }
  .menu-icon::after {
    transform: translateY(6px);
  }
  .menu-icon>span {
    display: none;
  }
  details[open] .menu-icon {
    background-color: transparent;
  }
  details[open] .menu-icon::before {
    transform: rotate(45deg);
  }
  details[open] .menu-icon::after {
    transform: rotate(-45deg);
  }
  .mobile-menu nav {
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    top: 68px;
    display: flex;
    flex-direction: column;
    padding: 8px 18px;
    background: #fff;
    border: 1px solid #dce4f1;
    border-radius: 16px;
    box-shadow: 0 24px 50px #17202d22;
    z-index: 10;
  }
  .mobile-menu nav a,
  .dock-menu nav a {
    display: flex;
    align-items: center;
    min-height: 50px;
    font-size: 16px;
    border-bottom: 1px solid #edf1f6;
  }
  .mobile-menu nav a:last-child,
  .dock-menu nav a:last-child {
    border: 0;
  }
  .mobile-menu nav a[aria-current],
  .dock-menu nav a[aria-current] {
    color: var(--blue);
  }
  /* The hero owns the first screen (capped on tall phones), its content centred. */
  .hero {
    margin-top: 0;
    padding: 24px 0 48px;
    min-height: min(calc(100svh - 76px),700px);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .hero-inner {
    width: 100%;
  }
  h1 {
    margin-top: 22px;
    max-width: none;
    line-height: 1;
  }
  /* 8.6 is the measured width-to-size ratio of "The product people": the line fills the column without wrapping. */
  .h1-lead {
    font-size: min(.65em,calc((100vw - 2 * var(--gutter)) / 8.6));
    margin-bottom: .08em;
  }
  .h1-main {
    letter-spacing: -.045em;
  }
  .hero-mark {
    --hero-shift: -12px;
  }
  /* Below the solid header bar the wash fades in from the top, so it never meets the bar in a hard line. */
  .hero[data-hero="e"]::before {
    -webkit-mask-image: linear-gradient(180deg,transparent 0,rgba(0,0,0,.5) 9%,#000 20%,#000 55%,rgba(0,0,0,.6) 75%,rgba(0,0,0,.2) 90%,transparent);
    mask-image: linear-gradient(180deg,transparent 0,rgba(0,0,0,.5) 9%,#000 20%,#000 55%,rgba(0,0,0,.6) 75%,rgba(0,0,0,.2) 90%,transparent);
  }
  .hero[data-hero="e"] .hero-emblem {
    width: 42px;
    height: 44px;
    margin-bottom: 24px;
  }
  .hero-title-card {
    gap: 12px;
    margin-bottom: 28px;
    font-size: 11px;
    letter-spacing: .14em;
    white-space: nowrap;
  }
  .hero-title-card::before,
  .hero-title-card::after {
    width: 14px;
  }
  /* Phones drop "Healthcare" so the title card holds one line; the headline already says it. */
  .card-sector {
    display: none;
  }
  .hero[data-hero="e"] .hero-copy {
    margin-top: 28px;
    font-size: 16px;
  }
  /* E keeps both lines at one size wherever "The product people" still fits on a line. */
  .hero[data-hero="e"] .h1-lead {
    font-size: min(1em,calc((100vw - 2 * var(--gutter)) / 8.6));
  }
  .hero-copy {
    margin-top: 28px;
    font-size: 16px;
    line-height: 1.6;
  }
  .section-heading {
    display: block;
    margin-bottom: 36px;
  }
  .section-heading>p {
    margin-top: 20px;
    max-width: none;
  }
  .capabilities,
  .partner,
  .expertise {
    padding-top: 110px;
  }
  .work {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .project-copy,
  .featured .project-copy,
  .project-grid .project-copy {
    padding: 26px 24px 26px;
  }
  .featured {
    display: flex;
    flex-direction: column;
  }
  .featured .stage {
    height: 300px;
    order: 2;
  }
  .stage-desktop-stack {
    --stack-w: min(62%,290px);
  }
  .project-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 18px;
  }
  .project-grid .stage {
    height: 250px;
  }
  .frame-cubie .win {
    left: 5%;
    width: 120%;
    top: 10%;
    height: 80%;
  }
  .frame-cubie .float-card {
    width: 46%;
    bottom: 8%;
  }
  .perspective {
    padding: 72px 0 64px;
  }
  .pov-heading h2 {
    font-size: 40px;
  }
  .pov-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 40px;
  }
  .pov-visual {
    order: -1;
    position: sticky;
    top: 0;
    z-index: 3;
    margin: 0 calc(var(--gutter) * -1);
    padding: 12px var(--gutter) 12px;
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid #ffffff1a;
    background: #101b2cf2;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    align-self: stretch;
    width: auto;
  }
  #evolving-signal {
    aspect-ratio: auto;
    width: 100%;
    height: clamp(190px,30vh,240px);
    max-height: none;
  }
  .mobile-stages {
    display: flex;
    gap: 6px;
    margin-top: 8px;
  }
  .mobile-stages button {
    flex: 1;
    min-height: 36px;
    padding: 6px 4px;
    white-space: nowrap;
    border: 1px solid #3c5378;
    border-radius: 999px;
    background: transparent;
    color: #b3c0d6;
    font-family: var(--mono);
    font-size: 12px;
  }
  .mobile-stages button[aria-pressed=true] {
    background: #315bea;
    border-color: #6d8fff;
    color: #fff;
  }
  .pov-step {
    min-height: 48vh;
    padding: 36px 0;
    scroll-margin-top: 300px;
    opacity: .55;
  }
  .capabilities,
  .partner {
    padding: 80px 0 72px;
  }
  .cap-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .cap-grid article {
    display: flex;
    grid-row: auto;
  }
  .cap-outcome {
    min-height: 0;
  }
  .execution-note {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 40px;
  }
  .execution-note a,
  .execution-note p {
    grid-column: 1;
  }
  .execution-note h3 {
    grid-row: auto;
  }
  .expertise {
    padding: 80px 0;
  }
  .focus-bento {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .focus-tile,
  .focus-tile.focus-compact {
    grid-column: auto;
    min-height: 0;
    padding-top: 230px;
  }
  .focus-art {
    height: 250px;
  }
  .focus-body {
    padding: 24px 22px 24px;
  }
  .partnership-grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 0;
  }
  .partnership-grid::before {
    display: none;
  }
  .partner-art-wrap {
    display: none;
  }
  .partner-half {
    display: block;
    width: calc(100% + var(--gutter) * 2);
    height: 180px;
    margin: 0 calc(var(--gutter) * -1) 6px;
  }
  .partnership-grid article,
  .partnership-grid article+article {
    padding: 20px 0 8px;
    border-left: 0;
  }
  .expertise .focus-tile .focus-art {
    left: 0;
    right: 0;
    width: 100%;
    height: 250px;
    -webkit-mask-image: linear-gradient(180deg,#000 72%,transparent);
    mask-image: linear-gradient(180deg,#000 72%,transparent);
  }
  .expertise .focus-tile .focus-body {
    max-width: none;
  }
  .partnership-grid article+article {
    border-top: 1px solid #17202d14;
    margin-top: 20px;
  }
  .partnership-close {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 40px;
  }
  .contact {
    padding-top: 72px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact form {
    padding: 24px 20px;
    margin: 0 -6px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .contact footer {
    margin-top: 64px;
    padding-bottom: 110px;
  }
  .footer-top {
    display: block;
  }
  .footer-top nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 28px;
    gap: 16px 24px;
    font-size: 15px;
  }
  .footer-bottom {
    flex-wrap: wrap;
    gap: 16px;
  }
  /* Mobile dock: hides while scrolling down, returns on scroll up */
  .dock {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 40;
    display: flex;
    gap: 8px;
    padding: 7px;
    border-radius: 999px;
    isolation: isolate;
    color: var(--ink);
    box-shadow: 0 0 0 1px var(--glass-line),0 18px 40px -22px #17202d59;
    /* Hidden by sliding off screen: a fading dock would hide the backdrop from its glass lens. */
    transform: translateY(calc(100% + 30px));
    pointer-events: none;
    transition: transform .35s var(--ease);
  }
  .dock[data-visible="true"] {
    transform: none;
    pointer-events: auto;
  }
  /* Over navy sections the dock switches to dark glass, as the desktop capsule does. */
  .dock.on-dark {
    color: #fff;
    box-shadow: 0 18px 40px -22px #000;
  }
  /* Static, so the panel aligns with the dock's right edge, under the menu button. */
  .dock-menu {
    position: static;
  }
  /* A solid neutral disc, so the menu holds its own beside the full-width cobalt CTA. */
  .dock-menu summary {
    width: 46px;
    height: 46px;
    background: var(--ink);
    color: #fff;
  }
  .dock.on-dark .dock-menu summary {
    background: #fff;
    color: var(--ink);
  }
  .dock-menu nav {
    position: absolute;
    right: 0;
    bottom: 58px;
    width: min(300px,calc(100vw - 24px));
    display: flex;
    flex-direction: column;
    padding: 8px 18px;
    border-radius: 18px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 24px 50px #06102455;
  }
  .dock-cta {
    flex: 1;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    box-shadow: 0 8px 18px -10px #315beaa6,inset 0 1px 0 #ffffff33;
    font-size: 15px;
    font-weight: 500;
    transition: background .25s var(--ease),transform .25s var(--ease);
  }
  .dock-cta:hover {
    background: #2148d6;
    transform: translateY(-2px);
  }
  .dock.on-dark .dock-cta {
    box-shadow: 0 0 0 1px #ffffff2e,0 8px 18px -10px #000c,inset 0 1px 0 #ffffff33;
  }
  /* Modal: full-screen reading */
  .case-enhanced dialog {
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }
  .case-actions {
    top: calc(12px + env(safe-area-inset-top));
    margin: calc(12px + env(safe-area-inset-top)) 12px -52px 0;
  }
  .case-hero {
    padding: 34px 22px 28px;
  }
  .case-hero h2 {
    font-size: 34px;
  }
  .case-overview {
    font-size: 17px;
  }
  .case-contrib {
    padding: 18px;
  }
  .case-stage {
    padding: 0 12px;
  }
  .stage-wide {
    height: 300px;
    border-radius: 16px;
  }
  .case-status-line {
    padding: 12px 10px 0;
  }
  .case-two {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 44px 22px 36px;
  }
  .case-flow {
    margin: 0 12px;
    padding: 34px 22px 28px;
    border-radius: 16px;
  }
  .flow-steps {
    flex-direction: column;
    gap: 18px;
  }
  .flow-steps::before {
    left: 15px;
    right: auto;
    top: 0;
    bottom: 0;
    border-top: 0;
    border-left: 1px dashed #a9c3ff66;
  }
  .flow-step {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .flow-step strong {
    margin: 0;
  }
  .case-decisions {
    padding: 48px 22px 8px;
  }
  .decision {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .decision:nth-child(odd) .decision-copy {
    order: 0;
  }
  .stage-detail {
    height: 220px;
  }
  .case-experience,
  .case-related {
    padding: 36px 22px 8px;
  }
  .stage-strip {
    height: 220px;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .case-end {
    flex-direction: column;
    align-items: flex-start;
    margin: 32px 12px calc(20px + env(safe-area-inset-bottom));
  }
  /* Editorial case study: stack each composition rather than shrinking it */
  .ed-stage figcaption {
    flex-direction: column;
    gap: 6px;
    padding: 12px 10px 0;
  }
  .stage-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    padding: 28px 18px 0;
    border-radius: 16px;
  }
  .stage-hero .screen {
    position: relative;
    left: auto;
    top: auto;
  }
  .stage-hero .pair-desktop {
    width: 100%;
  }
  .stage-hero .pair-phone {
    width: 56%;
    max-width: 260px;
    margin: -14% 0 -34%;
  }
  .ed {
    grid-template-columns: 1fr;
    row-gap: 18px;
    padding: 52px 22px 0;
  }
  .ed-strip {
    flex-direction: column;
    margin-top: 26px;
  }
  .ed-strip li,
  .ed-strip li+li {
    padding: 12px 0 12px 26px;
  }
  .ed-strip li+li {
    border-top: 1px solid var(--line);
  }
  .ed-strip li::before,
  .ed-strip li+li::before {
    content: "↓";
    position: absolute;
    left: 4px;
    color: var(--accent);
  }
  .ed-artifact {
    margin-top: 26px;
    padding: 14px;
    border-radius: 16px;
  }
  .ed-flow {
    margin: 52px 12px 0;
    padding: 36px 22px 28px;
    border-radius: 16px;
  }
  .flow-map {
    grid-template-columns: 20px minmax(0,1fr);
    column-gap: 14px;
    margin-top: 36px;
  }
  .flow-bracket {
    grid-column: 1;
    grid-row: var(--from)/span var(--span);
    margin: 0 0 22px;
    padding: 0 0 0 8px;
    border-top: 0;
    border-left: 1px solid #a9c3ff59;
    writing-mode: vertical-rl;
    text-align: center;
  }
  .flow-bracket::before,
  .flow-bracket::after {
    left: -1px;
    width: 7px;
    height: 1px;
  }
  .flow-bracket::before {
    top: 0;
  }
  .flow-bracket::after {
    top: auto;
    right: auto;
    bottom: 0;
  }
  .flow-path {
    grid-column: 2;
    grid-row: 1/span 5;
    grid-template-columns: none;
    grid-template-rows: subgrid;
  }
  .path-step {
    display: grid;
    grid-template-columns: 31px minmax(0,1fr);
    column-gap: 16px;
    align-content: start;
    padding: 0 0 26px;
  }
  .path-node {
    grid-row: 1/span 3;
  }
  .path-step:not(.path-last)::before {
    left: 14px;
    right: auto;
    top: 36px;
    bottom: 4px;
    width: 3px;
    height: auto;
    background: radial-gradient(circle,#a9c3ff 0 .9px,transparent 1.4px) 50% 0/3px 9px repeat-y;
  }
  .is-approval:not(.path-last)::before {
    left: 15px;
    width: 0;
    height: auto;
    border-top: 0;
    border-left: 1.5px solid #cfdcff;
  }
  .path-step strong {
    margin-top: 5px;
  }
  .path-connector {
    position: static;
    grid-column: 2;
    justify-self: start;
    margin-bottom: 10px;
    transform: none;
  }
  .after-approval .path-node {
    grid-row: 2/span 3;
  }
  .path-seed {
    width: 76px;
    height: 76px;
    margin: -38px 0 0 -38px;
  }
  .flow-notes {
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
  }
  .ed-flow-caption {
    padding: 12px 22px 0;
  }
  .pair-figure,
  .ed-pair-flip .pair-figure,
  .ed-pair-desktop .pair-figure {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 26px;
    padding: 24px 18px;
    border-radius: 16px;
  }
  .ed-pair-flip .pair-screen {
    order: 0;
  }
  .pair-screen .screen {
    max-width: 200px;
  }
  .seq-grid {
    margin-top: 26px;
    gap: 36px;
  }
  .seq-review {
    grid-template-columns: 1fr;
  }
  .seq-review .seq-panel,
  .seq-review .seq-emphasis,
  .seq-review .seq-phone {
    grid-column: auto;
  }
  .ed-seq-row .seq-grid {
    padding: 28px 18px;
    border-radius: 16px;
  }
  .seq-row {
    grid-template-columns: 1fr;
  }
  .seq-row .seq-panel {
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
  }
  .seq-row .screen {
    max-width: none;
  }
  .spec-board {
    margin-top: 26px;
    padding: 18px;
    border-radius: 16px;
  }
  .spec-patient {
    grid-template-columns: 1fr;
  }
  .ed-closing {
    margin: 52px 12px 0;
    padding: 30px 22px;
    border-radius: 16px;
  }
  .stage-hero.stage-desktop-detail {
    padding-bottom: 18px;
  }
  .stage-hero .pair-front {
    right: auto;
    width: 100%;
    margin-top: 14px;
  }
  .ed-strip-rule li,
  .ed-strip-rule li+li {
    padding: 12px 0;
    border-left: 0;
  }
  .ed-strip-rule li::before,
  .ed-strip-rule li+li::before {
    content: none;
  }
  .tree {
    margin-top: 32px;
  }
  .tree::after,
  .tree-key {
    display: none;
  }
  .tree-level .tree-level {
    margin-left: 4px;
    padding-left: 18px;
  }
  .tree-level .tree-level>.tree-node::before,
  .tree-level .tree-level>.tree-ghost::before,
  .tree-level .tree-level>.tree-node>.tree-row::before {
    left: -18px;
  }
  .tree-level .tree-level>.tree-node>.tree-row::before {
    width: 12px;
    top: 21px;
  }
  .tree-level .tree-level>.tree-last::before {
    height: 21px;
  }
  .tree-row {
    grid-template-columns: minmax(0,1fr);
    gap: 4px;
    padding: 10px 0;
  }
  .tree-example {
    justify-self: start;
    margin-top: 6px;
  }
  .tree-seed {
    left: auto;
    right: -44px;
  }
  .ed-columns {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 26px;
  }
  .ed-stagger {
    margin-top: 26px;
    padding: 18px;
    border-radius: 16px;
  }
  .stagger-item,
  .stagger-2 {
    flex-direction: column;
    gap: 10px;
    margin-top: 0;
  }
  .stagger-2 {
    margin-top: 24px;
  }
  .stagger-item .screen {
    flex: none;
  }
  .stagger-2 figcaption {
    align-self: auto;
    padding: 0;
    text-align: left;
  }
  .enroll-strip {
    grid-template-columns: 1fr;
    margin-top: 26px;
    border-top: 0;
    border-left: 1px solid var(--line-2);
  }
  .enroll-strip li {
    padding: 0 0 18px 18px;
  }
  .enroll-strip li::before {
    left: -4px;
    top: 6px;
  }
  .constraint-list {
    margin-top: 26px;
  }
  .seq-lead {
    margin-top: 20px;
    padding: 14px;
    border-radius: 16px;
  }
  .marker-row,
  .ed-pair-desktop .marker-list {
    grid-template-columns: 1fr;
  }
  .seq-shell,
  .seq-steps,
  .board-patterns {
    grid-template-columns: 1fr;
  }
  .ed-board {
    margin-top: 26px;
    padding: 18px;
    border-radius: 16px;
  }
  .stage-hero.stage-phones {
    display: block;
    height: 380px;
    padding: 0;
  }
  .stage-hero.stage-phones .screen {
    position: absolute;
  }
  .stage-hero.stage-phones .phone-front {
    left: 50%;
    top: 46px;
    width: 44%;
  }
  .stage-hero.stage-phones .phone-back {
    left: 8%;
    top: 70px;
    width: 44%;
  }
  .cycle {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }
  .cycle-entry,
  .cycle-loop {
    height: auto;
  }
  .cycle-entry,
  .cycle-step {
    position: relative;
    left: auto;
    top: auto;
    display: grid;
    grid-template-columns: 31px minmax(0,1fr);
    column-gap: 16px;
    padding-bottom: 22px;
  }
  .cycle-entry .cycle-node,
  .cycle-step .cycle-node,
  .cycle-entry .cycle-text,
  .cycle-step .cycle-text {
    position: static;
    width: auto;
    transform: none;
    text-align: left;
  }
  .cycle-entry::after {
    left: 15px;
    right: auto;
    top: 34px;
    bottom: 0;
    border-top: 0;
    border-left: 1px dashed #a9c3ff80;
  }
  .cycle-track {
    display: none;
  }
  /* Each step draws the rail down to the next node; the last one leads, dashed, to the return. */
  .cycle-step::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 34px;
    bottom: 0;
    border-left: 1px solid #a9c3ff59;
  }
  .cycle-slot-4::before {
    border-left: 1px dashed #a9c3ff80;
  }
  .cycle-return {
    position: static;
    display: inline-block;
    transform: none;
  }
  .cycle-return::before {
    content: "↺ ";
  }
  .seq-onboard,
  .seq-compare,
  .seq-home,
  .seq-concepts {
    grid-template-columns: minmax(0,240px);
    padding: 28px 18px;
    border-radius: 16px;
  }
  .seq-legend {
    grid-template-columns: 1fr;
  }
  .seq-detail {
    grid-template-columns: 1fr;
    padding: 20px 18px;
    border-radius: 16px;
  }
  .seq-detail .screen,
  .seq-detail figcaption {
    grid-column: 1;
    grid-row: auto;
  }
  .seq-detail .seq-label {
    margin-bottom: 12px;
  }
  .ed-pair-tall .pair-figure {
    grid-template-columns: 1fr;
  }
  .guide-map {
    padding: 24px 18px;
    border-radius: 16px;
  }
  .guide-inputs {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .guide-inputs li::after,
  .guide-review::before {
    display: none;
  }
  .guide-inputs::after {
    left: 50%;
    right: auto;
    top: 100%;
    height: 30px;
    border-top: 0;
    border-left: 1px solid #9fcfcc;
  }
  .guide-considerations {
    width: 100%;
  }
  .guide-considerations ul {
    flex-direction: column;
    align-items: stretch;
  }
  .board-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width:601px) and (max-width:900px) {
  :root {
    --gutter: 40px;
  }
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }
  .case-two {
    padding-left: 40px;
    padding-right: 40px;
  }
  .ed {
    padding-left: 40px;
    padding-right: 40px;
  }
  .seq-row {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .spec-patient {
    grid-template-columns: 1fr 1fr;
  }
}

/* Preferences + print ---------------------------------------------------- */
@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0s!important;
    animation: none!important;
  }
  .pov-step {
    opacity: 1;
  }
  .perspective,
  .expertise,
  .contact,
  .case-signature .sg-band {
    transform: none!important;
    border-radius: 0!important;
  }
}

@media (prefers-contrast:more) {
  :root {
    --muted: #3e4c60;
    --on-dark-muted: #d9e2f0;
  }
  .pov-step {
    opacity: 1;
  }
  .project-summary {
    opacity: 1;
  }
}

@media (forced-colors:active) {
  .project,
  .button,
  .focus-tile,
  .contact form,
  .dock,
  .related-card {
    border: 1px solid CanvasText;
  }
  .primary,
  .light,
  .dock-cta {
    background: ButtonFace;
    color: ButtonText;
  }
  .hero-mark,
  .stage,
  .focus-art,
  .partner-art-wrap {
    display: none;
  }
  .pov-step {
    opacity: 1;
  }
  .brand-mark svg {
    forced-color-adjust: none;
  }
}

@media print {
  html {
    scroll-behavior: auto;
  }
  .perspective,
  .expertise,
  .contact,
  .case-signature .sg-band {
    transform: none!important;
  }
  body,
  .contact,
  .perspective,
  .expertise,
  .featured {
    background: #fff!important;
    color: #000!important;
  }
  .header nav,
  .mobile-menu,
  .nav-cta,
  .hero-mark,
  .pov-visual,
  .contact form,
  .button,
  .skip,
  .dock,
  .stage,
  .hero {
    padding-top: 20px;
    margin-top: 0;
  }
  .pov-grid {
    display: block;
  }
  .pov-step {
    min-height: 0;
    opacity: 1;
    padding: 16px 0;
    break-inside: avoid;
  }
  .pov-step p,
  .contact p,
  .pov-intro p,
  .featured * {
    color: #000!important;
  }
  .cap-grid,
  .focus-bento,
  .partnership-grid,
  .project-grid {
    display: block;
  }
  .cap-grid article,
  .focus-tile,
  .partnership-grid article,
  .project {
    break-inside: avoid;
    margin-bottom: 20px;
    box-shadow: none;
  }
  .case-enhanced .case-fallback {
    display: block;
  }
  .case-fallback details:not([open])>.case-article {
    display: block;
  }
  dialog {
    display: none!important;
  }
}
