:root {
  --ink: #14251f;
  --paper: #f1efe6;
  --paper-dark: #e5e1d4;
  --accent: #d7563c;
  --lime: #cbdc82;
  --line: rgba(20, 37, 31, 0.22);
  --mono: "DM Mono", monospace;
  --sans: "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.grain {
  position: fixed;
  z-index: 10;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  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='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.site-header,
main,
footer {
  width: min(100% - 48px, 1380px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.brand small {
  font-family: var(--mono);
  font-size: 0.55em;
  font-weight: 400;
  vertical-align: top;
}

.brand-mark {
  width: 31px;
  fill: var(--accent);
}

.header-link,
.text-link {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-underline-offset: 5px;
}

.header-link:hover,
.text-link:hover {
  color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(400px, 0.85fr);
  gap: 7vw;
  align-items: center;
  min-height: calc(100vh - 96px);
  padding: 76px 0 100px;
}

.eyebrow,
.project-type,
.project-number,
.principles-intro,
.principle-grid span {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 790px;
  margin: 26px 0 32px;
  font-size: clamp(3.8rem, 7.8vw, 8.4rem);
  font-weight: 500;
  line-height: 0.89;
  letter-spacing: -0.075em;
}

.hero h1 span {
  display: block;
  color: var(--accent);
}

.intro {
  max-width: 670px;
  margin: 0;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-top: 42px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 23px;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.button:hover {
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-3px);
}

.button:active {
  transform: translateY(0);
}

.system-map {
  position: relative;
  aspect-ratio: 1;
  max-width: 570px;
  justify-self: end;
}

.orbit,
.map-node,
.map-core {
  position: absolute;
  border-radius: 50%;
}

.orbit {
  border: 1px solid var(--line);
}

.orbit-one {
  inset: 3%;
}

.orbit-two {
  inset: 21%;
  border-style: dashed;
  animation: rotate 35s linear infinite;
}

.map-core {
  inset: 36%;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--paper);
  background: var(--ink);
}

.map-core span {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.map-core small {
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 0.5rem;
}

.map-node {
  display: grid;
  width: 25%;
  aspect-ratio: 1;
  place-content: center;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: clamp(0.8rem, 1.3vw, 1.1rem);
}

.node-ai {
  top: 5%;
  right: 12%;
  background: var(--lime);
}

.node-defi {
  bottom: 7%;
  left: 4%;
  color: var(--paper);
  background: var(--accent);
  border-color: var(--accent);
}

.map-note {
  position: absolute;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.6rem;
  text-transform: uppercase;
}

.note-one {
  top: 17%;
  left: 1%;
}

.note-two {
  right: 0;
  bottom: 20%;
}

.work {
  padding: 120px 0 130px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 72px;
}

.section-heading h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.065em;
}

.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 42px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  transition: padding 220ms ease, color 220ms ease;
}

.project:last-child {
  border-bottom: 1px solid var(--line);
}

.project:hover {
  padding-inline: 20px;
  color: var(--accent);
}

.project-number {
  float: left;
  min-width: 62px;
}

.project-type {
  color: var(--accent);
}

.project h3 {
  clear: both;
  margin: 40px 0 0;
  font-size: clamp(2rem, 4vw, 4.3rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.055em;
}

.project-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
}

.project-meta p {
  max-width: 500px;
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
}

.project-arrow {
  font-size: 2rem;
}

.principles {
  display: grid;
  grid-template-columns: 0.6fr 2fr;
  gap: 60px;
  padding: 110px 0 140px;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.principle-grid article {
  min-height: 310px;
  padding: 28px;
  background: var(--paper-dark);
}

.principle-grid article:nth-child(2) {
  transform: translateY(42px);
  background: var(--lime);
}

.principle-grid h3 {
  margin: 72px 0 18px;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.principle-grid p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

footer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 40px;
  align-items: end;
  min-height: 240px;
  padding: 70px 0 45px;
  border-top: 1px solid var(--line);
}

footer p {
  max-width: 310px;
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
}

.copyright {
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 700ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero h1.reveal {
  animation-delay: 90ms;
}

.intro.reveal {
  animation-delay: 180ms;
}

.hero-actions.reveal {
  animation-delay: 270ms;
}

.system-map.reveal {
  animation-delay: 250ms;
}

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

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

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .system-map {
    width: min(100%, 520px);
    justify-self: center;
  }

  .section-heading,
  .principles {
    grid-template-columns: 1fr;
  }

  .principle-grid {
    grid-template-columns: 1fr 1fr;
  }

  .principle-grid article:nth-child(2) {
    transform: none;
  }
}

@media (max-width: 640px) {
  .site-header,
  main,
  footer {
    width: min(100% - 32px, 1380px);
  }

  .site-header {
    min-height: 76px;
  }

  .header-link {
    font-size: 0.63rem;
  }

  .hero {
    min-height: auto;
    padding: 68px 0 90px;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 18vw, 5rem);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .work {
    padding: 90px 0;
  }

  .section-heading {
    margin-bottom: 46px;
  }

  .project {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .project:hover {
    padding-inline: 0;
  }

  .project h3 {
    margin-top: 30px;
  }

  .principles {
    padding: 80px 0 110px;
  }

  .principle-grid {
    grid-template-columns: 1fr;
  }

  .principle-grid article {
    min-height: 270px;
  }

  footer {
    grid-template-columns: 1fr;
    min-height: 300px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
