/* Final packaging fixes: smaller headings and reliable hero imagery. */
h1,
.text-display-xl,
.text-display-lg {
  font-size: clamp(1.45rem, 3.6vw, 2.4rem) !important;
  line-height: 1.12 !important;
  letter-spacing: 0 !important;
}

h2,
.text-display-md {
  font-size: clamp(1.2rem, 2.6vw, 1.65rem) !important;
  line-height: 1.18 !important;
  letter-spacing: 0 !important;
}

h3,
.text-display-sm,
.text-heading-lg {
  font-size: clamp(1rem, 1.8vw, 1.2rem) !important;
  line-height: 1.25 !important;
}

.hero img,
section img {
  object-fit: cover;
}

.hsg-card[data-pidgeon-gallery-link] {
  cursor: pointer;
}

.hsg-card[data-pidgeon-gallery-link]::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0);
  border-radius: inherit;
  pointer-events: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.hsg-card[data-pidgeon-gallery-link]:hover::after,
.hsg-card[data-pidgeon-gallery-link]:focus-visible::after {
  border-color: rgba(234, 88, 12, 0.7);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.hsg-card[data-pidgeon-gallery-link]:focus-visible {
  outline: 3px solid rgba(234, 88, 12, 0.72);
  outline-offset: 5px;
}

.pin-spacer:has(.hsg-card),
section:has(.hsg-card),
.pidgeon-gallery-pin-spacer,
.pidgeon-gallery-section {
  position: relative !important;
  z-index: 1 !important;
  clear: both;
  isolation: isolate;
  background: #1c1917 !important;
}

.pin-spacer:has(.hsg-card),
.pidgeon-gallery-pin-spacer {
  overflow: visible !important;
}

.pidgeon-gallery-cta {
  position: absolute;
  right: 1.25rem;
  bottom: 1.15rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.42rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(28, 25, 23, 0.66);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  opacity: 0.92;
  pointer-events: none;
  transform: translateY(2px);
  transition: background 180ms ease, border-color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.hsg-card[data-pidgeon-gallery-link]:hover .pidgeon-gallery-cta,
.hsg-card[data-pidgeon-gallery-link]:focus-visible .pidgeon-gallery-cta {
  border-color: rgba(234, 88, 12, 0.9);
  background: rgba(234, 88, 12, 0.94);
  opacity: 1;
  transform: translateY(0);
}

nav [data-pidgeon-main-nav="true"]:not(.btn-primary),
nav [data-pidgeon-policy-link]:not(.btn-primary),
nav [data-pidgeon-nav-link="Home"]:not(.btn-primary) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 36px !important;
  padding: 0 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 6px !important;
  background: rgba(9, 35, 28, 0.34) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

nav [data-pidgeon-nav-link="Home"]:not(.btn-primary) {
  border-color: rgba(214, 166, 80, 0.48) !important;
  background: rgba(214, 166, 80, 0.2) !important;
}

nav [data-pidgeon-main-nav="true"]:not(.btn-primary):hover,
nav [data-pidgeon-policy-link]:not(.btn-primary):hover,
nav [data-pidgeon-nav-link="Home"]:not(.btn-primary):hover {
  border-color: rgba(246, 178, 58, 0.72) !important;
  background: rgba(240, 90, 26, 0.9) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  transform: translateY(-1px);
}

nav.pidgeon-nav-scrolled [data-pidgeon-main-nav="true"]:not(.btn-primary),
nav.pidgeon-nav-scrolled [data-pidgeon-policy-link]:not(.btn-primary),
nav.pidgeon-nav-scrolled [data-pidgeon-nav-link="Home"]:not(.btn-primary) {
  border-color: rgba(8, 56, 41, 0.14) !important;
  background: rgba(8, 56, 41, 0.06) !important;
  color: #083829 !important;
  -webkit-text-fill-color: #083829 !important;
  text-shadow: none;
}

nav.pidgeon-nav-scrolled [data-pidgeon-nav-link="Home"]:not(.btn-primary) {
  border-color: rgba(214, 166, 80, 0.4) !important;
  background: rgba(214, 166, 80, 0.16) !important;
}

@media (max-width: 640px) {
  h1,
  .text-display-xl,
  .text-display-lg {
    font-size: clamp(1.35rem, 7vw, 1.75rem) !important;
  }

  h2,
  .text-display-md {
    font-size: clamp(1.12rem, 5.4vw, 1.35rem) !important;
  }

  .pidgeon-gallery-cta {
    right: 0.9rem;
    bottom: 0.9rem;
    min-height: 1.8rem;
    padding: 0.36rem 0.58rem;
    font-size: 0.68rem;
  }
}

.pidgeon-process-magic {
  position: relative;
  z-index: 20;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(8, 56, 41, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(8, 56, 41, 0.035) 1px, transparent 1px),
    #f7f7f4 !important;
  background-size: 72px 72px, 72px 72px, auto;
  overflow: visible;
}

.pidgeon-process-magic::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      105deg,
      transparent 0,
      transparent 22px,
      rgba(234, 88, 12, 0.045) 22px,
      rgba(234, 88, 12, 0.045) 24px
    );
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}

.pidgeon-process-stages {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  padding: 6px;
  border: 1px solid rgba(8, 56, 41, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 34px rgba(28, 25, 23, 0.06);
}

.pidgeon-process-stages span {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  background: rgba(8, 56, 41, 0.08);
  color: #083829;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.pidgeon-process-track {
  --pidgeon-process-progress: 0;
  padding-block: 10px;
}

.pidgeon-road-line {
  width: 7px !important;
  border-radius: 999px !important;
  background:
    linear-gradient(180deg, #083829 0%, #0f5a3f 38%, #f05a1a 70%, #d6a650 100%) !important;
  box-shadow: 0 0 0 4px rgba(8, 56, 41, 0.07), 0 16px 30px rgba(8, 56, 41, 0.18) !important;
  overflow: hidden;
}

.pidgeon-road-line::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 10px;
  bottom: 10px;
  width: 1px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.78) 0,
    rgba(255, 255, 255, 0.78) 8px,
    transparent 8px,
    transparent 17px
  );
}

.pidgeon-process-roller {
  position: absolute;
  left: 1.5rem;
  top: calc(var(--pidgeon-process-progress, 0) * 100%);
  z-index: 20;
  width: clamp(46px, 5vw, 62px);
  height: clamp(34px, 4vw, 44px);
  pointer-events: none;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 12px 18px rgba(28, 25, 23, 0.28));
  transition: top 120ms linear;
}

.pidgeon-process-roller svg {
  display: block;
  width: 100%;
  height: 100%;
}

.pidgeon-process-roller .roller-body,
.pidgeon-process-roller .roller-cab {
  fill: #f05a1a;
}

.pidgeon-process-roller .roller-glass {
  fill: #123d30;
}

.pidgeon-process-roller .roller-wheel,
.pidgeon-process-roller .roller-drum {
  fill: #1c1917;
}

.pidgeon-process-step {
  min-height: 220px;
}

.pidgeon-process-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(8, 56, 41, 0.13) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 247, 0.94)) !important;
  box-shadow: 0 20px 46px rgba(28, 25, 23, 0.07) !important;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.pidgeon-process-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #083829, #f05a1a);
}

.pidgeon-process-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 90, 26, 0.34) !important;
  box-shadow: 0 26px 58px rgba(28, 25, 23, 0.11) !important;
}

.pidgeon-job-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  margin: 0 0 8px;
  padding: 0 9px;
  border: 1px solid rgba(240, 90, 26, 0.18);
  border-radius: 5px;
  background: rgba(240, 90, 26, 0.08);
  color: #b94112;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.pidgeon-proof-note {
  margin-top: 16px;
  padding: 13px 14px;
  border-left: 3px solid #d6a650;
  border-radius: 0 6px 6px 0;
  background: rgba(8, 56, 41, 0.055);
  color: #32413b;
  font-size: 0.88rem;
  line-height: 1.55;
}

.pidgeon-proof-note strong {
  color: #083829;
}

.pidgeon-process-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.pidgeon-process-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 5px;
  background: #083829;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.pidgeon-process-proof-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  clear: both;
  margin: clamp(42px, 6vw, 78px) auto clamp(48px, 7vw, 92px);
}

.pidgeon-process-proof-strip article {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(8, 56, 41, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(28, 25, 23, 0.07);
}

.pidgeon-process-proof-strip img {
  display: block;
  width: 100%;
  height: clamp(150px, 18vw, 210px);
  object-fit: cover;
}

.pidgeon-process-proof-strip div {
  padding: 18px;
}

.pidgeon-process-proof-strip span {
  display: block;
  margin-bottom: 8px;
  color: #b94112;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.pidgeon-process-proof-strip h3 {
  margin: 0 0 8px;
  color: #083829;
  font-size: 1rem !important;
  line-height: 1.25 !important;
}

.pidgeon-process-proof-strip p {
  margin: 0;
  color: #5f6b66;
  font-size: 0.88rem;
  line-height: 1.5;
}

.pidgeon-process-confidence {
  position: relative;
  z-index: 3;
  clear: both;
  max-width: 900px;
  margin: clamp(44px, 6vw, 76px) auto clamp(36px, 5vw, 68px);
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid rgba(8, 56, 41, 0.15);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(8, 56, 41, 0.98), rgba(17, 82, 59, 0.96));
  color: #fff;
  box-shadow: 0 26px 70px rgba(8, 56, 41, 0.19);
  text-align: left;
}

.pidgeon-process-proof-strip + .pidgeon-process-confidence {
  margin-top: clamp(54px, 7vw, 96px);
}

.pidgeon-process-magic + section,
.pidgeon-process-magic + .pin-spacer {
  position: relative;
  z-index: 2;
  clear: both;
}

@media (min-width: 768px) {
  .pidgeon-process-magic {
    z-index: 30;
    transform: translateZ(0);
  }

  .pidgeon-process-proof-strip {
    margin-bottom: clamp(72px, 8vw, 122px);
  }

  .pidgeon-process-proof-strip + .pidgeon-process-confidence {
    margin-top: clamp(72px, 8vw, 122px);
  }

  .pidgeon-gallery-pin-spacer,
  .pidgeon-gallery-section,
  .pin-spacer:has(.hsg-card),
  section:has(.hsg-card) {
    z-index: 0 !important;
  }

  .pidgeon-gallery-pin-spacer > *,
  .pidgeon-gallery-section > *,
  .pin-spacer:has(.hsg-card) > *,
  section:has(.hsg-card) > * {
    z-index: 0 !important;
  }
}

.pidgeon-process-confidence > span {
  display: block;
  margin-bottom: 10px;
  color: #d6a650;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.pidgeon-process-confidence h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(1.25rem, 3vw, 1.8rem) !important;
  line-height: 1.18 !important;
}

.pidgeon-process-confidence p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1rem;
  line-height: 1.65;
}

.pidgeon-process-confidence div {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.pidgeon-process-confidence em {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(214, 166, 80, 0.32);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}

@media (min-width: 768px) {
  .pidgeon-process-roller {
    left: 50%;
  }

  .pidgeon-process-step:nth-child(odd) .pidgeon-process-card::before {
    left: auto;
    right: 0;
  }
}

@media (max-width: 767px) {
  .pin-spacer:has(.hsg-card),
  section:has(.hsg-card) {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    overflow: visible !important;
    transform: none !important;
  }

  section:has(.hsg-card) {
    position: relative !important;
    z-index: 1 !important;
    background: #1c1917 !important;
    contain: layout paint;
  }

  section:has(.hsg-card) > div,
  section:has(.hsg-card) .h-screen {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    transform: none !important;
    position: relative !important;
  }

  section:has(.hsg-card) .will-change-transform {
    display: grid !important;
    grid-auto-flow: row !important;
    grid-auto-columns: unset !important;
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    gap: 18px !important;
    padding: 0 22px 34px !important;
    overflow: visible !important;
    overscroll-behavior-inline: auto;
    scroll-snap-type: none;
    scrollbar-width: none;
    transform: none !important;
    will-change: auto !important;
  }

  section:has(.hsg-card) .will-change-transform::-webkit-scrollbar {
    display: none;
  }

  .hsg-card {
    flex: none !important;
    width: 100% !important;
    max-width: none !important;
    height: clamp(320px, 58vh, 430px) !important;
    min-height: 320px !important;
    max-height: 430px !important;
    scroll-snap-align: none;
    transform: none !important;
    will-change: auto !important;
    isolation: isolate;
  }

  .hsg-card img {
    transform: none !important;
    will-change: auto !important;
  }

  .hsg-card:hover img,
  .hsg-card:focus-visible img {
    transform: none !important;
  }

  .hsg-card .pidgeon-gallery-cta {
    opacity: 1;
    transform: none;
  }

  .pidgeon-process-magic {
    background-size: 48px 48px, 48px 48px, auto;
  }

  .pidgeon-process-track {
    padding-left: 6px;
  }

  .pidgeon-process-card {
    margin-left: 18px;
  }

  .pidgeon-process-proof-strip {
    grid-template-columns: 1fr;
  }

  .pidgeon-process-stages {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 420px);
  }

  .pidgeon-process-stages span {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pidgeon-process-roller {
    transition: none;
  }

  .pidgeon-process-card {
    transition: none;
  }
}
