/* Lumen Alto home. site.js moves the showcase hall; CSS does the drawing. Without html.motion (reduced
   motion or no script) the hall is a plain grid of screens.
   hero      the title's period spills light: a halftone of small periods that flows around the letters,
             the paragraph, and the buttons, and that the pointer stirs (spill.js)
   hall      "Showcase": three sample sites stand in a row; the visitor drags through them, uses the
             arrows, or picks a screen
   The sections below the hall (build features, process) are laid out in combined.css and wireframe.css.
   Pricing panels are shared with the services page and live in site.css. */

/* ================================================================== hero */
.hero { position: relative; isolation: isolate; overflow: hidden; height: 100svh; min-height: 620px; background: var(--night); color: var(--flare);
  --dot: var(--peri); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 55% at 80% 78%, rgba(31, 63, 174, .3), transparent 70%),
              radial-gradient(45% 40% at 6% 4%, rgba(169, 184, 236, .07), transparent 70%); }
/* sized to the screen's width and height, so three lines always fit above the buttons */
.hero-title { align-self: center; font-size: clamp(42px, min(8.7vw, 17.5svh), 150px); line-height: .95; }
.hero-title .w { display: inline-block; }
/* Keep the longer homepage headline on two lines at desktop widths. */
@media (min-width: 701px) {
  .home .hero-copy h1 { font-size: clamp(36px, min(5.8vw, 12svh), 84px); }
}
.hero-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.hero .lede { color: var(--mist); max-width: 46ch; }

/* the one load moment: the period comes on and a ring of its light crosses the title (spill.js). Where
   that cannot run, the words come up one by one, nearest the period first. No transforms on the title:
   spill.js measures its words. */
.motion .hero-title .lit::before { animation: lit-in 1.5s var(--ease) .15s both; }
.motion .hero-title .w { animation: w-in 1.4s var(--ease) both; animation-delay: calc(.4s + var(--w) * 120ms); }
.motion .spill-type .hero-title .w { animation: none; }
@keyframes lit-in { from { opacity: 0; } }
@keyframes w-in { from { opacity: 0; } }

/* ================================================================== showcase hall
   Wide screens: the heading and the caption on the left, the hall on the right. Narrow: stacked.
   With motion the hall is one screen tall and is moved by the visitor, never by scroll (site.js): drag
   it, use the arrows, or pick a screen. Everything moves by transform and opacity only, so nothing
   repaints: each screen is one layer,
   and the pointer leans the whole hall with a transform transition. */
.hall { position: relative; overflow-x: clip; background: var(--night); color: var(--flare); --dot: var(--peri); }
.hall-pin { position: relative; padding: var(--sec-pad) 0; }
.hall-head { position: relative; z-index: 3; }
.hall-view { position: relative; }
.hall-world { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px) clamp(16px, 2vw, 28px); width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.screen { position: relative; display: block; color: var(--flare); text-decoration: none; }
.screen-frame { display: block; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(169, 184, 236, .35), 0 30px 80px -30px rgba(31, 63, 174, .8); }
.screen-bar { display: flex; gap: 6px; align-items: center; height: 26px; padding: 0 12px; background: #e4e9f5; }
.screen-bar i { width: 8px; height: 8px; border-radius: 50%; background: #b8c2dc; }
.screen-shot { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.screen-shot img { position: absolute; left: 0; top: 0; width: 100%; height: auto; max-width: none; }
.screen-cap { display: grid; gap: 4px; padding: 16px 2px 0; }
.screen-cap b { font: 400 21px/1.2 var(--display); }
.screen-cap span { color: var(--mist); font-size: 15px; }
.hall-cap { display: none; }
.hall-all { display: flex; justify-content: flex-end; width: min(var(--max), 100% - 2 * var(--gutter)); margin: 28px auto 0; }
.hall .more { color: var(--peri); }
.hall .more:hover { color: var(--peri-2); }
@media (max-width: 1000px) { .hall-world { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .hall-world { grid-template-columns: 1fr; } }

.motion .hall-pin { height: 100svh; min-height: 620px; overflow: hidden; padding: calc(var(--mast-h) + clamp(12px, 3vh, 36px)) 0 0; }
.motion .hall-head { margin-bottom: 0; pointer-events: none; }
.motion .hall .sec-head { max-width: 26rem; grid-template-columns: minmax(0, 1fr); margin-bottom: 0; }
.motion .hall .sec-head > * { pointer-events: auto; }
/* site.js measures where the front screen stands (--world-x, --world-y) and how wide it is (--sw).
   The whole view can be dragged sideways; up-and-down touches stay the page's. */
.motion .hall-view { position: absolute; inset: 0; margin: 0; perspective: 1100px; perspective-origin: var(--world-x, 50%) var(--world-y, 56%);
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.hall.is-dragging .hall-view, .hall.is-dragging .screen { cursor: grabbing; }
.motion .hall-world { position: absolute; left: var(--world-x, 50%); top: var(--world-y, 56%); display: block; width: 0; height: 0; margin: 0; transform-style: preserve-3d;
  transform: rotateY(calc(var(--hx, 0) * 2.5deg)) rotateX(calc(var(--hy, 0) * -1.6deg)); transition: transform 1.2s var(--ease); }
.motion .screen { position: absolute; left: 0; top: 0; width: var(--sw, 560px); margin-left: calc(var(--sw, 560px) / -2); margin-top: calc(var(--sw, 560px) * -.33);
  cursor: pointer; -webkit-user-drag: none; backface-visibility: hidden; will-change: transform, opacity; }
.motion .screen-frame { box-shadow: 0 0 0 1px rgba(169, 184, 236, .5), 0 30px 70px -30px rgba(0, 0, 0, .85); }
.motion .screen-cap { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* the page inside a screen scrolls on as its screen is passed, and runs to its end under a pointer
   resting on the front screen */
.motion .screen-shot img { will-change: transform; transition: transform 1.4s var(--ease); }
.motion .screen.is-past .screen-shot img { transform: translateY(calc(var(--sw, 560px) * -.54)); }
@media (hover: hover) {
  .motion .hall:not(.is-dragging) .screen.is-front:hover .screen-shot img { transform: translateY(calc(var(--sw, 560px) * -.9)); transition: transform 7s cubic-bezier(.4, 0, .6, 1) .25s; }
}
.motion .hall-cap { position: absolute; z-index: 3; left: 0; right: 0; bottom: clamp(20px, 5vh, 48px); display: grid; gap: 18px; justify-items: start;
  width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; pointer-events: none; }
.hall-now { display: grid; gap: 6px; max-width: 26rem; }
/* the arrows and where the hall is ("2 of 3") */
.hall-nav { display: flex; align-items: center; gap: 10px; pointer-events: auto; }
.hall-step { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1.5px solid rgba(169, 184, 236, .5); border-radius: 50%; background: rgba(6, 10, 24, .5); color: var(--flare);
  cursor: pointer; transition: background-color .25s, border-color .25s, color .25s, transform .3s var(--ease); }
.hall-step:hover { background: var(--peri); border-color: var(--peri); color: var(--night); }
.hall-step:active { transform: scale(.92); }
.hall-step svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hall-n { margin-left: 8px; color: var(--mist); font-size: 15px; font-variant-numeric: tabular-nums; }
.hall-name { font: 400 clamp(28px, 3vw, 46px)/1.05 var(--display); pointer-events: auto; cursor: pointer; }
.hall-desc { color: var(--mist); font-size: 16px; }
@media (max-height: 820px) { .hall-desc { display: none; } }
.hall-now > * { transition: opacity .35s, transform .5s var(--ease); }
.hall-now.is-swapping > * { opacity: 0; transform: translateY(10px); }
.motion .hall-cap .more { pointer-events: auto; margin: 0; }
.motion .hall-all { display: none; }
@media (max-width: 600px) {
  .motion .hall-pin { height: clamp(540px, 100svh, 640px); min-height: 0; padding-top: var(--sec-pad); }
  .motion .hall-cap { bottom: 28px; }
}
@media (max-width: 999px) {
  .motion .hall .sec-head { max-width: none; }
  .motion .hall .sec-head p { display: none; }
  .hall-desc { display: none; }
  .motion .hall-cap { gap: 12px; }
}
