* {
  box-sizing: border-box;
}

:root {
  --bg: #f0efe9;
  --text: #1d1d1b;
  --muted: #77756e;
  --line: rgba(29,29,27,.15);
  --paper: #e7e5dc;
  --accent: #ff6b35;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: .04;
  z-index: 50;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 5vw;
  backdrop-filter: blur(14px);
  background: rgba(240,239,233,.72);
  border-bottom: 1px solid transparent;
  transition: .3s ease;
}

.nav.scrolled {
  border-color: var(--line);
}

.brand,
.nav a {
  color: inherit;
  text-decoration: none;
  font-family: "DM Mono", monospace;
  font-size: 13px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6db66d;
  box-shadow: 0 0 0 4px rgba(109,182,109,.12);
}

.nav nav {
  display: flex;
  gap: 28px;
}

.nav nav a {
  color: var(--muted);
  transition: .2s ease;
}

.nav nav a:hover {
  color: var(--text);
}

main {
  width: min(1380px, 90vw);
  margin: 0 auto;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 130px 0 80px;
}

.eyebrow,
.section-label,
.card-tag,
footer {
  font-family: "DM Mono", monospace;
}

.eyebrow {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 28px;
}

h1 {
  margin: 0;
  max-width: 1050px;
  font-size: clamp(54px, 8.4vw, 130px);
  line-height: .91;
  letter-spacing: -.065em;
  font-weight: 500;
}

h1 span {
  color: var(--muted);
  font-weight: 400;
}

.intro {
  width: min(580px, 100%);
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.55;
  color: var(--muted);
  margin: 42px 0 0 auto;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin: 40px 0 0 auto;
  width: min(580px, 100%);
}

.button {
  border: 1px solid var(--text);
  padding: 14px 18px;
  font: 500 13px "DM Mono", monospace;
  text-decoration: none;
  cursor: pointer;
  transition: .2s ease;
}

.primary {
  background: var(--text);
  color: var(--bg);
}

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

.ghost {
  background: transparent;
  color: var(--text);
}

.ghost:hover {
  background: var(--paper);
}

.floating-note {
  position: absolute;
  right: 4%;
  top: 23%;
  width: 210px;
  padding: 16px;
  background: #fffdf6;
  border: 1px solid var(--line);
  transform: rotate(2deg);
  box-shadow: 0 16px 50px rgba(0,0,0,.05);
  transition: .25s ease;
}

.floating-note span {
  font: 10px "DM Mono", monospace;
  color: var(--muted);
}

.floating-note p {
  margin: 32px 0 4px;
  font-size: 13px;
  line-height: 1.5;
}

.section {
  border-top: 1px solid var(--line);
  padding: 110px 0;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
}

.section-label {
  font-size: 11px;
  color: var(--muted);
}

.section-copy h2 {
  font-size: clamp(38px, 5vw, 76px);
  line-height: 1;
  letter-spacing: -.05em;
  margin: 0 0 35px;
  font-weight: 500;
}

.section-copy p {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.card {
  min-height: 280px;
  padding: 22px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  background: rgba(255,255,255,.08);
  transition: .25s ease;
}

.card:hover {
  background: var(--paper);
  transform: translateY(-4px);
}

.card-number,
.card-tag {
  font: 10px "DM Mono", monospace;
  color: var(--muted);
}

.card h3 {
  margin: 6px 0 10px;
  font-size: 25px;
  font-weight: 500;
}

.card p:not(.card-tag) {
  margin: 0;
  max-width: 360px;
  color: var(--muted);
  line-height: 1.5;
}

.arrow {
  position: absolute;
  right: 20px;
  top: 18px;
  font-size: 22px;
}

.muted-card {
  opacity: .62;
}

.link-list {
  display: flex;
  flex-direction: column;
}

.link-list a {
  display: flex;
  justify-content: space-between;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  font-size: clamp(26px, 3vw, 48px);
  letter-spacing: -.04em;
}

.link-list a:first-child {
  border-top: 1px solid var(--line);
}

.link-list a:hover span:first-child {
  padding-left: 10px;
}

.link-list span {
  transition: .2s ease;
}

footer {
  width: min(1380px, 90vw);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 22px 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 10px;
}

@media (max-width: 800px) {
  .nav nav {
    display: none;
  }

  .floating-note {
    display: none;
  }

  .intro,
  .hero-actions {
    margin-left: 0;
  }

  .section {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 75px 0;
  }

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

  footer span:nth-child(2) {
    display: none;
  }
}
