:root {
  --plaster: #efe9df;
  --plaster-deep: #e4dccf;
  --ink: #221f1c;
  --ink-soft: #5d5750;
  --ink-faint: #a39b91;
  --oxblood: #7a2e25;
  --rule: rgba(34, 31, 28, 0.14);
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  --gutter: clamp(20px, 6vw, 96px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --plaster: #1d1b19;
    --plaster-deep: #171513;
    --ink: #ece5d9;
    --ink-soft: #a8a094;
    --ink-faint: #6b645c;
    --oxblood: #c96a5c;
    --rule: rgba(236, 229, 217, 0.14);
  }
}
:root[data-theme="dark"] {
  --plaster: #1d1b19;
  --plaster-deep: #171513;
  --ink: #ece5d9;
  --ink-soft: #a8a094;
  --ink-faint: #6b645c;
  --oxblood: #c96a5c;
  --rule: rgba(236, 229, 217, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--plaster);
  background-image:
    radial-gradient(1200px 800px at 80% -10%, rgba(255, 255, 255, 0.35), transparent 60%),
    radial-gradient(900px 600px at 0% 100%, var(--plaster-deep), transparent 60%);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* paper grain */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  opacity: 0.06;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .grain { mix-blend-mode: screen; opacity: 0.05; }
}

/* header */
.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 22px var(--gutter);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  mix-blend-mode: difference;
  color: #fff;
}
.wordmark span { opacity: 0.45; margin: 0 0.15em; }
.top nav a { margin-left: 28px; position: relative; }
.top nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transition: right 0.4s var(--ease);
}
.top nav a:hover::after { right: 0; }

/* hero */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px var(--gutter) 80px;
  position: relative;
}
.hero-eyebrow, .hero-note {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}
.hero h1 {
  margin: 28px 0 32px;
  font-weight: 300;
  font-size: clamp(44px, 9vw, 132px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144, "SOFT" 40;
  max-width: 12ch;
}
.hero h1 .line {
  display: block;
  opacity: 0;
  transform: translateY(0.4em);
  animation: rise 1.1s var(--ease) forwards;
}
.hero h1 .line:nth-child(2) { animation-delay: 0.12s; padding-left: 1.2em; }
.hero h1 .line:nth-child(3) { animation-delay: 0.24s; padding-left: 0.3em; }
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--oxblood);
}
.hero-eyebrow { animation: fade 1s 0.05s var(--ease) both; }
.hero-note { animation: fade 1s 0.5s var(--ease) both; }

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 40px;
  width: 1px;
  height: 72px;
  background: var(--rule);
  overflow: hidden;
  animation: fade 1s 0.8s both;
}
.scroll-cue span {
  position: absolute;
  left: 0; top: -100%;
  width: 100%; height: 100%;
  background: var(--ink);
  animation: drip 2.4s ease-in-out infinite;
}
@keyframes drip {
  0% { top: -100%; }
  60%, 100% { top: 100%; }
}

/* the wall */
.wall {
  padding: 40px var(--gutter) 120px;
  display: flex;
  flex-direction: column;
  gap: clamp(90px, 14vw, 220px);
}
.work {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  align-items: end;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}
.work.in { opacity: 1; transform: none; }

/* hanging positions: alternate sides and sizes like a real wall */
.work:nth-child(4n+1) .frame { grid-column: 1 / span 7; }
.work:nth-child(4n+1) .label { grid-column: 9 / span 4; }
.work:nth-child(4n+2) .frame { grid-column: 6 / span 6; }
.work:nth-child(4n+2) .label { grid-column: 2 / span 3; grid-row: 1; }
.work:nth-child(4n+3) .frame { grid-column: 3 / span 8; }
.work:nth-child(4n+3) .label { grid-column: 3 / span 4; grid-row: 2; padding-top: 22px; }
.work:nth-child(4n+4) .frame { grid-column: 8 / span 5; }
.work:nth-child(4n+4) .label { grid-column: 1 / span 4; grid-row: 1; }

.frame {
  display: block;
  cursor: zoom-in;
  position: relative;
  background: transparent;
  border: 0;
  padding: 0;
}
.frame img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 30px 60px -30px rgba(34, 31, 28, 0.45),
    0 2px 6px rgba(34, 31, 28, 0.12);
  transition: transform 0.9s var(--ease), box-shadow 0.9s var(--ease);
}
.frame:hover img {
  transform: translateY(-4px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 50px 80px -30px rgba(34, 31, 28, 0.5),
    0 2px 6px rgba(34, 31, 28, 0.12);
}
.frame::after {
  /* hanging nail */
  content: "";
  position: absolute;
  top: -22px;
  left: 50%;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--ink-faint);
  transform: translateX(-50%);
}

.label {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-soft);
  padding-bottom: 6px;
}
.label .num {
  display: block;
  color: var(--ink-faint);
  margin-bottom: 10px;
  letter-spacing: 0.1em;
}
.label .title {
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 8px;
  font-weight: 400;
  font-variation-settings: "opsz" 24, "SOFT" 60;
}
.label .meta { margin: 0; }
.label .meta span + span::before { content: " · "; color: var(--ink-faint); }
.label .sold {
  display: inline-block;
  margin-top: 10px;
  color: var(--oxblood);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 10px;
}

/* about */
.about {
  border-top: 1px solid var(--rule);
  padding: 120px var(--gutter);
}
.about-inner {
  max-width: 640px;
  margin-left: auto;
}
.about-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 18px;
}
.about-title {
  font-weight: 300;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 36px;
  font-variation-settings: "opsz" 144, "SOFT" 40;
}
.about-title em { font-style: italic; font-weight: 400; color: var(--oxblood); }
.about-lead {
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.25;
  font-weight: 300;
  letter-spacing: -0.01em;
  margin: 0 0 32px;
  font-variation-settings: "opsz" 60, "SOFT" 30;
}
.about-body {
  color: var(--ink-soft);
  font-size: 18px;
  margin: 0 0 22px;
}
.about-contact {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  margin: 40px 0 0;
}
.about-contact a { border-bottom: 1px solid var(--rule); padding-bottom: 2px; transition: border-color 0.3s, color 0.3s; }
.about-contact a:hover { border-color: var(--oxblood); color: var(--oxblood); }

/* footer */
.foot {
  display: flex;
  justify-content: space-between;
  padding: 28px var(--gutter) 36px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  border-top: 1px solid var(--rule);
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(18, 16, 14, 0.94);
  display: grid;
  place-items: center;
  padding: 48px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  transform: scale(0.97);
  transition: transform 0.5s var(--ease);
}
.lightbox.open figure { transform: none; }
.lightbox img {
  max-width: min(1100px, 100%);
  max-height: calc(100vh - 160px);
  width: auto; height: auto;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8);
}
.lightbox figcaption {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #a8a094;
  text-align: center;
}
.lightbox figcaption em { font-family: var(--display); font-size: 18px; color: #ece5d9; display: block; margin-bottom: 6px; }
.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: #ece5d9;
  font-family: var(--mono);
  font-size: 22px;
  cursor: pointer;
  padding: 16px;
  opacity: 0.6;
  transition: opacity 0.3s;
}
.lightbox button:hover { opacity: 1; }
.lb-close { top: 16px; right: 20px; font-size: 30px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* mobile */
@media (max-width: 720px) {
  .top { mix-blend-mode: normal; color: var(--ink); background: linear-gradient(var(--plaster), transparent); }
  .hero { padding-top: 140px; }
  .hero h1 .line { padding-left: 0 !important; }
  .work { display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
  .work .frame { width: 88%; }
  .work:nth-child(even) .frame { align-self: flex-end; }
  .work .label { padding-top: 0; }
  .wall { gap: 96px; }
  .about-inner { margin-left: 0; }
  .lightbox { padding: 16px; }
  .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; }
  .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero h1 .line, .work { opacity: 1; transform: none; }
}
