.ink-panel.forming-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  padding: 0;
  overflow: hidden;
}

.forming-panel .image-frame {
  width: 100%;
  border-radius: 0;
}

.forming-panel .image-frame img {
  object-fit: cover;
}

.forming-copy {
  padding: var(--editorial-inset);
}

.surface-story {
  scroll-margin-top: 84px;
}

.surface-window {
  display: grid;
  gap: var(--editorial-gap);
}

.surface-scene {
  overflow: hidden;
  border-radius: 12px;
  background: #161617;
  color: #fff;
}

.surface-scene img {
  display: block;
  width: 100%;
  height: auto;
}

.surface-copy {
  padding: var(--editorial-inset);
}

.surface-copy .eyebrow {
  margin-bottom: 10px;
  color: #e0e0e5;
}

.surface-copy :is(h2, h3) {
  max-width: 15ch;
  font-size: clamp(32px, 5.1vw, 72px);
  line-height: 1.03;
}

.surface-copy p:not(.eyebrow) {
  max-width: 49ch;
  margin-top: 14px;
  color: #e6e6eb;
}

.surface-credit {
  margin-block: 12px var(--editorial-gap);
}

#project-workflow {
  padding-block: clamp(32px, 5vw, 58px) 0;
}

#project-workflow + .cta-panel {
  margin-top: var(--editorial-gap);
}

.workflow-controls .button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.workflow-brief {
  margin-top: var(--editorial-gap);
  padding: var(--editorial-inset);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.workflow-brief h3 {
  margin-bottom: 14px;
  font-size: var(--text-h3, 21px);
}

.workflow-brief ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--editorial-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-brief li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  font-size: var(--text-small);
  line-height: 1.55;
}

.workflow-brief .site-icon {
  margin-top: 2px;
  color: var(--red);
}

@media (max-width: 690px) {
  .workflow-brief ul {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media screen and (min-width: 1000px) and (min-height: 760px) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) and (width: 1cqi) {
    .surface-story {
      --surface-pin-top: 76px;
      --surface-wide-width: min(1760px, calc(100vw - 2 * var(--editorial-gap)));
      position: relative;
      height: 260svh;
      container-type: inline-size;
      view-timeline-name: --surface-story;
      view-timeline-inset: var(--surface-pin-top) 0;
    }

    .surface-stage {
      position: sticky;
      top: var(--surface-pin-top);
      height: calc(100svh - var(--surface-pin-top));
    }

    .surface-window {
      --surface-rest-edge: max(0px, calc((var(--surface-wide-width) - 100cqi) / 2));
      position: absolute;
      inset: 0 auto 0 50%;
      width: var(--surface-wide-width);
      translate: -50% 0;
      overflow: clip;
      background: #161617;
      animation-name: surface-width;
    }

    .surface-scene {
      position: absolute;
      inset: 0;
      border-radius: 0;
    }

    .surface-scene:nth-child(2) { animation-name: surface-middle; }
    .surface-scene:nth-child(3) { animation-name: surface-last; }

    .surface-scene img {
      height: 100%;
      object-fit: cover;
      object-position: 60% 50%;
      animation-name: surface-detail-zoom;
    }

    .surface-scene:nth-child(2) img { animation-name: surface-joint-zoom; }
    .surface-scene:nth-child(3) img { animation-name: surface-edge-settle; }

    .surface-scene::after {
      content: '';
      position: absolute;
      inset: 0;
      background:
        linear-gradient(90deg, #0008, transparent 72%),
        linear-gradient(0deg, #000d, #0003 54%, transparent 82%);
      pointer-events: none;
    }

    .surface-copy {
      position: absolute;
      z-index: 1;
      left: calc(var(--surface-rest-edge) + clamp(32px, 5vw, 76px));
      bottom: clamp(42px, 9vh, 100px);
      max-width: min(54%, 630px);
      padding: 0;
    }

    .surface-scene:first-child { --scene-start: 0%; --scene-end: 27%; }
    .surface-scene:nth-child(2) { --scene-start: 30%; --scene-end: 61%; }
    .surface-scene:nth-child(3) { --scene-start: 64%; }

    .surface-copy > * {
      --beat-start: calc(var(--scene-start) + var(--beat-delay, 0%));
      --beat-end: calc(var(--scene-end, 98%) + var(--beat-delay, 0%));
      animation-name: surface-rise;
    }

    .surface-copy > :nth-child(2) { --beat-delay: 3%; }
    .surface-copy > :nth-child(3) { --beat-delay: 6%; }
    .surface-copy > :nth-child(4) { --beat-delay: 9%; }
    .surface-scene:nth-child(3) .surface-copy > * { --beat-end: 100%; animation-name: surface-hold; }

    .surface-window, .surface-scene:not(:first-child), .surface-scene img, .surface-copy > * {
      animation-duration: auto;
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-timeline: --surface-story;
      animation-range: contain var(--beat-start, 0%) contain var(--beat-end, 100%);
    }

    @keyframes surface-width {
      0%, 100% { clip-path: inset(0 var(--surface-rest-edge) round 12px); }
      17%, 82% { clip-path: inset(0 0 round 12px); }
    }

    @keyframes surface-middle {
      0%, 27% { opacity: 0; }
      36%, 100% { opacity: 1; }
    }

    @keyframes surface-last {
      0%, 61% { opacity: 0; }
      71%, 100% { opacity: 1; }
    }

    @keyframes surface-detail-zoom {
      0% { scale: 1.025; }
      38%, 100% { scale: 1.13; }
    }

    @keyframes surface-joint-zoom {
      0%, 27% { scale: 1.13; }
      71%, 100% { scale: 1.025; }
    }

    @keyframes surface-edge-settle {
      0%, 61% { scale: 1.09; }
      100% { scale: 1; }
    }

    @keyframes surface-rise {
      0% { opacity: 0; translate: 0 24px; }
      29%, 79% { opacity: 1; translate: 0 0; }
      100% { opacity: 0; translate: 0 -16px; }
    }

    @keyframes surface-hold {
      0% { opacity: 0; translate: 0 24px; }
      40%, 100% { opacity: 1; translate: 0 0; }
    }
  }
}
.surface-media {
  position: relative;
  aspect-ratio: 16 / 9;
}

.surface-scene .surface-media > :is(img, video),
.surface-laser-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}

.surface-laser {
  opacity: 0;
  pointer-events: none;
}

.surface-laser.has-laser-frame {
  opacity: 1;
}

.surface-laser-background {
  display: none;
}

@media screen and (min-width: 1000px) and (min-height: 760px) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) and (width: 1cqi) {
    [data-laser-story] .surface-laser {
      display: none;
    }

    [data-laser-story] .surface-laser-background {
      display: block;
    }

    [data-laser-story] .surface-media {
      position: absolute;
      inset: 0;
      aspect-ratio: auto;
    }

    [data-laser-story] .surface-media > img {
      animation: none;
    }

    .has-laser-background .surface-media {
      visibility: hidden;
    }

    [data-laser-story] .surface-scene {
      z-index: 2;
      background: transparent;
    }

    [data-laser-story] .surface-copy {
      inset-inline-start: calc(var(--surface-rest-edge) + clamp(24px, 2.6vw, 48px));
      inset-block-end: clamp(40px, 6.4vh, 72px);
    }

    html[lang="fa"] [data-laser-story] .surface-copy {
      inset-inline-start: calc(var(--surface-rest-edge) + clamp(28px, 3.3vw, 58px));
      inset-block-end: clamp(30px, 5.8vh, 68px);
    }

    [data-laser-story] .surface-scene::after {
      content: none;
    }

    [data-laser-story] .surface-window {
      --laser-shade:
        linear-gradient(90deg, #0008, transparent 72%),
        linear-gradient(0deg, #000d, #0003 54%, transparent 82%);
    }

    [data-laser-story] :is(.surface-window, .surface-media)::after {
      content: "";
      position: absolute;
      z-index: 1;
      inset: 0;
      background: var(--laser-shade);
      pointer-events: none;
    }

    html[lang="fa"] [data-laser-story] .surface-window {
      --laser-shade:
        linear-gradient(270deg, #0008, transparent 72%),
        linear-gradient(0deg, #000d, #0003 54%, transparent 82%);
    }
  }
}
