/* ============================================================
   Alpha Intel Labs — home
   ------------------------------------------------------------
   No panels, no cards, no outlines. The page is a register:
   hairlines divide it, space carries it, and the wordmark is
   the only thing allowed to be large.
   ============================================================ */

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

:root {
  --bg:      #05070A;
  --bg-lift: #0A0D12;
  --line:    #171B21;
  --line-hi: #2A313A;
  --type:    #F3F5F7;
  --type-2:  #8D949E;
  --type-3:  #565C65;
  --glow:    rgba(120, 205, 230, .10);

  --wrap: 1240px;
  --gut:  clamp(1.5rem, 5vw, 5rem);
  --sans: 'Jost', 'Segoe UI', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .25, 1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--type);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

:focus-visible { outline: 1px solid var(--type); outline-offset: 4px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.glyphs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute;
  left: 0;
  top: -100px;
  z-index: 20;
  background: var(--type);
  color: var(--bg);
  padding: .7rem 1.1rem;
  font-size: .8rem;
}
.skip:focus { top: 0; }

/* Small tracked labels, used for every piece of chrome on the page. */
.top-nav a, .rail-k, .rail-v, .app-state, .app-links a, .foot-copy {
  font-size: .68rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .26em;
}

/* ── Header ──────────────────────────────────────────────── */

.top {
  position: relative;
  z-index: 10;
  padding-block: clamp(1.4rem, 3vw, 2.1rem);
}

.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.top-mark { display: block; line-height: 0; color: var(--type); }
.top-mark svg { width: clamp(200px, 28vw, 330px); height: auto; display: block; }

.top-nav { display: flex; gap: clamp(1.4rem, 3.5vw, 3rem); }
.top-nav a { color: var(--type-2); transition: color .25s ease; }
.top-nav a:hover { color: var(--type); }

/* ── Hero ────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding-block: clamp(4rem, 11vw, 9rem) clamp(5rem, 13vw, 11rem);
}

/* A low horizon of light, well below the type. */
.hero::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -30vw;
  height: 62vw;
  background: radial-gradient(58% 50% at 50% 50%, var(--glow), transparent 72%);
  pointer-events: none;
}

/* Three words, so the type carries the whole hero. Held to 15ch it breaks
   after "useful" on a wide screen and stays two lines all the way down. */
.lede {
  position: relative;
  max-width: 15ch;
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -.015em;
  color: var(--type);
  text-wrap: pretty;
}
.draw .lede { opacity: 0; animation: rise 1100ms var(--ease) 120ms forwards; }
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* ── Register ────────────────────────────────────────────── */

.set { scroll-margin-top: 1rem; }
.set + .set { margin-top: clamp(4rem, 9vw, 7rem); }

.rail {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line-hi);
}
.rail-k { color: var(--type); }
.rail-v { color: var(--type-3); }

/* Each app is a band, not a card. Where a screenshot exists the band
   splits in two and the shot alternates sides; where none exists the
   text runs the full width. The uneven rhythm is the point — an empty
   column held open for the three apps with no page would read as a
   gap, and a placeholder would read as an apology. */

.app {
  padding-block: clamp(2.75rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.app-state { color: var(--type-3); margin-bottom: 1rem; }
.app-state span { margin-left: 1rem; opacity: .65; }
.app-state.is-live { color: var(--type-2); }
.app-state.is-wait { color: #C9A063; }

.app-name {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: .01em;
}

.app-copy {
  margin-top: 1.15rem;
  color: var(--type-2);
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 52ch;
  text-wrap: pretty;
}

.app-links {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.75rem;
  margin-top: 1.6rem;
}
.app-links a {
  color: var(--type-3);
  padding-bottom: .35rem;
  border-bottom: 1px solid transparent;
  transition: color .25s ease, border-color .25s ease;
}
.app-links a:hover { color: var(--type); border-bottom-color: var(--line-hi); }

/* The shot carries no frame. A hairline stops a dark screenshot
   dissolving into the page, and the shadow lifts it without
   drawing a box around it. */
.app-shot { line-height: 0; }
.app-shot img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 34px 80px -34px rgba(0, 0, 0, .95);
}
.app-shot.is-tall img { max-height: 640px; width: auto; }
.app-shot.is-wide img { width: 100%; }

@media (max-width: 899px) {
  .app-shot { margin-top: 2.25rem; }
  .app-shot.is-tall { display: flex; justify-content: center; }
  .app-shot.is-tall img { max-height: 460px; }
}

@media (min-width: 900px) {
  .app.has-shot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: center;
  }
  .app.has-shot .app-copy { max-width: 40ch; }
  .app.has-shot--wide { grid-template-columns: minmax(0, .85fr) minmax(0, 1.45fr); }
  .app-shot { display: flex; justify-content: center; }
  /* Alternate which side the shot lands on. */
  .app.flip .app-shot { order: -1; }
}

/* ── Footer ──────────────────────────────────────────────── */

.foot {
  margin-top: clamp(3.5rem, 8vw, 6.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.foot-in {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}

.foot-say {
  max-width: 70ch;
  color: var(--type-2);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.foot-mail {
  color: var(--type);
  border-bottom: 1px solid var(--line-hi);
  padding-bottom: .2rem;
  transition: border-color .25s ease;
}
.foot-mail:hover { border-bottom-color: var(--type); }

.foot-copy { color: var(--type-3); }

/* ── Narrow ──────────────────────────────────────────────── */

@media (max-width: 560px) {
  .top-in { gap: 1rem; }
  .top-mark svg { width: 146px; }
  .top-nav { gap: .85rem; }
  .top-nav a { font-size: .58rem; letter-spacing: .1em; }
  .app-state { letter-spacing: .14em; }
  .lede { font-size: 2.125rem; }
}

/* ── Motion off ──────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lede { opacity: 1; animation: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
