/* Cinematic, type-led presentation for every service journey. */

:root {
  --journey-head-measure: min(21ch, 78%);
  --journey-body-measure: min(68ch, 82%);
  --journey-fact-measure: min(76ch, 84%);
  --journey-stack-gap: clamp(11px, 1.35vw, 20px);
}

.media-core {
  width: min(86vw, 1580px);
  height: clamp(540px, calc(100svh - 108px), 960px);
  aspect-ratio: auto;
}

.media-window {
  border-color: rgba(255, 209, 177, .22);
  border-radius: clamp(18px, 1.45vw, 26px);
  box-shadow:
    0 44px 120px -38px rgba(0, 0, 0, .96),
    0 10px 70px -44px rgba(255, 124, 59, .58),
    0 0 0 1px rgba(255, 255, 255, .06);
}

.media-core .scene-layer {
  filter: saturate(.76) brightness(.66) contrast(.97);
}

.media-core .scene-muted {
  filter: saturate(.58) brightness(.61) contrast(.96);
}

.core-shade {
  background:
    radial-gradient(ellipse 72% 68% at 50% 50%, rgba(4, 9, 16, .82) 0%, rgba(4, 9, 16, .69) 36%, rgba(4, 9, 16, .31) 67%, rgba(4, 9, 16, .08) 100%),
    linear-gradient(0deg, rgba(4, 9, 16, .58), transparent 36%, transparent 68%, rgba(4, 9, 16, .26));
}

body.clear-scene-images .media-window,
body.clear-scene-images .mobile-beat-media {
  box-shadow: none;
}

body.clear-scene-images .media-core .scene-layer,
body.clear-scene-images .media-core .scene-muted,
body.clear-scene-images .mobile-beat-media img {
  filter: none;
}

body.clear-scene-images .core-shade,
body.clear-scene-images .mobile-beat-media::before {
  display: none;
}

body.discrete-scene-transition .scene-layer {
  transition: opacity 360ms ease;
}

.story-beat {
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--journey-stack-gap);
  padding: clamp(34px, 4.5vw, 74px) clamp(42px, 7vw, 118px);
  text-align: center;
}

.step-marker {
  display: inline-flex;
  width: auto;
  min-height: 29px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 6px 13px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .075);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    0 8px 24px rgba(0, 0, 0, .16);
  font-size: clamp(9px, .68vw, 11px);
  font-weight: 720;
  letter-spacing: .08em;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .88);
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.step-marker::before {
  display: none;
}

.step-marker span {
  color: #fff;
}

.step-marker strong {
  color: #fff;
  font-weight: 760;
}

.story-beat > h1,
.story-beat > h2 {
  max-width: var(--journey-head-measure);
  margin: 0 auto;
  font-size: clamp(48px, 4.9vw, 84px);
  font-weight: 630;
  letter-spacing: -.035em;
  line-height: 1.01;
  text-align: center;
  text-shadow:
    0 3px 12px rgba(0, 0, 0, .86),
    0 0 34px rgba(0, 0, 0, .66);
  text-wrap: balance;
}

.story-beat > .supporting-line {
  max-width: var(--journey-body-measure);
  margin: 0 auto;
  color: #fff;
  font-size: clamp(16px, 1.28vw, 22px);
  font-weight: 480;
  line-height: 1.46;
  text-align: center;
  text-shadow:
    0 2px 9px rgba(0, 0, 0, .92),
    0 0 22px rgba(0, 0, 0, .72);
  text-wrap: pretty;
}

.plan-rows {
  display: grid;
  width: 100%;
  max-width: var(--journey-fact-measure);
  margin: clamp(2px, .45vw, 7px) auto 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 34px);
  list-style: none;
  backdrop-filter: none;
}

.plan-rows li {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  padding: 5px clamp(14px, 2vw, 31px);
  border: 0;
  border-radius: 0;
  background: none;
}

.plan-row-copy {
  display: block;
  min-width: 0;
  text-align: center;
}

.plan-row-copy strong,
.plan-row-copy > span {
  display: block;
}

.plan-row-copy strong {
  color: #fff;
  font-size: clamp(15px, 1.12vw, 20px);
  font-weight: 690;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .92);
  text-wrap: balance;
}

.plan-row-copy > span {
  max-width: 24ch;
  margin: 5px auto 0;
  color: #fff;
  font-size: clamp(13px, .9vw, 16px);
  line-height: 1.4;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .9);
  text-wrap: pretty;
}

.beat-process .plan-rows-process {
  padding-top: 0;
}

.beat-process .plan-rows-process li {
  display: flex;
  min-height: 68px;
}

.beat-recap .plan-row-copy > span {
  max-width: 25ch;
  margin-top: 0;
  color: #fff;
  font-size: clamp(15px, 1.05vw, 19px);
  font-weight: 620;
  line-height: 1.42;
}

.beat-recap .final-actions {
  justify-content: center;
  margin-top: clamp(2px, .45vw, 7px);
}

.primary-action,
.secondary-action {
  min-height: 44px;
}

.progress-rail {
  right: clamp(12px, 1.6vw, 26px);
}

.rail-key-hint {
  right: 0;
  display: grid;
  box-sizing: border-box;
  width: 64px;
  grid-template-columns: repeat(2, 22px);
  justify-content: center;
  gap: 2px 4px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  opacity: 1;
  pointer-events: none;
  text-align: center;
}

.rail-key-hint > span {
  grid-column: 1 / -1;
  font-size: 8px;
  letter-spacing: .035em;
}

.rail-key-hint kbd {
  min-width: 22px;
  min-height: 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-size: 16px;
  font-weight: 600;
}

.progress-step {
  min-width: 64px;
  color: #fff;
}

.progress-step small,
.rail-key-hint,
.scroll-cue,
.cue-hint {
  color: #fff;
}

@media (max-width: 1180px) and (min-width: 901px) {
  :root {
    --journey-head-measure: min(20ch, 82%);
    --journey-body-measure: min(64ch, 86%);
    --journey-fact-measure: min(72ch, 90%);
  }

  .media-core {
    width: min(88vw, 1160px);
  }

  .story-beat {
    padding-inline: clamp(34px, 5.4vw, 64px);
  }
}

@media (max-height: 760px) and (min-width: 901px) {
  :root {
    --journey-stack-gap: clamp(8px, 1.05vw, 14px);
  }

  .media-core {
    height: calc(100svh - 126px);
    min-height: 500px;
  }

  .story-beat {
    padding-block: 26px;
  }

  .story-beat > h1,
  .story-beat > h2 {
    font-size: clamp(42px, 4.5vw, 64px);
  }

  .story-beat > .supporting-line {
    font-size: clamp(15px, 1.15vw, 19px);
  }

  .plan-rows li {
    min-height: 54px;
  }

  .beat-process .plan-rows-process li {
    min-height: 72px;
  }

}

@media (max-width: 1180px),
       (min-width: 1181px) and (max-width: 1366px) and (min-height: 900px) {
  html {
    scroll-padding-top: 0;
  }

  :root {
    --journey-head-measure: 16ch;
    --journey-body-measure: 40ch;
    --journey-fact-measure: 34ch;
    --journey-stack-gap: 0;
  }

  .mobile-journey-beat::after {
    display: none;
  }

  .mobile-journey-beat {
    display: flex;
    min-height: 100svh;
    flex-direction: column;
    gap: 0;
    padding: calc(var(--header-height) + 30px) 0 0;
  }

  .mobile-beat-media {
    position: absolute;
    z-index: 0;
    inset: calc(var(--header-height) + 30px) 0 0;
    width: 100%;
    height: calc(100% - var(--header-height) - 30px);
    margin: 0;
    opacity: 1;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
  }

  .mobile-beat-media img {
    filter: saturate(.72) brightness(.62) contrast(.96);
  }

  .mobile-beat-media::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background:
      radial-gradient(ellipse 96% 72% at 50% 48%, rgba(4, 9, 16, .76), rgba(4, 9, 16, .56) 45%, rgba(4, 9, 16, .28) 72%, rgba(4, 9, 16, .18)),
      linear-gradient(0deg, rgba(4, 9, 16, .72), transparent 42%, rgba(4, 9, 16, .24));
    pointer-events: none;
  }

  .mobile-beat-media::after {
    display: none;
  }

  .mobile-beat-copy {
    z-index: 2;
    width: 100%;
    min-height: calc(100svh - var(--header-height) - 30px);
    flex: 1 0 auto;
    align-items: center;
    justify-content: center;
    padding: clamp(34px, 5.5svh, 52px) clamp(18px, 6vw, 30px) 90px;
    opacity: 1;
    transform: none;
    text-align: center;
  }

  .mobile-beat-copy .step-marker {
    display: inline-flex;
    width: auto;
    min-height: 27px;
    justify-content: center;
    gap: 7px;
    margin: 0 auto 11px;
    padding: 6px 11px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, .06);
    font-size: clamp(8px, 2.15vw, 10px);
    letter-spacing: .07em;
    text-shadow: none;
    backdrop-filter: blur(8px);
  }

  .mobile-beat-copy .step-marker::before {
    display: none;
  }

  .mobile-beat-copy .step-marker span {
    color: #fff;
  }

  .mobile-beat-copy .step-marker strong {
    color: #fff;
  }

  .mobile-beat-copy h1,
  .mobile-beat-copy h2 {
    max-width: var(--journey-head-measure);
    margin-inline: auto;
    font-size: clamp(36px, 9.4vw, 50px);
    font-weight: 630;
    letter-spacing: -.04em;
    line-height: 1;
    text-align: center;
  }

  .mobile-beat-copy .supporting-line {
    max-width: var(--journey-body-measure);
    margin: 14px auto 0;
    color: #fff;
    font-size: clamp(15px, 4vw, 18px);
    font-weight: 480;
    line-height: 1.46;
    text-align: center;
    text-wrap: pretty;
  }

  .mobile-beat-copy .plan-rows {
    display: grid;
    width: 100%;
    max-width: var(--journey-fact-measure);
    margin: clamp(17px, 2.6svh, 24px) auto 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: none;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .mobile-beat-copy .plan-rows li {
    position: relative;
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    border: 0;
    background: none;
  }

  .mobile-beat-copy .plan-row-copy {
    display: block;
    text-align: center;
  }

  .mobile-beat-copy .plan-row-copy strong {
    margin: 0;
    color: #fff;
    font-size: clamp(14px, 3.7vw, 17px);
  }

  .mobile-beat-copy .plan-row-copy > span {
    max-width: 29ch;
    margin: 4px auto 0;
    color: #fff;
    font-size: clamp(12px, 3.25vw, 15px);
    line-height: 1.42;
  }

  .mobile-beat-copy .plan-rows-recap .plan-row-copy > span {
    max-width: 30ch;
    margin-top: 0;
    color: #fff;
    font-size: clamp(14px, 3.6vw, 17px);
    font-weight: 620;
  }

  .mobile-beat-copy .plan-rows-process {
    gap: 2px;
    padding: 0;
  }

  .mobile-beat-copy .plan-rows-process::before {
    display: none;
  }

  .mobile-beat-copy .plan-rows-process li {
    display: flex;
    min-height: 58px;
    padding: 10px 8px;
    text-align: center;
  }

  .mobile-beat-copy .plan-rows-process .plan-row-copy {
    text-align: center;
  }

  .mobile-beat-copy .plan-rows-process .plan-row-copy strong {
    font-size: clamp(14px, 3.7vw, 17px);
  }

  .mobile-beat-copy .final-actions {
    width: min(100%, 360px);
    margin: 18px auto 0;
  }

  .mobile-beat-next {
    position: absolute;
    z-index: 4;
    right: auto;
    bottom: max(18px, env(safe-area-inset-bottom));
    left: 50%;
    display: flex;
    width: min(calc(100% - 34px), 360px);
    min-height: 48px;
    max-height: none;
    flex: none;
    justify-content: center;
    margin: 0;
    padding: 9px 13px 9px 18px;
    border-color: rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: rgba(5, 11, 20, .34);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .1),
      0 14px 34px rgba(0, 0, 0, .28);
    text-align: center;
    transform: translateX(-50%);
    backdrop-filter: blur(12px);
  }

  .mobile-beat-next img,
  .mobile-beat-next::after,
  .mobile-beat-next strong {
    display: none;
  }

  .mobile-beat-next-copy {
    display: block;
    max-width: none;
  }

  .mobile-beat-next small {
    color: #fff;
    font-size: 9px;
    letter-spacing: .14em;
  }

  .mobile-beat-next-arrow {
    width: 29px;
    height: 29px;
    margin-left: 10px;
    flex: 0 0 29px;
    border-color: rgba(255, 151, 96, .55);
    background: rgba(5, 11, 20, .24);
    font-size: 14px;
  }

  .mobile-journey-beat:last-child .mobile-beat-copy {
    min-height: calc(100svh - var(--header-height) - 30px);
    justify-content: center;
    padding: clamp(30px, 4.5svh, 46px) clamp(18px, 6vw, 30px);
  }
}

@media (min-width: 901px) and (max-width: 1180px),
       (min-width: 1181px) and (max-width: 1366px) and (min-height: 900px) {
  .mobile-beat-copy {
    padding: clamp(44px, 6svh, 72px) clamp(40px, 7vw, 84px) 96px;
  }

  .mobile-beat-copy h1,
  .mobile-beat-copy h2 {
    max-width: 18ch;
    font-size: clamp(48px, 5.2vw, 66px);
    line-height: 1.03;
  }

  .mobile-beat-copy .supporting-line {
    max-width: 58ch;
    margin-top: 20px;
    font-size: clamp(19px, 1.75vw, 23px);
  }

  .mobile-beat-copy .plan-rows {
    max-width: min(720px, 76vw);
    margin-top: clamp(26px, 3.4svh, 38px);
    gap: 12px;
  }

  .mobile-beat-copy .plan-rows li,
  .mobile-beat-copy .plan-rows-process li {
    min-height: 68px;
    padding: 12px 16px;
  }

  .mobile-beat-copy .plan-row-copy strong,
  .mobile-beat-copy .plan-rows-process .plan-row-copy strong {
    font-size: clamp(18px, 1.7vw, 22px);
  }

  .mobile-beat-copy .plan-row-copy > span {
    max-width: 42ch;
    margin-top: 6px;
    font-size: clamp(15px, 1.35vw, 18px);
  }

  .mobile-beat-copy .plan-rows-recap .plan-row-copy > span {
    max-width: 42ch;
    font-size: clamp(17px, 1.55vw, 20px);
  }

  .mobile-beat-next {
    width: min(calc(100% - 80px), 430px);
    min-height: 56px;
  }

  .mobile-beat-next small {
    font-size: 10px;
  }
}

@media (min-width: 901px) and (max-width: 1180px) and (orientation: landscape) {
  .mobile-beat-copy .plan-rows {
    max-width: min(980px, 84vw);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .mobile-journey-beat {
    display: flex;
    min-height: 100svh;
    padding: 96px 0 0;
  }

  .mobile-beat-media {
    position: absolute;
    inset: 96px 0 0;
    width: 100%;
    height: calc(100% - 96px);
    border: 0;
    border-radius: 0;
  }

  .mobile-beat-copy,
  .mobile-journey-beat:last-child .mobile-beat-copy {
    width: 100%;
    min-height: calc(100svh - 96px);
    justify-content: center;
    padding: 10px clamp(44px, 8vw, 82px);
  }

  .mobile-beat-copy .step-marker {
    min-height: 21px;
    margin-bottom: 5px;
    padding: 4px 8px;
    font-size: 6.5px;
  }

  .mobile-beat-copy h1,
  .mobile-beat-copy h2 {
    max-width: 20ch;
    font-size: clamp(34px, 4.4vw, 40px);
  }

  .mobile-beat-copy .supporting-line {
    max-width: 48ch;
    margin-top: 9px;
    font-size: clamp(11px, 1.5vw, 13px);
    line-height: 1.4;
  }

  .mobile-beat-copy .plan-rows {
    max-width: 72ch;
    margin-top: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .mobile-beat-copy .plan-rows li {
    min-height: 44px;
    padding: 6px 7px;
  }

  .mobile-beat-copy .plan-row-copy strong {
    font-size: clamp(10px, 1.4vw, 12px);
  }

  .mobile-beat-copy .plan-row-copy > span {
    margin-top: 3px;
    font-size: clamp(9px, 1.2vw, 11px);
  }

  .mobile-beat-copy .plan-rows-process li {
    display: flex;
    min-height: 44px;
    padding: 6px 7px;
    text-align: center;
  }

  .mobile-beat-copy .plan-rows-process .plan-row-copy {
    text-align: center;
  }

  .mobile-beat-copy .final-actions {
    grid-template-columns: 1fr 1fr;
    margin-top: 8px;
  }

  .mobile-beat-next {
    display: none;
  }
}

/* Only the caption corner is shaded. The rest of each bright photograph is untouched. */
body.clear-scene-images .story-beat {
  align-items: flex-start;
  justify-content: flex-end;
  gap: clamp(10px, 1.2vw, 18px);
  padding: clamp(40px, 6vw, 100px) clamp(42px, 6vw, 100px) clamp(66px, 8vw, 124px);
  text-align: left;
}

body.clear-scene-images .story-beat::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: radial-gradient(ellipse 92% 94% at 0% 100%,
    rgba(5, 12, 23, .93) 0%,
    rgba(5, 12, 23, .84) 34%,
    rgba(5, 12, 23, .54) 63%,
    transparent 100%);
  content: "";
  pointer-events: none;
}

body.clear-scene-images .story-beat > h1,
body.clear-scene-images .story-beat > h2,
body.clear-scene-images .story-beat > .supporting-line,
body.clear-scene-images .story-beat > .final-actions {
  position: relative;
  z-index: 1;
}

body.clear-scene-images .story-beat > h1,
body.clear-scene-images .story-beat > h2 {
  max-width: min(17ch, 80%);
  margin: 0;
  padding: 0;
  background: none;
  box-shadow: none;
  text-align: left;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .8), 0 0 25px rgba(0, 0, 0, .5);
}

body.clear-scene-images .story-beat > .supporting-line {
  max-width: min(57ch, 72%);
  margin: 0;
  padding: 0;
  background: none;
  box-shadow: none;
  font-weight: 550;
  text-align: left;
  text-shadow: 0 2px 9px rgba(0, 0, 0, .85), 0 0 20px rgba(0, 0, 0, .5);
}

body.clear-scene-images .story-beat > .final-actions {
  align-self: flex-start;
  margin-top: 8px;
}

@media (max-width: 1180px),
       (min-width: 1181px) and (max-width: 1366px) and (min-height: 900px) {
  body.clear-scene-images .mobile-beat-copy {
    align-items: flex-start;
    justify-content: flex-end;
    text-align: left;
  }

  body.clear-scene-images .mobile-beat-copy::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    background: linear-gradient(0deg,
      rgba(5, 12, 23, .94) 0%,
      rgba(5, 12, 23, .87) 32%,
      rgba(5, 12, 23, .57) 60%,
      transparent 92%);
    content: "";
    pointer-events: none;
  }

  body.clear-scene-images .mobile-beat-copy > h1,
  body.clear-scene-images .mobile-beat-copy > h2,
  body.clear-scene-images .mobile-beat-copy > .supporting-line,
  body.clear-scene-images .mobile-beat-copy > .final-actions {
    position: relative;
    z-index: 1;
  }

  body.clear-scene-images .mobile-beat-copy > h1,
  body.clear-scene-images .mobile-beat-copy > h2 {
    max-width: min(17ch, 100%);
    margin: 0;
    padding: 0;
    background: none;
    box-shadow: none;
    text-align: left;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .8);
  }

  body.clear-scene-images .mobile-beat-copy > .supporting-line {
    max-width: min(40ch, 100%);
    margin: 12px 0 0;
    padding: 0;
    background: none;
    box-shadow: none;
    font-weight: 550;
    text-align: left;
    text-shadow: 0 2px 9px rgba(0, 0, 0, .85);
  }

  body.clear-scene-images .mobile-journey-beat:last-child .mobile-beat-copy {
    justify-content: flex-end;
    padding-bottom: max(48px, env(safe-area-inset-bottom));
  }

  body.clear-scene-images .mobile-beat-copy .final-actions {
    margin: 18px 0 0;
  }
}

@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  body.clear-scene-images .mobile-journey-beat:last-child .mobile-beat-copy {
    padding-bottom: 12px;
  }

  body.clear-scene-images .mobile-beat-copy > .supporting-line {
    margin-top: 8px;
  }
}
