html[data-intro] .site,
html[data-intro] .buttons-section,
html[data-intro] .right-sidebar,
html[data-intro] .site-footer,
html[data-intro] #night-garden { opacity: 0; }
#garden-intro { position: absolute; top: 0; left: 0; width: 100%; z-index: 100; pointer-events: none; }
.intro-scene { position: fixed; inset: 0; background: var(--paper); transition: opacity .55s ease; }
.intro-scene canvas { width: 100%; height: 100%; display: block; }
.intro-name { position: absolute; top: 27%; left: 0; width: 100%; text-align: center; margin: 0; color: var(--ink); font: 400 clamp(64px, 13vw, 190px)/1 'Geist Serif', Georgia, serif; letter-spacing: -.045em; }
.intro-drawing { position: absolute; top: 0; left: 0; overflow: visible; opacity: 0; transition: opacity .45s ease; }
.intro-drawing text, .intro-drawing path, .intro-drawing rect {
  fill: none; stroke: #c5a268; stroke-width: .7;
  stroke-dasharray: 450; stroke-dashoffset: 450;
}
html[data-intro=trace] .intro-scene, html[data-intro=fill] .intro-scene { opacity: 0; }
html[data-intro=trace] .intro-drawing { opacity: 1; }
html[data-intro=trace] .intro-drawing :is(text, path, rect),
html[data-intro=fill] .intro-drawing :is(text, path, rect) {
  animation: intro-trace 1.65s linear both; animation-delay: var(--trace-delay, 0s);
}
html[data-intro=fill] .intro-drawing { opacity: 0; }
html[data-intro=fill] :is(.site,.buttons-section,.right-sidebar,.site-footer,#night-garden) {
  opacity: 1; transition: opacity .8s ease;
}
@keyframes intro-trace { to { stroke-dashoffset: 0; } }
@media(prefers-reduced-motion:reduce) {
  html[data-intro] :is(.site,.buttons-section,.right-sidebar,.site-footer,#night-garden) { opacity: 1; }
  #garden-intro { display: none; }
}
@media print { #garden-intro { display: none; } }

html[data-intro] .page-controls { z-index:110; }
html[data-intro=waiting] .page-controls .theme-switch { color:var(--ink); border-color:var(--line); }
html:not([data-theme=dark]) .intro-drawing :is(text,path,rect){stroke:#81465e;stroke-width:1}
html[data-theme=dark] .intro-drawing :is(text,path,rect){stroke:#dec18b;stroke-width:.85}
