/* ==========================================================================
   LYNXEL — Coming Soon
   ========================================================================== */

@font-face {
  font-family: "Archivo Expanded";
  src: url("assets/fonts/archivo-expanded-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #020c13;
  --bg-secondary: #061722;
  --text-primary: #f4f7f8;
  --text-secondary: #b5c1c7;
  --cyan: #7fe9f5;
  --cyan-bright: #a6f6ff;
  --border: rgba(126, 232, 245, 0.65);
  --grid: rgba(100, 190, 215, 0.05);

  --font-display: "Archivo Expanded", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  /* Scale unit: follows width, but never lets the desktop layout outgrow one screen. */
  --u: min(1vw, 1.8vh);
  --gutter: clamp(24px, 5vw, 136px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
p,
figure {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--cyan-bright);
  outline-offset: 4px;
}

/* --------------------------------------------------------------------------
   Page shell + engineering background
   -------------------------------------------------------------------------- */

.page {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0 var(--gutter);
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 72% 45%, rgba(24, 86, 110, 0.28), transparent 70%),
    radial-gradient(ellipse 80% 60% at 0% 0%, var(--bg-secondary), transparent 70%),
    var(--bg);
}

/* Faint grid */
.page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 96px 96px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 75% 80% at 60% 50%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 75% 80% at 60% 50%, #000 30%, transparent 85%);
  animation: grid-breathe 9s ease-in-out infinite alternate;
}

/* Crosshair registration mark (the hero render carries the others) */
.page::after {
  --mark: rgba(160, 220, 235, 0.22);
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(var(--mark), var(--mark)) 42.4% 76.5% / 1px 15px,
    linear-gradient(var(--mark), var(--mark)) 42.4% 76.5% / 15px 1px;
  background-repeat: no-repeat;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: clamp(20px, 2.6 * var(--u), 64px);
}

.header__logo {
  display: block;
  width: clamp(150px, 13.5 * var(--u), 330px);
  height: auto;
  object-fit: contain;
  /* The supplied logo is dark (#241F20); render it white on the dark page without altering the file. */
  filter: brightness(0) invert(1);
  margin-left: -0.6%;
}

.badge {
  flex: none;
  padding: 0.95em 2.3em;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: clamp(11px, 0.85 * var(--u), 20px);
  font-weight: 400;
  letter-spacing: 0.32em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text-primary);
  /* Optical compensation for trailing letter-spacing */
  padding-right: calc(2.3em - 0.32em);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(5 * var(--u)) 0 0;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(38px, 3.65 * var(--u), 100px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  white-space: nowrap;
  width: fit-content;
  /* Continuous light sweep: white/cyan highlights, one per 110%-wide tile
     (so one is always on the text), stream over a cool silver-to-cyan base.
     -1100% shifts the tiles by exactly one tile width, so the loop is seamless. */
  background-image:
    linear-gradient(110deg, transparent 32%, rgba(127, 233, 245, 0.85) 43%, #ffffff 50%, rgba(127, 233, 245, 0.85) 57%, transparent 68%),
    linear-gradient(100deg, #d3e0e4 0%, #eaf3f5 38%, #bdeef6 70%, #8fe6f2 100%);
  background-size: 110% 100%, 100% 100%;
  background-repeat: repeat-x, no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 20px rgba(127, 233, 245, 0.16));
  animation: title-sweep 3.5s linear infinite;
}

.hero__intro {
  max-width: 40em;
  margin-top: calc(2.2 * var(--u));
  font-size: clamp(15px, 1.2 * var(--u), 29px);
  line-height: 1.45;
  letter-spacing: 0.012em;
  color: var(--text-primary);
}

.hero__intro p:first-child {
  max-width: 32em;
  color: #dfe7ea;
}

.hero__intro p + p {
  margin-top: 0.75em;
}

/* Typed line (script.js) with an idle, blinking input caret. While typing, an
   invisible copy of the sentence reserves its final size so nothing shifts. */
.launch--typing {
  position: relative;
}

.launch__ghost {
  visibility: hidden;
}

.launch__typed {
  position: absolute;
  inset: 0;
}

.launch--typing::after {
  display: none;
}

.launch::after,
.launch__typed::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 0.18em;
  vertical-align: -0.16em;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(127, 233, 245, 0.6);
  animation: caret-blink 1.05s steps(1) infinite;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Short divider rule used before sections */
.collab::before,
.kickstarter::before {
  content: "";
  display: block;
  width: clamp(48px, 4.5 * var(--u), 110px);
  height: 1px;
  background: rgba(180, 220, 230, 0.45);
}

.collab {
  margin-top: calc(2.3 * var(--u));
}

.collab::before {
  margin-bottom: calc(2.7 * var(--u));
}

.eyebrow {
  font-size: clamp(12px, 0.88 * var(--u), 20px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--cyan);
}

.collab p {
  margin-top: 0.4em;
  font-size: clamp(15px, 1.2 * var(--u), 28px);
  letter-spacing: 0.012em;
  color: #dfe7ea;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 2.3em;
  margin-top: calc(2.2 * var(--u));
  padding: 1.15em 3.6em 1.15em 2.1em;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: clamp(13px, 1.05 * var(--u), 25px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.3em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 300ms var(--ease), border-color 300ms var(--ease), box-shadow 300ms var(--ease);
}

.button__arrow {
  width: 1.45em;
  height: auto;
  margin-right: -2.1em;
  transition: transform 300ms var(--ease);
}

.button:hover {
  border-color: var(--cyan-bright);
  background: rgba(127, 233, 245, 0.06);
  box-shadow: 0 0 24px rgba(127, 233, 245, 0.08);
}

.button:hover .button__arrow {
  transform: translateX(4px);
}

.email {
  display: inline-block;
  margin-top: calc(1.1 * var(--u));
  font-size: clamp(15px, 1.2 * var(--u), 28px);
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text-primary);
  transition: color 250ms var(--ease);
}

.email:hover {
  color: var(--cyan-bright);
}

.collab .email {
  display: table;
}

/* --------------------------------------------------------------------------
   Visual — static hero render
   -------------------------------------------------------------------------- */

.visual {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  bottom: 0;
  width: 56vw;
  pointer-events: none;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 22%),
    linear-gradient(180deg, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 22%),
    linear-gradient(180deg, #000 80%, transparent 100%);
  mask-composite: intersect;
  animation: fade 1200ms var(--ease) 150ms both;
}

.visual__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0% 0%;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: clamp(24px, 3.1 * var(--u), 72px);
}

.kickstarter {
  margin-bottom: calc(2.4 * var(--u));
  font-size: clamp(11px, 0.88 * var(--u), 20px);
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.kickstarter::before {
  margin-bottom: calc(2.1 * var(--u));
}

.kickstarter strong {
  font-weight: 600;
  color: var(--cyan);
}

.tagline {
  display: flex;
  align-items: center;
  gap: 1.8em;
  font-size: clamp(11px, 0.9 * var(--u), 20px);
  font-style: italic;
  letter-spacing: 0.16em;
  color: var(--text-secondary);
  text-align: right;
}

.tagline::before {
  content: "";
  flex: none;
  width: 3.4em;
  height: 1px;
  background: rgba(127, 233, 245, 0.55);
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes grid-breathe {
  from { opacity: 0.7; }
  to { opacity: 1; }
}

@keyframes caret-blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

@keyframes title-sweep {
  from { background-position: 0% 0, 0 0; }
  to { background-position: -1100% 0, 0 0; }
}

/* Desktop pixel field (canvas created by script.js on hover + fine-pointer devices) */
.pixel-field {
  position: fixed;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: screen;
  pointer-events: none;
}

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

  .pixel-field {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Tablet & mobile — stacked layout
   -------------------------------------------------------------------------- */

@media (max-width: 1023px), (orientation: portrait) and (max-width: 1366px) {
  :root {
    --u: 1vw;
  }

  .page {
    min-height: 0;
    background:
      radial-gradient(ellipse 90% 40% at 60% 48%, rgba(24, 86, 110, 0.3), transparent 70%),
      var(--bg);
  }

  .page::after {
    display: none;
  }

  .header {
    padding-top: 22px;
  }

  .header__logo {
    width: clamp(130px, 22vw, 190px);
  }

  .badge {
    padding: 0.9em 1.6em;
    padding-right: calc(1.6em - 0.32em);
    font-size: 11px;
  }

  .hero {
    justify-content: flex-start;
    padding: clamp(48px, 10vw, 88px) 0 0;
  }

  .hero__title {
    font-size: clamp(30px, 6.4vw, 66px);
    line-height: 1.04;
  }

  .hero__intro {
    margin-top: 22px;
    font-size: clamp(16px, 2.3vw, 19px);
  }

  .visual {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: auto;
    margin: 12px calc(-1 * var(--gutter)) 0;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 82%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 82%, transparent 100%);
  }

  .visual__img {
    height: auto;
  }

  .collab {
    margin-top: 8px;
  }

  .collab::before {
    margin-bottom: 26px;
  }

  .eyebrow {
    font-size: 12px;
    letter-spacing: 0.32em;
  }

  .collab p {
    margin-top: 10px;
    font-size: clamp(16px, 2.3vw, 19px);
  }

  .button {
    margin-top: 26px;
    font-size: 14px;
    padding: 18px 3.6em 18px 1.8em;
  }

  .email {
    margin-top: 16px;
    font-size: 17px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .kickstarter {
    margin-bottom: 0;
    font-size: 12px;
    letter-spacing: 0.3em;
  }

  .kickstarter::before {
    margin-bottom: 26px;
  }

  .tagline {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .badge {
    padding: 0.85em 1.3em;
    padding-right: calc(1.3em - 0.28em);
    font-size: 10px;
    letter-spacing: 0.28em;
  }

  .hero__title {
    font-size: clamp(22px, 6.6vw, 34px);
  }

  .button {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 340px;
  }

  .kickstarter {
    font-size: 11px;
    letter-spacing: 0.26em;
    line-height: 1.9;
  }

  .tagline {
    gap: 1.2em;
    font-size: 11px;
  }

  .tagline::before {
    width: 2.4em;
  }
}

/* Small phones (iPhone SE / 320–360px) */
@media (max-width: 360px) {
  .hero__title {
    font-size: 6.2vw;
  }

  .eyebrow {
    letter-spacing: 0.22em;
  }

  .kickstarter {
    letter-spacing: 0.2em;
  }
}
