/* A compact introduction puts the equipment and its data within the first scroll. */
.home-page .cinema-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(32px, 4vw, 64px);
  width: min(calc(100% - 80px), var(--content));
  margin: 0 auto;
  min-height: 0;
  color: var(--ink);
  background: #fff;
  padding: 64px 0;
}
.home-page .cinema-content {
  align-items: flex-start;
  text-align: left;
  width: 100%;
  padding: 0;
}
.home-page .cinema-title {
  max-width: 11em;
  font-size: clamp(44px, 4.3vw, 64px);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.home-page .cinema-copy { max-width: 36ch; margin-top: 22px; font-size: 19px; font-weight: 400; line-height: 1.5; letter-spacing: -.025em; color: #6e6e73; }
.home-page .cinema-actions { justify-content: flex-start; margin-top: 28px; gap: 16px; }
.home-page .cinema-button {
  min-width: 0;
  min-height: 46px;
  padding: 12px 23px;
  border: 1px solid var(--action);
  border-radius: 999px;
  background: var(--action);
  color: #fff;
  font: 400 17px/1.25 var(--sans);
  letter-spacing: -.015em;
}
.home-page .cinema-button:hover { background: var(--action-hover); border-color: var(--action-hover); color: #fff; }
.home-page .cinema-text-link { gap: 5px; min-height: 44px; color: var(--action); font: 400 17px/1.25 var(--sans); text-decoration: none; }
.home-page .cinema-text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.home-page .cinema-photo { width: 100%; height: clamp(360px, 34vw, 480px); margin: 0; border-radius: 14px; overflow: hidden; background: #fff; }
.home-page .cinema-photo img { object-fit: cover; object-position: var(--desktop-position, center); animation: none; }
.home-page .cinema-photo::after { display: none; }
.cinema-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 900ms ease; }
.cinema-slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .cinema-slide { transition: none; }
}

/* Product sections share a type scale and generous, consistent spacing. */
.home-page .home-section { padding: clamp(48px, 5vw, 64px) max(24px, var(--gutter)); }
.home-page .home-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: end; gap: 20px 48px; max-width: none; margin: 0 0 28px; text-align: left; }
.home-page .features-strip .home-head { display: block; }
.home-page .section-title { font-size: clamp(34px, 3.4vw, 48px); line-height: 1.06; letter-spacing: -.045em; font-weight: 650; }
.home-page .home-head-aside { max-width: 44ch; margin: 0; font-size: 18px; line-height: 1.45; color: #6e6e73; letter-spacing: -.025em; }
.home-page .text-link { color: var(--action); font-weight: 400; }
.home-page .feature-link { margin-top: 18px; font-size: 19px; }
.home-page .features-strip { padding-top: 64px; background: #f5f5f7; scroll-margin-top: 54px; }
.home-page .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.home-page .feat-card { align-items: stretch; padding: 28px 0 0; background: #fff; border-radius: 14px; overflow: hidden; }
.home-page .feat-card h3 { margin: 0 28px 12px; font-size: clamp(25px, 2.2vw, 30px); line-height: 1.08; font-weight: 650; letter-spacing: -.04em; }
.home-page .feat-card p { min-height: 3em; max-width: 30em; margin: 0 28px 24px; font-size: 17px; line-height: 1.5; color: #6e6e73; }
.home-page .feat-card-img { flex: 1; aspect-ratio: 1.35; margin: 0; max-height: 390px; border: 0; border-radius: 0; }
.home-page .feat-card-img > img { object-position: 50% 48%; }
.home-page .feat-card--sensor .feat-card-img > img { object-position: 50% 40%; }
.home-page .feat-card-img:hover > img { transform: scale(1.02); }

/* One compact replay introduces the detailed experiments on Applications. */
.home-traces { scroll-margin-top: 54px; }
.home-traces-chart-card { max-width: none; min-width: 0; margin: 0; padding: 24px; border: 1px solid var(--rule); border-radius: 14px; background: #f5f5f7; }
.trace-toolbar, .trace-chart-label, .trace-chart-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.trace-toolbar { margin-bottom: 18px; }
.trace-toolbar h3 { margin-bottom: 5px; font-size: 20px; line-height: 1.2; letter-spacing: -.025em; font-weight: 600; }
.trace-provenance { color: #6e6e73; font-size: 12px; line-height: 1.4; }
.trace-chart-label, .trace-chart-footer { font-size: 12px; line-height: 1.5; color: #6e6e73; }
.trace-chart-label { padding-left: 42px; }
.trace-chart-footer { padding-top: 15px; border-top: 1px solid #dedee3; }
.trace-chart-footer > :last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.homepage-trace-chart { display: block; width: 100%; height: 300px; overflow: visible; }
.trace-grid { stroke: #dedee5; stroke-width: 1; }
.trace-grid-vertical { stroke-dasharray: 3 5; opacity: .7; }
.trace-axis { fill: #6e6e73; font: 11px var(--sans); font-variant-numeric: tabular-nums; }
.home-page .trace-applications-link { display: flex; justify-content: center; gap: 6px; width: fit-content; min-height: 44px; margin: 22px auto 0; font-size: 17px; }
.home-research-link { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 6px; margin-top: 14px; color: #6e6e73; text-align: center; font-size: 15px; line-height: 1.5; }
.home-research-link a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: #0071e3; text-decoration: none; }
.home-research-link a:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .home-traces-chart-card { padding: 20px 14px; border-radius: 14px; }
  .trace-toolbar { gap: 8px; margin-bottom: 20px; }
  .trace-provenance { max-width: 180px; }
  .homepage-trace-chart { height: 260px; }
  .trace-chart-footer { gap: 8px; font-size: 11px; }
  .home-research-link { margin-inline: auto; font-size: 14px; }
}

/* The closing section carries the interactive sheet beneath its copy and button. */
.home-page .cta-strip { position: relative; overflow: hidden; padding: 144px 24px; background: #f5f5f7; border: 0; }
.cta-strip .hero-ribbon { position: absolute; top: 0; left: 0; height: 100%; pointer-events: none; }
.home-page .cta-strip > :not(canvas) { position: relative; z-index: 1; }
.home-page .cta-strip h2 { font-size: clamp(34px, 3.4vw, 48px); font-weight: 650; line-height: 1.06; letter-spacing: -.045em; }
.home-page .cta-strip p { max-width: 500px; margin: 18px auto 24px; font-size: 18px; line-height: 1.45; color: #6e6e73; }
@media (max-width: 900px) {
  .home-page .cinema-hero { grid-template-columns: minmax(0, 1fr); gap: 32px; width: min(calc(100% - 48px), 720px); padding: 40px 0; }
  .home-page .cinema-content { padding: 0; }
  .home-page .cinema-title { max-width: 14em; }
  .home-page .cinema-photo { height: 340px; min-height: 0; }
  .home-page .home-head { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 28px; }
}
@media (max-width: 600px) {
  .home-page .cinema-hero { width: calc(100% - 40px); padding: 32px 0; gap: 28px; }
  .home-page .cinema-content { padding: 0; }
  .home-page .cinema-title { font-size: clamp(36px, 10vw, 44px); }
  .home-page .cinema-copy { max-width: 36ch; font-size: 17px; margin-top: 18px; }
  .home-page .cinema-actions { margin-top: 22px; gap: 18px; }
  .home-page .cinema-button, .home-page .cinema-text-link { font-size: 15px; }
  .home-page .cinema-button { padding: 11px 20px; min-height: 44px; }
  /* A compact landscape frame keeps the equipment and the next section together on phones. */
  .home-page .cinema-photo { height: auto; min-height: 0; aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden; }
  .home-page .cinema-photo img { object-fit: cover; object-position: var(--mobile-position, center); }
  .home-page .home-section { padding: 44px 20px; }
  .home-page .section-title { font-size: 34px; }
  .home-page .home-head-aside { font-size: 17px; }
  .home-page .features-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .home-page .feat-card { padding-top: 24px; border-radius: 14px; }
  .home-page .feat-card h3 { margin-inline: 26px; font-size: 27px; }
  .home-page .feat-card p { min-height: 0; margin: 0 26px 26px; }
  .home-page .feat-card-img { aspect-ratio: 1.1; }
  .home-page .cta-strip { padding: 96px 24px; }
  .home-page .cta-strip h2 { font-size: 34px; }
  .home-page .cta-strip p { font-size: 17px; }
}

.trace-pot-legend { display:flex; flex-wrap:wrap; gap:6px; margin:12px 0; }
.trace-pot-legend button { display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border:1px solid #d8d8dc; border-radius:999px; background:#fff; color:#1d1d1f; font:inherit; font-size:12px; cursor:pointer; }
.trace-pot-legend button::before { content:""; width:7px; height:7px; border-radius:50%; background:var(--trace-color); }
.trace-pot-legend button[aria-pressed="true"] { border-color:var(--trace-color); background:#f5f5f7; }
.homepage-trace-chart { cursor:crosshair; touch-action:pan-y; }
.homepage-trace-chart:focus-visible { outline:2px solid #0071e3; outline-offset:3px; }
@media(max-width:680px) { .trace-pot-legend button { min-height:44px; } .trace-chart-footer { flex-wrap:wrap; } }

.home-traces-chart-card { position:relative; }
.trace-tooltip { position:absolute; z-index:2; pointer-events:none; display:grid; gap:5px; min-width:152px; padding:12px 14px; border-left:4px solid var(--trace-color); border-radius:8px; background:rgba(255,255,255,.97); box-shadow:0 5px 24px #17203320; text-align:left; color:#1d1d1f; }
.trace-tooltip[hidden] { display:none; }
.trace-tooltip strong { font-size:13px; }
.trace-tooltip span { font-size:12px; color:#6e6e73; }
.trace-tooltip b { font-size:20px; font-variant-numeric:tabular-nums; }
