/* Home page motion and the pieces it animates. Loaded after site.css. */

/* The lab's heart view on a dark surface (mirrors its dark theme tokens). */
.lab-scope.lab-dark {
  --hv-back: transparent;
  --hv-conduct-edge: #120a00;
  --hv-kent: #f08bea;
  --hv-wire: #a9b8c8;
  --hv-wire-edge: #0a121c;
  --hv-spark: #7cc4ff;
  --hv-halo: #06111f;
  --hv-hex-line: #e7eef8;
}

/* --- Scroll progress line ------------------------------------------------- */
.nav-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, #14b8a6, var(--trace)); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
.nav { transition: background 0.25s ease; }
.nav.is-scrolled { background: rgba(6, 16, 31, 0.94); }

/* --- Hero ------------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(520px 380px at 72% 30%, rgba(94, 234, 212, 0.16), transparent 70%),
    radial-gradient(460px 360px at 88% 70%, rgba(11, 79, 179, 0.35), transparent 70%);
  animation: hero-drift 16s ease-in-out infinite alternate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(rgba(94, 234, 212, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(94, 234, 212, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70% 70% at 70% 45%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 70% at 70% 45%, #000, transparent 75%);
}
@keyframes hero-drift { from { transform: translate3d(-2%, -1%, 0) scale(1); } to { transform: translate3d(3%, 2%, 0) scale(1.08); } }

.hero-stage { position: relative; display: grid; justify-items: center; }
.hero-heart { position: relative; width: min(400px, 78%); aspect-ratio: 1; margin-bottom: -38px; z-index: 1; opacity: 0; transform: scale(0.94); transition: opacity 0.9s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1); pointer-events: none; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55)); }
.hero-heart.is-ready { opacity: 1; transform: none; }
.hero-heart .hv-foot { display: none; }
.hero-heart .hv-stage { max-width: none; }
.hero-ring { position: absolute; inset: 4%; border-radius: 50%; border: 2px solid var(--trace); opacity: 0; box-shadow: 0 0 40px rgba(94, 234, 212, 0.5), inset 0 0 40px rgba(94, 234, 212, 0.25); }
.hero-stage .monitor { width: 100%; position: relative; }
.hero-stage .monitor canvas { height: 230px; }
.hero-stage .monitor-top { padding-right: 18px; }

.split-w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.split-w > span { display: inline-block; transform: translateY(110%); animation: split-up 0.8s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes split-up { to { transform: none; } }
.has-motion .hero .eyebrow, .has-motion .hero .lede, .has-motion .hero-actions, .has-motion .hero-facts { opacity: 0; animation: rise-in 0.8s cubic-bezier(.2, .8, .2, 1) forwards; }
.has-motion .hero .lede { animation-delay: 0.45s; }
.has-motion .hero-actions { animation-delay: 0.6s; }
.has-motion .hero-facts { animation-delay: 0.75s; }
.has-motion .hero-stage .monitor { opacity: 0; animation: rise-in 0.9s 0.35s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-facts b { display: inline-block; min-width: 1.3em; font-variant-numeric: tabular-nums; }

/* --- Reveal on scroll ------------------------------------------------------- */
.has-motion .pillar[data-reveal].is-in:hover { transform: translateY(-4px); transition-delay: 0s !important; transition-duration: 0.18s; }

/* Pointer light on the pillar cards */
[data-spot] { position: relative; overflow: hidden; }
[data-spot]::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.25s ease; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(20, 184, 166, 0.14), transparent 65%); }
[data-spot]:hover::before { opacity: 1; }

[data-scroll-tilt] > * { transform-origin: 50% 100%; will-change: transform; }

/* --- One heartbeat, slowed down ---------------------------------------------- */
.beat { background: radial-gradient(900px 600px at 15% 50%, rgba(11, 79, 179, 0.22), transparent 65%), var(--night); color: var(--on-night); margin-top: 96px; }
.beat-sticky { padding: 88px var(--gutter); }
.beat-head .eyebrow { color: var(--trace); }
.beat-head h2 { font-size: var(--h2); }
.beat-head h2 em { font-style: italic; color: var(--trace); }
.beat-steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.beat-steps li { border: 1px solid var(--night-line); border-radius: 16px; padding: 20px; background: rgba(11, 26, 46, 0.6); }
.beat-n { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--trace); letter-spacing: 0.04em; }
.beat-n i { font-style: normal; color: var(--on-night-muted); margin-left: 8px; text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--sans); font-size: 12px; }
.beat-steps h3 { font-size: 24px; margin: 10px 0 8px; }
.beat-steps p { color: var(--on-night-muted); font-size: 15.5px; }
.beat-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 22px; }
.beat-cta { min-height: 40px; font-size: 15px; }
.beat-heart:empty { display: none; }
/* Unpinned (short screens): a heart that fits on screen beside the steps. */
.beat:not(.is-live) .beat-heart { width: min(100%, 440px, 92svh); margin: 20px auto 0; }
.beat:not(.is-live) .beat-heart .hv-foot { display: none; }

/* Enhanced: the section pins and scrolling moves time. */
.beat.is-live .beat-track { height: 520vh; }
.beat.is-live .beat-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; box-sizing: border-box;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 8px 56px;
  padding-top: 92px; padding-bottom: 28px; overflow: hidden;
}
.beat.is-live .beat-head { grid-column: 1 / -1; }
.beat.is-live .beat-heart { align-self: center; justify-self: center; width: min(100%, calc(100svh - 250px), 600px); }
.beat.is-live .beat-heart .hv-foot { display: none; }
.beat.is-live .beat-heart .hv-stage { max-width: none; }
.beat.is-live .beat-side { align-self: center; display: grid; gap: 18px; min-width: 0; }
.beat.is-live .beat-steps { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.beat.is-live .beat-steps li { grid-area: 1 / 1; border: 0; background: none; padding: 0; opacity: 0; transform: translateY(18px); transition: opacity 0.35s ease, transform 0.45s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.beat.is-live .beat-steps li.is-past { transform: translateY(-18px); }
.beat.is-live .beat-steps li.is-active { opacity: 1; transform: none; pointer-events: auto; }
.beat.is-live .beat-steps h3 { font-size: clamp(28px, 3vw, 42px); }
.beat.is-live .beat-steps p { font-size: clamp(16px, 1.3vw, 18.5px); max-width: 34em; }
.beat-trace { margin: 0; border: 1px solid var(--night-line); border-radius: 16px; background: linear-gradient(180deg, #0c1d33, #081425); overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4); }
.beat-trace canvas { display: block; width: 100%; height: clamp(150px, 26svh, 250px); }
.beat-trace figcaption { display: flex; justify-content: space-between; padding: 8px 14px; border-top: 1px solid var(--night-line); font-family: var(--mono); font-size: 13px; color: var(--on-night-muted); }
.beat-trace figcaption span:last-child { color: var(--trace); font-weight: 700; font-variant-numeric: tabular-nums; }
.beat.is-live .beat-foot { margin-top: 0; }
.beat-rail { display: flex; gap: 6px; }
.beat-dot { min-width: 46px; min-height: 36px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--night-line); background: transparent; color: var(--on-night-muted); font: 700 13px var(--mono); cursor: pointer; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.beat-dot:hover { border-color: var(--on-night-muted); color: #fff; }
.beat-dot.is-past { color: var(--on-night); border-color: rgba(94, 234, 212, 0.4); }
.beat-dot.is-active { background: var(--trace); border-color: var(--trace); color: #04231f; }

/* --- Atlas marquee -------------------------------------------------------------- */
.atlas-teaser.has-marquee { grid-template-columns: minmax(0, 1fr); gap: 44px; overflow: hidden; }
.atlas-teaser.has-marquee .atlas-teaser-copy { max-width: 44em; }
.mq { display: grid; gap: 14px; margin-inline: calc(-1 * max(20px, (100vw - var(--wrap)) / 2)); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq-row { overflow: hidden; }
.mq-track { display: flex; gap: 14px; width: max-content; padding: 4px 0; }
.mq.is-running .mq-track { animation: mq-slide 60s linear infinite; }
.mq.is-running .mq-reverse { animation-direction: reverse; animation-duration: 72s; }
.mq:hover .mq-track, .mq:focus-within .mq-track, .mq.is-offscreen .mq-track { animation-play-state: paused; }
@keyframes mq-slide { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(calc(-50% - 7px), 0, 0); } }
.mq-card { flex: none; width: 300px; display: grid; gap: 4px; padding: 8px 8px 14px; border-radius: 16px; background: var(--night-2); border: 1px solid var(--night-line); text-decoration: none; transition: border-color 0.2s ease, transform 0.2s ease; }
.mq-card:hover { border-color: var(--trace); transform: translateY(-3px); }
.mq-card canvas { display: block; width: 100%; height: 92px; border-radius: 12px; background: #fffaf6; }
.mq-card small { margin: 8px 6px 0; font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--trace); }
.mq-card span { margin: 0 6px; font-family: var(--serif); font-size: 19px; font-weight: 600; }

/* --- Smaller screens --------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-heart { width: min(300px, 68%); margin-bottom: -30px; }
  .beat { margin-top: 72px; }
}
@media (max-width: 900px) {
  /* The pinned section is exactly one screen tall, and phones (with browser bars
     showing) can be short: the heart takes whatever height is left, so the text,
     tracing and step buttons always fit with room below them. */
  .beat.is-live .beat-sticky { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; gap: 8px; padding-top: 76px; padding-bottom: max(24px, calc(env(safe-area-inset-bottom) + 16px)); }
  .beat.is-live .beat-heart { height: 100%; min-height: 0; width: auto; max-width: 74vw; aspect-ratio: 1; overflow: hidden; }
  .beat.is-live .beat-heart .hv-root, .beat.is-live .beat-heart .hv-stage { width: 100%; height: 100%; }
  .beat.is-live .beat-heart .hv-svg { width: 100%; height: 100%; }
  .beat.is-live .beat-head .eyebrow { margin-bottom: 6px; font-size: 12px; }
  .beat.is-live .beat-head h2 { font-size: 24px; }
  .beat.is-live .beat-side { align-self: start; gap: 10px; }
  .beat.is-live .beat-steps h3 { font-size: 23px; margin: 4px 0 4px; }
  .beat.is-live .beat-steps p { font-size: 15px; line-height: 1.45; }
  .beat.is-live .beat-steps { min-height: 11.4em; }
  .beat-trace canvas { height: clamp(96px, 15svh, 150px); }
  .beat-trace figcaption { padding: 5px 12px; font-size: 12px; }
  .beat.is-live .beat-cta { display: none; }
  .beat-rail { width: 100%; justify-content: space-between; }
  .beat-dot { flex: 1; min-width: 0; }
  .mq-card { width: 240px; }
  .mq-card canvas { height: 76px; }
}
@media (max-width: 640px) {
  .hero-stage .monitor canvas { height: 190px; }
}
/* Very short phone screens: no room for a useful heart, so the step, tracing
   and buttons take the screen, with the buttons kept clear of the bottom edge. */
@media (max-width: 900px) and (max-height: 620px) {
  .beat.is-live .beat-heart { display: none; }
  .beat.is-live .beat-side { align-self: end; }
}
/* Laptop screens of modest height: tighten the pinned layout so the heading,
   step, tracing and buttons fit with room to spare at the top and bottom. */
@media (min-width: 901px) and (max-height: 860px) {
  .beat.is-live .beat-sticky { padding-top: 84px; padding-bottom: 32px; row-gap: 20px; }
  .beat.is-live .beat-head h2 { font-size: clamp(30px, 5.2svh, 44px); }
  .beat.is-live .beat-side { gap: 14px; }
  .beat.is-live .beat-steps h3 { font-size: clamp(26px, 4.2svh, 36px); margin: 6px 0 6px; }
  .beat.is-live .beat-trace canvas { height: clamp(120px, 21svh, 190px); }
  .beat.is-live .beat-heart { width: min(100%, calc(100svh - 230px), 600px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
  .hero-heart { transition: none; }
  .mq { mask-image: none; -webkit-mask-image: none; }
  .mq-row { overflow-x: auto; }
  .beat.is-live .beat-steps li { transition: none; }
  .beat-dot, .mq-card { transition: none; }
}

/* --- AI ECG Interpreter ------------------------------------------------------ */
.ix {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center;
  padding: var(--section-y) var(--gutter); color: var(--on-night);
  background: radial-gradient(800px 520px at 90% 20%, rgba(94, 234, 212, 0.1), transparent 65%), radial-gradient(700px 500px at 0% 100%, rgba(11, 79, 179, 0.26), transparent 65%), var(--night);
}
.ix .eyebrow { color: var(--trace); }
.ix h2 { font-size: var(--h2); }
.ix h2 em { font-style: italic; color: var(--trace); }
.ix-copy > p:not(.eyebrow):not(.ix-fine) { color: var(--on-night-muted); margin-top: 16px; font-size: 18px; }
.ix-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ix-points li { position: relative; padding-left: 30px; color: var(--on-night-muted); font-size: 16px; }
.ix-points li b { color: #fff; }
.ix-points li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 16px; height: 9px; border-left: 2.5px solid var(--trace); border-bottom: 2.5px solid var(--trace); transform: rotate(-45deg) translateY(-4px); }
.ix-plans { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ix-plans li { display: grid; gap: 4px; align-content: start; padding: 14px 16px; border: 1px solid var(--night-line); border-radius: var(--r-sm); background: rgba(11, 26, 46, 0.7); }
.ix-plans b { font-family: var(--serif); font-size: 24px; font-weight: 600; color: #fff; line-height: 1.1; }
.ix-plans small { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--on-night-muted); }
.ix-plans span { font-size: 13.5px; color: var(--on-night-muted); line-height: 1.35; }
.ix-plans li:first-child { border-color: rgba(94, 234, 212, 0.45); }
.ix-plans li:first-child b { color: var(--trace); }
.ix-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ix-fine { margin-top: 12px; font-size: 13.5px; color: var(--on-night-muted); }

.ix-sample { margin: 0; padding: 18px; border-radius: var(--r-lg); background: #fff; color: var(--ink); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45), 0 0 0 6px rgba(94, 234, 212, 0.06); min-width: 0; }
.ix-sample-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-bottom: 12px; font-size: 13.5px; color: var(--muted); }
.ix-tag { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 9px; border-radius: 999px; background: #fff4dc; color: #7a4a00; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.ix-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #e09a1a; }
.ix-kind { font-weight: 600; }
.ix-trace { position: relative; border-radius: var(--r-sm); overflow: hidden; border: 1px solid #eadfd6; background: #fff9f5; }
.ix-trace img { width: 100%; aspect-ratio: 625 / 300; }
.ix-watermark { position: absolute; right: 10px; bottom: 8px; padding: 3px 9px; border-radius: 6px; background: rgba(255, 249, 245, 0.92); border: 1px solid #ebb0b3; color: #8a2f3c; font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.ix-readouts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; margin: 14px 0 0; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--line); }
.ix-readouts div { display: grid; gap: 2px; align-content: start; padding: 10px 10px 9px; background: #fbf8f3; min-width: 0; }
.ix-readouts dt { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ix-readouts dd { margin: 0; font-family: var(--mono); font-size: 16px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ix-readouts dd small { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.ix-readouts div:nth-child(2) dd { font-family: var(--sans); font-size: 14.5px; white-space: normal; line-height: 1.25; }
.ix-occlusion { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: var(--r-sm); background: #fdecea; border: 1px solid #f3c3bd; }
.ix-occlusion p { font-size: 14.5px; color: #5c1d16; line-height: 1.4; }
.ix-chip { flex: none; display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.ix-chip.is-alert { background: #b42318; color: #fff; }
.ix-findings { list-style: none; padding: 0; margin: 10px 0 0; display: grid; }
.ix-findings li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.ix-findings li:last-child { border-bottom: 0; }
.ix-conf { flex: none; font-style: normal; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.ix-conf.is-high { background: #e4f6ec; color: #116b40; }
.ix-conf.is-moderate { background: #fff4dc; color: #7a4a00; }
.ix-sample figcaption { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); line-height: 1.45; }

/* --- Books ------------------------------------------------------------------- */
.hb-head { max-width: 50em; }
.hb-head > p:not(.eyebrow) { color: var(--muted); margin-top: 16px; font-size: 18px; }
.hb h2 { font-size: var(--h2); }
.hb-books { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.hb-book { display: grid; grid-template-columns: minmax(0, 128px) minmax(0, 1fr); gap: 22px; align-items: stretch; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 14px 34px rgba(16, 29, 46, 0.06); }
.hb-cover { position: relative; display: block; align-self: start; perspective: 900px; }
.hb-cover img { width: 100%; border-radius: 2px 5px 5px 2px; box-shadow: 16px 22px 34px -16px rgba(16, 29, 46, 0.55), 0 0 0 1px rgba(16, 29, 46, 0.08); transform: rotateY(-10deg); transition: transform 0.45s cubic-bezier(.2, .7, .2, 1); }
.hb-cover:hover img { transform: rotateY(-2deg) translateY(-3px); }
.hb-look { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); padding: 4px 10px; border-radius: 999px; background: rgba(16, 29, 46, 0.82); color: #fff; font-size: 12px; font-weight: 650; white-space: nowrap; opacity: 0; transition: opacity 0.2s ease; }
.hb-cover:hover .hb-look { opacity: 1; }
.hb-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.hb-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.hb-book h3 { font-size: 22px; line-height: 1.2; }
.hb-sub { color: var(--muted); font-size: 15.5px; }
.hb-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }
.hb-actions .btn { min-height: 44px; padding: 0 16px; font-size: 15px; gap: 8px; }
.hb-actions .btn svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hb-buy { background: #fff; color: var(--ink); border-color: #cfc6b6; }
.hb-buy:hover { border-color: var(--ink); }
.hb-more { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 26px; }
.link-arrow { color: var(--blue); font-weight: 650; text-decoration: none; font-size: 16px; }
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { text-decoration: underline; }

@media (max-width: 1100px) {
  .ix { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ix-sample { max-width: 720px; }
  .hb-books { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .ix-plans { grid-template-columns: minmax(0, 1fr); }
  .ix-plans li { grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 4px 12px; }
  .ix-readouts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ix-sample { padding: 14px; }
  .hb-book { grid-template-columns: minmax(0, 96px) minmax(0, 1fr); gap: 16px; padding: 18px; }
  .hb-actions .btn { flex: 1 1 100%; }
}
@media (max-width: 400px) {
  .ix-readouts dd { font-size: 15px; }
  .ix-occlusion { flex-direction: column; gap: 6px; }
  .hb-book { grid-template-columns: minmax(0, 1fr); }
  .hb-cover { width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .hb-cover img, .hb-look { transition: none; }
}
