/* Homepage photography. Shared navigation, footer and interior page styles live separately. */
#home .photo-showcase {
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  min-height: auto;
  gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(28px, 4.2vw, 68px);
}
#home .photo-showcase h1 {
  font-size: clamp(30px, 3.6vw, 54px);
  line-height: 1.09;
  text-wrap: balance;
}
#home .photo-hero-copy p { font-size: clamp(15px, 1.5vw, 18px); margin-top: 16px; }
#home .home-photo {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 16px;
  background: #e4e9eb;
  border: 1px solid #dce4e8;
}
#home .home-photo-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 0;
}
#home .reception-wordmark {
  position: absolute;
  inset: auto;
  left: 30.8%;
  top: 23.6%;
  width: 8.6%;
  height: auto;
  transform: rotate(-1deg);
  pointer-events: none;
}
#home .scanner-photo .badge-wordmark {
  position: absolute;
  left: 35.2%;
  top: 36.4%;
  width: 8%;
  height: auto;
  border-radius: 0;
  transform: rotate(-10deg);
  pointer-events: none;
}
#home .photo-stories { gap: clamp(12px, 2vw, 24px); }
#home .photo-stories .story { display: block; }
#home .photo-stories .story > a {
  display: flex;
  height: 100%;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}
#home .photo-stories .story > a:focus-visible { outline: 2px solid #0066b3; outline-offset: -4px; }
#home .story-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  background: #e7ecee;
}
#home .photo-stories .story-copy { display: flex; flex: 1; flex-direction: column; gap: 7px; padding: clamp(14px, 2vw, 23px); }
#home .photo-stories .story-copy h3 { font-size: clamp(17px, 1.8vw, 23px); line-height: 1.2; }
#home .photo-stories .story-copy p { margin: 0; font-size: 14px; line-height: 1.5; }
#home .story-link { margin-top: auto; padding-top: 8px; color: #075c98; font-size: 14px; font-weight: 650; }
#home .photo-stories a:is(:hover,:focus-visible) .story-link { text-decoration: underline; }
#home .photo-device-layout { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: clamp(24px, 5vw, 72px); }
#home .photo-device-layout p { max-width: 42ch; margin-bottom: 18px; }

@media (max-width: 780px) {
  #home .photo-showcase, #home .photo-device-layout { grid-template-columns: minmax(0, 1fr); }
  #home .photo-showcase h1 { font-size: clamp(29px, 6.5vw, 42px); }
  #home .photo-stories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  #home .photo-stories { grid-template-columns: minmax(0, 1fr); }
  #home .photo-showcase .actions { flex-wrap: wrap; gap: 8px; }
  #home .home-photo { border-radius: 12px; }
}
/* Use the same content rails for the hero, workflow cards and scanner section. */
#home .home-banner,
#home .home-banner .feature-hero { background: #fff; }
#home .home-banner { border-color: #e9eef1; }
#home .photo-showcase {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: 0;
  min-height: 0;
  padding-block: clamp(24px, 3.3vw, 46px);
  isolation: isolate;
}
#home .photo-hero-copy { grid-area: 1 / 1 / 2 / 7; position: relative; z-index: 1; }
#home .photo-showcase h1 { font-size: clamp(32px, 3.55vw, 51px); text-wrap: initial; }
#home .photo-hero-copy p { max-width: 37ch; }
#home .photo-showcase .reception-photo {
  grid-area: 1 / 5 / 2 / 13;
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  /* Expose the counter farther left than the top of the scene. Soften the far edge, too. */
  mask-image:
    linear-gradient(109deg, transparent 8%, #000 38%),
    linear-gradient(to right, #000 91%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 8%, #000 91%, transparent 100%);
  mask-composite: intersect;
}
#home .photo-showcase .reception-photo .home-photo-image { object-fit: contain; }
#home #walkthroughs,
#home .photo-device-band { padding-block: clamp(36px, 5.5vw, 74px); }
#home .photo-device-band {
  background: #f7f9fa;
  border-block: 1px solid #e9eef1;
}
#home .photo-stories .story,
#home .photo-device-band .home-photo { border-radius: 14px; }
#home .photo-device-layout h2 { max-width: 24ch; }

@media (max-width: 860px) {
  #home .photo-showcase { grid-template-columns: minmax(0, 1fr); padding-block: 36px 18px; }
  #home .photo-hero-copy { grid-area: auto; }
  #home .photo-showcase h1 { font-size: clamp(29px, 6vw, 46px); }
  #home .photo-showcase .reception-photo {
    grid-area: auto;
    max-width: 640px;
    justify-self: center;
    margin-top: 14px;
    mask-image:
      linear-gradient(to bottom, transparent 0, #000 13%, #000 93%, transparent 100%),
      linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
  }
}

@media (prefers-reduced-motion: no-preference) {
  #home [data-scroll-reveal] {
    transition: opacity 470ms ease-out, transform 560ms cubic-bezier(.22,.68,.25,1);
    transition-delay: var(--reveal-delay, 0ms);
  }
  #home [data-scroll-reveal="waiting"]:not(:focus-within) {
    opacity: .12;
    transform: translateY(18px);
  }
  #home .story:nth-child(2) { --reveal-delay: 65ms; }
  #home .story:nth-child(3) { --reveal-delay: 125ms; }
}
