:root {
  --ink: #191816;
  --muted: #6f6a63;
  --paper: #f4efe6;
  --paper-deep: #e9e1d5;
  --card: #fffdf8;
  --red: #e6483f;
  --red-dark: #c83c35;
  --line: #bdb5a9;
  --max: 1120px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

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

.shell {
  width: min(calc(100% - 44px), var(--max));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 100;
  transform: translateY(-170%);
  background: var(--card);
  padding: 9px 13px;
  border: 2px solid var(--ink);
  font-weight: 700;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(244, 239, 230, .93);
  border-bottom: 1px solid rgba(25, 24, 22, .14);
  backdrop-filter: blur(9px);
}

.nav-wrap {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

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

.brand img {
  width: 132px;
  mix-blend-mode: multiply;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}

nav a {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

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

.nav-email {
  font-family: var(--mono);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}

.hero {
  padding: 86px 0 102px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  gap: 70px;
  align-items: center;
}

.scribble {
  margin: 0 0 18px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.scribble::before {
  content: "→ ";
}

.hero h1,
.section h2,
.contact-section h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.04em;
}

.hero h1 {
  margin: 0;
  max-width: 710px;
  font-size: clamp(46px, 6vw, 78px);
  line-height: .98;
}

.lede {
  max-width: 670px;
  margin: 30px 0 0;
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.5;
  color: #4d4944;
}

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

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 17px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}

.button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.text-link {
  font-family: var(--mono);
  font-size: 14px;
  text-underline-offset: 4px;
}

.code-note {
  margin: 32px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
}

.hero-collage {
  position: relative;
  min-height: 510px;
}

.polaroid {
  position: absolute;
  width: min(430px, 83%);
  margin: 0;
  padding: 12px 12px 14px;
  background: var(--card);
  border: 1px solid #d7cfc4;
  box-shadow: 0 18px 50px rgba(45, 38, 30, .14);
}

.polaroid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.polaroid figcaption {
  padding: 10px 5px 1px;
  font-family: var(--mono);
  font-size: 12px;
  color: #57514b;
}

.polaroid-one {
  top: 14px;
  right: 12px;
  transform: rotate(3deg);
}

.polaroid-two {
  left: 0;
  bottom: 3px;
  transform: rotate(-4deg);
}

.section {
  padding: 92px 0;
  border-top: 1px solid var(--line);
}

.intro-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 42px;
}

.side-note {
  max-width: 530px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.big-projects {
  display: grid;
  gap: 98px;
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, .82fr);
  gap: 46px;
  align-items: center;
}

.project-right {
  grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
}

.project-right .project-image { grid-column: 2; grid-row: 1; }
.project-right .project-copy { grid-column: 1; grid-row: 1; }

.project-image {
  position: relative;
  display: block;
  border: 1px solid var(--ink);
  box-shadow: 8px 8px 0 var(--paper-deep);
}

.project-image::after {
  content: "";
  position: absolute;
  inset: 10px -11px -11px 10px;
  z-index: -1;
  border: 1px dashed var(--line);
}

.project-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.project-number {
  display: block;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--red);
}

.project-copy h2,
.archive-heading h2,
.numbers-section h2,
.about-section h2,
.sponsor-section h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.04;
}

.project-copy p {
  margin: 20px 0 0;
  color: #54504a;
}

.project-copy .project-performance {
  margin-top: 12px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
}

.archive {
  margin-top: 118px;
  padding-top: 42px;
  border-top: 1px dashed var(--line);
}

.archive-heading {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 50px;
  margin-bottom: 28px;
}

.archive-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  max-width: 610px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.archive-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 9px;
}

.archive-card:nth-child(2) { transform: rotate(-.8deg); }
.archive-card:nth-child(3) { transform: rotate(.7deg); }

.archive-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.archive-card strong {
  display: block;
  padding: 11px 5px 5px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
}

.numbers-section {
  background:
    linear-gradient(rgba(255,255,255,.18), rgba(255,255,255,.18)),
    var(--paper-deep);
}

.numbers-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 72px;
  align-items: start;
}

.numbers-copy {
  color: #5b5650;
  max-width: 530px;
}

.notebook {
  background:
    repeating-linear-gradient(
      to bottom,
      var(--card) 0,
      var(--card) 47px,
      #ded7cd 48px
    );
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  padding: 6px 26px;
  transform: rotate(.6deg);
  box-shadow: 6px 7px 0 rgba(25,24,22,.08);
}

.number-row {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.number-row span {
  font-family: var(--mono);
  font-size: 13px;
  color: #5d5751;
}

.number-row strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 400;
}

.audience-strip {
  margin-top: 70px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 48px;
}

.audience-strip > div:first-child {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
}

.audience-strip strong {
  font-family: var(--mono);
  font-size: 14px;
}

.tiny-label {
  width: 100%;
  margin-bottom: -4px;
  font-family: var(--mono);
  color: var(--red);
  font-size: 12px;
}

.audience-strip p {
  margin: 3px 0 0;
  font-family: var(--mono);
  font-size: 13px;
  color: #4f4a45;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 76px;
}

.about-copy > p:not(.scribble) {
  color: #56514c;
  max-width: 690px;
}

.about-copy em { color: var(--ink); }

.career-note {
  align-self: start;
  padding: 27px 28px 23px;
  background: var(--card);
  border: 1px solid var(--ink);
  box-shadow: 7px 7px 0 var(--paper-deep);
  transform: rotate(1deg);
}

.career-note .code-note {
  margin: 0 0 20px;
  color: var(--red);
}

.career-note p:not(.code-note) {
  margin: 0;
  padding: 15px 0;
  border-top: 1px dashed var(--line);
  font-size: 15px;
}

.sponsor-section {
  background: var(--ink);
  color: #f7f2e8;
  border-top: 0;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 72px;
  align-items: center;
}

.sponsor-image {
  position: relative;
  padding: 13px;
  background: #f9f5ed;
  transform: rotate(-2deg);
  box-shadow: 0 18px 55px rgba(0,0,0,.28);
}

.sponsor-image img { width: 100%; }

.tape {
  position: absolute;
  width: 84px;
  height: 23px;
  background: rgba(222, 205, 165, .82);
  opacity: .82;
}

.tape-one {
  top: -8px;
  left: 34px;
  transform: rotate(-8deg);
}

.tape-two {
  right: 34px;
  bottom: -7px;
  transform: rotate(7deg);
}

.sponsor-copy h2 { color: #fffaf2; }

.sponsor-copy > p:not(.scribble) {
  color: #cfc7bd;
}

.sponsor-copy .past-work {
  padding: 14px 16px;
  border-left: 3px solid var(--red);
  background: rgba(255,255,255,.05);
  color: #eee6dc;
  font-family: var(--mono);
  font-size: 13px;
}

.contact-section {
  padding: 100px 0 108px;
  background: var(--red);
  color: #fff;
  text-align: center;
}

.contact-inner { max-width: 910px; }

.contact-section .scribble { color: #fff; opacity: .8; }

.contact-section h2 {
  max-width: 850px;
  margin: 0 auto;
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: 1;
}

.contact-section p:not(.scribble) {
  margin: 22px auto 0;
  max-width: 640px;
}

.big-email {
  display: inline-block;
  margin-top: 35px;
  font-family: var(--mono);
  font-size: clamp(18px, 2.3vw, 28px);
  font-weight: 700;
  text-underline-offset: 7px;
}

.youtube-link {
  display: block;
  width: max-content;
  margin: 16px auto 0;
  font-family: var(--mono);
  font-size: 13px;
  opacity: .86;
}

footer {
  background: var(--ink);
  color: #9f9890;
}

.footer-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--mono);
  font-size: 12px;
}

.footer-inner span:first-child {
  color: #fff;
  font-weight: 700;
}

@media (max-width: 900px) {
  nav a:not(.nav-email) { display: none; }

  .hero-grid,
  .numbers-grid,
  .about-grid,
  .sponsor-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid { gap: 24px; }
  .hero-collage { min-height: 470px; max-width: 680px; width: 100%; margin: 0 auto; }
  .numbers-grid,
  .about-grid,
  .sponsor-grid { gap: 44px; }

  .project,
  .project-right {
    grid-template-columns: 1fr;
    gap: 27px;
  }

  .project-right .project-image,
  .project-right .project-copy {
    grid-column: auto;
    grid-row: auto;
  }

  .project-right .project-image { order: 0; }
  .project-right .project-copy { order: 1; }

  .archive-heading { grid-template-columns: 1fr; gap: 8px; }
  .audience-strip { grid-template-columns: 1fr; gap: 24px; }
  .sponsor-image { max-width: 660px; }
}

@media (max-width: 650px) {
  body { font-size: 16px; }
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .nav-wrap { min-height: 62px; }
  .brand img { width: 116px; }
  .nav-email { font-size: 12px; }

  .hero { padding: 58px 0 70px; }
  .hero h1 { font-size: clamp(42px, 13vw, 62px); }
  .hero-collage { min-height: 390px; }
  .polaroid { width: 86%; }
  .polaroid-one { right: 0; }
  .polaroid-two { left: 0; }

  .section { padding: 68px 0; }
  .intro-row { display: block; }
  .side-note { margin-top: 10px; }

  .big-projects { gap: 65px; }
  .project-image { box-shadow: 5px 5px 0 var(--paper-deep); }

  .archive { margin-top: 82px; }
  .archive-grid { grid-template-columns: 1fr; gap: 14px; }
  .archive-card:nth-child(2),
  .archive-card:nth-child(3) { transform: none; }

  .notebook {
    padding: 5px 18px;
    transform: none;
  }

  .number-row {
    min-height: 67px;
  }

  .number-row strong { font-size: 28px; }

  .career-note,
  .sponsor-image { transform: none; }

  .contact-section { padding: 72px 0 78px; }
  .footer-inner {
    padding: 24px 0;
    min-height: 0;
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
