/* Overlast · monochrome scroll page */

:root {
  --black: #000;
  --white: #f5f5f7;
  --grey-1: #a1a1a6;
  --grey-2: #6e6e73;
  --grey-3: #2a2a2c;
  --line: rgba(255, 255, 255, .1);

  --gutter: clamp(20px, 5vw, 72px);
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Film grain for the glass surfaces: white specks for dark glass, black specks for light glass. */
  --grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.2 -.15'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.2 -.15'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  color-scheme: dark;
}

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

html {
  background: var(--black);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Scene heights scale with the viewport; don't let the browser shift scroll position on resize. */
  overflow-anchor: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg, canvas, picture { display: block; }
h1, h2, h3, p, fieldset { margin: 0; }
fieldset { padding: 0; border: 0; min-width: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
  border-radius: 6px;
}

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

h2 {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 600;
  font-size: clamp(2.1rem, 4.6vw, 4.5rem);
  line-height: .96;
  letter-spacing: -.032em;
  text-wrap: balance;
}

.kicker {
  margin-bottom: clamp(8px, 1.2vh, 12px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--grey-1);
}

/* ---------- glass ---------- */

/* Frosted glass: a faint diagonal sheen, a hairline rim that catches light, and fine grain. */
.glass {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, rgba(255, 255, 255, .11) 0%, rgba(255, 255, 255, .04) 45%, rgba(255, 255, 255, .02) 70%, rgba(255, 255, 255, .07) 100%);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
  transition: background .3s ease, box-shadow .3s ease, transform .2s ease, color .2s ease;
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background-image: var(--grain-light);
  background-size: 160px;
  opacity: .1;
  pointer-events: none;
}
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .07) 38%, rgba(255, 255, 255, .03) 62%, rgba(255, 255, 255, .16));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.glass:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, .17) 0%, rgba(255, 255, 255, .07) 45%, rgba(255, 255, 255, .04) 70%, rgba(255, 255, 255, .1) 100%);
}

/* Bright frosted glass for primary actions and selected options. */
.glass--light,
.chip[aria-pressed="true"] {
  color: #0b0b0c;
  background: linear-gradient(140deg, #fff 0%, #ededf0 48%, #c9c9d0 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0, 0, 0, .12);
}
.glass--light::before,
.chip[aria-pressed="true"]::before {
  background-image: var(--grain-dark);
  opacity: .14;
}
.glass--light::after,
.chip[aria-pressed="true"]::after {
  background: linear-gradient(140deg, #fff, rgba(255, 255, 255, .3) 40%, rgba(0, 0, 0, .08) 75%, rgba(255, 255, 255, .5));
}
.glass--light:hover,
.chip[aria-pressed="true"]:hover {
  background: linear-gradient(140deg, #fff 0%, #f4f4f6 48%, #d6d6dc 100%);
}

button.glass, a.glass { cursor: pointer; }
button.glass:active, a.glass:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) {
  button.glass:active, a.glass:active { transform: none; }
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 var(--gutter);
  background: rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.nav__logo {
  opacity: var(--nav-logo, 0);
  transition: opacity .3s ease;
}
.nav__logo img { width: auto; height: 17px; }

/* Same face as the headlines, in a lighter weight. */
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
  font-family: var(--font-display);
  font-stretch: 112%;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -.005em;
}
.nav__links a {
  color: var(--grey-1);
  text-decoration: none;
  transition: color .2s ease;
}
.nav__links a:hover { color: var(--white); }
.nav__links .nav__cta {
  padding: 7px 16px;
  color: #0b0b0c;
}
.nav__links .nav__cta:hover { color: #0b0b0c; }

@media (max-width: 600px) {
  .nav__links a:not(.nav__cta) { display: none; }
}

/* ---------- scroll scenes ---------- */

.scene { position: relative; }
.scene--intro    { height: 240vh; }
.scene--vision   { height: 720vh; }
.scene--research { height: 340vh; }

.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

/* ---------- halftone fields ---------- */

.halftone {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: pan-y;
}

/* ---------- 1 · intro ---------- */

/* Shown only if WebGL isn't available. */
.intro__fallback {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(60vw, 940px);
  height: auto;
  transform: translate(-50%, -50%);
  display: none;
}
.no-webgl .intro__fallback { display: block; }

.intro__tease {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.intro__tease img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hint {
  position: absolute;
  left: 50%;
  bottom: max(28px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey-2);
  opacity: 0;
  pointer-events: none;
}
.hint::after {
  content: "";
  width: 1px;
  height: 36px;
  background: linear-gradient(var(--grey-1), transparent);
  transform-origin: top;
  animation: hint 2.2s cubic-bezier(.6, 0, .2, 1) infinite;
}
@keyframes hint {
  0%   { transform: scaleY(0); opacity: 1; }
  60%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hint::after { animation: none; }
}

/* ---------- light-revealed images ---------- */

/* The base image sits dim; a brightened copy shows through a soft moving mask. */
.lit {
  --lx: 50%;
  --ly: 50%;
  --rx: 22%;
  --ry: 45%;
  --la: 0;
}
.lit img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
}
.lit__base { filter: brightness(.5); }
.lit__light {
  opacity: var(--la);
  -webkit-mask-image: radial-gradient(ellipse var(--rx) var(--ry) at var(--lx) var(--ly), #000 0%, rgba(0, 0, 0, .7) 32%, rgba(0, 0, 0, .25) 62%, transparent 100%);
  mask-image: radial-gradient(ellipse var(--rx) var(--ry) at var(--lx) var(--ly), #000 0%, rgba(0, 0, 0, .7) 32%, rgba(0, 0, 0, .25) 62%, transparent 100%);
}

/* ---------- beats: a full-screen image with one centred line over it ---------- */

.beat {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  --scrim: 0;
}
.beat .lit { position: absolute; inset: 0; }

/* The product shot keeps the whole sleeve in frame. */
.beat--wide .lit img { object-fit: contain; }

/* Darkens the image behind the text once the light has done its work. */
.beat::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 75% 65% at 50% 50%, rgba(0, 0, 0, .78), rgba(0, 0, 0, .5) 55%, rgba(0, 0, 0, .3));
  opacity: var(--scrim);
  pointer-events: none;
}

.beat__copy {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: min(100% - 2 * var(--gutter), 1100px);
  transform: translate(-50%, -50%);
  text-align: center;
  opacity: 0;
  will-change: opacity, translate;
}
.beat__copy h2 {
  margin-inline: auto;
  max-width: 18ch;
  font-size: clamp(2.5rem, 6.4vw, 6.4rem);
  line-height: .93;
  text-shadow: 0 2px 40px rgba(0, 0, 0, .6);
}
.beat__copy p:not(.kicker) {
  margin: clamp(10px, 1.4vh, 16px) auto 0;
  max-width: 32em;
  font-size: clamp(1.02rem, 1.3vw, 1.25rem);
  font-weight: 500;
  line-height: 1.38;
  letter-spacing: -.018em;
  color: #c7c7cc;
  text-wrap: pretty;
}

.beat__copy--research h2 {
  max-width: 19ch;
  font-size: clamp(2.2rem, 4.6vw, 4.6rem);
}
.beat__copy h2 .muted { color: #8e8e93; }
.beat__copy--research p:not(.kicker):not(.status-line) { max-width: 38em; }

/* A small live dot before the status text. Plain inline-block (no flex), so no browser can squeeze it
   to nothing; the pulse is a ring that scales and fades, which Safari animates reliably. */
.status-line {
  display: block;
  margin-top: clamp(16px, 2.4vh, 24px) !important;
  font-size: 13px !important;
  font-weight: 500;
  color: var(--grey-1) !important;
}
.status-line__dot {
  position: relative;
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  vertical-align: 1px;
  border-radius: 50%;
  background: #fff;
}
.status-line__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #fff;
  opacity: .5;
  -webkit-animation: pulse 2.4s ease-out infinite;
  animation: pulse 2.4s ease-out infinite;
}
@-webkit-keyframes pulse {
  0%   { -webkit-transform: scale(1); opacity: .5; }
  80%  { -webkit-transform: scale(2.6); opacity: 0; }
  100% { -webkit-transform: scale(2.6); opacity: 0; }
}
@keyframes pulse {
  0%   { transform: scale(1); opacity: .5; }
  80%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .status-line__dot::after { animation: none; opacity: 0; }
}

/* ---------- 4 · stay in touch ---------- */

.connect {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.connect__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100% - 2 * var(--gutter), 820px);
  margin: auto;
  padding: 120px 0 40px;
  text-align: center;
  pointer-events: none;
}
.connect__inner > * { pointer-events: auto; }
/* The dots frame the section; the middle stays clean black behind the text and form. */
#connect-field {
  -webkit-mask-image: radial-gradient(ellipse 72% 64% at 50% 50%, transparent 46%, rgba(0, 0, 0, .55) 72%, #000 100%);
  mask-image: radial-gradient(ellipse 72% 64% at 50% 50%, transparent 46%, rgba(0, 0, 0, .55) 72%, #000 100%);
}
.connect h2 { max-width: 15ch; }
.connect__lede {
  margin-top: 14px;
  font-size: clamp(1.02rem, 1.3vw, 1.25rem);
  font-weight: 500;
  letter-spacing: -.018em;
  color: var(--grey-1);
}

.signup {
  width: 100%;
  max-width: 520px;
  margin-top: clamp(40px, 7vh, 64px);
}

.signup__interests {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.chip {
  padding: 8px 15px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: #d2d2d7;
}

.signup__row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(32px, 5vh, 44px);
  padding-bottom: 12px;
}
/* A hairline under the field that brightens from the centre when it's focused. */
.signup__row::before,
.signup__row::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
}
.signup__row::before { background: rgba(255, 255, 255, .22); }
.signup__row::after {
  background: linear-gradient(90deg, transparent, #fff 20%, #fff 80%, transparent);
  transform: scaleX(0);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.signup__row:focus-within::after { transform: scaleX(1); }

.signup input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 6px 2px;
  border: 0;
  background: none;
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 500;
  letter-spacing: -.02em;
  outline: none;
}
.signup input::placeholder { color: #5a5a5f; }

.signup__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.signup__submit {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
}
.signup__submit svg {
  width: 20px;
  height: 20px;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}
.signup__submit:hover svg { transform: translateX(2px); }
.signup__submit:disabled { opacity: .5; cursor: default; }

.signup__status {
  min-height: 1.4em;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--grey-1);
}
.signup__note {
  font-size: 12px;
  color: var(--grey-2);
}

.footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 24px var(--gutter) max(28px, env(safe-area-inset-bottom));
  font-size: 12px;
  color: var(--grey-2);
  /* Fade the dots out behind the footer text. */
  background: linear-gradient(transparent, rgba(0, 0, 0, .9) 40%);
  pointer-events: none;
}
.footer__tagline {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-size: 13px;
  font-weight: 400;
  color: var(--grey-1);
}

/* ---------- narrow screens ---------- */

@media (max-width: 820px), (max-aspect-ratio: 4/5) {
  /* Let the product overflow the sides a little so it stays large on a tall screen. */
  .beat--wide .lit img { left: -35%; width: 170%; }
}

@media (max-width: 480px) {
  .connect__inner { padding-top: 104px; }
  #connect-field {
    -webkit-mask-image: radial-gradient(ellipse 120% 52% at 50% 48%, transparent 50%, rgba(0, 0, 0, .5) 75%, #000 100%);
    mask-image: radial-gradient(ellipse 120% 52% at 50% 48%, transparent 50%, rgba(0, 0, 0, .5) 75%, #000 100%);
  }
  .chip { padding: 7px 12px; font-size: 13px; }
  .signup__interests { gap: 6px; }
}

