/* Process — "From first line to lived space" (route-specific rebuild, .ps-*) */

.ps {
  --ps-overlap: clamp(44px, 6svh, 88px);
  --ps-pad: clamp(96px, 12vh, 172px);
  background: var(--paper);
}

/* ---------- Hero ---------- */

.ps-hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  background: var(--ink);
}

.ps-hero__media {
  position: absolute;
  inset: -6% 0;
}

.ps-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
}

.ps-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 18, 15, 0.66) 0%, rgba(20, 18, 15, 0.3) 42%, rgba(20, 18, 15, 0.06) 72%, rgba(20, 18, 15, 0) 100%),
    linear-gradient(180deg, rgba(20, 18, 15, 0.34) 0%, rgba(20, 18, 15, 0) 30%, rgba(20, 18, 15, 0.38) 100%);
  pointer-events: none;
}

.ps-hero__inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(64px, 9vh, 116px);
}

.ps-hero__eyebrow {
  color: rgba(245, 241, 232, 0.78);
  margin-bottom: clamp(20px, 3vh, 34px);
}

.ps-hero__title {
  color: #f5f1e8;
  font-size: clamp(3.75rem, 7.1vw, 7.6rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
  max-width: 12em;
}

.ps-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.ps-line__in {
  display: inline-block;
  transform: translateZ(0);
  will-change: transform;
}

.ps-hero__title em {
  font-style: italic;
  font-weight: 500;
}

.ps-hero__rule {
  display: block;
  width: clamp(120px, 16vw, 240px);
  height: 1px;
  background: rgba(245, 241, 232, 0.45);
  margin: clamp(24px, 3.6vh, 40px) 0 clamp(16px, 2.4vh, 26px);
}

.ps-hero__sub {
  margin: 0;
  color: rgba(245, 241, 232, 0.82);
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  line-height: 1.6;
  max-width: 34ch;
}

.ps-hero__cue {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: clamp(26px, 4.2vh, 46px);
  color: rgba(245, 241, 232, 0.68);
}

.ps-hero__cue i {
  display: block;
  width: 64px;
  height: 1px;
  background: rgba(245, 241, 232, 0.5);
  transform-origin: 0 50%;
}

.ps-hero__cue span {
  font-family: var(--font-mono), monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ---------- Intro ---------- */

.ps-intro {
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * var(--ps-overlap));
  background: var(--paper);
  padding: calc(var(--ps-overlap) + clamp(76px, 10vh, 140px)) 0 clamp(84px, 11vh, 156px);
}

.ps-intro__grid {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: clamp(32px, 5vw, 96px);
}

.ps-intro__aside {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.6vh, 30px);
}

.ps-intro__num {
  font-size: clamp(2.4rem, 3.4vw, 3.4rem);
  line-height: 1;
  color: var(--ink);
}

.ps-intro__rule {
  display: block;
  width: 100%;
  max-width: 260px;
  height: 1px;
  background: rgba(27, 26, 23, 0.22);
  margin-top: clamp(10px, 2vh, 22px);
}

.ps-intro__stmt {
  margin: 0 0 clamp(20px, 3vh, 32px);
  font-size: clamp(2rem, 3.05vw, 2.9rem);
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 22em;
}

.ps-intro__body {
  margin: 0;
  font-size: clamp(1.0625rem, 1.2vw, 1.1875rem);
  line-height: 1.65;
  color: rgba(27, 26, 23, 0.72);
  max-width: 56ch;
}

/* ---------- Movements ---------- */

.ps-move {
  background: var(--paper);
  padding: 0 0 clamp(96px, 12vh, 168px);
}

.ps-move__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-top: clamp(20px, 3vh, 34px);
  border-top: 1px solid rgba(27, 26, 23, 0.16);
  margin-bottom: clamp(40px, 6vh, 72px);
}

.ps-move__range {
  color: rgba(27, 26, 23, 0.5);
}

.ps-move__grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(40px, 4.6vw, 88px);
  align-items: start;
}

/* stage */

.ps-stage {
  position: sticky;
  top: calc(var(--header-h) + 26px);
}

.ps-stage__frame {
  position: relative;
  width: min(100%, 88%);
  height: clamp(480px, 72svh, 800px);
  overflow: hidden;
  background: var(--ink-2);
}

.ps-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.ps-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ps-stage:not(.ps-ready) .ps-layer:first-child {
  opacity: 1;
}

.ps-stage__foot {
  width: min(100%, 88%);
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 24px);
  margin-top: clamp(14px, 2vh, 22px);
}

.ps-stage__cap {
  color: rgba(27, 26, 23, 0.82);
  white-space: nowrap;
}

.ps-stage__rule {
  flex: 1;
  height: 1px;
  background: rgba(27, 26, 23, 0.2);
  transform-origin: 0 50%;
}

.ps-stage__count {
  color: rgba(27, 26, 23, 0.55);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* movement list */

.ps-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ps-mv {
  position: relative;
  min-height: clamp(430px, 64svh, 640px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 5vh, 60px) 0;
  border-top: 1px solid rgba(27, 26, 23, 0.16);
}

.ps-mv__tick {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--bronze);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.ps-mv__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(18px, 2.8vh, 30px);
}

.ps-mv__num {
  color: rgba(27, 26, 23, 0.6);
}

.ps-mv__title {
  margin: 0 0 clamp(16px, 2.4vh, 26px);
  font-size: clamp(2.5rem, 3.35vw, 3.9rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: rgba(27, 26, 23, 0.4);
  transition: color 0.5s ease;
  outline-offset: 6px;
}

.ps-mv__text {
  margin: 0;
  font-size: clamp(1.0625rem, 1.2vw, 1.1875rem);
  line-height: 1.65;
  color: rgba(27, 26, 23, 0.5);
  max-width: 46ch;
  transition: color 0.5s ease;
}

.ps-mv.is-active .ps-mv__title {
  color: var(--ink);
}

.ps-mv.is-active .ps-mv__text {
  color: rgba(27, 26, 23, 0.76);
}

.ps-mv.is-active .ps-mv__tick {
  transform: scaleX(1);
}

.ps-mv__title:focus-visible {
  outline: 2px solid var(--bronze);
}

.ps-mv__media {
  display: none;
}

.ps-mv__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Full-bleed pause ---------- */

.ps-scene {
  position: relative;
  height: min(92svh, 62.5vw);
  min-height: 480px;
  overflow: hidden;
  background: var(--ink);
}

.ps-scene__media {
  position: absolute;
  inset: -6% 0;
}

.ps-scene__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
}

.ps-scene__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 18, 15, 0.16) 0%, rgba(20, 18, 15, 0) 34%, rgba(20, 18, 15, 0.48) 100%);
  pointer-events: none;
}

.ps-scene__inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(56px, 8vh, 96px);
}

.ps-scene__rule {
  display: block;
  width: clamp(90px, 11vw, 170px);
  height: 1px;
  background: rgba(245, 241, 232, 0.5);
  margin-bottom: clamp(18px, 2.6vh, 28px);
}

.ps-scene__line {
  margin: 0;
  color: #f5f1e8;
  font-size: clamp(1.9rem, 2.9vw, 2.85rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* ---------- Project proof ---------- */

.ps-work {
  background: var(--paper);
  padding: var(--ps-pad) 0;
}

.ps-work__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(48px, 7vh, 84px);
}

.ps-work__label {
  color: rgba(27, 26, 23, 0.6);
  display: block;
  margin-bottom: clamp(16px, 2.4vh, 26px);
}

.ps-work__title {
  margin: 0;
  font-size: clamp(2rem, 3.1vw, 2.95rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.ps-work__all {
  color: rgba(27, 26, 23, 0.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(27, 26, 23, 0.28);
  padding-bottom: 6px;
  transition: color 0.4s ease, border-color 0.4s ease;
}

.ps-work__all:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.ps-work__grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(32px, 4.4vw, 80px);
  align-items: start;
}

.ps-work__item {
  display: block;
  text-decoration: none;
  color: inherit;
}

.ps-work__item--offset {
  margin-top: clamp(48px, 7vh, 96px);
}

.ps-work__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-2);
}

.ps-work__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.ps-work__item:hover .ps-work__media img {
  transform: scale(1.04);
}

.ps-work__cap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: clamp(16px, 2.4vh, 26px);
  padding-top: clamp(14px, 2vh, 20px);
  border-top: 1px solid rgba(27, 26, 23, 0.18);
}

.ps-work__name {
  font-size: clamp(1.75rem, 2.4vw, 2.6rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.ps-work__item:hover .ps-work__name {
  transform: translateX(5px);
}

.ps-work__arrow {
  margin-left: auto;
  position: relative;
  width: 46px;
  height: 1px;
  background: rgba(27, 26, 23, 0.4);
  transition: background 0.4s ease, width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.ps-work__arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 9px;
  height: 9px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  color: var(--ink);
  transform: translateY(-50%) rotate(45deg) scale(0.8);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.ps-work__item:hover .ps-work__arrow {
  background: var(--bronze);
  width: 64px;
}

.ps-work__item:hover .ps-work__arrow::after {
  opacity: 1;
  transform: translateY(-50%) rotate(45deg) scale(1);
}

/* ---------- CTA ---------- */

.ps-cta {
  background: var(--ink);
  padding: var(--ps-pad) 0 calc(var(--ps-pad) * 0.92);
}

.ps-cta__label {
  color: rgba(245, 241, 232, 0.62);
  display: block;
  margin-bottom: clamp(22px, 3.4vh, 38px);
}

.ps-cta__title {
  margin: 0 0 clamp(34px, 5vh, 58px);
  color: #f5f1e8;
  font-size: clamp(3.1rem, 5vw, 5.1rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.015em;
  max-width: 13em;
}

.ps-cta__title em {
  font-style: italic;
}

.ps-cta__rule {
  display: block;
  height: 1px;
  width: 100%;
  background: rgba(245, 241, 232, 0.22);
  transform-origin: 0 50%;
  margin-bottom: clamp(26px, 3.8vh, 42px);
}

.ps-cta__action {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: rgba(245, 241, 232, 0.85);
  transition: color 0.4s ease;
}

.ps-cta__action:hover {
  color: #f5f1e8;
}

.ps-cta__action span:first-child {
  font-family: var(--font-mono), monospace;
  font-size: 12.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.ps-cta__action:hover span:first-child {
  transform: translateX(5px);
}

.ps-cta__line {
  width: 58px;
  height: 1px;
  background: rgba(245, 241, 232, 0.42);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1), background 0.4s ease;
}

.ps-cta__action:hover .ps-cta__line {
  width: 86px;
  background: rgba(245, 241, 232, 0.85);
}

.ps-cta__arrow {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  font-size: 1rem;
}

.ps-cta__action:hover .ps-cta__arrow {
  transform: translateX(8px);
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .ps-move__grid {
    display: block;
  }

  .ps-stage {
    display: none;
  }

  .ps-mv {
    min-height: 0;
    padding: clamp(48px, 7vh, 72px) 0 clamp(58px, 8vh, 88px);
  }

  .ps-mv__title {
    color: var(--ink);
  }

  .ps-mv__text {
    color: rgba(27, 26, 23, 0.74);
  }

  .ps-mv__tick {
    transform: scaleX(1);
    background: rgba(27, 26, 23, 0.2);
  }

  .ps-mv__media {
    display: block;
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    margin-top: clamp(26px, 4vh, 40px);
    background: var(--paper-2);
  }

  .ps-move__head {
    margin-bottom: clamp(28px, 4vh, 44px);
  }

  .ps-work__grid {
    display: block;
  }

  .ps-work__item {
    max-width: 640px;
  }

  .ps-work__item--offset {
    margin-top: clamp(52px, 8vh, 88px);
    margin-left: auto;
  }

  .ps-work__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
}

@media (max-width: 720px) {
  .ps {
    --ps-overlap: clamp(36px, 5svh, 64px);
    --ps-pad: clamp(76px, 10vh, 120px);
  }

  .ps-hero {
    min-height: 560px;
  }

  .ps-hero__title {
    font-size: clamp(2.875rem, 11.5vw, 4.25rem);
  }

  .ps-hero__inner {
    padding-bottom: clamp(76px, 11vh, 120px);
  }

  .ps-intro__grid {
    display: block;
  }

  .ps-intro__aside {
    flex-direction: row;
    align-items: center;
    gap: 22px;
    margin-bottom: clamp(26px, 4vh, 40px);
  }

  .ps-intro__num {
    font-size: clamp(1.7rem, 6vw, 2.2rem);
  }

  .ps-intro__rule {
    flex: 1;
    max-width: none;
    margin-top: 0;
  }

  .ps-intro__stmt {
    font-size: clamp(1.75rem, 7vw, 2.3rem);
  }

  .ps-move {
    padding-bottom: clamp(70px, 9vh, 110px);
  }

  .ps-mv__title {
    font-size: clamp(2.1rem, 8.4vw, 2.7rem);
  }

  .ps-mv__text {
    font-size: 1.0625rem;
  }

  .ps-mv__media {
    aspect-ratio: 4 / 5;
  }

  .ps-work {
    padding: var(--ps-pad) 0;
  }

  .ps-work__grid {
    display: block;
  }

  .ps-work__item,
  .ps-work__item--offset {
    max-width: none;
    margin: 0;
  }

  .ps-work__item + .ps-work__item {
    margin-top: clamp(44px, 7vh, 64px);
  }

  .ps-work__media {
    aspect-ratio: 4 / 5;
  }

  .ps-work__name {
    font-size: clamp(1.6rem, 6.6vw, 2rem);
  }

  .ps-cta__title {
    font-size: clamp(2.32rem, 9.6vw, 3.2rem);
  }

  .ps-scene {
    height: min(84svh, 130vw);
  }
}

/* ---------- tablet: two-column stages and paired work ---------- */

@media (min-width: 721px) and (max-width: 1100px) {
  .ps-mv {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.68fr);
    grid-template-areas:
      "head media"
      "title media"
      "text media";
    column-gap: clamp(24px, 3.5vw, 44px);
    align-items: start;
    min-height: 0;
    padding-block: clamp(28px, 4.2vh, 42px);
  }

  .ps-mv__head {
    grid-area: head;
    margin-bottom: 12px;
  }

  .ps-mv__title {
    grid-area: title;
    margin-bottom: 14px;
  }

  .ps-mv__text {
    grid-area: text;
  }

  .ps-mv__media {
    grid-area: media;
    width: 100%;
    margin-top: 0;
    aspect-ratio: 4 / 5;
  }

  .ps-work__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 3.2vw, 40px);
  }

  .ps-work__item,
  .ps-work__item--offset {
    max-width: none;
    margin-left: 0;
  }

  .ps-work__item--offset {
    margin-top: clamp(28px, 4vh, 48px);
  }
}

@media (max-width: 1100px) {
  .ps-hero__media img {
    object-position: 30% 46%;
  }

  .ps-mv[data-move="3"] .ps-mv__media {
    aspect-ratio: 4 / 5;
  }

  .ps-mv.is-active .ps-mv__tick {
    background: var(--bronze);
  }

  .ps-mv.is-active .ps-mv__num {
    color: var(--bronze);
  }

  .ps-work__arrow::after {
    opacity: 1;
    transform: translateY(-50%) rotate(45deg) scale(1);
  }
}

/* ---------- short landscape: one-viewport hero, compact stages ---------- */

@media (max-width: 1100px) and (max-height: 560px) and (orientation: landscape) {
  .ps {
    --ps-overlap: 36px;
  }

  .ps-hero {
    height: 100svh;
    min-height: 0;
  }

  .ps-hero__inner {
    padding-bottom: 48px;
  }

  .ps-hero__eyebrow {
    margin-bottom: 12px;
  }

  .ps-hero__rule {
    margin: 16px 0 12px;
  }

  .ps-hero__cue {
    margin-top: 14px;
  }

  .ps-scene {
    height: 100svh;
    min-height: 0;
  }

  .ps-mv {
    grid-template-columns: minmax(0, 1fr) 200px;
    column-gap: 24px;
    padding-block: 18px;
  }

  .ps-mv__media {
    width: 200px;
  }
}

@media (max-width: 359px) {
  .ps-hero__title {
    font-size: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ps-mv__title,
  .ps-mv__text,
  .ps-work__media img,
  .ps-work__name,
  .ps-work__arrow,
  .ps-cta__action span:first-child,
  .ps-cta__line,
  .ps-cta__arrow {
    transition: none;
  }
}
