@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/newsreader-400.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/newsreader-500.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/newsreader-600.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/space-grotesk-400.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/space-grotesk-500.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/space-grotesk-600.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-700.woff2") format("woff2");
}

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

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

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

:root {
  color-scheme: light;
  --paper: oklch(0.987 0.004 85);
  --paper-2: oklch(0.968 0.006 85);
  --paper-3: oklch(0.945 0.007 85);
  --ink: oklch(0.24 0.014 265);
  --ink-2: oklch(0.44 0.012 265);
  --ink-3: oklch(0.56 0.01 265);
  --rule: oklch(0.87 0.007 265);
  --rule-2: oklch(0.78 0.01 265);
  --signal: oklch(0.545 0.18 32);
  --signal-soft: oklch(0.945 0.038 40);
  --pulse: oklch(0.54 0.15 250);
  --pulse-soft: oklch(0.945 0.032 250);
  --focus: oklch(0.54 0.15 250);
  --serif: "Newsreader", "Iowan Old Style", "Baskerville", Georgia, serif;
  --sans: "Space Grotesk", "Avenir Next", Avenir, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --shell: 1240px;
  --gutter: clamp(20px, 3vw, 40px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: oklch(0.205 0.014 265);
  --paper-2: oklch(0.248 0.016 265);
  --paper-3: oklch(0.285 0.018 265);
  --ink: oklch(0.945 0.006 85);
  --ink-2: oklch(0.78 0.01 265);
  --ink-3: oklch(0.67 0.012 265);
  --rule: oklch(0.36 0.014 265);
  --rule-2: oklch(0.47 0.016 265);
  --signal: oklch(0.7 0.165 38);
  --signal-soft: oklch(0.315 0.06 38);
  --pulse: oklch(0.72 0.125 248);
  --pulse-soft: oklch(0.315 0.055 250);
  --focus: oklch(0.72 0.125 248);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  transition: background-color 300ms var(--ease), color 300ms var(--ease);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  color: inherit;
}

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

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--paper);
  font: 600 13px/1 var(--sans);
  transition: transform 180ms var(--ease);
}

.skip-link:focus {
  transform: none;
}

.page-shell {
  width: min(100%, calc(var(--shell) + (2 * var(--gutter))));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--rule);
  background: color-mix(in oklch, var(--paper) 90%, transparent);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100%, calc(var(--shell) + (2 * var(--gutter))));
  min-height: 78px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 15px;
}

.brand-mark {
  position: relative;
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
}

.brand-mark__signal,
.brand-mark__pulse {
  position: absolute;
  display: block;
}

.brand-mark__signal {
  inset: 0;
  background: var(--signal);
}

.brand-mark__pulse {
  right: -6px;
  bottom: -6px;
  width: 13px;
  height: 13px;
  background: var(--pulse);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-copy strong {
  font: 700 16px/1 var(--sans);
  letter-spacing: 0.035em;
}

.brand-copy span {
  margin-top: 5px;
  color: var(--ink-3);
  font: 500 9.5px/1.2 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: stretch;
  height: 78px;
  gap: clamp(24px, 4vw, 54px);
}

.site-nav a {
  position: relative;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  content: "";
  transform: scaleX(0);
  background: var(--signal);
  transition: transform 180ms var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current="true"] {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a[aria-current="true"]::after {
  transform: scaleX(1);
}

.theme-toggle {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-width: 88px;
  min-height: 38px;
  justify-content: center;
  border: 1px solid var(--rule-2);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  gap: 8px;
  transition: border-color 180ms var(--ease), color 180ms var(--ease);
}

.theme-toggle:hover {
  border-color: var(--ink-3);
}

.hero {
  min-height: calc(100svh - 78px);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  min-height: clamp(600px, 65svh, 720px);
  align-items: center;
  gap: clamp(48px, 6vw, 80px);
  padding-top: 58px;
  padding-bottom: 58px;
}

.hero__copy {
  max-width: 730px;
}

.hero h1 {
  max-width: 10.5ch;
  margin: 0;
  font: 500 clamp(68px, 8.7vw, 126px) / 0.88 var(--serif);
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero__copy > p {
  max-width: 560px;
  margin: 30px 0 0;
  color: var(--ink-2);
  font: 400 clamp(19px, 1.8vw, 24px) / 1.45 var(--serif);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 32px;
  gap: 22px 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 23px;
  border-radius: 2px;
  font: 600 13px/1.2 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  gap: 18px;
  transition: transform 180ms var(--ease), background-color 180ms var(--ease);
}

.button--primary {
  background: var(--signal);
  color: oklch(0.99 0 0);
}

.button--primary:hover {
  transform: translateY(-2px);
}

.text-link {
  display: inline-flex;
  width: fit-content;
  border-bottom: 1px solid currentColor;
  color: var(--pulse);
  font: 500 11px/1.5 var(--mono);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  gap: 8px;
}

.text-link:hover,
.project a:hover {
  color: var(--signal);
}

.hero-pulse {
  display: flex;
  min-height: 100px;
  align-items: center;
  justify-content: center;
  gap: clamp(7px, 0.85vw, 14px);
  color: var(--pulse);
}

.hero-pulse::before,
.hero-pulse::after {
  width: 18px;
  border-top: 2px dotted currentColor;
  content: "";
}

.hero-pulse span {
  width: 2px;
  height: var(--h);
  min-height: 2px;
  background: currentColor;
}

.disciplines {
  display: flex;
  min-height: 62px;
  align-items: center;
  margin-top: 0;
  margin-bottom: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
  font: 500 10.5px/1.3 var(--mono);
  letter-spacing: 0.13em;
  list-style: none;
  text-transform: uppercase;
  gap: 0;
}

.disciplines li {
  display: inline-flex;
  align-items: center;
}

.disciplines li:not(:last-child)::after {
  margin-inline: 18px;
  color: var(--signal);
  content: "·";
}

.section {
  scroll-margin-top: 78px;
}

.section-label,
.project__meta {
  margin: 0;
  color: var(--signal);
  font: 500 11px/1.4 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-intro {
  padding: clamp(76px, 9vw, 116px) 0 52px;
}

.section-intro h2 {
  max-width: 17ch;
  margin: 14px 0 0;
  font: 500 clamp(45px, 5.7vw, 78px) / 0.98 var(--serif);
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.section-intro > p:last-child {
  max-width: 610px;
  margin: 22px 0 0;
  color: var(--ink-2);
  font: 400 clamp(18px, 1.6vw, 22px) / 1.5 var(--serif);
}

.project-list {
  border: 1px solid var(--rule);
}

.project {
  display: grid;
  grid-template-columns: minmax(310px, 0.95fr) minmax(300px, 1.15fr) minmax(200px, 0.7fr);
  min-height: 238px;
}

.project + .project {
  border-top: 1px solid var(--rule);
}

.project > * + * {
  border-left: 1px solid var(--rule);
}

.project__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(26px, 3vw, 36px);
}

.project__meta {
  color: var(--ink-2);
  font-size: 9.5px;
}

.project__meta i {
  margin-inline: 5px;
  color: var(--signal);
  font-style: normal;
}

.project h3 {
  margin: 12px 0 0;
  font: 500 clamp(29px, 3vw, 42px) / 1.05 var(--serif);
  letter-spacing: -0.02em;
}

.project__copy > p:not(.project__meta) {
  max-width: 480px;
  margin: 12px 0 0;
  color: var(--ink-2);
  font: 400 15px/1.55 var(--sans);
}

.project__copy > a {
  margin-top: auto;
  padding-top: 22px;
  color: var(--pulse);
  font: 500 10.5px/1.4 var(--mono);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: color 180ms var(--ease);
}

.project__motif {
  display: grid;
  min-height: 190px;
  place-items: center;
  padding: 28px;
  color: var(--pulse);
}

.project__url {
  display: flex;
  align-items: flex-end;
  margin: 0;
  padding: 32px;
  color: var(--pulse);
  font: 500 9.5px/1.5 var(--mono);
  letter-spacing: 0.1em;
  text-decoration: underline;
  text-decoration-color: color-mix(in oklch, currentColor 60%, transparent);
  text-underline-offset: 5px;
  text-transform: uppercase;
  transition: color 180ms var(--ease);
}

.motif-sources {
  display: grid;
  grid-template-columns: repeat(4, minmax(34px, 80px));
  align-content: center;
  justify-content: center;
  gap: 12px 8px;
}

.motif-sources span {
  width: 100%;
  height: 2px;
  background: currentColor;
}

.motif-sources span:nth-child(3n + 1) {
  transform: translateX(22px);
}

.motif-sources span:nth-child(4n) {
  width: 42%;
}

.motif-sources span:nth-child(5n) {
  border-top: 2px dotted currentColor;
  background: transparent;
}

.motif-branches svg {
  overflow: visible;
  width: min(100%, 440px);
  fill: var(--paper);
  stroke: var(--signal);
  stroke-width: 2;
}

.motif-branches .dotted {
  stroke-dasharray: 2 7;
}

.motif-atlas {
  display: flex;
  width: min(100%, 470px);
  flex-direction: column;
}

.motif-atlas__rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  color: var(--pulse);
  width: 100%;
}

.motif-atlas__rail::before {
  position: absolute;
  z-index: 0;
  top: 29px;
  right: 0;
  left: 0;
  border-top: 2px solid currentColor;
  content: "";
}

.motif-atlas__rail span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  font: 500 10px/1 var(--mono);
}

.motif-atlas__rail span::after {
  width: 10px;
  height: 10px;
  margin-top: 12px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  outline: 2px solid var(--pulse);
  background: var(--pulse);
  content: "";
}

.motif-atlas__notes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
  gap: 20px;
}

.motif-atlas__notes span {
  height: 58px;
  margin: 0 auto;
  border-top: 18px solid transparent;
  border-bottom: 2px dotted var(--pulse);
  border-left: 2px solid var(--pulse);
  width: 60%;
}

.approach {
  padding-top: clamp(100px, 12vw, 170px);
}

.approach .page-shell {
  border-top: 1px solid var(--rule);
  padding-top: 32px;
}

.approach__headline {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: end;
  gap: 50px;
  padding-top: 18px;
}

.approach h2 {
  margin: 0;
  font: 500 clamp(56px, 7.3vw, 100px) / 0.92 var(--serif);
  letter-spacing: -0.042em;
  text-wrap: balance;
}

.sequence {
  position: relative;
  display: flex;
  height: 80px;
  align-items: center;
  color: var(--pulse);
}

.sequence::before {
  width: 100%;
  border-top: 2px solid currentColor;
  content: "";
}

.sequence i {
  position: absolute;
  left: 0;
  width: 2px;
  height: 46px;
  background: currentColor;
}

.sequence span {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: var(--paper);
}

.sequence span:nth-of-type(1) {
  left: 25%;
}

.sequence span:nth-of-type(2) {
  left: 54%;
}

.sequence span:nth-of-type(3) {
  left: 82%;
}

.sequence b {
  position: absolute;
  right: 0;
  width: 13px;
  height: 13px;
  transform: rotate(45deg);
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.approach__intro {
  max-width: 590px;
  margin: 42px 0;
  color: var(--ink-2);
  font: 400 clamp(18px, 1.6vw, 22px) / 1.5 var(--sans);
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.principles article {
  min-height: 190px;
  padding: 30px clamp(24px, 3vw, 42px);
}

.principles article:first-child {
  padding-left: 0;
}

.principles article:last-child {
  padding-right: 0;
}

.principles article + article {
  border-left: 1px solid var(--rule);
}

.principles h3 {
  margin: 0;
  color: var(--signal);
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.06em;
}

.principles p {
  max-width: 37ch;
  margin: 14px 0 0;
  color: var(--ink-2);
  font: 400 clamp(16px, 1.5vw, 20px) / 1.5 var(--sans);
}

.about {
  padding-top: clamp(78px, 9vw, 120px);
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
  align-items: start;
  padding: 24px 0 clamp(94px, 11vw, 150px);
  gap: clamp(50px, 9vw, 140px);
}

.about h2 {
  max-width: 18ch;
  margin: 0;
  font: 500 clamp(36px, 4.2vw, 58px) / 1.04 var(--serif);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.about__grid > div {
  padding-top: 5px;
}

.about__grid p {
  max-width: 630px;
  margin: 0 0 25px;
  color: var(--ink-2);
  font: 400 clamp(18px, 1.7vw, 22px) / 1.55 var(--sans);
}

.site-footer {
  border-top: 1px solid var(--rule);
}

.site-footer__inner {
  display: flex;
  min-height: 120px;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.brand--footer {
  align-items: flex-start;
}

.brand--footer .brand-copy span {
  margin-top: 3px;
  letter-spacing: 0;
  text-transform: none;
}

.site-footer p {
  margin: 0;
  color: var(--ink-3);
  font: 400 10.5px/1.5 var(--sans);
}

.not-found {
  display: grid;
  min-height: 100svh;
  align-content: center;
  padding-block: 60px;
}

.not-found h1 {
  max-width: 10ch;
  margin: 18px 0 20px;
  font: 500 clamp(60px, 11vw, 128px) / 0.9 var(--serif);
  letter-spacing: -0.04em;
}

.not-found > p:not(.section-label) {
  max-width: 48ch;
  margin: 0 0 28px;
  color: var(--ink-2);
  font: 400 21px/1.5 var(--serif);
}

.not-found .button {
  width: fit-content;
}

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    min-height: 72px;
  }

  .site-nav {
    grid-row: 2;
    grid-column: 1 / -1;
    height: 46px;
    justify-content: center;
    border-top: 1px solid var(--rule);
  }

  .theme-toggle {
    grid-column: 2;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    min-height: auto;
    align-items: start;
    gap: 36px;
    padding-top: clamp(70px, 14vw, 120px);
    padding-bottom: 58px;
  }

  .hero h1 {
    font-size: clamp(64px, 13vw, 104px);
  }

  .hero-pulse {
    justify-content: flex-start;
  }

  .project {
    grid-template-columns: minmax(300px, 1fr) minmax(260px, 0.9fr);
  }

  .project__url {
    grid-column: 1 / -1;
    min-height: 64px;
    align-items: center;
    border-top: 1px solid var(--rule);
    border-left: 0;
    padding: 20px 28px;
  }

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

  .sequence {
    max-width: 620px;
  }

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

  .principles article,
  .principles article:first-child,
  .principles article:last-child {
    min-height: 0;
    padding: 28px 0 32px;
  }

  .principles article + article {
    border-top: 1px solid var(--rule);
    border-left: 0;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 112px;
  }

  .header-inner {
    min-height: 66px;
    gap: 14px;
  }

  .brand-mark {
    width: 24px;
    height: 24px;
  }

  .brand-mark__pulse {
    width: 10px;
    height: 10px;
  }

  .brand-copy strong {
    font-size: 14px;
  }

  .brand-copy span {
    overflow: hidden;
    max-width: 175px;
    text-overflow: ellipsis;
    font-size: 8px;
  }

  .theme-toggle {
    min-width: 72px;
    min-height: 34px;
  }

  .site-nav {
    height: 44px;
    justify-content: flex-start;
    gap: 28px;
  }

  .hero h1 {
    font-size: clamp(56px, 18vw, 78px);
    line-height: 0.92;
  }

  .hero__copy > p {
    font-size: 19px;
  }

  .hero-pulse {
    min-height: 80px;
    transform: scaleX(0.78);
    transform-origin: left center;
  }

  .disciplines {
    min-height: 74px;
    flex-wrap: wrap;
    padding-block: 14px;
    row-gap: 7px;
  }

  .disciplines li:not(:last-child)::after {
    margin-inline: 11px;
  }

  .section-intro {
    padding-top: 72px;
  }

  .section-intro h2 {
    font-size: clamp(42px, 13vw, 58px);
  }

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

  .project > * + * {
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .project__copy {
    min-height: 320px;
  }

  .project__motif {
    min-height: 210px;
  }

  .project__url {
    grid-column: auto;
  }

  .approach {
    padding-top: 90px;
  }

  .approach h2 {
    font-size: clamp(50px, 15vw, 72px);
  }

  .approach__intro {
    margin-top: 26px;
  }

  .about__grid {
    grid-template-columns: 1fr;
    padding-top: 20px;
    gap: 34px;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 30px;
    gap: 28px;
  }
}

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

@media print {
  .site-header,
  .skip-link,
  .theme-toggle {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .hero {
    min-height: 0;
  }

  .hero__inner {
    min-height: 0;
  }
}
