/* Neon Glider — site styles
   Two families (Archivo for text, Bricolage Grotesque for titles), two lights (the brand mint and argon),
   one moving thing (the aurora in the hero). */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/fonts/archivo-variable-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-variable-latin.woff2") format("woff2");
}

:root {
  --night: #070b16;
  --night-2: #0c1222;
  --text: #e6eaf2;
  --text-2: #98a2b8;
  --hairline: rgba(150, 170, 220, 0.14);
  --hairline-strong: rgba(150, 170, 220, 0.3);

  /* brand: the mint of the glider */
  --brand: #50ffb2;
  --brand-hot: #b8ffdf;
  --brand-deep: #12d98a;
  --brand-ink: #04281a;

  /* argon: the cool second light */
  --argon: #8fb4ff;
  --argon-hot: #dbe7ff;
  --argon-deep: #4d7cff;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Bricolage Grotesque", "Archivo", system-ui, sans-serif;
  --max: 1120px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-pad: clamp(72px, 10vw, 128px);
  --header-h: 64px;

  /* motion: easing by job, duration by perception band */
  --ease-decelerate: cubic-bezier(0, 0, 0.2, 1);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-micro: 120ms;
  --dur-large: 360ms;
  --dur-reveal: 500ms;
}

/* ---------- base ---------- */

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 100%;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  color: var(--text);
}

p {
  margin: 0 0 1em;
  max-width: 62ch;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color var(--dur-micro) var(--ease-decelerate), text-shadow var(--dur-micro) var(--ease-decelerate);
}

a:hover {
  color: var(--brand-hot);
  text-shadow: 0 0 8px color-mix(in oklab, var(--brand) 55%, transparent);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
  box-shadow: 0 0 0 5px color-mix(in oklab, var(--brand) 22%, transparent);
}

::selection {
  background: color-mix(in oklab, var(--brand) 35%, transparent);
  color: #fff;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -3rem;
  padding: 0.5rem 0.75rem;
  background: var(--night-2);
  color: var(--text);
  border: 1px solid var(--hairline-strong);
  border-radius: 6px;
  z-index: 30;
}

.skip:focus {
  top: 0.75rem;
}

/* ---------- header ---------- */

/* Glass over whatever scrolls beneath it. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in oklab, var(--night) 72%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--hairline);
}

.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
}

.wordmark:hover {
  text-shadow: none;
}

.logo {
  display: block;
  height: 30px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
}

.site-nav a,
.site-footer nav a {
  color: var(--text-2);
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-footer nav a:hover {
  color: var(--text);
  text-shadow: none;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--night);
  padding: clamp(80px, 12vw, 160px) 0 clamp(104px, 14vw, 176px);
}

.hero__copy {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.8rem, 7.4vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 10em;
  text-wrap: balance;
}

.lead {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.5;
  color: var(--text-2);
  max-width: 34rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
}

/* The sky: still stars, and an aurora that drifts. Everything in it moves on transform and opacity only. */
.sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  animation: dissolve 1200ms var(--ease-decelerate) both;
}

.sky__stars {
  position: absolute;
  inset: 0;
  background: url("/media/stars.svg") 50% 0 / 1440px 800px repeat;
  opacity: 0.85;
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
}

.aurora {
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}

/* Each band is a soft ellipse of light, leaned over like a curtain. The skew stays on transform; the drift
   runs on the individual translate and scale properties so the two never fight. */
.aurora__band {
  position: absolute;
  top: -35%;
  height: 160%;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, var(--c) 0%, transparent 100%);
  transform: skewX(var(--skew));
  will-change: translate, scale;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.aurora__band--1 {
  --c: rgba(80, 255, 178, 0.36);
  --skew: -18deg;
  left: 38%;
  width: 42%;
  animation-name: drift-a;
  animation-duration: 23s;
}

.aurora__band--2 {
  --c: rgba(143, 180, 255, 0.36);
  --skew: -24deg;
  left: 66%;
  width: 32%;
  animation-name: drift-b;
  animation-duration: 29s;
}

.aurora__band--3 {
  --c: rgba(184, 255, 223, 0.55);
  --skew: -14deg;
  left: 55%;
  width: 11%;
  animation-name: drift-c;
  animation-duration: 17s;
}

@keyframes drift-a {
  from {
    translate: -40px 0;
    scale: 1 1;
  }

  to {
    translate: 70px 24px;
    scale: 1.14 1.05;
  }
}

@keyframes drift-b {
  from {
    translate: 30px 0;
    scale: 1.05 1;
  }

  to {
    translate: -60px 36px;
    scale: 0.9 1.08;
  }
}

@keyframes drift-c {
  from {
    translate: 0 0;
    scale: 1 1;
    opacity: 0.55;
  }

  to {
    translate: 110px -24px;
    scale: 1.35 1;
    opacity: 1;
  }
}

/* The horizon: one lit line where the hero meets the ground. The glow is spent here, and on the button. */
.hero__horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--brand) 32%, var(--argon) 72%, transparent 100%);
  opacity: 0.75;
  box-shadow:
    0 0 12px color-mix(in oklab, var(--brand) 60%, transparent),
    0 0 44px color-mix(in oklab, var(--brand) 28%, transparent);
}

.hero + .section {
  border-top: 0;
}

/* One entrance: the sky dissolves in, then the copy rises line by line. */
.hero__copy > * {
  animation: rise var(--dur-reveal) var(--ease-decelerate) both;
}

.hero__copy > :nth-child(1) {
  animation-delay: 80ms;
}

.hero__copy > :nth-child(2) {
  animation-delay: 160ms;
}

.hero__copy > :nth-child(3) {
  animation-delay: 240ms;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes dissolve {
  from {
    opacity: 0;
  }
}

/* ---------- buttons & links ---------- */

.button {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0.005em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 8px 28px color-mix(in oklab, var(--brand) 24%, transparent);
  transition: background var(--dur-micro) var(--ease-decelerate), box-shadow var(--dur-micro) var(--ease-decelerate), transform var(--dur-micro) var(--ease-decelerate);
}

.button:hover {
  color: var(--brand-ink);
  background: var(--brand-hot);
  text-shadow: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 10px 36px color-mix(in oklab, var(--brand) 42%, transparent);
}

.button:active {
  transform: translateY(1px);
}

.button:focus-visible {
  outline-color: var(--brand-hot);
  outline-offset: 4px;
  box-shadow: 0 0 0 5px color-mix(in oklab, var(--brand) 22%, transparent);
}

.link {
  color: var(--text);
}

.link:hover {
  color: var(--brand-hot);
}

/* ---------- sections ---------- */

.section {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--hairline);
  scroll-margin-top: var(--header-h);
}

.section__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.section h2 {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 1.1rem 0 1.25rem;
}

.section__intro p {
  color: var(--text-2);
}

.section__intro p + p {
  margin-top: 0.25rem;
}

/* A short lit tube above each section heading. Its colour says which half of the company you're in. */
.tube {
  display: block;
  width: 36px;
  height: 2px;
  border-radius: 2px;
  background: var(--tube-hot);
  box-shadow:
    0 0 2px var(--tube-hot),
    0 0 8px var(--tube),
    0 0 22px color-mix(in oklab, var(--tube-deep) 70%, transparent);
}

.tube--brand {
  --tube: var(--brand);
  --tube-hot: var(--brand-hot);
  --tube-deep: var(--brand-deep);
}

.tube--argon {
  --tube: var(--argon);
  --tube-hot: var(--argon-hot);
  --tube-deep: var(--argon-deep);
}

.services {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}

.services li {
  display: grid;
  grid-template-columns: minmax(10rem, 13rem) minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--hairline);
}

.services h3,
.status h3 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.services p,
.status p {
  color: var(--text-2);
  max-width: 48ch;
}

.status {
  padding-top: 1.35rem;
  border-top: 1px solid var(--hairline);
}

.status h3 {
  margin-bottom: 0.6rem;
}

/* ---------- inner pages ---------- */

.page {
  padding: clamp(32px, 6vw, 72px) 0 var(--section-pad);
}

.page h1 {
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 1.1rem 0 1.5rem;
  max-width: 16ch;
}

.page h2 {
  font-size: 1.45rem;
  letter-spacing: -0.015em;
  margin: 2.5rem 0 0.6rem;
}

.page .meta {
  color: var(--text-2);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.page p {
  color: var(--text);
}

.page .prose {
  max-width: 62ch;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: clamp(40px, 6vw, 64px) 0 clamp(32px, 5vw, 48px);
  font-size: 0.95rem;
  color: var(--text-2);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.site-footer .logo {
  height: 24px;
}

.site-footer p {
  margin-top: 1rem;
  max-width: 30ch;
}

.site-footer nav {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.site-footer .copyright {
  margin-top: 0.75rem;
}

/* ---------- responsive ---------- */

@media (max-width: 800px) {
  .section__grid,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .services li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .site-footer nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 56px;
  }

  .logo {
    height: 24px;
  }

  .site-nav a {
    font-size: 0.9rem;
  }

  .hero {
    padding: clamp(64px, 16vw, 96px) 0 clamp(80px, 18vw, 112px);
  }

  /* On a phone the curtains hang behind the headline rather than beside it. */
  .aurora {
    opacity: 0.8;
  }

  .aurora__band--1 {
    left: 10%;
    width: 70%;
  }

  .aurora__band--2 {
    left: 55%;
    width: 60%;
  }

  .aurora__band--3 {
    left: 40%;
    width: 18%;
  }
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .sky,
  .hero__copy > *,
  .aurora__band {
    animation: none;
  }

  a,
  .button {
    transition: none;
  }
}
