/* ============================================================
   IV stem cell therapy hub (hub-iv-longevity.html)
   The page's own sheet, loaded after site.css. Every class is
   prefixed ivl- (the bar that follows the reader is hc-, the name
   the site's other long pages use), so nothing collides with a
   site.css rule.
   Type: var(--font-display) and var(--font-body) are Ivy Presto
   Display and Geist on the live site.
   Hidden-until-revealed states exist only under html.ivl-js, which
   scripts/hub-iv-longevity.js sets: no script, nothing hidden.
   ============================================================ */

html:has(main.ivl) {
  --hc-nav-h: 70px;
  --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);
}

.ivl {
  --ivl-ink: #0B1D3A;
  --ivl-soft: #1C3461;
  --ivl-muted: #4A6480;
  --ivl-navy: #132C5B;
  --ivl-blue: #2D6EB1;
  --ivl-blue-deep: #1A4B7A;
  --ivl-ice: #7CA9D1;
  --ivl-wash: #EAF1F8;
  --ivl-rule: rgba(11, 29, 58, 0.12);
  --ivl-ease: cubic-bezier(.16, 1, .3, 1);
  --ivl-wrap: 1200px;
  --ivl-gutter: clamp(20px, 4vw, 56px);
  color: var(--ivl-ink);
  font-family: var(--font-body);
  /* parts waiting to slide in never cause sideways scroll */
  overflow-x: clip;
}
.ivl p { max-width: none; margin: 0; }
.ivl h1, .ivl h2, .ivl h3 { margin: 0; font-family: var(--font-display); letter-spacing: 0.015em; color: inherit; }
.ivl ol, .ivl ul { list-style: none; margin: 0; padding: 0; }
/* colors_and_type.css underlines every link in grey; the page draws its own */
.ivl a:not(.ivl-btn):not(.ivl-route) { border-bottom: 0; }
.ivl-wrap { max-width: var(--ivl-wrap); margin: 0 auto; padding: 0 var(--ivl-gutter); }
.ivl-sec { padding: clamp(80px, 11vw, 148px) 0; position: relative; }
.ivl-sec--wash { background: var(--ivl-wash); }
.ivl-sec--navy { background: var(--ivl-navy); color: #fff; }
.ivl-h2 { font-size: clamp(2.375rem, 4.6vw, 4.25rem); font-weight: 300; line-height: 1.04; }
.ivl-h2:focus { outline: none; }
/* the rule a jump draws under the heading it lands on (the script animates its length) */
.ivl-sec > .ivl-wrap h2 { width: fit-content; max-width: 100%; padding-bottom: .08em; background: linear-gradient(var(--ivl-blue), var(--ivl-blue)) 0 100% / 0 2px no-repeat; }
.ivl-sec--navy h2, .ivl-close h2 { background-image: linear-gradient(var(--ivl-ice), var(--ivl-ice)); }
.ivl-lede { font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.6; color: var(--ivl-soft); }
.ivl-sec--navy .ivl-lede { color: rgba(255, 255, 255, 0.8); }

/* ---------- reveals (the script adds .is-in) ---------- */
.ivl-js .ivl [data-rv] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ivl-ease), transform .9s var(--ivl-ease); transition-delay: calc(var(--rv-i, 0) * 90ms); }
.ivl-js .ivl [data-rv].is-in { opacity: 1; transform: none; }
/* Headings come out of a soft blur. Never a clip: an element clipped to no
   area can read as off screen to an IntersectionObserver and never reveal. */
.ivl-js .ivl h2[data-rv] { transform: translateY(18px); filter: blur(8px); transition: opacity 1s var(--ivl-ease), transform 1s var(--ivl-ease), filter 1s var(--ivl-ease); }
.ivl-js .ivl h2[data-rv].is-in { transform: none; filter: none; }
/* parts that stage their own entrance stay in place and let their insides move */
.ivl-js .ivl .ivl-person[data-rv], .ivl-js .ivl .ivl-mech__step[data-rv], .ivl-js .ivl [data-rv="line"] { opacity: 1; transform: none; }

/* ---------- buttons and links ---------- */
.ivl-btn {
  display: inline-flex; align-items: center; gap: 10px; position: relative; overflow: hidden;
  min-height: 52px; padding: 0 30px; border-radius: 4px; background: var(--ivl-blue); color: #fff;
  font: 500 16px/1 var(--font-body); letter-spacing: .01em; text-decoration: none;
  transition: background .3s var(--ivl-ease), transform .3s var(--ivl-ease), box-shadow .3s var(--ivl-ease);
}
.ivl-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-120%); }
.ivl-btn:hover { background: var(--ivl-blue-deep); transform: translateY(-2px); box-shadow: 0 18px 40px rgba(11,29,58,.22); color: #fff; }
.ivl-btn:hover::after { animation: ivl-sheen .9s var(--ivl-ease); }
.ivl-btn:active { transform: translateY(0) scale(.98); box-shadow: none; transition-duration: .08s; }
.ivl-arr { display: inline-block; transition: transform .3s var(--ivl-ease); }
a:hover > .ivl-arr { transform: translateX(4px); }
.ivl-btn--ice { background: #fff; color: var(--ivl-navy); }
.ivl-btn--ice:hover { background: var(--ivl-wash); color: var(--ivl-navy); }
.ivl-link, .ivl-faq__a a, .ivl-more__else a {
  color: var(--ivl-blue); font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
  text-decoration-color: rgba(45, 110, 177, .35);
  transition: text-decoration-color .3s var(--ivl-ease), color .3s var(--ivl-ease);
}
/* 44px tall to a finger without moving the line it sits on */
.ivl-link { display: inline-block; padding-block: 11px; margin-block: -11px; }
.ivl-link .ivl-arr { margin-left: 6px; }
.ivl-link:hover, .ivl-faq__a a:hover, .ivl-more__else a:hover { color: var(--ivl-blue-deep); text-decoration-color: currentColor; }
.ivl-sec--navy .ivl-link { color: var(--ivl-ice); text-decoration-color: rgba(124, 169, 209, .45); }
.ivl-sec--navy .ivl-link:hover { color: #fff; }
.ivl a:focus-visible, .ivl-faq__item summary:focus-visible { outline: 2px solid var(--ivl-blue); outline-offset: 4px; border-radius: 3px; }
.ivl-sec--navy a:focus-visible, .ivl-close a:focus-visible { outline-color: var(--ivl-ice); }

/* ---------- hero: the first paint is staged in CSS alone ---------- */
.ivl-hero { padding: clamp(120px, 12vw, 168px) 0 clamp(64px, 8vw, 110px); }
.ivl-hero__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: clamp(40px, 6vw, 96px); row-gap: clamp(32px, 4vw, 52px); align-items: start; }
.ivl-hero h1 { grid-column: 1 / -1; font-size: clamp(3rem, 7.4vw, 7rem); font-weight: 300; line-height: 1; }
.ivl-line { display: block; overflow: hidden; padding-bottom: .12em; }
.ivl-line > span { display: inline-block; animation: ivl-rise 1.1s var(--ivl-ease) both; }
.ivl-hero__say { font-family: var(--font-display); font-size: clamp(1.625rem, 2.5vw, 2.25rem); font-weight: 300; line-height: 1.2; letter-spacing: 0.015em; color: var(--ivl-blue-deep); }
.ivl-hero__say > span { display: inline-block; animation: ivl-fade-up .9s var(--ivl-ease) .3s both; }
.ivl-hero__say > span + span { animation-delay: .5s; }
.ivl .ivl-hero__sub { margin-top: 22px; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.6; color: var(--ivl-soft); animation: ivl-fade-up .9s var(--ivl-ease) .65s both; }
.ivl-hero__ctas { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; animation: ivl-fade-up .9s var(--ivl-ease) .8s both; }
.ivl-hero__media { position: relative; margin: 0; aspect-ratio: 5 / 4; border-radius: 6px; overflow: hidden; background: var(--ivl-wash); animation: ivl-unveil 1.4s var(--ivl-ease) .15s both; }
/* The photo and its loop overhang the frame by 44px each way: the script
   drifts them up to 40px as the page scrolls and the edge is never exposed. */
.ivl-hero__media img[width][height], .ivl-hero__media video { position: absolute; left: 0; top: -44px; width: 100%; height: calc(100% + 88px); object-fit: cover; object-position: 50% 40%; display: block; animation: ivl-settle 2.2s var(--ivl-ease) .15s both; }

/* ---------- photo loops (the still underneath; the still alone under reduced motion) ---------- */
.ivl-loop { opacity: 0; transition: opacity .8s var(--ivl-ease); }
.ivl-loop.is-playing { opacity: 1; }

/* ---------- why people book it: three photographs, no boxes ---------- */
.ivl-who { padding-top: clamp(40px, 5vw, 72px); }
.ivl-who__head { display: grid; gap: 20px; margin-bottom: clamp(40px, 5vw, 64px); }
.ivl-who__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(18px, 2.4vw, 36px); row-gap: 0; }
/* The three share rows (photo, title, text, plan) through subgrid, so a
   two-line title in one lowers the text of all three and the plan lines
   sit on one line across the row. */
.ivl-person { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
.ivl-person__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: var(--ivl-wash); }
.ivl-person__media img[width][height], .ivl-person__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ivl-person__body { grid-row: 2 / span 3; display: grid; grid-template-rows: subgrid; row-gap: 14px; padding-top: clamp(22px, 2.2vw, 30px); }
.ivl-person h3 { font-size: clamp(1.625rem, 2.1vw, 2.125rem); font-weight: 400; line-height: 1.1; }
.ivl-person p { font-size: 1rem; line-height: 1.6; color: var(--ivl-soft); }
.ivl-person .ivl-person__plan { align-self: start; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--ivl-rule); font-size: .9375rem; color: var(--ivl-muted); display: flex; gap: 10px; align-items: flex-start; }
.ivl-person__plan svg { flex: none; width: 20px; height: 20px; color: var(--ivl-blue); margin-top: 1px; }
/* each photograph is uncovered from its foot, one after the next */
.ivl-js .ivl-person .ivl-person__media { clip-path: inset(100% 0 0 0 round 6px); transition: clip-path 1.2s var(--ivl-ease) calc(var(--rv-i, 0) * 150ms); }
.ivl-js .ivl-person .ivl-person__media img { transform: scale(1.1); transition: transform 1.8s var(--ivl-ease) calc(var(--rv-i, 0) * 150ms); }
.ivl-js .ivl-person .ivl-person__body { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ivl-ease) calc(var(--rv-i, 0) * 150ms + .35s), transform .9s var(--ivl-ease) calc(var(--rv-i, 0) * 150ms + .35s); }
.ivl-js .ivl-person.is-in .ivl-person__media { clip-path: inset(0 0 0 0 round 6px); }
.ivl-js .ivl-person.is-in .ivl-person__media img { transform: none; }
.ivl-js .ivl-person.is-in .ivl-person__body { opacity: 1; transform: none; }
@supports not (grid-template-rows: subgrid) {
  .ivl-person, .ivl-person__body { display: flex; flex-direction: column; }
  .ivl-person__body { gap: 14px; flex: 1; }
}

/* ---------- what is in the IV: four stations, each drawn above its own words ---------- */
.ivl-mech__head { display: grid; gap: 24px; margin-bottom: clamp(44px, 5vw, 72px); }
.ivl-mech__head .ivl-link { margin-left: 2px; }
.ivl-mech__steps { --mech-gap: clamp(24px, 3.4vw, 48px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--mech-gap); row-gap: 40px; }
.ivl-mech__step { position: relative; }
.ivl-mech__art { position: relative; height: 96px; margin-bottom: 26px; }
.ivl-mech__art svg { display: block; width: 120px; height: 96px; overflow: visible; }
.ivl-s { fill: none; stroke: var(--ivl-ice); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ivl-s--bag { stroke: rgba(255, 255, 255, .78); fill: rgba(255, 255, 255, .05); }
.ivl-s--level { stroke: rgba(255, 255, 255, .4); }
.ivl-s--stub { stroke: rgba(124, 169, 209, .6); }
.ivl-lung { fill: rgba(124, 169, 209, .1); transform-box: fill-box; transform-origin: 50% 15%; }
.ivl-drop { fill: var(--ivl-ice); }
.ivl-node { fill: var(--ivl-navy); stroke: var(--ivl-ice); stroke-width: 1.6; }
.ivl-core, .ivl-ves { fill: var(--ivl-ice); }
.ivl-ring { fill: none; stroke: var(--ivl-ice); stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.ivl-ves { transform-box: fill-box; transform-origin: center; }
/* the tube between one station and the next, with a cell travelling along it */
.ivl-mech__run { position: absolute; left: 120px; right: calc(-1 * var(--mech-gap)); top: 47px; height: 2px; background: rgba(124, 169, 209, .6); transform-origin: left; }
.ivl-mech__run i { position: absolute; inset: -3px 0; transform: translateX(-100%); opacity: 0; }
.ivl-mech__run i::after { content: ""; position: absolute; right: 0; top: 0; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.ivl-mech__step h3 { font-size: clamp(1.375rem, 1.7vw, 1.625rem); font-weight: 400; line-height: 1.15; margin-bottom: 10px; color: #fff; }
.ivl-mech__step p { font-size: .96875rem; line-height: 1.6; color: rgba(255, 255, 255, .78); }
.ivl .ivl-mech__why { margin-top: clamp(48px, 6vw, 80px); padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, .18); font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2.25rem); font-weight: 300; line-height: 1.3; letter-spacing: 0.015em; color: #fff; }
/* drawn in, station by station, when the row arrives */
.ivl-js .ivl-mech__step .ivl-s { stroke-dasharray: 1 1.2; stroke-dashoffset: 1.1; opacity: 0; transition: stroke-dashoffset 1.2s var(--ivl-ease) calc(var(--rv-i, 0) * 260ms + .1s), opacity .2s linear calc(var(--rv-i, 0) * 260ms + .1s); }
.ivl-js .ivl-mech__step :is(.ivl-node, .ivl-core, .ivl-ves, .ivl-drop) { opacity: 0; transition: opacity .6s var(--ivl-ease) calc(var(--rv-i, 0) * 260ms + .7s); }
.ivl-js .ivl-mech__step .ivl-mech__run { transform: scaleX(0); transition: transform .7s var(--ivl-ease) calc(var(--rv-i, 0) * 260ms + .75s); }
.ivl-js .ivl-mech__step :is(h3, p) { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ivl-ease) calc(var(--rv-i, 0) * 260ms + .3s), transform .8s var(--ivl-ease) calc(var(--rv-i, 0) * 260ms + .3s); }
.ivl-js .ivl-mech__step.is-in .ivl-s { stroke-dashoffset: 0; opacity: 1; }
.ivl-js .ivl-mech__step.is-in :is(.ivl-node, .ivl-core, .ivl-ves, .ivl-drop) { opacity: 1; }
.ivl-js .ivl-mech__step.is-in .ivl-mech__run { transform: none; }
.ivl-js .ivl-mech__step.is-in :is(h3, p) { opacity: 1; transform: none; }
/* and alive only while the band is on screen (the script toggles .is-live) */
.ivl-mech.is-live .ivl-drop { animation: ivl-drip 1.8s cubic-bezier(.5, 0, .8, .4) infinite; }
.ivl-mech.is-live .ivl-lung { animation: ivl-breathe 4.8s ease-in-out infinite; }
.ivl-mech.is-live .ivl-lung--b { animation-delay: .15s; }
.ivl-mech.is-live .ivl-ring { animation: ivl-ripple 3.6s var(--ivl-ease) infinite; }
.ivl-mech.is-live .ivl-ring--2 { animation-delay: 1.2s; }
.ivl-mech.is-live .ivl-ring--3 { animation-delay: 2.4s; }
.ivl-mech.is-live .ivl-ring--cell { animation-name: ivl-ripple-cell; }
.ivl-mech.is-live .ivl-ves { animation: ivl-drift 3.6s ease-out infinite; }
.ivl-mech.is-live .ivl-ves--2 { animation-delay: .9s; }
.ivl-mech.is-live .ivl-ves--3 { animation-delay: 1.8s; }
.ivl-mech.is-live .ivl-mech__run i { animation: ivl-travel 4.2s cubic-bezier(.45, 0, .55, 1) calc(var(--rv-i, 0) * 1.4s + 1.6s) infinite; }

/* ---------- the afternoon: a rail that fills as it is read ---------- */
.ivl-day__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: clamp(40px, 7vw, 120px); row-gap: clamp(36px, 4vw, 60px); align-items: start; }
.ivl-day__title { grid-column: 1 / -1; }
.ivl-day__head { position: sticky; top: calc(var(--hc-nav-h) + var(--hc-bar-h) + 28px); display: flex; flex-direction: column; gap: 14px; }
.ivl-day__rail { position: relative; }
.ivl-day__step { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 24px; padding: 0 0 clamp(34px, 3.6vw, 48px); }
.ivl-day__step:last-child { padding-bottom: 0; }
.ivl-day__step:not(:last-child)::before, .ivl-day__step:not(:last-child)::after { content: ""; position: absolute; left: 27px; top: 56px; bottom: 0; width: 2px; background: var(--ivl-rule); }
.ivl-day__step:not(:last-child)::after { background: var(--ivl-blue); transform-origin: top; transform: scaleY(var(--ivl-seg, 1)); }
.ivl-js .ivl-day__step:not(:last-child)::after { transform: scaleY(var(--ivl-seg, 0)); }
.ivl-day__icon { width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 1.5px solid var(--ivl-rule); display: grid; place-items: center; color: var(--ivl-muted); position: relative; z-index: 1; transition: border-color .5s var(--ivl-ease), color .5s var(--ivl-ease), background .5s var(--ivl-ease); }
.ivl-day__icon svg { width: 24px; height: 24px; }
.ivl-day__step.is-lit .ivl-day__icon { border-color: var(--ivl-blue); color: var(--ivl-blue); background: var(--ivl-wash); }
.ivl-day__step.is-lit .ivl-day__icon path[pathLength] { stroke-dasharray: 1 1.2; animation: ivl-draw 1s var(--ivl-ease) both; }
.ivl-day__step.is-lit .ivl-day__icon::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--ivl-blue); opacity: 0; animation: ivl-halo 1.6s var(--ivl-ease); }
.ivl-day__step h3 { font-size: clamp(1.5rem, 1.9vw, 1.875rem); font-weight: 400; line-height: 1.15; padding-top: 12px; margin-bottom: 10px; }
.ivl-day__step p { font-size: 1rem; line-height: 1.65; color: var(--ivl-soft); }
.ivl-js .ivl .ivl-day__step[data-rv] { transform: translateX(22px); }
.ivl-js .ivl .ivl-day__step[data-rv].is-in { transform: none; }

/* ---------- what it won't do: the page's one tinted band ---------- */
.ivl-limits__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: clamp(40px, 5vw, 64px); }
.ivl-limit { background: #fff; border-radius: 6px; padding: clamp(28px, 3vw, 44px); display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 24px; align-items: start; }
.ivl-limit__icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--ivl-navy); background: var(--ivl-wash); position: relative; }
.ivl-limit__icon svg { width: 26px; height: 26px; }
/* each claim is struck through as its card arrives */
.ivl-limit__icon::after { content: ""; position: absolute; left: 12px; right: 12px; top: 50%; height: 1.6px; background: var(--ivl-blue); transform: rotate(-45deg); }
.ivl-js .ivl-limit .ivl-limit__icon::after { transform: rotate(-45deg) scaleX(0); transition: transform .7s var(--ivl-ease) calc(var(--rv-i, 0) * 110ms + .45s); }
.ivl-js .ivl-limit.is-in .ivl-limit__icon::after { transform: rotate(-45deg) scaleX(1); }
.ivl-js .ivl .ivl-limit[data-rv] { transform: scale(.96); }
.ivl-js .ivl .ivl-limit[data-rv].is-in { transform: none; }
.ivl-limit h3 { font-size: clamp(1.625rem, 2.2vw, 2.125rem); font-weight: 400; line-height: 1.1; margin-bottom: 10px; }
.ivl-limit p { font-size: 1rem; line-height: 1.6; color: var(--ivl-soft); }

/* ---------- what you may feel: a line through five moments ---------- */
.ivl-feel__head { display: grid; gap: 20px; }
.ivl-feel__line { position: relative; margin-top: clamp(48px, 6vw, 80px); }
.ivl-feel__bar { position: relative; height: 2px; margin: 108px 0 0; background: var(--ivl-rule); }
.ivl-feel__bar > span { position: absolute; inset: 0; background: var(--ivl-blue); transform-origin: left; }
.ivl-feel__stops { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); margin-top: 8px; }
.ivl-feel__stop { position: relative; padding-top: 30px; }
.ivl-feel__dot { position: absolute; top: -17px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--ivl-blue); }
.ivl-feel__stop:first-child .ivl-feel__dot { background: var(--ivl-blue); }
/* one small line drawing above each moment: warmth, sleep, moving again, markers, the calendar */
.ivl-feel__pic { position: absolute; left: -4px; top: -84px; width: 52px; height: 52px; color: var(--ivl-blue); }
.ivl-feel__pic svg { display: block; width: 100%; height: 100%; }
.ivl-feel__pic path { stroke-width: .7; }
.ivl-feel__when { font-family: var(--font-display); font-size: clamp(1.375rem, 1.8vw, 1.75rem); font-weight: 400; letter-spacing: 0.015em; line-height: 1.1; margin-bottom: 10px; }
.ivl-feel__stop p { font-size: .96875rem; line-height: 1.6; color: var(--ivl-soft); }
.ivl .ivl-feel__more { margin-top: clamp(32px, 4vw, 48px); }
.ivl-js .ivl-feel__line .ivl-feel__bar > span { transform: scaleX(0); }
.ivl-js .ivl-feel__line .ivl-feel__dot { transform: scale(0); }
.ivl-js .ivl-feel__line .ivl-feel__pic path { stroke-dasharray: 1 1.2; stroke-dashoffset: 1.1; opacity: 0; transition: stroke-dashoffset 1.1s var(--ivl-ease) calc(var(--rv-i, 0) * 420ms + .5s), opacity .2s linear calc(var(--rv-i, 0) * 420ms + .5s); }
.ivl-js .ivl-feel__line.is-in .ivl-feel__pic path { stroke-dashoffset: 0; opacity: 1; }
.ivl-js .ivl-feel__line .ivl-feel__stop > :not(.ivl-feel__dot, .ivl-feel__pic) { opacity: 0; transition: opacity .8s var(--ivl-ease) calc(var(--rv-i, 0) * 420ms + .45s); }
.ivl-js .ivl-feel__line.is-in .ivl-feel__bar > span { animation: ivl-grow 2.4s var(--ivl-ease) .2s forwards; }
.ivl-js .ivl-feel__line.is-in .ivl-feel__dot { animation: ivl-pop .6s var(--ivl-ease) calc(var(--rv-i, 0) * 420ms + .35s) forwards; }
.ivl-js .ivl-feel__line.is-in .ivl-feel__stop > :not(.ivl-feel__dot, .ivl-feel__pic) { opacity: 1; }

/* ---------- questions ---------- */
.ivl-faq { border-top: 1px solid var(--ivl-rule); }
.ivl-faq__grid { display: grid; gap: clamp(36px, 4vw, 56px); }
.ivl-faq__list { border-top: 1px solid var(--ivl-rule); }
.ivl-faq__item { border-bottom: 1px solid var(--ivl-rule); }
.ivl-faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 44px; padding: 26px 0; font-family: var(--font-display); font-size: clamp(1.375rem, 1.9vw, 1.75rem); font-weight: 400; letter-spacing: 0.015em; line-height: 1.2; transition: color .3s var(--ivl-ease); }
.ivl-faq__item summary::-webkit-details-marker { display: none; }
.ivl-faq__item summary::after { content: none; }
.ivl-faq__item summary:hover { color: var(--ivl-blue); }
.ivl-faq__ic { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--ivl-rule); position: relative; transition: background .35s var(--ivl-ease), border-color .35s var(--ivl-ease), transform .45s var(--ivl-ease); }
.ivl-faq__item summary:hover .ivl-faq__ic { border-color: var(--ivl-blue); }
.ivl-faq__ic::before, .ivl-faq__ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .45s var(--ivl-ease); }
.ivl-faq__ic::after { transform: translate(-50%, -50%) rotate(90deg); }
.ivl-faq__item[open] .ivl-faq__ic { background: var(--ivl-blue); border-color: var(--ivl-blue); color: #fff; transform: rotate(180deg); }
.ivl-faq__item[open] .ivl-faq__ic::after { transform: translate(-50%, -50%) rotate(0deg); }
.ivl-faq__a { overflow: hidden; }
.ivl-faq__a > div { padding: 0 60px 28px 0; font-size: 1.0625rem; line-height: 1.7; color: var(--ivl-soft); }

/* ---------- more about the IV: four doors ---------- */
.ivl-more { border-top: 1px solid var(--ivl-rule); }
.ivl-more__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: clamp(40px, 7vw, 120px); row-gap: 36px; align-items: start; }
.ivl-more__list { border-top: 1px solid var(--ivl-rule); }
.ivl-more__list li { position: relative; border-bottom: 1px solid var(--ivl-rule); }
.ivl-route { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 18px 4px 18px 0; color: var(--ivl-ink); text-decoration: none; border-bottom: 0; }
.ivl-route__icon { width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--ivl-rule); display: grid; place-items: center; color: var(--ivl-blue); transition: background .4s var(--ivl-ease), border-color .4s var(--ivl-ease); }
.ivl-route__icon svg { width: 26px; height: 26px; }
.ivl-route__name { font-family: var(--font-display); font-size: clamp(1.5rem, 2.1vw, 2rem); font-weight: 400; letter-spacing: 0.015em; line-height: 1.15; transition: color .3s var(--ivl-ease); }
.ivl-route__go { font-size: 1.25rem; color: var(--ivl-blue); transition: transform .4s var(--ivl-ease); }
.ivl-route:hover { color: var(--ivl-blue-deep); }
.ivl-route:hover .ivl-route__icon, .ivl-route:focus-visible .ivl-route__icon { background: var(--ivl-wash); border-color: var(--ivl-blue); }
.ivl-route:hover .ivl-route__go { transform: translateX(8px); }
/* the icon redraws itself for whoever points at its row */
.ivl-route:hover .ivl-route__icon path { stroke-dasharray: 1 1.2; animation: ivl-draw .9s var(--ivl-ease) both; }
.ivl-more__else { grid-column: 2; font-size: 1rem; line-height: 1.7; color: var(--ivl-muted); }
/* each row's rule is drawn, then its name slides in from the left */
.ivl-js .ivl .ivl-more__list li[data-rv] { opacity: 1; transform: none; }
.ivl-js .ivl-more__list li[data-rv] .ivl-route { opacity: 0; transform: translateX(-24px); transition: opacity .8s var(--ivl-ease) calc(var(--rv-i, 0) * 110ms + .15s), transform .8s var(--ivl-ease) calc(var(--rv-i, 0) * 110ms + .15s); }
.ivl-js .ivl-more__list li[data-rv].is-in .ivl-route { opacity: 1; transform: none; }

/* ---------- close ---------- */
.ivl-close { background: var(--ivl-navy); color: #fff; text-align: center; overflow: hidden; }
.ivl-close__rings { position: absolute; left: 50%; top: 50%; width: 1100px; height: 1100px; transform: translate(-50%, -50%); pointer-events: none; }
.ivl-close__rings circle { fill: none; stroke: rgba(124, 169, 209, .16); stroke-width: 1; transform-box: fill-box; transform-origin: center; }
.ivl-close__rings circle:nth-child(2) { transform: scale(.72); }
.ivl-close__rings circle:nth-child(3) { transform: scale(.44); }
.ivl-close.is-live .ivl-close__rings circle { animation: ivl-ripple-slow 9s linear infinite; }
.ivl-close.is-live .ivl-close__rings circle:nth-child(2) { animation-delay: 3s; }
.ivl-close.is-live .ivl-close__rings circle:nth-child(3) { animation-delay: 6s; }
.ivl-close .ivl-wrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.ivl-close h2 { font-size: clamp(2.75rem, 5.2vw, 4.75rem); font-weight: 300; line-height: 1.02; }
.ivl-close p { font-size: clamp(1.0625rem, 1.35vw, 1.1875rem); line-height: 1.65; color: rgba(255, 255, 255, .82); max-width: 720px; }

/* ---------- the bar that follows the reader ---------- */
.ivl .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(--ivl-rule);
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity 260ms, transform 360ms var(--ivl-ease), visibility 0s 360ms;
}
.ivl .hc-bar.is-on { transform: none; opacity: 1; visibility: visible; transition: opacity 260ms, transform 360ms var(--ivl-ease); }
body.nav-open .ivl .hc-bar { opacity: 0; visibility: hidden; }
.ivl .hc-bar__track {
  max-width: var(--ivl-wrap); margin: 0 auto; padding: 0 var(--ivl-gutter);
  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;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent);
}
.ivl .hc-bar__track::-webkit-scrollbar { display: none; }
.ivl .hc-bar__track a {
  position: relative; flex: none; display: flex; align-items: center;
  font-size: 14px; font-weight: 500; color: var(--ivl-muted); white-space: nowrap; text-decoration: none;
  transition: color 200ms;
}
.ivl .hc-bar__track a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--ivl-blue); transform: scaleX(0); transform-origin: left;
  transition: transform 360ms var(--ivl-ease);
}
.ivl .hc-bar__track a:hover, .ivl .hc-bar__track a[aria-current] { color: var(--ivl-ink); }
.ivl .hc-bar__track a:hover::after { transform: scaleX(.35); }
.ivl .hc-bar__track a[aria-current]::after { transform: scaleX(1); }
.ivl .hc-bar__track a:focus-visible { outline: 2px solid var(--ivl-blue); outline-offset: -4px; border-radius: 4px; }
.ivl .hc-bar__progress { position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--ivl-ice); transform-origin: left; transform: scaleX(var(--hc-p, 0)); }

/* ---------- keyframes ---------- */
@keyframes ivl-rise { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes ivl-fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ivl-unveil { from { clip-path: inset(100% 0 0 0 round 6px); } to { clip-path: inset(0 0 0 0 round 6px); } }
@keyframes ivl-settle { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes ivl-sheen { to { transform: translateX(120%); } }
@keyframes ivl-breathe { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.045, 1.07); } }
@keyframes ivl-drip { 0% { transform: translateY(-3px); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(8px); opacity: 0; } }
@keyframes ivl-ripple { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes ivl-ripple-cell { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes ivl-drift { 0% { transform: translateX(-10px) scale(.4); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateX(10px) scale(1); opacity: 0; } }
@keyframes ivl-travel { 0% { transform: translateX(-100%); opacity: 0; } 8% { opacity: 1; } 28% { opacity: 1; } 34% { transform: translateX(0); opacity: 0; } 100% { transform: translateX(0); opacity: 0; } }
@keyframes ivl-ripple-slow { 0% { transform: scale(.25); opacity: 0; } 20% { opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
@keyframes ivl-halo { 0% { transform: scale(.8); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes ivl-grow { to { transform: scaleX(1); } }
@keyframes ivl-pop { 0% { transform: scale(0); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes ivl-draw { from { stroke-dashoffset: 1.1; } to { stroke-dashoffset: 0; } }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .ivl-hero__grid, .ivl-day__grid, .ivl-more__grid { grid-template-columns: minmax(0, 1fr); }
  .ivl-day__head { position: static; }
  .ivl-more__else { grid-column: 1; }
}
/* Below this the four stations no longer fit side by side: each becomes a
   row, its drawing beside its own words, and the tubes between them go. */
@media (max-width: 959px) {
  .ivl-mech__steps { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .ivl-mech__step { display: grid; grid-template-columns: 120px minmax(0, 1fr); column-gap: clamp(16px, 4vw, 36px); padding: 26px 0; border-top: 1px solid rgba(255, 255, 255, .18); }
  .ivl-mech__art { grid-row: 1 / span 2; margin: 0; }
  .ivl-mech__step h3 { align-self: end; }
  .ivl-mech__run { display: none; }
  /* each row arrives on its own, so none waits for the one before */
  .ivl-mech__step { --rv-i: 0 !important; }
  .ivl .ivl-mech__why { margin-top: 0; }
}
@media (max-width: 760px) {
  html:has(main.ivl) { --hc-bar-h: 48px; }
  .ivl .hc-bar__track { gap: 22px; }
  .ivl-who__grid, .ivl-limits__grid { grid-template-columns: minmax(0, 1fr); }
  /* Stacked, the three no longer share a row: each lays itself out. */
  .ivl-who__grid { row-gap: 44px; }
  .ivl-person { display: flex; flex-direction: column; grid-row: auto; }
  .ivl-person__body { display: flex; flex-direction: column; gap: 14px; }
  .ivl-feel__bar { display: none; }
  .ivl-feel__stops { grid-template-columns: minmax(0, 1fr); gap: 0; border-left: 2px solid var(--ivl-rule); margin-left: 7px; }
  .ivl-feel__stop { padding: 0 0 28px 28px; }
  .ivl-feel__dot { top: 3px; left: -9px; }
  .ivl-feel__pic { position: static; display: block; width: 48px; height: 48px; margin: 0 0 12px -4px; }
  .ivl-feel__stop:first-child { padding-top: 0; }
  .ivl-feel__stop { padding-top: 0; }
  .ivl-feel__stop .ivl-feel__dot { top: 62px; }
  .ivl-limit { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .ivl-faq__a > div { padding-right: 0; }
  .ivl-hero__ctas .ivl-btn { width: 100%; justify-content: center; }
  .ivl-close .ivl-btn { width: 100%; justify-content: center; }
  .ivl-close .ivl-wrap > div { align-self: stretch; }
  .ivl-route { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 16px; }
  .ivl-route__icon { width: 48px; height: 48px; }
}
@media (max-width: 480px) {
  .ivl-mech__step { grid-template-columns: 96px minmax(0, 1fr); }
  .ivl-mech__art, .ivl-mech__art svg { height: 77px; }
  .ivl-mech__art svg { width: 96px; }
}

/* ---------- hover lifts only where there is a real pointer, and only on controls ---------- */
@media (hover: none) {
  .ivl-btn:hover { transform: none; box-shadow: none; }
}

/* ---------- reduced motion: everything holds its end state ---------- */
@media (prefers-reduced-motion: reduce) {
  .ivl *, .ivl *::before, .ivl *::after { animation: none !important; transition: none !important; }
  .ivl .ivl-loop { display: none; }
  .ivl-mech__run i { display: none; }
}

/* ---------- print: the finished page, dark on white ---------- */
@media print {
  .ivl *, .ivl *::before, .ivl *::after { animation: none !important; transition: none !important; }
  .ivl .hc-bar, .ivl .ivl-loop, .ivl-close__rings, .ivl-faq__ic, .ivl-mech__run i { display: none !important; }
  .ivl-js .ivl [data-rv], .ivl-js .ivl [data-rv] * { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; stroke-dashoffset: 0 !important; }
  .ivl-js .ivl-limit .ivl-limit__icon::after { transform: rotate(-45deg) !important; }
  .ivl-js .ivl-feel__line .ivl-feel__bar > span { transform: none !important; }
  .ivl-js .ivl-day__step:not(:last-child)::after { transform: none !important; }
  .ivl-hero__media { clip-path: none !important; }
  .ivl-hero__media img[width][height] { translate: none !important; }
  .ivl-sec { padding: 28px 0; }
  .ivl-sec--navy, .ivl-close, .ivl-sec--wash { background: #fff !important; color: var(--ivl-ink) !important; }
  .ivl-sec--navy *, .ivl-close * { color: var(--ivl-ink) !important; }
  .ivl .ivl-btn { background: #fff !important; color: var(--ivl-ink) !important; border: 1px solid var(--ivl-ink); }
  .ivl-btn::after { display: none; }
  .ivl-s, .ivl-s--bag, .ivl-node, .ivl-ring { stroke: var(--ivl-ink) !important; }
  .ivl-node { fill: #fff !important; }
  .ivl-core, .ivl-ves, .ivl-drop { fill: var(--ivl-ink) !important; }
  .ivl-mech__run { background: var(--ivl-ink) !important; }
  .ivl-person, .ivl-limit, .ivl-day__step, .ivl-mech__step, .ivl-faq__item { break-inside: avoid; }
}
