:root {
  --metal-0: #d3d5d5;
  --metal-1: #b9bcbd;
  --metal-2: #929697;
  --metal-3: #777c7e;
  --ink: #151718;
  --white: #f5f6f5;
  --line: rgba(24, 27, 28, 0.18);
  --header-h: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--metal-1);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

img {
  display: block;
  max-width: 100%;
}

.sr-only {
  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 {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(187, 191, 192, 0.58);
  box-shadow: 0 12px 36px rgba(31, 35, 36, 0.08);
  backdrop-filter: blur(24px) saturate(125%);
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.header-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.header-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 24px;
  height: 1px;
  background: currentColor;
  transform: translateX(-50%) scaleX(0.35);
  transition: transform 240ms ease;
}

.header-title:hover::after,
.header-title:focus-visible::after {
  transform: translateX(-50%) scaleX(1);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 52px);
}

.site-nav a {
  position: relative;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  padding-top: var(--header-h);
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.48) 0%, transparent 22%),
    linear-gradient(100deg, #c9cccd 0%, #a7abad 30%, #d1d3d3 53%, #8f9496 76%, #c2c5c5 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: var(--header-h) 0 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 12%, rgba(255, 255, 255, 0.15) 24%, transparent 38%),
    linear-gradient(90deg, transparent 55%, rgba(255, 255, 255, 0.12) 66%, transparent 82%);
  filter: blur(22px);
}

.hero::after {
  content: "SELECT A WORLD";
  position: absolute;
  right: 18px;
  top: 50%;
  color: rgba(21, 23, 24, 0.6);
  font-size: 9px;
  font-weight: 700;
  writing-mode: vertical-rl;
}

.hero-copy {
  position: absolute;
  z-index: 3;
  inset: calc(var(--header-h) + 18px) 32px auto;
  display: flex;
  justify-content: space-between;
  color: rgba(21, 23, 24, 0.68);
  font-size: 9px;
  font-weight: 700;
}

.hero-copy p {
  margin: 0;
}

.orbit {
  --mx: 0px;
  --my: 0px;
  position: relative;
  width: min(100%, 1440px);
  height: calc(100svh - var(--header-h));
  min-height: 660px;
  margin: 0 auto;
}

.portrait-stage {
  position: absolute;
  z-index: 10;
  width: clamp(340px, 38vw, 570px);
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  transform: translate(calc(-50% + var(--mx) * 0.1), calc(-50% + var(--my) * 0.1));
  transition: transform 180ms ease-out;
  isolation: isolate;
}

.portrait-stack {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.portrait-particles {
  position: absolute;
  z-index: 4;
  left: -50%;
  top: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
}

.portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  filter: drop-shadow(0 24px 20px rgba(23, 26, 27, 0.2));
  transition: opacity 170ms linear;
  will-change: opacity;
}

.portrait-stage.is-dispersing .portrait {
  transition: none;
}

.portrait.is-active {
  z-index: 2;
  opacity: 1;
}

.portrait-shadow {
  display: none;
}

.portrait-caption {
  position: absolute;
  z-index: 5;
  right: 2%;
  bottom: 8%;
  padding: 7px 0;
  border-bottom: 1px solid currentColor;
  color: rgba(21, 23, 24, 0.66);
  font-size: 9px;
  font-weight: 700;
}

.work-node {
  --node-x: 0px;
  --node-y: 0px;
  position: absolute;
  z-index: 20;
  display: grid;
  justify-items: center;
  gap: 5px;
  width: clamp(118px, 12vw, 176px);
  transform: translate(var(--node-x), var(--node-y));
  transition:
    filter 280ms ease,
    transform 180ms ease-out;
  will-change: transform;
}

.work-node img {
  width: 100%;
  height: clamp(112px, 12vw, 172px);
  object-fit: contain;
  filter:
    drop-shadow(0 17px 11px rgba(24, 27, 28, 0.22))
    drop-shadow(0 4px 3px rgba(24, 27, 28, 0.16));
  transition:
    transform 380ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 380ms ease;
}

.work-node > span:last-child {
  padding: 5px 0;
  border-bottom: 1px solid rgba(21, 23, 24, 0.72);
  color: rgba(21, 23, 24, 0.78);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.work-node:hover,
.work-node:focus-visible {
  z-index: 30;
  outline: none;
}

.work-node:hover img,
.work-node:focus-visible img {
  filter:
    drop-shadow(0 26px 16px rgba(24, 27, 28, 0.25))
    drop-shadow(0 6px 4px rgba(24, 27, 28, 0.15));
  transform: translateY(-12px) rotate(-2deg) scale(1.055);
}

.node-fashion {
  left: 11%;
  top: 12%;
}

.node-commercial {
  right: 8%;
  top: 13%;
}

.node-code {
  left: 4%;
  top: 49%;
}

.node-making {
  right: 3%;
  top: 49%;
}

.node-art {
  left: 17%;
  bottom: 4%;
}

.node-motion {
  right: 15%;
  bottom: 5%;
}

.node-commercial.is-source-hidden,
.node-making.is-source-hidden,
.node-code.is-source-hidden {
  opacity: 0;
  pointer-events: none;
}

body.commercial-open,
body.making-open,
body.coding-open {
  overflow: hidden;
}

body.fashion-open {
  overflow: hidden;
}

.node-fashion.is-source-hidden {
  opacity: 0;
  pointer-events: none;
}

.fashion-transition {
  --book-dx: 0px;
  --book-dy: 0px;
  --book-sx: 0.18;
  --book-sy: 0.18;
  position: fixed;
  z-index: 90;
  inset: var(--header-h) 0 0;
  overflow: hidden;
  visibility: hidden;
  opacity: 1;
  pointer-events: none;
  perspective: 2200px;
}

.fashion-transition.is-visible {
  visibility: visible;
}

.fashion-transition::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(177, 181, 182, 0);
  transition: background 280ms linear;
}

.fashion-transition.is-open::before {
  background: rgba(177, 181, 182, 0.76);
}

.fashion-transition-book {
  position: absolute;
  left: calc(50% + var(--book-dx));
  top: calc(50% + var(--book-dy));
  width: min(
    94vw,
    calc((100vh - var(--header-h) - 28px) * 1.6513),
    1240px
  );
  height: auto;
  aspect-ratio: 1.6513;
  transform-origin: 75% 50%;
  translate: -50% -50%;
  scale: var(--book-sx) var(--book-sy);
  transform-style: preserve-3d;
  will-change: left, top, scale;
  transition:
    left 1080ms linear,
    top 1080ms linear,
    scale 1080ms linear;
}

.fashion-transition.is-open .fashion-transition-book {
  left: 50%;
  top: 50%;
  scale: 1;
}

.fashion-transition.is-preparing .fashion-transition-book,
.fashion-transition.is-preparing .fashion-transition-cover,
.fashion-transition.is-preparing .fashion-transition-sheet {
  transition: none !important;
}

.fashion-transition.is-preparing::before {
  transition: none !important;
}

.fashion-transition-cover,
.fashion-transition-sheet {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  border: 0;
  background: transparent;
}

.fashion-transition-cover {
  z-index: 2;
  transform-origin: left center;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 1080ms linear;
}

.fashion-transition-cover-front,
.fashion-transition-cover-inside {
  position: absolute;
  inset: 0;
  overflow: hidden;
  backface-visibility: hidden;
}

.fashion-transition-cover-front {
  background: transparent;
}

.fashion-transition-cover-front img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  filter:
    drop-shadow(0 30px 24px rgba(19, 21, 22, 0.25))
      drop-shadow(0 5px 5px rgba(19, 21, 22, 0.18));
}

.fashion-transition-cover-inside,
.fashion-transition-sheet {
  color: #f5ede3;
}

.fashion-transition-cover-inside {
  transform: rotateY(180deg);
  background: #21130d;
}

.fashion-spread-image {
  position: absolute;
  top: 0;
  width: 200%;
  max-width: none;
  height: 100%;
  object-fit: cover;
}

.fashion-transition-cover-inside .fashion-spread-image,
.fashion-transition-sheet .fashion-spread-image,
.fashion-transition-sheet .fashion-spread-meta,
.fashion-spread-title {
  opacity: 0;
}

.fashion-transition.is-open .fashion-transition-cover-inside .fashion-spread-image,
.fashion-transition.is-open .fashion-transition-sheet .fashion-spread-image,
.fashion-transition.is-open .fashion-transition-sheet .fashion-spread-meta,
.fashion-transition.is-open .fashion-spread-title {
  animation: fashion-content-in 1080ms linear both;
}

.fashion-transition.is-closing .fashion-transition-cover-inside .fashion-spread-image,
.fashion-transition.is-closing .fashion-transition-sheet .fashion-spread-image,
.fashion-transition.is-closing .fashion-transition-sheet .fashion-spread-meta,
.fashion-transition.is-closing .fashion-spread-title {
  animation: fashion-content-out 1080ms linear both;
}

.fashion-transition.is-page-ready .fashion-transition-cover-inside .fashion-spread-image,
.fashion-transition.is-page-ready .fashion-transition-sheet .fashion-spread-image,
.fashion-transition.is-page-ready .fashion-transition-sheet .fashion-spread-meta,
.fashion-transition.is-page-ready .fashion-spread-title {
  opacity: 1;
  animation: none;
}

.fashion-spread-image-left {
  left: 0;
}

.fashion-spread-image-right {
  right: 0;
}

.fashion-spread-title {
  position: absolute;
  z-index: 1;
  left: clamp(24px, 6vw, 96px);
  top: 50%;
  margin: 0;
  transform: translateY(-50%);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(68px, 9vw, 142px);
  font-weight: 400;
  line-height: 0.84;
  text-shadow: 0 2px 18px rgba(20, 8, 3, 0.52);
}

.fashion-spread-meta {
  position: absolute;
  z-index: 1;
  right: clamp(18px, 3vw, 48px);
  top: clamp(18px, 3vw, 48px);
  font-size: 9px;
  font-weight: 700;
}

.fashion-transition-sheet {
  z-index: 1;
  background: transparent;
}

.fashion-transition-sheet::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  opacity: 0;
  background: #21130d;
  box-shadow:
    7px 4px 0 -2px #27150e,
    13px 8px 0 -4px #160d09,
    20px 20px 48px rgba(23, 25, 25, 0.24);
  transform: scaleX(0.08);
  transform-origin: left center;
}

.fashion-transition.is-open .fashion-transition-sheet::before {
  animation: fashion-page-in 1080ms linear both;
}

.fashion-transition.is-closing .fashion-transition-sheet::before {
  animation: fashion-page-out 1080ms linear both;
}

.fashion-transition.is-page-ready .fashion-transition-sheet::before {
  opacity: 1;
  transform: scaleX(1);
  animation: none;
}

@keyframes fashion-page-in {
  0%,
  28% {
    opacity: 0;
    transform: scaleX(0.08);
  }
  38% {
    opacity: 1;
    transform: scaleX(0.38);
  }
  78%,
  100% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes fashion-page-out {
  0%,
  24% {
    opacity: 1;
    transform: scaleX(1);
  }
  52%,
  100% {
    opacity: 0;
    transform: scaleX(0.12);
  }
}

@keyframes fashion-content-in {
  0%,
  78% {
    opacity: 0;
  }
  93%,
  100% {
    opacity: 1;
  }
}

@keyframes fashion-content-out {
  0%,
  30% {
    opacity: 1;
  }
  45%,
  100% {
    opacity: 0;
  }
}

.fashion-transition.is-open .fashion-transition-cover {
  transform: rotateY(-180deg);
}

.fashion-view {
  position: fixed;
  z-index: 80;
  inset: var(--header-h) 0 0;
  overflow-x: hidden;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  color: #191a19;
  background: #eeece6;
  transition: opacity 220ms linear;
}

.fashion-view.is-active {
  visibility: visible;
  opacity: 1;
}

.fashion-view.is-transition-ready {
  transition: none;
}

.fashion-view-toolbar {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 clamp(20px, 3vw, 48px);
  border: 0;
  color: #f5ede3;
  background: transparent;
  text-shadow: 0 1px 10px rgba(18, 7, 3, 0.72);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  pointer-events: none;
}

.fashion-view-toolbar > * {
  pointer-events: auto;
}

.fashion-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-transform: uppercase;
  cursor: pointer;
}

.fashion-back > span:first-child {
  font-size: 18px;
  transition: transform 220ms ease;
}

.fashion-back:hover > span:first-child,
.fashion-back:focus-visible > span:first-child {
  transform: translateX(-5px);
}

.fashion-opening {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  overflow: hidden;
  color: #f5ede3;
  background: #21130d;
}

.fashion-opening > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fashion-opening-title {
  position: absolute;
  z-index: 1;
  left: clamp(24px, 6vw, 96px);
  top: 50%;
  transform: translateY(-50%);
  text-shadow: 0 3px 24px rgba(18, 7, 3, 0.58);
}

.fashion-opening-title > span {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.fashion-opening-title h2 {
  margin: 18px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(68px, 9vw, 142px);
  font-weight: 400;
  line-height: 0.84;
}

.fashion-story-copy > p:first-child {
  margin: 0 0 30px;
  font-size: 9px;
  font-weight: 700;
}

.fashion-shot figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.fashion-index {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0 clamp(24px, 6vw, 96px);
  padding: 22px 0;
  border-top: 1px solid rgba(25, 26, 25, 0.3);
  border-bottom: 1px solid rgba(25, 26, 25, 0.3);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.fashion-editorial {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 48px);
  padding: 10vh clamp(24px, 6vw, 96px) 16vh;
}

.fashion-shot {
  margin: 0;
}

.fashion-shot img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  filter: saturate(0.88);
  transition: filter 380ms ease;
}

.fashion-shot:hover img {
  filter: saturate(1);
}

.fashion-shot-wide {
  grid-column: 1 / span 8;
}

.fashion-shot-wide img {
  aspect-ratio: 16 / 10;
}

.fashion-story-copy {
  grid-column: 9 / -1;
  align-self: end;
  padding-bottom: 30px;
}

.fashion-story-copy h3 {
  max-width: 460px;
  margin: 0 0 32px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 66px);
  font-weight: 400;
  line-height: 1;
}

.fashion-story-copy > p:last-child {
  max-width: 390px;
  margin: 0;
  color: rgba(25, 26, 25, 0.64);
  font-size: 14px;
  line-height: 1.7;
}

.fashion-shot-tall {
  grid-column: 2 / span 5;
  margin-top: 8vh;
}

.fashion-shot-tall img {
  aspect-ratio: 4 / 5;
}

.fashion-shot-square {
  grid-column: 8 / span 4;
  align-self: end;
}

.fashion-shot-square img {
  aspect-ratio: 1;
}

.fashion-view-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 180px;
  padding: 40px clamp(24px, 6vw, 96px);
  border-top: 1px solid rgba(25, 26, 25, 0.3);
  background: #d4d2cc;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.fashion-back-bottom {
  padding-bottom: 7px;
  border-bottom: 1px solid currentColor;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2vw, 34px);
  font-weight: 400;
  text-transform: none;
}

.scroll-cue {
  position: absolute;
  z-index: 30;
  left: 32px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(21, 23, 24, 0.72);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.scroll-cue i {
  position: relative;
  width: 54px;
  height: 1px;
  overflow: hidden;
  background: rgba(21, 23, 24, 0.54);
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: translateX(-100%);
  animation: scan 1.8s ease-in-out infinite;
}

@keyframes scan {
  50%,
  100% {
    transform: translateX(100%);
  }
}

.about {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 0.6fr 1.2fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  padding: 12vh 6vw;
  color: #edf0ef;
  background: #202324;
}

.about-index,
.about-heading > p {
  color: #bfc3c3;
  font-size: 10px;
  font-weight: 700;
}

.about-heading h2 {
  margin: 22px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(64px, 9vw, 150px);
  font-weight: 400;
  line-height: 0.78;
}

.about-body {
  align-self: end;
  max-width: 560px;
}

.about-lead {
  margin: 0 0 34px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2.4vw, 40px);
  line-height: 1.3;
}

.about-body > p:not(.about-lead) {
  margin: 0;
  color: #aeb2b1;
  font-size: 15px;
  line-height: 1.8;
}

.about-meta {
  display: grid;
  gap: 8px;
  margin-top: 54px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 160px;
  padding: 32px 6vw;
  color: var(--ink);
  background: #c6c9c9;
  font-size: 12px;
  font-weight: 700;
}

.site-footer a {
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 3vw, 46px);
  font-weight: 400;
}

body.fine-art-open {
  overflow: hidden;
}

.node-art.is-source-hidden {
  opacity: 0;
  pointer-events: none;
}

.art-transition {
  --art-left: 0px;
  --art-top: 0px;
  --art-width: 140px;
  --art-height: 140px;
  position: fixed;
  z-index: 90;
  inset: var(--header-h) 0 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

.art-transition.is-visible {
  visibility: visible;
}

.art-transition-wash {
  position: absolute;
  z-index: 0;
  inset: 0;
  opacity: 0;
  background: #f1f1ee;
  will-change: opacity;
  transition: opacity 1120ms cubic-bezier(0.42, 0, 0.16, 1);
}

.art-transition-portal {
  position: absolute;
  z-index: 1;
  left: var(--art-left);
  top: var(--art-top);
  width: var(--art-width);
  height: var(--art-height);
  overflow: hidden;
  border: 1px solid rgba(67, 69, 67, 0.34);
  box-shadow:
    0 0 0 120vmax rgba(232, 232, 228, 0),
    0 18px 42px rgba(28, 30, 29, 0.18);
  transform: translateZ(0);
  will-change: left, top, width, height, box-shadow;
  transition:
    left 1120ms cubic-bezier(0.42, 0, 0.16, 1),
    top 1120ms cubic-bezier(0.42, 0, 0.16, 1),
    width 1120ms cubic-bezier(0.42, 0, 0.16, 1),
    height 1120ms cubic-bezier(0.42, 0, 0.16, 1),
    border-color 480ms linear,
    box-shadow 240ms linear;
  opacity: 0;
}

.portal-plane {
  position: absolute;
  z-index: 1;
  display: block;
  opacity: 1;
  will-change: width, height, opacity;
  transition:
    width 1120ms cubic-bezier(0.42, 0, 0.16, 1),
    height 1120ms cubic-bezier(0.42, 0, 0.16, 1),
    opacity 720ms linear 280ms;
}

.portal-plane-left,
.portal-plane-right {
  top: 0;
  bottom: 0;
  width: 44%;
}

.portal-plane-left {
  left: 0;
  background: linear-gradient(90deg, #babbb8, #eeeeea 74%, #8f918e);
  clip-path: polygon(0 0, 100% 20%, 100% 80%, 0 100%);
}

.portal-plane-right {
  right: 0;
  background: linear-gradient(270deg, #b2b3b0, #f1f0ec 74%, #858784);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 80%, 0 20%);
}

.portal-plane-top,
.portal-plane-bottom {
  left: 0;
  right: 0;
  height: 42%;
}

.portal-plane-top {
  top: 0;
  background: linear-gradient(180deg, #d8d9d6, #f5f4f0 72%, #a4a5a2);
  clip-path: polygon(0 0, 100% 0, 78% 100%, 22% 100%);
}

.portal-plane-bottom {
  bottom: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 22%, rgba(70, 72, 70, 0.1) 22% calc(22% + 1px)),
    linear-gradient(0deg, #adaeab, #efefeb 75%, #939592);
  clip-path: polygon(0 100%, 100% 100%, 78% 0, 22% 0);
}

.art-transition-icon {
  position: absolute;
  z-index: 3;
  left: var(--art-left);
  top: var(--art-top);
  width: var(--art-width);
  max-width: none;
  height: var(--art-height);
  object-fit: contain;
  transform: perspective(1600px) rotateY(0deg) scale(1);
  transform-origin: 39% 48%;
  opacity: 1;
  will-change: left, top, width, height, transform, opacity;
  transition:
    left 1120ms cubic-bezier(0.42, 0, 0.16, 1),
    top 1120ms cubic-bezier(0.42, 0, 0.16, 1),
    width 1120ms cubic-bezier(0.42, 0, 0.16, 1),
    height 1120ms cubic-bezier(0.42, 0, 0.16, 1),
    transform 1120ms cubic-bezier(0.42, 0, 0.16, 1),
    opacity 360ms linear;
}

.art-transition-depth {
  display: none;
}

.art-transition.is-entering .art-transition-wash {
  opacity: 1;
}

.art-transition.is-entering .art-transition-icon {
  left: calc(50% - 58vmax);
  top: calc(50% - 58vmax);
  width: 116vmax;
  height: 116vmax;
  transform: perspective(1600px) rotateY(-18deg) scale(1.035);
}

.art-transition.is-entering.is-whiteout-ready .art-transition-icon {
  opacity: 0;
  transition: opacity 320ms linear;
}

.art-transition.is-entering.is-revealing-gallery .art-transition-wash {
  opacity: 0;
  transition: opacity 760ms cubic-bezier(0.4, 0, 0.2, 1);
}

.art-transition.is-entering.is-revealing-gallery .art-transition-icon {
  opacity: 0;
  transform: perspective(1600px) rotateY(-22deg) scale(1.08);
  transition:
    transform 760ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 440ms linear;
}

.art-transition.is-entering.is-closing .art-transition-wash {
  transition: opacity 760ms cubic-bezier(0.4, 0, 0.2, 1);
}

.art-transition.is-entering.is-closing .art-transition-icon {
  transition:
    left 1120ms cubic-bezier(0.42, 0, 0.16, 1),
    top 1120ms cubic-bezier(0.42, 0, 0.16, 1),
    width 1120ms cubic-bezier(0.42, 0, 0.16, 1),
    height 1120ms cubic-bezier(0.42, 0, 0.16, 1),
    transform 1120ms cubic-bezier(0.42, 0, 0.16, 1),
    opacity 760ms linear;
}

.art-transition.is-primed *,
.art-transition.is-primed *::before,
.art-transition.is-primed *::after {
  transition: none !important;
}

.fine-art-view {
  --gallery-rotation: 0deg;
  --gallery-scale: 1.4;
  position: fixed;
  z-index: 80;
  inset: var(--header-h) 0 0;
  visibility: hidden;
  overflow: hidden;
  opacity: 0;
  color: #191a19;
  background: #e8e8e4;
  pointer-events: none;
  transition: opacity 520ms linear;
}

.fine-art-view.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.fine-art-view.is-entering-gallery {
  transition: none;
}

.fine-art-view.is-exit-hidden {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: none !important;
}

.fine-art-view:not(.is-active),
.fine-art-view:not(.is-active) * {
  pointer-events: none !important;
}

.fine-art-toolbar {
  position: absolute;
  z-index: 30;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 clamp(20px, 3vw, 48px);
  color: rgba(24, 25, 24, 0.78);
  background: linear-gradient(180deg, rgba(239, 239, 235, 0.9), rgba(239, 239, 235, 0));
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  pointer-events: none;
}

.fine-art-toolbar > * {
  pointer-events: auto;
}

.fine-art-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-transform: uppercase;
  cursor: pointer;
}

.fine-art-back > span:first-child {
  font-size: 17px;
  transition: transform 220ms ease;
}

.fine-art-back:hover > span:first-child,
.fine-art-back:focus-visible > span:first-child {
  transform: translateX(-5px);
}

.fine-art-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: grab;
  perspective: 1400px;
  perspective-origin: 50% 48%;
  touch-action: none;
  user-select: none;
}

.fine-art-stage.is-dragging {
  cursor: grabbing;
}

.gallery-atmosphere {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), transparent 22%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent 26% 74%, rgba(90, 92, 90, 0.09));
}

.gallery-world {
  position: absolute;
  left: 50%;
  top: 49%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  transform: translateZ(0) scale(var(--gallery-scale));
  will-change: transform;
}

.fine-art-view.is-entering-gallery .gallery-world {
  animation: gallery-dolly-in 1120ms cubic-bezier(0.42, 0, 0.16, 1) both;
}

.fine-art-view.is-leaving-gallery .gallery-world {
  animation: gallery-dolly-out 1120ms cubic-bezier(0.42, 0, 0.16, 1) both;
}

@keyframes gallery-dolly-in {
  from {
    transform:
      translateZ(-740px)
      scale(var(--gallery-scale))
      scale(0.78);
  }
  to {
    transform:
      translateZ(0)
      scale(var(--gallery-scale))
      scale(1);
  }
}

@keyframes gallery-dolly-out {
  from {
    transform:
      translateZ(0)
      scale(var(--gallery-scale))
      scale(1);
  }
  to {
    transform:
      translateZ(-740px)
      scale(var(--gallery-scale))
      scale(0.78);
  }
}

.gallery-wall {
  --wall-x: 0px;
  --wall-z: -760px;
  --wall-turn: 0deg;
  --wall-opacity: 1;
  position: absolute;
  left: -631px;
  top: -350px;
  width: 1262px;
  height: 700px;
  overflow: hidden;
  background: #f1f0ec;
  box-shadow:
    inset 0 42px 46px -46px rgba(255, 255, 255, 0.96),
    inset 0 -30px 38px -34px rgba(54, 55, 53, 0.22);
  opacity: var(--wall-opacity);
  transform:
    translate3d(var(--wall-x), 0, var(--wall-z))
    rotateY(var(--wall-turn));
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.gallery-wall::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.62), transparent 38%);
}

.art-frame {
  position: absolute;
  z-index: 2;
  margin: 0;
  padding: 9px;
  background: #f7f6f2;
  box-shadow:
    0 11px 20px rgba(27, 28, 27, 0.17),
    0 2px 4px rgba(27, 28, 27, 0.14);
  transform: translateZ(5px);
  transition:
    transform 260ms ease,
    box-shadow 260ms ease;
}

.art-frame:hover {
  transform: translateZ(20px);
  box-shadow:
    0 19px 28px rgba(27, 28, 27, 0.21),
    0 3px 6px rgba(27, 28, 27, 0.12);
}

.art-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.art-frame figcaption {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(24, 25, 24, 0.66);
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
}

.frame-large { width: 390px; height: 300px; }
.frame-wide { width: 430px; height: 245px; }
.frame-landscape { width: 340px; height: 250px; }
.frame-portrait { width: 230px; height: 330px; }
.frame-square { width: 280px; height: 280px; }
.frame-small { width: 190px; height: 150px; }
.frame-mini { width: 132px; height: 158px; }

.frame-a { left: 460px; top: 148px; }
.frame-b { left: 142px; top: 316px; }
.frame-c { left: 18px; top: 142px; }
.frame-d { left: 414px; top: 108px; }
.frame-e { right: 90px; bottom: 100px; }
.frame-f { left: 74px; top: 168px; }
.frame-g { right: 78px; top: 228px; }
.frame-h { left: 94px; top: 180px; }
.frame-i { right: 106px; top: 122px; }
.frame-j { left: 100px; top: 140px; }
.frame-k { right: 116px; bottom: 128px; }
.frame-l { left: 102px; top: 118px; }
.frame-m { right: 70px; bottom: 116px; }
.frame-n { left: 78px; top: 162px; }
.frame-o { right: 72px; top: 190px; }
.frame-p { left: 112px; top: 120px; }
.frame-q { right: 70px; bottom: 112px; }

.gallery-floor {
  position: absolute;
  z-index: 8;
  left: -20%;
  right: -20%;
  bottom: -28%;
  height: 56%;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(204, 203, 198, 0.05), rgba(145, 145, 140, 0.42)),
    repeating-linear-gradient(90deg, transparent 0 13vw, rgba(78, 79, 76, 0.07) 13vw calc(13vw + 1px));
  transform: perspective(720px) rotateX(58deg);
  transform-origin: center top;
}

.gallery-vignette {
  position: absolute;
  z-index: 12;
  inset: 0;
  pointer-events: none;
  box-shadow:
    inset 0 0 110px rgba(53, 55, 53, 0.14),
    inset 0 -90px 110px rgba(59, 60, 58, 0.12);
}

.gallery-progress {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(24, 25, 24, 0.58);
  transform: translateX(-50%);
  font-size: 8px;
  font-weight: 700;
}

.gallery-progress i {
  position: relative;
  width: 86px;
  height: 1px;
  overflow: hidden;
  background: rgba(24, 25, 24, 0.2);
}

.gallery-progress i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(24, 25, 24, 0.76);
  transform: translateX(calc(var(--gallery-progress, 0) * 100% - 100%));
}

body.motion-open {
  overflow: hidden;
}

.node-motion.is-source-hidden {
  opacity: 0;
  pointer-events: none;
}

.motion-transition {
  --motion-left: 0px;
  --motion-top: 0px;
  --motion-width: 120px;
  --motion-height: 120px;
  position: fixed;
  z-index: 95;
  inset: var(--header-h) 0 0;
  visibility: hidden;
  overflow: hidden;
  pointer-events: none;
}

.motion-transition.is-visible {
  visibility: visible;
}

.motion-transition-black {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: #020203;
  will-change: opacity;
  transition: opacity 440ms linear 360ms;
}

.motion-clapper {
  position: absolute;
  left: var(--motion-left);
  top: var(--motion-top);
  width: var(--motion-width);
  height: var(--motion-height);
  transform: translate3d(0, 0, 0);
  will-change: left, top, width, height;
  transition:
    left 1080ms cubic-bezier(0.38, 0, 0.12, 1),
    top 1080ms cubic-bezier(0.38, 0, 0.12, 1),
    width 1080ms cubic-bezier(0.38, 0, 0.12, 1),
    height 1080ms cubic-bezier(0.38, 0, 0.12, 1);
}

.motion-clapper-image {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.32));
  will-change: opacity;
  transition: opacity 260ms linear;
}

.motion-transition.is-entering .motion-transition-black {
  opacity: 1;
}

.motion-transition.is-entering .motion-clapper {
  left: calc(50% - 98.6vmax);
  top: calc(50% - 41.2vmax);
  width: 170vmax;
  height: 165vmax;
}

.motion-transition.is-entering.is-swept-left .motion-clapper {
  left: -172vmax;
  transition:
    left 460ms cubic-bezier(0.55, 0, 0.9, 0.55),
    top 460ms cubic-bezier(0.55, 0, 0.9, 0.55),
    width 460ms cubic-bezier(0.55, 0, 0.9, 0.55),
    height 460ms cubic-bezier(0.55, 0, 0.9, 0.55);
}

.motion-transition.is-entering.is-closing .motion-clapper {
  transition:
    left 460ms cubic-bezier(0.1, 0.7, 0.25, 1),
    top 460ms cubic-bezier(0.1, 0.7, 0.25, 1),
    width 460ms cubic-bezier(0.1, 0.7, 0.25, 1),
    height 460ms cubic-bezier(0.1, 0.7, 0.25, 1);
}

.motion-transition.is-revealing .motion-transition-black,
.motion-transition.is-revealing .motion-clapper-image {
  opacity: 0;
}

.motion-transition.is-revealing .motion-transition-black {
  transition-delay: 0ms;
}

.motion-transition.is-closing .motion-transition-black {
  transition-delay: 0ms;
}

.motion-transition.is-primed *,
.motion-transition.is-primed *::before,
.motion-transition.is-primed *::after {
  transition: none !important;
}

.motion-view {
  position: fixed;
  z-index: 80;
  inset: var(--header-h) 0 0;
  visibility: hidden;
  overflow: hidden;
  opacity: 0;
  color: #f3f1ea;
  background: #030304;
  pointer-events: none;
  transition: opacity 480ms linear;
}

.motion-view.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.motion-view.is-entering-cinema {
  opacity: 1;
  transition: none;
}

.motion-view.is-exit-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

.motion-view.is-exit-hidden {
  visibility: hidden !important;
  transition: none !important;
}

.motion-toolbar {
  position: absolute;
  z-index: 30;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 clamp(18px, 3vw, 48px);
  color: rgba(247, 244, 235, 0.7);
  background: rgba(3, 3, 4, 0.5);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  pointer-events: none;
}

.motion-toolbar > * {
  pointer-events: auto;
}

.motion-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-transform: uppercase;
  cursor: pointer;
}

.motion-back > span:first-child {
  font-size: 17px;
  transition: transform 220ms ease;
}

.motion-back:hover > span:first-child,
.motion-back:focus-visible > span:first-child {
  transform: translateX(-5px);
}

.cinema-room {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, #08080a 0 4.8%, transparent 9% 91%, #08080a 95.2%),
    linear-gradient(180deg, #151519, #070709 70%, #020203);
  perspective: 1200px;
}

.cinema-room::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0 8% auto;
  height: 8%;
  opacity: 0.72;
  background:
    radial-gradient(circle at 12% 42%, rgba(238, 228, 202, 0.7) 0 2px, transparent 3px),
    radial-gradient(circle at 37% 28%, rgba(238, 228, 202, 0.55) 0 2px, transparent 3px),
    radial-gradient(circle at 63% 28%, rgba(238, 228, 202, 0.55) 0 2px, transparent 3px),
    radial-gradient(circle at 88% 42%, rgba(238, 228, 202, 0.7) 0 2px, transparent 3px);
  filter: drop-shadow(0 0 8px rgba(238, 228, 202, 0.4));
}

.cinema-ceiling {
  position: absolute;
  z-index: 1;
  inset: 0 0 auto;
  height: 11%;
  background:
    repeating-linear-gradient(90deg, transparent 0 12%, rgba(255, 255, 255, 0.025) 12% calc(12% + 1px)),
    linear-gradient(180deg, #020203, #151519);
  clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
}

.cinema-wall {
  position: absolute;
  z-index: 2;
  top: 6%;
  bottom: 0;
  width: 11%;
  background:
    repeating-linear-gradient(0deg, transparent 0 15%, rgba(255, 255, 255, 0.025) 15% calc(15% + 1px)),
    #121217;
}

.cinema-wall-left {
  left: 0;
  clip-path: polygon(0 0, 100% 5%, 72% 100%, 0 100%);
  box-shadow: inset -18px 0 40px rgba(0, 0, 0, 0.58);
}

.cinema-wall-right {
  right: 0;
  clip-path: polygon(0 5%, 100% 0, 100% 100%, 28% 100%);
  box-shadow: inset 18px 0 40px rgba(0, 0, 0, 0.58);
}

.cinema-wall::after {
  content: "";
  position: absolute;
  top: 38%;
  width: 8px;
  height: 68px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #d8c38e;
  box-shadow:
    0 0 10px rgba(216, 195, 142, 0.46),
    0 0 34px rgba(216, 195, 142, 0.22);
}

.cinema-wall-left::after {
  left: 24%;
}

.cinema-wall-right::after {
  right: 24%;
}

.cinema-screen-shell {
  position: absolute;
  z-index: 4;
  inset: 7.5% 4.8% 8%;
  padding: clamp(8px, 0.75vw, 14px);
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: linear-gradient(145deg, #d7d9da, #a8acae 48%, #e0e1e1);
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.72),
    inset -3px -3px 0 rgba(42, 44, 46, 0.22),
    0 0 0 2px rgba(23, 24, 27, 0.72),
    0 0 70px rgba(188, 196, 201, 0.2),
    0 38px 100px rgba(0, 0, 0, 0.78);
  transform: translateZ(0);
}

.cinema-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #08080a;
  box-shadow:
    inset 0 0 28px rgba(255, 255, 255, 0.12),
    inset 0 0 1px 1px rgba(0, 0, 0, 0.78);
}

.motion-reel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  isolation: isolate;
  transition: opacity 900ms linear;
}

.motion-reel-slide.is-active {
  z-index: 2;
  opacity: 1;
}

.motion-reel-slide::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 2, 3, 0.62), transparent 58%),
    linear-gradient(0deg, rgba(2, 2, 3, 0.34), transparent 36%);
}

.motion-reel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.035);
  transition: transform 7s linear;
}

.motion-reel-slide.is-active img {
  transform: scale(1);
}

.motion-reel-copy {
  position: absolute;
  z-index: 3;
  left: clamp(24px, 5vw, 84px);
  top: 50%;
  display: grid;
  gap: 20px;
  transform: translateY(-50%);
}

.motion-reel-copy span {
  font-size: clamp(8px, 0.7vw, 11px);
  font-weight: 700;
  text-transform: uppercase;
}

.motion-reel-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 7.2vw, 126px);
  font-weight: 400;
  line-height: 0.86;
}

.motion-screen-grain {
  position: absolute;
  z-index: 8;
  inset: 0;
  opacity: 0.12;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.12) 4px),
    repeating-linear-gradient(90deg, transparent 0 5px, rgba(0, 0, 0, 0.15) 6px);
  mix-blend-mode: soft-light;
}

.motion-screen-controls {
  position: absolute;
  z-index: 12;
  right: clamp(18px, 2.4vw, 40px);
  bottom: clamp(16px, 2vw, 32px);
  left: clamp(18px, 2.4vw, 40px);
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 16px;
}

.motion-reel-toggle {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.52);
  color: #fff;
  background: rgba(4, 4, 5, 0.28);
  font-size: 10px;
  cursor: pointer;
}

.motion-reel-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.motion-reel-nav button {
  position: relative;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.motion-reel-nav button::before {
  content: "";
  position: absolute;
  inset: 8px 0 auto;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.motion-reel-nav button.is-active::before {
  height: 2px;
  background: #fff;
}

/* Project worlds added after the initial three portfolio sections. */
.project-toolbar {
  position: absolute;
  z-index: 40;
  inset: 0 0 auto;
  height: 48px;
  padding: 0 clamp(18px, 3vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(20, 22, 23, 0.16);
  background: rgba(235, 236, 234, 0.84);
  backdrop-filter: blur(18px);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.project-toolbar-dark {
  color: #f3f3ef;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(5, 5, 6, 0.68);
}

.project-toolbar button,
.commercial-back,
.making-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-transform: uppercase;
  cursor: pointer;
}

.commercial-transition,
.making-transition,
.coding-transition {
  position: fixed;
  z-index: 90;
  inset: var(--header-h) 0 0;
  visibility: hidden;
  overflow: hidden;
  pointer-events: none;
}

.commercial-transition.is-visible,
.making-transition.is-visible,
.coding-transition.is-visible {
  visibility: visible;
}

.commercial-black {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: #020203;
  transition: opacity 420ms linear;
}

.commercial-transition-icon {
  --commercial-x: 0px;
  --commercial-y: 0px;
  --commercial-scale: 0.15;
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: min(76vw, 980px);
  height: min(76vw, 980px);
  object-fit: contain;
  transform: translate(-50%, -50%) translate(var(--commercial-x), var(--commercial-y)) scale(var(--commercial-scale));
  filter: brightness(1);
  will-change: transform, filter, opacity;
  transition:
    transform 960ms cubic-bezier(0.22, 0.72, 0.12, 1),
    filter 900ms cubic-bezier(0.22, 0.72, 0.12, 1),
    opacity 260ms linear;
}

.commercial-transition.is-entering .commercial-transition-icon {
  transform: translate(-50%, -50%) scale(1.34);
  filter: brightness(0.035);
}

.commercial-transition.is-entering .commercial-black {
  opacity: 1;
  transition-delay: 520ms;
}

.commercial-transition.is-revealing .commercial-transition-icon,
.commercial-transition.is-revealing .commercial-black {
  opacity: 0;
}

.commercial-view,
.making-view,
.coding-view {
  position: fixed;
  z-index: 80;
  inset: var(--header-h) 0 0;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.commercial-view.is-active,
.making-view.is-active,
.coding-view.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.commercial-view {
  overflow: auto;
  color: #f5f4ef;
  background: #050506;
}

.commercial-grid {
  min-height: 100%;
  padding-top: 48px;
  display: grid;
  grid-template-columns: 1.02fr 1fr 1fr;
  grid-auto-rows: minmax(300px, 48vh);
  background: #050506;
}

.commercial-project {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border: 1px solid #050506;
}

.commercial-project-lead {
  grid-row: span 2;
}

.commercial-project-wide {
  grid-column: span 2;
}

.commercial-project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.05);
  transition: transform 900ms cubic-bezier(0.16, 0.72, 0.16, 1), filter 500ms ease;
}

.commercial-project::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), transparent 58%);
  pointer-events: none;
}

.commercial-project > div {
  position: absolute;
  z-index: 2;
  inset: auto clamp(22px, 3vw, 50px) clamp(22px, 4vh, 50px);
}

.commercial-project span,
.commercial-project p {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.commercial-project h2 {
  max-width: 9ch;
  margin: 10px 0 0;
  font-size: clamp(34px, 4.8vw, 78px);
  line-height: 0.9;
  letter-spacing: 0;
}

.commercial-project:hover img {
  transform: scale(1.035);
  filter: saturate(1.06) contrast(1.02);
}

.commercial-project-dark img {
  filter: brightness(0.58) saturate(0.7);
}

/* Motion selector sits on the left edge of the physical screen. */
.cinema-room > .motion-reel-nav {
  position: absolute;
  z-index: 18;
  left: calc(4.8% + clamp(13px, 1vw, 20px));
  top: 50%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  transform: translateY(-50%);
}

.cinema-room > .motion-reel-nav button {
  width: 30px;
  height: 32px;
  border: 0;
  color: rgba(255, 255, 255, 0.52);
  background: transparent;
  font: 700 10px/1 Arial, sans-serif;
}

.cinema-room > .motion-reel-nav button::before {
  inset: auto auto 5px 50%;
  width: 0;
  height: 1px;
  background: #fff;
  transform: translateX(-50%);
  transition: width 220ms ease;
}

.cinema-room > .motion-reel-nav button.is-active {
  color: #fff;
}

.cinema-room > .motion-reel-nav button.is-active::before {
  width: 18px;
}

.motion-reel-slide.is-film-switching {
  animation: film-tear 560ms steps(2, end);
}

.motion-reel-slide.is-film-switching img {
  animation: film-image-jump 560ms steps(3, end);
}

.cinema-screen.is-film-switching::after {
  content: "";
  position: absolute;
  z-index: 10;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0 21%, rgba(255, 255, 255, 0.18) 21% 22%, transparent 22% 56%, rgba(0, 0, 0, 0.68) 56% 60%, transparent 60%),
    repeating-linear-gradient(90deg, transparent 0 18%, rgba(255, 255, 255, 0.08) 18% 18.2%);
  animation: film-scan 560ms steps(4, end);
}

@keyframes film-tear {
  0% { clip-path: inset(0); transform: translateY(0); filter: brightness(1); }
  18% { clip-path: inset(9% 0 54%); transform: translateY(18px); filter: brightness(1.5); }
  38% { clip-path: inset(48% 0 15%); transform: translateY(-26px); filter: contrast(1.8); }
  62% { clip-path: inset(0 0 42%); transform: translateY(13px); }
  82% { clip-path: inset(34% 0 0); transform: translateY(-8px); }
  100% { clip-path: inset(0); transform: translateY(0); filter: none; }
}

@keyframes film-image-jump {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.04) translateY(-5%); }
  58% { transform: scale(1.02) translateY(4%); }
}

@keyframes film-scan {
  0% { transform: translateY(-12%); opacity: 0; }
  25%, 75% { opacity: 1; }
  100% { transform: translateY(12%); opacity: 0; }
}

/* The making section assembles as a printer around the viewport. */
.making-transition {
  z-index: 91;
  background: transparent;
}

.making-backplate {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(23, 25, 26, 0.25);
  background:
    linear-gradient(rgba(236, 237, 235, 0.92), rgba(199, 203, 203, 0.96)),
    url("assets/portraits-normalized/down.png") center/42% auto no-repeat;
  font: 700 10px/1 Arial, sans-serif;
  transform: translateY(-102%);
  transition: transform 760ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.printer-rail,
.machine-side {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(30px, 4vw, 64px);
  background: linear-gradient(90deg, #757a7c, #eceeed 34%, #73787a 72%, #2c2f31);
  box-shadow: 0 0 0 2px #4f5355, 12px 0 28px rgba(0, 0, 0, 0.24);
}

.printer-rail-left { left: 0; transform: translateX(-110%); }
.printer-rail-right { right: 0; transform: translateX(110%) scaleX(-1); }

.printer-head,
.machine-top {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 0;
  width: clamp(220px, 29vw, 470px);
  height: clamp(70px, 10vw, 150px);
  border-radius: 0 0 8px 8px;
  background: linear-gradient(150deg, #e9ebea, #777c7e 42%, #25282a);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -110%);
}

.printer-head::after,
.machine-top::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -22px;
  width: 22px;
  height: 30px;
  background: linear-gradient(90deg, #4f5355, #e7e9e8, #303335);
  clip-path: polygon(12% 0, 88% 0, 60% 100%, 40% 100%);
  transform: translateX(-50%);
}

.printer-bed,
.machine-bed {
  position: absolute;
  z-index: 3;
  left: 5%;
  right: 5%;
  bottom: 0;
  height: clamp(42px, 7vw, 94px);
  border-top: 2px solid rgba(255, 255, 255, 0.7);
  background: linear-gradient(180deg, #777b7c, #292c2e);
  box-shadow: 0 -16px 34px rgba(0, 0, 0, 0.18);
  transform: translateY(110%);
}

.making-transition.is-assembling .making-backplate { transform: translateY(0); }
.making-transition.is-assembling .printer-rail { transform: translateX(0); transition: transform 680ms 180ms cubic-bezier(0.18, 0.78, 0.16, 1); }
.making-transition.is-assembling .printer-rail-right { transform: translateX(0) scaleX(-1); }
.making-transition.is-assembling .printer-head { transform: translate(-50%, 0); transition: transform 720ms 260ms cubic-bezier(0.18, 0.78, 0.16, 1); }
.making-transition.is-assembling .printer-bed { transform: translateY(0); transition: transform 620ms 520ms cubic-bezier(0.18, 0.78, 0.16, 1); }

.making-view {
  overflow: hidden;
  color: #1c1f20;
  background: #d6d8d7;
}

.making-view::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.82), rgba(185, 189, 189, 0.7) 72%);
}

.making-machine {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
}

.machine-side-left { left: 0; }
.machine-side-right { right: 0; transform: scaleX(-1); }
.machine-top { transform: translate(-50%, 0); }
.machine-bed { transform: translateY(0); }

.model-field {
  position: absolute;
  z-index: 8;
  inset: 64px 7% 82px;
  perspective: 1200px;
}

.model-object {
  --model-x: 50%;
  --model-y: 50%;
  position: absolute;
  left: var(--model-x);
  top: var(--model-y);
  width: clamp(120px, 15vw, 230px);
  padding: 0;
  border: 0;
  color: #181a1b;
  background: transparent;
  opacity: 0;
  transform: translate(-50%, 80vh) rotate(var(--model-r, 0deg)) scale(0.72);
  cursor: pointer;
}

.making-view.is-models-live .model-object {
  opacity: 1;
  animation:
    model-toss 920ms var(--model-delay, 0ms) cubic-bezier(0.16, 0.76, 0.24, 1.22) both,
    model-float 4.8s calc(var(--model-delay, 0ms) + 920ms) ease-in-out infinite alternate;
}

.model-object-a { --model-x: 25%; --model-y: 35%; --model-r: -8deg; --model-delay: 0ms; }
.model-object-b { --model-x: 48%; --model-y: 62%; --model-r: 5deg; --model-delay: 100ms; }
.model-object-c { --model-x: 72%; --model-y: 32%; --model-r: -4deg; --model-delay: 180ms; }
.model-object-d { --model-x: 78%; --model-y: 70%; --model-r: 9deg; --model-delay: 260ms; }

.model-object img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 22px 15px rgba(0, 0, 0, 0.26));
  transition: transform 300ms ease;
}

.model-object span {
  display: block;
  margin-top: -8px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.model-object:hover img { transform: translateY(-8px) scale(1.04); }

@keyframes model-toss {
  0% { opacity: 0; transform: translate(-50%, 85vh) rotate(28deg) scale(0.58); }
  72% { opacity: 1; transform: translate(-50%, -12px) rotate(calc(var(--model-r) - 3deg)) scale(1.04); }
  100% { opacity: 1; transform: translate(-50%, 0) rotate(var(--model-r)) scale(1); }
}

@keyframes model-float {
  from { transform: translate(-50%, -5px) rotate(var(--model-r)); }
  to { transform: translate(-50%, 8px) rotate(calc(var(--model-r) + 2deg)); }
}

.model-dialog {
  z-index: 30;
  width: min(680px, 82vw);
  padding: 30px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 0;
  background: rgba(232, 234, 232, 0.94);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
}

.model-dialog::backdrop { background: rgba(16, 18, 19, 0.46); backdrop-filter: blur(8px); }
.model-dialog img { float: left; width: 48%; margin-right: 28px; }
.model-dialog h2 { margin: 8px 0 16px; font: 400 clamp(34px, 5vw, 70px)/0.9 Georgia, serif; }
.model-dialog p, .model-dialog span { font-size: 10px; line-height: 1.5; text-transform: uppercase; }
.model-dialog-close { position: absolute; right: 16px; top: 12px; border: 0; background: transparent; font-size: 26px; cursor: pointer; }

/* Coding fragments collapse into a functional Windows 98-inspired desktop. */
.coding-transition {
  color: #111;
  background: transparent;
}

.coding-transition::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: #d9dad8;
  transition: opacity 360ms linear;
}

.coding-transition.is-compiling::before { opacity: 1; }
.coding-transition.is-built::before { opacity: 0; }

.code-fragments {
  position: absolute;
  inset: 0;
  overflow: hidden;
  font: 700 clamp(8px, 0.8vw, 12px)/1.25 "Courier New", monospace;
}

.code-fragments span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  max-width: 28ch;
  opacity: 0;
  color: #0e1011;
  transform: translate(var(--dx), var(--dy)) rotate(var(--r));
  transition:
    transform 840ms var(--delay) cubic-bezier(0.16, 0.8, 0.18, 1),
    opacity 180ms var(--delay) linear;
}

.coding-transition.is-compiling .code-fragments span {
  opacity: 0.88;
  transform: translate(0, 0) rotate(0);
}

.code-build-label {
  position: absolute;
  left: 50%;
  bottom: 9%;
  opacity: 0;
  transform: translateX(-50%);
  font: 700 10px/1 "Courier New", monospace;
  transition: opacity 220ms 540ms linear;
}

.coding-transition.is-compiling .code-build-label { opacity: 1; }
.coding-transition.is-built { background: #008080; }
.coding-transition.is-built .code-fragments, .coding-transition.is-built .code-build-label { opacity: 0; transition: opacity 260ms linear; }

.coding-view {
  overflow: hidden;
  font-family: "MS Sans Serif", Tahoma, Arial, sans-serif;
  background: #008080;
}

.win98-desktop { position: absolute; inset: 0; background: #008080; }
.desktop-icon { position: absolute; left: 24px; top: 28px; width: 82px; padding: 0; border: 0; color: white; background: transparent; text-shadow: 1px 1px #000; cursor: default; }
.desktop-icon-second { top: 128px; }
.desktop-icon-glyph { display: grid; place-items: center; width: 48px; height: 42px; margin: 0 auto 5px; color: #111; background: #c0c0c0; border: 2px outset #fff; font: 700 13px/1 "Courier New", monospace; text-shadow: none; }
.desktop-icon small { font-size: 11px; }

.win98-window {
  position: absolute;
  z-index: 2;
  left: 14%;
  top: 8%;
  width: min(72vw, 1040px);
  height: min(72vh, 650px);
  padding: 3px;
  border: 2px outset #fff;
  background: #c0c0c0;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.3);
}

.win98-window.project-two { left: 35%; top: 22%; width: min(54vw, 760px); height: min(52vh, 470px); visibility: hidden; }
.win98-window.is-focused { z-index: 4; visibility: visible; }
.win98-window > header { height: 27px; padding: 3px 4px 3px 8px; display: flex; align-items: center; justify-content: space-between; color: #fff; background: #000080; font-size: 12px; font-weight: 700; }
.win98-window > header button { width: 22px; height: 19px; padding: 0; border: 2px outset #fff; background: #c0c0c0; font-weight: 700; line-height: 12px; }
.window-menu { height: 28px; padding: 7px 9px; font-size: 11px; color: #111; }
.code-editor { height: calc(100% - 55px); display: grid; grid-template-columns: 1fr 1.1fr; border: 2px inset #fff; background: #111; color: #d9dad8; }
.code-editor ol { margin: 0; padding: 28px 22px 20px 58px; font: 13px/2 "Courier New", monospace; }
.code-editor b { color: #9dd7ff; }.code-editor em { color: #f0d681; }
.program-preview { position: relative; display: grid; place-items: center; overflow: hidden; background: #e5e5e1; color: #101112; font: 700 11px/1 Arial, sans-serif; }
.program-preview i { position: absolute; width: 48%; aspect-ratio: 1; border: 1px solid #111; animation: preview-spin 9s linear infinite; }
.program-preview i::before, .program-preview i::after { content: ""; position: absolute; inset: 16%; border: 1px solid #111; transform: rotate(30deg); }.program-preview i::after { inset: 30%; transform: rotate(60deg); }
@keyframes preview-spin { to { transform: rotate(360deg); } }
.web-projects { height: calc(100% - 55px); padding: 22px; display: grid; align-content: start; gap: 8px; border: 2px inset #fff; background: #fff; }
.web-projects button { padding: 16px; border: 2px outset #fff; text-align: left; background: #c0c0c0; font: 700 12px/1 Arial, sans-serif; }

.win98-taskbar { position: absolute; z-index: 20; inset: auto 0 0; height: 36px; padding: 3px; display: flex; align-items: center; gap: 5px; border-top: 2px outset #fff; background: #c0c0c0; }
.win98-taskbar button { height: 28px; border: 2px outset #fff; background: #c0c0c0; }
.coding-back { width: 68px; font-size: 12px; }
.task-divider { width: 2px; height: 26px; border-left: 1px solid #777; border-right: 1px solid #fff; }
.task-program { min-width: 150px; text-align: left; font-size: 11px; }
.win98-taskbar time { margin-left: auto; padding: 7px 10px; border: 2px inset #fff; color: #111; font-size: 11px; }

.coding-toolbar {
  z-index: 50;
}

.coding-toolbar .coding-back {
  width: auto;
  font-size: 9px;
  white-space: nowrap;
}

.coding-view .win98-desktop {
  top: 48px;
}

.desktop-projects {
  position: absolute;
  left: 50%;
  top: 13%;
  width: min(880px, 82vw);
  display: grid;
  grid-template-columns: repeat(5, minmax(100px, 1fr));
  gap: clamp(20px, 3vw, 54px);
  transform: translateX(-50%);
}

.desktop-projects .desktop-icon {
  position: relative;
  left: auto;
  top: auto;
  width: 100%;
  min-height: 112px;
  padding: 8px 4px;
  cursor: pointer;
}

.desktop-projects .desktop-icon:hover,
.desktop-projects .desktop-icon:focus-visible {
  outline: 1px dotted #fff;
  background: rgba(0, 0, 128, 0.28);
}

.desktop-projects .desktop-icon-glyph {
  width: 58px;
  height: 52px;
  font-size: 12px;
}

.desktop-projects .desktop-icon small {
  display: block;
  max-width: 12ch;
  margin: 0 auto;
  line-height: 1.25;
}

.coding-project-window {
  position: absolute;
  z-index: 12;
  inset: 10px 10px 44px;
  padding: 3px;
  visibility: hidden;
  opacity: 0;
  border: 2px outset #fff;
  background: #c0c0c0;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.28);
  transform: scale(0.985);
  transform-origin: center;
  pointer-events: none;
  transition:
    opacity 180ms linear,
    transform 220ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.coding-project-window.is-open {
  visibility: visible;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.coding-project-window > header {
  height: 31px;
  padding: 3px 3px 3px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  background: #000080;
  font-size: 12px;
  font-weight: 700;
}

.coding-project-close {
  width: 25px;
  height: 23px;
  padding: 0;
  border: 2px outset #fff;
  color: #111;
  background: #c0c0c0;
  font-size: 19px;
  font-weight: 700;
  line-height: 15px;
  cursor: pointer;
}

.coding-project-content {
  position: relative;
  height: calc(100% - 59px);
  overflow: hidden;
  border: 2px inset #fff;
  color: #e9e9e4;
  background: #111;
}

.coding-project-copy {
  position: absolute;
  z-index: 4;
  left: clamp(24px, 5vw, 82px);
  bottom: clamp(28px, 7vh, 90px);
  max-width: 520px;
}

.coding-project-type {
  font: 700 10px/1 Arial, sans-serif;
  text-transform: uppercase;
}

.coding-project-copy h3 {
  margin: 14px 0;
  font: 400 clamp(52px, 8vw, 132px)/0.82 Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.coding-project-copy p {
  max-width: 48ch;
  margin: 0;
  font: 12px/1.55 "Courier New", monospace;
}

.coding-project-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), transparent 58%),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(255, 255, 255, 0.035) 32px),
    #17191a;
}

.coding-project-visual i {
  position: absolute;
  left: calc(52% + var(--px, 0%));
  top: calc(46% + var(--py, 0%));
  width: clamp(22px, 4vw, 66px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(220, 223, 220, 0.12);
  transform: rotate(var(--pr, 0deg));
  animation: project-pixel-float 3.8s ease-in-out infinite alternate;
  animation-delay: var(--pd, 0ms);
}

.coding-project-visual i:nth-child(1) { --px: -4%; --py: -30%; --pr: 12deg; --pd: -300ms; }
.coding-project-visual i:nth-child(2) { --px: 14%; --py: -18%; --pr: -8deg; --pd: -900ms; }
.coding-project-visual i:nth-child(3) { --px: 28%; --py: -35%; --pr: 24deg; --pd: -500ms; }
.coding-project-visual i:nth-child(4) { --px: 2%; --py: 2%; --pr: -18deg; --pd: -1200ms; }
.coding-project-visual i:nth-child(5) { --px: 22%; --py: 12%; --pr: 5deg; --pd: -700ms; }
.coding-project-visual i:nth-child(6) { --px: 38%; --py: -2%; --pr: -28deg; --pd: -1500ms; }
.coding-project-visual i:nth-child(7) { --px: 10%; --py: 30%; --pr: 17deg; --pd: -100ms; }
.coding-project-visual i:nth-child(8) { --px: 32%; --py: 34%; --pr: -10deg; --pd: -1050ms; }
.coding-project-visual i:nth-child(9) { --px: 44%; --py: 22%; --pr: 31deg; --pd: -600ms; }

.coding-project-content[data-project-theme="gallery"] .coding-project-visual {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.76), transparent 56%),
    repeating-linear-gradient(90deg, #e4e4df 0 12%, #b6b7b4 12.2% 12.5%, #eeeeea 12.7% 25%);
}

.coding-project-content[data-project-theme="motion"] .coding-project-visual {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.76), transparent 58%),
    repeating-linear-gradient(0deg, #111 0 12%, #e9e8e1 12.4% 13%, #242526 13.4% 25%);
}

.coding-project-content[data-project-theme="studio"] .coding-project-visual {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.8), transparent 58%),
    radial-gradient(circle at 72% 40%, #ecebe5 0 5%, #777b7c 18%, #1a1c1d 42%);
}

.coding-project-content[data-project-theme="image-lab"] .coding-project-visual {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), transparent 58%),
    repeating-linear-gradient(45deg, #131515 0 16px, #d9dad5 17px 18px, #777a78 19px 32px);
}

@keyframes project-pixel-float {
  from { translate: -7px -10px; }
  to { translate: 9px 12px; }
}

.task-status {
  min-width: 160px;
  padding: 7px 10px;
  border: 2px inset #fff;
  color: #111;
  font-size: 11px;
}

@media (max-width: 900px) {
  .commercial-grid { grid-template-columns: 1fr 1fr; }
  .commercial-project-lead { grid-row: span 1; }
  .commercial-project-wide { grid-column: span 1; }
  .motion-reel-copy { left: 58px; }
  .model-object { width: clamp(96px, 24vw, 170px); }
  .code-editor { grid-template-columns: 1fr; }
  .program-preview { display: none; }
  .desktop-projects {
    top: 9%;
    width: 78vw;
    grid-template-columns: repeat(3, minmax(90px, 1fr));
  }
}

@media (max-width: 580px) {
  .commercial-grid { display: block; }
  .commercial-project { min-height: 64vh; }
  .cinema-room > .motion-reel-nav { left: 16px; }
  .cinema-screen-shell { left: 8%; }
  .model-object-a { --model-x: 28%; --model-y: 30%; }
  .model-object-b { --model-x: 68%; --model-y: 45%; }
  .model-object-c { --model-x: 30%; --model-y: 67%; }
  .model-object-d { --model-x: 70%; --model-y: 76%; }
  .win98-window { left: 8%; top: 8%; width: 88vw; height: 68vh; }
  .win98-window.project-two { left: 12%; width: 82vw; }
  .desktop-projects {
    top: 5%;
    width: 84vw;
    grid-template-columns: repeat(2, minmax(100px, 1fr));
    gap: 12px 24px;
  }
  .desktop-projects .desktop-icon {
    min-height: 98px;
  }
  .coding-project-window {
    inset: 6px 6px 42px;
  }
  .coding-project-copy {
    left: 20px;
    right: 20px;
    bottom: 30px;
  }
  .coding-project-copy h3 {
    font-size: clamp(42px, 16vw, 70px);
  }
  .coding-project-visual i {
    left: calc(42% + var(--px, 0%));
  }
}

.motion-reel-count {
  font-size: 9px;
  font-weight: 700;
}

.cinema-aisle {
  position: absolute;
  z-index: 10;
  bottom: 2.5%;
  width: 22%;
  height: 2px;
  background: #d33b25;
  box-shadow: 0 0 12px rgba(211, 59, 37, 0.72);
}

.cinema-aisle-left {
  left: 3%;
  transform: rotate(-3deg);
}

.cinema-aisle-right {
  right: 3%;
  transform: rotate(3deg);
}

.cinema-seats {
  position: absolute;
  z-index: 14;
  right: 1.5%;
  bottom: -4%;
  left: 1.5%;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  align-items: end;
  gap: clamp(8px, 1vw, 18px);
  height: 15%;
  pointer-events: none;
}

.cinema-seats i {
  display: block;
  width: 100%;
  height: 88%;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 32% 32% 8% 8%;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025), transparent 18% 82%, rgba(255, 255, 255, 0.025)),
    linear-gradient(180deg, #16161b, #050506 74%);
  box-shadow:
    inset 0 8px 18px rgba(255, 255, 255, 0.018),
    0 -10px 28px rgba(0, 0, 0, 0.72);
}

@media (max-width: 900px) {
  :root {
    --header-h: 64px;
  }

  .site-header {
    padding: 0 20px;
  }

  .header-title {
    font-size: 9px;
  }

  .menu-toggle {
    position: relative;
    z-index: 2;
    width: 42px;
    height: 42px;
    display: grid;
    place-content: center;
    gap: 5px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .menu-toggle > span:not(.sr-only) {
    width: 23px;
    height: 1px;
    background: currentColor;
    transition: transform 220ms ease;
  }

  .menu-toggle[aria-expanded="true"] > span:first-child {
    transform: translateY(3px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] > span:nth-child(2) {
    transform: translateY(-3px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 26px;
    background: rgba(198, 202, 202, 0.92);
    backdrop-filter: blur(28px);
    clip-path: inset(0 0 100% 0);
    transition: clip-path 420ms cubic-bezier(0.7, 0, 0.2, 1);
  }

  .site-nav.is-open {
    clip-path: inset(0);
  }

  .site-nav a {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 9vw, 64px);
    font-weight: 400;
  }

  .hero-copy {
    inset-inline: 20px;
  }

  .hero-copy p:last-child,
  .hero::after {
    display: none;
  }

  .orbit {
    min-height: 740px;
  }

  .portrait-stage {
    width: min(64vw, 460px);
  }

  .work-node {
    width: clamp(104px, 22vw, 142px);
  }

  .work-node img {
    height: clamp(100px, 22vw, 140px);
  }

  .node-fashion {
    left: 3%;
    top: 13%;
  }

  .node-commercial {
    right: 2%;
    top: 15%;
  }

  .node-code {
    left: 1%;
    top: 50%;
  }

  .node-making {
    right: 1%;
    top: 51%;
  }

  .node-art {
    left: 7%;
    bottom: 5%;
  }

  .node-motion {
    right: 7%;
    bottom: 6%;
  }

  .fashion-opening {
    min-height: calc(100svh - var(--header-h));
  }

  .fashion-editorial {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fashion-shot-wide,
  .fashion-story-copy,
  .fashion-shot-tall,
  .fashion-shot-square {
    grid-column: 1 / -1;
  }

  .fashion-story-copy {
    padding: 8vh 0;
  }

  .fashion-shot-tall {
    width: 72%;
    margin: 6vh 0 0 auto;
  }

  .fashion-shot-square {
    width: 72%;
  }

  .fine-art-view {
    --gallery-scale: 1.3;
  }

  .fine-art-toolbar > span {
    display: none;
  }

  .fine-art-stage {
    perspective: 1180px;
  }

  .scroll-cue {
    left: 20px;
  }

  .about {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 42px;
    padding: 90px 24px;
  }

  .about-heading h2 {
    font-size: clamp(76px, 20vw, 130px);
  }

  .about-body {
    align-self: auto;
  }
}

@media (max-width: 580px) {
  .brand {
    font-size: 18px;
  }

  .header-title {
    font-size: 8px;
  }

  .fashion-view-toolbar {
    height: 48px;
  }

  .fashion-view-toolbar > span {
    display: none;
  }

  .fashion-opening {
    min-height: calc(100svh - var(--header-h));
  }

  .fashion-opening-title h2 {
    font-size: clamp(62px, 20vw, 94px);
  }

  .fashion-opening-title {
    left: 18px;
  }

  .fine-art-view {
    --gallery-scale: 1.45;
  }

  .fine-art-toolbar {
    height: 48px;
  }

  .fine-art-stage {
    perspective: 980px;
  }

  .fashion-index {
    margin-inline: 18px;
  }

  .fashion-index span:last-child {
    text-align: right;
  }

  .fashion-editorial {
    gap: 46px;
    padding: 70px 18px 100px;
  }

  .fashion-shot-tall,
  .fashion-shot-square {
    width: 88%;
  }

  .fashion-view-footer {
    min-height: 150px;
    align-items: flex-start;
    flex-direction: column;
    gap: 36px;
    padding-inline: 18px;
  }

  .hero {
    min-height: 900px;
  }

  .orbit {
    height: 836px;
    min-height: 0;
  }

  .portrait-stage {
    top: 44%;
    width: min(75vw, 400px);
  }

  .work-node {
    width: 108px;
  }

  .work-node img {
    height: 106px;
  }

  .work-node > span:last-child {
    font-size: 8px;
  }

  .node-fashion {
    top: 8%;
  }

  .node-commercial {
    top: 10%;
  }

  .node-code {
    top: 61%;
  }

  .node-making {
    top: 62%;
  }

  .node-art {
    left: 9%;
    bottom: 2%;
  }

  .node-motion {
    right: 8%;
    bottom: 2%;
  }

  .scroll-cue {
    bottom: 18px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 34px;
  }
}

@media (max-width: 900px) {
  .cinema-screen-shell {
    inset: 7% 2.5% 14%;
  }

  .motion-toolbar {
    height: 44px;
  }

  .motion-reel-copy {
    left: 28px;
    gap: 12px;
  }

  .motion-reel-copy strong {
    font-size: clamp(42px, 10vw, 76px);
  }
}

@media (max-width: 580px) {
  .motion-toolbar > span {
    display: none;
  }

  .cinema-screen-shell {
    inset: 9% 2.5% 18%;
  }

  .motion-reel-slide::after {
    background:
      linear-gradient(90deg, rgba(2, 2, 3, 0.54), transparent 82%),
      linear-gradient(0deg, rgba(2, 2, 3, 0.48), transparent 46%);
  }

  .motion-reel-copy {
    top: 44%;
  }

  .motion-reel-copy strong {
    font-size: clamp(38px, 15vw, 62px);
  }

  .motion-screen-controls {
    grid-template-columns: 30px 1fr auto;
    gap: 10px;
  }

  .motion-reel-toggle {
    width: 30px;
    height: 30px;
  }

  .cinema-seats {
    grid-template-columns: repeat(6, 1fr);
    height: 18%;
  }

  .cinema-seats i:nth-child(n + 7) {
    display: none;
  }
}

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

/* Final transition timing pass: every world swaps only under a full cover. */
.art-transition-portal,
.art-transition-icon,
.art-transition-depth {
  display: none !important;
}

.art-transition-wash {
  opacity: 0;
  background: #fff;
  transition: none;
}

.art-transition.is-flashing .art-transition-wash {
  opacity: 1;
  transition: opacity 90ms cubic-bezier(0.1, 0.82, 0.16, 1);
}

.art-transition.is-flashing.is-flash-releasing .art-transition-wash {
  opacity: 0;
  transition: opacity 180ms ease-out;
}

.fine-art-view.is-entering-gallery .gallery-world,
.fine-art-view.is-leaving-gallery .gallery-world {
  animation: none !important;
}

.fine-art-view {
  transition: none;
}

.motion-transition-black {
  transition: opacity 440ms linear 360ms;
}

.motion-clapper {
  transition:
    left 1080ms cubic-bezier(0.38, 0, 0.12, 1),
    top 1080ms cubic-bezier(0.38, 0, 0.12, 1),
    width 1080ms cubic-bezier(0.38, 0, 0.12, 1),
    height 1080ms cubic-bezier(0.38, 0, 0.12, 1);
}

.motion-transition.is-entering .motion-clapper {
  left: calc(50% - 98.6vmax);
  top: calc(50% - 41.2vmax);
  width: 170vmax;
  height: 165vmax;
  transition:
    left 1080ms cubic-bezier(0.38, 0, 0.12, 1),
    top 1080ms cubic-bezier(0.38, 0, 0.12, 1),
    width 1080ms cubic-bezier(0.38, 0, 0.12, 1),
    height 1080ms cubic-bezier(0.38, 0, 0.12, 1);
}

.motion-transition.is-entering.is-swept-left .motion-clapper {
  left: -172vmax;
  transition:
    left 460ms cubic-bezier(0.55, 0, 0.9, 0.55),
    top 460ms cubic-bezier(0.55, 0, 0.9, 0.55),
    width 460ms cubic-bezier(0.55, 0, 0.9, 0.55),
    height 460ms cubic-bezier(0.55, 0, 0.9, 0.55);
}

.motion-transition.is-entering.is-closing .motion-clapper {
  transition:
    left 460ms cubic-bezier(0.1, 0.7, 0.25, 1),
    top 460ms cubic-bezier(0.1, 0.7, 0.25, 1),
    width 460ms cubic-bezier(0.1, 0.7, 0.25, 1),
    height 460ms cubic-bezier(0.1, 0.7, 0.25, 1);
}

.motion-transition.is-revealing .motion-transition-black,
.motion-transition.is-closing .motion-transition-black {
  transition: opacity 260ms linear;
}

.commercial-transition-icon {
  display: none !important;
}

.commercial-black {
  opacity: 0;
  transition: opacity 460ms cubic-bezier(0.28, 0, 0.18, 1);
}

.commercial-transition.is-entering .commercial-black {
  opacity: 1;
  transition-delay: 0ms;
}

.commercial-transition.is-revealing .commercial-black {
  opacity: 0;
  transition: opacity 340ms ease-out;
}

.making-transition {
  display: none !important;
}

.making-backplate {
  background: #cfd1d1 !important;
}

.making-view {
  visibility: hidden;
  opacity: 1;
  background: transparent;
  clip-path: none;
  transition: none;
}

.making-view::before {
  z-index: 0;
  opacity: 1;
  background:
    linear-gradient(115deg, rgba(241, 242, 240, 0.96), rgba(185, 189, 189, 0.98) 48%, rgba(220, 222, 221, 0.98));
  transform: translateY(-102%);
  transition: transform 640ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.making-view.is-active {
  visibility: visible;
  opacity: 1;
  clip-path: none;
}

.making-view.is-active.is-assembled::before {
  transform: translateY(0);
}

.making-view.is-exiting {
  clip-path: none;
  pointer-events: none;
}

.making-view .machine-side {
  transition: transform 520ms cubic-bezier(0.18, 0.78, 0.16, 1);
}

.making-view .machine-side-left {
  transform: translateX(-112%);
}

.making-view .machine-side-right {
  transform: translateX(112%) scaleX(-1);
}

.making-view .machine-top {
  transform: translate(-50%, -112%);
  transition: transform 540ms cubic-bezier(0.18, 0.78, 0.16, 1);
}

.making-view .machine-bed {
  transform: translateY(112%);
  transition: transform 500ms cubic-bezier(0.18, 0.78, 0.16, 1);
}

.making-view.is-assembled .machine-side-left {
  transform: translateX(0);
}

.making-view.is-assembled .machine-side-right {
  transform: translateX(0) scaleX(-1);
}

.making-view.is-assembled .machine-top {
  transform: translate(-50%, 0);
}

.making-view.is-assembled .machine-bed {
  transform: translateY(0);
}

.making-view.is-models-live .model-object {
  animation:
    model-toss-fast 500ms var(--model-delay-fast, 0ms) cubic-bezier(0.16, 0.76, 0.24, 1.18) both,
    model-float 4.8s calc(var(--model-delay-fast, 0ms) + 500ms) ease-in-out infinite alternate;
}

.model-object-a { --model-delay-fast: 0ms; }
.model-object-b { --model-delay-fast: 22ms; }
.model-object-c { --model-delay-fast: 44ms; }
.model-object-d { --model-delay-fast: 66ms; }

.making-view.is-exiting .model-object {
  animation: model-drop-fast 440ms var(--model-delay-fast, 0ms) cubic-bezier(0.55, 0, 0.86, 0.36) both !important;
}

@keyframes model-toss-fast {
  0% {
    opacity: 0;
    transform: translate(-50%, 85vh) rotate(24deg) scale(0.64);
  }
  72% {
    opacity: 1;
    transform: translate(-50%, -10px) rotate(calc(var(--model-r) - 3deg)) scale(1.035);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0) rotate(var(--model-r)) scale(1);
  }
}

@keyframes model-drop-fast {
  0% {
    opacity: 1;
    transform: translate(-50%, 0) rotate(var(--model-r)) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 85vh) rotate(24deg) scale(0.64);
  }
}

.coding-transition::after {
  content: "";
  position: absolute;
  z-index: 20;
  inset: 0;
  opacity: 0;
  background: #008080;
  pointer-events: none;
}

.coding-transition.is-exit-cover::after {
  opacity: 1;
}

.coding-transition.is-exit-shell {
  background: #008080;
}

@media (prefers-reduced-motion: reduce) {
  .art-transition-wash,
  .motion-transition-black,
  .motion-clapper,
  .commercial-black,
  .making-view,
  .making-view .machine-side,
  .making-view .machine-top,
  .making-view .machine-bed {
    transition-duration: 0.01ms !important;
  }
}
