/* The studio wall, its joinery and the working shelves. */
:root {
  --wall: #f2e8d9;
  --plaster: #fff9ee;
  --walnut: #624737;
  --terracotta: #9c482f;
  --shelf-edge: #624737;
}
body, main { background: var(--wall); }
.guide {
  border-radius: 6px; border: 1px solid #bba68d; border-bottom: 3px solid var(--walnut);
  background: #fffbf2f7; box-shadow: 0 4px 0 #69472814;
}
.guide .brand { font-family: Georgia, serif; font-style: italic; letter-spacing: -.065em; }
.guide .mark { color: var(--terracotta); }
#menu-toggle { border-radius: 4px; }
#stage {
  background: radial-gradient(ellipse at 74% 38%,#fbe7c5 0,transparent 34%),var(--plaster);
  border-bottom: 9px solid var(--walnut);
}
.hero-copy .studio-byline {
  font: italic clamp(15px,1.5vw,22px)/1.3 Georgia,serif; color: var(--terracotta);
  margin: 0 0 1.05em; display:flex; align-items:center; gap:.65em;
}
.studio-byline::before { content:''; width:2.3em; border-top:1px solid currentColor; }
.hero-copy h1 { color:#382e27; font-size:clamp(60px,7vw,115px); line-height:.93; letter-spacing:-.066em; }
.hero-copy .book,.consult-copy .book { background:#85412d; border-radius:5px; box-shadow:0 3px 0 #583223; }
.hero-copy small { max-width:43ch; line-height:1.45; }
.kali-window {
  inset:0 3% 12%; border:6px solid #73513b; border-radius:48% 48% 1% 1%;
  background:linear-gradient(175deg,#e6cbad,#f8c997 73%,#ffe5b6);
  box-shadow:0 0 0 7px #e3c7ab,0 0 0 8px #bc9e80,7px 13px 0 #d5b79572;
}
.kali-window::before,.kali-window::after { background:#866344; }
.kali-window i { left:21%;top:20%;width:19%;background:#ffedb9; }
.studio-landscape,.studio-landscape b { position:absolute;inset:0; }
.studio-landscape b { top:47%;background:#9da18e;clip-path:polygon(0 65%,14% 51%,30% 42%,55% 18%,64% 21%,81% 0,100% 24%,100% 100%,0 100%); }
.studio-landscape b:nth-child(2){top:60%;background:#9a7966;transform:scaleX(-1);}
.studio-landscape b:nth-child(3){top:76%;background:#5b6a56;}
.kali-desk { left:-3%;right:-3%;height:4%;border:1px solid #644634;background:#b78760;box-shadow:0 5px 0 #624737; }
.studio-books { position:absolute;left:8%;bottom:16%;width:23%;height:12%;display:flex;flex-direction:column-reverse;align-items:start; }
.studio-books i { height:33%;width:100%;border:1px solid #5c533f;border-left:7px solid #5c533f;background:#eadaa8;border-radius:2px; }
.studio-books i:nth-child(2){width:86%;margin-left:6%;border-color:#9f5339;background:#e5be94;}
.studio-books i:nth-child(3){width:72%;border-color:#546754;background:#bdc3a0;}
.kali-caption { bottom:-1.6em; }
.hero-rail { background:transparent; }
#keyboard-card {
  background-color:#dfc7ae;
  background-image:repeating-linear-gradient(90deg,transparent 0 67px,#8d685017 68px 69px);
  border-bottom:9px solid var(--walnut);
}
.keyboard-paper { align-self:flex-start;margin-left:7%;transform:rotate(-2deg); border-top:5px solid #b97651; }
.keyboard-case { background:#8e7562;border-color:#755a49;box-shadow:0 8px 0 #624737,0 23px 20px -18px #4734297a; }
#services,#workflow,#calculator,#kali-story {
  background-color:var(--wall);
  background-image:linear-gradient(90deg,transparent 11%,#ad8a662e 11%,#ad8a662e calc(11% + 8px),transparent calc(11% + 8px),transparent 84%,#ad8a662e 84%,#ad8a662e calc(84% + 8px),transparent calc(84% + 8px));
  padding:clamp(116px,12vw,190px) 0 0; border:0;
}
#services .sv-wrap,#services .sv-receipts,#workflow .wf-pin,#calculator .wf-view,#kali-story .ks-spread,#consultation {
  position:relative;box-sizing:border-box; border:1px solid #b9a48e;
  border-top:9px solid var(--shelf-edge); border-radius:4px 4px 1px 1px;
  box-shadow:0 7px 0 #b49a7d,0 12px 0 -2px #6d5340,0 21px 26px -22px #4c382c;
  padding:clamp(32px,5vw,80px);max-width:1480px;
}
#services .sv-wrap { background:var(--plaster);width:87%;margin:0 auto 0 4%; }
#services .sv-receipts { background:#e2e5d7;width:79%;margin:clamp(112px,10vw,168px) 4% 0 auto; }
.sv-intro h2,.sv-receipts h3,.wf-intro h2,#calculator h2,#consultation h2 {line-height:.98;letter-spacing:-.06em;}
#workflow .wf-pin {background:#f9eddb;width:89%;margin-left:3%; }
#workflow .wf-intro {text-align:left;max-width:750px;}
#workflow .wf-intro p {margin-left:0;}
#workflow .wf-intro em {color:#944c35;font-style:italic;}
#workflow .wf-stage {margin-inline:0;}
#calculator .wf-view {background:#38372f;width:88%;margin:0 3% 0 auto;--shelf-edge:#77503a;}
#kali-story .ks-spread {background:#f8eedc;width:85%;margin-left:4%;}
#consultation { width:86%;margin:clamp(112px,12vw,180px) 4% 32px auto;background:#fffaed;}
.end {background:var(--wall);}
@media(max-width:750px) {
  #stage {padding-top:92px;gap:10px;}
  .hero-copy h1 {font-size:clamp(47px,12.5vw,80px);}
  .hero-copy .studio-byline {font-size:15px;margin-bottom:12px;}
  .hero-copy small {max-width:38ch;}
  .kali-studio {margin-top:23px;width:min(67vw,270px);}
  #services,#workflow,#calculator,#kali-story {padding-top:104px;}
  #services .sv-wrap,#services .sv-receipts,#workflow .wf-pin,#calculator .wf-view,#kali-story .ks-spread,#consultation {
    width:calc(100% - 22px);padding:32px clamp(13px,4vw,25px);border-top-width:7px;
  }
  #services .sv-wrap,#workflow .wf-pin,#kali-story .ks-spread {margin-left:5px;}
  #services .sv-receipts,#calculator .wf-view,#consultation {margin-right:5px;}
  #services .sv-receipts {margin-top:104px;}
}
@media(min-width:1700px){
  #services .sv-wrap,#workflow .wf-pin,#kali-story .ks-spread {margin-left:max(4%,calc((100% - 1580px)/2));}
  #services .sv-receipts,#calculator .wf-view,#consultation {margin-right:max(4%,calc((100% - 1580px)/2));}
}
@media(max-width:750px){
  #stage .hero-rail {position:relative;inset:auto;margin-top:12px;margin-bottom:12px;width:100%;}
  #stage .hero-rail::before {display:none;}
  #stage .kali-studio {margin-bottom:34px;}
}
@media(prefers-reduced-motion:no-preference){
  #kali-companion img,#kali-companion:is([data-view="overhead"],[data-spot="keyboard"]) canvas{
    transform-origin:50% 100%;
    animation:kali-breath 3.8s ease-in-out infinite;
  }
  @keyframes kali-breath{0%,100%{scale:1 1}50%{scale:1 1.014}}
}
#kali-sketchbook{margin:2rem auto 0;width:min(88%,660px);color:#46382f}
#kali-sketchbook summary{cursor:pointer;font:1.35rem Georgia,serif}
#kali-sketchbook label{display:inline-block;margin:1rem .4rem 0 0}
#kali-sketchbook select,#kali-sketchbook button{font:inherit;color:inherit;padding:.45rem;border:1px solid #ad9681;background:#fff8ec;border-radius:5px}
#kali-sketchbook canvas{display:block;width:min(100%,320px);margin:auto}
