/* Restart / Future of Work editorial feature
----------------------------------------------------------------------------------------- */
.restart-editorial {
  --editorial-paper: #f3f0ea;
  --editorial-ink: #242322;
  --editorial-accent: #3e4940;
  --editorial-progress: 0;
  position: relative;
  width: 100%;
  height: 260vh;
  min-height: 1700px;
  margin-top: -56px;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  color: var(--editorial-ink);
  isolation: isolate;
  overflow: clip;
}

.restart-editorial__stage {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 680px;
  overflow: hidden;
  perspective: 1600px;
}

.restart-editorial__background {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--color-beige, #f5f1e6);
}

.restart-editorial__intro {
  position: absolute;
  z-index: 5;
  top: clamp(72px, 10vh, 116px);
  left: 50%;
  width: min(780px, calc(100vw - 48px));
  text-align: center;
  transform: translateX(-50%);
}

.restart-editorial__eyebrow {
  margin: 0 0 14px;
  color: var(--editorial-accent);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: 0.18em;
}

.restart-editorial__title {
  max-width: 740px;
  margin: 0 auto;
  color: var(--editorial-ink);
  font-size: clamp(35px, 4.2vw, 68px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.restart-editorial__summary {
  max-width: 660px;
  margin: 20px auto 0;
  color: rgba(36, 35, 34, 0.76);
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 480;
  line-height: 1.6;
  text-wrap: pretty;
}

.restart-editorial__metadata {
  margin: 16px 0 0;
  color: rgba(36, 35, 34, 0.56);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.restart-editorial.is-editorial-motion [data-editorial-intro-line],
.restart-editorial.is-editorial-motion .restart-editorial__cover,
.restart-editorial.is-editorial-motion .restart-editorial__article {
  will-change: transform, opacity;
}

.restart-editorial__visual {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  pointer-events: none;
}

.restart-editorial__cover,
.restart-editorial__article {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.restart-editorial__cover {
  z-index: 3;
  width: min(27vw, 430px, calc((100svh - 110px) * 0.7089));
  aspect-ratio: 1800 / 2539;
  overflow: visible;
  border-radius: 3px;
  box-shadow: 0 28px 70px rgba(24, 22, 19, 0.21), 0 5px 15px rgba(24, 22, 19, 0.11);
  transform-origin: center center;
}

.restart-editorial__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: inherit;
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.42);
  pointer-events: none;
}

.restart-editorial__cover picture,
.restart-editorial__cover img,
.restart-editorial__article picture,
.restart-editorial__article img {
  display: block;
  width: 100%;
  height: 100%;
}

.restart-editorial__cover img,
.restart-editorial__article img {
  border-radius: inherit;
  object-fit: contain;
}

.restart-editorial__paper-edge {
  position: absolute;
  z-index: -1;
  top: 2px;
  right: -4px;
  bottom: 2px;
  width: 5px;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(90deg, #d8d3ca, #fcfaf5 72%);
  box-shadow: 3px 0 5px rgba(24, 22, 19, 0.12);
}

.restart-editorial__article {
  z-index: 2;
  width: min(84vw, calc((100svh - 190px) * 1.6454), 1320px);
  aspect-ratio: 1392 / 846;
  overflow: hidden;
  border: 1px solid rgba(54, 51, 46, 0.1);
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 32px 82px rgba(37, 33, 28, 0.18), 0 4px 14px rgba(37, 33, 28, 0.08);
  transform-origin: left center;
}

.restart-editorial__article-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #fff;
}

.restart-editorial__highlight {
  position: absolute;
  top: -15%;
  bottom: -15%;
  left: 0;
  width: 24%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0));
  mix-blend-mode: screen;
  transform: translateX(-140%) skewX(-12deg);
  pointer-events: none;
}

.restart-editorial__scroll-cue {
  position: absolute;
  z-index: 6;
  bottom: 36px;
  left: 50%;
  width: 1px;
  height: 48px;
  overflow: hidden;
  background: rgba(36, 35, 34, 0.18);
  transform: translateX(-50%);
}

.restart-editorial__scroll-cue span {
  display: block;
  width: 100%;
  height: 52%;
  background: var(--editorial-accent);
  animation: restart-editorial-scroll-cue 1.9s ease-in-out infinite;
}

@keyframes restart-editorial-scroll-cue {
  0% { transform: translateY(-110%); }
  55%, 100% { transform: translateY(205%); }
}

.restart-editorial__progress {
  position: absolute;
  z-index: 6;
  right: clamp(24px, 3.4vw, 58px);
  bottom: 36px;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  color: rgba(36, 35, 34, 0.35);
  list-style: none;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.13em;
}

.restart-editorial__progress::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: -12px;
  left: 0;
  height: 1px;
  background: rgba(36, 35, 34, 0.14);
}

.restart-editorial__progress::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 0;
  width: calc(var(--editorial-progress) * 100%);
  height: 1px;
  background: var(--editorial-accent);
}

.restart-editorial__progress li {
  display: flex;
  gap: 7px;
  align-items: center;
  transition: color 220ms ease;
}

.restart-editorial__progress li.is-active {
  color: var(--editorial-ink);
}

.restart-editorial__progress span {
  font-variant-numeric: tabular-nums;
}

.restart-editorial__cta {
  position: absolute;
  z-index: 7;
  bottom: 24px;
  left: 50%;
  display: inline-flex;
  gap: 11px;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid rgba(62, 73, 64, 0.46);
  border-radius: 999px;
  color: var(--editorial-accent);
  background: rgba(243, 240, 234, 0.94);
  box-shadow: 0 10px 28px rgba(37, 33, 28, 0.08);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transform: translateX(-50%);
  transition: color 240ms ease, background-color 240ms ease, transform 240ms ease;
  pointer-events: auto;
}

.restart-editorial__cta:hover {
  color: #fff;
  background: var(--editorial-accent);
  transform: translateX(-50%) translateY(-2px);
}

.restart-editorial__cta:focus-visible,
.restart-editorial-viewer__close:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--editorial-accent);
}

.restart-editorial-viewer {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: #fff;
  background: rgba(20, 20, 19, 0.94);
  overflow: hidden;
  overscroll-behavior: contain;
}

.restart-editorial-viewer::backdrop {
  background: rgba(20, 20, 19, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.restart-editorial-viewer[open] {
  display: grid;
  grid-template-rows: 62px minmax(0, 1fr);
}

.restart-editorial-viewer__toolbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 10px 16px;
}

.restart-editorial-viewer__close {
  display: inline-grid;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  place-items: center;
}

.restart-editorial-viewer__document {
  display: grid;
  min-width: 0;
  min-height: 0;
  padding: 4px 24px 28px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  touch-action: pan-x pan-y pinch-zoom;
  place-items: start center;
}

.restart-editorial-viewer__document picture,
.restart-editorial-viewer__document img {
  display: block;
  width: min(1392px, calc(100vw - 48px));
  height: auto;
}

.restart-editorial-viewer__document img {
  background: #fff;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.38);
  user-select: none;
  -webkit-user-drag: none;
}

html.restart-editorial-viewer-open,
body.restart-editorial-viewer-open {
  overflow: hidden;
  overscroll-behavior: none;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .restart-editorial__cover {
    width: min(42vw, 380px, calc((100svh - 130px) * 0.7089));
  }
}

@media (max-width: 767px) {
  .restart-editorial {
    height: 210vh;
    min-height: 1250px;
    margin-top: -32px;
  }

  .restart-editorial__stage {
    min-height: 600px;
    perspective: none;
  }

  .restart-editorial__intro {
    top: max(42px, 7svh);
    width: calc(100vw - 36px);
  }

  .restart-editorial__eyebrow {
    margin-bottom: 10px;
    font-size: 10px;
  }

  .restart-editorial__title {
    font-size: clamp(30px, 9.2vw, 46px);
    line-height: 1.02;
  }

  .restart-editorial__summary {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.45;
  }

  .restart-editorial__metadata {
    margin-top: 12px;
    font-size: 9px;
  }

  .restart-editorial__visual {
    padding: 16px;
  }

  .restart-editorial__cover {
    width: min(68vw, 320px, calc((100svh - 120px) * 0.7089));
  }

  .restart-editorial__article {
    top: 52%;
    width: calc(100vw - 44px);
    max-width: 680px;
  }

  .restart-editorial__scroll-cue {
    bottom: 24px;
    height: 38px;
  }

  .restart-editorial__progress {
    right: 16px;
    bottom: 23px;
    gap: 13px;
    font-size: 8px;
  }

  .restart-editorial__cta {
    bottom: 20px;
    width: calc(100vw - 32px);
    max-width: 360px;
  }

  .restart-editorial-viewer__document {
    display: block;
    padding: 2px 14px 26px;
  }

  .restart-editorial-viewer__document picture,
  .restart-editorial-viewer__document img {
    width: max(100%, 1050px);
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .restart-editorial {
    height: auto;
    min-height: 0;
    margin-top: 0;
    padding: clamp(72px, 10vw, 130px) 0 !important;
    overflow: hidden;
    background: var(--editorial-paper);
  }

  .restart-editorial__stage {
    display: flex;
    height: auto;
    min-height: 0;
    padding: 0 20px;
    overflow: visible;
    flex-direction: column;
    align-items: center;
    perspective: none;
  }

  .restart-editorial__background {
    background: var(--editorial-paper);
  }

  .restart-editorial__intro,
  .restart-editorial__visual,
  .restart-editorial__cover,
  .restart-editorial__article,
  .restart-editorial__cta {
    position: relative;
    inset: auto;
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
    transform: none !important;
  }

  .restart-editorial__intro {
    width: min(780px, 100%);
  }

  .restart-editorial__visual {
    display: flex;
    width: 100%;
    margin-top: 54px;
    padding: 0;
    flex-direction: column;
    gap: 40px;
  }

  .restart-editorial__cover {
    width: min(430px, 72vw);
  }

  .restart-editorial__article {
    width: min(100%, 1392px);
  }

  .restart-editorial__article-image {
    opacity: 1 !important;
    filter: none !important;
    clip-path: none !important;
    transform: none !important;
  }

  .restart-editorial__cta {
    left: auto;
    width: auto;
    margin-top: 32px;
  }

  .restart-editorial__scroll-cue,
  .restart-editorial__progress,
  .restart-editorial__highlight {
    display: none;
  }

  .restart-editorial-viewer::backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@supports not (overflow: clip) {
  .restart-editorial {
    overflow: hidden;
  }
}
