/* Opening screen: a lone golfer on a long green fairway; on launch a shot tracer climbs from his ball and lands on
   the green. Photo on top, name + buttons on the dark water and trees below. The scene is sized in the photo's own
   space (2000×3000): the golfer's ball (59% down, 52.6% across) lands at --F, the green (19.7% down) never goes
   above 6% of the screen, and the shot (centred on 45% across) stays in the app column on any phone or desktop. */
.screen.full:has(.wl) { padding: 0; max-width: none; animation: none; }
/* iPhone (Luke, 2026-10-10): on launch Safari can size 100dvh short of the real screen until the first touch, and
   a drag bounces the page — both showed the cream page colour as a strip along the bottom. Under these screens the
   page itself is the scene's own near-black, and the sign-up backdrop is pinned to the screen edges. */
:root[data-scene="welcome"], :root[data-scene="welcome"] body { background: #08120a; }
.wl { position: relative; min-height: 100dvh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: #08120a; isolation: isolate; color: #fff; container-type: inline-size; }
.wl-scene { --F: min(50dvh, calc(100dvh - 380px));
  --H: max(150cqw, min(100dvh, calc((var(--F) - 6dvh) / .393))); --W: calc(var(--H) * .6667);
  position: absolute; z-index: -2; height: var(--H); width: var(--W);
  top: calc(var(--F) - var(--H) * .59); left: min(0px, max(calc(100cqw - var(--W)), calc(50cqw - var(--W) * .45)));
  -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent); mask-image: linear-gradient(180deg, #000 80%, transparent);
  transform-origin: 45% 40%; transition: transform 700ms cubic-bezier(.16, 1, .3, 1), filter 700ms cubic-bezier(.16, 1, .3, 1); }
.wl-img, .wl-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.wl-glow { fill: none; stroke: rgba(255, 214, 120, .28); stroke-width: 22; stroke-linecap: round; }
.wl-trace { fill: none; stroke: #FFE9B8; stroke-width: 7; stroke-linecap: round; }
.wl-glow, .wl-trace { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.wl-ball { fill: #fff; }
.wl-land { fill: none; stroke: #FFF4DA; stroke-width: 5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.wl-shot-done .wl-glow, .wl-shot-done .wl-trace { transition: opacity 1400ms ease-out 500ms; opacity: 0; }
.wl-shot-done .wl-land { animation: wl-ring 900ms cubic-bezier(.16, 1, .3, 1); }
.wl:not(.wl-play) .wl-shot { display: none; }
/* Scrims: a little shade behind the status bar; the bottom deepens to near-black green under the name and buttons. */
.wl::before, .wl::after { content: ""; position: absolute; left: 0; right: 0; z-index: -1; pointer-events: none; }
.wl::before { top: 0; height: 18%; background: linear-gradient(180deg, rgba(4, 10, 6, .45), rgba(4, 10, 6, 0)); }
.wl::after { bottom: 0; height: 58%; background: linear-gradient(180deg, rgba(8, 18, 10, 0), rgba(8, 18, 10, .62) 34%, rgba(6, 12, 7, .94) 70%); }
.wl-up .wl-scene { transform: scale(1.06) translateY(-5%); filter: brightness(.75); }
/* Sign-up backdrop (welcome.js): the Home tower video, once, then its last frame. */
.wl-after { position: fixed; inset: 0; z-index: -2; opacity: 0; pointer-events: none; background: #1E3C6E; transition: opacity 600ms cubic-bezier(.16, 1, .3, 1); }
.wl-after.on { opacity: 1; }
.wl-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; display: block; }
/* Over the videos the heavy near-black shade would bury the grass: a light one, and the white words
   carry their own shadow instead. */
.wl-up .wl::after { height: 46%; background: linear-gradient(180deg, rgba(6, 18, 10, 0), rgba(6, 18, 10, .38) 45%, rgba(6, 18, 10, .62)); }
.wl-up :is(.wl-h, .wl-l, .wl-p, .wl-small, .wl-btn.ghost) { text-shadow: 0 1px 2px rgba(0, 0, 0, .55), 0 2px 14px rgba(0, 0, 0, .45); }
.wl-top { position: absolute; top: 0; left: 0; right: 0; padding: calc(var(--sat) + 28px) 24px 0; max-width: 520px; margin: 0 auto; }
.wl-logo-sm { font-size: clamp(30px, 8.5cqw, 40px); margin-left: .2em; }
.wl-brand { margin: 0 0 14px; }
/* Sized so planet + word + tees fill the column on a 320 px phone and stop growing on a wide one. */
.wl-logo { font-size: clamp(40px, 13cqw, 64px); margin-left: .2em; }
.wl-logo .brand-ed { font-size: 12px; letter-spacing: .14em; margin-top: .25em; }
.wl-tag { margin: 12px 0 0; font-size: 18px; color: rgba(255, 248, 238, .92); font-weight: 500; max-width: 26ch; text-shadow: 0 1px 10px rgba(0, 0, 0, .55); }
.wl-bottom { padding: 24px 20px calc(var(--sab) + 28px); max-width: 520px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; position: relative; }
.wl-up .wl-bottom { padding-top: 64px; }

/* Plays once per launch, paused on its first frame until the photo decodes (.wl-go): the light comes up and the
   camera settles, the shot climbs off the fairway and lands on the green (JS, welcome.js), the name and buttons rise. */
.wl-play .wl-scene { animation: wl-dawn 2200ms cubic-bezier(.16, 1, .3, 1); }
.wl-play .wl-brand { animation: wl-rise 1000ms cubic-bezier(.16, 1, .3, 1) 900ms; }
.wl-play .wl-bottom > :not(.wl-brand) { animation: wl-up 700ms cubic-bezier(.16, 1, .3, 1) 1300ms; }
.wl-play .wl-bottom > :nth-child(3) { animation-delay: 1370ms; }
.wl-play .wl-bottom > :nth-child(4) { animation-delay: 1440ms; }
.wl-play .wl-bottom > :nth-child(5) { animation-delay: 1510ms; }
/* Longhands after the shorthands above, or the shorthand silently resets them. */
.wl-play .wl-scene, .wl-play .wl-bottom > * { animation-play-state: paused; animation-fill-mode: both; }
.wl-play.wl-go :is(.wl-scene, .wl-bottom > *) { animation-play-state: running; }
@keyframes wl-dawn { from { transform: scale(1.08); filter: brightness(.45) saturate(.7); } to { transform: none; filter: none; } }
@keyframes wl-ring { 0% { opacity: 0; transform: scale(.3); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(2.4); } }
@keyframes wl-rise { from { opacity: 0; transform: translateY(28px); clip-path: inset(-50% -50% 100% -50%); } to { opacity: 1; transform: none; clip-path: inset(-50% -50% -50% -50%); } }
@keyframes wl-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.wl-btn { position: relative; overflow: hidden; min-height: 56px; border-radius: 999px; border: 0; background: rgba(10, 26, 16, .35); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .18); color: #fff; font-weight: 650; font-size: 17px; width: 100%; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: transform 100ms ease-out, background-color 150ms; }
.wl-btn:active { transform: scale(.98); }
/* Liquid-glass rim (MotionSites "Liquid Glass CTA"): thin light edge that fades out along the sides. */
.wl-btn:not(.primary):not(.ghost)::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.4px; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .2) 22%, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 0) 58%, rgba(255, 255, 255, .2) 78%, rgba(255, 255, 255, .7)); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.wl-btn.primary { background: #fff; color: #0F2A1C; backdrop-filter: none; box-shadow: none; }
.wl-btn.ghost { border-color: transparent; background: transparent; backdrop-filter: none; min-height: 48px; font-weight: 600; color: rgba(255, 255, 255, .9); box-shadow: none; }
.wl-btn[disabled] { opacity: .55; }
.wl-small { text-align: center; color: rgba(255, 255, 255, .86); font-size: 14px; margin: 4px 0 0; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.wl-small a { color: #fff; text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 6px 2px; }
.wl-form { display: flex; flex-direction: column; gap: 10px; position: relative; }
.wl-h { color: #fff; font-family: var(--serif); font-weight: 500; font-size: 30px; letter-spacing: -.02em; margin: 0 0 4px 44px; line-height: 44px; }
.wl-l { color: rgba(255, 255, 255, .9); font-size: 14px; font-weight: 600; margin-top: 4px; }
.wl-in { min-height: 54px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .96); color: #0F2A1C; padding: 0 16px; font-size: 17px; width: 100%; }
.wl-in:focus { outline: 3px solid var(--brass); outline-offset: 1px; }
.wl-code { font-family: var(--serif); font-size: 30px; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.wl-p { color: rgba(255, 255, 255, .92); margin: 0 0 4px; font-size: 16px; }
.wl-p b { color: #fff; }
.wl-err { color: #FFD2CC; background: rgba(120, 20, 10, .55); border-radius: 10px; padding: 10px 12px; margin: 2px 0 0; font-size: 14px; }
.wl-back { position: absolute; top: -2px; left: -6px; width: 44px; height: 44px; border: 0; background: transparent; color: #fff; display: grid; place-items: center; }
.wl-back .ico { width: 24px; height: 24px; }
@media (min-width: 700px) { .wl-top { padding-top: 72px; } }
@media (prefers-reduced-motion: reduce) {
  .wl-scene, .wl-after { transition: none; }
  .wl-play .wl-scene { animation: none; }
  .wl-play .wl-shot { display: none; }
  .wl-play .wl-bottom > * { animation-name: wl-fade-still; animation-duration: 500ms; animation-delay: 0ms; }
}
@keyframes wl-fade-still { from { opacity: 0; } to { opacity: 1; } }

/* The photo fills the whole screen (Luke, 2026-10-13; it is 2:3, so a phone shows its full height and trims a little off the sides,
   centred on the golfer). The shade behind the name and buttons stays near-black (an electric-blue trial was tried and dropped). */
:root[data-scene="welcome"], :root[data-scene="welcome"] body, .wl { background: #060c07; }
/* drawn 20% taller than the screen and lifted by that much (only dark trees are trimmed off the top), so the golfer stands clear
   above the name and buttons, as before (Luke, 2026-10-13: "he's behind the writing now") */
.wl-scene { top: -20dvh; height: 120dvh; width: calc(120dvh * .6667); left: min(0px, max(calc(100cqw - 120dvh * .6667), calc(50cqw - 120dvh * .6667 * .5)));
  -webkit-mask-image: none; mask-image: none; }
.wl::after { height: 52%; background: linear-gradient(180deg, rgba(6, 12, 7, 0), rgba(6, 12, 7, .5) 34%, rgba(4, 8, 5, .88) 66%, rgba(3, 6, 4, .96)); }
.wl-up .wl::after { height: 46%; background: linear-gradient(180deg, rgba(6, 18, 10, 0), rgba(6, 18, 10, .38) 45%, rgba(6, 18, 10, .62)); }
