html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  --site-width: 1440px;
  background: #000;
  font-family: Arial, Helvetica, sans-serif;
}

@font-face {
  font-family: "Geist Mono Motion";
  font-style: normal;
  font-weight: 400 700;
  src: url("https://assets.unicorn.studio/fonts/google_fonts/or3yQ6H-1_WfwkMZI_qYPLs1a-t7PU0AbeE9KJ5T7ihaO_CS.ttf") format("truetype");
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}

body::-webkit-scrollbar {
  display: none;
}

body.project-open {
  overflow: hidden;
}

.texture-filters {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

main {
  width: 100%;
}

.site-mark {
  position: fixed;
  top: clamp(20px, 2.7vw, 40px);
  right: clamp(28px, 3vw, 52px);
  z-index: 41;
  display: grid;
  width: var(--site-mark-size, clamp(54px, 4.8vw, 70px));
  height: var(--site-mark-size, clamp(54px, 4.8vw, 70px));
  place-items: center;
  border: 1.25px solid currentColor;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.78);
  font-family: "Geist Mono Motion", "Geist Mono", monospace;
  font-size: clamp(1.3rem, 1.72vw, 1.72rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.035em;
  filter: none;
  mix-blend-mode: difference;
  text-decoration: none;
  text-shadow:
    0.02em 0 rgba(255, 255, 255, 0.22),
    -0.02em 0 rgba(0, 0, 0, 0.18);
  overflow: hidden;
  white-space: nowrap;
  transition: opacity 180ms ease, transform 240ms ease;
}

.site-mark:hover,
.site-mark:focus-visible {
  opacity: 1;
  outline: 0;
  transform: rotate(7deg);
}

.site-mark-short {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max-content;
  filter: blur(0.015px);
  transform: translate(-50%, -50%);
}

.scene {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  background: #000;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

[data-us-project-src] {
  width: 100%;
  height: 100%;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 3.5vh;
  z-index: 6;
  color: rgba(255, 255, 255, 0.5);
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(0.58rem, 0.78vw, 0.78rem);
  line-height: 1;
  letter-spacing: 0.48em;
  text-transform: uppercase;
  transform: translateX(-50%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.scroll-cue::after {
  position: absolute;
  left: 50%;
  top: 1.35rem;
  width: 1px;
  height: 22px;
  content: "";
  background: currentColor;
  opacity: 0.55;
  transform: translateX(-50%) scaleY(0.7);
  transform-origin: top;
  animation: scrollCue 1.6s ease-in-out infinite;
}

@keyframes scrollCue {
  0%,
  100% {
    opacity: 0.25;
    transform: translateX(-50%) scaleY(0.35);
  }

  50% {
    opacity: 0.7;
    transform: translateX(-50%) scaleY(1);
  }
}

.about-copy {
  position: absolute;
  left: clamp(18px, 1.9vw, 36px);
  top: clamp(42px, 5.2vw, 86px);
  z-index: 8;
  --about-copy-focus: 0;
  --about-copy-alpha: 0.08;
  --about-copy-blur: 28px;
  --about-copy-glow: 15px;
  --about-copy-y: 36px;
  max-width: calc(100vw - clamp(18px, 1.9vw, 36px) - clamp(18px, 1.9vw, 36px));
  margin: 0;
  color: rgba(209, 0, 41, var(--about-copy-alpha));
  font-family: "Geist Mono Motion", "Geist Mono", monospace;
  font-size: clamp(1.55rem, 3.35vw, 3.45rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  filter: url("#aboutTextDiffuse") blur(var(--about-copy-blur));
  opacity: var(--about-copy-alpha);
  pointer-events: none;
  transform: translate3d(0, var(--about-copy-y), 0);
  transition: filter 120ms linear, opacity 120ms linear, transform 120ms linear;
  text-shadow:
    0.025em 0 rgba(255, 25, 64, 0.22),
    -0.025em 0 rgba(80, 0, 20, 0.22),
    0.012em 0.018em rgba(209, 0, 41, 0.2),
    0 0 var(--about-copy-glow) rgba(209, 0, 41, 0.54),
    0 0 12px rgba(209, 0, 41, 0.22);
  will-change: filter, opacity, transform;
}

.work {
  position: relative;
  min-height: 315svh;
  overflow: hidden;
  background: #f3f3ee;
  color: #050505;
  --work-focus-x: 50%;
  --work-focus-y: 50vh;
  --work-focus-opacity: 0;
  scroll-snap-align: start;
  isolation: isolate;
}

.work-canvas {
  position: relative;
  z-index: 1;
  width: min(100%, var(--site-width));
  min-height: 315svh;
  margin: 0 auto;
}

.work-manifesto {
  position: absolute;
  left: max(28px, calc((100vw - var(--site-width)) / 2 + 42px));
  top: 8svh;
  z-index: 0;
  width: min(1240px, calc(100vw - 72px));
  color: #d10029;
  font-family: "Geist Mono Motion", "Geist Mono", monospace;
  font-size: 3.15rem;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: uppercase;
  filter: url("#aboutTextDiffuse") blur(var(--manifesto-blur, 28px));
  opacity: var(--manifesto-opacity, 0);
  pointer-events: none;
  transform: translate3d(0, var(--manifesto-y, 48px), 0);
  transform-origin: left top;
  mix-blend-mode: multiply;
  text-shadow:
    0.025em 0 rgba(255, 25, 64, 0.18),
    -0.025em 0 rgba(80, 0, 20, 0.16),
    0 0 10px rgba(209, 0, 41, 0.16);
  will-change: filter, opacity, transform;
}

.work-manifesto p {
  max-width: 100%;
  margin: 0 0 1em;
  white-space: pre-line;
}

.work-manifesto--over {
  z-index: 2;
  mix-blend-mode: normal;
  text-shadow:
    0.02em 0 rgba(102, 0, 22, 0.28),
    0 0 4px rgba(247, 247, 242, 0.12);
}

body.work-carousel-mode .work {
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
}

body.work-carousel-mode .work-canvas {
  position: absolute;
  left: 0;
  top: var(--carousel-top, 43svh);
  z-index: 3;
  display: flex;
  width: max-content;
  height: var(--carousel-height, min(42svh, 440px));
  min-height: 0;
  margin: 0;
  animation: workCarousel var(--carousel-duration, 54s) linear infinite;
  will-change: transform;
  touch-action: pan-y;
}

body.work-carousel-mode .work-canvas.is-touch-dragging {
  cursor: grabbing;
}

body.work-carousel-mode .work-canvas:hover,
body.work-carousel-mode .work:has(.work-carousel-controls:hover) .work-canvas,
body.project-open.work-carousel-mode .work-canvas {
  animation-play-state: paused;
}

body.work-carousel-mode .work-carousel-controls {
  position: absolute;
  top: var(--carousel-control-top, calc(43svh + (min(42svh, 440px) / 2)));
  left: 0;
  right: 0;
  z-index: 8;
  height: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

body.work-carousel-mode .work:has(.work-canvas:hover) .work-carousel-controls,
body.work-carousel-mode .work-carousel-controls:hover,
body.work-carousel-mode .work-carousel-controls:focus-within {
  opacity: 1;
  visibility: visible;
}

body.work-carousel-mode .work-carousel-control {
  position: absolute;
  top: 0;
  display: grid;
  width: 68px;
  height: 92px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: #f3f3ee;
  cursor: pointer;
  pointer-events: auto;
  transform: translateY(-50%);
  transition: opacity 160ms ease;
}

body.work-carousel-mode .work-carousel-control::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  content: "";
  pointer-events: none;
  mix-blend-mode: difference;
  transition: transform 180ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

body.work-carousel-mode .work-carousel-control:hover,
body.work-carousel-mode .work-carousel-control:focus-visible {
  outline: none;
  opacity: 0.84;
}

body.work-carousel-mode .work-carousel-control--previous {
  left: 6px;
}

body.work-carousel-mode .work-carousel-control--next {
  right: 6px;
}

body.work-carousel-mode .work-carousel-control--previous::before {
  transform: translate(-38%, -50%) rotate(-135deg);
}

body.work-carousel-mode .work-carousel-control--next::before {
  transform: translate(-62%, -50%) rotate(45deg);
}

body.work-carousel-mode .work-carousel-control--previous:hover::before,
body.work-carousel-mode .work-carousel-control--previous:focus-visible::before {
  transform: translate(-52%, -50%) rotate(-135deg);
}

body.work-carousel-mode .work-carousel-control--next:hover::before,
body.work-carousel-mode .work-carousel-control--next:focus-visible::before {
  transform: translate(-48%, -50%) rotate(45deg);
}

body.work-carousel-mode .carousel-sequence {
  display: flex;
  flex: 0 0 auto;
  height: 100%;
}

body.work-carousel-mode .work-manifesto {
  z-index: 4;
}

body.work-carousel-mode .work-manifesto--over {
  display: none;
}

body.work-carousel-mode .work::after {
  display: none;
}

body.work-carousel-mode .work-item {
  position: relative;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  z-index: auto !important;
  flex: 0 0 auto;
  width: auto !important;
  height: 100% !important;
  opacity: 1 !important;
  transform: none !important;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

body.work-carousel-mode .work-item img,
body.work-carousel-mode .work-item video {
  object-fit: cover;
}

@keyframes workCarousel {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

body.layout-editing.layout-snap-grid .work-canvas {
  background-image:
    linear-gradient(rgba(5, 5, 5, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 5, 5, 0.045) 1px, transparent 1px);
  background-size: 4% 10vh;
}

.work::after {
  position: absolute;
  inset: 0;
  z-index: 12;
  content: "";
  pointer-events: none;
  backdrop-filter: blur(1.1px);
  -webkit-backdrop-filter: blur(1.1px);
  background: rgba(243, 243, 238, 0.03);
  opacity: var(--work-focus-opacity);
  mask-image: radial-gradient(
    circle at var(--work-focus-x) var(--work-focus-y),
    transparent 0,
    transparent 150px,
    rgba(0, 0, 0, 0.28) 275px,
    #000 460px
  );
  -webkit-mask-image: radial-gradient(
    circle at var(--work-focus-x) var(--work-focus-y),
    transparent 0,
    transparent 150px,
    rgba(0, 0, 0, 0.28) 275px,
    #000 460px
  );
  transition: opacity 180ms ease;
  will-change: opacity;
}

body.layout-editing .work::after,
body.project-open .work::after {
  opacity: 0;
}

.contact-scene {
  --contact-focus: 0;
  --contact-alpha: 0.24;
  --contact-blur: 10px;
  --contact-y: 24px;
  color: #121212;
  background: #f3f3ee;
  isolation: isolate;
}

.contact-topline {
  position: absolute;
  top: clamp(32px, 3.2vw, 58px);
  left: max(28px, calc((100vw - var(--site-width)) / 2 + 42px));
  right: max(28px, calc((100vw - var(--site-width)) / 2 + 42px));
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  color: rgba(18, 18, 18, 0.58);
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(0.62rem, 0.78vw, 0.78rem);
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  pointer-events: none;
}

.contact-topline span:nth-child(2) {
  justify-self: center;
}

.contact-topline span:nth-child(3) {
  justify-self: end;
}

.contact-body {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: min(780px, calc(100vw - 84px));
  opacity: var(--contact-alpha);
  text-align: center;
  transform: translate3d(-50%, calc(-50% + var(--contact-y)), 0);
  will-change: filter, opacity, transform;
}

.contact-email {
  display: inline-block;
  max-width: 100%;
  color: #d10029;
  font-family: "Geist Mono Motion", "Geist Mono", monospace;
  font-size: clamp(1.6rem, 3.1vw, 3.15rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
  text-decoration: none;
  filter: url("#contactDiffuse") blur(calc(var(--contact-blur) * 0.32));
  text-shadow:
    0.025em 0 rgba(255, 25, 64, 0.2),
    -0.025em 0 rgba(80, 0, 20, 0.18),
    0 0 9px rgba(209, 0, 41, 0.14);
  transition: color 180ms ease, opacity 180ms ease;
}

.contact-email:hover,
.contact-email:focus-visible {
  color: #121212;
  outline: none;
}

.contact-footer {
  position: absolute;
  left: max(28px, calc((100vw - var(--site-width)) / 2 + 42px));
  right: max(28px, calc((100vw - var(--site-width)) / 2 + 42px));
  bottom: clamp(34px, 5.4vh, 62px);
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  filter: blur(calc(var(--contact-blur) * 0.35));
  opacity: var(--contact-alpha);
  transform: translate3d(0, calc(var(--contact-y) * 0.45), 0);
}

.contact-note,
.contact-coordinates {
  margin: 0;
  color: rgba(18, 18, 18, 0.72);
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(0.68rem, 0.82vw, 0.82rem);
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-coordinates {
  justify-self: end;
  text-align: right;
}

.work-item {
  position: absolute;
  margin: 0;
  overflow: hidden;
  /* Media sits at opacity 0 until it decodes, so without this the strip reads as empty
     rather than loading. Covered once the media fades in; error tiles hide the whole figure. */
  background: rgba(5, 5, 5, 0.045);
  aspect-ratio: var(--media-ratio, 16 / 9);
  contain: layout paint;
  cursor: pointer;
  outline: 0;
  transform-origin: center center;
  will-change: transform;
}

body.layout-editing .work-item {
  overflow: visible;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.55),
    0 18px 48px rgba(0, 0, 0, 0.16);
  cursor: grab;
  z-index: 5;
}

body.layout-mobile-editing .work {
  min-height: 760svh;
}

body.layout-mobile-editing .work-canvas {
  width: min(430px, calc(100vw - 32px));
  min-height: 760svh;
  outline: 1px solid rgba(5, 5, 5, 0.18);
  outline-offset: 0;
}

body.layout-mobile-editing .work-canvas::before {
  position: sticky;
  top: 12px;
  left: 0;
  z-index: 30;
  display: inline-block;
  padding: 4px 7px;
  content: "9:16 edit canvas";
  color: rgba(5, 5, 5, 0.74);
  background: rgba(247, 247, 242, 0.86);
  border: 1px solid rgba(5, 5, 5, 0.18);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.62rem;
}

body.layout-editing .work-item.is-editing {
  cursor: grabbing;
  z-index: 20;
}

body.layout-editing .work-item.is-selected {
  box-shadow:
    0 0 0 2px #050505,
    0 0 0 6px rgba(5, 5, 5, 0.12),
    0 18px 48px rgba(0, 0, 0, 0.16);
  z-index: 18;
}

.native-size-handle,
.film-strip-size-handle {
  display: none;
}

body.layout-editing [data-site-edit] {
  pointer-events: auto;
  cursor: grab;
  outline: 1px solid rgba(209, 0, 41, 0.52);
  outline-offset: 7px;
}

body.layout-editing [data-site-edit].is-editing {
  cursor: grabbing;
}

body.layout-editing [data-site-edit].is-selected {
  outline: 2px solid #d10029;
}

body.layout-editing .site-mark,
body.layout-editing .site-mark:hover,
body.layout-editing .site-mark:focus-visible {
  width: var(--site-mark-size, 70px);
  border-radius: 50%;
  transform: none;
}

body.layout-editing .site-mark .site-mark-short {
  opacity: 1;
  transform: translate(-50%, -50%);
}

body.layout-editing .native-size-handle {
  position: absolute;
  right: -10px;
  bottom: -10px;
  z-index: 4;
  display: block;
  width: 17px;
  height: 17px;
  box-sizing: border-box;
  border: 1px solid #050505;
  background: #f3f3ee;
  cursor: nwse-resize;
}

body.layout-editing.work-carousel-mode .work-canvas {
  animation-play-state: paused;
}

body.layout-editing.work-carousel-mode .work-item {
  overflow: hidden;
  box-shadow: none;
  cursor: pointer;
}

body.layout-editing.work-carousel-mode .work-item.is-selected {
  box-shadow: inset 0 0 0 3px #d10029;
}

body.layout-editing.work-carousel-mode .layout-handle {
  display: none;
}

.film-strip-size-handle {
  position: absolute;
  left: 50%;
  top: calc(var(--carousel-top, 43svh) + var(--carousel-height, min(42svh, 440px)));
  z-index: 20;
  width: min(440px, 52vw);
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: ns-resize;
  transform: translate(-50%, -50%);
}

.film-strip-size-handle::before,
.film-strip-size-handle::after {
  position: absolute;
  left: 50%;
  content: "";
  transform: translateX(-50%);
}

.film-strip-size-handle::before {
  top: 10px;
  width: 100%;
  height: 1px;
  background: #d10029;
}

.film-strip-size-handle::after {
  top: 5px;
  width: 38px;
  height: 11px;
  border: 1px solid #d10029;
  background: #f3f3ee;
}

body.layout-editing.work-carousel-mode .film-strip-size-handle {
  display: block;
}

.layout-handle {
  position: absolute;
  right: -7px;
  bottom: -7px;
  z-index: 3;
  display: none;
  width: 14px;
  height: 14px;
  border: 1px solid #050505;
  background: #f7f7f2;
  cursor: nwse-resize;
}

body.layout-editing .layout-handle {
  display: block;
}

.layout-tools {
  position: fixed;
  left: max(16px, calc((100vw - var(--site-width)) / 2 + 18px));
  bottom: 16px;
  z-index: 60;
  display: none;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  box-sizing: border-box;
  padding: 12px;
  color: #050505;
  background: rgba(247, 247, 242, 0.9);
  border: 1px solid rgba(5, 5, 5, 0.2);
  border-radius: 2px;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.18);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.7rem;
  line-height: 1.35;
  backdrop-filter: blur(12px);
  overflow: auto;
}

body.layout-editing .layout-tools {
  display: block;
}

.layout-tools-title {
  margin-bottom: 9px;
  color: rgba(5, 5, 5, 0.56);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.layout-mode-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.layout-mode-controls button {
  min-height: 28px;
  border: 1px solid rgba(5, 5, 5, 0.24);
  border-radius: 2px;
  color: rgba(5, 5, 5, 0.72);
  background: rgba(255, 255, 255, 0.38);
  font: inherit;
  cursor: pointer;
}

.layout-mode-controls button.is-active {
  color: #f7f7f2;
  background: #050505;
}

.layout-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
}

.layout-tools-shortcut {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
}

.layout-tools-shortcut kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 21px;
  padding: 1px 6px;
  color: #f7f7f2;
  background: #050505;
  border: 1px solid rgba(5, 5, 5, 0.78);
  border-radius: 2px;
  font-family: inherit;
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.layout-tools-status {
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px solid rgba(5, 5, 5, 0.14);
  color: rgba(5, 5, 5, 0.64);
}

.layout-context-form {
  display: grid;
  gap: 6px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid rgba(5, 5, 5, 0.14);
}

.layout-context-form p {
  margin: 0;
  color: rgba(5, 5, 5, 0.58);
}

.layout-context-form label {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.layout-context-form span {
  color: rgba(5, 5, 5, 0.54);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.layout-context-form input {
  min-width: 0;
  height: 25px;
  box-sizing: border-box;
  padding: 3px 6px;
  border: 1px solid rgba(5, 5, 5, 0.22);
  border-radius: 2px;
  color: #050505;
  background: rgba(255, 255, 255, 0.68);
  font: inherit;
}

.layout-context-form textarea {
  min-width: 0;
  box-sizing: border-box;
  padding: 5px 6px;
  resize: vertical;
  border: 1px solid rgba(5, 5, 5, 0.22);
  border-radius: 2px;
  color: #050505;
  background: rgba(255, 255, 255, 0.68);
  font: inherit;
  line-height: 1.35;
}

.layout-context-form input[type="range"] {
  padding: 0;
  accent-color: #d10029;
}

.layout-site-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.layout-site-buttons button,
.carousel-order-list button {
  min-height: 28px;
  padding: 4px 7px;
  border: 1px solid rgba(5, 5, 5, 0.22);
  border-radius: 2px;
  color: #050505;
  background: rgba(255, 255, 255, 0.5);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.layout-site-buttons button.is-active,
.carousel-order-list button.is-active {
  color: #f3f3ee;
  background: #d10029;
}

.carousel-order-list {
  display: grid;
  max-height: 180px;
  gap: 3px;
  overflow: auto;
}

.carousel-order-list button {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: grab;
}

.carousel-order-list button.is-dragging {
  opacity: 0.35;
}

.layout-context-form input[type="checkbox"] {
  justify-self: start;
  width: 16px;
  min-width: 16px;
  height: 16px;
  padding: 0;
  accent-color: #050505;
}

.layout-context-form label.is-checkbox {
  grid-template-columns: 72px auto minmax(0, 1fr);
}

.layout-context-form label.is-checkbox em {
  color: rgba(5, 5, 5, 0.7);
  font-style: normal;
  font-size: 0.64rem;
}

.text-edit-layer {
  position: absolute;
  z-index: 35;
  display: none;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  color: var(--text-edit-color, #fff);
  font-family: var(--text-edit-font, Arial, Helvetica, sans-serif);
  font-size: var(--text-edit-size, 32px);
  font-weight: var(--text-edit-weight, 400);
  line-height: var(--text-edit-line, 1);
  letter-spacing: var(--text-edit-spacing, 0);
  opacity: 0.8;
  cursor: grab;
  outline: 1px solid color-mix(in srgb, currentColor 72%, transparent);
  outline-offset: 5px;
  pointer-events: auto;
  user-select: none;
}

.text-edit-layer::before {
  position: absolute;
  left: 0;
  top: -1.45rem;
  padding: 3px 5px;
  content: attr(data-label);
  color: #050505;
  background: rgba(247, 247, 242, 0.86);
  border: 1px solid rgba(5, 5, 5, 0.18);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.62rem;
  line-height: 1;
  white-space: nowrap;
}

body.layout-editing .text-edit-layer {
  display: block;
}

body.layout-editing .text-edit-layer.is-editing {
  cursor: grabbing;
  opacity: 0.9;
}

.work-item::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0;
  transition: opacity 220ms ease;
}

.work-item:hover::after,
.work-item:focus-visible::after {
  opacity: 1;
}

.work-item:focus-visible {
  box-shadow: 0 0 0 1px #050505;
}

.work-item img,
.work-item video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: blur(8px);
  transform: scale(1.025);
  transition:
    opacity 520ms ease,
    filter 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 850ms cubic-bezier(0.22, 1, 0.36, 1);
}

.work-item.is-media-ready img,
.work-item.is-media-ready video {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

body:not(.layout-editing) .work-item.is-media-error {
  opacity: 0;
  pointer-events: none;
}

body.layout-editing .work-item.is-media-error {
  min-height: 72px;
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(5, 5, 5, 0.08) 48% 52%, transparent 52% 100%),
    rgba(247, 247, 242, 0.92);
  background-size: 18px 18px;
}

body.layout-editing .work-item.is-media-error::before {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  content: "media offline";
  color: rgba(5, 5, 5, 0.58);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .work-item.is-media-ready:hover img,
  .work-item.is-media-ready:hover video,
  .work-item.is-media-ready:focus-visible img,
  .work-item.is-media-ready:focus-visible video {
    transform: scale(1.018);
  }
}

.item-c {
  left: 66.2%;
  right: auto;
  top: 34.9vh;
  width: 32.6%;
  height: auto;
}

.item-o {
  left: 12.71%;
  top: 29.04vh;
  width: 15.7%;
  --media-ratio: 1080 / 1920;
  height: auto;
}

.item-p {
  left: 57.71%;
  top: 91.05vh;
  width: 15.35%;
  height: auto;
}

.project-viewer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: block;
  padding: 0;
  box-sizing: border-box;
  color: #fff;
  background: #050505;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.012);
  filter: blur(18px);
  transition:
    opacity 420ms ease,
    filter 560ms ease,
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-viewer.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  filter: blur(0);
}

.project-stage {
  position: relative;
  width: 100vw;
  height: 100svh;
  overflow: hidden;
  background: #050505;
}

.project-stage img,
.project-stage video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050505;
}

.project-stage::after {
  position: absolute;
  inset: auto 0 0 0;
  height: 28svh;
  content: "";
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.34), transparent);
}

.project-controls {
  position: absolute;
  inset: 0;
  z-index: 4;
  color: rgba(255, 255, 255, 0.86);
  opacity: 1;
  pointer-events: none;
  transition: opacity 280ms ease;
}

.project-viewer.is-controls-idle .project-controls {
  opacity: 1;
}

.project-play-toggle {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  transition: opacity 260ms ease, transform 260ms ease, background 260ms ease;
}

.project-play-toggle:hover,
.project-play-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: 0;
}

.project-viewer.is-controls-idle .project-play-toggle {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
}

.project-play-toggle::before {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 17px solid currentColor;
  content: "";
}

.project-play-toggle.is-playing::before {
  width: 17px;
  height: 22px;
  margin-left: 0;
  border: 0;
  background:
    linear-gradient(currentColor 0 0) left / 5px 100% no-repeat,
    linear-gradient(currentColor 0 0) right / 5px 100% no-repeat;
}

.project-timeline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 0;
  width: 100vw;
  height: 28px;
  font-family: "Geist Mono Motion", "Geist Mono", "Courier New", monospace;
  font-size: clamp(0.56rem, 0.7vw, 0.7rem);
  line-height: 1;
  letter-spacing: 0.04em;
  pointer-events: auto;
  mix-blend-mode: screen;
  transition: opacity 260ms ease;
}

.project-time {
  display: none;
}

.project-scrub {
  width: 100%;
  height: 28px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background:
    linear-gradient(
      to right,
      rgba(255, 255, 255, 0.9) 0 var(--project-progress, 0%),
      rgba(255, 255, 255, 0.18) var(--project-progress, 0%) 100%
    );
  background-size: 100% 2px;
  background-position: bottom;
  background-repeat: no-repeat;
}

.project-scrub::-webkit-slider-thumb {
  width: 1px;
  height: 12px;
  -webkit-appearance: none;
  border: 0;
  border-radius: 0;
  background: #fff;
  opacity: 0;
  transition: opacity 180ms ease;
}

.project-scrub::-moz-range-thumb {
  width: 1px;
  height: 12px;
  border: 0;
  border-radius: 0;
  background: #fff;
  opacity: 0;
  transition: opacity 180ms ease;
}

.project-timeline:hover .project-scrub::-webkit-slider-thumb,
.project-scrub:focus-visible::-webkit-slider-thumb {
  opacity: 1;
}

.project-timeline:hover .project-scrub::-moz-range-thumb,
.project-scrub:focus-visible::-moz-range-thumb {
  opacity: 1;
}

.project-copy {
  position: absolute;
  --project-copy-inset: clamp(28px, 3vw, 56px);
  left: var(--project-copy-inset);
  bottom: var(--project-copy-inset);
  z-index: 2;
  display: grid;
  gap: 0.46em;
  max-width: min(58vw, 720px);
  font-family: "Geist Mono Motion", "Geist Mono", "Courier New", monospace;
  text-align: left;
  mix-blend-mode: screen;
}

.project-copy h2 {
  margin: 0;
  font-family: inherit;
  font-size: clamp(1rem, 1.45vw, 1.55rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  overflow-wrap: break-word;
}

.project-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(0.74rem, 0.96vw, 1rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.08;
  text-transform: lowercase;
}

.project-copy.is-caps h2,
.project-copy.is-caps p {
  text-transform: uppercase;
}

.project-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(0.62rem, 0.9vw, 0.88rem);
  line-height: 1;
  cursor: pointer;
  mix-blend-mode: screen;
}

.project-close:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

@media (max-width: 820px) {
  html {
    scroll-snap-type: y proximity;
  }

  .site-mark {
    width: var(--site-mark-size, 50px);
    height: var(--site-mark-size, 50px);
    font-size: 1.02rem;
    filter: none;
    text-shadow: none;
  }

  .scroll-cue {
    bottom: 26px;
    font-size: 0.58rem;
  }

  .work {
    min-height: 640svh;
  }

  .work-canvas {
    min-height: 640svh;
  }

  .work-manifesto {
    line-height: 1.14;
    letter-spacing: 0;
    filter: none;
    mix-blend-mode: normal;
    text-shadow: none;
    transform: none;
    will-change: auto;
  }

  .work-manifesto p {
    margin-bottom: 0;
    white-space: normal;
  }

  body.work-carousel-mode .work {
    height: 100svh;
    min-height: 560px;
  }

  body.work-carousel-mode .work-canvas {
    top: 36svh;
    height: 36svh;
    max-height: 330px;
  }

  body.work-carousel-mode .work-carousel-controls {
    display: none;
  }

  body.work-carousel-mode .work-item video {
    pointer-events: none;
  }

  body.work-carousel-mode .work-item img,
  body.work-carousel-mode .work-item video {
    filter: none;
    transform: none;
    transition: opacity 240ms ease;
  }

  body.work-carousel-mode .work-item {
    -webkit-user-select: none;
    user-select: none;
  }

  .work-item video::-webkit-media-controls,
  .work-item video::-webkit-media-controls-enclosure,
  .work-item video::-webkit-media-controls-panel,
  .work-item video::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none;
  }

      .item-c {
    left: 6vw;
    right: auto;
    top: 92vh;
    width: 78vw;
    height: 48vw;
  }

    .item-o {
    left: 16vw;
    top: 123vh;
    width: 46vw;
    height: 82vw;
  }

              .item-p {
    left: 10vw;
    top: 376vh;
    width: 78vw;
    height: auto;
  }

  .item-k,
        .project-viewer {
    padding: 0;
  }

  .project-stage {
    width: 100%;
    height: 100svh;
  }

  .project-copy {
    --project-copy-inset: 22px;
    left: var(--project-copy-inset);
    right: auto;
    bottom: var(--project-copy-inset);
    max-width: 78vw;
  }

  .project-copy h2 {
    font-size: clamp(0.95rem, 4.4vw, 1.28rem);
  }

  .project-copy p {
    font-size: clamp(0.68rem, 3.2vw, 0.92rem);
  }

  .project-play-toggle {
    width: 52px;
    height: 52px;
    border: 0;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .project-timeline {
    left: 0;
    right: 0;
    bottom: 0;
    grid-template-columns: 1fr;
    width: 100vw;
  }

  .contact-topline {
    top: 30px;
    left: 18px;
    right: 18px;
    grid-template-columns: 1fr auto;
    font-size: 0.58rem;
  }

  .contact-topline span:nth-child(2) {
    display: none;
  }

  .contact-topline span:nth-child(3) {
    justify-self: end;
  }

  .contact-body {
    left: 50%;
    top: 50%;
    bottom: auto;
    width: calc(100vw - 36px);
  }

  .contact-email {
    max-width: 100%;
    font-size: clamp(1.55rem, 7.2vw, 2.1rem);
    letter-spacing: -0.035em;
  }

  .contact-footer {
    left: 18px;
    right: 18px;
    bottom: 34px;
    grid-template-columns: 1fr auto;
    gap: 24px;
  }

  .contact-note,
  .contact-coordinates {
    font-size: 0.58rem;
  }
}

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

  .scroll-cue::after {
    animation: none;
  }

  .work-item,
  .work-item img,
  .work-item video,
  .project-viewer,
  .project-play-toggle {
    transition: none;
  }

  .work-item img,
  .work-item video {
    filter: none;
    transform: none;
  }
}
