.project-detail-document,
.project-detail-body {
  height: 100%;
  overflow: hidden;
  background: var(--page-bg, #edece8);
}

.project-detail-body {
  color: var(--ink, #000);
}

.project-detail-page {
  --detail-max: 1728px;
  --detail-column: 749px;
  --detail-side: clamp(56px, 5.6vw, 96px);
  --detail-nav-left: clamp(36px, 5.1vw, 88px);
  --detail-nav-width: clamp(148px, 11.2vw, 192px);
  --detail-page-left: clamp(148px, 14vw, 220px);
  --detail-page-right: clamp(24px, 5.1vw, 88px);
  --detail-page-top: clamp(38px, 3.7vw, 64px);
  --sheet-max-width: calc(var(--page-max, 1800px) - 2 * var(--gutter, 88px));
  position: relative;
  height: 100vh;
  height: 100dvh;
  background: transparent;
  color: #000;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.project-detail-page::-webkit-scrollbar {
  display: none;
}

.detail-breadcrumbs {
  position: fixed;
  top: var(--detail-breadcrumb-top);
  left: var(--detail-breadcrumb-left);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - (2 * var(--detail-breadcrumb-left)));
  overflow: hidden;
  color: var(--ink, #000);
  font-size: 17px;
  line-height: 1.62;
  transform: translateY(calc(-1 * var(--detail-breadcrumb-shift)));
}

.detail-breadcrumbs a,
.detail-breadcrumbs span {
  text-decoration: none;
  white-space: nowrap;
}

.detail-breadcrumbs a {
  opacity: 0.3;
}

.detail-breadcrumbs a:hover {
  opacity: 1;
}

.detail-breadcrumbs i {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.72;
}

.detail-section-nav {
  position: fixed;
  top: var(--detail-page-top);
  bottom: var(--detail-page-top);
  left: auto;
  right: max(0px, calc(50% - var(--sheet-max-width) / 2 - var(--detail-page-left)));
  width: var(--detail-page-left);
  z-index: 30;
  color: #000;
  font-size: 17px;
  line-height: 1.89;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 24px;
  padding-right: 0;
  box-sizing: border-box;
  will-change: transform;
}

.detail-close-button {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) scale(var(--magnetic-scale, 1));
  top: auto;
  right: auto;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #000;
  color: #fff;
  font-family: Geist, sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1;
  text-decoration: none;
  padding: 12px 16px 12px 24px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  transition:
    background 200ms ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.detail-close-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transition:
    background 200ms ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.detail-close-button:hover {
  background: #222;
  --magnetic-scale: 1.02;
}

.detail-close-button:active {
  --magnetic-scale: 0.98;
}

.detail-close-icon {
  font-size: 24px !important;
  line-height: 1;
}

.detail-section-nav-link {
  display: flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.detail-section-nav-list {
  position: relative;
  display: none;
  gap: 2px;
}

.detail-section-nav-link {
  color: rgba(0, 0, 0, 0.3);
  transition: color 180ms ease;
}

.detail-section-nav-link:hover,
.detail-section-nav-link.is-active {
  color: #000;
}

.detail-section-nav-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #000;
  transform: translate(var(--section-dot-x, 0), calc(var(--section-dot-y, 17px) - 50%));
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.detail-section-nav-title {
  display: block;
  transform: translateX(0);
  transition: transform 180ms ease;
}

.detail-section-nav-link:hover .detail-section-nav-title,
.detail-section-nav-link.is-active .detail-section-nav-title,
.detail-section-nav-link.is-dot-near .detail-section-nav-title {
  transform: translateX(17px);
}

.project-detail-main {
  position: relative;
  margin-top: var(--detail-page-top);
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
  width: calc(100% - 2 * var(--detail-page-left));
  max-width: var(--sheet-max-width);
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.01);
  border-radius: 2px;
  min-height: calc(100vh - (2 * var(--detail-page-top)));
  padding-bottom: clamp(64px, 6vw, 128px);
  will-change: transform, clip-path;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr minmax(0, var(--detail-column)) 1fr;
  column-gap: clamp(24px, 3vw, 48px);
  width: 100%;
  margin: 0;
  padding: clamp(56px, 5.3vw, 90px) 0 0;
}

.detail-content {
  grid-column: 2;
}

.detail-content figure {
  margin: 0;
}

.detail-content figure.detail-section {
  margin-top: 128px;
}

.detail-title {
  margin: 0 0 54px;
  font-size: 17px;
  font-weight: normal;
  line-height: 1.62;
  letter-spacing: 0;
}

.detail-title-pre,
.detail-title-sep {
  opacity: 0.3;
}

.detail-intro {
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.89;
  letter-spacing: 0.18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin: 25px 0 32px;
  font-size: 17px;
  line-height: 1.62;
}

.detail-meta div {
  min-width: max-content;
}

.detail-meta dt,
.detail-link-label {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.3);
}

.detail-meta dt,
.detail-meta dd {
  margin: 0;
}

.detail-links {
  display: grid;
  gap: 2px;
  margin: 0 0 32px;
  font-size: 17px;
  line-height: 1.62;
}

.detail-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 21px;
}

.detail-link-list a,
.detail-source-link {
  display: inline;
  text-decoration: none;
}

.detail-link-list a:hover,
.detail-source-link:hover {
  text-decoration: underline;
}

.detail-link-list .material-symbols-outlined,
.detail-source-link .material-symbols-outlined {
  display: inline-block;
  margin-left: 3px;
  font-size: 0.9em;
  line-height: 1;
  text-decoration: none;
  vertical-align: -0.05em;
}

.detail-hero-media,
.detail-image-placeholder,
.detail-figure-card {
  background: #f9f9f9;
}

.detail-hero-media {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 749 / 418;
}

.detail-hero-media img,
.detail-hero-media video,
.detail-dark-media img,
.detail-dark-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero-media video,
.detail-dark-media video {
  display: block;
}

.detail-video-toggle {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.84);
  color: #000;
  cursor: pointer;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    background-color 160ms ease;
}

.detail-hero-media:hover .detail-video-toggle,
.detail-hero-media:focus-within .detail-video-toggle,
.detail-video-toggle:focus-visible {
  opacity: 1;
  transform: translateY(0);
}

.detail-video-toggle:hover {
  background: #fff;
}

.detail-video-toggle:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}

.detail-video-toggle-icon {
  width: 14px;
  height: 16px;
  background: currentColor;
  clip-path: polygon(0 0, 32% 0, 32% 100%, 0 100%, 0 0, 68% 0, 100% 0, 100% 100%, 68% 100%, 68% 0);
}

.detail-hero-media.is-video-paused .detail-video-toggle-icon {
  width: 15px;
  height: 16px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.detail-rule {
  width: 100%;
  height: 1px;
  margin: 48px 0 31px;
  background: #000;
  opacity: 0.2;
}

.detail-caption,
.detail-figure-caption {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-style: italic;
  line-height: 1.89;
  letter-spacing: 0.18px;
}

.detail-copy {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.89;
  letter-spacing: 0.18px;
}

.detail-copy + .detail-copy {
  margin-top: 1.89em;
}

.detail-copy + .detail-caption {
  margin-top: 48px;
}

.detail-highlight {
  background: #FFF53D !important;
  color: #000000 !important;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0 0.1em;
}

.detail-source {
  grid-column: 3;
  align-self: end;
  padding-bottom: 20px;
  padding-right: var(--detail-side);
  font-size: 17px;
  line-height: 1.62;
}

.detail-anchor,
.detail-dark-section,
.project-detail-peek-sheet {
  scroll-margin-top: 32px;
}

.detail-source-link {
  position: relative;
}

.detail-source-link::before {
  display: inline-block;
  content: "";
  width: 79px;
  height: 1px;
  margin-right: 14px;
  background: rgba(0, 0, 0, 0.2);
  vertical-align: 0.35em;
}

.detail-dark-section {
  width: 100%;
  height: 300vh;
  margin: 120px 0 0;
  background: #1e1e1e;
  color: #fff;
}

.detail-dark-inner {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: minmax(0, 999px) minmax(220px, 360px);
  align-items: center;
  gap: clamp(48px, 8vw, 160px);
  width: min(100%, var(--detail-max));
  height: 100vh;
  height: 100svh;
  margin: 0 auto;
  padding: 64px var(--detail-side);
}

.detail-dark-media {
  position: relative;
  display: grid;
  place-items: center;
  height: min(815px, calc(100vh - 128px));
  height: min(815px, calc(100svh - 128px));
  overflow: hidden;
  background: #f9f9f9;
}

.detail-dark-step-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: clamp(48px, 8vw, 136px);
  opacity: 0;
  transform: scale(0.985);
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.detail-dark-step-image.is-active {
  opacity: 1;
  transform: scale(1);
}

.detail-callouts {
  position: relative;
  display: grid;
  gap: 30px;
}

.detail-callout {
  position: relative;
  max-width: 269px;
  padding-left: 18px;
  color: #fff;
  opacity: 0.38;
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    color 220ms ease;
}

.detail-callout::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 2px;
  left: 0;
  width: 3px;
  background: transparent;
  transition: background-color 220ms ease;
}

.detail-callout.is-active {
  opacity: 1;
  transform: translateY(0);
}

.detail-callout.is-active::before {
  background: #fff;
}

.detail-callout h2 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.45;
}

.detail-callout p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0.27px;
}

.detail-callout em {
  font-style: italic;
}

.detail-section {
  margin-top: 128px;
}

.detail-grid.detail-section {
  margin-top: 24px;
  padding-top: 0;
}

.detail-carousel {
  --detail-carousel-card-width: min(887px, calc(var(--detail-carousel-width, 100vw) - 48px));
  --detail-carousel-side-pad: max(24px, calc((var(--detail-carousel-width, 100vw) - var(--detail-carousel-card-width)) / 2));
  width: var(--detail-carousel-width, 100%);
  margin-top: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--detail-carousel-side-pad);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
}

.detail-carousel.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.detail-carousel-single {
  overflow-x: hidden;
  scroll-snap-type: none;
  cursor: default;
  touch-action: pan-y;
}

.detail-carousel::-webkit-scrollbar {
  display: none;
}

.detail-carousel-track {
  display: flex;
  gap: clamp(48px, 5vw, 86px);
  width: max-content;
  padding-inline: var(--detail-carousel-side-pad);
  scroll-padding-inline: var(--detail-carousel-side-pad);
}

.detail-carousel-track::after {
  content: "";
  flex: 0 0 var(--detail-carousel-side-pad);
}

.detail-figure-card {
  flex: 0 0 var(--detail-carousel-card-width);
  aspect-ratio: 887 / 501;
  scroll-snap-align: center;
}

.detail-figure-card img,
.detail-figure-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-figure-caption {
  margin-top: 34px;
}

.detail-bottom-space {
  height: clamp(160px, 22vw, 360px);
}

/* Next Project Peek Sheet */
.project-detail-peek-sheet {
  position: relative;
  margin-left: auto;
  margin-right: auto;
  width: calc(100% - 2 * var(--detail-page-left));
  max-width: var(--sheet-max-width);
  margin-top: calc(var(--detail-page-top) + 32px);
  padding-top: 0;
  padding-bottom: 240px;
  background: #fff;
  border-radius: 2px 2px 0 0;
  cursor: pointer;
  overflow: hidden;
  will-change: transform, clip-path;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  max-height: var(--peek-base-height, 420px);
  box-shadow: 0 50px 0 0 #fff;
}

.project-detail-peek-sheet.is-transitioning,
.project-detail-peek-sheet.is-transitioning.is-pointer-hovered,
.project-detail-peek-sheet.is-transitioning:focus-visible {
  max-height: none;
  transform: translateY(-28px) !important;
  box-shadow: 0 50px 0 0 #fff !important;
}

.project-detail-peek-sheet.is-pointer-hovered,
.project-detail-peek-sheet:focus-visible {
  transform: translateY(-28px);
  max-height: var(--peek-hover-height, 448px);
  box-shadow: 0 50px 0 0 #fff;
}

.project-detail-peek-sheet.is-pointer-hovered .project-detail-peek-fade,
.project-detail-peek-sheet:focus-visible .project-detail-peek-fade {
  transform: translateY(28px);
}

.project-detail-peek-sheet:active {
  transform: translateY(-24px);
  transition-duration: 0.12s;
}
.project-detail-peek-label {
  position: absolute;
  top: clamp(56px, 5.3vw, 90px);
  left: var(--detail-nav-left);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
  z-index: 10;
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 1599px) {
  .project-detail-peek-label {
    top: clamp(24px, 3.5vw, 36px);
    left: clamp(24px, 3.5vw, 36px);
  }
}

@media (max-width: 700px) {
  .project-detail-peek-label {
    top: var(--detail-side);
    left: var(--detail-side);
  }
}

.project-detail-peek-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #fff 100%);
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Custom Segmented Scrollbar & Progress Styles */
.custom-scrollbar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding-left: 24px;
  z-index: 30;
  color: var(--ink, #000);
  font-family: Geist, sans-serif;
  pointer-events: auto;
  display: flex;
  justify-content: flex-start;
  opacity: 1;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.custom-scrollbar.is-scrolling,
.custom-scrollbar:hover,
.custom-scrollbar.is-dragging {
  opacity: 1;
  pointer-events: auto;
}

.custom-scrollbar-blur {
  display: none;
}

.custom-scroll-track {
  position: relative;
  width: 2px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: auto;
  touch-action: none;
  cursor: pointer;
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-scrollbar:hover .custom-scroll-track,
.custom-scrollbar.is-dragging .custom-scroll-track {
  width: 4px;
}

.scroll-segment {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  touch-action: none;
}

.scroll-segment-bar {
  width: 100%;
  height: 100%;
  background: color-mix(in srgb, var(--ink, #000) 20%, transparent);
  border-radius: 1px;
  overflow: hidden;
  position: relative;
}

.scroll-segment-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--ink, #000);
  will-change: height;
}

.scroll-segment-label {
  position: absolute;
  left: 20px;
  right: auto;
  top: 0;
  transform: translateX(0);
  line-height: 1;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: auto;
  visibility: hidden;
  transition:
    opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
    color 220ms ease;
  white-space: nowrap;
  color: var(--ink, #000);
  text-align: left;
}

.scroll-segment.is-active .scroll-segment-label {
  font-weight: 600;
  opacity: 0;
  visibility: hidden;
  transform: translateX(4px);
  transition:
    opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
    color 220ms ease;
}

.custom-scrollbar:hover .scroll-segment-label,
.custom-scrollbar.is-dragging .scroll-segment-label {
  opacity: 0.2;
  visibility: visible;
}

.custom-scrollbar:hover .scroll-segment.is-active .scroll-segment-label,
.custom-scrollbar.is-dragging .scroll-segment.is-active .scroll-segment-label {
  opacity: 1;
  visibility: visible;
}

.scroll-segment:hover .scroll-segment-label {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(4px) !important;
}

.detail-scrollbar {
  color: var(--ink, #000);
  opacity: 1 !important;
}

.detail-scrollbar .custom-scroll-track {
  transition:
    width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.detail-scrollbar .scroll-segment-bar {
  opacity: 1 !important;
}

.detail-scrollbar.is-scrolling,
.detail-scrollbar:hover,
.detail-scrollbar.is-dragging {
  pointer-events: auto;
}

@media (max-width: 700px) {
  .custom-scrollbar {
    display: none;
  }
}


@media (max-width: 1380px) {
  .scroll-segment-label {
    display: none !important;
  }
}

@media (max-width: 1300px) {
  .project-detail-page {
    --detail-page-left: clamp(96px, 10vw, 150px);
  }
}

@media (max-width: 1100px) {
  .project-detail-page {
    --detail-side: clamp(24px, 4vw, 48px);
    --detail-page-left: clamp(48px, 6vw, 96px);
    --detail-page-right: 24px;
  }

  .detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-content,
  .detail-source {
    grid-column: 1;
    width: min(100%, var(--detail-column));
    margin-inline: auto;
    padding-inline: var(--detail-side);
    box-sizing: border-box;
  }

  .detail-source {
    align-self: auto;
    margin-top: 36px;
    padding-bottom: 0;
  }

  .detail-source-link::before {
    width: 52px;
  }

  .detail-dark-inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .detail-dark-media {
    height: auto;
    min-height: auto;
    aspect-ratio: 999 / 815;
  }

  .detail-callouts {
    margin-top: 0;
  }

  .detail-callout + .detail-callout {
    margin-top: 0;
  }

  .project-detail-peek-sheet {
    margin-top: 32px;
  }
}

@media (max-width: 900px) {
  .detail-close-button {
    min-height: 44px;
    padding: 12px 16px 12px 24px;
    justify-content: center;
    border-radius: 999px;
  }
}

@media (max-width: 700px) {
  .project-detail-page {
    --detail-side: 24px;
    --detail-nav-left: 24px;
    --detail-nav-width: calc(100vw - 48px);
    --detail-page-left: 24px;
    --detail-page-right: 24px;
    --detail-page-top: 128px;
  }

  .project-detail-main {
    margin-bottom: 0;
  }

  .detail-section-nav {
    top: 24px;
    bottom: auto;
    left: var(--detail-nav-left);
    right: auto;
    width: var(--detail-nav-width);
    display: block;
    font-size: 15px;
    line-height: 1.62;
    align-items: flex-start;
    padding-right: 0;
  }

  .detail-close-button {
    position: fixed !important;
    bottom: 24px !important;
    top: auto !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    margin-bottom: 0 !important;
    z-index: 100 !important;
  }

  .detail-section-nav-list {
    display: flex;
    gap: 14px;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .detail-section-nav-list::-webkit-scrollbar {
    display: none;
  }

  .detail-section-nav-link {
    flex: 0 0 auto;
  }

  .detail-section-nav-link:hover .detail-section-nav-title,
  .detail-section-nav-link.is-active .detail-section-nav-title,
  .detail-section-nav-link.is-dot-near .detail-section-nav-title {
    transform: translateX(10px);
  }

  .detail-intro,
  .detail-title,
  .detail-meta,
  .detail-links,
  .detail-copy,
  .detail-caption,
  .detail-figure-caption,
  .detail-source,
  .detail-callout h2,
  .detail-callout p {
    font-size: 16px;
  }

  .detail-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
  }

  .detail-meta div {
    min-width: 0;
  }

  .detail-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
  }

  .detail-dark-section {
    margin-top: 88px;
  }

  .detail-dark-inner {
    padding: 80px var(--detail-side);
  }

  .detail-dark-media {
    height: auto;
    aspect-ratio: 1 / 1;
    min-height: 0;
  }

  .detail-dark-media img,
  .detail-dark-media video {
    width: 86%;
  }

  .detail-dark-media .detail-dark-step-image {
    width: 100%;
    height: 100%;
    padding: 36px;
  }

  .detail-carousel {
    width: var(--detail-carousel-width, 100%);
  }

  .project-detail-peek-sheet {
    display: none !important;
  }

  .scroll-segment[data-detail-target="detail-project-nav"] {
    display: none !important;
  }

  .project-detail-main {
    margin-bottom: var(--detail-page-top);
    --scroll-expand-ratio: 0;
    width: calc(100% - 2 * var(--detail-page-left) * (1 - var(--scroll-expand-ratio))) !important;
    border-radius: 2px !important;
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }
}

.project-detail-peek-sheet.is-transitioning .project-detail-peek-label {
  opacity: 0;
}

.project-detail-peek-sheet.is-transitioning .project-detail-peek-fade {
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}


.is-from-peek .detail-section-nav {
  opacity: 0;
  filter: blur(10px);
}

/* Fade in the contents below the image while transition is active */
.project-detail-peek-sheet .project-detail-inner-content .detail-meta,
.project-detail-peek-sheet .project-detail-inner-content .detail-links,
.project-detail-peek-sheet .project-detail-inner-content .detail-rule,
.project-detail-peek-sheet .project-detail-inner-content .detail-anchor,
.project-detail-peek-sheet .project-detail-inner-content .detail-copy,
.project-detail-peek-sheet .project-detail-inner-content .detail-section-subtitle,
.project-detail-peek-sheet .project-detail-inner-content .detail-dark-section,
.project-detail-peek-sheet .project-detail-inner-content .detail-section {
  opacity: 0;
  filter: blur(5px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-detail-peek-sheet.is-transitioning .project-detail-inner-content .detail-meta,
.project-detail-peek-sheet.is-transitioning .project-detail-inner-content .detail-links,
.project-detail-peek-sheet.is-transitioning .project-detail-inner-content .detail-rule,
.project-detail-peek-sheet.is-transitioning .project-detail-inner-content .detail-anchor,
.project-detail-peek-sheet.is-transitioning .project-detail-inner-content .detail-copy,
.project-detail-peek-sheet.is-transitioning .project-detail-inner-content .detail-section-subtitle,
.project-detail-peek-sheet.is-transitioning .project-detail-inner-content .detail-dark-section,
.project-detail-peek-sheet.is-transitioning .project-detail-inner-content .detail-section {
  opacity: 1;
  filter: blur(0px);
}

/* Staggered delays for organic reveal as sheet scrolls up */
.project-detail-peek-sheet.is-transitioning .project-detail-inner-content .detail-meta,
.project-detail-peek-sheet.is-transitioning .project-detail-inner-content .detail-links {
  transition-delay: 0.05s;
}
.project-detail-peek-sheet.is-transitioning .project-detail-inner-content .detail-rule,
.project-detail-peek-sheet.is-transitioning .project-detail-inner-content .detail-anchor,
.project-detail-peek-sheet.is-transitioning .project-detail-inner-content .detail-copy,
.project-detail-peek-sheet.is-transitioning .project-detail-inner-content .detail-section-subtitle {
  transition-delay: 0.15s;
}
.project-detail-peek-sheet.is-transitioning .project-detail-inner-content .detail-dark-section {
  transition-delay: 0.25s;
}
.project-detail-peek-sheet.is-transitioning .project-detail-inner-content .detail-section {
  transition-delay: 0.35s;
}

.detail-section-subtitle {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-style: italic;
  line-height: 1.89;
  letter-spacing: 0.18px;
  margin: 72px 0 16px 0;
  color: #000000;
}

.detail-section-subtitle.first {
  margin-top: 0;
}

@media (max-width: 900px) {
  .project-kaleido .detail-title-pre,
  .project-kaleido .detail-title-sep {
    display: none;
  }
}
