@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-400-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #101010;
  --red: #d71920;
  --line: rgba(17, 17, 17, 0.22);
  --grid: #ededed;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Mono", "Courier New", monospace;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  color: var(--paper);
  background: var(--red);
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
  padding: 0.72rem clamp(1rem, 2.2vw, 2.5rem);
}

.wordmark {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.055em;
}

.system-line {
  margin: 0;
  font-size: 0.63rem;
  font-weight: 400;
  letter-spacing: 0.045em;
}

.system-line span {
  color: var(--red);
}

.panel {
  position: relative;
  min-height: 86svh;
  border-bottom: 1px solid var(--ink);
  background-image: linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), var(--grid) calc(100% - 1px));
  background-size: 8.333333% 100%;
  padding: clamp(5.5rem, 8vw, 7.2rem) clamp(1rem, 5.6vw, 6.25rem)
    clamp(2rem, 4vw, 4rem);
}

.panel::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: clamp(1rem, 2.2vw, 2.5rem);
  width: 1px;
  background: var(--ink);
  content: "";
  opacity: 0.42;
}

.section-index {
  position: absolute;
  top: 4.6rem;
  right: clamp(1rem, 2.2vw, 2.5rem);
  margin: 0;
  color: var(--red);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.055em;
}

h1,
h2 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.94;
  text-transform: uppercase;
}

h1 {
  max-width: 13ch;
  font-size: clamp(3.15rem, 7.6vw, 7.8rem);
}

h2 {
  font-size: clamp(2.7rem, 5.3vw, 5.55rem);
}

.red {
  color: var(--red);
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100svh;
}

.hero-copy {
  width: 100%;
  margin-top: clamp(7rem, 15vh, 10rem);
}

.voice {
  white-space: pre-line;
  font-style: italic;
}

.hero-voice {
  min-height: 3.8em;
  max-width: 34ch;
  margin: clamp(2.5rem, 4vw, 4rem) 8.333333% 0 auto;
  font-size: clamp(1rem, 1.32vw, 1.25rem);
  line-height: 1.5;
}

.cursor {
  margin-left: 0.08em;
  color: var(--red);
  font-style: normal;
  animation: blink 0.9s steps(1, end) infinite;
}

.scroll-cue {
  position: absolute;
  right: clamp(1rem, 2.2vw, 2.5rem);
  bottom: 1.8rem;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.scroll-cue span {
  color: var(--red);
}

.statement {
  display: flex;
  align-items: center;
}

.statement-grid {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) minmax(19rem, 1fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: end;
}

.statement-voice {
  min-height: 22em;
  margin: 0 0 0.7rem;
  font-size: clamp(0.9rem, 1.04vw, 1.02rem);
  line-height: 1.55;
}

.medium {
  display: block;
}

.medium-copy {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 0.9fr) minmax(19rem, 1.1fr);
  gap: clamp(3rem, 8vw, 10rem);
  align-items: center;
  min-height: calc(86svh - 11rem);
}

.medium-voice {
  min-height: 8em;
  max-width: 52ch;
  margin: 0;
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  line-height: 1.55;
}

.services {
  margin-top: clamp(4rem, 9vw, 10rem);
  border-top: 1px solid var(--ink);
}

.service-row {
  display: grid;
  grid-template-columns: minmax(12rem, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 7vw, 8rem);
  border-bottom: 1px solid var(--ink);
  padding: clamp(1.5rem, 3vw, 3rem) 0;
}

.service-row h3 {
  margin: 0;
  font-size: clamp(0.92rem, 1.16vw, 1.12rem);
  font-weight: 600;
  line-height: 1.3;
  text-transform: uppercase;
}

.service-row p {
  max-width: 62ch;
  margin: 0;
  font-size: clamp(0.88rem, 1vw, 1rem);
  line-height: 1.65;
}

.experience,
.collaboration,
.interests,
.contact {
  display: flex;
  align-items: center;
}

.split-copy {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1.1fr) minmax(20rem, 0.9fr);
  gap: clamp(3rem, 8vw, 10rem);
  align-items: center;
}

.experience h2 {
  font-size: clamp(2.25rem, 4.15vw, 4.25rem);
}

.body-copy {
  max-width: 58ch;
  font-size: clamp(0.88rem, 1vw, 1rem);
  line-height: 1.7;
}

.body-copy p {
  margin: 0 0 1.3em;
}

.body-copy p:last-child {
  margin-bottom: 0;
}

.staccato {
  margin-top: 2.25rem;
  font-weight: 600;
}

.collaboration-voice {
  min-height: 8em;
  margin: 0 0 3rem;
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  line-height: 1.55;
}

.collaboration .body-copy {
  margin-left: auto;
}

.interest-list {
  margin: clamp(3rem, 6vw, 6rem) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.interest-list li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  border-bottom: 1px solid var(--ink);
  padding: 1.1rem 0;
  font-size: clamp(0.92rem, 1.15vw, 1.12rem);
  line-height: 1.35;
}

.interest-list .number {
  color: var(--red);
  font-weight: 700;
}

.interest-areas {
  margin: clamp(2.5rem, 5vw, 5rem) 0 0 auto;
  max-width: 54ch;
  font-size: clamp(0.84rem, 0.95vw, 0.95rem);
  line-height: 1.8;
}

.contact {
  min-height: 92svh;
}

.contact h2 {
  font-size: clamp(3.3rem, 7.5vw, 7.8rem);
}

.contact-copy {
  max-width: 63ch;
  margin: clamp(3rem, 6vw, 6rem) 0 0 auto;
}

.contact-copy p {
  margin: 0 0 1.5rem;
  font-size: clamp(0.9rem, 1.05vw, 1.02rem);
  line-height: 1.65;
}

.mail-link {
  display: inline-block;
  margin-top: 1.5rem;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.3rem;
  font-size: clamp(1rem, 1.35vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  transition: color 120ms linear, border-color 120ms linear;
}

.mail-link:hover,
.mail-link:focus-visible {
  color: var(--red);
  border-color: var(--red);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  border-top: 1px solid var(--ink);
  padding: 2rem clamp(1rem, 4.2vw, 4.75rem) 2.5rem;
  font-size: 0.72rem;
  line-height: 1.65;
  letter-spacing: 0.04em;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: clamp(1rem, 3vw, 3rem);
  align-items: flex-start;
  font-weight: 600;
}

.footer-links a {
  border-bottom: 1px solid transparent;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--red);
  border-color: var(--red);
}

.legal-page {
  min-height: 100svh;
  padding: clamp(7rem, 10vw, 9rem) clamp(1rem, 5.6vw, 6.25rem) clamp(4rem, 8vw, 7rem);
  background-image: linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), var(--grid) calc(100% - 1px));
  background-size: 8.333333% 100%;
}

.legal-intro {
  border-bottom: 1px solid var(--ink);
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.legal-intro h1 {
  font-size: clamp(2.7rem, 6vw, 6rem);
}

.legal-index {
  margin: 0 0 1.5rem;
  color: var(--red);
  font-size: 0.62rem;
  letter-spacing: 0.055em;
}

.legal-content {
  display: grid;
  grid-template-columns: minmax(12rem, 0.55fr) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 8rem);
  padding-top: clamp(2.5rem, 6vw, 5rem);
}

.legal-nav {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.legal-nav a {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.15rem;
}

.legal-nav a:hover,
.legal-nav a:focus-visible,
.legal-text a:hover,
.legal-text a:focus-visible {
  color: var(--red);
  border-color: var(--red);
}

.legal-text {
  max-width: 68ch;
  font-size: clamp(0.86rem, 1vw, 0.98rem);
  line-height: 1.75;
}

.legal-text section {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.legal-text h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(1.05rem, 1.45vw, 1.35rem);
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.legal-text p {
  margin: 0 0 1.15em;
}

.legal-text a {
  border-bottom: 1px solid var(--ink);
}

.legal-meta {
  color: #555;
  font-size: 0.72rem;
}

@keyframes blink {
  0%,
  48% {
    opacity: 1;
  }
  49%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
  }

  .system-line {
    max-width: 19ch;
    text-align: right;
    line-height: 1.45;
  }

  .panel {
    min-height: 100svh;
    padding-top: 7rem;
    background-size: 25% 100%;
  }

  .section-index {
    top: 5.7rem;
  }

  h1 {
    font-size: clamp(2.65rem, 12.8vw, 4.1rem);
  }

  h2 {
    font-size: clamp(2.25rem, 10.8vw, 3.7rem);
  }

  .hero-voice {
    margin-left: 0;
    margin-right: 0;
  }

  .statement,
  .experience,
  .collaboration,
  .interests,
  .contact {
    align-items: flex-start;
  }

  .statement-grid,
  .medium-copy,
  .split-copy {
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
  }

  .medium-copy {
    min-height: auto;
  }

  .statement-voice {
    min-height: 23em;
  }

  .medium-voice {
    min-height: 9em;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .collaboration .body-copy,
  .interest-areas,
  .contact-copy {
    margin-left: 0;
  }

  .interest-list li {
    grid-template-columns: 2.7rem 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .legal-page {
    background-size: 25% 100%;
  }

  .legal-content {
    grid-template-columns: 1fr;
  }
}

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

  .cursor {
    animation: none;
  }
}
