/* ============================================================
   Portal Film Productions — v4 "mono" (brutalist editorial)
   Design authority: STYLE-GUIDE.md · reference: mono system
   Paper #FFFFFF · Ink #292929 · 2px rules · 0 radius · no accent
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --paper: #ffffff;
  --ink: #292929;
  --carbon: #000000;
  --line: #292929;
  --font: "Switzer", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    Arial, sans-serif;
  --cond: "Barlow Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;
  --pad: clamp(20px, 3.5vw, 45px);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0 !important;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.34;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
video {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
::selection {
  background: var(--ink);
  color: var(--paper);
}

/* Museum-plaque label */
.label {
  font-family: var(--cond);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: inherit;
}

.wrap {
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Vertical edge label ---------- */
.side-label {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 5;
  transform: rotate(90deg) translateY(-18px);
  transform-origin: 100% 0;
  font-family: var(--cond);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  padding: 0 var(--pad);
  height: 56px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__mark {
  width: 40px;
  height: 40px;
}
.nav__word {
  font-family: var(--cond);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.22em;
}
.nav__links {
  display: flex;
  align-items: stretch;
}
.nav__links a {
  display: flex;
  align-items: center;
  padding: 0 20px;
  font-family: var(--cond);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-left: 2px solid var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}
.nav__links a:hover,
.nav__links a:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- Cinema hero ---------- */
.hero {
  position: relative;
  height: calc(100svh - 56px);
  min-height: 480px;
  background: #101012;
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
}
.hero__loop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 10, 0.3);
}
.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--pad) clamp(20px, 4vh, 45px);
  color: #ffffff;
  will-change: transform, opacity;
}
.hero__word {
  font-size: clamp(64px, 15.5vw, 230px);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-left: -0.04em;
}
.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(14px, 3vh, 28px);
}
.hero__line {
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  max-width: 44ch;
}
.hero__play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 2px solid #ffffff;
  color: #ffffff;
  font-family: var(--cond);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 12px 24px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.hero__play:hover,
.hero__play:focus-visible {
  background: #ffffff;
  color: var(--ink);
}
.hero__play-icon {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 9px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: #000;
}
.hero__overlay iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.hero__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 7;
  width: 42px;
  height: 42px;
  border: 2px solid #ffffff;
  background: #000;
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
}
.hero__close:hover {
  background: #ffffff;
  color: var(--carbon);
}

/* ---------- Kinetic directory ---------- */
.kdir {
  position: relative;
  border-bottom: 2px solid var(--ink);
}
.kdir__media {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease-out;
  pointer-events: none;
}
.kdir.is-viewing .kdir__media {
  opacity: 1;
}
.kdir__media > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease-out;
}
.kdir__media > .is-active {
  opacity: 1;
  animation: kdrift 16s ease-in-out infinite alternate;
}
@keyframes kdrift {
  from {
    transform: scale(1.06) translate(-0.7%, -0.5%);
  }
  to {
    transform: scale(1.12) translate(0.7%, 0.5%);
  }
}
.kdir__tone {
  background: var(--tone, #1a1a1e);
}
.kdir__scrim {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 10, 0.48);
  opacity: 1 !important;
}
.kdir__list {
  position: relative;
  z-index: 1;
}
.kdir__head {
  padding: 12px var(--pad);
  border-bottom: 2px solid var(--line);
}
.kdir__row {
  display: block;
  padding: clamp(16px, 2.6vh, 28px) var(--pad);
  border-bottom: 2px solid var(--line);
  transition: border-color 0.3s ease-out;
}
.kdir__row:last-of-type {
  border-bottom: 0;
}
.kdir__num {
  display: block;
  font-family: var(--cond);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  margin-bottom: 4px;
}
.kdir__title {
  display: inline-block;
  font-size: clamp(40px, 8.2vw, 128px);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 0.3s ease-out, transform 0.35s ease-out;
}
.kdir__meta {
  display: block;
  margin-top: 6px;
  font-family: var(--cond);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.6;
  transition: color 0.3s ease-out, opacity 0.3s ease-out;
}
.kdir.is-viewing .kdir__head,
.kdir.is-viewing .kdir__row {
  border-color: rgba(255, 255, 255, 0.28);
}
.kdir.is-viewing .kdir__head {
  color: rgba(255, 255, 255, 0.6);
}
.kdir.is-viewing .kdir__title {
  color: rgba(255, 255, 255, 0.32);
}
.kdir.is-viewing .kdir__num,
.kdir.is-viewing .kdir__meta {
  color: rgba(255, 255, 255, 0.5);
  opacity: 1;
}
.kdir.is-viewing .kdir__row.is-active .kdir__title {
  color: #ffffff;
  transform: translateX(0.15em);
}
.kdir.is-viewing .kdir__row.is-active .kdir__num,
.kdir.is-viewing .kdir__row.is-active .kdir__meta {
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Studio (inverse ink cell) ---------- */
.studio {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 2px solid var(--ink);
  padding: clamp(43px, 7vh, 90px) var(--pad);
}
.studio .label {
  color: rgba(255, 255, 255, 0.65);
}
.studio p {
  margin-top: 16px;
  max-width: 44ch;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

/* ---------- Footer ---------- */
.footer__cell {
  position: relative;
  overflow: hidden;
  padding: clamp(43px, 6vh, 72px) var(--pad);
  border-bottom: 2px solid var(--ink);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-end;
  justify-content: space-between;
}
.footer__side {
  position: relative;
}
/* Spine continuation: the ink bar runs the full page, past the footer */
#contact {
  position: relative;
  padding-right: 44px;
}
#contact::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 44px;
  background: var(--ink);
}
/* Evervault-style scramble: ink characters revealed under a cursor spotlight */
.footer__scramble {
  position: absolute;
  inset: 0;
  padding: 6px 10px;
  font-family: var(--font-mono, "SF Mono", Menlo, monospace);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: var(--ink);
  word-break: break-all;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease-out;
  -webkit-mask-image: radial-gradient(
    150px circle at var(--mx, 50%) var(--my, 50%),
    black 25%,
    transparent 72%
  );
  mask-image: radial-gradient(
    150px circle at var(--mx, 50%) var(--my, 50%),
    black 25%,
    transparent 72%
  );
}
.footer__cell:hover .footer__scramble {
  opacity: 0.4;
}
.footer__email {
  font-size: clamp(24px, 3.4vw, 43px);
  font-weight: 300;
  letter-spacing: -0.02em;
  display: inline;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size 0.3s ease-out;
}
a:hover .footer__email,
a:focus-visible .footer__email {
  background-size: 100% 2px;
}
.footer__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.footer__mark {
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
}
.footer__side a {
  font-family: var(--cond);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.footer__side a:hover {
  background: var(--ink);
  color: var(--paper);
}
.footer__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  justify-content: space-between;
  padding: 20px var(--pad);
  font-family: var(--cond);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.footer__bar a:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- Project page ---------- */
.proj__progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 20;
}
.proj__progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ink);
}
.proj {
  display: grid;
  grid-template-columns: minmax(280px, 400px) minmax(0, 1fr);
  gap: 0;
  border-bottom: 2px solid var(--ink);
}
.proj__meta {
  align-self: start;
  position: sticky;
  top: 56px;
  padding: clamp(25px, 4vh, 45px) var(--pad);
  border-right: 2px solid var(--ink);
}
.proj__back {
  font-family: var(--cond);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.proj__back:hover {
  background: var(--ink);
  color: var(--paper);
}
.proj__title {
  margin-top: 20px;
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.proj__summary {
  margin-top: 14px;
  font-size: 16px;
  font-weight: 300;
  max-width: 38ch;
}
.proj__facts {
  margin-top: 28px;
  border-top: 2px solid var(--ink);
}
.proj__facts > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ink);
  font-size: 14px;
}
.proj__facts dt {
  font-family: var(--cond);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
  padding-top: 2px;
}
.proj__facts dd {
  text-align: right;
}
.proj__facts .proj__facts-wide {
  display: block;
}
.proj__facts .proj__facts-wide dd {
  text-align: left;
  margin-top: 6px;
  line-height: 1.5;
}
.proj__column {
  display: flex;
  flex-direction: column;
}
.proj__frame {
  width: 100%;
  background: #101012;
  border-bottom: 2px solid var(--ink);
}
.proj__frame:last-of-type {
  border-bottom: 0;
}
.pframe {
  overflow: hidden;
}
.pframe > img,
.pframe > video {
  width: 100%;
  transform: translateY(var(--py, 0%)) scale(1.14);
  will-change: transform;
}
.pframe--whole > img,
.pframe--whole > video {
  transform: none;
}
.proj__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 2px solid var(--ink);
}
.proj__pair > .proj__frame {
  border-bottom: 0;
  border-right: 2px solid var(--ink);
}
.proj__pair > .proj__frame:last-child {
  border-right: 0;
}
@media (max-width: 700px) {
  .pframe--whole > img,
.pframe--whole > video {
  transform: none;
}
.proj__pair {
    grid-template-columns: 1fr;
  }
  .proj__pair > .proj__frame {
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }
  .proj__pair > .proj__frame:last-child {
    border-bottom: 0;
  }
}
.proj__frame--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tone, #1a1a1e);
}
.proj__frame--ph span {
  font-family: var(--cond);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
/* Sidebar credits + links */
.proj__credits,
.proj__links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.proj__credits li,
.proj__links li {
  padding: 3px 0;
  line-height: 1.45;
}
.proj__credits span {
  font-family: var(--cond);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 11px;
  opacity: 0.6;
  margin-right: 8px;
}
.proj__links a {
  border-bottom: 1px solid currentColor;
}

/* ---------- Project story (from the dictated interview) ---------- */
.proj__story {
  padding: 46px var(--pad) 10px;
  max-width: 68ch;
}
.proj__story > * + * {
  margin-top: 20px;
}
.proj__story h2 {
  margin-top: 52px;
  font-family: var(--cond);
  font-size: clamp(21px, 2.2vw, 27px);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.15;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
}
.proj__story h2:first-child {
  margin-top: 0;
}
.proj__story h3 {
  margin-top: 34px;
  font-size: 17px;
  font-weight: 500;
}
.proj__story p {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.62;
}
/* First line of the story gets a little more air. */
.proj__story > p:first-of-type {
  font-size: 20px;
  line-height: 1.5;
}
.proj__story blockquote {
  margin-left: 0;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--ink);
  font-size: 19px;
  font-weight: 300;
  line-height: 1.45;
}
.proj__story ul,
.proj__story ol {
  padding-left: 22px;
}
.proj__story li {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.6;
  padding: 3px 0;
}
.proj__story a {
  border-bottom: 1px solid currentColor;
}
.proj__story hr {
  border: 0;
  border-top: 1px solid var(--ink);
  opacity: 0.25;
  margin: 40px 0;
}
.proj__story img {
  width: 100%;
  height: auto;
  display: block;
}

.proj__pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 25px var(--pad);
}
.proj__pager a {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.proj__pager a:last-child {
  text-align: right;
}
.proj__pager .label {
  opacity: 0.6;
}
.proj__pager-title {
  font-size: clamp(18px, 2.2vw, 25px);
  font-weight: 300;
  display: inline;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size 0.3s ease-out;
}
.proj__pager a:hover .proj__pager-title,
.proj__pager a:focus-visible .proj__pager-title {
  background-size: 100% 2px;
}

/* ---------- Portal intro (entrance ritual) ---------- */
html.intro-lock,
html.intro-lock body {
  overflow: hidden;
}
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
}
.intro__scene {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}
.intro__ring {
  position: relative;
  z-index: 3;
  width: min(72vmin, 640px);
  height: auto;
  will-change: transform;
}
.intro__aperture {
  position: absolute;
  z-index: 2;
  width: min(38vmin, 340px);
  height: min(38vmin, 340px);
  object-fit: cover;
  clip-path: circle(50%);
  opacity: 0;
  transition: opacity 0.6s ease-out;
}
.intro[data-state="1"] .intro__aperture {
  opacity: 0.3;
  animation: apflicker 2.2s steps(2) infinite;
}
.intro[data-state="2"] .intro__aperture,
.intro[data-state="3"] .intro__aperture {
  opacity: 0.8;
  animation: none;
}
@keyframes apflicker {
  0%,
  100% {
    opacity: 0.32;
  }
  50% {
    opacity: 0.16;
  }
}
.intro__glow {
  position: absolute;
  z-index: 1;
  width: min(100vmin, 900px);
  height: min(100vmin, 900px);
  background: radial-gradient(
    circle,
    rgba(120, 160, 255, 0.16) 0%,
    rgba(90, 220, 180, 0.08) 34%,
    transparent 62%
  );
  opacity: 0.5;
  animation: glowbreathe 7s ease-in-out infinite alternate;
}
.intro[data-state="1"] .intro__glow {
  opacity: 0.75;
  animation-duration: 4s;
}
.intro[data-state="2"] .intro__glow,
.intro[data-state="3"] .intro__glow {
  opacity: 1;
  animation-duration: 2s;
}
@keyframes glowbreathe {
  from {
    transform: scale(0.94);
  }
  to {
    transform: scale(1.05);
  }
}
.intro__beams {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.intro__beams span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 240vmax;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 12%,
    rgba(255, 255, 255, 0.85) 50%,
    transparent 88%
  );
  mix-blend-mode: screen;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(var(--a, 0deg));
  transition: opacity 0.5s ease-out;
}
.intro[data-state="1"] .intro__beams span:nth-child(-n + 2) {
  opacity: 0.4;
  animation: beamspin 14s linear infinite;
}
.intro[data-state="2"] .intro__beams span,
.intro[data-state="3"] .intro__beams span {
  opacity: 0.55;
  animation: beamspin 7s linear infinite;
}
.intro__beams span:nth-child(2) {
  animation-direction: reverse !important;
  animation-duration: 11s !important;
}
.intro__beams span:nth-child(4) {
  animation-direction: reverse !important;
}
.intro__beams span:nth-child(5) {
  animation-duration: 5s !important;
}
@keyframes beamspin {
  from {
    transform: translate(-50%, -50%) rotate(var(--a, 0deg));
  }
  to {
    transform: translate(-50%, -50%) rotate(calc(var(--a, 0deg) + 360deg));
  }
}
.intro__vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.12s ease-out;
}
.intro__vid.is-front {
  opacity: 1;
}
.intro__flash {
  position: absolute;
  inset: 0;
  z-index: 8;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}
.intro.is-done .intro__flash {
  opacity: 1;
  transition: opacity 0.4s ease-in;
}
.intro.is-out {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease-out;
}
.intro__top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px var(--pad);
}
.intro__actions {
  display: flex;
  gap: 8px;
}
.intro__btn {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  font-family: var(--cond);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.intro__btn:hover,
.intro__btn:focus-visible {
  background: #fff;
  color: #000;
}
.intro__plaque {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9;
  display: flex;
  justify-content: center;
  padding: 20px var(--pad);
  letter-spacing: 0.2em;
}

/* ---------- The exhibition (homepage v5) ---------- */
.exh {
  display: grid;
  grid-template-columns: clamp(220px, 22vw, 300px) minmax(0, 1fr) 44px;
  border-bottom: 2px solid var(--ink);
  /* The evasive reel may be chased past any edge; clip instead of scrolling. */
  overflow: hidden;
  position: relative;
}
.exh__rail {
  border-right: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
}
.exh__mast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 2px solid var(--ink);
}
.exh__mark {
  width: 44px;
  height: 44px;
}
.exh__word {
  font-family: var(--cond);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.22em;
}
.exh__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 2px solid var(--ink);
}
.exh__nav a {
  font-family: var(--cond);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  padding: 10px 0;
  transition: background 0.2s ease, color 0.2s ease;
}
.exh__nav a:first-child {
  border-right: 2px solid var(--ink);
}
.exh__nav a:hover,
.exh__nav a:focus-visible {
  background: var(--ink);
  color: var(--paper);
}
.exh__railreel {
  position: relative;
  padding: 20px 14px 14px;
  border-bottom: 2px solid var(--ink);
}
.exh__reel {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #101012;
  cursor: pointer;
}
.exh__reel video {
  display: block;
  width: 100%;
  aspect-ratio: 1920 / 1008;
  object-fit: cover;
}
.exh__reel.is-free {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  will-change: transform;
}
.exh__recall[hidden] {
  display: none;
}
.exh__recall {
  display: block;
  width: 100%;
  aspect-ratio: 1920 / 1008;
  background: transparent;
  border: 2px solid var(--ink);
  color: var(--ink);
  font-family: var(--cond);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.exh__recall:hover,
.exh__recall:focus-visible {
  background: var(--ink);
  color: var(--paper);
}
.exh__index {
  position: relative;
  padding: 20px 0 10px;
  border-bottom: 2px solid var(--ink);
}
.exh__idx {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 20px;
  font-family: var(--cond);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.15s ease, color 0.15s ease;
}
.exh__idx-num {
  font-size: 10px;
  color: #83837c;
}
.exh__idx:hover,
.exh__idx:focus-visible {
  background: var(--ink);
  color: var(--paper);
}
.exh__idx:hover .exh__idx-num,
.exh__idx:focus-visible .exh__idx-num {
  color: rgba(255, 255, 255, 0.6);
}
.exh__about {
  position: relative;
  padding: 24px 20px 20px;
  border-bottom: 2px solid var(--ink);
}
.exh__plaque {
  position: absolute;
  top: -9px;
  left: 14px;
  background: var(--paper);
  border: 2px solid var(--ink);
  font-family: var(--cond);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1px 8px;
}
.exh__about p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.55;
}
.exh__orbitcell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  min-height: 260px;
}
.exh__orbit {
  position: relative;
  width: min(220px, 100%);
  aspect-ratio: 1;
}
.exh__orbit-disc {
  position: absolute;
  inset: 18%;
  border-radius: 50% !important;
  background-size: cover;
  background-position: center;
  background-color: #1a1a1e;
}
.exh__orbit-text {
  position: absolute;
  inset: 0;
  animation: orbitspin 40s linear infinite;
}
.exh__orbit-text text {
  font-family: var(--cond);
  font-size: 11px;
  letter-spacing: 0.1em;
  fill: var(--ink);
}
@keyframes orbitspin {
  to {
    transform: rotate(360deg);
  }
}
.exh__main {
  position: relative;
}
.exh__headline {
  text-align: center;
  padding: clamp(24px, 4vh, 44px) var(--pad);
  border-bottom: 2px solid var(--ink);
}
.exh__headline p {
  font-size: clamp(26px, 3.4vw, 43px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.exh__ethos {
  display: block;
  margin-top: 12px;
  color: #83837c;
}
.exh__headline em {
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.03em;
}
.exh__work {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.exh__cell {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 16px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  min-height: clamp(240px, 34vh, 360px);
  transition: background 0.2s ease;
}
.exh__cell:nth-child(3n) {
  border-right: 0;
}
/* First row got clamp(150px, 22vh, 240px) of top padding — a deliberate slab of
   gallery air. With the headline band and the Play full reel bar already above
   it, that made three stacked bands of nothing. Reduced to a step, not a void.
   Set to 14px to match every other row; raise it to taste. */
.exh__cell:nth-child(-n + 3) {
  padding-top: clamp(40px, 6vh, 80px);
}
.exh__cell:hover {
  background: #f4f3ef;
}
.exh__cell-num {
  font-family: var(--cond);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #83837c;
  display: block;
}
.exh__cell-title {
  display: block;
  font-size: clamp(17px, 1.7vw, 25px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-top: 2px;
}
.exh__cell-meta {
  display: block;
  font-family: var(--cond);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #83837c;
  margin-top: 4px;
}
.exh__cell-media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #101012;
}
.exh__cell-media img,
.exh__cell-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease-out;
}
.exh__cell:hover .exh__cell-media img,
.exh__cell:hover .exh__cell-media video {
  transform: scale(1.04);
}
/* Dither veil: 1-bit halftone print resting state; true image on hover */
.exh__dither {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  opacity: 0.92;
  transition: opacity 0.4s ease-out;
  pointer-events: none;
}
.exh__cell:hover .exh__dither,
.exh__cell:focus-visible .exh__dither {
  opacity: 0;
}
.exh__cell-tone {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--tone, #1a1a1e);
}
.exh__playrow {
  display: flex;
  justify-content: center;
  padding: 14px var(--pad);
  border-bottom: 2px solid var(--ink);
}
.exh__play {
  background: transparent;
  border: 2px solid var(--ink);
  color: var(--ink);
  font-family: var(--cond);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 10px 22px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.exh__play:hover,
.exh__play:focus-visible {
  background: var(--ink);
  color: var(--paper);
}
.exh__spine {
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.exh__spine span,
.exh__spine a {
  writing-mode: vertical-rl;
  font-family: var(--cond);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 20px 0;
}
.exh__spine a {
  transition: background 0.2s ease, color 0.2s ease;
}
.exh__spine a:hover,
.exh__spine a:focus-visible {
  background: var(--paper);
  color: var(--ink);
}
.reelov {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: #000;
}
.reelov iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.reelov__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 2px solid #fff;
  background: #000;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}
.reelov__close:hover {
  background: #fff;
  color: #000;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .exh {
    grid-template-columns: 1fr;
  }
  .exh__rail {
    border-right: 0;
  }
  .exh__spine {
    display: none;
  }
  #contact {
    padding-right: 0;
  }
  #contact::after {
    display: none;
  }
  .exh__rail {
    border-bottom: 2px solid var(--ink);
  }
  .exh__work {
    grid-template-columns: 1fr;
  }
  .exh__cell {
    border-right: 0;
    min-height: 0;
  }
  .exh__cell:nth-child(-n + 3) {
    padding-top: 14px;
  }
}

/* ---------- Responsive (legacy) ---------- */
@media (max-width: 860px) {
  .proj {
    grid-template-columns: 1fr;
  }
  .proj__meta {
    position: static;
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }
  .side-label {
    display: none;
  }
}
@media (max-width: 560px) {
  .nav__links a {
    padding: 0 12px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Chapters ----------
   Several bodies of work under one client, each with its own heading, its own
   words and its own frames. Added 2026-10-16 for Henry J Lyons. A page with no
   `chapters` in its frontmatter is untouched by all of this. */
.chap {
  border-top: 2px solid var(--ink);
}
.chap__head {
  padding: 44px var(--pad) 0;
}
.chap__num {
  font-family: var(--cond);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.55;
}
.chap__title {
  margin-top: 8px;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 26ch;
}
.chap__strands {
  display: flex;
  flex-wrap: wrap;
  margin-top: 20px;
  border-top: 1px solid var(--ink);
}
.chap__strands span {
  font-family: var(--cond);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 9px 18px 0 0;
  opacity: 0.7;
}
.chap__body {
  padding: 20px var(--pad) 42px;
  max-width: 68ch;
}
.chap__body p {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.62;
}
.chap__body p + p {
  margin-top: 18px;
}
.chap__frames {
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--ink);
}
/* A strand that is shot but not delivered: a line, not a hole in the page. */
.chap--soon .chap__head {
  padding-bottom: 44px;
}
.chap--soon .chap__title {
  opacity: 0.4;
}
.chap__status {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--cond);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 2px solid var(--ink);
  padding: 5px 10px;
}
