/* LegitWorks Studio coming-soon page. Same look as the main site: cream / green / black, Space Grotesk.
   Day or night follows the real time of day (sky.js sets data-theme from sunrise/sunset).
   Without the script it falls back to the device's light/dark setting. */
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/space-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/space-grotesk-latin-700-normal.woff2') format('woff2'); }

/* ---- Day ---- */
:root { --bg: #f5f2ea; --text: #0a0c0b; --muted: #4f5a54; --green: #1a6447; --pill: #e3f2ea; --line: #ddd8cc; --focus: #0a0c0b; --foot: #e6efe9;
  --sky: #dde9e3; --skytop: #cfe1e0; --glow: #f6efe0; --day: block; --night: none;
  --far: #c3d3cb; --haze: #d2e0d9; --mist: rgba(245, 242, 234, .5); --peak: #b2c6bc; --snow: #fbf8f1; --shade: rgba(30, 60, 50, .10);
  --mid: #6e9884; --midtrees: #5a8571; --city: #4f7766; --water: #d3e3dc; --ripple: rgba(255, 255, 255, .75); --glint: rgba(255, 255, 255, .95);
  --shore: #2f5e4b; --trees: #1d4a39; --treelit: #2a5c48; --boat: #fbf8f1; --hull: #1d4a39; --sail: #ffffff; --win: #4f7766;
  --lh: #fbf8f1; --lhs: #b9473c; --bird: #33503f; --plane: #7a9088; --trail: rgba(255, 255, 255, .9); --cloud: #ffffff; --cloudshade: #dbe6e1; --sq: #3b2b21; --oc: #b5553f; --slug: #e2bd2f; --rim: #4f7766; --gond: #fbf8f1; --ufo: #a9b8b1; }

/* ---- Night (set by the clock, or by the device when the script can't run) ---- */
:root[data-theme="dark"] { --bg: #0d110f; --text: #eef2ef; --muted: #b6c2bc; --green: #7fd1a8; --pill: #16302a; --line: #2b3330; --focus: #f2c14e; --foot: #b6c2bc;
  --sky: #0a1613; --skytop: #060c0f; --glow: #11211d; --day: none; --night: block;
  --far: #1b2a25; --haze: #14211d; --mist: rgba(13, 17, 15, .4); --peak: #22362f; --snow: #c4d0ca; --shade: rgba(0, 0, 0, .28);
  --mid: #13241f; --midtrees: #0f1e19; --city: #0b1713; --water: #1b322e; --ripple: rgba(190, 215, 205, .16); --glint: rgba(242, 236, 214, .6);
  --shore: #0a1713; --trees: #07120e; --treelit: #0b1a15; --boat: #5f706a; --hull: #0e1c17; --sail: #9aa8a2; --win: #f2c14e;
  --lh: #6f7f78; --lhs: #5a2a26; --bird: transparent; --plane: #2b3a35; --trail: transparent; --cloud: #ffffff; --cloudshade: transparent; --sq: #050d0a; --oc: #4a2219; --slug: #6b5a1e; --rim: #0b1713; --gond: #f2c14e; --ufo: #bfe8d4; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) { --bg: #0d110f; --text: #eef2ef; --muted: #b6c2bc; --green: #7fd1a8; --pill: #16302a; --line: #2b3330; --focus: #f2c14e; --foot: #b6c2bc;
    --sky: #0a1613; --skytop: #060c0f; --glow: #11211d; --day: none; --night: block;
    --far: #1b2a25; --haze: #14211d; --mist: rgba(13, 17, 15, .4); --peak: #22362f; --snow: #c4d0ca; --shade: rgba(0, 0, 0, .28);
    --mid: #13241f; --midtrees: #0f1e19; --city: #0b1713; --water: #1b322e; --ripple: rgba(190, 215, 205, .16); --glint: rgba(242, 236, 214, .6);
    --shore: #0a1713; --trees: #07120e; --treelit: #0b1a15; --boat: #5f706a; --hull: #0e1c17; --sail: #9aa8a2; --win: #f2c14e;
    --lh: #6f7f78; --lhs: #5a2a26; --bird: transparent; --plane: #2b3a35; --trail: transparent; --cloud: #ffffff; --cloudshade: transparent; --sq: #050d0a; --oc: #4a2219; --slug: #6b5a1e; --rim: #0b1713; --gond: #f2c14e; --ufo: #bfe8d4; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; color: var(--text);
  background: linear-gradient(to bottom, var(--skytop) 0%, var(--bg) 45%, var(--glow) 72%, var(--sky) 100%) fixed, var(--bg);
  font: 500 18px/1.5 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif; }
main { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: clamp(8px, 1.8vh, 18px); padding: 3vh 16px 34vh; }
/* One screen, no scrolling, when there is room for it (very short screens, like a phone on its side, can still scroll). */
@media (max-width: 600px) { main { padding-bottom: calc(50vw + 40px); } }
@media (min-height: 520px) { html, body { height: 100%; overflow: hidden; } body { min-height: 0; } }

/* Two fixed layers fill the screen: the sky (top to bottom) and the PNW scene (bottom half). */
.sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
:root { --sh: max(min(48vh, 50vw + 70px), 230px); --pano: calc(var(--sh) * 5.657); }
.scenewrap { position: fixed; left: 0; right: 0; bottom: 0; height: var(--sh); overflow: hidden; z-index: 0; pointer-events: none; }
.scene { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; }
/* Tall screens (phones, tablets upright) only see a slice of the panorama, so the camera slowly sweeps
   across all of it: start in the middle, out to one end, pause, over to the other end, pause, back. */
@media (max-aspect-ratio: 4/3) {
  .scene { width: var(--pano); transform: translateX(calc((100vw - var(--pano)) / 2)); animation: pan 110s ease-in-out infinite; }
}
@keyframes pan {
  0% { transform: translateX(calc((100vw - var(--pano)) / 2)); }
  20%, 30% { transform: translateX(0); }
  65%, 75% { transform: translateX(calc(100vw - var(--pano))); }
  100% { transform: translateX(calc((100vw - var(--pano)) / 2)); }
}

/* sky */
.sky .sun { display: var(--day); fill: #fff4d6; } .sky .sunglow { display: var(--day); fill: #fff8e6; opacity: .45; }
.sky .moon { display: var(--night); fill: #f2ecd6; }
.sky .stars { display: var(--night); fill: #e8e4d3; opacity: .7; }
.sky .clouds { display: var(--day); fill: var(--cloud); opacity: .8; } .sky .cloudshade { display: var(--day); fill: var(--cloudshade); }
.sky .birds { display: var(--day); } .sky .bird { fill: none; stroke: var(--bird); stroke-width: 2; stroke-linecap: round; }
.sky .pl { fill: var(--plane); } .sky .trail { fill: var(--trail); }

/* scene */
.scene .haze { fill: var(--haze); } .scene .far { fill: var(--far); } .scene .m0 { stop-color: var(--mist); stop-opacity: 0; } .scene .m1 { stop-color: var(--mist); stop-opacity: 1; }
.scene .peak { fill: var(--peak); } .scene .snow { fill: var(--snow); } .scene .shade { fill: var(--shade); }
.scene .mid { fill: var(--mid); } .scene .midtrees { fill: var(--midtrees); } .scene .city { fill: var(--city); }
.scene .lights { display: var(--night); fill: #f2c14e; opacity: .75; }
.scene .water { fill: var(--water); } .scene .ripple { fill: var(--ripple); } .scene .glint { fill: var(--glint); }
.scene .shore { fill: var(--shore); } .scene .trees { fill: var(--trees); } .scene .treelit { fill: var(--treelit); }
.scene .boat { fill: var(--boat); } .scene .hull { fill: var(--hull); } .scene .sail { fill: var(--sail); } .scene .win { fill: var(--win); }
.scene .wake { fill: var(--ripple); } .scene .gull { fill: none; stroke: var(--bird); stroke-width: 1.2; stroke-linecap: round; }
.scene .lh { fill: var(--lh); } .scene .lhs { fill: var(--lhs); }
.scene .beam, .scene .flash, .scene .lamp { display: var(--night); fill: #fff3c4; }
.scene .beam { transform-box: view-box; transform-origin: 1953px 346px; }
.scene .flash { transform-box: fill-box; transform-origin: center; opacity: 0; } .scene .lamp { opacity: .9; }
.beamR { animation: beamR 8s linear infinite; } .beamL { animation: beamL 8s linear infinite; } .flash { animation: flash 8s linear infinite; }
@keyframes beamR { 0% { transform: scaleX(1.000); opacity: 0.320; } 5% { transform: scaleX(0.951); opacity: 0.312; } 10% { transform: scaleX(0.809); opacity: 0.288; } 15% { transform: scaleX(0.588); opacity: 0.245; } 20% { transform: scaleX(0.309); opacity: 0.178; } 25% { transform: scaleX(0.000); opacity: 0.000; } 30% { transform: scaleX(0.000); opacity: 0.000; } 35% { transform: scaleX(0.000); opacity: 0.000; } 40% { transform: scaleX(0.000); opacity: 0.000; } 45% { transform: scaleX(0.000); opacity: 0.000; } 50% { transform: scaleX(0.000); opacity: 0.000; } 55% { transform: scaleX(0.000); opacity: 0.000; } 60% { transform: scaleX(0.000); opacity: 0.000; } 65% { transform: scaleX(0.000); opacity: 0.000; } 70% { transform: scaleX(0.000); opacity: 0.000; } 75% { transform: scaleX(0.000); opacity: 0.000; } 80% { transform: scaleX(0.309); opacity: 0.178; } 85% { transform: scaleX(0.588); opacity: 0.245; } 90% { transform: scaleX(0.809); opacity: 0.288; } 95% { transform: scaleX(0.951); opacity: 0.312; } 100% { transform: scaleX(1.000); opacity: 0.320; } }
@keyframes beamL { 0% { transform: scaleX(0.000); opacity: 0.000; } 5% { transform: scaleX(0.000); opacity: 0.000; } 10% { transform: scaleX(0.000); opacity: 0.000; } 15% { transform: scaleX(0.000); opacity: 0.000; } 20% { transform: scaleX(0.000); opacity: 0.000; } 25% { transform: scaleX(0.000); opacity: 0.000; } 30% { transform: scaleX(0.309); opacity: 0.178; } 35% { transform: scaleX(0.588); opacity: 0.245; } 40% { transform: scaleX(0.809); opacity: 0.288; } 45% { transform: scaleX(0.951); opacity: 0.312; } 50% { transform: scaleX(1.000); opacity: 0.320; } 55% { transform: scaleX(0.951); opacity: 0.312; } 60% { transform: scaleX(0.809); opacity: 0.288; } 65% { transform: scaleX(0.588); opacity: 0.245; } 70% { transform: scaleX(0.309); opacity: 0.178; } 75% { transform: scaleX(0.000); opacity: 0.000; } 80% { transform: scaleX(0.000); opacity: 0.000; } 85% { transform: scaleX(0.000); opacity: 0.000; } 90% { transform: scaleX(0.000); opacity: 0.000; } 95% { transform: scaleX(0.000); opacity: 0.000; } 100% { transform: scaleX(0.000); opacity: 0.000; } }
@keyframes flash { 0% { opacity: 0.000; transform: scale(0.400); } 5% { opacity: 0.001; transform: scale(0.401); } 10% { opacity: 0.039; transform: scale(0.433); } 15% { opacity: 0.266; transform: scale(0.624); } 20% { opacity: 0.703; transform: scale(0.992); } 25% { opacity: 0.950; transform: scale(1.200); } 30% { opacity: 0.703; transform: scale(0.992); } 35% { opacity: 0.266; transform: scale(0.624); } 40% { opacity: 0.039; transform: scale(0.433); } 45% { opacity: 0.001; transform: scale(0.401); } 50% { opacity: 0.000; transform: scale(0.400); } 55% { opacity: 0.000; transform: scale(0.400); } 60% { opacity: 0.000; transform: scale(0.400); } 65% { opacity: 0.000; transform: scale(0.400); } 70% { opacity: 0.000; transform: scale(0.400); } 75% { opacity: 0.000; transform: scale(0.400); } 80% { opacity: 0.000; transform: scale(0.400); } 85% { opacity: 0.000; transform: scale(0.400); } 90% { opacity: 0.000; transform: scale(0.400); } 95% { opacity: 0.000; transform: scale(0.400); } 100% { opacity: 0.000; transform: scale(0.400); } }

/* Washington lore */
.scene .sq { fill: var(--sq); } .scene .eyes { display: var(--night); fill: #f2c14e; }
.sasq-wrap { animation: peek 47s ease-in-out -12s infinite; }
@keyframes peek { 0%, 78% { transform: translateX(0); } 82%, 92% { transform: translateX(-13px); } 96%, 100% { transform: translateX(0); } }
.scene .oc { fill: var(--oc); } .scene .oe { fill: #f5efe0; } .scene .op { fill: #111; }
.octo .oc { animation: octo 5s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 20%; }
@keyframes octo { to { transform: rotate(6deg) scaleY(1.04); } }
.scene .sl { fill: var(--slug); } .slug { transform-box: fill-box; transform-origin: center; }
.scene .rim { fill: none; stroke: var(--rim); stroke-width: 1; } .scene .gond { fill: var(--gond); }
.wheel { animation: spin 90s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }
.scene .ufo { fill: var(--ufo); } .sky .chute { fill: #f5efe0; } .sky .chute-line { stroke: #9aa8a2; stroke-width: .5; fill: none; } .sky .jumper { fill: #4f5a54; }
.scene .orca { fill: #0b0f0e; } .scene .orca-w { fill: #f5f2ea; } .scene .splash { fill: none; stroke: #ffffff; stroke-width: 1; }
.blink { display: var(--night); fill: #e0483e; } .blink.g { fill: #4fd18b; }

/* motion: slow and calm */
.ferry { animation: ferry 200s ease-in-out -50s infinite; }
.wake-r { animation: wakeR 200s linear -50s infinite; } .wake-l { animation: wakeL 200s linear -50s infinite; }
.tack { transform-box: fill-box; transform-origin: center; }
.sailboat { animation: bob 3.4s ease-in-out infinite alternate; } .sb2 { animation-duration: 4.1s; animation-delay: -1.5s; }
.sb3 { animation: bob 3.8s ease-in-out -0.8s infinite alternate; }
.sailboat { transform-box: fill-box; transform-origin: 50% 100%; }
.bird { transform-box: fill-box; transform-origin: 50% 70%; }
/* gulls wheel in slow loops over the water */
.gull { animation: wheel1 14s linear infinite; } .g2 { animation: wheel2 11s linear -4s infinite; } .g3 { animation: wheel1 17s linear -9s infinite reverse; }
@keyframes wheel1 { 0% { transform: translate(0, 0); } 25% { transform: translate(14px, -4px); } 50% { transform: translate(26px, 0); } 75% { transform: translate(14px, 4px); } 100% { transform: translate(0, 0); } }
@keyframes wheel2 { 0% { transform: translate(0, 0); } 25% { transform: translate(-10px, 3px); } 50% { transform: translate(-20px, -1px); } 75% { transform: translate(-9px, -5px); } 100% { transform: translate(0, 0); } }
.blink { animation: blink 1.6s steps(1) infinite; } .blink.g { animation-delay: -.8s; }
.glint { animation: glint 3s ease-in-out infinite alternate; }
/* Seattle dock <-> the town across the water, a pause at each dock. Ferries are double-ended, so no turning around. */
@keyframes ferry { 0%, 8% { transform: translateX(-262px); } 46%, 54% { transform: translateX(-790px); } 92%, 100% { transform: translateX(-262px); } }
@keyframes wakeR { 0%, 9% { opacity: 0; } 14%, 40% { opacity: 1; } 45%, 100% { opacity: 0; } }
@keyframes wakeL { 0%, 55% { opacity: 0; } 60%, 86% { opacity: 1; } 91%, 100% { opacity: 0; } }
@keyframes bob { 0% { transform: translateY(0) rotate(-2deg); } 100% { transform: translateY(1.4px) rotate(3deg); } }
@keyframes blink { 0% { opacity: 1; } 50% { opacity: .1; } }
@keyframes glint { to { opacity: .45; } }

.seal { width: min(240px, 60vw, 24vh); height: auto; filter: drop-shadow(0 24px 40px rgba(20, 25, 23, .22)) drop-shadow(0 5px 10px rgba(20, 25, 23, .12)); }
.seal-ring { transform-origin: 100px 100px; animation: sealturn 80s linear infinite; }
@keyframes sealturn { to { transform: rotate(360deg); } }

h1 { margin: 1vh 0 0; font-weight: 700; font-size: clamp(36px, 8vw, 64px); line-height: 1.02; letter-spacing: -0.03em; }
.tag { margin: 0; max-width: 30ch; font-size: clamp(18px, 3.2vw, 22px); color: var(--muted); }
.soon { margin: 6px 0 0; padding: 8px 18px; border-radius: 999px; background: var(--pill); color: var(--green); font-weight: 700; letter-spacing: .01em; }
.mail { margin: 4px 0 0; }
.mail a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; overflow-wrap: anywhere; }
.mail a:hover { text-decoration-thickness: 3px; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1; padding: 18px 16px 20px; text-align: center; font-size: 14px; color: var(--foot); text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
@media (max-width: 480px) { footer { font-size: 12px; padding-bottom: 14px; } }

/* Twinkle: every few stars get their own speed and delay so they never pulse in sync. */
.sky .stars circle:nth-child(3n) { animation: twinkle 3.2s ease-in-out infinite; }
.sky .stars circle:nth-child(5n+1) { animation: twinkle 4.6s ease-in-out 1.3s infinite; }
.sky .stars circle:nth-child(7n+2) { animation: twinkle 2.4s ease-in-out .7s infinite; }
.sky .stars circle:nth-child(11n+4) { animation: twinkle 5.8s ease-in-out 2.1s infinite; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } }
