:root {
  --paper: #f3f2ed;
  --paper-deep: #e8e6df;
  --ink: #171716;
  --quiet: #716f69;
  --line: #d5d2ca;
  --red: #9e3a30;
  --font-body: "Inter", Arial, sans-serif;
  --font-character: "Courier Prime", "Courier New", monospace;
  --edge: clamp(1.15rem, 4vw, 4rem);
  --measure: 42rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}
body.nav-open, body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
img, video, iframe { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 200;
  transform: translateY(-180%);
  background: var(--ink);
  color: var(--paper);
  padding: .65rem 1rem;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.65rem var(--edge) 1.35rem;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: var(--font-character);
  font-size: clamp(1.25rem, 2.1vw, 1.5rem);
  font-style: normal;
  text-decoration: none;
  white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.3vw, 2rem); }
.nav a {
  color: var(--quiet);
  font-size: .96rem;
  text-decoration: none;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { text-decoration: underline; }
.nav .instagram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .18rem;
}
.instagram-icon {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  opacity: .68;
  transition: opacity .2s ease;
}
.instagram-link:hover .instagram-icon,
.contact-instagram:hover .instagram-icon { opacity: 1; }
.external-mark { margin-left: .2em; }
.nav-toggle { display: none; border: 0; background: transparent; padding: .25rem 0; color: var(--ink); cursor: pointer; }

.home-main { padding: clamp(2rem, 6vw, 5.5rem) var(--edge) 0; }
.home-lockup {
  width: min(100%, 78rem);
  margin: 0 auto;
}
.home-image {
  width: 100%;
  margin: 0;
  aspect-ratio: 16 / 9;
}
.image-placeholder {
  position: relative;
  display: grid;
  place-items: end start;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255,255,255,.35), transparent 48%),
    repeating-linear-gradient(0deg, transparent 0 2.2rem, rgba(23,23,22,.035) 2.2rem calc(2.2rem + 1px)),
    var(--paper-deep);
}
.image-placeholder::after {
  content: "";
  position: absolute;
  width: 38%;
  aspect-ratio: 1;
  right: 9%;
  top: 11%;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: .18;
}
.image-placeholder > span {
  position: relative;
  z-index: 1;
  padding: .75rem .9rem;
  color: var(--quiet);
  font-family: var(--font-character);
  font-size: .75rem;
}
.image-placeholder--dark {
  color: #eeede8;
  border-color: #222;
  background:
    radial-gradient(circle at 70% 34%, rgba(242,240,232,.16), transparent 0 19%, transparent 20%),
    linear-gradient(118deg, #181918 0 38%, #31322f 38% 63%, #111 63%);
}
.image-placeholder--dark > span { color: rgba(255,255,255,.65); }
.home-note {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  width: 100%;
  margin: 1.25rem 0 0;
}
.home-note p {
  margin: 0;
  color: var(--quiet);
  font-size: clamp(1.02rem, 1.35vw, 1.16rem);
}
.home-note .quiet-link {
  color: var(--red);
  font-family: var(--font-character);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  font-weight: 400;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(5rem, 12vw, 10rem);
  padding: 1.4rem var(--edge) 2rem;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: .76rem;
}
.site-footer a { text-decoration: none; }

/* Shared page typography */
.page-intro {
  padding: clamp(4rem, 9vw, 8rem) var(--edge) clamp(5rem, 12vw, 10rem);
}
.page-heading,
.contact-page .page-heading {
  max-width: 13ch;
  margin: 0;
  font-family: var(--font-character);
  font-size: clamp(1.75rem, 4vw, 3.35rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.02em;
}
.page-description {
  max-width: 38rem;
  margin: 2rem 0 0;
  color: var(--quiet);
}
.section-name, .entry-date, .sheet-kicker {
  margin: 0 0 1.1rem;
  color: var(--quiet);
  font-family: var(--font-character);
  font-size: .78rem;
}
.page-intro .section-name,
.contact-page .section-name {
  margin: 0 0 1.25rem;
  color: var(--red);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1;
}
.large-copy {
  font-family: var(--font-character);
  font-size: clamp(1.4rem, 2.6vw, 2.25rem);
  line-height: 1.25;
}

/* Work: a loose, long exhibition rather than a thumbnail grid */
.work-intro { padding-bottom: clamp(6rem, 14vw, 12rem); }
.exhibition {
  display: flex;
  flex-direction: column;
  gap: clamp(10rem, 18vw, 17rem);
  padding: 0 var(--edge) 7rem;
}
.exhibition-group {
  display: grid;
  grid-template-columns: 1fr;
  width: min(100%, 72rem);
  gap: clamp(1.75rem, 3vw, 2.75rem);
  align-self: center;
}
.exhibition-group .work-item { width: 100%; }
.layout-film-below .context-film {
  width: min(66%, 44rem);
  justify-self: end;
}
.layout-no-film { display: block; }
.context-film { min-width: 0; }
.context-film__frame {
  width: 100%;
  aspect-ratio: 16 / 9;
}
.context-film__frame iframe,
iframe.context-film__frame {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #111;
}
.context-film__caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: .65rem 0 0;
  color: var(--quiet);
  font-family: var(--font-character);
  font-size: .9rem;
}
.context-film__caption small { font: inherit; white-space: nowrap; }
.work-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.work-open:hover .work-visual { border-color: #aaa69d; }
.work-open:hover .work-caption strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.work-visual, .journal-entry__image, .about-image, .encounter-image, .encounter-video {
  width: 100%;
  aspect-ratio: var(--media-ratio, 4 / 5);
}
.work-visual img, img.work-visual, .journal-entry__image img, img.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work-caption {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1.5rem;
  margin-top: .85rem;
}
.work-caption__text { min-width: 0; }
.work-caption strong { display: block; font-size: 1.08rem; font-weight: 500; }
.work-caption small { display: block; margin-top: .16rem; color: var(--quiet); font-size: .9rem; }
.work-details-cue {
  display: block;
  width: fit-content;
  margin-top: .55rem;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font-family: var(--font-character);
  font-size: .86rem;
}
.availability {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: .45rem;
  padding-top: .1rem;
  color: var(--red);
  font-family: var(--font-character);
  font-size: .94rem;
}
.availability--available { color: var(--red); }
.availability i, .sheet-status i {
  width: .7rem;
  height: .7rem;
  border-radius: 50%;
  background: var(--red);
  flex: none;
}
.film-still { position: relative; }
.play-mark {
  position: absolute !important;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: .5rem .75rem !important;
  border: 1px solid currentColor;
  color: rgba(255,255,255,.8) !important;
}

/* Gallery information sheet */
.work-modal[hidden] { display: none; }
.work-modal { position: fixed; inset: 0; z-index: 150; overflow-y: auto; }
.work-modal__backdrop { position: fixed; inset: 0; background: rgba(16,16,15,.72); }
.work-sheet {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  width: min(calc(100% - 2rem), 88rem);
  min-height: calc(100vh - 2rem);
  min-height: calc(100svh - 2rem);
  margin: 1rem auto;
  padding: clamp(1rem, 3vw, 2.5rem);
  background: var(--paper);
}
.work-sheet--portrait {
  grid-template-columns: minmax(0, 1.45fr) minmax(20rem, .55fr);
  align-items: stretch;
}
.work-sheet--landscape {
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  width: min(calc(100% - 2rem), 88rem, calc((100svh - 19rem) * var(--detail-ratio-number)));
}
.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  padding: .72rem 1rem;
  border: 1px solid var(--red);
  background: transparent;
  color: var(--red);
  font-family: var(--font-character);
  cursor: pointer;
  font-size: 1rem;
}
.modal-close:hover { background: var(--red); color: var(--paper); }
.work-sheet__visual {
  display: grid;
  align-self: start;
  place-items: start center;
  min-width: 0;
}
.work-sheet__visual .detail-visual { aspect-ratio: var(--detail-ratio); }
.work-sheet__visual .image-placeholder { aspect-ratio: var(--detail-ratio); }
.work-sheet--portrait .work-sheet__visual .detail-visual {
  width: auto;
  max-width: 100%;
  height: min(calc(100svh - 7rem), 52rem);
}
.work-sheet--landscape .work-sheet__visual .detail-visual {
  width: 100%;
  height: auto;
}
.work-sheet__visual img {
  width: auto;
  height: auto !important;
  min-height: 0;
  max-height: calc(100vh - 7rem);
  max-height: calc(100svh - 7rem);
  object-fit: contain;
  object-position: center;
}
.work-sheet__information { align-self: end; padding: 4rem 0 1rem; }
.work-sheet--landscape .work-sheet__information {
  width: min(100%, 38rem);
  justify-self: end;
  padding: 0 0 1rem;
  text-align: right;
}
.work-sheet .sheet-kicker {
  margin-bottom: 1.1rem;
  color: var(--red);
  font-size: 1.15rem;
}
.work-sheet h2 {
  margin: 0 0 .45rem;
  font-family: var(--font-character);
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.08;
}
.sheet-medium, .sheet-details { margin: 0 0 .25rem; color: var(--quiet); font-size: 1.02rem; }
.sheet-note { margin: 2rem 0; max-width: 36rem; font-size: 1.06rem; line-height: 1.62; }
.work-sheet--landscape .sheet-note { margin-left: auto; }
.sheet-status { display: inline-flex; align-items: center; gap: .55rem; margin: 0; color: var(--red); font-family: var(--font-character); font-size: 1.05rem; }
.sheet-status--available { color: var(--red); }
.sheet-price {
  margin: .55rem 0 0;
  font-family: var(--font-character);
  font-size: 1.12rem;
}
.sheet-film { margin-top: 2.5rem; }
.vimeo-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; background: #111; }
.film-config-note { color: var(--quiet); font-size: .78rem; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.sheet-action {
  display: inline-block;
  padding: .55rem 0;
  border-bottom: 1px solid currentColor;
  font-family: var(--font-character);
  font-size: .96rem;
}
.work-sheet--landscape .sheet-status,
.work-sheet--landscape .sheet-actions { justify-content: flex-end; }

/* Journal */
.journal-list { max-width: 72rem; margin: 0 auto; padding: 0 var(--edge); }
.journal-entry {
  display: block;
  width: min(100%, 56rem);
  padding: clamp(4rem, 9vw, 8rem) 0;
  border-top: 1px solid var(--line);
}
.journal-entry__image {
  width: 100%;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}
.journal-entry__body { width: 100%; }
.journal-entry .entry-date {
  margin-bottom: .9rem;
  font-size: .94rem;
}
.journal-entry h2 {
  max-width: 22ch;
  margin: 0 0 1.4rem;
  font-family: var(--font-character);
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 400;
  line-height: 1.08;
}
.journal-entry__body > p:last-child {
  max-width: 46rem;
  margin-bottom: 0;
  font-size: 1.06rem;
  line-height: 1.7;
}

/* About */
.about-intro { padding-bottom: 3rem; }
.about-opening, .practice, .record {
  display: grid;
  grid-template-columns: minmax(17rem, .8fr) minmax(18rem, 1fr);
  gap: clamp(3rem, 9vw, 9rem);
  padding: 0 var(--edge) clamp(7rem, 15vw, 14rem);
}
.about-image { max-width: 38rem; }
.about-account { align-self: end; max-width: 40rem; }
.practice { padding-top: clamp(5rem, 12vw, 10rem); border-top: 1px solid var(--line); }
.practice .section-name,
.record .section-name {
  margin: 0;
  color: var(--red);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 400;
  line-height: 1.08;
}
.practice-copy { max-width: 43rem; }
.practice-copy p { margin: 0 0 1.35rem; }
.editor-note { margin-top: 3rem !important; color: var(--quiet); font-size: .76rem; font-style: italic; }
.record { padding-top: 3rem; padding-bottom: 3rem; border-top: 1px solid var(--line); }
.record ul { margin: 0; padding: 0; list-style: none; }

/* Contact */
.contact-page { min-height: 62vh; padding: clamp(5rem, 12vw, 10rem) var(--edge); }
.contact-page .page-heading { max-width: 16ch; }
.contact-details {
  margin-top: clamp(4rem, 8vw, 7rem);
  font-size: 1.08rem;
}
.contact-details p { margin: 0 0 .55rem; }
.contact-placeholder { color: var(--quiet); font-size: 1rem; }
.contact-instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .25rem;
}
.contact-instagram .instagram-icon { width: 1.75rem; height: 1.75rem; }

/* QR / postcard encounters: mobile-first and intentionally separate */
.postcard-page { min-height: 100%; background: #eceae3; }
.postcard-page--dark { background: #121311; color: #eeede7; }
.encounter {
  display: grid;
  gap: 1.25rem;
  width: min(100%, 32rem);
  min-height: 100svh;
  margin: 0 auto;
  padding: 1rem 1rem 2rem;
}
.encounter-code {
  margin: 0;
  font-family: var(--font-character);
  font-size: .7rem;
  letter-spacing: .03em;
}
.encounter-image, .encounter-video { align-self: center; max-height: 67svh; }
.encounter-words { align-self: end; }
.encounter-words h1 {
  margin: 0;
  font-family: var(--font-character);
  font-size: clamp(1.8rem, 9vw, 3.6rem);
  font-weight: 400;
  line-height: .96;
}
.encounter-words p { margin: .7rem 0 0; color: var(--quiet); font-size: .78rem; }
.postcard-page--dark .encounter-words p { color: #a3a19a; }
.encounter-exit { align-self: end; justify-self: start; font-family: var(--font-character); font-size: .82rem; }
.encounter--text { grid-template-rows: auto 1fr auto; }
.found-text { align-self: center; font-family: var(--font-character); font-size: clamp(1.7rem, 8vw, 3.25rem); line-height: 1.06; }
.found-text p { margin: 0 0 1.5rem; }

@media (max-width: 720px) {
  .site-header { align-items: center; padding-top: 1.25rem; padding-bottom: 1rem; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 4.25rem 0 0;
    z-index: 100;
    display: none;
    align-content: start;
    background: var(--paper);
    padding: 1rem var(--edge) 2rem;
  }
  .nav.is-open { display: grid; }
  .nav a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.08rem; }
  .nav .instagram-link { display: flex; width: 100%; justify-content: flex-start; padding: .9rem 0; }
  .nav .instagram-icon { width: 1.25rem; height: 1.25rem; }
  .home-main { padding-top: 1.5rem; }
  .home-image { aspect-ratio: 4 / 5; }
  .home-note { display: grid; gap: .55rem; }
  .page-intro { padding-top: 3.5rem; padding-bottom: 6rem; }
  .exhibition { gap: 9rem; }
  .exhibition-group, .layout-no-film { width: 100%; }
  .layout-film-below .context-film { width: 94%; justify-self: end; }
  .work-item, .work-item--film, .work-item--wide { width: 100%; }
  .work-caption { gap: .75rem; }
  .work-sheet,
  .work-sheet--portrait,
  .work-sheet--landscape {
    display: block;
    width: 100%;
    min-height: 100svh;
    margin: 0;
    padding: 3.75rem 1rem 2rem;
  }
  .work-sheet__visual .detail-visual,
  .work-sheet--portrait .work-sheet__visual .detail-visual,
  .work-sheet--landscape .work-sheet__visual .detail-visual {
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: var(--detail-ratio);
  }
  .work-sheet__information,
  .work-sheet--landscape .work-sheet__information {
    width: 100%;
    padding-top: 2.25rem;
    text-align: left;
  }
  .work-sheet--landscape .sheet-note { margin-left: 0; }
  .work-sheet--landscape .sheet-status,
  .work-sheet--landscape .sheet-actions { justify-content: flex-start; }
  .about-opening, .practice, .record { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-opening { padding-bottom: 8rem; }
  .practice { padding-top: 5rem; padding-bottom: 7rem; }
}

@media (min-width: 721px) {
  .encounter { padding-top: 2rem; padding-bottom: 3rem; }
}

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