/* /iv-what-to-expect: its own sheet, loaded after site.css.
   The page is one day, told in the order it happens, and every drawing on it
   is a length of time drawn to scale: the clock in the hero is 45 minutes of
   an hour, the strip under it is the 4 hours door to door, the bar near the
   end is the first 72 hours. The navy band walks the five steps of the
   session as the reader scrolls it.
   Script: scripts/iv-what-to-expect.js. With that script absent every part
   is visible, every drawing holds its finished state and every link jumps. */

html:has(body.ivx) {
  --hc-nav-h: 64px;            /* fallback; the script sets the real header height */
  --hc-bar-h: 52px;
  /* every jump, anchor and Tab stop lands below the header and the bar */
  scroll-padding-top: calc(var(--hc-nav-h) + var(--hc-bar-h) + 12px);
}
.ivx {
  --ivx-ease: cubic-bezier(.16, 1, .3, 1);
  --ivx-gut: clamp(20px, 4vw, 56px);
  --ivx-pad: clamp(56px, 7vw, 104px);
}
/* parts waiting to slide in never cause sideways scroll */
.ivx main { overflow-x: clip; }

/* ============ GROUND RULES ============ */
.ivx-wrap { max-width: calc(1240px + 2 * var(--ivx-gut)); margin-inline: auto; padding-inline: var(--ivx-gut); }
/* text fills its column; the column sets the measure */
:where(.ivx) main p { max-width: none; margin: 0; }
.ivx main a:not(.btn) { border-bottom: 0; }
:where(.ivx) main :is(ul, ol) { list-style: none; margin: 0; padding: 0; }
:where(.ivx) main h2 {
  font-family: var(--font-display); font-weight: 300; color: var(--ink);
  font-size: clamp(1.9rem, 3.3vw, 3rem); line-height: 1.1; letter-spacing: -.01em;
  margin: 0; max-width: none; text-wrap: wrap;
}
:where(.ivx) main h3 { font-family: var(--font-body); font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: 0; color: var(--ink); margin: 0; max-width: none; }
.ivx main :is(a, button, summary):focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 3px; border-radius: 4px; }
.ivx :is(.ivx-proc, .ivx-end) :is(a, button):focus-visible { outline-color: var(--accent-ice); }
/* a part that receives focus after a jump is not itself a control */
.ivx main :is(h1, h2, h3, section)[tabindex="-1"]:focus { outline: none; }

/* an icon from the house set: one weight, round joins */
.ivx-ic { display: block; width: 100%; height: 100%; }
.ivx-ic path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* a link to a neighbouring page, inside a sentence */
.ivx-term { color: inherit; text-decoration: underline; text-decoration-color: var(--accent-blue); text-decoration-thickness: 1.5px; text-underline-offset: 4px; transition: color 200ms, text-decoration-color 200ms; }
.ivx-term:hover { color: var(--accent-blue-hover); }
.ivx-proc .ivx-term { text-decoration-color: var(--accent-ice); }
.ivx-proc .ivx-term:hover { color: #fff; text-decoration-color: #fff; }

/* the way back up: the arrow leans the way it points */
.ivx-go { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; font-weight: 600; color: var(--accent-blue-hover); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; transition: color 200ms, text-decoration-color 260ms; }
.ivx-go span { display: inline-block; transition: transform 360ms var(--ivx-ease); }
.ivx-go:hover { color: var(--accent-blue); text-decoration-color: currentColor; }
.ivx-go--back:hover span { transform: translateX(-6px); }
.ivx .btn span { display: inline-block; transition: transform 360ms var(--ivx-ease); }
.ivx .btn:hover span { transform: translateX(5px); }

/* a question a patient asks, where it comes up in the day */
.ivx-q { border-block: 1px solid var(--border-strong); }
.ivx-q summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 56px; padding-block: 10px; cursor: pointer; list-style: none; font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--ink); transition: color 200ms; }
.ivx-q summary::-webkit-details-marker { display: none; }
.ivx-q summary::after { content: ""; flex: none; width: 9px; height: 9px; margin: -4px 6px 0 0; border-right: 2px solid var(--accent-blue); border-bottom: 2px solid var(--accent-blue); transform: rotate(45deg); transition: transform 360ms var(--ivx-ease); }
.ivx-q summary:hover { color: var(--accent-blue-hover); }
/* a press is answered at once, before the answer unfolds */
.ivx-q summary:active { color: var(--accent-blue); }
.ivx main :is(a, summary) { touch-action: manipulation; -webkit-tap-highlight-color: rgba(45, 110, 177, .12); }
.ivx main ::selection { background: #cfe0f2; color: var(--ink); }
.ivx :is(.ivx-proc, .ivx-end) ::selection { background: var(--accent-ice); color: var(--ink); }
.ivx-q summary:hover::after { transform: translateY(3px) rotate(45deg); }
.ivx-q[open] summary::after { margin-top: 4px; transform: rotate(-135deg); }
.ivx-q[open] summary:hover::after { transform: translateY(-3px) rotate(-135deg); }
.ivx-q__a { padding: 2px 0 20px; font-size: 17px; line-height: 1.65; color: var(--ink-soft); }
@keyframes ivx-unfold { from { opacity: 0; transform: translateY(-8px); } }

/* ============ REVEALS ============
   Hidden only once the script has said it is running (ivx-js on <html>), so
   with no script nothing is ever hidden. Each part comes in its own way. */
.ivx-js [data-r] { transition: opacity 620ms ease, transform 820ms var(--ivx-ease); }
.ivx-js [data-r]:not(.is-in) { opacity: 0; transform: translateY(18px); }
.ivx-js [data-r="left"]:not(.is-in) { transform: translateX(-32px); }
.ivx-js [data-r="right"]:not(.is-in) { transform: translateX(32px); }
/* these draw themselves instead of fading */
.ivx-js :is([data-r="trip"], [data-r="stages"], [data-r="span"]):not(.is-in) { opacity: 1; transform: none; }

@keyframes ivx-up { from { opacity: 0; transform: translateY(22px); } }
@keyframes ivx-fade { from { opacity: 0; } }
@keyframes ivx-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes ivx-hang { from { opacity: 0; transform: translateY(-14px); } }
@keyframes ivx-level { from { transform: translateY(-26px); } }
@keyframes ivx-hand { from { transform: rotate(0deg); } to { transform: rotate(270deg); } }
@keyframes ivx-drop { 0% { opacity: 0; transform: translateY(0); } 18% { opacity: 1; } 78% { opacity: 1; transform: translateY(22px); } 100% { opacity: 0; transform: translateY(24px); } }
@keyframes ivx-drive { from { transform: translateX(0); } }
@keyframes ivx-grow { from { transform: scaleX(0); } }
@keyframes ivx-growy { from { transform: scaleY(0); } }
@keyframes ivx-pop { from { opacity: 0; transform: scale(.6); } 60% { opacity: 1; transform: scale(1.06); } }
@keyframes ivx-trace { from { stroke-dashoffset: 1.3; } to { stroke-dashoffset: 0; } }
@keyframes ivx-beat { 0%, 100% { opacity: .35; transform: scale(.8); } 12% { opacity: 1; transform: scale(1.15); } 30% { opacity: .5; transform: scale(.9); } }

/* ============ HERO ============ */
.ivx-hero { padding-block: clamp(24px, 3.4vw, 48px) clamp(48px, 6vw, 88px); }
.ivx-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 5vw, 88px); align-items: center; }
.ivx-hero h1 {
  font-family: var(--font-display); font-weight: 300; color: var(--ink);
  font-size: clamp(2.1rem, 3.5vw, 3.15rem); line-height: 1.08; letter-spacing: -.015em;
  margin: 0 0 clamp(20px, 2.4vw, 32px); max-width: none; text-wrap: wrap;
}
/* a heading that has to wrap breaks where the styling changes */
.ivx-hero h1 > .h-lead, .ivx-hero h1 > em { display: inline-block; text-wrap: balance; }
.ivx-hero h1 > em { color: var(--accent-blue); }
.ivx-hero__answer { font-size: clamp(1.14rem, 1.5vw, 1.32rem); line-height: 1.58; color: var(--ink); }
.ivx-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 28px; }
.ivx-hero__fig { margin: 0; justify-self: end; width: min(100%, 460px); }

.ivx-drip { display: block; width: 100%; height: auto; overflow: visible; }
.ivx-drip :is(path, rect, circle) { fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ivx-drip .ivx-drip__fluid, .ivx-drip .ivx-drip__fluidtop, .ivx-drip .ivx-drip__pool { fill: var(--accent-wash); stroke: none; }
.ivx-drip .ivx-drip__level { stroke: var(--accent-blue); stroke-width: 1.5; }
.ivx-drip .ivx-drip__eye { fill: #fff; }
.ivx-drip .ivx-drip__marks { stroke: var(--ink-muted); stroke-width: 1.3; }
.ivx-drip .ivx-drip__drop { fill: var(--accent-blue); stroke: none; opacity: 0; }
.ivx-drip .ivx-drip__line { stroke: var(--accent-blue); stroke-width: 2.4; }
.ivx-drip .ivx-drip__clamp { fill: #fff; }
.ivx-drip .ivx-drip__face { fill: #fff; }
.ivx-drip .ivx-drip__ticks { stroke: var(--ink-muted); stroke-width: 7; stroke-linecap: butt; stroke-dasharray: 1.5 34.105; }
.ivx-drip .ivx-drip__arc { stroke: var(--accent-blue); stroke-width: 13; stroke-linecap: butt; }
/* the hand rests where the 45 minutes end */
.ivx-drip .ivx-drip__hand { stroke-width: 2.4; transform-box: view-box; transform-origin: 332px 150px; transform: rotate(270deg); }
.ivx-drip .ivx-drip__hub { fill: var(--ink); stroke: none; }

@media (prefers-reduced-motion: no-preference) {
  /* first paint: the words rise, the pole is drawn and the bag is hung on it,
     the line runs down from the bag, and the clock counts off 45 minutes */
  .ivx-js .ivx-hero h1 > * { animation: ivx-up 900ms var(--ivx-ease) both; }
  .ivx-js .ivx-hero h1 > em { animation-delay: 110ms; }
  .ivx-js .ivx-hero__answer { animation: ivx-up 900ms var(--ivx-ease) 240ms both; }
  .ivx-js .ivx-hero__actions { animation: ivx-up 900ms var(--ivx-ease) 340ms both; }
  .ivx-js .ivx-drip__pole path { stroke-dasharray: 1; animation: ivx-draw 800ms var(--ivx-ease) 200ms both; }
  .ivx-js .ivx-drip__pole path:nth-child(3) { animation-delay: 520ms; }
  .ivx-js .ivx-drip__bag { animation: ivx-hang 700ms var(--ivx-ease) 820ms both; }
  .ivx-js .ivx-drip__level, .ivx-js .ivx-drip__fluidtop { animation: ivx-level 3200ms ease-out 1500ms both; }
  .ivx-js .ivx-drip__line { stroke-dasharray: 1; animation: ivx-draw 1200ms ease-in-out 1300ms both; }
  .ivx-js .ivx-drip__clamp { animation: ivx-fade 400ms ease 1500ms both; }
  .ivx-js .ivx-drip__clock { animation: ivx-fade 600ms ease 900ms both; }
  .ivx-js .ivx-drip__arc { stroke-dasharray: 1; animation: ivx-draw 2000ms cubic-bezier(.45, 0, .2, 1) 1500ms both; }
  .ivx-js .ivx-drip__hand { animation: ivx-hand 2000ms cubic-bezier(.45, 0, .2, 1) 1500ms both; }
  /* the drip runs only while the drawing is on screen */
  .ivx-js .ivx-hero__fig.is-live .ivx-drip__drop { animation: ivx-drop 1900ms ease-in 2400ms infinite; }
}

/* ============ CONTENTS BAR (follows the reader) ============ */
.ivx .hc-bar {
  /* under the phone menu's sheet (55) and backdrop (50), over the page */
  position: fixed; left: 0; right: 0; top: var(--hc-nav-h); z-index: 49;
  height: var(--hc-bar-h);
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity 260ms, transform 360ms var(--ivx-ease), visibility 0s 360ms;
}
.ivx .hc-bar.is-on { transform: none; opacity: 1; visibility: visible; transition: opacity 260ms, transform 360ms var(--ivx-ease); }
body.ivx.nav-open .hc-bar { opacity: 0; visibility: hidden; }
.ivx .hc-bar__track {
  max-width: calc(1240px + 2 * var(--ivx-gut)); margin: 0 auto; padding: 0 var(--ivx-gut);
  height: 100%; display: flex; align-items: stretch; gap: clamp(18px, 2.4vw, 32px);
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; scroll-padding-inline: 28px;
}
.ivx .hc-bar__track::-webkit-scrollbar { display: none; }
.ivx .hc-bar__track a {
  position: relative; flex: none; display: flex; align-items: center; justify-content: center; min-width: 44px; border-bottom: 0;
  font-size: 14px; font-weight: 500; color: var(--ink-muted); white-space: nowrap;
  transition: color 200ms;
}
.ivx .hc-bar__track a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--accent-blue); transform: scaleX(0); transform-origin: left;
  transition: transform 360ms var(--ivx-ease);
}
.ivx .hc-bar__track a:hover, .ivx .hc-bar__track a[aria-current] { color: var(--ink); }
.ivx .hc-bar__track a:hover::after { transform: scaleX(.35); }
.ivx .hc-bar__track a[aria-current]::after { transform: scaleX(1); }
.ivx .hc-bar__track a:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: -4px; border-radius: 4px; }
.ivx .hc-bar__progress {
  position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: var(--accent-ice); transform-origin: left; transform: scaleX(var(--hc-p, 0));
}
/* the track runs off a phone's edge: a fade says there is more */
.ivx .hc-bar::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 36px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 80%); pointer-events: none; opacity: 0; transition: opacity 200ms; }
.ivx .hc-bar.has-more::after { opacity: 1; }

/* ============ HOW LONG (the one tinted band): the visit, to scale ============ */
.ivx-long { background: var(--accent-wash); padding-block: var(--ivx-pad); }
.ivx-long h2 { margin-bottom: clamp(18px, 2vw, 28px); }
.ivx-long__lede { font-size: clamp(1.1rem, 1.45vw, 1.3rem); line-height: 1.6; color: var(--ink); }

/* three legs whose widths are their minutes: 27.5, 180, 27.5 */
.ivx-trip { display: grid; grid-template-columns: minmax(0, 27.5fr) minmax(0, 180fr) minmax(0, 27.5fr); row-gap: 12px; margin-block: clamp(36px, 5vw, 64px) clamp(32px, 4vw, 52px); }
.ivx-trip__bar { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: subgrid; height: 64px; }
@supports not (grid-template-columns: subgrid) { .ivx-trip__bar { grid-template-columns: minmax(0, 27.5fr) minmax(0, 180fr) minmax(0, 27.5fr); } }
.ivx-trip__leg { position: relative; display: block; min-width: 0; container-type: inline-size; }
/* the road: a dashed line the car has driven */
.ivx-trip__leg--out::before, .ivx-trip__leg--back::before { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; border-top: 2px dashed var(--ink-muted); transform-origin: left; }
.ivx-trip__leg .ivx-ic { position: absolute; left: 0; top: 50%; width: 30px; height: 30px; margin-top: -15px; color: var(--ink); background: var(--accent-wash); transform: translateX(calc(100cqw - 30px)); }
.ivx-trip__leg--site { background: #fff; border: 1.7px solid var(--ink); border-radius: 12px; }
/* 45 of the 180 minutes on site */
.ivx-trip__inf { position: absolute; left: 37.5%; width: 25%; top: 9px; bottom: 9px; border-radius: 6px; background: var(--accent-blue); transform-origin: left; }
.ivx-trip__in { position: absolute; top: 50%; left: 18.75%; transform: translate(-50%, -50%); font-size: 14px; font-weight: 500; font-style: normal; color: var(--ink-muted); white-space: nowrap; }
.ivx-trip__in--after { left: 81.25%; }
.ivx-trip__key { display: contents; }
.ivx-trip__k { font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--ink); white-space: nowrap; }
/* the outer two start and end with their legs, and run inward if they are longer */
.ivx-trip__k--out { grid-column: 1 / span 2; grid-row: 3; justify-self: start; }
.ivx-trip__k--site { grid-column: 2; grid-row: 3; justify-self: center; }
.ivx-trip__k--back { grid-column: 2 / span 2; grid-row: 3; justify-self: end; }
.ivx-trip__k--inf { grid-column: 2; grid-row: 1; justify-self: center; color: var(--accent-blue-hover); }
@media (prefers-reduced-motion: no-preference) {
  /* drawn in the order it happens: the drive, the hours on site, the drive home */
  .ivx-js [data-r="trip"]:not(.is-in) :is(.ivx-trip__leg, .ivx-trip__k) { opacity: 0; }
  .ivx-js [data-r="trip"].is-in .ivx-trip__leg--out { animation: ivx-fade 300ms ease both; }
  .ivx-js [data-r="trip"].is-in .ivx-trip__leg--out::before { animation: ivx-grow 900ms ease-in-out both; }
  .ivx-js [data-r="trip"].is-in .ivx-trip__leg--out .ivx-ic { animation: ivx-drive 900ms ease-in-out both; }
  .ivx-js [data-r="trip"].is-in .ivx-trip__leg--site { animation: ivx-fade 500ms ease 800ms both; }
  .ivx-js [data-r="trip"].is-in .ivx-trip__inf { animation: ivx-grow 1100ms var(--ivx-ease) 1200ms both; }
  .ivx-js [data-r="trip"].is-in .ivx-trip__in { animation: ivx-fade 600ms ease 1000ms both; }
  .ivx-js [data-r="trip"].is-in .ivx-trip__in--after { animation-delay: 1900ms; }
  .ivx-js [data-r="trip"].is-in .ivx-trip__leg--back { animation: ivx-fade 300ms ease 2000ms both; }
  .ivx-js [data-r="trip"].is-in .ivx-trip__leg--back::before { animation: ivx-grow 900ms ease-in-out 2000ms both; }
  .ivx-js [data-r="trip"].is-in .ivx-trip__leg--back .ivx-ic { animation: ivx-drive 900ms ease-in-out 2000ms both; }
  .ivx-js [data-r="trip"].is-in .ivx-trip__k { animation: ivx-up 700ms var(--ivx-ease) both; }
  .ivx-js [data-r="trip"].is-in .ivx-trip__k--site { animation-delay: 800ms; }
  .ivx-js [data-r="trip"].is-in .ivx-trip__k--inf { animation-delay: 1300ms; }
  .ivx-js [data-r="trip"].is-in .ivx-trip__k--back { animation-delay: 2100ms; }
}

/* ============ PREPARE: three moments, joined ============ */
.ivx-prep { padding-block: var(--ivx-pad); }
.ivx-stages { --gap: clamp(28px, 4vw, 64px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto 1fr; column-gap: var(--gap); margin-top: clamp(32px, 4vw, 56px) !important; }
.ivx-stage { position: relative; display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
@supports not (grid-template-rows: subgrid) { .ivx-stage { grid-template-rows: auto auto 1fr; } }
.ivx-badge { position: relative; z-index: 1; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); transition: border-color 300ms, transform 500ms var(--ivx-ease); }
.ivx-badge .ivx-ic { width: 34px; height: 34px; }
.ivx-badge .ivx-ic__fill { stroke: var(--accent-blue); }
/* one connector per gap, badge to badge, and nothing after the last */
.ivx-stage:not(:last-child)::after { content: ""; position: absolute; top: 35px; left: 84px; width: calc(100% + var(--gap) - 96px); border-top: 2px solid var(--border-strong); transform-origin: left; }
.ivx-stage h3 { margin: 22px 0 8px; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.45rem, 2vw, 1.8rem); line-height: 1.2; }
.ivx-stage__body { font-size: 17px; line-height: 1.65; color: var(--ink-soft); }
.ivx-stage__body .ivx-q { margin-top: 20px; }
@media (prefers-reduced-motion: no-preference) {
  .ivx-js [data-r="stages"]:not(.is-in) .ivx-stage > *, .ivx-js [data-r="stages"]:not(.is-in) .ivx-stage::after { opacity: 0; }
  .ivx-js [data-r="stages"].is-in .ivx-stage { --d: calc(var(--n, 0) * 420ms); }
  .ivx-js [data-r="stages"].is-in .ivx-badge { animation: ivx-pop 560ms var(--ivx-ease) var(--d) both; }
  .ivx-js [data-r="stages"].is-in .ivx-badge path { stroke-dasharray: 1; animation: ivx-draw 900ms ease-in-out calc(var(--d) + 200ms) both; }
  .ivx-js [data-r="stages"].is-in .ivx-badge .ivx-ic__fill { animation-delay: calc(var(--d) + 800ms); }
  .ivx-js [data-r="stages"].is-in .ivx-stage::after { animation: ivx-grow 700ms ease-in-out calc(var(--d) + 300ms) both; }
  .ivx-js [data-r="stages"].is-in .ivx-stage > :is(h3, .ivx-stage__body) { animation: ivx-up 800ms var(--ivx-ease) calc(var(--d) + 160ms) both; }
}

/* ============ THE PROCEDURE (navy): five steps, walked as they are read ============ */
.ivx-proc { background: var(--navy-brand); color: #fff; padding-block: var(--ivx-pad); }
.ivx-proc h2 { color: #fff; }
.ivx-proc__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 104px); align-items: start; margin-top: clamp(32px, 4vw, 56px); }
.ivx-route { --gap: clamp(28px, 3vw, 40px); position: relative; display: grid; row-gap: var(--gap); }
.ivx-stop { --f: 1; position: relative; padding-left: 52px; }
.ivx-stop::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--accent-ice); background: var(--accent-ice); box-sizing: border-box; box-shadow: 0 0 0 0 rgba(124, 169, 209, 0); transition: background-color 300ms, box-shadow 500ms, transform 500ms var(--ivx-ease); }
/* one connector per gap, node to node; it fills as the reader passes it */
.ivx-stop:not(:last-child)::after { content: ""; position: absolute; left: 9px; top: 29px; bottom: calc(-1 * var(--gap) - 1px); width: 2px; border-radius: 1px; background: linear-gradient(to bottom, var(--accent-ice) calc(var(--f) * 100%), rgba(255, 255, 255, .22) 0); }
.ivx-js .ivx-route.is-led .ivx-stop:not(.is-lit)::before { background: var(--navy-brand); }
.ivx-js .ivx-route.is-led .ivx-stop.is-lit::before { transform: scale(1.12); }
/* the step being read wears a soft ring: you are here */
.ivx-js .ivx-route.is-led .ivx-stop.is-now::before { box-shadow: 0 0 0 7px rgba(124, 169, 209, .26); }
.ivx-stop h3 { color: #fff; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.45rem, 2vw, 1.8rem); line-height: 1.2; margin-bottom: 8px; }
.ivx-stop p { font-size: 17px; line-height: 1.65; color: rgba(255, 255, 255, .82); }

.ivx-feel { position: sticky; top: calc(var(--hc-nav-h) + var(--hc-bar-h) + 28px); }
.ivx-feel h3 { color: #fff; font-size: 20px; margin: 28px 0 10px; }
.ivx-feel p { font-size: 17px; line-height: 1.65; color: rgba(255, 255, 255, .82); }
.ivx-feel__floor { margin-top: 18px !important; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .22); }
.ivx-mon { display: block; width: min(100%, 300px); height: auto; overflow: visible; }
.ivx-mon :is(path, rect) { fill: none; stroke: rgba(255, 255, 255, .6); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ivx-mon .ivx-mon__ghost { stroke: rgba(124, 169, 209, .28); stroke-width: 2; }
.ivx-mon .ivx-mon__trace { stroke: var(--accent-ice); stroke-width: 2.4; }
.ivx-mon .ivx-mon__rows { stroke: rgba(255, 255, 255, .34); stroke-width: 5; }
.ivx-mon .ivx-mon__beat { fill: var(--accent-ice); transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  /* the trace sweeps and the beat blinks only while the monitor is on screen */
  .ivx-js .ivx-feel.is-live .ivx-mon__trace { stroke-dasharray: .3 1; animation: ivx-trace 2600ms linear infinite; }
  .ivx-js .ivx-feel.is-live .ivx-mon__beat { animation: ivx-beat 1300ms ease-out infinite; }
}

/* ============ AFTER: the first 72 hours, to scale ============ */
.ivx-after { padding-block: var(--ivx-pad); }
.ivx-after__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 104px); align-items: start; margin-top: clamp(32px, 4vw, 56px); }
.ivx-after__lede { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.5rem, 2.3vw, 2.1rem); line-height: 1.25; color: var(--ink); }
.ivx-after__limit { margin-top: 18px !important; font-size: 18px; line-height: 1.65; color: var(--ink-soft); }
.ivx-after__say .ivx-q { margin-top: 28px; }
.ivx-after__say { position: sticky; top: calc(var(--hc-nav-h) + var(--hc-bar-h) + 28px); }

/* hours 0 to 6, 6 to 24 and 24 to 72 as 6, 18 and 48 parts; then it runs on */
/* it stays under the contents bar while its four rows are read, so the row
   being read can light its stretch */
.ivx-span { display: flex; gap: 3px; height: 56px; position: sticky; top: calc(var(--hc-nav-h) + var(--hc-bar-h) + 14px); z-index: 2; background: #fff; box-shadow: 0 0 0 14px #fff; }
.ivx-span i { display: block; min-width: 0; transform-origin: left; transition: opacity 300ms, transform 400ms var(--ivx-ease); }
.ivx-span i:nth-child(1) { flex: 6 1 0; background: #c9dcef; border-radius: 8px 0 0 8px; }
.ivx-span i:nth-child(2) { flex: 18 1 0; background: var(--accent-blue); }
.ivx-span i:nth-child(3) { flex: 48 1 0; background: var(--accent-ice); }
.ivx-span i:nth-child(4) { flex: 0 0 13%; border-block: 2px dashed var(--ink-muted); -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent); mask-image: linear-gradient(90deg, #000 30%, transparent); }
.ivx-span.has-lit i:not(.is-lit) { opacity: .32; }
.ivx-span i.is-lit { transform: scaleY(1.14); }
.ivx-span i:nth-child(4).is-lit { border-color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .ivx-js [data-r="span"]:not(.is-in) i { opacity: 0; }
  .ivx-js [data-r="span"].is-in i { animation: ivx-grow 700ms var(--ivx-ease) both; }
  .ivx-js [data-r="span"].is-in i:nth-child(2) { animation-delay: 200ms; }
  .ivx-js [data-r="span"].is-in i:nth-child(3) { animation-delay: 480ms; }
  .ivx-js [data-r="span"].is-in i:nth-child(4) { animation: ivx-fade 700ms ease 1100ms both; }
}
.ivx-hours { margin-top: 22px !important; }
.ivx-hours li { position: relative; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 4px 24px; padding: 20px 0 20px 22px; border-top: 1px solid var(--border); }
.ivx-hours li:last-child { border-bottom: 1px solid var(--border); }
/* the key: each row carries the colour of its stretch of the bar */
.ivx-hours li::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 6px; border-radius: 3px; background: #c9dcef; transform-origin: top; transition: transform 400ms var(--ivx-ease); }
.ivx-hours li:nth-child(2)::before { background: var(--accent-blue); }
.ivx-hours li:nth-child(3)::before { background: var(--accent-ice); }
.ivx-hours li:nth-child(4)::before { background: none; border-left: 2px dashed var(--ink-muted); width: 0; left: 2px; }
.ivx-hours li.is-lit::before { transform: scaleY(1.18); }
.ivx-hours__when { align-self: start; font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--ink); }
.ivx-hours h3 { margin-bottom: 4px; }
.ivx-hours li div p { font-size: 17px; line-height: 1.6; color: var(--ink-soft); }

/* ============ THE CLOSE (navy): the call, and where to read on ============ */
.ivx-end { background: var(--navy-brand); color: #fff; padding-block: var(--ivx-pad); }
.ivx-end .ivx-wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 104px); align-items: start; }
.ivx-end__call { grid-column: 1; grid-row: 1; }
.ivx-end h2 { color: #fff; }
.ivx-end__call p { margin: 18px 0 30px; font-size: 18px; line-height: 1.65; color: rgba(255, 255, 255, .82); }
.ivx-more { grid-column: 2; grid-row: 1; }
.ivx .ivx-more h2 { font-family: var(--font-body); font-size: 19px; font-weight: 600; letter-spacing: 0; line-height: 1.4; color: #fff; margin-bottom: 14px; }
.ivx-more li { border-top: 1px solid rgba(255, 255, 255, .22); }
.ivx-more li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .22); }
.ivx .ivx-more a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; font-size: 18px; color: #fff; transition: color 200ms, padding-left 360ms var(--ivx-ease); }
.ivx-more a span { color: var(--accent-ice); transition: transform 360ms var(--ivx-ease); }
.ivx-more a:hover { color: var(--accent-ice); padding-left: 8px; }
.ivx-more a:hover span { transform: translateX(6px); }

@media (prefers-reduced-motion: no-preference) {
  .ivx-js .ivx-q[open] .ivx-q__a { animation: ivx-unfold 420ms var(--ivx-ease); }
}

/* ============ NARROWER ============ */
@media (max-width: 1000px) {
  .ivx-proc__grid, .ivx-after__grid, .ivx-end .ivx-wrap { grid-template-columns: minmax(0, 1fr); }
  .ivx-feel, .ivx-after__say { position: static; }
  .ivx-more, .ivx-end__call { grid-column: 1; grid-row: auto; }
  .ivx-end__call { order: -1; }
}
@media (max-width: 860px) {
  .ivx-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .ivx-hero__fig { justify-self: center; width: min(100%, 340px); margin-top: 36px; }
  /* the three moments run down the page, the line with them */
  .ivx-stages { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: var(--gap); }
  .ivx-stage { grid-row: auto; grid-template-rows: none; grid-template-columns: 72px minmax(0, 1fr); column-gap: 20px; }
  .ivx-badge { grid-row: 1 / span 2; }
  .ivx-stage h3 { margin: 6px 0 8px; grid-column: 2; }
  .ivx-stage__body { grid-column: 2; }
  .ivx-stage:not(:last-child)::after { top: 82px; left: 35px; width: 0; bottom: calc(-1 * var(--gap) + 10px); border-top: 0; border-left: 2px solid var(--border-strong); transform-origin: top; }
}
@media (max-width: 860px) and (prefers-reduced-motion: no-preference) {
  .ivx-js [data-r="stages"].is-in .ivx-stage::after { animation-name: ivx-growy; }
}
@media (max-width: 620px) {
  .ivx-hours li { grid-template-columns: minmax(0, 1fr); }
  .ivx-span { height: 48px; }
  .ivx-trip__k--site { grid-row: 4; grid-column: 1 / -1; }
  .ivx-trip__k { font-size: 14px; }
  .ivx-trip__in { font-size: 13px; }
  .ivx-stop { padding-left: 40px; }
  .ivx-feel h3 { font-size: 18px; }
  .ivx-hero__actions .btn { width: 100%; }
}

/* ============ REDUCED MOTION: every finished state, nothing moving ============ */
@media (prefers-reduced-motion: reduce) {
  .ivx-js [data-r] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .ivx main *, .ivx main *::before, .ivx main *::after { animation: none !important; }
  .ivx .hc-bar, .ivx .hc-bar__track a::after { transition: none; }
}

/* ============ PRINT: the finished page, dark on white ============ */
@media print {
  .ivx .hc-bar, .ivx-q summary::after { display: none !important; }
  .ivx main *, .ivx main *::before, .ivx main *::after { animation: none !important; transition: none !important; }
  .ivx-js [data-r], .ivx-js [data-r] * { opacity: 1 !important; transform: none; }
  .ivx-drip .ivx-drip__hand { transform: rotate(270deg) !important; }
  .ivx-trip__in { transform: translate(-50%, -50%) !important; }
  .ivx-trip__leg .ivx-ic { transform: translateX(calc(100cqw - 30px)) !important; }
  .ivx-long, .ivx-proc, .ivx-end { background: none; color: var(--ink); padding-block: 24px; }
  .ivx :is(.ivx-proc, .ivx-end) :is(h2, h3, p, a, span) { color: var(--ink) !important; }
  .ivx-stop { --f: 1 !important; }
  .ivx-stop::before { background: var(--ink) !important; border-color: var(--ink); box-shadow: none !important; }
  .ivx-stop:not(:last-child)::after { background: var(--ink-muted); }
  .ivx-mon :is(path, rect) { stroke: var(--ink); }
  .ivx-feel, .ivx-after__say, .ivx-span { position: static; }
  .ivx-span.has-lit i { opacity: 1 !important; }
  .ivx-stage, .ivx-stop, .ivx-hours li, .ivx-q { break-inside: avoid; }
  /* a question still closed is printed with its answer */
  .ivx-q::details-content { content-visibility: visible; display: block; }
}
