/* A quiet scroll cue separates the cover from our approach. */
.home-page .cinema-shade {
  background:
    linear-gradient(0deg, #07141d 0%, #07141dce 14%, transparent 74%),
    linear-gradient(90deg, #07141d91, #07141d1f);
}

.home-page .stoop-hero {
  display: flex;
  flex-direction: column;
}
.home-page .cinema-content {
  padding-bottom: 32px;
  flex-shrink: 0;
}
.hero-section-divider {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: auto;
  margin-bottom: 0;
  padding: 48px 0;
  flex-shrink: 0;
}
.hero-scroll-arrow {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: max-content;
  margin: 0 auto;
  min-height: 48px;
  color: var(--paper);
  font-size: 16px;
  line-height: 1.5;
}
.hero-scroll-arrow svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  animation: heroScrollBob 2s ease-in-out infinite;
  transition: transform 220ms ease;
}
.hero-scroll-label {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  transition: text-decoration-color 220ms ease;
}
.hero-scroll-arrow:hover .hero-scroll-label {
  text-decoration-color: var(--red);
}
.hero-scroll-arrow:hover svg {
  animation: none;
  transform: translateY(4px);
}
.hero-scroll-arrow:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 5px;
}
@keyframes heroScrollBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}
@media (max-width: 760px) {
  .hero-section-divider {
    width: calc(100% - 32px);
    padding: 32px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-arrow,
  .hero-scroll-arrow svg,
  .hero-scroll-label {
    animation: none;
    transition: none;
  }
  .hero-scroll-arrow:hover svg {
    transform: none;
  }
}

.challenge-bridge {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 0;
  background: #07141d;
  color: #fff;
}

.bridge-visual,
.bridge-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.bridge-visual {
  left: 24%;
  height: 650px;
  overflow: hidden;
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
  mask-image: linear-gradient(
    180deg,
    transparent,
    #000 18%,
    #000 65%,
    transparent
  );
}

.bridge-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 50%;
  opacity: 0;
  transform: scale(1.045);
  transition:
    opacity 700ms ease,
    transform 1600ms var(--ease);
}

.bridge-scene.is-active {
  opacity: 1;
  transform: scale(1);
}
.bridge-scene--grinding {
  object-fit: contain;
  object-position: center 30%;
  transform: translateX(10%) scale(1.145);
}
.bridge-scene--grinding.is-active {
  transform: translateX(10%) scale(1.1);
}
@media (max-width: 760px) {
  .bridge-scene--grinding {
    object-position: center 12%;
  }
}
.bridge-shade {
  background:
    linear-gradient(
      180deg,
      #07141d 0%,
      #07141d00 19%,
      #07141d33 42%,
      #07141d 70%
    ),
    linear-gradient(
      90deg,
      #07141d 8%,
      #07141dfa 29%,
      #07141d9c 52%,
      #07141d24 100%
    );
}

.bridge-content {
  position: relative;
  padding-top: 74px;
  padding-bottom: 56px;
}
.bridge-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 35px;
  align-items: end;
}

.bridge-copy h2 {
  margin-bottom: 25px;
  font-size: clamp(37px, 4.65vw, 68px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.052em;
}

.bridge-copy h2 em {
  color: #accfe9;
  font-weight: 500;
}
.bridge-lead {
  max-width: 435px;
  margin-bottom: 26px;
  font-size: 15px;
  line-height: 1.8;
  color: #c7d3dc;
}
.bridge-inquiry {
  display: inline-flex;
  align-items: center;
  gap: 21px;
  font-size: 13px;
  font-weight: 600;
}
.bridge-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #7790a0;
  border-radius: 50%;
  font-size: 21px;
  transition:
    background 200ms,
    border-color 200ms;
}
.bridge-inquiry:hover .bridge-arrow {
  background: var(--red);
  border-color: var(--red);
}
.bridge-photo-note {
  justify-self: end;
  display: grid;
  gap: 7px;
  margin-bottom: 36px;
  padding: 14px 19px;
  border-left: 1px solid #a9c7da99;
  background: linear-gradient(90deg, #07141de8, #07141dc9);
  text-shadow: 0 2px 12px #07141d;
}
.bridge-view-index {
  font-size: 60px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.06em;
}
.bridge-view-index i {
  color: #c5d7e3;
  font-size: 18px;
  font-style: normal;
  letter-spacing: 0;
}
.bridge-view-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.bridge-photo-note small {
  color: #c5d7e3;
  font-size: 8px;
  letter-spacing: 0.09em;
}

.bridge-route {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  margin-top: 83px;
}
.bridge-route-line {
  position: absolute;
  left: 0;
  top: -57px;
  width: 100%;
  height: 58px;
  overflow: visible;
  pointer-events: none;
}
.bridge-route-base {
  stroke: #526976;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.bridge-route-trace {
  stroke: #8abce0;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.bridge-ready .bridge-route-trace {
  stroke-dashoffset: 1;
}
.bridge-ready.bridge-entered .bridge-route-trace {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1600ms var(--ease);
}
.bridge-step {
  position: relative;
  min-width: 0;
  padding-top: 22px;
}
.bridge-step-dot {
  position: absolute;
  top: -20px;
  left: 11px;
  width: 11px;
  height: 11px;
  border: 1px solid #7896aa;
  border-radius: 50%;
  background: #07141d;
  transition:
    background 250ms,
    box-shadow 250ms;
}
.bridge-step.is-active .bridge-step-dot {
  background: #8abce0;
  border-color: #b5dcf7;
  box-shadow:
    0 0 0 6px #8abce019,
    0 0 20px #8abce044;
}
.bridge-step-category {
  margin-bottom: 16px;
  color: #9aafbd;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.12em;
}
.bridge-step h3 {
  margin-bottom: 17px;
  font-size: clamp(22px, 2.15vw, 30px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.035em;
}
.bridge-select {
  position: static;
  display: flex;
  cursor: pointer;
  align-items: baseline;
  gap: 13px;
  width: 100%;
  padding: 0;
  background: transparent;
  color: #f2f6f9;
  text-align: left;
  line-height: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}
.bridge-select:focus-visible {
  outline: 2px solid #b5dcf7;
  outline-offset: 7px;
  border-radius: 3px;
}
.bridge-select:disabled {
  cursor: default;
}
.bridge-step-number {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  color: #9aafbd;
}
.bridge-step.is-active .bridge-step-number {
  color: #acd4f0;
}
.bridge-step > p:not(.bridge-step-category) {
  max-width: 345px;
  margin-bottom: 0;
  color: #b6c6d1;
  font-size: 13px;
  line-height: 1.85;
}
.bridge-step-link {
  display: inline-flex;
  gap: 22px;
  align-items: center;
  padding-bottom: 6px;
  border-bottom: 1px solid #637784;
  font-size: 11px;
  color: #e9f0f4;
}
.bridge-step-link:hover {
  border-color: #abd0eb;
  color: #abd0eb;
}
.bridge-step-link > span {
  transition: transform 200ms;
}
.bridge-step-link:hover > span {
  transform: translate(2px, -2px);
}
.bridge-outro {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 25px;
  margin-top: 64px;
  padding-top: 25px;
  border-top: 1px solid #5d768533;
  color: #a7bbc8;
  font-size: 9px;
  letter-spacing: 0.08em;
}
.bridge-outro a {
  display: inline-flex;
  gap: 15px;
  color: #dbe5ec;
  letter-spacing: 0;
  font-size: 11px;
}
.bridge-outro a:hover {
  color: #acd4f0;
}

.motion-paused .bridge-scene,
.motion-paused .bridge-route-trace,
.motion-paused .bridge-step-dot {
  transition: none;
}
.motion-paused .bridge-ready.bridge-entered .bridge-route-trace {
  transition: none;
  stroke-dashoffset: 0;
}

@media (max-width: 1050px) {
  .bridge-intro {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.5fr);
    gap: 20px;
  }
  .bridge-content {
    padding-top: 65px;
  }
  .bridge-route {
    gap: 28px;
  }
  .bridge-step h3 {
    font-size: 23px;
  }
  .bridge-select {
    gap: 8px;
  }
  .bridge-photo-note {
    margin-bottom: 20px;
  }
  .bridge-view-index {
    font-size: 48px;
  }
}

@media (max-width: 760px) {
  .bridge-content {
    padding-top: 55px;
  }
  .bridge-intro {
    display: block;
    min-height: 0;
  }
  .bridge-copy h2 {
    font-size: clamp(33px, 6.8vw, 51px);
    max-width: 600px;
  }
  .bridge-lead {
    max-width: 420px;
    font-size: 14px;
  }
  .bridge-visual {
    left: 15%;
    height: 460px;
    clip-path: none;
    opacity: 0.72;
  }
  .bridge-scene {
    object-position: 55% 50%;
  }
  .bridge-shade {
    background:
      linear-gradient(
        180deg,
        #07141d 0%,
        #07141d4d 15%,
        #07141d6e 32%,
        #07141d 48%
      ),
      linear-gradient(90deg, #07141df5 0%, #07141dbb 65%, #07141d4d);
  }
  .bridge-photo-note {
    display: none;
  }
  .bridge-route {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-top: 46px;
    margin-left: 4px;
    padding-left: 25px;
    border-left: 1px solid #526976;
  }
  .bridge-route-line {
    display: none;
  }
  .bridge-step {
    padding: 0 0 29px;
    margin-bottom: 29px;
    border-bottom: 1px solid #718b9b33;
  }
  .bridge-step:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
  }
  .bridge-step-dot {
    top: 3px;
    left: -31px;
  }
  .bridge-step-category {
    margin-bottom: 12px;
  }
  .bridge-step h3 {
    font-size: 28px;
    margin-bottom: 13px;
  }
  .bridge-select {
    gap: 12px;
  }
  .bridge-step > p:not(.bridge-step-category) {
    min-height: 0;
    max-width: 520px;
    margin-bottom: 0;
  }
  .bridge-outro {
    margin-top: 42px;
    padding-top: 24px;
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bridge-scene,
  .bridge-route-trace,
  .bridge-step-dot,
  .bridge-step-link > span {
    transition: none !important;
  }
  .bridge-route-trace {
    stroke-dashoffset: 0 !important;
  }
}

/* Compact, accessible control for the rotating background photographs. */
.bridge-photo-controls { display: flex; justify-content: flex-end; margin: 0 0 12px; }
.bridge-motion { border: 1px solid #7693a56b; border-radius: 4px; background: #07141db3; color: #d3e5f0; font-size: 13px; line-height: 1.5; padding: 8px 14px; min-height: 38px; }
.bridge-motion:hover { background: #183344; border-color: #a6c6d9; }
.bridge-motion:disabled { opacity: .75; cursor: default; }
.bridge-motion[hidden] { display: none; }
@media print { .bridge-photo-controls { display: none; } }

/* The original workshop film is now the homepage cover. */
.hero-film-media,
.hero-film,
.hero-film-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-film-media { pointer-events: none; }
.hero-film,
.hero-film-poster { object-fit: cover; object-position: 60% center; }
.hero-film { opacity: 0; transition: opacity 700ms ease; }
.hero-film-ready .hero-film { opacity: 1; }
.hero-film-motion {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid #7693a580;
  border-radius: 4px;
  padding: 9px 16px;
  min-height: 44px;
  background: #07141dba;
  color: #e6f1f7;
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
}
.hero-film-motion:hover { background: #183344; border-color: #a6c6d9; }
.hero-film-motion:focus-visible { outline: 2px solid #c5e8ff; outline-offset: 5px; }
.hero-film-motion:disabled { opacity: .75; cursor: default; }
.hero-film-motion[hidden] { display: none; }

/* The previous cover photograph now sits beneath the hero. */
.challenge-bridge--photo .bridge-visual {
  inset: 0;
  height: 100%;
  clip-path: none;
  mask-image: none;
  opacity: 1;
}
.bridge-cover-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
}
.challenge-bridge--photo .bridge-shade {
  background:
    linear-gradient(180deg, #07141d 0%, #07141de6 6%, #07141d00 28%, #07141d1f 46%, #07141df5 78%, #07141d 100%),
    linear-gradient(90deg, #07141df2 0%, #07141dde 25%, #07141d7d 49%, #07141d1f 75%, #07141d33 100%);
}
@media (max-width: 760px) {
  .challenge-bridge--photo .bridge-visual { height: 570px; }
  .challenge-bridge--photo .bridge-shade {
    background: linear-gradient(180deg, #07141d 0, #07141dba 110px, #07141da8 260px, #07141d 570px),
      linear-gradient(90deg, #07141da6, #07141d21);
  }
  .hero-film-motion {
    position: static;
    transform: none;
    display: block;
    margin: 0 auto 20px;
  }
}
@media (prefers-reduced-motion: reduce) { .hero-film { transition: none; } }
@media print { .hero-film, .hero-film-motion { display: none; } }

/* Center the introduction and give each customer challenge its own clear column. */
.challenge-bridge--centered .bridge-content {
  padding-top: clamp(64px, 6vw, 96px);
  padding-bottom: clamp(64px, 6vw, 88px);
}
.challenge-bridge--centered .bridge-intro {
  display: block;
  max-width: 800px;
  margin-inline: auto;
  text-align: center;
}
.challenge-bridge--centered .bridge-copy h2 {
  max-width: none;
  margin: 0 0 28px;
  font-size: clamp(40px, 4.65vw, 68px);
  text-wrap: balance;
}
.home-page .challenge-bridge--centered .bridge-lead {
  max-width: 750px;
  margin: 0 auto 28px;
  color: #d6e0e7;
  text-wrap: pretty;
}
.challenge-bridge--centered .bridge-inquiry {
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid #a4c6db99;
  border-radius: 4px;
  background: #07141d66;
  color: #fff;
  transition: background 180ms ease, border-color 180ms ease;
}
.challenge-bridge--centered .bridge-inquiry:hover {
  background: #24485c;
  border-color: #b5dcf7;
}
.challenge-bridge--centered .bridge-inquiry:focus-visible {
  outline: 2px solid #b5dcf7;
  outline-offset: 5px;
}
.challenge-bridge--centered .bridge-route {
  max-width: 1280px;
  margin: 64px auto 0;
  padding: 0;
  gap: clamp(28px, 4vw, 64px);
  border: 0;
}
.challenge-bridge--centered .bridge-route-line,
.challenge-bridge--centered .bridge-step-dot {
  display: none;
}
.challenge-bridge--centered .bridge-step {
  padding: 24px 0 0;
  border: 0;
  border-top: 1px solid #809bac66;
  transition: border-color 180ms ease;
}
.challenge-bridge--centered .bridge-step.is-active {
  border-top-color: #abd4f0;
}
.challenge-bridge--centered .bridge-step-category {
  margin-bottom: 14px;
  color: #accfe9;
}
.challenge-bridge--centered .bridge-step h3 {
  margin-bottom: 16px;
  font-size: clamp(24px, 2.1vw, 30px);
  line-height: 1.2;
  text-wrap: balance;
}
.challenge-bridge--centered .bridge-select {
  gap: 12px;
}
.challenge-bridge--centered .bridge-step-number {
  flex-shrink: 0;
}
.home-page .challenge-bridge--centered .bridge-step > p:not(.bridge-step-category) {
  max-width: none;
  color: #c5d3dd;
  font-size: 17px;
  line-height: 1.7;
}
.challenge-bridge--centered .bridge-shade {
  background:
    linear-gradient(180deg, #07141d 0%, #07141d73 20%, #07141d66 42%, #07141de6 72%, #07141d 100%),
    linear-gradient(90deg, #07141d99, #07141dbf 50%, #07141d99);
}
@media (max-width: 760px) {
  .challenge-bridge--centered .bridge-content {
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .challenge-bridge--centered .bridge-copy h2 {
    font-size: clamp(36px, 8vw, 50px);
    margin-bottom: 24px;
  }
  .home-page .challenge-bridge--centered .bridge-lead {
    font-size: 17px;
    line-height: 1.7;
  }
  .challenge-bridge--centered .bridge-route {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 44px;
    gap: 28px;
  }
  .challenge-bridge--centered .bridge-step,
  .challenge-bridge--centered .bridge-step:last-child {
    margin: 0;
    padding: 22px 0 0;
    border-bottom: 0;
    border-top: 1px solid #809bac66;
  }
  .challenge-bridge--centered .bridge-step.is-active {
    border-top-color: #abd4f0;
  }
  .challenge-bridge--centered .bridge-step h3 { font-size: 26px; }
  .challenge-bridge--centered .bridge-visual { height: 620px; }
  .challenge-bridge--centered .bridge-shade {
    background:
      linear-gradient(180deg, #07141d 0, #07141d99 110px, #07141da8 330px, #07141d 620px),
      linear-gradient(90deg, #07141d88, #07141d99);
  }
}
@media (prefers-reduced-motion: reduce) {
  .challenge-bridge--centered .bridge-inquiry,
  .challenge-bridge--centered .bridge-step { transition: none; }
}
