/**
 * t2091u Military Relocation — CH01 Part 2 household pace
 * Version: 0.1.1-ch01-part2-pace-t2091u
 * Does not modify CH00 or Part 1.
 * Item 1 gap cut is not in this file. Part 1 height and close band stay frozen.
 * Seam: live CSS mask over the Part 1 map. Desktop max 180px (inside 140–220).
 * No wave, diagonal, particles, glow, autonomous animation, or parallax.
 * Navy #274565. Gold #C4A574 (existing --sd-mil-gold). Support #111111.
 * Mission red #B33A3A, 1.5px, left 2%. Hidden at max-width 767px. Not redesigned.
 * Type: Cinzel + Inter already on the military page. No typewriter.
 */
.sd-mil-ch01-part2 {
  --sd-mil-ch01-p2-blue: #274565;
  --sd-mil-ch01-p2-gold: #C4A574;
  --sd-mil-ch01-p2-black: #111111;
  --sd-mil-ch01-p2-red: #B33A3A;
  --sd-mil-ch01-p2-line: 0;
  --sd-mil-ch01-p2-seam-max: 180px;
  --sd-mil-ch01-p2-seam: 180px;
  --sd-mil-font-display: "Cinzel", "Times New Roman", Georgia, serif;
  --sd-mil-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  position: relative;
  z-index: 2;
  /* Overlap is the seam only. It is not a cut of the Part 1 pin. */
  margin: calc(-1 * var(--sd-mil-ch01-p2-seam-max)) 0 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  height: auto;
  background: none;
  background-color: transparent;
  isolation: isolate;
  overflow: visible;
}

.sd-mil-ch01-part2__track {
  height: 100%;
}

.sd-mil-ch01-part2__stage {
  position: relative;
  z-index: 1;
  width: 100%;
  background: none;
  background-color: transparent;
}

.sd-mil-ch01-part2__photo {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
  margin: 0;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--sd-mil-ch01-p2-seam, 180px));
  mask-image: linear-gradient(to bottom, transparent 0, #000 var(--sd-mil-ch01-p2-seam, 180px));
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.sd-mil-ch01-part2.is-seam-clear .sd-mil-ch01-part2__photo {
  -webkit-mask-image: none;
  mask-image: none;
}

.sd-mil-ch01-part2__mission-line {
  position: absolute;
  left: 2%;
  top: 0;
  bottom: 0;
  width: 1.5px;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
  background: none;
}

.sd-mil-ch01-part2__mission-line-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--sd-mil-ch01-p2-red);
  transform-origin: top center;
  transform: scaleY(var(--sd-mil-ch01-p2-line, 0));
  transition: none;
  animation: none;
}

.sd-mil-ch01-part2__copy {
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0.75rem;
  width: 48%;
  max-width: 40rem;
  margin: 0;
  padding: 0 0.75rem 0 6.5%;
  background: none;
  border: 0;
  box-shadow: none;
  pointer-events: none;
}

h2.sd-mil-ch01-part2__stage1,
h2.sd-mil-ch01-part2__stage2 {
  margin: 0;
  font-family: var(--sd-mil-font-display);
  font-weight: 500;
  font-size: 51px;
  line-height: 1.05;
  letter-spacing: 0.035em;
  background: none;
  border: 0;
  box-shadow: none;
  opacity: var(--sd-mil-ch01-p2-o, 0);
  transform: translate3d(var(--sd-mil-ch01-p2-x, 0px), 0, 0);
  transition: none;
  animation: none;
}

h2.sd-mil-ch01-part2__stage1 {
  color: var(--sd-mil-ch01-p2-blue);
  font-weight: 500;
  font-size: 51px;
}

h2.sd-mil-ch01-part2__stage2 {
  margin-top: 0.16em;
  color: var(--sd-mil-ch01-p2-gold);
  font-weight: 600;
  font-size: 56px;
}

.sd-mil-ch01-part2__support {
  margin: 0.45em 0 0;
  max-width: 34em;
  font-family: var(--sd-mil-font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  color: var(--sd-mil-ch01-p2-black);
  background: none;
  border: 0;
  box-shadow: none;
  opacity: var(--sd-mil-ch01-p2-o, 0);
  transform: translate3d(0, var(--sd-mil-ch01-p2-y, 0px), 0);
  transition: none;
  animation: none;
}

/* Tablet: same scene, full-height stage so it is not a shrunken desktop strip. */
@media (max-width: 1199px) and (min-width: 768px) {
  .sd-mil-ch01-part2 {
    --sd-mil-ch01-p2-seam-max: 160px;
    --sd-mil-ch01-p2-seam: 160px;
    height: 240vh;
    height: 240dvh;
  }
  .sd-mil-ch01-part2__stage {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }
  .sd-mil-ch01-part2__photo {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: 16% center;
  }
  .sd-mil-ch01-part2__copy {
    top: 12%;
    width: 50%;
    max-width: none;
    padding: 0 1rem 0 8%;
  }
  h2.sd-mil-ch01-part2__stage1 {
    font-size: 40px;
  }
  h2.sd-mil-ch01-part2__stage2 {
    font-size: 46px;
  }
  .sd-mil-ch01-part2__support {
    font-size: 16px;
    max-width: 32em;
  }
}

/* Mobile. Line rule below is the accepted max-width 767 hide. Do not redesign it. */
@media (max-width: 767px) {
  .sd-mil-ch01-part2 {
    --sd-mil-ch01-p2-seam-max: 88px;
    --sd-mil-ch01-p2-seam: 88px;
    height: 240vh;
    height: 240dvh;
  }
  .sd-mil-ch01-part2__stage {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
  }
  .sd-mil-ch01-part2__photo {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: 8% center;
  }
  .sd-mil-ch01-part2__mission-line {
    display: none;
  }
  .sd-mil-ch01-part2__copy {
    top: 14%;
    width: 88%;
    max-width: none;
    padding: 0 1.15rem 0 1.25rem;
  }
  h2.sd-mil-ch01-part2__stage1 {
    font-size: 30px;
    line-height: 1.12;
  }
  h2.sd-mil-ch01-part2__stage2 {
    font-size: 34px;
    line-height: 1.12;
  }
  .sd-mil-ch01-part2__support {
    font-size: 16px;
    line-height: 1.5;
    max-width: 28em;
  }
}

@media (prefers-reduced-motion: reduce) {
  h2.sd-mil-ch01-part2__stage1,
  h2.sd-mil-ch01-part2__stage2,
  .sd-mil-ch01-part2__support {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .sd-mil-ch01-part2__mission-line-fill {
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}
