:root {
  color-scheme: dark;
  --ink: #050706;
  --paper: #f1f1e9;
  --paper-muted: rgba(241, 241, 233, 0.66);
  --hairline: rgba(241, 241, 233, 0.16);
  --acid: #a8d9bd;
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --sans: "Helvetica Neue", "Neue Haas Grotesk Text Pro", "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  min-width: 320px;
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 46%, rgba(40, 91, 73, 0.12), transparent 35%),
    var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

@media (hover: hover) and (pointer: fine) {
  body.molecule-cursor-active {
    cursor:
      url("molecule-cursor.svg") 5 5,
      url("molecule-cursor.png") 5 5,
      default;
  }

  body.molecule-cursor-active a,
  body.molecule-cursor-active button,
  body.molecule-cursor-active [role="button"] {
    cursor: pointer;
  }

  body.molecule-cursor-active h1,
  body.molecule-cursor-active p {
    cursor: text;
  }
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 0.9rem;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.875rem;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.world,
.world__wash,
.world__grain,
#organism {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.world {
  pointer-events: none;
  overflow: hidden;
}

#organism {
  display: block;
}

.world__wash {
  background:
    linear-gradient(90deg, rgba(5, 7, 6, 0.93) 0%, rgba(5, 7, 6, 0.58) 38%, transparent 64%),
    linear-gradient(180deg, rgba(5, 7, 6, 0.18), transparent 28%, rgba(5, 7, 6, 0.28));
}

.world__grain {
  opacity: 0.055;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.94' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.frame {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 100svh;
  grid-template-rows: auto 1fr auto;
  padding: clamp(1.4rem, 3.2vw, 3rem) clamp(1.25rem, 4.5vw, 5rem);
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  opacity: 0;
  transform: translateY(-10px);
  animation: arrive 900ms 120ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
  font-size: clamp(0.92rem, 1.2vw, 1.08rem);
  font-weight: 520;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.wordmark__mark {
  width: 1.85rem;
  height: 1.85rem;
  overflow: visible;
}

.mark-ring,
.mark-axis {
  fill: none;
  stroke: currentColor;
  vector-effect: non-scaling-stroke;
}

.mark-ring--outer {
  opacity: 0.9;
  stroke-width: 0.8;
  stroke-dasharray: 3 2.2;
  transform-origin: center;
  animation: orbit 18s linear infinite;
}

.mark-ring--inner {
  opacity: 0.42;
  stroke-width: 0.75;
  stroke-dasharray: 1 2.4;
  transform-origin: center;
  animation: orbit 11s linear infinite reverse;
}

.mark-axis {
  opacity: 0.6;
  stroke-width: 0.75;
}

.discipline,
.site-footer__signal,
.site-footer__index,
.eyebrow {
  margin: 0;
  color: var(--paper-muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  line-height: 1;
  text-transform: uppercase;
}

.discipline,
.site-footer__signal {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.discipline > span,
.site-footer__signal > span {
  display: block;
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 1rem rgba(168, 217, 189, 0.76);
}

.hero {
  display: grid;
  align-items: center;
  width: 100%;
  padding: clamp(3.5rem, 8vh, 7rem) 0 clamp(2.5rem, 5vh, 4.5rem);
}

.hero__copy {
  width: min(63rem, 69vw);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: clamp(1.25rem, 2.6vh, 2rem);
  opacity: 0;
  transform: translateY(10px);
  animation: arrive 900ms 280ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.eyebrow::before {
  width: clamp(2.4rem, 4vw, 4.6rem);
  height: 1px;
  background: var(--hairline);
  content: "";
}

h1 {
  max-width: 10ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4.1rem, 10.3vw, 10.9rem);
  font-weight: 400;
  letter-spacing: -0.072em;
  line-height: 0.72;
}

.title-line {
  display: block;
  overflow: hidden;
  padding: 0.13em 0.08em 0.24em 0;
  margin-bottom: -0.13em;
}

.title-line > span {
  display: block;
  transform: translateY(120%);
  animation: title-in 1.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.title-line:nth-child(1) {
  margin-bottom: -0.19em;
}

.title-line:nth-child(1) > span {
  animation-delay: 380ms;
}

.title-line:nth-child(2) > span {
  animation-delay: 500ms;
}

.title-line:nth-child(3) > span {
  animation-delay: 620ms;
}

.title-line--italic {
  margin-left: 0.78em;
  margin-bottom: -0.04em;
  color: rgba(241, 241, 233, 0.72);
  font-style: italic;
}

.title-line i {
  color: var(--acid);
  font-style: normal;
}

.description {
  max-width: 58ch;
  margin: clamp(2.2rem, 5vh, 4.2rem) 0 0 clamp(0rem, 5.4vw, 6rem);
  color: rgba(241, 241, 233, 0.68);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  font-weight: 400;
  letter-spacing: -0.016em;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(14px);
  animation: arrive 1s 940ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.site-footer {
  opacity: 0;
  transform: translateY(10px);
  animation: arrive 900ms 1.16s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.site-footer__index {
  letter-spacing: 0.1em;
}

@keyframes title-in {
  to { transform: translateY(0); }
}

@keyframes arrive {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .world__wash {
    background:
      linear-gradient(180deg, rgba(5, 7, 6, 0.08) 0%, rgba(5, 7, 6, 0.3) 46%, rgba(5, 7, 6, 0.93) 67%),
      radial-gradient(circle at 52% 30%, transparent 8%, rgba(5, 7, 6, 0.14) 58%);
  }

  .frame {
    padding: 1.4rem 1.25rem 1.35rem;
  }

  .hero {
    align-items: end;
    padding: min(36vh, 18rem) 0 2.4rem;
  }

  .hero__copy {
    width: 100%;
  }

  h1 {
    font-size: clamp(4rem, 18.8vw, 7.2rem);
    line-height: 0.75;
  }

  .description {
    max-width: 45rem;
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .discipline {
    font-size: 0;
    gap: 0;
  }

  .discipline > span {
    width: 0.38rem;
    height: 0.38rem;
  }

  .hero {
    min-height: calc(100svh - 8rem);
    padding-top: min(28vh, 12rem);
  }

  .eyebrow {
    font-size: 0.65rem;
    margin-bottom: 1rem;
  }

  h1 {
    font-size: clamp(3.65rem, 19.6vw, 6rem);
  }

  .title-line--italic {
    margin-left: 0.48em;
  }

  .description {
    margin-top: 1.85rem;
    font-size: 0.96rem;
    line-height: 1.55;
  }

  .site-footer__index {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
  }
}
