.surface-project {width: min(1240px, calc(100% - 44px)); max-height: min(92dvh, 1100px)}
.project-cover {
  min-height: clamp(200px, 29vh, 300px);
  background: radial-gradient(ellipse at 78% 45%, #291b19 0%, #11191d 53%, #0e181c 86%);
}
.project-planet {
  position: absolute;
  top: 48%;
  right: 8%;
  width: clamp(270px, 48vw, 550px);
  height: auto;
  translate: 0 -50%;
  mix-blend-mode: screen;
  pointer-events: none;
}
.project-cover:not([data-playing]) video {visibility: hidden}
.project-cover[data-playing] img {visibility: hidden}
.project-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0e181c 0%, #0e181c88 34%, transparent 65%);
  pointer-events: none;
}
.project-cover-copy {position: relative; z-index: 1}
.project-ambient {
  position: sticky;
  top: 0;
  height: 0;
  pointer-events: none;
}
.project-ambient::before {
  content: "";
  position: absolute;
  top: -110px;
  right: 0;
  width: min(850px, 100vw);
  height: min(630px, 82dvh);
  background:
    radial-gradient(ellipse at 62% 47%, #46767a2b, transparent 67%),
    radial-gradient(ellipse at 78% 65%, #a8603c18, transparent 58%);
  mask-image: radial-gradient(ellipse closest-side, #000 24%, transparent 100%);
}
.project-cover,
.surface-project-body > section {
  position: relative;
}
.surface-project-body .project-story,
.surface-project-body .project-exhibitions,
.surface-project-body .surface-project-credits {
  max-width: 1120px;
  padding-inline: clamp(16px, 4vw, 48px);
}
.project-story {overflow-x: clip}
.project-prose {max-width: 72ch; margin: 0 auto; padding: 14px 0}
.project-intro {padding-bottom: 16px}
.project-method {padding-block: clamp(28px, 5vw, 60px) 22px}
.project-chapter {
  position: relative;
  padding-block: clamp(24px, 4vw, 44px);
  border-top: 1px solid var(--line);
}
.project-chapter-copy h4 {
  margin: 0 0 13px;
  font: 650 clamp(28px, 4vw, 53px)/.98 var(--display);
  letter-spacing: -.045em;
}
.project-chapter-copy a {font-size: 13px}
.project-chapter-split {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  gap: clamp(23px, 5vw, 62px);
  align-items: center;
}
.project-chapter-reverse {grid-template-columns: minmax(0, 1.28fr) minmax(0, .72fr)}
.project-chapter-reverse > .project-example {grid-column: 1; grid-row: 1}
.project-chapter-reverse .project-chapter-copy {grid-column: 2; grid-row: 1}
.project-chapter-origin .project-chapter-copy {
  display: grid;
  grid-template-columns: minmax(218px, .45fr) minmax(0, 1.55fr);
  gap: 20px;
  align-items: baseline;
  margin-bottom: 15px;
}
.project-example {min-width: 0; margin: 0}
.project-example-tablet {
  width: min(78%, 690px);
  margin: 8px auto clamp(30px, 5vw, 55px);
}
.project-origin-hero {margin-top: 18px}
.project-origin-hero .project-video {max-height: 68dvh}
.project-example figcaption {
  background: #142529;
  border: 1px solid var(--line);
  border-top: 0;
  padding: 7px 11px;
  color: var(--muted);
  font: 11px/1.5 var(--mono);
}
.project-example-tablet figcaption {
  padding: 6px 0;
  border: 0;
  background: transparent;
  text-align: center;
}
.project-visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a1417;
}
.project-visual img {display: block}
.project-tablet {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1.88;
}
.project-tablet-frame {
  width: 100%;
  height: 95%;
  padding: clamp(3px, .65vw, 8px);
  border-radius: clamp(8px, 1.2vw, 16px);
  background: linear-gradient(145deg, #2e4245, #0b1216 48%, #22383b);
  box-shadow: 0 15px 32px #050809a8, 0 0 24px #539d9f20;
}
.project-tablet-screen {
  height: 100%;
  overflow: hidden;
  container-type: size;
  border-radius: 5px;
  background: #11191c;
}
.project-tablet-screen img {
  width: 100%;
  height: auto;
  transform: translateY(calc(var(--progress, 0) * min(0px, 100cqh - 100%)));
}
.project-slider {
  display: grid;
  grid-template-columns: auto minmax(68px, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 42px;
  background: #132429;
  color: var(--signal);
  border: 1px solid var(--line);
  border-top: 0;
  padding: 5px 11px;
  font: 11px/1.4 var(--mono);
}
.project-slider input {width: 100%; margin: 0; min-height: 32px; accent-color: var(--signal); cursor: ew-resize}
.project-video {aspect-ratio: 16 / 9}
.project-example:not(.project-example-tablet) {
  filter: drop-shadow(0 8px 12px #030b0c87);
}
.project-video,
.project-marble,
.surface-project-body .project-exhibition-list li {
  --corner: clamp(9px, 1.8vw, 22px);
  clip-path: polygon(0 0, calc(100% - var(--corner)) 0, 100% var(--corner),
    100% 100%, var(--corner) 100%, 0 calc(100% - var(--corner)));
}
.project-video::after,
.project-marble::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(#b4e4db, #b4e4db) top left / 37px 1px no-repeat,
    linear-gradient(#b4e4db, #b4e4db) top left / 1px 18px no-repeat,
    linear-gradient(#8fbeb8, #8fbeb8) bottom right / 30px 1px no-repeat;
}
.project-video img, .project-video video, .project-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.project-video:not([data-playing]) video {visibility: hidden}
.project-motion {
  position: absolute;
  z-index: 2;
  bottom: 9px;
  right: 9px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  color: #edfffb;
  background: #101e23ed;
  border: 1px solid #a9e4db99;
  font: 15px/1 var(--mono);
}
.project-motion:hover {background: #2a4b4e}
.project-tablet .project-motion {
  bottom: 3px;
  right: 5px;
  border-color: #a9e4db55;
}
.project-cover .project-motion {
  bottom: 14px;
  right: 16px;
  border-color: #a9e4db55;
}
.project-film-screen:has(iframe) {min-height: 200px}
.project-film-screen .project-motion {inset: 9px 9px auto auto}
.project-play-status:not(:empty) {
  position: absolute;
  z-index: 2;
  inset: auto 60px 10px 10px;
  padding: 7px 10px;
  color: var(--ink);
  background: #121e21ed;
  font: 12px/1.4 var(--mono);
  pointer-events: none;
}
.project-compare-details {margin-top: 8px}
.project-compare-details summary {
  width: fit-content;
  padding: 10px 0;
  color: var(--signal);
  font: 12px/1.4 var(--mono);
  cursor: pointer;
}
.project-marble {aspect-ratio: 20 / 9; --split: calc(var(--progress, .48) * 100%)}
.project-marble img {position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover}
.project-marble img:nth-child(2) {clip-path: inset(0 calc(100% - var(--split)) 0 0)}
.project-divider {position: absolute; inset: 0 auto 0 var(--split); width: 1px; background: #c6f1e8}
.project-divider::after {
  content: '↔';
  display: grid;
  place-items: center;
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 34px;
  height: 34px;
  border: 1px solid var(--signal);
  border-radius: 50%;
  background: #142529;
  color: var(--signal);
}
.surface-project-body .project-exhibition-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
}
.surface-project-body .project-exhibition-list li {
  position: relative;
  isolation: isolate;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 18px;
  border: 1px solid #729e9b68;
  background:
    radial-gradient(ellipse at 12% -15%, #b5e3dd40, transparent 66%),
    linear-gradient(142deg, #395f62b8, #203a3eb0 52%, #13272bc4);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 #c8f7e56b, inset 1px 0 0 #c8f7e52b, inset 0 -2px 0 #0812159c;
}
.surface-project-body .project-exhibition-list li:nth-last-child(-n+2) {grid-column: span 3}
.project-exhibition-list li::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(132deg, #e0fff117 0 22%, transparent 22.3% 100%);
}
.surface-project-body .project-exhibition-list .project-conference {
  border-color: #b4a99a81;
  background:
    radial-gradient(ellipse at 100% 0%, #d3976442, transparent 70%),
    linear-gradient(142deg, #395d60bd, #20393ec2 75%);
}
.project-exhibition-list li:focus-within {outline: 1px solid var(--signal); outline-offset: -3px}
.project-exhibition-list li > a, .project-event-links {margin-top: auto}
.project-event-links {display: flex; flex-wrap: wrap; gap: 4px 12px}
.project-exhibition-list span, .project-author-grid h4 span {
  display: block;
  color: var(--dust);
  font: 11px/1.5 var(--mono);
}
.project-exhibition-list strong {display: block; margin: 6px 0; font: 620 23px/1.12 var(--display)}
.project-exhibition-list p, .project-exhibition-list a, .project-author-grid {font-size: 14px}
.project-author-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 24px;
  border-block: 1px solid var(--line);
  padding: 16px 0;
  margin-bottom: 20px;
}
.project-author-grid h4 {margin: 0 0 10px}
.project-authors-list {max-width: 62ch}
.project-faculty {
  display: block;
  width: clamp(140px, 17vw, 198px);
  height: auto;
  margin-top: 20px;
  filter: brightness(0) invert(1);
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .project-exhibition-list li {transition: transform .2s ease, border-color .2s ease}
  .project-exhibition-list li:hover {
    transform: perspective(1000px) translateY(-3px) rotateX(3deg);
    border-color: #a7ded3;
  }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .project-ambient::before {
      animation: project-ambient-drift linear both;
      animation-timeline: scroll(nearest block);
    }
    .project-example:not(.project-example-tablet) {
      animation: project-media-arrival ease-out both;
      animation-timeline: view(block);
      animation-range: entry 0% cover 43%;
    }
  }
}
@keyframes project-ambient-drift {
  from {transform: translate3d(-4%, -3%, 0)}
  to {transform: translate3d(-45%, 24%, 0)}
}
@keyframes project-media-arrival {
  from {transform: perspective(1600px) translateY(17px) rotateX(4deg); opacity: .73}
  to {transform: perspective(1600px) translateY(0) rotateX(0); opacity: 1}
}
@media (max-width: 700px) {
  .surface-project {width: calc(100% - 16px)}
  .project-cover {min-height: 190px}
  .project-planet {right: -31px}
  .project-chapter-split, .project-chapter-origin .project-chapter-copy, .project-author-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .project-chapter-reverse > .project-example, .project-chapter-reverse .project-chapter-copy {grid-column: auto; grid-row: auto}
  .project-example-tablet {width: 94%}
  .project-motion {bottom: 5px; right: 5px}
  .surface-project-body .project-exhibition-list {grid-template-columns: minmax(0, 1fr)}
  .surface-project-body .project-exhibition-list li,
  .surface-project-body .project-exhibition-list li:nth-last-child(-n+2) {grid-column: auto}
}

