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

   Sister page to Front Desk & OPD: the same component vocabulary (tags,
   field rows, flow rails, tables) so the two read as one product, with
   the pieces this page needs on top — discharge readiness, tickets,
   SLA, shift continuity.

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

   PROBLEM = photograph, muted UI, short copy.
   SOLUTION = clean product UI, one lime accent on the state that changed.

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

.ip {
  --pad: calc(67 * var(--u));
  --text: #2a2a2a;
  --faint: #9a9a9a;
  --soft: #f5f8f1;
  --grey: #f7f7f7;
  --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);
}
.ip *, .ip *::before, .ip *::after { box-sizing: border-box; }
:where(.ip) :where(h1, h2, h3, h4, p, ul, ol, dl, dd, dt, figure, blockquote, table) { margin: 0; }
:where(.ip) :where(ul, ol) { padding: 0; list-style: none; }
.ip img { display: block; max-width: 100%; }
.ip .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 ---------- */
.ip-h1, .ip-h2, .ip-h3 { font-family: var(--font-head); font-weight: 500; letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
.ip-h1 { font-size: calc(64 * var(--u)); line-height: calc(77 * var(--u)); }
.ip-h2 { font-size: calc(48 * var(--u)); line-height: calc(57 * var(--u)); }
.ip-h3 { font-size: calc(24 * var(--u)); line-height: calc(30 * var(--u)); }
.ip .dim { color: var(--muted); }
.ip-lede { margin-top: calc(16 * var(--u)); max-width: calc(660 * var(--u)); font-size: calc(25 * var(--u)); line-height: calc(33 * var(--u)); letter-spacing: -.01em; color: var(--muted); text-wrap: pretty; }
.ip-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; }
.ip-k { font-size: calc(12 * var(--u)); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }

.ip-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; }
.ip-pill::before { content: ""; width: calc(6 * var(--u)); height: calc(6 * var(--u)); border-radius: 50%; background: currentColor; opacity: .7; }
.ip-pill.problem { background: var(--amber); color: var(--amber-ink); }
.ip-pill.solution { background: var(--lime-tint); color: var(--lime-ink); }
.ip-pill.ink { background: var(--ink); color: var(--lime); }
.ip-pill + .ip-h1, .ip-pill + .ip-h2 { margin-top: calc(22 * var(--u)); }
.ip-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: calc(14 * var(--u)); margin-top: calc(44 * var(--u)); }
.ip .btn .i { width: calc(22 * var(--u)); height: calc(22 * var(--u)); transition: transform .2s var(--ease); }
.ip .btn:hover .i { transform: translateX(calc(3 * var(--u))); }

/* ---------- sections ---------- */
.ip-sec { position: relative; padding: calc(128 * var(--u)) var(--pad); }
.ip-sec + .ip-sec { border-top: 1px solid var(--rule); }
.ip-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: calc(96 * var(--u)); align-items: center; }
.ip-split.rev > :first-child { order: 2; }
.ip-head { max-width: calc(940 * var(--u)); }
.ip-stage { margin-top: calc(72 * var(--u)); }
.ip-sec.soft { isolation: isolate; }
.ip-sec.soft::before { content: ""; position: absolute; inset: 0 auto 0 50%; width: 100vw; transform: translateX(-50%); background: #fafaf8; z-index: -1; }
.ip-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; }

/* the chapter rule that opens each numbered story */
.ip-chap { display: flex; align-items: center; gap: calc(18 * var(--u)); margin-bottom: calc(40 * var(--u)); }
.ip-chap b { font-size: calc(13 * var(--u)); font-weight: 600; letter-spacing: .04em; color: var(--faint); font-variant-numeric: tabular-nums; }
.ip-chap i { flex: 1; height: 1px; background: var(--rule); }

/* ---------- hero ---------- */
.ip-hero { padding: calc(120 * var(--u)) var(--pad) calc(96 * var(--u)); text-align: center; }
.ip-hero .ip-h1 { max-width: calc(1040 * var(--u)); margin-inline: auto; }
.ip-hero .ip-lede { margin-inline: auto; }
.ip-hero .ip-ctas { justify-content: center; }
.ip-hero__stage { position: relative; margin-top: calc(72 * var(--u)); text-align: left; }

/* ---------- photographed scenes ---------- */
.ip-scene { position: relative; border: 1px solid var(--rule); border-radius: var(--r-card); }
.ip-scene > img { width: 100%; height: auto; aspect-ratio: 16 / 8; object-fit: cover; object-position: 84% 45%; border-radius: calc(var(--r-card) - 1px); }
.ip-shot { position: relative; max-width: calc(500 * var(--u)); }
.ip-shot > img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 22%; border: 1px solid var(--rule); border-radius: var(--r-card); }
.ip-split.rev .ip-shot { margin-left: auto; }
.ip-cap { margin-top: calc(16 * var(--u)); font-size: calc(14 * var(--u)); color: var(--muted); }

/* the fragments of coordination that float over a problem scene */
.ip-say {
  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;
}
.ip-say.r { border-radius: calc(16 * var(--u)) calc(16 * var(--u)) calc(4 * var(--u)) calc(16 * var(--u)); }
.ip-say.a { left: calc(-50 * var(--u)); top: calc(24 * var(--u)); }
.ip-say.b { right: calc(-50 * var(--u)); top: 34%; }
.ip-say.c { left: calc(-34 * var(--u)); bottom: 22%; }
.ip-say.d { right: calc(-40 * var(--u)); bottom: calc(-16 * var(--u)); }

/* ---------- product UI ---------- */
.ip-ui { border: 1px solid var(--rule); border-radius: var(--r-card); background: #fff; overflow: hidden; }
.ip-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; }
.ip-ui__top b { font-size: calc(13 * var(--u)); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ip-ui__top .ip-tag { margin-left: auto; }
.ip-ui__body { padding: calc(20 * var(--u)); }
.ip-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; }
.ip-tag.ok { background: var(--lime-tint); color: var(--lime-ink); }
.ip-tag.wait { background: var(--amber); color: var(--amber-ink); }
.ip-tag.risk { background: var(--rose); color: var(--rose-ink); }
.ip-tag .i { width: calc(12 * var(--u)); height: calc(12 * var(--u)); }

.ip-fields { display: grid; gap: calc(14 * var(--u)); }
.ip-fields > div { display: grid; gap: calc(3 * var(--u)); }
.ip-fields dt, .ip-fields .lbl { font-size: calc(11.5 * var(--u)); font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); }
.ip-fields dd, .ip-fields .val { font-size: calc(17 * var(--u)); font-weight: 600; letter-spacing: -.01em; }
.ip-fields.two { grid-template-columns: 1fr 1fr; column-gap: calc(24 * var(--u)); }
.ip-mono { font-variant-numeric: tabular-nums; }

/* the hero status card */
.ip-hero__id { position: absolute; left: calc(40 * var(--u)); bottom: calc(40 * var(--u)); z-index: 2; width: calc(330 * var(--u)); 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); }
.ip-hero__id .ip-k { color: var(--faint); }
.ip-hero__id .who { font-family: var(--font-head); font-size: calc(24 * var(--u)); line-height: 1.15; font-weight: 500; letter-spacing: -.03em; }

/* the discharge readiness list — the page's signature component */
.ip-ready { display: grid; }
.ip-ready li { display: flex; align-items: center; gap: calc(13 * var(--u)); padding: calc(15 * var(--u)) calc(18 * var(--u)); border-bottom: 1px solid var(--rule); font-size: calc(16.5 * var(--u)); font-weight: 600; }
.ip-ready li:last-child { border-bottom: 0; }
.ip-ready .mark { display: grid; place-items: center; flex: none; width: calc(22 * var(--u)); height: calc(22 * var(--u)); border-radius: 50%; background: var(--grey); color: var(--faint); }
.ip-ready .mark .i { width: calc(12 * var(--u)); height: calc(12 * var(--u)); }
.ip-ready .done .mark { background: var(--lime); color: var(--ink); }
.ip-ready .done { color: var(--ink); }
.ip-ready .pend { color: var(--muted); }
.ip-ready .pend .mark::after { content: ""; width: calc(7 * var(--u)); height: calc(7 * var(--u)); border-radius: 50%; background: var(--amber-ink); opacity: .65; }
.ip-ready .who { margin-left: auto; font-size: calc(13 * var(--u)); font-weight: 500; color: var(--faint); }
.ip-ready.all li { color: var(--ink); }
.ip-foot { display: flex; align-items: center; gap: calc(12 * var(--u)); padding: calc(16 * var(--u)) calc(18 * var(--u)); border-top: 1px solid var(--rule); font-size: calc(15 * var(--u)); font-weight: 600; color: var(--muted); }
.ip-foot.ready { background: var(--lime); color: var(--ink); border-top-color: var(--lime-ico); }
.ip-foot .i { width: calc(16 * var(--u)); height: calc(16 * var(--u)); }
.ip-foot span { margin-left: auto; font-weight: 500; opacity: .7; font-size: calc(13 * var(--u)); }

/* ---------- flow rails ---------- */
.ip-flow { display: flex; align-items: center; justify-content: center; }
.ip-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(15.5 * var(--u)); font-weight: 600; white-space: nowrap; transition: border-color .5s var(--ease), background .5s var(--ease), box-shadow .5s var(--ease); }
.ip-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); }
.ip-chip .dot .i { width: calc(12 * var(--u)); height: calc(12 * var(--u)); }
.ip-link { position: relative; flex: 0 1 calc(80 * 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))); }
.ip-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); }
.ip-flow.is-on .ip-link::after { transform: scaleX(1); }
.ip-flow.is-on .ip-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); }

/* the ticket -> case chain, read as a vertical ladder */
.ip-chain { display: grid; justify-items: center; gap: calc(9 * var(--u)); padding: calc(44 * var(--u)); border: 1px solid var(--rule); border-radius: var(--r-card); background: var(--lime-soft); }
.ip-chain .node { min-width: calc(260 * var(--u)); padding: calc(13 * var(--u)) calc(22 * var(--u)); border: 1px solid var(--rule); border-radius: var(--r); background: #fff; text-align: center; font-size: calc(16 * var(--u)); font-weight: 600; }
.ip-chain .node small { display: block; margin-top: calc(3 * var(--u)); font-size: calc(12.5 * var(--u)); font-weight: 500; color: var(--muted); }
.ip-chain .node.ink { border-color: var(--ink); background: var(--ink); color: #fff; }
.ip-chain .node.ink small { color: rgba(255, 255, 255, .62); }
.ip-chain .node.lime { border-color: var(--lime-ico); background: var(--lime); }
.ip-chain .node.lime small { color: var(--lime-ink); }
.ip-chain i { width: 2px; height: calc(16 * var(--u)); background: var(--lime-ico); }

/* the SLA readout */
.ip-sla { display: grid; gap: calc(10 * var(--u)); padding: calc(18 * var(--u)); border: 1px solid var(--rose-ink); border-radius: var(--r); background: var(--rose); }
.ip-sla__t { display: flex; align-items: center; gap: calc(9 * var(--u)); font-size: calc(12 * var(--u)); font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--rose-ink); }
.ip-sla b { font-family: var(--font-head); font-size: calc(34 * var(--u)); line-height: 1.1; font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ip-sla p { font-size: calc(14.5 * var(--u)); color: var(--rose-ink); }

/* the next-action bar, shared by several cards */
.ip-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); }
.ip-next .i { width: calc(16 * var(--u)); height: calc(16 * var(--u)); }
.ip-next span { margin-left: auto; opacity: .55; font-size: calc(12.5 * var(--u)); }

/* the shift timeline */
.ip-time { display: grid; gap: 0; }
.ip-time li { position: relative; display: grid; grid-template-columns: calc(74 * var(--u)) minmax(0, 1fr); column-gap: calc(20 * var(--u)); padding: calc(13 * var(--u)) 0 calc(13 * var(--u)) calc(18 * var(--u)); }
.ip-time li::before { content: ""; position: absolute; left: 0; top: calc(20 * var(--u)); width: calc(9 * var(--u)); height: calc(9 * var(--u)); border-radius: 50%; background: var(--divider); }
.ip-time li::after { content: ""; position: absolute; left: calc(4 * var(--u)); top: calc(29 * var(--u)); bottom: calc(-4 * var(--u)); width: 1px; background: var(--rule); }
.ip-time li:last-child::after { display: none; }
.ip-time li.now::before { background: var(--lime-ico); box-shadow: 0 0 0 calc(4 * var(--u)) rgba(199, 243, 104, .35); }
.ip-time time { font-size: calc(13 * var(--u)); font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
.ip-time p { font-size: calc(15.5 * var(--u)); font-weight: 500; }
.ip-time p em { display: block; margin-top: calc(2 * var(--u)); font-style: normal; font-size: calc(13 * var(--u)); color: var(--muted); }

/* the shift handover pair */
.ip-shifts { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: calc(20 * var(--u)); }
.ip-shift { display: grid; gap: calc(10 * var(--u)); padding: calc(24 * var(--u)); border: 1px solid var(--rule); border-radius: var(--r-card); background: #fff; }
.ip-shift .ip-k { color: var(--faint); }
.ip-shift b { font-family: var(--font-head); font-size: calc(22 * var(--u)); font-weight: 500; letter-spacing: -.028em; }
.ip-shift p { font-size: calc(15 * var(--u)); line-height: calc(22 * var(--u)); color: var(--muted); }
.ip-hand { display: grid; justify-items: center; gap: calc(9 * var(--u)); }
.ip-hand .rail { width: calc(70 * var(--u)); height: 2px; background: var(--lime); }
.ip-hand .badge { display: inline-flex; align-items: center; gap: calc(7 * var(--u)); padding: calc(6 * var(--u)) calc(12 * var(--u)); border-radius: 999px; background: var(--lime-tint); color: var(--lime-ink); font-size: calc(12.5 * var(--u)); font-weight: 600; white-space: nowrap; }

/* ---------- the big workspace ---------- */
.ip-metrics { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; background: #fff; }
.ip-metrics > div { padding: calc(18 * var(--u)); }
.ip-metrics > div + div { border-left: 1px solid var(--rule); }
.ip-metrics b { display: block; font-family: var(--font-head); font-size: calc(32 * var(--u)); line-height: 1.1; font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ip-metrics span { display: block; margin-top: calc(4 * var(--u)); font-size: calc(12.5 * var(--u)); font-weight: 600; color: var(--muted); }
.ip-metrics > div.on { background: var(--lime-soft); }
.ip-metrics > div.risk { background: #fff6f4; }

.ip-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); }
.ip-search { display: flex; align-items: center; gap: calc(9 * var(--u)); flex: 1 1 calc(230 * var(--u)); min-width: calc(170 * 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)); }
.ip-table { width: 100%; border-collapse: collapse; }
.ip-table th, .ip-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; }
.ip-table th { font-size: calc(11.5 * var(--u)); font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); background: #fcfcfb; }
.ip-table td b { font-weight: 600; }
.ip-table tr:last-child td { border-bottom: 0; }
.ip-table tr.on td { background: var(--lime-soft); }
.ip-table .num { font-variant-numeric: tabular-nums; color: var(--muted); }
.ip-work { display: grid; grid-template-columns: minmax(0, 1fr) calc(300 * var(--u)); gap: calc(16 * var(--u)); align-items: start; }

/* ---------- AI / voice ---------- */
.ip-ai { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); column-gap: calc(64 * var(--u)); align-items: center; }
.ip-person { position: relative; display: grid; justify-items: center; padding: calc(28 * var(--u)) 0 0; border-radius: var(--r-card); background: var(--soft); }
.ip-person img { width: calc(300 * var(--u)); max-width: 100%; height: auto; }
.ip-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; }
.ip-said .ip-k { display: block; margin-bottom: calc(7 * var(--u)); color: var(--faint); }
.ip-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); }
.ip-mic .i { width: calc(18 * var(--u)); height: calc(18 * var(--u)); color: var(--lime); }
.ip-wave { display: flex; align-items: center; gap: calc(3 * var(--u)); height: calc(24 * var(--u)); }
.ip-wave i { width: calc(3 * var(--u)); min-height: calc(4 * var(--u)); border-radius: 999px; background: var(--lime); animation: ipWave 1.1s ease-in-out infinite; }
.ip-answer { display: grid; gap: calc(16 * var(--u)); padding: calc(26 * var(--u)); border: 1px solid var(--lime-ico); border-radius: var(--r-card); background: var(--lime-soft); }
.ip-answer__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(--lime-ink); }
.ip-answer__k i { display: grid; place-items: center; width: calc(22 * var(--u)); height: calc(22 * var(--u)); border-radius: 50%; background: var(--lime); color: var(--ink); }
.ip-answer__k i .i { width: calc(12 * var(--u)); height: calc(12 * var(--u)); }
.ip-answer__t { font-family: var(--font-head); font-size: calc(30 * var(--u)); line-height: calc(38 * var(--u)); font-weight: 500; letter-spacing: -.03em; }
.ip-split-list { display: grid; gap: calc(7 * var(--u)); }
.ip-split-list li { display: flex; align-items: center; gap: calc(12 * var(--u)); padding: calc(11 * var(--u)) calc(14 * var(--u)); border-radius: var(--r-sm); background: #fff; font-size: calc(15 * var(--u)); font-weight: 500; }
.ip-split-list b { font-weight: 600; font-variant-numeric: tabular-nums; }
.ip-split-list .go { margin-left: auto; color: var(--faint); font-size: calc(13 * var(--u)); }

/* ---------- outcomes ---------- */
.ip-out { border-top: 1px solid var(--rule); margin-top: calc(72 * var(--u)); }
.ip-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(32 * var(--u)) 0; border-bottom: 1px solid var(--rule); }
.ip-out .n { font-size: calc(13 * var(--u)); font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; padding-top: calc(7 * var(--u)); }
.ip-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; }
.ip-out p { align-self: center; font-size: calc(18 * var(--u)); line-height: calc(27 * var(--u)); color: var(--muted); }

/* ---------- FAQ ---------- */
.ip-faq { max-width: calc(920 * var(--u)); margin-top: calc(56 * var(--u)); border-top: 1px solid var(--rule); }
.ip-faq details { border-bottom: 1px solid var(--rule); }
.ip-faq summary { display: flex; align-items: center; gap: calc(18 * var(--u)); padding: calc(26 * var(--u)) 0; cursor: pointer; list-style: none; font-family: var(--font-head); font-size: calc(24 * var(--u)); line-height: calc(31 * var(--u)); font-weight: 500; letter-spacing: -.028em; }
.ip-faq summary::-webkit-details-marker { display: none; }
.ip-faq summary::after { content: ""; flex: none; width: calc(12 * var(--u)); height: calc(12 * var(--u)); margin-left: auto; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .25s var(--ease); }
.ip-faq details[open] summary::after { transform: rotate(-135deg); }
.ip-faq p { padding: 0 calc(40 * var(--u)) calc(28 * var(--u)) 0; max-width: calc(760 * var(--u)); font-size: calc(18 * var(--u)); line-height: calc(28 * var(--u)); color: var(--prose, #4d4d4d); }

/* ---------- final CTA + strip ---------- */
.ip-cta { padding: calc(130 * var(--u)) var(--pad); border-top: 1px solid var(--rule); }
.ip-cta__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); column-gap: calc(96 * var(--u)); align-items: center; }
.ip-life { padding: 0 var(--pad) calc(120 * var(--u)); }
.ip-life nav { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.ip-life a, .ip-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); }
.ip-life > nav > * + * { border-left: 1px solid var(--rule); }
.ip-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); }
.ip-life .here { background: var(--lime-soft); color: var(--ink); }
.ip-life .here small { color: var(--lime-ink); }
.ip-life a:hover { color: var(--ink); }

/* ---------- motion ---------- */
.ip-js .ip-rev { opacity: 0; transform: translateY(calc(12 * var(--u))); }
.ip-js .ip-rev.is-in { opacity: 1; transform: none; transition: opacity .75s ease var(--d, 0ms), transform .75s var(--ease) var(--d, 0ms); }
@keyframes ipWave { 0%, 100% { height: 22%; } 50% { height: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .ip *, .ip *::before, .ip *::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) {
  .ip { --pad: 22px; }
  .ip .i { width: 16px; height: 16px; }
  .ip-h1 { font-size: clamp(32px, 7.2vw, 48px); line-height: 1.08; }
  .ip-h2 { font-size: clamp(26px, 5.4vw, 36px); line-height: 1.16; }
  .ip-h3 { font-size: 20px; line-height: 27px; }
  .ip-lede { font-size: 17px; line-height: 25px; }
  .ip-sub { font-size: 16px; line-height: 24px; max-width: none; }
  .ip-ctas { margin-top: 28px; flex-direction: column; align-items: stretch; }

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

  .ip-sec { padding: 56px 22px; }
  .ip-chap { margin-bottom: 26px; }
  .ip-split { grid-template-columns: 1fr; row-gap: 32px; }
  .ip-split.rev > :first-child { order: 0; }
  .ip-shot { max-width: 460px; }
  .ip-split.rev .ip-shot { margin-left: 0; }
  .ip-say { max-width: 220px; font-size: 15px; line-height: 20px; padding: 10px 13px; }
  .ip-say.a, .ip-say.c { left: 10px; }
  .ip-say.b, .ip-say.d { right: 10px; }

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

  .ip-fields.two { grid-template-columns: 1fr; row-gap: 14px; }
  .ip-chain { padding: 24px 16px; }
  .ip-chain .node { min-width: 0; width: 100%; }
  .ip-metrics { grid-template-columns: 1fr 1fr 1fr; }
  .ip-metrics > div:nth-child(3n + 1) { border-left: 0; }
  .ip-metrics > div:nth-child(n + 4) { border-top: 1px solid var(--rule); }
  .ip-metrics b { font-size: 26px; }
  .ip-metrics span { font-size: 11.5px; }
  .ip-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .ip-table th, .ip-table td { padding: 12px 14px; }
  .ip-work { grid-template-columns: 1fr; }

  .ip-shifts { grid-template-columns: 1fr; }
  .ip-hand { padding: 6px 0; }
  .ip-hand .rail { width: 2px; height: 30px; }

  .ip-ai { grid-template-columns: 1fr; row-gap: 28px; }
  .ip-said { position: static; max-width: none; margin: 0 0 16px; border-radius: 18px 18px 18px 4px; }
  .ip-person { padding: 20px 16px 0; }
  .ip-person img { width: 230px; }
  .ip-mic { position: static; justify-content: center; width: -moz-fit-content; width: fit-content; margin: 0 auto 18px; }
  .ip-answer__t { font-size: 22px; line-height: 29px; }

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

  .ip-faq summary { font-size: 19px; line-height: 26px; padding: 20px 0; gap: 14px; }
  .ip-faq p { font-size: 16px; line-height: 25px; padding: 0 0 22px; }

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