/* Kaevo Labs LLC — kaevolabs.com */

:root {
  --paper: #ffffff;
  --ink: #000000;
  --cobalt: #1f3be0;
  --slate: #6b6b6b;
  --hairline: #e4e4e4;

  --gutter: clamp(1.25rem, 6vw, 6rem);
  --measure: 68ch;
  --section-gap: clamp(3.5rem, 9vw, 7.5rem);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

p,
h1,
h2,
h3,
ul,
ol,
dl {
  margin: 0;
}

a {
  color: var(--cobalt);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
}

/* ---------- shell ---------- */

.wrap {
  padding-inline: var(--gutter);
  max-width: 78rem;
}

.prose {
  max-width: var(--measure);
}

.rule {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 0;
}

/* ---------- kinetic grid background ---------- */

.kinetic-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  /* clicks, selection and scrolling all pass through to the page beneath */
  pointer-events: none;
}

/* The grid is a positioned child of body, so it would otherwise paint over
   static page content. Lift the three page regions above it. */
.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* ---------- arc reveal intro ---------- */

.arc-intro-locked,
.arc-intro-locked body {
  overflow: hidden;
}

.arc-intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--paper);
  overflow: hidden;
  opacity: 1;
  transition: opacity 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

.arc-intro[data-fading="true"] {
  opacity: 0;
}

.arc-intro__word {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding-inline: 1.5rem;
  color: var(--ink);
  font-weight: 800;
  font-size: clamp(2.5rem, 9vw, 6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 240ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.arc-intro__word[data-state="in"] {
  opacity: 1;
  transform: none;
}

.arc-intro__word[data-state="out"] {
  opacity: 0;
  transform: translateY(-8px);
}

.arc-intro__curtain {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .arc-intro { display: none; }
}

/* ---------- cover ---------- */

.cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  background: #030303;
  overflow: hidden;
}

.cover__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

.cover__inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  width: 100%;
  padding-inline: var(--gutter);
}

.cover__logo {
  display: block;
  width: min(78vw, 44rem);
  height: auto;
}

.cover__cue {
  position: absolute;
  z-index: 1;
  bottom: clamp(1.5rem, 4vw, 2.5rem);
  left: 50%;
  transform: translateX(-50%);
  color: #8a8a8a;
  font-size: 0.8125rem;
  text-decoration: none;
}

.cover__cue:hover {
  color: #e0e0e0;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.cover__cue:focus-visible {
  outline: 2px solid #8ee7ec;
  outline-offset: 4px;
}

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

.site-header {
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
}

.wordmark {
  display: inline-block;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

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

.hero {
  padding-top: clamp(2rem, 6vw, 4.5rem);
  padding-bottom: var(--section-gap);
}

.hero h1 {
  font-weight: 900;
  font-size: clamp(2.5rem, 10.5vw, 8.75rem);
  line-height: 0.93;
  letter-spacing: -0.03em;
}

.hero h1 .line {
  display: block;
}

.hero-support {
  max-width: 46ch;
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
}

.hero-link {
  display: inline-block;
  margin-top: 1.25rem;
}

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

.section {
  padding-block: var(--section-gap);
  border-top: 1px solid var(--hairline);
}

.section h2 {
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.item {
  max-width: var(--measure);
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--hairline);
}

.item:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.item:last-of-type {
  padding-bottom: 0;
}

.item h3 {
  font-weight: 800;
  font-size: clamp(1.25rem, 2.4vw, 1.625rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.875rem;
}

.item p + p,
.prose p + p {
  margin-top: 1.15rem;
}

.contact-line {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.address {
  max-width: var(--measure);
  margin-top: 1.5rem;
  color: var(--slate);
  font-style: normal;
}

/* ---------- legal pages ---------- */

.page-head {
  padding-top: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.page-head h1 {
  font-weight: 900;
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.updated {
  margin-top: 1rem;
  color: var(--slate);
  font-size: 0.9375rem;
}

.legal {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: var(--section-gap);
  border-top: 1px solid var(--hairline);
}

.legal h2 {
  font-weight: 800;
  font-size: clamp(1.25rem, 2.6vw, 1.625rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 0.875rem;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal ul {
  padding-left: 1.15rem;
  margin-top: 1.15rem;
}

.legal li + li {
  margin-top: 0.5rem;
}

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

.site-footer {
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--hairline);
  color: var(--slate);
  font-size: 0.9375rem;
}

.site-footer .legal-name {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-address {
  margin-top: 0.5rem;
  font-style: normal;
  max-width: var(--measure);
}

.copyright {
  margin-top: 1.5rem;
}

/* ---------- the one moment ---------- */

.js .hero h1 .line {
  opacity: 0;
  transform: translateY(0.22em);
}

.js.is-ready .hero h1 .line {
  opacity: 1;
  transform: none;
  transition: opacity 400ms ease-out, transform 400ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

.js.is-ready .hero h1 .line:nth-child(2) {
  transition-delay: 70ms;
}

.js.is-ready .hero h1 .line:nth-child(3) {
  transition-delay: 140ms;
}

.js.is-ready .hero h1 .line:nth-child(4) {
  transition-delay: 210ms;
}

@media (prefers-reduced-motion: reduce) {
  .js .hero h1 .line,
  .js.is-ready .hero h1 .line {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
