@font-face {
  font-family: "Workbench";
  src: url("fonts/workbench-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 220ms;
  animation-timing-function: var(--ease);
}

::view-transition-group(jt-wordmark) {
  animation-duration: 420ms;
  animation-timing-function: var(--ease);
}

::view-transition-old(jt-wordmark),
::view-transition-new(jt-wordmark) {
  height: 100%;
  mix-blend-mode: normal;
}

::view-transition-group(cowboy-media),
::view-transition-group(east-media) {
  overflow: clip;
  animation-duration: 680ms;
  animation-timing-function: var(--ease-quiet);
}

::view-transition-group(cowboy-title),
::view-transition-group(east-title) {
  animation-duration: 520ms;
  animation-timing-function: var(--ease-quiet);
}

::view-transition-old(cowboy-title),
::view-transition-old(east-title) {
  animation: shared-title-out 520ms var(--ease-quiet) both;
}

::view-transition-new(cowboy-title),
::view-transition-new(east-title) {
  animation: shared-title-in 520ms var(--ease-quiet) both;
}

::view-transition-old(cowboy-media),
::view-transition-new(cowboy-media),
::view-transition-old(east-media),
::view-transition-new(east-media) {
  height: 100%;
  object-fit: cover;
  mix-blend-mode: normal;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
}

:root {
  --bg: #0b0a07;
  --surface: #11140f;
  --surface-strong: #171b15;
  --ink: #f2ecda;
  --muted: #b9b09d;
  --quiet: #918775;
  --accent: #92c98b;
  --accent-soft: rgba(146, 201, 139, 0.15);
  --line: rgba(242, 236, 218, 0.14);
  --line-strong: rgba(242, 236, 218, 0.25);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-quiet: cubic-bezier(0.22, 1, 0.36, 1);
  --section-space: clamp(5rem, 7vw, 7rem);
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-character: "Workbench", "Space Grotesk", system-ui, sans-serif;
  --font-riddle: "Newsreader", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: linear-gradient(180deg, #0c0f0c, var(--bg) 32rem);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: clip;
}

body.modal-open {
  overflow: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(242, 236, 218, 0.015) 3px 4px);
  opacity: 0.5;
}

.site-noise {
  position: fixed;
  inset: -12%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  animation: grain-shift 2.6s steps(4, end) infinite;
}

.home-page .site-noise {
  --grain-frame-1: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' seed='11' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  --grain-frame-2: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' seed='23' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  --grain-frame-3: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' seed='37' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  --grain-frame-4: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' seed='51' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  --grain-frame-5: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' seed='67' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  --grain-frame-6: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' seed='79' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  inset: 0;
  z-index: 20;
  opacity: 0.065;
  background-image: var(--grain-frame-1);
  transform: none;
  animation: home-film-grain 600ms steps(1, end) infinite;
}

.effects-paused .site-noise,
.effects-paused .title-word::after,
.effects-paused .rotor-track,
.effects-paused .logo-track,
.effects-paused .archive-preview-set {
  animation-play-state: paused !important;
}

.low-power-effects .site-noise,
.low-power-effects .archive-preview-set,
.low-power-effects .logo-track {
  animation: none;
}

.low-power-effects .title-word::after {
  animation: none;
  opacity: 0.16;
  transform: none;
}

.archive-preview.is-motion-paused .archive-preview-set,
.logo-marquee.is-motion-paused .logo-track {
  animation-play-state: paused;
}

.home-main,
.work-page main,
.about-main,
.error-main {
  position: relative;
  z-index: 1;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button {
  font: inherit;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.section-shell {
  width: min(calc(100% - clamp(2rem, 7vw, 7rem)), 1680px);
  margin-inline: auto;
}

.shared-cowboy-media {
  view-transition-name: cowboy-media;
}

.shared-cowboy-title {
  view-transition-name: cowboy-title;
}

.shared-east-media {
  view-transition-name: east-media;
}

.shared-east-title {
  view-transition-name: east-title;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  transform: translateY(-180%);
  padding: 0.65rem 0.8rem;
  color: #071008;
  background: var(--accent);
  font-weight: 700;
  transition: transform 180ms var(--ease);
}

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

.sr-only {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Home */
.home-main {
  min-height: 100dvh;
  display: grid;
  align-content: center;
  padding: clamp(2rem, 5vh, 5rem) 0;
}

.home-stage {
  width: min(calc(100% - clamp(3rem, 12vw, 16rem)), 1580px);
  margin-left: clamp(2rem, 10vw, 14rem);
  display: grid;
  justify-items: start;
}

.home-stage h1 {
  position: relative;
  view-transition-name: jt-wordmark;
  min-height: 1em;
  max-width: none;
  color: rgba(52, 199, 95, 0.85);
  font-family: var(--font-character);
  font-size: clamp(5.8rem, 7.6vw, 11.5rem);
  font-weight: 400;
  line-height: 1;
  text-shadow:
    -0.06rem -0.06rem 1.05rem rgba(97, 0, 255, 0.4),
    0 0 0.68rem rgba(239, 224, 185, 0.1);
}

.home-stage h1.is-loading {
  color: transparent;
  text-shadow: none;
}

.title-word {
  position: relative;
  z-index: 1;
  display: inline-flex;
  white-space: nowrap;
}

.title-word::after {
  content: attr(data-word);
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  color: rgba(52, 199, 95, 0.42);
  font: inherit;
  line-height: inherit;
  filter: blur(0.34rem);
  text-shadow:
    -0.08rem -0.06rem 1.35rem rgba(97, 0, 255, 0.48),
    0 0 1.6rem rgba(52, 199, 95, 0.18);
  opacity: 0.16;
  transform: scale(0.996);
  transform-origin: 42% 52%;
  animation: name-glow-breathe 8.2s ease-in-out 1.2s infinite;
  will-change: opacity, transform;
}

.title-word:nth-child(2)::after {
  animation-delay: 1.45s;
}

.title-word + .title-word {
  margin-left: 0.14em;
}

.title-word > span {
  display: inline-block;
  opacity: 0.72;
  filter: blur(1.2px);
  transform: translate3d(0, 0.12em, 0);
  animation: title-in 430ms var(--ease-quiet) forwards;
  will-change: opacity, filter, transform;
}

.title-word:nth-child(1) > span:nth-child(1) { animation-delay: 20ms; }
.title-word:nth-child(1) > span:nth-child(2) { animation-delay: 40ms; }
.title-word:nth-child(1) > span:nth-child(3) { animation-delay: 60ms; }
.title-word:nth-child(1) > span:nth-child(4) { animation-delay: 80ms; }
.title-word:nth-child(1) > span:nth-child(5) { animation-delay: 100ms; }
.title-word:nth-child(1) > span:nth-child(6) { animation-delay: 120ms; }
.title-word:nth-child(2) > span:nth-child(1) { animation-delay: 150ms; }
.title-word:nth-child(2) > span:nth-child(2) { animation-delay: 170ms; }
.title-word:nth-child(2) > span:nth-child(3) { animation-delay: 190ms; }
.title-word:nth-child(2) > span:nth-child(4) { animation-delay: 210ms; }
.title-word:nth-child(2) > span:nth-child(5) { animation-delay: 230ms; }
.title-word:nth-child(2) > span:nth-child(6) { animation-delay: 250ms; }
.title-word:nth-child(2) > span:nth-child(7) { animation-delay: 270ms; }
.title-word:nth-child(2) > span:nth-child(8) { animation-delay: 290ms; }
.title-word:nth-child(2) > span:nth-child(9) { animation-delay: 310ms; }

.work-rotor {
  display: flex;
  align-items: baseline;
  gap: 0.48rem;
  min-height: 1.42em;
  margin: clamp(0.9rem, 1.1vw, 1.25rem) 0 0;
  color: rgba(196, 187, 167, 0.78);
  font-size: clamp(1.05rem, 1.1vw, 1.35rem);
  font-weight: 500;
  line-height: 1.36;
  opacity: 0.25;
  transform: translate3d(0, 0.4rem, 0);
  animation: copy-in 420ms var(--ease) 180ms both;
}

.rotor-kicker {
  flex: 0 0 auto;
  color: rgba(242, 244, 238, 0.58);
  font-size: 0.88em;
  font-weight: 500;
}

.rotor-window {
  position: relative;
  display: inline-grid;
  width: 20.5em;
  height: 1.42em;
  overflow: hidden;
  color: rgba(244, 238, 220, 0.84);
  font-size: 1.04em;
  font-weight: 700;
  text-shadow: 0 0 0.35rem rgba(239, 224, 185, 0.08);
}

.rotor-window::before,
.rotor-window::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: 0;
  left: 0;
  height: 0.3em;
  pointer-events: none;
}

.rotor-window::before {
  top: 0;
  background: linear-gradient(180deg, var(--bg), transparent);
}

.rotor-window::after {
  bottom: 0;
  background: linear-gradient(0deg, var(--bg), transparent);
}

.rotor-track {
  display: grid;
  will-change: transform;
  animation: rotor-y 25s cubic-bezier(0.76, 0, 0.24, 1) 1.8s infinite;
}

.rotor-track > span {
  height: 1.42em;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.home-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: clamp(1rem, 1.22vw, 1.55rem);
}

.home-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink);
  font-size: clamp(1.18rem, 1.16vw, 1.48rem);
  font-weight: 700;
  opacity: 0.2;
  transform: translate3d(0, 0.5rem, 0);
  animation: copy-in 540ms var(--ease) both;
  transition: color 200ms var(--ease), transform 200ms var(--ease);
}

.home-links a:nth-child(1) { animation-delay: 380ms; }
.home-links a:nth-child(2) { animation-delay: 450ms; }
.home-links a:nth-child(3) { animation-delay: 520ms; }
.home-links a:not(:first-child)::before {
  content: "/";
  margin: 0 0.58em;
  color: rgba(170, 179, 170, 0.5);
  font-weight: 500;
}

.home-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.28rem;
  left: 0;
  height: 1px;
  background: var(--accent);
  opacity: 0.65;
  transform: scaleX(0.58);
  transform-origin: var(--underline-origin, left);
  transition: transform 200ms var(--ease), opacity 200ms var(--ease);
}

.home-links a:not(:first-child)::after {
  left: 1.65em;
}

.home-links a:hover,
.home-links a:focus-visible {
  color: var(--accent);
  transform: translateY(-2px);
}

.home-links a:hover::after,
.home-links a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.home-links a:active,
.nav-mark:active,
.nav-links a:active,
.software-item:active,
.section-link:active,
.contact-actions a:active,
.about-links a:active {
  transform: translateY(1px) scale(0.98);
  transition-duration: 80ms;
}

.riddle-pocket {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-top: clamp(0.95rem, 1.2vw, 1.5rem);
}

.riddle-trigger {
  appearance: none;
  min-width: 2.75rem;
  min-height: 2.75rem;
  display: grid;
  place-items: center start;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  transform: translate3d(0, 0.35rem, 0);
  animation: riddle-in 360ms var(--ease) 650ms both;
}

.riddle-mark {
  display: block;
  color: var(--quiet);
  font-size: clamp(1.3rem, 1.16vw, 1.5rem);
  font-weight: 700;
  line-height: 1;
  opacity: 0.42;
  transform: scale(0.52);
  transform-origin: left center;
  transition: color 360ms var(--ease), opacity 360ms var(--ease), transform 460ms var(--ease);
  animation: riddle-wiggle 6.8s ease 1.8s infinite;
}

.riddle-trigger:hover .riddle-mark,
.riddle-trigger:focus-visible .riddle-mark,
.riddle-pocket.is-open .riddle-mark {
  color: var(--accent);
  opacity: 1;
  transform: scale(1);
}

.riddle-trigger:focus-visible {
  border-radius: 50%;
  outline: 1px solid var(--accent);
  outline-offset: -0.3rem;
}

.riddle-trigger:active {
  transform: translate3d(0, calc(0.35rem + 1px), 0);
}

.riddle-trigger:active .riddle-mark {
  transform: scale(0.91);
}

.riddle-link {
  position: absolute;
  top: 50%;
  left: calc(100% + 0.35rem);
  width: max-content;
  max-width: min(28rem, calc(100vw - 6rem));
  color: rgba(242, 236, 218, 0.82);
  font-family: var(--font-riddle);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.15;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-0.35rem, -50%, 0) scale(0.94);
  transform-origin: left center;
  transition: opacity 260ms var(--ease), transform 480ms var(--ease);
}

.riddle-pocket:hover .riddle-link,
.riddle-pocket:focus-within .riddle-link,
.riddle-pocket.is-open .riddle-link {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, -50%, 0) scale(1);
  transition-delay: 55ms;
}

.riddle-word {
  color: rgba(242, 236, 218, 0.58);
  transition: color 220ms var(--ease), text-shadow 220ms var(--ease);
}

.riddle-word.is-lit {
  color: var(--accent);
  text-shadow: 0 0 1.15rem rgba(146, 201, 139, 0.35);
}

/* Work navigation */
.nav-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.work-nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 100%;
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: max(0.75rem, env(safe-area-inset-top)) clamp(1.25rem, 3.6vw, 4.25rem) 0.75rem;
  border-bottom: 1px solid rgba(242, 236, 218, 0.09);
  background: rgba(10, 12, 9, 0.8);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  transition:
    min-height 300ms var(--ease-quiet),
    padding 300ms var(--ease-quiet),
    background-color 300ms var(--ease-quiet),
    border-color 300ms var(--ease-quiet);
}

.work-nav.is-compact {
  min-height: 3.75rem;
  padding-top: max(0.4rem, env(safe-area-inset-top));
  padding-bottom: 0.4rem;
  border-bottom-color: rgba(242, 236, 218, 0.13);
  background: rgba(9, 11, 8, 0.92);
}

.nav-mark {
  view-transition-name: jt-wordmark;
  position: relative;
  z-index: 1;
  flex: 0 1 auto;
  min-height: 2.75rem;
  display: grid;
  place-items: center start;
  color: rgba(52, 199, 95, 0.85);
  font-family: var(--font-character);
  font-size: clamp(1.35rem, 1.7vw, 2rem);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  text-shadow:
    -0.03rem -0.03rem 0.55rem rgba(97, 0, 255, 0.36),
    0 0 0.28rem rgba(239, 224, 185, 0.08);
  transition: transform 200ms var(--ease), color 200ms var(--ease);
}

.nav-mark:hover,
.nav-mark:focus-visible {
  color: var(--ink);
  transform: translateY(-1px);
}

.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.7vw, 2.5rem);
}

.nav-links a {
  position: relative;
  min-height: 2.75rem;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  transition: color 200ms var(--ease), transform 200ms var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.3rem;
  left: 0;
  height: 1px;
  background: var(--accent);
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 200ms var(--ease), transform 260ms var(--ease);
}

.nav-links.has-indicator a::after {
  opacity: 0;
}

.nav-indicator {
  position: absolute;
  bottom: 0.3rem;
  left: 0;
  width: var(--nav-indicator-width, 0);
  height: 1px;
  background: var(--accent);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(var(--nav-indicator-x, 0), 0, 0);
  transition:
    width 280ms var(--ease-quiet),
    opacity 180ms var(--ease),
    transform 280ms var(--ease-quiet);
}

.nav-indicator.is-visible {
  opacity: 0.82;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-current {
  color: var(--ink);
  transform: translateY(-1px);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.is-current::after {
  opacity: 0.78;
  transform: scaleX(1);
}

/* Work page */
.portfolio-hero {
  padding-top: clamp(8rem, 11vw, 10.5rem);
  padding-bottom: clamp(3rem, 4.5vw, 4.5rem);
}

.portfolio-hero h1 {
  max-width: none;
  font-size: clamp(3.25rem, 5vw, 5.5rem);
  font-weight: 650;
  line-height: 0.92;
}

.featured-work {
  padding-top: clamp(1.5rem, 2.5vw, 2.25rem);
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.section-heading h2 {
  font-size: clamp(1.9rem, 3.1vw, 3rem);
  font-weight: 620;
  line-height: 1;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(2rem, 3.3vw, 3.4rem) clamp(1rem, 2vw, 2rem);
}

.project-card {
  grid-column: span 6;
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 0.9rem;
}

.reveal-pending {
  opacity: 0;
  transform: translate3d(0, 0.75rem, 0);
}

.reveal-pending.is-revealed {
  opacity: 1;
  transform: none;
  transition:
    opacity 620ms var(--ease-quiet) var(--reveal-delay, 0ms),
    transform 620ms var(--ease-quiet) var(--reveal-delay, 0ms);
}

.project-card.reveal-pending {
  opacity: 1;
  transform: none;
}

.project-card.reveal-pending .video-shell,
.project-card.reveal-pending .project-copy {
  opacity: 0;
  transform: translate3d(-1rem, 1.35rem, 0) scale(0.985);
}

.project-card.reveal-pending:nth-child(even) .video-shell,
.project-card.reveal-pending:nth-child(even) .project-copy {
  transform: translate3d(1rem, 1.35rem, 0) scale(0.985);
}

.project-card.reveal-pending .project-copy {
  transform: translate3d(0, 0.7rem, 0);
}

.project-card.reveal-pending.is-revealed .video-shell,
.project-card.reveal-pending.is-revealed .project-copy {
  opacity: 1;
  transform: none;
  transition:
    opacity 720ms var(--ease-quiet) var(--reveal-delay, 0ms),
    transform 820ms var(--ease-quiet) var(--reveal-delay, 0ms),
    border-color 280ms var(--ease),
    background-color 280ms var(--ease);
}

.project-card.reveal-pending.is-revealed .project-copy {
  transition-delay: calc(var(--reveal-delay, 0ms) + 110ms);
}

.project-card:nth-child(1) { grid-column: span 8; }
.project-card:nth-child(2) { grid-column: span 4; }
.project-card:nth-child(3) { grid-column: span 5; }
.project-card:nth-child(4) { grid-column: span 7; }
.project-card:nth-child(5) { grid-column: span 7; }
.project-card:nth-child(6) { grid-column: span 5; }
.project-card:nth-child(7) { grid-column: span 5; }
.project-card:nth-child(8) { grid-column: span 7; }

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  padding: 0.34rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(242, 236, 218, 0.09), rgba(17, 20, 15, 0.94));
  isolation: isolate;
  transition:
    border-color 280ms var(--ease),
    background-color 280ms var(--ease),
    transform 320ms var(--ease-quiet);
}

.video-shell picture {
  display: block;
  width: 100%;
  height: 100%;
}

.project-preview {
  position: absolute;
  inset: 0.34rem;
  z-index: 1;
  width: calc(100% - 0.68rem);
  height: calc(100% - 0.68rem);
  border-radius: 4px;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms var(--ease);
}

.motion-preview.is-previewing .project-preview {
  opacity: 1;
}

.motion-preview.is-previewing .play-icon {
  transform: translate3d(-2px, -2px, 0) scale(0.92);
}

.is-video-origin {
  visibility: hidden;
}

.low-power-effects .project-preview {
  display: none;
}

.video-shell img {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  object-fit: cover;
  transform: scale(1.002);
  transition: transform 650ms var(--ease), opacity 300ms var(--ease);
}

.project-card:hover .video-shell img {
  transform: scale(1.018);
}

.project-card:hover .video-shell,
.project-card:focus-within .video-shell {
  border-color: rgba(146, 201, 139, 0.58);
}

.video-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.play-icon {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(242, 236, 218, 0.3);
  border-radius: 50%;
  background: rgba(8, 11, 8, 0.78);
  backdrop-filter: blur(8px);
  transition: transform 260ms var(--ease), border-color 260ms var(--ease), background 260ms var(--ease);
}

.play-icon::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 0.15rem;
  border-top: 0.34rem solid transparent;
  border-bottom: 0.34rem solid transparent;
  border-left: 0.52rem solid var(--accent);
}

.video-play:hover .play-icon,
.video-play:focus-visible .play-icon {
  border-color: var(--accent);
  background: rgba(8, 11, 8, 0.94);
  transform: translate3d(-2px, -2px, 0) scale(1.04);
}

.video-play:active .play-icon {
  transform: scale(0.94);
  transition-duration: 80ms;
}

.project-copy {
  display: grid;
  gap: 0.38rem;
}

.project-category,
.software-platform {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 650;
}

.project-copy h3 {
  position: relative;
  width: fit-content;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 620;
  line-height: 1.08;
}

.project-copy h3 a {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: color 220ms var(--ease), background-size 280ms var(--ease-quiet);
}

.project-copy h3 a:hover,
.project-copy h3 a:focus-visible {
  color: var(--accent);
  background-size: 100% 1px;
}

.project-card:nth-child(1) .project-copy h3 {
  font-size: clamp(1.75rem, 3vw, 2.8rem);
}

.project-copy p {
  max-width: 54ch;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.55;
}

.archive-section {
  padding-top: clamp(5rem, 9vw, 8rem);
}

.archive {
  --archive-preview-gap: 0.65rem;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.archive-trigger {
  position: relative;
  min-height: 10.5rem;
  display: grid;
  grid-template-columns: minmax(15rem, 0.7fr) minmax(0, 1.3fr) 2.75rem;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  overflow: hidden;
  cursor: pointer;
  list-style: none;
  isolation: isolate;
}

.archive-trigger::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 420ms var(--ease-quiet);
}

.archive-trigger:hover::before,
.archive-trigger:focus-visible::before {
  transform: scaleX(1);
}

.archive-trigger:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: -1px;
}

.archive-trigger::-webkit-details-marker {
  display: none;
}

.archive-trigger::marker {
  content: "";
}

.archive-trigger-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.archive-trigger-title {
  position: relative;
  display: block;
  overflow: hidden;
  font-size: 3rem;
  font-weight: 620;
  line-height: 1;
  white-space: nowrap;
}

.archive-label-closed,
.archive-label-open {
  display: block;
  transition: opacity 300ms var(--ease), transform 420ms var(--ease-quiet);
}

.archive-label-closed {
  color: rgba(52, 199, 95, 0.85);
  font-family: var(--font-character);
  font-weight: 400;
  text-shadow:
    -0.03rem -0.03rem 0.55rem rgba(97, 0, 255, 0.3),
    0 0 0.28rem rgba(239, 224, 185, 0.07);
}

.archive-label-open {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translate3d(0, 70%, 0);
  visibility: hidden;
}

.archive-preview {
  min-width: 0;
  height: 7rem;
  display: flex;
  align-items: center;
  gap: var(--archive-preview-gap);
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  transition: opacity 320ms var(--ease);
}

.archive-preview-set {
  display: flex;
  min-width: 100%;
  flex-shrink: 0;
  align-items: center;
  gap: var(--archive-preview-gap);
  animation: archive-scroll 28s linear infinite;
  will-change: transform;
}

.archive-preview-frame {
  width: 9.5rem;
  aspect-ratio: 16 / 10;
  flex: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  transform: translate3d(0, -0.28rem, 0);
  transition: border-color 260ms var(--ease), transform 420ms var(--ease-quiet);
}

.archive-preview-frame:nth-child(even) {
  transform: translate3d(0, 0.38rem, 0);
}

.archive-preview-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.archive-trigger:hover .archive-preview-frame,
.archive-trigger:focus-visible .archive-preview-frame {
  border-color: var(--line-strong);
  transform: translate3d(0, 0, 0);
}

.archive-trigger-arrow {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  justify-self: end;
  color: var(--accent);
  transition: color 240ms var(--ease), transform 420ms var(--ease-quiet);
}

.archive-trigger-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.5rem;
  height: 1px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(90deg);
}

.archive-trigger-arrow::after {
  content: "";
  position: absolute;
  bottom: 0.55rem;
  left: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateX(-50%) rotate(45deg);
}

.archive-trigger:hover .archive-trigger-arrow,
.archive-trigger:focus-visible .archive-trigger-arrow {
  color: var(--ink);
  transform: translate3d(0, 0.22rem, 0);
}

.archive[open] .archive-label-closed {
  opacity: 0;
  transform: translate3d(0, -70%, 0);
  visibility: hidden;
}

.archive[open] .archive-label-open {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  visibility: visible;
}

.archive[open] .archive-preview {
  opacity: 0.38;
}

.archive[open] .archive-preview-set {
  animation-play-state: paused;
}

.archive[open] .archive-trigger-arrow {
  transform: rotate(180deg);
}

.archive-groups {
  columns: 2;
  column-gap: 3rem;
  padding: 2rem 0 4rem;
}

.archive[open] .archive-groups {
  animation: archive-reveal 520ms var(--ease-quiet) both;
}

.archive-group {
  break-inside: avoid;
  margin-bottom: 3.5rem;
}

.archive-group h3 {
  margin-bottom: 0.7rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 650;
}

.archive-row {
  min-height: 5rem;
  display: grid;
  grid-template-columns: 6.25rem minmax(0, 1fr) 2.75rem;
  align-items: center;
  gap: 0.9rem;
  border-top: 1px solid var(--line);
  transition: color 200ms var(--ease), transform 240ms var(--ease-quiet);
}

.archive-thumb {
  width: 6.25rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface);
}

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

.archive-thumb picture {
  display: block;
  width: 100%;
  height: 100%;
}

.archive-row h4 {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.2;
}

.archive-play {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  font-size: 0;
}

.archive-play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 0.12rem;
  border-top: 0.3rem solid transparent;
  border-bottom: 0.3rem solid transparent;
  border-left: 0.46rem solid currentColor;
}

.archive-row:hover,
.archive-row:focus-visible,
.archive-row:hover .archive-play,
.archive-row:focus-visible .archive-play {
  color: var(--ink);
}

.archive-row:hover,
.archive-row:focus-visible {
  transform: translate3d(0.18rem, 0, 0);
}

.software-section,
.clients-section,
.contact {
  padding-top: var(--section-space);
  content-visibility: auto;
  contain-intrinsic-size: auto 44rem;
}

.clients-section + .contact {
  padding-top: clamp(3rem, 4vw, 4rem);
}

.software-heading,
.clients-heading {
  margin-bottom: 2.4rem;
}

.software-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 5vw, 5rem);
}

.software-item {
  min-height: 8.5rem;
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  align-items: start;
  column-gap: 1.2rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  transition: color 240ms var(--ease), transform 300ms var(--ease);
}

.software-icon {
  grid-row: 1 / 4;
  position: relative;
  overflow: hidden;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 7px;
  background: rgba(242, 236, 218, 0.03);
  transition: transform 320ms var(--ease-quiet);
}

.software-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.software-icon-motion,
.software-icon-motion::before,
.software-icon-motion::after {
  position: absolute;
  pointer-events: none;
}

.software-icon-motion {
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}

.software-icon-motion::before,
.software-icon-motion::after {
  content: "";
  opacity: 0;
}

.software-item[data-app="sp1"] .software-icon-motion::before {
  top: 50%;
  right: 18%;
  left: 18%;
  height: 1px;
  background: rgba(242, 236, 218, 0.8);
  box-shadow: 0 -0.42rem 0 rgba(242, 236, 218, 0.38), 0 0.42rem 0 rgba(242, 236, 218, 0.38);
  transform: scaleX(0.12);
}

.software-item[data-app="parallax"] .software-icon-motion::before,
.software-item[data-app="parallax"] .software-icon-motion::after {
  inset: 21%;
  border: 1px solid rgba(242, 236, 218, 0.64);
  border-radius: 3px;
}

.software-item[data-app="parallax"] .software-icon-motion::after {
  border-color: rgba(146, 201, 139, 0.72);
}

.software-item[data-app="loop"] .software-icon-motion::before {
  inset: 23%;
  border: 1px solid rgba(242, 236, 218, 0.72);
  border-right-color: transparent;
  border-radius: 50%;
}

.software-item[data-app="hackerwood"] .software-icon-motion::before {
  top: 18%;
  right: 12%;
  left: 12%;
  height: 1px;
  background: rgba(146, 201, 139, 0.88);
  box-shadow: 0 0 0.45rem rgba(146, 201, 139, 0.44);
}

.software-item h3 {
  margin-top: 0.2rem;
  font-size: 1.3rem;
  font-weight: 620;
  line-height: 1.1;
}

.software-item p {
  margin-top: 0.38rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.software-item:hover,
.software-item:focus-visible {
  color: var(--accent);
  transform: translateY(-2px);
}

.software-item:hover .software-icon,
.software-item:focus-visible .software-icon {
  transform: translate3d(0, -2px, 0) scale(1.025);
}

.software-item.is-revealed[data-app="sp1"] .software-icon-motion::before,
.software-item[data-app="sp1"]:hover .software-icon-motion::before,
.software-item[data-app="sp1"]:focus-visible .software-icon-motion::before {
  animation: app-signal 820ms var(--ease-quiet) both;
}

.software-item.is-revealed[data-app="parallax"] .software-icon-motion::before,
.software-item[data-app="parallax"]:hover .software-icon-motion::before,
.software-item[data-app="parallax"]:focus-visible .software-icon-motion::before {
  animation: app-layer-front 900ms var(--ease-quiet) both;
}

.software-item.is-revealed[data-app="parallax"] .software-icon-motion::after,
.software-item[data-app="parallax"]:hover .software-icon-motion::after,
.software-item[data-app="parallax"]:focus-visible .software-icon-motion::after {
  animation: app-layer-back 900ms var(--ease-quiet) both;
}

.software-item.is-revealed[data-app="loop"] .software-icon-motion::before,
.software-item[data-app="loop"]:hover .software-icon-motion::before,
.software-item[data-app="loop"]:focus-visible .software-icon-motion::before {
  animation: app-loop 920ms var(--ease-quiet) both;
}

.software-item.is-revealed[data-app="hackerwood"] .software-icon-motion::before,
.software-item[data-app="hackerwood"]:hover .software-icon-motion::before,
.software-item[data-app="hackerwood"]:focus-visible .software-icon-motion::before {
  animation: app-scan 860ms var(--ease-quiet) both;
}

.software-item[data-app="sp1"]:is(:hover, :focus-visible) .software-icon-motion::before {
  animation-name: app-signal-hover;
}

.software-item[data-app="parallax"]:is(:hover, :focus-visible) .software-icon-motion::before {
  animation-name: app-layer-front-hover;
}

.software-item[data-app="parallax"]:is(:hover, :focus-visible) .software-icon-motion::after {
  animation-name: app-layer-back-hover;
}

.software-item[data-app="loop"]:is(:hover, :focus-visible) .software-icon-motion::before {
  animation-name: app-loop-hover;
}

.software-item[data-app="hackerwood"]:is(:hover, :focus-visible) .software-icon-motion::before {
  animation-name: app-scan-hover;
}

.section-link {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.5rem;
  color: var(--accent);
  font-weight: 650;
  transition: color 200ms var(--ease), transform 200ms var(--ease);
}

.section-link:hover,
.section-link:focus-visible {
  color: var(--ink);
  transform: translateY(-1px);
}

.logo-marquee {
  --logo-gap: clamp(2.5rem, 5vw, 5rem);
  display: flex;
  gap: var(--logo-gap);
  overflow: hidden;
  user-select: none;
  contain: layout paint;
  mask-image: linear-gradient(90deg, transparent, #000 4.5%, #000 95.5%, transparent);
}

.logo-track {
  min-width: 100%;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-around;
  gap: var(--logo-gap);
  animation: logo-scroll 60s linear infinite;
  backface-visibility: hidden;
  will-change: transform;
}

.client-logo {
  flex: 0 0 auto;
  width: 8.5rem;
  height: 4rem;
  display: grid;
  place-items: center;
  opacity: 0.7;
  transition: opacity 220ms var(--ease), transform 260ms var(--ease);
}

.client-logo img {
  width: auto;
  max-width: 100%;
  max-height: 2.4rem;
  object-fit: contain;
  filter: grayscale(1) saturate(0) brightness(1.7);
}

.client-logo img[src$="/bmw.png"] { max-width: 3rem; max-height: 3rem; }
.client-logo img[src$="/amazon.png"] { max-width: 7.5rem; max-height: 2.2rem; }
.client-logo img[src$="/nike.png"] { max-width: 6.6rem; max-height: 2.45rem; }
.client-logo img[src$="/hbo.png"] { max-width: 4.9rem; max-height: 2.2rem; }
.client-logo img[src$="/peloton.png"] { max-width: 3rem; max-height: 3rem; }
.client-logo img[src$="/havas.png"] { max-width: 6.2rem; max-height: 2.6rem; }
.client-logo img[src$="/goby.png"] { max-width: 7.4rem; max-height: 2.1rem; }
.client-logo img[src$="/revere.png"] { max-width: 8rem; max-height: 1.55rem; }
.client-logo img[src$="/fly.png"] { max-width: 5.6rem; max-height: 2.9rem; }
.client-logo img[src$="/coco.png"] { max-width: 3.2rem; max-height: 3rem; }

.client-logo:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.contact {
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
}

.contact::before {
  content: "";
  display: block;
  height: 1px;
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
  background: var(--line-strong);
}

.contact h2 {
  max-width: 14ch;
  font-size: clamp(2.5rem, 4.5vw, 4.5rem);
  font-weight: 620;
  line-height: 0.96;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin-top: 1rem;
}

.contact-actions a {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-weight: 620;
  transition: color 200ms var(--ease), transform 200ms var(--ease);
}

.contact-actions .email-link {
  color: var(--accent);
}

.contact-actions a:hover,
.contact-actions a:focus-visible {
  color: var(--ink);
  transform: translateY(-1px);
}

.site-footer {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: clamp(4rem, 8vw, 7rem);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 0.82rem;
}

.site-footer a {
  position: relative;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  transition: color 200ms var(--ease), transform 200ms var(--ease);
}

.site-footer .footer-signature {
  color: rgba(146, 201, 139, 0.72);
  font-family: var(--font-character);
  font-size: 0.95rem;
}

.site-footer .footer-top {
  gap: 0.5rem;
  font-weight: 650;
}

.footer-top::after {
  content: "";
  position: absolute;
  right: 1.25rem;
  bottom: 0.3rem;
  left: 0;
  height: 1px;
  background: var(--accent);
  opacity: 0.72;
  transform: scaleX(0);
  transform-origin: var(--underline-origin, right);
  transition: transform 220ms var(--ease);
}

.footer-top span {
  display: inline-block;
  transition: transform 220ms var(--ease);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent);
  transform: translateY(-1px);
}

.site-footer .footer-signature:hover,
.site-footer .footer-signature:focus-visible {
  color: var(--ink);
}

.footer-top:hover::after,
.footer-top:focus-visible::after {
  transform: scaleX(1);
}

.footer-top:hover span,
.footer-top:focus-visible span {
  transform: translateY(-3px);
}

.noscript-work {
  padding: 2rem 0;
}

/* About */
.about-main {
  min-height: calc(100dvh - 4rem);
  display: grid;
  grid-template-columns: minmax(12rem, 0.62fr) minmax(0, 1.38fr);
  align-content: center;
  gap: clamp(3rem, 8vw, 9rem);
  padding-top: clamp(8rem, 12vw, 11rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.about-hero h1 {
  font-size: clamp(3.25rem, 5vw, 5.5rem);
  font-weight: 650;
  line-height: 0.92;
  animation: about-heading-in 760ms var(--ease-quiet) both;
}

.about-copy {
  position: relative;
  max-width: 50rem;
  display: grid;
  gap: 1.4rem;
  padding-top: 1.4rem;
}

.about-copy::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--line-strong);
  transform: scaleX(0);
  transform-origin: left;
  animation: about-rule-in 920ms var(--ease-quiet) 140ms both;
}

.about-copy > p {
  color: var(--muted);
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  line-height: 1.38;
}

.about-copy > p:first-child {
  color: var(--ink);
}

.about-line {
  opacity: 0;
  transform: translate3d(0, 1rem, 0);
  animation: about-copy-in 720ms var(--ease-quiet) both;
}

.about-line-primary {
  animation-delay: 180ms;
}

.about-line-secondary {
  animation-delay: 310ms;
}

.about-discipline {
  position: relative;
  display: inline-block;
  color: var(--ink);
  transform: translate3d(0, 0.15em, 0);
  animation: about-discipline-in 560ms var(--ease-quiet) both;
}

.about-discipline:nth-of-type(1) { animation-delay: 360ms; }
.about-discipline:nth-of-type(2) { animation-delay: 430ms; }
.about-discipline:nth-of-type(3) { animation-delay: 500ms; }
.about-discipline:nth-of-type(4) { animation-delay: 570ms; }

.about-discipline::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.08em;
  left: 0;
  height: 1px;
  background: var(--accent);
  opacity: 0.72;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 300ms var(--ease-quiet);
}

.about-discipline:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.3rem;
  margin-top: 1rem;
  opacity: 0;
  transform: translate3d(0, 0.75rem, 0);
  animation: about-copy-in 680ms var(--ease-quiet) 470ms both;
}

.about-links a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  font-weight: 650;
  transition: color 200ms var(--ease), transform 200ms var(--ease);
}

.about-links a:hover,
.about-links a:focus-visible {
  color: var(--ink);
  transform: translateY(-1px);
}

.site-footer-page {
  position: relative;
  z-index: 1;
  margin-top: 0;
  margin-bottom: max(1rem, env(safe-area-inset-bottom));
}

/* Project pages */
.project-page main {
  position: relative;
  z-index: 1;
}

.project-hero {
  display: grid;
  grid-template-columns: minmax(8rem, 0.32fr) minmax(0, 1.68fr);
  gap: clamp(2rem, 7vw, 8rem);
  padding-top: clamp(8.5rem, 13vw, 12rem);
  padding-bottom: clamp(3.5rem, 6vw, 6rem);
}

.project-back {
  width: fit-content;
  height: fit-content;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 620;
  transition: color 200ms var(--ease), transform 220ms var(--ease);
  animation: project-meta-in 560ms var(--ease-quiet) 180ms backwards;
}

.project-back:hover,
.project-back:focus-visible {
  color: var(--accent);
  transform: translate3d(-2px, 0, 0);
}

.project-heading {
  max-width: 70rem;
}

.project-role {
  margin-bottom: 0.85rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 650;
  animation: project-meta-in 560ms var(--ease-quiet) 240ms backwards;
}

.project-heading h1 {
  max-width: 14ch;
  font-size: clamp(3rem, 6vw, 6.2rem);
  font-weight: 620;
  line-height: 0.94;
}

.project-intro {
  max-width: 52ch;
  margin-top: clamp(1.2rem, 2vw, 1.8rem);
  color: var(--muted);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  line-height: 1.45;
  animation: project-meta-in 640ms var(--ease-quiet) 380ms backwards;
}

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

.project-video-shell {
  width: 100%;
  border-color: rgba(242, 236, 218, 0.32);
}

.project-video-shell .play-icon {
  right: clamp(1rem, 2vw, 1.6rem);
  bottom: clamp(1rem, 2vw, 1.6rem);
  width: clamp(3rem, 4vw, 4rem);
  height: clamp(3rem, 4vw, 4rem);
}

.project-stills {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: clamp(1rem, 2vw, 2rem);
  padding-top: clamp(2.5rem, 5vw, 5rem);
}

.project-still {
  grid-column: span 5;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.project-still-wide {
  grid-column: span 7;
}

.project-still-offset {
  grid-column: 4 / span 7;
  margin-top: clamp(1rem, 3vw, 3rem);
}

.project-still picture {
  display: block;
}

.project-still img {
  width: 100%;
  height: auto;
}

.project-still.reveal-pending {
  opacity: 0;
  transform: translate3d(-1.5rem, 1.4rem, 0) scale(0.985);
}

.project-still.reveal-pending:nth-child(even) {
  transform: translate3d(1.5rem, 1.4rem, 0) scale(0.985);
}

.project-still.reveal-pending.is-revealed {
  opacity: 1;
  transform: none;
  transition:
    opacity 760ms var(--ease-quiet) var(--reveal-delay, 0ms),
    transform 880ms var(--ease-quiet) var(--reveal-delay, 0ms);
}

.next-project {
  margin-top: clamp(5rem, 10vw, 10rem);
}

.next-project-link {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(18rem, 35vw, 28rem);
  display: flex;
  align-items: flex-end;
  padding: clamp(1.4rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
}

.next-project-media,
.next-project-media picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.next-project-media {
  z-index: -2;
  overflow: hidden;
}

.next-project-media picture img,
.next-project-media .project-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.next-project-media .project-preview {
  inset: 0;
  border-radius: 0;
}

.next-project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(3, 4, 3, 0.9), rgba(3, 4, 3, 0.46) 54%, rgba(3, 4, 3, 0.18));
  pointer-events: none;
}

.next-project-copy {
  position: relative;
  z-index: 3;
  max-width: min(80%, 52rem);
  display: grid;
  gap: 0.65rem;
}

.next-project-label {
  color: var(--quiet);
  font-size: 0.78rem;
  font-weight: 620;
}

.next-project-title {
  display: block;
  font-size: clamp(1.7rem, 4vw, 3.8rem);
  font-weight: 620;
  line-height: 1.05;
  transition: color 220ms var(--ease);
}

.next-project-arrow {
  display: inline-block;
  color: var(--accent);
  transition: transform 320ms var(--ease-quiet);
}

.next-project-tail {
  white-space: nowrap;
}

.next-project-link:hover .next-project-title,
.next-project-link:focus-visible .next-project-title {
  color: var(--accent);
}

.next-project-link:hover .next-project-arrow,
.next-project-link:focus-visible .next-project-arrow {
  transform: translate3d(0.35rem, 0, 0);
}

.next-project.reveal-pending {
  opacity: 1;
  transform: none;
}

.next-project.reveal-pending .next-project-media {
  opacity: 0;
  transform: translate3d(0, 1.5rem, 0) scale(0.985);
}

.next-project.reveal-pending .next-project-copy {
  opacity: 0;
  transform: translate3d(0, 0.9rem, 0);
}

.next-project.reveal-pending.is-revealed .next-project-media,
.next-project.reveal-pending.is-revealed .next-project-copy {
  opacity: 1;
  transform: none;
  transition:
    opacity 760ms var(--ease-quiet) var(--reveal-delay, 0ms),
    transform 900ms var(--ease-quiet) var(--reveal-delay, 0ms);
}

.next-project.reveal-pending.is-revealed .next-project-copy {
  transition-delay: calc(var(--reveal-delay, 0ms) + 150ms);
}

.project-page .site-footer-page {
  margin-top: clamp(4rem, 8vw, 7rem);
}

.error-main {
  width: min(100% - 2rem, 42rem);
  min-height: 100dvh;
  margin-inline: auto;
  display: grid;
  align-content: center;
  justify-items: start;
}

.error-code {
  color: rgba(52, 199, 95, 0.84);
  font-family: var(--font-character);
  font-size: clamp(5rem, 15vw, 9rem);
  line-height: 0.8;
  text-shadow: -0.06rem -0.06rem 1.1rem rgba(97, 0, 255, 0.55);
}

.error-main h1 {
  margin-top: 1.5rem;
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  line-height: 1;
}

.error-main nav {
  display: flex;
  gap: 1.3rem;
  margin-top: 1.2rem;
}

.error-main nav a {
  min-height: 2.75rem;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-weight: 650;
}

/* Video modal */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  overflow-y: auto;
  display: grid;
  place-items: center;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
  background: rgba(3, 4, 3, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 380ms var(--ease);
}

.video-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-panel {
  width: min(100%, 72rem);
}

.video-modal-top {
  min-height: 3.3rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding: 0 0 0.55rem;
  opacity: 0;
  transform: translate3d(0, 0.55rem, 0);
  transition:
    opacity 320ms var(--ease) 180ms,
    transform 420ms var(--ease-quiet) 180ms;
}

.video-modal.is-open .video-modal-top {
  opacity: 1;
  transform: none;
}

.video-modal-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.video-modal-external {
  min-height: 2.75rem;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.video-modal-external:hover,
.video-modal-external:focus-visible {
  color: var(--accent);
}

.video-modal-close {
  width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1;
  transition: color 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease);
}

.video-modal-close:hover,
.video-modal-close:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.video-modal-close:active {
  transform: scale(0.92);
}

.video-modal-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #020302;
  transform: translate3d(var(--modal-origin-x, 0), var(--modal-origin-y, 0), 0)
    scale(var(--modal-origin-scale-x, 1), var(--modal-origin-scale-y, 1));
  transform-origin: var(--modal-origin-point, 0 0);
  transition: transform 560ms var(--ease-quiet);
  will-change: transform;
}

.video-modal.is-open .video-modal-frame {
  transform: none;
}

.video-modal-frame iframe,
.video-modal-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-modal-frame iframe {
  z-index: 2;
  opacity: 0;
  transition: opacity 220ms var(--ease);
}

.video-modal-poster {
  z-index: 1;
  object-fit: cover;
  opacity: 1;
  transition: opacity 260ms var(--ease);
}

.video-modal.is-video-ready .video-modal-frame iframe {
  opacity: 1;
}

.video-modal.is-video-ready .video-modal-poster {
  opacity: 0;
}

.video-modal-title {
  padding: 0.8rem 0.2rem 0.25rem;
  font-size: clamp(1.35rem, 3vw, 2.3rem);
  font-weight: 620;
  line-height: 1.05;
}

@keyframes grain-shift {
  0% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(-1.5%, 1%, 0); }
  50% { transform: translate3d(1%, -1.5%, 0); }
  75% { transform: translate3d(-0.5%, -0.5%, 0); }
  100% { transform: translate3d(1.4%, 1.2%, 0); }
}

@keyframes home-film-grain {
  0%, 100% { background-image: var(--grain-frame-1); }
  16.67% { background-image: var(--grain-frame-2); }
  33.33% { background-image: var(--grain-frame-3); }
  50% { background-image: var(--grain-frame-4); }
  66.67% { background-image: var(--grain-frame-5); }
  83.33% { background-image: var(--grain-frame-6); }
}

@keyframes name-glow-breathe {
  0%, 100% { opacity: 0.16; transform: scale(0.996); }
  42% { opacity: 0.31; transform: scale(1.006); }
  68% { opacity: 0.23; transform: scale(1.001); }
}

@keyframes title-in {
  0% { opacity: 0.72; filter: blur(1.2px); transform: translate3d(0, 0.12em, 0); }
  62% { opacity: 1; filter: blur(0.25px); transform: translate3d(0, -0.02em, 0); }
  100% { opacity: 1; filter: blur(0.12px); transform: none; }
}

@keyframes copy-in {
  to { opacity: 1; transform: none; }
}

@keyframes riddle-in {
  to { transform: none; }
}

@keyframes riddle-wiggle {
  0%, 91%, 100% {
    translate: 0 0;
    rotate: 0deg;
    text-shadow: 0 0 0.24rem rgba(146, 201, 139, 0.04);
  }
  93% {
    translate: 0.35px -0.2px;
    rotate: 0.45deg;
    text-shadow: 0.025rem -0.01rem 0.34rem rgba(146, 201, 139, 0.16);
  }
  95% {
    translate: -0.25px 0.15px;
    rotate: -0.35deg;
    text-shadow: -0.015rem 0.01rem 0.28rem rgba(146, 201, 139, 0.1);
  }
  97% {
    translate: 0.15px 0;
    rotate: 0.15deg;
  }
}

@keyframes rotor-y {
  0%, 14% { transform: translate3d(0, 0, 0); }
  16%, 30% { transform: translate3d(0, -1.42em, 0); }
  32%, 46% { transform: translate3d(0, -2.84em, 0); }
  48%, 62% { transform: translate3d(0, -4.26em, 0); }
  64%, 78% { transform: translate3d(0, -5.68em, 0); }
  80%, 100% { transform: translate3d(0, -7.1em, 0); }
}

@keyframes logo-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-100% - var(--logo-gap)), 0, 0); }
}

@keyframes archive-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - var(--archive-preview-gap))); }
}

@keyframes archive-reveal {
  from {
    opacity: 0;
    transform: translate3d(0, 1.25rem, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes about-heading-in {
  from { opacity: 0; transform: translate3d(0, 0.42em, 0) scale(0.985); }
  to { opacity: 1; transform: none; }
}

@keyframes project-meta-in {
  from { opacity: 0; transform: translate3d(0, 0.7rem, 0); }
  to { opacity: 1; transform: none; }
}

@keyframes shared-title-out {
  0%, 28% { opacity: 1; }
  58%, 100% { opacity: 0; }
}

@keyframes shared-title-in {
  0%, 45% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes about-rule-in {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes about-copy-in {
  to { opacity: 1; transform: none; }
}

@keyframes about-discipline-in {
  from { opacity: 0; transform: translate3d(0, 0.4em, 0); }
  to { opacity: 1; transform: none; }
}

@keyframes app-signal {
  0% { opacity: 0; transform: scaleX(0.12); }
  38% { opacity: 0.88; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(1); }
}

@keyframes app-signal-hover {
  0% { opacity: 0; transform: scaleX(0.12); }
  38% { opacity: 0.88; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(1); }
}

@keyframes app-layer-front {
  0% { opacity: 0; transform: translate3d(-0.45rem, 0.45rem, 0); }
  48% { opacity: 0.72; transform: translate3d(0.2rem, -0.2rem, 0); }
  100% { opacity: 0; transform: translate3d(0, 0, 0); }
}

@keyframes app-layer-front-hover {
  0% { opacity: 0; transform: translate3d(-0.45rem, 0.45rem, 0); }
  48% { opacity: 0.72; transform: translate3d(0.2rem, -0.2rem, 0); }
  100% { opacity: 0; transform: translate3d(0, 0, 0); }
}

@keyframes app-layer-back {
  0% { opacity: 0; transform: translate3d(0.45rem, -0.45rem, 0); }
  48% { opacity: 0.72; transform: translate3d(-0.2rem, 0.2rem, 0); }
  100% { opacity: 0; transform: translate3d(0, 0, 0); }
}

@keyframes app-layer-back-hover {
  0% { opacity: 0; transform: translate3d(0.45rem, -0.45rem, 0); }
  48% { opacity: 0.72; transform: translate3d(-0.2rem, 0.2rem, 0); }
  100% { opacity: 0; transform: translate3d(0, 0, 0); }
}

@keyframes app-loop {
  0% { opacity: 0; transform: rotate(0); }
  24% { opacity: 0.82; }
  78% { opacity: 0.58; }
  100% { opacity: 0; transform: rotate(360deg); }
}

@keyframes app-loop-hover {
  0% { opacity: 0; transform: rotate(0); }
  24% { opacity: 0.82; }
  78% { opacity: 0.58; }
  100% { opacity: 0; transform: rotate(360deg); }
}

@keyframes app-scan {
  0% { opacity: 0; transform: translate3d(0, 0, 0); }
  24% { opacity: 0.86; }
  82% { opacity: 0.5; }
  100% { opacity: 0; transform: translate3d(0, 3.5rem, 0); }
}

@keyframes app-scan-hover {
  0% { opacity: 0; transform: translate3d(0, 0, 0); }
  24% { opacity: 0.86; }
  82% { opacity: 0.5; }
  100% { opacity: 0; transform: translate3d(0, 3.5rem, 0); }
}

@media (max-width: 980px) {
  .home-stage h1 {
    font-size: clamp(4rem, 8vw, 5.4rem);
  }

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

  .project-card,
  .project-card:nth-child(n) {
    grid-column: auto;
  }

  .project-card:nth-child(1) {
    grid-column: 1 / -1;
  }

  .archive-trigger {
    grid-template-columns: minmax(12rem, 0.65fr) minmax(0, 1.35fr) 2.5rem;
    gap: 1.5rem;
  }

  .archive-trigger-title {
    font-size: 2.4rem;
  }
}

@media (max-width: 720px) {
  .section-shell {
    width: min(100% - 2rem, 38rem);
  }

  .home-main {
    padding: max(2rem, env(safe-area-inset-top)) 0 max(2rem, env(safe-area-inset-bottom));
  }

  .home-stage {
    width: min(100% - 2rem, 30rem);
    margin-inline: auto;
  }

  .home-stage h1 {
    max-width: 8ch;
    min-height: 2em;
    font-size: clamp(3rem, 18vw, 4.35rem);
  }

  .title-word + .title-word {
    margin-left: 0;
  }

  .work-rotor {
    width: min(100%, 21rem);
    align-items: flex-start;
    flex-direction: column;
    gap: 0.12rem;
    font-size: 0.98rem;
  }

  .rotor-window {
    width: 100%;
    font-size: 1.05em;
  }

  .home-links {
    margin-top: 1rem;
  }

  .home-links a {
    min-height: 2.75rem;
    font-size: 1.15rem;
  }

  .home-links a:not(:first-child)::before {
    margin-inline: 0.42em;
  }

  .riddle-pocket {
    margin-top: 0.9rem;
  }

  .riddle-link {
    max-width: calc(100vw - 5.5rem);
    font-size: 1rem;
  }

  .work-nav {
    min-height: calc(4rem + env(safe-area-inset-top));
    gap: clamp(0.45rem, 2vw, 0.8rem);
    padding: max(0.5rem, env(safe-area-inset-top)) 0.8rem 0.5rem;
  }

  .work-nav.is-compact {
    min-height: calc(3.7rem + env(safe-area-inset-top));
    padding-top: max(0.38rem, env(safe-area-inset-top));
    padding-bottom: 0.38rem;
  }

  .nav-mark {
    font-size: clamp(0.8rem, 4vw, 1.05rem);
  }

  .nav-links {
    flex: 1;
    justify-content: flex-end;
    gap: clamp(0.5rem, 2.5vw, 0.85rem);
  }

  .nav-links a {
    min-height: 2.75rem;
    font-size: clamp(0.72rem, 3vw, 0.8rem);
  }

  .portfolio-hero {
    padding-top: calc(7.6rem + env(safe-area-inset-top));
    padding-bottom: 4.5rem;
  }

  .portfolio-hero h1 {
    max-width: none;
    font-size: clamp(2.5rem, 11vw, 3rem);
    line-height: 0.96;
  }

  .section-heading {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
  }

  .section-heading h2 {
    font-size: 1.8rem;
  }

  .featured-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .project-card,
  .project-card:nth-child(n) {
    grid-column: auto;
  }

  .project-copy h3,
  .project-card:nth-child(1) .project-copy h3 {
    font-size: 1.42rem;
  }

  .project-copy p {
    font-size: 0.94rem;
  }

  .project-card:nth-child(n + 5) {
    grid-template-columns: 7.5rem minmax(0, 1fr);
    align-items: center;
    gap: 0.9rem;
  }

  .project-card:nth-child(n + 5) .video-shell {
    width: 7.5rem;
    padding: 0.2rem;
    border-radius: 6px;
  }

  .project-card:nth-child(n + 5) .project-preview {
    inset: 0.2rem;
    width: calc(100% - 0.4rem);
    height: calc(100% - 0.4rem);
  }

  .project-card:nth-child(n + 5) .play-icon {
    right: 0.4rem;
    bottom: 0.4rem;
    width: 2rem;
    height: 2rem;
  }

  .project-card:nth-child(n + 5) .project-category {
    font-size: 0.7rem;
  }

  .project-card:nth-child(n + 5) .project-copy h3 {
    font-size: 1rem;
  }

  .project-card:nth-child(n + 5) .project-copy p {
    display: none;
  }

  .archive-section {
    padding-top: 5rem;
  }

  .archive-trigger {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) 2.75rem;
    grid-template-rows: auto auto;
    gap: 1.1rem 1rem;
    padding: 1.4rem 0 1.25rem;
  }

  .archive-trigger-copy {
    grid-column: 1;
    grid-row: 1;
  }

  .archive-trigger-title {
    font-size: 2rem;
  }

  .archive-preview {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 5.6rem;
  }

  .archive-preview-frame {
    width: 7.4rem;
  }

  .archive-trigger-arrow {
    grid-column: 2;
    grid-row: 1;
  }

  .archive-groups {
    columns: 1;
    padding: 2rem 0 3rem;
  }

  .archive-group {
    margin-bottom: 3rem;
  }

  .archive-row {
    grid-template-columns: 5.3rem minmax(0, 1fr) 2.75rem;
    gap: 0.72rem;
  }

  .archive-thumb {
    width: 5.3rem;
  }

  .archive-row h4 {
    font-size: 0.91rem;
  }

  .software-section,
  .clients-section,
  .contact {
    padding-top: 5rem;
  }

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

  .software-item {
    min-height: 7.4rem;
    grid-template-columns: 4.7rem minmax(0, 1fr);
  }

  .software-icon {
    width: 4.7rem;
    height: 4.7rem;
  }

  .logo-marquee {
    width: 100%;
    margin-left: 0;
    display: block;
    overflow: visible;
    mask-image: none;
  }

  .logo-track {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.5rem;
    animation: none;
  }

  .logo-track[aria-hidden="true"] {
    display: none;
  }

  .client-logo {
    width: 100%;
    height: 3.5rem;
  }

  .client-logo img {
    max-height: 2rem;
  }

  .client-logo img[src$="/bmw.png"],
  .client-logo img[src$="/peloton.png"],
  .client-logo img[src$="/fly.png"],
  .client-logo img[src$="/coco.png"] {
    max-height: 2.5rem;
  }

  .contact {
    padding-bottom: 5rem;
  }

  .contact h2 {
    max-width: none;
    font-size: clamp(2.35rem, 10vw, 2.8rem);
  }

  .contact-actions {
    display: grid;
    gap: 0;
  }

  .site-footer {
    gap: 1rem;
  }

  .site-footer .footer-signature {
    font-size: 0.88rem;
  }

  .about-main {
    min-height: auto;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 2rem;
    padding-top: calc(8rem + env(safe-area-inset-top));
    padding-bottom: max(3rem, env(safe-area-inset-bottom));
  }

  .about-hero h1 {
    font-size: clamp(2.5rem, 11vw, 3rem);
  }

  .about-copy {
    gap: 1.15rem;
    padding-top: 1.2rem;
  }

  .about-copy > p {
    font-size: 1.2rem;
  }

  .about-links {
    gap: 0 1.1rem;
  }

  .site-footer-page {
    margin-top: 3rem;
  }

  .project-hero {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding-top: calc(7.5rem + env(safe-area-inset-top));
    padding-bottom: 3rem;
  }

  .project-back {
    font-size: 0.84rem;
  }

  .project-heading h1 {
    max-width: none;
    font-size: clamp(2.6rem, 12vw, 3.55rem);
    line-height: 0.98;
  }

  .project-intro {
    margin-top: 1rem;
    font-size: 1.05rem;
  }

  .project-lead {
    padding-top: 0.8rem;
  }

  .project-stills {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-top: 2rem;
  }

  .project-still,
  .project-still-wide,
  .project-still-offset {
    grid-column: auto;
    margin-top: 0;
  }

  .next-project {
    margin-top: 5rem;
  }

  .next-project-link {
    min-height: clamp(18rem, 105vw, 25rem);
    padding: 1.25rem;
  }

  .next-project-copy {
    max-width: 96%;
  }

  .next-project-title {
    max-width: 18ch;
    font-size: clamp(1.65rem, 8vw, 2.3rem);
  }

  .next-project-media::after {
    background: linear-gradient(0deg, rgba(3, 4, 3, 0.92), rgba(3, 4, 3, 0.28) 72%);
  }

  .project-card.reveal-pending .video-shell,
  .project-card.reveal-pending:nth-child(even) .video-shell,
  .project-still.reveal-pending,
  .project-still.reveal-pending:nth-child(even) {
    transform: translate3d(0, 1rem, 0) scale(0.99);
  }

  .video-modal {
    place-items: center;
    padding: max(0.75rem, env(safe-area-inset-top)) 0.75rem max(0.75rem, env(safe-area-inset-bottom));
  }

  .video-modal-panel {
    width: 100%;
  }
}

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

  .title-word > span,
  .work-rotor,
  .home-links a,
  .riddle-trigger,
  .riddle-mark {
    opacity: 1;
    filter: none;
  }

  .title-word::after {
    animation: none;
    opacity: 0.16;
    transform: none;
  }

  .riddle-trigger {
    transform: none;
  }

  .riddle-mark {
    opacity: 0.42;
    transform: scale(0.52);
  }

  .riddle-trigger:hover .riddle-mark,
  .riddle-trigger:focus-visible .riddle-mark,
  .riddle-pocket.is-open .riddle-mark {
    opacity: 1;
    transform: scale(1);
  }

  .reveal-pending,
  .reveal-pending.is-revealed {
    opacity: 1;
    transform: none;
  }

  .project-card.reveal-pending .video-shell,
  .project-card.reveal-pending .project-copy,
  .project-card.reveal-pending.is-revealed .video-shell,
  .project-card.reveal-pending.is-revealed .project-copy,
  .next-project.reveal-pending .next-project-media,
  .next-project.reveal-pending .next-project-copy,
  .next-project.reveal-pending.is-revealed .next-project-media,
  .next-project.reveal-pending.is-revealed .next-project-copy {
    opacity: 1;
    transform: none;
  }

  .project-preview {
    display: none;
  }

  .rotor-track {
    transform: none !important;
  }

  .archive-preview {
    mask-image: none;
  }

  .archive-preview-set {
    animation: none;
    transform: none !important;
  }

  .archive-preview-set:first-child {
    width: 100%;
  }

  .archive-preview-set:first-child .archive-preview-frame {
    width: calc((100% - (2 * var(--archive-preview-gap))) / 3);
  }

  .archive-preview-set:first-child .archive-preview-frame:nth-child(n + 4),
  .archive-preview-set + .archive-preview-set {
    display: none;
  }

  .archive-preview-frame,
  .archive-preview-frame:nth-child(even) {
    transform: none;
  }

  .logo-marquee {
    display: block;
    mask-image: none;
    overflow: hidden;
  }

  .logo-track {
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-start;
    animation: none;
  }

  .logo-track[aria-hidden="true"] {
    display: none;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.001ms;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .work-nav,
  .video-modal,
  .play-icon {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .work-nav {
    background: #0a0c09;
  }

  .video-modal {
    background: #030403;
  }
}

@media (prefers-contrast: more) {
  :root {
    --muted: #d6cfbd;
    --quiet: #aaa18f;
    --line: rgba(242, 236, 218, 0.28);
    --line-strong: rgba(242, 236, 218, 0.48);
  }

  .work-nav {
    background: rgba(10, 12, 9, 0.96);
  }

  :focus-visible {
    outline-width: 3px;
  }
}
