/* The drafting page arrives as a physical sheet after the on-screen work. */
.draft-sheet {
  position: relative;
  isolation: isolate;
  color: #211938;
  background: var(--navy);
}
.draft-page {
  position: relative;
  overflow: clip;
}
.draft-paper {
  display: grid;
  align-content: center;
  background: #efe2cf url(drawing-paper.webp) center / 720px auto repeat;
}
.draft-layout {
  display: grid;
  align-items: center;
  gap: clamp(18px, 3.5svh, 46px);
  width: min(100% - 2 * var(--gutter), 1640px);
  padding-block: clamp(24px, 5svh, 72px);
}
.draft-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  column-gap: clamp(24px, 5vw, 70px);
}
.draft-heading h2 {
  font-size: clamp(52px, 6.3vw, 94px);
  line-height: .94;
  letter-spacing: -.045em;
}
.draft-heading em { color: #593092; }
.draft-copy { max-width: 41ch; }
.draft-copy p:first-child {
  max-width: 32ch;
  font-size: clamp(19px, 1.55vw, 26px);
  font-weight: 570;
  line-height: 1.5;
  letter-spacing: -.025em;
  text-wrap: pretty;
}
.draft-copy p + p { margin-top: 12px; font-size: clamp(16px, 1.09vw, 19px); line-height: 1.48; }
.draft-track { min-width: 0; margin: 0; }
.draft-drawing {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 2.38;
  background: #f4ebdb;
  box-shadow: 0 1px 2px #392a1b24, 0 8px 18px -12px #392a1b50;
}
.draft-caption {
  display: flex; align-items: center; gap: 14px;
  margin-top: 13px;
  color: #463a4d; font-size: clamp(13px, 1vw, 16px); font-weight: 570;
}
.draft-measure {
  flex: 1; height: 5px; opacity: .62;
  background: repeating-linear-gradient(90deg,#695c69 0 1px,transparent 1px 12px);
}
.draft-folio { font-variant-numeric: tabular-nums; letter-spacing: .07em; }
.draft-roll { display: none; }
.draft-drawing img {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  max-width: none;
}
.draft-drawing canvas { position: absolute; inset: 0; width: 100%; height: 100%; visibility: hidden; }
.draft-track.is-drawing canvas { visibility: visible; }
.draft-track.is-drawing img {
  z-index: 1; pointer-events: none; will-change: opacity; opacity: var(--finished-study, 0);
  width: var(--photo-width, 100%); left: var(--photo-left, 0); top: var(--photo-top, 0); bottom: auto;
}
.draft-sheet.has-runway { --draft-travel: clamp(1820px, 368svh, 4000px); }
.draft-sheet.has-runway::after {
  content: "";
  display: block;
  height: var(--draft-travel);
}
.has-runway .draft-page {
  position: sticky;
  top: var(--draft-pin, var(--head));
  z-index: 1;
  min-height: calc(100svh - var(--head));
  background: radial-gradient(ellipse at 55% 70%, #2b2342, var(--navy) 85%);
}
.has-runway .draft-paper {
  min-height: inherit;

}
.is-unrolling .draft-paper { clip-path: var(--paper-edge); }
.is-unrolling .draft-roll {
  display: block; position: absolute; pointer-events: none;
  left: 0; top: 0; transform-origin: left center; will-change: transform;
}

.contact-sheet {
  isolation: isolate; position: relative; overflow: clip; margin-top: 0;
  background: #edddc4 url(drawing-paper.webp) top center / 100% auto;
  color: var(--navy);
  padding: clamp(110px, 10vw, 180px) 0 clamp(50px, 4vw, 85px);
}
.contact-sheet::before {
  content: ""; z-index: -1; position: absolute; inset: 0 -8% -20%; background: var(--yellow);
  border-radius: 55% 12% 0 0 / 14% 3% 0 0; transform: rotate(-2deg); transform-origin: right bottom;
}
.contact-sheet-inner { position: relative; display: grid; grid-template-columns: minmax(0,.94fr) minmax(0,1.06fr); align-items: center; gap: 10px; }
.contact-prose { position: relative; z-index: 1; background: var(--yellow); }
.contact-prose h2 { font-size: clamp(63px,6.9vw,118px); line-height: .94; }
.contact-prose p { max-width: 34ch; margin: 24px 0 20px; font-size: clamp(17px,1.28vw,21px); line-height: 1.5; letter-spacing: -.015em; }
.contact-art { display: block; width: 100%; height: auto; align-self: end; }
footer { background: var(--yellow); color: var(--navy); }
.footer-inner .brand-symbol { color: var(--navy); }
.contact-sheet :focus-visible, footer :focus-visible, dialog :focus-visible { outline-color: #503087; }
@media (max-width: 900px) {
  .contact-sheet-inner { grid-template-columns: 1.12fr 1fr; }
}
@media (min-width: 681px) and (max-width: 1039px) and (min-height: 511px) and (max-height: 720px) {
  .draft-layout { padding-block: 16px; gap: 16px; }
  .draft-drawing { max-height: 42svh; }
}
@media (max-width: 680px) {
  .draft-layout { gap: clamp(19px, 4svh, 32px); padding-block: 22px; }
  .draft-heading { display: block; }
  .draft-heading h2 { font-size: clamp(43px, 11vw, 66px); }
  .draft-copy { margin-top: 18px; max-width: 43ch; }
  .draft-copy p:first-child { font-size: 20px; }
  .draft-copy p + p { margin-top: 8px; }
  .draft-drawing { aspect-ratio: 1.66; }
  .draft-caption { margin-top: 10px; }
  .draft-sheet.has-runway { --draft-travel: 360svh; }
  .contact-sheet { padding-top: 61px; padding-bottom: 10px; }
  .contact-sheet::before { border-radius: 50% 12% 0 0 / 7% 2% 0 0; }
  .contact-sheet-inner { grid-template-columns: 1fr; gap: 0; }
  .contact-prose h2 { font-size: clamp(60px,13vw,86px); }
  .contact-prose p { font-size: 17px; margin: 16px 0; }
  .contact-art { width: min(100%, 450px); justify-self: center; margin-top: 26px; }
}
@media (min-width: 1040px) and (min-aspect-ratio: 6/5), (max-height: 510px) and (min-aspect-ratio: 6/5) {
  .draft-layout { grid-template-columns: minmax(0,.8fr) minmax(0,1.74fr); gap: clamp(28px,4.2vw,80px); }
  .draft-heading { display: block; }
  .draft-heading h2 { font-size: clamp(56px,5.2vw,96px); }
  .draft-copy { margin-top: clamp(22px,3.6svh,45px); }
  .draft-drawing { aspect-ratio: 1.98; }
}
@media (max-height: 510px) and (min-aspect-ratio: 6/5) {
  .draft-layout { grid-template-columns: minmax(0,.95fr) minmax(0,1.25fr); gap: 20px; padding-block: 12px; }
  .draft-heading h2 { font-size: clamp(32px,4.3vw,52px); }
  .draft-copy { margin-top: 10px; }
  .draft-copy p:first-child { font-size: 17px; }
  .draft-copy p + p { margin-top: 6px; font-size: 14px; line-height: 1.35; }
  .draft-drawing { aspect-ratio: 2.2; }
  .draft-caption { margin-top: 8px; gap: 8px; font-size: 12px; }
}
@media (max-width: 400px) and (max-height: 630px) and (orientation: portrait) {
  .draft-layout { gap: 14px; padding-block: 14px; }
  .draft-heading h2 { font-size: 41px; }
  .draft-heading h2 br { display: none; }
  .draft-copy { margin-top: 12px; }
  .draft-copy p:first-child { font-size: 18px; }
  .draft-copy p + p { font-size: 15px; line-height: 1.4; }
  .draft-drawing { aspect-ratio: 1.92; }
}
@media (prefers-reduced-motion: reduce) {
  .is-unrolling .draft-paper { clip-path: none; }
  .is-unrolling .draft-roll { display: none; }
  .draft-sheet.has-runway::after { display: none; }
  .has-runway .draft-page { display: block; position: relative; min-height: 0; top: auto; }
  .draft-track.is-drawing canvas { visibility: hidden; }
  .draft-track.is-drawing img { opacity: 1; }
}
