:root {
  color-scheme: dark;
  --canvas: #000;
  --ink: #fff;
  --muted: #b8b8b8;
  --subtle: #777;
  --line: rgba(255, 255, 255, .22);
  --panel: #6d6d6d;
  --focus: #0099ff;
  --page-x: clamp(18px, 3vw, 54px);
  --section-y: clamp(72px, 10vw, 156px);
  --pointer-x: 50vw;
  --pointer-y: 50vh;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--canvas);
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  overflow-x: hidden;
  background: transparent;
  color: var(--ink);
  font-family: Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.scroll-video-background {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    url("./videos/portfolio-bg-poster.jpg") 50% 42% / cover no-repeat,
    #000;
  pointer-events: none;
}

.scroll-video-background video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: 50% 42%;
  opacity: 0;
  transform: translateZ(0) scale(1.015);
  transition: opacity .7s ease;
}

.scroll-video-background.is-ready:not(.is-static) video {
  opacity: 1;
}

.scroll-video-background.is-error video {
  display: none;
}

.scroll-video-mask {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, .85);
  pointer-events: none;
}

.site-header,
main,
.contact {
  position: relative;
  z-index: 0;
}

body::before {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 8;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .05), transparent 68%);
  content: "";
  pointer-events: none;
  transform: translate3d(calc(var(--pointer-x) - 50%), calc(var(--pointer-y) - 50%), 0);
}

img,
video {
  display: block;
  width: 100%;
  height: auto;
}

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

a:focus-visible,
video:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
p,
figure,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 120;
  padding: 10px 14px;
  background: #fff;
  color: #000;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell {
  width: min(100%, 1680px);
  margin-inline: auto;
  padding: var(--section-y) var(--page-x);
}

.site-header {
  width: 100%;
  padding: clamp(28px, 6vw, 104px) var(--page-x) 0;
}

.primary-nav,
.section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(18px, 2.6vw, 48px);
  background: var(--panel);
}

.primary-nav a {
  width: 33.333%;
  font-size: clamp(17px, 2.1vw, 40px);
  font-weight: 700;
}

.primary-nav a:nth-child(2) {
  text-align: center;
}

.primary-nav a:last-child {
  text-align: right;
}

.primary-nav {
  background: #fff;
  color: #000;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(70px, 8vw, 128px);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.color-bends-bg {
  position: absolute;
  inset: 0 calc(var(--page-x) * -1);
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 62% 28%, rgba(50, 82, 255, .08), transparent 36%),
    #000;
  opacity: .72;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
}

.color-bends-bg::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .32), transparent 42%, rgba(0, 0, 0, .12)),
    linear-gradient(to bottom, rgba(0, 0, 0, .18), transparent 42%, rgba(0, 0, 0, .58));
  content: "";
}

.color-bends-bg canvas {
  display: block;
  width: 100%;
  height: 100%;
  filter: saturate(.82) contrast(1.08);
}

.hero h1 {
  position: relative;
  font-size: clamp(72px, 17vw, 290px);
  font-family: "Sora", Arial, sans-serif;
  font-weight: 700;
  line-height: .78;
  letter-spacing: -.075em;
  white-space: nowrap;
}

.hero-title .title-letter {
  display: inline-block;
  opacity: 0;
  clip-path: inset(100% -.08em -.16em);
  transform: translate3d(0, .2em, 0);
  will-change: transform, opacity, clip-path;
}

.hero.is-visible .hero-title .title-letter {
  animation: title-letter-in 1.05s var(--ease) forwards;
  animation-delay: calc(120ms + var(--letter-index) * 48ms);
}

.hero-title::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      transparent 30%,
      rgba(255, 255, 255, .08) 42%,
      rgba(255, 255, 255, .62) 50%,
      rgba(255, 255, 255, .08) 58%,
      transparent 70%
    );
  background-position: 160% 0;
  background-size: 240% 100%;
  background-clip: text;
  color: transparent;
  content: attr(data-title);
  opacity: 0;
  pointer-events: none;
  -webkit-background-clip: text;
}

.hero-title:hover::after {
  animation: title-sheen 1.15s var(--ease) 1;
}

@keyframes title-letter-in {
  0% {
    opacity: 0;
    clip-path: inset(100% -.08em -.16em);
    transform: translate3d(0, .2em, 0);
  }

  68% {
    opacity: 1;
    clip-path: inset(-.16em -.08em);
    transform: translate3d(0, -.014em, 0);
  }

  100% {
    opacity: 1;
    clip-path: inset(-.16em -.08em);
    transform: none;
  }
}

@keyframes title-sheen {
  0% {
    background-position: 160% 0;
    opacity: 0;
  }

  20% {
    opacity: .52;
  }

  75% {
    opacity: .38;
  }

  100% {
    background-position: -60% 0;
    opacity: 0;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .74fr);
  gap: clamp(36px, 8vw, 150px);
  align-items: end;
  margin-top: clamp(80px, 10vw, 170px);
}

.hero-copy {
  display: grid;
  gap: clamp(56px, 9vw, 140px);
}

.lead {
  max-width: 25ch;
  font-size: clamp(22px, 2.25vw, 44px);
  font-weight: 300;
  line-height: 1.34;
}

.capability-line {
  max-width: 34ch;
  font-size: clamp(18px, 2vw, 40px);
  line-height: 1.3;
}

.media-frame {
  --image-x: 0px;
  --image-y: 0px;
  --frame-pointer-x: 50%;
  --frame-pointer-y: 50%;
  position: relative;
  overflow: hidden;
  background: #080808;
}

.media-frame::after {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--frame-pointer-x) var(--frame-pointer-y), rgba(255,255,255,.08), transparent 25%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

.media-frame > img {
  transform: translate3d(var(--image-x), var(--image-y), 0) scale(1.002);
  transition: transform .6s var(--ease), filter .6s ease;
}

.media-frame.is-interactive::after {
  opacity: 1;
}

.media-frame.is-interactive > img {
  filter: brightness(1.02) contrast(1.01);
  transform: translate3d(var(--image-x), var(--image-y), 0) scale(1.012);
}

.hero-media img,
.hero-media video {
  aspect-ratio: 1.34;
  object-fit: cover;
}

.hero-media video {
  height: 100%;
  max-height: none;
}

.section-bar {
  min-height: 78px;
  margin-bottom: clamp(64px, 8vw, 130px);
  background: #fff;
  color: #000;
  font-size: clamp(16px, 2vw, 38px);
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(300px, .72fr) 1.3fr;
  gap: clamp(50px, 9vw, 160px);
}

.portrait {
  align-self: start;
  max-width: 620px;
}

.profile-content {
  padding-top: clamp(80px, 10vw, 180px);
}

.profile-content h2 {
  margin-bottom: clamp(48px, 6vw, 88px);
  font-size: clamp(32px, 3.2vw, 58px);
  font-weight: 400;
}

.experience-list {
  display: grid;
  gap: clamp(32px, 4vw, 58px);
}

.experience-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
}

.experience-row h3,
.experience-row p {
  font-size: clamp(19px, 2.1vw, 38px);
  font-weight: 300;
  line-height: 1.18;
}

.experience-row time {
  padding-top: 8px;
  font-size: clamp(15px, 1.55vw, 29px);
  white-space: nowrap;
}

.skill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: clamp(80px, 10vw, 160px);
}

.skill-grid ul {
  list-style: square inside;
  font-size: clamp(16px, 1.65vw, 30px);
  line-height: 1.38;
}

.center-heading {
  padding: 20px 0 clamp(70px, 9vw, 140px);
  text-align: center;
}

.eyebrow,
.project-kicker {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.center-heading h2 {
  font-size: clamp(56px, 9vw, 150px);
  line-height: .9;
}

.project-list {
  display: grid;
  gap: clamp(90px, 13vw, 200px);
}

.project-card {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(38px, 7vw, 120px);
  align-items: center;
}

.project-card-reverse .project-thumb {
  order: 2;
}

.project-card-reverse .project-card-copy {
  text-align: right;
}

.project-thumb {
  aspect-ratio: .72;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-thumb-live img {
  object-position: 50% 50%;
}

.project-thumb-film img {
  object-fit: cover;
  object-position: center;
}

.project-thumb-film {
  aspect-ratio: 16 / 9;
}

.project-thumb-lab img {
  object-position: center;
}

.project-card-copy {
  display: grid;
  gap: 22px;
}

.project-card-copy > span {
  font-size: clamp(18px, 2vw, 34px);
}

.project-card-copy h3 {
  font-size: clamp(32px, 4.3vw, 74px);
  line-height: 1;
}

.project-card-copy p {
  max-width: 30ch;
  font-size: clamp(18px, 2vw, 34px);
  font-weight: 300;
  line-height: 1.35;
}

.project-card-reverse p {
  margin-left: auto;
}

.project-card-copy small {
  color: var(--muted);
  font-size: clamp(14px, 1.5vw, 25px);
}

.project {
  border-top: 1px solid var(--line);
}

.project-hero,
.project-title-panel {
  text-align: center;
}

.project-hero h2,
.project-title-panel h2 {
  max-width: 14ch;
  margin-inline: auto;
  font-size: clamp(52px, 8.7vw, 144px);
  line-height: .98;
  letter-spacing: -.045em;
}

.project-hero > p:not(.project-kicker),
.project-title-panel > p:not(.project-kicker) {
  max-width: 48ch;
  margin: 34px auto clamp(65px, 8vw, 130px);
  color: var(--muted);
  font-size: clamp(18px, 2vw, 33px);
  line-height: 1.45;
}

.wide-visual {
  width: min(100%, 1400px);
  margin-inline: auto;
}

.live-gallery-shell {
  position: relative;
  height: clamp(430px, 44vw, 650px);
  overflow: hidden;
  border: 0;
  background: transparent;
  text-align: left;
}

.live-gallery {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 9%,
    #000 91%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 9%,
    #000 91%,
    transparent 100%
  );
}

.live-gallery.is-dragging {
  cursor: grabbing;
}

.linear-gallery-track {
  display: flex;
  width: max-content;
  height: 100%;
  padding-block: clamp(48px, 5vw, 76px);
  will-change: transform;
}

.linear-gallery-group {
  display: flex;
  flex: none;
  gap: clamp(14px, 1.4vw, 24px);
  padding-right: clamp(14px, 1.4vw, 24px);
}

.linear-gallery-card {
  flex: none;
  width: clamp(210px, 20vw, 320px);
  height: 100%;
  overflow: hidden;
  background: #0a0a0a;
}

.linear-gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.live-gallery:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
}

.live-gallery-hint {
  position: absolute;
  right: clamp(18px, 2.5vw, 42px);
  bottom: clamp(16px, 2vw, 32px);
  left: clamp(18px, 2.5vw, 42px);
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, .58);
  font-size: clamp(10px, .9vw, 14px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .12em;
  pointer-events: none;
}

.content-section,
.value-section,
.film-showcase {
  border-top: 1px solid var(--line);
}

.giant-label {
  margin-bottom: clamp(45px, 6vw, 92px);
  font-size: clamp(90px, 17vw, 280px);
  font-weight: 600;
  line-height: .74;
  letter-spacing: -.065em;
}

.copy-grid {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: clamp(48px, 8vw, 130px);
  align-items: start;
}

.copy-grid h3,
.section-intro h3,
.value-section h3 {
  font-size: clamp(34px, 4.6vw, 78px);
  line-height: 1.02;
}

.copy-grid p,
.section-intro p,
.value-section > p {
  margin-top: 26px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 32px);
  font-weight: 300;
  line-height: 1.42;
}

.copy-grid + .wide-visual {
  margin-top: clamp(60px, 8vw, 130px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.live-what-section {
  overflow: hidden;
  background: none !important;
  background-color: transparent !important;
  box-shadow: none;
  backdrop-filter: none;
}

.live-what-section::before,
.live-what-section::after {
  content: none;
  background: none;
}

.live-what-section .giant-label {
  margin-bottom: clamp(38px, 4vw, 64px);
}

.what-summary {
  max-width: 67ch;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 32px);
  font-weight: 300;
  line-height: 1.42;
}

.what-system-layout {
  display: flex;
  flex-direction: column;
  margin-top: clamp(72px, 9vw, 144px);
}

.what-system-panel {
  width: min(75%, 1200px);
  margin: 0;
  overflow: hidden;
  background: transparent;
}

.what-system-panel img {
  width: 100%;
  height: auto;
  mix-blend-mode: screen;
}

.what-system-host {
  align-self: flex-end;
}

.what-system-product {
  align-self: flex-start;
  width: min(72%, 1150px);
  margin-top: clamp(24px, 3vw, 52px);
}

.what-system-scene {
  align-self: flex-end;
  width: min(78%, 1250px);
  margin-top: clamp(34px, 5vw, 78px);
}

.overlap-media {
  position: relative;
  min-height: clamp(420px, 52vw, 850px);
}

.overlap-media img {
  position: absolute;
  width: 78%;
  border-radius: 8px;
}

.overlap-media img:first-child {
  left: 0;
  bottom: 0;
}

.section-intro {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
  margin-bottom: clamp(56px, 8vw, 120px);
}

.section-intro p {
  margin-top: 0;
}

.process-stack {
  display: grid;
  gap: clamp(110px, 15vw, 230px);
}

.process-step {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: clamp(42px, 8vw, 130px);
  align-items: start;
}

.process-step-reverse .step-copy {
  order: 2;
}

.process-step-featured {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 82px);
}

.process-step-featured > .media-frame {
  width: 108%;
}

.direction-visual {
  background: transparent;
}

.direction-visual img {
  mix-blend-mode: screen;
}

.process-step-copy-only {
  grid-template-columns: minmax(0, 1fr);
  min-height: clamp(620px, 50vw, 760px);
  padding-block: clamp(10px, 1vw, 20px);
}

.process-step-copy-only .step-copy {
  position: relative;
  top: auto;
  width: 100%;
}

.prompt-heading {
  display: flex;
  align-items: baseline;
  gap: clamp(22px, 3vw, 52px);
}

.prompt-heading > span,
.prompt-heading h4 {
  margin: 0;
  font-size: clamp(58px, 7.5vw, 116px);
  font-weight: 600;
  line-height: .96;
  letter-spacing: -.045em;
}

.prompt-heading h4 span {
  margin-right: .08em;
  font-weight: inherit;
}

.process-step-copy-only .step-copy > p {
  max-width: none;
  margin-top: clamp(28px, 3vw, 46px);
  font-size: clamp(20px, 2.2vw, 34px);
}

.process-step-copy-only .keyword-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(54px, 6vw, 96px) clamp(34px, 5vw, 74px);
  margin-top: clamp(92px, 10vw, 150px);
}

.process-step-copy-only .keyword-grid span {
  display: grid;
  min-height: clamp(82px, 7vw, 112px);
  padding: 12px 24px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #d7d7d7;
  color: #050505;
  font-size: clamp(28px, 3.2vw, 52px);
  font-weight: 700;
  line-height: 1;
}

.process-step-copy-only .keyword-grid span:nth-child(4) {
  grid-column: 1;
}

.step-copy {
  position: sticky;
  top: 70px;
}

.step-copy > span {
  display: block;
  margin-bottom: 18px;
  font-size: clamp(38px, 6vw, 100px);
  font-weight: 600;
}

.step-copy h4 {
  font-size: clamp(30px, 3.8vw, 62px);
}

.step-copy p {
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 29px);
  line-height: 1.45;
}

.keyword-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 42px;
}

.keyword-grid span {
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: clamp(14px, 1.4vw, 22px);
}

.result-composition {
  position: relative;
  width: 100%;
  aspect-ratio: 832 / 886;
  overflow: hidden;
  background: transparent;
}

.result-image {
  position: absolute;
  margin: 0;
  overflow: hidden;
  background: transparent;
}

.result-image img {
  width: 100%;
  height: auto;
}

.result-image-background {
  top: 0;
  left: 0;
  width: 49.28%;
}

.result-image-preview {
  top: 17.38%;
  right: 0;
  width: 41.59%;
}

.value-section h3 {
  max-width: 21ch;
  margin-bottom: clamp(60px, 8vw, 120px);
}

.value-list {
  list-style: none;
}

.value-list li {
  display: grid;
  grid-template-columns: minmax(80px, .4fr) 1.6fr;
  gap: 28px;
  padding: clamp(24px, 3vw, 50px) 24px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(20px, 2.6vw, 44px);
  line-height: 1.2;
}

.value-list span {
  font-weight: 700;
}

.project-title-panel {
  min-height: 70svh;
}

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

.gallery-grid .media-frame:last-child {
  grid-column: 1 / -1;
}

.gallery-tall img {
  height: 100%;
  object-fit: cover;
}

.video-list {
  display: grid;
  gap: clamp(80px, 12vw, 180px);
}

.video-list article {
  display: grid;
  grid-template-columns: .55fr 1.45fr;
  gap: clamp(36px, 7vw, 110px);
  align-items: start;
}

.video-copy {
  position: sticky;
  top: 70px;
}

.video-copy h4 {
  font-size: clamp(30px, 4vw, 66px);
}

.video-copy p {
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 28px);
  line-height: 1.45;
}

video {
  max-height: 78svh;
  background: #080808;
  object-fit: contain;
}

.commerce-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin-bottom: clamp(60px, 8vw, 120px);
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}

.commerce-steps li {
  min-height: 230px;
  padding: clamp(20px, 2vw, 34px);
  background: #050505;
}

.commerce-steps span {
  display: block;
  margin-bottom: 34px;
  color: #ae76e8;
  font-size: clamp(24px, 2.5vw, 42px);
  font-weight: 700;
}

.commerce-steps strong {
  font-size: clamp(18px, 1.8vw, 28px);
}

.commerce-steps p {
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(14px, 1.2vw, 20px);
  line-height: 1.4;
}

.contact {
  min-height: 100svh;
  border-top: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(50px, 8vw, 130px);
}

.contact-grid h2 {
  grid-column: 1 / -1;
  text-align: center;
  font-size: clamp(48px, 7vw, 110px);
  font-weight: 400;
}

.contact-grid p,
.contact-grid address {
  font-size: clamp(18px, 2vw, 32px);
  font-style: normal;
  line-height: 1.5;
}

.contact-grid address {
  display: grid;
  gap: 18px;
  margin-top: 45px;
}

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

.floating-nav {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 30;
  display: flex;
  border: 1px solid rgba(255, 255, 255, .4);
  background: rgba(0, 0, 0, .88);
}

.floating-nav a {
  --magnetic-x: 0px;
  --magnetic-y: 0px;
  min-width: 58px;
  padding: 10px 12px;
  border-right: 1px solid var(--line);
  font-size: 11px;
  text-align: center;
  text-transform: uppercase;
  transform: translate3d(var(--magnetic-x), var(--magnetic-y), 0);
  transition: color .2s, background-color .2s, transform .35s var(--ease);
}

.floating-nav a:last-child {
  border: 0;
}

.floating-nav a:hover,
.floating-nav a.is-active {
  background: #fff;
  color: #000;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 2px;
  background: #fff;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left;
}

@supports (animation-timeline: scroll()) {
  .scroll-progress {
    animation: page-progress linear both;
    animation-timeline: scroll(root);
  }
}

@keyframes page-progress {
  to { transform: scaleX(1); }
}

.click-ripple {
  position: fixed;
  z-index: 110;
  width: 12px;
  height: 12px;
  border: 1px solid #fff;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.2);
  animation: click-ripple .6s var(--ease) forwards;
}

@keyframes click-ripple {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(5);
  }
}

.reveal {
  position: relative;
}

.motion-item {
  --motion-delay: 0ms;
  transition-delay: var(--motion-delay);
  will-change: transform, opacity, filter;
}

.motion-mask {
  opacity: 0;
  filter: blur(3px);
  transform: translate3d(0, 10px, 0);
  transition:
    opacity .72s ease-out var(--motion-delay),
    filter .82s var(--ease) var(--motion-delay),
    transform .82s var(--ease) var(--motion-delay);
}

.motion-mask.is-visible {
  opacity: 1;
  filter: none;
  transform: none;
}

.motion-bar {
  opacity: 0;
  filter: brightness(.72);
  transform: translate3d(0, 7px, 0) scaleX(.992);
  transition:
    opacity .65s ease-out var(--motion-delay),
    filter .8s ease-out var(--motion-delay),
    transform .8s var(--ease) var(--motion-delay);
}

.motion-bar.is-visible {
  opacity: 1;
  filter: none;
  transform: none;
}

.motion-rise,
.motion-cell {
  opacity: 0;
  filter: blur(2px);
  transform: translate3d(0, 10px, 0);
  transition:
    opacity .62s ease-out var(--motion-delay),
    filter .76s var(--ease) var(--motion-delay),
    transform .76s var(--ease) var(--motion-delay);
}

.motion-cell {
  transform: translate3d(0, 8px, 0) scale(.996);
}

.motion-rise.is-visible,
.motion-cell.is-visible {
  opacity: 1;
  filter: none;
  transform: none;
}

.motion-from-left,
.motion-from-right,
.motion-frame {
  overflow: hidden;
  opacity: 0;
  filter: brightness(.74) saturate(.86);
  transform: scale(.992);
  transition:
    opacity .72s ease-out var(--motion-delay),
    filter .9s var(--ease) var(--motion-delay),
    transform .9s var(--ease) var(--motion-delay);
}

.motion-from-left {
  transform-origin: 46% 50%;
}

.motion-from-right {
  transform-origin: 54% 50%;
}

.motion-frame {
  transform: scale(.994);
}

.motion-from-left.is-visible,
.motion-from-right.is-visible,
.motion-frame.is-visible {
  opacity: 1;
  filter: none;
  transform: none;
}

.motion-from-left.media-frame > img,
.motion-from-right.media-frame > img,
.motion-from-left.media-frame > video,
.motion-from-right.media-frame > video {
  transform: scale(1.014);
  transition:
    transform 1s var(--ease) var(--motion-delay),
    filter .7s ease;
}

.motion-from-left.media-frame.is-visible > img,
.motion-from-right.media-frame.is-visible > img,
.motion-from-left.media-frame.is-visible > video,
.motion-from-right.media-frame.is-visible > video {
  transform: scale(1.002);
}

.motion-from-left.media-frame.is-visible.is-interactive > img,
.motion-from-right.media-frame.is-visible.is-interactive > img {
  transform:
    translate3d(var(--image-x), var(--image-y), 0)
    scale(1.012);
}

.motion-row {
  position: relative;
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  transition:
    opacity .62s ease-out var(--motion-delay),
    transform .76s var(--ease) var(--motion-delay);
}

.motion-row::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: rgba(255, 255, 255, .28);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .85s var(--ease) calc(var(--motion-delay) + 90ms);
}

.motion-row.is-visible {
  opacity: 1;
  transform: none;
}

.motion-row.is-visible::after {
  transform: scaleX(1);
}

.motion-item.is-visible {
  will-change: auto;
}

@media (max-width: 900px) {
  :root {
    --page-x: 18px;
    --section-y: 78px;
  }

  body::before,
  .media-frame::after {
    display: none;
  }

  .primary-nav {
    min-height: 58px;
    padding: 0 14px;
  }

  .primary-nav a {
    font-size: 15px;
  }

  .hero h1 {
    font-size: clamp(52px, 15vw, 108px);
    white-space: normal;
  }

  .hero-grid,
  .profile-grid,
  .project-card,
  .copy-grid,
  .section-intro,
  .process-step,
  .video-list article,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    margin-top: 64px;
  }

  .hero-media {
    width: min(86%, 560px);
    margin-left: auto;
  }

  .what-system-layout {
    margin-top: 54px;
    gap: 22px;
  }

  .what-system-panel,
  .what-system-product,
  .what-system-scene {
    align-self: auto;
    width: 100%;
    margin-top: 0;
  }

  .profile-content {
    padding-top: 0;
  }

  .portrait {
    width: min(74%, 500px);
  }

  .experience-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
  }

  .skill-grid {
    grid-template-columns: 1fr;
  }

  .project-card-reverse .project-thumb,
  .process-step-reverse .step-copy {
    order: initial;
  }

  .process-step-featured > .media-frame {
    width: 100%;
  }

  .process-step-copy-only {
    min-height: auto;
  }

  .prompt-heading {
    gap: 14px;
  }

  .prompt-heading > span,
  .prompt-heading h4 {
    font-size: clamp(42px, 11vw, 76px);
  }

  .process-step-copy-only .keyword-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
    margin-top: 58px;
  }

  .process-step-copy-only .keyword-grid span:nth-child(4) {
    grid-column: auto;
  }

  .process-step-copy-only .keyword-grid span:last-child {
    grid-column: 1 / -1;
  }

  .project-card-reverse .project-card-copy {
    text-align: left;
  }

  .project-card-reverse p {
    margin-left: 0;
  }

  .project-thumb {
    width: min(78%, 540px);
  }

  .live-gallery-shell {
    height: clamp(360px, 56vh, 520px);
  }

  .project-card-reverse .project-thumb {
    margin-left: auto;
  }

  .overlap-media {
    min-height: 420px;
  }

  .overlap-media img {
    width: 86%;
  }

  .step-copy,
  .video-copy {
    position: static;
  }

  .process-step {
    gap: 34px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid .media-frame:last-child {
    grid-column: auto;
  }

  .commerce-steps {
    grid-template-columns: 1fr;
  }

  .commerce-steps li {
    min-height: 0;
  }

  .contact-grid h2 {
    grid-column: auto;
    text-align: left;
  }

  .contact-signoff {
    text-align: left;
  }

  .floating-nav {
    right: 8px;
    bottom: 8px;
  }

  .floating-nav a {
    min-width: 50px;
    padding: 9px 8px;
    font-size: 10px;
  }
}

@media (max-width: 767px) {
  :root {
    --section-y: 64px;
  }

  .primary-nav a {
    font-size: 14px;
  }

  .hero-grid {
    margin-top: 52px;
  }

  .hero-copy {
    gap: 40px;
  }

  .lead {
    max-width: none;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.55;
  }

  .capability-line {
    max-width: none;
    font-size: 15px;
    line-height: 1.5;
  }

  .section-bar {
    min-height: 58px;
    margin-bottom: 52px;
    font-size: 14px;
  }

  .profile-content h2 {
    margin-bottom: 34px;
    font-size: 28px;
    font-weight: 600;
  }

  .experience-list {
    gap: 26px;
  }

  .experience-row h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
  }

  .experience-row p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
  }

  .experience-row time {
    padding-top: 0;
    color: var(--subtle);
    font-size: 13px;
  }

  .skill-grid {
    gap: 8px;
    margin-top: 52px;
  }

  .skill-grid ul {
    font-size: 15px;
    line-height: 1.6;
  }

  .center-heading {
    padding: 8px 0 54px;
  }

  .eyebrow,
  .project-kicker {
    margin-bottom: 14px;
    font-size: 12px;
  }

  .center-heading h2 {
    font-size: 48px;
    line-height: .98;
  }

  .project-list {
    gap: 80px;
  }

  .project-card-copy {
    gap: 14px;
  }

  .project-card-copy > span {
    font-size: 16px;
  }

  .project-card-copy h3 {
    font-size: 30px;
    line-height: 1.08;
  }

  .project-card-copy p {
    max-width: none;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
  }

  .project-card-copy small {
    font-size: 12px;
    line-height: 1.45;
  }

  .project-hero h2,
  .project-title-panel h2 {
    font-size: 42px;
    line-height: 1.05;
    letter-spacing: -.025em;
  }

  .project-hero > p:not(.project-kicker),
  .project-title-panel > p:not(.project-kicker) {
    margin: 24px auto 54px;
    font-size: 16px;
    line-height: 1.6;
  }

  .giant-label {
    margin-bottom: 34px;
    font-size: 72px;
    line-height: .88;
    letter-spacing: -.04em;
  }

  .copy-grid h3,
  .section-intro h3,
  .value-section h3 {
    font-size: 30px;
    line-height: 1.12;
  }

  .copy-grid p,
  .section-intro p,
  .value-section > p,
  .what-summary {
    margin-top: 18px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
  }

  .prompt-heading > span,
  .prompt-heading h4 {
    font-size: 38px;
    line-height: 1;
  }

  .process-step-copy-only .step-copy > p {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.6;
  }

  .process-step-copy-only .keyword-grid span {
    min-height: 68px;
    padding: 10px 18px;
    font-size: 22px;
  }

  .step-copy > span {
    margin-bottom: 14px;
    font-size: 34px;
  }

  .step-copy h4 {
    font-size: 27px;
    line-height: 1.15;
  }

  .step-copy p {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.6;
  }

  .keyword-grid {
    margin-top: 30px;
  }

  .keyword-grid span {
    padding: 9px 16px;
    font-size: 14px;
  }

  .video-copy h4 {
    font-size: 28px;
    line-height: 1.2;
  }

  .video-copy p {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.6;
  }

  .commerce-steps span {
    margin-bottom: 22px;
    font-size: 24px;
  }

  .commerce-steps strong {
    font-size: 18px;
  }

  .commerce-steps p {
    font-size: 14px;
    line-height: 1.55;
  }

  .contact-grid {
    gap: 38px;
  }

  .contact-grid h2 {
    font-size: 40px;
    font-weight: 500;
    line-height: 1.08;
  }

  .contact-grid p,
  .contact-grid address {
    font-size: 16px;
    line-height: 1.6;
  }

  .contact-grid address {
    gap: 14px;
    margin-top: 30px;
  }

  .scroll-video-background {
    background:
      linear-gradient(rgba(0, 0, 0, .3), rgba(0, 0, 0, .3)),
      url("./videos/portfolio-bg-poster.jpg") 50% 42% / cover no-repeat,
      #000;
  }

  .scroll-video-background video {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-title .title-letter {
    opacity: 1;
    clip-path: none;
    transform: none;
  }

  body::before,
  .media-frame::after,
  .color-bends-bg canvas,
  .hero-title::after,
  .click-ripple,
  .scroll-progress {
    display: none;
  }

  .scroll-video-background {
    background:
      linear-gradient(rgba(0, 0, 0, .3), rgba(0, 0, 0, .3)),
      url("./videos/portfolio-bg-poster.jpg") 50% 42% / cover no-repeat,
      #000;
  }

  .scroll-video-background video {
    display: none;
  }
}
