/* The quiet pages as a talk (page.js): the painting above, Manes' one column under it, read by scrolling or a key.
   Loaded after page.css, worlds.css and world-life.css. Without script nothing here applies: the text stays in the cave. */
body.staged { --scene-h: clamp(48dvh, 36vw, 56dvh); height: 100svh; overflow: hidden; background: #0b0705; }
@media (max-width: 899px) { body.staged { --scene-h: 42svh; } }
.staged::before, .staged::after, .staged main.frame::before { display: none; }
.staged .frame-body { padding: 0; background: none; box-shadow: none; }
.staged:not(.reading) main.frame { display: none; }

/* ---- the stage: fixed, the vase's own bands above and below; whole pixels, or a part-covered last row shows the floor under the foot ---- */
.stage { position: fixed; z-index: 2; top: 0; left: 0; right: 0; height: var(--scene-h); height: round(down, var(--scene-h), 1px); overflow: hidden; transition: height .7s ease;
  --clay: #d9a06a; --glaze: #1a1310; --added-red: #8a2f1c; --fig-red: #8a2f1c; }
.reading .stage { height: 17svh; }
.stage .mband { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: var(--band-h);
  background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='28'%20height='16'%20viewBox='0%200%2028%2016'%3E%3Crect%20width='28'%20height='16'%20fill='%23160a06'/%3E%3Crect%20width='28'%20height='2.2'%20fill='%23b8432a'/%3E%3Crect%20y='13.8'%20width='28'%20height='2.2'%20fill='%23b8432a'/%3E%3Cpath%20d='M0%2011.6%20H23%20V4.4%20H5%20V9.2%20H17%20V6.8'%20fill='none'%20stroke='%23e0ab4e'%20stroke-width='1.6'%20stroke-linecap='square'/%3E%3C/svg%3E") left / auto 100% repeat-x; }
.stage .mband.top-band { top: 0; bottom: auto; height: var(--band-h); }
.stage .field { position: absolute; top: var(--band-h); bottom: var(--band-h); left: 0; right: 0; overflow: hidden; }
.stage .vw-sky { position: absolute; inset: 0; }
.stage svg.lay { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; }
.stage .vw-life { position: absolute; inset: 0; }
.stage .vw-figs { position: absolute; left: 0; right: 0; bottom: 0; height: 104%; display: flex; justify-content: center; align-items: flex-end; }
.stage .vw-figs svg { height: 100%; width: auto; max-width: 74%; overflow: visible; }
.stage .vw-figs .glaze { fill: var(--glaze); }
.staged .gutter { display: none; }
.staged .top { position: fixed; top: 10px; left: 0; right: auto; z-index: 4; padding: 10px 22px; }
.staged .mark { color: #1d0f08; } .staged .mark span { color: #8e2a16; }
.staged .langs { position: fixed; top: 16px; right: 22px; display: flex; align-items: center; gap: 4px; }
.staged .langs button, .staged .langs a { color: #4a2414; }
.staged .langs [aria-pressed="true"] { color: #1d0f08; }

/* ---- the talk: a calm dark band; one column of his words on a snapping scroller, the line in the middle lit, its
   neighbours dim and melting into the band, as a song's words do on a phone ---- */
.talk { position: fixed; z-index: 1; top: var(--scene-h); top: round(down, var(--scene-h), 1px); bottom: 0; left: 0; right: 0; color: #f1e4cf; background: #0b0705; }
.reading .talk { display: none; }
.line { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; gap: clamp(1.4rem, 5svh, 2.8rem); padding: 0 26px;
  overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: y mandatory; scrollbar-width: none; outline: 0;
  -webkit-mask-image: linear-gradient(transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(transparent, #000 15%, #000 85%, transparent); }
.line::-webkit-scrollbar { display: none; }
.line.gliding { scroll-snap-type: none; }
.line::before, .line::after { content: ""; flex: none; height: 34svh; }   /* room for the first and last line to reach the middle; as padding it would stretch the box */
.beat { flex: none; width: min(44rem, 100%); scroll-snap-align: center; scroll-snap-stop: always; text-align: center; opacity: .2; cursor: pointer; transition: opacity .45s ease;
  font: 400 var(--fs-xl) / var(--lh-read) var(--serif); color: #f6ebd8; text-wrap: pretty; }
.beat.now { opacity: 1; cursor: default; }
.beat p { margin: 0; }
/* no box round the lit line when the talk has the keys: the lit line and its ember already say where you are */
.line:focus-visible .now { outline: 0; }
.who { display: block; margin-bottom: 10px; font: 400 var(--fs-sm)/var(--lh-ui) var(--greek); letter-spacing: var(--ls-inscr); color: #d9925f; }
/* the ember that says there is more: it breathes where his words stop */
.now p::after, .way.now::after { content: ""; display: inline-block; width: .4em; height: .4em; margin-left: .5em; vertical-align: .1em; border-radius: 50%;
  background: radial-gradient(#ffd08a, #e0662c 62%, #8a2f1c); box-shadow: 0 0 10px 2px rgba(224, 102, 44, .5); animation: pg-ember 2.4s ease-in-out infinite alternate; }
@keyframes pg-ember { from { opacity: .5; transform: scale(.82); } to { opacity: 1; transform: scale(1.06); } }
.way { display: block; text-decoration: none; color: #f1d9b4; }
.way:hover { color: #fff3df; }
/* the one thing a line cannot carry, under it, and only on the line it belongs to */
.more { display: none; margin-top: 8px; font: 400 var(--fs-sm) var(--serif); color: #e0a877; text-underline-offset: 4px; text-decoration-color: #b8432a; }
.now .more { display: inline-block; }
.more:hover { color: #fff3df; }
.note { display: none; margin: 6px auto 0; max-width: 34em; font: italic 400 var(--fs-sm) var(--serif); color: #cdb49a; }
.now .note { display: block; }
/* where we are and a way to jump: dashes at the band's edge, the name beside the one under the pointer */
.rail { position: absolute; z-index: 1; top: 50%; right: 14px; transform: translateY(-50%); display: flex; flex-direction: column; align-items: flex-end; }
.rail button { position: relative; display: flex; align-items: center; justify-content: flex-end; width: 34px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; }
.rail button::after { content: ""; width: 12px; height: 2px; background: #6b5645; transition: width .3s ease, background .3s ease; }
.rail button:hover::after, .rail button[aria-current]::after { width: 22px; background: #d9925f; }
.rail span { position: absolute; right: 42px; padding: 3px 10px; border-radius: 4px; white-space: nowrap; background: #1c0f09; color: #f1d9b4; font: 400 var(--fs-sm) var(--serif); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.rail button:hover span, .rail button:focus-visible span { opacity: 1; }
.hint { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; margin: 0; padding: 26px 0 max(10px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, #0b0705 60%); text-align: center; font: italic 400 var(--fs-sm) var(--serif); color: #8d7863; pointer-events: none; }
.hint[hidden] { display: none; }
.talk button:focus-visible, .talk a:focus-visible, .back:focus-visible, .door:focus-visible { outline: 2px solid #f3e4cd; outline-offset: 2px; }
/* the way into the visit, in the same place at every line */
.door { position: fixed; z-index: 4; top: 42px; left: 8.8vw; font: 400 var(--fs-sm) var(--serif); color: #4a2414; text-decoration: none; }
.door:hover { text-decoration: underline; text-underline-offset: 4px; }
.pg-dark .door { color: #e9d6b6; }
.reading .door { display: none; }
.reading .foot-min { position: static; background: none; }

/* ---- the full text under the drawn-up painting: the page's own main, ink on the dark ---- */
.reading main.frame { position: fixed; z-index: 1; top: 17svh; bottom: 0; left: 0; right: 0; overflow-y: auto; padding: 18px 22px 40px; color: #ecdcc2; }
.legal { scroll-margin-top: calc(var(--ctl-h) + 14px); }
.back { position: sticky; top: 0; z-index: 2; display: block; margin: 0 auto 8px; min-height: var(--ctl-h); padding: 0 22px; cursor: pointer; border-radius: var(--r-pill); border: 1px solid #6e3a1e;
  background: #1c0f09; color: #f1d9b4; font: 400 var(--fs-sm) var(--serif); }
.reading .frame-head .updated { display: block; }
.reading .frame-head { padding: 0; }
.reading .frame-head h1 { color: #f6e9d3; font-size: var(--fs-2xl); }
.reading .section-nav, .reading .section-nav a { color: #e0a877; }
.reading .frame-head .updated { margin: 8px auto; text-align: center; color: #c8b394; font: italic 400 var(--fs-sm) var(--serif); }
.reading .frame-body p, .reading .frame-body li, .reading .frame-dl dd, .reading .frame-dl dt { color: #ecdcc2; }
.reading .frame-body > h2 { color: #e0a877; }
.reading .frame-body a { color: #efb684; }
.reading .frame-table-wrap th { color: #f1d9b4; background: rgba(224, 168, 119, .12); }
.reading .frame-table-wrap td { color: #ecdcc2; border-bottom-color: rgba(236, 220, 194, .2); }
.reading .frame-body .tablet, .reading .frame-body .tablet p, .reading .frame-body .tablet li { color: #1d0f08; }
.reading .frame-body .tablet a { color: #862c18; }
.reading .frame-body .todo { color: #f3c08e; background: rgba(224, 168, 119, .14); }

@media (max-width: 899px) {
  .line { padding-inline: 18px; }
  /* the phone: the dashes lie along the band's foot, and the words stop above them */
  .rail { top: auto; right: 0; left: 0; bottom: max(2px, env(safe-area-inset-bottom)); transform: none; flex-direction: row; justify-content: center; }
  .rail button { width: 22px; height: 24px; justify-content: center; }
  .rail button::after, .rail button:hover::after { width: 14px; }
  .rail button[aria-current]::after { width: 18px; }
  .rail span { display: none; }
  .door { top: 56px; left: 8vw; }
  .line { bottom: 26px; }
  .hint { bottom: 26px; padding-bottom: 2px; }
}
/* a short screen (most laptops): the words need little height, so the painting keeps over half of it; at 40% it was a
   thin strip with the heads cut by the band */
@media (max-height: 680px) {
  body.staged { --scene-h: clamp(44dvh, 27vw, 58dvh); }
  .beat { font-size: var(--fs-md); line-height: var(--lh-read); }
  .who { margin-bottom: 4px; }
}
@media (prefers-reduced-motion: reduce) { .now p::after, .way.now::after { animation: none; } }

/* a visitor crossing the place once; the ground's dark near edge under everything */
.vw-life .pg-walk > b { animation: pg-walk var(--t, 30s) linear 1 both; }
@keyframes pg-walk { from { transform: translateX(0); } to { transform: translateX(calc(var(--dx) * var(--s) * 1px)); } }
.pg-smoke { filter: blur(14px); transform-origin: 50% 100%; animation: pg-sway 9s ease-in-out infinite alternate; }
@keyframes pg-sway { from { transform: skewX(-4deg); } to { transform: skewX(5deg); } }
@media (prefers-reduced-motion: reduce) { .pg-smoke { animation: none; } }
.vw-life .pg-fg > b { background: linear-gradient(rgba(40, 18, 8, 0), rgba(40, 18, 8, .5)); }

/* ---- the painting answers only where it means something (page-scenes.js events): one rise into place ---- */
.stage svg.evs { pointer-events: none; }
.ev { display: none; }
.ev.on { display: inline; }
.ev.on .play { animation: pg-rise .8s cubic-bezier(.2, .8, .3, 1) both; transform-box: fill-box; }
@keyframes pg-rise { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .ev.on .play { animation: none; } }

/* ---- what moves in the paintings: transform and opacity only, still under reduced motion ---- */
.wipe { transform: scaleX(0); transform-box: fill-box; transform-origin: 0 50%; }
.scraper { opacity: 0; }
[data-topic="process"] .wipe { animation: pg-wipe 3.4s ease-in-out .5s both; }
[data-topic="process"] .scraper { animation: pg-scrape 3.4s ease-in-out .5s both; }
@keyframes pg-wipe { 0%, 8% { transform: scaleX(0); } 90%, 100% { transform: scaleX(1); } }
@keyframes pg-scrape { 0% { transform: translate(0, -34px); opacity: 0; } 8% { transform: translate(0, 0); opacity: 1; } 90% { transform: translate(118px, 0); opacity: 1; } 100% { transform: translate(118px, -34px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { [data-topic="process"] .wipe { animation: none; transform: none; } [data-topic="process"] .scraper { animation: none; } }
/* the phone: the men move left and a little smaller, so what answers each topic has the right of the picture */
@media (max-width: 899px) {
  .sc-side, .win-wall { display: none; }
  .stage .vw-figs { height: 84%; justify-content: flex-start; padding-left: 2vw; }
  .dip { transform: translate(-215px, 30px) scale(.86); transform-origin: 1400px 560px; }
  .ev .dip { transform: translate(-215px, 0) scale(.86); }
  .sc-teachers .mid .dip { transform: translate(-105px, 30px) scale(.86); }
}

/* ---- the painting as the side of a pot (page-pot.js) ---- */
.pot-frame { position: absolute; z-index: 4; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.stage.potted .mband { display: none; }
.stage.potted .field { top: 0; bottom: 0; }
.stage.potted .vw-figs { bottom: 4%; }
.potted .top { top: 22px; left: 0; right: 0; justify-content: center; padding: 10px 0; }
.potted .mark { margin-right: 0; }
.potted .langs { top: 24px; right: 8.8vw; }
/* the way in is the page's one call: a small glaze plaque so it holds on any wall, light or dark */
.potted .door { top: 34px; font-size: 1.12rem; letter-spacing: .02em; color: #f6e8d0; padding: 5px 14px 6px; background: rgba(26, 14, 8, .78); border: 1px solid rgba(214, 160, 106, .55); border-radius: 2px; }
.potted .door:hover { background: rgba(110, 40, 20, .9); text-decoration: none; }
/* the shoulder of the pot darkens under the name and the controls, so they read over a light wall or a figure's head */
.stage.potted .field::after { content: ""; position: absolute; z-index: 5; left: 0; right: 0; top: 0; height: clamp(70px, 24%, 130px); pointer-events: none;
  background: linear-gradient(rgba(11, 7, 5, .62), rgba(11, 7, 5, .3) 55%, rgba(11, 7, 5, 0)); }
.potted .mark, .potted .door, .potted .langs { text-shadow: 0 0 12px rgba(22, 11, 5, .9), 0 0 3px rgba(22, 11, 5, .9); }
.reading .pot-frame { display: none; }
.stage.potted .far, .stage.potted .mid, .stage.potted .vw-figs, .stage.potted .figs { will-change: transform; }
/* a head in its own svg over the pair (page-pot.js cutHeads): same box as the pair, only the rotation moves; the men's slow
   breathing is off here, or the head would part from the body */
.stage .vw-figs .breath { animation: none; }
.pg-headbox { position: absolute; inset: 0; display: flex; justify-content: inherit; align-items: flex-end; padding-left: inherit; pointer-events: none; }
.stage .vw-figs svg.pg-head { will-change: transform; transition: transform .9s cubic-bezier(.3, .6, .3, 1); }
@media (max-width: 899px) { .potted .top { top: 20px; right: auto; left: 8vw; } .potted .langs { top: 28px; right: 6vw; } .potted .door { top: 56px; font-size: .95rem; padding: 3px 10px 4px; } .stage.potted .vw-figs { bottom: 3%; } }

/* ---- the full face (page-pot.js meet): a rare cross-fade inside his head's svg ---- */
.pg-face { opacity: 0; transition: opacity .7s ease; }
.pg-head.facing .pg-face { opacity: 1; }
.pg-head > g { transition: opacity .7s ease; }
.pg-head.facing > g { opacity: 0; }

/* ---- the day on the pot (page-day.js): flat layers, opacity and transform only; the men stay above them ---- */
.pg-light { position: absolute; inset: 0; pointer-events: none; opacity: 0; will-change: opacity; }
.l-dawn { background: linear-gradient(rgba(214, 150, 150, .3), rgba(244, 214, 170, .2)); }
.l-noon { background: rgba(255, 244, 214, .15); }
.l-dusk { background: linear-gradient(rgba(176, 66, 30, .42), rgba(226, 110, 50, .2)); }
/* the night (02/11, the owner: brighter, beautifully): a deep warm dusk, not a murky brown, the moon's pale halo in it */
.l-night { background: radial-gradient(38% 60% at 80% 16%, rgba(244, 222, 178, .1), transparent 70%), linear-gradient(rgba(18, 12, 18, .8), rgba(40, 26, 22, .64) 58%, rgba(28, 18, 13, .74)); }   /* dark, so the place is lit by what burns in it */
.l-stars { background-image: radial-gradient(1.4px 1.4px at 12% 22%, #f3dfba, transparent), radial-gradient(1.2px 1.2px at 24% 12%, #f3dfba, transparent), radial-gradient(1.6px 1.6px at 37% 30%, #f3dfba, transparent), radial-gradient(1.2px 1.2px at 58% 16%, #f3dfba, transparent), radial-gradient(1.5px 1.5px at 71% 26%, #f3dfba, transparent), radial-gradient(1.2px 1.2px at 83% 13%, #f3dfba, transparent), radial-gradient(1.4px 1.4px at 66% 8%, #f3dfba, transparent), radial-gradient(circle 26px at 78% 22%, #f1d6a6 96%, transparent 100%), radial-gradient(circle 54px at 78% 22%, rgba(241, 214, 166, .12) 97%, transparent 100%); }
.l-sun { --sc: 255 240 200; --low: 0; left: 0; top: 0; right: auto; bottom: auto; width: 4.2vw; aspect-ratio: 1; height: auto; margin-left: -2.1vw; border-radius: 50%; opacity: 1; will-change: transform;
  background: radial-gradient(closest-side, #fffdf4 44%, rgb(var(--sc) / .96) 80%, rgb(var(--sc) / .5) 92%, rgb(var(--sc) / 0) 100%);
  box-shadow: 0 0 1vw .3vw rgb(var(--sc) / .6), 0 0 4.6vw 1.5vw rgb(var(--sc) / .3); }
/* the sun (a flat pale disc reads as a sticker): a white-hot core going to the hour's own colour at a soft limb
   (--sc, page-day.js: pale gold overhead, deep orange low), its bloom, a wide halo in the air, and low in the sky a long glow along the horizon */
.l-sun::before { content: ""; position: absolute; inset: -520%; border-radius: 50%; background: radial-gradient(closest-side, rgb(var(--sc) / .34), rgb(var(--sc) / .13) 38%, rgb(var(--sc) / 0) 100%); }
.l-sun::after { content: ""; position: absolute; left: -1500%; right: -1500%; top: -60%; bottom: -260%; opacity: var(--low); background: radial-gradient(closest-side, rgb(var(--sc) / .3), rgb(var(--sc) / 0) 100%); }
.stage.pg-dark { --clay: #1c1310; --glaze: #d08a58; --fig-red: #6a2410; }
.sc-privacy .l-stars, .sc-teachers .l-stars, .sc-choregia .l-stars { display: none; }   /* no moon indoors */
.pg-dark .mark { color: #efe1c6; } .pg-dark .mark span { color: #d9925f; }
/* about's lit wall runs up under the header on a short laptop: a soft dark halo keeps the letters on it */
.pg-dark .mark, .pg-dark .door, .pg-dark .langs { text-shadow: 0 0 14px rgba(22, 11, 5, .95), 0 0 6px rgba(22, 11, 5, .9), 0 0 2px rgba(22, 11, 5, .9); }
.pg-dark .langs button, .pg-dark .langs a, .pg-dark .langs [aria-pressed="true"] { color: #e9d6b6; }

/* ---- the place at work (page-scenes.js .work): small things on their own slow clocks; what burns
   lights flat shapes, no blur; all of it stops under reduced motion ---- */
.stage svg.work { pointer-events: none; }
/* the kiln's fire lights its own face, breathing; a stack of logs, seen along their length with their cut ends lit, waits beside the mouth */
.pg-glow { animation: pg-glow 3.1s ease-in-out infinite alternate; }
@keyframes pg-glow { 0% { opacity: .65; } 45% { opacity: 1; } 75% { opacity: .78; } 100% { opacity: .95; } }
/* the potter's wheel: a mark on the rim goes round, slow; who made it (about) throws a pot up out of the lump; how it was built, the kiln flares once */
.pg-turn { animation: pg-turn 3.2s linear infinite; }
@keyframes pg-turn { 0% { transform: translateX(-50px); opacity: 0; } 12%, 38% { opacity: 1; } 50% { transform: translateX(50px); opacity: 0; } 100% { transform: translateX(-50px); opacity: 0; } }
.ev.on .pg-throw { transform-box: fill-box; transform-origin: 50% 100%; animation: pg-throw 2.6s cubic-bezier(.3, .6, .3, 1) .3s both; }
@keyframes pg-throw { from { transform: scale(1.3, .2); } 40% { transform: scale(1.1, .55); } }
.pg-fire { transform-box: fill-box; transform-origin: 50% 100%; animation: pg-fire 1.7s ease-in-out infinite alternate; }
@keyframes pg-fire { from { transform: scale(1, .86); opacity: .86; } to { transform: scale(1.06, 1.1); opacity: 1; } }
.pg-mouth { fill: #2a0f06; }
.pg-pool { fill: #e0662c; opacity: 0; }
.pg-spark { fill: #fbc56a; opacity: 0; }
.pg-lampglow { opacity: 0; }
.stage.pg-dark .pg-mouth { fill: #7a2a10; }
.stage.pg-dark .pg-pool { opacity: .26; animation: pg-flick 3.7s ease-in-out infinite alternate; }
.stage.pg-dark .pg-lampglow { opacity: 1; animation: pg-lamp 4.3s ease-in-out infinite alternate; }
/* indoors from the evening on (page-day.js pg-eve): the lamp is lit already and the wall takes the warm dark of the hour */
.stage.pg-eve:not(.pg-dark) .pg-lampglow { opacity: .55; }
.stage:not(.pg-eve) .pg-flame { visibility: hidden; }
.pg-eve .pvw0 { stop-color: #8c5534; } .pg-eve .pvw1 { stop-color: #c98f62; } .pg-eve .pvw2 { stop-color: #bf8558; } .pg-eve .pvw3 { stop-color: #7a4a2b; }
.pg-eve .tcw0 { stop-color: #8c6a48; } .pg-eve .tcw1 { stop-color: #d2b48c; } .pg-eve .tcw2 { stop-color: #c4a47c; } .pg-eve .tcw3 { stop-color: #7e5e40; }
/* the weather of Athens through the open door (page-scenes.js DOOR): a cloud bank drifting, rain falling */
.pg-dsky, .pg-drain { display: none; }
.stage:is(.wx-partly, .wx-cloud, .wx-over, .wx-fog) .pg-dsky, .stage.wx-rain .pg-drain { display: inline; }
.pg-dsky image { opacity: .45; animation: pg-dsky 90s linear infinite; }
@keyframes pg-dsky { to { transform: translateX(-400px); } }
.pg-drain rect { animation: pg-drain .6s linear infinite; }
@keyframes pg-drain { to { transform: translateY(120px); } }
@media (prefers-reduced-motion: reduce) { .pg-dsky image, .pg-drain rect { animation: none; } }
@keyframes pg-lamp { 0% { opacity: .82; } 40% { opacity: 1; } 70% { opacity: .88; } 100% { opacity: 1; } }
.pg-nightdoor { display: none; } .stage.pg-dark .pg-nightdoor { display: inline; }
/* a room at night: the dark deepens with the distance from its lamp (the lamp near x 66%) */
.sc-privacy .l-night, .sc-teachers .l-night { background: radial-gradient(60% 80% at 66% 48%, rgba(38, 18, 9, .28), rgba(34, 15, 8, .62) 60%, rgba(24, 10, 5, .84)); }
.pg-nl { display: none; } .stage.pg-dark .pg-nl { display: inline; }
.stage.pg-dark .vs:has(.bird) { display: none; }   /* no birds in the air after dark */
.stage.pg-dark .pg-nlg { animation: pg-lamp 4.1s ease-in-out infinite alternate; }
.pg-nlf { transform-box: fill-box; transform-origin: 50% 100%; animation: pg-nlf 1.7s ease-in-out infinite alternate; }
@keyframes pg-nlf { to { transform: scaleY(1.12) skewX(-3deg); } }
.stage.pg-dark .pg-spark { animation: pg-spark 5.4s ease-out infinite; }
.pg-n { display: none; opacity: .78; } .stage.pg-dark .pg-n { display: inline; } .stage.pg-dark .pg-d { display: none; }
.vw-life .pg-door > b { animation-name: pg-walk, pg-doorfade; animation-duration: var(--t), var(--t); animation-timing-function: linear; animation-fill-mode: both; }
@keyframes pg-doorfade { 0% { opacity: 0; } 12%, 88% { opacity: 1; } 100% { opacity: 0; } }
.vw-lf .vs.pg-far { opacity: .85; }
@keyframes pg-flick { 0% { opacity: .16; } 40% { opacity: .28; } 70% { opacity: .2; } 100% { opacity: .3; } }
@keyframes pg-spark { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: 1; } 100% { transform: translate(16px, -130px); opacity: 0; } }
/* each moving child repaints the whole layer: the fire holds while the pot turns, and the phone keeps only the fire */
.stage.turning .work * { animation-play-state: paused !important; }
@media (max-width: 899px) {
  .pg-sparks, .sc-privacy svg.work { display: none; }
  .stage.pg-dark .pg-pool { animation: none; opacity: .24; }
}
@media (prefers-reduced-motion: reduce) { .pg-turn, .ev.on .pg-throw, .sc-about[data-topic="built"] .pg-fire, .sc-about .fa, .sc-about .fb, .pg-glow, .pg-nlg, .pg-nlf, .pg-fire, .stage.pg-dark .pg-pool, .stage.pg-dark .pg-lampglow, .stage.pg-dark .pg-spark, .pg-tainia, [data-topic="s2"] .pg-name { animation: none; } }

/* ---- one pot, five places: between pages the painting goes round the curve and the next comes in; the frame and the band hold
   still. Where the browser has no cross-document view transitions the page simply loads ---- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .stage .field { view-transition-name: pg-field; }
  .pot-frame { view-transition-name: pg-pot; }
  .talk { view-transition-name: pg-talk; }
  ::view-transition-old(pg-field) { animation: pg-round-out .75s cubic-bezier(.5, 0, .7, .6) both; transform-origin: 0 50%; }
  ::view-transition-new(pg-field) { animation: pg-round-in .75s cubic-bezier(.2, .6, .4, 1) both; transform-origin: 100% 50%; }
  ::view-transition-group(pg-pot) { animation: none; z-index: 3; }
  ::view-transition-old(pg-pot) { display: none; }
  ::view-transition-new(pg-pot) { animation: none; opacity: 1; }
  @keyframes pg-round-out { to { transform: perspective(1500px) translateX(-34%) rotateY(-62deg); opacity: .25; } }
  @keyframes pg-round-in { from { transform: perspective(1500px) translateX(34%) rotateY(62deg); opacity: .25; } }
}

/* ---- the weather of Athens (page-day.js weather): faint warm clouds drifting over the far place, never drawing the eye;
   cloudy or overcast a warm cover takes the sun; rain in added white. The night's dark lies over both. Off indoors ---- */
.pg-clouds, .pg-rain { display: none; opacity: 1; overflow: hidden; }
.pg-clouds { bottom: auto; height: 52%; -webkit-mask-image: linear-gradient(#000 50%, transparent); mask-image: linear-gradient(#000 50%, transparent); }
.stage:is(.wx-partly, .wx-cloud, .wx-over, .wx-fog) .pg-clouds { display: block; }
.stage.wx-rain .pg-rain { display: block; }
.pg-clouds i { position: absolute; left: 0; top: 0; height: 100%; width: calc(100% + 1600px); opacity: .4;
  background: url("/world/art/sky/clouds-near-dusk.webp") 0 0 / 1600px 100% repeat-x; animation: pg-drift 170s linear infinite; }
.pg-clouds i:first-child { height: 64%; opacity: .3; background-image: url("/world/art/sky/clouds-far-dusk.webp"); animation-duration: 320s; animation-delay: -90s; }
@keyframes pg-drift { to { transform: translate3d(-1600px, 0, 0); } }
.stage.wx-cloud .pg-clouds { background: linear-gradient(rgba(160, 100, 74, .5), rgba(160, 100, 74, .2) 62%, transparent 92%); }
.stage:is(.wx-over, .wx-fog) .pg-clouds { background: linear-gradient(rgba(122, 67, 47, .55), rgba(160, 100, 74, .4) 58%, transparent); }
.stage:is(.wx-cloud, .wx-over, .wx-fog) .l-sun { visibility: hidden; }
.stage:is(.wx-cloud, .wx-over, .wx-fog, .wx-rain) .l-stars { visibility: hidden; }   /* no moon or stars through a rain cloud; its halo stays */
.pg-rain i { position: absolute; left: 0; right: -180px; top: -240px; bottom: 0; background-color: #f3e6cc; opacity: .26;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='120'%3E%3Cpath d='M10 6 l-2 16 M52 40 l-2 16 M78 84 l-2 16 M30 70 l-2 16 M66 4 l-2 13 M8 96 l-2 13 M40 104 l-2 10 M84 30 l-2 10' stroke='black' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='120'%3E%3Cpath d='M10 6 l-2 16 M52 40 l-2 16 M78 84 l-2 16 M30 70 l-2 16 M66 4 l-2 13 M8 96 l-2 13 M40 104 l-2 10 M84 30 l-2 10' stroke='black' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");
  -webkit-mask-size: 90px 120px; mask-size: 90px 120px; animation: pg-fall .55s linear infinite; }
.pg-rain i + i { opacity: .14; -webkit-mask-size: 60px 80px; mask-size: 60px 80px; animation-duration: .8s; }
.stage.wx-heavy .pg-rain i { opacity: .36; } .stage.wx-heavy .pg-rain i + i { opacity: .2; }
.stage.pg-dark .pg-rain i { opacity: .12; } .stage.pg-dark .pg-rain i + i { opacity: .06; }   /* after dark a light rain is only glimpsed, not a grey veil (02/11) */
.stage.pg-dark.wx-heavy .pg-rain i { opacity: .24; } .stage.pg-dark.wx-heavy .pg-rain i + i { opacity: .13; }   /* a heavy rain still shows at night (03/11): it had no effect after dark at all */
@keyframes pg-fall { to { transform: translate3d(-60px, 240px, 0); } }
@media (prefers-reduced-motion: reduce) { .pg-clouds i, .pg-rain i { animation: none; } }

/* ---- about: the workshop of Hephaestus (page-forge.js): the maids' lamps flicker and breathe, the gold takes their light,
   motes drift in the warm air. All still under reduced motion ---- */
.sc-about .fg-lamp { animation: fg-breathe 3.1s ease-in-out infinite alternate; } .sc-about .fg-lamp.b { animation-delay: -1.7s; }
.sc-about .fg-flame { animation: fg-flicker 1.3s ease-in-out infinite alternate; } .sc-about .fg-flame.b { animation-delay: -.6s; }
.sc-about .fg-gold { animation: fg-gleam 5.5s ease-in-out infinite alternate; } .sc-about .fg-gold.b { animation-delay: -2.8s; }
@keyframes fg-breathe { from { opacity: .72; } to { opacity: 1; } }
@keyframes fg-flicker { from { transform: scale(.9, .86); } to { transform: scale(1.06, 1.12) skewX(-3deg); } }
@keyframes fg-gleam { from { filter: brightness(.9); } to { filter: brightness(1.08); } }
/* about's events (page-forge.js events): each plays once on its line and rests on its end; only the end under reduced motion */
.sc-about .ev.on .fg-roll { animation: fg-roll 3s cubic-bezier(.25, .7, .3, 1) both; }
.sc-about .fg-wheel { transform-box: fill-box; transform-origin: center; }
.sc-about .ev.on .fg-wheel { animation: fg-spin 3s cubic-bezier(.25, .7, .3, 1) both; }
@keyframes fg-roll { from { transform: translateX(-170px); } }
@keyframes fg-spin { from { transform: rotate(-1400deg); } }
.sc-about .ev.on .fg-fade { animation: fg-fade 1.8s ease-out both; }
@keyframes fg-fade { from { opacity: 0; } }
.sc-about .ev.on .fg-draw, .sc-about .ev.on .fg-draw path { animation: fg-draw 2.2s ease-in-out .3s both; }
@keyframes fg-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.sc-about .ev.on .fg-melt { animation: fg-melt 6s ease-in 2.2s both; }
@keyframes fg-melt { to { opacity: .08; } }
.sc-about[data-topic="built"] .fg-lamp { animation: fg-flare 2.6s ease-out both, fg-breathe 3.1s ease-in-out 2.6s infinite alternate; }
@keyframes fg-flare { 0% { opacity: .8; transform: scale(1); } 30% { opacity: 1; transform: scale(1.35); } 100% { opacity: 1; transform: scale(1); } }
.sc-about .fg-lamp { transform-box: fill-box; transform-origin: center; }
/* the rules are cut on the vase's foot: the vase on the turntable turns over */
.sc-about .fg-amph { transform-box: fill-box; transform-origin: 50% 50%; transition: transform 1.4s cubic-bezier(.4, 0, .2, 1); }
.sc-about[data-topic="rules"] .fg-amph { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) {
  .sc-about .ev.on .fg-roll, .sc-about .ev.on .fg-wheel, .sc-about .ev.on .fg-fade, .sc-about .ev.on .fg-draw, .sc-about .ev.on .fg-draw path, .sc-about[data-topic="built"] .fg-lamp { animation: none; }
  .sc-about .ev.on .fg-melt { animation: none; opacity: .08; }
  .sc-about .fg-amph { transition: none; }
}
@media (prefers-reduced-motion: reduce) { .sc-about .fg-lamp, .sc-about .fg-flame, .sc-about .fg-gold { animation: none; } }
/* ---- gymnasium: the Academy (page-gym.js): the olive sprays stir, the river runs, the torches and the altar's fire flicker,
   the victor's fillet lifts. The torches come with the torch race, the wreath with the victor, the others step back. All still
   under reduced motion ---- */
.sc-gymnasium .gy-wreath { display: none; }
.sc-gymnasium[data-topic="wreath"] .gy-wreath { display: inline; }
.sc-gymnasium .gy-run, .sc-gymnasium .figs > image { transition: opacity 1s ease; }
.sc-gymnasium[data-topic="wreath"] .gy-run:not(.gy-win), .sc-gymnasium[data-topic="wreath"] .figs > image { opacity: .55; }
.sc-gymnasium .gy-sway { transform-box: view-box; animation: gy-sway 7.5s ease-in-out infinite alternate; }
.sc-gymnasium .gy-water { animation: gy-water 9s ease-in-out infinite alternate; }
.sc-gymnasium .gy-flame { animation: fg-flicker 1.1s ease-in-out infinite alternate; }
.sc-gymnasium .gy-fillet { animation: pg-tainia 4.5s ease-in-out infinite alternate; }
@keyframes gy-sway { from { transform: rotate(-1.2deg); } to { transform: rotate(1.4deg); } }
@keyframes gy-water { from { transform: translateX(-14px); } to { transform: translateX(14px); } }
/* the sky under the name is a deep wine at every hour, so the header takes light letters; the sun's halo smaller, so it
   does not lay a white bloom on a runner's head when it crosses the torches' height */
body:has(> .sc-gymnasium) .mark { color: #efe1c6; } body:has(> .sc-gymnasium) .mark span { color: #e08a58; }
body:has(> .sc-gymnasium) :is(.door, .langs button, .langs a, .langs [aria-pressed="true"]) { color: #ecdcbe; }
.sc-gymnasium .l-sun::before { inset: -240%; }
/* the Academy looks at the city: from dusk on the hour's veils thin over the top half, so the rock, the houses and the hills stay
   in view (under the full dusk and night tints the distance was gone, the owner, 21/11) */
.sc-gymnasium .l-dusk { background: linear-gradient(rgba(176, 66, 30, .16), rgba(196, 86, 40, .3) 55%, rgba(226, 110, 50, .2)); }
.sc-gymnasium .l-night { background: radial-gradient(38% 60% at 80% 16%, rgba(244, 222, 178, .1), transparent 70%), linear-gradient(rgba(18, 12, 18, .5), rgba(40, 26, 22, .6) 58%, rgba(28, 18, 13, .74)); }
/* an overcast sky (Athens' real weather) thins over the Academy too: its clouds a veil, not a wall before the city */
.stage.sc-gymnasium:is(.wx-partly, .wx-cloud, .wx-over, .wx-fog) .pg-clouds i { opacity: .22; } .stage.sc-gymnasium:is(.wx-partly, .wx-cloud, .wx-over, .wx-fog) .pg-clouds i:first-child { opacity: .16; }
.stage.sc-gymnasium.wx-cloud .pg-clouds { background: linear-gradient(rgba(160, 100, 74, .28), rgba(160, 100, 74, .1) 62%, transparent 92%); }
.stage.sc-gymnasium:is(.wx-over, .wx-fog) .pg-clouds { background: linear-gradient(rgba(122, 67, 47, .3), rgba(160, 100, 74, .16) 58%, transparent); }
@media (prefers-reduced-motion: reduce) { .sc-gymnasium .gy-sway, .sc-gymnasium .gy-water, .sc-gymnasium .gy-flame, .sc-gymnasium .gy-fillet { animation: none; } }

/* ---- choregia: the rich man's andron, the poor man in the street (page-choregia-scene.js). The ceiling stays dark, so the
   header takes the night's light letters at every hour; the window shows the street by day (.ch-d) or under the moon (.ch-n);
   the room is lit by its lamp, so the night only deepens its edges. The flame flickers, the lamp's pool breathes, the sun on
   the street comes and goes as a cloud passes. All still under reduced motion ---- */
body:has(> .sc-choregia) .mark { color: #efe1c6; } body:has(> .sc-choregia) .mark span { color: #d9925f; }
body:has(> .sc-choregia) :is(.door, .langs button, .langs a, .langs [aria-pressed="true"]) { color: #e9d6b6; }
.ch-n { display: none; } .stage.pg-dark .ch-n { display: inline; } .stage.pg-dark .ch-d { display: none; }
.sc-choregia .l-noon { display: none; }
.sc-choregia .l-night { background: radial-gradient(40% 62% at 49% 52%, rgba(30, 14, 7, .12), rgba(30, 14, 7, .58) 64%, rgba(16, 7, 3, .86)); }
.pg-eve .chw0 { stop-color: #c78e5a; } .pg-eve .chw1 { stop-color: #a86c40; } .pg-eve .chw2 { stop-color: #643a20; }
.sc-choregia .ch-flame { animation: fg-flicker 1.3s ease-in-out infinite alternate; }
.sc-choregia .ch-glow { animation: fg-breathe 3.4s ease-in-out infinite alternate; }
.sc-choregia .ch-sun { opacity: 0; animation: ch-sun 23s ease-in-out infinite; }
@keyframes ch-sun { 0%, 30% { opacity: 0; } 50% { opacity: .22; } 70%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sc-choregia :is(.ch-flame, .ch-glow, .ch-sun) { animation: none; } }
