:root {
  --paper: #f1efe8;
  --ink: #151715;
  --muted: #6f716a;
  --line: rgba(21, 23, 21, 0.18);
  --acid: #c9ff3d;
  --rust: #d85a32;
  --green: #1f7a45;
  --green-bright: #5ed88f;
  --dark: #20251f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Verdana, Geneva, sans-serif;
  overflow-x: hidden;
}

button,
a {
  color: inherit;
}

button {
  font: inherit;
}

a {
  text-decoration: none;
}

.grain {
  position: fixed;
  inset: 0;
  opacity: 0.16;
  pointer-events: none;
  z-index: 50;
  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='.22'/%3E%3C/svg%3E");
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.nav {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wordmark,
.nav nav {
  display: flex;
  align-items: center;
}

.wordmark {
  gap: 10px;
  font-weight: 500;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rust);
  box-shadow: 0 0 0 5px rgba(216, 90, 50, 0.12);
  animation: pulse 2.6s ease-in-out infinite;
}

.nav nav {
  gap: 34px;
}

.nav nav a {
  position: relative;
}

.nav nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 1px;
  background: currentColor;
  transition: right 180ms ease;
}

.nav nav a:hover::after,
.nav nav a:focus-visible::after {
  right: 0;
}

.hero {
  padding: 76px 0 72px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}

.eyebrow {
  margin: 0;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 20px 0 24px;
  max-width: 1000px;
  font-family: Verdana, Geneva, sans-serif;
  font-size: clamp(35px, 5.35vw, 77px);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.045em;
}

.hero h1 em {
  padding-left: 8vw;
  color: var(--green);
  font-weight: 400;
}

.hero-bottom {
  padding-left: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: 56px;
}

.intro {
  max-width: none;
  margin: 0;
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.55;
  letter-spacing: -0.025em;
}

.intro + .intro {
  margin-top: 24px;
}

.orbit {
  position: absolute;
  width: 300px;
  aspect-ratio: 1;
  left: -60px;
  bottom: 8px;
  opacity: 0.55;
}

.orbit-line {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.orbit-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  top: 12px;
  left: 50%;
  border-radius: 50%;
  background: var(--rust);
  transform-origin: 0 138px;
  animation: orbit 12s linear infinite;
}

.work,
.notes {
  padding: 140px 0;
}

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

.section-heading {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 70px;
}

.section-heading h2 {
  max-width: 680px;
  margin: -10px 0 0;
  font-family: Verdana, Geneva, sans-serif;
  font-size: clamp(46px, 6vw, 80px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

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

.project {
  min-height: 380px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.project:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 34px rgba(21, 23, 21, 0.09);
}

.project-main {
  min-height: 610px;
  grid-row: span 2;
  background: #dedcd3;
}

.project-small {
  min-height: 296px;
}

.project-dark {
  background: var(--dark);
  color: var(--paper);
}

.project-accent {
  background: var(--acid);
}

.project-meta,
.text-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tag {
  padding: 6px 9px;
  border: 1px solid currentColor;
  border-radius: 99px;
}

.project-kicker {
  margin: 0 0 14px;
  color: currentColor;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.project h3 {
  max-width: 620px;
  margin: 0;
  font-family: Verdana, Geneva, sans-serif;
  font-size: clamp(36px, 4.6vw, 68px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.project-small h3 {
  font-size: clamp(32px, 3.5vw, 48px);
}

.project > div > p:not(.project-kicker) {
  max-width: 480px;
  margin: 30px 0 0;
  line-height: 1.6;
}

.project > div > p:not(.project-kicker) + p {
  margin-top: 18px;
}

.project-preview {
  position: relative;
  margin: 30px 0;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(21, 23, 21, 0.3);
  background: var(--dark);
}

.project-preview img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 300ms ease, opacity 300ms ease;
}

.project-preview span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 10px;
  background: var(--acid);
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-preview:hover img,
.project-preview:focus-visible img {
  transform: scale(1.025);
  opacity: 0.88;
}

.text-button {
  width: 100%;
  padding: 16px 0 0;
  border: 0;
  border-top: 1px solid currentColor;
  background: none;
  cursor: pointer;
  text-align: left;
}

.text-button span {
  font-size: 20px;
  transition: transform 180ms ease;
}

.text-button:hover span {
  transform: rotate(90deg);
}

.text-link {
  padding-top: 18px;
  color: var(--green-bright);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
}

.text-link span {
  font-size: 19px;
}

.text-link:hover span,
.text-link:focus-visible span {
  transform: translate(3px, -3px);
}

.notes {
  padding-bottom: 40px;
  background: var(--paper);
}

.note-list {
  border-top: 1px solid var(--line);
}

.note-row {
  width: 100%;
  padding: 27px 4px;
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 24px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: padding 180ms ease, background 180ms ease;
}

.note-row:hover,
.note-row:focus-visible {
  padding-inline: 18px;
  background: #e7e4db;
}

.note-date {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.note-title {
  font-family: Verdana, Geneva, sans-serif;
  font-size: clamp(28px, 3.6vw, 48px);
  letter-spacing: -0.02em;
}

.note-arrow {
  font-size: 22px;
}

.footer {
  margin-top: 140px;
  padding-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--line);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.footer p {
  margin: 0;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: #3d974b;
}

.contact-link {
  width: max-content;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.modal {
  width: min(620px, calc(100% - 32px));
  padding: 44px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.modal::backdrop {
  background: rgba(19, 21, 18, 0.64);
  backdrop-filter: blur(7px);
}

.modal h2 {
  margin: 30px 0 20px;
  font-family: Verdana, Geneva, sans-serif;
  font-size: clamp(42px, 7vw, 68px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.modal > p:not(.eyebrow) {
  max-width: 500px;
  font-size: 17px;
  line-height: 1.65;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.modal-line {
  width: 72px;
  height: 4px;
  margin-top: 38px;
  background: var(--rust);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes pulse {
  50% { box-shadow: 0 0 0 9px rgba(216, 90, 50, 0); }
}

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

@media (max-width: 800px) {
  .shell {
    width: min(100% - 28px, 660px);
  }

  .nav {
    height: 72px;
  }

  .nav nav {
    gap: 16px;
  }

  .hero {
    padding: 48px 0 48px;
  }

  .hero h1 {
    margin-top: 32px;
    font-size: clamp(32px, 9.5vw, 56px);
    line-height: 0.87;
  }

  .hero h1 em {
    padding-left: 0;
  }

  .hero-bottom {
    padding-left: 0;
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .orbit {
    display: none;
  }

  .work,
  .notes {
    padding: 90px 0;
  }

  .work {
    padding-top: 40px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-bottom: 48px;
  }

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

  .project,
  .project-main,
  .project-small {
    min-height: 410px;
    grid-row: auto;
  }

  .note-row {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .note-date {
    grid-column: 1 / -1;
  }

  .footer {
    margin-top: 90px;
    grid-template-columns: 1fr auto;
  }

  .footer-mark {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 10vw;
  }

  .project {
    min-height: 390px;
    padding: 22px;
  }

  .modal {
    padding: 34px 26px;
  }
}

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