/* Isolated editorial experiment; the homepage and original layout stay intact. */
.editorial-page { background: #111211; color: #eeede7; }
.editorial-shell { position: relative; isolation: isolate; padding: 34px 4.5vw 26px; }
.editorial-heading { position: relative; margin-top: clamp(80px, 10vw, 160px); }
/* The photo layer ends with this introduction, never behind the project grid. */
.editorial-heading .portfolio-photo {
  position: absolute;
  z-index: -1;
  pointer-events: auto;
  top: calc(-1 * clamp(80px, 10vw, 160px) - 72.45px);
  bottom: 0;
  left: -4.5vw;
  right: -4.5vw;
  background:
    linear-gradient(to bottom, transparent 0%, rgb(17 18 17 / 12%) 12vw, rgb(17 18 17 / 48%) 30vw, rgb(17 18 17 / 88%) 46vw, #111211 54vw),
    url("assets/web/selected-works.jpg") center -12vw / 100% auto no-repeat;
  background-color: #111211;
}
.editorial-heading h1 { text-shadow: none; }
.editorial-heading .edition-line { text-shadow: 0 2px 12px rgb(0 0 0 / 65%); }
.edition-line, .editorial-deck { display: flex; justify-content: space-between; gap: 28px; }
.edition-line { border-top: 1px solid #51514d; padding-top: 16px; font-size: 10px; letter-spacing: 1.2px; line-height: 1.6; color: #c1c1ba; }
.edition-line span:last-child { color: #c4b5fd; }
.editorial-heading .edition-line span { background: rgb(10 12 11 / 65%); padding: 3px 6px; color: #eeede7; }
.editorial-heading .edition-line span:last-child { color: #ddd3ff; }
.editorial-heading h1 { margin: 42px 0 46px; font-size: clamp(76px, 16vw, 240px); line-height: 1.03; letter-spacing: -0.025em; }
.editorial-heading h1 > span { margin-left: 16.66%; }
.editorial-heading sup { display: inline-block; margin-left: 24px; vertical-align: top; padding-top: 20px; font-family: "IBM Plex Mono", monospace; font-size: 11px; line-height: 1; letter-spacing: 1px; color: #c4b5fd; }
.editorial-deck { border-top: 1px solid #393a36; padding-top: 24px; align-items: flex-start; }
.editorial-deck p { margin: 0; font-size: 13px; line-height: 1.9; }
.editorial-deck > div { width: 42%; max-width: 440px; }
.editorial-deck .edition-note { font-size: 11px; color: #b8b9b2; }
.editorial-deck .preview-note { margin-top: 16px; color: #b8b9b2; font-size: 11px; }
.compare-link { display: inline-flex; align-items: center; gap: 24px; min-height: 44px; margin-top: 28px; padding: 10px 14px; border: 1px solid rgb(139 92 246 / 28%); background: rgb(30 29 36 / 35%); backdrop-filter: blur(4px); color: #d9d3e8; text-decoration: none; font-size: 10px; line-height: 1.6; }
.compare-link:hover { border-color: #8b5cf6; }
.editorial-page a:focus-visible { outline: 2px solid #c4b5fd; outline-offset: 5px; }
.works-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 28px; row-gap: 110px; margin-top: 100px; }
.work { margin: 0; min-width: 0; }
.work-one { grid-column: 1 / 8; }
.work-two { grid-column: 9 / 13; margin-top: 180px; }
.work-three { grid-column: 4 / 13; }
.photo-slot { position: relative; display: flex; align-items: center; justify-content: center; background: #1c1e1b; border: 1px solid #353732; }
.landscape { aspect-ratio: 4 / 3; }
.portrait { aspect-ratio: 3 / 4; background: #20211f; }
.wide { aspect-ratio: 16 / 9; background: #191b19; }
.slot-number { font-family: "Anton", sans-serif; font-size: clamp(80px, 12vw, 180px); color: #30332d; }
.slot-label { position: absolute; left: 18px; right: 18px; bottom: 18px; padding-top: 12px; border-top: 1px solid #494c44; font-size: 9px; letter-spacing: 1px; line-height: 1.7; color: #c3c6bb; }
.work figcaption { display: flex; gap: 18px; padding-top: 20px; }
.work-number { padding-top: 4px; color: #c4b5fd; font-size: 10px; white-space: nowrap; }
.work h2 { margin: 0; font-family: "Anton", sans-serif; font-weight: 400; font-size: clamp(23px, 2.4vw, 34px); letter-spacing: 0.01em; }
.work figcaption p { margin: 10px 0 0; color: #b8b9b2; font-size: 10px; line-height: 1.7; }
.margin-note { grid-column: 1 / 4; font-size: 10px; line-height: 1.9; letter-spacing: 1px; color: #b8b9b2; padding-top: 24px; }
.violet-mark { display: block; width: 26px; height: 1px; background: #8b5cf6; margin-bottom: 18px; }
@media (max-width: 700px) {
  .editorial-shell { padding: 26px 6vw 22px; }
  .editorial-heading .portfolio-photo {
    top: calc(-1 * clamp(80px, 10vw, 160px) - 64.45px);
    left: -6vw;
    right: -6vw;
    background-position: center, center top;
    background-image: linear-gradient(to bottom, transparent 0%, rgb(17 18 17 / 12%) 20vw, rgb(17 18 17 / 48%) 45vw, #111211 67vw), url("assets/web/selected-works.jpg");
  }
  .edition-line { font-size: 8px; letter-spacing: 0.5px; gap: 16px; }
  .editorial-heading h1 { font-size: 17vw; margin-block: 32px; }
  .editorial-heading sup { margin-left: 12px; font-size: 8px; padding-top: 8px; }
  .editorial-deck { flex-direction: column; }
  .editorial-deck > div { width: 100%; }
  .works-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 64px 16px; margin-top: 64px; }
  .work-one, .work-three { grid-column: 1 / -1; }
  .work-two { grid-column: 2 / -1; margin-top: 0; }
  .margin-note { grid-column: 1 / -1; padding-top: 0; }
}

.project-count { margin: 110px 0 16px; text-align: right; font-size: 10px; letter-spacing: 1.5px; color: #c4b5fd; }
@media (max-width: 700px) { .project-count { margin-top: 64px; } }

[data-portfolio-photo] { -webkit-user-drag: none; }
