/* Homepage refinement; shared page layouts remain in styles.css. */
.home-page {
  --paper: #fafbf9;
  --ink: #202622;
  --muted: #616b65;
  --dark: #19231f;
  --line: #dfe5df;
}
.home-page h1,
.home-page h2,
.home-page h3,
.home-page .eyebrow,
.home-page .mono {
  letter-spacing: 0;
}
.home-page h1 { font-size: 80px; font-weight: 600; }
.home-page h2 { font-size: 52px; }
.home-page .hero h1 { font-size: 80px; line-height: 1.09; }
.home-page .hero h1 span { color: #69796e; }
.home-page .hero { padding-top: 72px; background: #fafbf9; }
.home-page .hero-copy { max-width: 1040px; }
.home-page .hero-lead { font-size: 17px; }
.home-page .hero-stage-wrap { padding-top: 24px; perspective: none; }
.product-device-visual { display: block; width: min(1120px, 100%); margin: 0 auto; }
.product-device-visual img { width: 100%; height: auto; }
.home-page .site-header {
  background: #fafbf9ed;
  transition: box-shadow 250ms ease, background 250ms ease;
}
.home-page .site-header.is-scrolled {
  background: #fffffff5;
  box-shadow: 0 5px 24px #18221c08;
}
.reading-progress { position: absolute; inset: auto 0 -1px; height: 2px; pointer-events: none; }
.reading-progress span { display: block; height: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; }
.home-page .nav-links a { position: relative; padding: 8px 0; }
.home-page .nav-links a::after {
  content: ''; position: absolute; height: 1px; left: 0; right: 0; bottom: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform 220ms ease;
}
.home-page .nav-links a:hover::after,
.home-page .nav-links a[aria-current="location"]::after { transform: scaleX(1); }
.home-page .button { border-radius: 6px; box-shadow: 0 3px 5px #6f20100a; }
.home-page .button span,
.home-page .button > .icon,
.home-page .text-link > .icon,
.home-page .text-link span { transition: transform 220ms ease; }
.home-page .button:hover span,
.home-page .button:hover > .icon,
.home-page .text-link:hover > .icon,
.home-page .text-link:hover span { transform: translate(3px, -2px); }
.home-page .hero-stage {
  height: 540px; border-radius: 8px 8px 0 0; transform: none;
  background: #1b2722; will-change: auto;
}
.home-page .hero-dashboard {
  left: 29%; top: 32px; width: 68%; transform: none;
  border-radius: 7px; overflow: hidden;
  border: 1px solid #a0b4a23d;
}
.home-page .hero-dashboard > img {
  width: 100%; height: 430px; object-fit: contain; background: white;
}
.home-page .window-live { padding-right: 0; }
.home-page .stage-cabinet { left: 4%; top: 76px; width: 20%; }
.home-page .stage-cabinet .cabinet-svg { width: 180px; height: 255px; }
.home-page .signal-path { left: 24%; width: 4%; top: 240px; }
.home-page .signal-path > span { position: relative; overflow: hidden; height: 2px; }
.home-page .signal-path > span::after {
  content: ''; position: absolute; inset: 0; background: #d9ead9;
  transform: translateX(-110%); animation: signal-transit 3s ease-in-out infinite;
}
.home-page .stage-bottom { font-size: 8px; letter-spacing: 0; }
.home-page .manifesto { background: #eef2ed; }
.home-page .manifesto h2 { font-size: 44px; }
.home-page .manifesto h2 span { color: #71806f; }
.home-page .product-section { background: #19231f; }
.home-page .product-screen { border-radius: 8px; }
.home-page .story-step { opacity: .48; transition: opacity 400ms ease; }
.home-page .story-step.is-active { opacity: 1; }
.home-page .story-step h3 { font-size: 33px; }
.home-page .story-step.is-active .step-number { color: #d3dfcc; }
.home-page .story-progress { gap: 8px; }
.home-page .story-progress button {
  flex: 1; min-width: 44px; height: 32px; padding: 14px 0;
  border: 0; background: transparent; color: #82937c;
}
.home-page .story-progress button::after {
  content: ''; display: block; height: 2px; background: #455343;
  transition: background 250ms ease;
}
.home-page .story-progress button[aria-current="step"]::after,
.home-page .story-progress button:hover::after { background: #c9dfbd; }
.home-page .connection-art { background: #edf2ee; border-color: #dce6de; }
.home-page .connection-art.cabinet-photo,
.home-page .connection-art.dashboard-photo { background: #fff; }
.cabinet-photo img { width: 170px; height: 220px; object-fit: contain; }
.dashboard-photo { padding: 16px; overflow: hidden; }
.dashboard-photo img { width: 100%; height: auto; border: 1px solid #e0e5e1; border-radius: 4px; }
.connectivity-visual { flex-direction: column; gap: 24px; }
.connectivity-visual .module-icon { width: 72px; height: 72px; color: var(--red); stroke-width: 1.15; }
.connection-caption { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #44624e; }
.home-page .line-icon { width: 32px; height: 32px; color: var(--red); margin-bottom: 28px; }
.home-page .readout-icon { width: 24px; height: 24px; }
.home-page .use-grid article { padding: 30px; }
.use-case-icon { display: block; width: 36px; height: 36px; color: #44624e; margin-bottom: 34px; stroke-width: 1.4; }
.home-page .connection-line span { position: relative; }
.home-page .connection-grid.is-connected .connection-line span::after {
  content: ''; position: absolute; inset: -1px 0; background: #d99289;
  animation: signal-transit 3s ease-in-out infinite;
}
.home-page .connection-art .module-led { animation: connection-led 3s ease-in-out infinite; }
.home-page .benefits { background: #edf2ee; }
.home-page .benefit-grid article { transition: border-color 250ms ease; }
.home-page .benefit-grid article:hover { border-color: var(--red); }
.home-page .use-grid article {
  background: #f1f4f1; border-color: #dfe5df;
  transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}
.home-page .use-grid article:hover {
  transform: translateY(-5px); border-color: #bec9bf; box-shadow: 0 14px 24px #18221c08;
}
.home-page .closing { background: #253e33; }
.home-page .closing h2 { font-size: 50px; }
.home-page .reveal-ready { transition-delay: var(--reveal-delay, 0ms); }
@keyframes signal-transit {
  0%, 15% { transform: translateX(-110%); }
  70%, 100% { transform: translateX(110%); }
}
@keyframes connection-led {
  0%, 100% { box-shadow: 0 0 0 0 #58925b00; }
  50% { box-shadow: 0 0 0 5px #58925b20; }
}
@keyframes arrive {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .product-device-visual { animation: arrive 900ms 200ms cubic-bezier(.2,.7,.2,1) both; }
  .home-page .hero-copy > * { animation: arrive 700ms cubic-bezier(.2,.7,.2,1) both; }
  .home-page .hero-copy h1 { animation-delay: 80ms; }
  .home-page .hero-lead { animation-delay: 160ms; }
  .home-page .hero-actions { animation-delay: 240ms; }
  .home-page .hero-micro { animation-delay: 320ms; }
}
@media (max-width: 1150px) {
  .home-page .hero h1 { font-size: 68px; }
  .home-page .hero-stage { height: 460px; }
  .home-page .hero-dashboard > img { height: 350px; }
  .home-page .stage-cabinet { top: 54px; }
  .home-page .stage-cabinet .cabinet-svg { width: 150px; height: 235px; }
  .home-page .signal-path { top: 210px; }
}
@media (max-width: 899px) {
  .cabinet-photo img { width: 140px; height: 180px; }
  .home-page .use-grid article { padding: 20px; }
  .home-page .hero h1 { font-size: 56px; }
  .home-page h2 { font-size: 42px; }
  .home-page .hero-stage { height: 400px; }
  .home-page .hero-dashboard { left: 28%; width: 69%; top: 36px; }
  .home-page .hero-dashboard > img { height: 280px; }
  .home-page .stage-cabinet { left: 2%; top: 65px; width: 24%; }
  .home-page .stage-cabinet .cabinet-svg { width: 125px; height: 190px; }
  .home-page .signal-path { top: 185px; left: 25%; width: 2%; }
  .home-page .manifesto h2 { font-size: 34px; }
  .home-page .story-step { opacity: 1; }
  .home-page .story-step h3 { font-size: 25px; }
  .home-page .story-progress { display: none; }
  .home-page .closing h2 { font-size: 40px; }
}
@media (max-width: 599px) {
  .home-page .use-grid article { padding: 26px; }
  .home-page .hero { padding-top: 42px; }
  .home-page .hero h1 { font-size: 36px; }
  .home-page .hero-lead { font-size: 14px; }
  .home-page .hero-actions { gap: 18px; flex-wrap: wrap; }
  .home-page .hero-micro { flex-wrap: wrap; gap: 10px; font-size: 9px; }
  .home-page .hero-stage-wrap { padding-top: 16px; }
  .home-page .hero-stage { height: 330px; }
  .home-page .stage-cabinet,
  .home-page .signal-path { display: none; }
  .home-page .hero-dashboard { left: 3%; width: 94%; top: 22px; }
  .home-page .hero-dashboard > img { height: 250px; }
  .home-page .window-top { font-size: 5px; height: 22px; }
  .home-page .stage-bottom { padding: 10px; font-size: 6px; gap: 12px; }
  .home-page h2,
  .home-page .manifesto h2 { font-size: 30px; }
  .home-page .story-step h3 { font-size: 27px; }
  .home-page .closing h2 { font-size: 32px; }
}
@media (max-width: 374px) {
  .home-page .hero h1 { font-size: 32px; }
  .home-page .hero-micro span + span { border: 0; padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .story-step { opacity: 1; }
  .home-page *, .home-page *::before, .home-page *::after {
    animation: none !important; transition: none !important;
  }
}
@media (max-width: 899px) and (min-height: 540px) and (prefers-reduced-motion: no-preference) {
  .home-page .has-scroll-story .product-sticky {
    position: sticky;
    top: var(--walkthrough-top, 76px);
    z-index: 4;
    max-width: min(660px, calc(42svh * 1.44));
    margin: 0 auto;
    padding: 8px 0 0;
    background: #19231f;
  }
  .home-page .has-scroll-story .product-screen-top { padding: 10px 12px; }
  .home-page .has-scroll-story .product-readout { display: none; }
  .home-page .has-scroll-story .focus-frame { display: block; }
  .home-page .has-scroll-story .story-progress {
    display: flex;
    gap: 4px;
    padding-top: 0;
    background: #19231f;
  }
  .home-page .has-scroll-story .story-progress button {
    min-width: 0;
    height: 44px;
    padding: 20px 3px;
  }
  .home-page .has-scroll-story .story-chapters { display: block; }
  .home-page .has-scroll-story .story-step {
    display: flex;
    min-height: max(320px, 45svh);
    padding: 28px 0;
    border-bottom: 1px solid #3b4735;
    opacity: .48;
  }
  .home-page .has-scroll-story .story-step.is-active { opacity: 1; }
  .home-page .has-scroll-story .story-step:last-child { border-bottom: 0; }
  .home-page .has-scroll-story .step-number { margin-bottom: 14px; }
  .home-page .has-scroll-story .story-step h3 {
    max-width: 520px;
    margin: 0 0 14px;
  }
  .home-page .has-scroll-story .story-step p { max-width: 520px; }
}
@media (max-width: 374px) {
  .home-page .has-scroll-story .story-progress { gap: 0; }
}
@media (max-width: 899px) and (max-height: 650px) {
  .home-page .has-scroll-story .feature-tag { display: none; }
}
