@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --ink: #11110f;
  --paper: #e9e7de;
  --acid: #c8ff32;
  --muted: #9a9a91;
  --line: rgba(17, 17, 15, .2);
  --pad: clamp(1.25rem, 4vw, 4.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, sans-serif;
  overflow-x: hidden;
}
a { color: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 20; background: var(--acid); padding: .7rem 1rem; }
.skip-link:focus { top: 1rem; }
.noise { position: fixed; inset: 0; opacity: .035; pointer-events: none; z-index: 10; 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='.8'/%3E%3C/svg%3E"); }

.site-header { height: 82px; padding: 0 var(--pad); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); font-family: "DM Mono", monospace; font-size: .75rem; text-transform: uppercase; position: relative; z-index: 3; }
.wordmark { text-decoration: none; font: 700 1rem Manrope, sans-serif; letter-spacing: -.04em; }
.wordmark span { color: #637d0c; }
nav { display: flex; gap: 2rem; }
nav a, footer a { text-decoration: none; }
nav a:hover, footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.server-state { justify-self: end; display: flex; align-items: center; gap: .55rem; }
.pulse { width: 8px; height: 8px; background: var(--acid); border-radius: 50%; box-shadow: 0 0 0 0 rgba(111, 145, 11, .5); animation: pulse 2s infinite; }

.hero { min-height: calc(100vh - 82px); padding: clamp(4rem, 8vw, 8rem) var(--pad) 0; display: flex; flex-direction: column; }
.eyebrow, .section-number { font: 400 .72rem "DM Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.hero h1 { margin: clamp(2rem, 6vh, 5rem) 0; font-size: clamp(4.5rem, 12vw, 11rem); line-height: .78; letter-spacing: -.075em; font-weight: 600; text-transform: uppercase; }
.hero h1 span { display: block; }
.hero h1 span:nth-child(2) { padding-left: 9vw; }
.hero h1 span:nth-child(3) { text-align: right; }
.outline { color: transparent; -webkit-text-stroke: 1.5px var(--ink); font-style: italic; font-weight: 400; }
.hero-foot { margin-top: auto; padding-bottom: 3rem; display: flex; justify-content: flex-end; align-items: center; gap: clamp(2rem, 9vw, 10rem); }
.hero-foot > p { max-width: 520px; font-size: clamp(1rem, 1.5vw, 1.35rem); line-height: 1.55; }
.round-link { width: 125px; height: 125px; flex: 0 0 125px; border-radius: 50%; background: var(--ink); color: var(--paper); padding: 1.25rem; display: flex; justify-content: space-between; align-items: flex-end; text-decoration: none; font: .72rem "DM Mono", monospace; text-transform: uppercase; transition: transform .25s, background .25s, color .25s; }
.round-link:hover { transform: rotate(-7deg); background: var(--acid); color: var(--ink); }
.marquee { margin: 0 calc(var(--pad) * -1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: .9rem 0; overflow: hidden; white-space: nowrap; font: .72rem "DM Mono", monospace; }
.marquee div { width: max-content; animation: marquee 25s linear infinite; }

.section-grid { padding: clamp(7rem, 12vw, 12rem) var(--pad); display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 3rem; }
.profile h2, .work h2, .runtime h2 { margin: 0; font-size: clamp(3rem, 7vw, 7rem); line-height: .95; letter-spacing: -.06em; font-weight: 500; }
.lead { font-size: clamp(1.3rem, 2vw, 2rem); line-height: 1.4; max-width: 650px; }
.profile-copy { align-self: end; font-size: .95rem; line-height: 1.65; }

.work { background: var(--ink); color: var(--paper); padding: clamp(6rem, 10vw, 10rem) var(--pad); }
.work h2 { margin: 3rem 0 7rem; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #3b3b36; }
.principles article { min-height: 340px; padding: 1.5rem; border-right: 1px solid #3b3b36; display: flex; flex-direction: column; }
.principles article:last-child { border: 0; }
.principles span { font: .7rem "DM Mono", monospace; color: var(--acid); }
.principles h3 { margin-top: auto; font-size: clamp(1.7rem, 3vw, 3rem); letter-spacing: -.04em; }
.principles p { color: #aaa9a1; line-height: 1.6; max-width: 360px; }

.runtime { min-height: 85vh; padding: clamp(5rem, 10vw, 9rem) var(--pad); display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 5vw; background: var(--acid); }
.runtime-visual { aspect-ratio: 1; max-width: 620px; width: 100%; border: 1px solid var(--ink); border-radius: 50%; position: relative; display: grid; place-items: center; }
.orbit { position: absolute; width: 72%; height: 72%; border: 1px solid rgba(17,17,15,.45); border-radius: 50%; }
.orbit-one { animation: orbit 8s linear infinite; transform-origin: 70% 50%; }
.orbit-two { width: 45%; height: 45%; animation: orbit 5s linear reverse infinite; transform-origin: 30% 50%; }
.core { font-size: clamp(5rem, 12vw, 11rem); font-weight: 300; }
.runtime-copy > p { max-width: 580px; line-height: 1.65; font-size: 1.1rem; margin: 2.5rem 0 4rem; }
.runtime-copy .section-number { margin-bottom: 2.5rem; }
dl { border-top: 1px solid var(--ink); margin: 0; }
dl div { display: flex; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid var(--ink); font: .75rem "DM Mono", monospace; text-transform: uppercase; }
dd { margin: 0; }

.contact { padding: clamp(7rem, 12vw, 13rem) var(--pad); }
.contact h2 { font-size: clamp(4rem, 10vw, 10rem); letter-spacing: -.07em; line-height: .88; margin: 3rem 0 7rem; font-weight: 500; }
.contact em { font-weight: 400; color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.contact-link { font-size: clamp(1.4rem, 4vw, 4rem); letter-spacing: -.04em; display: flex; justify-content: space-between; text-decoration: none; border-bottom: 2px solid var(--ink); padding-bottom: 1rem; }
.contact-link:hover span:first-child { font-style: italic; }
footer { padding: 2rem var(--pad); display: flex; justify-content: space-between; border-top: 1px solid var(--line); font: .68rem "DM Mono", monospace; text-transform: uppercase; }

.reveal { animation: reveal .8s both; }
.reveal:nth-child(2) { animation-delay: .1s; }
.reveal:nth-child(3) { animation-delay: .2s; }
@keyframes reveal { from { opacity: 0; transform: translateY(25px); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(111,145,11,0); } 100% { box-shadow: 0 0 0 0 rgba(111,145,11,0); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes orbit { to { transform: rotate(360deg); } }

@media (max-width: 800px) {
  .site-header { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero { min-height: auto; }
  .hero h1 { margin: 5rem 0; }
  .hero h1 span:nth-child(2) { padding-left: 0; }
  .hero-foot { justify-content: space-between; }
  .section-grid { grid-template-columns: 1fr; }
  .profile-copy { max-width: 600px; }
  .principles { grid-template-columns: 1fr; }
  .principles article { min-height: 260px; border-right: 0; border-bottom: 1px solid #3b3b36; }
  .runtime { grid-template-columns: 1fr; }
  .runtime-visual { max-width: 430px; }
}

@media (max-width: 520px) {
  .hero h1 { font-size: 18vw; }
  .hero-foot { align-items: flex-start; flex-direction: column; }
  .round-link { align-self: flex-end; }
  footer { gap: 1rem; flex-direction: column; }
}

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