/* Homepage enhancements, loaded after the shared theme. */
.home-page [hidden] {
  display: none;
}
.home-page section[id],
#equipment-finder {
  scroll-margin-top: 108px;
}
.home-page .hero::after {
  z-index: 0;
}
.home-page .hero h1 {
  font-size: clamp(38px, 4.3vw, 58px);
}
.home-page .hero-promise {
  margin: -7px 0 15px;
  color: #d2ebe9;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
@media (max-width: 780px) {
  .home-page .hero h1 {
    font-size: clamp(32px, 6vw, 46px);
  }
  .home-page .hero-promise {
    font-size: 13px;
    margin-top: 0;
  }
}
.home-page .hero-image::before {
  animation: home-light 9s ease-in-out infinite alternate;
  animation-play-state: paused;
}
.home-page .banner-playing .hero-image::before {
  animation-play-state: running;
}
@keyframes home-light {
  from {
    opacity: 0.35;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1.12);
  }
}
.home-page .hero .model-tag {
  transition:
    border-color 180ms,
    background 180ms;
}
.home-page .hero .model-tag:hover {
  border-color: #78dcd0;
  background: #1e5063;
}
.home-page .hero .model-tag strong {
  color: #fff;
}
.home-page .carousel-controls {
  gap: 12px;
}
.home-page .carousel-arrow {
  width: 44px;
  height: 44px;
}
.home-page .carousel-dot {
  min-width: 24px;
  height: 44px;
  border-radius: 0;
  background: none;
  position: relative;
}
.home-page .carousel-dot::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 8px;
  background: #8eacbb;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 180ms,
    background 180ms;
}
.home-page .carousel-dot[aria-pressed='true'] {
  width: 26px;
  background: none;
}
.home-page .carousel-dot[aria-pressed='true']::after {
  width: 22px;
  background: #80ddd3;
}
.home-page .carousel-arrow:disabled {
  opacity: 0.45;
  cursor: default;
}
.banner-progress {
  position: absolute;
  bottom: -9px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #8bc8c320;
  overflow: hidden;
}
.banner-progress > span {
  display: block;
  height: 100%;
  background: #80ddd3;
  transform: scaleX(0);
  transform-origin: left;
}
.home-page button:focus-visible,
.home-page .hero-rail a:focus-visible,
.home-page [data-home-app]:focus-visible,
.home-page .model-tag:focus-visible {
  outline: 3px solid #3da5e6;
  outline-offset: 4px;
}
.home-page .rail-item {
  position: relative;
  transition: background 180ms;
}
.home-page .rail-item:hover {
  background: #f0f8f8;
}
.rail-arrow {
  margin-left: auto;
  color: #178c87;
  font-size: 19px;
}
.home-finder {
  margin: 30px 0 40px;
  border: 1px solid #d7e5eb;
  border-radius: 14px;
  background: #f5f9fa;
  overflow: hidden;
}
.home-choice-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid #d7e5eb;
}
.home-choice-controls button {
  appearance: none;
  border: 0;
  border-right: 1px solid #d7e5eb;
  color: #496b7e;
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  text-align: left;
  padding: 20px 24px;
  cursor: pointer;
  transition: background 180ms;
}
.home-choice-controls button:last-child {
  border-right: 0;
}
.home-choice-controls button > span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #678a97;
  margin-bottom: 9px;
}
.home-choice-controls button[aria-pressed='true'] {
  background: #153f56;
  color: #fff;
}
.home-choice-controls button[aria-pressed='true'] > span {
  color: #8ddbd1;
}
.home-route-panels article {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  padding: 32px;
  align-items: center;
  min-height: 270px;
}
.home-route-panels article + article {
  border-top: 1px solid #d7e5eb;
}
.home-enhanced .home-route-panels article {
  border-top: 0;
}
.home-kicker {
  color: #148a84;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
  font-weight: 650;
}
.home-route-panels h3 {
  margin: 12px 0;
  font-size: 27px;
  letter-spacing: -0.035em;
}
.home-route-panels p {
  color: #607c90;
  font-size: 14px;
  max-width: 500px;
  margin: 0;
  line-height: 1.8;
}
.home-route-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 22px;
}
.home-route-links .btn {
  font-size: 12px;
  min-height: 44px;
}
.home-text-link {
  color: #148a84;
  font-size: 12px;
  font-weight: 650;
}
.home-process-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  position: relative;
}
.home-process-path > div {
  position: relative;
  padding: 22px 12px;
  min-height: 100px;
  background: #fff;
  border: 1px solid #d2e5e8;
  border-radius: 10px;
}
.home-process-path > div:not(:nth-child(3))::after {
  content: '→';
  position: absolute;
  right: -14px;
  top: 50%;
  color: #188b88;
  transform: translateY(-50%);
}
.home-process-path span {
  display: block;
  color: #5b9796;
  letter-spacing: 0.1em;
  font-size: 10px;
  margin-bottom: 8px;
}
.home-process-path b {
  font-size: 12px;
  line-height: 1.5;
}
.home-process-path small {
  grid-column: 1/-1;
  font-size: 10px;
  color: #708c9b;
}
.home-page .home-collection-link {
  justify-content: space-between;
  align-items: center;
  margin: 0 0 24px;
}
.home-collection-link h3 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.home-product-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}
.home-product-actions .home-preview-button {
  appearance: none;
  border: 1px solid #cddfe5;
  background: #f6fafa;
  border-radius: 7px;
  padding: 10px 12px;
  min-height: 44px;
  font: inherit;
  color: #176f72;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition:
    background 180ms,
    border-color 180ms;
}
.home-preview-button > span {
  margin-left: 14px;
  font-size: 17px;
}
.home-product-actions .home-preview-button:hover {
  background: #e9f6f2;
  border-color: #75b9b5;
}
.home-case {
  background: #f1f7f9;
}
.home-case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.home-case h2 {
  font-size: clamp(32px, 3.8vw, 49px);
  line-height: 1.12;
  letter-spacing: -0.045em;
  margin: 18px 0 24px;
}
.home-case p {
  color: #607c90;
  font-size: 14px;
  line-height: 1.85;
  max-width: 490px;
}
.home-case figure {
  margin: 0;
}
.home-case figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #d7e5eb;
  border-radius: 12px;
}
.home-case figcaption {
  font-size: 10px;
  margin-top: 10px;
  color: #70899a;
}
.home-case-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
}
.home-case-switch button {
  min-height: 44px;
  padding: 12px 17px;
  appearance: none;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  border: 1px solid #c9dfe4;
  border-radius: 7px;
  background: #fff;
  color: #456b7e;
}
.home-case-switch button[aria-pressed='true'] {
  background: #dff2ed;
  border-color: #86c6bc;
  color: #11756d;
}
.home-case-notes {
  margin: 18px 0 24px;
  padding-left: 20px;
  border-left: 2px solid #168d84;
}
.home-case-notes article {
  min-height: 155px;
}
.home-case-notes h3 {
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing: -0.025em;
}
.home-case-notes p {
  margin: 0 0 14px;
  font-size: 13px;
}
.home-structure {
  display: inline-block;
  color: #16776e;
  font-size: 11px;
  font-weight: 650;
}
.home-structure > span {
  color: #74aaa2;
  margin: 0 12px;
}
.home-case-facts {
  display: flex;
  gap: 22px;
  border-top: 1px solid #d7e5eb;
  padding-top: 18px;
  margin-top: 18px;
}
.home-case-facts > span {
  font-size: 11px;
  color: #637f90;
}
.home-case-facts b {
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -0.03em;
  display: block;
  color: #193f55;
  margin-bottom: 5px;
}
.home-page .application-photo img {
  transition: transform 320ms ease;
}
.home-page .application:hover .application-photo img {
  transform: scale(1.04);
}
.home-page .application[aria-pressed='true'] {
  border-color: #88dad0;
  box-shadow: 0 0 0 1px #88dad0;
}
.home-app-panels {
  margin-top: 24px;
  border: 1px solid #466879;
  border-radius: 12px;
  background: #173c51;
  overflow: hidden;
}
.home-app-panels article {
  display: flex;
  gap: 50px;
  padding: 28px 30px;
  align-items: center;
  justify-content: space-between;
  min-height: 185px;
}
.home-app-panels article + article {
  border-top: 1px solid #466879;
}
.home-enhanced .home-app-panels article {
  border-top: 0;
}
.home-app-panels .home-kicker {
  color: #8bd9cd;
}
.home-app-panels h3 {
  color: #fff;
  font-size: 24px;
  letter-spacing: -0.025em;
  margin: 10px 0;
}
.home-app-panels p {
  color: #bfd4df;
  font-size: 14px;
  margin: 0;
  max-width: 750px;
  line-height: 1.8;
}
.home-app-panels .btn {
  flex-shrink: 0;
  font-size: 12px;
}
.home-equipment-dialog {
  width: min(920px, calc(100% - 40px));
  max-height: 88dvh;
  overflow-y: auto;
  border: 1px solid #d5e3e9;
  border-radius: 16px;
  padding: 32px;
  color: #173f56;
  background: #fff;
}
.home-equipment-dialog::backdrop {
  background: #071f35a6;
  backdrop-filter: blur(4px);
}
.home-modal-open {
  overflow: hidden;
}
.home-equipment-dialog[open] {
  animation: home-dialog-enter 180ms ease-out;
}
@keyframes home-dialog-enter {
  from {
    opacity: 0.3;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.home-dialog-close {
  position: absolute;
  right: 18px;
  top: 18px;
  border: 1px solid #d7e3e9;
  border-radius: 50%;
  background: #f4f8fa;
  width: 44px;
  height: 44px;
  font-size: 24px;
  color: #325f76;
  cursor: pointer;
}
.home-dialog-heading {
  padding-right: 44px;
}
.home-dialog-heading h2 {
  font-size: 32px;
  letter-spacing: -0.035em;
  margin: 12px 0 24px;
}
.home-preview-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.home-preview-photo {
  min-height: 245px;
  background: #edf4f7;
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.home-preview-photo img {
  display: block;
  width: 100%;
  height: 270px;
  object-fit: contain;
}
.home-preview-summary {
  color: #678295;
  font-size: 14px;
  margin: 0 0 20px;
}
.home-preview-specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}
.home-preview-specs caption {
  text-align: left;
  font-weight: 650;
  font-size: 13px;
  margin-bottom: 10px;
}
.home-preview-specs td,
.home-preview-specs th {
  padding: 11px 8px;
  border-bottom: 1px solid #e1ebf0;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.home-preview-specs th {
  width: 42%;
  font-weight: 550;
  color: #6b8596;
}
.home-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.home-dialog-actions .btn {
  font-size: 12px;
  min-height: 44px;
}
.home-preview-status {
  min-height: 130px;
  color: #6b8596;
  font-size: 14px;
  padding-top: 35px;
}
@media (max-width: 1000px) {
  .home-route-panels article {
    gap: 30px;
  }
  .home-case-grid {
    gap: 36px;
  }
  .home-app-panels article {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }
}
@media (max-width: 780px) {
  .home-choice-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-choice-controls button {
    padding: 18px 20px;
    border-bottom: 1px solid #d7e5eb;
  }
  .home-choice-controls button:nth-child(2n) {
    border-right: 0;
  }
  .home-route-panels article {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 24px;
  }
  .home-case-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .home-case figure {
    max-width: 650px;
  }
  .home-page .carousel-controls {
    gap: 8px;
  }
  .home-preview-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .home-page .hero-rail .rail-item {
    gap: 12px;
  }
}
@media (max-width: 600px) {
  .home-page section[id],
  #equipment-finder {
    scroll-margin-top: 90px;
  }
  .home-page .hero-rail .container {
    display: grid;
    grid-template-columns: 1fr;
  }
  .home-page .hero-rail .rail-item {
    min-height: 75px;
    width: 100%;
    border-bottom: 1px solid #e2ebef;
    border-right: 0;
    padding: 15px 22px;
  }
  .home-route-panels h3 {
    font-size: 24px;
  }
  .home-route-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .home-process-path {
    gap: 12px;
  }
  .home-process-path > div {
    padding: 16px 9px;
  }
  .home-process-path b {
    font-size: 11px;
  }
  .home-process-path > div:not(:nth-child(3))::after {
    right: -11px;
  }
  .home-page .home-collection-link {
    gap: 20px;
  }
  .home-collection-link h3 {
    font-size: 16px;
  }
  .home-case-facts {
    gap: 18px;
  }
  .home-enhanced .application-grid {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 2px 2px 12px;
    scroll-snap-type: x proximity;
  }
  .home-enhanced .application-grid .application {
    flex: 0 0 235px;
    display: flex;
    flex-direction: column;
    scroll-snap-align: center;
  }
  .home-enhanced .application-grid .application > div:last-child {
    width: 100%;
    text-align: left;
  }
  .home-enhanced .application-grid {
    scrollbar-color: #79c2b9 #163a4e;
    scrollbar-width: thin;
  }
  .home-enhanced .application-grid::-webkit-scrollbar {
    height: 6px;
  }
  .home-enhanced .application-grid::-webkit-scrollbar-thumb {
    background: #79c2b9;
    border-radius: 8px;
  }
  .home-app-panels article {
    padding: 24px;
  }
  .home-app-panels h3 {
    font-size: 22px;
  }
  .home-app-panels .btn {
    width: 100%;
    justify-content: space-between;
    white-space: normal;
    text-align: left;
  }
  .home-equipment-dialog {
    width: calc(100% - 24px);
    padding: 24px 20px;
    max-height: 90dvh;
  }
  .home-dialog-heading h2 {
    font-size: 27px;
  }
  .home-dialog-close {
    right: 12px;
    top: 12px;
  }
  .home-dialog-actions {
    flex-direction: column;
  }
  .home-preview-photo {
    min-height: 0;
  }
  .home-preview-photo img {
    height: 200px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .hero-image::before,
  .home-equipment-dialog[open] {
    animation: none;
  }
  .home-page .application:hover .application-photo img {
    transform: none;
  }
  .home-page .application-photo img {
    transition: none;
  }
}

/* Three application stories: real HTML content with progressively enhanced tabs. */
.home-stories {
  background: #102e43;
  color: #fff;
}
.home-stories-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 70px;
  margin-bottom: 34px;
}
.home-stories .eyebrow {
  color: #91dcd2;
}
.home-stories-heading h2 {
  margin: 16px 0 0;
}
.home-stories-heading > p {
  color: #b6cbd8;
  margin: 0;
  max-width: 430px;
  justify-self: end;
}
.home-story-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid #426074;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 28px;
}
.home-story-controls button {
  display: flex;
  align-items: center;
  gap: 18px;
  appearance: none;
  font: inherit;
  text-align: left;
  color: #d4e2e9;
  background: #143449;
  padding: 22px 24px;
  border: 0;
  border-right: 1px solid #426074;
  cursor: pointer;
  transition:
    background 180ms,
    color 180ms;
}
.home-story-controls button:last-child {
  border-right: 0;
}
.home-story-controls button:hover {
  background: #224a60;
}
.home-story-controls button[aria-selected='true'] {
  background: #dff2ed;
  color: #143d4b;
}
.home-story-tab-number {
  font-size: 12px;
  opacity: 0.65;
}
.home-story-controls small {
  display: block;
  font-size: 10px;
  margin-bottom: 7px;
  opacity: 0.8;
}
.home-story-controls b {
  display: block;
  font-size: 17px;
  font-weight: 650;
}
.home-story-tab-arrow {
  margin-left: auto;
  font-size: 20px;
}
.home-story-controls button:focus-visible {
  outline-offset: -5px;
}
.home-story-panel {
  --story-accent: #8cddd2;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 42px;
  padding: 32px;
  margin-bottom: 26px;
  background: #17394e;
  border: 1px solid #35576a;
  border-radius: 18px;
  align-items: center;
}
.home-enhanced .home-story-panel {
  margin-bottom: 0;
}
.home-story-panel[data-home-story-panel='tray'] {
  --story-accent: #e8c57b;
}
.home-stories .home-story-visual {
  min-width: 0;
}
.home-story-photo {
  position: relative;
  background: #f5f7f8;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}
.home-stories .home-story-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
  border-radius: 0;
}
.home-story-photo-label {
  position: absolute;
  bottom: 14px;
  left: 14px;
  border-radius: 5px;
  padding: 7px 11px;
  background: #102e43e8;
  color: #fff;
  font-size: 10px;
}
.home-stories .home-story-visual figcaption {
  color: #b3cad7;
  font-size: 10px;
  margin: 12px 0 18px;
}
.home-story-layers {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.home-story-layer {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 11px;
}
.home-story-layer b {
  min-width: 48px;
  font-size: 12px;
}
.home-story-layer span {
  color: #385c6d;
}
.home-story-layer-film {
  background: #dceff1;
  color: #1a5964;
}
.home-story-layer-al {
  background: linear-gradient(100deg, #b6c8d4, #edf3f6 48%, #c8d7e0);
  color: #254457;
}
.home-story-layer-pe {
  background: #ccece3;
  color: #205c52;
}
.home-story-layer-gold {
  background: #f0dfb5;
  color: #70571e;
}
.home-story-copy {
  min-width: 0;
}
.home-story-copy > .eyebrow {
  color: var(--story-accent);
  font-size: 10px;
  letter-spacing: 0.12em;
}
.home-story-copy h3 {
  margin: 16px 0;
  font-size: clamp(28px, 3vw, 39px);
  line-height: 1.14;
  letter-spacing: -0.035em;
}
.home-stories .home-story-copy p {
  max-width: none;
  color: #bfd1dc;
  font-size: 13px;
  line-height: 1.75;
  margin: 0;
}
.home-stories .home-story-copy .home-story-intro {
  font-size: 14px;
  margin-bottom: 22px;
}
.home-story-challenge,
.home-story-approach {
  padding: 18px 0;
  border-top: 1px solid #3b5a6e;
}
.home-story-challenge > span,
.home-story-approach > span {
  color: var(--story-accent);
  font-size: 9px;
  letter-spacing: 0.14em;
}
.home-story-copy h4 {
  font-size: 16px;
  letter-spacing: -0.015em;
  line-height: 1.4;
  margin: 8px 0;
}
.home-story-copy .btn {
  margin-top: 18px;
  min-height: 48px;
}
@media (max-width: 1000px) {
  .home-story-panel {
    gap: 28px;
    padding: 26px;
  }
  .home-story-controls button {
    padding: 20px 16px;
    gap: 12px;
  }
  .home-story-tab-arrow {
    display: none;
  }
}
@media (max-width: 780px) {
  .home-stories-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .home-stories-heading > p {
    justify-self: start;
  }
  .home-story-panel {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .home-stories .home-story-visual {
    max-width: none;
  }
  .home-story-copy h3 {
    font-size: 34px;
  }
  .home-story-controls button {
    display: block;
    padding: 16px 12px;
  }
  .home-story-tab-number {
    display: block;
    margin-bottom: 8px;
  }
  .home-story-controls small {
    font-size: 9px;
    min-height: 25px;
  }
  .home-story-controls b {
    font-size: 13px;
  }
}
@media (max-width: 450px) {
  .home-story-panel {
    padding: 18px;
  }
  .home-story-controls {
    margin-bottom: 20px;
  }
  .home-story-controls button {
    padding-inline: 10px;
  }
  .home-story-copy h3 {
    font-size: 30px;
  }
  .home-story-copy .btn {
    width: 100%;
    justify-content: space-between;
    font-size: 12px;
    padding-inline: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-story-controls button {
    transition: none;
  }
}
