/* This button is only a hit target and caption: the same scroll rig lives above it. */
#openAbout { position: absolute; z-index: 5; left: 408px; top: 4px; width: 156px; height: 124px; margin: 0; padding: 0; border: 0; border-radius: 16px; background: transparent; color: #f6dfd8; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
#openAbout::before { content: ''; position: absolute; inset: -6px; border-radius: 18px; }
#openAbout::after { content: ''; position: absolute; z-index: -1; inset: 13px 0 0; border: 1px solid #dba7ad55; border-radius: 16px; background: radial-gradient(ellipse at center, #9c445e22, #54233608 70%); box-shadow: 0 0 22px #a04b5828; }
#openAbout img { display: none; }
#openAbout > span { position: absolute; top: 77px; left: 0; right: 0; display: block; margin: 0 auto; width: max-content; padding: 1px 13px 5px; border-bottom: 1px solid #e7bec970; font: 500 25px/1 var(--ht-text, 'Arial Narrow', sans-serif); letter-spacing: .7px; text-shadow: 0 1px 5px #341b28; }
#openAbout:hover::after { border-color: #f2bdc5b0; background-color: #7d354b30; box-shadow: 0 0 25px #a9556660; }
#openAbout:focus-visible { outline: 3px solid #f1c4cb; outline-offset: 5px; }
#openAbout:disabled { cursor: default; }
body:not([data-phase="room"]) #openAbout { pointer-events: none; }

/* The object never fades between replacements. Only its room backdrop dissolves. */
#aboutPortal { --about-burgundy: #773f4c; --about-paper-clip: 49%; --about-roller-shift: 40.75%; --about-copy-opacity: 0; --about-copy-y: 8px; --about-backdrop: 0; position: fixed; z-index: 8; inset: 0; overflow: hidden; overscroll-behavior: contain; opacity: 1; pointer-events: none; background: transparent; color: #402b2e; color-scheme: light; font-family: var(--ht-text, 'Arial Narrow', sans-serif); font-synthesis: none; -webkit-text-size-adjust: 100%; scrollbar-width: none; }
#aboutPortal::before { content: ''; position: fixed; inset: 0; background: radial-gradient(ellipse at 50% 40%, #f3e9dbed 0, #eee4d9f5 64%, #dfd1c3f7 100%); opacity: var(--about-backdrop); pointer-events: none; }
#aboutPortal.is-open { pointer-events: auto; overflow-y: auto; }
#aboutPortal::-webkit-scrollbar { display: none; }
#aboutPortal *, #aboutPortal *::before, #aboutPortal *::after { box-sizing: border-box; }
.about-shell { position: relative; display: grid; place-items: center; min-height: 100%; padding: max(14px, var(--safe-top)) 4px max(14px, var(--safe-bottom)); }
.about-stage { --about-cap: 16cqw; position: relative; width: min(100%, 920px); container-type: inline-size; transform-origin: 50% 50%; will-change: transform; }
/* Keep the wooden rollers proportional to width, independently of article length. */
.about-paper-reveal { position: absolute; inset: calc(var(--about-cap) * .92) 0; overflow: hidden; clip-path: inset(var(--about-reveal-clip, 50%) 0); pointer-events: none; }
.about-paper-reveal img { position: absolute; display: block; left: 0; top: -11.36%; width: 100%; height: 123.46%; object-fit: fill; pointer-events: none; }
.about-roller { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; will-change: transform; }
.about-roller img { position: absolute; left: 0; display: block; width: 100%; height: calc(var(--about-cap) * 10.204082); object-fit: fill; pointer-events: none; }
.about-roller-top { clip-path: inset(0 0 calc(100% - var(--about-cap))); transform: translateY(calc((50% - var(--about-cap) * .94) * (1 - var(--about-unroll, 0)))); }
.about-roller-bottom { clip-path: inset(calc(100% - var(--about-cap)) 0 0); transform: translateY(calc((var(--about-cap) * .94 - 50%) * (1 - var(--about-unroll, 0)))); }
.about-roller-top img { top: 0; }
.about-roller-bottom img { bottom: 0; }
.about-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: stretch; min-height: 600px; margin: 0; padding: calc(var(--about-cap) + 14px) 15% calc(var(--about-cap) + 20px); opacity: var(--about-copy-opacity); transform: translateY(var(--about-copy-y)); clip-path: inset(var(--about-reveal-clip, 50%) 0); text-align: left; }
.about-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; margin: 0 0 12px; }
.about-wordmark { display: block; flex: 0 1 180px; width: 180px; height: 42px; margin: 0; background: var(--about-burgundy); mask: url('/assets/wordmark.svg') center/contain no-repeat; -webkit-mask: url('/assets/wordmark.svg') center/contain no-repeat; }
.about-wordmark:focus { outline: none; }
.about-feature { display: grid; gap: 10px; align-items: center; width: 100%; margin: 0 0 22px; }
.about-illustration { width: 114%; margin: 0 -7%; }
.about-illustration img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.about-teaching { width: 110%; margin: 0 -5%; }
.about-copy p { width: 100%; margin: 0; color: #4f3a37; font-size: clamp(17px, 4.4vw, 19px); line-height: 1.5; font-weight: 400; }
.about-copy strong { color: var(--about-burgundy); font-weight: 600; }
.about-copy p.about-contact { margin-top: 5px; padding-top: 19px; border-top: 1px solid #773f4c38; }
.about-exit { display: inline-flex; flex: 0 0 auto; justify-content: flex-start; align-items: center; gap: 6px; min-height: 44px; margin: 0; padding: 5px 0; border: 0; border-radius: 0; background: transparent; color: var(--about-burgundy); font: 500 14px/1.2 var(--ht-text, 'Arial Narrow', sans-serif); cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.about-exit > span:first-child { font-family: Arial, sans-serif; font-size: 20px; font-weight: 400; }
.about-exit > span:last-child { border-bottom: 1px solid #773f4c50; padding-bottom: 2px; }
.about-exit:hover > span:last-child { border-color: var(--about-burgundy); }
.about-exit:focus-visible { outline: 2px solid var(--about-burgundy); outline-offset: 4px; }
.about-bow { position: absolute; z-index: 4; left: 24%; top: 50%; display: block; width: 52%; height: auto; overflow: visible; transform: translateY(-46%); filter: drop-shadow(0 2px 2px #32121d60); pointer-events: none; }
@media (max-width: 360px) { .about-header { gap: 12px; } .about-wordmark { width: 132px; flex-basis: 132px; height: 38px; } .about-copy p { font-size: 16.5px; } }
@media (min-width: 640px) { .about-shell { padding-left: 18px; padding-right: 18px; } .about-header { margin-bottom: 20px; } .about-feature { grid-template-columns: 1.05fr 1fr; gap: 24px; margin-bottom: 28px; } .about-intro .about-illustration { width: 114%; margin-left: -10%; } .about-team { grid-template-columns: 1fr .9fr; } .about-team .about-illustration { order: 2; width: 114%; margin-right: -10%; } .about-copy p { font-size: 19px; } .about-copy p.about-contact { max-width: 620px; margin-top: 0; } }
