/* 01: the work area scrolls; the menu, stage and floor are fixed. */
html[data-pi-01] {
  --pi-shell-width: 76.25rem;
  --pi-shell-gutter: clamp(.85rem, 11.5vw, 12rem);
  --pi-shell-lamp-offset: clamp(1rem, 3.4dvh, 2.15rem);
  --pi01-ink: #f1e9df;
  --pi01-copy: #d8c2af;
  --pi01-accent: #f0b780;
}
html[data-pi-01] .workspace[data-pi-shell]::before {
  background:
    linear-gradient(90deg,#100c08b8, #b47c4a35 2.3%, #110e09c0 5.5%, transparent 14% 86%, #110e09c0 94.5%, #b47c4a35 97.7%, #100c08b8),
    radial-gradient(ellipse at 50% 0%,#a56d3a46,transparent 53%),
    linear-gradient(180deg,#17110caf 0%,#110e0bb0 77%,#1a11088a 85%,#0f0b08a5),
    url("./assets/work-scenes/stage.png") center bottom / 100% 100% no-repeat #1b140e;
}
html[data-pi-01] .workspace[data-pi-shell]::after {
  height: 3px; background: #fff6e8;
  box-shadow: 0 0 5px 1px #ffd4b3, 0 1px 18px 5px #d78e60ad, 0 2px 34px 10px #c4824f63;
}
html[data-pi-01] .pi-shell-controls {
  display: flex; gap: 1.15rem;
  min-height: 52px;
  margin-top: calc(var(--pi-shell-lamp-offset) + 1.7rem);
  padding: 0 .25rem;
  font-weight: 500;
  font-size: clamp(.9rem, 1.14vw, 1.125rem);
}
html[data-pi-01] .pi-shell-controls > :is(#pi-shell-hero-slot,.pi-shell-section,[data-pi-app-back]) { display: none; }
html[data-pi-01] .pi-shell-controls > :is([data-pi01-up],.pi-shell-home) {
  color: #f0bf90; text-decoration: none; background: transparent; border: 0; padding: 0; font: inherit;
  min-height: 44px; align-items: center; cursor: pointer;
}
html[data-pi-01] .pi-shell-controls > :is([data-pi01-up],.pi-shell-home):not([hidden]) { display: inline-flex; }
html[data-pi-01] body .workspace[data-pi-shell] .pi-app-layout > #main {
  overflow: hidden auto !important;
  overscroll-behavior-y: contain;
  padding-block: .8rem 1.5rem !important;
  scrollbar-width: thin;
  scrollbar-color: #79553c transparent;
}
html[data-pi-01] #app [data-section-studio] { padding: 0 !important; margin: 0; max-width: none; }
html[data-pi-01] #app [data-section-studio] > :not(.pi01-scene) { display: none; }
.pi01-scene { color: var(--pi01-ink); font-family: "PI Work", Manrope, system-ui, sans-serif; }
.pi01-grid { display: grid; grid-template-columns: minmax(0, 1.043fr) minmax(0, 1fr); gap: 1.25rem; }
.pi01-panel {
  min-width: 0; box-sizing: border-box; min-height: clamp(29rem, 55.2dvh, 34.25rem);
  border: 1px solid #6f5540; border-radius: .75rem;
  background: linear-gradient(145deg,#211910b5,#17130fc9 75%);
  box-shadow: inset 0 1px #eabf8d0c;
}
.pi01-left { padding: clamp(1.5rem, 4.25dvh, 2.7rem) clamp(1.5rem, 3.7vw, 3.7rem) 2.45rem; }
.pi01-right { padding: clamp(2rem, 8.4dvh, 5.2rem) clamp(1.5rem, 3.4vw, 3.4rem) 2.45rem; }
.pi01-scene .pi01-kicker {
  margin: 0 0 .9rem; color: #f4ab6d;
  font-size: clamp(.72rem,1vw,.95rem); font-weight: 750; text-transform: uppercase; letter-spacing: .18em;
}
.pi01-right .pi01-kicker { margin-bottom: 1.18rem; }
.pi01-scene :is(h1,h2) {
  margin: 0; color: var(--pi01-ink);
  font: 600 clamp(2.45rem, 4.37vw, 4.35rem)/.9 Georgia,serif;
  letter-spacing: -.046em; text-wrap: initial;
}
.pi01-scene h1 { max-width: 9.6ch; }
.pi01-scene h2 { font-size: clamp(1.85rem, 2.95vw, 2.93rem); line-height: 1.06; letter-spacing: -.032em; }
.pi01-scene .pi01-copy { margin: 1.15rem 0 0; color: var(--pi01-copy); font-size: clamp(1rem,1.35vw,1.35rem); line-height: 1.35; }
.pi01-choices { display: grid; gap: .65rem; margin-top: 1.55rem; }
.pi01-scene .pi01-choice {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto;
  column-gap: .65rem; align-items: center; width: 100%; text-align: start;
  padding: .42rem clamp(.75rem, 1.55vw, 1.55rem);
  min-height: 4.45rem; color: #f7f0e7;
  background: #17130fc9; border: 1px solid #523b2a; border-radius: .46rem; cursor: pointer;
  font: 500 1rem/1.22 "PI Work",Manrope,system-ui,sans-serif;
}
.pi01-scene .pi01-choice strong { font-size: clamp(1.08rem,1.47vw,1.47rem); font-weight: 600; }
.pi01-scene .pi01-choice span { grid-area: 2/1; font-size: clamp(.8rem,1vw,.99rem); color: #edd3b8; }
.pi01-choice i { grid-area: 1/2/span 2; width: 1.02rem; height: 1.02rem; border: 1px solid #e3b18c; border-radius: 50%; }
.pi01-choice[aria-pressed="true"] { background: linear-gradient(110deg,#4b321f,#3b281b); border-color: #61422d; }
.pi01-choice[aria-pressed="true"] i { background: radial-gradient(circle,#e9bf9f 37%,#695040 43%,transparent 64%); }
.pi01-scene .pi01-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 3.7rem; padding: .55rem clamp(1rem, 2vw, 2rem); margin-top: clamp(1.15rem,4dvh,2.45rem);
  border: 1px solid #e8b795; border-radius: .45rem;
  color: #1c120b; background: linear-gradient(135deg,#eab58a,#e3a97b 70%,#edb790);
  font-size: clamp(1rem,1.39vw,1.39rem); font-weight: 700; line-height: 1.18; text-decoration: none;
}
.pi01-primary span { font-size: 1.25em; line-height: 1; }
.pi01-shortcuts { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.65rem; padding: .95rem .25rem 0; }
.pi01-shortcuts a { min-height: 3.1rem; display: inline-flex; align-items: center; color: var(--pi01-accent); text-decoration: none; font-size: clamp(.95rem,1.32vw,1.32rem); }
.pi01-shortcuts a:not(:last-child)::after { content: "·"; color: #e2ae83; margin-inline-start: 1.65rem; pointer-events: none; }
.pi01-scene :is(a,button):focus-visible, html[data-pi-01] .pi-shell-controls :focus-visible { outline: 2px solid #ffd1a0; outline-offset: 3px; }
.pi01-choice:hover,.pi01-primary:hover { filter: brightness(1.12); }
.pi01-shortcuts a:hover { text-decoration: underline; }
.pi01-right.pi01-open { padding: 0; min-height: 0; display: grid; grid-template: minmax(0,1fr)/minmax(0,1fr); overflow: clip; height: clamp(30rem,55.2dvh,42rem); }
#pi01-frame { width: 100%; height: 100%; min-width: 0; display: block; border: 0; color-scheme: dark; }
html[data-pi01-panel] :is(#gr-site-header,.pi-shell-controls,#mas-bottom-navigation,.skip-link,.pi-intro,#pi-clean-entry) { display: none !important; }
html[data-pi01-panel] .workspace[data-pi-shell]::before,
html[data-pi01-panel] .workspace[data-pi-shell]::after { display: none !important; }
html[data-pi01-panel] body .workspace[data-pi-shell] > .pi-app-layout { grid-template: minmax(0,1fr)/minmax(0,1fr); }
html[data-pi01-panel] body .workspace[data-pi-shell] .pi-app-layout > #main {
  grid-area: 1/1;
  overflow: hidden auto !important;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #79553c transparent;
  padding: clamp(.6rem, 3vw, 1.15rem) !important;
}
html[data-pi01-panel] body.pk-app { background: #1a140f; }
html[data-pi01-panel] body .workspace[data-pi-shell] :is(#app,#main) { min-width: 0; max-width: 100%; }
html[data-pi01-panel] #sheet[open] { max-width: calc(100% - 1rem); max-height: calc(100dvh - 1rem); overflow: auto; }
@media (max-width: 950px) {
  html[data-pi-01] { --pi-shell-gutter: clamp(.75rem,4vw,2rem); --pi-shell-lamp-offset: .55rem; }
  html[data-pi-01] .pi-shell-controls { margin-top: 1rem; min-height: 44px; }
  .pi01-left,.pi01-right { padding: 1.65rem 1.25rem; }
  .pi01-panel { min-height: 25rem; }
}
@media (max-width: 700px) {
  .pi01-grid { grid-template-columns: minmax(0,1fr); gap: .85rem; }
  .pi01-panel { min-height: 0; }
  .pi01-left,.pi01-right { padding: 1.35rem 1.15rem; }
  .pi01-scene h1 { font-size: clamp(2.25rem,9.6vw,3.25rem); }
  .pi01-choices { margin-top: 1rem; gap: .45rem; }
  .pi01-scene .pi01-choice { min-height: 3.65rem; }
  .pi01-right.pi01-open { height: max(17rem, calc(100dvh - var(--pi-app-top,64px) - 5rem)); }
  .pi01-shortcuts { gap: 0 1rem; padding-top: .25rem; }
  .pi01-shortcuts a:not(:last-child)::after { margin-inline-start: 1rem; }
}
@media (max-height: 520px) and (min-width: 701px) {
  .pi01-right.pi01-open { height: max(15rem,calc(100dvh - var(--pi-app-top,64px) - 5rem)); }
}



html[data-pi-01] #app .pi01-scene h1 {
  max-width: 10ch; margin: 0; color: var(--pi01-ink);
  font: 400 clamp(2.45rem, 4.37vw, 4.35rem)/.9 Georgia,serif;
  letter-spacing: -.041em;
}
html[data-pi-01] #app .pi01-scene h2 {
  margin: 0; color: var(--pi01-ink);
  font: 400 clamp(1.85rem, 2.87vw, 2.85rem)/1.04 Georgia,serif;
  letter-spacing: -.035em;
}
html[data-pi-01] #app .pi01-scene .pi01-copy {
  margin: 1rem 0 0; color: var(--pi01-copy);
  font: 400 clamp(1rem,1.35vw,1.35rem)/1.35 "PI Work",Manrope,system-ui,sans-serif;
}
html[data-pi01-panel] body #gr-site-header#gr-site-header { display: none !important; }
@media (min-width: 951px) {
  html[data-pi-01] { --pi-shell-lamp-offset: clamp(1rem,3.8dvh,2.46rem); }
  html[data-pi-01] .pi01-primary { min-inline-size: 20.5rem; }
}
@media (max-width: 700px) {
  html[data-pi-01] #app .pi01-scene h1 { font-size: clamp(2.25rem,9.6vw,3.25rem); }
}


