.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.studio-about,
.studio-process {
  --rust: #a43b25;
  --paper-white: #fff9ed;
  --stock: #eee4d0;
  --oxblood: #421821;
  --brass: #bc9867;
  --pine: #303c32;
  padding-block: clamp(3.75rem, 6.5vw, 7rem);
}

.about-spread,
.method-spread {
  max-width: 94rem;
  margin-inline: auto;
}

.about-spread {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  grid-template-areas: "prints note";
  gap: clamp(2.5rem, 6.5vw, 7.5rem);
  align-items: center;
}

.designer-note { grid-area: note; }

.studio-kicker {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font: 650 .78rem/1.35 var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.studio-kicker::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: var(--rust);
}

.studio-title {
  margin: .75rem 0 1.15rem;
  font: 400 clamp(3rem, 4.75vw, 5.4rem)/.97 var(--serif);
  letter-spacing: -.045em;
  text-wrap: balance;
}

.studio-title em {
  font-weight: 400;
  color: var(--rust);
  white-space: nowrap;
}

.designer-note p,
.method-heading p,
.stage-description {
  font-size: clamp(1rem, 1.12vw, 1.15rem);
  line-height: 1.55;
  color: var(--muted);
}

.designer-note p { max-width: 43ch; margin: 0 0 .8rem; }
.designer-note p:first-of-type { color: var(--ink); }

.studio-link {
  display: inline-block;
  padding-block: .52rem .26rem;
  border-bottom: 1px solid currentColor;
  color: var(--rust);
  font-weight: 650;
  font-size: .95rem;
  text-underline-offset: .25em;
}

.print-folio { grid-area: prints; margin: 0; min-width: 0; }

.print-mat {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1.38;
  background-color: #dacbb8;
  background-image:
    linear-gradient(125deg, #f1e6d640 5%, transparent 48%, #856a4b24),
    repeating-linear-gradient(0deg, #6d553105 0 1px, transparent 1px 3px);
}

.folio-print {
  --front: translate(-60%, -55%) rotate(-6deg);
  --back: translate(-35%, -37%) rotate(9deg) scale(.94);
  --rest: var(--back);
  position: absolute;
  z-index: 1;
  left: 47%;
  top: 50%;
  width: 69%;
  aspect-ratio: 1.42;
  display: flex;
  padding: 1.75% 1.75% 3%;
  background: var(--paper-white);
  box-shadow: 0 1px 2px #3b2b204d, 0 .35rem .6rem #48301d2b, 0 1.5rem 2.1rem -.75rem #3d2b1859;
  transform: var(--rest);
}

.print-folio[data-front="architecture"] .architecture-print,
.print-folio[data-front="editorial"] .editorial-print {
  --rest: var(--front);
  z-index: 2;
}

.print-face {
  display: grid;
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

.print-face img,
.proof-paper > img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
}

.editorial-print .print-face { grid-template-columns: 1.4fr 1fr; gap: 2%; }
.editorial-print img:last-child { object-position: 62% center; }

.folio-caption,
.stage-figure figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .85rem;
  font-size: .875rem;
  line-height: 1.4;
}

.folio-caption strong,
.stage-figure figcaption span:first-child { font-weight: 650; }
.folio-caption > div { min-width: 0; }
.print-status { display: block; margin-top: .15rem; color: var(--muted); }

.turn-prints {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: .55rem;
  padding: .45rem .9rem;
  border: 1px solid #baae9b;
  border-radius: 3rem;
  background: transparent;
  font-size: .875rem;
  font-weight: 580;
  white-space: nowrap;
  cursor: pointer;
}

.print-icon { position: relative; flex: none; width: 1.1rem; height: 1rem; }
.print-icon::before,
.print-icon::after {
  position: absolute;
  content: "";
  width: .68rem;
  height: .78rem;
  box-sizing: border-box;
  border: 1px solid currentColor;
  background: var(--paper);
}
.print-icon::before { left: .26rem; top: .18rem; transform: rotate(9deg); }
.print-icon::after { left: .09rem; top: .04rem; transform: rotate(-9deg); }

.studio-process { background-color: #efe8dc; }
.method-spread {
  --selector-width: 42%;
  --figure-width: 51.5%;
  position: relative;
  min-height: clamp(29rem, 35vw, 35rem);
}

.method-heading,
.method-steps { width: var(--selector-width); }
.method-heading .studio-title { margin-bottom: .65rem; }
.method-heading p { margin: 0; max-width: 40ch; }
.method-steps {
  margin: clamp(1.25rem, 2.25vw, 2.5rem) 0 0;
  min-inline-size: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #c8bdab;
}

.stage-label {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  align-items: center;
  gap: .65rem;
  padding: .78rem .12rem;
  border-top: 1px solid #c8bdab;
  font: 400 clamp(1.35rem, 2.05vw, 2.1rem)/1.1 var(--serif);
  letter-spacing: -.023em;
  cursor: pointer;
}

.stage-number {
  color: var(--muted);
  font: 600 .78rem/1 var(--sans);
  letter-spacing: .05em;
  font-variant-numeric: tabular-nums;
}

.stage-label i {
  display: grid;
  place-items: center;
  width: .78rem;
  height: .78rem;
  margin-right: .2rem;
  border: 1px solid #8a7f70;
  border-radius: 50%;
}

.stage-label i::after {
  content: "";
  width: .38rem;
  height: .38rem;
  border-radius: 50%;
  background: currentColor;
  transform: scale(0);
}

.stage-choice:checked + .stage-label,
.stage-choice:checked + .stage-label .stage-number { color: var(--rust); }
.stage-choice:checked + .stage-label i { border-color: currentColor; }
.stage-choice:checked + .stage-label i::after { transform: scale(1); }
.stage-choice:focus-visible + .stage-label { outline: 2px solid var(--rust); outline-offset: -2px; }
.stage-panel { display: none; }
.stage-choice:checked + .stage-label + .stage-panel { display: block; }
.stage-description { max-width: 47ch; margin: -.1rem .5rem 1rem 2.77rem; font-size: 1rem; }

.stage-figure {
  position: absolute;
  inset: 0 0 0 auto;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: var(--figure-width);
  margin: 0;
}

.stage-figure figcaption span:last-child { color: var(--muted); text-align: right; }
.stage-art { position: relative; isolation: isolate; min-height: 0; overflow: hidden; }
.art-references { background: radial-gradient(ellipse at 16% 0%, #536352, #354436 55%, #2b352d); }
.art-direction { background: radial-gradient(ellipse at 15% 0%, #713f42, #4c242c 63%, #381c22); }
.art-applications { background: radial-gradient(ellipse at 13% 2%, #d6bba0, #bb9b7c 62%, #a8886f); }
.art-handover { background: radial-gradient(ellipse at 12% 0%, #68665c, #4b4b42 70%, #3f423a); }

.proof-paper,
.sample-strip,
.colour-leaf {
  position: absolute;
  transform: rotate(var(--angle, 0deg));
  box-shadow: 0 1px 2px #17150f42, 0 .65rem 1.1rem #1b160e36, 0 1.5rem 1.8rem -.95rem #16100966;
}

.proof-paper { background: var(--paper-white); padding: 1.5%; }
.reference-back { --angle: 10deg; right: 12%; top: 15%; width: 46%; height: 52%; }
.reference-front { --angle: -6deg; left: 12%; top: 20%; width: 51%; height: 62%; }
.sample-strip,
.colour-leaf,
.guide-palette { display: grid; background: var(--paper-white); }
.sample-strip { --angle: 6deg; right: 11%; bottom: 13%; width: 41%; aspect-ratio: 4.8; padding: 1%; grid-template-columns: repeat(4, 1fr); }
.stage-art i:nth-child(1) { background-color: var(--oxblood); }
.stage-art i:nth-child(2) { background-color: var(--brass); }
.stage-art i:nth-child(3) { background-color: var(--stock); }
.stage-art i:nth-child(4) { background-color: var(--pine); }
.colour-leaf { --angle: 9deg; right: 20%; top: 25%; width: 19%; height: 58%; padding: 1.3%; grid-template-rows: repeat(4, 1fr); }
.crest-leaf { --angle: -6deg; left: 23%; top: 15%; width: 43%; height: 67%; display: grid; place-items: center; background: var(--stock); }
.crest-leaf > img,
.guide-title > img { width: 74%; height: 78%; object-fit: contain; mix-blend-mode: multiply; }
.member-print { --angle: -7deg; left: 9%; top: 19%; width: 69%; aspect-ratio: 1.95; }
.sign-print { --angle: 8deg; right: 11%; bottom: 13%; width: 35%; aspect-ratio: 1.07; }

.art-handover { display: grid; place-items: center; perspective: 48rem; }
.guide-spread {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 76%;
  max-height: 77%;
  aspect-ratio: 1.6;
  transform: rotate(-5deg);
  filter: drop-shadow(.25rem .85rem .65rem #201c144a);
}
.guide-page { position: relative; min-width: 0; min-height: 0; }
.guide-title {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5%;
  padding: 10% 6%;
  background: linear-gradient(90deg, #f0e6d3 72%, #e8ddc6 95%, #c1b59d);
  box-shadow: -1px 2px #b8ab91, -2px 4px #e5d9c1;
}
.guide-title > img { width: 70%; height: 65%; }
.guide-title span { color: #502729; font: 400 clamp(.75rem, 1.4vw, 1.4rem)/1.1 var(--serif); }
.guide-applications {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8%;
  padding: 9%;
  transform-origin: left center;
  background: linear-gradient(90deg, #d2c6ad, #f3ead8 15%, #f5eddd);
  box-shadow: 1px 2px #c9bda7, 2px 4px #e4d8c0;
}
.guide-applications > img { width: 100%; height: 62%; object-fit: cover; }
.guide-palette { grid-template-columns: repeat(4, 1fr); height: 9%; }

@media (hover: hover) and (pointer: fine) {
  .studio-link:hover { color: var(--ink); }
  .turn-prints:hover { color: var(--rust); border-color: var(--rust); }
  .stage-label:hover { color: var(--rust); background: #fff9ed38; }
}

@media (prefers-reduced-motion: no-preference) {
  .print-folio.arrived:not([data-turned]) .folio-print { animation: fan-prints .85s var(--ease) backwards; }
  .method-spread.arrived .stage-panel .proof-paper { animation: lay-proof .65s var(--ease) backwards; }
  .method-spread.arrived .stage-panel .reference-front,
  .method-spread.arrived .stage-panel .sign-print { animation-delay: .09s; }
  .method-spread.arrived .sample-strip,
  .method-spread.arrived .colour-leaf { animation: place-samples .7s .12s var(--ease) backwards; }
  .method-spread.arrived .guide-applications { animation: unfold-guide .85s var(--ease) backwards; }
  .stage-label i::after { transition: transform .2s var(--ease); }
  .turn-prints, .studio-link { transition: color .2s, border-color .2s; }
  @keyframes fan-prints {
    from { transform: translate(-50%, -48%) rotate(-1deg) scale(.97); }
    to { transform: var(--rest); }
  }
  @keyframes lay-proof {
    from { transform: translateY(1.1rem) rotate(calc(var(--angle, 0deg) - 5deg)) scale(.97); opacity: .45; }
    to { transform: rotate(var(--angle, 0deg)); opacity: 1; }
  }
  @keyframes place-samples {
    from { transform: translate(8%, -10%) rotate(calc(var(--angle, 0deg) + 11deg)); opacity: .35; }
    to { transform: rotate(var(--angle, 0deg)); opacity: 1; }
  }
  @keyframes unfold-guide {
    from { transform: perspective(40rem) rotateY(-73deg); }
    to { transform: perspective(40rem) rotateY(0deg); }
  }
}

@media (max-width: 52rem) {
  .about-spread { grid-template-columns: minmax(0, 1fr); grid-template-areas: "note" "prints"; gap: 1.9rem; }
  .designer-note p { max-width: 54ch; }
  .studio-title { max-width: 15ch; }
  .print-mat { aspect-ratio: 1.55; }
  .folio-print { width: 65%; }
  .method-spread { min-height: 0; }
  .method-heading,
  .method-steps { width: 100%; }
  .method-heading p { max-width: 53ch; }
  .method-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
    border: 0;
  }
  .stage-label {
    order: 1;
    min-height: 48px;
    font-size: 1.3rem;
    grid-template-columns: auto 1fr;
    gap: .5rem;
    align-content: center;
  }
  .stage-label i { display: none; }
  .stage-choice:checked + .stage-label { box-shadow: inset 0 2px var(--rust); }
  .stage-panel { grid-column: 1 / -1; order: 2; }
  .stage-description { margin: .85rem 0 1rem; max-width: 58ch; }
  .stage-figure { position: static; width: 100%; display: block; }
  .stage-art { aspect-ratio: 1.52; }
  .guide-title span { font-size: clamp(.8rem, 2.8vw, 1.3rem); }
}

@media (max-width: 30rem) {
  .studio-title { font-size: clamp(2.85rem, 11.4vw, 3.4rem); }
  .print-mat,
  .stage-art { aspect-ratio: 1.24; }
  .folio-print { width: 72%; }
  .folio-caption, .stage-figure figcaption { gap: .55rem; font-size: .82rem; }
  .turn-prints { padding-inline: .65rem; font-size: .82rem; }
  .method-steps { column-gap: .85rem; }
  .stage-label { font-size: 1.13rem; }
  .stage-number { font-size: .75rem; }
}

@media (forced-colors: active) {
  .stage-choice:checked + .stage-label { outline: 2px solid Highlight; outline-offset: -4px; }
  .stage-choice:focus-visible + .stage-label { outline-style: dashed; }
}
