/* Websites experience
   A Technobyte-specific project sequence and customer decision model. */

.reframe-method {
  --experience-pad: clamp(1.25rem, 4vw, 4.5rem);
  background: var(--paper, #f7f9fc);
}

.reframe-intro,
.journey-intro {
  display: grid;
  grid-template-columns: minmax(9rem, .28fr) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 8rem);
  align-items: start;
  padding-block: clamp(6rem, 10vw, 11rem);
}

.reframe-intro h2,
.journey-intro h2 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(3.4rem, 6.2vw, 7.25rem);
  letter-spacing: -.045em;
  line-height: .9;
  text-wrap: balance;
}

.reframe-intro div > p,
.journey-intro div > p {
  max-width: 58ch;
  margin: clamp(1.75rem, 3vw, 2.75rem) 0 0;
  color: #526077;
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  line-height: 1.7;
}

.reframe-phases {
  position: relative;
  isolation: isolate;
}

.reframe-phase {
  --phase-progress: 0;
  --phase-copy-opacity: .18;
  --phase-visual-opacity: .14;
  --phase-copy-y: 58px;
  --phase-visual-x: 5vw;
  --phase-visual-turn: -12deg;
  --phase-frame-turn: -9deg;
  --phase-back-turn: 12deg;
  --phase-dot-x: 12%;
  --phase-scan-turn: 0deg;
  --phase-orbit-turn: 0deg;
  --phase-ray-turn: 0deg;
  --phase-plane-y: 17px;
  --phase-plane-turn: 2.5deg;
  --phase-card-down: 46px;
  --phase-card-up: -46px;
  --phase-card-side: 46px;
  --phase-block-left: -32px;
  --phase-block-right: 32px;
  --phase-release-turn: 0deg;
  --phase-dash: 1200;
  --phase-listen-dash: 260;
  position: relative;
  min-height: max(48rem, 100svh);
  display: grid;
  grid-template-columns: minmax(22rem, .84fr) minmax(25rem, 1.16fr);
  gap: clamp(3rem, 7vw, 9rem);
  align-items: center;
  padding: clamp(5rem, 9vw, 9rem) var(--experience-pad);
  overflow: clip;
}

.reframe-phase::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .42;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--phase-dot-x) 12%, currentColor 0 1px, transparent 2px),
    radial-gradient(circle at 82% 76%, currentColor 0 1px, transparent 2px);
  background-size: 5rem 5rem, 7rem 7rem;
  mask-image: linear-gradient(120deg, transparent, #000 38%, transparent 78%);
}

.phase-navy { background: #05142e; color: #edf3ff; }
.phase-paper { background: #f7f9fc; color: #05142e; }
.phase-blue { background: #2059c8; color: #f7f9fc; }
.phase-orange { background: #f36a21; color: #05142e; }
.phase-mist { background: #dbe7fb; color: #05142e; }

.phase-copy {
  position: relative;
  z-index: 2;
  max-width: 48rem;
}

.phase-index {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin: 0 0 clamp(2rem, 4vw, 4rem);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.phase-index span {
  min-width: 2.5rem;
  color: currentColor;
  font-variant-numeric: tabular-nums;
  opacity: .68;
}

.phase-navy .phase-index { color: #b8ceff; }
.phase-blue .phase-index { color: #dce8ff; }

.phase-copy h3 {
  max-width: 10.5ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.5rem, 6.4vw, 7.8rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .86;
  text-wrap: balance;
}

.phase-copy > p:not(.phase-index) {
  max-width: 55ch;
  margin: clamp(1.5rem, 3vw, 2.5rem) 0 0;
  font-size: clamp(.98rem, 1.18vw, 1.15rem);
  line-height: 1.7;
  opacity: .82;
}

.phase-evidence {
  max-width: 48rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(2rem, 4vw, 3.5rem) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid color-mix(in oklch, currentColor 24%, transparent);
}

.phase-evidence li {
  min-width: 0;
  padding: 1rem .75rem 1rem 0;
  border-bottom: 1px solid color-mix(in oklch, currentColor 24%, transparent);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.4;
}

.phase-cta,
.journey-cta {
  min-height: 44px;
  width: max-content;
  display: inline-flex;
  align-items: center;
  margin-top: 1.5rem;
  border-bottom: 1px solid currentColor;
  color: inherit;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .25s cubic-bezier(.25, 1, .5, 1), opacity .25s ease;
}

.phase-cta:hover,
.journey-cta:hover { transform: translate3d(.35rem, 0, 0); }

.phase-cta:active,
.journey-cta:active { transform: translate3d(.2rem, 1px, 0); }

.phase-cta:focus-visible,
.journey-cta:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }

.phase-visual {
  position: relative;
  z-index: 1;
  width: min(45rem, 48vw);
  aspect-ratio: 1;
  justify-self: end;
  margin: 0;
  color: currentColor;
  perspective: 1000px;
}

.phase-visual::before,
.phase-visual::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.phase-visual::before {
  inset: 7%;
  border: 1px solid color-mix(in oklch, currentColor 30%, transparent);
  transform: rotate(var(--phase-frame-turn));
}

.phase-visual::after {
  inset: 18%;
  background: color-mix(in oklch, currentColor 8%, transparent);
  transform: rotate(var(--phase-back-turn));
}

.phase-visual svg {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.phase-visual svg g,
.phase-visual svg path,
.phase-visual svg rect,
.phase-visual svg circle,
.phase-visual svg text {
  vector-effect: non-scaling-stroke;
  transform-box: fill-box;
  transform-origin: center;
}

.phase-visual svg path,
.phase-visual svg rect,
.phase-visual svg circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  opacity: .72;
}

.phase-visual svg text {
  fill: currentColor;
  font-family: var(--body, sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

.phase-visual .diagram-nodes circle {
  fill: currentColor;
  stroke-width: 0;
}

.phase-navy .diagram-nodes circle,
.phase-blue .diagram-nodes circle,
.phase-mist .diagram-nodes circle { color: #f36a21; }

.phase-paper .diagram-nodes circle { color: #2059c8; }
.phase-orange .diagram-nodes circle { color: #05142e; }

.diagram-scan {
  fill: color-mix(in oklch, #f36a21 34%, transparent) !important;
  stroke: #f36a21 !important;
  transform: rotate(var(--phase-scan-turn));
}

.diagram-orbits { transform: rotate(var(--phase-orbit-turn)); }
.diagram-rays { transform: rotate(var(--phase-ray-turn)); }

.diagram-map rect,
.diagram-planes rect,
.diagram-cards rect,
.diagram-blocks rect {
  fill: color-mix(in oklch, currentColor 4%, transparent);
}

.diagram-route,
.diagram-focus,
.diagram-loop {
  stroke: #f36a21 !important;
  stroke-width: 6 !important;
  stroke-dasharray: 1200;
  stroke-dashoffset: var(--phase-dash);
}

.phase-paper .diagram-route,
.phase-paper .diagram-focus { stroke: #2059c8 !important; }

.diagram-planes { transform: translateY(var(--phase-plane-y)) rotate(var(--phase-plane-turn)); }
.diagram-cards rect:nth-child(1) { transform: translateY(var(--phase-card-down)); }
.diagram-cards rect:nth-child(2) { transform: translateY(var(--phase-card-up)); }
.diagram-cards rect:nth-child(3) { transform: translateX(var(--phase-card-side)); }
.diagram-blocks rect:nth-child(odd) { transform: translateX(var(--phase-block-left)); }
.diagram-blocks rect:nth-child(even) { transform: translateX(var(--phase-block-right)); }
.diagram-release { transform: rotate(var(--phase-release-turn)); }

/* Process-specific graphics: discovery inputs, design composition and CMS assembly. */
.listen-input rect,
.listen-brief rect,
.shape-browser > rect:first-child,
.shape-mobile > rect:first-child,
.shape-kit rect,
.build-library > rect,
.build-page > rect:first-child {
  fill: color-mix(in oklch, currentColor 5%, transparent);
}

.listen-input circle,
.listen-brief circle,
.shape-kit circle,
.build-page circle { fill: currentColor; }

.listen-input-a { transform: translateX(var(--phase-block-left)); }
.listen-input-b { transform: translateX(var(--phase-block-right)); }
.listen-input-c { transform: translateY(var(--phase-card-up)); }
.listen-brief { transform: translateY(var(--phase-card-down)); }
.listen-waves path:first-child {
  stroke: #f36a21;
  stroke-width: 5;
  stroke-dasharray: 260;
  stroke-dashoffset: var(--phase-listen-dash);
}
.listen-waves path:last-child,
.shape-compose,
.build-arrows path {
  stroke: #f36a21;
  stroke-width: 4;
}

.shape-browser { transform: translateY(var(--phase-plane-y)) rotate(var(--phase-plane-turn)); }
.shape-mobile { transform: translateY(var(--phase-card-up)) rotate(calc(var(--phase-plane-turn) * -1)); }
.shape-kit { transform: translateX(var(--phase-card-side)); }
.shape-kit circle:nth-of-type(1) { fill: #f7f9fc; }
.shape-kit circle:nth-of-type(2) { fill: #05142e; }
.shape-kit circle:nth-of-type(3) { fill: #f36a21; }
.shape-compose {
  stroke-dasharray: 900;
  stroke-dashoffset: var(--phase-dash);
}

.build-component:nth-of-type(1),
.build-component:nth-of-type(3) { transform: translateX(var(--phase-block-left)); }
.build-component:nth-of-type(2),
.build-component:nth-of-type(4) { transform: translateX(var(--phase-block-right)); }
.build-component rect,
.build-page rect:not(:first-child) { fill: color-mix(in oklch, currentColor 7%, transparent); }
.build-page { transform: translateY(var(--phase-plane-y)); }
.build-arrows {
  opacity: var(--phase-progress);
  transform: translateX(var(--phase-card-side));
}

.has-websites-experience .phase-copy {
  opacity: var(--phase-copy-opacity);
  transform: translate3d(0, var(--phase-copy-y), 0);
}

.has-websites-experience .phase-visual {
  opacity: var(--phase-visual-opacity);
  transform: translate3d(var(--phase-visual-x), 0, 0) rotateY(var(--phase-visual-turn));
}

.phase-copy,
.phase-visual {
  will-change: transform, opacity;
}

/* Customer decision journey */
.decision-journey {
  --journey-accent: #2059c8;
  background: #f7f9fc;
  color: #05142e;
  overflow: clip;
}

.journey-intro {
  padding-top: clamp(7rem, 12vw, 13rem);
  padding-bottom: clamp(5rem, 8vw, 8rem);
}

.journey-intro h2 { max-width: 17ch; }

.journey-layout {
  display: grid;
  grid-template-columns: minmax(22rem, .78fr) minmax(28rem, 1.22fr);
  gap: clamp(4rem, 8vw, 10rem);
  align-items: start;
  padding-bottom: clamp(7rem, 12vw, 13rem);
}

.journey-step {
  min-height: 72svh;
  display: grid;
  align-content: center;
  padding-block: clamp(3rem, 6vw, 6rem);
  border-top: 1px solid rgba(5, 20, 46, .16);
  transform: translate3d(0, 2rem, 0);
  transition: transform .7s cubic-bezier(.22, 1, .36, 1);
}

.journey-step:last-child { border-bottom: 1px solid rgba(5, 20, 46, .16); }
.journey-step.is-active { opacity: 1; transform: translate3d(0, 0, 0); }

.journey-number {
  margin: 0 0 1.75rem;
  color: #174aa8;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.journey-step h3 {
  max-width: 12ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.7rem, 4.6vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -.042em;
  line-height: .92;
  text-wrap: balance;
}

.journey-step > p:not(.journey-number) {
  max-width: 47ch;
  margin: 1.5rem 0 0;
  color: #526077;
  font-size: clamp(.98rem, 1.1vw, 1.1rem);
  line-height: 1.68;
}

.journey-cta { color: #174aa8; }

.journey-stage {
  position: sticky;
  top: 7rem;
  height: calc(100svh - 9rem);
  min-height: 38rem;
  display: grid;
  align-content: center;
  justify-items: center;
}

.journey-lens {
  --lens-turn: 0deg;
  position: relative;
  width: min(40rem, 47vw);
  aspect-ratio: 1;
  perspective: 1000px;
}

.lens-frame,
.lens-core,
.lens-route,
.lens-surface {
  position: absolute;
  inset: 50%;
  transform-origin: center;
}

.lens-frame {
  border: 1px solid rgba(5, 20, 46, .28);
  transition: transform .85s cubic-bezier(.22, 1, .36, 1), border-radius .65s ease, background-color .65s ease;
}

.lens-frame-a {
  width: 72%;
  height: 72%;
  transform: translate(-50%, -50%) rotate(calc(8deg + var(--lens-turn)));
}

.lens-frame-b {
  width: 48%;
  height: 48%;
  background: rgba(32, 89, 200, .055);
  transform: translate(-50%, -50%) rotate(calc(-15deg - var(--lens-turn)));
}

.lens-core {
  z-index: 4;
  width: 11rem;
  aspect-ratio: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: .35rem;
  border-radius: 50%;
  background: #05142e;
  color: #f7f9fc;
  transform: translate(-50%, -50%);
  box-shadow: 0 1.5rem 4rem rgba(5, 20, 46, .18);
  transition: background-color .5s ease, color .5s ease, transform .75s cubic-bezier(.22, 1, .36, 1);
}

.lens-core span {
  color: #dbe7fb;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .1em;
}

.lens-core strong {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -.03em;
}

.lens-route {
  z-index: 3;
  width: 84%;
  height: 84%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(5, 20, 46, .18);
  border-radius: 50%;
  transition: transform .85s cubic-bezier(.22, 1, .36, 1), border-radius .65s ease;
}

.lens-route i {
  position: absolute;
  width: 1rem;
  aspect-ratio: 1;
  border: 3px solid #f7f9fc;
  border-radius: 50%;
  background: #8aaef1;
  box-shadow: 0 0 0 1px rgba(5, 20, 46, .28);
  transition: background-color .45s ease, transform .55s cubic-bezier(.22, 1, .36, 1);
}

.lens-route i:nth-child(1) { left: 8%; top: 58%; }
.lens-route i:nth-child(2) { left: 24%; top: 10%; }
.lens-route i:nth-child(3) { right: 23%; top: 7%; }
.lens-route i:nth-child(4) { right: 5%; top: 55%; }
.lens-route i:nth-child(5) { right: 36%; bottom: 3%; }

.lens-surface {
  z-index: 2;
  width: 58%;
  height: 64%;
  display: grid;
  align-content: center;
  gap: clamp(.7rem, 1.4vw, 1.25rem);
  padding: 2.5rem;
  border: 1px solid rgba(5, 20, 46, .18);
  background: rgba(247, 249, 252, .76);
  transform: translate(-50%, -50%) rotateY(-12deg) rotateX(4deg);
  box-shadow: 2rem 2.5rem 5rem rgba(5, 20, 46, .08);
  transition: transform .8s cubic-bezier(.22, 1, .36, 1), background-color .5s ease;
}

.lens-surface span {
  height: 1px;
  display: block;
  background: #05142e;
  transform: scaleX(.28);
  transform-origin: left;
  transition: transform .65s cubic-bezier(.22, 1, .36, 1), background-color .5s ease;
}

.lens-surface span:nth-child(2) { width: 76%; }
.lens-surface span:nth-child(3) { width: 92%; }
.lens-surface span:nth-child(4) { width: 58%; }
.lens-surface span:nth-child(5) { width: 82%; }

.journey-caption {
  width: min(40rem, 47vw);
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin: 1.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(5, 20, 46, .18);
  color: #526077;
  font-size: .75rem;
  letter-spacing: .035em;
}

.journey-caption b { color: #05142e; font-weight: 700; }

.journey-stage[data-stage="find"] { --journey-accent: #2059c8; }
.journey-stage[data-stage="recognise"] { --journey-accent: #f36a21; }
.journey-stage[data-stage="trust"] { --journey-accent: #174aa8; }
.journey-stage[data-stage="act"] { --journey-accent: #9f3a00; }
.journey-stage[data-stage="return"] { --journey-accent: #2059c8; }

.journey-stage[data-stage="recognise"] .lens-frame-a { transform: translate(-50%, -50%) rotate(26deg); }
.journey-stage[data-stage="recognise"] .lens-frame-b { transform: translate(-50%, -50%) rotate(-30deg) scale(.9); }
.journey-stage[data-stage="trust"] .lens-frame-a { transform: translate(-50%, -50%) rotate(45deg) scale(.92); }
.journey-stage[data-stage="trust"] .lens-frame-b { transform: translate(-50%, -50%) rotate(-45deg) scale(1.1); }
.journey-stage[data-stage="act"] .lens-frame-a { transform: translate(-50%, -50%) rotate(68deg) scale(.84); }
.journey-stage[data-stage="act"] .lens-frame-b { transform: translate(-50%, -50%) rotate(-62deg) scale(.78); }
.journey-stage[data-stage="return"] .lens-frame-a { transform: translate(-50%, -50%) rotate(90deg); border-radius: 50%; }
.journey-stage[data-stage="return"] .lens-frame-b { transform: translate(-50%, -50%) rotate(-90deg); border-radius: 50%; }

.journey-stage .lens-core { background: var(--journey-accent); }
.journey-stage[data-stage="recognise"] .lens-core,
.journey-stage[data-stage="act"] .lens-core { color: #05142e; }
.journey-stage[data-stage="recognise"] .lens-core span,
.journey-stage[data-stage="act"] .lens-core span { color: #05142e; }

.journey-stage[data-stage="trust"] .lens-surface { transform: translate(-50%, -50%) rotateY(0deg) rotateX(0deg) scale(1.05); }
.journey-stage[data-stage="act"] .lens-surface { transform: translate(-50%, -50%) rotateY(12deg) rotateX(-4deg) scale(.94); }
.journey-stage[data-stage="return"] .lens-surface { transform: translate(-50%, -50%) rotateY(0deg) rotateX(0deg) scale(.82); background: rgba(219, 231, 251, .84); }

.journey-stage[data-stage="find"] [data-node="find"],
.journey-stage[data-stage="recognise"] [data-node="recognise"],
.journey-stage[data-stage="trust"] [data-node="trust"],
.journey-stage[data-stage="act"] [data-node="act"],
.journey-stage[data-stage="return"] [data-node="return"] {
  background: var(--journey-accent);
  transform: scale(1.55);
}

.journey-stage[data-stage="find"] .lens-surface span:nth-child(-n+2),
.journey-stage[data-stage="recognise"] .lens-surface span:nth-child(-n+3),
.journey-stage[data-stage="trust"] .lens-surface span:nth-child(-n+4),
.journey-stage[data-stage="act"] .lens-surface span,
.journey-stage[data-stage="return"] .lens-surface span {
  transform: scaleX(1);
  background: var(--journey-accent);
}

@media (max-width: 980px) {
  .reframe-intro,
  .journey-intro { grid-template-columns: 1fr; gap: 2rem; }

  .reframe-phase {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-block: clamp(5rem, 10vw, 7rem);
  }

  .phase-copy { max-width: 58rem; }
  .phase-copy h3 { max-width: 13ch; font-size: clamp(3.4rem, 9vw, 6rem); }
  .phase-visual { width: min(39rem, 82vw); justify-self: center; }

  .journey-layout {
    grid-template-columns: minmax(18rem, .8fr) minmax(22rem, 1.2fr);
    gap: 3rem;
  }

  .journey-stage { top: 6rem; }
  .journey-lens,
  .journey-caption { width: min(31rem, 48vw); }
  .lens-core { width: 8.5rem; }
}

@media (max-width: 700px) {
  .reframe-intro,
  .journey-intro { padding-block: 5rem; }

  .reframe-intro h2,
  .journey-intro h2 { font-size: clamp(2.85rem, 13vw, 4.5rem); line-height: .92; }

  .reframe-phase {
    min-height: 0;
    padding: 4.75rem var(--pad) 5.5rem;
  }

  .phase-copy h3 { font-size: clamp(2.85rem, 14vw, 4.5rem); line-height: .9; }
  .phase-evidence { grid-template-columns: 1fr; }
  .phase-evidence li { padding-block: .75rem; }
  .phase-visual { width: min(31rem, 92vw); }
  .has-websites-experience .phase-copy,
  .has-websites-experience .phase-visual { opacity: 1; transform: none; }

  .journey-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-bottom: 5rem;
  }

  .journey-stage {
    z-index: 4;
    order: -1;
    top: 5.5rem;
    width: 100%;
    height: 18rem;
    min-height: 0;
    padding: 1rem 0;
    background: rgba(247, 249, 252, .93);
    backdrop-filter: blur(16px);
  }

  .journey-lens { width: 16rem; }
  .journey-caption { width: 100%; margin-top: .4rem; padding-top: .6rem; }
  .lens-core { width: 5.8rem; }
  .lens-core strong { font-size: 1.1rem; }
  .lens-surface { padding: 1.5rem; }

  .journey-step {
    min-height: 58svh;
    padding-block: 4rem;
  }

  .journey-step h3 { font-size: clamp(2.5rem, 12vw, 3.8rem); }
}

@media (prefers-reduced-motion: reduce) {
  .phase-copy,
  .phase-visual,
  .phase-visual::before,
  .phase-visual::after,
  .phase-visual svg g,
  .phase-visual svg path,
  .phase-visual svg rect,
  .journey-step,
  .lens-frame,
  .lens-core,
  .lens-route,
  .lens-route i,
  .lens-surface,
  .lens-surface span {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .phase-visual::before,
  .phase-visual::after { transform: rotate(0deg) !important; }
  .journey-stage { position: relative; top: auto; }
}

/* Keep the process graphics inside their own stage and make the mobile journey linear. */
.phase-visual-listen{isolation:isolate;overflow:hidden}
.phase-visual-listen svg{overflow:hidden;padding:3%}
@media (max-width: 700px) {
  .reframe-phase{overflow:hidden}
  .phase-copy,.phase-visual{min-width:0;max-width:100%}
  .phase-visual{width:100%;aspect-ratio:1}
  .phase-visual svg{overflow:hidden}
  .phase-visual-listen{margin-top:1rem}
  .decision-journey{overflow:hidden}
  .journey-layout{width:100%;overflow:hidden}
  .journey-stage{position:relative;top:auto;order:0;height:auto;min-height:0;margin:0 0 2rem;padding:1.5rem 0;background:transparent;backdrop-filter:none}
  .journey-lens{width:min(16rem,78vw);max-width:100%}
  .journey-caption{max-width:100%;padding-inline:.25rem}
  .journey-steps{width:100%;min-width:0}
  .journey-step{min-height:auto;padding-block:3.5rem;opacity:1;transform:none}
  .journey-step h3{max-width:13ch;overflow-wrap:anywhere;font-size:clamp(2.35rem,11.5vw,3.55rem)}
  .journey-step>p:not(.journey-number){max-width:100%}
}

/* Process graphics stay literal, bounded and readable at every size. */
.phase-visual { width:min(39rem,42vw); overflow:hidden; contain:paint; }
.phase-visual::before { inset:10%; }
.phase-visual::after { inset:21%; }
.phase-visual svg { overflow:hidden; padding:4%; }
.phase-visual-listen::before,
.phase-visual-listen::after,
.phase-visual-release::before,
.phase-visual-release::after { display:none; }
.listen-site rect:first-child,
.listen-question rect,
.release-browser rect:first-child,
.release-row rect,
.release-ready rect { fill:color-mix(in oklch,currentColor 5%,transparent); }
.listen-waves path,
.release-row path { stroke:#f36a21!important; stroke-width:4!important; }
.release-row circle { fill:#f36a21!important; stroke:#f36a21!important; }
.release-ready rect { fill:#f36a21!important; stroke:#f36a21!important; }
.release-ready text { fill:#05142e!important; }
.diagram-labels text { fill:currentColor; font-size:16px; font-weight:800; letter-spacing:.08em; }
.listen-question text { font-size:9px; letter-spacing:.025em; }
.listen-site text,
.listen-brief text { font-size:10px; letter-spacing:.04em; }

/* The planning and design stages use complete, self-contained working diagrams. */
.phase-visual-map::before,
.phase-visual-map::after,
.phase-visual-shape::before,
.phase-visual-shape::after { display:none; }
.phase-visual-map svg,
.phase-visual-shape svg { padding:3.5%; }
.map-canvas rect,
.map-home rect,
.map-node rect,
.shape-browser > rect:first-child,
.shape-mobile > rect:first-child,
.shape-kit > rect:first-child,
.shape-desktop-layout rect,
.shape-mobile-layout rect {
  fill:color-mix(in oklch,currentColor 5%,transparent);
}
.map-canvas text,
.map-note text,
.shape-desktop-layout text,
.shape-mobile-layout text,
.shape-kit text {
  font-size:10px;
  font-weight:800;
  letter-spacing:.09em;
}
.map-home text,
.map-node text { font-size:11px; font-weight:800; letter-spacing:.055em; }
.map-connectors path { opacity:.34; }
.map-home rect { stroke-width:4; }
.map-note path { opacity:.42; }
.phase-paper .map-home rect { fill:color-mix(in oklch,#2059c8 8%,transparent); }
.shape-desktop-layout rect:first-of-type,
.shape-mobile-layout rect:last-of-type { fill:color-mix(in oklch,#f36a21 24%,transparent); stroke:#f36a21; }
.shape-desktop-layout rect:nth-of-type(2),
.shape-mobile-layout rect:first-of-type { fill:color-mix(in oklch,#f7f9fc 8%,transparent); }
.shape-compose { stroke:#f36a21; }
.shape-compose circle { fill:#f36a21!important; stroke:#f36a21!important; }

/* Mobile has its own linear motion language instead of flattened desktop 3D. */
@media (max-width:700px) {
  .reframe-intro,.journey-intro { padding-block:4.5rem; }
  .reframe-intro h2,.journey-intro h2 { font-size:clamp(2.65rem,12vw,4rem); }
  .reframe-intro div>p,.journey-intro div>p { margin-top:1.25rem; font-size:.98rem; line-height:1.6; }
  .reframe-phase { gap:2.25rem; padding:4rem var(--pad) 4.75rem; }
  .phase-copy h3 { max-width:12ch; font-size:clamp(2.65rem,12vw,3.8rem); }
  .phase-copy>p:not(.phase-index) { margin-top:1.15rem; font-size:.96rem; line-height:1.58; }
  .phase-index { margin-bottom:1.6rem; }
  .phase-evidence { margin-top:1.5rem; grid-template-columns:repeat(3,minmax(0,1fr)); }
  .phase-evidence li { padding:.75rem .4rem .75rem 0; font-size:.7rem; }
  .phase-visual { width:100%; max-width:30rem; aspect-ratio:4/3; justify-self:center; border-radius:1.1rem; }
  .phase-visual svg { padding:2.5%; }
  .phase-visual::before { inset:7%; transform:none; border-radius:1rem; }
  .phase-visual::after { inset:17%; transform:none; border-radius:.8rem; }
  .has-websites-experience .reframe-phase .phase-copy { opacity:.22; transform:translate3d(-1.15rem,1.5rem,0); }
  .has-websites-experience .reframe-phase:nth-child(even) .phase-copy { transform:translate3d(1.15rem,1.5rem,0); }
  .has-websites-experience .reframe-phase .phase-visual { opacity:.12; transform:translate3d(0,1.75rem,0) scale(.94); }
  .has-websites-experience .reframe-phase.is-active .phase-copy { opacity:1; transform:none; transition:opacity .52s cubic-bezier(.25,1,.5,1),transform .62s cubic-bezier(.22,1,.36,1); }
  .has-websites-experience .reframe-phase.is-active .phase-visual { opacity:1; transform:none; transition:opacity .58s cubic-bezier(.25,1,.5,1) .08s,transform .72s cubic-bezier(.22,1,.36,1) .08s; }
  .journey-stage { display:none; }
  .journey-step { min-height:auto; margin:0; padding:3.25rem 0; transform:translate3d(0,1.5rem,0); }
  .journey-step.is-active { opacity:1; transform:none; }
  .journey-step h3 { font-size:clamp(2.3rem,10.5vw,3.3rem); }
  .phase-cta,.journey-cta { width:auto; max-width:100%; font-size:.72rem; }
}

@media (max-width:700px) and (prefers-reduced-motion:reduce) {
  .phase-copy,
  .phase-visual,
  .journey-step {
    opacity:1!important;
    transform:none!important;
    transition:none!important;
  }
}

@media (max-width:420px) {
  .phase-evidence { grid-template-columns:1fr; }
  .phase-evidence li { padding-block:.65rem; }
  .phase-visual { aspect-ratio:1; }
}
