/* Process: a sunlit terrace with four tinted glass planes standing in it — a path of thresholds —
   then each stage as its own scene. process-path.js writes --path-enter (0→1 as the scene arrives)
   and --path-drift (-1→1 across it); without it, or under reduced motion, both rest and nothing moves. */
.process-path {
  position: relative;
  color: var(--forest-deep);
  background: var(--paper-light);
}
.process-plane--coral,
.process-scene--coral {
  --tone-light: 250, 214, 190;
  --tone: 238, 166, 128;
  --tone-mark: #c04e2c;
  --tone-ink: #82301a;
  --tone-wash: #f9e1d2;
}

.process-plane--sage,
.process-scene--sage {
  --tone-light: 226, 234, 216;
  --tone: 184, 204, 172;
  --tone-mark: #4e6f48;
  --tone-ink: #33502e;
  --tone-wash: #e3eadb;
}

.process-plane--sea,
.process-scene--sea {
  --tone-light: 222, 236, 244;
  --tone: 156, 196, 218;
  --tone-mark: #2a6788;
  --tone-ink: #1a4a63;
  --tone-wash: #e2ecf1;
}

.process-plane--cream,
.process-scene--cream {
  --tone-light: 252, 240, 206;
  --tone: 240, 214, 150;
  --tone-mark: #a8741a;
  --tone-ink: #6c4808;
  --tone-wash: #f8eed6;
}

/* The scene: the terrace photograph is the room; warm light floods in from the left under the intro. */
.process-path__scene {
  --path-enter: 1;
  --path-drift: 0;
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.process-path__backdrop {
  position: absolute;
  z-index: -2;
  inset: 0;
  margin: 0;
  overflow: hidden;
}

.process-path__backdrop img {
  position: absolute;
  inset: -2.5rem 0;
  width: 100%;
  height: calc(100% + 5rem);
  object-fit: cover;
  object-position: 30% 62%;
  filter: saturate(1.12) brightness(1.03);
  transform: translate3d(0, calc(var(--path-drift) * -2.2rem), 0) scale(-1.04, 1.04);
}

.process-path__scene::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    radial-gradient(70% 90% at 0% 30%, rgba(255, 226, 204, 0.95), rgba(255, 226, 204, 0) 70%),
    linear-gradient(90deg, #fce9dc 0%, rgba(252, 233, 220, 0.97) 24%, rgba(252, 233, 220, 0.72) 36%, rgba(252, 233, 220, 0.16) 52%, rgba(252, 233, 220, 0) 64%),
    linear-gradient(0deg, rgba(255, 244, 230, 0.34), rgba(255, 244, 230, 0) 30%);
  pointer-events: none;
}

.process-path__intro h2 {
  max-width: 12ch;
  margin: 1.6rem 0 0;
  font-family: "OMF Serif", serif;
  font-size: clamp(2.6rem, 3.3vw, 4.3rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-wrap: balance;
}

.process-path__intro > p:not(.micro-label) {
  max-width: 23rem;
  margin: 1.4rem 0 0;
  color: rgba(5, 25, 20, 0.82);
  font-size: clamp(0.9rem, 1.05vw, 1.02rem);
  line-height: 1.55;
}

.process-path__cue {
  display: flex;
  margin-top: 2.2rem !important;
  align-items: center;
  gap: 0.8rem;
  font-family: "OMF Sans", sans-serif;
  font-size: 0.68rem !important;
  font-weight: 600;
}

.process-path__cue i {
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  place-items: center;
  border: 1px solid rgba(5, 25, 20, 0.48);
  border-radius: 50%;
  font-style: normal;
}

.process-path__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 44px;
  margin-top: 2.2rem;
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: "OMF Sans", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.process-path__cta i {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border: 1px solid rgba(5, 25, 20, 0.55);
  border-radius: 50%;
  font-style: normal;
  transition: background-color 260ms var(--ease), color 260ms var(--ease), transform 420ms var(--ease);
}

.process-path__cta:hover i,
.process-path__cta:focus-visible i {
  color: var(--white);
  background: var(--forest-deep);
  transform: translateX(0.2rem);
}

.process-path__cta:focus-visible {
  outline: 2px solid var(--forest-deep);
  outline-offset: 4px;
}

/* The planes: tinted glass, photo visible through it, standing in perspective with a wall running back
   from each far edge. Decorative restatement of the steps; the list below carries the content. */
.process-path__planes {
  display: none;
}

.process-plane {
  color: inherit;
  border: 0;
  border-radius: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

/* Scenes: each stage as its own room — tinted plaster copy beside a photograph carrying its numeral. */
.process-path__scenes {
  display: grid;
  margin: 0;
  padding: 0.3rem;
  gap: 0.3rem;
  list-style: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--paper-light);
}

.process-scene {
  display: grid;
  min-height: clamp(22rem, 38vw, 30rem);
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  overflow: hidden;
  background:
    radial-gradient(90% 80% at 0% 0%, rgba(255, 255, 255, 0.55), transparent 60%),
    var(--tone-wash);
}

.process-scene__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 3.8rem) clamp(1.5rem, 3vw, 3rem);
}

.process-scene__index {
  display: none;
}

.process-scene h3 {
  max-width: 13ch;
  margin: 0.9rem 0 0;
  font-family: "OMF Serif", serif;
  font-size: clamp(1.9rem, 2.9vw, 3.1rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
  text-wrap: balance;
}

.process-scene__copy > p {
  max-width: 22rem;
  margin: 1.1rem 0 0;
  color: rgba(5, 25, 20, 0.82);
  font-size: clamp(0.84rem, 0.95vw, 0.94rem);
  line-height: 1.55;
}

.process-scene__copy > .process-scene__time {
  margin-top: 1.2rem;
  color: var(--tone-ink);
  font-family: "OMF Sans", sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.process-scene__image {
  position: relative;
  margin: 0;
  overflow: hidden;
}

.process-scene__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The plaster colour bleeds into the photograph, like light through a tinted opening. */
.process-scene__image::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, var(--tone-wash) 0%, color-mix(in srgb, var(--tone-wash) 40%, transparent) 16%, transparent 42%),
    linear-gradient(rgba(var(--tone), 0.2), rgba(var(--tone), 0.2));
  pointer-events: none;
}

.process-scene__ghost {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: clamp(1rem, 4%, 3rem);
  color: rgba(255, 253, 248, 0.58);
  font-family: "OMF Serif", serif;
  font-size: clamp(7rem, 13vw, 13rem);
  letter-spacing: -0.05em;
  line-height: 0.8;
  text-shadow: 0 0.3rem 2rem rgba(40, 24, 10, 0.12);
  transform: translate3d(0, -50%, 0);
  pointer-events: none;
}

/* Entry: the view opens upward, then the numeral surfaces into it. */
.process-scene.reveal .process-scene__image img {
  clip-path: inset(0 0 0 18%);
  transform: scale(1.1);
  transition:
    clip-path 1200ms var(--ease) 160ms,
    transform 1600ms var(--ease) 160ms;
}

.process-scene.reveal.is-visible .process-scene__image img {
  clip-path: inset(0 0 0 0);
  transform: scale(1);
}

.process-scene.reveal .process-scene__ghost {
  opacity: 0;
  transform: translate3d(0, -38%, 0);
  transition:
    opacity 1000ms var(--ease) 520ms,
    transform 1200ms var(--ease) 520ms;
}

.process-scene.reveal.is-visible .process-scene__ghost {
  opacity: 1;
  transform: translate3d(0, -50%, 0);
}

.process-scene.reveal:nth-child(even) {
  transition-delay: 120ms;
}

@media (max-width: 1180px) {
  .process-path__scenes {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Phone and tablet: no forced perspective. The terrace becomes the opening frame, and the four scenes
   follow as one vertical journey — photograph first, then its tinted room of copy. */
@media (max-width: 960px) {
  .process-path__scene {
    display: flex;
    padding: 6.5rem 1.25rem 0;
    flex-direction: column;
    background: radial-gradient(90% 60% at 0% 0%, #fde4d2, transparent 70%), #fbeadf;
  }

  .process-path__scene::before {
    display: none;
  }

  .process-path__backdrop {
    position: relative;
    z-index: 0;
    order: 2;
    inset: auto;
    margin: -0.5rem -1.25rem 0;
    aspect-ratio: 5 / 4;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%);
    mask-image: linear-gradient(180deg, transparent, #000 30%);
  }

  .process-path__backdrop img {
    object-position: 58% 60%;
  }

  .process-path__intro h2 {
    font-size: clamp(2.5rem, 10.6vw, 4.2rem);
  }

  .process-path__scenes {
    padding: 0.3rem 0 0;
  }

  .process-scene {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .process-scene__image {
    order: -1;
    aspect-ratio: 4 / 3;
  }

  .process-scene__image::after {
    background:
      linear-gradient(0deg, var(--tone-wash) 0%, color-mix(in srgb, var(--tone-wash) 30%, transparent) 18%, transparent 40%),
      linear-gradient(rgba(var(--tone), 0.2), rgba(var(--tone), 0.2));
  }

  .process-scene__ghost {
    top: auto;
    right: auto;
    bottom: clamp(1rem, 3vw, 1.5rem);
    left: 1rem;
    color: rgba(255, 253, 248, 0.66);
    font-size: clamp(7rem, 38vw, 12rem);
    transform: none;
  }

  .process-scene.reveal .process-scene__ghost {
    transform: translate3d(0, 1.5rem, 0);
  }

  .process-scene.reveal.is-visible .process-scene__ghost {
    transform: translate3d(0, 0, 0);
  }

  .process-scene.reveal .process-scene__image img {
    clip-path: inset(16% 0 0 0);
  }

  .process-scene__copy {
    padding: 1.6rem 1.25rem 3.6rem;
  }

  .process-scene h3 {
    font-size: clamp(2.2rem, 9.5vw, 3rem);
  }
}

@media (min-width: 641px) and (max-width: 960px) {
  .process-path__intro h2 {
    max-width: none;
    font-size: clamp(3rem, 7.4vw, 4.2rem);
  }

  .process-path__backdrop {
    aspect-ratio: 16 / 8;
  }

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

  .process-scene__image {
    order: 0;
    aspect-ratio: auto;
    min-height: 24rem;
  }

  .process-scene:nth-child(odd) .process-scene__image {
    order: -1;
  }

  .process-scene__copy {
    padding: 2.5rem clamp(1.5rem, 4vw, 2.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .process-path__intro,
  .process-path__intro.reveal,
  .process-scene.reveal,
  .process-scene.reveal .process-scene__image img,
  .process-scene.reveal .process-scene__ghost {
    opacity: 1 !important;
    clip-path: none !important;
    transition: none !important;
  }

  .process-path__intro,
  .process-scene.reveal,
  .process-scene.reveal .process-scene__image img {
    transform: none !important;
  }
}

/* Stage windows: the thresholds above are the navigation. Each opens one editorial room in a native
   dialog so keyboard focus, Escape, and modal semantics remain browser-managed. */
.process-dialog {
  width: min(74rem, calc(100vw - 3rem));
  height: min(46rem, calc(100dvh - 3rem));
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  color: var(--forest-deep);
  background: var(--paper-light);
  border: 0;
  box-shadow: 0 2.5rem 7rem rgba(5, 25, 20, 0.34);
}

.process-dialog::backdrop {
  background: rgba(5, 25, 20, 0.68);
  backdrop-filter: blur(8px);
}

.process-dialog[open] {
  animation: process-dialog-in 520ms var(--ease) both;
}

.process-dialog__close {
  position: absolute;
  z-index: 5;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  color: var(--forest-deep);
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid rgba(5, 25, 20, 0.24);
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.process-dialog__close span::before,
.process-dialog__close span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 1px;
  content: "";
  background: currentColor;
}

.process-dialog__close span::before { transform: translate(-50%, -50%) rotate(45deg); }
.process-dialog__close span::after { transform: translate(-50%, -50%) rotate(-45deg); }

.process-dialog__close:focus-visible,
.process-dialog__progress button:focus-visible,
.process-scene__next:focus-visible {
  outline: 2px solid var(--forest-deep);
  outline-offset: 3px;
}

.process-dialog__progress {
  position: absolute;
  z-index: 4;
  top: clamp(1.4rem, 3vw, 2.5rem);
  left: clamp(1.5rem, 4vw, 4rem);
  display: flex;
  width: min(22rem, calc(50% - 5rem));
}

.process-dialog__progress button {
  position: relative;
  display: grid;
  min-width: 0;
  padding: 0 0 1rem;
  flex: 1;
  color: rgba(5, 25, 20, 0.46);
  background: none;
  border: 0;
  cursor: pointer;
  font-family: "OMF Sans", sans-serif;
  font-size: 0.54rem;
  font-weight: 700;
  text-align: left;
}

.process-dialog__progress button::after {
  position: absolute;
  right: 50%;
  bottom: 0.2rem;
  left: 0;
  height: 1px;
  content: "";
  background: rgba(5, 25, 20, 0.24);
}

.process-dialog__progress button:first-child::after { display: none; }

.process-dialog__progress i {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0.72rem;
  height: 0.72rem;
  background: var(--paper-light);
  border: 1px solid currentColor;
  border-radius: 50%;
  transform: translateX(-50%);
}

.process-dialog__progress button[aria-current="step"] {
  color: var(--tone-mark, var(--forest));
}

.process-dialog__progress button[aria-current="step"] i {
  background: currentColor;
  box-shadow: inset 0 0 0 0.2rem var(--paper-light);
}

.process-dialog__scenes {
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-dialog .process-scene {
  height: 100%;
  min-height: 0;
  grid-template-columns: minmax(20rem, 0.82fr) minmax(0, 1.18fr);
}

.process-dialog .process-scene[hidden] {
  display: none;
}

.process-dialog .process-scene__copy {
  padding-top: clamp(6.5rem, 12vh, 8.5rem);
}

.process-scene__next {
  display: flex;
  width: fit-content;
  min-height: 44px;
  margin-top: 1.7rem;
  padding: 0;
  align-items: center;
  gap: 1rem;
  color: var(--forest-deep);
  background: none;
  border: 0;
  cursor: pointer;
  font-family: "OMF Sans", sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
}

.process-scene__next span {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid rgba(5, 25, 20, 0.44);
  border-radius: 50%;
  transition: transform 320ms var(--ease), background-color 320ms var(--ease), color 320ms var(--ease);
}

.process-scene__next:hover span,
.process-scene__next:focus-visible span {
  color: var(--white);
  background: var(--forest-deep);
  transform: translateX(0.2rem);
}

@keyframes process-dialog-in {
  from { opacity: 0; transform: translateY(1.5rem) scale(0.975); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Architectural process rebuild: the generated scene owns the spatial depth; live controls align to
   its four material planes. Mobile deliberately becomes an independent editorial sequence. */
.process-plane__mobile-image {
  display: none;
}

@media (min-width: 961px) {
  .process-path__scene {
    display: block;
    min-height: clamp(27rem, 40vw, 39.5rem);
    padding: 0;
  }

  .process-path__backdrop img {
    inset: -1.5%;
    width: 103%;
    height: 103%;
    object-fit: cover;
    object-position: center;
    filter: none;
    transform: translate3d(0, calc(var(--path-drift) * -0.3rem), 0) scale(1.015);
  }

  .process-path__scene::before {
    background: linear-gradient(90deg, rgba(255, 250, 242, 0.42), transparent 27%);
  }

  .process-path__intro,
  .process-path__intro.reveal,
  .process-path__intro.reveal.is-visible {
    position: absolute;
    z-index: 4;
    top: 18%;
    left: 3.6%;
    width: 24%;
    padding: 0;
    color: var(--forest-deep);
    opacity: calc(0.3 + var(--path-enter) * 0.7);
    transform: translate3d(0, calc((1 - var(--path-enter)) * 1.2rem + var(--path-drift) * 0.45rem), 0);
    transition: none;
  }

  .process-path__intro h2 {
    max-width: none;
    margin-top: clamp(0.9rem, 1.4vw, 1.35rem);
    color: var(--forest-deep);
    font-family: "OMF Serif", Georgia, serif;
    font-size: clamp(2rem, 2.95vw, 3.45rem);
    letter-spacing: -0.045em;
    line-height: 0.96;
    text-wrap: initial;
    white-space: nowrap;
  }

  .process-path__intro > p:not(.micro-label) {
    max-width: 20rem;
    margin-top: clamp(1rem, 1.5vw, 1.45rem);
    color: rgba(9, 37, 29, 0.82);
    font-family: "OMF Text", sans-serif;
    font-size: clamp(0.78rem, 1.05vw, 1rem);
    line-height: 1.5;
  }

  .process-path__intro .micro-label {
    color: var(--forest-deep);
    letter-spacing: 0.2em;
  }

  .process-path__cue {
    margin-top: clamp(1.25rem, 2.5vw, 2.2rem) !important;
    font-size: clamp(0.56rem, 0.65vw, 0.68rem) !important;
  }

  .process-path__cue i {
    width: clamp(2.2rem, 2.8vw, 2.6rem);
    height: clamp(2.2rem, 2.8vw, 2.6rem);
  }

  .process-path__planes {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: block;
    height: auto;
    min-height: 0;
    padding: 0;
    perspective: none;
  }

  .process-plane {
    --plane-enter: clamp(0, calc(var(--path-enter) * 1.45 - var(--i) * 0.08), 1);
    position: absolute;
    z-index: 2;
    top: var(--y);
    left: var(--x);
    display: flex;
    width: var(--w);
    height: var(--h);
    min-height: 0;
    padding: clamp(2.25rem, 3.4vw, 3.5rem) clamp(0.65rem, 1.15vw, 1.15rem) clamp(1rem, 1.7vw, 1.65rem);
    flex-direction: column;
    justify-content: center;
    color: var(--forest-deep);
    background: transparent;
    box-shadow: none;
    text-align: center;
    opacity: calc(0.22 + var(--plane-enter) * 0.78);
    transform: translate3d(0, calc((1 - var(--plane-enter)) * 1.1rem), 0);
    transform-style: flat;
    transition: none;
  }

  /* The wide scene uses a small overscan transform, so its threshold centres differ from the
     untransformed source percentages used by the narrow fixed canvas. */
  .process-plane:nth-child(1) { left: 27.9%; }
  .process-plane:nth-child(2) { left: 43%; }
  .process-plane:nth-child(3) { left: 56.5%; }
  .process-plane:nth-child(4) { left: 72.8%; }

  .process-plane::before,
  .process-plane::after {
    display: none;
  }

  .process-plane:hover,
  .process-plane:focus-visible {
    background: transparent;
    box-shadow: none;
  }

  .process-plane:focus-visible {
    outline: 2px solid var(--forest-deep);
    outline-offset: 3px;
  }

  .process-plane__number {
    color: var(--tone-mark);
    font-family: "OMF Serif", serif;
    font-size: clamp(2.15rem, 3.35vw, 3.5rem);
    letter-spacing: -0.05em;
    line-height: 0.85;
  }

  .process-plane strong {
    display: block;
    min-height: 3.06em;
    margin-top: clamp(2.25rem, 3.8vw, 3.6rem);
    font-family: "OMF Serif", serif;
    font-size: clamp(0.8rem, 1.23vw, 1.16rem);
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.02;
  }

  .process-plane small {
    margin-top: clamp(0.95rem, 1.4vw, 1.35rem);
    color: var(--tone-ink);
    font-family: "OMF Sans", sans-serif;
    font-size: clamp(0.43rem, 0.53vw, 0.56rem);
    font-weight: 700;
    letter-spacing: 0.19em;
    line-height: 1.4;
    text-transform: uppercase;
  }

  .process-plane__action {
    display: flex;
    margin-top: clamp(0.85rem, 1.4vw, 1.25rem);
    padding: 0;
    align-items: center;
    justify-content: center;
    color: var(--tone-ink);
    font-size: 0;
    opacity: 0;
    transform: translate3d(-0.35rem, 0.2rem, 0);
    transition: opacity 220ms var(--ease), transform 300ms var(--ease);
  }

  .process-plane__action i {
    display: inline-block;
    font-size: clamp(0.8rem, 1vw, 1rem);
    font-style: normal;
  }

  .process-plane:hover .process-plane__action,
  .process-plane:focus-visible .process-plane__action {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (min-width: 961px) and (max-width: 1180px) {
  .process-path__scene {
    display: block;
    min-height: clamp(27rem, 42vw, 31rem);
    padding: 0;
  }

  .process-path__intro h2 {
    font-size: clamp(1.8rem, 2.8vw, 2.35rem);
  }

  .process-path__planes {
    min-height: 0;
    padding: 0;
  }

}

@media (max-width: 960px) {
  .process-path__scene {
    display: block;
    min-height: 0;
    padding: clamp(5.5rem, 12vw, 7rem) var(--gutter) clamp(4rem, 9vw, 6rem);
    background: var(--paper-light);
  }

  .process-path__backdrop {
    display: none;
  }

  .process-path__intro,
  .process-path__intro.reveal,
  .process-path__intro.reveal.is-visible {
    position: relative;
    z-index: 1;
    width: min(100%, 42rem);
    padding: 0;
    transform: none;
  }

  .process-path__intro h2 {
    max-width: 11ch;
    font-size: clamp(3rem, 9vw, 5rem);
  }

  .process-path__intro > p:not(.micro-label) {
    max-width: 31rem;
  }

  .process-path__planes {
    position: relative;
    z-index: 1;
    display: grid;
    margin-top: clamp(3rem, 8vw, 5rem);
    padding: 0;
    gap: 0;
  }

  .process-plane {
    position: relative;
    top: auto;
    left: auto;
    display: grid;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: clamp(1.5rem, 4vw, 2.25rem) 0 0;
    grid-template-columns: clamp(4.5rem, 12vw, 7rem) minmax(0, 1fr) 3rem;
    grid-template-rows: auto auto auto;
    gap: 0.55rem clamp(1rem, 3vw, 2rem);
    align-items: start;
    overflow: hidden;
    background: linear-gradient(115deg, rgba(var(--tone-light), 0.46), rgba(255, 255, 255, 0) 55%);
    border-top: 1px solid rgba(5, 25, 20, 0.22);
    box-shadow: none;
  }

  .process-plane__number {
    grid-column: 1;
    grid-row: 1 / 3;
    color: var(--tone-mark);
    font-family: "OMF Serif", serif;
    font-size: clamp(3.6rem, 12vw, 6.5rem);
    letter-spacing: -0.06em;
    line-height: 0.78;
  }

  .process-plane strong {
    grid-column: 2;
    grid-row: 1;
    font-family: "OMF Serif", serif;
    font-size: clamp(1.8rem, 5.6vw, 3.2rem);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 0.98;
  }

  .process-plane small {
    grid-column: 2;
    grid-row: 2;
    color: var(--tone-ink);
    font-family: "OMF Sans", sans-serif;
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.19em;
    text-transform: uppercase;
  }

  .process-plane__action {
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: center;
    color: var(--tone-ink);
    font-size: 0;
  }

  .process-plane__action i {
    display: grid;
    width: 2.8rem;
    height: 2.8rem;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 0.8rem;
    font-style: normal;
  }

  .process-plane__mobile-image {
    position: relative;
    grid-column: 1 / -1;
    grid-row: 3;
    display: block;
    margin-top: clamp(1.25rem, 3vw, 2rem);
    aspect-ratio: 16 / 7;
    overflow: hidden;
  }

  .process-plane__mobile-image::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(var(--tone), 0.2), transparent 45%);
    pointer-events: none;
  }

  .process-plane__mobile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms var(--ease);
  }

  .process-plane:hover .process-plane__mobile-image img,
  .process-plane:focus-visible .process-plane__mobile-image img {
    transform: scale(1.025);
  }

  .process-plane:focus-visible {
    outline: 2px solid var(--forest-deep);
    outline-offset: 4px;
  }

  .process-dialog {
    width: calc(100vw - 1rem);
    height: calc(100dvh - 1rem);
  }

  .process-dialog .process-scene__image {
    min-height: 44dvh;
  }
}

.process-dialog {
  width: min(76rem, calc(100vw - 3rem));
  height: min(46rem, calc(100dvh - 3rem));
  background: var(--tone-wash, var(--paper-light));
  touch-action: pan-y;
  overscroll-behavior-x: contain;
}

.process-dialog img {
  -webkit-user-drag: none;
  user-select: none;
}

.process-dialog__progress {
  width: min(22rem, calc(44% - 5rem));
}

.process-dialog__progress::before {
  position: absolute;
  right: 12.5%;
  bottom: 0.35rem;
  left: 0;
  height: 1px;
  content: "";
  background: rgba(5, 25, 20, 0.22);
}

.process-dialog__progress button {
  min-height: 44px;
}

.process-dialog__progress button::after {
  display: none;
}

.process-dialog .process-scene {
  grid-template-columns: minmax(21rem, 0.82fr) minmax(0, 1.18fr);
  background: var(--tone-wash);
  animation: process-scene-in 480ms var(--ease) both;
}

.process-dialog .process-scene__copy {
  padding: clamp(6.5rem, 12vh, 8.5rem) clamp(2rem, 4vw, 4rem) clamp(2.5rem, 5vw, 4.5rem);
}

.process-dialog .process-scene__image::after {
  background: linear-gradient(90deg, var(--tone-wash) 0%, color-mix(in srgb, var(--tone-wash) 35%, transparent) 12%, transparent 34%);
}

@keyframes process-scene-in {
  from { opacity: 0; transform: translateY(0.65rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 960px) {
  .process-dialog {
    width: calc(100vw - 1rem);
    height: calc(100dvh - 1rem);
  }

  .process-dialog__progress {
    width: calc(100% - 7rem);
  }

  .process-dialog .process-scene {
    display: flex;
    min-height: 100%;
    height: auto;
    flex-direction: column;
    overflow-y: auto;
  }

  .process-dialog .process-scene__image {
    min-height: 44dvh;
    order: 0;
  }

  .process-dialog .process-scene__copy {
    order: 1;
    padding: 2rem 1.5rem 2.75rem;
  }
}

@media (max-width: 560px) {
  .process-path__scene {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  .process-path__intro h2 {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .process-plane {
    grid-template-columns: 4rem minmax(0, 1fr) 2.8rem;
    gap: 0.5rem 0.8rem;
  }

  .process-plane__number {
    font-size: 3.35rem;
  }

  .process-plane strong {
    font-size: clamp(1.65rem, 8vw, 2.35rem);
  }

  .process-plane__mobile-image {
    aspect-ratio: 4 / 3;
  }

  .process-dialog .process-scene__image {
    min-height: 38dvh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .process-path__backdrop img,
  .process-plane,
  .process-plane__mobile-image img,
  .process-dialog .process-scene {
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  html.has-process-responsive-motion .process-plane,
  html.has-process-responsive-motion .process-plane__mobile-image,
  html.has-process-responsive-motion .process-plane__mobile-image img {
    opacity: 1;
    clip-path: none;
    transform: none;
    transition: none;
  }
}

/* Narrow screens keep the laptop's architectural scene. The section becomes its own horizontal
   viewport so the four live thresholds stay readable instead of shrinking into illegible slivers. */
@media (max-width: 960px) {
  .process-path {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 3vw;
    scroll-snap-type: x proximity;
    scrollbar-color: rgba(9, 37, 29, 0.34) transparent;
    scrollbar-width: thin;
    background: var(--paper-light);
  }

  .process-path::-webkit-scrollbar {
    height: 4px;
  }

  .process-path::-webkit-scrollbar-thumb {
    background: rgba(9, 37, 29, 0.34);
  }

  .process-path__scene {
    position: relative;
    display: block;
    width: max(64rem, 100%);
    min-height: 25.6rem;
    padding: 0;
    overflow: hidden;
    background: transparent;
  }

  .process-path__backdrop {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: block;
    margin: 0;
    aspect-ratio: auto;
    opacity: 1;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .process-path__backdrop img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    filter: none;
    transform: none;
  }

  .process-path__scene::before {
    position: absolute;
    z-index: 1;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(255, 250, 242, 0.42), transparent 27%);
    pointer-events: none;
  }

  .process-path__intro,
  .process-path__intro.reveal,
  .process-path__intro.reveal.is-visible {
    position: absolute;
    z-index: 4;
    top: 18%;
    left: 3.6%;
    width: 24%;
    padding: 0;
    color: var(--forest-deep);
    opacity: 1;
    transform: none;
  }

  .process-path__intro h2 {
    max-width: none;
    margin-top: 0.85rem;
    font-family: "OMF Serif", Georgia, serif;
    font-size: 1.85rem;
    letter-spacing: -0.045em;
    line-height: 0.96;
    white-space: nowrap;
  }

  .process-path__intro > p:not(.micro-label) {
    max-width: 16rem;
    margin-top: 0.9rem;
    font-size: 0.72rem;
    line-height: 1.45;
  }

  .process-path__intro .micro-label {
    font-size: 0.5rem;
    letter-spacing: 0.2em;
  }

  .process-path__cue {
    margin-top: 1.2rem !important;
  }

  .process-path__cue i {
    width: 2rem;
    height: 2rem;
    transform: rotate(-90deg);
  }

  .process-path__cue span {
    font-size: 0;
  }

  .process-path__cue span::after {
    content: "Swipe to explore";
    font-size: 0.52rem;
  }

  .process-path__planes {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: block;
    min-height: 0;
    margin: 0;
    padding: 0;
    background: transparent;
  }

  .process-plane,
  .process-plane:nth-child(even) {
    position: absolute;
    z-index: 2;
    top: var(--y);
    left: var(--x);
    display: flex;
    width: var(--w);
    min-width: 5.25rem;
    height: var(--h);
    min-height: 0;
    padding: 2.15rem 0.7rem 1rem;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    align-items: stretch;
    color: var(--forest-deep);
    background: transparent;
    border: 0;
    box-shadow: none;
    scroll-snap-align: center;
    text-align: center;
  }

  /* The fixed narrow canvas displays the source image without desktop's overscan transform.
     Centre each live control on the measured face of its architectural threshold. */
  .process-plane:nth-child(1) { left: 28.7%; }
  .process-plane:nth-child(2) { left: 43.1%; }
  .process-plane:nth-child(3) { left: 56%; }
  .process-plane:nth-child(4) { left: 71.6%; }

  .process-plane__number,
  .process-plane strong,
  .process-plane small,
  .process-plane__action {
    z-index: auto;
    grid-column: auto;
    grid-row: auto;
  }

  .process-plane__number {
    align-self: auto;
    margin: 0;
    font-size: 2.45rem;
    letter-spacing: -0.05em;
    line-height: 0.85;
  }

  .process-plane strong {
    align-self: auto;
    min-height: 3.06em;
    max-width: none;
    margin: 2.15rem 0 0;
    font-size: 0.82rem;
    line-height: 1.02;
  }

  .process-plane small {
    align-self: auto;
    max-width: none;
    margin: 0.85rem 0 0;
    font-size: 0.45rem;
    letter-spacing: 0.18em;
    line-height: 1.4;
  }

  .process-plane__action {
    display: flex;
    margin: 0.7rem 0 0;
    padding: 0;
    align-items: center;
    align-self: auto;
    justify-content: center;
    justify-self: auto;
    opacity: 0.72;
    transform: none;
  }

  .process-plane__action i {
    display: inline-block;
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    font-size: 0.78rem;
    background: transparent;
  }

  .process-plane:hover .process-plane__action i,
  .process-plane:focus-visible .process-plane__action i {
    color: var(--tone-ink);
    background: transparent;
    transform: translate3d(0.18rem, -0.18rem, 0);
  }

  .process-plane__mobile-image {
    display: none;
  }

  .process-plane:focus-visible {
    outline-offset: -3px;
  }
}

@media (max-width: 960px) and (prefers-reduced-motion: no-preference) {
  html.has-process-responsive-motion .process-plane {
    opacity: 0;
    transform: translate3d(0, 1rem, 0);
    transition: opacity 520ms var(--ease), transform 680ms var(--ease);
  }

  html.has-process-responsive-motion .process-plane.is-process-entered {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.has-process-responsive-motion .process-plane {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
