:root {
  --paper: #f3eee4;
  --paper-deep: #e8dfd0;
  --ink: #191714;
  --muted: #70695e;
  --line: #cfc5b4;
  --red: #e74427;
  --red-dark: #ad2f1c;
  --white: #fffdf8;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --page: min(1240px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body::before {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  content: "";
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' 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");
}

a {
  color: inherit;
}

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
}

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

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--page);
  margin: 0 auto;
  padding: 24px 0;
  border-bottom: 1px solid rgba(25, 23, 20, 0.35);
}

.site-header.is-solid {
  position: relative;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font: 600 12px/1 var(--mono);
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  color: var(--white);
  background: var(--red);
  border-radius: 50%;
  place-items: center;
}

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

.site-nav a {
  padding-block: 6px;
  font: 500 12px/1 var(--mono);
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  border-color: currentColor;
}

.hero {
  position: relative;
  display: grid;
  min-height: 760px;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(25, 23, 20, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 23, 20, 0.14) 1px, transparent 1px);
  background-size: 88px 88px;
}

.hero-grid::after {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle at var(--x, 64%) var(--y, 42%), rgba(231, 68, 39, 0.27), transparent 30%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.55fr);
  gap: 8vw;
  align-items: end;
  width: var(--page);
  margin: auto auto 66px;
  padding-top: 150px;
}

.eyebrow,
.case-number,
.status,
.meta-label {
  font: 600 11px/1.3 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 26px;
}

.eyebrow::before {
  width: 28px;
  height: 8px;
  content: "";
  background: var(--red);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
.display {
  margin-bottom: 32px;
  font: 400 clamp(68px, 9.8vw, 148px)/0.84 var(--serif);
  letter-spacing: -0.055em;
}

.hero h1 em,
.display em {
  color: var(--red);
  font-weight: 400;
}

.hero-note {
  align-self: end;
  max-width: 330px;
  padding: 22px 0 0;
  border-top: 2px solid var(--ink);
}

.hero-note p {
  margin-bottom: 28px;
  font-size: 16px;
  line-height: 1.55;
}

.text-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding-bottom: 5px;
  font: 600 12px/1 var(--mono);
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
}

.text-link::after {
  content: "↗";
}

.collage-hero {
  display: block;
  min-height: 890px;
  padding-top: 76px;
  background:
    linear-gradient(90deg, transparent 49.94%, rgba(25, 23, 20, 0.07) 50%, transparent 50.06%),
    var(--white);
}

.collage-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 7vw;
  align-items: end;
  width: var(--page);
  margin: 0 auto;
  padding: 62px 0 28px;
}

.collage-intro h1 {
  max-width: 920px;
  margin-bottom: 0;
  font-size: clamp(66px, 8.4vw, 128px);
}

.collage-intro .hero-note {
  margin-bottom: 9px;
}

.role-stage {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  width: var(--page);
  min-height: 500px;
  margin: 0 auto;
  border-top: 1px solid var(--ink);
}

.role-card {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-width: 0;
  height: 500px;
  padding: 18px 9px 14px;
  overflow: visible;
}

.role-card + .role-card {
  border-left: 1px dashed rgba(25, 23, 20, 0.18);
}

.role-card > p {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--ink);
  font: 600 10px/1.2 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.role-card > p span {
  color: var(--red);
}

.role-figure {
  position: relative;
  min-height: 0;
}

.role-body,
.role-prop,
.teacher-board {
  position: absolute;
}

.role-body {
  bottom: 0;
  left: 50%;
  max-width: none;
  transform: translateX(-50%);
}

.role-prop {
  z-index: 3;
  margin: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transform-origin: var(--prop-origin, 50% 50%);
}

.role-prop img {
  width: 100%;
  max-width: none;
  pointer-events: none;
}

.role-prop:hover,
.role-prop:focus-visible,
.role-prop.is-moving {
  animation: prop-wiggle 560ms cubic-bezier(0.2, 0.75, 0.3, 1);
}

.role-prop:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 5px;
}

.role-product .role-body {
  height: 430px;
}

.role-product .role-prop {
  --prop-origin: 22% 36%;
  top: 15px;
  left: -7px;
  width: 124px;
}

.pos-screen {
  position: absolute;
  top: 21.4%;
  left: 27%;
  width: 68%;
  color: #f6efe3;
  font: 700 5px/1.15 var(--mono);
  letter-spacing: 0.02em;
  text-align: center;
}

.role-photography .role-body {
  bottom: 4px;
  height: 365px;
}

.role-photography .role-prop {
  --prop-origin: 50% 60%;
  right: -20px;
  bottom: 22px;
  width: 168px;
}

.role-playground .role-body {
  bottom: 3px;
  height: 345px;
}

.role-playground .role-prop {
  --prop-origin: 85% 68%;
  top: 62px;
  right: auto;
  left: 0;
  width: 190px;
}

.role-teacher .role-body {
  z-index: 2;
  height: 410px;
}

.role-teacher .role-prop {
  --prop-origin: 23% 43%;
  top: 28px;
  left: 44px;
  width: 112px;
  clip-path: inset(0 0 0 18%);
}

.teacher-board {
  top: 32px;
  right: 2px;
  z-index: 1;
  width: 118px;
  min-height: 88px;
  padding: 16px 12px;
  color: var(--ink);
  background: #f8f4ea;
  border: 1px solid var(--ink);
  box-shadow: 5px 5px 0 #dfd6c7;
  font: 600 9px/1.25 var(--mono);
  text-align: center;
  text-transform: uppercase;
  transform: rotate(1.5deg);
}

@keyframes prop-wiggle {
  0%, 100% { transform: rotate(0deg) translate(0, 0); }
  35% { transform: rotate(-4deg) translate(-2px, -3px); }
  70% { transform: rotate(3deg) translate(2px, 1px); }
}

.ticker {
  display: flex;
  gap: 28px;
  align-items: center;
  overflow: hidden;
  padding: 13px 0;
  color: var(--white);
  background: var(--ink);
  font: 500 11px/1 var(--mono);
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker span {
  display: inline-flex;
  gap: 28px;
  align-items: center;
}

.ticker span::after {
  color: var(--red);
  content: "●";
}

.about-link {
  margin-top: 30px;
}

.collection-hero,
.teaching-hero,
.resume-head {
  width: var(--page);
  margin: 0 auto;
  padding: 104px 0 72px;
}

.collection-hero h1,
.teaching-hero h1,
.resume-head h1 {
  max-width: 1080px;
  margin-bottom: 48px;
  font-size: clamp(72px, 10vw, 142px);
}

.collection-intro {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 8vw;
  padding-top: 30px;
  border-top: 1px solid var(--ink);
}

.collection-intro p {
  max-width: 620px;
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
}

.collection-intro p:first-child {
  font: 400 clamp(25px, 3vw, 42px)/1.14 var(--serif);
}

.practice-proof {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: var(--page);
  margin: 0 auto 90px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.practice-proof article {
  min-height: 190px;
  padding: 24px 18px;
  border-right: 1px solid var(--line);
}

.practice-proof article:last-child {
  border-right: 0;
}

.practice-proof strong {
  display: block;
  margin-bottom: 38px;
  color: var(--red);
  font: 400 clamp(54px, 6vw, 82px)/0.8 var(--serif);
}

.practice-proof span {
  display: block;
  max-width: 160px;
  font: 600 10px/1.45 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.practice-story {
  border-top: 1px solid var(--ink);
}

.photo-hero {
  padding-bottom: 50px;
}

.gallery-shell {
  width: var(--page);
  margin: 0 auto;
  padding: 0 0 112px;
}

.category-list {
  display: flex;
  gap: 8px;
  padding: 18px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.category-list span {
  padding: 7px 10px;
  font: 600 10px/1 var(--mono);
  text-transform: uppercase;
  border: 1px solid var(--line);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px 24px;
  align-items: start;
  padding-top: 42px;
}

.photo-slot {
  grid-column: span 4;
  margin: 0;
}

.photo-slot:nth-child(2),
.photo-slot:nth-child(5) {
  grid-column: span 5;
}

.photo-slot:nth-child(3),
.photo-slot:nth-child(4) {
  grid-column: span 3;
}

.photo-slot div {
  display: grid;
  min-height: 340px;
  padding: 18px;
  color: #645e55;
  background:
    linear-gradient(135deg, rgba(231, 68, 39, 0.14), transparent 45%),
    repeating-linear-gradient(45deg, #e4ddd1 0 1px, #f0ebe3 1px 12px);
  border: 1px solid var(--ink);
  place-items: center;
}

.photo-slot.tall div { min-height: 540px; }
.photo-slot.wide div { min-height: 290px; }

.photo-slot div span,
.photo-slot figcaption {
  font: 600 10px/1.3 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.photo-slot figcaption {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
}

.photo-slot figcaption::after {
  color: var(--red);
  content: "Image slot";
}

.experiment-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  width: var(--page);
  margin: 0 auto;
  padding: 0 0 112px;
  border-top: 1px solid var(--ink);
}

.experiment-card {
  position: relative;
  grid-column: span 6;
  min-height: 380px;
  padding: 34px;
  overflow: hidden;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.experiment-card:nth-child(even) {
  border-right: 0;
}

.experiment-card:nth-child(3) {
  grid-column: span 5;
}

.experiment-card:nth-child(4) {
  grid-column: span 7;
  border-right: 0;
}

.experiment-card:nth-child(5) {
  grid-column: span 12;
  min-height: 310px;
  border-right: 0;
}

.experiment-card > span,
.about-story article > span,
.project-outline article > span {
  font: 600 10px/1.2 var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.experiment-card h2 {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin: 210px 0 0;
  font: 400 clamp(48px, 6vw, 80px)/0.9 var(--serif);
  letter-spacing: -0.035em;
}

.experiment-mark {
  position: absolute;
  top: 54px;
  right: 44px;
  width: 150px;
  height: 150px;
  background: var(--red);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.exercise-mark::after,
.map-mark::after,
.no-mark::after {
  position: absolute;
  inset: 18px;
  content: "";
  border: 2px solid var(--paper);
}

.map-mark {
  background: var(--ink);
  clip-path: polygon(0 16%, 34% 0, 64% 17%, 100% 0, 100% 84%, 68% 100%, 36% 83%, 0 100%);
  border-radius: 0;
}

.no-mark {
  background: transparent;
  border: 18px solid var(--red);
}

.no-mark::after {
  top: 50%;
  right: -12px;
  bottom: auto;
  left: -12px;
  border: 0;
  border-top: 18px solid var(--red);
  transform: rotate(-42deg);
}

.experiment-card:nth-child(4) .experiment-mark {
  width: 190px;
  height: 110px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 18px);
  border: 2px solid var(--ink);
  border-radius: 0;
}

.experiment-card:nth-child(5) .experiment-mark {
  width: 250px;
  height: 150px;
  background:
    radial-gradient(circle at 15% 75%, var(--red) 0 9px, transparent 10px),
    radial-gradient(circle at 50% 20%, var(--ink) 0 9px, transparent 10px),
    radial-gradient(circle at 85% 75%, var(--red) 0 9px, transparent 10px),
    linear-gradient(32deg, transparent 48%, var(--ink) 49% 51%, transparent 52%),
    linear-gradient(-32deg, transparent 48%, var(--ink) 49% 51%, transparent 52%);
  border-radius: 0;
}

.teaching-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 7vw;
  align-items: center;
  min-height: 670px;
}

.teaching-hero h1 {
  margin-bottom: 36px;
  font-size: clamp(70px, 8.5vw, 126px);
}

.teaching-lead {
  max-width: 610px;
  font-size: 18px;
  line-height: 1.65;
}

.large-board {
  position: relative;
  display: grid;
  min-height: 370px;
  padding: 48px;
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: 18px 18px 0 var(--paper-deep);
  font: 600 clamp(30px, 4vw, 54px)/1.05 var(--mono);
  text-transform: uppercase;
  transform: rotate(1.5deg);
}

.large-board i {
  position: absolute;
  right: 40px;
  bottom: 38px;
  width: 130px;
  border-top: 5px solid var(--red);
  transform: rotate(-16deg);
}

.project-outline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: var(--page);
  margin: 0 auto;
  padding-bottom: 112px;
  border-top: 1px solid var(--ink);
}

.project-outline article {
  min-height: 330px;
  padding: 34px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.project-outline article:last-child { border-right: 0; }

.project-outline h2,
.about-story h2 {
  margin: 100px 0 18px;
  font: 400 clamp(38px, 4vw, 58px)/0.95 var(--serif);
}

.project-outline p,
.about-story p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.about-story {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: var(--page);
  margin: 0 auto;
  padding: 0 0 112px;
  border-top: 1px solid var(--ink);
}

.about-story article {
  min-height: 390px;
  padding: 36px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.about-story article:nth-child(2) { border-right: 0; }
.about-story .about-interests { grid-column: span 2; border-right: 0; }

.about-interests ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 92px 0 0;
  padding: 0;
  list-style: none;
}

.about-interests li {
  padding: 12px 16px;
  font: 600 12px/1 var(--mono);
  text-transform: uppercase;
  border: 1px solid var(--ink);
}

.resume-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 7vw;
  align-items: end;
}

.resume-head h1 { margin-bottom: 0; }

.resume-actions {
  padding-top: 24px;
  border-top: 2px solid var(--ink);
}

.resume-actions p {
  font-size: 16px;
  line-height: 1.55;
}

.download-link {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  padding: 17px 18px;
  color: var(--white);
  background: var(--red);
  font: 600 11px/1 var(--mono);
  text-decoration: none;
  text-transform: uppercase;
}

.resume-viewer {
  width: min(980px, calc(100vw - 48px));
  margin: 0 auto 112px;
  padding: 22px;
  background: var(--paper-deep);
  border: 1px solid var(--ink);
}

.resume-viewer object {
  display: block;
  width: 100%;
  min-height: 1120px;
  background: var(--white);
}

.section {
  width: var(--page);
  margin: 0 auto;
  padding: 112px 0;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
}

.section-head h2 {
  margin: 0;
  font: 400 clamp(54px, 7vw, 94px)/0.9 var(--serif);
  letter-spacing: -0.04em;
}

.section-head p {
  max-width: 520px;
  margin: 0 0 6px auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.case-stack {
  display: grid;
  gap: 28px;
}

.case-file {
  position: relative;
  display: grid;
  grid-template-columns: minmax(310px, 0.8fr) minmax(0, 1.2fr);
  min-height: 500px;
  overflow: hidden;
  text-decoration: none;
  background: var(--paper-deep);
  border: 1px solid var(--ink);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.case-file:nth-child(2) {
  grid-template-columns: minmax(0, 1.2fr) minmax(310px, 0.8fr);
}

.case-file:nth-child(2) .case-copy {
  order: 2;
}

.case-file:hover,
.case-file:focus-visible {
  z-index: 2;
  outline: 0;
  box-shadow: 10px 10px 0 var(--red);
  transform: translate(-5px, -5px);
}

.case-copy {
  display: flex;
  flex-direction: column;
  padding: clamp(34px, 5vw, 70px);
}

.case-number {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink);
}

.status {
  color: var(--red-dark);
}

.case-copy h3 {
  max-width: 520px;
  margin: auto 0 22px;
  font: 400 clamp(46px, 5.6vw, 82px)/0.9 var(--serif);
  letter-spacing: -0.04em;
}

.case-copy > p {
  max-width: 480px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-meta span {
  padding: 7px 9px;
  font: 500 10px/1 var(--mono);
  text-transform: uppercase;
  border: 1px solid var(--line);
}

.case-image {
  min-height: 100%;
  overflow: hidden;
  background: var(--ink);
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.82) contrast(1.03);
  transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.case-file:hover img {
  transform: scale(1.025);
}

.stamp {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: 84px;
  height: 84px;
  color: var(--red);
  border: 2px solid var(--red);
  border-radius: 50%;
  font: 700 9px/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-12deg);
  place-items: center;
}

.work-index {
  color: var(--paper);
  background: var(--ink);
}

.work-index .section-head h2,
.work-index .section-head p {
  color: inherit;
}

.work-index-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  border-top: 1px solid #58534c;
}

.work-note {
  grid-column: span 6;
  min-height: 260px;
  padding: 36px 42px 42px 0;
  border-right: 1px solid #58534c;
  border-bottom: 1px solid #58534c;
}

.work-note:nth-child(even) {
  padding-right: 0;
  padding-left: 42px;
  border-right: 0;
}

.work-note .case-number {
  color: #aaa296;
  border-color: #58534c;
}

.work-note h3 {
  margin: 42px 0 16px;
  font: 400 40px/1 var(--serif);
}

.work-note p {
  max-width: 500px;
  margin-bottom: 0;
  color: #bfb8ad;
  font-size: 14px;
  line-height: 1.65;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 8vw;
  align-items: start;
}

.about-grid h2 {
  margin: 0;
  font: 400 clamp(62px, 8vw, 110px)/0.85 var(--serif);
  letter-spacing: -0.045em;
}

.about-copy > p {
  max-width: 650px;
  margin-bottom: 36px;
  font: 400 clamp(28px, 3vw, 42px)/1.12 var(--serif);
}

.about-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  padding-top: 30px;
  border-top: 1px solid var(--ink);
}

.about-details p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.site-footer {
  color: var(--paper);
  background: var(--red);
}

.footer-inner {
  width: var(--page);
  margin: 0 auto;
  padding: 80px 0 34px;
}

.footer-inner h2 {
  max-width: 980px;
  margin-bottom: 40px;
  font: 400 clamp(56px, 9vw, 130px)/0.84 var(--serif);
  letter-spacing: -0.045em;
}

.footer-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid currentColor;
}

.footer-row a {
  font: 600 13px/1 var(--mono);
  text-transform: uppercase;
}

.footer-row p {
  margin: 0;
  font: 500 10px/1.4 var(--mono);
  text-align: right;
  text-transform: uppercase;
}

.case-hero {
  width: var(--page);
  margin: 0 auto;
  padding: 72px 0 64px;
}

.case-hero .case-number {
  margin-bottom: 58px;
}

.case-hero h1 {
  max-width: 960px;
  margin-bottom: 42px;
  font-size: clamp(68px, 9vw, 124px);
}

.case-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-top: 34px;
  border-top: 1px solid var(--ink);
}

.case-intro .lead {
  max-width: 700px;
  margin: 0;
  font: 400 clamp(25px, 3vw, 40px)/1.2 var(--serif);
}

.case-route {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 54px;
  color: var(--paper);
  background: var(--ink);
}

.case-route a {
  color: inherit;
  font: 600 10px/1 var(--mono);
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.case-back {
  display: flex;
  align-items: center;
  align-self: stretch;
  padding: 0 24px;
  border-right: 1px solid #4d4942;
}

.case-route-links {
  display: flex;
  gap: 26px;
  align-items: center;
  padding: 0 24px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}

.case-route-links::-webkit-scrollbar {
  display: none;
}

.case-route-links a {
  padding: 20px 0 17px;
  border-bottom: 3px solid transparent;
  opacity: 0.62;
}

.case-route-links a:hover,
.case-route-links a:focus-visible,
.case-route-links a[aria-current="location"] {
  border-bottom-color: var(--red);
  opacity: 1;
}

.case-reading-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: #4d4942;
}

.case-reading-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--red);
}

.story[id],
.case-hero[id] {
  scroll-margin-top: 72px;
}

.case-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.fact span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fact p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.case-visual {
  overflow: hidden;
  background: #d8d4cc;
  border-block: 1px solid var(--ink);
}

.case-visual img {
  width: 100%;
  max-height: 82vh;
  object-fit: cover;
  object-position: center;
}

.case-visual.contain {
  padding: clamp(24px, 5vw, 72px);
}

.case-visual.contain img {
  width: var(--page);
  margin: 0 auto;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(25, 23, 20, 0.18);
}

.case-visual img[src$="bar-tabs-floor.png"],
.case-visual img[src$="floor-editor.png"] {
  aspect-ratio: 4 / 3;
}

.case-visual img[src$="menu-grid.png"] {
  aspect-ratio: 531 / 304;
}

.case-visual img[src$="kiosk-accessibility.png"] {
  aspect-ratio: 600 / 263;
}

.case-visual img[src$="kiosk-tokens.png"] {
  aspect-ratio: 9 / 16;
}

.story {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 8vw;
  width: min(1060px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 112px 0;
}

.story + .story {
  border-top: 1px solid var(--line);
}

.story h2 {
  position: sticky;
  top: 30px;
  margin: 0;
  font: 400 clamp(40px, 5vw, 66px)/0.95 var(--serif);
  letter-spacing: -0.035em;
}

main#story {
  counter-reset: case-section;
}

main#story .story {
  counter-increment: case-section;
}

main#story .story h2::before {
  display: block;
  margin-bottom: 16px;
  color: var(--red);
  font: 600 10px/1 var(--mono);
  letter-spacing: 0.08em;
  content: "SECTION 0" counter(case-section);
}

.story-copy h3 {
  margin: 0 0 14px;
  font: 400 31px/1.05 var(--serif);
}

.story-copy {
  max-width: 680px;
}

.case-intro > *,
.story > * {
  min-width: 0;
}

.story-copy p {
  margin-bottom: 32px;
  color: #514b43;
  font-size: 17px;
  line-height: 1.7;
}

.story-list {
  display: grid;
  gap: 0;
  margin: 12px 0 38px;
  padding: 0;
  list-style: none;
  counter-reset: story-step;
  border-top: 1px solid var(--ink);
}

.story-list li {
  counter-increment: story-step;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.55;
}

.story-list li::before {
  color: var(--red);
  font: 600 11px/1.8 var(--mono);
  content: counter(story-step, decimal-leading-zero);
}

.case-callout {
  padding: 34px;
  color: var(--paper);
  background: var(--ink);
}

.case-callout p {
  margin: 0;
  color: inherit;
  font: 400 clamp(28px, 3vw, 40px)/1.15 var(--serif);
}

.next-case {
  display: block;
  padding: 72px 24px;
  color: var(--paper);
  background: var(--red);
  text-align: center;
  text-decoration: none;
}

.next-case span {
  display: block;
  margin-bottom: 18px;
  font: 600 10px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.next-case strong {
  font: 400 clamp(52px, 8vw, 108px)/0.9 var(--serif);
}

.practice-proof {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: var(--page);
  margin: 0 auto;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.practice-proof article {
  min-height: 190px;
  padding: 26px 20px;
  border-right: 1px solid var(--line);
}

.practice-proof article:last-child {
  border-right: 0;
}

.practice-proof strong {
  display: block;
  margin-bottom: 42px;
  color: var(--red);
  font: 400 clamp(52px, 5vw, 76px)/0.8 var(--serif);
}

.practice-proof span {
  display: block;
  max-width: 150px;
  font: 600 10px/1.45 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.practice-story {
  border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
  :root {
    --page: min(100% - 32px, 680px);
  }

  .site-header {
    padding: 18px 0;
  }

  .site-nav {
    gap: 16px;
  }

  .site-nav a:nth-child(2) {
    display: inline-block;
  }

  .hero {
    min-height: 700px;
  }

  .hero-grid {
    background-size: 56px 56px;
  }

  .hero-inner,
  .section-head,
  .about-grid,
  .case-intro,
  .story {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    gap: 46px;
    margin-bottom: 42px;
  }

  h1,
  .display {
    font-size: clamp(64px, 18vw, 100px);
  }

  .section {
    padding: 80px 0;
  }

  .section-head {
    gap: 26px;
    margin-bottom: 44px;
  }

  .section-head p {
    margin-left: 0;
  }

  .case-file,
  .case-file:nth-child(2) {
    grid-template-columns: 1fr;
  }

  .case-file:nth-child(2) .case-copy {
    order: 0;
  }

  .case-copy {
    min-height: 410px;
  }

  .case-image {
    min-height: 330px;
  }

  .work-note {
    grid-column: span 12;
    padding: 30px 0;
    border-right: 0;
  }

  .work-note:nth-child(even) {
    padding-left: 0;
  }

  .about-grid {
    gap: 48px;
  }

  .case-hero {
    padding-top: 58px;
  }

  .case-facts {
    margin-top: 18px;
  }

  .story {
    gap: 36px;
    padding: 78px 0;
  }

  .story h2 {
    position: static;
  }

  .case-back {
    padding: 0 16px;
  }

  .case-route-links {
    gap: 20px;
    padding: 0 16px;
  }

  .practice-proof {
    grid-template-columns: repeat(2, 1fr);
  }

  .practice-proof article {
    min-height: 160px;
    border-bottom: 1px solid var(--line);
  }

  .practice-proof article:nth-child(even) {
    border-right: 0;
  }

  .practice-proof article:last-child {
    grid-column: span 2;
    border-bottom: 0;
  }
}

@media (max-width: 520px) {
  .site-nav a {
    font-size: 10px;
  }

  .brand span:last-child {
    display: none;
  }

  .hero {
    min-height: 650px;
  }

  .hero-inner {
    padding-top: 120px;
  }

  .case-copy h3 {
    font-size: 50px;
  }

  .about-details,
  .case-facts {
    grid-template-columns: 1fr;
  }

  .footer-row {
    align-items: start;
    flex-direction: column;
  }

  .footer-row p {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .role-prop:hover,
  .role-prop:focus-visible,
  .role-prop.is-moving {
    animation: none;
  }
}

@media (max-width: 980px) {
  .collage-hero {
    min-height: 0;
  }

  .collage-intro {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 300px);
    padding-top: 46px;
  }

  .role-stage {
    grid-template-columns: repeat(4, 240px);
    width: 100%;
    min-height: 440px;
    padding: 0 max(16px, calc((100vw - var(--page)) / 2));
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
  }

  .role-card {
    height: 440px;
    scroll-snap-align: center;
  }

  .role-product .role-body { height: 365px; }
  .role-product .role-prop { left: 0; width: 106px; }
  .role-photography .role-body { height: 315px; }
  .role-photography .role-prop { right: -8px; width: 142px; }
  .role-playground .role-body { height: 300px; }
  .role-playground .role-prop { top: 58px; right: auto; left: -12px; width: 160px; }
  .role-teacher .role-body { height: 350px; }
  .role-teacher .role-prop { top: 26px; left: 23px; width: 98px; }
}

@media (max-width: 700px) {
  .collage-hero {
    padding-top: 72px;
  }

  .collage-intro {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 42px 0 34px;
  }

  .collage-intro h1 {
    font-size: clamp(62px, 18vw, 92px);
  }

  .collage-intro .hero-note {
    max-width: 420px;
  }
}

@media (max-width: 760px) {
  .site-header {
    gap: 12px;
  }

  .site-nav {
    max-width: calc(100vw - 78px);
    gap: 15px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar { display: none; }

  .collection-hero,
  .teaching-hero,
  .resume-head {
    padding: 74px 0 54px;
  }

  .collection-hero h1,
  .teaching-hero h1,
  .resume-head h1 {
    font-size: clamp(62px, 17vw, 92px);
  }

  .collection-intro,
  .teaching-hero,
  .resume-head {
    grid-template-columns: 1fr;
  }

  .photo-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px 16px;
  }

  .photo-slot,
  .photo-slot:nth-child(2),
  .photo-slot:nth-child(3),
  .photo-slot:nth-child(4),
  .photo-slot:nth-child(5) {
    grid-column: span 1;
  }

  .photo-slot.tall div { min-height: 430px; }
  .photo-slot.wide div,
  .photo-slot.square div { min-height: 250px; }

  .experiment-card,
  .experiment-card:nth-child(3),
  .experiment-card:nth-child(4),
  .experiment-card:nth-child(5) {
    grid-column: span 12;
    min-height: 330px;
    border-right: 0;
  }

  .experiment-card h2 { margin-top: 170px; }

  .project-outline,
  .about-story {
    grid-template-columns: 1fr;
  }

  .project-outline article,
  .project-outline article:last-child,
  .about-story article,
  .about-story article:nth-child(2) {
    border-right: 0;
  }

  .about-story .about-interests { grid-column: span 1; }

  .large-board {
    min-height: 300px;
    margin-top: 20px;
  }

  .resume-viewer {
    width: calc(100vw - 32px);
    padding: 10px;
  }

  .resume-viewer object { min-height: 680px; }
}

@media (max-width: 520px) {
  .site-nav a { font-size: 9px; }

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

  .photo-slot.tall div,
  .photo-slot.wide div,
  .photo-slot.square div { min-height: 360px; }
}
