/* sigmoon.tech. The Sigmoon logo's colours (navy, cream, the camera's yellow); Inter for the words, Fredoka for the name. */
@font-face {
  font-family: Inter; src: url(inter-latin.woff) format("woff"); font-weight: 500 900; font-style: normal; font-display: swap;
}
/* Fredoka SemiBold, only the letters of the name (s i g m n), for the wordmark. SIL Open Font License: fredoka-OFL.txt. */
@font-face {
  font-family: Fredoka; src: url(fredoka-logo.woff) format("woff"); font-weight: 600; font-style: normal; font-display: block;
}
:root { --navy: #171a35; --cream: #f5efe2; --sun: #f7b733; --pad: clamp(20px, 4.4vw, 64px); }
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--navy); color: var(--cream); font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 4px; border-radius: 6px; }

.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; }
/* The film is square and stands on the right, as tall as the window; its left edge melts into the navy, where the words are. */
.film {
  position: absolute; top: 0; right: 0; height: 100%; aspect-ratio: 1 / 1; max-width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%);
          mask-image: linear-gradient(to right, transparent 0, #000 22%);
}
.film video, .film img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#blink { opacity: 0; }                       /* the loop waits under the opening shot */
.rest #blink { opacity: 1; }
.shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(23, 26, 53, .55) 0, rgba(23, 26, 53, 0) 16%),
    linear-gradient(to right, rgba(23, 26, 53, .9) 0, rgba(23, 26, 53, .55) 30%, rgba(23, 26, 53, 0) 50%);
}

header { position: absolute; inset: 0 0 auto 0; display: flex; align-items: center; justify-content: space-between; padding: 26px var(--pad); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { height: 44px; width: auto; display: block; }
/* The wordmark: "sigm", two full moons with a small crater for the two o's, "n". */
.word { font-family: Fredoka, Inter, system-ui, sans-serif; font-weight: 600; font-size: 38px; letter-spacing: -.01em; line-height: 1; white-space: nowrap; }
.word i { display: inline-block; position: relative; width: 1.08ex; height: 1.08ex; margin: 0 .035em; border-radius: 50%; background: currentColor; }
.word i::after { content: ""; position: absolute; top: 20%; right: 20%; width: 24%; height: 24%; border-radius: 50%; background: var(--navy); }
.soon { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--sun); }

.foot { position: absolute; inset: auto 0 0 0; padding: 0 var(--pad) clamp(30px, 6svh, 64px); }
h1 { font-weight: 900; letter-spacing: -.045em; line-height: .96; font-size: clamp(44px, 5.9vw, 116px); }
h1 span { color: var(--sun); white-space: nowrap; }
.lead { margin-top: clamp(14px, 2.2svh, 24px); max-width: 27em; font-size: clamp(16px, 1.45vw, 21px); font-weight: 500; line-height: 1.45; color: rgba(245, 239, 226, .86); }
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: clamp(22px, 3.4svh, 36px); }
.btn {
  display: inline-block; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -.01em;
  color: var(--navy); background: var(--sun); border-radius: 999px; padding: 15px 30px; transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: #fac85e; transform: translateY(-2px); }
.note {
  position: absolute; right: var(--pad); bottom: clamp(18px, 3svh, 30px); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(245, 239, 226, .7); text-shadow: 0 1px 6px rgba(23, 26, 53, .8);
}

/* The page for an address that does not exist. */
.lost { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: var(--pad); }
.lost h1 { font-size: clamp(40px, 6vw, 96px); }
.lost p { font-size: 20px; font-weight: 500; color: rgba(245, 239, 226, .86); }

/* Squarer windows (a tablet on its side): the film takes most of the width, so the words stay small enough to keep off the robot. */
@media (min-width: 821px) and (max-aspect-ratio: 3/2) {
  h1 { font-size: clamp(36px, 4.4vw, 78px); }
  .lead { max-width: 21em; }
}
/* Phones and narrow windows: the film on top, uncropped; the words under it on the navy. */
@media (max-width: 820px), (max-aspect-ratio: 1/1) {
  .hero { height: auto; min-height: 100svh; display: flex; flex-direction: column; }
  header { position: static; order: -1; padding-block: 18px; }
  .brand svg { height: 36px; } .word { font-size: 31px; }
  .film { position: relative; inset: auto; height: auto; width: 100%; aspect-ratio: 5 / 4; -webkit-mask-image: none; mask-image: none; }
  .shade { display: none; }
  .foot { position: static; flex: 1; padding-top: 28px; }
  .note { position: static; display: block; margin-top: 22px; text-shadow: none; color: rgba(245, 239, 226, .5); }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
