/* The landing's opening, "through the painted panel" (assets/hero.js, docs/IDEAS.md). Every rule is scoped to
   html.h3, so the rest of the page is untouched. Motion is transform/opacity only and lives under no-preference;
   .h3-still (reduced motion, ?shot=1, or a ?t= debug freeze) is the settled frame. */

.h3-light { position: absolute; z-index: 0; pointer-events: none; overflow: hidden;
  -webkit-mask: url("/assets/land/acropolis.svg") 0 0 / 100% 100% no-repeat; mask: url("/assets/land/acropolis.svg") 0 0 / 100% 100% no-repeat; }
.h3-light i { position: absolute; }
.h3-light .sweep { top: 0; bottom: 0; left: 0; width: 38%; opacity: 0; transform: translateX(-110%);
  background: linear-gradient(100deg, rgba(255, 214, 150, 0), rgba(255, 214, 150, .5) 45%, rgba(255, 236, 196, .62) 52%, rgba(255, 214, 150, 0)); }
.h3-light .crown { inset: 0; opacity: .32;
  background: radial-gradient(28% 20% at 37% 6%, rgba(255, 210, 140, .75), rgba(255, 180, 100, 0)); }
.h3-city { position: absolute; left: 0; right: 0; bottom: calc(var(--wall) - 1px); height: 16svh; pointer-events: none; overflow: hidden; }
.h3-city .lamp { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  background: radial-gradient(closest-side, #ffe6b0 0, #ffb45e 16%, rgba(240, 130, 50, .35) 42%, rgba(220, 100, 40, 0) 100%); }
.h3-glaze { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.h3-glaze i { position: absolute; left: -4px; right: -4px; background: #0b0706; }
.h3-glaze .t { top: 0; height: 50.4%; }
.h3-glaze .b { bottom: 0; height: 50.4%; }
/* the bands at the cut, as on a neck-amphora: tongues above the panel, a meander below it */
.h3-glaze .t::after, .h3-glaze .b::before { content: ""; position: absolute; left: 0; right: 0; }
.h3-glaze .t::after { bottom: 0; height: 26px; background: #b86a3b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='26'%3E%3Cpath d='M1 0h16v6c0 9-3.6 16-8 16S1 15 1 6z' fill='%23120806'/%3E%3Cpath d='M19 0h16v6c0 9-3.6 16-8 16s-8-7-8-16z' fill='%237a2414'/%3E%3Crect y='24' width='36' height='2' fill='%23120806'/%3E%3C/svg%3E") 0 0 / 36px 26px repeat-x; }
.h3-glaze .b::before { top: 0; height: 24px; background: #b86a3b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M0 20h20V4H6v10h8V9h-3' fill='none' stroke='%23120806' stroke-width='2.6'/%3E%3Crect width='24' height='1.6' fill='%23120806'/%3E%3Crect y='22.4' width='24' height='1.6' fill='%23120806'/%3E%3C/svg%3E") 0 0 / 24px 24px repeat-x; }
.h3-glaze .line { top: 50%; height: 2px; margin-top: -1px; background: #e09a5e; transform: scaleX(0); transform-origin: 30% 50%; }
@media (max-width: 700px), (max-aspect-ratio: 4/5) {
  .h3-city { height: 12svh; }
}

/* ---------------------------------------------------------------- the motion (never under reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  /* the panel parts at ~0.55 s, the camera drifts back for 10 s, the light runs over the rock, the lamps come on
     (owner 26/10: the opening "stays on screen too long" -- the glaze split and the headline/cue now land in
     ~2.1 s instead of ~4.6 s; only the delays/durations changed, not the choreography) */
  .h3:not(.h3-still) .h3-glaze .line { animation: h3line .45s cubic-bezier(.6, 0, .3, 1) .12s both, h3fade .3s ease-in .7s forwards; }
  .h3:not(.h3-still) .h3-glaze .t { animation: h3up 1.3s cubic-bezier(.7, 0, .2, 1) .55s both; will-change: transform; }
  .h3:not(.h3-still) .h3-glaze .b { animation: h3down 1.3s cubic-bezier(.7, 0, .2, 1) .55s both; will-change: transform; }
  .h3:not(.h3-still) :is(.ridge, .far, .agora, .acro, .acro-glow, #fire, .h3-light, .roofs-far, .roofs, .way, .h3-city, .hsmoke, .ground, .vase-w) { transform-origin: var(--ox) var(--oy);
    animation: h3cam 10s cubic-bezier(.3, .05, .2, 1) .2s backwards; }
  .h3:not(.h3-still) .mist { transform-origin: var(--ox) var(--oy); animation: drift 22s ease-in-out infinite alternate, h3cam 10s cubic-bezier(.3, .05, .2, 1) .2s backwards; }
  .h3:not(.h3-still) .branch { animation: sway 6.5s ease-in-out infinite alternate, h3camb 9s cubic-bezier(.3, .05, .2, 1) .2s backwards; }
  .h3 .ridge { --cz: 1.1; --cx: 1.5vw; --cy: 1svh; }
  .h3 .far { --cz: 1.16; --cx: 2.5vw; --cy: 1.5svh; }
  .h3 :is(.acro, .acro-glow, #fire, .h3-light) { --cz: 1.3; --cx: 4vw; --cy: 3svh; }
  .h3 .agora { --cz: 1.24; --cx: 3.5vw; --cy: 2.5svh; }
  .h3 .roofs-far { --cz: 1.34; --cx: 5vw; --cy: 3.5svh; }
  .h3 :is(.roofs, .way, .h3-city, .hsmoke, .mist) { --cz: 1.38; --cx: 6vw; --cy: 4svh; }
  .h3 :is(.ground, .vase-w) { --cz: 1.5; --cx: 8vw; --cy: 8svh; }
  .h3:not(.h3-still) .h3-light .sweep { animation: h3sweep 2.4s cubic-bezier(.45, .05, .4, 1) 1s both; }
  .h3:not(.h3-still) .h3-light .crown { animation: h3crown 12s ease-in-out .8s both, h3crownb 9s ease-in-out 12.8s infinite alternate; }   /* then it breathes, never frozen (07/11) */
  .h3:not(.h3-still) .h3-city .lamp { animation: h3lamp 1.4s ease-out var(--d) both, h3ember var(--e, 13s) ease-in-out calc(var(--d) + 1.4s) infinite alternate; }   /* every lamp smoulders, each at its own pace */
  .h3:not(.h3-still) .h3-city .lamp.fl { animation: h3lamp 1.4s ease-out var(--d) both, h3flick var(--f) ease-in-out calc(var(--d) + 1.4s) infinite alternate; }
  .h3:not(.h3-still) .txt .l1 { animation-delay: 1s; }
  .h3:not(.h3-still) .txt .l2 { animation-delay: 1.6s; }
  .h3:not(.h3-still) .txt .trust { animation-delay: 1.9s; }
  .h3:not(.h3-still) .txt .cue { animation-delay: 2.1s; }
}
@keyframes h3line { from { transform: scaleX(0); } }
@keyframes h3fade { to { opacity: 0; } }
@keyframes h3up { to { transform: translateY(-104%); } }
@keyframes h3down { to { transform: translateY(104%); } }
@keyframes h3cam { from { scale: var(--cz); translate: var(--cx) var(--cy); } }
@keyframes h3camb { from { scale: 1.7; translate: 14vw -6svh; } }
@keyframes h3sweep { 0% { opacity: 0; transform: translateX(-110%); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(290%); } }
@keyframes h3crown { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: .32; } }
@keyframes h3lamp { from { opacity: 0; transform: scale(.3); } 40% { opacity: 1; transform: scale(1.5); } }
@keyframes h3flick { to { opacity: .55; } }
@keyframes h3crownb { from { opacity: .32; } to { opacity: .44; } }
@keyframes h3ember { to { opacity: .78; } }
.h3-still .h3-glaze { display: none; }
