/* Website Rescue: a repair-bench editorial treatment. */
.rescue-v3 {
  --rescue-ink: #071827;
  --rescue-paper: #f5f0e7;
  --rescue-brass: #b4833f;
  background: var(--rescue-paper);
}

.rescue-v3 .rescue-workbench {
  position: relative;
  isolation: isolate;
  display: block;
  min-height: min(780px, calc(100svh - 82px));
  padding: clamp(84px, 10vw, 146px) max(24px, calc((100vw - var(--shell)) / 2));
  overflow: hidden;
  color: var(--rescue-paper);
  background: var(--rescue-ink);
}

.rescue-v3 .rescue-workbench::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, #071827 0%, rgba(7, 24, 39, 0.97) 32%, rgba(7, 24, 39, 0.3) 63%, rgba(7, 24, 39, 0.08) 100%);
}

.rescue-v3 .rescue-hero-copy {
  position: relative;
  z-index: 2;
  width: min(690px, 58vw);
}

.rescue-v3 .rescue-workbench .eyebrow,
.rescue-v3 .rescue-workbench .text-link {
  color: #d4a55f;
}

.rescue-v3 .rescue-workbench h1 {
  max-width: 720px;
  margin: 20px 0 24px;
  color: var(--rescue-paper);
  font-family: var(--serif);
  font-size: clamp(58px, 7.3vw, 112px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.88;
}

.rescue-v3 .rescue-workbench .lede {
  max-width: 530px;
  color: rgba(245, 240, 231, 0.78);
}

.rescue-v3 .rescue-workbench .button-primary {
  color: var(--rescue-ink);
  background: var(--rescue-paper);
  border-color: var(--rescue-paper);
}

.rescue-v3 .rescue-bench-art {
  position: absolute;
  z-index: -2;
  top: 0;
  right: -7vw;
  width: min(72vw, 1160px);
  height: 100%;
  margin: 0;
}

.rescue-v3 .rescue-bench-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
}

.rescue-v3 .rescue-figure-note {
  position: absolute;
  right: max(24px, calc((100vw - var(--shell)) / 2));
  bottom: 28px;
  z-index: 3;
  margin: 0;
  color: rgba(245, 240, 231, 0.72);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.rescue-v3 .rescue-figure-note span {
  color: #d4a55f;
}

.rescue-v3 .rescue-faults {
  display: grid;
  grid-template-columns: 0.65fr 2.35fr;
  gap: 48px;
  align-items: start;
  padding: 27px max(24px, calc((100vw - var(--shell)) / 2)) 30px;
  color: var(--rescue-paper);
  background: #11100e;
}

.rescue-v3 .rescue-faults .eyebrow {
  margin: 5px 0 0;
  color: #d4a55f;
}

.rescue-v3 .rescue-faults ul {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.rescue-v3 .rescue-faults li {
  display: flex;
  align-items: center;
  color: rgba(245, 240, 231, 0.78);
  font-size: 13px;
  white-space: nowrap;
}

.rescue-v3 .rescue-faults li:not(:last-child)::after {
  width: 4px;
  height: 4px;
  margin: 0 18px;
  content: "";
  background: var(--rescue-brass);
  border-radius: 50%;
}

.rescue-v3 .rescue-promise {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.6fr);
  gap: clamp(54px, 10vw, 150px);
  align-items: end;
  padding: clamp(100px, 13vw, 190px) max(24px, calc((100vw - var(--shell)) / 2));
  overflow: hidden;
  background: var(--rescue-paper);
}

.rescue-v3 .rescue-promise h2 {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 18px 0 0;
  font-size: clamp(54px, 7vw, 104px);
  letter-spacing: -0.04em;
  line-height: 0.92;
}

.rescue-v3 .rescue-promise > p:last-child {
  position: relative;
  z-index: 1;
  padding-top: 22px;
  margin: 0;
  border-top: 1px solid var(--rescue-brass);
  color: #36424a;
  font-size: 16px;
}

.rescue-v3 .rescue-section-number {
  position: absolute;
  top: -0.2em;
  right: max(24px, calc((100vw - var(--shell)) / 2));
  margin: 0;
  color: rgba(180, 131, 63, 0.08);
  font-family: var(--serif);
  font-size: clamp(250px, 37vw, 600px);
  line-height: 1;
}

.rescue-v3 .rescue-price {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1fr);
  gap: clamp(60px, 11vw, 170px);
  align-items: center;
  padding: clamp(82px, 10vw, 132px) max(24px, calc((100vw - var(--shell)) / 2));
  color: var(--rescue-paper);
  background: #8a612b;
}

.rescue-v3 .rescue-price-mark {
  display: flex;
  align-items: baseline;
  transform: rotate(-3deg);
  border-bottom: 2px solid rgba(245, 240, 231, 0.65);
}

.rescue-v3 .rescue-price-mark span {
  margin-right: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rescue-v3 .rescue-price-mark strong {
  font-family: var(--serif);
  font-size: clamp(108px, 15vw, 230px);
  font-weight: 500;
  letter-spacing: -0.08em;
  line-height: 0.75;
}

.rescue-v3 .rescue-price .eyebrow,
.rescue-v3 .rescue-price h2 {
  color: var(--rescue-paper);
}

.rescue-v3 .rescue-price h2 {
  margin: 15px 0 22px;
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 500;
  line-height: 0.95;
}

.rescue-v3 .rescue-price p:last-child {
  max-width: 600px;
  margin: 0;
  color: rgba(245, 240, 231, 0.82);
}

.rescue-v3 .rescue-process {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(70px, 12vw, 180px);
  padding: clamp(110px, 14vw, 200px) max(24px, calc((100vw - var(--shell)) / 2));
  background: var(--rescue-paper);
}

.rescue-v3 .rescue-process header {
  align-self: start;
  position: sticky;
  top: 130px;
}

.rescue-v3 .rescue-process header h2 {
  margin-top: 22px;
  color: var(--rescue-ink);
  font-family: var(--serif);
  font-size: clamp(54px, 6vw, 88px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.91;
}

.rescue-v3 .rescue-bench-log {
  position: relative;
  padding: 0;
  margin: 0;
  list-style: none;
}

.rescue-v3 .rescue-bench-log::before {
  position: absolute;
  top: 18px;
  bottom: 28px;
  left: 29px;
  width: 1px;
  content: "";
  background: var(--rescue-brass);
}

.rescue-v3 .rescue-bench-log li {
  position: relative;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 34px;
  padding: 0 0 clamp(62px, 8vw, 110px);
  border: 0;
}

.rescue-v3 .rescue-bench-log li:nth-child(even) > div {
  transform: translateX(clamp(12px, 5vw, 70px));
}

.rescue-v3 .rescue-bench-log li > span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  color: var(--rescue-paper);
  background: var(--rescue-ink);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 10px;
}

.rescue-v3 .rescue-bench-log h3 {
  margin: -8px 0 10px;
  color: var(--rescue-ink);
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 78px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.rescue-v3 .rescue-bench-log p {
  max-width: 520px;
  margin: 0;
  color: #3d464d;
  font-size: 16px;
}

.rescue-v3 .rescue-boundary {
  display: grid;
  grid-template-columns: 0.45fr 1fr 0.82fr;
  gap: clamp(36px, 7vw, 110px);
  align-items: start;
  width: auto;
  padding: clamp(80px, 10vw, 136px) max(24px, calc((100vw - var(--shell)) / 2));
  margin: 0;
  color: var(--rescue-paper);
  background: var(--rescue-ink);
  border: 0;
}

.rescue-v3 .rescue-boundary .eyebrow {
  color: #d4a55f;
}

.rescue-v3 .rescue-boundary h2 {
  margin: 0;
  color: var(--rescue-paper);
  font-size: clamp(52px, 6vw, 84px);
  letter-spacing: -0.04em;
  line-height: 0.92;
}

.rescue-v3 .rescue-boundary > p:last-child {
  padding-top: 22px;
  margin: 0;
  color: rgba(245, 240, 231, 0.76);
  border-top: 1px solid rgba(212, 165, 95, 0.65);
}

.rescue-v3 .rescue-next {
  padding: clamp(100px, 13vw, 180px) max(24px, calc((100vw - var(--shell)) / 2));
  background: var(--rescue-paper);
}

.rescue-v3 .rescue-next > h2 {
  max-width: 900px;
  margin: 18px 0 28px;
  color: var(--rescue-ink);
  font-family: var(--serif);
  font-size: clamp(58px, 8vw, 118px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.88;
}

.rescue-v3 .rescue-next > p:not(.eyebrow) {
  max-width: 680px;
  color: #3d464d;
}

.rescue-v3 .rescue-next nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 70px;
  border-top: 1px solid #9da2a3;
}

.rescue-v3 .rescue-next nav a {
  position: relative;
  display: grid;
  gap: 9px;
  padding: 28px 64px 28px 0;
  color: var(--rescue-ink);
  border-bottom: 1px solid #9da2a3;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  text-decoration: none;
}

.rescue-v3 .rescue-next nav a:first-child {
  margin-right: 40px;
}

.rescue-v3 .rescue-next nav span {
  color: var(--rescue-brass);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.rescue-v3 .rescue-next nav b {
  position: absolute;
  right: 0;
  bottom: 30px;
  color: var(--rescue-brass);
  font-family: sans-serif;
  font-size: 22px;
  font-weight: 400;
}

.rescue-v3 .rescue-closing {
  position: relative;
  overflow: hidden;
  padding-top: clamp(100px, 12vw, 170px);
  padding-bottom: clamp(100px, 12vw, 170px);
  background: #ded5c5;
}

.rescue-v3 .rescue-closing::after {
  position: absolute;
  right: -0.08em;
  bottom: -0.32em;
  content: "+";
  color: rgba(180, 131, 63, 0.18);
  font-family: var(--serif);
  font-size: clamp(280px, 44vw, 700px);
  font-weight: 400;
  line-height: 1;
}

.rescue-v3 .rescue-closing > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 980px) {
  .rescue-v3 .rescue-workbench {
    min-height: 760px;
  }

  .rescue-v3 .rescue-hero-copy {
    width: 72vw;
  }

  .rescue-v3 .rescue-bench-art {
    right: -30vw;
    width: 105vw;
    opacity: 0.72;
  }

  .rescue-v3 .rescue-promise,
  .rescue-v3 .rescue-process {
    grid-template-columns: 1fr;
  }

  .rescue-v3 .rescue-process header {
    position: static;
  }

  .rescue-v3 .rescue-boundary {
    grid-template-columns: 0.45fr 1.25fr;
  }

  .rescue-v3 .rescue-boundary > p:last-child {
    grid-column: 2;
  }
}

@media (max-width: 720px) {
  .rescue-v3 .rescue-workbench {
    min-height: 750px;
    padding-top: 70px;
    padding-bottom: 76px;
  }

  .rescue-v3 .rescue-workbench::after {
    background: linear-gradient(180deg, #071827 0%, rgba(7, 24, 39, 0.96) 54%, rgba(7, 24, 39, 0.32) 100%);
  }

  .rescue-v3 .rescue-hero-copy {
    width: 100%;
  }

  .rescue-v3 .rescue-workbench h1 {
    max-width: 11ch;
    font-size: clamp(54px, 15.4vw, 78px);
  }

  .rescue-v3 .rescue-bench-art {
    top: auto;
    right: -30vw;
    bottom: 0;
    width: 145vw;
    height: 54%;
    opacity: 0.72;
  }

  .rescue-v3 .rescue-figure-note {
    display: none;
  }

  .rescue-v3 .rescue-faults,
  .rescue-v3 .rescue-price,
  .rescue-v3 .rescue-boundary {
    grid-template-columns: 1fr;
  }

  .rescue-v3 .rescue-faults {
    gap: 18px;
  }

  .rescue-v3 .rescue-faults ul {
    display: block;
    columns: 2;
  }

  .rescue-v3 .rescue-faults li {
    display: block;
    padding: 7px 14px 7px 0;
    white-space: normal;
    break-inside: avoid;
  }

  .rescue-v3 .rescue-faults li::after {
    display: none;
  }

  .rescue-v3 .rescue-promise {
    gap: 46px;
    padding-top: 96px;
    padding-bottom: 96px;
  }

  .rescue-v3 .rescue-promise h2 {
    font-size: clamp(48px, 13vw, 68px);
  }

  .rescue-v3 .rescue-price {
    gap: 70px;
  }

  .rescue-v3 .rescue-price-mark {
    width: max-content;
  }

  .rescue-v3 .rescue-process {
    gap: 80px;
  }

  .rescue-v3 .rescue-bench-log li,
  .rescue-v3 .rescue-bench-log li:nth-child(even) > div {
    transform: none;
  }

  .rescue-v3 .rescue-bench-log h3 {
    font-size: 52px;
  }

  .rescue-v3 .rescue-boundary > p:last-child {
    grid-column: auto;
  }

  .rescue-v3 .rescue-next nav {
    grid-template-columns: 1fr;
  }

  .rescue-v3 .rescue-next nav a:first-child {
    margin-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rescue-v3 .rescue-bench-log li:nth-child(even) > div,
  .rescue-v3 .rescue-price-mark {
    transform: none;
  }
}
