/* /iv-how-often: its own sheet, loaded after site.css.
   One object runs the page: the infusion bag, set down on a line of time.
   The hero puts one at the start of a year and a second somewhere in the
   window six to twelve months on; the tinted band sets a bag in every
   month, struck out, against one to two a year; three tracks lay out the ways to start;
   the navy band counts one to two a year.
   Script: scripts/iv-how-often.js. With that script absent every part is
   visible, every drawing holds its finished state and every link jumps. */

html:has(body.ho) {
  --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);
}
.ho {
  --ho-ease: cubic-bezier(.16, 1, .3, 1);
  --ho-gut: clamp(20px, 4vw, 56px);
}
.ho main { overflow-x: clip; }

/* ============ GROUND RULES ============ */
.ho-wrap { max-width: calc(1240px + 2 * var(--ho-gut)); margin-inline: auto; padding-inline: var(--ho-gut); }
/* text fills its column; the column sets the measure */
:where(.ho main) p { max-width: none; margin: 0; }
.ho main a:not(.btn) { border-bottom: 0; }
:where(.ho main) :is(ul, ol) { list-style: none; margin: 0; padding: 0; }
:where(.ho 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(.ho main) h3 { margin: 0; max-width: none; text-wrap: wrap; }
/* a heading that has to wrap breaks where the styling changes */
.ho main :is(h1, h2) > :is(.h-lead, em) { display: inline-block; }
.ho main :is(a, button, summary):focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 3px; border-radius: 4px; }
.ho :is(.ho-maint, .ho-close) :is(a, button):focus-visible { outline-color: var(--accent-ice); }
/* a part that receives focus after a jump is not itself a control */
.ho main :is(h1, h2, h3, section)[tabindex="-1"]:focus { outline: none; }

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

/* the onward link: the arrow leans the way it points */
.ho-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; }
.ho-go span { display: inline-block; transition: transform 360ms var(--ho-ease); }
.ho-go:hover { color: var(--accent-blue); text-decoration-color: currentColor; }
.ho-go:hover span { transform: translateX(6px); }
.ho-go[href^="#"]:hover span { transform: translateY(4px) rotate(90deg); }
.ho-go--back:hover span { transform: translateX(-6px); }
.ho :is(.ho-maint, .ho-close) .ho-go { color: var(--accent-ice); }
.ho :is(.ho-maint, .ho-close) .ho-go:hover { color: #fff; }

/* the bag: a hanger, the bag, its fill line, the tube and one drop */
.ho-bag path { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ho-bag--solid .ho-bag__body { fill: var(--accent-wash); }
.ho-bag--solid .ho-bag__drop { fill: var(--accent-blue); stroke: var(--accent-blue); }
.ho-bag--open path { stroke: var(--accent-blue); stroke-dasharray: 4 3; }

/* a word set on a drawing: HTML, so it keeps its size when the drawing shrinks */
.ho-lab { position: absolute; font-size: 14px; line-height: 1.2; font-weight: 500; color: var(--ink-muted); white-space: nowrap; }

/* ============ REVEALS ============
   Hidden only once the script has said it is running (ho-js on <html>), so
   with no script nothing is ever hidden. Each part comes in its own way;
   the drawings are never hidden, they draw. */
.ho-js [data-r] { transition: opacity 620ms ease, transform 820ms var(--ho-ease); }
.ho-js [data-r]:not(.is-in) { opacity: 0; transform: translateY(18px); }
.ho-js [data-r="left"]:not(.is-in) { transform: translateX(-28px); }
.ho-js [data-r="right"]:not(.is-in) { transform: translateX(28px); }
.ho-js :is([data-r="months"], [data-r="track"], [data-r="cal"]):not(.is-in) { opacity: 1; transform: none; }

@keyframes ho-up { from { opacity: 0; transform: translateY(22px); } }
@keyframes ho-fade { from { opacity: 0; } }
@keyframes ho-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes ho-land { from { opacity: 0; transform: translateY(-16px); } 60% { opacity: 1; transform: translateY(2px); } }
/* twelve a year: set down one by one, struck through, taken away */
@keyframes ho-ghost { 0% { opacity: 0; transform: translateY(-8px); } 12%, 70% { opacity: .55; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes ho-strike { 0% { stroke-dashoffset: 1; opacity: 1; } 45%, 75% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes ho-drift { from { transform: translateX(-100px); } to { transform: translateX(100px); } }
@keyframes ho-drip { 0%, 62% { opacity: 1; transform: none; } 88% { opacity: 0; transform: translateY(5px); } 89% { opacity: 0; transform: translateY(-2px); } 100% { opacity: 1; transform: none; } }

/* ============ HERO ============ */
.ho-hero { padding-block: clamp(20px, 3vw, 36px) clamp(48px, 6vw, 88px); }
.ho-hero__h1 { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.1rem, 3.9vw, 3.5rem); line-height: 1.06; letter-spacing: -.015em; color: var(--ink); margin: 0 0 clamp(28px, 4vw, 56px); max-width: none; text-wrap: wrap; }
.ho-hero__h1 > em { color: var(--accent-blue); }
.ho-hero__row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.ho-hero__answer { font-size: clamp(1.12rem, 1.5vw, 1.32rem); line-height: 1.6; color: var(--ink); }
.ho-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 28px; }
.ho-hero__reviewed { margin-top: 22px !important; font-size: 14px; line-height: 1.5; color: var(--ink-muted); }

.ho-hero__fig { position: relative; margin: 0; padding-block: 30px 28px; }
.ho-year { display: block; width: 100%; height: auto; overflow: visible; }
.ho-year__line { fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; }
.ho-year__tick { fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; }
.ho-year__window { fill: rgba(45, 110, 177, .07); stroke: var(--accent-blue); stroke-width: 1.4; stroke-dasharray: 5 5; }
.ho-year__strike { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
/* with no script, with reduced motion and on paper the twelve are simply absent */
.ho-year__ghost, .ho-year__strike { opacity: 0; }
.ho-year__ghost { transform-box: fill-box; }
.ho-year__ghost .ho-bag path { stroke: var(--ink-muted); }
.ho-year__first, .ho-year__next { transform-box: fill-box; }
.ho-year .ho-bag__drop { transform-box: fill-box; }

.ho-lab--load { top: 0; left: 0; color: var(--ink); }
.ho-lab--maint { top: 0; left: 71.875%; transform: translateX(-50%); color: var(--accent-blue-hover); }
.ho-lab--six { bottom: 0; left: 50%; transform: translateX(-50%); }
.ho-lab--twelve { bottom: 0; right: 0; }

/* first paint: the year is ruled, twelve bags are tried and struck, one stays,
   and the next finds its window */
.ho-js .ho-hero__h1 > * { animation: ho-up 900ms var(--ho-ease) both; }
.ho-js .ho-hero__h1 > em { animation-delay: 110ms; }
.ho-js .ho-hero__text > * { animation: ho-up 900ms var(--ho-ease) 240ms both; }
.ho-js .ho-hero__text > .ho-hero__actions { animation-delay: 340ms; }
.ho-js .ho-hero__text > .ho-hero__reviewed { animation-delay: 440ms; }
.ho-js .ho-year__line { stroke-dasharray: 1; animation: ho-draw 900ms var(--ho-ease) 200ms both; }
.ho-js .ho-year__tick { animation: ho-fade 400ms ease 800ms both; }
.ho-js .ho-year__first { animation: ho-land 560ms var(--ho-ease) 900ms both; }
.ho-js .ho-year__ghost { animation: ho-ghost 2300ms ease calc(1100ms + var(--i) * 60ms) both; }
.ho-js .ho-year__strike { stroke-dasharray: 1; animation: ho-strike 1300ms var(--ho-ease) 2000ms both; }
.ho-js .ho-year__window { animation: ho-fade 700ms ease 3300ms both; }
.ho-js .ho-year__next { animation: ho-land 620ms var(--ho-ease) 3600ms both; }
.ho-js .ho-lab--load { animation: ho-fade 500ms ease 1200ms both; }
.ho-js :is(.ho-lab--six, .ho-lab--twelve) { animation: ho-fade 500ms ease 1000ms both; }
.ho-js .ho-lab--maint { animation: ho-fade 600ms ease 3500ms both; }
/* then, while it is on screen, the next one moves through its window: the date is not fixed */
.ho-hero__fig.is-live .ho-year__drift { animation: ho-drift 9s ease-in-out 4400ms infinite alternate; }
.ho-hero__fig.is-live .ho-year__first .ho-bag__drop { animation: ho-drip 3.6s ease-in 4400ms infinite; }

/* ============ CONTENTS BAR (follows the reader) ============ */
.ho .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(--ho-ease), visibility 0s 360ms;
}
.ho .hc-bar.is-on { transform: none; opacity: 1; visibility: visible; transition: opacity 260ms, transform 360ms var(--ho-ease); }
body.ho.nav-open .hc-bar { opacity: 0; visibility: hidden; }
.ho .hc-bar__track {
  max-width: calc(1240px + 2 * var(--ho-gut)); margin: 0 auto; padding: 0 var(--ho-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;
}
.ho .hc-bar__track::-webkit-scrollbar { display: none; }
.ho .hc-bar__track a {
  position: relative; flex: none; display: flex; align-items: center;
  font-size: 14px; font-weight: 500; color: var(--ink-muted); white-space: nowrap;
  transition: color 200ms;
}
.ho .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(--ho-ease);
}
.ho .hc-bar__track a:hover, .ho .hc-bar__track a[aria-current] { color: var(--ink); }
.ho .hc-bar__track a:hover::after { transform: scaleX(.35); }
.ho .hc-bar__track a[aria-current]::after { transform: scaleX(1); }
.ho .hc-bar__track a:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: -4px; border-radius: 4px; }
.ho .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 */
.ho .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; }
.ho .hc-bar.has-more::after { opacity: 1; }

/* ============ WHY NOT MONTHLY (the one tinted band) ============ */
.ho-monthly { background: var(--accent-wash); padding-block: clamp(56px, 7vw, 104px); }
.ho-monthly h2 { margin-bottom: clamp(14px, 1.6vw, 22px) !important; }
.ho-monthly__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.ho-monthly__text { display: grid; gap: 20px; justify-items: start; }
.ho-monthly__text p { font-size: 17px; line-height: 1.68; color: var(--ink-soft); }
.ho-monthly__lead { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.28; color: var(--accent-blue-hover); margin-bottom: clamp(28px, 3.4vw, 48px) !important; }
.ho-monthly__side { display: grid; gap: clamp(24px, 3vw, 36px); }

/* two years side by side: a bag in every month, struck out, against the page's
   own rhythm. Time and count only. */
.ho-monthly__fig { margin: 0; display: grid; gap: 8px; }
.ho-monthly__fig .ho-lab { position: static; color: var(--ink); }
.ho-monthly__fig .ho-lab:nth-of-type(2) { margin-top: 18px; color: var(--accent-blue-hover); }
.ho-months { display: block; width: 100%; height: auto; overflow: visible; }
.ho-months__cell { fill: #fff; stroke: var(--border-strong); stroke-width: 1.2; }
.ho-months__strike { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.ho-months--monthly .ho-bag path { stroke: var(--ink-muted); }
.ho-months__bag { transform-box: fill-box; }
.ho-js [data-r="months"]:not(.is-in) :is(.ho-months__bag, .ho-lab) { opacity: 0; }
.ho-js [data-r="months"]:not(.is-in) .ho-months__strike { stroke-dasharray: 1; stroke-dashoffset: 1; }
.ho-js [data-r="months"].is-in .ho-lab { animation: ho-fade 500ms ease both; }
.ho-js [data-r="months"].is-in .ho-months--monthly .ho-months__bag { animation: ho-land 420ms var(--ho-ease) calc(200ms + var(--i) * 70ms) both; }
.ho-js [data-r="months"].is-in .ho-months__strike { stroke-dasharray: 1; animation: ho-draw 700ms var(--ho-ease) 1250ms both; }
.ho-js [data-r="months"].is-in .ho-months--rhythm .ho-months__bag { animation: ho-land 520ms var(--ho-ease) calc(2000ms + var(--i) * 90ms) both; }

.ho-ask { background: #fff; border-left: 3px solid var(--accent-blue); padding: clamp(20px, 2.4vw, 30px) clamp(20px, 2.6vw, 32px); }
.ho-ask h3 { font-family: var(--font-display); font-weight: 400; font-style: italic; font-size: clamp(1.3rem, 1.8vw, 1.6rem); line-height: 1.2; color: var(--ink); margin-bottom: 10px; }
.ho-ask p { font-size: 17px; line-height: 1.65; color: var(--ink-soft); }

/* ============ LOADING: three ways to start, each on its own line of time ============ */
.ho-loading { padding-block: clamp(56px, 7vw, 104px); }
.ho-loading__head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-bottom: clamp(28px, 4vw, 52px); }
.ho-loading__head p { font-size: clamp(1.08rem, 1.4vw, 1.25rem); line-height: 1.6; color: var(--ink-soft); }
.ho-plan { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 5vw, 88px); align-items: center; padding-block: clamp(24px, 3vw, 40px); border-top: 1px solid var(--border); }
.ho-plan:last-child { border-bottom: 1px solid var(--border); }
.ho-plan h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.45rem, 2.1vw, 1.9rem); line-height: 1.15; color: var(--ink); margin-bottom: 10px; }
.ho-plan__text p { font-size: 17px; line-height: 1.65; color: var(--ink-soft); }
.ho-plan__draw ul { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 12px !important; }
.ho-plan__draw li { position: relative; padding-left: 14px; font-size: 15px; line-height: 1.5; color: var(--ink-muted); }
.ho-plan__draw li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-blue); }

.ho-track { display: block; width: 100%; max-width: 620px; height: auto; overflow: visible; }
.ho-track__line, .ho-track__tick { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.ho-track__tail { fill: none; stroke: var(--ink-muted); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 2 7; }
.ho-track__look :is(circle, path), .ho-track__pause :is(circle, path) { fill: none; stroke: var(--accent-blue); stroke-width: 1.8; stroke-linecap: round; }
.ho-track__stop { transform-box: fill-box; }
/* the line is ruled left to right and each stop is set down as the line reaches it */
.ho-js [data-r="track"]:not(.is-in) .ho-track__line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.ho-js [data-r="track"]:not(.is-in) :is(.ho-track__stop, .ho-track__tail, .ho-track__tick) { opacity: 0; }
.ho-js [data-r="track"].is-in .ho-track__line { stroke-dasharray: 1; animation: ho-draw 1100ms linear 150ms both; }
.ho-js [data-r="track"].is-in .ho-track__tick { animation: ho-fade 300ms ease 200ms both; }
.ho-js [data-r="track"].is-in .ho-track__stop { animation: ho-land 520ms var(--ho-ease) calc(150ms + var(--i) * 550ms) both; }
.ho-js [data-r="track"].is-in .ho-track__tail { animation: ho-fade 500ms ease 1300ms both; }

/* ============ MAINTENANCE (navy) ============ */
.ho-maint { background: var(--navy-brand); color: #fff; padding-block: clamp(56px, 7vw, 104px); }
.ho-maint h2 { color: #fff !important; margin-bottom: clamp(24px, 3vw, 44px) !important; }
.ho-maint__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.ho-maint__text { display: grid; gap: 20px; justify-items: start; }
.ho-maint__text p { font-size: 17px; line-height: 1.68; color: rgba(255, 255, 255, .82); }
.ho-maint__text .ho-maint__lead { font-size: clamp(1.12rem, 1.5vw, 1.3rem); line-height: 1.6; color: #fff; }

/* two years, twelve months each: one infusion in each, and room for a second */
.ho-cal { display: block; width: 100%; height: auto; overflow: visible; }
.ho-cal__cell { fill: none; stroke: rgba(255, 255, 255, .38); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.ho-cal__mark { fill: var(--accent-ice); stroke: var(--accent-ice); stroke-width: 1.6; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; }
.ho-cal__mark--maybe { fill: none; stroke-dasharray: 3 3; }
@keyframes ho-cell { from { opacity: 0; transform: translateY(8px); } }
@keyframes ho-pop { from { opacity: 0; transform: scale(.3); } 70% { transform: scale(1.15); } }
.ho-cal__cell { transform-box: fill-box; }
.ho-js [data-r="cal"]:not(.is-in) :is(.ho-cal__cell, .ho-cal__mark) { opacity: 0; }
.ho-js [data-r="cal"].is-in .ho-cal__cell { animation: ho-cell 420ms var(--ho-ease) calc(var(--i) * 45ms) both; }
.ho-js [data-r="cal"].is-in .ho-cal__mark { animation: ho-pop 520ms var(--ho-ease) calc(700ms + var(--i) * 90ms) both; }

/* the first two years as a route: the line fills as the reader moves along it */
.ho-route { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); margin-top: clamp(40px, 5vw, 72px) !important; padding-top: 34px !important; }
.ho-route::before, .ho-route::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; }
.ho-route::before { background: rgba(255, 255, 255, .22); }
.ho-route::after { background: var(--accent-ice); transform-origin: left; transform: scaleX(var(--ho-p, 1)); }
.ho-route li { position: relative; }
.ho-route__dot { position: absolute; left: 0; top: -34px; width: 16px; height: 16px; border-radius: 50%; background: var(--navy-brand); border: 2px solid var(--accent-ice); z-index: 1; transition: background 300ms, transform 420ms var(--ho-ease); }
.ho-route li.is-passed .ho-route__dot { background: var(--accent-ice); transform: scale(1.15); }
.ho-route__when { font-size: 15px; font-weight: 600; color: var(--accent-ice); margin-bottom: 6px !important; }
.ho-route h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.3rem, 1.8vw, 1.6rem); line-height: 1.2; color: #fff; margin-bottom: 10px; }
.ho-route li > p:last-child { font-size: 16px; line-height: 1.62; color: rgba(255, 255, 255, .8); }
/* a stop not yet reached is quieter; its date keeps full strength so it stays readable */
.ho-js .ho-route li > :is(h3, p:last-child) { transition: opacity 500ms; }
.ho-js .ho-route[data-live] li:not(.is-passed) > :is(h3, p:last-child) { opacity: .74; }

/* ============ QUESTIONS ============ */
.ho-faq { padding-block: clamp(56px, 7vw, 104px); }
.ho-faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 88px); align-items: start; }
.ho-q { border-top: 1px solid var(--border-strong); }
.ho-q:last-child { border-bottom: 1px solid var(--border-strong); }
.ho-q summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; padding-block: 20px; cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.25rem, 1.8vw, 1.55rem); line-height: 1.25; color: var(--ink); transition: color 200ms; }
.ho-q summary::-webkit-details-marker { display: none; }
.ho-q summary:hover { color: var(--accent-blue-hover); }
.ho-q__ic { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border-strong); transition: border-color 200ms, background 200ms, transform 420ms var(--ho-ease); }
.ho-q__ic::before, .ho-q__ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; margin: -.75px 0 0 -5.5px; background: var(--ink); transition: transform 420ms var(--ho-ease), background 200ms; }
.ho-q__ic::after { transform: rotate(90deg); }
.ho-q summary:hover .ho-q__ic { border-color: var(--accent-blue); }
.ho-q[open] .ho-q__ic { transform: rotate(180deg); background: var(--ink); border-color: var(--ink); }
.ho-q[open] .ho-q__ic::before, .ho-q[open] .ho-q__ic::after { background: #fff; }
.ho-q[open] .ho-q__ic::after { transform: rotate(0deg); }
.ho-q__a { padding-bottom: 22px; }
.ho-q__a p { font-size: 17px; line-height: 1.68; color: var(--ink-soft); }
.ho-q__a .ho-go { margin-top: 6px; }
@keyframes ho-unfold { from { opacity: 0; transform: translateY(-8px); } }
.ho-q[open] .ho-q__a { animation: ho-unfold 420ms var(--ho-ease); }

/* ============ CLOSING (navy) ============ */
.ho-close { background: var(--navy-brand); color: #fff; padding-block: clamp(64px, 8vw, 120px) clamp(40px, 5vw, 64px); text-align: center; }
.ho-close__inner { display: grid; justify-items: center; }
.ho-close h2 { color: #fff !important; font-size: clamp(2.1rem, 4vw, 3.4rem) !important; margin-bottom: 20px !important; }
.ho-close h2 em { color: var(--accent-ice); }
/* the one narrow, centred block on the page: the call */
.ho-close__inner > p { max-width: 640px !important; font-size: 17px; line-height: 1.7; color: rgba(255, 255, 255, .82); margin-bottom: 32px !important; }
.ho-close .ho-close__fine { margin: 26px 0 0 !important; font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, .72); }
.ho-more { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px clamp(20px, 3vw, 44px); width: 100%; margin-top: clamp(40px, 5vw, 64px); padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .18); }

/* a press is felt before the page answers it */
.ho-go:active span { transform: translateX(2px) scale(.94); }
.ho .hc-bar__track a:active { color: var(--accent-blue-hover); }
.ho-q summary:active .ho-q__ic { transform: scale(.9); }
.ho-q[open] summary:active .ho-q__ic { transform: rotate(180deg) scale(.9); }
/* selected text takes the page's own blue, and stays legible on navy */
.ho main ::selection { background: var(--accent-blue); color: #fff; }

/* a part reached by a jump says so, once */
@keyframes ho-here { from { background-size: 100% .12em; } to { background-size: 0 .12em; } }
.ho-js main h2.is-landed { background: linear-gradient(var(--accent-ice), var(--accent-ice)) left 100% / 0 .12em no-repeat; animation: ho-here 1400ms var(--ho-ease) 200ms backwards; }

/* ============ NARROWER ============ */
@media (max-width: 899px) {
  .ho-hero__row, .ho-monthly__grid, .ho-maint__grid, .ho-faq__grid { grid-template-columns: minmax(0, 1fr); }
  .ho-plan { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .ho-maint__grid .ho-cal { max-width: 520px; }
  .ho-route { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 0 !important; padding-left: 34px !important; }
  /* down a phone the line is drawn stop to stop, so it ends on the last one */
  .ho-route::before, .ho-route::after { content: none; }
  .ho-route li:not(:last-child)::before, .ho-route li:not(:last-child)::after { content: ""; position: absolute; left: -27px; top: 12px; width: 2px; height: calc(100% + 28px); }
  .ho-route li:not(:last-child)::before { background: rgba(255, 255, 255, .22); }
  .ho-route li:not(:last-child)::after { background: var(--accent-ice); transform-origin: top; transition: transform 700ms var(--ho-ease); }
  .ho-route[data-live] li:not(:has(+ li.is-passed))::after { transform: scaleY(0); }
  .ho-route__dot { left: -34px; top: 4px; }
}
@media (max-width: 599px) {
  .ho-hero__actions .btn { width: 100%; }
  .ho-lab { font-size: 13px; }
  .ho-more { flex-direction: column; align-items: flex-start; }
  .ho-close { text-align: left; }
  .ho-close__inner { justify-items: start; }
  .ho-close .btn { width: 100%; }
  .ho-close__inner > div { width: 100%; }
}

/* ============ REDUCED MOTION: the end states, held ============ */
@media (prefers-reduced-motion: reduce) {
  .ho main *, .ho main *::before, .ho main *::after { animation: none !important; transition: none !important; }
  .ho-js [data-r] { opacity: 1 !important; transform: none !important; }
  .ho-js [data-r] :is(.ho-months__strike, .ho-track__line) { stroke-dashoffset: 0 !important; }
  .ho-js [data-r] :is(.ho-months__bag, .ho-lab, .ho-track__stop, .ho-track__tail, .ho-track__tick, .ho-cal__cell, .ho-cal__mark) { opacity: 1 !important; }
  .ho-js .ho-route li > * { opacity: 1 !important; }
}

/* ============ PRINT: the finished page, dark on white ============ */
@media print {
  .ho .hc-bar, .ho-go[href^="#"], .ho-q__ic { display: none !important; }
  .ho main *, .ho main *::before, .ho main *::after { animation: none !important; transition: none !important; }
  .ho-js [data-r] { opacity: 1 !important; transform: none !important; }
  .ho-js [data-r] :is(.ho-months__strike, .ho-track__line) { stroke-dashoffset: 0 !important; }
  .ho-js [data-r] :is(.ho-months__bag, .ho-lab, .ho-track__stop, .ho-track__tail, .ho-track__tick, .ho-cal__cell, .ho-cal__mark) { opacity: 1 !important; }
  .ho-year__ghost, .ho-year__strike { opacity: 0 !important; }
  .ho-js .ho-route li > * { opacity: 1 !important; }
  .ho-route::after, .ho-route li::after { transform: none !important; }
  .ho-monthly, .ho-maint, .ho-close { background: none !important; color: var(--ink) !important; }
  .ho :is(.ho-maint, .ho-close) :is(h2, h3, p, em, a, li) { color: var(--ink) !important; }
  .ho-cal__cell { stroke: var(--ink-muted); }
  .ho-cal__mark { stroke: var(--ink); fill: var(--ink); }
  .ho-cal__mark--maybe { fill: none; }
  .ho-route::before, .ho-route li::before { background: var(--ink-muted) !important; }
  .ho-route::after, .ho-route li::after { background: var(--ink) !important; }
  .ho-route__dot { background: #fff; border-color: var(--ink); }
  .ho-plan, .ho-q, .ho-ask, .ho-route li, .ho-monthly__fig { break-inside: avoid; }
}
