/* =========================================================
   Front Desk & OPD — Hospital Operations
   Built to public/reference/brand-guidelines.md. Loaded after /index.css.

   The brief's green (#16C542) is not in our palette: --lime carries the
   solved state, --lime-ink carries green text. White dominates.

   The page is one scroll narrative, not a feature catalogue:
     REAL HOSPITAL -> REAL PROBLEM -> INTERVENTION -> PRODUCT ACTION -> OUTCOME
   Problems are photographs and muted UI; solutions are clean product UI with
   a single lime accent on the state that changed. No problem cards, no bento.

   Every class is prefixed fd- ; the reset weighs nothing (guidelines §14).
   ========================================================= */

.fd {
  --pad: calc(67 * var(--u));
  --text: #2a2a2a;
  --faint: #9a9a9a;
  --soft: #f5f8f1;
  --grey: #f7f7f7;
  --line: #eaeaea;
  --lime-tint: #effcb5;
  --lime-ink: #3f5a00;
  --amber: #fff1d2;
  --amber-ink: #8a5600;
  --rose: #ffe8e4;
  --rose-ink: #b23a2c;
  --r-card: calc(18 * var(--u));
  --r: calc(12 * var(--u));
  --r-sm: calc(9 * var(--u));
  --shadow: 0 1px 2px rgba(17, 19, 24, .03), 0 calc(18 * var(--u)) calc(40 * var(--u)) calc(-28 * var(--u)) rgba(17, 19, 24, .16);
  --ease: cubic-bezier(.2, .8, .2, 1);
  display: block;
  color: var(--ink);
}
.fd *, .fd *::before, .fd *::after { box-sizing: border-box; }
:where(.fd) :where(h1, h2, h3, h4, p, ul, ol, dl, dd, dt, figure, blockquote, table) { margin: 0; }
:where(.fd) :where(ul, ol) { padding: 0; list-style: none; }
.fd img { display: block; max-width: 100%; }
.fd .i { flex: none; width: calc(16 * var(--u)); height: calc(16 * var(--u)); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- type ---------- */
.fd-h1, .fd-h2, .fd-h3 { font-family: var(--font-head); font-weight: 500; letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
.fd-h1 { font-size: calc(64 * var(--u)); line-height: calc(77 * var(--u)); }
.fd-h2 { font-size: calc(48 * var(--u)); line-height: calc(57 * var(--u)); }
.fd-h3 { font-size: calc(24 * var(--u)); line-height: calc(30 * var(--u)); }
.fd .dim { color: var(--muted); }
.fd-lede { margin-top: calc(16 * var(--u)); max-width: calc(640 * var(--u)); font-size: calc(25 * var(--u)); line-height: calc(33 * var(--u)); letter-spacing: -.01em; color: var(--muted); text-wrap: pretty; }
.fd-sub { margin-top: calc(18 * var(--u)); max-width: calc(520 * var(--u)); font-size: calc(20 * var(--u)); line-height: calc(30 * var(--u)); letter-spacing: -.01em; color: var(--muted); text-wrap: pretty; }
.fd-k { font-size: calc(12 * var(--u)); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }

.fd-pill { display: inline-flex; align-items: center; gap: calc(7 * var(--u)); padding: calc(5 * var(--u)) calc(13 * var(--u)); border-radius: 999px; background: var(--soft); color: var(--text); font-size: calc(13 * var(--u)); font-weight: 600; line-height: 1.3; }
.fd-pill::before { content: ""; width: calc(6 * var(--u)); height: calc(6 * var(--u)); border-radius: 50%; background: currentColor; opacity: .7; }
.fd-pill.problem { background: var(--amber); color: var(--amber-ink); }
.fd-pill.solution { background: var(--lime-tint); color: var(--lime-ink); }
.fd-pill.ink { background: var(--ink); color: var(--lime); }
.fd-pill + .fd-h1, .fd-pill + .fd-h2 { margin-top: calc(22 * var(--u)); }
.fd-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: calc(14 * var(--u)); margin-top: calc(44 * var(--u)); }
.fd .btn .i { width: calc(22 * var(--u)); height: calc(22 * var(--u)); transition: transform .2s var(--ease); }
.fd .btn:hover .i { transform: translateX(calc(3 * var(--u))); }

/* ---------- sections ---------- */
.fd-sec { position: relative; padding: calc(128 * var(--u)) var(--pad); }
.fd-sec + .fd-sec { border-top: 1px solid var(--rule); }
.fd-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: calc(96 * var(--u)); align-items: center; }
.fd-split.rev > :first-child { order: 2; }
.fd-head { max-width: calc(900 * var(--u)); }
.fd-stage { margin-top: calc(72 * var(--u)); }
/* a soft full-bleed ground, for the sections that carry product UI */
.fd-sec.soft { isolation: isolate; }
.fd-sec.soft::before { content: ""; position: absolute; inset: 0 auto 0 50%; width: 100vw; transform: translateX(-50%); background: #fafaf8; z-index: -1; }
.fd-sec.soft::after { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; right: -1px; border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); pointer-events: none; }

/* ---------- hero ---------- */
.fd-hero { padding: calc(120 * var(--u)) var(--pad) calc(96 * var(--u)); }
.fd-hero .fd-h1 { max-width: calc(1000 * var(--u)); }
.fd-hero__stage { position: relative; margin-top: calc(72 * var(--u)); }

/* ---------- a photographed scene ---------- */
.fd-scene { position: relative; border: 1px solid var(--rule); border-radius: var(--r-card); }
.fd-scene > img { width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; object-position: center 40%; border-radius: calc(var(--r-card) - 1px); }
.fd-scene.tall > img { aspect-ratio: 4 / 3; }
.fd-shot { position: relative; }
.fd-shot > img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 28%; border: 1px solid var(--rule); border-radius: var(--r-card); }
.fd-cap { margin-top: calc(16 * var(--u)); font-size: calc(14 * var(--u)); color: var(--muted); }

/* the small friction notes that sit on a problem photograph */
.fd-note {
  position: absolute; z-index: 2; max-width: calc(250 * var(--u));
  padding: calc(11 * var(--u)) calc(15 * var(--u));
  border: 1px solid var(--rule); border-radius: calc(16 * var(--u)) calc(16 * var(--u)) calc(16 * var(--u)) calc(4 * var(--u));
  background: #fff; box-shadow: var(--shadow);
  font-family: var(--font-head); font-size: calc(17 * var(--u)); line-height: calc(23 * var(--u)); font-weight: 500; letter-spacing: -.02em;
}
.fd-note.r { border-radius: calc(16 * var(--u)) calc(16 * var(--u)) calc(4 * var(--u)) calc(16 * var(--u)); }
.fd-note.a { left: calc(-46 * var(--u)); top: calc(-20 * var(--u)); }
.fd-note.b { right: calc(-46 * var(--u)); bottom: calc(-18 * var(--u)); }
.fd-note.c { left: 6%; bottom: calc(-20 * var(--u)); }
.fd-note.d { right: 5%; top: calc(-20 * var(--u)); }

/* ---------- the flow rail, used for every transition ---------- */
.fd-flow { display: flex; align-items: center; justify-content: center; flex-wrap: nowrap; }
.fd-chip { display: inline-flex; align-items: center; gap: calc(9 * var(--u)); flex: none; padding: calc(11 * var(--u)) calc(17 * var(--u)); border: 1px solid var(--rule); border-radius: 999px; background: #fff; font-size: calc(16 * var(--u)); font-weight: 600; white-space: nowrap; transition: border-color .5s var(--ease), background .5s var(--ease), box-shadow .5s var(--ease); }
.fd-chip .dot { display: grid; place-items: center; width: calc(22 * var(--u)); height: calc(22 * var(--u)); border-radius: calc(6 * var(--u)); background: var(--ink); color: var(--lime); }
.fd-chip .dot .i { width: calc(12 * var(--u)); height: calc(12 * var(--u)); }
.fd-link { position: relative; flex: 0 1 calc(86 * var(--u)); height: 1px; margin: 0 calc(9 * var(--u)); background: repeating-linear-gradient(90deg, var(--divider) 0 calc(5 * var(--u)), transparent calc(5 * var(--u)) calc(10 * var(--u))); }
.fd-link::after { content: ""; position: absolute; inset: 0; background: var(--lime-ico); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease) var(--d, 0ms); }
.fd-flow.is-on .fd-link::after { transform: scaleX(1); }
.fd-flow.is-on .fd-chip.lit { border-color: var(--lime-ico); background: var(--lime-soft); box-shadow: 0 0 0 calc(4 * var(--u)) rgba(199, 243, 104, .25); transition-delay: var(--d, 0ms); }

/* ---------- product UI ---------- */
.fd-ui { border: 1px solid var(--rule); border-radius: var(--r-card); background: #fff; overflow: hidden; }
.fd-ui__top { display: flex; align-items: center; gap: calc(10 * var(--u)); padding: calc(14 * var(--u)) calc(18 * var(--u)); border-bottom: 1px solid var(--rule); background: #fcfcfb; }
.fd-ui__top b { font-size: calc(13 * var(--u)); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.fd-ui__top .fd-tag { margin-left: auto; }
.fd-ui__body { padding: calc(20 * var(--u)); }
.fd-tag { display: inline-flex; align-items: center; gap: calc(6 * var(--u)); padding: calc(4 * var(--u)) calc(10 * var(--u)); border-radius: 999px; background: var(--grey); color: var(--text); font-size: calc(12 * var(--u)); font-weight: 600; white-space: nowrap; }
.fd-tag.ok { background: var(--lime-tint); color: var(--lime-ink); }
.fd-tag.wait { background: var(--amber); color: var(--amber-ink); }
.fd-tag.block { background: var(--rose); color: var(--rose-ink); }
.fd-tag .i { width: calc(12 * var(--u)); height: calc(12 * var(--u)); }

/* field rows: the label / value pattern every card on this page uses */
.fd-fields { display: grid; gap: calc(14 * var(--u)); }
.fd-fields > div { display: grid; gap: calc(3 * var(--u)); }
.fd-fields dt, .fd-fields .lbl { font-size: calc(11.5 * var(--u)); font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); }
.fd-fields dd, .fd-fields .val { font-size: calc(17 * var(--u)); font-weight: 600; letter-spacing: -.01em; }
.fd-fields.two { grid-template-columns: 1fr 1fr; column-gap: calc(24 * var(--u)); }
.fd-mono { font-variant-numeric: tabular-nums; }

/* the patient-identified card, on the hero photograph and in story 02 */
.fd-id { display: grid; gap: calc(16 * var(--u)); padding: calc(22 * var(--u)); border: 1px solid var(--rule); border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow); }
.fd-hero__id { position: absolute; right: calc(40 * var(--u)); bottom: calc(40 * var(--u)); z-index: 2; width: calc(320 * var(--u)); }
.fd-id__top { display: flex; align-items: center; gap: calc(9 * var(--u)); font-size: calc(11.5 * var(--u)); font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--lime-ink); }
.fd-id__top i { width: calc(7 * var(--u)); height: calc(7 * var(--u)); border-radius: 50%; background: var(--lime-ico); animation: fdPulse 2.6s infinite; }
.fd-id__name { font-family: var(--font-head); font-size: calc(26 * var(--u)); line-height: 1.15; font-weight: 500; letter-spacing: -.03em; }
.fd-id__name span { display: block; margin-top: calc(4 * var(--u)); font-family: var(--font-body); font-size: calc(14 * var(--u)); font-weight: 500; letter-spacing: 0; color: var(--muted); }
.fd-checks { display: grid; gap: calc(8 * var(--u)); padding-top: calc(16 * var(--u)); border-top: 1px solid var(--rule); }
.fd-checks li { display: flex; align-items: center; gap: calc(9 * var(--u)); font-size: calc(14.5 * var(--u)); font-weight: 500; }
.fd-checks .i { width: calc(15 * var(--u)); height: calc(15 * var(--u)); color: var(--lime-ink); }

/* the scanner */
.fd-scan { display: grid; justify-items: center; gap: calc(18 * var(--u)); padding: calc(34 * var(--u)); border: 1px solid var(--rule); border-radius: var(--r-card); background: #fff; }
.fd-scan__eye { position: relative; display: grid; place-items: center; width: calc(150 * var(--u)); height: calc(150 * var(--u)); border: calc(2 * var(--u)) solid var(--ink); border-radius: calc(22 * var(--u)); overflow: hidden; }
.fd-scan__eye .i { width: calc(56 * var(--u)); height: calc(56 * var(--u)); stroke-width: 1.4; color: var(--ink); }
.fd-scan__eye::after { content: ""; position: absolute; left: calc(10 * var(--u)); right: calc(10 * var(--u)); height: calc(3 * var(--u)); border-radius: 999px; background: var(--lime-ico); box-shadow: 0 0 calc(16 * var(--u)) calc(4 * var(--u)) rgba(199, 243, 104, .7); animation: fdScan 2.6s var(--ease) infinite; }
.fd-scan b { font-size: calc(16 * var(--u)); font-weight: 600; }
.fd-scan span { font-size: calc(14 * var(--u)); color: var(--muted); }

/* the task that a request becomes */
.fd-req { display: grid; gap: calc(10 * var(--u)); max-width: calc(420 * var(--u)); padding: calc(18 * var(--u)) calc(20 * var(--u)); border: 1px solid var(--rule); border-radius: calc(18 * var(--u)) calc(18 * var(--u)) calc(18 * var(--u)) calc(4 * var(--u)); background: var(--grey); }
.fd-req .fd-k { color: var(--muted); }
.fd-req p { font-family: var(--font-head); font-size: calc(20 * var(--u)); line-height: calc(27 * var(--u)); font-weight: 500; letter-spacing: -.025em; }
.fd-drop { display: grid; justify-items: center; gap: calc(6 * var(--u)); padding: calc(20 * var(--u)) 0; }
.fd-drop i { width: 2px; height: calc(26 * var(--u)); background: var(--lime); }
.fd-drop span { font-size: calc(12.5 * var(--u)); font-weight: 600; color: var(--lime-ink); }

/* the case drawer */
.fd-case__row { display: flex; align-items: center; gap: calc(12 * var(--u)); padding: calc(16 * var(--u)) calc(18 * var(--u)); border-bottom: 1px solid var(--rule); }
.fd-case__row b { font-family: var(--font-head); font-size: calc(20 * var(--u)); font-weight: 500; letter-spacing: -.025em; }
.fd-case__row .fd-tag { margin-left: auto; }
.fd-next { display: flex; align-items: center; gap: calc(10 * var(--u)); margin-top: calc(18 * var(--u)); padding: calc(14 * var(--u)) calc(16 * var(--u)); border-radius: var(--r); background: var(--lime); font-size: calc(15.5 * var(--u)); font-weight: 600; color: var(--ink); }
.fd-next .i { width: calc(16 * var(--u)); height: calc(16 * var(--u)); }
.fd-next span { margin-left: auto; opacity: .55; font-size: calc(12.5 * var(--u)); }

/* the "all we can see is Waiting" list — the problem, in UI form */
.fd-blind { display: grid; gap: calc(8 * var(--u)); }
.fd-blind li { display: flex; align-items: center; gap: calc(12 * var(--u)); padding: calc(13 * var(--u)) calc(16 * var(--u)); border: 1px solid var(--rule); border-radius: var(--r); background: #fff; font-size: calc(15 * var(--u)); font-weight: 500; color: var(--muted); }
.fd-blind li b { font-weight: 600; color: var(--text); }
.fd-blind li .fd-tag { margin-left: auto; }
.fd-blind li em { font-style: normal; color: var(--faint); }

/* the operations counters and the why breakdown */
.fd-ops { display: grid; gap: calc(16 * var(--u)); }
.fd-counts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; background: #fff; }
.fd-counts > div { padding: calc(18 * var(--u)); }
.fd-counts > div + div { border-left: 1px solid var(--rule); }
.fd-counts b { display: block; font-family: var(--font-head); font-size: calc(36 * var(--u)); line-height: 1.1; font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.fd-counts span { display: block; margin-top: calc(4 * var(--u)); font-size: calc(13 * var(--u)); font-weight: 600; color: var(--muted); }
.fd-counts > div.on { background: var(--lime-soft); }
.fd-why { display: grid; gap: calc(10 * var(--u)); }
.fd-why__h { display: flex; align-items: baseline; gap: calc(10 * var(--u)); font-size: calc(13 * var(--u)); font-weight: 600; color: var(--muted); }
.fd-why__h b { font-family: var(--font-head); font-size: calc(26 * var(--u)); font-weight: 500; letter-spacing: -.03em; color: var(--ink); }
.fd-bar { display: grid; grid-template-columns: calc(150 * var(--u)) minmax(0, 1fr) calc(34 * var(--u)); align-items: center; gap: calc(12 * var(--u)); font-size: calc(14.5 * var(--u)); }
.fd-bar i { height: calc(10 * var(--u)); border-radius: 999px; background: var(--lime-ico); transform-origin: left; transform: scaleX(var(--v, 1)); }
.fd-bar i.mute { background: var(--divider); }
.fd-bar em { font-style: normal; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

/* the workspace table */
.fd-work__bar { display: flex; align-items: center; gap: calc(10 * var(--u)); flex-wrap: wrap; padding: calc(14 * var(--u)) calc(18 * var(--u)); border-bottom: 1px solid var(--rule); }
.fd-search { display: flex; align-items: center; gap: calc(9 * var(--u)); flex: 1 1 calc(240 * var(--u)); min-width: calc(180 * var(--u)); padding: calc(9 * var(--u)) calc(13 * var(--u)); border: 1px solid var(--rule); border-radius: var(--r-sm); color: var(--faint); font-size: calc(14 * var(--u)); }
.fd-table { width: 100%; border-collapse: collapse; }
.fd-table th, .fd-table td { padding: calc(14 * var(--u)) calc(18 * var(--u)); text-align: left; font-size: calc(14.5 * var(--u)); border-bottom: 1px solid var(--rule); white-space: nowrap; }
.fd-table th { font-size: calc(11.5 * var(--u)); font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); background: #fcfcfb; }
.fd-table td b { font-weight: 600; }
.fd-table tr:last-child td { border-bottom: 0; }
.fd-table tr.on td { background: var(--lime-soft); }
.fd-table .num { font-variant-numeric: tabular-nums; color: var(--muted); }

/* new vs returning */
.fd-branch { display: grid; justify-items: center; gap: calc(14 * var(--u)); }
.fd-node { padding: calc(13 * var(--u)) calc(22 * var(--u)); border: 1px solid var(--rule); border-radius: 999px; background: #fff; font-family: var(--font-head); font-size: calc(19 * var(--u)); font-weight: 500; letter-spacing: -.025em; }
.fd-node.ink { border-color: var(--ink); background: var(--ink); color: #fff; }
.fd-node.lime { border-color: var(--lime-ico); background: var(--lime); }
.fd-branch .stem { width: 2px; height: calc(26 * var(--u)); background: var(--lime); }
.fd-branch .split { position: relative; width: 100%; max-width: calc(660 * var(--u)); height: calc(26 * var(--u)); }
.fd-branch .split::before { content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 2px; background: var(--lime); }
.fd-branch .split i { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--lime); }
.fd-branch .split i:first-child { left: 25%; }
.fd-branch .split i:last-child { right: 25%; }
.fd-paths { display: grid; grid-template-columns: 1fr 1fr; gap: calc(16 * var(--u)); width: 100%; max-width: calc(660 * var(--u)); }
.fd-path { display: grid; gap: calc(7 * var(--u)); padding: calc(22 * var(--u)); border: 1px solid var(--rule); border-radius: var(--r); background: #fff; text-align: center; }
.fd-path b { font-family: var(--font-head); font-size: calc(20 * var(--u)); font-weight: 500; letter-spacing: -.025em; }
.fd-path span { font-size: calc(14.5 * var(--u)); line-height: calc(21 * var(--u)); color: var(--muted); }
.fd-branch .merge { width: 100%; max-width: calc(660 * var(--u)); height: calc(26 * var(--u)); position: relative; }
.fd-branch .merge::before { content: ""; position: absolute; bottom: 0; left: 25%; right: 25%; height: 2px; background: var(--lime); }
.fd-branch .merge i { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--lime); }
.fd-branch .merge i:first-child { left: 25%; }
.fd-branch .merge i:last-child { right: 25%; }

/* ---------- AI: voice to task ---------- */
.fd-ai { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); column-gap: calc(64 * var(--u)); align-items: center; }
.fd-person { position: relative; display: grid; justify-items: center; padding: calc(28 * var(--u)) 0 0; border-radius: var(--r-card); background: var(--soft); }
.fd-person img { width: calc(300 * var(--u)); max-width: 100%; height: auto; }
.fd-said { position: absolute; z-index: 2; left: calc(-40 * var(--u)); top: calc(46 * var(--u)); max-width: calc(300 * var(--u)); padding: calc(14 * var(--u)) calc(17 * var(--u)); border: 1px solid var(--rule); border-radius: calc(18 * var(--u)) calc(18 * var(--u)) calc(18 * var(--u)) calc(4 * var(--u)); background: #fff; box-shadow: var(--shadow); font-family: var(--font-head); font-size: calc(19 * var(--u)); line-height: calc(26 * var(--u)); font-weight: 500; letter-spacing: -.025em; }
.fd-said .fd-k { display: block; margin-bottom: calc(7 * var(--u)); color: var(--faint); }
.fd-mic { position: absolute; z-index: 3; right: calc(30 * var(--u)); bottom: calc(34 * var(--u)); display: flex; align-items: center; gap: calc(12 * var(--u)); padding: calc(10 * var(--u)) calc(16 * var(--u)); border-radius: 999px; background: var(--ink); box-shadow: var(--shadow); }
.fd-mic .i { width: calc(18 * var(--u)); height: calc(18 * var(--u)); color: var(--lime); }
.fd-wave { display: flex; align-items: center; gap: calc(3 * var(--u)); height: calc(24 * var(--u)); }
.fd-wave i { width: calc(3 * var(--u)); min-height: calc(4 * var(--u)); border-radius: 999px; background: var(--lime); animation: fdWave 1.1s ease-in-out infinite; }
.fd-steps { display: grid; gap: calc(14 * var(--u)); }
.fd-step { display: grid; gap: calc(12 * var(--u)); padding: calc(22 * var(--u)); border: 1px solid var(--rule); border-radius: var(--r-card); background: #fff; }
.fd-step__k { display: flex; align-items: center; gap: calc(10 * var(--u)); font-size: calc(12 * var(--u)); font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); }
.fd-step__k i { display: grid; place-items: center; width: calc(22 * var(--u)); height: calc(22 * var(--u)); border-radius: 50%; background: var(--grey); font-size: calc(11 * var(--u)); font-weight: 700; font-style: normal; letter-spacing: 0; color: var(--text); }
.fd-step.done { border-color: var(--lime-ico); background: var(--lime-soft); }
.fd-step.done .fd-step__k { color: var(--lime-ink); }
.fd-step.done .fd-step__k i { background: var(--lime); color: var(--ink); }
.fd-step__t { font-family: var(--font-head); font-size: calc(22 * var(--u)); line-height: calc(28 * var(--u)); font-weight: 500; letter-spacing: -.028em; }

/* the three AI stories */
.fd-ais { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(16 * var(--u)); }
.fd-ai-card { display: flex; flex-direction: column; gap: calc(16 * var(--u)); padding: calc(26 * var(--u)); border: 1px solid var(--rule); border-radius: var(--r-card); background: #fff; }
.fd-ai-card h3 { margin-top: auto; font-family: var(--font-head); font-size: calc(22 * var(--u)); line-height: calc(28 * var(--u)); font-weight: 500; letter-spacing: -.028em; }
.fd-ai-card p { font-size: calc(15.5 * var(--u)); line-height: calc(23 * var(--u)); color: var(--muted); }

/* ask -> understand -> act */
.fd-aua { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(16 * var(--u)); }
.fd-aua > div { display: grid; gap: calc(10 * var(--u)); padding: calc(26 * var(--u)); border: 1px solid var(--rule); border-radius: var(--r-card); background: #fff; }
.fd-aua .fd-k { color: var(--faint); }
.fd-aua p { font-family: var(--font-head); font-size: calc(22 * var(--u)); line-height: calc(29 * var(--u)); font-weight: 500; letter-spacing: -.028em; }
.fd-aua > div:last-child { border-color: var(--lime-ico); background: var(--lime-soft); }
.fd-aua > div:last-child .fd-k { color: var(--lime-ink); }

/* ---------- outcomes: editorial, not a grid of boxes ---------- */
.fd-out { border-top: 1px solid var(--rule); margin-top: calc(72 * var(--u)); }
.fd-out > div { display: grid; grid-template-columns: calc(60 * var(--u)) minmax(0, 1fr) minmax(0, 1fr); align-items: start; column-gap: calc(40 * var(--u)); padding: calc(34 * var(--u)) 0; border-bottom: 1px solid var(--rule); }
.fd-out .n { font-size: calc(13 * var(--u)); font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; padding-top: calc(8 * var(--u)); }
.fd-out h3 { font-family: var(--font-head); font-size: calc(32 * var(--u)); line-height: calc(40 * var(--u)); font-weight: 500; letter-spacing: -.03em; }
.fd-out p { align-self: center; font-size: calc(18 * var(--u)); line-height: calc(27 * var(--u)); color: var(--muted); }
.fd-out .snip { display: inline-flex; align-items: center; gap: calc(8 * var(--u)); margin-top: calc(12 * var(--u)); padding: calc(6 * var(--u)) calc(12 * var(--u)); border: 1px solid var(--rule); border-radius: 999px; background: #fff; font-size: calc(13 * var(--u)); font-weight: 600; color: var(--text); }
.fd-out .snip .i { width: calc(13 * var(--u)); height: calc(13 * var(--u)); color: var(--lime-ink); }

/* ---------- final CTA + the Hospital Operations strip ---------- */
.fd-cta { padding: calc(145 * var(--u)) var(--pad); border-top: 1px solid var(--rule); text-align: center; }
.fd-cta .fd-h1 { max-width: calc(1060 * var(--u)); margin-inline: auto; }
.fd-cta .fd-lede { margin-inline: auto; max-width: calc(760 * var(--u)); }
.fd-cta .fd-ctas { justify-content: center; }
.fd-life { padding: 0 var(--pad) calc(120 * var(--u)); }
.fd-life nav { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.fd-life a, .fd-life span { display: block; padding: calc(18 * var(--u)) calc(16 * var(--u)); font-size: calc(15 * var(--u)); font-weight: 600; color: var(--muted); }
.fd-life > nav > * + * { border-left: 1px solid var(--rule); }
.fd-life small { display: block; margin-bottom: calc(6 * var(--u)); font-size: calc(11.5 * var(--u)); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.fd-life .here { background: var(--lime-soft); color: var(--ink); }
.fd-life .here small { color: var(--lime-ink); }
.fd-life a:hover { color: var(--ink); }

/* ---------- motion ---------- */
.fd-js .fd-rev { opacity: 0; transform: translateY(calc(12 * var(--u))); }
.fd-js .fd-rev.is-in { opacity: 1; transform: none; transition: opacity .75s ease var(--d, 0ms), transform .75s var(--ease) var(--d, 0ms); }
@keyframes fdPulse { 0% { box-shadow: 0 0 0 0 rgba(165, 205, 78, .55); } 70% { box-shadow: 0 0 0 6px rgba(165, 205, 78, 0); } 100% { box-shadow: 0 0 0 0 rgba(165, 205, 78, 0); } }
@keyframes fdScan { 0% { top: 12%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 86%; opacity: 0; } }
@keyframes fdWave { 0%, 100% { height: 22%; } 50% { height: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .fd *, .fd *::before, .fd *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; }
}

/* =========================================================
   Below 1180 --u is 1px. Stack, don't shrink (guidelines §10).
   ========================================================= */
@media (max-width: 1179px) {
  .fd { --pad: 22px; }
  .fd .i { width: 16px; height: 16px; }
  .fd-h1 { font-size: clamp(32px, 7.2vw, 48px); line-height: 1.08; }
  .fd-h2 { font-size: clamp(26px, 5.4vw, 36px); line-height: 1.16; }
  .fd-h3 { font-size: 20px; line-height: 27px; }
  .fd-lede { font-size: 17px; line-height: 25px; }
  .fd-sub { font-size: 16px; line-height: 24px; max-width: none; }
  .fd-ctas { margin-top: 28px; flex-direction: column; align-items: stretch; }

  .fd-hero { padding: 44px 22px 56px; }
  .fd-hero__stage, .fd-stage { margin-top: 32px; }
  .fd-scene > img { aspect-ratio: 4 / 3; }
  .fd-hero__id { position: static; width: auto; margin-top: 16px; }

  .fd-sec { padding: 56px 22px; }
  .fd-split { grid-template-columns: 1fr; row-gap: 32px; }
  .fd-split.rev > :first-child { order: 0; }
  .fd-note { max-width: 230px; font-size: 15px; line-height: 20px; padding: 10px 13px; }
  .fd-note.a { left: 10px; }
  .fd-note.b { right: 10px; }

  /* the rails turn vertical rather than scrolling sideways */
  .fd-flow { flex-direction: column; }
  .fd-link { flex: none; width: 1px; height: 24px; margin: 6px 0; background: repeating-linear-gradient(180deg, var(--divider) 0 4px, transparent 4px 8px); }
  .fd-link::after { transform: scaleY(0); transform-origin: top; }
  .fd-flow.is-on .fd-link::after { transform: scaleY(1); }
  .fd-chip { white-space: normal; text-align: center; font-size: 14.5px; }

  .fd-fields.two { grid-template-columns: 1fr; row-gap: 14px; }
  .fd-counts { grid-template-columns: 1fr 1fr; }
  .fd-counts > div:nth-child(3) { border-left: 0; }
  .fd-counts > div:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .fd-counts b { font-size: 30px; }
  .fd-bar { grid-template-columns: 130px minmax(0, 1fr) 30px; gap: 10px; font-size: 13.5px; }

  /* a table is the one thing that may scroll sideways, inside its own frame */
  .fd-work__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .fd-table th, .fd-table td { padding: 12px 14px; }

  .fd-paths { grid-template-columns: 1fr; }
  .fd-branch .split, .fd-branch .merge { width: 2px; }
  .fd-branch .split::before, .fd-branch .merge::before { display: none; }
  .fd-branch .split i, .fd-branch .merge i { left: 0 !important; right: auto !important; }
  .fd-branch .merge { display: none; }

  .fd-ai { grid-template-columns: 1fr; row-gap: 28px; }
  .fd-said { position: static; max-width: none; margin: 0 0 16px; border-radius: 18px 18px 18px 4px; }
  .fd-person { padding: 20px 16px 0; }
  .fd-person img { width: 230px; }
  /* stacked, the order is the story: person -> what they said -> the mic */
  .fd-mic { position: static; justify-content: center; width: -moz-fit-content; width: fit-content; margin: 0 auto 18px; }
  .fd-ais, .fd-aua { grid-template-columns: 1fr; gap: 12px; }
  .fd-ai-card h3 { margin-top: 0; }

  .fd-out > div { grid-template-columns: 1fr; row-gap: 10px; padding: 26px 0; }
  .fd-out .n { padding-top: 0; }
  .fd-out h3 { font-size: 24px; line-height: 31px; }
  .fd-out p { font-size: 16px; line-height: 24px; }

  .fd-cta { padding: 72px 22px; }
  .fd-life { padding: 0 22px 64px; }
  .fd-life nav { grid-template-columns: 1fr; }
  .fd-life > nav > * + * { border-left: 0; border-top: 1px solid var(--rule); }
}
