/* The Slow Works: landing page. The app's own machine in the dark, and almost nothing else. */
body.landing {
  min-height: 100vh; margin: 0; overflow-x: hidden;
  background: radial-gradient(ellipse 70% 55% at 50% 40%, #17251d 0%, #0b110e 68%) fixed, #0b110e;
  color: #ece6d6;
}
#motes { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 0; }
#app { position: relative; z-index: 1; }
.works { min-height: 100svh; display: grid; align-content: center; justify-items: center; gap: 0; padding: 48px 16px 24px; }
.works .home-workshop { width: min(540px, 100%); text-align: center; }
.works .machine-scene { animation: arrive 3.5s .3s cubic-bezier(.22,.65,.25,1) both; }
.landing .home-bottle { cursor: pointer; }
.landing .home-bottle.rattle .home-art { animation: rattle .5s ease-in-out; }
@keyframes rattle { 0%, 100% { transform: none; } 20% { transform: rotate(-2.5deg); } 45% { transform: rotate(2deg); } 70% { transform: rotate(-1deg); } }
.whisper { min-height: 1.6em; margin: 6px 0 0; font: italic 400 1.05rem Georgia, serif; color: #d8b985; opacity: 0; transition: opacity 1.2s ease; }
.whisper.on { opacity: 1; }

/* the inscription: an engraved script, one glyph per letter */
.inscription { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; max-width: 640px; margin: 22px auto 0;
  animation: arrive 3s 2.4s cubic-bezier(.22,.65,.25,1) both; }
.word { display: flex; gap: 4px; }
.glyph { position: relative; width: 22px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; color: #b9975b; }
.glyph svg { width: 100%; height: 100%; overflow: visible; }
.glyph svg path, .glyph svg circle { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.glyph:hover, .glyph:focus-visible { color: #e8cf98; outline: none; }
.glyph .ltr { position: absolute; left: 50%; top: -1.25em; transform: translateX(-50%); font: 500 .78rem/1 ui-monospace, monospace; letter-spacing: 0;
  color: #f3dca8; opacity: 0; transition: opacity .6s ease; text-shadow: 0 0 8px #e8cf9888; pointer-events: none; }
.glyph.lit { color: #f3dca8; filter: drop-shadow(0 0 5px #e8cf9899); }
.glyph.lit .ltr { opacity: 1; }

.until { display: inline-flex; align-items: center; gap: 10px; margin: 30px 0 0; color: #8f8470; font: 600 .82rem/1 ui-monospace, monospace;
  letter-spacing: .22em; font-variant-numeric: tabular-nums; animation: arrive 3s 4s ease both; }
.until-glyph { width: 16px; height: 16px; }
.until-glyph svg { width: 100%; height: 100%; }

.stamp { display: flex; justify-content: center; gap: 12px; padding: 18px 16px 30px; font: 500 .68rem/1 system-ui, sans-serif; letter-spacing: .32em;
  text-transform: uppercase; color: #5f5a4b; animation: arrive 3s 5s ease both; }
.stamp .dot { color: #6b5a3a; letter-spacing: 0; }

@keyframes arrive { from { opacity: 0; filter: blur(6px); transform: translateY(8px); } to { opacity: 1; filter: none; transform: none; } }
@media (max-width: 600px) {
  .works { padding-top: 28px; }
  .inscription { gap: 10px 16px; } .glyph { width: 17px; height: 26px; } .word { gap: 3px; }
}
@media (prefers-reduced-motion: reduce) { .landing * { animation: none !important; transition: none !important; } }
/* the app's phone layout reorders its home grid; here the machine always comes first */
.works .home-workshop { grid-row: auto !important; width: min(540px, 100%) !important; margin: 0 !important; }
