/* Two continuous, viewport-sized chapters; a single aligned introduction. */
html.home-sections {
  --home-nav-h: 88px;
  scroll-snap-type: y mandatory;
  scroll-padding-top: var(--home-nav-h);
  scroll-behavior: smooth;
  background: #1c2125;
}
body.home {
  --paper: #1c2125;
  --ink: #f0f3f5;
  --muted: #adb8c1;
  --line: #46535d;
  --blue: #b3c8ff;
  background: var(--paper);
  color: var(--ink);
  color-scheme: dark;
}
.home ::selection {
  background: #b3c8ff;
  color: #1c2125;
}
.home .skip-link {
  background: #b3c8ff;
  color: #1c2125;
}
.home #main-content > section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-height: calc(100svh - var(--home-nav-h));
}
.home .quiet-hero.has-home-film {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: none;
  padding: 32px max(var(--gutter), calc((100vw - 1440px) / 2)) 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: transparent;
  color: #f5f6f2;
  margin: 0;
}
.hero-film-background {
  position: fixed;
  inset: var(--home-nav-h) 0 0;
  z-index: 0;
  background: #1c2125 url("../video/home-charging-clean-poster.jpg")
    center/cover no-repeat;
  pointer-events: none;
}
.home #main-content {
  position: relative;
  z-index: 1;
}
.hero-film-background video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-film-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    #1c2125 0%,
    rgba(12, 20, 27, 0.66) 25%,
    rgba(9, 16, 22, 0.54) 100%
  );
}
.home .home-index {
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: auto;
  padding: clamp(38px, 5vh, 56px) max(var(--gutter), calc((100vw - 1440px) / 2)) clamp(44px, 6vh, 64px);
  display: grid;
  grid-template-columns: minmax(300px, .78fr) minmax(520px, 1.42fr);
  gap: clamp(52px, 8vw, 126px);
  align-items: start;
  background: #0a1117;
  color: #f5f6f2;
  border-top: 1px solid rgba(226, 234, 239, .18);
  backdrop-filter: blur(3px);
}
.home #main-content > .home-index {
  min-height: auto;
}
.home .site-footer {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 max(var(--gutter), calc((100vw - 1440px) / 2)) 48px;
  background: #0a1117;
  color: #f5f6f2;
}
.home .site-footer .footer-grid {
  border-top-color: rgba(226, 234, 239, .3);
}
.home .site-footer p,
.home .site-footer small,
.home .site-footer .footer-links span {
  color: #aebbc4;
}
.home .site-footer .footer-links a:hover {
  color: #b3c8ff;
}
.home-index-heading {
  position: relative;
  align-self: start;
  padding-top: 3px;
}
.home-index-heading .eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #b3c8ff;
  margin-bottom: 30px;
  font-size: 12px;
  letter-spacing: .075em;
}
.home-index-heading .eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(179, 200, 255, .36);
}
.home-index-heading h2 {
  color: #f5f6f2;
  font: 400 clamp(44px, 4.8vw, 74px) / 1 var(--sans);
  letter-spacing: -.05em;
  max-width: 560px;
  text-wrap: balance;
}
.home-index-heading p {
  margin: 28px 0 0;
  max-width: 37ch;
  color: #cad3da;
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.62;
}
.home-index-chart {
  border-top: 1px solid rgba(226, 234, 239, .56);
}
.home-index-row {
  display: grid;
  grid-template-columns: 42px minmax(170px, .8fr) minmax(220px, 1fr) 28px;
  gap: 20px;
  align-items: center;
  min-height: 88px;
  border-bottom: 1px solid rgba(226, 234, 239, .3);
  color: #f2f5f7;
  transition: color .2s, background-color .2s, padding .2s;
}
.home-index-number {
  color: #b3c8ff;
  font: 12px/1.4 var(--mono);
}
.home-index-name {
  font-size: clamp(22px, 2vw, 31px);
  line-height: 1.1;
  letter-spacing: -.035em;
}
.home-index-note {
  color: #b9c4cc;
  font-size: 14px;
  line-height: 1.5;
}
.home-index-arrow {
  color: #b3c8ff;
  font-size: 24px;
  text-align: right;
  transition: transform .2s;
}
.home-index-row:hover,
.home-index-row:focus-visible {
  color: #b3c8ff;
  background: rgba(179, 200, 255, .07);
  padding-left: 12px;
  padding-right: 12px;
}
.home-index-row:hover .home-index-arrow,
.home-index-row:focus-visible .home-index-arrow {
  transform: translate(3px, -3px);
}
.home .has-home-film .quiet-hero-label {
  margin-bottom: 22px;
}
.home .has-home-film .quiet-hero-label .eyebrow {
  color: #e0e7ed;
  font-size: 12px;
}
.home .has-home-film .quiet-hero-grid {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  margin: 0 0 36px;
  max-width: 660px;
}
.home .has-home-film .quiet-identity h1 {
  font: 400 clamp(48px, 5.4vw, 82px) / 1.04 var(--sans);
  letter-spacing: -0.055em;
  color: #f5f6f2;
  margin: 0;
  max-width: none;
}
.home .has-home-film .quiet-identity h1 > span {
  display: block;
  padding: 0;
}
.home .has-home-film .quiet-introduction .lead {
  font: 400 clamp(16px, 1.25vw, 19px) / 1.65 var(--sans);
  color: #f0f3f5;
  max-width: 43ch;
  margin: 0 0 16px;
  letter-spacing: -0.012em;
}
.home .has-home-film .quiet-introduction .text-link {
  font-size: 14px;
  color: #f5f6f2;
  border-color: #aab7c2;
}
.home .has-home-film .quiet-hero-foot {
  border-top: 1px solid #5f6b75;
  padding-top: 16px;
  margin-top: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.home .has-home-film .quiet-hero-foot .eyebrow {
  color: #e0e7ed;
}
.home .has-home-film .quiet-hero-foot .actions {
  margin: 0;
  gap: 12px 24px;
}
.home .has-home-film .quiet-hero-foot .button {
  color: #e4e9ed;
  font-size: 14px;
}
.home .has-home-film a:hover {
  color: #b3c8ff;
}
.hero-motion-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
}
.hero-motion-controls button,
.hero-next-section {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: none;
  border: 0;
  padding: 10px 0;
  min-height: 44px;
  color: #e4e9ed;
  font: 13px/1.5 var(--sans);
  cursor: pointer;
}
.hero-motion-controls button:hover,
.hero-next-section:hover {
  color: #b3c8ff;
}
.hero-motion-controls button span {
  font: 14px/1 var(--sans);
  min-width: 14px;
  text-align: center;
}
.hero-next-section span {
  transition: transform 0.2s;
}
.hero-next-section:hover span {
  transform: translateY(3px);
}
.has-home-film :focus-visible {
  outline: 2px solid #b3c8ff;
  outline-offset: 5px;
}
.home .quiet-gateway {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 60px max(var(--gutter), calc((100vw - 1440px) / 2));
  background: #1c2125;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.home .quiet-gateway .gateway-top {
  border-color: #46535d;
  padding-bottom: 28px;
}
.home .quiet-gateway .gateway-top h2 {
  font: 400 clamp(25px, 2.7vw, 41px) / 1.2 var(--sans);
  letter-spacing: -0.035em;
  text-transform: none;
  max-width: none;
}
.home .quiet-gateway .gateway-layout {
  padding-top: 38px;
  align-items: start;
}
.home .quiet-gateway .gateway-panels {
  min-height: 310px;
}
@media (max-width: 1000px) {
  .home .home-index {
    grid-template-columns: 1fr;
    gap: 28px;
    align-content: center;
  }
  .home-index-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
    gap: 18px 46px;
    align-items: end;
    padding: 25px 0 34px;
    border-top: 1px solid rgba(226, 234, 239, .46);
    border-bottom: 1px solid rgba(226, 234, 239, .28);
  }
  .home-index-heading .eyebrow { grid-column: 1 / -1; margin-bottom: 4px; }
  .home-index-heading h2 { max-width: none; }
  .home-index-heading p {
    margin: 0;
    max-width: 35ch;
    padding-left: 28px;
    border-left: 1px solid rgba(226, 234, 239, .28);
  }
  .home .has-home-film .quiet-hero-foot {
    align-items: start;
  }
  .home .has-home-film .quiet-hero-foot .actions {
    justify-content: flex-end;
  }
  .home .has-home-film .quiet-hero-grid {
    max-width: 590px;
  }
}
@media (max-width: 760px) {
  .home .quiet-hero.has-home-film {
    padding: 28px var(--gutter) 14px;
  }
  .hero-film-background video {
    object-position: 62% center;
  }
  .hero-film-background {
    background-position: 62% center;
  }
  .hero-film-background::after {
    background: linear-gradient(
      0deg,
      #1c2125 0%,
      rgba(9, 16, 22, 0.7) 30%,
      rgba(9, 16, 22, 0.6) 100%
    );
  }
  .home .home-index {
    padding: 34px var(--gutter);
    gap: 28px;
    background: rgba(12, 20, 27, .78);
    backdrop-filter: none;
  }
  .home-index-heading {
    display: block;
    padding: 22px 0 28px;
  }
  .home-index-heading .eyebrow { margin-bottom: 18px; }
  .home-index-heading h2 { font-size: 42px; }
  .home-index-heading p { margin-top: 18px; padding-left: 0; border-left: 0; font-size: 15px; }
  .home-index-row {
    grid-template-columns: 28px minmax(0, 1fr) 22px;
    gap: 12px;
    min-height: 69px;
  }
  .home-index-name { font-size: 21px; }
  .home-index-note { display: none; }
  .home-index-arrow { font-size: 20px; }
  .home .has-home-film .quiet-hero-label {
    margin-bottom: 20px;
  }
  .home .has-home-film .quiet-hero-grid {
    gap: 24px;
    margin-bottom: 30px;
    max-width: none;
  }
  .home .has-home-film .quiet-identity h1 {
    font-size: clamp(40px, 9.8vw, 68px);
  }
  .home .has-home-film .quiet-introduction .lead {
    font-size: 16px;
    line-height: 1.65;
    max-width: 43ch;
    margin-bottom: 14px;
  }
  .home .has-home-film .quiet-hero-foot {
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
  }
  .home .has-home-film .quiet-hero-foot .actions {
    justify-content: flex-start;
    gap: 4px 20px;
  }
  .home .has-home-film .quiet-hero-foot .button {
    font-size: 13px;
  }
  .hero-motion-controls {
    margin-top: 5px;
    align-items: center;
  }
  .hero-next-section {
    max-width: 220px;
    font-size: 12px;
  }
  .hero-motion-controls button {
    font-size: 12px;
    flex-shrink: 0;
    gap: 8px;
  }
  .home .quiet-gateway {
    padding: 40px var(--gutter);
  }
  .home .quiet-gateway .gateway-top h2 {
    font-size: 28px;
  }
  .home .quiet-gateway .gateway-layout {
    padding-top: 22px;
  }
  .home .quiet-gateway .gateway-panels {
    min-height: 340px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html.home-sections {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }
  .has-home-film * {
    transition: none !important;
    animation: none !important;
  }
}
@media (min-width: 761px) and (max-height: 850px) {
  .home .quiet-hero.has-home-film {
    padding-top: 22px;
    padding-bottom: 10px;
  }
  .home .has-home-film .quiet-hero-label {
    margin-bottom: 16px;
  }
  .home .has-home-film .quiet-hero-grid {
    gap: 18px;
    margin-bottom: 20px;
  }
  .home .has-home-film .quiet-identity h1 {
    font-size: clamp(46px, 4vw, 60px);
  }
  .home .has-home-film .quiet-introduction .lead {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 10px;
  }
  .home .has-home-film .quiet-hero-foot {
    padding-top: 10px;
  }
  .hero-motion-controls {
    margin-top: 2px;
  }
}
