:root {
  --paper: #f7f5ef;
  --paper-deep: #efede5;
  --charcoal: #282725;
  --charcoal-soft: #67645f;
  --line: rgba(53, 65, 75, .105);
  --line-strong: rgba(40, 39, 37, .28);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 85px; }
body {
  margin: 0;
  color: var(--charcoal);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  background-image: radial-gradient(circle at 20% 20%, rgba(34, 31, 28, .035) 0 1px, transparent 1.5px);
  background-size: 7px 8px;
  mix-blend-mode: multiply;
  z-index: 20;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
p, h1, h2, h3 { margin-top: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; left: 1rem; top: -5rem; padding: .7rem 1rem; background: var(--charcoal); color: var(--paper); z-index: 100; }
.skip-link:focus { top: 1rem; }

.progress { position: fixed; inset: 0 auto 0 0; width: 4px; z-index: 60; }
.progress span { display: block; width: 100%; height: 0; background: var(--charcoal); box-shadow: 0 0 7px rgba(0,0,0,.28); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 36px), var(--max));
  margin: 16px auto 0;
  padding: 10px 14px;
  border: 1px solid rgba(40, 39, 37, .18);
  background: rgba(247, 245, 239, .86);
  backdrop-filter: blur(12px);
  box-shadow: 3px 4px 0 rgba(40, 39, 37, .08);
  transform: rotate(-.08deg);
}

.monogram { font: 700 1.05rem/1 "Courier New", monospace; letter-spacing: -.08em; text-decoration: none; border: 1.5px solid var(--charcoal); border-radius: 50%; padding: 9px 8px 8px 7px; transform: rotate(-6deg); }
nav { display: flex; gap: clamp(14px, 3vw, 34px); }
nav a { position: relative; text-decoration: none; font: 700 .74rem/1 "Courier New", monospace; letter-spacing: .08em; text-transform: uppercase; }
nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; background: var(--charcoal); transform: rotate(-2deg); transition: right .2s ease; }
nav a:hover::after, nav a:focus-visible::after { right: 0; }

main, footer { width: min(calc(100% - 36px), var(--max)); margin: 0 auto; }
.ruled-section { position: relative; border-bottom: 2px solid var(--charcoal); }
.ruled-section::after { content: ""; position: absolute; left: 0; bottom: 3px; width: 100%; border-bottom: 1px solid rgba(40,39,37,.35); transform: rotate(.12deg); }

.hero { min-height: calc(100svh - 90px); display: grid; grid-template-columns: 1.18fr .82fr; align-items: center; gap: 5vw; padding: clamp(70px, 11vw, 140px) 3vw 90px; }
.eyebrow, .section-number, .card-label, .kicker { font: 700 .74rem/1.3 "Courier New", monospace; text-transform: uppercase; letter-spacing: .11em; }
.eyebrow { margin-bottom: 28px; }
h1 { font-size: clamp(5.3rem, 12vw, 10.7rem); line-height: .69; letter-spacing: -.085em; font-weight: 500; margin: 0 0 42px; text-shadow: 1px 1px 0 rgba(0,0,0,.08); }
h1 span { display: inline-block; margin-left: .37em; font-style: italic; transform: rotate(-2deg); }
.hero-statement { max-width: 680px; font-size: clamp(1.8rem, 3.3vw, 3.4rem); line-height: 1.05; margin-bottom: 24px; }
.hero-statement em { position: relative; font-weight: 400; }
.hero-note { max-width: 610px; color: var(--charcoal-soft); font-size: 1.1rem; }
.hero-actions, .contact-links { display: flex; align-items: center; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.charcoal-button { display: inline-flex; gap: 20px; align-items: center; padding: 13px 18px; color: var(--paper); background: var(--charcoal); text-decoration: none; font: 700 .8rem/1 "Courier New", monospace; text-transform: uppercase; letter-spacing: .08em; box-shadow: 4px 5px 0 rgba(40,39,37,.2); transform: rotate(-.5deg); transition: transform .2s ease, box-shadow .2s ease; }
.charcoal-button:hover, .charcoal-button:focus-visible { transform: translate(2px,2px) rotate(.4deg); box-shadow: 2px 3px 0 rgba(40,39,37,.2); }
.text-link { text-underline-offset: 5px; text-decoration-thickness: 1px; font-style: italic; }
.hero-sketch { align-self: center; transform: rotate(3deg); }
.hero-sketch svg { width: 100%; overflow: visible; filter: drop-shadow(7px 9px 3px rgba(30,28,25,.08)); }
.hero-sketch path, .hero-sketch circle, .education-card svg path { fill: none; stroke: var(--charcoal); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.hero-sketch .soft { opacity: .45; stroke-width: 2; stroke-dasharray: 3 5; }
.hero-sketch p { margin: -8px 0 0; text-align: center; font: italic .8rem/1 "Courier New", monospace; }
.margin-note { position: absolute; font: italic .72rem/1 "Courier New", monospace; color: var(--charcoal-soft); }
.note-one { left: -8px; top: 30%; transform: rotate(-90deg) translateX(-100%); transform-origin: left top; }

.intro { display: grid; grid-template-columns: .35fr 1.6fr 1fr; gap: 4vw; align-items: start; padding: 90px 3vw; }
.section-number { color: var(--charcoal-soft); padding-top: 10px; }
.intro h2, .section-heading h2, .contact h2 { font-size: clamp(2.7rem, 6vw, 6.2rem); line-height: .94; letter-spacing: -.045em; font-weight: 500; margin-bottom: 0; }
.intro > p:last-child { padding-top: 10px; font-size: 1.1rem; }
.scribble { position: relative; font-style: italic; white-space: nowrap; }
.scribble::after { content: ""; position: absolute; left: 1%; right: -2%; bottom: -.08em; height: 9px; border-bottom: 3px solid var(--charcoal); border-radius: 50%; transform: rotate(-1.3deg); }

.work { padding: 105px 3vw 80px; }
.section-heading { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 80px; }
.section-heading .section-number { padding: 0; margin-bottom: 18px; }
.heading-note { width: 250px; margin: 0 0 7px; font-style: italic; color: var(--charcoal-soft); }
.experience-card { display: grid; grid-template-columns: minmax(270px,.8fr) minmax(0,1.2fr); gap: clamp(35px, 8vw, 100px); align-items: center; min-height: 560px; padding: 70px 0; border-top: 1px dashed var(--line-strong); }
.experience-card.reverse .experience-art { order: 2; }
.experience-card.reverse .experience-copy { order: 1; }
.experience-art { position: relative; }
.experience-art::before { content: ""; position: absolute; inset: 18% 3%; background: radial-gradient(ellipse, rgba(40,39,37,.15), transparent 67%); filter: blur(18px); }
.experience-art img { position: relative; width: 100%; max-height: 440px; object-fit: contain; filter: grayscale(1) contrast(1.04); transform: rotate(-1.5deg); }
.reverse .experience-art img { transform: rotate(1.5deg); }
.experience-copy h3 { font-size: clamp(2.1rem, 4.2vw, 4.3rem); line-height: .98; letter-spacing: -.03em; font-weight: 500; margin: 8px 0 28px; }
.experience-meta { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--charcoal); font: italic .82rem/1.2 "Courier New", monospace; }
.experience-meta p { margin-bottom: 8px; }
.kicker { margin: 20px 0 0; color: var(--charcoal-soft); }
.experience-copy ul { padding-left: 1.2rem; margin: 0 0 24px; }
.experience-copy li { padding-left: .4rem; margin-bottom: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 9px; }
.tags span { border: 1px solid var(--charcoal); border-radius: 50%; padding: 5px 11px; font: 700 .69rem/1 "Courier New", monospace; transform: rotate(-1deg); }
.tags span:nth-child(even) { transform: rotate(1deg); }
.blank-chapter { position: relative; padding: 12px 0 32px; color: var(--charcoal-soft); }
.blank-chapter span { display: block; width: 100%; height: 28px; border-bottom: 1px solid rgba(40,39,37,.28); }
.blank-chapter span:nth-child(2) { width: 84%; }
.blank-chapter span:nth-child(3) { width: 63%; }
.blank-chapter p { position: absolute; right: 4%; bottom: -8px; font: italic .76rem/1 "Courier New", monospace; transform: rotate(-3deg); }

.project { padding: 105px 3vw 110px; }
.project-heading { align-items: end; margin-bottom: 55px; }
.project-subtitle { font-size: 1.25rem; font-style: italic; max-width: 260px; margin-bottom: 8px; }
.project-layout { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(360px,.95fr); gap: clamp(40px, 7vw, 90px); align-items: center; }
.project-art { position: relative; min-height: 520px; display: grid; place-items: center; }
.project-art::before { content: ""; position: absolute; width: 92%; height: 78%; border: 1px solid var(--charcoal); border-radius: 50%; transform: rotate(-7deg); opacity: .3; }
.project-art::after { content: ""; position: absolute; width: 87%; height: 83%; border: 1px solid var(--charcoal); border-radius: 50%; transform: rotate(4deg); opacity: .18; }
.project-art img { position: relative; z-index: 2; width: 110%; max-width: none; filter: grayscale(1) contrast(1.08); transform: rotate(-2deg); }
.art-label { position: absolute; z-index: 3; bottom: 3%; left: 8%; font: italic .75rem/1 "Courier New", monospace; transform: rotate(-4deg); }
.project-lede { font-size: clamp(1.35rem,2.3vw,2rem); line-height: 1.25; }
.process-list { list-style: none; padding: 0; margin: 35px 0; border-top: 1px solid var(--charcoal); }
.process-list li { display: grid; grid-template-columns: 42px 1fr; gap: 15px; padding: 17px 0; border-bottom: 1px solid rgba(40,39,37,.28); }
.process-list li > span { font: 700 .72rem/1.5 "Courier New", monospace; }
.process-list strong { font-size: 1.08rem; }
.process-list p { margin: 2px 0 0; color: var(--charcoal-soft); }
.tags.large span { padding: 7px 12px; }

.about { padding: 105px 3vw 110px; }
.about-grid { display: grid; grid-template-columns: .78fr 1.25fr .97fr; gap: 26px; align-items: start; }
.paper-card { position: relative; padding: 28px; background: rgba(247,245,239,.82); border: 1px solid var(--charcoal); box-shadow: 6px 7px 0 rgba(40,39,37,.1); }
.paper-card:nth-child(1) { transform: rotate(-1.2deg); }
.paper-card:nth-child(2) { transform: translateY(24px) rotate(.7deg); }
.paper-card:nth-child(3) { transform: rotate(-.5deg); }
.card-label { color: var(--charcoal-soft); border-bottom: 1px dashed var(--line-strong); padding-bottom: 12px; }
.paper-card h3 { font-size: 1.75rem; line-height: 1.05; margin: 22px 0 14px; }
.paper-card .small { color: var(--charcoal-soft); font-size: .9rem; }
.education-card svg { width: 100%; margin-top: 20px; }
.education-card svg path { stroke-width: 2; opacity: .7; }
.skills-card dl { margin: 0; }
.skills-card dl div { border-bottom: 1px solid rgba(40,39,37,.2); padding: 11px 0; }
.skills-card dt { font: 700 .72rem/1.2 "Courier New", monospace; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.skills-card dd { margin: 0; }
.interest-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 30px; }
.interest-cloud span { padding: 5px 9px; border-bottom: 2px solid var(--charcoal); font-style: italic; transform: rotate(-1.5deg); }
.interest-cloud span:nth-child(3n) { transform: rotate(1.6deg); }

.contact { text-align: center; padding: 125px 4vw 135px; }
.contact .section-number { padding: 0; margin-bottom: 26px; }
.contact h2 { max-width: 860px; margin: 0 auto 28px; }
.contact > p:not(.section-number) { max-width: 610px; margin: 0 auto; font-size: 1.12rem; }
.contact-links { justify-content: center; }
.note-two { right: 3%; bottom: 35px; transform: rotate(-7deg); }

footer { display: flex; justify-content: space-between; padding: 30px 3vw 45px; font: .74rem/1 "Courier New", monospace; text-transform: uppercase; letter-spacing: .06em; }
footer p { margin: 0; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-sketch { display: none; }
  .intro { grid-template-columns: 1fr; gap: 22px; }
  .intro > p:last-child { max-width: 620px; }
  .experience-card, .experience-card.reverse { grid-template-columns: 1fr; min-height: 0; gap: 20px; }
  .experience-card.reverse .experience-art, .experience-card.reverse .experience-copy { order: initial; }
  .experience-art img { max-height: 360px; }
  .project-layout { grid-template-columns: 1fr; }
  .project-art { min-height: 380px; }
  .project-art img { width: 96%; }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .interests-card { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 16px; background-size: 22px 22px; }
  main, footer, .site-header { width: min(calc(100% - 22px), var(--max)); }
  .site-header { padding: 9px 10px; }
  nav { gap: 13px; }
  nav a { font-size: .61rem; letter-spacing: .03em; }
  .monogram { font-size: .84rem; padding: 8px 7px 7px 6px; }
  .hero { padding: 74px 1vw 70px; min-height: calc(100svh - 70px); }
  h1 { font-size: clamp(4.3rem, 27vw, 7.5rem); margin-bottom: 36px; }
  .hero-statement { font-size: 2rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .intro, .work, .project, .about, .contact { padding-left: 1vw; padding-right: 1vw; }
  .section-heading { display: block; margin-bottom: 55px; }
  .heading-note, .project-subtitle { width: auto; margin-top: 20px; }
  .experience-card { padding: 55px 0; }
  .experience-art img { max-height: 280px; }
  .experience-copy h3 { font-size: 2.4rem; }
  .experience-meta { font-size: .69rem; }
  .project-art { min-height: 280px; }
  .about-grid { grid-template-columns: 1fr; gap: 22px; }
  .paper-card, .paper-card:nth-child(2) { transform: none; }
  .interests-card { grid-column: auto; }
  .contact { padding-top: 100px; padding-bottom: 110px; }
  footer { gap: 20px; flex-direction: column; }
  .note-one { display: none; }
}

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