/* Homepage photography. Supplied images are displayed without filters. */
html { scrollbar-gutter: stable; }
.home-page { --photo-accent: #333e28; --photo-accent-ink: #fffdf4; }
.home-page .hero { width: 100%; margin-inline: 0; min-height: calc(100svh - 72px); grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); grid-template-rows: auto; gap: 48px; padding: 56px; overflow: visible; }
.home-page .hero-product::before { display: none; }
.home-page .hero-content { padding: 0; }
.home-page .hero-product { width: min(900px, 100%); padding: 0; align-self: center; justify-self: end; overflow: hidden; border: 1px solid var(--border); border-radius: 3px; aspect-ratio: 4 / 3; }
.home-page .hero-product img { display: block; width: 100%; height: 100%; max-width: 100%; margin: 0; object-fit: cover; transform: none; filter: none; }
@media (min-width: 901px) {
  .home-page .hero { min-height: calc(90svh - 64.8px); isolation: isolate; overflow: hidden; }
  .home-page .hero-content { z-index: 2; }
  .home-page .hero-product { position: absolute; z-index: 0; inset: 7% 8% 7% auto; width: min(54%, 1102px); height: 86%; aspect-ratio: auto; border: 0; border-radius: 0;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 22%, #000 88%, transparent), linear-gradient(to bottom, transparent 12%, #000 18%, #000 76%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 22%, #000 88%, transparent), linear-gradient(to bottom, transparent 12%, #000 18%, #000 76%, transparent);
    -webkit-mask-composite: source-in; mask-composite: intersect;
  }
}
.home-page .home-product-section { padding-inline: 56px; }
.home-page .home-photo-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; }
.home-page .home-photo-split .section-heading { margin: 0; }
.home-page .home-photo-split .section-heading .inline-link { display: inline-block; margin-top: 20px; }
.home-photo-switcher { min-width: 0; }
.home-photo-options { display: flex; gap: 8px; margin-bottom: 14px; }
.home-photo-option, .home-video-control, .home-lightbox button { min-height: 44px; border: 1px solid var(--control-border); border-radius: 3px; padding: 10px 18px; color: inherit; background-color: var(--page-bg); font: inherit; font-size: .88rem; font-weight: 650; cursor: pointer; }
.home-photo-option { flex: 1; }
.home-photo-option[aria-pressed="true"] { color: var(--photo-accent-ink); background-color: var(--photo-accent); border-color: var(--photo-accent); }
.home-photo-option:hover:not([aria-pressed="true"]), .home-lightbox button:hover { border-color: currentColor; }
.home-photo-stage { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--border); border-radius: 3px; background-color: var(--surface); }
.home-photo-panel { position: absolute; inset: 0; opacity: 0; transition: opacity 180ms ease; }
.home-photo-panel.is-current { opacity: 1; }
.home-photo-panel img, .home-rifle-photo img, .home-gallery-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-photo-caption, .home-rifle-photo figcaption, .home-gallery-tile figcaption { margin: 12px 0 0; font-size: .8rem; font-family: var(--mono-font); font-variant-numeric: tabular-nums; line-height: 1.5; }
.home-page #workflow .workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.home-page #workflow .step { padding: 28px; border: 1px solid var(--border); border-radius: 3px; }
.home-page #workflow .step::after { display: none; }
.home-page #workflow .step p + p { margin-top: 16px; }
.home-page #workflow .home-swap-step { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 40px; align-items: center; }
.home-page #workflow .home-swap-copy { max-width: 570px; }
.home-page #workflow .home-swap-step h3 { font-size: clamp(2rem, 3.5vw, 3.2rem); }
.home-swap-demo { margin: 0; min-width: 0; }
.home-swap-demo video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: contain; border: 1px solid var(--border); border-radius: 3px; background-color: #131515; }
.home-swap-demo figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; margin-top: 8px; font-size: .8rem; }
.home-page .home-video-control { color: #eef0e3; background-color: #131515; border-color: #777d70; }
.home-rifle-grid, .home-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.home-gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-rifle-photo, .home-gallery-tile { min-width: 0; margin: 0; }
.home-rifle-photo img { height: auto; aspect-ratio: 4 / 3; border: 1px solid var(--border); border-radius: 3px; }
.home-gallery-tile a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--border); border-radius: 3px; }
.home-gallery-tile a:hover { border-color: var(--photo-accent); }
.home-gallery-tile figcaption { min-height: 2.4em; }
.home-lightbox { box-sizing: border-box; width: min(1200px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 18px; overflow: auto; color: #eef0e3; background-color: #161815; border: 1px solid #777d70; border-radius: 3px; }
.home-lightbox::backdrop { background-color: rgba(0, 0, 0, .86); }
.home-lightbox-header { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.home-lightbox-header h2 { flex: 1; margin: 0; font-family: var(--display-font); font-size: 1.6rem; line-height: 1.2; }
.home-lightbox-count { font-family: var(--mono-font); font-size: .85rem; font-variant-numeric: tabular-nums; }
.home-lightbox button { color: #eef0e3; background-color: #20231e; border-color: #777d70; }
.home-lightbox-figure { margin: 0; }
.home-lightbox-image-stage { height: min(68dvh, 680px); width: 100%; touch-action: pan-y; user-select: none; }
.home-lightbox-image-stage img { display: block; width: 100%; height: 100%; object-fit: contain; }
.home-lightbox-figure figcaption { min-height: 24px; margin-top: 12px; font-family: var(--mono-font); font-size: .85rem; }
.home-lightbox-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.home-lightbox-help { font-size: .8rem; color: #b9bca8; }
.home-page :is(.home-photo-option, .home-video-control, .home-lightbox button, .home-gallery-tile a):focus-visible { outline: 3px solid var(--photo-accent); outline-offset: 4px; }
.home-page .home-lightbox button:focus-visible, .home-page .home-video-control:focus-visible { outline-color: #bce82a; }
html.home-lightbox-open, html.home-lightbox-open body { overflow: hidden; }
@media (max-width: 900px) {
  .home-page .hero { min-height: auto; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 36px 18px; }
  .home-page .hero-product { width: 100%; }
  .home-page .hero h1.hero-headline { max-width: 650px; }
  .home-page .home-photo-split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .home-page .home-product-section { padding-inline: 18px; }
  .home-page #customize .section-heading { grid-row: 1; }
}
@media (max-width: 767px) {
  .home-page .home-product-section, .home-page #workflow { padding-inline: 18px; }
  .home-page #workflow .workflow-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .home-page #workflow .step { padding: 22px; }
  .home-page #workflow .home-swap-step { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .home-swap-demo { width: min(300px, 100%); margin-inline: auto; }
  .home-rifle-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .home-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .home-gallery-tile figcaption { font-size: .69rem; }
  .home-lightbox { width: calc(100% - 20px); max-height: calc(100dvh - 20px); padding: 12px; }
  .home-lightbox-image-stage { height: 60dvh; }
  .home-lightbox-help { display: none; }
}
@media (prefers-color-scheme: dark) {
  .home-page { --photo-accent: #bce82a; --photo-accent-ink: #1c2208; }
}
@media (prefers-reduced-motion: reduce) {
  .home-photo-panel { transition: none; }
}
