/* The studio surface runs under both the live lamp and the glass. */
.fold-study {
  --pin-height: min(84svh, 62rem);
  --pin-top: max(
    var(--study-header, 0px),
    calc((100svh - var(--pin-height)) * 0.45)
  );
  --note-travel: clamp(290px, 48svh, 470px);
  --note-ink: var(--ink, #29261f);
  --note-copy: var(--soft, var(--quiet, #534e46));
  --note-solid: #f2eee6;
  --note-glass: rgb(252 249 243 / 0.45);
  --note-glint: rgb(255 255 255 / 0.55);
  --note-border: rgb(75 61 42 / 0.23);
  --rim: rgb(255 255 255 / 0.85);
  position: relative;
  isolation: isolate;
}
.object-sheet .fold-study {
  --study-header: 72px;
}
[data-room="night"] .fold-study {
  --note-solid: #2b2d30;
  --note-glass: rgb(57 58 60 / 0.48);
  --note-glint: rgb(245 225 198 / 0.09);
  --note-border: rgb(245 229 209 / 0.2);
  --rim: rgb(255 248 233 / 0.17);
}
.study-reading {
  margin-block: clamp(24px, 4vw, 70px);
}
.study-notes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}
.fold-note {
  position: relative;
  align-content: start;
  display: grid;
  grid-template-areas: "sketch" "title" "reason";
  padding: clamp(22px, 2.15vw, 36px);
  color: var(--note-ink);
  background: var(--note-solid);
  border: 1px solid var(--note-border);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 var(--rim),
    0 15px 30px -23px rgb(31 25 17 / 0.35);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .fold-note {
    background:
      linear-gradient(134deg, var(--note-glint), transparent 49%),
      radial-gradient(
        ellipse at 105% 93%,
        rgb(233 175 106 / calc(var(--room-mix, 0) * 0.095)),
        transparent 62%
      ),
      var(--note-glass);
    -webkit-backdrop-filter: blur(22px) saturate(1.12);
    backdrop-filter: blur(22px) saturate(1.12);
  }
}
.note-sketch {
  grid-area: sketch;
  display: none;
  width: 96px;
  height: 48px;
  margin-bottom: 26px;
}
.note-sketch[data-drawn] {
  display: block;
}
[data-room="night"] .note-sketch {
  filter: invert(1);
}
.fold-note h3 {
  grid-area: title;
  margin: 0 0 0.28em -0.035em;
  font:
    italic 390 clamp(32px, 3.3vw, 52px)/1.02 Petrona,
    Georgia,
    serif;
  letter-spacing: -0.057em;
  text-wrap: balance;
}
.fold-note p {
  grid-area: reason;
  margin: 0;
  max-width: 32ch;
  font:
    450 clamp(15px, 1.12vw, 18px)/1.46 Figtree,
    system-ui,
    sans-serif;
  letter-spacing: -0.012em;
  color: var(--note-copy);
}
.study-marker,
fold-viewer::part(feature-pin) {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  display: block;
  width: 18px;
  height: 18px;
  left: var(--anchor-x, var(--still-x, 50%));
  top: var(--anchor-y, var(--still-y, 50%));
  transform: translate(-50%, -50%);
  border: 1.5px solid #fff6df;
  border-radius: 50%;
  background: radial-gradient(circle, #fff8e4 0 1.5px, transparent 2px);
  box-shadow:
    0 0 0 1px #30251877,
    0 1px 5px #23160766;
  opacity: calc(var(--marker-alpha, 0) * var(--still-alpha, 1));
}
/* Each point is projected from the matching 4:3 detail photograph. */
.fold-study[data-feature="spine"] {
  --still-x: 56.966%;
  --still-y: 54.526%;
}
.fold-study[data-feature="diffuser"] {
  --still-x: 48.396%;
  --still-y: 42.367%;
}
.fold-study[data-feature="louvres"] {
  --still-x: 50.503%;
  --still-y: 45.404%;
}
.fold-study[data-feature="rocker"] {
  --still-x: 54.983%;
  --still-y: 50.973%;
}
.fold-study[data-paged] {
  height: calc(var(--pin-height) + var(--count) * var(--note-travel));
}
.fold-study[data-paged] .study-pin {
  position: sticky;
  top: var(--pin-top);
  height: var(--pin-height);
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  align-items: center;
}
.fold-study[data-paged] .study-subject,
.fold-study[data-paged] .study-reading {
  grid-area: 1 / 1;
}
.fold-study[data-paged] .study-subject {
  position: relative;
  width: 100%;
  margin-block: 0;
  padding-block: 0;
}
.fold-study[data-paged] :is(fold-viewer, .render-plane) {
  translate: calc(var(--reframe, 0) * min(16vw, 260px)) 0;
}
@media (prefers-reduced-motion: no-preference) {
  .fold-study[data-paged] :is(fold-viewer, .render-plane) {
    transition:
      translate 140ms ease-out,
      transform 140ms ease-out;
  }
}
.fold-study[data-paged] :is(.presentation .caption, .figure-stamp) {
  opacity: calc(1 - min(1, var(--reframe, 0) * 3));
}
.fold-study[data-paged] .study-reading {
  z-index: 1;
  width: clamp(240px, 29vw, 414px);
  margin: 0 0 0 clamp(0px, 2vw, 36px);
  pointer-events: none;
}
.fold-study[data-paged] .study-notes {
  grid-template: auto / 100%;
  gap: 0;
}
.fold-study[data-paged] .fold-note {
  grid-area: 1 / 1;
  align-self: center;
  opacity: 0;
  pointer-events: none;
}
.fold-study[data-paged] .fold-note[data-current] {
  opacity: var(--card-alpha, 0);
  transform: translateY(var(--card-lift, 0px)) rotate(var(--card-tilt, 0deg));
  transform-origin: 10% 90%;
  pointer-events: auto;
}
.note-jumps {
  width: fit-content;
  display: flex;
  margin: 4px 0 -12px 7px;
  pointer-events: auto;
}
.note-jumps[hidden] {
  display: none;
}
.note-jumps button {
  display: grid;
  place-items: center;
  appearance: none;
  border: 0;
  border-radius: 6px;
  background: transparent;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--note-copy);
  cursor: pointer;
}
.note-jumps button::before {
  content: "";
  display: block;
  width: 21px;
  height: 2px;
  border-radius: 4px;
  background: currentColor;
  opacity: 0.32;
}
.note-jumps button[aria-current="step"]::before {
  width: 33px;
  opacity: 1;
}
.note-jumps button:hover::before {
  opacity: 1;
}
.note-jumps button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -5px;
}
@media (min-width: 761px) {
  .fold-study[data-paged] :is(fold-viewer, .render-plane) {
    max-width: 70%;
  }
}
.study-reading:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 6px;
  border-radius: 18px;
}
@media (max-width: 960px) {
  .object-sheet .fold-study {
    --study-header: 66px;
  }
}
@media (max-width: 760px) {
  .fold-study {
    --pin-height: calc(100svh - var(--study-header, 0px) - 12px);
    --pin-top: var(--study-header, 0px);
    --note-travel: clamp(255px, 44svh, 385px);
  }
  .fold-study[data-paged] .study-pin {
    grid-template: max-content max-content / minmax(0, 1fr);
    align-content: safe center;
    padding-block: 9px;
    row-gap: 14px;
  }
  .fold-study[data-paged] .study-subject {
    grid-area: 1 / 1;
  }
  .fold-study[data-paged] .study-reading {
    grid-area: 2 / 1;
    width: min(100%, 29rem);
    margin: 0 auto;
  }
  .fold-study[data-paged] :is(fold-viewer, .render-plane) {
    width: min(100%, max(185px, calc((var(--pin-height) - 310px) * 1.3333)));
    translate: none;
  }
  .fold-study[data-paged] .presentation .caption {
    position: absolute;
    inset: auto 0 0;
    width: 100%;
    padding: 0;
    margin: 0;
    transform: translateY(calc(100% + 22px));
  }
  .fold-study[data-paged] .presentation {
    margin-inline: 0;
  }
  .fold-note {
    grid-template-areas: "title sketch" "reason reason";
    grid-template-columns: 1fr 65px;
    column-gap: 12px;
    padding: 20px 22px;
  }
  .note-sketch {
    width: 65px;
    height: 33px;
    margin: -2px 0 0;
    justify-self: end;
    align-self: center;
  }
  .fold-note h3 {
    font-size: clamp(31px, 5.5vw, 43px);
  }
  .fold-note p {
    max-width: 41ch;
  }
  .note-jumps {
    margin: 0 auto;
  }
}
@media (prefers-reduced-transparency: reduce), (forced-colors: active) {
  .fold-note {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--note-solid);
  }
}
.note-jumps[data-dormant] {
  visibility: hidden;
}

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