:root {
  --white: #ffffff;
  --ink: #0d0e12;
  --muted: #686c76;
  --faint: #a0a4ad;
  --violet: #6758ed;
  --mint: #bff0dc;
  --lavender: #dcd8ff;
  --blue: #d8e7ff;
  --page: clamp(1.25rem, 4.2vw, 4.75rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--white);
  color: var(--ink);
  font-family:
    "Helvetica Neue",
    "Avenir Next",
    Avenir,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.site {
  width: min(100%, 160rem);
  margin-inline: auto;
  overflow: clip;
}

.symbol {
  display: block;
  background: currentColor;
  -webkit-mask: url("/assets/arconite-symbol.svg") center / contain no-repeat;
  mask: url("/assets/arconite-symbol.svg") center / contain no-repeat;
}

.header {
  min-height: 5.75rem;
  padding-inline: var(--page);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
}

.brand {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.78rem;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-symbol {
  width: 1.45rem;
  aspect-ratio: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.8vw, 2.8rem);
}

.nav a,
.hero-scroll {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 160ms ease;
}

.nav a:hover,
.nav a:focus-visible,
.hero-scroll:hover,
.hero-scroll:focus-visible {
  color: var(--violet);
}

.hero {
  min-height: calc(100svh - 5.75rem);
  padding: 0 var(--page) clamp(1.5rem, 4vh, 3rem);
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  position: relative;
  isolation: isolate;
}

.memory-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.memory-field::after {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(to bottom, transparent, var(--white) 84%);
  pointer-events: none;
  content: "";
}

.memory-field canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 500ms ease;
}

.field-ready .memory-field canvas {
  opacity: 1;
}

.field-fallback {
  width: clamp(9rem, 17vw, 17rem);
  aspect-ratio: 1;
  position: absolute;
  top: 27%;
  left: 50%;
  color: var(--ink);
  transform: translate(-50%, -50%);
  transition: opacity 300ms ease;
}

.field-ready .field-fallback {
  opacity: 0;
}

.hero-copy {
  width: min(100%, 70rem);
  margin: 0 auto clamp(4rem, 9vh, 7rem);
  text-align: center;
}

.hero-label,
.section-label,
.system-domain,
.system > span,
.footer {
  font-family:
    "SFMono-Regular",
    "Roboto Mono",
    Consolas,
    monospace;
}

.hero-label,
.section-label,
.system-domain {
  color: var(--faint);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-label {
  margin: 0 0 1.6rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-weight: 460;
}

h1,
h2 {
  text-wrap: balance;
}

h1 {
  max-width: 13ch;
  margin: 0 auto 1.8rem;
  font-size: clamp(3.8rem, 6.35vw, 7.2rem);
  letter-spacing: -0.072em;
  line-height: 0.94;
}

h1 em {
  color: var(--violet);
  font-style: normal;
}

.hero-description {
  max-width: 41rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  letter-spacing: -0.015em;
  line-height: 1.58;
  text-wrap: pretty;
}

.hero-scroll {
  justify-self: center;
  gap: 1rem;
  color: var(--ink);
}

.thesis {
  min-height: 100svh;
  padding: clamp(8rem, 15vw, 16rem) var(--page);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.thesis h2 {
  max-width: 14ch;
  margin: clamp(2rem, 4vw, 4rem) 0 3rem;
  font-size: clamp(4rem, 7.2vw, 8.4rem);
  letter-spacing: -0.075em;
  line-height: 0.94;
}

.thesis h2 span {
  display: block;
  margin-top: 0.3em;
  color: var(--violet);
}

.thesis-description {
  width: min(100%, 39rem);
  margin: 0 0 clamp(5rem, 9vw, 9rem) auto;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  letter-spacing: -0.02em;
  line-height: 1.62;
  text-wrap: pretty;
}

.capability-line {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  color: var(--ink);
  font-size: clamp(1.5rem, 3.3vw, 3.5rem);
  letter-spacing: -0.055em;
}

.capability-line span:nth-child(2) {
  color: var(--violet);
}

.systems {
  padding: clamp(7rem, 11vw, 12rem) var(--page) clamp(8rem, 14vw, 15rem);
  background: #f7f7f8;
  border-radius: clamp(3rem, 7vw, 8rem) clamp(3rem, 7vw, 8rem) 0 0;
}

.systems-heading {
  margin-bottom: clamp(5rem, 9vw, 9rem);
  display: grid;
  grid-template-columns: minmax(8rem, 0.3fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 8rem);
}

.systems h2 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3.6rem, 7.2vw, 8.2rem);
  letter-spacing: -0.073em;
  line-height: 0.94;
}

.system-list {
  display: grid;
  gap: clamp(1rem, 2vw, 1.75rem);
}

.system {
  width: 100%;
  min-height: clamp(9rem, 13vw, 13rem);
  padding: clamp(1.7rem, 3vw, 3rem) clamp(2rem, 4vw, 4.5rem);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr auto;
  align-items: center;
  gap: 2rem;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 320ms ease;
}

.system:hover {
  transform: translateX(0.8rem);
  filter: saturate(112%);
}

.system-cloud {
  background: var(--mint);
}

.system-gripho {
  width: 86%;
  margin-left: auto;
  background: var(--lavender);
}

.system-skemax {
  width: 72%;
  margin-left: 7%;
  background: var(--blue);
}

.system-domain {
  margin-bottom: 0.8rem;
  color: rgb(13 14 18 / 48%);
}

.system h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.8rem);
  letter-spacing: -0.065em;
  line-height: 1;
}

.system > p {
  max-width: 24ch;
  margin: 0;
  color: rgb(13 14 18 / 62%);
  font-size: clamp(0.82rem, 1.15vw, 1.05rem);
  line-height: 1.5;
}

.system > span {
  color: rgb(13 14 18 / 52%);
  font-size: 0.57rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer {
  min-height: 10rem;
  padding-inline: var(--page);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  color: var(--faint);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
}

.footer span:last-child {
  justify-self: end;
}

@media (max-width: 760px) {
  :root {
    --page: 1.15rem;
  }

  .header {
    min-height: 5.25rem;
  }

  .brand {
    font-size: 0.66rem;
  }

  .nav a:not(:last-child) {
    display: none;
  }

  .hero {
    min-height: calc(100svh - 5.25rem);
    padding-bottom: 1rem;
  }

  .field-fallback {
    top: 16%;
  }

  .hero-copy {
    margin-bottom: clamp(3rem, 8vh, 5rem);
  }

  .hero-label {
    margin-bottom: 1.3rem;
  }

  h1 {
    font-size: clamp(3.2rem, 15vw, 5.5rem);
  }

  .hero-description {
    max-width: 31rem;
    font-size: 0.98rem;
  }

  .thesis {
    min-height: auto;
    padding-block: 9rem;
  }

  .thesis h2 {
    margin-bottom: 2.5rem;
    font-size: clamp(3rem, 12.6vw, 5.25rem);
  }

  .thesis-description {
    margin-bottom: 5rem;
  }

  .capability-line {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    font-size: clamp(1.5rem, 8vw, 2.5rem);
  }

  .systems {
    padding-block: 7rem;
    border-radius: 3rem 3rem 0 0;
  }

  .systems-heading {
    margin-bottom: 4.5rem;
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .systems h2 {
    font-size: clamp(3.1rem, 12.8vw, 5.25rem);
  }

  .system,
  .system-gripho,
  .system-skemax {
    width: 100%;
    min-height: 12rem;
    margin-left: 0;
    padding: 2rem;
    grid-template-columns: 1fr auto;
    gap: 1.25rem;
    border-radius: 3rem;
  }

  .system > p {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .system > span {
    grid-column: 2;
    grid-row: 1;
  }

  .footer {
    min-height: 11rem;
    grid-template-columns: 1fr auto;
  }

  .footer span:nth-child(2) {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 0.15rem solid var(--violet);
  outline-offset: 0.35rem;
}
